@turbo/gen 2.0.13 → 2.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +44 -44
- package/package.json +2 -2
package/dist/cli.js
CHANGED
@@ -1,85 +1,85 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var GS=Object.create;var qc=Object.defineProperty;var WS=Object.getOwnPropertyDescriptor;var zS=Object.getOwnPropertyNames;var VS=Object.getPrototypeOf,YS=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KS=(e,t)=>{for(var r in t)qc(e,r,{get:t[r],enumerable:!0})},XS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zS(t))!YS.call(e,i)&&i!==r&&qc(e,i,{get:()=>t[i],enumerable:!(n=WS(t,i))||n.enumerable});return e};var re=(e,t,r)=>(r=e!=null?GS(VS(e)):{},XS(t||!e||!e.__esModule?qc(r,"default",{value:e,enumerable:!0}):r,e));var Cm=m((O9,ir)=>{function jc(e){return ir.exports=jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir.exports.__esModule=!0,ir.exports.default=ir.exports,jc(e)}ir.exports=jc,ir.exports.__esModule=!0,ir.exports.default=ir.exports});var Fm=m((k9,sr)=>{var Sm=Cm().default;function Rm(){"use strict";sr.exports=Rm=function(){return t},sr.exports.__esModule=!0,sr.exports.default=sr.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(A,F,S){A[F]=S.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(A,F,S){return Object.defineProperty(A,F,{value:S,enumerable:!0,configurable:!0,writable:!0}),A[F]}try{c({},"")}catch{c=function(S,k,G){return S[k]=G}}function l(A,F,S,k){var G=F&&F.prototype instanceof w?F:w,q=Object.create(G.prototype),le=new st(k||[]);return i(q,"_invoke",{value:ve(A,S,le)}),q}function f(A,F,S){try{return{type:"normal",arg:A.call(F,S)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var h="suspendedStart",g="suspendedYield",b="executing",_="completed",p={};function w(){}function C(){}function N(){}var W={};c(W,o,function(){return this});var M=Object.getPrototypeOf,X=M&&M(M(x([])));X&&X!==r&&n.call(X,o)&&(W=X);var z=N.prototype=w.prototype=Object.create(W);function Y(A){["next","throw","return"].forEach(function(F){c(A,F,function(S){return this._invoke(F,S)})})}function ee(A,F){function S(G,q,le,Oe){var ae=f(A[G],A,q);if(ae.type!=="throw"){var Ae=ae.arg,K=Ae.value;return K&&Sm(K)=="object"&&n.call(K,"__await")?F.resolve(K.__await).then(function(et){S("next",et,le,Oe)},function(et){S("throw",et,le,Oe)}):F.resolve(K).then(function(et){Ae.value=et,le(Ae)},function(et){return S("throw",et,le,Oe)})}Oe(ae.arg)}var k;i(this,"_invoke",{value:function(q,le){function Oe(){return new F(function(ae,Ae){S(q,le,ae,Ae)})}return k=k?k.then(Oe,Oe):Oe()}})}function ve(A,F,S){var k=h;return function(G,q){if(k===b)throw new Error("Generator is already running");if(k===_){if(G==="throw")throw q;return{value:e,done:!0}}for(S.method=G,S.arg=q;;){var le=S.delegate;if(le){var Oe=R(le,S);if(Oe){if(Oe===p)continue;return Oe}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(k===h)throw k=_,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);k=b;var ae=f(A,F,S);if(ae.type==="normal"){if(k=S.done?_:g,ae.arg===p)continue;return{value:ae.arg,done:S.done}}ae.type==="throw"&&(k=_,S.method="throw",S.arg=ae.arg)}}}function R(A,F){var S=F.method,k=A.iterator[S];if(k===e)return F.delegate=null,S==="throw"&&A.iterator.return&&(F.method="return",F.arg=e,R(A,F),F.method==="throw")||S!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+S+"' method")),p;var G=f(k,A.iterator,F.arg);if(G.type==="throw")return F.method="throw",F.arg=G.arg,F.delegate=null,p;var q=G.arg;return q?q.done?(F[A.resultName]=q.value,F.next=A.nextLoc,F.method!=="return"&&(F.method="next",F.arg=e),F.delegate=null,p):q:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,p)}function ce(A){var F={tryLoc:A[0]};1 in A&&(F.catchLoc=A[1]),2 in A&&(F.finallyLoc=A[2],F.afterLoc=A[3]),this.tryEntries.push(F)}function oe(A){var F=A.completion||{};F.type="normal",delete F.arg,A.completion=F}function st(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(ce,this),this.reset(!0)}function x(A){if(A||A===""){var F=A[o];if(F)return F.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var S=-1,k=function G(){for(;++S<A.length;)if(n.call(A,S))return G.value=A[S],G.done=!1,G;return G.value=e,G.done=!0,G};return k.next=k}}throw new TypeError(Sm(A)+" is not iterable")}return C.prototype=N,i(z,"constructor",{value:N,configurable:!0}),i(N,"constructor",{value:C,configurable:!0}),C.displayName=c(N,u,"GeneratorFunction"),t.isGeneratorFunction=function(A){var F=typeof A=="function"&&A.constructor;return!!F&&(F===C||(F.displayName||F.name)==="GeneratorFunction")},t.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,N):(A.__proto__=N,c(A,u,"GeneratorFunction")),A.prototype=Object.create(z),A},t.awrap=function(A){return{__await:A}},Y(ee.prototype),c(ee.prototype,a,function(){return this}),t.AsyncIterator=ee,t.async=function(A,F,S,k,G){G===void 0&&(G=Promise);var q=new ee(l(A,F,S,k),G);return t.isGeneratorFunction(F)?q:q.next().then(function(le){return le.done?le.value:q.next()})},Y(z),c(z,u,"Generator"),c(z,o,function(){return this}),c(z,"toString",function(){return"[object Generator]"}),t.keys=function(A){var F=Object(A),S=[];for(var k in F)S.push(k);return S.reverse(),function G(){for(;S.length;){var q=S.pop();if(q in F)return G.value=q,G.done=!1,G}return G.done=!0,G}},t.values=x,st.prototype={constructor:st,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(oe),!F)for(var S in this)S.charAt(0)==="t"&&n.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var S=this;function k(Ae,K){return le.type="throw",le.arg=F,S.next=Ae,K&&(S.method="next",S.arg=e),!!K}for(var G=this.tryEntries.length-1;G>=0;--G){var q=this.tryEntries[G],le=q.completion;if(q.tryLoc==="root")return k("end");if(q.tryLoc<=this.prev){var Oe=n.call(q,"catchLoc"),ae=n.call(q,"finallyLoc");if(Oe&&ae){if(this.prev<q.catchLoc)return k(q.catchLoc,!0);if(this.prev<q.finallyLoc)return k(q.finallyLoc)}else if(Oe){if(this.prev<q.catchLoc)return k(q.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return k(q.finallyLoc)}}}},abrupt:function(F,S){for(var k=this.tryEntries.length-1;k>=0;--k){var G=this.tryEntries[k];if(G.tryLoc<=this.prev&&n.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var q=G;break}}q&&(F==="break"||F==="continue")&&q.tryLoc<=S&&S<=q.finallyLoc&&(q=null);var le=q?q.completion:{};return le.type=F,le.arg=S,q?(this.method="next",this.next=q.finallyLoc,p):this.complete(le)},complete:function(F,S){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&S&&(this.next=S),p},finish:function(F){for(var S=this.tryEntries.length-1;S>=0;--S){var k=this.tryEntries[S];if(k.finallyLoc===F)return this.complete(k.completion,k.afterLoc),oe(k),p}},catch:function(F){for(var S=this.tryEntries.length-1;S>=0;--S){var k=this.tryEntries[S];if(k.tryLoc===F){var G=k.completion;if(G.type==="throw"){var q=G.arg;oe(k)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(F,S,k){return this.delegate={iterator:x(F),resultName:S,nextLoc:k},this.method==="next"&&(this.arg=e),p}},t}sr.exports=Rm,sr.exports.__esModule=!0,sr.exports.default=sr.exports});var Om=m((P9,Tm)=>{var wo=Fm()();Tm.exports=wo;try{regeneratorRuntime=wo}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=wo:Function("r","regeneratorRuntime = r")(wo)}});var Pm=m((tq,Vc)=>{"use strict";var km=(e,...t)=>new Promise(r=>{r(e(...t))});Vc.exports=km;Vc.exports.default=km});var Im=m((rq,Yc)=>{"use strict";var JS=Pm(),Bm=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(a,u,...c)=>{r++;let l=JS(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<e?i(a,u,...c):t.push(i.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Yc.exports=Bm;Yc.exports.default=Bm});var Mm=m((nq,Kc)=>{"use strict";var Lm=Im(),vo=class extends Error{constructor(t){super(),this.value=t}},ZS=async(e,t)=>t(await e),QS=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new vo(t[0]);return!1},Nm=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Lm(r.concurrency),i=[...e].map(o=>[o,n(ZS,o,t)]),s=Lm(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(QS,o)))}catch(o){if(o instanceof vo)return o.value;throw o}};Kc.exports=Nm;Kc.exports.default=Nm});var Gm=m((iq,Xc)=>{"use strict";var qm=require("path"),Ao=require("fs"),{promisify:jm}=require("util"),eR=Mm(),tR=jm(Ao.stat),rR=jm(Ao.lstat),Hm={directory:"isDirectory",file:"isFile"};function $m({type:e}){if(!(e in Hm))throw new Error(`Invalid type specified: ${e}`)}var Um=(e,t)=>e===void 0||t[Hm[e]]();Xc.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},$m(t);let r=t.allowSymlinks?tR:rR;return eR(e,async n=>{try{let i=await r(qm.resolve(t.cwd,n));return Um(t.type,i)}catch{return!1}},t)};Xc.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},$m(t);let r=t.allowSymlinks?Ao.statSync:Ao.lstatSync;for(let n of e)try{let i=r(qm.resolve(t.cwd,n));if(Um(t.type,i))return n}catch{}}});var zm=m((sq,Jc)=>{"use strict";var Wm=require("fs"),{promisify:nR}=require("util"),iR=nR(Wm.access);Jc.exports=async e=>{try{return await iR(e),!0}catch{return!1}};Jc.exports.sync=e=>{try{return Wm.accessSync(e),!0}catch{return!1}}});var Ym=m((oq,jn)=>{"use strict";var kr=require("path"),Do=Gm(),Vm=zm(),Zc=Symbol("findUp.stop");jn.exports=async(e,t={})=>{let r=kr.resolve(t.cwd||""),{root:n}=kr.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Do(i,o);let a=await e(o.cwd);return typeof a=="string"?Do([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Zc)return;if(o)return kr.resolve(r,o);if(r===n)return;r=kr.dirname(r)}};jn.exports.sync=(e,t={})=>{let r=kr.resolve(t.cwd||""),{root:n}=kr.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Do.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Do.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Zc)return;if(o)return kr.resolve(r,o);if(r===n)return;r=kr.dirname(r)}};jn.exports.exists=Vm;jn.exports.sync.exists=Vm.sync;jn.exports.stop=Zc});var ry=m(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.splitWhen=Wn.flatten=void 0;function U5(e){return e.reduce((t,r)=>[].concat(t,r),[])}Wn.flatten=U5;function G5(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}Wn.splitWhen=G5});var ny=m(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.isEnoentCodeError=void 0;function W5(e){return e.code==="ENOENT"}No.isEnoentCodeError=W5});var iy=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createDirentFromStats=void 0;var vl=class{constructor(t,r){this.name=t,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 z5(e,t){return new vl(e,t)}Mo.createDirentFromStats=z5});var sy=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.removeLeadingDotSegment=Gt.escape=Gt.makeAbsolute=Gt.unixify=void 0;var V5=require("path"),Y5=2,K5=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function X5(e){return e.replace(/\\/g,"/")}Gt.unixify=X5;function J5(e,t){return V5.resolve(e,t)}Gt.makeAbsolute=J5;function Z5(e){return e.replace(K5,"\\$2")}Gt.escape=Z5;function Q5(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Y5)}return e}Gt.removeLeadingDotSegment=Q5});var ay=m((Cq,oy)=>{oy.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var ly=m((Sq,cy)=>{var eT=ay(),uy={"{":"}","(":")","[":"]"},tT=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=uy[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},rT=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=uy[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};cy.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(eT(t))return!0;var n=tT;return r&&r.strict===!1&&(n=rT),n(t)}});var hy=m((Rq,fy)=>{"use strict";var nT=ly(),iT=require("path").posix.dirname,sT=require("os").platform()==="win32",Al="/",oT=/\\/g,aT=/[\{\[].*[\}\]]$/,uT=/(^|[^\\])([\{\[]|\([^\)]+$)/,cT=/\\([\!\*\?\|\[\]\(\)\{\}])/g;fy.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&sT&&t.indexOf(Al)<0&&(t=t.replace(oT,Al)),aT.test(t)&&(t+=Al),t+="a";do t=iT(t);while(nT(t)||uT.test(t));return t.replace(cT,"$1")}});var qo=m(wt=>{"use strict";wt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;wt.find=(e,t)=>e.nodes.find(r=>r.type===t);wt.exceedsLimit=(e,t,r=1,n)=>n===!1||!wt.isInteger(e)||!wt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;wt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};wt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);wt.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;wt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;wt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);wt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var jo=m((Tq,py)=>{"use strict";var dy=qo();py.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&dy.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&dy.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var gy=m((Oq,my)=>{"use strict";my.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var xy=m((kq,Dy)=>{"use strict";var yy=gy(),pn=(e,t,r)=>{if(yy(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(yy(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(pn.cache.hasOwnProperty(u))return pn.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=Ay(e)||Ay(t),h={min:e,max:t,a:c,b:l},g=[],b=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let _=l<0?Math.abs(l):1;b=_y(_,Math.abs(c),h,n),c=h.a=0}return l>=0&&(g=_y(c,l,h,n)),h.negatives=b,h.positives=g,h.result=lT(b,g,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&g.length+b.length>1&&(h.result=`(?:${h.result})`),pn.cache[u]=h,h.result};function lT(e,t,r){let n=Dl(e,t,"-",!1,r)||[],i=Dl(t,e,"",!1,r)||[],s=Dl(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function fT(e,t){let r=1,n=1,i=Ey(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Ey(e,r);for(i=wy(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=wy(t+1,n)-1;return s=[...s],s.sort(pT),s}function hT(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=dT(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=mT(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function _y(e,t,r,n){let i=fT(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],l=hT(String(o),String(c),n),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+vy(a.count),o=c+1;continue}r.isPadded&&(f=gT(c,r,n)),l.string=f+l.pattern+vy(l.count),s.push(l),o=c+1,a=l}return s}function Dl(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!by(t,"string",a)&&s.push(r+a),n&&by(t,"string",a)&&s.push(r+a)}return s}function dT(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function pT(e,t){return e>t?1:t>e?-1:0}function by(e,t,r){return e.some(n=>n[t]===r)}function Ey(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function wy(e,t){return e-e%Math.pow(10,t)}function vy(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function mT(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Ay(e){return/^-?(0+)\d/.test(e)}function gT(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.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}}`}}pn.cache={};pn.clearCache=()=>pn.cache={};Dy.exports=pn});var Sl=m((Pq,Py)=>{"use strict";var yT=require("util"),Ry=xy(),Cy=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),_T=e=>t=>e===!0?Number(t):String(t),xl=e=>typeof e=="number"||typeof e=="string"&&e!=="",gs=e=>Number.isInteger(+e),Cl=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},bT=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ET=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Sy=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},wT=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Fy=(e,t,r,n)=>{if(r)return Ry(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Ty=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Ry(e,t,r)},Oy=(...e)=>new RangeError("Invalid range arguments: "+yT.inspect(...e)),ky=(e,t,r)=>{if(r.strictRanges===!0)throw Oy([e,t]);return[]},vT=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},AT=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Oy([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=Cl(a)||Cl(u)||Cl(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&bT(e,t,n)===!1,g=n.transform||_T(h);if(n.toRegex&&r===1)return Fy(Sy(e,f),Sy(t,f),!0,n);let b={negatives:[],positives:[]},_=C=>b[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],w=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):p.push(ET(g(i,w),f,h)),i=o?i-r:i+r,w++;return n.toRegex===!0?r>1?wT(b,n):Ty(p,null,{wrap:!1,...n}):p},DT=(e,t,r=1,n={})=>{if(!gs(e)&&e.length>1||!gs(t)&&t.length>1)return ky(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Fy(u,c,!1,n);let l=[],f=0;for(;a?s>=o:s<=o;)l.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?Ty(l,null,{wrap:!1,options:n}):l},Ho=(e,t,r,n={})=>{if(t==null&&xl(e))return[e];if(!xl(e)||!xl(t))return ky(e,t,n);if(typeof r=="function")return Ho(e,t,1,{transform:r});if(Cy(r))return Ho(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,gs(r)?gs(e)&&gs(t)?AT(e,t,r,i):DT(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Cy(r)?vT(r,i):Ho(e,t,1,r)};Py.exports=Ho});var Ly=m((Bq,Iy)=>{"use strict";var xT=Sl(),By=qo(),CT=(e,t={})=>{let r=(n,i={})=>{let s=By.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=By.reduce(n.nodes),f=xT(...l,{...t,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};Iy.exports=CT});var qy=m((Iq,My)=>{"use strict";var ST=Sl(),Ny=jo(),zn=qo(),mn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?zn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(mn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?mn(i,s,r):i+s);return zn.flatten(n)},RT=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(mn(a.pop(),Ny(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(mn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=zn.reduce(i.nodes);if(zn.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=ST(...f,t);h.length===0&&(h=Ny(i,t)),a.push(mn(a.pop(),h)),i.nodes=[];return}let u=zn.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(mn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(mn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return zn.flatten(n(e))};My.exports=RT});var Hy=m((Lq,jy)=>{"use strict";jy.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 zy=m((Nq,Wy)=>{"use strict";var FT=jo(),{MAX_LENGTH:$y,CHAR_BACKSLASH:Rl,CHAR_BACKTICK:TT,CHAR_COMMA:OT,CHAR_DOT:kT,CHAR_LEFT_PARENTHESES:PT,CHAR_RIGHT_PARENTHESES:BT,CHAR_LEFT_CURLY_BRACE:IT,CHAR_RIGHT_CURLY_BRACE:LT,CHAR_LEFT_SQUARE_BRACKET:Uy,CHAR_RIGHT_SQUARE_BRACKET:Gy,CHAR_DOUBLE_QUOTE:NT,CHAR_SINGLE_QUOTE:MT,CHAR_NO_BREAK_SPACE:qT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:jT}=Hy(),HT=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min($y,r.maxLength):$y;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,l=0,f=0,h,g={},b=()=>e[l++],_=p=>{if(p.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&p.type==="text"){a.value+=p.value;return}return o.nodes.push(p),p.parent=o,p.prev=a,a=p,p};for(_({type:"bos"});l<c;)if(o=s[s.length-1],h=b(),!(h===jT||h===qT)){if(h===Rl){_({type:"text",value:(t.keepEscaping?h:"")+b()});continue}if(h===Gy){_({type:"text",value:"\\"+h});continue}if(h===Uy){u++;let p=!0,w;for(;l<c&&(w=b());){if(h+=w,w===Uy){u++;continue}if(w===Rl){h+=b();continue}if(w===Gy&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===PT){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===BT){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===NT||h===MT||h===TT){let p=h,w;for(t.keepQuotes!==!0&&(h="");l<c&&(w=b());){if(w===Rl){h+=w+b();continue}if(w===p){t.keepQuotes===!0&&(h+=w);break}h+=w}_({type:"text",value:h});continue}if(h===IT){f++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=_(w),s.push(o),_({type:"open",value:h});continue}if(h===LT){if(o.type!=="brace"){_({type:"text",value:h});continue}let p="close";o=s.pop(),o.close=!0,_({type:p,value:h}),f--,o=s[s.length-1];continue}if(h===OT&&f>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:FT(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===kT&&f>0&&o.commas===0){let p=o.nodes;if(f===0||p.length===0){_({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"){p.pop();let w=p[p.length-1];w.value+=a.value+h,a=w,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let p=s[s.length-1],w=p.nodes.indexOf(o);p.nodes.splice(w,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Wy.exports=HT});var Ky=m((Mq,Yy)=>{"use strict";var Vy=jo(),$T=Ly(),UT=qy(),GT=zy(),pt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=pt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(pt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};pt.parse=(e,t={})=>GT(e,t);pt.stringify=(e,t={})=>Vy(typeof e=="string"?pt.parse(e,t):e,t);pt.compile=(e,t={})=>(typeof e=="string"&&(e=pt.parse(e,t)),$T(e,t));pt.expand=(e,t={})=>{typeof e=="string"&&(e=pt.parse(e,t));let r=UT(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};pt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?pt.compile(e,t):pt.expand(e,t);Yy.exports=pt});var ys=m((qq,e1)=>{"use strict";var WT=require("path"),Wt="\\\\/",Xy=`[^${Wt}]`,fr="\\.",zT="\\+",VT="\\?",$o="\\/",YT="(?=.)",Jy="[^/]",Fl=`(?:${$o}|$)`,Zy=`(?:^|${$o})`,Tl=`${fr}{1,2}${Fl}`,KT=`(?!${fr})`,XT=`(?!${Zy}${Tl})`,JT=`(?!${fr}{0,1}${Fl})`,ZT=`(?!${Tl})`,QT=`[^.${$o}]`,eO=`${Jy}*?`,Qy={DOT_LITERAL:fr,PLUS_LITERAL:zT,QMARK_LITERAL:VT,SLASH_LITERAL:$o,ONE_CHAR:YT,QMARK:Jy,END_ANCHOR:Fl,DOTS_SLASH:Tl,NO_DOT:KT,NO_DOTS:XT,NO_DOT_SLASH:JT,NO_DOTS_SLASH:ZT,QMARK_NO_DOT:QT,STAR:eO,START_ANCHOR:Zy},tO={...Qy,SLASH_LITERAL:`[${Wt}]`,QMARK:Xy,STAR:`${Xy}*?`,DOTS_SLASH:`${fr}{1,2}(?:[${Wt}]|$)`,NO_DOT:`(?!${fr})`,NO_DOTS:`(?!(?:^|[${Wt}])${fr}{1,2}(?:[${Wt}]|$))`,NO_DOT_SLASH:`(?!${fr}{0,1}(?:[${Wt}]|$))`,NO_DOTS_SLASH:`(?!${fr}{1,2}(?:[${Wt}]|$))`,QMARK_NO_DOT:`[^.${Wt}]`,START_ANCHOR:`(?:^|[${Wt}])`,END_ANCHOR:`(?:[${Wt}]|$)`},rO={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"};e1.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:rO,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:WT.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?tO:Qy}}});var _s=m(at=>{"use strict";var nO=require("path"),iO=process.platform==="win32",{REGEX_BACKSLASH:sO,REGEX_REMOVE_BACKSLASH:oO,REGEX_SPECIAL_CHARS:aO,REGEX_SPECIAL_CHARS_GLOBAL:uO}=ys();at.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);at.hasRegexChars=e=>aO.test(e);at.isRegexChar=e=>e.length===1&&at.hasRegexChars(e);at.escapeRegex=e=>e.replace(uO,"\\$1");at.toPosixSlashes=e=>e.replace(sO,"/");at.removeBackslashes=e=>e.replace(oO,t=>t==="\\"?"":t);at.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};at.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:iO===!0||nO.sep==="\\";at.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?at.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};at.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};at.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var u1=m((Hq,a1)=>{"use strict";var t1=_s(),{CHAR_ASTERISK:Ol,CHAR_AT:cO,CHAR_BACKWARD_SLASH:bs,CHAR_COMMA:lO,CHAR_DOT:kl,CHAR_EXCLAMATION_MARK:Pl,CHAR_FORWARD_SLASH:o1,CHAR_LEFT_CURLY_BRACE:Bl,CHAR_LEFT_PARENTHESES:Il,CHAR_LEFT_SQUARE_BRACKET:fO,CHAR_PLUS:hO,CHAR_QUESTION_MARK:r1,CHAR_RIGHT_CURLY_BRACE:dO,CHAR_RIGHT_PARENTHESES:n1,CHAR_RIGHT_SQUARE_BRACKET:pO}=ys(),i1=e=>e===o1||e===bs,s1=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},mO=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,l=0,f=0,h=!1,g=!1,b=!1,_=!1,p=!1,w=!1,C=!1,N=!1,W=!1,M=!1,X=0,z,Y,ee={value:"",depth:0,isGlob:!1},ve=()=>c>=n,R=()=>u.charCodeAt(c+1),ce=()=>(z=Y,u.charCodeAt(++c));for(;c<n;){Y=ce();let F;if(Y===bs){C=ee.backslashes=!0,Y=ce(),Y===Bl&&(w=!0);continue}if(w===!0||Y===Bl){for(X++;ve()!==!0&&(Y=ce());){if(Y===bs){C=ee.backslashes=!0,ce();continue}if(Y===Bl){X++;continue}if(w!==!0&&Y===kl&&(Y=ce())===kl){if(h=ee.isBrace=!0,b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(w!==!0&&Y===lO){if(h=ee.isBrace=!0,b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(Y===dO&&(X--,X===0)){w=!1,h=ee.isBrace=!0,M=!0;break}}if(i===!0)continue;break}if(Y===o1){if(s.push(c),o.push(ee),ee={value:"",depth:0,isGlob:!1},M===!0)continue;if(z===kl&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(Y===hO||Y===cO||Y===Ol||Y===r1||Y===Pl)===!0&&R()===Il){if(b=ee.isGlob=!0,_=ee.isExtglob=!0,M=!0,Y===Pl&&c===l&&(W=!0),i===!0){for(;ve()!==!0&&(Y=ce());){if(Y===bs){C=ee.backslashes=!0,Y=ce();continue}if(Y===n1){b=ee.isGlob=!0,M=!0;break}}continue}break}if(Y===Ol){if(z===Ol&&(p=ee.isGlobstar=!0),b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(Y===r1){if(b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(Y===fO){for(;ve()!==!0&&(F=ce());){if(F===bs){C=ee.backslashes=!0,ce();continue}if(F===pO){g=ee.isBracket=!0,b=ee.isGlob=!0,M=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Y===Pl&&c===l){N=ee.negated=!0,l++;continue}if(r.noparen!==!0&&Y===Il){if(b=ee.isGlob=!0,i===!0){for(;ve()!==!0&&(Y=ce());){if(Y===Il){C=ee.backslashes=!0,Y=ce();continue}if(Y===n1){M=!0;break}}continue}break}if(b===!0){if(M=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,b=!1);let oe=u,st="",x="";l>0&&(st=u.slice(0,l),u=u.slice(l),f-=l),oe&&b===!0&&f>0?(oe=u.slice(0,f),x=u.slice(f)):b===!0?(oe="",x=u):oe=u,oe&&oe!==""&&oe!=="/"&&oe!==u&&i1(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),r.unescape===!0&&(x&&(x=t1.removeBackslashes(x)),oe&&C===!0&&(oe=t1.removeBackslashes(oe)));let A={prefix:st,input:e,start:l,base:oe,glob:x,isBrace:h,isBracket:g,isGlob:b,isExtglob:_,isGlobstar:p,negated:N,negatedExtglob:W};if(r.tokens===!0&&(A.maxDepth=0,i1(Y)||o.push(ee),A.tokens=o),r.parts===!0||r.tokens===!0){let F;for(let S=0;S<s.length;S++){let k=F?F+1:l,G=s[S],q=e.slice(k,G);r.tokens&&(S===0&&l!==0?(o[S].isPrefix=!0,o[S].value=st):o[S].value=q,s1(o[S]),A.maxDepth+=o[S].depth),(S!==0||q!=="")&&a.push(q),F=G}if(F&&F+1<e.length){let S=e.slice(F+1);a.push(S),r.tokens&&(o[o.length-1].value=S,s1(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};a1.exports=mO});var f1=m(($q,l1)=>{"use strict";var Uo=ys(),mt=_s(),{MAX_LENGTH:Go,POSIX_REGEX_SOURCE:gO,REGEX_NON_SPECIAL_CHARS:yO,REGEX_SPECIAL_CHARS_BACKREF:_O,REPLACEMENTS:c1}=Uo,bO=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>mt.escapeRegex(i)).join("..")}return r},Vn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ll=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=c1[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Go,r.maxLength):Go,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=mt.isWindows(t),c=Uo.globChars(u),l=Uo.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:g,ONE_CHAR:b,DOTS_SLASH:_,NO_DOT:p,NO_DOT_SLASH:w,NO_DOTS_SLASH:C,QMARK:N,QMARK_NO_DOT:W,STAR:M,START_ANCHOR:X}=c,z=I=>`(${a}(?:(?!${X}${I.dot?_:f}).)*?)`,Y=r.dot?"":p,ee=r.dot?N:W,ve=r.bash===!0?z(r):M;r.capture&&(ve=`(${ve})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:e,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};e=mt.removePrefix(e,R),i=e.length;let ce=[],oe=[],st=[],x=s,A,F=()=>R.index===i-1,S=R.peek=(I=1)=>e[R.index+I],k=R.advance=()=>e[++R.index]||"",G=()=>e.slice(R.index+1),q=(I="",he=0)=>{R.consumed+=I,R.index+=he},le=I=>{R.output+=I.output!=null?I.output:I.value,q(I.value)},Oe=()=>{let I=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)k(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},ae=I=>{R[I]++,st.push(I)},Ae=I=>{R[I]--,st.pop()},K=I=>{if(x.type==="globstar"){let he=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||ce.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!he&&!B&&(R.output=R.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=ve,R.output+=x.output)}if(ce.length&&I.type!=="paren"&&(ce[ce.length-1].inner+=I.value),(I.value||I.output)&&le(I),x&&x.type==="text"&&I.type==="text"){x.value+=I.value,x.output=(x.output||"")+I.value;return}I.prev=x,o.push(I),x=I},et=(I,he)=>{let B={...l[he],conditions:1,inner:""};B.prev=x,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;ae("parens"),K({type:I,value:he,output:R.output?"":b}),K({type:"paren",extglob:!0,value:k(),output:d}),ce.push(B)},dt=I=>{let he=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=ve;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=z(r)),(d!==ve||F()||/^\)+$/.test(G()))&&(he=I.close=`)$))${d}`),I.inner.includes("*")&&(B=G())&&/^\.[^\\/.]+$/.test(B)){let v=Ll(B,{...t,fastpaths:!1}).output;he=I.close=`)${v})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:A,output:he}),Ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let I=!1,he=e.replace(_O,(B,d,v,y,O,H)=>y==="\\"?(I=!0,B):y==="?"?d?d+y+(O?N.repeat(O.length):""):H===0?ee+(O?N.repeat(O.length):""):N.repeat(v.length):y==="."?f.repeat(v.length):y==="*"?d?d+y+(O?ve:""):ve:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),he===e&&r.contains===!0?(R.output=e,R):(R.output=mt.wrapOutput(he,R,t),R)}for(;!F();){if(A=k(),A==="\0")continue;if(A==="\\"){let B=S();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){A+="\\",K({type:"text",value:A});continue}let d=/^\\+/.exec(G()),v=0;if(d&&d[0].length>2&&(v=d[0].length,R.index+=v,v%2!==0&&(A+="\\")),r.unescape===!0?A=k():A+=k(),R.brackets===0){K({type:"text",value:A});continue}}if(R.brackets>0&&(A!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&A===":"){let B=x.value.slice(1);if(B.includes("[")&&(x.posix=!0,B.includes(":"))){let d=x.value.lastIndexOf("["),v=x.value.slice(0,d),y=x.value.slice(d+2),O=gO[y];if(O){x.value=v+O,R.backtrack=!0,k(),!s.output&&o.indexOf(x)===1&&(s.output=b);continue}}}(A==="["&&S()!==":"||A==="-"&&S()==="]")&&(A=`\\${A}`),A==="]"&&(x.value==="["||x.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&x.value==="["&&(A="^"),x.value+=A,le({value:A});continue}if(R.quotes===1&&A!=='"'){A=mt.escapeRegex(A),x.value+=A,le({value:A});continue}if(A==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&K({type:"text",value:A});continue}if(A==="("){ae("parens"),K({type:"paren",value:A});continue}if(A===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Vn("opening","("));let B=ce[ce.length-1];if(B&&R.parens===B.parens+1){dt(ce.pop());continue}K({type:"paren",value:A,output:R.parens?")":"\\)"}),Ae("parens");continue}if(A==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Vn("closing","]"));A=`\\${A}`}else ae("brackets");K({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){K({type:"text",value:A,output:`\\${A}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Vn("opening","["));K({type:"text",value:A,output:`\\${A}`});continue}Ae("brackets");let B=x.value.slice(1);if(x.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(A=`/${A}`),x.value+=A,le({value:A}),r.literalBrackets===!1||mt.hasRegexChars(B))continue;let d=mt.escapeRegex(x.value);if(R.output=R.output.slice(0,-x.value.length),r.literalBrackets===!0){R.output+=d,x.value=d;continue}x.value=`(${a}${d}|${x.value})`,R.output+=x.value;continue}if(A==="{"&&r.nobrace!==!0){ae("braces");let B={type:"brace",value:A,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};oe.push(B),K(B);continue}if(A==="}"){let B=oe[oe.length-1];if(r.nobrace===!0||!B){K({type:"text",value:A,output:A});continue}let d=")";if(B.dots===!0){let v=o.slice(),y=[];for(let O=v.length-1;O>=0&&(o.pop(),v[O].type!=="brace");O--)v[O].type!=="dots"&&y.unshift(v[O].value);d=bO(y,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let v=R.output.slice(0,B.outputIndex),y=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",A=d="\\}",R.output=v;for(let O of y)R.output+=O.output||O.value}K({type:"brace",value:A,output:d}),Ae("braces"),oe.pop();continue}if(A==="|"){ce.length>0&&ce[ce.length-1].conditions++,K({type:"text",value:A});continue}if(A===","){let B=A,d=oe[oe.length-1];d&&st[st.length-1]==="braces"&&(d.comma=!0,B="|"),K({type:"comma",value:A,output:B});continue}if(A==="/"){if(x.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),x=s;continue}K({type:"slash",value:A,output:g});continue}if(A==="."){if(R.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let B=oe[oe.length-1];x.type="dots",x.output+=A,x.value+=A,B.dots=!0;continue}if(R.braces+R.parens===0&&x.type!=="bos"&&x.type!=="slash"){K({type:"text",value:A,output:f});continue}K({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){et("qmark",A);continue}if(x&&x.type==="paren"){let d=S(),v=A;if(d==="<"&&!mt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test(G()))&&(v=`\\${A}`),K({type:"text",value:A,output:v});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){K({type:"qmark",value:A,output:W});continue}K({type:"qmark",value:A,output:N});continue}if(A==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){et("negate",A);continue}if(r.nonegate!==!0&&R.index===0){Oe();continue}}if(A==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){et("plus",A);continue}if(x&&x.value==="("||r.regex===!1){K({type:"plus",value:A,output:h});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||R.parens>0){K({type:"plus",value:A});continue}K({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){K({type:"at",extglob:!0,value:A,output:""});continue}K({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let B=yO.exec(G());B&&(A+=B[0],R.index+=B[0].length),K({type:"text",value:A});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=A,x.output=ve,R.backtrack=!0,R.globstar=!0,q(A);continue}let I=G();if(r.noextglob!==!0&&/^\([^?]/.test(I)){et("star",A);continue}if(x.type==="star"){if(r.noglobstar===!0){q(A);continue}let B=x.prev,d=B.prev,v=B.type==="slash"||B.type==="bos",y=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!v||I[0]&&I[0]!=="/")){K({type:"star",value:A,output:""});continue}let O=R.braces>0&&(B.type==="comma"||B.type==="brace"),H=ce.length&&(B.type==="pipe"||B.type==="paren");if(!v&&B.type!=="paren"&&!O&&!H){K({type:"star",value:A,output:""});continue}for(;I.slice(0,3)==="/**";){let j=e[R.index+4];if(j&&j!=="/")break;I=I.slice(3),q("/**",3)}if(B.type==="bos"&&F()){x.type="globstar",x.value+=A,x.output=z(r),R.output=x.output,R.globstar=!0,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!y&&F()){R.output=R.output.slice(0,-(B.output+x.output).length),B.output=`(?:${B.output}`,x.type="globstar",x.output=z(r)+(r.strictSlashes?")":"|$)"),x.value+=A,R.globstar=!0,R.output+=B.output+x.output,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let j=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+x.output).length),B.output=`(?:${B.output}`,x.type="globstar",x.output=`${z(r)}${g}|${g}${j})`,x.value+=A,R.output+=B.output+x.output,R.globstar=!0,q(A+k()),K({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){x.type="globstar",x.value+=A,x.output=`(?:^|${g}|${z(r)}${g})`,R.output=x.output,R.globstar=!0,q(A+k()),K({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-x.output.length),x.type="globstar",x.output=z(r),x.value+=A,R.output+=x.output,R.globstar=!0,q(A);continue}let he={type:"star",value:A,output:ve};if(r.bash===!0){he.output=".*?",(x.type==="bos"||x.type==="slash")&&(he.output=Y+he.output),K(he);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){he.output=A,K(he);continue}(R.index===R.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(R.output+=w,x.output+=w):r.dot===!0?(R.output+=C,x.output+=C):(R.output+=Y,x.output+=Y),S()!=="*"&&(R.output+=b,x.output+=b)),K(he)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing","]"));R.output=mt.escapeLast(R.output,"["),Ae("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing",")"));R.output=mt.escapeLast(R.output,"("),Ae("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing","}"));R.output=mt.escapeLast(R.output,"{"),Ae("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${g}?`}),R.backtrack===!0){R.output="";for(let I of R.tokens)R.output+=I.output!=null?I.output:I.value,I.suffix&&(R.output+=I.suffix)}return R};Ll.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Go,r.maxLength):Go,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=c1[e]||e;let s=mt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:b}=Uo.globChars(s),_=r.dot?f:l,p=r.dot?h:l,w=r.capture?"":"?:",C={negated:!1,prefix:""},N=r.bash===!0?".*?":g;r.capture&&(N=`(${N})`);let W=Y=>Y.noglobstar===!0?N:`(${w}(?:(?!${b}${Y.dot?c:o}).)*?)`,M=Y=>{switch(Y){case"*":return`${_}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${_}${N}${o}${u}${N}`;case"*/*":return`${_}${N}${a}${u}${p}${N}`;case"**":return _+W(r);case"**/*":return`(?:${_}${W(r)}${a})?${p}${u}${N}`;case"**/*.*":return`(?:${_}${W(r)}${a})?${p}${N}${o}${u}${N}`;case"**/.*":return`(?:${_}${W(r)}${a})?${o}${u}${N}`;default:{let ee=/^(.*?)\.(\w+)$/.exec(Y);if(!ee)return;let ve=M(ee[1]);return ve?ve+o+ee[2]:void 0}}},X=mt.removePrefix(e,C),z=M(X);return z&&r.strictSlashes!==!0&&(z+=`${a}?`),z};l1.exports=Ll});var d1=m((Uq,h1)=>{"use strict";var EO=require("path"),wO=u1(),Nl=f1(),Ml=_s(),vO=ys(),AO=e=>e&&typeof e=="object"&&!Array.isArray(e),Ce=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(h=>Ce(h,t,r));return h=>{for(let g of l){let b=g(h);if(b)return b}return!1}}let n=AO(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Ml.isWindows(t),o=n?Ce.compileRe(e,t):Ce.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=Ce(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:g,output:b}=Ce.test(l,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:l,output:b,match:g,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,f?_:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(c.state=a),c};Ce.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Ml.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(e,t,r,n=Ml.isWindows(r))=>(t instanceof RegExp?t:Ce.makeRe(t,r)).test(EO.basename(e));Ce.isMatch=(e,t,r)=>Ce(t,r)(e);Ce.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ce.parse(r,t)):Nl(e,{...t,fastpaths:!1});Ce.scan=(e,t)=>wO(e,t);Ce.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,t);return n===!0&&(u.state=e),u};Ce.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Nl.fastpaths(e,t)),i.output||(i=Nl(e,t)),Ce.compileRe(i,t,r,n)};Ce.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Ce.constants=vO;h1.exports=Ce});var m1=m((Gq,p1)=>{"use strict";p1.exports=d1()});var E1=m((Wq,b1)=>{"use strict";var y1=require("util"),_1=Ky(),zt=m1(),ql=_s(),g1=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let f=zt(String(t[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let g of e){let b=f(g,!0);(h?!b.isMatch:b.isMatch)&&(h?n.add(b.output):(n.delete(b.output),i.add(b.output)))}}let c=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>zt(e,t);be.isMatch=(e,t,r)=>zt(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(be(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${y1.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>be.contains(e,n,r));if(typeof t=="string"){if(g1(e)||g1(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return be.isMatch(e,t,{...r,contains:!0})};be.matchKeys=(e,t,r)=>{if(!ql.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=be(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};be.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};be.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${y1.inspect(e)}"`);return[].concat(t).every(n=>zt(n,r)(e))};be.capture=(e,t,r)=>{let n=ql.isWindows(r),s=zt.makeRe(String(e),{...r,capture:!0}).exec(n?ql.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};be.makeRe=(...e)=>zt.makeRe(...e);be.scan=(...e)=>zt.scan(...e);be.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of _1(String(n),t))r.push(zt.parse(i,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:_1(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};b1.exports=be});var R1=m(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.matchAny=J.convertPatternsToRe=J.makeRe=J.getPatternParts=J.expandBraceExpansion=J.expandPatternsWithBraceExpansion=J.isAffectDepthOfReadingPattern=J.endsWithSlashGlobStar=J.hasGlobStar=J.getBaseDirectory=J.isPatternRelatedToParentDirectory=J.getPatternsOutsideCurrentDirectory=J.getPatternsInsideCurrentDirectory=J.getPositivePatterns=J.getNegativePatterns=J.isPositivePattern=J.isNegativePattern=J.convertToNegativePattern=J.convertToPositivePattern=J.isDynamicPattern=J.isStaticPattern=void 0;var DO=require("path"),xO=hy(),jl=E1(),w1="**",CO="\\",SO=/[*?]|^!/,RO=/\[[^[]*]/,FO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,TO=/[!*+?@]\([^(]*\)/,OO=/,|\.\./;function v1(e,t={}){return!A1(e,t)}J.isStaticPattern=v1;function A1(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(CO)||SO.test(e)||RO.test(e)||FO.test(e)||t.extglob!==!1&&TO.test(e)||t.braceExpansion!==!1&&kO(e))}J.isDynamicPattern=A1;function kO(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return OO.test(n)}function PO(e){return Wo(e)?e.slice(1):e}J.convertToPositivePattern=PO;function BO(e){return"!"+e}J.convertToNegativePattern=BO;function Wo(e){return e.startsWith("!")&&e[1]!=="("}J.isNegativePattern=Wo;function D1(e){return!Wo(e)}J.isPositivePattern=D1;function IO(e){return e.filter(Wo)}J.getNegativePatterns=IO;function LO(e){return e.filter(D1)}J.getPositivePatterns=LO;function NO(e){return e.filter(t=>!Hl(t))}J.getPatternsInsideCurrentDirectory=NO;function MO(e){return e.filter(Hl)}J.getPatternsOutsideCurrentDirectory=MO;function Hl(e){return e.startsWith("..")||e.startsWith("./..")}J.isPatternRelatedToParentDirectory=Hl;function qO(e){return xO(e,{flipBackslashes:!1})}J.getBaseDirectory=qO;function jO(e){return e.includes(w1)}J.hasGlobStar=jO;function x1(e){return e.endsWith("/"+w1)}J.endsWithSlashGlobStar=x1;function HO(e){let t=DO.basename(e);return x1(e)||v1(t)}J.isAffectDepthOfReadingPattern=HO;function $O(e){return e.reduce((t,r)=>t.concat(C1(r)),[])}J.expandPatternsWithBraceExpansion=$O;function C1(e){return jl.braces(e,{expand:!0,nodupes:!0})}J.expandBraceExpansion=C1;function UO(e,t){let{parts:r}=jl.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}J.getPatternParts=UO;function S1(e,t){return jl.makeRe(e,t)}J.makeRe=S1;function GO(e,t){return e.map(r=>S1(r,t))}J.convertPatternsToRe=GO;function WO(e,t){return t.some(r=>r.test(e))}J.matchAny=WO});var k1=m((Vq,O1)=>{"use strict";var zO=require("stream"),F1=zO.PassThrough,VO=Array.prototype.slice;O1.exports=YO;function YO(){let e=[],t=VO.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=F1(n);function a(){for(let l=0,f=arguments.length;l<f;l++)e.push(T1(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,u())}function g(b){function _(){b.removeListener("merge2UnpipeEnd",_),b.removeListener("end",_),s&&b.removeListener("error",p),h()}function p(w){o.emit("error",w)}if(b._readableState.endEmitted)return h();b.on("merge2UnpipeEnd",_),b.on("end",_),s&&b.on("error",p),b.pipe(o,{end:!1}),b.resume()}for(let b=0;b<l.length;b++)g(l[b]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function T1(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=T1(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(F1(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var B1=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.merge=void 0;var KO=k1();function XO(e){let t=KO(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>P1(e)),t.once("end",()=>P1(e)),t}zo.merge=XO;function P1(e){e.forEach(t=>t.emit("close"))}});var I1=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.isEmpty=Yn.isString=void 0;function JO(e){return typeof e=="string"}Yn.isString=JO;function ZO(e){return e===""}Yn.isEmpty=ZO});var hr=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.string=We.stream=We.pattern=We.path=We.fs=We.errno=We.array=void 0;var QO=ry();We.array=QO;var ek=ny();We.errno=ek;var tk=iy();We.fs=tk;var rk=sy();We.path=rk;var nk=R1();We.pattern=nk;var ik=B1();We.stream=ik;var sk=I1();We.string=sk});var M1=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var dr=hr();function ok(e,t){let r=L1(e),n=N1(e,t.ignore),i=r.filter(u=>dr.pattern.isStaticPattern(u,t)),s=r.filter(u=>dr.pattern.isDynamicPattern(u,t)),o=$l(i,n,!1),a=$l(s,n,!0);return o.concat(a)}ze.generate=ok;function $l(e,t,r){let n=[],i=dr.pattern.getPatternsOutsideCurrentDirectory(e),s=dr.pattern.getPatternsInsideCurrentDirectory(e),o=Ul(i),a=Ul(s);return n.push(...Gl(o,t,r)),"."in a?n.push(Wl(".",s,t,r)):n.push(...Gl(a,t,r)),n}ze.convertPatternsToTasks=$l;function L1(e){return dr.pattern.getPositivePatterns(e)}ze.getPositivePatterns=L1;function N1(e,t){return dr.pattern.getNegativePatterns(e).concat(t).map(dr.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=N1;function Ul(e){let t={};return e.reduce((r,n)=>{let i=dr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ze.groupPatternsByBaseDirectory=Ul;function Gl(e,t,r){return Object.keys(e).map(n=>Wl(n,e[n],t,r))}ze.convertPatternGroupsToTasks=Gl;function Wl(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(dr.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Wl});var j1=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.removeDuplicateSlashes=Kn.transform=void 0;var ak=/(?!^)\/{2,}/g;function uk(e){return e.map(t=>q1(t))}Kn.transform=uk;function q1(e){return e.replace(ak,"/")}Kn.removeDuplicateSlashes=q1});var $1=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.read=void 0;function ck(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){H1(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){zl(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){H1(r,s);return}zl(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),zl(r,o)})})}Vo.read=ck;function H1(e,t){e(t)}function zl(e,t){e(null,t)}});var U1=m(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.read=void 0;function lk(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Yo.read=lk});var G1=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.createFileSystemAdapter=Lr.FILE_SYSTEM_ADAPTER=void 0;var Ko=require("fs");Lr.FILE_SYSTEM_ADAPTER={lstat:Ko.lstat,stat:Ko.stat,lstatSync:Ko.lstatSync,statSync:Ko.statSync};function fk(e){return e===void 0?Lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Lr.FILE_SYSTEM_ADAPTER),e)}Lr.createFileSystemAdapter=fk});var W1=m(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var hk=G1(),Vl=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=hk.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};Yl.default=Vl});var gn=m(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.statSync=Nr.stat=Nr.Settings=void 0;var z1=$1(),dk=U1(),Kl=W1();Nr.Settings=Kl.default;function pk(e,t,r){if(typeof t=="function"){z1.read(e,Xl(),t);return}z1.read(e,Xl(t),r)}Nr.stat=pk;function mk(e,t){let r=Xl(t);return dk.read(e,r)}Nr.statSync=mk;function Xl(e={}){return e instanceof Kl.default?e:new Kl.default(e)}});var K1=m((i7,Y1)=>{var V1;Y1.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(V1||(V1=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var J1=m((s7,X1)=>{X1.exports=yk;var gk=K1();function yk(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?gk(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,l){a(u,c,l)})}):e.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var Jl=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Xo=process.versions.node.split(".");if(Xo[0]===void 0||Xo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Z1=Number.parseInt(Xo[0],10),_k=Number.parseInt(Xo[1],10),Q1=10,bk=10,Ek=Z1>Q1,wk=Z1===Q1&&_k>=bk;Jo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Ek||wk});var e_=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.createDirentFromStats=void 0;var Zl=class{constructor(t,r){this.name=t,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 vk(e,t){return new Zl(e,t)}Zo.createDirentFromStats=vk});var Ql=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.fs=void 0;var Ak=e_();Qo.fs=Ak});var ef=m(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.joinPathSegments=void 0;function Dk(e,t,r){return e.endsWith(r)?e+t:e+r+t}ea.joinPathSegments=Dk});var o_=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.readdir=Mr.readdirWithFileTypes=Mr.read=void 0;var xk=gn(),t_=J1(),Ck=Jl(),r_=Ql(),n_=ef();function Sk(e,t,r){if(!t.stats&&Ck.IS_SUPPORT_READDIR_WITH_FILE_TYPES){i_(e,t,r);return}s_(e,t,r)}Mr.read=Sk;function i_(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){ta(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:n_.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){tf(r,s);return}let o=s.map(a=>Rk(a,t));t_(o,(a,u)=>{if(a!==null){ta(r,a);return}tf(r,u)})})}Mr.readdirWithFileTypes=i_;function Rk(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=r_.fs.createDirentFromStats(e.name,i),r(null,e)})}}function s_(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){ta(r,n);return}let s=i.map(o=>{let a=n_.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{xk.stat(a,t.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:r_.fs.createDirentFromStats(o,l)};t.stats&&(f.stats=l),u(null,f)})}});t_(s,(o,a)=>{if(o!==null){ta(r,o);return}tf(r,a)})})}Mr.readdir=s_;function ta(e,t){e(t)}function tf(e,t){e(null,t)}});var f_=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.readdir=qr.readdirWithFileTypes=qr.read=void 0;var Fk=gn(),Tk=Jl(),a_=Ql(),u_=ef();function Ok(e,t){return!t.stats&&Tk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?c_(e,t):l_(e,t)}qr.read=Ok;function c_(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:u_.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=a_.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qr.readdirWithFileTypes=c_;function l_(e,t){return t.fs.readdirSync(e).map(n=>{let i=u_.joinPathSegments(e,n,t.pathSegmentSeparator),s=Fk.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:a_.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qr.readdir=l_});var h_=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.createFileSystemAdapter=jr.FILE_SYSTEM_ADAPTER=void 0;var Xn=require("fs");jr.FILE_SYSTEM_ADAPTER={lstat:Xn.lstat,stat:Xn.stat,lstatSync:Xn.lstatSync,statSync:Xn.statSync,readdir:Xn.readdir,readdirSync:Xn.readdirSync};function kk(e){return e===void 0?jr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jr.FILE_SYSTEM_ADAPTER),e)}jr.createFileSystemAdapter=kk});var d_=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var Pk=require("path"),Bk=gn(),Ik=h_(),rf=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Ik.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Pk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Bk.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};nf.default=rf});var ra=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Settings=Hr.scandirSync=Hr.scandir=void 0;var p_=o_(),Lk=f_(),sf=d_();Hr.Settings=sf.default;function Nk(e,t,r){if(typeof t=="function"){p_.read(e,of(),t);return}p_.read(e,of(t),r)}Hr.scandir=Nk;function Mk(e,t){let r=of(t);return Lk.read(e,r)}Hr.scandirSync=Mk;function of(e={}){return e instanceof sf.default?e:new sf.default(e)}});var g_=m((m7,m_)=>{"use strict";function qk(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}m_.exports=qk});var __=m((g7,af)=>{"use strict";var jk=g_();function y_(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=jk(Hk),i=null,s=null,o=0,a=null,u={push:_,drain:vt,saturated:vt,pause:l,paused:!1,concurrency:r,running:c,resume:g,idle:b,length:f,getQueue:h,unshift:p,empty:vt,kill:C,killAndDrain:N,error:W};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var M=i,X=0;M;)M=M.next,X++;return X}function h(){for(var M=i,X=[];M;)X.push(M.value),M=M.next;return X}function g(){if(u.paused){u.paused=!1;for(var M=0;M<u.concurrency;M++)o++,w()}}function b(){return o===0&&u.length()===0}function _(M,X){var z=n.get();z.context=e,z.release=w,z.value=M,z.callback=X||vt,z.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=z,s=z):(i=z,s=z,u.saturated()):(o++,t.call(e,z.value,z.worked))}function p(M,X){var z=n.get();z.context=e,z.release=w,z.value=M,z.callback=X||vt,o===u.concurrency||u.paused?i?(z.next=i,i=z):(i=z,s=z,u.saturated()):(o++,t.call(e,z.value,z.worked))}function w(M){M&&n.release(M);var X=i;X?u.paused?o--:(s===i&&(s=null),i=X.next,X.next=null,t.call(e,X.value,X.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){i=null,s=null,u.drain=vt}function N(){i=null,s=null,u.drain(),u.drain=vt}function W(M){a=M}}function vt(){}function Hk(){this.value=null,this.callback=vt,this.next=null,this.release=vt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=vt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function $k(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,f){t.call(this,l).then(function(h){f(null,h)},f)}var i=y_(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var f=new Promise(function(h,g){s(l,function(b,_){if(b){g(b);return}h(_)})});return f.catch(vt),f}function u(l){var f=new Promise(function(h,g){o(l,function(b,_){if(b){g(b);return}h(_)})});return f.catch(vt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}af.exports=y_;af.exports.promise=$k});var na=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.joinPathSegments=Vt.replacePathSegmentSeparator=Vt.isAppliedFilter=Vt.isFatalError=void 0;function Uk(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Vt.isFatalError=Uk;function Gk(e,t){return e===null||e(t)}Vt.isAppliedFilter=Gk;function Wk(e,t){return e.split(/[/\\]/).join(t)}Vt.replacePathSegmentSeparator=Wk;function zk(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Vt.joinPathSegments=zk});var lf=m(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var Vk=na(),uf=class{constructor(t,r){this._root=t,this._settings=r,this._root=Vk.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};cf.default=uf});var df=m(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var Yk=require("events"),Kk=ra(),Xk=__(),ia=na(),Jk=lf(),ff=class extends Jk.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Kk.scandir,this._emitter=new Yk.EventEmitter,this._queue=Xk(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!ia.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=ia.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ia.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&ia.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};hf.default=ff});var b_=m(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var Zk=df(),pf=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Zk.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Qk(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{eP(t,this._storage)}),this._reader.read()}};mf.default=pf;function Qk(e,t){e(t)}function eP(e,t){e(null,t)}});var E_=m(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var tP=require("stream"),rP=df(),gf=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new rP.default(this._root,this._settings),this._stream=new tP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};yf.default=gf});var w_=m(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var nP=ra(),sa=na(),iP=lf(),_f=class extends iP.default{constructor(){super(...arguments),this._scandir=nP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(sa.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=sa.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),sa.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&sa.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};bf.default=_f});var v_=m(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var sP=w_(),Ef=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sP.default(this._root,this._settings)}read(){return this._reader.read()}};wf.default=Ef});var A_=m(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var oP=require("path"),aP=ra(),vf=class{constructor(t={}){this._options=t,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,oP.sep),this.fsScandirSettings=new aP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};Af.default=vf});var aa=m(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.Settings=Yt.walkStream=Yt.walkSync=Yt.walk=void 0;var D_=b_(),uP=E_(),cP=v_(),Df=A_();Yt.Settings=Df.default;function lP(e,t,r){if(typeof t=="function"){new D_.default(e,oa()).read(t);return}new D_.default(e,oa(t)).read(r)}Yt.walk=lP;function fP(e,t){let r=oa(t);return new cP.default(e,r).read()}Yt.walkSync=fP;function hP(e,t){let r=oa(t);return new uP.default(e,r).read()}Yt.walkStream=hP;function oa(e={}){return e instanceof Df.default?e:new Df.default(e)}});var ua=m(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var dP=require("path"),pP=gn(),x_=hr(),xf=class{constructor(t){this._settings=t,this._fsStatSettings=new pP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return dP.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:x_.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!x_.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Cf.default=xf});var Ff=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var mP=require("stream"),gP=gn(),yP=aa(),_P=ua(),Sf=class extends _P.default{constructor(){super(...arguments),this._walkStream=yP.walkStream,this._stat=gP.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new mP.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Rf.default=Sf});var C_=m(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var bP=aa(),EP=ua(),wP=Ff(),Tf=class extends EP.default{constructor(){super(...arguments),this._walkAsync=bP.walk,this._readerStream=new wP.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Of.default=Tf});var S_=m(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});var Jn=hr(),kf=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Jn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Jn.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Jn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Jn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Jn.array.splitWhen(t,r=>r.dynamic&&Jn.pattern.hasGlobStar(r.pattern))}};Pf.default=kf});var R_=m(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var vP=S_(),Bf=class extends vP.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};If.default=Bf});var F_=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var ca=hr(),AP=R_(),Lf=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new AP.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(ca.pattern.isAffectDepthOfReadingPattern);return ca.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=ca.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!ca.pattern.matchAny(t,r)}};Nf.default=Lf});var T_=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var yn=hr(),Mf=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=yn.pattern.convertPatternsToRe(t,this._micromatchOptions),i=yn.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=yn.path.makeAbsolute(this._settings.cwd,t);return yn.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=yn.path.removeLeadingDotSegment(t),s=yn.pattern.matchAny(i,r);return!s&&n?yn.pattern.matchAny(i+"/",r):s}};qf.default=Mf});var O_=m(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var DP=hr(),jf=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return DP.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Hf.default=jf});var P_=m(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var k_=hr(),$f=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=k_.path.makeAbsolute(this._settings.cwd,r),r=k_.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Uf.default=$f});var la=m(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var xP=require("path"),CP=F_(),SP=T_(),RP=O_(),FP=P_(),Gf=class{constructor(t){this._settings=t,this.errorFilter=new RP.default(this._settings),this.entryFilter=new SP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new CP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new FP.default(this._settings)}_getRootDirectory(t){return xP.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};Wf.default=Gf});var B_=m(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var TP=C_(),OP=la(),zf=class extends OP.default{constructor(){super(...arguments),this._reader=new TP.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Vf.default=zf});var I_=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var kP=require("stream"),PP=Ff(),BP=la(),Yf=class extends BP.default{constructor(){super(...arguments),this._reader=new PP.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new kP.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Kf.default=Yf});var L_=m(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var IP=gn(),LP=aa(),NP=ua(),Xf=class extends NP.default{constructor(){super(...arguments),this._walkSync=LP.walkSync,this._statSync=IP.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Jf.default=Xf});var N_=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var MP=L_(),qP=la(),Zf=class extends qP.default{constructor(){super(...arguments),this._reader=new MP.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Qf.default=Zf});var M_=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Zn=require("fs"),jP=require("os"),HP=Math.max(jP.cpus().length,1);Qn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Zn.lstat,lstatSync:Zn.lstatSync,stat:Zn.stat,statSync:Zn.statSync,readdir:Zn.readdir,readdirSync:Zn.readdirSync};var eh=class{constructor(t={}){this._options=t,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,HP),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Qn.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Qn.default=eh});var $_=m((H7,H_)=>{"use strict";var q_=M1(),j_=j1(),$P=B_(),UP=I_(),GP=N_(),th=M_(),_n=hr();async function rh(e,t){ei(e);let r=nh(e,$P.default,t),n=await Promise.all(r);return _n.array.flatten(n)}(function(e){function t(o,a){ei(o);let u=nh(o,GP.default,a);return _n.array.flatten(u)}e.sync=t;function r(o,a){ei(o);let u=nh(o,UP.default,a);return _n.stream.merge(u)}e.stream=r;function n(o,a){ei(o);let u=j_.transform([].concat(o)),c=new th.default(a);return q_.generate(u,c)}e.generateTasks=n;function i(o,a){ei(o);let u=new th.default(a);return _n.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return ei(o),_n.path.escape(o)}e.escapePath=s})(rh||(rh={}));function nh(e,t,r){let n=j_.transform([].concat(e)),i=new th.default(r),s=q_.generate(n,i),o=new t(i);return s.map(o.read,o)}function ei(e){if(![].concat(e).every(n=>_n.string.isString(n)&&!_n.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}H_.exports=rh});var G_=m(($7,U_)=>{"use strict";U_.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]}});var ih=m((U7,z_)=>{var Es=G_(),W_={};for(let e of Object.keys(Es))W_[Es[e]]=e;var $={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"]}};z_.exports=$;for(let e of Object.keys($)){if(!("channels"in $[e]))throw new Error("missing channels property: "+e);if(!("labels"in $[e]))throw new Error("missing channel labels property: "+e);if($[e].labels.length!==$[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=$[e];delete $[e].channels,delete $[e].labels,Object.defineProperty($[e],"channels",{value:t}),Object.defineProperty($[e],"labels",{value:r})}$.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};$.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),f=function(h){return(c-h)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,t=f(o),r=f(a),n=f(u),o===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};$.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=$.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};$.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function WP(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}$.rgb.keyword=function(e){let t=W_[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Es)){let s=Es[i],o=WP(e,s);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return Es[e]};$.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};$.rgb.lab=function(e){let t=$.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};$.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[c]=o*255;return u};$.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};$.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};$.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};$.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let u=r+s*(a-r),c,l,f;switch(o){default:case 6:case 0:c=a,l=u,f=r;break;case 1:c=u,l=a,f=r;break;case 2:c=r,l=a,f=u;break;case 3:c=r,l=u,f=a;break;case 4:c=u,l=r,f=a;break;case 5:c=a,l=r,f=u;break}return[c*255,l*255,f*255]};$.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};$.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};$.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};$.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};$.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};$.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};$.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?$.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};$.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};$.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};$.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};$.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};$.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};$.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};$.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};$.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};$.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};$.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};$.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=function(e){return[0,0,e[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Y_=m((G7,V_)=>{var fa=ih();function zP(){let e={},t=Object.keys(fa);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function VP(e){let t=zP(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(fa[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function YP(e,t){return function(r){return t(e(r))}}function KP(e,t){let r=[t[e].parent,e],n=fa[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=YP(fa[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}V_.exports=function(e){let t=VP(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=KP(o,t))}return r}});var X_=m((W7,K_)=>{var sh=ih(),XP=Y_(),ti={},JP=Object.keys(sh);function ZP(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function QP(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}JP.forEach(e=>{ti[e]={},Object.defineProperty(ti[e],"channels",{value:sh[e].channels}),Object.defineProperty(ti[e],"labels",{value:sh[e].labels});let t=XP(e);Object.keys(t).forEach(n=>{let i=t[n];ti[e][n]=QP(i),ti[e][n].raw=ZP(i)})});K_.exports=ti});var ah=m((z7,tb)=>{"use strict";var J_=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Z_=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Q_=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},ha=e=>e,eb=(e,t,r)=>[e,t,r],ri=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},oh,ni=(e,t,r,n)=>{oh===void 0&&(oh=X_());let i=n?10:0,s={};for(let[o,a]of Object.entries(oh)){let u=o==="ansi16"?"ansi":o;o===t?s[u]=e(r,i):typeof a=="object"&&(s[u]=e(a[t],i))}return s};function e3(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ri(t.color,"ansi",()=>ni(J_,"ansi16",ha,!1)),ri(t.color,"ansi256",()=>ni(Z_,"ansi256",ha,!1)),ri(t.color,"ansi16m",()=>ni(Q_,"rgb",eb,!1)),ri(t.bgColor,"ansi",()=>ni(J_,"ansi16",ha,!0)),ri(t.bgColor,"ansi256",()=>ni(Z_,"ansi256",ha,!0)),ri(t.bgColor,"ansi16m",()=>ni(Q_,"rgb",eb,!0)),t}Object.defineProperty(tb,"exports",{enumerable:!0,get:e3})});var nb=m((V7,rb)=>{"use strict";rb.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var lh=m((Y7,sb)=>{"use strict";var t3=require("os"),ib=require("tty"),At=nb(),{env:Ie}=process,$r;At("no-color")||At("no-colors")||At("color=false")||At("color=never")?$r=0:(At("color")||At("colors")||At("color=true")||At("color=always"))&&($r=1);"FORCE_COLOR"in Ie&&(Ie.FORCE_COLOR==="true"?$r=1:Ie.FORCE_COLOR==="false"?$r=0:$r=Ie.FORCE_COLOR.length===0?1:Math.min(parseInt(Ie.FORCE_COLOR,10),3));function uh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ch(e,t){if($r===0)return 0;if(At("color=16m")||At("color=full")||At("color=truecolor"))return 3;if(At("color=256"))return 2;if(e&&!t&&$r===void 0)return 0;let r=$r||0;if(Ie.TERM==="dumb")return r;if(process.platform==="win32"){let n=t3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ie)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ie)||Ie.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ie.TEAMCITY_VERSION)?1:0;if(Ie.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ie){let n=parseInt((Ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ie.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ie.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ie.TERM)||"COLORTERM"in Ie?1:r}function r3(e){let t=ch(e,e&&e.isTTY);return uh(t)}sb.exports={supportsColor:r3,stdout:uh(ch(!0,ib.isatty(1))),stderr:uh(ch(!0,ib.isatty(2)))}});var ab=m((K7,ob)=>{"use strict";var n3=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},i3=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
2
|
+
"use strict";var GS=Object.create;var Mc=Object.defineProperty;var WS=Object.getOwnPropertyDescriptor;var zS=Object.getOwnPropertyNames;var VS=Object.getPrototypeOf,YS=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KS=(e,t)=>{for(var r in t)Mc(e,r,{get:t[r],enumerable:!0})},XS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zS(t))!YS.call(e,i)&&i!==r&&Mc(e,i,{get:()=>t[i],enumerable:!(n=WS(t,i))||n.enumerable});return e};var re=(e,t,r)=>(r=e!=null?GS(VS(e)):{},XS(t||!e||!e.__esModule?Mc(r,"default",{value:e,enumerable:!0}):r,e));var xm=m((O9,ir)=>{function qc(e){return ir.exports=qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir.exports.__esModule=!0,ir.exports.default=ir.exports,qc(e)}ir.exports=qc,ir.exports.__esModule=!0,ir.exports.default=ir.exports});var Rm=m((k9,sr)=>{var Cm=xm().default;function Sm(){"use strict";sr.exports=Sm=function(){return t},sr.exports.__esModule=!0,sr.exports.default=sr.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(A,F,S){A[F]=S.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(A,F,S){return Object.defineProperty(A,F,{value:S,enumerable:!0,configurable:!0,writable:!0}),A[F]}try{c({},"")}catch{c=function(S,k,G){return S[k]=G}}function l(A,F,S,k){var G=F&&F.prototype instanceof w?F:w,q=Object.create(G.prototype),le=new st(k||[]);return i(q,"_invoke",{value:ve(A,S,le)}),q}function f(A,F,S){try{return{type:"normal",arg:A.call(F,S)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var h="suspendedStart",g="suspendedYield",b="executing",_="completed",p={};function w(){}function C(){}function N(){}var W={};c(W,o,function(){return this});var M=Object.getPrototypeOf,X=M&&M(M(x([])));X&&X!==r&&n.call(X,o)&&(W=X);var z=N.prototype=w.prototype=Object.create(W);function Y(A){["next","throw","return"].forEach(function(F){c(A,F,function(S){return this._invoke(F,S)})})}function ee(A,F){function S(G,q,le,Oe){var ae=f(A[G],A,q);if(ae.type!=="throw"){var Ae=ae.arg,K=Ae.value;return K&&Cm(K)=="object"&&n.call(K,"__await")?F.resolve(K.__await).then(function(et){S("next",et,le,Oe)},function(et){S("throw",et,le,Oe)}):F.resolve(K).then(function(et){Ae.value=et,le(Ae)},function(et){return S("throw",et,le,Oe)})}Oe(ae.arg)}var k;i(this,"_invoke",{value:function(q,le){function Oe(){return new F(function(ae,Ae){S(q,le,ae,Ae)})}return k=k?k.then(Oe,Oe):Oe()}})}function ve(A,F,S){var k=h;return function(G,q){if(k===b)throw new Error("Generator is already running");if(k===_){if(G==="throw")throw q;return{value:e,done:!0}}for(S.method=G,S.arg=q;;){var le=S.delegate;if(le){var Oe=R(le,S);if(Oe){if(Oe===p)continue;return Oe}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(k===h)throw k=_,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);k=b;var ae=f(A,F,S);if(ae.type==="normal"){if(k=S.done?_:g,ae.arg===p)continue;return{value:ae.arg,done:S.done}}ae.type==="throw"&&(k=_,S.method="throw",S.arg=ae.arg)}}}function R(A,F){var S=F.method,k=A.iterator[S];if(k===e)return F.delegate=null,S==="throw"&&A.iterator.return&&(F.method="return",F.arg=e,R(A,F),F.method==="throw")||S!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+S+"' method")),p;var G=f(k,A.iterator,F.arg);if(G.type==="throw")return F.method="throw",F.arg=G.arg,F.delegate=null,p;var q=G.arg;return q?q.done?(F[A.resultName]=q.value,F.next=A.nextLoc,F.method!=="return"&&(F.method="next",F.arg=e),F.delegate=null,p):q:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,p)}function ce(A){var F={tryLoc:A[0]};1 in A&&(F.catchLoc=A[1]),2 in A&&(F.finallyLoc=A[2],F.afterLoc=A[3]),this.tryEntries.push(F)}function oe(A){var F=A.completion||{};F.type="normal",delete F.arg,A.completion=F}function st(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(ce,this),this.reset(!0)}function x(A){if(A||A===""){var F=A[o];if(F)return F.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var S=-1,k=function G(){for(;++S<A.length;)if(n.call(A,S))return G.value=A[S],G.done=!1,G;return G.value=e,G.done=!0,G};return k.next=k}}throw new TypeError(Cm(A)+" is not iterable")}return C.prototype=N,i(z,"constructor",{value:N,configurable:!0}),i(N,"constructor",{value:C,configurable:!0}),C.displayName=c(N,u,"GeneratorFunction"),t.isGeneratorFunction=function(A){var F=typeof A=="function"&&A.constructor;return!!F&&(F===C||(F.displayName||F.name)==="GeneratorFunction")},t.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,N):(A.__proto__=N,c(A,u,"GeneratorFunction")),A.prototype=Object.create(z),A},t.awrap=function(A){return{__await:A}},Y(ee.prototype),c(ee.prototype,a,function(){return this}),t.AsyncIterator=ee,t.async=function(A,F,S,k,G){G===void 0&&(G=Promise);var q=new ee(l(A,F,S,k),G);return t.isGeneratorFunction(F)?q:q.next().then(function(le){return le.done?le.value:q.next()})},Y(z),c(z,u,"Generator"),c(z,o,function(){return this}),c(z,"toString",function(){return"[object Generator]"}),t.keys=function(A){var F=Object(A),S=[];for(var k in F)S.push(k);return S.reverse(),function G(){for(;S.length;){var q=S.pop();if(q in F)return G.value=q,G.done=!1,G}return G.done=!0,G}},t.values=x,st.prototype={constructor:st,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(oe),!F)for(var S in this)S.charAt(0)==="t"&&n.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var S=this;function k(Ae,K){return le.type="throw",le.arg=F,S.next=Ae,K&&(S.method="next",S.arg=e),!!K}for(var G=this.tryEntries.length-1;G>=0;--G){var q=this.tryEntries[G],le=q.completion;if(q.tryLoc==="root")return k("end");if(q.tryLoc<=this.prev){var Oe=n.call(q,"catchLoc"),ae=n.call(q,"finallyLoc");if(Oe&&ae){if(this.prev<q.catchLoc)return k(q.catchLoc,!0);if(this.prev<q.finallyLoc)return k(q.finallyLoc)}else if(Oe){if(this.prev<q.catchLoc)return k(q.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return k(q.finallyLoc)}}}},abrupt:function(F,S){for(var k=this.tryEntries.length-1;k>=0;--k){var G=this.tryEntries[k];if(G.tryLoc<=this.prev&&n.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var q=G;break}}q&&(F==="break"||F==="continue")&&q.tryLoc<=S&&S<=q.finallyLoc&&(q=null);var le=q?q.completion:{};return le.type=F,le.arg=S,q?(this.method="next",this.next=q.finallyLoc,p):this.complete(le)},complete:function(F,S){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&S&&(this.next=S),p},finish:function(F){for(var S=this.tryEntries.length-1;S>=0;--S){var k=this.tryEntries[S];if(k.finallyLoc===F)return this.complete(k.completion,k.afterLoc),oe(k),p}},catch:function(F){for(var S=this.tryEntries.length-1;S>=0;--S){var k=this.tryEntries[S];if(k.tryLoc===F){var G=k.completion;if(G.type==="throw"){var q=G.arg;oe(k)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(F,S,k){return this.delegate={iterator:x(F),resultName:S,nextLoc:k},this.method==="next"&&(this.arg=e),p}},t}sr.exports=Sm,sr.exports.__esModule=!0,sr.exports.default=sr.exports});var Tm=m((P9,Fm)=>{var Eo=Rm()();Fm.exports=Eo;try{regeneratorRuntime=Eo}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Eo:Function("r","regeneratorRuntime = r")(Eo)}});var km=m((tq,zc)=>{"use strict";var Om=(e,...t)=>new Promise(r=>{r(e(...t))});zc.exports=Om;zc.exports.default=Om});var Bm=m((rq,Vc)=>{"use strict";var JS=km(),Pm=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(a,u,...c)=>{r++;let l=JS(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<e?i(a,u,...c):t.push(i.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Vc.exports=Pm;Vc.exports.default=Pm});var Nm=m((nq,Yc)=>{"use strict";var Im=Bm(),wo=class extends Error{constructor(t){super(),this.value=t}},ZS=async(e,t)=>t(await e),QS=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new wo(t[0]);return!1},Lm=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Im(r.concurrency),i=[...e].map(o=>[o,n(ZS,o,t)]),s=Im(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(QS,o)))}catch(o){if(o instanceof wo)return o.value;throw o}};Yc.exports=Lm;Yc.exports.default=Lm});var Um=m((iq,Kc)=>{"use strict";var Mm=require("path"),vo=require("fs"),{promisify:qm}=require("util"),eR=Nm(),tR=qm(vo.stat),rR=qm(vo.lstat),jm={directory:"isDirectory",file:"isFile"};function Hm({type:e}){if(!(e in jm))throw new Error(`Invalid type specified: ${e}`)}var $m=(e,t)=>e===void 0||t[jm[e]]();Kc.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Hm(t);let r=t.allowSymlinks?tR:rR;return eR(e,async n=>{try{let i=await r(Mm.resolve(t.cwd,n));return $m(t.type,i)}catch{return!1}},t)};Kc.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Hm(t);let r=t.allowSymlinks?vo.statSync:vo.lstatSync;for(let n of e)try{let i=r(Mm.resolve(t.cwd,n));if($m(t.type,i))return n}catch{}}});var Wm=m((sq,Xc)=>{"use strict";var Gm=require("fs"),{promisify:nR}=require("util"),iR=nR(Gm.access);Xc.exports=async e=>{try{return await iR(e),!0}catch{return!1}};Xc.exports.sync=e=>{try{return Gm.accessSync(e),!0}catch{return!1}}});var Vm=m((oq,jn)=>{"use strict";var kr=require("path"),Ao=Um(),zm=Wm(),Jc=Symbol("findUp.stop");jn.exports=async(e,t={})=>{let r=kr.resolve(t.cwd||""),{root:n}=kr.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Ao(i,o);let a=await e(o.cwd);return typeof a=="string"?Ao([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Jc)return;if(o)return kr.resolve(r,o);if(r===n)return;r=kr.dirname(r)}};jn.exports.sync=(e,t={})=>{let r=kr.resolve(t.cwd||""),{root:n}=kr.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Ao.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Ao.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Jc)return;if(o)return kr.resolve(r,o);if(r===n)return;r=kr.dirname(r)}};jn.exports.exists=zm;jn.exports.sync.exists=zm.sync;jn.exports.stop=Jc});var ty=m(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.splitWhen=Wn.flatten=void 0;function U5(e){return e.reduce((t,r)=>[].concat(t,r),[])}Wn.flatten=U5;function G5(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}Wn.splitWhen=G5});var ry=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.isEnoentCodeError=void 0;function W5(e){return e.code==="ENOENT"}Lo.isEnoentCodeError=W5});var ny=m(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.createDirentFromStats=void 0;var wl=class{constructor(t,r){this.name=t,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 z5(e,t){return new wl(e,t)}No.createDirentFromStats=z5});var iy=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.removeLeadingDotSegment=Gt.escape=Gt.makeAbsolute=Gt.unixify=void 0;var V5=require("path"),Y5=2,K5=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function X5(e){return e.replace(/\\/g,"/")}Gt.unixify=X5;function J5(e,t){return V5.resolve(e,t)}Gt.makeAbsolute=J5;function Z5(e){return e.replace(K5,"\\$2")}Gt.escape=Z5;function Q5(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Y5)}return e}Gt.removeLeadingDotSegment=Q5});var oy=m((Cq,sy)=>{sy.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var cy=m((Sq,uy)=>{var eT=oy(),ay={"{":"}","(":")","[":"]"},tT=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=ay[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},rT=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=ay[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};uy.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(eT(t))return!0;var n=tT;return r&&r.strict===!1&&(n=rT),n(t)}});var fy=m((Rq,ly)=>{"use strict";var nT=cy(),iT=require("path").posix.dirname,sT=require("os").platform()==="win32",vl="/",oT=/\\/g,aT=/[\{\[].*[\}\]]$/,uT=/(^|[^\\])([\{\[]|\([^\)]+$)/,cT=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ly.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&sT&&t.indexOf(vl)<0&&(t=t.replace(oT,vl)),aT.test(t)&&(t+=vl),t+="a";do t=iT(t);while(nT(t)||uT.test(t));return t.replace(cT,"$1")}});var Mo=m(wt=>{"use strict";wt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;wt.find=(e,t)=>e.nodes.find(r=>r.type===t);wt.exceedsLimit=(e,t,r=1,n)=>n===!1||!wt.isInteger(e)||!wt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;wt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};wt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);wt.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;wt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;wt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);wt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var qo=m((Tq,dy)=>{"use strict";var hy=Mo();dy.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&hy.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&hy.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var my=m((Oq,py)=>{"use strict";py.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Dy=m((kq,Ay)=>{"use strict";var gy=my(),pn=(e,t,r)=>{if(gy(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(gy(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(pn.cache.hasOwnProperty(u))return pn.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=vy(e)||vy(t),h={min:e,max:t,a:c,b:l},g=[],b=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let _=l<0?Math.abs(l):1;b=yy(_,Math.abs(c),h,n),c=h.a=0}return l>=0&&(g=yy(c,l,h,n)),h.negatives=b,h.positives=g,h.result=lT(b,g,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&g.length+b.length>1&&(h.result=`(?:${h.result})`),pn.cache[u]=h,h.result};function lT(e,t,r){let n=Al(e,t,"-",!1,r)||[],i=Al(t,e,"",!1,r)||[],s=Al(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function fT(e,t){let r=1,n=1,i=by(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=by(e,r);for(i=Ey(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Ey(t+1,n)-1;return s=[...s],s.sort(pT),s}function hT(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=dT(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=mT(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function yy(e,t,r,n){let i=fT(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],l=hT(String(o),String(c),n),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+wy(a.count),o=c+1;continue}r.isPadded&&(f=gT(c,r,n)),l.string=f+l.pattern+wy(l.count),s.push(l),o=c+1,a=l}return s}function Al(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!_y(t,"string",a)&&s.push(r+a),n&&_y(t,"string",a)&&s.push(r+a)}return s}function dT(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function pT(e,t){return e>t?1:t>e?-1:0}function _y(e,t,r){return e.some(n=>n[t]===r)}function by(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ey(e,t){return e-e%Math.pow(10,t)}function wy(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function mT(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function vy(e){return/^-?(0+)\d/.test(e)}function gT(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.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}}`}}pn.cache={};pn.clearCache=()=>pn.cache={};Ay.exports=pn});var Cl=m((Pq,ky)=>{"use strict";var yT=require("util"),Sy=Dy(),xy=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),_T=e=>t=>e===!0?Number(t):String(t),Dl=e=>typeof e=="number"||typeof e=="string"&&e!=="",gs=e=>Number.isInteger(+e),xl=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},bT=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ET=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Cy=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},wT=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Ry=(e,t,r,n)=>{if(r)return Sy(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Fy=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Sy(e,t,r)},Ty=(...e)=>new RangeError("Invalid range arguments: "+yT.inspect(...e)),Oy=(e,t,r)=>{if(r.strictRanges===!0)throw Ty([e,t]);return[]},vT=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},AT=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ty([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=xl(a)||xl(u)||xl(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&bT(e,t,n)===!1,g=n.transform||_T(h);if(n.toRegex&&r===1)return Ry(Cy(e,f),Cy(t,f),!0,n);let b={negatives:[],positives:[]},_=C=>b[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],w=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):p.push(ET(g(i,w),f,h)),i=o?i-r:i+r,w++;return n.toRegex===!0?r>1?wT(b,n):Fy(p,null,{wrap:!1,...n}):p},DT=(e,t,r=1,n={})=>{if(!gs(e)&&e.length>1||!gs(t)&&t.length>1)return Oy(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Ry(u,c,!1,n);let l=[],f=0;for(;a?s>=o:s<=o;)l.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?Fy(l,null,{wrap:!1,options:n}):l},jo=(e,t,r,n={})=>{if(t==null&&Dl(e))return[e];if(!Dl(e)||!Dl(t))return Oy(e,t,n);if(typeof r=="function")return jo(e,t,1,{transform:r});if(xy(r))return jo(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,gs(r)?gs(e)&&gs(t)?AT(e,t,r,i):DT(e,t,Math.max(Math.abs(r),1),i):r!=null&&!xy(r)?vT(r,i):jo(e,t,1,r)};ky.exports=jo});var Iy=m((Bq,By)=>{"use strict";var xT=Cl(),Py=Mo(),CT=(e,t={})=>{let r=(n,i={})=>{let s=Py.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Py.reduce(n.nodes),f=xT(...l,{...t,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};By.exports=CT});var My=m((Iq,Ny)=>{"use strict";var ST=Cl(),Ly=qo(),zn=Mo(),mn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?zn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(mn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?mn(i,s,r):i+s);return zn.flatten(n)},RT=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(mn(a.pop(),Ly(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(mn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=zn.reduce(i.nodes);if(zn.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=ST(...f,t);h.length===0&&(h=Ly(i,t)),a.push(mn(a.pop(),h)),i.nodes=[];return}let u=zn.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(mn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(mn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return zn.flatten(n(e))};Ny.exports=RT});var jy=m((Lq,qy)=>{"use strict";qy.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 Wy=m((Nq,Gy)=>{"use strict";var FT=qo(),{MAX_LENGTH:Hy,CHAR_BACKSLASH:Sl,CHAR_BACKTICK:TT,CHAR_COMMA:OT,CHAR_DOT:kT,CHAR_LEFT_PARENTHESES:PT,CHAR_RIGHT_PARENTHESES:BT,CHAR_LEFT_CURLY_BRACE:IT,CHAR_RIGHT_CURLY_BRACE:LT,CHAR_LEFT_SQUARE_BRACKET:$y,CHAR_RIGHT_SQUARE_BRACKET:Uy,CHAR_DOUBLE_QUOTE:NT,CHAR_SINGLE_QUOTE:MT,CHAR_NO_BREAK_SPACE:qT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:jT}=jy(),HT=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Hy,r.maxLength):Hy;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,l=0,f=0,h,g={},b=()=>e[l++],_=p=>{if(p.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&p.type==="text"){a.value+=p.value;return}return o.nodes.push(p),p.parent=o,p.prev=a,a=p,p};for(_({type:"bos"});l<c;)if(o=s[s.length-1],h=b(),!(h===jT||h===qT)){if(h===Sl){_({type:"text",value:(t.keepEscaping?h:"")+b()});continue}if(h===Uy){_({type:"text",value:"\\"+h});continue}if(h===$y){u++;let p=!0,w;for(;l<c&&(w=b());){if(h+=w,w===$y){u++;continue}if(w===Sl){h+=b();continue}if(w===Uy&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===PT){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===BT){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===NT||h===MT||h===TT){let p=h,w;for(t.keepQuotes!==!0&&(h="");l<c&&(w=b());){if(w===Sl){h+=w+b();continue}if(w===p){t.keepQuotes===!0&&(h+=w);break}h+=w}_({type:"text",value:h});continue}if(h===IT){f++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=_(w),s.push(o),_({type:"open",value:h});continue}if(h===LT){if(o.type!=="brace"){_({type:"text",value:h});continue}let p="close";o=s.pop(),o.close=!0,_({type:p,value:h}),f--,o=s[s.length-1];continue}if(h===OT&&f>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:FT(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===kT&&f>0&&o.commas===0){let p=o.nodes;if(f===0||p.length===0){_({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"){p.pop();let w=p[p.length-1];w.value+=a.value+h,a=w,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let p=s[s.length-1],w=p.nodes.indexOf(o);p.nodes.splice(w,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Gy.exports=HT});var Yy=m((Mq,Vy)=>{"use strict";var zy=qo(),$T=Iy(),UT=My(),GT=Wy(),pt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=pt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(pt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};pt.parse=(e,t={})=>GT(e,t);pt.stringify=(e,t={})=>zy(typeof e=="string"?pt.parse(e,t):e,t);pt.compile=(e,t={})=>(typeof e=="string"&&(e=pt.parse(e,t)),$T(e,t));pt.expand=(e,t={})=>{typeof e=="string"&&(e=pt.parse(e,t));let r=UT(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};pt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?pt.compile(e,t):pt.expand(e,t);Vy.exports=pt});var ys=m((qq,Qy)=>{"use strict";var WT=require("path"),Wt="\\\\/",Ky=`[^${Wt}]`,fr="\\.",zT="\\+",VT="\\?",Ho="\\/",YT="(?=.)",Xy="[^/]",Rl=`(?:${Ho}|$)`,Jy=`(?:^|${Ho})`,Fl=`${fr}{1,2}${Rl}`,KT=`(?!${fr})`,XT=`(?!${Jy}${Fl})`,JT=`(?!${fr}{0,1}${Rl})`,ZT=`(?!${Fl})`,QT=`[^.${Ho}]`,eO=`${Xy}*?`,Zy={DOT_LITERAL:fr,PLUS_LITERAL:zT,QMARK_LITERAL:VT,SLASH_LITERAL:Ho,ONE_CHAR:YT,QMARK:Xy,END_ANCHOR:Rl,DOTS_SLASH:Fl,NO_DOT:KT,NO_DOTS:XT,NO_DOT_SLASH:JT,NO_DOTS_SLASH:ZT,QMARK_NO_DOT:QT,STAR:eO,START_ANCHOR:Jy},tO={...Zy,SLASH_LITERAL:`[${Wt}]`,QMARK:Ky,STAR:`${Ky}*?`,DOTS_SLASH:`${fr}{1,2}(?:[${Wt}]|$)`,NO_DOT:`(?!${fr})`,NO_DOTS:`(?!(?:^|[${Wt}])${fr}{1,2}(?:[${Wt}]|$))`,NO_DOT_SLASH:`(?!${fr}{0,1}(?:[${Wt}]|$))`,NO_DOTS_SLASH:`(?!${fr}{1,2}(?:[${Wt}]|$))`,QMARK_NO_DOT:`[^.${Wt}]`,START_ANCHOR:`(?:^|[${Wt}])`,END_ANCHOR:`(?:[${Wt}]|$)`},rO={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"};Qy.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:rO,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:WT.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?tO:Zy}}});var _s=m(at=>{"use strict";var nO=require("path"),iO=process.platform==="win32",{REGEX_BACKSLASH:sO,REGEX_REMOVE_BACKSLASH:oO,REGEX_SPECIAL_CHARS:aO,REGEX_SPECIAL_CHARS_GLOBAL:uO}=ys();at.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);at.hasRegexChars=e=>aO.test(e);at.isRegexChar=e=>e.length===1&&at.hasRegexChars(e);at.escapeRegex=e=>e.replace(uO,"\\$1");at.toPosixSlashes=e=>e.replace(sO,"/");at.removeBackslashes=e=>e.replace(oO,t=>t==="\\"?"":t);at.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};at.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:iO===!0||nO.sep==="\\";at.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?at.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};at.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};at.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var a1=m((Hq,o1)=>{"use strict";var e1=_s(),{CHAR_ASTERISK:Tl,CHAR_AT:cO,CHAR_BACKWARD_SLASH:bs,CHAR_COMMA:lO,CHAR_DOT:Ol,CHAR_EXCLAMATION_MARK:kl,CHAR_FORWARD_SLASH:s1,CHAR_LEFT_CURLY_BRACE:Pl,CHAR_LEFT_PARENTHESES:Bl,CHAR_LEFT_SQUARE_BRACKET:fO,CHAR_PLUS:hO,CHAR_QUESTION_MARK:t1,CHAR_RIGHT_CURLY_BRACE:dO,CHAR_RIGHT_PARENTHESES:r1,CHAR_RIGHT_SQUARE_BRACKET:pO}=ys(),n1=e=>e===s1||e===bs,i1=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},mO=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,l=0,f=0,h=!1,g=!1,b=!1,_=!1,p=!1,w=!1,C=!1,N=!1,W=!1,M=!1,X=0,z,Y,ee={value:"",depth:0,isGlob:!1},ve=()=>c>=n,R=()=>u.charCodeAt(c+1),ce=()=>(z=Y,u.charCodeAt(++c));for(;c<n;){Y=ce();let F;if(Y===bs){C=ee.backslashes=!0,Y=ce(),Y===Pl&&(w=!0);continue}if(w===!0||Y===Pl){for(X++;ve()!==!0&&(Y=ce());){if(Y===bs){C=ee.backslashes=!0,ce();continue}if(Y===Pl){X++;continue}if(w!==!0&&Y===Ol&&(Y=ce())===Ol){if(h=ee.isBrace=!0,b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(w!==!0&&Y===lO){if(h=ee.isBrace=!0,b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(Y===dO&&(X--,X===0)){w=!1,h=ee.isBrace=!0,M=!0;break}}if(i===!0)continue;break}if(Y===s1){if(s.push(c),o.push(ee),ee={value:"",depth:0,isGlob:!1},M===!0)continue;if(z===Ol&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(Y===hO||Y===cO||Y===Tl||Y===t1||Y===kl)===!0&&R()===Bl){if(b=ee.isGlob=!0,_=ee.isExtglob=!0,M=!0,Y===kl&&c===l&&(W=!0),i===!0){for(;ve()!==!0&&(Y=ce());){if(Y===bs){C=ee.backslashes=!0,Y=ce();continue}if(Y===r1){b=ee.isGlob=!0,M=!0;break}}continue}break}if(Y===Tl){if(z===Tl&&(p=ee.isGlobstar=!0),b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(Y===t1){if(b=ee.isGlob=!0,M=!0,i===!0)continue;break}if(Y===fO){for(;ve()!==!0&&(F=ce());){if(F===bs){C=ee.backslashes=!0,ce();continue}if(F===pO){g=ee.isBracket=!0,b=ee.isGlob=!0,M=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Y===kl&&c===l){N=ee.negated=!0,l++;continue}if(r.noparen!==!0&&Y===Bl){if(b=ee.isGlob=!0,i===!0){for(;ve()!==!0&&(Y=ce());){if(Y===Bl){C=ee.backslashes=!0,Y=ce();continue}if(Y===r1){M=!0;break}}continue}break}if(b===!0){if(M=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,b=!1);let oe=u,st="",x="";l>0&&(st=u.slice(0,l),u=u.slice(l),f-=l),oe&&b===!0&&f>0?(oe=u.slice(0,f),x=u.slice(f)):b===!0?(oe="",x=u):oe=u,oe&&oe!==""&&oe!=="/"&&oe!==u&&n1(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),r.unescape===!0&&(x&&(x=e1.removeBackslashes(x)),oe&&C===!0&&(oe=e1.removeBackslashes(oe)));let A={prefix:st,input:e,start:l,base:oe,glob:x,isBrace:h,isBracket:g,isGlob:b,isExtglob:_,isGlobstar:p,negated:N,negatedExtglob:W};if(r.tokens===!0&&(A.maxDepth=0,n1(Y)||o.push(ee),A.tokens=o),r.parts===!0||r.tokens===!0){let F;for(let S=0;S<s.length;S++){let k=F?F+1:l,G=s[S],q=e.slice(k,G);r.tokens&&(S===0&&l!==0?(o[S].isPrefix=!0,o[S].value=st):o[S].value=q,i1(o[S]),A.maxDepth+=o[S].depth),(S!==0||q!=="")&&a.push(q),F=G}if(F&&F+1<e.length){let S=e.slice(F+1);a.push(S),r.tokens&&(o[o.length-1].value=S,i1(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};o1.exports=mO});var l1=m(($q,c1)=>{"use strict";var $o=ys(),mt=_s(),{MAX_LENGTH:Uo,POSIX_REGEX_SOURCE:gO,REGEX_NON_SPECIAL_CHARS:yO,REGEX_SPECIAL_CHARS_BACKREF:_O,REPLACEMENTS:u1}=$o,bO=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>mt.escapeRegex(i)).join("..")}return r},Vn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Il=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=u1[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Uo,r.maxLength):Uo,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=mt.isWindows(t),c=$o.globChars(u),l=$o.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:g,ONE_CHAR:b,DOTS_SLASH:_,NO_DOT:p,NO_DOT_SLASH:w,NO_DOTS_SLASH:C,QMARK:N,QMARK_NO_DOT:W,STAR:M,START_ANCHOR:X}=c,z=I=>`(${a}(?:(?!${X}${I.dot?_:f}).)*?)`,Y=r.dot?"":p,ee=r.dot?N:W,ve=r.bash===!0?z(r):M;r.capture&&(ve=`(${ve})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:e,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};e=mt.removePrefix(e,R),i=e.length;let ce=[],oe=[],st=[],x=s,A,F=()=>R.index===i-1,S=R.peek=(I=1)=>e[R.index+I],k=R.advance=()=>e[++R.index]||"",G=()=>e.slice(R.index+1),q=(I="",he=0)=>{R.consumed+=I,R.index+=he},le=I=>{R.output+=I.output!=null?I.output:I.value,q(I.value)},Oe=()=>{let I=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)k(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},ae=I=>{R[I]++,st.push(I)},Ae=I=>{R[I]--,st.pop()},K=I=>{if(x.type==="globstar"){let he=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||ce.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!he&&!B&&(R.output=R.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=ve,R.output+=x.output)}if(ce.length&&I.type!=="paren"&&(ce[ce.length-1].inner+=I.value),(I.value||I.output)&&le(I),x&&x.type==="text"&&I.type==="text"){x.value+=I.value,x.output=(x.output||"")+I.value;return}I.prev=x,o.push(I),x=I},et=(I,he)=>{let B={...l[he],conditions:1,inner:""};B.prev=x,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;ae("parens"),K({type:I,value:he,output:R.output?"":b}),K({type:"paren",extglob:!0,value:k(),output:d}),ce.push(B)},dt=I=>{let he=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=ve;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=z(r)),(d!==ve||F()||/^\)+$/.test(G()))&&(he=I.close=`)$))${d}`),I.inner.includes("*")&&(B=G())&&/^\.[^\\/.]+$/.test(B)){let v=Il(B,{...t,fastpaths:!1}).output;he=I.close=`)${v})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:A,output:he}),Ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let I=!1,he=e.replace(_O,(B,d,v,y,O,H)=>y==="\\"?(I=!0,B):y==="?"?d?d+y+(O?N.repeat(O.length):""):H===0?ee+(O?N.repeat(O.length):""):N.repeat(v.length):y==="."?f.repeat(v.length):y==="*"?d?d+y+(O?ve:""):ve:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),he===e&&r.contains===!0?(R.output=e,R):(R.output=mt.wrapOutput(he,R,t),R)}for(;!F();){if(A=k(),A==="\0")continue;if(A==="\\"){let B=S();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){A+="\\",K({type:"text",value:A});continue}let d=/^\\+/.exec(G()),v=0;if(d&&d[0].length>2&&(v=d[0].length,R.index+=v,v%2!==0&&(A+="\\")),r.unescape===!0?A=k():A+=k(),R.brackets===0){K({type:"text",value:A});continue}}if(R.brackets>0&&(A!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&A===":"){let B=x.value.slice(1);if(B.includes("[")&&(x.posix=!0,B.includes(":"))){let d=x.value.lastIndexOf("["),v=x.value.slice(0,d),y=x.value.slice(d+2),O=gO[y];if(O){x.value=v+O,R.backtrack=!0,k(),!s.output&&o.indexOf(x)===1&&(s.output=b);continue}}}(A==="["&&S()!==":"||A==="-"&&S()==="]")&&(A=`\\${A}`),A==="]"&&(x.value==="["||x.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&x.value==="["&&(A="^"),x.value+=A,le({value:A});continue}if(R.quotes===1&&A!=='"'){A=mt.escapeRegex(A),x.value+=A,le({value:A});continue}if(A==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&K({type:"text",value:A});continue}if(A==="("){ae("parens"),K({type:"paren",value:A});continue}if(A===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Vn("opening","("));let B=ce[ce.length-1];if(B&&R.parens===B.parens+1){dt(ce.pop());continue}K({type:"paren",value:A,output:R.parens?")":"\\)"}),Ae("parens");continue}if(A==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Vn("closing","]"));A=`\\${A}`}else ae("brackets");K({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){K({type:"text",value:A,output:`\\${A}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Vn("opening","["));K({type:"text",value:A,output:`\\${A}`});continue}Ae("brackets");let B=x.value.slice(1);if(x.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(A=`/${A}`),x.value+=A,le({value:A}),r.literalBrackets===!1||mt.hasRegexChars(B))continue;let d=mt.escapeRegex(x.value);if(R.output=R.output.slice(0,-x.value.length),r.literalBrackets===!0){R.output+=d,x.value=d;continue}x.value=`(${a}${d}|${x.value})`,R.output+=x.value;continue}if(A==="{"&&r.nobrace!==!0){ae("braces");let B={type:"brace",value:A,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};oe.push(B),K(B);continue}if(A==="}"){let B=oe[oe.length-1];if(r.nobrace===!0||!B){K({type:"text",value:A,output:A});continue}let d=")";if(B.dots===!0){let v=o.slice(),y=[];for(let O=v.length-1;O>=0&&(o.pop(),v[O].type!=="brace");O--)v[O].type!=="dots"&&y.unshift(v[O].value);d=bO(y,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let v=R.output.slice(0,B.outputIndex),y=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",A=d="\\}",R.output=v;for(let O of y)R.output+=O.output||O.value}K({type:"brace",value:A,output:d}),Ae("braces"),oe.pop();continue}if(A==="|"){ce.length>0&&ce[ce.length-1].conditions++,K({type:"text",value:A});continue}if(A===","){let B=A,d=oe[oe.length-1];d&&st[st.length-1]==="braces"&&(d.comma=!0,B="|"),K({type:"comma",value:A,output:B});continue}if(A==="/"){if(x.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),x=s;continue}K({type:"slash",value:A,output:g});continue}if(A==="."){if(R.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let B=oe[oe.length-1];x.type="dots",x.output+=A,x.value+=A,B.dots=!0;continue}if(R.braces+R.parens===0&&x.type!=="bos"&&x.type!=="slash"){K({type:"text",value:A,output:f});continue}K({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){et("qmark",A);continue}if(x&&x.type==="paren"){let d=S(),v=A;if(d==="<"&&!mt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test(G()))&&(v=`\\${A}`),K({type:"text",value:A,output:v});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){K({type:"qmark",value:A,output:W});continue}K({type:"qmark",value:A,output:N});continue}if(A==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){et("negate",A);continue}if(r.nonegate!==!0&&R.index===0){Oe();continue}}if(A==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){et("plus",A);continue}if(x&&x.value==="("||r.regex===!1){K({type:"plus",value:A,output:h});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||R.parens>0){K({type:"plus",value:A});continue}K({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){K({type:"at",extglob:!0,value:A,output:""});continue}K({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let B=yO.exec(G());B&&(A+=B[0],R.index+=B[0].length),K({type:"text",value:A});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=A,x.output=ve,R.backtrack=!0,R.globstar=!0,q(A);continue}let I=G();if(r.noextglob!==!0&&/^\([^?]/.test(I)){et("star",A);continue}if(x.type==="star"){if(r.noglobstar===!0){q(A);continue}let B=x.prev,d=B.prev,v=B.type==="slash"||B.type==="bos",y=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!v||I[0]&&I[0]!=="/")){K({type:"star",value:A,output:""});continue}let O=R.braces>0&&(B.type==="comma"||B.type==="brace"),H=ce.length&&(B.type==="pipe"||B.type==="paren");if(!v&&B.type!=="paren"&&!O&&!H){K({type:"star",value:A,output:""});continue}for(;I.slice(0,3)==="/**";){let j=e[R.index+4];if(j&&j!=="/")break;I=I.slice(3),q("/**",3)}if(B.type==="bos"&&F()){x.type="globstar",x.value+=A,x.output=z(r),R.output=x.output,R.globstar=!0,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!y&&F()){R.output=R.output.slice(0,-(B.output+x.output).length),B.output=`(?:${B.output}`,x.type="globstar",x.output=z(r)+(r.strictSlashes?")":"|$)"),x.value+=A,R.globstar=!0,R.output+=B.output+x.output,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let j=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+x.output).length),B.output=`(?:${B.output}`,x.type="globstar",x.output=`${z(r)}${g}|${g}${j})`,x.value+=A,R.output+=B.output+x.output,R.globstar=!0,q(A+k()),K({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){x.type="globstar",x.value+=A,x.output=`(?:^|${g}|${z(r)}${g})`,R.output=x.output,R.globstar=!0,q(A+k()),K({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-x.output.length),x.type="globstar",x.output=z(r),x.value+=A,R.output+=x.output,R.globstar=!0,q(A);continue}let he={type:"star",value:A,output:ve};if(r.bash===!0){he.output=".*?",(x.type==="bos"||x.type==="slash")&&(he.output=Y+he.output),K(he);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){he.output=A,K(he);continue}(R.index===R.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(R.output+=w,x.output+=w):r.dot===!0?(R.output+=C,x.output+=C):(R.output+=Y,x.output+=Y),S()!=="*"&&(R.output+=b,x.output+=b)),K(he)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing","]"));R.output=mt.escapeLast(R.output,"["),Ae("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing",")"));R.output=mt.escapeLast(R.output,"("),Ae("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing","}"));R.output=mt.escapeLast(R.output,"{"),Ae("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${g}?`}),R.backtrack===!0){R.output="";for(let I of R.tokens)R.output+=I.output!=null?I.output:I.value,I.suffix&&(R.output+=I.suffix)}return R};Il.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Uo,r.maxLength):Uo,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=u1[e]||e;let s=mt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:b}=$o.globChars(s),_=r.dot?f:l,p=r.dot?h:l,w=r.capture?"":"?:",C={negated:!1,prefix:""},N=r.bash===!0?".*?":g;r.capture&&(N=`(${N})`);let W=Y=>Y.noglobstar===!0?N:`(${w}(?:(?!${b}${Y.dot?c:o}).)*?)`,M=Y=>{switch(Y){case"*":return`${_}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${_}${N}${o}${u}${N}`;case"*/*":return`${_}${N}${a}${u}${p}${N}`;case"**":return _+W(r);case"**/*":return`(?:${_}${W(r)}${a})?${p}${u}${N}`;case"**/*.*":return`(?:${_}${W(r)}${a})?${p}${N}${o}${u}${N}`;case"**/.*":return`(?:${_}${W(r)}${a})?${o}${u}${N}`;default:{let ee=/^(.*?)\.(\w+)$/.exec(Y);if(!ee)return;let ve=M(ee[1]);return ve?ve+o+ee[2]:void 0}}},X=mt.removePrefix(e,C),z=M(X);return z&&r.strictSlashes!==!0&&(z+=`${a}?`),z};c1.exports=Il});var h1=m((Uq,f1)=>{"use strict";var EO=require("path"),wO=a1(),Ll=l1(),Nl=_s(),vO=ys(),AO=e=>e&&typeof e=="object"&&!Array.isArray(e),Ce=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(h=>Ce(h,t,r));return h=>{for(let g of l){let b=g(h);if(b)return b}return!1}}let n=AO(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Nl.isWindows(t),o=n?Ce.compileRe(e,t):Ce.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=Ce(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:g,output:b}=Ce.test(l,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:l,output:b,match:g,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,f?_:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(c.state=a),c};Ce.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Nl.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(e,t,r,n=Nl.isWindows(r))=>(t instanceof RegExp?t:Ce.makeRe(t,r)).test(EO.basename(e));Ce.isMatch=(e,t,r)=>Ce(t,r)(e);Ce.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ce.parse(r,t)):Ll(e,{...t,fastpaths:!1});Ce.scan=(e,t)=>wO(e,t);Ce.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,t);return n===!0&&(u.state=e),u};Ce.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Ll.fastpaths(e,t)),i.output||(i=Ll(e,t)),Ce.compileRe(i,t,r,n)};Ce.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Ce.constants=vO;f1.exports=Ce});var p1=m((Gq,d1)=>{"use strict";d1.exports=h1()});var b1=m((Wq,_1)=>{"use strict";var g1=require("util"),y1=Yy(),zt=p1(),Ml=_s(),m1=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let f=zt(String(t[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let g of e){let b=f(g,!0);(h?!b.isMatch:b.isMatch)&&(h?n.add(b.output):(n.delete(b.output),i.add(b.output)))}}let c=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>zt(e,t);be.isMatch=(e,t,r)=>zt(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(be(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${g1.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>be.contains(e,n,r));if(typeof t=="string"){if(m1(e)||m1(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return be.isMatch(e,t,{...r,contains:!0})};be.matchKeys=(e,t,r)=>{if(!Ml.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=be(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};be.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};be.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${g1.inspect(e)}"`);return[].concat(t).every(n=>zt(n,r)(e))};be.capture=(e,t,r)=>{let n=Ml.isWindows(r),s=zt.makeRe(String(e),{...r,capture:!0}).exec(n?Ml.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};be.makeRe=(...e)=>zt.makeRe(...e);be.scan=(...e)=>zt.scan(...e);be.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of y1(String(n),t))r.push(zt.parse(i,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:y1(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};_1.exports=be});var S1=m(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.matchAny=J.convertPatternsToRe=J.makeRe=J.getPatternParts=J.expandBraceExpansion=J.expandPatternsWithBraceExpansion=J.isAffectDepthOfReadingPattern=J.endsWithSlashGlobStar=J.hasGlobStar=J.getBaseDirectory=J.isPatternRelatedToParentDirectory=J.getPatternsOutsideCurrentDirectory=J.getPatternsInsideCurrentDirectory=J.getPositivePatterns=J.getNegativePatterns=J.isPositivePattern=J.isNegativePattern=J.convertToNegativePattern=J.convertToPositivePattern=J.isDynamicPattern=J.isStaticPattern=void 0;var DO=require("path"),xO=fy(),ql=b1(),E1="**",CO="\\",SO=/[*?]|^!/,RO=/\[[^[]*]/,FO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,TO=/[!*+?@]\([^(]*\)/,OO=/,|\.\./;function w1(e,t={}){return!v1(e,t)}J.isStaticPattern=w1;function v1(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(CO)||SO.test(e)||RO.test(e)||FO.test(e)||t.extglob!==!1&&TO.test(e)||t.braceExpansion!==!1&&kO(e))}J.isDynamicPattern=v1;function kO(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return OO.test(n)}function PO(e){return Go(e)?e.slice(1):e}J.convertToPositivePattern=PO;function BO(e){return"!"+e}J.convertToNegativePattern=BO;function Go(e){return e.startsWith("!")&&e[1]!=="("}J.isNegativePattern=Go;function A1(e){return!Go(e)}J.isPositivePattern=A1;function IO(e){return e.filter(Go)}J.getNegativePatterns=IO;function LO(e){return e.filter(A1)}J.getPositivePatterns=LO;function NO(e){return e.filter(t=>!jl(t))}J.getPatternsInsideCurrentDirectory=NO;function MO(e){return e.filter(jl)}J.getPatternsOutsideCurrentDirectory=MO;function jl(e){return e.startsWith("..")||e.startsWith("./..")}J.isPatternRelatedToParentDirectory=jl;function qO(e){return xO(e,{flipBackslashes:!1})}J.getBaseDirectory=qO;function jO(e){return e.includes(E1)}J.hasGlobStar=jO;function D1(e){return e.endsWith("/"+E1)}J.endsWithSlashGlobStar=D1;function HO(e){let t=DO.basename(e);return D1(e)||w1(t)}J.isAffectDepthOfReadingPattern=HO;function $O(e){return e.reduce((t,r)=>t.concat(x1(r)),[])}J.expandPatternsWithBraceExpansion=$O;function x1(e){return ql.braces(e,{expand:!0,nodupes:!0})}J.expandBraceExpansion=x1;function UO(e,t){let{parts:r}=ql.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}J.getPatternParts=UO;function C1(e,t){return ql.makeRe(e,t)}J.makeRe=C1;function GO(e,t){return e.map(r=>C1(r,t))}J.convertPatternsToRe=GO;function WO(e,t){return t.some(r=>r.test(e))}J.matchAny=WO});var O1=m((Vq,T1)=>{"use strict";var zO=require("stream"),R1=zO.PassThrough,VO=Array.prototype.slice;T1.exports=YO;function YO(){let e=[],t=VO.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=R1(n);function a(){for(let l=0,f=arguments.length;l<f;l++)e.push(F1(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,u())}function g(b){function _(){b.removeListener("merge2UnpipeEnd",_),b.removeListener("end",_),s&&b.removeListener("error",p),h()}function p(w){o.emit("error",w)}if(b._readableState.endEmitted)return h();b.on("merge2UnpipeEnd",_),b.on("end",_),s&&b.on("error",p),b.pipe(o,{end:!1}),b.resume()}for(let b=0;b<l.length;b++)g(l[b]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function F1(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=F1(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(R1(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var P1=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.merge=void 0;var KO=O1();function XO(e){let t=KO(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>k1(e)),t.once("end",()=>k1(e)),t}Wo.merge=XO;function k1(e){e.forEach(t=>t.emit("close"))}});var B1=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.isEmpty=Yn.isString=void 0;function JO(e){return typeof e=="string"}Yn.isString=JO;function ZO(e){return e===""}Yn.isEmpty=ZO});var hr=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.string=We.stream=We.pattern=We.path=We.fs=We.errno=We.array=void 0;var QO=ty();We.array=QO;var ek=ry();We.errno=ek;var tk=ny();We.fs=tk;var rk=iy();We.path=rk;var nk=S1();We.pattern=nk;var ik=P1();We.stream=ik;var sk=B1();We.string=sk});var N1=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var dr=hr();function ok(e,t){let r=I1(e),n=L1(e,t.ignore),i=r.filter(u=>dr.pattern.isStaticPattern(u,t)),s=r.filter(u=>dr.pattern.isDynamicPattern(u,t)),o=Hl(i,n,!1),a=Hl(s,n,!0);return o.concat(a)}ze.generate=ok;function Hl(e,t,r){let n=[],i=dr.pattern.getPatternsOutsideCurrentDirectory(e),s=dr.pattern.getPatternsInsideCurrentDirectory(e),o=$l(i),a=$l(s);return n.push(...Ul(o,t,r)),"."in a?n.push(Gl(".",s,t,r)):n.push(...Ul(a,t,r)),n}ze.convertPatternsToTasks=Hl;function I1(e){return dr.pattern.getPositivePatterns(e)}ze.getPositivePatterns=I1;function L1(e,t){return dr.pattern.getNegativePatterns(e).concat(t).map(dr.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=L1;function $l(e){let t={};return e.reduce((r,n)=>{let i=dr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ze.groupPatternsByBaseDirectory=$l;function Ul(e,t,r){return Object.keys(e).map(n=>Gl(n,e[n],t,r))}ze.convertPatternGroupsToTasks=Ul;function Gl(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(dr.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Gl});var q1=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.removeDuplicateSlashes=Kn.transform=void 0;var ak=/(?!^)\/{2,}/g;function uk(e){return e.map(t=>M1(t))}Kn.transform=uk;function M1(e){return e.replace(ak,"/")}Kn.removeDuplicateSlashes=M1});var H1=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.read=void 0;function ck(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){j1(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Wl(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){j1(r,s);return}Wl(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Wl(r,o)})})}zo.read=ck;function j1(e,t){e(t)}function Wl(e,t){e(null,t)}});var $1=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.read=void 0;function lk(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Vo.read=lk});var U1=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.createFileSystemAdapter=Lr.FILE_SYSTEM_ADAPTER=void 0;var Yo=require("fs");Lr.FILE_SYSTEM_ADAPTER={lstat:Yo.lstat,stat:Yo.stat,lstatSync:Yo.lstatSync,statSync:Yo.statSync};function fk(e){return e===void 0?Lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Lr.FILE_SYSTEM_ADAPTER),e)}Lr.createFileSystemAdapter=fk});var G1=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var hk=U1(),zl=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=hk.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};Vl.default=zl});var gn=m(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.statSync=Nr.stat=Nr.Settings=void 0;var W1=H1(),dk=$1(),Yl=G1();Nr.Settings=Yl.default;function pk(e,t,r){if(typeof t=="function"){W1.read(e,Kl(),t);return}W1.read(e,Kl(t),r)}Nr.stat=pk;function mk(e,t){let r=Kl(t);return dk.read(e,r)}Nr.statSync=mk;function Kl(e={}){return e instanceof Yl.default?e:new Yl.default(e)}});var Y1=m((i7,V1)=>{var z1;V1.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(z1||(z1=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var X1=m((s7,K1)=>{K1.exports=yk;var gk=Y1();function yk(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?gk(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,l){a(u,c,l)})}):e.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var Xl=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ko=process.versions.node.split(".");if(Ko[0]===void 0||Ko[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var J1=Number.parseInt(Ko[0],10),_k=Number.parseInt(Ko[1],10),Z1=10,bk=10,Ek=J1>Z1,wk=J1===Z1&&_k>=bk;Xo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Ek||wk});var Q1=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.createDirentFromStats=void 0;var Jl=class{constructor(t,r){this.name=t,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 vk(e,t){return new Jl(e,t)}Jo.createDirentFromStats=vk});var Zl=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.fs=void 0;var Ak=Q1();Zo.fs=Ak});var Ql=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.joinPathSegments=void 0;function Dk(e,t,r){return e.endsWith(r)?e+t:e+r+t}Qo.joinPathSegments=Dk});var s_=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.readdir=Mr.readdirWithFileTypes=Mr.read=void 0;var xk=gn(),e_=X1(),Ck=Xl(),t_=Zl(),r_=Ql();function Sk(e,t,r){if(!t.stats&&Ck.IS_SUPPORT_READDIR_WITH_FILE_TYPES){n_(e,t,r);return}i_(e,t,r)}Mr.read=Sk;function n_(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){ea(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:r_.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ef(r,s);return}let o=s.map(a=>Rk(a,t));e_(o,(a,u)=>{if(a!==null){ea(r,a);return}ef(r,u)})})}Mr.readdirWithFileTypes=n_;function Rk(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=t_.fs.createDirentFromStats(e.name,i),r(null,e)})}}function i_(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){ea(r,n);return}let s=i.map(o=>{let a=r_.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{xk.stat(a,t.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:t_.fs.createDirentFromStats(o,l)};t.stats&&(f.stats=l),u(null,f)})}});e_(s,(o,a)=>{if(o!==null){ea(r,o);return}ef(r,a)})})}Mr.readdir=i_;function ea(e,t){e(t)}function ef(e,t){e(null,t)}});var l_=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.readdir=qr.readdirWithFileTypes=qr.read=void 0;var Fk=gn(),Tk=Xl(),o_=Zl(),a_=Ql();function Ok(e,t){return!t.stats&&Tk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u_(e,t):c_(e,t)}qr.read=Ok;function u_(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:a_.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=o_.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qr.readdirWithFileTypes=u_;function c_(e,t){return t.fs.readdirSync(e).map(n=>{let i=a_.joinPathSegments(e,n,t.pathSegmentSeparator),s=Fk.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:o_.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qr.readdir=c_});var f_=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.createFileSystemAdapter=jr.FILE_SYSTEM_ADAPTER=void 0;var Xn=require("fs");jr.FILE_SYSTEM_ADAPTER={lstat:Xn.lstat,stat:Xn.stat,lstatSync:Xn.lstatSync,statSync:Xn.statSync,readdir:Xn.readdir,readdirSync:Xn.readdirSync};function kk(e){return e===void 0?jr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jr.FILE_SYSTEM_ADAPTER),e)}jr.createFileSystemAdapter=kk});var h_=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var Pk=require("path"),Bk=gn(),Ik=f_(),tf=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Ik.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Pk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Bk.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};rf.default=tf});var ta=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Settings=Hr.scandirSync=Hr.scandir=void 0;var d_=s_(),Lk=l_(),nf=h_();Hr.Settings=nf.default;function Nk(e,t,r){if(typeof t=="function"){d_.read(e,sf(),t);return}d_.read(e,sf(t),r)}Hr.scandir=Nk;function Mk(e,t){let r=sf(t);return Lk.read(e,r)}Hr.scandirSync=Mk;function sf(e={}){return e instanceof nf.default?e:new nf.default(e)}});var m_=m((m7,p_)=>{"use strict";function qk(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}p_.exports=qk});var y_=m((g7,of)=>{"use strict";var jk=m_();function g_(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=jk(Hk),i=null,s=null,o=0,a=null,u={push:_,drain:vt,saturated:vt,pause:l,paused:!1,concurrency:r,running:c,resume:g,idle:b,length:f,getQueue:h,unshift:p,empty:vt,kill:C,killAndDrain:N,error:W};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var M=i,X=0;M;)M=M.next,X++;return X}function h(){for(var M=i,X=[];M;)X.push(M.value),M=M.next;return X}function g(){if(u.paused){u.paused=!1;for(var M=0;M<u.concurrency;M++)o++,w()}}function b(){return o===0&&u.length()===0}function _(M,X){var z=n.get();z.context=e,z.release=w,z.value=M,z.callback=X||vt,z.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=z,s=z):(i=z,s=z,u.saturated()):(o++,t.call(e,z.value,z.worked))}function p(M,X){var z=n.get();z.context=e,z.release=w,z.value=M,z.callback=X||vt,o===u.concurrency||u.paused?i?(z.next=i,i=z):(i=z,s=z,u.saturated()):(o++,t.call(e,z.value,z.worked))}function w(M){M&&n.release(M);var X=i;X?u.paused?o--:(s===i&&(s=null),i=X.next,X.next=null,t.call(e,X.value,X.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){i=null,s=null,u.drain=vt}function N(){i=null,s=null,u.drain(),u.drain=vt}function W(M){a=M}}function vt(){}function Hk(){this.value=null,this.callback=vt,this.next=null,this.release=vt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=vt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function $k(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,f){t.call(this,l).then(function(h){f(null,h)},f)}var i=g_(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var f=new Promise(function(h,g){s(l,function(b,_){if(b){g(b);return}h(_)})});return f.catch(vt),f}function u(l){var f=new Promise(function(h,g){o(l,function(b,_){if(b){g(b);return}h(_)})});return f.catch(vt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}of.exports=g_;of.exports.promise=$k});var ra=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.joinPathSegments=Vt.replacePathSegmentSeparator=Vt.isAppliedFilter=Vt.isFatalError=void 0;function Uk(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Vt.isFatalError=Uk;function Gk(e,t){return e===null||e(t)}Vt.isAppliedFilter=Gk;function Wk(e,t){return e.split(/[/\\]/).join(t)}Vt.replacePathSegmentSeparator=Wk;function zk(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Vt.joinPathSegments=zk});var cf=m(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var Vk=ra(),af=class{constructor(t,r){this._root=t,this._settings=r,this._root=Vk.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};uf.default=af});var hf=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var Yk=require("events"),Kk=ta(),Xk=y_(),na=ra(),Jk=cf(),lf=class extends Jk.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Kk.scandir,this._emitter=new Yk.EventEmitter,this._queue=Xk(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!na.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=na.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),na.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&na.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ff.default=lf});var __=m(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var Zk=hf(),df=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Zk.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Qk(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{eP(t,this._storage)}),this._reader.read()}};pf.default=df;function Qk(e,t){e(t)}function eP(e,t){e(null,t)}});var b_=m(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var tP=require("stream"),rP=hf(),mf=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new rP.default(this._root,this._settings),this._stream=new tP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};gf.default=mf});var E_=m(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var nP=ta(),ia=ra(),iP=cf(),yf=class extends iP.default{constructor(){super(...arguments),this._scandir=nP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(ia.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=ia.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ia.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&ia.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};_f.default=yf});var w_=m(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var sP=E_(),bf=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sP.default(this._root,this._settings)}read(){return this._reader.read()}};Ef.default=bf});var v_=m(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var oP=require("path"),aP=ta(),wf=class{constructor(t={}){this._options=t,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,oP.sep),this.fsScandirSettings=new aP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};vf.default=wf});var oa=m(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.Settings=Yt.walkStream=Yt.walkSync=Yt.walk=void 0;var A_=__(),uP=b_(),cP=w_(),Af=v_();Yt.Settings=Af.default;function lP(e,t,r){if(typeof t=="function"){new A_.default(e,sa()).read(t);return}new A_.default(e,sa(t)).read(r)}Yt.walk=lP;function fP(e,t){let r=sa(t);return new cP.default(e,r).read()}Yt.walkSync=fP;function hP(e,t){let r=sa(t);return new uP.default(e,r).read()}Yt.walkStream=hP;function sa(e={}){return e instanceof Af.default?e:new Af.default(e)}});var aa=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var dP=require("path"),pP=gn(),D_=hr(),Df=class{constructor(t){this._settings=t,this._fsStatSettings=new pP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return dP.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:D_.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!D_.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};xf.default=Df});var Rf=m(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var mP=require("stream"),gP=gn(),yP=oa(),_P=aa(),Cf=class extends _P.default{constructor(){super(...arguments),this._walkStream=yP.walkStream,this._stat=gP.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new mP.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Sf.default=Cf});var x_=m(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});var bP=oa(),EP=aa(),wP=Rf(),Ff=class extends EP.default{constructor(){super(...arguments),this._walkAsync=bP.walk,this._readerStream=new wP.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Tf.default=Ff});var C_=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Jn=hr(),Of=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Jn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Jn.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Jn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Jn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Jn.array.splitWhen(t,r=>r.dynamic&&Jn.pattern.hasGlobStar(r.pattern))}};kf.default=Of});var S_=m(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var vP=C_(),Pf=class extends vP.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Bf.default=Pf});var R_=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var ua=hr(),AP=S_(),If=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new AP.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(ua.pattern.isAffectDepthOfReadingPattern);return ua.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=ua.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!ua.pattern.matchAny(t,r)}};Lf.default=If});var F_=m(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var yn=hr(),Nf=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=yn.pattern.convertPatternsToRe(t,this._micromatchOptions),i=yn.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=yn.path.makeAbsolute(this._settings.cwd,t);return yn.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=yn.path.removeLeadingDotSegment(t),s=yn.pattern.matchAny(i,r);return!s&&n?yn.pattern.matchAny(i+"/",r):s}};Mf.default=Nf});var T_=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var DP=hr(),qf=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return DP.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};jf.default=qf});var k_=m($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var O_=hr(),Hf=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=O_.path.makeAbsolute(this._settings.cwd,r),r=O_.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};$f.default=Hf});var ca=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var xP=require("path"),CP=R_(),SP=F_(),RP=T_(),FP=k_(),Uf=class{constructor(t){this._settings=t,this.errorFilter=new RP.default(this._settings),this.entryFilter=new SP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new CP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new FP.default(this._settings)}_getRootDirectory(t){return xP.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};Gf.default=Uf});var P_=m(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var TP=x_(),OP=ca(),Wf=class extends OP.default{constructor(){super(...arguments),this._reader=new TP.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};zf.default=Wf});var B_=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var kP=require("stream"),PP=Rf(),BP=ca(),Vf=class extends BP.default{constructor(){super(...arguments),this._reader=new PP.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new kP.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Yf.default=Vf});var I_=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var IP=gn(),LP=oa(),NP=aa(),Kf=class extends NP.default{constructor(){super(...arguments),this._walkSync=LP.walkSync,this._statSync=IP.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Xf.default=Kf});var L_=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var MP=I_(),qP=ca(),Jf=class extends qP.default{constructor(){super(...arguments),this._reader=new MP.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Zf.default=Jf});var N_=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Zn=require("fs"),jP=require("os"),HP=Math.max(jP.cpus().length,1);Qn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Zn.lstat,lstatSync:Zn.lstatSync,stat:Zn.stat,statSync:Zn.statSync,readdir:Zn.readdir,readdirSync:Zn.readdirSync};var Qf=class{constructor(t={}){this._options=t,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,HP),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Qn.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Qn.default=Qf});var H_=m((H7,j_)=>{"use strict";var M_=N1(),q_=q1(),$P=P_(),UP=B_(),GP=L_(),eh=N_(),_n=hr();async function th(e,t){ei(e);let r=rh(e,$P.default,t),n=await Promise.all(r);return _n.array.flatten(n)}(function(e){function t(o,a){ei(o);let u=rh(o,GP.default,a);return _n.array.flatten(u)}e.sync=t;function r(o,a){ei(o);let u=rh(o,UP.default,a);return _n.stream.merge(u)}e.stream=r;function n(o,a){ei(o);let u=q_.transform([].concat(o)),c=new eh.default(a);return M_.generate(u,c)}e.generateTasks=n;function i(o,a){ei(o);let u=new eh.default(a);return _n.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return ei(o),_n.path.escape(o)}e.escapePath=s})(th||(th={}));function rh(e,t,r){let n=q_.transform([].concat(e)),i=new eh.default(r),s=M_.generate(n,i),o=new t(i);return s.map(o.read,o)}function ei(e){if(![].concat(e).every(n=>_n.string.isString(n)&&!_n.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}j_.exports=th});var U_=m(($7,$_)=>{"use strict";$_.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]}});var nh=m((U7,W_)=>{var Es=U_(),G_={};for(let e of Object.keys(Es))G_[Es[e]]=e;var $={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"]}};W_.exports=$;for(let e of Object.keys($)){if(!("channels"in $[e]))throw new Error("missing channels property: "+e);if(!("labels"in $[e]))throw new Error("missing channel labels property: "+e);if($[e].labels.length!==$[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=$[e];delete $[e].channels,delete $[e].labels,Object.defineProperty($[e],"channels",{value:t}),Object.defineProperty($[e],"labels",{value:r})}$.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};$.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),f=function(h){return(c-h)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,t=f(o),r=f(a),n=f(u),o===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};$.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=$.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};$.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function WP(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}$.rgb.keyword=function(e){let t=G_[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Es)){let s=Es[i],o=WP(e,s);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return Es[e]};$.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};$.rgb.lab=function(e){let t=$.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};$.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[c]=o*255;return u};$.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};$.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};$.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};$.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let u=r+s*(a-r),c,l,f;switch(o){default:case 6:case 0:c=a,l=u,f=r;break;case 1:c=u,l=a,f=r;break;case 2:c=r,l=a,f=u;break;case 3:c=r,l=u,f=a;break;case 4:c=u,l=r,f=a;break;case 5:c=a,l=r,f=u;break}return[c*255,l*255,f*255]};$.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};$.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};$.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};$.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};$.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};$.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};$.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?$.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};$.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};$.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};$.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};$.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};$.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};$.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};$.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};$.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};$.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};$.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};$.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=function(e){return[0,0,e[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var V_=m((G7,z_)=>{var la=nh();function zP(){let e={},t=Object.keys(la);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function VP(e){let t=zP(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(la[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function YP(e,t){return function(r){return t(e(r))}}function KP(e,t){let r=[t[e].parent,e],n=la[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=YP(la[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}z_.exports=function(e){let t=VP(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=KP(o,t))}return r}});var K_=m((W7,Y_)=>{var ih=nh(),XP=V_(),ti={},JP=Object.keys(ih);function ZP(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function QP(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}JP.forEach(e=>{ti[e]={},Object.defineProperty(ti[e],"channels",{value:ih[e].channels}),Object.defineProperty(ti[e],"labels",{value:ih[e].labels});let t=XP(e);Object.keys(t).forEach(n=>{let i=t[n];ti[e][n]=QP(i),ti[e][n].raw=ZP(i)})});Y_.exports=ti});var oh=m((z7,eb)=>{"use strict";var X_=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,J_=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Z_=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},fa=e=>e,Q_=(e,t,r)=>[e,t,r],ri=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sh,ni=(e,t,r,n)=>{sh===void 0&&(sh=K_());let i=n?10:0,s={};for(let[o,a]of Object.entries(sh)){let u=o==="ansi16"?"ansi":o;o===t?s[u]=e(r,i):typeof a=="object"&&(s[u]=e(a[t],i))}return s};function e3(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ri(t.color,"ansi",()=>ni(X_,"ansi16",fa,!1)),ri(t.color,"ansi256",()=>ni(J_,"ansi256",fa,!1)),ri(t.color,"ansi16m",()=>ni(Z_,"rgb",Q_,!1)),ri(t.bgColor,"ansi",()=>ni(X_,"ansi16",fa,!0)),ri(t.bgColor,"ansi256",()=>ni(J_,"ansi256",fa,!0)),ri(t.bgColor,"ansi16m",()=>ni(Z_,"rgb",Q_,!0)),t}Object.defineProperty(eb,"exports",{enumerable:!0,get:e3})});var rb=m((V7,tb)=>{"use strict";tb.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var ch=m((Y7,ib)=>{"use strict";var t3=require("os"),nb=require("tty"),At=rb(),{env:Ie}=process,$r;At("no-color")||At("no-colors")||At("color=false")||At("color=never")?$r=0:(At("color")||At("colors")||At("color=true")||At("color=always"))&&($r=1);"FORCE_COLOR"in Ie&&(Ie.FORCE_COLOR==="true"?$r=1:Ie.FORCE_COLOR==="false"?$r=0:$r=Ie.FORCE_COLOR.length===0?1:Math.min(parseInt(Ie.FORCE_COLOR,10),3));function ah(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function uh(e,t){if($r===0)return 0;if(At("color=16m")||At("color=full")||At("color=truecolor"))return 3;if(At("color=256"))return 2;if(e&&!t&&$r===void 0)return 0;let r=$r||0;if(Ie.TERM==="dumb")return r;if(process.platform==="win32"){let n=t3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ie)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ie)||Ie.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ie.TEAMCITY_VERSION)?1:0;if(Ie.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ie){let n=parseInt((Ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ie.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ie.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ie.TERM)||"COLORTERM"in Ie?1:r}function r3(e){let t=uh(e,e&&e.isTTY);return ah(t)}ib.exports={supportsColor:r3,stdout:ah(uh(!0,nb.isatty(1))),stderr:ah(uh(!0,nb.isatty(2)))}});var ob=m((K7,sb)=>{"use strict";var n3=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},i3=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
4
4
|
`:`
|
5
5
|
`)+r,i=n+1,n=e.indexOf(`
|
6
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
8
|
-
`);return s!==-1&&(t=h3(t,i,n,s)),n+t+i},fh,g3=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return fh===void 0&&(fh=hb()),fh(e,i.join(""))};Object.defineProperties(da.prototype,ii);var vs=da();vs.supportsColor=hh;vs.stderr=da({level:dh?dh.level:0});vs.stderr.supportsColor=dh;vs.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};gb.exports=vs});var bb=m((Z7,gh)=>{"use strict";var _b=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};gh.exports=_b;gh.exports.default=_b});var yh=m((Q7,ga)=>{"use strict";var y3=bb(),ma=new WeakMap,Eb=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(ma.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return y3(s,e),ma.set(s,n),s};ga.exports=Eb;ga.exports.default=Eb;ga.exports.callCount=e=>{if(!ma.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ma.get(e)}});var wb=m((ej,ya)=>{ya.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ya.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ya.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Eh=m((tj,ai)=>{var Ee=global.process,bn=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"};bn(Ee)?(vb=require("assert"),si=wb(),Ab=/^win/i.test(Ee.platform),As=require("events"),typeof As!="function"&&(As=As.EventEmitter),Ee.__signal_exit_emitter__?Le=Ee.__signal_exit_emitter__:(Le=Ee.__signal_exit_emitter__=new As,Le.count=0,Le.emitted={}),Le.infinite||(Le.setMaxListeners(1/0),Le.infinite=!0),ai.exports=function(e,t){if(!bn(global.process))return function(){};vb.equal(typeof e,"function","a callback must be provided for exit handler"),oi===!1&&_h();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Le.removeListener(r,e),Le.listeners("exit").length===0&&Le.listeners("afterexit").length===0&&_a()};return Le.on(r,e),n},_a=function(){!oi||!bn(global.process)||(oi=!1,si.forEach(function(t){try{Ee.removeListener(t,ba[t])}catch{}}),Ee.emit=Ea,Ee.reallyExit=bh,Le.count-=1)},ai.exports.unload=_a,En=function(t,r,n){Le.emitted[t]||(Le.emitted[t]=!0,Le.emit(t,r,n))},ba={},si.forEach(function(e){ba[e]=function(){if(bn(global.process)){var r=Ee.listeners(e);r.length===Le.count&&(_a(),En("exit",null,e),En("afterexit",null,e),Ab&&e==="SIGHUP"&&(e="SIGINT"),Ee.kill(Ee.pid,e))}}}),ai.exports.signals=function(){return si},oi=!1,_h=function(){oi||!bn(global.process)||(oi=!0,Le.count+=1,si=si.filter(function(t){try{return Ee.on(t,ba[t]),!0}catch{return!1}}),Ee.emit=xb,Ee.reallyExit=Db)},ai.exports.load=_h,bh=Ee.reallyExit,Db=function(t){bn(global.process)&&(Ee.exitCode=t||0,En("exit",Ee.exitCode,null),En("afterexit",Ee.exitCode,null),bh.call(Ee,Ee.exitCode))},Ea=Ee.emit,xb=function(t,r){if(t==="exit"&&bn(global.process)){r!==void 0&&(Ee.exitCode=r);var n=Ea.apply(this,arguments);return En("exit",Ee.exitCode,null),En("afterexit",Ee.exitCode,null),n}else return Ea.apply(this,arguments)}):ai.exports=function(){return function(){}};var vb,si,Ab,As,Le,_a,En,ba,oi,_h,bh,Db,Ea,xb});var Sb=m((rj,Cb)=>{"use strict";var _3=yh(),b3=Eh();Cb.exports=_3(()=>{b3(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Rb=m(ui=>{"use strict";var E3=Sb(),wa=!1;ui.show=(e=process.stderr)=>{e.isTTY&&(wa=!1,e.write("\x1B[?25h"))};ui.hide=(e=process.stderr)=>{e.isTTY&&(E3(),wa=!0,e.write("\x1B[?25l"))};ui.toggle=(e,t)=>{e!==void 0&&(wa=e),wa?ui.show(t):ui.hide(t)}});var Fb=m((ij,w3)=>{w3.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"]}}});var kb=m((sj,Ob)=>{"use strict";var va=Object.assign({},Fb()),Tb=Object.keys(va);Object.defineProperty(va,"random",{get(){let e=Math.floor(Math.random()*Tb.length),t=Tb[e];return va[t]}});Ob.exports=va});var Bb=m((oj,Pb)=>{"use strict";var v3=/[|\\{}()[\]^$+*?.]/g;Pb.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(v3,"\\$&")}});var Lb=m((aj,Ib)=>{"use strict";Ib.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]}});var wh=m((uj,jb)=>{var wn=Lb(),qb={};for(Aa in wn)wn.hasOwnProperty(Aa)&&(qb[wn[Aa]]=Aa);var Aa,U=jb.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(nt in U)if(U.hasOwnProperty(nt)){if(!("channels"in U[nt]))throw new Error("missing channels property: "+nt);if(!("labels"in U[nt]))throw new Error("missing channel labels property: "+nt);if(U[nt].labels.length!==U[nt].channels)throw new Error("channel and label counts mismatch: "+nt);Nb=U[nt].channels,Mb=U[nt].labels,delete U[nt].channels,delete U[nt].labels,Object.defineProperty(U[nt],"channels",{value:Nb}),Object.defineProperty(U[nt],"labels",{value:Mb})}var Nb,Mb,nt;U.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u,c;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(i+s)/2,s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};U.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),f=function(h){return(c-h)/6/l+1/2};return l===0?i=s=0:(s=l/c,t=f(o),r=f(a),n=f(u),o===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};U.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=U.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};U.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function A3(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}U.rgb.keyword=function(e){var t=qb[e];if(t)return t;var r=1/0,n;for(var i in wn)if(wn.hasOwnProperty(i)){var s=wn[i],o=A3(e,s);o<r&&(r=o,n=i)}return n};U.keyword.rgb=function(e){return wn[e]};U.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};U.rgb.lab=function(e){var t=U.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};U.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[c]=u*255;return a};U.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};U.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};U.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};U.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),u=r+a*(o-r);var c,l,f;switch(s){default:case 6:case 0:c=o,l=u,f=r;break;case 1:c=u,l=o,f=r;break;case 2:c=r,l=o,f=u;break;case 3:c=r,l=u,f=o;break;case 4:c=u,l=r,f=o;break;case 5:c=o,l=r,f=u;break}return[c*255,l*255,f*255]};U.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};U.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};U.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};U.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),c=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};U.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};U.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};U.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:U.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};U.hsv.ansi16=function(e){return U.rgb.ansi16(U.hsv.rgb(e),e[2])};U.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};U.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};U.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};U.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};U.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};U.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};U.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};U.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};U.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};U.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};U.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};U.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};U.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};U.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};U.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};U.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};U.gray.hsl=U.gray.hsv=function(e){return[0,0,e[0]]};U.gray.hwb=function(e){return[0,100,e[0]]};U.gray.cmyk=function(e){return[0,0,0,e[0]]};U.gray.lab=function(e){return[e[0],0,0]};U.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};U.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var $b=m((cj,Hb)=>{var Da=wh();function D3(){for(var e={},t=Object.keys(Da),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function x3(e){var t=D3(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Da[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function C3(e,t){return function(r){return t(e(r))}}function S3(e,t){for(var r=[t[e].parent,e],n=Da[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=C3(Da[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Hb.exports=function(e){for(var t=x3(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=S3(o,t))}return r}});var Gb=m((lj,Ub)=>{var vh=wh(),R3=$b(),ci={},F3=Object.keys(vh);function T3(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function O3(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}F3.forEach(function(e){ci[e]={},Object.defineProperty(ci[e],"channels",{value:vh[e].channels}),Object.defineProperty(ci[e],"labels",{value:vh[e].labels});var t=R3(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ci[e][n]=O3(i),ci[e][n].raw=T3(i)})});Ub.exports=ci});var zb=m((fj,Wb)=>{"use strict";var li=Gb(),xa=(e,t)=>function(){return`\x1B[${e.apply(li,arguments)+t}m`},Ca=(e,t)=>function(){let r=e.apply(li,arguments);return`\x1B[${38+t};5;${r}m`},Sa=(e,t)=>function(){let r=e.apply(li,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function k3(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:xa(r,0)},t.color.ansi256={ansi256:Ca(r,0)},t.color.ansi16m={rgb:Sa(n,0)},t.bgColor.ansi={ansi:xa(r,10)},t.bgColor.ansi256={ansi256:Ca(r,10)},t.bgColor.ansi16m={rgb:Sa(n,10)};for(let i of Object.keys(li)){if(typeof li[i]!="object")continue;let s=li[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=xa(s.ansi16,0),t.bgColor.ansi[i]=xa(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=Ca(s.ansi256,0),t.bgColor.ansi256[i]=Ca(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Sa(s.rgb,0),t.bgColor.ansi16m[i]=Sa(s.rgb,10))}return t}Object.defineProperty(Wb,"exports",{enumerable:!0,get:k3})});var Yb=m((hj,Vb)=>{"use strict";Vb.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Xb=m((dj,Kb)=>{"use strict";var P3=require("os"),Mt=Yb(),Ve=process.env,fi;Mt("no-color")||Mt("no-colors")||Mt("color=false")?fi=!1:(Mt("color")||Mt("colors")||Mt("color=true")||Mt("color=always"))&&(fi=!0);"FORCE_COLOR"in Ve&&(fi=Ve.FORCE_COLOR.length===0||parseInt(Ve.FORCE_COLOR,10)!==0);function B3(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function I3(e){if(fi===!1)return 0;if(Mt("color=16m")||Mt("color=full")||Mt("color=truecolor"))return 3;if(Mt("color=256"))return 2;if(e&&!e.isTTY&&fi!==!0)return 0;let t=fi?1:0;if(process.platform==="win32"){let r=P3.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ve)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Ve)||Ve.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in Ve)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ve.TEAMCITY_VERSION)?1:0;if(Ve.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ve){let r=parseInt((Ve.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ve.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ve.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ve.TERM)||"COLORTERM"in Ve?1:(Ve.TERM==="dumb",t)}function Ah(e){let t=I3(e);return B3(t)}Kb.exports={supportsColor:Ah,stdout:Ah(process.stdout),stderr:Ah(process.stderr)}});var tE=m((pj,eE)=>{"use strict";var L3=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Jb=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,N3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,M3=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,q3=new Map([["n",`
|
9
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Qb(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):q3.get(e)||e}function j3(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(N3))r.push(i[2].replace(M3,(o,a,u)=>a?Qb(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function H3(e){Jb.lastIndex=0;let t=[],r;for(;(r=Jb.exec(e))!==null;){let n=r[1];if(r[2]){let i=j3(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Zb(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}eE.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(L3,(s,o,a,u,c,l)=>{if(o)i.push(Qb(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:Zb(e,r)(f)),r.push({inverse:a,styles:H3(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Zb(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var oE=m((mj,xs)=>{"use strict";var xh=Bb(),Te=zb(),Dh=Xb().stdout,$3=tE(),nE=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),iE=["ansi","ansi","ansi256","ansi16m"],sE=new Set(["gray"]),hi=Object.create(null);function rE(e,t){t=t||{};let r=Dh?Dh.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Ds(e){if(!this||!(this instanceof Ds)||this.template){let t={};return rE(t,e),t.template=function(){let r=[].slice.call(arguments);return W3.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Ds.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Ds,t.template}rE(this,e)}nE&&(Te.blue.open="\x1B[94m");for(let e of Object.keys(Te))Te[e].closeRe=new RegExp(xh(Te[e].close),"g"),hi[e]={get(){let t=Te[e];return Ra.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};hi.visible={get(){return Ra.call(this,this._styles||[],!0,"visible")}};Te.color.closeRe=new RegExp(xh(Te.color.close),"g");for(let e of Object.keys(Te.color.ansi))sE.has(e)||(hi[e]={get(){let t=this.level;return function(){let n={open:Te.color[iE[t]][e].apply(null,arguments),close:Te.color.close,closeRe:Te.color.closeRe};return Ra.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Te.bgColor.closeRe=new RegExp(xh(Te.bgColor.close),"g");for(let e of Object.keys(Te.bgColor.ansi)){if(sE.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);hi[t]={get(){let r=this.level;return function(){let i={open:Te.bgColor[iE[r]][e].apply(null,arguments),close:Te.bgColor.close,closeRe:Te.bgColor.closeRe};return Ra.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var U3=Object.defineProperties(()=>{},hi);function Ra(e,t,r){let n=function(){return G3.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=U3,n}function G3(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Te.dim.open;nE&&this.hasGrey&&(Te.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Te.dim.open=n,r}function W3(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return $3(e,n.join(""))}Object.defineProperties(Ds.prototype,hi);xs.exports=Ds();xs.exports.supportsColor=Dh;xs.exports.default=xs.exports});var uE=m((gj,aE)=>{"use strict";var Ur=oE(),z3=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",V3={info:Ur.blue("\u2139"),success:Ur.green("\u2714"),warning:Ur.yellow("\u26A0"),error:Ur.red("\u2716")},Y3={info:Ur.blue("i"),success:Ur.green("\u221A"),warning:Ur.yellow("\u203C"),error:Ur.red("\xD7")};aE.exports=z3?V3:Y3});var lE=m((yj,cE)=>{"use strict";cE.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var hE=m((_j,fE)=>{"use strict";var K3=lE();fE.exports=e=>typeof e=="string"?e.replace(K3(),""):e});var dE=m((bj,Fa)=>{var X3=function(){"use strict";function e(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var f=[],h=[],g=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function b(_,p){if(_===null)return null;if(p==0)return _;var w,C;if(typeof _!="object")return _;if(e.__isArray(_))w=[];else if(e.__isRegExp(_))w=new RegExp(_.source,s(_)),_.lastIndex&&(w.lastIndex=_.lastIndex);else if(e.__isDate(_))w=new Date(_.getTime());else{if(g&&Buffer.isBuffer(_))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(_.length):w=new Buffer(_.length),_.copy(w),w;typeof c=="undefined"?(C=Object.getPrototypeOf(_),w=Object.create(C)):(w=Object.create(c),C=c)}if(a){var N=f.indexOf(_);if(N!=-1)return h[N];f.push(_),h.push(w)}for(var W in _){var M;C&&(M=Object.getOwnPropertyDescriptor(C,W)),!(M&&M.set==null)&&(w[W]=b(_[W],p-1))}return w}return b(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Fa=="object"&&Fa.exports&&(Fa.exports=X3)});var mE=m((Ej,pE)=>{var J3=dE();pE.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]=="undefined"&&(e[r]=J3(t[r]))}),e}});var yE=m((wj,gE)=>{gE.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]]});var wE=m((vj,Ch)=>{"use strict";var Z3=mE(),Cs=yE(),bE={nul:0,control:0};Ch.exports=function(t){return EE(t,bE)};Ch.exports.config=function(e){return e=Z3(e||{},bE),function(r){return EE(r,e)}};function EE(e,t){if(typeof e!="string")return _E(e,t);for(var r=0,n=0;n<e.length;n++){var i=_E(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function _E(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Q3(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function Q3(e){var t=0,r=Cs.length-1,n;if(e<Cs[0][0]||e>Cs[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Cs[n][1])t=n+1;else if(e<Cs[n][0])r=n-1;else return!0;return!1}});var AE=m((Aj,vE)=>{"use strict";vE.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var xE=m((Dj,DE)=>{var Sh=require("stream");DE.exports=Ne;function Ne(e){Sh.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}Ne.prototype=Object.create(Sh.prototype);Object.defineProperty(Ne.prototype,"constructor",{value:Ne,enumerable:!1});Ne.prototype.mute=function(){this.muted=!0};Ne.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ne.prototype,"_onpipe",{value:eB,enumerable:!1,writable:!0,configurable:!0});function eB(e){this._src=e}Object.defineProperty(Ne.prototype,"isTTY",{get:tB,set:rB,enumerable:!0,configurable:!0});function tB(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function rB(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ne.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ne.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ne.prototype.pipe=function(e,t){return this._dest=e,Sh.prototype.pipe.call(this,e,t)};Ne.prototype.pause=function(){if(this._src)return this._src.pause()};Ne.prototype.resume=function(){if(this._src)return this._src.resume()};Ne.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};Ne.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function Rh(e){return function(){var t=this._dest,r=this._src;t&&t[e]&&t[e].apply(t,arguments),r&&r[e]&&r[e].apply(r,arguments)}}Ne.prototype.destroy=Rh("destroy");Ne.prototype.destroySoon=Rh("destroySoon");Ne.prototype.close=Rh("close")});var SE=m((xj,Oh)=>{"use strict";var nB=require("readline"),iB=yb(),CE=Rb(),Ta=kb(),Oa=uE(),sB=hE(),oB=wE(),aB=AE(),uB=xE(),Fh=Symbol("text"),ka=Symbol("prefixText"),cB=3,Th=class{constructor(){this.requests=0,this.mutedStream=new uB,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let t=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(t.requests>0||s.emit===t.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(cB)&&process.emit("SIGINT"),Reflect.apply(t.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}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=nB.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)}},Pa,Ba=class{constructor(t){Pa||(Pa=new Th),typeof t=="string"&&(t={text:t}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...t},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:aB({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(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=t}_updateInterval(t){t!==void 0&&(this.interval=t)}get spinner(){return this._spinner}set spinner(t){if(this.frameIndex=0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=t}else if(process.platform==="win32")this._spinner=Ta.line;else if(t===void 0)this._spinner=Ta.dots;else if(Ta[t])this._spinner=Ta[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Fh]}get prefixText(){return this[ka]}get isSpinning(){return this.id!==void 0}updateLineCount(){let t=this.stream.columns||80,r=typeof this[ka]=="string"?this[ka]+"-":"";this.lineCount=sB(r+"--"+this[Fh]).split(`
|
10
|
-
`).reduce((n,i)=>n+Math.max(1,Math.ceil(oB(i)/t)),0)}set text(t){this[
|
11
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&
|
12
|
-
`),this}},lB=function(e){return new
|
6
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};sb.exports={stringReplaceAll:n3,stringEncaseCRLFWithFirstIndex:i3}});var fb=m((X7,lb)=>{"use strict";var s3=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ab=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a3=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,u3=new Map([["n",`
|
7
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function cb(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):u3.get(e)||e}function c3(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(o3))r.push(i[2].replace(a3,(a,u,c)=>u?cb(u):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function l3(e){ab.lastIndex=0;let t=[],r;for(;(r=ab.exec(e))!==null;){let n=r[1];if(r[2]){let i=c3(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function ub(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}lb.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(s3,(s,o,a,u,c,l)=>{if(o)i.push(cb(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:ub(e,r)(f)),r.push({inverse:a,styles:l3(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(ub(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var gb=m((J7,mb)=>{"use strict";var ws=oh(),{stdout:fh,stderr:hh}=ch(),{stringReplaceAll:f3,stringEncaseCRLFWithFirstIndex:h3}=ob(),hb=["ansi","ansi","ansi256","ansi16m"],ii=Object.create(null),d3=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=fh?fh.level:0;e.level=t.level===void 0?r:t.level},dh=class{constructor(t){return db(t)}},db=e=>{let t={};return d3(t,e),t.template=(...r)=>g3(t.template,...r),Object.setPrototypeOf(t,ha.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=dh,t.template};function ha(e){return db(e)}for(let[e,t]of Object.entries(ws))ii[e]={get(){let r=da(this,ph(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};ii.visible={get(){let e=da(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var pb=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of pb)ii[e]={get(){let{level:t}=this;return function(...r){let n=ph(ws.color[hb[t]][e](...r),ws.color.close,this._styler);return da(this,n,this._isEmpty)}}};for(let e of pb){let t="bg"+e[0].toUpperCase()+e.slice(1);ii[t]={get(){let{level:r}=this;return function(...n){let i=ph(ws.bgColor[hb[r]][e](...n),ws.bgColor.close,this._styler);return da(this,i,this._isEmpty)}}}}var p3=Object.defineProperties(()=>{},{...ii,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ph=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},da=(e,t,r)=>{let n=(...i)=>m3(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=p3,n._generator=e,n._styler=t,n._isEmpty=r,n},m3=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=f3(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
8
|
+
`);return s!==-1&&(t=h3(t,i,n,s)),n+t+i},lh,g3=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return lh===void 0&&(lh=fb()),lh(e,i.join(""))};Object.defineProperties(ha.prototype,ii);var vs=ha();vs.supportsColor=fh;vs.stderr=ha({level:hh?hh.level:0});vs.stderr.supportsColor=hh;vs.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};mb.exports=vs});var _b=m((Z7,mh)=>{"use strict";var yb=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};mh.exports=yb;mh.exports.default=yb});var gh=m((Q7,ma)=>{"use strict";var y3=_b(),pa=new WeakMap,bb=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(pa.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return y3(s,e),pa.set(s,n),s};ma.exports=bb;ma.exports.default=bb;ma.exports.callCount=e=>{if(!pa.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return pa.get(e)}});var Eb=m((ej,ga)=>{ga.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ga.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ga.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var bh=m((tj,ai)=>{var Ee=global.process,bn=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"};bn(Ee)?(wb=require("assert"),si=Eb(),vb=/^win/i.test(Ee.platform),As=require("events"),typeof As!="function"&&(As=As.EventEmitter),Ee.__signal_exit_emitter__?Le=Ee.__signal_exit_emitter__:(Le=Ee.__signal_exit_emitter__=new As,Le.count=0,Le.emitted={}),Le.infinite||(Le.setMaxListeners(1/0),Le.infinite=!0),ai.exports=function(e,t){if(!bn(global.process))return function(){};wb.equal(typeof e,"function","a callback must be provided for exit handler"),oi===!1&&yh();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Le.removeListener(r,e),Le.listeners("exit").length===0&&Le.listeners("afterexit").length===0&&ya()};return Le.on(r,e),n},ya=function(){!oi||!bn(global.process)||(oi=!1,si.forEach(function(t){try{Ee.removeListener(t,_a[t])}catch{}}),Ee.emit=ba,Ee.reallyExit=_h,Le.count-=1)},ai.exports.unload=ya,En=function(t,r,n){Le.emitted[t]||(Le.emitted[t]=!0,Le.emit(t,r,n))},_a={},si.forEach(function(e){_a[e]=function(){if(bn(global.process)){var r=Ee.listeners(e);r.length===Le.count&&(ya(),En("exit",null,e),En("afterexit",null,e),vb&&e==="SIGHUP"&&(e="SIGINT"),Ee.kill(Ee.pid,e))}}}),ai.exports.signals=function(){return si},oi=!1,yh=function(){oi||!bn(global.process)||(oi=!0,Le.count+=1,si=si.filter(function(t){try{return Ee.on(t,_a[t]),!0}catch{return!1}}),Ee.emit=Db,Ee.reallyExit=Ab)},ai.exports.load=yh,_h=Ee.reallyExit,Ab=function(t){bn(global.process)&&(Ee.exitCode=t||0,En("exit",Ee.exitCode,null),En("afterexit",Ee.exitCode,null),_h.call(Ee,Ee.exitCode))},ba=Ee.emit,Db=function(t,r){if(t==="exit"&&bn(global.process)){r!==void 0&&(Ee.exitCode=r);var n=ba.apply(this,arguments);return En("exit",Ee.exitCode,null),En("afterexit",Ee.exitCode,null),n}else return ba.apply(this,arguments)}):ai.exports=function(){return function(){}};var wb,si,vb,As,Le,ya,En,_a,oi,yh,_h,Ab,ba,Db});var Cb=m((rj,xb)=>{"use strict";var _3=gh(),b3=bh();xb.exports=_3(()=>{b3(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Sb=m(ui=>{"use strict";var E3=Cb(),Ea=!1;ui.show=(e=process.stderr)=>{e.isTTY&&(Ea=!1,e.write("\x1B[?25h"))};ui.hide=(e=process.stderr)=>{e.isTTY&&(E3(),Ea=!0,e.write("\x1B[?25l"))};ui.toggle=(e,t)=>{e!==void 0&&(Ea=e),Ea?ui.show(t):ui.hide(t)}});var Rb=m((ij,w3)=>{w3.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"]}}});var Ob=m((sj,Tb)=>{"use strict";var wa=Object.assign({},Rb()),Fb=Object.keys(wa);Object.defineProperty(wa,"random",{get(){let e=Math.floor(Math.random()*Fb.length),t=Fb[e];return wa[t]}});Tb.exports=wa});var Pb=m((oj,kb)=>{"use strict";var v3=/[|\\{}()[\]^$+*?.]/g;kb.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(v3,"\\$&")}});var Ib=m((aj,Bb)=>{"use strict";Bb.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]}});var Eh=m((uj,qb)=>{var wn=Ib(),Mb={};for(va in wn)wn.hasOwnProperty(va)&&(Mb[wn[va]]=va);var va,U=qb.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(nt in U)if(U.hasOwnProperty(nt)){if(!("channels"in U[nt]))throw new Error("missing channels property: "+nt);if(!("labels"in U[nt]))throw new Error("missing channel labels property: "+nt);if(U[nt].labels.length!==U[nt].channels)throw new Error("channel and label counts mismatch: "+nt);Lb=U[nt].channels,Nb=U[nt].labels,delete U[nt].channels,delete U[nt].labels,Object.defineProperty(U[nt],"channels",{value:Lb}),Object.defineProperty(U[nt],"labels",{value:Nb})}var Lb,Nb,nt;U.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u,c;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(i+s)/2,s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};U.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),f=function(h){return(c-h)/6/l+1/2};return l===0?i=s=0:(s=l/c,t=f(o),r=f(a),n=f(u),o===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};U.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=U.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};U.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function A3(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}U.rgb.keyword=function(e){var t=Mb[e];if(t)return t;var r=1/0,n;for(var i in wn)if(wn.hasOwnProperty(i)){var s=wn[i],o=A3(e,s);o<r&&(r=o,n=i)}return n};U.keyword.rgb=function(e){return wn[e]};U.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};U.rgb.lab=function(e){var t=U.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};U.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[c]=u*255;return a};U.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};U.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};U.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};U.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),u=r+a*(o-r);var c,l,f;switch(s){default:case 6:case 0:c=o,l=u,f=r;break;case 1:c=u,l=o,f=r;break;case 2:c=r,l=o,f=u;break;case 3:c=r,l=u,f=o;break;case 4:c=u,l=r,f=o;break;case 5:c=o,l=r,f=u;break}return[c*255,l*255,f*255]};U.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};U.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};U.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};U.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),c=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};U.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};U.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};U.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:U.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};U.hsv.ansi16=function(e){return U.rgb.ansi16(U.hsv.rgb(e),e[2])};U.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};U.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};U.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};U.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};U.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};U.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};U.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};U.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};U.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};U.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};U.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};U.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};U.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};U.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};U.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};U.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};U.gray.hsl=U.gray.hsv=function(e){return[0,0,e[0]]};U.gray.hwb=function(e){return[0,100,e[0]]};U.gray.cmyk=function(e){return[0,0,0,e[0]]};U.gray.lab=function(e){return[e[0],0,0]};U.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};U.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Hb=m((cj,jb)=>{var Aa=Eh();function D3(){for(var e={},t=Object.keys(Aa),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function x3(e){var t=D3(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Aa[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function C3(e,t){return function(r){return t(e(r))}}function S3(e,t){for(var r=[t[e].parent,e],n=Aa[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=C3(Aa[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}jb.exports=function(e){for(var t=x3(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=S3(o,t))}return r}});var Ub=m((lj,$b)=>{var wh=Eh(),R3=Hb(),ci={},F3=Object.keys(wh);function T3(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function O3(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}F3.forEach(function(e){ci[e]={},Object.defineProperty(ci[e],"channels",{value:wh[e].channels}),Object.defineProperty(ci[e],"labels",{value:wh[e].labels});var t=R3(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ci[e][n]=O3(i),ci[e][n].raw=T3(i)})});$b.exports=ci});var Wb=m((fj,Gb)=>{"use strict";var li=Ub(),Da=(e,t)=>function(){return`\x1B[${e.apply(li,arguments)+t}m`},xa=(e,t)=>function(){let r=e.apply(li,arguments);return`\x1B[${38+t};5;${r}m`},Ca=(e,t)=>function(){let r=e.apply(li,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function k3(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Da(r,0)},t.color.ansi256={ansi256:xa(r,0)},t.color.ansi16m={rgb:Ca(n,0)},t.bgColor.ansi={ansi:Da(r,10)},t.bgColor.ansi256={ansi256:xa(r,10)},t.bgColor.ansi16m={rgb:Ca(n,10)};for(let i of Object.keys(li)){if(typeof li[i]!="object")continue;let s=li[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=Da(s.ansi16,0),t.bgColor.ansi[i]=Da(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=xa(s.ansi256,0),t.bgColor.ansi256[i]=xa(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Ca(s.rgb,0),t.bgColor.ansi16m[i]=Ca(s.rgb,10))}return t}Object.defineProperty(Gb,"exports",{enumerable:!0,get:k3})});var Vb=m((hj,zb)=>{"use strict";zb.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Kb=m((dj,Yb)=>{"use strict";var P3=require("os"),Mt=Vb(),Ve=process.env,fi;Mt("no-color")||Mt("no-colors")||Mt("color=false")?fi=!1:(Mt("color")||Mt("colors")||Mt("color=true")||Mt("color=always"))&&(fi=!0);"FORCE_COLOR"in Ve&&(fi=Ve.FORCE_COLOR.length===0||parseInt(Ve.FORCE_COLOR,10)!==0);function B3(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function I3(e){if(fi===!1)return 0;if(Mt("color=16m")||Mt("color=full")||Mt("color=truecolor"))return 3;if(Mt("color=256"))return 2;if(e&&!e.isTTY&&fi!==!0)return 0;let t=fi?1:0;if(process.platform==="win32"){let r=P3.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ve)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Ve)||Ve.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in Ve)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ve.TEAMCITY_VERSION)?1:0;if(Ve.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ve){let r=parseInt((Ve.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ve.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ve.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ve.TERM)||"COLORTERM"in Ve?1:(Ve.TERM==="dumb",t)}function vh(e){let t=I3(e);return B3(t)}Yb.exports={supportsColor:vh,stdout:vh(process.stdout),stderr:vh(process.stderr)}});var eE=m((pj,Qb)=>{"use strict";var L3=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Xb=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,N3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,M3=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,q3=new Map([["n",`
|
9
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Zb(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):q3.get(e)||e}function j3(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(N3))r.push(i[2].replace(M3,(o,a,u)=>a?Zb(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function H3(e){Xb.lastIndex=0;let t=[],r;for(;(r=Xb.exec(e))!==null;){let n=r[1];if(r[2]){let i=j3(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Jb(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Qb.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(L3,(s,o,a,u,c,l)=>{if(o)i.push(Zb(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:Jb(e,r)(f)),r.push({inverse:a,styles:H3(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Jb(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var sE=m((mj,xs)=>{"use strict";var Dh=Pb(),Te=Wb(),Ah=Kb().stdout,$3=eE(),rE=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),nE=["ansi","ansi","ansi256","ansi16m"],iE=new Set(["gray"]),hi=Object.create(null);function tE(e,t){t=t||{};let r=Ah?Ah.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Ds(e){if(!this||!(this instanceof Ds)||this.template){let t={};return tE(t,e),t.template=function(){let r=[].slice.call(arguments);return W3.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Ds.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Ds,t.template}tE(this,e)}rE&&(Te.blue.open="\x1B[94m");for(let e of Object.keys(Te))Te[e].closeRe=new RegExp(Dh(Te[e].close),"g"),hi[e]={get(){let t=Te[e];return Sa.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};hi.visible={get(){return Sa.call(this,this._styles||[],!0,"visible")}};Te.color.closeRe=new RegExp(Dh(Te.color.close),"g");for(let e of Object.keys(Te.color.ansi))iE.has(e)||(hi[e]={get(){let t=this.level;return function(){let n={open:Te.color[nE[t]][e].apply(null,arguments),close:Te.color.close,closeRe:Te.color.closeRe};return Sa.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Te.bgColor.closeRe=new RegExp(Dh(Te.bgColor.close),"g");for(let e of Object.keys(Te.bgColor.ansi)){if(iE.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);hi[t]={get(){let r=this.level;return function(){let i={open:Te.bgColor[nE[r]][e].apply(null,arguments),close:Te.bgColor.close,closeRe:Te.bgColor.closeRe};return Sa.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var U3=Object.defineProperties(()=>{},hi);function Sa(e,t,r){let n=function(){return G3.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=U3,n}function G3(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Te.dim.open;rE&&this.hasGrey&&(Te.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Te.dim.open=n,r}function W3(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return $3(e,n.join(""))}Object.defineProperties(Ds.prototype,hi);xs.exports=Ds();xs.exports.supportsColor=Ah;xs.exports.default=xs.exports});var aE=m((gj,oE)=>{"use strict";var Ur=sE(),z3=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",V3={info:Ur.blue("\u2139"),success:Ur.green("\u2714"),warning:Ur.yellow("\u26A0"),error:Ur.red("\u2716")},Y3={info:Ur.blue("i"),success:Ur.green("\u221A"),warning:Ur.yellow("\u203C"),error:Ur.red("\xD7")};oE.exports=z3?V3:Y3});var cE=m((yj,uE)=>{"use strict";uE.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var fE=m((_j,lE)=>{"use strict";var K3=cE();lE.exports=e=>typeof e=="string"?e.replace(K3(),""):e});var hE=m((bj,Ra)=>{var X3=function(){"use strict";function e(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var f=[],h=[],g=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function b(_,p){if(_===null)return null;if(p==0)return _;var w,C;if(typeof _!="object")return _;if(e.__isArray(_))w=[];else if(e.__isRegExp(_))w=new RegExp(_.source,s(_)),_.lastIndex&&(w.lastIndex=_.lastIndex);else if(e.__isDate(_))w=new Date(_.getTime());else{if(g&&Buffer.isBuffer(_))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(_.length):w=new Buffer(_.length),_.copy(w),w;typeof c=="undefined"?(C=Object.getPrototypeOf(_),w=Object.create(C)):(w=Object.create(c),C=c)}if(a){var N=f.indexOf(_);if(N!=-1)return h[N];f.push(_),h.push(w)}for(var W in _){var M;C&&(M=Object.getOwnPropertyDescriptor(C,W)),!(M&&M.set==null)&&(w[W]=b(_[W],p-1))}return w}return b(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Ra=="object"&&Ra.exports&&(Ra.exports=X3)});var pE=m((Ej,dE)=>{var J3=hE();dE.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]=="undefined"&&(e[r]=J3(t[r]))}),e}});var gE=m((wj,mE)=>{mE.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]]});var EE=m((vj,xh)=>{"use strict";var Z3=pE(),Cs=gE(),_E={nul:0,control:0};xh.exports=function(t){return bE(t,_E)};xh.exports.config=function(e){return e=Z3(e||{},_E),function(r){return bE(r,e)}};function bE(e,t){if(typeof e!="string")return yE(e,t);for(var r=0,n=0;n<e.length;n++){var i=yE(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function yE(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Q3(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function Q3(e){var t=0,r=Cs.length-1,n;if(e<Cs[0][0]||e>Cs[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Cs[n][1])t=n+1;else if(e<Cs[n][0])r=n-1;else return!0;return!1}});var vE=m((Aj,wE)=>{"use strict";wE.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var DE=m((Dj,AE)=>{var Ch=require("stream");AE.exports=Ne;function Ne(e){Ch.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}Ne.prototype=Object.create(Ch.prototype);Object.defineProperty(Ne.prototype,"constructor",{value:Ne,enumerable:!1});Ne.prototype.mute=function(){this.muted=!0};Ne.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ne.prototype,"_onpipe",{value:eB,enumerable:!1,writable:!0,configurable:!0});function eB(e){this._src=e}Object.defineProperty(Ne.prototype,"isTTY",{get:tB,set:rB,enumerable:!0,configurable:!0});function tB(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function rB(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ne.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ne.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ne.prototype.pipe=function(e,t){return this._dest=e,Ch.prototype.pipe.call(this,e,t)};Ne.prototype.pause=function(){if(this._src)return this._src.pause()};Ne.prototype.resume=function(){if(this._src)return this._src.resume()};Ne.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};Ne.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function Sh(e){return function(){var t=this._dest,r=this._src;t&&t[e]&&t[e].apply(t,arguments),r&&r[e]&&r[e].apply(r,arguments)}}Ne.prototype.destroy=Sh("destroy");Ne.prototype.destroySoon=Sh("destroySoon");Ne.prototype.close=Sh("close")});var CE=m((xj,Th)=>{"use strict";var nB=require("readline"),iB=gb(),xE=Sb(),Fa=Ob(),Ta=aE(),sB=fE(),oB=EE(),aB=vE(),uB=DE(),Rh=Symbol("text"),Oa=Symbol("prefixText"),cB=3,Fh=class{constructor(){this.requests=0,this.mutedStream=new uB,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let t=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(t.requests>0||s.emit===t.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(cB)&&process.emit("SIGINT"),Reflect.apply(t.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}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=nB.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)}},ka,Pa=class{constructor(t){ka||(ka=new Fh),typeof t=="string"&&(t={text:t}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...t},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:aB({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(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=t}_updateInterval(t){t!==void 0&&(this.interval=t)}get spinner(){return this._spinner}set spinner(t){if(this.frameIndex=0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=t}else if(process.platform==="win32")this._spinner=Fa.line;else if(t===void 0)this._spinner=Fa.dots;else if(Fa[t])this._spinner=Fa[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Rh]}get prefixText(){return this[Oa]}get isSpinning(){return this.id!==void 0}updateLineCount(){let t=this.stream.columns||80,r=typeof this[Oa]=="string"?this[Oa]+"-":"";this.lineCount=sB(r+"--"+this[Rh]).split(`
|
10
|
+
`).reduce((n,i)=>n+Math.max(1,Math.ceil(oB(i)/t)),0)}set text(t){this[Rh]=t,this.updateLineCount()}set prefixText(t){this[Oa]=t,this.updateLineCount()}frame(){let{frames:t}=this.spinner,r=t[this.frameIndex];this.color&&(r=iB[this.color](r)),this.frameIndex=++this.frameIndex%t.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let t=0;t<this.linesToClear;t++)t>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(t){return t&&(this.text=t),this.isEnabled?this.isSpinning?this:(this.hideCursor&&xE.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,ka.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
11
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&xE.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(ka.stop(),this.isDiscardingStdin=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Ta.success,text:t})}fail(t){return this.stopAndPersist({symbol:Ta.error,text:t})}warn(t){return this.stopAndPersist({symbol:Ta.warning,text:t})}info(t){return this.stopAndPersist({symbol:Ta.info,text:t})}stopAndPersist(t={}){let r=t.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=t.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${t.symbol||" "}${s}
|
12
|
+
`),this}},lB=function(e){return new Pa(e)};Th.exports=lB;Th.exports.promise=(e,t)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Pa(t);return r.start(),(async()=>{try{await e,r.succeed()}catch{r.fail()}})(),r}});var RE=m((Cj,SE)=>{"use strict";var fB=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},hB=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
13
13
|
`:`
|
14
14
|
`)+r,i=n+1,n=e.indexOf(`
|
15
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
16
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
17
|
-
`);return s!==-1&&(t=EB(t,i,n,s)),n+t+i},kh,qE=(e,...t)=>{let[r]=t;if(!Ia(r)||!Ia(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return kh===void 0&&(kh=BE()),kh(e,i.join(""))};Object.defineProperties(La.prototype,di);var Ma=La();Ma.supportsColor=Ph;Ma.stderr=La({level:Bh?Bh.level:0});Ma.stderr.supportsColor=Bh;jE.exports=Ma});var $E=m((Fj,qa)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,s=e.min,o=e.max,a=e.random;function u(d,v){if(d=d||"",v=v||{},d instanceof u)return d;if(!(this instanceof u))return new u(d,v);var y=c(d);this._originalInput=d,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=i(100*this._a)/100,this._format=v.format||y.format,this._gradientType=v.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=y.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),v,y,O,H,j,ue;return v=d.r/255,y=d.g/255,O=d.b/255,v<=.03928?H=v/12.92:H=e.pow((v+.055)/1.055,2.4),y<=.03928?j=y/12.92:j=e.pow((y+.055)/1.055,2.4),O<=.03928?ue=O/12.92:ue=e.pow((O+.055)/1.055,2.4),.2126*H+.7152*j+.0722*ue},setAlpha:function(d){return this._a=S(d),this._roundA=i(100*this._a)/100,this},toHsv:function(){var d=g(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=g(this._r,this._g,this._b),v=i(d.h*360),y=i(d.s*100),O=i(d.v*100);return this._a==1?"hsv("+v+", "+y+"%, "+O+"%)":"hsva("+v+", "+y+"%, "+O+"%, "+this._roundA+")"},toHsl:function(){var d=f(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=f(this._r,this._g,this._b),v=i(d.h*360),y=i(d.s*100),O=i(d.l*100);return this._a==1?"hsl("+v+", "+y+"%, "+O+"%)":"hsla("+v+", "+y+"%, "+O+"%, "+this._roundA+")"},toHex:function(d){return _(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(k(this._r,255)*100)+"%",g:i(k(this._g,255)*100)+"%",b:i(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(k(this._r,255)*100)+"%, "+i(k(this._g,255)*100)+"%, "+i(k(this._b,255)*100)+"%)":"rgba("+i(k(this._r,255)*100)+"%, "+i(k(this._g,255)*100)+"%, "+i(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:A[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var v="#"+w(this._r,this._g,this._b,this._a),y=v,O=this._gradientType?"GradientType = 1, ":"";if(d){var H=u(d);y="#"+w(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+O+"startColorstr="+v+",endColorstr="+y+")"},toString:function(d){var v=!!d;d=d||this._format;var y=!1,O=this._a<1&&this._a>=0,H=!v&&O&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return H?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(y=this.toRgbString()),d==="prgb"&&(y=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(y=this.toHexString()),d==="hex3"&&(y=this.toHexString(!0)),d==="hex4"&&(y=this.toHex8String(!0)),d==="hex8"&&(y=this.toHex8String()),d==="name"&&(y=this.toName()),d==="hsl"&&(y=this.toHslString()),d==="hsv"&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,v){var y=d.apply(null,[this].concat([].slice.call(v)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(X,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(N,arguments)},greyscale:function(){return this._applyModification(W,arguments)},spin:function(){return this._applyModification(Y,arguments)},_applyCombination:function(d,v){return d.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(oe,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(st,arguments)},splitcomplement:function(){return this._applyCombination(ce,arguments)},triad:function(){return this._applyCombination(ve,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,v){if(typeof d=="object"){var y={};for(var O in d)d.hasOwnProperty(O)&&(O==="a"?y[O]=d[O]:y[O]=Ae(d[O]));d=y}return u(d,v)};function c(d){var v={r:0,g:0,b:0},y=1,O=null,H=null,j=null,ue=!1,we=!1;return typeof d=="string"&&(d=he(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(v=l(d.r,d.g,d.b),ue=!0,we=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(O=Ae(d.s),H=Ae(d.v),v=b(d.h,O,H),ue=!0,we="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(O=Ae(d.s),j=Ae(d.l),v=h(d.h,O,j),ue=!0,we="hsl"),d.hasOwnProperty("a")&&(y=d.a)),y=S(y),{ok:ue,format:d.format||we,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:y}}function l(d,v,y){return{r:k(d,255)*255,g:k(v,255)*255,b:k(y,255)*255}}function f(d,v,y){d=k(d,255),v=k(v,255),y=k(y,255);var O=o(d,v,y),H=s(d,v,y),j,ue,we=(O+H)/2;if(O==H)j=ue=0;else{var De=O-H;switch(ue=we>.5?De/(2-O-H):De/(O+H),O){case d:j=(v-y)/De+(v<y?6:0);break;case v:j=(y-d)/De+2;break;case y:j=(d-v)/De+4;break}j/=6}return{h:j,s:ue,l:we}}function h(d,v,y){var O,H,j;d=k(d,360),v=k(v,100),y=k(y,100);function ue(Et,ns,Lt){return Lt<0&&(Lt+=1),Lt>1&&(Lt-=1),Lt<1/6?Et+(ns-Et)*6*Lt:Lt<1/2?ns:Lt<2/3?Et+(ns-Et)*(2/3-Lt)*6:Et}if(v===0)O=H=j=y;else{var we=y<.5?y*(1+v):y+v-y*v,De=2*y-we;O=ue(De,we,d+1/3),H=ue(De,we,d),j=ue(De,we,d-1/3)}return{r:O*255,g:H*255,b:j*255}}function g(d,v,y){d=k(d,255),v=k(v,255),y=k(y,255);var O=o(d,v,y),H=s(d,v,y),j,ue,we=O,De=O-H;if(ue=O===0?0:De/O,O==H)j=0;else{switch(O){case d:j=(v-y)/De+(v<y?6:0);break;case v:j=(y-d)/De+2;break;case y:j=(d-v)/De+4;break}j/=6}return{h:j,s:ue,v:we}}function b(d,v,y){d=k(d,360)*6,v=k(v,100),y=k(y,100);var O=e.floor(d),H=d-O,j=y*(1-v),ue=y*(1-H*v),we=y*(1-(1-H)*v),De=O%6,Et=[y,ue,j,j,we,y][De],ns=[we,y,y,ue,j,j][De],Lt=[j,j,we,y,y,ue][De];return{r:Et*255,g:ns*255,b:Lt*255}}function _(d,v,y,O){var H=[ae(i(d).toString(16)),ae(i(v).toString(16)),ae(i(y).toString(16))];return O&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0):H.join("")}function p(d,v,y,O,H){var j=[ae(i(d).toString(16)),ae(i(v).toString(16)),ae(i(y).toString(16)),ae(K(O))];return H&&j[0].charAt(0)==j[0].charAt(1)&&j[1].charAt(0)==j[1].charAt(1)&&j[2].charAt(0)==j[2].charAt(1)&&j[3].charAt(0)==j[3].charAt(1)?j[0].charAt(0)+j[1].charAt(0)+j[2].charAt(0)+j[3].charAt(0):j.join("")}function w(d,v,y,O){var H=[ae(K(O)),ae(i(d).toString(16)),ae(i(v).toString(16)),ae(i(y).toString(16))];return H.join("")}u.equals=function(d,v){return!d||!v?!1:u(d).toRgbString()==u(v).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.s-=v/100,y.s=G(y.s),u(y)}function N(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.s+=v/100,y.s=G(y.s),u(y)}function W(d){return u(d).desaturate(100)}function M(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.l+=v/100,y.l=G(y.l),u(y)}function X(d,v){v=v===0?0:v||10;var y=u(d).toRgb();return y.r=o(0,s(255,y.r-i(255*-(v/100)))),y.g=o(0,s(255,y.g-i(255*-(v/100)))),y.b=o(0,s(255,y.b-i(255*-(v/100)))),u(y)}function z(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.l-=v/100,y.l=G(y.l),u(y)}function Y(d,v){var y=u(d).toHsl(),O=(y.h+v)%360;return y.h=O<0?360+O:O,u(y)}function ee(d){var v=u(d).toHsl();return v.h=(v.h+180)%360,u(v)}function ve(d){var v=u(d).toHsl(),y=v.h;return[u(d),u({h:(y+120)%360,s:v.s,l:v.l}),u({h:(y+240)%360,s:v.s,l:v.l})]}function R(d){var v=u(d).toHsl(),y=v.h;return[u(d),u({h:(y+90)%360,s:v.s,l:v.l}),u({h:(y+180)%360,s:v.s,l:v.l}),u({h:(y+270)%360,s:v.s,l:v.l})]}function ce(d){var v=u(d).toHsl(),y=v.h;return[u(d),u({h:(y+72)%360,s:v.s,l:v.l}),u({h:(y+216)%360,s:v.s,l:v.l})]}function oe(d,v,y){v=v||6,y=y||30;var O=u(d).toHsl(),H=360/y,j=[u(d)];for(O.h=(O.h-(H*v>>1)+720)%360;--v;)O.h=(O.h+H)%360,j.push(u(O));return j}function st(d,v){v=v||6;for(var y=u(d).toHsv(),O=y.h,H=y.s,j=y.v,ue=[],we=1/v;v--;)ue.push(u({h:O,s:H,v:j})),j=(j+we)%1;return ue}u.mix=function(d,v,y){y=y===0?0:y||50;var O=u(d).toRgb(),H=u(v).toRgb(),j=y/100,ue={r:(H.r-O.r)*j+O.r,g:(H.g-O.g)*j+O.g,b:(H.b-O.b)*j+O.b,a:(H.a-O.a)*j+O.a};return u(ue)},u.readability=function(d,v){var y=u(d),O=u(v);return(e.max(y.getLuminance(),O.getLuminance())+.05)/(e.min(y.getLuminance(),O.getLuminance())+.05)},u.isReadable=function(d,v,y){var O=u.readability(d,v),H,j;switch(j=!1,H=B(y),H.level+H.size){case"AAsmall":case"AAAlarge":j=O>=4.5;break;case"AAlarge":j=O>=3;break;case"AAAsmall":j=O>=7;break}return j},u.mostReadable=function(d,v,y){var O=null,H=0,j,ue,we,De;y=y||{},ue=y.includeFallbackColors,we=y.level,De=y.size;for(var Et=0;Et<v.length;Et++)j=u.readability(d,v[Et]),j>H&&(H=j,O=u(v[Et]));return u.isReadable(d,O,{level:we,size:De})||!ue?O:(y.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],y))};var x=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=u.hexNames=F(x);function F(d){var v={};for(var y in d)d.hasOwnProperty(y)&&(v[d[y]]=y);return v}function S(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function k(d,v){le(d)&&(d="100%");var y=Oe(d);return d=s(v,o(0,parseFloat(d))),y&&(d=parseInt(d*v,10)/100),e.abs(d-v)<1e-6?1:d%v/parseFloat(v)}function G(d){return s(1,o(0,d))}function q(d){return parseInt(d,16)}function le(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Oe(d){return typeof d=="string"&&d.indexOf("%")!=-1}function ae(d){return d.length==1?"0"+d:""+d}function Ae(d){return d<=1&&(d=d*100+"%"),d}function K(d){return e.round(parseFloat(d)*255).toString(16)}function et(d){return q(d)/255}var dt=function(){var d="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",y="(?:"+v+")|(?:"+d+")",O="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",H="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?";return{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+H),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 I(d){return!!dt.CSS_UNIT.exec(d)}function he(d){d=d.replace(t,"").replace(r,"").toLowerCase();var v=!1;if(x[d])d=x[d],v=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var y;return(y=dt.rgb.exec(d))?{r:y[1],g:y[2],b:y[3]}:(y=dt.rgba.exec(d))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=dt.hsl.exec(d))?{h:y[1],s:y[2],l:y[3]}:(y=dt.hsla.exec(d))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=dt.hsv.exec(d))?{h:y[1],s:y[2],v:y[3]}:(y=dt.hsva.exec(d))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=dt.hex8.exec(d))?{r:q(y[1]),g:q(y[2]),b:q(y[3]),a:et(y[4]),format:v?"name":"hex8"}:(y=dt.hex6.exec(d))?{r:q(y[1]),g:q(y[2]),b:q(y[3]),format:v?"name":"hex"}:(y=dt.hex4.exec(d))?{r:q(y[1]+""+y[1]),g:q(y[2]+""+y[2]),b:q(y[3]+""+y[3]),a:et(y[4]+""+y[4]),format:v?"name":"hex8"}:(y=dt.hex3.exec(d))?{r:q(y[1]+""+y[1]),g:q(y[2]+""+y[2]),b:q(y[3]+""+y[3]),format:v?"name":"hex"}:!1}function B(d){var v,y;return d=d||{level:"AA",size:"small"},v=(d.level||"AA").toUpperCase(),y=(d.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),y!=="small"&&y!=="large"&&(y="small"),{level:v,size:y}}typeof qa!="undefined"&&qa.exports?qa.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var KE=m((Tj,YE)=>{var Rs=$E(),zE={r:256,g:256,b:256,a:1},VE={h:360,s:1,v:1,a:1};function Mh(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function qh(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Nh(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=Mh(n,i,r),o=[e.color];for(let a=1;a<r;a++){let u=qh(s,n,a,zE);o.push(Rs(u))}return o}function UE(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return Nh(e,t,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=Mh(i,s,r),u=[e.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=qh(a,i,l,VE);u.push(Rs(f))}return u}function GE(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function WE(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=e.length;u<c-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],s=e[u+1];break}i||(i=s=e[e.length-1]);let o=Mh(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=qh(o,i.color[r](),(t-i.pos)*100,n);return Rs(a)}var pi=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Rs(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Rs(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new pi(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new pi(t.concat(r.reverse()))}rgb(t){let r=GE(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Nh(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Nh(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=GE(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=UE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=UE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return WE(this.stops,t,"toRgb",zE)}hsvAt(t){return WE(this.stops,t,"toHsv",VE)}};YE.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new pi(e)}});var ew=m((Oj,ja)=>{"use strict";var JE=HE(),AB=KE(),XE=/\s/g;function jh(...e){let t=AB.apply(this,e),r=(n,i)=>DB(n?n.toString():"",t,i);return r.multiline=(n,i)=>xB(n?n.toString():"",t,i),r}var ZE=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function DB(e,t,r){let n=QE(r),i=Math.max(e.replace(XE,"").length,t.stops.length),s=ZE(t,n,i),o="";for(let a of e)o+=a.match(XE)?a:JE.hex(s.shift().toHex())(a);return o}function xB(e,t,r){let n=QE(r),i=e.split(`
|
18
|
-
`),s=Math.max.apply(null,i.map(u=>u.length).concat([t.stops.length])),o=
|
19
|
-
`)}function
|
15
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};SE.exports={stringReplaceAll:fB,stringEncaseCRLFWithFirstIndex:hB}});var PE=m((Sj,kE)=>{"use strict";var dB=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,FE=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,pB=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,mB=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,gB=new Map([["n",`
|
16
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function OE(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):gB.get(e)||e}function yB(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(pB))r.push(i[2].replace(mB,(a,u,c)=>u?OE(u):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function _B(e){FE.lastIndex=0;let t=[],r;for(;(r=FE.exec(e))!==null;){let n=r[1];if(r[2]){let i=yB(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function TE(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}kE.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(dB,(s,o,a,u,c,l)=>{if(o)i.push(OE(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:TE(e,r)(f)),r.push({inverse:a,styles:_B(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(TE(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var jE=m((Rj,qE)=>{"use strict";var Ss=oh(),{stdout:kh,stderr:Ph}=ch(),{stringReplaceAll:bB,stringEncaseCRLFWithFirstIndex:EB}=RE(),{isArray:Ba}=Array,IE=["ansi","ansi","ansi256","ansi16m"],di=Object.create(null),wB=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=kh?kh.level:0;e.level=t.level===void 0?r:t.level},Bh=class{constructor(t){return LE(t)}},LE=e=>{let t={};return wB(t,e),t.template=(...r)=>ME(t.template,...r),Object.setPrototypeOf(t,Ia.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Bh,t.template};function Ia(e){return LE(e)}for(let[e,t]of Object.entries(Ss))di[e]={get(){let r=La(this,Ih(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};di.visible={get(){let e=La(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var NE=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of NE)di[e]={get(){let{level:t}=this;return function(...r){let n=Ih(Ss.color[IE[t]][e](...r),Ss.color.close,this._styler);return La(this,n,this._isEmpty)}}};for(let e of NE){let t="bg"+e[0].toUpperCase()+e.slice(1);di[t]={get(){let{level:r}=this;return function(...n){let i=Ih(Ss.bgColor[IE[r]][e](...n),Ss.bgColor.close,this._styler);return La(this,i,this._isEmpty)}}}}var vB=Object.defineProperties(()=>{},{...di,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Ih=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},La=(e,t,r)=>{let n=(...i)=>Ba(i[0])&&Ba(i[0].raw)?BE(n,ME(n,...i)):BE(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,vB),n._generator=e,n._styler=t,n._isEmpty=r,n},BE=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=bB(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
17
|
+
`);return s!==-1&&(t=EB(t,i,n,s)),n+t+i},Oh,ME=(e,...t)=>{let[r]=t;if(!Ba(r)||!Ba(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Oh===void 0&&(Oh=PE()),Oh(e,i.join(""))};Object.defineProperties(Ia.prototype,di);var Na=Ia();Na.supportsColor=kh;Na.stderr=Ia({level:Ph?Ph.level:0});Na.stderr.supportsColor=Ph;qE.exports=Na});var HE=m((Fj,Ma)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,s=e.min,o=e.max,a=e.random;function u(d,v){if(d=d||"",v=v||{},d instanceof u)return d;if(!(this instanceof u))return new u(d,v);var y=c(d);this._originalInput=d,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=i(100*this._a)/100,this._format=v.format||y.format,this._gradientType=v.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=y.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),v,y,O,H,j,ue;return v=d.r/255,y=d.g/255,O=d.b/255,v<=.03928?H=v/12.92:H=e.pow((v+.055)/1.055,2.4),y<=.03928?j=y/12.92:j=e.pow((y+.055)/1.055,2.4),O<=.03928?ue=O/12.92:ue=e.pow((O+.055)/1.055,2.4),.2126*H+.7152*j+.0722*ue},setAlpha:function(d){return this._a=S(d),this._roundA=i(100*this._a)/100,this},toHsv:function(){var d=g(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=g(this._r,this._g,this._b),v=i(d.h*360),y=i(d.s*100),O=i(d.v*100);return this._a==1?"hsv("+v+", "+y+"%, "+O+"%)":"hsva("+v+", "+y+"%, "+O+"%, "+this._roundA+")"},toHsl:function(){var d=f(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=f(this._r,this._g,this._b),v=i(d.h*360),y=i(d.s*100),O=i(d.l*100);return this._a==1?"hsl("+v+", "+y+"%, "+O+"%)":"hsla("+v+", "+y+"%, "+O+"%, "+this._roundA+")"},toHex:function(d){return _(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(k(this._r,255)*100)+"%",g:i(k(this._g,255)*100)+"%",b:i(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(k(this._r,255)*100)+"%, "+i(k(this._g,255)*100)+"%, "+i(k(this._b,255)*100)+"%)":"rgba("+i(k(this._r,255)*100)+"%, "+i(k(this._g,255)*100)+"%, "+i(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:A[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var v="#"+w(this._r,this._g,this._b,this._a),y=v,O=this._gradientType?"GradientType = 1, ":"";if(d){var H=u(d);y="#"+w(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+O+"startColorstr="+v+",endColorstr="+y+")"},toString:function(d){var v=!!d;d=d||this._format;var y=!1,O=this._a<1&&this._a>=0,H=!v&&O&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return H?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(y=this.toRgbString()),d==="prgb"&&(y=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(y=this.toHexString()),d==="hex3"&&(y=this.toHexString(!0)),d==="hex4"&&(y=this.toHex8String(!0)),d==="hex8"&&(y=this.toHex8String()),d==="name"&&(y=this.toName()),d==="hsl"&&(y=this.toHslString()),d==="hsv"&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,v){var y=d.apply(null,[this].concat([].slice.call(v)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(X,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(N,arguments)},greyscale:function(){return this._applyModification(W,arguments)},spin:function(){return this._applyModification(Y,arguments)},_applyCombination:function(d,v){return d.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(oe,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(st,arguments)},splitcomplement:function(){return this._applyCombination(ce,arguments)},triad:function(){return this._applyCombination(ve,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,v){if(typeof d=="object"){var y={};for(var O in d)d.hasOwnProperty(O)&&(O==="a"?y[O]=d[O]:y[O]=Ae(d[O]));d=y}return u(d,v)};function c(d){var v={r:0,g:0,b:0},y=1,O=null,H=null,j=null,ue=!1,we=!1;return typeof d=="string"&&(d=he(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(v=l(d.r,d.g,d.b),ue=!0,we=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(O=Ae(d.s),H=Ae(d.v),v=b(d.h,O,H),ue=!0,we="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(O=Ae(d.s),j=Ae(d.l),v=h(d.h,O,j),ue=!0,we="hsl"),d.hasOwnProperty("a")&&(y=d.a)),y=S(y),{ok:ue,format:d.format||we,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:y}}function l(d,v,y){return{r:k(d,255)*255,g:k(v,255)*255,b:k(y,255)*255}}function f(d,v,y){d=k(d,255),v=k(v,255),y=k(y,255);var O=o(d,v,y),H=s(d,v,y),j,ue,we=(O+H)/2;if(O==H)j=ue=0;else{var De=O-H;switch(ue=we>.5?De/(2-O-H):De/(O+H),O){case d:j=(v-y)/De+(v<y?6:0);break;case v:j=(y-d)/De+2;break;case y:j=(d-v)/De+4;break}j/=6}return{h:j,s:ue,l:we}}function h(d,v,y){var O,H,j;d=k(d,360),v=k(v,100),y=k(y,100);function ue(Et,ns,Lt){return Lt<0&&(Lt+=1),Lt>1&&(Lt-=1),Lt<1/6?Et+(ns-Et)*6*Lt:Lt<1/2?ns:Lt<2/3?Et+(ns-Et)*(2/3-Lt)*6:Et}if(v===0)O=H=j=y;else{var we=y<.5?y*(1+v):y+v-y*v,De=2*y-we;O=ue(De,we,d+1/3),H=ue(De,we,d),j=ue(De,we,d-1/3)}return{r:O*255,g:H*255,b:j*255}}function g(d,v,y){d=k(d,255),v=k(v,255),y=k(y,255);var O=o(d,v,y),H=s(d,v,y),j,ue,we=O,De=O-H;if(ue=O===0?0:De/O,O==H)j=0;else{switch(O){case d:j=(v-y)/De+(v<y?6:0);break;case v:j=(y-d)/De+2;break;case y:j=(d-v)/De+4;break}j/=6}return{h:j,s:ue,v:we}}function b(d,v,y){d=k(d,360)*6,v=k(v,100),y=k(y,100);var O=e.floor(d),H=d-O,j=y*(1-v),ue=y*(1-H*v),we=y*(1-(1-H)*v),De=O%6,Et=[y,ue,j,j,we,y][De],ns=[we,y,y,ue,j,j][De],Lt=[j,j,we,y,y,ue][De];return{r:Et*255,g:ns*255,b:Lt*255}}function _(d,v,y,O){var H=[ae(i(d).toString(16)),ae(i(v).toString(16)),ae(i(y).toString(16))];return O&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0):H.join("")}function p(d,v,y,O,H){var j=[ae(i(d).toString(16)),ae(i(v).toString(16)),ae(i(y).toString(16)),ae(K(O))];return H&&j[0].charAt(0)==j[0].charAt(1)&&j[1].charAt(0)==j[1].charAt(1)&&j[2].charAt(0)==j[2].charAt(1)&&j[3].charAt(0)==j[3].charAt(1)?j[0].charAt(0)+j[1].charAt(0)+j[2].charAt(0)+j[3].charAt(0):j.join("")}function w(d,v,y,O){var H=[ae(K(O)),ae(i(d).toString(16)),ae(i(v).toString(16)),ae(i(y).toString(16))];return H.join("")}u.equals=function(d,v){return!d||!v?!1:u(d).toRgbString()==u(v).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.s-=v/100,y.s=G(y.s),u(y)}function N(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.s+=v/100,y.s=G(y.s),u(y)}function W(d){return u(d).desaturate(100)}function M(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.l+=v/100,y.l=G(y.l),u(y)}function X(d,v){v=v===0?0:v||10;var y=u(d).toRgb();return y.r=o(0,s(255,y.r-i(255*-(v/100)))),y.g=o(0,s(255,y.g-i(255*-(v/100)))),y.b=o(0,s(255,y.b-i(255*-(v/100)))),u(y)}function z(d,v){v=v===0?0:v||10;var y=u(d).toHsl();return y.l-=v/100,y.l=G(y.l),u(y)}function Y(d,v){var y=u(d).toHsl(),O=(y.h+v)%360;return y.h=O<0?360+O:O,u(y)}function ee(d){var v=u(d).toHsl();return v.h=(v.h+180)%360,u(v)}function ve(d){var v=u(d).toHsl(),y=v.h;return[u(d),u({h:(y+120)%360,s:v.s,l:v.l}),u({h:(y+240)%360,s:v.s,l:v.l})]}function R(d){var v=u(d).toHsl(),y=v.h;return[u(d),u({h:(y+90)%360,s:v.s,l:v.l}),u({h:(y+180)%360,s:v.s,l:v.l}),u({h:(y+270)%360,s:v.s,l:v.l})]}function ce(d){var v=u(d).toHsl(),y=v.h;return[u(d),u({h:(y+72)%360,s:v.s,l:v.l}),u({h:(y+216)%360,s:v.s,l:v.l})]}function oe(d,v,y){v=v||6,y=y||30;var O=u(d).toHsl(),H=360/y,j=[u(d)];for(O.h=(O.h-(H*v>>1)+720)%360;--v;)O.h=(O.h+H)%360,j.push(u(O));return j}function st(d,v){v=v||6;for(var y=u(d).toHsv(),O=y.h,H=y.s,j=y.v,ue=[],we=1/v;v--;)ue.push(u({h:O,s:H,v:j})),j=(j+we)%1;return ue}u.mix=function(d,v,y){y=y===0?0:y||50;var O=u(d).toRgb(),H=u(v).toRgb(),j=y/100,ue={r:(H.r-O.r)*j+O.r,g:(H.g-O.g)*j+O.g,b:(H.b-O.b)*j+O.b,a:(H.a-O.a)*j+O.a};return u(ue)},u.readability=function(d,v){var y=u(d),O=u(v);return(e.max(y.getLuminance(),O.getLuminance())+.05)/(e.min(y.getLuminance(),O.getLuminance())+.05)},u.isReadable=function(d,v,y){var O=u.readability(d,v),H,j;switch(j=!1,H=B(y),H.level+H.size){case"AAsmall":case"AAAlarge":j=O>=4.5;break;case"AAlarge":j=O>=3;break;case"AAAsmall":j=O>=7;break}return j},u.mostReadable=function(d,v,y){var O=null,H=0,j,ue,we,De;y=y||{},ue=y.includeFallbackColors,we=y.level,De=y.size;for(var Et=0;Et<v.length;Et++)j=u.readability(d,v[Et]),j>H&&(H=j,O=u(v[Et]));return u.isReadable(d,O,{level:we,size:De})||!ue?O:(y.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],y))};var x=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=u.hexNames=F(x);function F(d){var v={};for(var y in d)d.hasOwnProperty(y)&&(v[d[y]]=y);return v}function S(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function k(d,v){le(d)&&(d="100%");var y=Oe(d);return d=s(v,o(0,parseFloat(d))),y&&(d=parseInt(d*v,10)/100),e.abs(d-v)<1e-6?1:d%v/parseFloat(v)}function G(d){return s(1,o(0,d))}function q(d){return parseInt(d,16)}function le(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Oe(d){return typeof d=="string"&&d.indexOf("%")!=-1}function ae(d){return d.length==1?"0"+d:""+d}function Ae(d){return d<=1&&(d=d*100+"%"),d}function K(d){return e.round(parseFloat(d)*255).toString(16)}function et(d){return q(d)/255}var dt=function(){var d="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",y="(?:"+v+")|(?:"+d+")",O="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",H="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?";return{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+H),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 I(d){return!!dt.CSS_UNIT.exec(d)}function he(d){d=d.replace(t,"").replace(r,"").toLowerCase();var v=!1;if(x[d])d=x[d],v=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var y;return(y=dt.rgb.exec(d))?{r:y[1],g:y[2],b:y[3]}:(y=dt.rgba.exec(d))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=dt.hsl.exec(d))?{h:y[1],s:y[2],l:y[3]}:(y=dt.hsla.exec(d))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=dt.hsv.exec(d))?{h:y[1],s:y[2],v:y[3]}:(y=dt.hsva.exec(d))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=dt.hex8.exec(d))?{r:q(y[1]),g:q(y[2]),b:q(y[3]),a:et(y[4]),format:v?"name":"hex8"}:(y=dt.hex6.exec(d))?{r:q(y[1]),g:q(y[2]),b:q(y[3]),format:v?"name":"hex"}:(y=dt.hex4.exec(d))?{r:q(y[1]+""+y[1]),g:q(y[2]+""+y[2]),b:q(y[3]+""+y[3]),a:et(y[4]+""+y[4]),format:v?"name":"hex8"}:(y=dt.hex3.exec(d))?{r:q(y[1]+""+y[1]),g:q(y[2]+""+y[2]),b:q(y[3]+""+y[3]),format:v?"name":"hex"}:!1}function B(d){var v,y;return d=d||{level:"AA",size:"small"},v=(d.level||"AA").toUpperCase(),y=(d.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),y!=="small"&&y!=="large"&&(y="small"),{level:v,size:y}}typeof Ma!="undefined"&&Ma.exports?Ma.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var YE=m((Tj,VE)=>{var Rs=HE(),WE={r:256,g:256,b:256,a:1},zE={h:360,s:1,v:1,a:1};function Nh(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function Mh(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Lh(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=Nh(n,i,r),o=[e.color];for(let a=1;a<r;a++){let u=Mh(s,n,a,WE);o.push(Rs(u))}return o}function $E(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return Lh(e,t,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=Nh(i,s,r),u=[e.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=Mh(a,i,l,zE);u.push(Rs(f))}return u}function UE(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function GE(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=e.length;u<c-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],s=e[u+1];break}i||(i=s=e[e.length-1]);let o=Nh(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Mh(o,i.color[r](),(t-i.pos)*100,n);return Rs(a)}var pi=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Rs(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Rs(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new pi(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new pi(t.concat(r.reverse()))}rgb(t){let r=UE(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Lh(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Lh(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=UE(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=$E(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=$E(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return GE(this.stops,t,"toRgb",WE)}hsvAt(t){return GE(this.stops,t,"toHsv",zE)}};VE.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new pi(e)}});var QE=m((Oj,qa)=>{"use strict";var XE=jE(),AB=YE(),KE=/\s/g;function qh(...e){let t=AB.apply(this,e),r=(n,i)=>DB(n?n.toString():"",t,i);return r.multiline=(n,i)=>xB(n?n.toString():"",t,i),r}var JE=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function DB(e,t,r){let n=ZE(r),i=Math.max(e.replace(KE,"").length,t.stops.length),s=JE(t,n,i),o="";for(let a of e)o+=a.match(KE)?a:XE.hex(s.shift().toHex())(a);return o}function xB(e,t,r){let n=ZE(r),i=e.split(`
|
18
|
+
`),s=Math.max.apply(null,i.map(u=>u.length).concat([t.stops.length])),o=JE(t,n,s),a=[];for(let u of i){let c=o.slice(0),l="";for(let f of u)l+=XE.hex(c.shift().toHex())(f);a.push(l)}return a.join(`
|
19
|
+
`)}function ZE(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Fs={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"}}};qa.exports=qh;for(let e in Fs)qa.exports[e]=t=>new qh(Fs[e].colors)(t,Fs[e].options),qa.exports[e].multiline=t=>new qh(Fs[e].colors).multiline(t,Fs[e].options)});var fw=m((Lj,lw)=>{lw.exports=cw;cw.sync=MB;var aw=require("fs");function NB(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function uw(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:NB(t,r)}function cw(e,t,r){aw.stat(e,function(n,i){r(n,n?!1:uw(i,e,t))})}function MB(e,t){return uw(aw.statSync(e),e,t)}});var gw=m((Nj,mw)=>{mw.exports=dw;dw.sync=qB;var hw=require("fs");function dw(e,t,r){hw.stat(e,function(n,i){r(n,n?!1:pw(i,t))})}function qB(e,t){return pw(hw.statSync(e),t)}function pw(e,t){return e.isFile()&&jB(e,t)}function jB(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,f=r&c||r&u&&i===o||r&a&&n===s||r&l&&s===0;return f}});var _w=m((qj,yw)=>{var Mj=require("fs"),ja;process.platform==="win32"||global.TESTING_WINDOWS?ja=fw():ja=gw();yw.exports=Wh;Wh.sync=HB;function Wh(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Wh(e,t||{},function(s,o){s?i(s):n(o)})})}ja(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function HB(e,t){try{return ja.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var xw=m((jj,Dw)=>{var gi=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",bw=require("path"),$B=gi?";":":",Ew=_w(),ww=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),vw=(e,t)=>{let r=t.colon||$B,n=e.match(/\//)||gi&&e.match(/\\/)?[""]:[...gi?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=gi?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=gi?i.split(r):[""];return gi&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},Aw=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=vw(e,t),o=[],a=c=>new Promise((l,f)=>{if(c===n.length)return t.all&&o.length?l(o):f(ww(e));let h=n[c],g=/^".*"$/.test(h)?h.slice(1,-1):h,b=bw.join(g,e),_=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+b:b;l(u(_,c,0))}),u=(c,l,f)=>new Promise((h,g)=>{if(f===i.length)return h(a(l+1));let b=i[f];Ew(c+b,{pathExt:s},(_,p)=>{if(!_&&p)if(t.all)o.push(c+b);else return h(c+b);return h(u(c,l,f+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},UB=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=vw(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=bw.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let f=0;f<n.length;f++){let h=l+n[f];try{if(Ew.sync(h,{pathExt:i}))if(t.all)s.push(h);else return h}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw ww(e)};Dw.exports=Aw;Aw.sync=UB});var Vh=m((Hj,zh)=>{"use strict";var Cw=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};zh.exports=Cw;zh.exports.default=Cw});var Tw=m(($j,Fw)=>{"use strict";var Sw=require("path"),GB=xw(),WB=Vh();function Rw(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=GB.sync(e.command,{path:r[WB({env:r})],pathExt:t?Sw.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=Sw.resolve(i?e.options.cwd:"",o)),o}function zB(e){return Rw(e)||Rw(e,!0)}Fw.exports=zB});var Ow=m((Uj,Kh)=>{"use strict";var Yh=/([()\][%!^"`<>&|;, *?])/g;function VB(e){return e=e.replace(Yh,"^$1"),e}function YB(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Yh,"^$1"),t&&(e=e.replace(Yh,"^$1")),e}Kh.exports.command=VB;Kh.exports.argument=YB});var Pw=m((Gj,kw)=>{"use strict";kw.exports=/^#!(.*)/});var Iw=m((Wj,Bw)=>{"use strict";var KB=Pw();Bw.exports=(e="")=>{let t=e.match(KB);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Nw=m((zj,Lw)=>{"use strict";var Xh=require("fs"),XB=Iw();function JB(e){let r=Buffer.alloc(150),n;try{n=Xh.openSync(e,"r"),Xh.readSync(n,r,0,150,0),Xh.closeSync(n)}catch{}return XB(r.toString())}Lw.exports=JB});var Hw=m((Vj,jw)=>{"use strict";var ZB=require("path"),Mw=Tw(),qw=Ow(),QB=Nw(),eI=process.platform==="win32",tI=/\.(?:com|exe)$/i,rI=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function nI(e){e.file=Mw(e);let t=e.file&&QB(e.file);return t?(e.args.unshift(e.file),e.command=t,Mw(e)):e.file}function iI(e){if(!eI)return e;let t=nI(e),r=!tI.test(t);if(e.options.forceShell||r){let n=rI.test(t);e.command=ZB.normalize(e.command),e.command=qw.command(e.command),e.args=e.args.map(s=>qw.argument(s,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 sI(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:iI(n)}jw.exports=sI});var Gw=m((Yj,Uw)=>{"use strict";var Jh=process.platform==="win32";function Zh(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function oI(e,t){if(!Jh)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=$w(i,t,"spawn");if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function $w(e,t){return Jh&&e===1&&!t.file?Zh(t.original,"spawn"):null}function aI(e,t){return Jh&&e===1&&!t.file?Zh(t.original,"spawnSync"):null}Uw.exports={hookChildProcess:oI,verifyENOENT:$w,verifyENOENTSync:aI,notFoundError:Zh}});var Vw=m((Kj,yi)=>{"use strict";var Ww=require("child_process"),Qh=Hw(),ed=Gw();function zw(e,t,r){let n=Qh(e,t,r),i=Ww.spawn(n.command,n.args,n.options);return ed.hookChildProcess(i,n),i}function uI(e,t,r){let n=Qh(e,t,r),i=Ww.spawnSync(n.command,n.args,n.options);return i.error=i.error||ed.verifyENOENTSync(i.status,n),i}yi.exports=zw;yi.exports.spawn=zw;yi.exports.sync=uI;yi.exports._parse=Qh;yi.exports._enoent=ed});var Kw=m((Xj,Yw)=>{"use strict";Yw.exports=e=>{let t=typeof e=="string"?`
|
20
20
|
`:`
|
21
|
-
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var
|
21
|
+
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var Zw=m((Jj,ks)=>{"use strict";var Os=require("path"),Xw=Vh(),Jw=e=>{e={cwd:process.cwd(),path:process.env[Xw()],execPath:process.execPath,...e};let t,r=Os.resolve(e.cwd),n=[];for(;t!==r;)n.push(Os.join(r,"node_modules/.bin")),t=r,r=Os.resolve(r,"..");let i=Os.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Os.delimiter)};ks.exports=Jw;ks.exports.default=Jw;ks.exports.env=e=>{e={env:process.env,...e};let t={...e.env},r=Xw({env:t});return e.path=t[r],t[r]=ks.exports(e),t}});var Qw=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.SIGNALS=void 0;var cI=[{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"}];Ha.SIGNALS=cI});var td=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.SIGRTMAX=_i.getRealtimeSignals=void 0;var lI=function(){let e=tv-ev+1;return Array.from({length:e},fI)};_i.getRealtimeSignals=lI;var fI=function(e,t){return{name:`SIGRT${t+1}`,number:ev+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},ev=34,tv=64;_i.SIGRTMAX=tv});var rv=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.getSignals=void 0;var hI=require("os"),dI=Qw(),pI=td(),mI=function(){let e=(0,pI.getRealtimeSignals)();return[...dI.SIGNALS,...e].map(gI)};$a.getSignals=mI;var gI=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[e]:o}}=hI.constants,a=o!==void 0;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}}});var iv=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.signalsByNumber=bi.signalsByName=void 0;var yI=require("os"),nv=rv(),_I=td(),bI=function(){return(0,nv.getSignals)().reduce(EI,{})},EI=function(e,{name:t,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},wI=bI();bi.signalsByName=wI;var vI=function(){let e=(0,nv.getSignals)(),t=_I.SIGRTMAX+1,r=Array.from({length:t},(n,i)=>AI(i,e));return Object.assign({},...r)},AI=function(e,t){let r=DI(e,t);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}},DI=function(e,t){let r=t.find(({name:n})=>yI.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},xI=vI();bi.signalsByNumber=xI});var ov=m((rH,sv)=>{"use strict";var{signalsByName:CI}=iv(),SI=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",RI=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let h=i===void 0?void 0:CI[i].description,g=n&&n.code,_=`Command ${SI({timedOut:u,timeout:f,errorCode:g,signal:i,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,p=Object.prototype.toString.call(n)==="[object Error]",w=p?`${_}
|
22
22
|
${n.message}`:_,C=[w,t,e].filter(Boolean).join(`
|
23
|
-
`);return p?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=w,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};ov.exports=RI});var cv=m((nH,nd)=>{"use strict";var Ga=["stdin","stdout","stderr"],FI=e=>Ga.some(t=>e[t]!==void 0),uv=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ga.map(n=>e[n]);if(FI(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ga.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ga.length);return Array.from({length:r},(n,i)=>t[i])};nd.exports=uv;nd.exports.node=e=>{let t=uv(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var fv=m((iH,lv)=>{"use strict";var TI=require("os"),OI=Eh(),kI=1e3*5,PI=(e,t="SIGTERM",r={})=>{let n=e(t);return BI(e,t,r,n),n},BI=(e,t,r,n)=>{if(!II(t,r,n))return;let i=NI(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},II=(e,{forceKillAfterTimeout:t},r)=>LI(e)&&t!==!1&&r,LI=e=>e===TI.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",NI=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return kI;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},MI=(e,t)=>{e.kill()&&(t.isCanceled=!0)},qI=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},jI=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{qI(e,r,u)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},HI=({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})`)},$I=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=OI(()=>{e.kill()});return n.finally(()=>{i()})};lv.exports={spawnedKill:PI,spawnedCancel:MI,setupTimeout:jI,validateTimeout:HI,setExitHandler:$I}});var dv=m((sH,hv)=>{"use strict";var Kt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Kt.writable=e=>Kt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Kt.readable=e=>Kt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Kt.duplex=e=>Kt.writable(e)&&Kt.readable(e);Kt.transform=e=>Kt.duplex(e)&&typeof e._transform=="function";hv.exports=Kt});var mv=m((oH,pv)=>{"use strict";var{PassThrough:UI}=require("stream");pv.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new UI({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var gv=m((aH,Ps)=>{"use strict";var{constants:GI}=require("buffer"),WI=require("stream"),{promisify:zI}=require("util"),VI=mv(),YI=zI(WI.pipeline),Wa=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function id(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=VI(t);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=GI.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await YI(e,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Wa)})}),n.getBufferedValue()}Ps.exports=id;Ps.exports.buffer=(e,t)=>id(e,{...t,encoding:"buffer"});Ps.exports.array=(e,t)=>id(e,{...t,array:!0});Ps.exports.MaxBufferError=Wa});var _v=m((uH,yv)=>{"use strict";var{PassThrough:KI}=require("stream");yv.exports=function(){var e=[],t=new KI({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var vv=m((cH,wv)=>{"use strict";var Ev=dv(),bv=gv(),XI=_v(),JI=(e,t)=>{t===void 0||e.stdin===void 0||(Ev(t)?t.pipe(e.stdin):e.stdin.end(t))},ZI=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=XI();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},sd=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},od=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?bv(e,{encoding:t,maxBuffer:n}):bv.buffer(e,{maxBuffer:n})},QI=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=od(e,{encoding:n,buffer:i,maxBuffer:s}),u=od(t,{encoding:n,buffer:i,maxBuffer:s}),c=od(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},sd(e,a),sd(t,u),sd(r,c)])}},eL=({input:e})=>{if(Ev(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};wv.exports={handleInput:JI,makeAllStream:ZI,getSpawnedResult:QI,validateInputSync:eL}});var Dv=m((lH,Av)=>{"use strict";var tL=(async()=>{})().constructor.prototype,rL=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(tL,e)]),nL=(e,t)=>{for(let[r,n]of rL){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},iL=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});Av.exports={mergePromise:nL,getSpawnedPromise:iL}});var Sv=m((fH,Cv)=>{"use strict";var xv=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sL=/^[\w.-]+$/,oL=/"/g,aL=e=>typeof e!="string"||sL.test(e)?e:`"${e.replace(oL,'\\"')}"`,uL=(e,t)=>xv(e,t).join(" "),cL=(e,t)=>xv(e,t).map(r=>aL(r)).join(" "),lL=/ +/g,fL=e=>{let t=[];for(let r of e.trim().split(lL)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};Cv.exports={joinCommand:uL,getEscapedCommand:cL,parseCommand:fL}});var Bv=m((hH,Ei)=>{"use strict";var hL=require("path"),ad=require("child_process"),dL=Yw(),pL=Xw(),mL=Qw(),gL=yh(),za=av(),Fv=cv(),{spawnedKill:yL,spawnedCancel:_L,setupTimeout:bL,validateTimeout:EL,setExitHandler:wL}=fv(),{handleInput:vL,getSpawnedResult:AL,makeAllStream:DL,validateInputSync:xL}=vv(),{mergePromise:Rv,getSpawnedPromise:CL}=Dv(),{joinCommand:Tv,parseCommand:Ov,getEscapedCommand:kv}=Sv(),SL=1e3*1e3*100,RL=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?mL.env({env:s,cwd:n,execPath:i}):s},Pv=(e,t,r={})=>{let n=dL._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:SL,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=RL(r),r.stdio=Fv(r),process.platform==="win32"&&hL.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Bs=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?pL(t):t,Va=(e,t,r)=>{let n=Pv(e,t,r),i=Tv(e,t),s=kv(e,t);EL(n.options);let o;try{o=ad.spawn(n.file,n.args,n.options)}catch(g){let b=new ad.ChildProcess,_=Promise.reject(za({error:g,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Rv(b,_)}let a=CL(o),u=bL(o,n.options,a),c=wL(o,n.options,u),l={isCanceled:!1};o.kill=yL.bind(null,o.kill.bind(o)),o.cancel=_L.bind(null,o,l);let h=gL(async()=>{let[{error:g,exitCode:b,signal:_,timedOut:p},w,C,N]=await AL(o,n.options,c),W=Bs(n.options,w),M=Bs(n.options,C),X=Bs(n.options,N);if(g||b!==0||_!==null){let z=za({error:g,exitCode:b,signal:_,stdout:W,stderr:M,all:X,command:i,escapedCommand:s,parsed:n,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return z;throw z}return{command:i,escapedCommand:s,exitCode:0,stdout:W,stderr:M,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return vL(o,n.options.input),o.all=DL(o,n.options),Rv(o,h)};Ei.exports=Va;Ei.exports.sync=(e,t,r)=>{let n=Pv(e,t,r),i=Tv(e,t),s=kv(e,t);xL(n.options);let o;try{o=ad.spawnSync(n.file,n.args,n.options)}catch(c){throw za({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Bs(n.options,o.stdout,o.error),u=Bs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=za({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ei.exports.command=(e,t)=>{let[r,...n]=Ov(e);return Va(r,n,t)};Ei.exports.commandSync=(e,t)=>{let[r,...n]=Ov(e);return Va.sync(r,n,t)};Ei.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=Fv.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Va(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var wi=m((yH,Nv)=>{"use strict";var Lv=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"]]);Nv.exports=e=>e?Object.keys(e).map(t=>[Lv.has(t)?Lv.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var eu=m((_H,zv)=>{"use strict";var Mv=typeof process=="object"&&process?process:{stdout:null,stderr:null},kL=require("events"),qv=require("stream"),jv=require("string_decoder").StringDecoder,mr=Symbol("EOF"),gr=Symbol("maybeEmitEnd"),Gr=Symbol("emittedEnd"),Ka=Symbol("emittingEnd"),Ls=Symbol("emittedError"),Xa=Symbol("closed"),Hv=Symbol("read"),Ja=Symbol("flush"),$v=Symbol("flushChunk"),ct=Symbol("encoding"),yr=Symbol("decoder"),Za=Symbol("flowing"),Ns=Symbol("paused"),vi=Symbol("resume"),Se=Symbol("buffer"),Xt=Symbol("pipes"),Me=Symbol("bufferLength"),fd=Symbol("bufferPush"),hd=Symbol("bufferShift"),Ye=Symbol("objectMode"),Ke=Symbol("destroyed"),dd=Symbol("emitData"),Uv=Symbol("emitEnd"),pd=Symbol("emitEnd2"),_r=Symbol("async"),Ms=e=>Promise.resolve().then(e),Gv=global._MP_NO_ITERATOR_SYMBOLS_!=="1",PL=Gv&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),BL=Gv&&Symbol.iterator||Symbol("iterator not implemented"),IL=e=>e==="end"||e==="finish"||e==="prefinish",LL=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,NL=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Qa=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[vi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},md=class extends Qa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};zv.exports=class Wv extends qv{constructor(t){super(),this[Za]=!1,this[Ns]=!1,this[Xt]=[],this[Se]=[],this[Ye]=t&&t.objectMode||!1,this[Ye]?this[ct]=null:this[ct]=t&&t.encoding||null,this[ct]==="buffer"&&(this[ct]=null),this[_r]=t&&!!t.async||!1,this[yr]=this[ct]?new jv(this[ct]):null,this[mr]=!1,this[Gr]=!1,this[Ka]=!1,this[Xa]=!1,this[Ls]=null,this.writable=!0,this.readable=!0,this[Me]=0,this[Ke]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Se]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Xt]})}get bufferLength(){return this[Me]}get encoding(){return this[ct]}set encoding(t){if(this[Ye])throw new Error("cannot set encoding in objectMode");if(this[ct]&&t!==this[ct]&&(this[yr]&&this[yr].lastNeed||this[Me]))throw new Error("cannot change encoding");this[ct]!==t&&(this[yr]=t?new jv(t):null,this[Se].length&&(this[Se]=this[Se].map(r=>this[yr].write(r)))),this[ct]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ye]}set objectMode(t){this[Ye]=this[Ye]||!!t}get async(){return this[_r]}set async(t){this[_r]=this[_r]||!!t}write(t,r,n){if(this[mr])throw new Error("write after end");if(this[Ke])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[_r]?Ms:s=>s();return!this[Ye]&&!Buffer.isBuffer(t)&&(NL(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):LL(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ye]?(this.flowing&&this[Me]!==0&&this[Ja](!0),this.flowing?this.emit("data",t):this[fd](t),this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[ct]&&!this[yr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ct]&&(t=this[yr].write(t)),this.flowing&&this[Me]!==0&&this[Ja](!0),this.flowing?this.emit("data",t):this[fd](t),this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ke])return null;if(this[Me]===0||t===0||t>this[Me])return this[gr](),null;this[Ye]&&(t=null),this[Se].length>1&&!this[Ye]&&(this.encoding?this[Se]=[this[Se].join("")]:this[Se]=[Buffer.concat(this[Se],this[Me])]);let r=this[Hv](t||null,this[Se][0]);return this[gr](),r}[Hv](t,r){return t===r.length||t===null?this[hd]():(this[Se][0]=r.slice(t),r=r.slice(0,t),this[Me]-=t),this.emit("data",r),!this[Se].length&&!this[mr]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[mr]=!0,this.writable=!1,(this.flowing||!this[Ns])&&this[gr](),this}[vi](){this[Ke]||(this[Ns]=!1,this[Za]=!0,this.emit("resume"),this[Se].length?this[Ja]():this[mr]?this[gr]():this.emit("drain"))}resume(){return this[vi]()}pause(){this[Za]=!1,this[Ns]=!0}get destroyed(){return this[Ke]}get flowing(){return this[Za]}get paused(){return this[Ns]}[fd](t){this[Ye]?this[Me]+=1:this[Me]+=t.length,this[Se].push(t)}[hd](){return this[Se].length&&(this[Ye]?this[Me]-=1:this[Me]-=this[Se][0].length),this[Se].shift()}[Ja](t){do;while(this[$v](this[hd]()));!t&&!this[Se].length&&!this[mr]&&this.emit("drain")}[$v](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ke])return;let n=this[Gr];return r=r||{},t===Mv.stdout||t===Mv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Xt].push(r.proxyErrors?new md(this,t,r):new Qa(this,t,r)),this[_r]?Ms(()=>this[vi]()):this[vi]()),t}unpipe(t){let r=this[Xt].find(n=>n.dest===t);r&&(this[Xt].splice(this[Xt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Xt].length&&!this.flowing?this[vi]():t==="readable"&&this[Me]!==0?super.emit("readable"):IL(t)&&this[Gr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Ls]&&(this[_r]?Ms(()=>r.call(this,this[Ls])):r.call(this,this[Ls])),n}get emittedEnd(){return this[Gr]}[gr](){!this[Ka]&&!this[Gr]&&!this[Ke]&&this[Se].length===0&&this[mr]&&(this[Ka]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xa]&&this.emit("close"),this[Ka]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ke&&this[Ke])return;if(t==="data")return r?this[_r]?Ms(()=>this[dd](r)):this[dd](r):!1;if(t==="end")return this[Uv]();if(t==="close"){if(this[Xa]=!0,!this[Gr]&&!this[Ke])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Ls]=r;let s=super.emit("error",r);return this[gr](),s}else if(t==="resume"){let s=super.emit("resume");return this[gr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[gr](),i}[dd](t){for(let n of this[Xt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[gr](),r}[Uv](){this[Gr]||(this[Gr]=!0,this.readable=!1,this[_r]?Ms(()=>this[pd]()):this[pd]())}[pd](){if(this[yr]){let r=this[yr].end();if(r){for(let n of this[Xt])n.dest.write(r);super.emit("data",r)}}for(let r of this[Xt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ye]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ye]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this[ct]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ke,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[PL](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[mr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[mr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ke,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[BL](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ke]?(t?this.emit("error",t):this.emit(Ke),this):(this[Ke]=!0,this[Se].length=0,this[Me]=0,typeof this.close=="function"&&!this[Xa]&&this.close(),t?this.emit("error",t):this.emit(Ke),this)}static isStream(t){return!!t&&(t instanceof Wv||t instanceof qv||t instanceof kL&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Yv=m((bH,Vv)=>{var ML=require("zlib").constants||{ZLIB_VERNUM:4736};Vv.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},ML))});var wd=m((EH,nA)=>{"use strict";var Kv=typeof process=="object"&&process?process:{stdout:null,stderr:null},qL=require("events"),Xv=require("stream"),Jv=require("string_decoder").StringDecoder,br=Symbol("EOF"),Er=Symbol("maybeEmitEnd"),Wr=Symbol("emittedEnd"),tu=Symbol("emittingEnd"),qs=Symbol("emittedError"),ru=Symbol("closed"),Zv=Symbol("read"),nu=Symbol("flush"),Qv=Symbol("flushChunk"),lt=Symbol("encoding"),wr=Symbol("decoder"),iu=Symbol("flowing"),js=Symbol("paused"),Ai=Symbol("resume"),qe=Symbol("bufferLength"),gd=Symbol("bufferPush"),yd=Symbol("bufferShift"),Xe=Symbol("objectMode"),Je=Symbol("destroyed"),_d=Symbol("emitData"),eA=Symbol("emitEnd"),bd=Symbol("emitEnd2"),vr=Symbol("async"),Hs=e=>Promise.resolve().then(e),tA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jL=tA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),HL=tA&&Symbol.iterator||Symbol("iterator not implemented"),$L=e=>e==="end"||e==="finish"||e==="prefinish",UL=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,GL=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),su=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[Ai](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ed=class extends su{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};nA.exports=class rA extends Xv{constructor(t){super(),this[iu]=!1,this[js]=!1,this.pipes=[],this.buffer=[],this[Xe]=t&&t.objectMode||!1,this[Xe]?this[lt]=null:this[lt]=t&&t.encoding||null,this[lt]==="buffer"&&(this[lt]=null),this[vr]=t&&!!t.async||!1,this[wr]=this[lt]?new Jv(this[lt]):null,this[br]=!1,this[Wr]=!1,this[tu]=!1,this[ru]=!1,this[qs]=null,this.writable=!0,this.readable=!0,this[qe]=0,this[Je]=!1}get bufferLength(){return this[qe]}get encoding(){return this[lt]}set encoding(t){if(this[Xe])throw new Error("cannot set encoding in objectMode");if(this[lt]&&t!==this[lt]&&(this[wr]&&this[wr].lastNeed||this[qe]))throw new Error("cannot change encoding");this[lt]!==t&&(this[wr]=t?new Jv(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[wr].write(r)))),this[lt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Xe]}set objectMode(t){this[Xe]=this[Xe]||!!t}get async(){return this[vr]}set async(t){this[vr]=this[vr]||!!t}write(t,r,n){if(this[br])throw new Error("write after end");if(this[Je])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[vr]?Hs:s=>s();return!this[Xe]&&!Buffer.isBuffer(t)&&(GL(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):UL(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Xe]?(this.flowing&&this[qe]!==0&&this[nu](!0),this.flowing?this.emit("data",t):this[gd](t),this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[lt]&&!this[wr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[lt]&&(t=this[wr].write(t)),this.flowing&&this[qe]!==0&&this[nu](!0),this.flowing?this.emit("data",t):this[gd](t),this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Je])return null;if(this[qe]===0||t===0||t>this[qe])return this[Er](),null;this[Xe]&&(t=null),this.buffer.length>1&&!this[Xe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[qe])]);let r=this[Zv](t||null,this.buffer[0]);return this[Er](),r}[Zv](t,r){return t===r.length||t===null?this[yd]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[qe]-=t),this.emit("data",r),!this.buffer.length&&!this[br]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[br]=!0,this.writable=!1,(this.flowing||!this[js])&&this[Er](),this}[Ai](){this[Je]||(this[js]=!1,this[iu]=!0,this.emit("resume"),this.buffer.length?this[nu]():this[br]?this[Er]():this.emit("drain"))}resume(){return this[Ai]()}pause(){this[iu]=!1,this[js]=!0}get destroyed(){return this[Je]}get flowing(){return this[iu]}get paused(){return this[js]}[gd](t){this[Xe]?this[qe]+=1:this[qe]+=t.length,this.buffer.push(t)}[yd](){return this.buffer.length&&(this[Xe]?this[qe]-=1:this[qe]-=this.buffer[0].length),this.buffer.shift()}[nu](t){do;while(this[Qv](this[yd]()));!t&&!this.buffer.length&&!this[br]&&this.emit("drain")}[Qv](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Je])return;let n=this[Wr];return r=r||{},t===Kv.stdout||t===Kv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new Ed(this,t,r):new su(this,t,r)),this[vr]?Hs(()=>this[Ai]()):this[Ai]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[Ai]():t==="readable"&&this[qe]!==0?super.emit("readable"):$L(t)&&this[Wr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[qs]&&(this[vr]?Hs(()=>r.call(this,this[qs])):r.call(this,this[qs])),n}get emittedEnd(){return this[Wr]}[Er](){!this[tu]&&!this[Wr]&&!this[Je]&&this.buffer.length===0&&this[br]&&(this[tu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ru]&&this.emit("close"),this[tu]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Je&&this[Je])return;if(t==="data")return r?this[vr]?Hs(()=>this[_d](r)):this[_d](r):!1;if(t==="end")return this[eA]();if(t==="close"){if(this[ru]=!0,!this[Wr]&&!this[Je])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[qs]=r;let s=super.emit("error",r);return this[Er](),s}else if(t==="resume"){let s=super.emit("resume");return this[Er](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[Er](),i}[_d](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[Er](),r}[eA](){this[Wr]||(this[Wr]=!0,this.readable=!1,this[vr]?Hs(()=>this[bd]()):this[bd]())}[bd](){if(this[wr]){let r=this[wr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Xe]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Xe]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Xe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Xe]?Promise.reject(new Error("cannot concat in objectMode")):this[lt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Je,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[jL](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[br])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[br]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Je,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[HL](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Je]?(t?this.emit("error",t):this.emit(Je),this):(this[Je]=!0,this.buffer.length=0,this[qe]=0,typeof this.close=="function"&&!this[ru]&&this.close(),t?this.emit("error",t):this.emit(Je),this)}static isStream(t){return!!t&&(t instanceof rA||t instanceof Xv||t instanceof qL&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Nd=m(gt=>{"use strict";var Cd=require("assert"),zr=require("buffer").Buffer,oA=require("zlib"),An=gt.constants=Yv(),WL=wd(),iA=zr.concat,Dn=Symbol("_superWrite"),xi=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},zL=Symbol("opts"),$s=Symbol("flushFlag"),sA=Symbol("finishFlushFlag"),Ld=Symbol("fullFlushFlag"),pe=Symbol("handle"),ou=Symbol("onError"),Di=Symbol("sawError"),vd=Symbol("level"),Ad=Symbol("strategy"),Dd=Symbol("ended"),wH=Symbol("_defaultFullFlush"),au=class extends WL{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[Di]=!1,this[Dd]=!1,this[zL]=t,this[$s]=t.flush,this[sA]=t.finishFlush;try{this[pe]=new oA[r](t)}catch(n){throw new xi(n)}this[ou]=n=>{this[Di]||(this[Di]=!0,this.close(),this.emit("error",n))},this[pe].on("error",n=>this[ou](new xi(n))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Di])return Cd(this[pe],"zlib binding closed"),this[pe].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[Ld]),this.write(Object.assign(zr.alloc(0),{[$s]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[sA]),this[Dd]=!0,super.end(null,null,n)}get ended(){return this[Dd]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=zr.from(t,r)),this[Di])return;Cd(this[pe],"zlib binding closed");let i=this[pe]._handle,s=i.close;i.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},zr.concat=c=>c;let a;try{let c=typeof t[$s]=="number"?t[$s]:this[$s];a=this[pe]._processChunk(t,c),zr.concat=iA}catch(c){zr.concat=iA,this[ou](new xi(c))}finally{this[pe]&&(this[pe]._handle=i,i.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",c=>this[ou](new xi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[Dn](zr.from(a[0]));for(let c=1;c<a.length;c++)u=this[Dn](a[c])}else u=this[Dn](zr.from(a));return n&&n(),u}[Dn](t){return super.write(t)}},Ar=class extends au{constructor(t,r){t=t||{},t.flush=t.flush||An.Z_NO_FLUSH,t.finishFlush=t.finishFlush||An.Z_FINISH,super(t,r),this[Ld]=An.Z_FULL_FLUSH,this[vd]=t.level,this[Ad]=t.strategy}params(t,r){if(!this[Di]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[vd]!==t||this[Ad]!==r){this.flush(An.Z_SYNC_FLUSH),Cd(this[pe],"zlib binding closed");let n=this[pe].flush;this[pe].flush=(i,s)=>{this.flush(i),s()};try{this[pe].params(t,r)}finally{this[pe].flush=n}this[pe]&&(this[vd]=t,this[Ad]=r)}}}},Sd=class extends Ar{constructor(t){super(t,"Deflate")}},Rd=class extends Ar{constructor(t){super(t,"Inflate")}},xd=Symbol("_portable"),Fd=class extends Ar{constructor(t){super(t,"Gzip"),this[xd]=t&&!!t.portable}[Dn](t){return this[xd]?(this[xd]=!1,t[9]=255,super[Dn](t)):super[Dn](t)}},Td=class extends Ar{constructor(t){super(t,"Gunzip")}},Od=class extends Ar{constructor(t){super(t,"DeflateRaw")}},kd=class extends Ar{constructor(t){super(t,"InflateRaw")}},Pd=class extends Ar{constructor(t){super(t,"Unzip")}},uu=class extends au{constructor(t,r){t=t||{},t.flush=t.flush||An.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||An.BROTLI_OPERATION_FINISH,super(t,r),this[Ld]=An.BROTLI_OPERATION_FLUSH}},Bd=class extends uu{constructor(t){super(t,"BrotliCompress")}},Id=class extends uu{constructor(t){super(t,"BrotliDecompress")}};gt.Deflate=Sd;gt.Inflate=Rd;gt.Gzip=Fd;gt.Gunzip=Td;gt.DeflateRaw=Od;gt.InflateRaw=kd;gt.Unzip=Pd;typeof oA.BrotliCompress=="function"?(gt.BrotliCompress=Bd,gt.BrotliDecompress=Id):gt.BrotliCompress=gt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ci=m((DH,aA)=>{var VL=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;aA.exports=VL!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var cu=m((CH,uA)=>{"use strict";var YL=eu(),Md=Ci(),qd=Symbol("slurp");uA.exports=class extends YL{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=Md(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=Md(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[qd](r),n&&this[qd](n,!0)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(t):super.write(t.slice(0,n))}[qd](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Md(t[n]):t[n])}}});var jd=m(lu=>{"use strict";lu.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"]]);lu.code=new Map(Array.from(lu.name).map(e=>[e[1],e[0]]))});var hA=m((RH,fA)=>{"use strict";var KL=(e,t)=>{if(Number.isSafeInteger(e))e<0?JL(e,t):XL(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},XL=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},JL=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=cA(i):i===0?t[n-1]=0:(r=!0,t[n-1]=lA(i))}},ZL=e=>{let t=e[0],r=t===128?e6(e.slice(1,e.length)):t===255?QL(e):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},QL=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=cA(s):s===0?o=s:(n=!0,o=lA(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},e6=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},cA=e=>(255^e)&255,lA=e=>(255^e)+1&255;fA.exports={encode:KL,parse:ZL}});var Ri=m((FH,pA)=>{"use strict";var Hd=jd(),Si=require("path").posix,dA=hA(),$d=Symbol("slurp"),yt=Symbol("type"),Wd=class{constructor(t,r,n,i){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[yt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=xn(t,r,100),this.mode=Vr(t,r+100,8),this.uid=Vr(t,r+108,8),this.gid=Vr(t,r+116,8),this.size=Vr(t,r+124,12),this.mtime=Ud(t,r+136,12),this.cksum=Vr(t,r+148,12),this[$d](n),this[$d](i,!0),this[yt]=xn(t,r+156,1),this[yt]===""&&(this[yt]="0"),this[yt]==="0"&&this.path.slice(-1)==="/"&&(this[yt]="5"),this[yt]==="5"&&(this.size=0),this.linkpath=xn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=xn(t,r+265,32),this.gname=xn(t,r+297,32),this.devmaj=Vr(t,r+329,8),this.devmin=Vr(t,r+337,8),t[r+475]!==0){let o=xn(t,r+345,155);this.path=o+"/"+this.path}else{let o=xn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ud(t,r+476,12),this.ctime=Ud(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[$d](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=t6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=Cn(t,r,100,s)||this.needPax,this.needPax=Yr(t,r+100,8,this.mode)||this.needPax,this.needPax=Yr(t,r+108,8,this.uid)||this.needPax,this.needPax=Yr(t,r+116,8,this.gid)||this.needPax,this.needPax=Yr(t,r+124,12,this.size)||this.needPax,this.needPax=Gd(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[yt].charCodeAt(0),this.needPax=Cn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=Cn(t,r+265,32,this.uname)||this.needPax,this.needPax=Cn(t,r+297,32,this.gname)||this.needPax,this.needPax=Yr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Yr(t,r+337,8,this.devmin)||this.needPax,this.needPax=Cn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=Cn(t,r+345,155,o)||this.needPax:(this.needPax=Cn(t,r+345,130,o)||this.needPax,this.needPax=Gd(t,r+476,12,this.atime)||this.needPax,this.needPax=Gd(t,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=t[u];for(let u=r+156;u<r+512;u++)a+=t[u];return this.cksum=a,Yr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return Hd.name.get(this[yt])||this[yt]}get typeKey(){return this[yt]}set type(t){Hd.code.has(t)?this[yt]=Hd.code.get(t):this[yt]=t}},t6=(e,t)=>{let n=e,i="",s,o=Si.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Si.dirname(n),n=Si.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=Si.join(Si.basename(i),n),i=Si.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},xn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),Ud=(e,t,r)=>r6(Vr(e,t,r)),r6=e=>e===null?null:new Date(e*1e3),Vr=(e,t,r)=>e[t]&128?dA.parse(e.slice(t,t+r)):i6(e,t,r),n6=e=>isNaN(e)?null:e,i6=(e,t,r)=>n6(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),s6={12:8589934591,8:2097151},Yr=(e,t,r,n)=>n===null?!1:n>s6[r]||n<0?(dA.encode(n,e.slice(t,t+r)),!0):(o6(e,t,r,n),!1),o6=(e,t,r,n)=>e.write(a6(n,r),t,r,"ascii"),a6=(e,t)=>u6(Math.floor(e).toString(8),t),u6=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",Gd=(e,t,r,n)=>n===null?!1:Yr(e,t,r,n.getTime()/1e3),c6=new Array(156).join("\0"),Cn=(e,t,r,n)=>n===null?!1:(e.write(n+c6,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);pA.exports=Wd});var fu=m((TH,mA)=>{"use strict";var l6=Ri(),f6=require("path"),Us=class{constructor(t,r){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new l6({path:("PaxHeader/"+f6.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(i),i.write(t,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
23
|
+
`);return p?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=w,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};sv.exports=RI});var uv=m((nH,rd)=>{"use strict";var Ua=["stdin","stdout","stderr"],FI=e=>Ua.some(t=>e[t]!==void 0),av=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ua.map(n=>e[n]);if(FI(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ua.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ua.length);return Array.from({length:r},(n,i)=>t[i])};rd.exports=av;rd.exports.node=e=>{let t=av(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var lv=m((iH,cv)=>{"use strict";var TI=require("os"),OI=bh(),kI=1e3*5,PI=(e,t="SIGTERM",r={})=>{let n=e(t);return BI(e,t,r,n),n},BI=(e,t,r,n)=>{if(!II(t,r,n))return;let i=NI(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},II=(e,{forceKillAfterTimeout:t},r)=>LI(e)&&t!==!1&&r,LI=e=>e===TI.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",NI=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return kI;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},MI=(e,t)=>{e.kill()&&(t.isCanceled=!0)},qI=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},jI=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{qI(e,r,u)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},HI=({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})`)},$I=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=OI(()=>{e.kill()});return n.finally(()=>{i()})};cv.exports={spawnedKill:PI,spawnedCancel:MI,setupTimeout:jI,validateTimeout:HI,setExitHandler:$I}});var hv=m((sH,fv)=>{"use strict";var Kt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Kt.writable=e=>Kt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Kt.readable=e=>Kt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Kt.duplex=e=>Kt.writable(e)&&Kt.readable(e);Kt.transform=e=>Kt.duplex(e)&&typeof e._transform=="function";fv.exports=Kt});var pv=m((oH,dv)=>{"use strict";var{PassThrough:UI}=require("stream");dv.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new UI({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var mv=m((aH,Ps)=>{"use strict";var{constants:GI}=require("buffer"),WI=require("stream"),{promisify:zI}=require("util"),VI=pv(),YI=zI(WI.pipeline),Ga=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function nd(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=VI(t);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=GI.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await YI(e,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Ga)})}),n.getBufferedValue()}Ps.exports=nd;Ps.exports.buffer=(e,t)=>nd(e,{...t,encoding:"buffer"});Ps.exports.array=(e,t)=>nd(e,{...t,array:!0});Ps.exports.MaxBufferError=Ga});var yv=m((uH,gv)=>{"use strict";var{PassThrough:KI}=require("stream");gv.exports=function(){var e=[],t=new KI({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var wv=m((cH,Ev)=>{"use strict";var bv=hv(),_v=mv(),XI=yv(),JI=(e,t)=>{t===void 0||e.stdin===void 0||(bv(t)?t.pipe(e.stdin):e.stdin.end(t))},ZI=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=XI();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},id=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},sd=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?_v(e,{encoding:t,maxBuffer:n}):_v.buffer(e,{maxBuffer:n})},QI=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=sd(e,{encoding:n,buffer:i,maxBuffer:s}),u=sd(t,{encoding:n,buffer:i,maxBuffer:s}),c=sd(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},id(e,a),id(t,u),id(r,c)])}},eL=({input:e})=>{if(bv(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ev.exports={handleInput:JI,makeAllStream:ZI,getSpawnedResult:QI,validateInputSync:eL}});var Av=m((lH,vv)=>{"use strict";var tL=(async()=>{})().constructor.prototype,rL=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(tL,e)]),nL=(e,t)=>{for(let[r,n]of rL){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},iL=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});vv.exports={mergePromise:nL,getSpawnedPromise:iL}});var Cv=m((fH,xv)=>{"use strict";var Dv=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sL=/^[\w.-]+$/,oL=/"/g,aL=e=>typeof e!="string"||sL.test(e)?e:`"${e.replace(oL,'\\"')}"`,uL=(e,t)=>Dv(e,t).join(" "),cL=(e,t)=>Dv(e,t).map(r=>aL(r)).join(" "),lL=/ +/g,fL=e=>{let t=[];for(let r of e.trim().split(lL)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};xv.exports={joinCommand:uL,getEscapedCommand:cL,parseCommand:fL}});var Pv=m((hH,Ei)=>{"use strict";var hL=require("path"),od=require("child_process"),dL=Vw(),pL=Kw(),mL=Zw(),gL=gh(),Wa=ov(),Rv=uv(),{spawnedKill:yL,spawnedCancel:_L,setupTimeout:bL,validateTimeout:EL,setExitHandler:wL}=lv(),{handleInput:vL,getSpawnedResult:AL,makeAllStream:DL,validateInputSync:xL}=wv(),{mergePromise:Sv,getSpawnedPromise:CL}=Av(),{joinCommand:Fv,parseCommand:Tv,getEscapedCommand:Ov}=Cv(),SL=1e3*1e3*100,RL=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?mL.env({env:s,cwd:n,execPath:i}):s},kv=(e,t,r={})=>{let n=dL._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:SL,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=RL(r),r.stdio=Rv(r),process.platform==="win32"&&hL.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Bs=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?pL(t):t,za=(e,t,r)=>{let n=kv(e,t,r),i=Fv(e,t),s=Ov(e,t);EL(n.options);let o;try{o=od.spawn(n.file,n.args,n.options)}catch(g){let b=new od.ChildProcess,_=Promise.reject(Wa({error:g,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Sv(b,_)}let a=CL(o),u=bL(o,n.options,a),c=wL(o,n.options,u),l={isCanceled:!1};o.kill=yL.bind(null,o.kill.bind(o)),o.cancel=_L.bind(null,o,l);let h=gL(async()=>{let[{error:g,exitCode:b,signal:_,timedOut:p},w,C,N]=await AL(o,n.options,c),W=Bs(n.options,w),M=Bs(n.options,C),X=Bs(n.options,N);if(g||b!==0||_!==null){let z=Wa({error:g,exitCode:b,signal:_,stdout:W,stderr:M,all:X,command:i,escapedCommand:s,parsed:n,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return z;throw z}return{command:i,escapedCommand:s,exitCode:0,stdout:W,stderr:M,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return vL(o,n.options.input),o.all=DL(o,n.options),Sv(o,h)};Ei.exports=za;Ei.exports.sync=(e,t,r)=>{let n=kv(e,t,r),i=Fv(e,t),s=Ov(e,t);xL(n.options);let o;try{o=od.spawnSync(n.file,n.args,n.options)}catch(c){throw Wa({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Bs(n.options,o.stdout,o.error),u=Bs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Wa({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ei.exports.command=(e,t)=>{let[r,...n]=Tv(e);return za(r,n,t)};Ei.exports.commandSync=(e,t)=>{let[r,...n]=Tv(e);return za.sync(r,n,t)};Ei.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=Rv.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return za(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var wi=m((yH,Lv)=>{"use strict";var Iv=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"]]);Lv.exports=e=>e?Object.keys(e).map(t=>[Iv.has(t)?Iv.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var Qa=m((_H,Wv)=>{"use strict";var Nv=typeof process=="object"&&process?process:{stdout:null,stderr:null},kL=require("events"),Mv=require("stream"),qv=require("string_decoder").StringDecoder,mr=Symbol("EOF"),gr=Symbol("maybeEmitEnd"),Gr=Symbol("emittedEnd"),Ya=Symbol("emittingEnd"),Ls=Symbol("emittedError"),Ka=Symbol("closed"),jv=Symbol("read"),Xa=Symbol("flush"),Hv=Symbol("flushChunk"),ct=Symbol("encoding"),yr=Symbol("decoder"),Ja=Symbol("flowing"),Ns=Symbol("paused"),vi=Symbol("resume"),Se=Symbol("buffer"),Xt=Symbol("pipes"),Me=Symbol("bufferLength"),ld=Symbol("bufferPush"),fd=Symbol("bufferShift"),Ye=Symbol("objectMode"),Ke=Symbol("destroyed"),hd=Symbol("emitData"),$v=Symbol("emitEnd"),dd=Symbol("emitEnd2"),_r=Symbol("async"),Ms=e=>Promise.resolve().then(e),Uv=global._MP_NO_ITERATOR_SYMBOLS_!=="1",PL=Uv&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),BL=Uv&&Symbol.iterator||Symbol("iterator not implemented"),IL=e=>e==="end"||e==="finish"||e==="prefinish",LL=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,NL=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Za=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[vi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},pd=class extends Za{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};Wv.exports=class Gv extends Mv{constructor(t){super(),this[Ja]=!1,this[Ns]=!1,this[Xt]=[],this[Se]=[],this[Ye]=t&&t.objectMode||!1,this[Ye]?this[ct]=null:this[ct]=t&&t.encoding||null,this[ct]==="buffer"&&(this[ct]=null),this[_r]=t&&!!t.async||!1,this[yr]=this[ct]?new qv(this[ct]):null,this[mr]=!1,this[Gr]=!1,this[Ya]=!1,this[Ka]=!1,this[Ls]=null,this.writable=!0,this.readable=!0,this[Me]=0,this[Ke]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Se]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Xt]})}get bufferLength(){return this[Me]}get encoding(){return this[ct]}set encoding(t){if(this[Ye])throw new Error("cannot set encoding in objectMode");if(this[ct]&&t!==this[ct]&&(this[yr]&&this[yr].lastNeed||this[Me]))throw new Error("cannot change encoding");this[ct]!==t&&(this[yr]=t?new qv(t):null,this[Se].length&&(this[Se]=this[Se].map(r=>this[yr].write(r)))),this[ct]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ye]}set objectMode(t){this[Ye]=this[Ye]||!!t}get async(){return this[_r]}set async(t){this[_r]=this[_r]||!!t}write(t,r,n){if(this[mr])throw new Error("write after end");if(this[Ke])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[_r]?Ms:s=>s();return!this[Ye]&&!Buffer.isBuffer(t)&&(NL(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):LL(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ye]?(this.flowing&&this[Me]!==0&&this[Xa](!0),this.flowing?this.emit("data",t):this[ld](t),this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[ct]&&!this[yr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ct]&&(t=this[yr].write(t)),this.flowing&&this[Me]!==0&&this[Xa](!0),this.flowing?this.emit("data",t):this[ld](t),this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ke])return null;if(this[Me]===0||t===0||t>this[Me])return this[gr](),null;this[Ye]&&(t=null),this[Se].length>1&&!this[Ye]&&(this.encoding?this[Se]=[this[Se].join("")]:this[Se]=[Buffer.concat(this[Se],this[Me])]);let r=this[jv](t||null,this[Se][0]);return this[gr](),r}[jv](t,r){return t===r.length||t===null?this[fd]():(this[Se][0]=r.slice(t),r=r.slice(0,t),this[Me]-=t),this.emit("data",r),!this[Se].length&&!this[mr]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[mr]=!0,this.writable=!1,(this.flowing||!this[Ns])&&this[gr](),this}[vi](){this[Ke]||(this[Ns]=!1,this[Ja]=!0,this.emit("resume"),this[Se].length?this[Xa]():this[mr]?this[gr]():this.emit("drain"))}resume(){return this[vi]()}pause(){this[Ja]=!1,this[Ns]=!0}get destroyed(){return this[Ke]}get flowing(){return this[Ja]}get paused(){return this[Ns]}[ld](t){this[Ye]?this[Me]+=1:this[Me]+=t.length,this[Se].push(t)}[fd](){return this[Se].length&&(this[Ye]?this[Me]-=1:this[Me]-=this[Se][0].length),this[Se].shift()}[Xa](t){do;while(this[Hv](this[fd]()));!t&&!this[Se].length&&!this[mr]&&this.emit("drain")}[Hv](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ke])return;let n=this[Gr];return r=r||{},t===Nv.stdout||t===Nv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Xt].push(r.proxyErrors?new pd(this,t,r):new Za(this,t,r)),this[_r]?Ms(()=>this[vi]()):this[vi]()),t}unpipe(t){let r=this[Xt].find(n=>n.dest===t);r&&(this[Xt].splice(this[Xt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Xt].length&&!this.flowing?this[vi]():t==="readable"&&this[Me]!==0?super.emit("readable"):IL(t)&&this[Gr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Ls]&&(this[_r]?Ms(()=>r.call(this,this[Ls])):r.call(this,this[Ls])),n}get emittedEnd(){return this[Gr]}[gr](){!this[Ya]&&!this[Gr]&&!this[Ke]&&this[Se].length===0&&this[mr]&&(this[Ya]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ka]&&this.emit("close"),this[Ya]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ke&&this[Ke])return;if(t==="data")return r?this[_r]?Ms(()=>this[hd](r)):this[hd](r):!1;if(t==="end")return this[$v]();if(t==="close"){if(this[Ka]=!0,!this[Gr]&&!this[Ke])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Ls]=r;let s=super.emit("error",r);return this[gr](),s}else if(t==="resume"){let s=super.emit("resume");return this[gr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[gr](),i}[hd](t){for(let n of this[Xt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[gr](),r}[$v](){this[Gr]||(this[Gr]=!0,this.readable=!1,this[_r]?Ms(()=>this[dd]()):this[dd]())}[dd](){if(this[yr]){let r=this[yr].end();if(r){for(let n of this[Xt])n.dest.write(r);super.emit("data",r)}}for(let r of this[Xt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ye]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ye]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this[ct]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ke,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[PL](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[mr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[mr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ke,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[BL](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ke]?(t?this.emit("error",t):this.emit(Ke),this):(this[Ke]=!0,this[Se].length=0,this[Me]=0,typeof this.close=="function"&&!this[Ka]&&this.close(),t?this.emit("error",t):this.emit(Ke),this)}static isStream(t){return!!t&&(t instanceof Gv||t instanceof Mv||t instanceof kL&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Vv=m((bH,zv)=>{var ML=require("zlib").constants||{ZLIB_VERNUM:4736};zv.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},ML))});var Ed=m((EH,rA)=>{"use strict";var Yv=typeof process=="object"&&process?process:{stdout:null,stderr:null},qL=require("events"),Kv=require("stream"),Xv=require("string_decoder").StringDecoder,br=Symbol("EOF"),Er=Symbol("maybeEmitEnd"),Wr=Symbol("emittedEnd"),eu=Symbol("emittingEnd"),qs=Symbol("emittedError"),tu=Symbol("closed"),Jv=Symbol("read"),ru=Symbol("flush"),Zv=Symbol("flushChunk"),lt=Symbol("encoding"),wr=Symbol("decoder"),nu=Symbol("flowing"),js=Symbol("paused"),Ai=Symbol("resume"),qe=Symbol("bufferLength"),md=Symbol("bufferPush"),gd=Symbol("bufferShift"),Xe=Symbol("objectMode"),Je=Symbol("destroyed"),yd=Symbol("emitData"),Qv=Symbol("emitEnd"),_d=Symbol("emitEnd2"),vr=Symbol("async"),Hs=e=>Promise.resolve().then(e),eA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jL=eA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),HL=eA&&Symbol.iterator||Symbol("iterator not implemented"),$L=e=>e==="end"||e==="finish"||e==="prefinish",UL=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,GL=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),iu=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[Ai](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},bd=class extends iu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};rA.exports=class tA extends Kv{constructor(t){super(),this[nu]=!1,this[js]=!1,this.pipes=[],this.buffer=[],this[Xe]=t&&t.objectMode||!1,this[Xe]?this[lt]=null:this[lt]=t&&t.encoding||null,this[lt]==="buffer"&&(this[lt]=null),this[vr]=t&&!!t.async||!1,this[wr]=this[lt]?new Xv(this[lt]):null,this[br]=!1,this[Wr]=!1,this[eu]=!1,this[tu]=!1,this[qs]=null,this.writable=!0,this.readable=!0,this[qe]=0,this[Je]=!1}get bufferLength(){return this[qe]}get encoding(){return this[lt]}set encoding(t){if(this[Xe])throw new Error("cannot set encoding in objectMode");if(this[lt]&&t!==this[lt]&&(this[wr]&&this[wr].lastNeed||this[qe]))throw new Error("cannot change encoding");this[lt]!==t&&(this[wr]=t?new Xv(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[wr].write(r)))),this[lt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Xe]}set objectMode(t){this[Xe]=this[Xe]||!!t}get async(){return this[vr]}set async(t){this[vr]=this[vr]||!!t}write(t,r,n){if(this[br])throw new Error("write after end");if(this[Je])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[vr]?Hs:s=>s();return!this[Xe]&&!Buffer.isBuffer(t)&&(GL(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):UL(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Xe]?(this.flowing&&this[qe]!==0&&this[ru](!0),this.flowing?this.emit("data",t):this[md](t),this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[lt]&&!this[wr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[lt]&&(t=this[wr].write(t)),this.flowing&&this[qe]!==0&&this[ru](!0),this.flowing?this.emit("data",t):this[md](t),this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Je])return null;if(this[qe]===0||t===0||t>this[qe])return this[Er](),null;this[Xe]&&(t=null),this.buffer.length>1&&!this[Xe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[qe])]);let r=this[Jv](t||null,this.buffer[0]);return this[Er](),r}[Jv](t,r){return t===r.length||t===null?this[gd]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[qe]-=t),this.emit("data",r),!this.buffer.length&&!this[br]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[br]=!0,this.writable=!1,(this.flowing||!this[js])&&this[Er](),this}[Ai](){this[Je]||(this[js]=!1,this[nu]=!0,this.emit("resume"),this.buffer.length?this[ru]():this[br]?this[Er]():this.emit("drain"))}resume(){return this[Ai]()}pause(){this[nu]=!1,this[js]=!0}get destroyed(){return this[Je]}get flowing(){return this[nu]}get paused(){return this[js]}[md](t){this[Xe]?this[qe]+=1:this[qe]+=t.length,this.buffer.push(t)}[gd](){return this.buffer.length&&(this[Xe]?this[qe]-=1:this[qe]-=this.buffer[0].length),this.buffer.shift()}[ru](t){do;while(this[Zv](this[gd]()));!t&&!this.buffer.length&&!this[br]&&this.emit("drain")}[Zv](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Je])return;let n=this[Wr];return r=r||{},t===Yv.stdout||t===Yv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new bd(this,t,r):new iu(this,t,r)),this[vr]?Hs(()=>this[Ai]()):this[Ai]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[Ai]():t==="readable"&&this[qe]!==0?super.emit("readable"):$L(t)&&this[Wr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[qs]&&(this[vr]?Hs(()=>r.call(this,this[qs])):r.call(this,this[qs])),n}get emittedEnd(){return this[Wr]}[Er](){!this[eu]&&!this[Wr]&&!this[Je]&&this.buffer.length===0&&this[br]&&(this[eu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[tu]&&this.emit("close"),this[eu]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Je&&this[Je])return;if(t==="data")return r?this[vr]?Hs(()=>this[yd](r)):this[yd](r):!1;if(t==="end")return this[Qv]();if(t==="close"){if(this[tu]=!0,!this[Wr]&&!this[Je])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[qs]=r;let s=super.emit("error",r);return this[Er](),s}else if(t==="resume"){let s=super.emit("resume");return this[Er](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[Er](),i}[yd](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[Er](),r}[Qv](){this[Wr]||(this[Wr]=!0,this.readable=!1,this[vr]?Hs(()=>this[_d]()):this[_d]())}[_d](){if(this[wr]){let r=this[wr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Xe]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Xe]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Xe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Xe]?Promise.reject(new Error("cannot concat in objectMode")):this[lt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Je,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[jL](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[br])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[br]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Je,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[HL](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Je]?(t?this.emit("error",t):this.emit(Je),this):(this[Je]=!0,this.buffer.length=0,this[qe]=0,typeof this.close=="function"&&!this[tu]&&this.close(),t?this.emit("error",t):this.emit(Je),this)}static isStream(t){return!!t&&(t instanceof tA||t instanceof Kv||t instanceof qL&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Ld=m(gt=>{"use strict";var xd=require("assert"),zr=require("buffer").Buffer,sA=require("zlib"),An=gt.constants=Vv(),WL=Ed(),nA=zr.concat,Dn=Symbol("_superWrite"),xi=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},zL=Symbol("opts"),$s=Symbol("flushFlag"),iA=Symbol("finishFlushFlag"),Id=Symbol("fullFlushFlag"),pe=Symbol("handle"),su=Symbol("onError"),Di=Symbol("sawError"),wd=Symbol("level"),vd=Symbol("strategy"),Ad=Symbol("ended"),wH=Symbol("_defaultFullFlush"),ou=class extends WL{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[Di]=!1,this[Ad]=!1,this[zL]=t,this[$s]=t.flush,this[iA]=t.finishFlush;try{this[pe]=new sA[r](t)}catch(n){throw new xi(n)}this[su]=n=>{this[Di]||(this[Di]=!0,this.close(),this.emit("error",n))},this[pe].on("error",n=>this[su](new xi(n))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Di])return xd(this[pe],"zlib binding closed"),this[pe].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[Id]),this.write(Object.assign(zr.alloc(0),{[$s]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[iA]),this[Ad]=!0,super.end(null,null,n)}get ended(){return this[Ad]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=zr.from(t,r)),this[Di])return;xd(this[pe],"zlib binding closed");let i=this[pe]._handle,s=i.close;i.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},zr.concat=c=>c;let a;try{let c=typeof t[$s]=="number"?t[$s]:this[$s];a=this[pe]._processChunk(t,c),zr.concat=nA}catch(c){zr.concat=nA,this[su](new xi(c))}finally{this[pe]&&(this[pe]._handle=i,i.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",c=>this[su](new xi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[Dn](zr.from(a[0]));for(let c=1;c<a.length;c++)u=this[Dn](a[c])}else u=this[Dn](zr.from(a));return n&&n(),u}[Dn](t){return super.write(t)}},Ar=class extends ou{constructor(t,r){t=t||{},t.flush=t.flush||An.Z_NO_FLUSH,t.finishFlush=t.finishFlush||An.Z_FINISH,super(t,r),this[Id]=An.Z_FULL_FLUSH,this[wd]=t.level,this[vd]=t.strategy}params(t,r){if(!this[Di]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[wd]!==t||this[vd]!==r){this.flush(An.Z_SYNC_FLUSH),xd(this[pe],"zlib binding closed");let n=this[pe].flush;this[pe].flush=(i,s)=>{this.flush(i),s()};try{this[pe].params(t,r)}finally{this[pe].flush=n}this[pe]&&(this[wd]=t,this[vd]=r)}}}},Cd=class extends Ar{constructor(t){super(t,"Deflate")}},Sd=class extends Ar{constructor(t){super(t,"Inflate")}},Dd=Symbol("_portable"),Rd=class extends Ar{constructor(t){super(t,"Gzip"),this[Dd]=t&&!!t.portable}[Dn](t){return this[Dd]?(this[Dd]=!1,t[9]=255,super[Dn](t)):super[Dn](t)}},Fd=class extends Ar{constructor(t){super(t,"Gunzip")}},Td=class extends Ar{constructor(t){super(t,"DeflateRaw")}},Od=class extends Ar{constructor(t){super(t,"InflateRaw")}},kd=class extends Ar{constructor(t){super(t,"Unzip")}},au=class extends ou{constructor(t,r){t=t||{},t.flush=t.flush||An.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||An.BROTLI_OPERATION_FINISH,super(t,r),this[Id]=An.BROTLI_OPERATION_FLUSH}},Pd=class extends au{constructor(t){super(t,"BrotliCompress")}},Bd=class extends au{constructor(t){super(t,"BrotliDecompress")}};gt.Deflate=Cd;gt.Inflate=Sd;gt.Gzip=Rd;gt.Gunzip=Fd;gt.DeflateRaw=Td;gt.InflateRaw=Od;gt.Unzip=kd;typeof sA.BrotliCompress=="function"?(gt.BrotliCompress=Pd,gt.BrotliDecompress=Bd):gt.BrotliCompress=gt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ci=m((DH,oA)=>{var VL=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;oA.exports=VL!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var uu=m((CH,aA)=>{"use strict";var YL=Qa(),Nd=Ci(),Md=Symbol("slurp");aA.exports=class extends YL{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=Nd(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=Nd(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[Md](r),n&&this[Md](n,!0)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(t):super.write(t.slice(0,n))}[Md](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Nd(t[n]):t[n])}}});var qd=m(cu=>{"use strict";cu.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"]]);cu.code=new Map(Array.from(cu.name).map(e=>[e[1],e[0]]))});var fA=m((RH,lA)=>{"use strict";var KL=(e,t)=>{if(Number.isSafeInteger(e))e<0?JL(e,t):XL(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},XL=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},JL=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=uA(i):i===0?t[n-1]=0:(r=!0,t[n-1]=cA(i))}},ZL=e=>{let t=e[0],r=t===128?e6(e.slice(1,e.length)):t===255?QL(e):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},QL=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=uA(s):s===0?o=s:(n=!0,o=cA(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},e6=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},uA=e=>(255^e)&255,cA=e=>(255^e)+1&255;lA.exports={encode:KL,parse:ZL}});var Ri=m((FH,dA)=>{"use strict";var jd=qd(),Si=require("path").posix,hA=fA(),Hd=Symbol("slurp"),yt=Symbol("type"),Gd=class{constructor(t,r,n,i){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[yt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=xn(t,r,100),this.mode=Vr(t,r+100,8),this.uid=Vr(t,r+108,8),this.gid=Vr(t,r+116,8),this.size=Vr(t,r+124,12),this.mtime=$d(t,r+136,12),this.cksum=Vr(t,r+148,12),this[Hd](n),this[Hd](i,!0),this[yt]=xn(t,r+156,1),this[yt]===""&&(this[yt]="0"),this[yt]==="0"&&this.path.slice(-1)==="/"&&(this[yt]="5"),this[yt]==="5"&&(this.size=0),this.linkpath=xn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=xn(t,r+265,32),this.gname=xn(t,r+297,32),this.devmaj=Vr(t,r+329,8),this.devmin=Vr(t,r+337,8),t[r+475]!==0){let o=xn(t,r+345,155);this.path=o+"/"+this.path}else{let o=xn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=$d(t,r+476,12),this.ctime=$d(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Hd](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=t6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=Cn(t,r,100,s)||this.needPax,this.needPax=Yr(t,r+100,8,this.mode)||this.needPax,this.needPax=Yr(t,r+108,8,this.uid)||this.needPax,this.needPax=Yr(t,r+116,8,this.gid)||this.needPax,this.needPax=Yr(t,r+124,12,this.size)||this.needPax,this.needPax=Ud(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[yt].charCodeAt(0),this.needPax=Cn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=Cn(t,r+265,32,this.uname)||this.needPax,this.needPax=Cn(t,r+297,32,this.gname)||this.needPax,this.needPax=Yr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Yr(t,r+337,8,this.devmin)||this.needPax,this.needPax=Cn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=Cn(t,r+345,155,o)||this.needPax:(this.needPax=Cn(t,r+345,130,o)||this.needPax,this.needPax=Ud(t,r+476,12,this.atime)||this.needPax,this.needPax=Ud(t,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=t[u];for(let u=r+156;u<r+512;u++)a+=t[u];return this.cksum=a,Yr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return jd.name.get(this[yt])||this[yt]}get typeKey(){return this[yt]}set type(t){jd.code.has(t)?this[yt]=jd.code.get(t):this[yt]=t}},t6=(e,t)=>{let n=e,i="",s,o=Si.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Si.dirname(n),n=Si.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=Si.join(Si.basename(i),n),i=Si.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},xn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),$d=(e,t,r)=>r6(Vr(e,t,r)),r6=e=>e===null?null:new Date(e*1e3),Vr=(e,t,r)=>e[t]&128?hA.parse(e.slice(t,t+r)):i6(e,t,r),n6=e=>isNaN(e)?null:e,i6=(e,t,r)=>n6(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),s6={12:8589934591,8:2097151},Yr=(e,t,r,n)=>n===null?!1:n>s6[r]||n<0?(hA.encode(n,e.slice(t,t+r)),!0):(o6(e,t,r,n),!1),o6=(e,t,r,n)=>e.write(a6(n,r),t,r,"ascii"),a6=(e,t)=>u6(Math.floor(e).toString(8),t),u6=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",Ud=(e,t,r,n)=>n===null?!1:Yr(e,t,r,n.getTime()/1e3),c6=new Array(156).join("\0"),Cn=(e,t,r,n)=>n===null?!1:(e.write(n+c6,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);dA.exports=Gd});var lu=m((TH,pA)=>{"use strict";var l6=Ri(),f6=require("path"),Us=class{constructor(t,r){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new l6({path:("PaxHeader/"+f6.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(i),i.write(t,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
24
24
|
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};Us.parse=(e,t,r)=>new Us(h6(d6(e),t),r);var h6=(e,t)=>t?Object.keys(e).reduce((r,n)=>(r[n]=e[n],r),t):e,d6=e=>e.replace(/\n$/,"").split(`
|
25
|
-
`).reduce(p6,Object.create(null)),p6=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};mA.exports=Us});var Fi=m((OH,gA)=>{gA.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var hu=m((kH,yA)=>{"use strict";yA.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var Vd=m((BH,_A)=>{"use strict";var du=["|","<",">","?",":"],zd=du.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),m6=new Map(du.map((e,t)=>[e,zd[t]])),g6=new Map(zd.map((e,t)=>[e,du[t]]));_A.exports={encode:e=>du.reduce((t,r)=>t.split(r).join(m6.get(r)),e),decode:e=>zd.reduce((t,r)=>t.split(r).join(g6.get(r)),e)}});var Yd=m((IH,EA)=>{var{isAbsolute:y6,parse:bA}=require("path").win32;EA.exports=e=>{let t="",r=bA(e);for(;y6(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=bA(e)}return[t,e]}});var vA=m((LH,wA)=>{"use strict";wA.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var ip=m((qH,LA)=>{"use strict";var FA=eu(),TA=fu(),OA=Ri(),Zt=require("fs"),AA=require("path"),Jt=Ci(),_6=Fi(),kA=(e,t)=>t?(e=Jt(e).replace(/^\.(\/|$)/,""),_6(t)+"/"+e):Jt(e),b6=16*1024*1024,DA=Symbol("process"),xA=Symbol("file"),CA=Symbol("directory"),Xd=Symbol("symlink"),SA=Symbol("hardlink"),Gs=Symbol("header"),pu=Symbol("read"),Jd=Symbol("lstat"),mu=Symbol("onlstat"),Zd=Symbol("onread"),Qd=Symbol("onreadlink"),ep=Symbol("openfile"),tp=Symbol("onopenfile"),Kr=Symbol("close"),gu=Symbol("mode"),rp=Symbol("awaitDrain"),Kd=Symbol("ondrain"),Qt=Symbol("prefix"),RA=Symbol("hadError"),PA=hu(),E6=Vd(),BA=Yd(),IA=vA(),yu=PA(class extends FA{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Jt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||b6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Jt(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?Jt(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 n=!1;if(!this.preservePaths){let[i,s]=BA(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=E6.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Jt(r.absolute||AA.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[mu](this.statCache.get(this.absolute)):this[Jd]()}emit(t,...r){return t==="error"&&(this[RA]=!0),super.emit(t,...r)}[Jd](){Zt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[mu](r)})}[mu](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=v6(t),this.emit("stat",t),this[DA]()}[DA](){switch(this.type){case"File":return this[xA]();case"Directory":return this[CA]();case"SymbolicLink":return this[Xd]();default:return this.end()}}[gu](t){return IA(t,this.type==="Directory",this.portable)}[Qt](t){return kA(t,this.prefix)}[Gs](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new OA({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this[gu](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 TA({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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)}[CA](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Gs](),this.end()}[Xd](){Zt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Qd](r)})}[Qd](t){this.linkpath=Jt(t),this[Gs](),this.end()}[SA](t){this.type="Link",this.linkpath=Jt(AA.relative(this.cwd,t)),this.stat.size=0,this[Gs](),this.end()}[xA](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[SA](r)}this.linkCache.set(t,this.absolute)}if(this[Gs](),this.stat.size===0)return this.end();this[ep]()}[ep](){Zt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[tp](r)})}[tp](t){if(this.fd=t,this[RA])return this[Kr]();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[pu]()}[pu](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Zt.read(t,r,n,i,s,(o,a)=>{if(o)return this[Kr](()=>this.emit("error",o));this[Zd](a)})}[Kr](t){Zt.close(this.fd,t)}[Zd](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[Kd]():this[rp](()=>this[Kd]())}[rp](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[Kd](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Kr](t=>t?this.emit("error",t):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[pu]()}}),np=class extends yu{[Jd](){this[mu](Zt.lstatSync(this.absolute))}[Xd](){this[Qd](Zt.readlinkSync(this.absolute))}[ep](){this[tp](Zt.openSync(this.absolute,"r"))}[pu](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Zt.readSync(r,n,i,s,o);this[Zd](a),t=!1}finally{if(t)try{this[Kr](()=>{})}catch{}}}[rp](t){t()}[Kr](t){Zt.closeSync(this.fd),t()}},w6=PA(class extends FA{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Jt(t.path),this.mode=this[gu](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Jt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=BA(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new OA({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new TA({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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),t.pipe(this)}[Qt](t){return kA(t,this.prefix)}[gu](t){return IA(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});yu.Sync=np;yu.Tar=w6;var v6=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";LA.exports=yu});var MA=m((jH,NA)=>{"use strict";NA.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var sp=m((HH,qA)=>{"use strict";qA.exports=ne;ne.Node=Sn;ne.create=ne;function ne(e){var t=this;if(t instanceof ne||(t=new ne),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}ne.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ne.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ne.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ne.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)D6(this,arguments[e]);return this.length};ne.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)x6(this,arguments[e]);return this.length};ne.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ne.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ne.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};ne.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};ne.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ne.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ne.prototype.map=function(e,t){t=t||this;for(var r=new ne,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};ne.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ne,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};ne.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};ne.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};ne.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ne.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ne.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ne;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};ne.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ne;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};ne.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=A6(this,i,r[n]);return s};ne.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function A6(e,t,r){var n=t===e.head?new Sn(r,null,t,e):new Sn(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function D6(e,t){e.tail=new Sn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function x6(e,t){e.head=new Sn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Sn(e,t,r,n){if(!(this instanceof Sn))return new Sn(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{MA()(ne)}catch{}});var Cu=m((UH,zA)=>{"use strict";var Du=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},C6=eu(),S6=Nd(),R6=cu(),pp=ip(),F6=pp.Sync,T6=pp.Tar,O6=sp(),jA=Buffer.alloc(1024),Eu=Symbol("onStat"),_u=Symbol("ended"),er=Symbol("queue"),Ti=Symbol("current"),Rn=Symbol("process"),bu=Symbol("processing"),HA=Symbol("processJob"),tr=Symbol("jobs"),op=Symbol("jobDone"),wu=Symbol("addFSEntry"),$A=Symbol("addTarEntry"),lp=Symbol("stat"),fp=Symbol("readdir"),vu=Symbol("onreaddir"),Au=Symbol("pipe"),UA=Symbol("entry"),ap=Symbol("entryOpt"),hp=Symbol("writeEntryClass"),WA=Symbol("write"),up=Symbol("ondrain"),xu=require("fs"),GA=require("path"),k6=hu(),cp=Ci(),mp=k6(class extends C6{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=cp(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[hp]=pp,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new S6.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[up]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[up]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[er]=new O6,this[tr]=0,this.jobs=+t.jobs||4,this[bu]=!1,this[_u]=!1}[WA](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[_u]=!0,this[Rn](),this}write(t){if(this[_u])throw new Error("write after end");return t instanceof R6?this[$A](t):this[wu](t),this.flowing}[$A](t){let r=cp(GA.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new Du(t.path,r,!1);n.entry=new T6(t,this[ap](n)),n.entry.on("end",i=>this[op](n)),this[tr]+=1,this[er].push(n)}this[Rn]()}[wu](t){let r=cp(GA.resolve(this.cwd,t));this[er].push(new Du(t,r)),this[Rn]()}[lp](t){t.pending=!0,this[tr]+=1;let r=this.follow?"stat":"lstat";xu[r](t.absolute,(n,i)=>{t.pending=!1,this[tr]-=1,n?this.emit("error",n):this[Eu](t,i)})}[Eu](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[Rn]()}[fp](t){t.pending=!0,this[tr]+=1,xu.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[tr]-=1,r)return this.emit("error",r);this[vu](t,n)})}[vu](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[Rn]()}[Rn](){if(!this[bu]){this[bu]=!0;for(let t=this[er].head;t!==null&&this[tr]<this.jobs;t=t.next)if(this[HA](t.value),t.value.ignore){let r=t.next;this[er].removeNode(t),t.next=r}this[bu]=!1,this[_u]&&!this[er].length&&this[tr]===0&&(this.zip?this.zip.end(jA):(super.write(jA),super.end()))}}get[Ti](){return this[er]&&this[er].head&&this[er].head.value}[op](t){this[er].shift(),this[tr]-=1,this[Rn]()}[HA](t){if(!t.pending){if(t.entry){t===this[Ti]&&!t.piped&&this[Au](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[Eu](t,this.statCache.get(t.absolute)):this[lp](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[vu](t,this.readdirCache.get(t.absolute)):this[fp](t),!t.readdir))){if(t.entry=this[UA](t),!t.entry){t.ignore=!0;return}t===this[Ti]&&!t.piped&&this[Au](t)}}}[ap](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[UA](t){this[tr]+=1;try{return new this[hp](t.path,this[ap](t)).on("end",()=>this[op](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[up](){this[Ti]&&this[Ti].entry&&this[Ti].entry.resume()}[Au](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[wu](o+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),dp=class extends mp{constructor(t){super(t),this[hp]=F6}pause(){}resume(){}[lp](t){let r=this.follow?"statSync":"lstatSync";this[Eu](t,xu[r](t.absolute))}[fp](t,r){this[vu](t,xu.readdirSync(t.absolute))}[Au](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[wu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[WA](i)})}};mp.Sync=dp;zA.exports=mp});var Mi=m(zs=>{"use strict";var P6=wd(),B6=require("events").EventEmitter,ft=require("fs"),_p=ft.writev;if(!_p){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;_p=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new t;a.oncomplete=o,e.writeBuffers(r,n,i,a)}}var Li=Symbol("_autoClose"),qt=Symbol("_close"),Ws=Symbol("_ended"),fe=Symbol("_fd"),VA=Symbol("_finished"),Jr=Symbol("_flags"),gp=Symbol("_flush"),bp=Symbol("_handleChunk"),Ep=Symbol("_makeBuf"),Ou=Symbol("_mode"),Su=Symbol("_needDrain"),Bi=Symbol("_onerror"),Ni=Symbol("_onopen"),yp=Symbol("_onread"),ki=Symbol("_onwrite"),Zr=Symbol("_open"),Dr=Symbol("_path"),Fn=Symbol("_pos"),rr=Symbol("_queue"),Pi=Symbol("_read"),YA=Symbol("_readSize"),Xr=Symbol("_reading"),Ru=Symbol("_remain"),KA=Symbol("_size"),Fu=Symbol("_write"),Oi=Symbol("_writing"),Tu=Symbol("_defaultFlag"),Ii=Symbol("_errored"),ku=class extends P6{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[Ii]=!1,this[fe]=typeof r.fd=="number"?r.fd:null,this[Dr]=t,this[YA]=r.readSize||16*1024*1024,this[Xr]=!1,this[KA]=typeof r.size=="number"?r.size:1/0,this[Ru]=this[KA],this[Li]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[fe]=="number"?this[Pi]():this[Zr]()}get fd(){return this[fe]}get path(){return this[Dr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Zr](){ft.open(this[Dr],"r",(t,r)=>this[Ni](t,r))}[Ni](t,r){t?this[Bi](t):(this[fe]=r,this.emit("open",r),this[Pi]())}[Ep](){return Buffer.allocUnsafe(Math.min(this[YA],this[Ru]))}[Pi](){if(!this[Xr]){this[Xr]=!0;let t=this[Ep]();if(t.length===0)return process.nextTick(()=>this[yp](null,0,t));ft.read(this[fe],t,0,t.length,null,(r,n,i)=>this[yp](r,n,i))}}[yp](t,r,n){this[Xr]=!1,t?this[Bi](t):this[bp](r,n)&&this[Pi]()}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[Bi](t){this[Xr]=!0,this[qt](),this.emit("error",t)}[bp](t,r){let n=!1;return this[Ru]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[Ru]<=0)&&(n=!1,this[qt](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[fe]=="number"&&this[Pi]();break;case"error":return this[Ii]?void 0:(this[Ii]=!0,super.emit(t,r));default:return super.emit(t,r)}}},wp=class extends ku{[Zr](){let t=!0;try{this[Ni](null,ft.openSync(this[Dr],"r")),t=!1}finally{t&&this[qt]()}}[Pi](){let t=!0;try{if(!this[Xr]){this[Xr]=!0;do{let r=this[Ep](),n=r.length===0?0:ft.readSync(this[fe],r,0,r.length,null);if(!this[bp](n,r))break}while(!0);this[Xr]=!1}t=!1}finally{t&&this[qt]()}}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.closeSync(t),this.emit("close")}}},Pu=class extends B6{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ii]=!1,this[Oi]=!1,this[Ws]=!1,this[Su]=!1,this[rr]=[],this[Dr]=t,this[fe]=typeof r.fd=="number"?r.fd:null,this[Ou]=r.mode===void 0?438:r.mode,this[Fn]=typeof r.start=="number"?r.start:null,this[Li]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[Fn]!==null?"r+":"w";this[Tu]=r.flags===void 0,this[Jr]=this[Tu]?n:r.flags,this[fe]===null&&this[Zr]()}emit(t,r){if(t==="error"){if(this[Ii])return;this[Ii]=!0}return super.emit(t,r)}get fd(){return this[fe]}get path(){return this[Dr]}[Bi](t){this[qt](),this[Oi]=!0,this.emit("error",t)}[Zr](){ft.open(this[Dr],this[Jr],this[Ou],(t,r)=>this[Ni](t,r))}[Ni](t,r){this[Tu]&&this[Jr]==="r+"&&t&&t.code==="ENOENT"?(this[Jr]="w",this[Zr]()):t?this[Bi](t):(this[fe]=r,this.emit("open",r),this[gp]())}end(t,r){return t&&this.write(t,r),this[Ws]=!0,!this[Oi]&&!this[rr].length&&typeof this[fe]=="number"&&this[ki](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[Ws]?(this.emit("error",new Error("write() after end()")),!1):this[fe]===null||this[Oi]||this[rr].length?(this[rr].push(t),this[Su]=!0,!1):(this[Oi]=!0,this[Fu](t),!0)}[Fu](t){ft.write(this[fe],t,0,t.length,this[Fn],(r,n)=>this[ki](r,n))}[ki](t,r){t?this[Bi](t):(this[Fn]!==null&&(this[Fn]+=r),this[rr].length?this[gp]():(this[Oi]=!1,this[Ws]&&!this[VA]?(this[VA]=!0,this[qt](),this.emit("finish")):this[Su]&&(this[Su]=!1,this.emit("drain"))))}[gp](){if(this[rr].length===0)this[Ws]&&this[ki](null,0);else if(this[rr].length===1)this[Fu](this[rr].pop());else{let t=this[rr];this[rr]=[],_p(this[fe],t,this[Fn],(r,n)=>this[ki](r,n))}}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},vp=class extends Pu{[Zr](){let t;if(this[Tu]&&this[Jr]==="r+")try{t=ft.openSync(this[Dr],this[Jr],this[Ou])}catch(r){if(r.code==="ENOENT")return this[Jr]="w",this[Zr]();throw r}else t=ft.openSync(this[Dr],this[Jr],this[Ou]);this[Ni](null,t)}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.closeSync(t),this.emit("close")}}[Fu](t){let r=!0;try{this[ki](null,ft.writeSync(this[fe],t,0,t.length,this[Fn])),r=!1}finally{if(r)try{this[qt]()}catch{}}}};zs.ReadStream=ku;zs.ReadStreamSync=wp;zs.WriteStream=Pu;zs.WriteStreamSync=vp});var ju=m((zH,nD)=>{"use strict";var I6=hu(),L6=Ri(),N6=require("events"),M6=sp(),q6=1024*1024,j6=cu(),XA=fu(),H6=Nd(),{nextTick:$6}=require("process"),Ap=Buffer.from([31,139]),xt=Symbol("state"),Tn=Symbol("writeEntry"),xr=Symbol("readEntry"),Dp=Symbol("nextEntry"),JA=Symbol("processEntry"),Ct=Symbol("extendedHeader"),Vs=Symbol("globalExtendedHeader"),Qr=Symbol("meta"),ZA=Symbol("emitMeta"),ye=Symbol("buffer"),Cr=Symbol("queue"),On=Symbol("ended"),QA=Symbol("emittedEnd"),kn=Symbol("emit"),ht=Symbol("unzip"),Bu=Symbol("consumeChunk"),Iu=Symbol("consumeChunkSub"),xp=Symbol("consumeBody"),eD=Symbol("consumeMeta"),tD=Symbol("consumeHeader"),Lu=Symbol("consuming"),Cp=Symbol("bufferConcat"),Sp=Symbol("maybeEnd"),Ys=Symbol("writing"),en=Symbol("aborted"),Nu=Symbol("onDone"),Pn=Symbol("sawValidEntry"),Mu=Symbol("sawNullBlock"),qu=Symbol("sawEOF"),rD=Symbol("closeStream"),U6=e=>!0;nD.exports=I6(class extends N6{constructor(t){t=t||{},super(t),this.file=t.file||"",this[Pn]=null,this.on(Nu,r=>{(this[xt]==="begin"||this[Pn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Nu,t.ondone):this.on(Nu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||q6,this.filter=typeof t.filter=="function"?t.filter:U6,this.writable=!0,this.readable=!1,this[Cr]=new M6,this[ye]=null,this[xr]=null,this[Tn]=null,this[xt]="begin",this[Qr]="",this[Ct]=null,this[Vs]=null,this[On]=!1,this[ht]=null,this[en]=!1,this[Mu]=!1,this[qu]=!1,this.on("end",()=>this[rD]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[tD](t,r){this[Pn]===null&&(this[Pn]=!1);let n;try{n=new L6(t,r,this[Ct],this[Vs])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Mu]?(this[qu]=!0,this[xt]==="begin"&&(this[xt]="header"),this[kn]("eof")):(this[Mu]=!0,this[kn]("nullBlock"));else if(this[Mu]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[Tn]=new j6(n,this[Ct],this[Vs]);if(!this[Pn])if(s.remain){let o=()=>{s.invalid||(this[Pn]=!0)};s.on("end",o)}else this[Pn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[kn]("ignoredEntry",s),this[xt]="ignore",s.resume()):s.size>0&&(this[Qr]="",s.on("data",o=>this[Qr]+=o),this[xt]="meta"):(this[Ct]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[kn]("ignoredEntry",s),this[xt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[xt]="body":(this[xt]="header",s.end()),this[xr]?this[Cr].push(s):(this[Cr].push(s),this[Dp]())))}}}[rD](){$6(()=>this.emit("close"))}[JA](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[xr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[Dp]()),r=!1)):(this[xr]=null,r=!1),r}[Dp](){do;while(this[JA](this[Cr].shift()));if(!this[Cr].length){let t=this[xr];!t||t.flowing||t.size===t.remain?this[Ys]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[xp](t,r){let n=this[Tn],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[xt]="header",this[Tn]=null,n.end()),s.length}[eD](t,r){let n=this[Tn],i=this[xp](t,r);return this[Tn]||this[ZA](n),i}[kn](t,r,n){!this[Cr].length&&!this[xr]?this.emit(t,r,n):this[Cr].push([t,r,n])}[ZA](t){switch(this[kn]("meta",this[Qr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ct]=XA.parse(this[Qr],this[Ct],!1);break;case"GlobalExtendedHeader":this[Vs]=XA.parse(this[Qr],this[Vs],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ct]=this[Ct]||Object.create(null),this[Ct].path=this[Qr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ct]=this[Ct]||Object.create(null),this[Ct].linkpath=this[Qr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[en]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[en])return;if(this[ht]===null&&t){if(this[ye]&&(t=Buffer.concat([this[ye],t]),this[ye]=null),t.length<Ap.length)return this[ye]=t,!0;for(let n=0;this[ht]===null&&n<Ap.length;n++)t[n]!==Ap[n]&&(this[ht]=!1);if(this[ht]===null){let n=this[On];this[On]=!1,this[ht]=new H6.Unzip,this[ht].on("data",s=>this[Bu](s)),this[ht].on("error",s=>this.abort(s)),this[ht].on("end",s=>{this[On]=!0,this[Bu]()}),this[Ys]=!0;let i=this[ht][n?"end":"write"](t);return this[Ys]=!1,i}}this[Ys]=!0,this[ht]?this[ht].write(t):this[Bu](t),this[Ys]=!1;let r=this[Cr].length?!1:this[xr]?this[xr].flowing:!0;return!r&&!this[Cr].length&&this[xr].once("drain",n=>this.emit("drain")),r}[Cp](t){t&&!this[en]&&(this[ye]=this[ye]?Buffer.concat([this[ye],t]):t)}[Sp](){if(this[On]&&!this[QA]&&!this[en]&&!this[Lu]){this[QA]=!0;let t=this[Tn];if(t&&t.blockRemain){let r=this[ye]?this[ye].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[ye]&&t.write(this[ye]),t.end()}this[kn](Nu)}}[Bu](t){if(this[Lu])this[Cp](t);else if(!t&&!this[ye])this[Sp]();else{if(this[Lu]=!0,this[ye]){this[Cp](t);let r=this[ye];this[ye]=null,this[Iu](r)}else this[Iu](t);for(;this[ye]&&this[ye].length>=512&&!this[en]&&!this[qu];){let r=this[ye];this[ye]=null,this[Iu](r)}this[Lu]=!1}(!this[ye]||this[On])&&this[Sp]()}[Iu](t){let r=0,n=t.length;for(;r+512<=n&&!this[en]&&!this[qu];)switch(this[xt]){case"begin":case"header":this[tD](t,r),r+=512;break;case"ignore":case"body":r+=this[xp](t,r);break;case"meta":r+=this[eD](t,r);break;default:throw new Error("invalid state: "+this[xt])}r<n&&(this[ye]?this[ye]=Buffer.concat([t.slice(r),this[ye]]):this[ye]=t.slice(r))}end(t){this[en]||(this[ht]?this[ht].end(t):(this[On]=!0,this.write(t)))}})});var Hu=m((VH,aD)=>{"use strict";var G6=wi(),sD=ju(),qi=require("fs"),W6=Mi(),iD=require("path"),Rp=Fi();aD.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=G6(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&V6(n,t),n.noResume||z6(n),n.file&&n.sync?Y6(n):n.file?K6(n,r):oD(n)};var z6=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},V6=(e,t)=>{let r=new Map(t.map(s=>[Rp(s),!0])),n=e.filter,i=(s,o)=>{let a=o||iD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(iD.dirname(s),a);return r.set(s,u),u};e.filter=n?(s,o)=>n(s,o)&&i(Rp(s)):s=>i(Rp(s))},Y6=e=>{let t=oD(e),r=e.file,n=!0,i;try{let s=qi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(qi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=qi.openSync(r,"r");a<s.size;){let c=qi.readSync(i,u,0,o,a);a+=c,t.write(u.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{qi.closeSync(i)}catch{}}},K6=(e,t)=>{let r=new sD(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),qi.stat(i,(u,c)=>{if(u)a(u);else{let l=new W6.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return t?s.then(t,t):s},oD=e=>new sD(e)});var dD=m((YH,hD)=>{"use strict";var X6=wi(),$u=Cu(),uD=Mi(),cD=Hu(),lD=require("path");hD.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=X6(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?J6(n,t):n.file?Z6(n,t,r):n.sync?Q6(n,t):e8(n,t)};var J6=(e,t)=>{let r=new $u.Sync(e),n=new uD.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),fD(r,t)},Z6=(e,t,r)=>{let n=new $u(e),i=new uD.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Fp(n,t),r?s.then(r,r):s},fD=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?cD({file:lD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},Fp=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return cD({file:lD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>Fp(e,t));e.add(r)}e.end()},Q6=(e,t)=>{let r=new $u.Sync(e);return fD(r,t),r},e8=(e,t)=>{let r=new $u(e);return Fp(r,t),r}});var Tp=m((KH,ED)=>{"use strict";var t8=wi(),pD=Cu(),_t=require("fs"),mD=Mi(),gD=Hu(),yD=require("path"),_D=Ri();ED.exports=(e,t,r)=>{let n=t8(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?r8(n,t):i8(n,t,r)};var r8=(e,t)=>{let r=new pD.Sync(e),n=!0,i,s;try{try{i=_t.openSync(e.file,"r+")}catch(u){if(u.code==="ENOENT")i=_t.openSync(e.file,"w+");else throw u}let o=_t.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=_t.readSync(i,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let u=new _D(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(u.path,u.mtime)}n=!1,n8(e,r,s,i,t)}finally{if(n)try{_t.closeSync(i)}catch{}}},n8=(e,t,r,n,i)=>{let s=new mD.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),s8(t,i)},i8=(e,t,r)=>{t=Array.from(t);let n=new pD(e),i=(o,a,u)=>{let c=(b,_)=>{b?_t.close(o,p=>u(b)):u(null,_)},l=0;if(a===0)return c(null,0);let f=0,h=Buffer.alloc(512),g=(b,_)=>{if(b)return c(b);if(f+=_,f<512&&_)return _t.read(o,h,f,h.length-f,l+f,g);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let p=new _D(h);if(!p.cksumValid)return c(null,l);let w=512*Math.ceil(p.size/512);if(l+w+512>a||(l+=w+512,l>=a))return c(null,l);e.mtimeCache&&e.mtimeCache.set(p.path,p.mtime),f=0,_t.read(o,h,0,512,l,g)};_t.read(o,h,0,512,l,g)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",_t.open(e.file,u,c);if(l)return a(l);_t.fstat(f,(h,g)=>{if(h)return _t.close(f,()=>a(h));i(f,g.size,(b,_)=>{if(b)return a(b);let p=new mD.WriteStream(e.file,{fd:f,start:_});n.pipe(p),p.on("error",a),p.on("close",o),bD(n,t)})})};_t.open(e.file,u,c)});return r?s.then(r,r):s},s8=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?gD({file:yD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},bD=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return gD({file:yD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>bD(e,t));e.add(r)}e.end()}});var vD=m((XH,wD)=>{"use strict";var o8=wi(),a8=Tp();wD.exports=(e,t,r)=>{let n=o8(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),u8(n),a8(n,t,r)};var u8=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var xD=m((JH,DD)=>{var{promisify:AD}=require("util"),tn=require("fs"),c8=e=>{if(!e)e={mode:511,fs:tn};else if(typeof e=="object")e={mode:511,fs:tn,...e};else if(typeof e=="number")e={mode:e,fs:tn};else if(typeof e=="string")e={mode:parseInt(e,8),fs:tn};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||tn.mkdir,e.mkdirAsync=AD(e.mkdir),e.stat=e.stat||e.fs.stat||tn.stat,e.statAsync=AD(e.stat),e.statSync=e.statSync||e.fs.statSync||tn.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||tn.mkdirSync,e};DD.exports=c8});var SD=m((ZH,CD)=>{var l8=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:f8,parse:h8}=require("path"),d8=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=f8(e),l8==="win32"){let t=/[*|"<>?:]/,{root:r}=h8(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};CD.exports=d8});var kD=m((QH,OD)=>{var{dirname:RD}=require("path"),FD=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?FD(e,RD(t),t):void 0),TD=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?TD(e,RD(t),t):void 0}};OD.exports={findMade:FD,findMadeSync:TD}});var Pp=m((e$,BD)=>{var{dirname:PD}=require("path"),Op=(e,t,r)=>{t.recursive=!1;let n=PD(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return Op(n,t).then(s=>Op(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},kp=(e,t,r)=>{let n=PD(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return kp(e,t,kp(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};BD.exports={mkdirpManual:Op,mkdirpManualSync:kp}});var ND=m((t$,LD)=>{var{dirname:ID}=require("path"),{findMade:p8,findMadeSync:m8}=kD(),{mkdirpManual:g8,mkdirpManualSync:y8}=Pp(),_8=(e,t)=>(t.recursive=!0,ID(e)===e?t.mkdirAsync(e,t):p8(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return g8(e,t);throw i}))),b8=(e,t)=>{if(t.recursive=!0,ID(e)===e)return t.mkdirSync(e,t);let n=m8(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return y8(e,t);throw i}};LD.exports={mkdirpNative:_8,mkdirpNativeSync:b8}});var HD=m((r$,jD)=>{var MD=require("fs"),E8=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Bp=E8.replace(/^v/,"").split("."),qD=+Bp[0]>10||+Bp[0]==10&&+Bp[1]>=12,w8=qD?e=>e.mkdir===MD.mkdir:()=>!1,v8=qD?e=>e.mkdirSync===MD.mkdirSync:()=>!1;jD.exports={useNative:w8,useNativeSync:v8}});var VD=m((n$,zD)=>{var ji=xD(),Hi=SD(),{mkdirpNative:$D,mkdirpNativeSync:UD}=ND(),{mkdirpManual:GD,mkdirpManualSync:WD}=Pp(),{useNative:A8,useNativeSync:D8}=HD(),$i=(e,t)=>(e=Hi(e),t=ji(t),A8(t)?$D(e,t):GD(e,t)),x8=(e,t)=>(e=Hi(e),t=ji(t),D8(t)?UD(e,t):WD(e,t));$i.sync=x8;$i.native=(e,t)=>$D(Hi(e),ji(t));$i.manual=(e,t)=>GD(Hi(e),ji(t));$i.nativeSync=(e,t)=>UD(Hi(e),ji(t));$i.manualSync=(e,t)=>WD(Hi(e),ji(t));zD.exports=$i});var ex=m((i$,QD)=>{"use strict";var St=require("fs"),Bn=require("path"),C8=St.lchown?"lchown":"chown",S8=St.lchownSync?"lchownSync":"chownSync",KD=St.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),YD=(e,t,r)=>{try{return St[S8](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},R8=(e,t,r)=>{try{return St.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},F8=KD?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):St.chown(e,t,r,n)}:(e,t,r,n)=>n,Ip=KD?(e,t,r)=>{try{return YD(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;R8(e,t,r)}}:(e,t,r)=>YD(e,t,r),T8=process.version,XD=(e,t,r)=>St.readdir(e,t,r),O8=(e,t)=>St.readdirSync(e,t);/^v4\./.test(T8)&&(XD=(e,t,r)=>St.readdir(e,r));var Uu=(e,t,r,n)=>{St[C8](e,t,r,F8(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},JD=(e,t,r,n,i)=>{if(typeof t=="string")return St.lstat(Bn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,JD(e,o,r,n,i)});if(t.isDirectory())Lp(Bn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=Bn.resolve(e,t.name);Uu(o,r,n,i)});else{let s=Bn.resolve(e,t.name);Uu(s,r,n,i)}},Lp=(e,t,r,n)=>{XD(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Uu(e,t,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return Uu(e,t,r,n)}};s.forEach(c=>JD(e,c,t,r,u))})},k8=(e,t,r,n)=>{if(typeof t=="string")try{let i=St.lstatSync(Bn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&ZD(Bn.resolve(e,t.name),r,n),Ip(Bn.resolve(e,t.name),r,n)},ZD=(e,t,r)=>{let n;try{n=O8(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Ip(e,t,r);throw i}return n&&n.length&&n.forEach(i=>k8(e,i,t,r)),Ip(e,t,r)};QD.exports=Lp;Lp.sync=ZD});var ix=m((s$,Np)=>{"use strict";var tx=VD(),Rt=require("fs"),Gu=require("path"),rx=ex(),jt=Ci(),Wu=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},zu=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},Vu=(e,t)=>e.get(jt(t)),Ks=(e,t,r)=>e.set(jt(t),r),P8=(e,t)=>{Rt.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new zu(e,r&&r.code||"ENOTDIR")),t(r)})};Np.exports=(e,t,r)=>{e=jt(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,a=t.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==t.processUid||a!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,h=jt(t.cwd),g=(p,w)=>{p?r(p):(Ks(f,e,!0),w&&u?rx(w,o,a,C=>g(C)):s?Rt.chmod(e,i,r):r())};if(f&&Vu(f,e)===!0)return g();if(e===h)return P8(e,g);if(c)return tx(e,{mode:i}).then(p=>g(null,p),g);let _=jt(Gu.relative(h,e)).split("/");Yu(h,_,i,f,l,h,null,g)};var Yu=(e,t,r,n,i,s,o,a)=>{if(!t.length)return a(null,o);let u=t.shift(),c=jt(Gu.resolve(e+"/"+u));if(Vu(n,c))return Yu(c,t,r,n,i,s,o,a);Rt.mkdir(c,r,nx(c,t,r,n,i,s,o,a))},nx=(e,t,r,n,i,s,o,a)=>u=>{u?Rt.lstat(e,(c,l)=>{if(c)c.path=c.path&&jt(c.path),a(c);else if(l.isDirectory())Yu(e,t,r,n,i,s,o,a);else if(i)Rt.unlink(e,f=>{if(f)return a(f);Rt.mkdir(e,r,nx(e,t,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new Wu(e,e+"/"+t.join("/")));a(u)}}):(o=o||e,Yu(e,t,r,n,i,s,o,a))},B8=e=>{let t=!1,r="ENOTDIR";try{t=Rt.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new zu(e,r)}};Np.exports.sync=(e,t)=>{e=jt(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),u=t.preserve,c=t.unlink,l=t.cache,f=jt(t.cwd),h=p=>{Ks(l,e,!0),p&&a&&rx.sync(p,s,o),i&&Rt.chmodSync(e,n)};if(l&&Vu(l,e)===!0)return h();if(e===f)return B8(f),h();if(u)return h(tx.sync(e,n));let b=jt(Gu.relative(f,e)).split("/"),_=null;for(let p=b.shift(),w=f;p&&(w+="/"+p);p=b.shift())if(w=jt(Gu.resolve(w)),!Vu(l,w))try{Rt.mkdirSync(w,n),_=_||w,Ks(l,w,!0)}catch{let N=Rt.lstatSync(w);if(N.isDirectory()){Ks(l,w,!0);continue}else if(c){Rt.unlinkSync(w),Rt.mkdirSync(w,n),_=_||w,Ks(l,w,!0);continue}else if(N.isSymbolicLink())return new Wu(w,w+"/"+b.join("/"))}return h(_)}});var qp=m((o$,sx)=>{var Mp=Object.create(null),{hasOwnProperty:I8}=Object.prototype;sx.exports=e=>(I8.call(Mp,e)||(Mp[e]=e.normalize("NFKD")),Mp[e])});var cx=m((a$,ux)=>{var ox=require("assert"),L8=qp(),N8=Fi(),{join:ax}=require("path"),M8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,q8=M8==="win32";ux.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=ax(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>a(c)),!0),a=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),h=new Set;return l.forEach(g=>{let b=e.get(g);ox.equal(b[0],c),b.length===1?e.delete(g):(b.shift(),typeof b[0]=="function"?h.add(b[0]):b[0].forEach(_=>h.add(_)))}),f.forEach(g=>{let b=e.get(g);ox(b[0]instanceof Set),b[0].size===1&&b.length===1?e.delete(g):b[0].size===1?(b.shift(),h.add(b[0])):b[0].delete(c)}),n.delete(c),h.forEach(g=>o(g)),!0};return{check:s,reserve:(c,l)=>{c=q8?["win32 parallelization disabled"]:c.map(h=>L8(N8(ax(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,g)=>h.concat(g)));return t.set(l,{dirs:f,paths:c}),c.forEach(h=>{let g=e.get(h);g?g.push(l):e.set(h,[l])}),f.forEach(h=>{let g=e.get(h);g?g[g.length-1]instanceof Set?g[g.length-1].add(l):g.push(new Set([l])):e.set(h,[new Set([l])])}),o(l)}}}});var hx=m((u$,fx)=>{var j8=process.env.__FAKE_PLATFORM__||process.platform,H8=j8==="win32",$8=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:U8,O_TRUNC:G8,O_WRONLY:W8,UV_FS_O_FILEMAP:lx=0}=$8.constants,z8=H8&&!!lx,V8=512*1024,Y8=lx|G8|U8|W8;fx.exports=z8?e=>e<V8?Y8:"w":()=>"w"});var Yp=m((c$,Cx)=>{"use strict";var K8=require("assert"),X8=ju(),ie=require("fs"),J8=Mi(),Sr=require("path"),Ax=ix(),dx=Vd(),Z8=cx(),Q8=Yd(),bt=Ci(),eN=Fi(),tN=qp(),px=Symbol("onEntry"),$p=Symbol("checkFs"),mx=Symbol("checkFs2"),Ju=Symbol("pruneCache"),Up=Symbol("isReusable"),Ft=Symbol("makeFs"),Gp=Symbol("file"),Wp=Symbol("directory"),Zu=Symbol("link"),gx=Symbol("symlink"),yx=Symbol("hardlink"),_x=Symbol("unsupported"),bx=Symbol("checkPath"),rn=Symbol("mkdir"),Ze=Symbol("onError"),Ku=Symbol("pending"),Ex=Symbol("pend"),Ui=Symbol("unpend"),jp=Symbol("ended"),Hp=Symbol("maybeClose"),zp=Symbol("skip"),Xs=Symbol("doChown"),Js=Symbol("uid"),Zs=Symbol("gid"),Qs=Symbol("checkedCwd"),Dx=require("crypto"),xx=hx(),rN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,eo=rN==="win32",nN=(e,t)=>{if(!eo)return ie.unlink(e,t);let r=e+".DELETE."+Dx.randomBytes(16).toString("hex");ie.rename(e,r,n=>{if(n)return t(n);ie.unlink(r,t)})},iN=e=>{if(!eo)return ie.unlinkSync(e);let t=e+".DELETE."+Dx.randomBytes(16).toString("hex");ie.renameSync(e,t),ie.unlinkSync(t)},wx=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,vx=e=>tN(eN(bt(e))).toLowerCase(),sN=(e,t)=>{t=vx(t);for(let r of e.keys()){let n=vx(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},oN=e=>{for(let t of e.keys())e.delete(t)},to=class extends X8{constructor(t){if(t||(t={}),t.ondone=r=>{this[jp]=!0,this[Hp]()},super(t),this[Qs]=!1,this.reservations=Z8(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[Ku]=0,this[jp]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||eo,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=bt(Sr.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[px](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[Hp](){this[jp]&&this[Ku]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[bx](t){if(this.strip){let r=bt(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=bt(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=bt(t.path),n=r.split("/");if(n.includes("..")||eo&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=Q8(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(Sr.isAbsolute(t.path)?t.absolute=bt(Sr.resolve(t.path)):t.absolute=bt(Sr.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:bt(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Sr.win32.parse(t.absolute);t.absolute=r+dx.encode(t.absolute.slice(r.length));let{root:n}=Sr.win32.parse(t.path);t.path=n+dx.encode(t.path.slice(n.length))}return!0}[px](t){if(!this[bx](t))return t.resume();switch(K8.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[$p](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[_x](t)}}[Ze](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Ui](),r.resume())}[rn](t,r,n){Ax(bt(t),{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},n)}[Xs](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Js](t){return wx(this.uid,t.uid,this.processUid)}[Zs](t){return wx(this.gid,t.gid,this.processGid)}[Gp](t,r){let n=t.mode&4095||this.fmode,i=new J8.WriteStream(t.absolute,{flags:xx(t.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&ie.close(i.fd,()=>{}),i.write=()=>!0,this[Ze](u,t),r()});let s=1,o=u=>{if(u){i.fd&&ie.close(i.fd,()=>{}),this[Ze](u,t),r();return}--s===0&&ie.close(i.fd,c=>{c?this[Ze](c,t):this[Ui](),r()})};i.on("finish",u=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,h=t.mtime;ie.futimes(l,f,h,g=>g?ie.utimes(c,f,h,b=>o(b&&g)):o())}if(this[Xs](t)){s++;let f=this[Js](t),h=this[Zs](t);ie.fchown(l,f,h,g=>g?ie.chown(c,f,h,b=>o(b&&g)):o())}o()});let a=this.transform&&this.transform(t)||t;a!==t&&(a.on("error",u=>{this[Ze](u,t),r()}),t.pipe(a)),a.pipe(i)}[Wp](t,r){let n=t.mode&4095||this.dmode;this[rn](t.absolute,n,i=>{if(i){this[Ze](i,t),r();return}let s=1,o=a=>{--s===0&&(r(),this[Ui](),t.resume())};t.mtime&&!this.noMtime&&(s++,ie.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[Xs](t)&&(s++,ie.chown(t.absolute,this[Js](t),this[Zs](t),o)),o()})}[_x](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[gx](t,r){this[Zu](t,t.linkpath,"symlink",r)}[yx](t,r){let n=bt(Sr.resolve(this.cwd,t.linkpath));this[Zu](t,n,"link",r)}[Ex](){this[Ku]++}[Ui](){this[Ku]--,this[Hp]()}[zp](t){this[Ui](),t.resume()}[Up](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!eo}[$p](t){this[Ex]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[mx](t,n))}[Ju](t){t.type==="SymbolicLink"?oN(this.dirCache):t.type!=="Directory"&&sN(this.dirCache,t.absolute)}[mx](t,r){this[Ju](t);let n=a=>{this[Ju](t),r(a)},i=()=>{this[rn](this.cwd,this.dmode,a=>{if(a){this[Ze](a,t),n();return}this[Qs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let a=bt(Sr.dirname(t.absolute));if(a!==this.cwd)return this[rn](a,this.dmode,u=>{if(u){this[Ze](u,t),n();return}o()})}o()},o=()=>{ie.lstat(t.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>t.mtime)){this[zp](t),n();return}if(a||this[Up](t,u))return this[Ft](null,t,n);if(u.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(u.mode&4095)!==t.mode,l=f=>this[Ft](f,t,n);return c?ie.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return ie.rmdir(t.absolute,c=>this[Ft](c,t,n))}if(t.absolute===this.cwd)return this[Ft](null,t,n);nN(t.absolute,c=>this[Ft](c,t,n))})};this[Qs]?s():i()}[Ft](t,r,n){if(t){this[Ze](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Gp](r,n);case"Link":return this[yx](r,n);case"SymbolicLink":return this[gx](r,n);case"Directory":case"GNUDumpDir":return this[Wp](r,n)}}[Zu](t,r,n,i){ie[n](r,t.absolute,s=>{s?this[Ze](s,t):(this[Ui](),t.resume()),i()})}},Xu=e=>{try{return[null,e()]}catch(t){return[t,null]}},Vp=class extends to{[Ft](t,r){return super[Ft](t,r,()=>{})}[$p](t){if(this[Ju](t),!this[Qs]){let s=this[rn](this.cwd,this.dmode);if(s)return this[Ze](s,t);this[Qs]=!0}if(t.absolute!==this.cwd){let s=bt(Sr.dirname(t.absolute));if(s!==this.cwd){let o=this[rn](s,this.dmode);if(o)return this[Ze](o,t)}}let[r,n]=Xu(()=>ie.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[zp](t);if(r||this[Up](t,n))return this[Ft](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[a]=o?Xu(()=>{ie.chmodSync(t.absolute,t.mode)}):[];return this[Ft](a,t)}let[s]=Xu(()=>ie.rmdirSync(t.absolute));this[Ft](s,t)}let[i]=t.absolute===this.cwd?[]:Xu(()=>iN(t.absolute));this[Ft](i,t)}[Gp](t,r){let n=t.mode&4095||this.fmode,i=a=>{let u;try{ie.closeSync(s)}catch(c){u=c}(a||u)&&this[Ze](a||u,t),r()},s;try{s=ie.openSync(t.absolute,xx(t.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",a=>this[Ze](a,t)),t.pipe(o)),o.on("data",a=>{try{ie.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{ie.futimesSync(s,c,l)}catch(f){try{ie.utimesSync(t.absolute,c,l)}catch{u=f}}}if(this[Xs](t)){let c=this[Js](t),l=this[Zs](t);try{ie.fchownSync(s,c,l)}catch(f){try{ie.chownSync(t.absolute,c,l)}catch{u=u||f}}}i(u)})}[Wp](t,r){let n=t.mode&4095||this.dmode,i=this[rn](t.absolute,n);if(i){this[Ze](i,t),r();return}if(t.mtime&&!this.noMtime)try{ie.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[Xs](t))try{ie.chownSync(t.absolute,this[Js](t),this[Zs](t))}catch{}r(),t.resume()}[rn](t,r){try{return Ax.sync(bt(t),{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(n){return n}}[Zu](t,r,n,i){try{ie[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[Ze](s,t)}}};to.Sync=Vp;Cx.exports=to});var Ox=m((l$,Tx)=>{"use strict";var aN=wi(),Qu=Yp(),Rx=require("fs"),Fx=Mi(),Sx=require("path"),Kp=Fi();Tx.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=aN(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&uN(n,t),n.file&&n.sync?cN(n):n.file?lN(n,r):n.sync?fN(n):hN(n)};var uN=(e,t)=>{let r=new Map(t.map(s=>[Kp(s),!0])),n=e.filter,i=(s,o)=>{let a=o||Sx.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(Sx.dirname(s),a);return r.set(s,u),u};e.filter=n?(s,o)=>n(s,o)&&i(Kp(s)):s=>i(Kp(s))},cN=e=>{let t=new Qu.Sync(e),r=e.file,n=Rx.statSync(r),i=e.maxReadSize||16*1024*1024;new Fx.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},lN=(e,t)=>{let r=new Qu(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Rx.stat(i,(u,c)=>{if(u)a(u);else{let l=new Fx.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return t?s.then(t,t):s},fN=e=>new Qu.Sync(e),hN=e=>new Qu(e)});var kx=m(Pe=>{"use strict";Pe.c=Pe.create=dD();Pe.r=Pe.replace=Tp();Pe.t=Pe.list=Hu();Pe.u=Pe.update=vD();Pe.x=Pe.extract=Ox();Pe.Pack=Cu();Pe.Unpack=Yp();Pe.Parse=ju();Pe.ReadEntry=cu();Pe.WriteEntry=ip();Pe.Header=Ri();Pe.Pax=fu();Pe.types=jd()});var Fr=m((Rr,ec)=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var Px=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function dN(e){return Px.includes(e)}var pN=["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",...Px];function mN(e){return pN.includes(e)}var gN=["null","undefined","string","number","bigint","boolean","symbol"];function yN(e){return gN.includes(e)}function Gi(e){return t=>typeof t===e}var{toString:Bx}=Object.prototype,ro=e=>{let t=Bx.call(e).slice(8,-1);if(/HTML\w+Element/.test(t)&&E.domElement(e))return"HTMLElement";if(mN(t))return t},de=e=>t=>ro(t)===e;function E(e){if(e===null)return"null";switch(typeof e){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(E.observable(e))return"Observable";if(E.array(e))return"Array";if(E.buffer(e))return"Buffer";let t=ro(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}E.undefined=Gi("undefined");E.string=Gi("string");var _N=Gi("number");E.number=e=>_N(e)&&!E.nan(e);E.bigint=Gi("bigint");E.function_=Gi("function");E.null_=e=>e===null;E.class_=e=>E.function_(e)&&e.toString().startsWith("class ");E.boolean=e=>e===!0||e===!1;E.symbol=Gi("symbol");E.numericString=e=>E.string(e)&&!E.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e));E.array=(e,t)=>Array.isArray(e)?E.function_(t)?e.every(t):!0:!1;E.buffer=e=>{var t,r,n,i;return(i=(n=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,e))!==null&&i!==void 0?i:!1};E.blob=e=>de("Blob")(e);E.nullOrUndefined=e=>E.null_(e)||E.undefined(e);E.object=e=>!E.null_(e)&&(typeof e=="object"||E.function_(e));E.iterable=e=>{var t;return E.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])};E.asyncIterable=e=>{var t;return E.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])};E.generator=e=>{var t,r;return E.iterable(e)&&E.function_((t=e)===null||t===void 0?void 0:t.next)&&E.function_((r=e)===null||r===void 0?void 0:r.throw)};E.asyncGenerator=e=>E.asyncIterable(e)&&E.function_(e.next)&&E.function_(e.throw);E.nativePromise=e=>de("Promise")(e);var bN=e=>{var t,r;return E.function_((t=e)===null||t===void 0?void 0:t.then)&&E.function_((r=e)===null||r===void 0?void 0:r.catch)};E.promise=e=>E.nativePromise(e)||bN(e);E.generatorFunction=de("GeneratorFunction");E.asyncGeneratorFunction=e=>ro(e)==="AsyncGeneratorFunction";E.asyncFunction=e=>ro(e)==="AsyncFunction";E.boundFunction=e=>E.function_(e)&&!e.hasOwnProperty("prototype");E.regExp=de("RegExp");E.date=de("Date");E.error=de("Error");E.map=e=>de("Map")(e);E.set=e=>de("Set")(e);E.weakMap=e=>de("WeakMap")(e);E.weakSet=e=>de("WeakSet")(e);E.int8Array=de("Int8Array");E.uint8Array=de("Uint8Array");E.uint8ClampedArray=de("Uint8ClampedArray");E.int16Array=de("Int16Array");E.uint16Array=de("Uint16Array");E.int32Array=de("Int32Array");E.uint32Array=de("Uint32Array");E.float32Array=de("Float32Array");E.float64Array=de("Float64Array");E.bigInt64Array=de("BigInt64Array");E.bigUint64Array=de("BigUint64Array");E.arrayBuffer=de("ArrayBuffer");E.sharedArrayBuffer=de("SharedArrayBuffer");E.dataView=de("DataView");E.enumCase=(e,t)=>Object.values(t).includes(e);E.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;E.urlInstance=e=>de("URL")(e);E.urlString=e=>{if(!E.string(e))return!1;try{return new URL(e),!0}catch{return!1}};E.truthy=e=>!!e;E.falsy=e=>!e;E.nan=e=>Number.isNaN(e);E.primitive=e=>E.null_(e)||yN(typeof e);E.integer=e=>Number.isInteger(e);E.safeInteger=e=>Number.isSafeInteger(e);E.plainObject=e=>{if(Bx.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};E.typedArray=e=>dN(ro(e));var EN=e=>E.safeInteger(e)&&e>=0;E.arrayLike=e=>!E.nullOrUndefined(e)&&!E.function_(e)&&EN(e.length);E.inRange=(e,t)=>{if(E.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(E.array(t)&&t.length===2)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};var wN=1,vN=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.domElement=e=>E.object(e)&&e.nodeType===wN&&E.string(e.nodeName)&&!E.plainObject(e)&&vN.every(t=>t in e);E.observable=e=>{var t,r,n,i;return e?e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))||e===((i=(n=e)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};E.nodeStream=e=>E.object(e)&&E.function_(e.pipe)&&!E.observable(e);E.infinite=e=>e===1/0||e===-1/0;var Ix=e=>t=>E.integer(t)&&Math.abs(t%2)===e;E.evenInteger=Ix(0);E.oddInteger=Ix(1);E.emptyArray=e=>E.array(e)&&e.length===0;E.nonEmptyArray=e=>E.array(e)&&e.length>0;E.emptyString=e=>E.string(e)&&e.length===0;var AN=e=>E.string(e)&&!/\S/.test(e);E.emptyStringOrWhitespace=e=>E.emptyString(e)||AN(e);E.nonEmptyString=e=>E.string(e)&&e.length>0;E.nonEmptyStringAndNotWhitespace=e=>E.string(e)&&!E.emptyStringOrWhitespace(e);E.emptyObject=e=>E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length===0;E.nonEmptyObject=e=>E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length>0;E.emptySet=e=>E.set(e)&&e.size===0;E.nonEmptySet=e=>E.set(e)&&e.size>0;E.emptyMap=e=>E.map(e)&&e.size===0;E.nonEmptyMap=e=>E.map(e)&&e.size>0;E.propertyKey=e=>E.any([E.string,E.number,E.symbol],e);E.formData=e=>de("FormData")(e);E.urlSearchParams=e=>de("URLSearchParams")(e);var Lx=(e,t,r)=>{if(!E.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(r.length===0)throw new TypeError("Invalid number of values");return e.call(r,t)};E.any=(e,...t)=>(E.array(e)?e:[e]).some(n=>Lx(Array.prototype.some,n,t));E.all=(e,...t)=>Lx(Array.prototype.every,e,t);var P=(e,t,r,n={})=>{if(!e){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${E(o)}\``))].join(", ")}`:`received value of type \`${E(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${s}.`)}};Rr.assert={undefined:e=>P(E.undefined(e),"undefined",e),string:e=>P(E.string(e),"string",e),number:e=>P(E.number(e),"number",e),bigint:e=>P(E.bigint(e),"bigint",e),function_:e=>P(E.function_(e),"Function",e),null_:e=>P(E.null_(e),"null",e),class_:e=>P(E.class_(e),"Class",e),boolean:e=>P(E.boolean(e),"boolean",e),symbol:e=>P(E.symbol(e),"symbol",e),numericString:e=>P(E.numericString(e),"string with a number",e),array:(e,t)=>{P(E.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>P(E.buffer(e),"Buffer",e),blob:e=>P(E.blob(e),"Blob",e),nullOrUndefined:e=>P(E.nullOrUndefined(e),"null or undefined",e),object:e=>P(E.object(e),"Object",e),iterable:e=>P(E.iterable(e),"Iterable",e),asyncIterable:e=>P(E.asyncIterable(e),"AsyncIterable",e),generator:e=>P(E.generator(e),"Generator",e),asyncGenerator:e=>P(E.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>P(E.nativePromise(e),"native Promise",e),promise:e=>P(E.promise(e),"Promise",e),generatorFunction:e=>P(E.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>P(E.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>P(E.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>P(E.boundFunction(e),"Function",e),regExp:e=>P(E.regExp(e),"RegExp",e),date:e=>P(E.date(e),"Date",e),error:e=>P(E.error(e),"Error",e),map:e=>P(E.map(e),"Map",e),set:e=>P(E.set(e),"Set",e),weakMap:e=>P(E.weakMap(e),"WeakMap",e),weakSet:e=>P(E.weakSet(e),"WeakSet",e),int8Array:e=>P(E.int8Array(e),"Int8Array",e),uint8Array:e=>P(E.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>P(E.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>P(E.int16Array(e),"Int16Array",e),uint16Array:e=>P(E.uint16Array(e),"Uint16Array",e),int32Array:e=>P(E.int32Array(e),"Int32Array",e),uint32Array:e=>P(E.uint32Array(e),"Uint32Array",e),float32Array:e=>P(E.float32Array(e),"Float32Array",e),float64Array:e=>P(E.float64Array(e),"Float64Array",e),bigInt64Array:e=>P(E.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>P(E.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>P(E.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>P(E.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>P(E.dataView(e),"DataView",e),enumCase:(e,t)=>P(E.enumCase(e,t),"EnumCase",e),urlInstance:e=>P(E.urlInstance(e),"URL",e),urlString:e=>P(E.urlString(e),"string with a URL",e),truthy:e=>P(E.truthy(e),"truthy",e),falsy:e=>P(E.falsy(e),"falsy",e),nan:e=>P(E.nan(e),"NaN",e),primitive:e=>P(E.primitive(e),"primitive",e),integer:e=>P(E.integer(e),"integer",e),safeInteger:e=>P(E.safeInteger(e),"integer",e),plainObject:e=>P(E.plainObject(e),"plain object",e),typedArray:e=>P(E.typedArray(e),"TypedArray",e),arrayLike:e=>P(E.arrayLike(e),"array-like",e),domElement:e=>P(E.domElement(e),"HTMLElement",e),observable:e=>P(E.observable(e),"Observable",e),nodeStream:e=>P(E.nodeStream(e),"Node.js Stream",e),infinite:e=>P(E.infinite(e),"infinite number",e),emptyArray:e=>P(E.emptyArray(e),"empty array",e),nonEmptyArray:e=>P(E.nonEmptyArray(e),"non-empty array",e),emptyString:e=>P(E.emptyString(e),"empty string",e),emptyStringOrWhitespace:e=>P(E.emptyStringOrWhitespace(e),"empty string or whitespace",e),nonEmptyString:e=>P(E.nonEmptyString(e),"non-empty string",e),nonEmptyStringAndNotWhitespace:e=>P(E.nonEmptyStringAndNotWhitespace(e),"non-empty string and not whitespace",e),emptyObject:e=>P(E.emptyObject(e),"empty object",e),nonEmptyObject:e=>P(E.nonEmptyObject(e),"non-empty object",e),emptySet:e=>P(E.emptySet(e),"empty set",e),nonEmptySet:e=>P(E.nonEmptySet(e),"non-empty set",e),emptyMap:e=>P(E.emptyMap(e),"empty map",e),nonEmptyMap:e=>P(E.nonEmptyMap(e),"non-empty map",e),propertyKey:e=>P(E.propertyKey(e),"PropertyKey",e),formData:e=>P(E.formData(e),"FormData",e),urlSearchParams:e=>P(E.urlSearchParams(e),"URLSearchParams",e),evenInteger:e=>P(E.evenInteger(e),"even integer",e),oddInteger:e=>P(E.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>P(E.directInstanceOf(e,t),"T",e),inRange:(e,t)=>P(E.inRange(e,t),"in range",e),any:(e,...t)=>P(E.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>P(E.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})};Object.defineProperties(E,{class:{value:E.class_},function:{value:E.function_},null:{value:E.null_}});Object.defineProperties(Rr.assert,{class:{value:Rr.assert.class_},function:{value:Rr.assert.function_},null:{value:Rr.assert.null_}});Rr.default=E;ec.exports=E;ec.exports.default=E;ec.exports.assert=Rr.assert});var Nx=m((h$,Xp)=>{"use strict";var tc=class extends Error{constructor(t){super(t||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Wi=class{static fn(t){return(...r)=>new Wi((n,i,s)=>{r.push(s),t(...r).then(n,i)})}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),t(i,s,o)})}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(t){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new tc(t))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Wi.prototype,Promise.prototype);Xp.exports=Wi;Xp.exports.CancelError=tc});var Mx=m((Zp,Qp)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});function DN(e){return e.encrypted}var Jp=(e,t)=>{let r;typeof t=="function"?r={connect:t}:r=t;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),DN(e)&&i&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),s&&e.once("close",r.close)};e.writable&&!e.connecting?o():e.connecting?e.once("connect",o):e.destroyed&&s&&r.close(e._hadError)};Zp.default=Jp;Qp.exports=Jp;Qp.exports.default=Jp});var qx=m((t0,r0)=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});var xN=Mx(),CN=require("util"),SN=Number(process.versions.node.split(".")[0]),e0=e=>{if(e.timings)return e.timings;let t={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}};e.timings=t;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(t.error=Date.now(),t.phases.total=t.error-t.start,a.emit=u),u(c,...l))};r(e);let n=()=>{t.abort=Date.now(),(!t.response||SN>=13)&&(t.phases.total=Date.now()-t.start)};e.prependOnceListener("abort",n);let i=a=>{if(t.socket=Date.now(),t.phases.wait=t.socket-t.start,CN.types.isProxy(a))return;let u=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};a.prependOnceListener("lookup",u),xN.default(a,{connect:()=>{t.connect=Date.now(),t.lookup===void 0&&(a.removeListener("lookup",u),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?i(e.socket):e.prependOnceListener("socket",i);let s=()=>{var a;t.upload=Date.now(),t.phases.request=t.upload-((a=t.secureConnect)!==null&&a!==void 0?a:t.connect)};return(()=>typeof e.writableFinished=="boolean"?e.writableFinished:e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0))()?s():e.prependOnceListener("finish",s),e.prependOnceListener("response",a=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,a.timings=t,r(a),a.prependOnceListener("end",()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}),a.prependOnceListener("aborted",n)}),t};t0.default=e0;r0.exports=e0;r0.exports.default=e0});var zx=m((d$,s0)=>{"use strict";var{V4MAPPED:RN,ADDRCONFIG:FN,ALL:Wx,promises:{Resolver:jx},lookup:TN}=require("dns"),{promisify:n0}=require("util"),ON=require("os"),zi=Symbol("cacheableLookupCreateConnection"),i0=Symbol("cacheableLookupInstance"),Hx=Symbol("expires"),kN=typeof Wx=="number",$x=e=>{if(!(e&&typeof e.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},PN=e=>{for(let t of e)t.family!==6&&(t.address=`::ffff:${t.address}`,t.family=6)},Ux=()=>{let e=!1,t=!1;for(let r of Object.values(ON.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},BN=e=>Symbol.iterator in e,Gx={ttl:!0},IN={all:!0},rc=class{constructor({cache:t=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new jx,lookup:o=TN}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=t,this._resolver=s,this._dnsLookup=n0(o),this._resolver instanceof jx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=n0(this._resolver.resolve4.bind(this._resolver)),this._resolve6=n0(this._resolver.resolve6.bind(this._resolver))),this._iface=Ux(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(t){this.clear(),this._resolver.setServers(t)}get servers(){return this._resolver.getServers()}lookup(t,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(t,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(t,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(t);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&RN&&(kN&&r.hints&Wx||i.length===0)?PN(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&FN){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${t}`);throw i.code="ENOTFOUND",i.hostname=t,i}return r.all?n:n[0]}async query(t){let r=await this._cache.get(t);if(!r){let n=this._pending[t];if(n)r=await n;else{let i=this.queryAndCache(t);this._pending[t]=i;try{r=await i}finally{delete this._pending[t]}}}return r=r.map(n=>({...n})),r}async _resolve(t){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(t,Gx),this._resolve6(t,Gx)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of n)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(t){try{return{entries:await this._dnsLookup(t,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(t,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[Hx]=Date.now()+n;try{await this._cache.set(t,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}BN(this._cache)&&this._tick(n)}}async queryAndCache(t){if(this._hostnamesToFallback.has(t))return this._dnsLookup(t,IN);let r=await this._resolve(t);r.entries.length===0&&this._fallback&&(r=await this._lookup(t),r.entries.length!==0&&this._hostnamesToFallback.add(t));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(t,r.entries,n),r.entries}_tick(t){let r=this._nextRemovalTime;(!r||t<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=t,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[Hx];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},t),this._removalTimeout.unref&&this._removalTimeout.unref())}install(t){if($x(t),zi in t)throw new Error("CacheableLookup has been already installed");t[zi]=t.createConnection,t[i0]=this,t.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),t[zi](r,n))}uninstall(t){if($x(t),t[zi]){if(t[i0]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");t.createConnection=t[zi],delete t[zi],delete t[i0]}}updateInterfaceInfo(){let{_iface:t}=this;this._iface=Ux(),(t.has4&&!this._iface.has4||t.has6&&!this._iface.has6)&&this._cache.clear()}clear(t){if(t){this._cache.delete(t);return}this._cache.clear()}};s0.exports=rc;s0.exports.default=rc});var Kx=m((p$,Yx)=>{"use strict";var LN="text/plain",NN="us-ascii",Vx=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),MN=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(f=>{let[h,g=""]=f.split("=").map(b=>b.trim());return h==="charset"&&(g=g.toLowerCase(),g===NN)?"":`${h}${g?`=${g}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==LN)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},qN=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return MN(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];Vx(a,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])Vx(o,t.removeQueryParameters)&&i.searchParams.delete(o);t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters&&i.searchParams.sort(),t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};Yx.exports=qN});var Zx=m((m$,Jx)=>{Jx.exports=Xx;function Xx(e,t){if(e&&t)return Xx(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var a0=m((g$,o0)=>{var Qx=Zx();o0.exports=Qx(nc);o0.exports.strict=Qx(e2);nc.proto=nc(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return nc(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return e2(this)},configurable:!0})});function nc(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function e2(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var n2=m((y$,r2)=>{var jN=a0(),HN=function(){},$N=function(e){return e.setHeader&&typeof e.abort=="function"},UN=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},t2=function(e,t,r){if(typeof t=="function")return t2(e,null,t);t||(t={}),r=jN(r||HN);var n=e._writableState,i=e._readableState,s=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,a=!1,u=function(){e.writable||c()},c=function(){o=!1,s||r.call(e)},l=function(){s=!1,o||r.call(e)},f=function(p){r.call(e,p?new Error("exited with error code: "+p):null)},h=function(p){r.call(e,p)},g=function(){process.nextTick(b)},b=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(e,new Error("premature close"))}},_=function(){e.req.on("finish",c)};return $N(e)?(e.on("complete",c),e.on("abort",g),e.req?_():e.on("request",_)):o&&!n&&(e.on("end",u),e.on("close",u)),UN(e)&&e.on("exit",f),e.on("end",l),e.on("finish",c),t.error!==!1&&e.on("error",h),e.on("close",g),function(){a=!0,e.removeListener("complete",c),e.removeListener("abort",g),e.removeListener("request",_),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("exit",f),e.removeListener("end",l),e.removeListener("error",h),e.removeListener("close",g)}};r2.exports=t2});var o2=m((_$,s2)=>{var GN=a0(),WN=n2(),u0=require("fs"),no=function(){},zN=/^v?\.0/.test(process.version),ic=function(e){return typeof e=="function"},VN=function(e){return!zN||!u0?!1:(e instanceof(u0.ReadStream||no)||e instanceof(u0.WriteStream||no))&&ic(e.close)},YN=function(e){return e.setHeader&&ic(e.abort)},KN=function(e,t,r,n){n=GN(n);var i=!1;e.on("close",function(){i=!0}),WN(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,VN(e))return e.close(no);if(YN(e))return e.abort();if(ic(e.destroy))return e.destroy();n(o||new Error("stream was destroyed"))}}},i2=function(e){e()},XN=function(e,t){return e.pipe(t)},JN=function(){var e=Array.prototype.slice.call(arguments),t=ic(e[e.length-1]||no)&&e.pop()||no;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,s){var o=s<e.length-1,a=s>0;return KN(i,o,a,function(u){r||(r=u),u&&n.forEach(i2),!o&&(n.forEach(i2),t(r))})});return e.reduce(XN)};s2.exports=JN});var u2=m((b$,a2)=>{"use strict";var{PassThrough:ZN}=require("stream");a2.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new ZN({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var c2=m((E$,Vi)=>{"use strict";var{constants:QN}=require("buffer"),eM=o2(),tM=u2(),sc=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function oc(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=QN.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=eM(e,tM(t),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new sc)})}),n.getBufferedValue()}Vi.exports=oc;Vi.exports.default=oc;Vi.exports.buffer=(e,t)=>oc(e,{...t,encoding:"buffer"});Vi.exports.array=(e,t)=>oc(e,{...t,array:!0});Vi.exports.MaxBufferError=sc});var f2=m((v$,l2)=>{"use strict";var rM=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),nM=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),iM=new Set([500,502,503,504]),sM={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},oM={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function In(e){let t=parseInt(e,10);return isFinite(t)?t:0}function aM(e){return e?iM.has(e.status):!0}function c0(e){let t={};if(!e)return t;let r=e.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);t[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return t}function uM(e){let t=[];for(let r in e){let n=e[r];t.push(n===!0?r:r+"="+n)}if(t.length)return t.join(", ")}l2.exports=class{constructor(t,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=c0(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=c0(t.headers["cache-control"]),o&&"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":uM(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.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())&&nM.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||rM.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(t){if(!t||!t.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(t){this._assertRequestHasHeaders(t);let r=c0(t.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(t.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(t,!1)}_requestMatches(t,r){return(!this._url||this._url===t.url)&&this._host===t.headers.host&&(!t.method||this._method===t.method||r&&t.method==="HEAD")&&this._varyMatches(t)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(t){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(t.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(t){let r={};for(let n in t)sM[n]||(r[n]=t[n]);if(t.connection){let n=t.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let t=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(t.warning=(t.warning?`${t.warning}, `:"")+'113 - "rfc7234 5.5.4"'),t.age=`${Math.round(r)}`,t.date=new Date(this.now()).toUTCString(),t}date(){let t=Date.parse(this._resHeaders.date);return isFinite(t)?t:this._responseTime}age(){let t=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return t+r}_ageValue(){return In(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 In(this._rescc["s-maxage"])}if(this._rescc["max-age"])return In(this._rescc["max-age"]);let t=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(t,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(t,(r-n)/1e3*this._cacheHeuristic)}return t}timeToLive(){let t=this.maxAge()-this.age(),r=t+In(this._rescc["stale-if-error"]),n=t+In(this._rescc["stale-while-revalidate"]);return Math.max(0,t,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+In(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+In(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(t){return new this(void 0,void 0,{_fromObject:t})}_fromObject(t){if(this._responseTime)throw Error("Reinitialized");if(!t||t.v!==1)throw Error("Invalid serialization");this._responseTime=t.t,this._isShared=t.sh,this._cacheHeuristic=t.ch,this._immutableMinTtl=t.imm!==void 0?t.imm:24*3600*1e3,this._status=t.st,this._resHeaders=t.resh,this._rescc=t.rescc,this._method=t.m,this._url=t.u,this._host=t.h,this._noAuthorization=t.a,this._reqHeaders=t.reqh,this._reqcc=t.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(t){this._assertRequestHasHeaders(t);let r=this._copyWithoutHopByHopHeaders(t.headers);if(delete r["if-range"],!this._requestMatches(t,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(t,r){if(this._assertRequestHasHeaders(t),this._useStaleIfError()&&aM(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(t,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!oM[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(t,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var ac=m((A$,h2)=>{"use strict";h2.exports=e=>{let t={};for(let[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}});var p2=m((D$,d2)=>{"use strict";var cM=require("stream").Readable,lM=ac(),l0=class extends cM{constructor(t,r,n,i){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=lM(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};d2.exports=l0});var g2=m((x$,m2)=>{"use strict";var fM=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];m2.exports=(e,t)=>{let r=new Set(Object.keys(e).concat(fM));for(let n of r)n in t||(t[n]=typeof e[n]=="function"?e[n].bind(e):e[n])}});var _2=m((C$,y2)=>{"use strict";var hM=require("stream").PassThrough,dM=g2(),pM=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new hM;return dM(e,t),e.pipe(t)};y2.exports=pM});var b2=m(f0=>{f0.stringify=function e(t){if(typeof t=="undefined")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 r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var s in t){var o=typeof t[s]=="function"||!n&&typeof t[s]=="undefined";Object.hasOwnProperty.call(t,s)&&!o&&(i||(r+=","),i=!1,n?t[s]==null?r+="null":r+=e(t[s]):t[s]!==void 0&&(r+=e(s)+":"+e(t[s])))}return r+=n?"]":"}",r}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t=="undefined"?"null":JSON.stringify(t)};f0.parse=function(e){return JSON.parse(e,function(t,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var A2=m((R$,v2)=>{"use strict";var mM=require("events"),E2=b2(),gM=e=>{let t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){let r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map},w2=["sqlite","postgres","mysql","mongo","redis","tiered"],h0=class extends mM{constructor(t,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:E2.stringify,deserialize:E2.parse,...typeof t=="string"?{uri:t}:t,...n},!this.opts.store){let s={...this.opts};this.opts.store=gM(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return w2.includes(this.opts.store.opts.dialect)||w2.findIndex(t=>this.opts.store.opts.url.includes(t))>=0}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}_getKeyPrefixArray(t){return t.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(t){return t.split(":").splice(1).join(":")}get(t,r){let{store:n}=this.opts,i=Array.isArray(t),s=i?this._getKeyPrefixArray(t):this._getKeyPrefix(t);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let c of a)u.push(c.value);return u})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(t).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(t).then(()=>{}):r&&r.raw?o:o.value}})}set(t,r,n){let i=this._getKeyPrefix(t);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(t){let{store:r}=this.opts;if(Array.isArray(t)){let i=this._getKeyPrefixArray(t);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(t);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:t}=this.opts;return Promise.resolve().then(()=>t.clear())}has(t){let r=this._getKeyPrefix(t),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:t}=this.opts;if(typeof t.disconnect=="function")return t.disconnect()}};v2.exports=h0});var C2=m((F$,x2)=>{"use strict";var yM=require("events"),uc=require("url"),_M=Kx(),bM=c2(),d0=f2(),D2=p2(),EM=ac(),wM=_2(),vM=A2(),Ht=class{constructor(t,r){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new vM({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(r,n)=>{let i;if(typeof r=="string")i=p0(uc.parse(r)),r={};else if(r instanceof uc.URL)i=p0(uc.parse(r.toString())),r={};else{let[f,...h]=(r.path||"").split("?"),g=h.length>0?`?${h.join("?")}`:"";i=p0({...r,pathname:f,search:g})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...AM(i)},r.headers=EM(r.headers);let s=new yM,o=_M(uc.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=f=>{c=!0;let h=!1,g,b=new Promise(p=>{g=()=>{h||(h=!0,p())}}),_=p=>{if(u&&!f.forceRefresh){p.status=p.statusCode;let C=d0.fromObject(u.cachePolicy).revalidatedPolicy(f,p);if(!C.modified){let N=C.policy.responseHeaders();p=new D2(u.statusCode,N,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new d0(f,p,f),p.fromCache=!1);let w;f.cache&&p.cachePolicy.storable()?(w=wM(p),(async()=>{try{let C=bM.buffer(p);if(await Promise.race([b,new Promise(X=>p.once("end",X))]),h)return;let N=await C,W={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:N},M=f.strictTtl?p.cachePolicy.timeToLive():void 0;f.maxTtl&&(M=M?Math.min(M,f.maxTtl):f.maxTtl),await this.cache.set(a,W,M)}catch(C){s.emit("error",new Ht.CacheError(C))}})()):f.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Ht.CacheError(C))}})(),s.emit("response",w||p),typeof n=="function"&&n(w||p)};try{let p=t(f,_);p.once("error",g),p.once("abort",g),s.emit("request",p)}catch(p){s.emit("error",new Ht.RequestError(p))}};return(async()=>{let f=async g=>{await Promise.resolve();let b=g.cache?await this.cache.get(a):void 0;if(typeof b=="undefined")return l(g);let _=d0.fromObject(b.cachePolicy);if(_.satisfiesWithoutRevalidation(g)&&!g.forceRefresh){let p=_.responseHeaders(),w=new D2(b.statusCode,p,b.body,b.url);w.cachePolicy=_,w.fromCache=!0,s.emit("response",w),typeof n=="function"&&n(w)}else u=b,g.headers=_.revalidationHeaders(g),l(g)},h=g=>s.emit("error",new Ht.CacheError(g));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await f(r)}catch(g){r.automaticFailover&&!c&&l(r),s.emit("error",new Ht.CacheError(g))}})(),s}}};function AM(e){let t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function p0(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}Ht.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};Ht.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};x2.exports=Ht});var R2=m((k$,S2)=>{"use strict";var DM=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];S2.exports=(e,t)=>{if(t._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(e).concat(DM)),n={};for(let i of r)i in t||(n[i]={get(){let s=e[i];return typeof s=="function"?s.bind(e):s},set(s){e[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(t,n),e.once("aborted",()=>{t.destroy(),t.emit("aborted")}),e.once("close",()=>{e.complete&&t.readable?t.once("end",()=>{t.emit("close")}):t.emit("close")}),t}});var T2=m((P$,F2)=>{"use strict";var{Transform:xM,PassThrough:CM}=require("stream"),m0=require("zlib"),SM=R2();F2.exports=e=>{let t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;let r=t==="br";if(r&&typeof m0.createBrotliDecompress!="function")return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let n=!0,i=new xM({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new CM({autoDestroy:!1,destroy(a,u){e.destroy(),u(a)}}),o=r?m0.createBrotliDecompress():m0.createUnzip();return o.once("error",a=>{if(n&&!e.readable){s.end();return}s.destroy(a)}),SM(e,s),e.pipe(i).pipe(o).pipe(s),s}});var y0=m((B$,O2)=>{"use strict";var g0=class{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,r){if(this.cache.set(t,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){let r=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,r),r}}set(t,r){return this.cache.has(t)?this.cache.set(t,r):this._set(t,r),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache)yield t;for(let t of this.oldCache){let[r]=t;this.cache.has(r)||(yield t)}}get size(){let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}};O2.exports=g0});var b0=m((I$,I2)=>{"use strict";var RM=require("events"),FM=require("tls"),TM=require("http2"),OM=y0(),it=Symbol("currentStreamsCount"),k2=Symbol("request"),Tt=Symbol("cachedOriginSet"),Yi=Symbol("gracefullyClosing"),kM=["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"],PM=(e,t,r)=>{let n=0,i=e.length;for(;n<i;){let s=n+i>>>1;r(e[s],t)?n=s+1:i=s}return n},BM=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,_0=(e,t)=>{for(let r of e)r[Tt].length<t[Tt].length&&r[Tt].every(n=>t[Tt].includes(n))&&r[it]+t[it]<=t.remoteSettings.maxConcurrentStreams&&B2(r)},IM=(e,t)=>{for(let r of e)t[Tt].length<r[Tt].length&&t[Tt].every(n=>r[Tt].includes(n))&&t[it]+r[it]<=r.remoteSettings.maxConcurrentStreams&&B2(t)},P2=({agent:e,isFree:t})=>{let r={};for(let n in e.sessions){let s=e.sessions[n].filter(o=>{let a=o[nr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return t?a:!a});s.length!==0&&(r[n]=s)}return r},B2=e=>{e[Yi]=!0,e[it]===0&&e.close()},nr=class extends RM{constructor({timeout:t=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=t,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new OM({maxSize:i})}static normalizeOrigin(t,r){return typeof t=="string"&&(t=new URL(t)),r&&t.hostname!==r&&(t.hostname=r),t.origin}normalizeOptions(t){let r="";if(t)for(let n of kM)t[n]&&(r+=`:${t[n]}`);return r}_tryToCreateNewSession(t,r){if(!(t in this.queue)||!(r in this.queue[t]))return;let n=this.queue[t][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(t,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=nr.normalizeOrigin(t,r&&r.servername);if(a===void 0){for(let{reject:l}of n)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],f=-1,h=-1,g;for(let b of l){let _=b.remoteSettings.maxConcurrentStreams;if(_<f)break;if(b[Tt].includes(a)){let p=b[it];if(p>=_||b[Yi]||b.destroyed)continue;g||(f=_),p>h&&(g=b,h=p)}}if(g){if(n.length!==1){for(let{reject:b}of n){let _=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
26
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);b(_)}return}n[0].resolve(g);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${a}:${o}`,f=!1;try{let h=TM.connect(t,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[it]=0,h[Yi]=!1;let g=()=>h[it]<h.remoteSettings.maxConcurrentStreams,b=!0;h.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),h.once("error",p=>{for(let{reject:w}of n)w(p);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(f){b&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(h),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of n)w(p);u()}this._tryToCreateNewSession(o,a)});let _=()=>{if(!(!(o in this.queue)||!g())){for(let p of h[Tt])if(p in this.queue[o]){let{listeners:w}=this.queue[o][p];for(;w.length!==0&&g();)w.shift().resolve(h);let C=this.queue[o];if(C[p].listeners.length===0&&(delete C[p],Object.keys(C).length===0)){delete this.queue[o];break}if(!g())break}}};h.on("origin",()=>{h[Tt]=h.originSet,g()&&(_(),_0(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let w of n)w.reject(p);h.destroy();return}h[Tt]=h.originSet;{let p=this.sessions;if(o in p){let w=p[o];w.splice(PM(w,h,BM),0,h)}else p[o]=[h]}this._freeSessionsCount+=1,f=!0,this.emit("session",h),_(),u(),h[it]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),h.on("remoteSettings",()=>{_(),_0(this.sessions[o],h)})}),h[k2]=h.request,h.request=(p,w)=>{if(h[Yi])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=h[k2](p,w);return h.ref(),++h[it],h[it]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(b=g(),--h[it],!h.destroyed&&!h.closed&&(IM(this.sessions[o],h),g()&&!h.closed)){b||(this._freeSessionsCount++,b=!0);let N=h[it]===0;N&&h.unref(),N&&(this._freeSessionsCount>this.maxFreeSessions||h[Yi])?h.close():(_0(this.sessions[o],h),_())}}),C}}catch(h){for(let g of n)g.reject(h);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(t,r,n,i){return new Promise((s,o)=>{this.getSession(t,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(t,r){return nr.connect(t,r)}static connect(t,r){r.ALPNProtocols=["h2"];let n=t.port||443,i=t.hostname||t.host;return typeof r.servername=="undefined"&&(r.servername=i),FM.connect(n,i,r)}closeFreeSessions(){for(let t of Object.values(this.sessions))for(let r of t)r[it]===0&&r.close()}destroy(t){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(t);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return P2({agent:this,isFree:!0})}get busySessions(){return P2({agent:this,isFree:!1})}};nr.kCurrentStreamsCount=it;nr.kGracefullyClosing=Yi;I2.exports={Agent:nr,globalAgent:new nr}});var w0=m((L$,L2)=>{"use strict";var{Readable:LM}=require("stream"),E0=class extends LM{constructor(t,r){super({highWaterMark:r,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=t,this.connection=t,this._dumped=!1}_destroy(t){this.req._request.destroy(t)}setTimeout(t,r){return this.req.setTimeout(t,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};L2.exports=E0});var v0=m((N$,N2)=>{"use strict";N2.exports=e=>{let t={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return typeof e.port=="string"&&e.port.length!==0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var q2=m((M$,M2)=>{"use strict";M2.exports=(e,t,r)=>{for(let n of r)e.on(n,(...i)=>t.emit(n,...i))}});var H2=m((q$,j2)=>{"use strict";j2.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var U2=m((H$,$2)=>{"use strict";var Ki=(e,t,r)=>{$2.exports[t]=class extends e{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${t}]`,this.code=t}}};Ki(TypeError,"ERR_INVALID_ARG_TYPE",e=>{let t=e[0].includes(".")?"property":"argument",r=e[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${n?"one of":"of"} type ${r}. Received ${typeof e[2]}`});Ki(TypeError,"ERR_INVALID_PROTOCOL",e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`);Ki(Error,"ERR_HTTP_HEADERS_SENT",e=>`Cannot ${e[0]} headers after they are sent to the client`);Ki(TypeError,"ERR_INVALID_HTTP_TOKEN",e=>`${e[0]} must be a valid HTTP token [${e[1]}]`);Ki(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",e=>`Invalid value "${e[0]} for header "${e[1]}"`);Ki(TypeError,"ERR_INVALID_CHAR",e=>`Invalid character in ${e[0]} [${e[1]}]`)});var S0=m(($$,X2)=>{"use strict";var NM=require("http2"),{Writable:MM}=require("stream"),{Agent:G2,globalAgent:qM}=b0(),jM=w0(),HM=v0(),$M=q2(),UM=H2(),{ERR_INVALID_ARG_TYPE:A0,ERR_INVALID_PROTOCOL:GM,ERR_HTTP_HEADERS_SENT:W2,ERR_INVALID_HTTP_TOKEN:WM,ERR_HTTP_INVALID_HEADER_VALUE:zM,ERR_INVALID_CHAR:VM}=U2(),{HTTP2_HEADER_STATUS:z2,HTTP2_HEADER_METHOD:V2,HTTP2_HEADER_PATH:Y2,HTTP2_METHOD_CONNECT:YM}=NM.constants,Qe=Symbol("headers"),D0=Symbol("origin"),x0=Symbol("session"),K2=Symbol("options"),cc=Symbol("flushedHeaders"),io=Symbol("jobs"),KM=/^[\^`\-\w!#$%&*+.|~]+$/,XM=/[^\t\u0020-\u007E\u0080-\u00FF]/,C0=class extends MM{constructor(t,r,n){super({autoDestroy:!1});let i=typeof t=="string"||t instanceof URL;if(i&&(t=HM(t instanceof URL?t:new URL(t))),typeof r=="function"||r===void 0?(n=r,r=i?t:{...t}):r={...t,...r},r.h2session)this[x0]=r.h2session;else if(r.agent===!1)this.agent=new G2({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new G2({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=qM;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new A0("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new GM(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[Qe]=Object.create(null),this[io]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,c]of Object.entries(r.headers))this.setHeader(u,c);r.auth&&!("authorization"in this[Qe])&&(this[Qe].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[K2]=r,s===443?(this[D0]=`https://${o}`,":authority"in this[Qe]||(this[Qe][":authority"]=o)):(this[D0]=`https://${o}:${s}`,":authority"in this[Qe]||(this[Qe][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[cc]=!1}get method(){return this[Qe][V2]}set method(t){t&&(this[Qe][V2]=t.toUpperCase())}get path(){return this[Qe][Y2]}set path(t){t&&(this[Qe][Y2]=t)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(t,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(t,r,n);this._request?i():this[io].push(i)}_final(t){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){t();return}this._request.end(t)};this._request?r():this[io].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(t,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(t)}async flushHeaders(){if(this[cc]||this.destroyed)return;this[cc]=!0;let t=this.method===YM,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}t||$M(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let c=new jM(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[z2],c.headers=o,c.rawHeaders=u,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),t?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[z2]}))),n.once("trailers",i((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[io])o();this.emit("socket",this.socket)};if(this[x0])try{r(this[x0].request(this[Qe]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[D0],this[K2],this[Qe]))}catch(n){this.emit("error",n)}}}getHeader(t){if(typeof t!="string")throw new A0("name","string",t);return this[Qe][t.toLowerCase()]}get headersSent(){return this[cc]}removeHeader(t){if(typeof t!="string")throw new A0("name","string",t);if(this.headersSent)throw new W2("remove");delete this[Qe][t.toLowerCase()]}setHeader(t,r){if(this.headersSent)throw new W2("set");if(typeof t!="string"||!KM.test(t)&&!UM(t))throw new WM("Header name",t);if(typeof r=="undefined")throw new zM(r,t);if(XM.test(r))throw new VM("header content",t);this[Qe][t.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(t,r){let n=()=>this._request.setTimeout(t,r);return this._request?n():this[io].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(t){}};X2.exports=C0});var Z2=m((U$,J2)=>{"use strict";var JM=require("tls");J2.exports=(e={},t=JM.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),e.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await t(e,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var eC=m((G$,Q2)=>{"use strict";var ZM=require("net");Q2.exports=e=>{let t=e.host,r=e.headers&&e.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?t=r:t=r.slice(1,-1):t=r.split(":",1)[0]),ZM.isIP(t)?"":t}});var nC=m((W$,F0)=>{"use strict";var tC=require("http"),R0=require("https"),QM=Z2(),e4=y0(),t4=S0(),r4=eC(),n4=v0(),lc=new e4({maxSize:100}),so=new Map,rC=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};let n=()=>{e.emit("free",t,r)};t.on("free",n);let i=()=>{e.removeSocket(t,r)};t.on("close",i);let s=()=>{e.removeSocket(t,r),t.off("close",i),t.off("free",n),t.off("agentRemove",s)};t.on("agentRemove",s),e.emit("free",t,r)},i4=async e=>{let t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!lc.has(t)){if(so.has(t))return(await so.get(t)).alpnProtocol;let{path:r,agent:n}=e;e.path=e.socketPath;let i=QM(e);so.set(t,i);try{let{socket:s,alpnProtocol:o}=await i;if(lc.set(t,o),e.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=R0,u=R0.Agent.prototype.createConnection;n?n.createConnection===u?rC(n,s,e):s.destroy():a.createConnection===u?rC(a,s,e):s.destroy()}return so.delete(t),o}catch(s){throw so.delete(t),s}}return lc.get(t)};F0.exports=async(e,t,r)=>{if((typeof e=="string"||e instanceof URL)&&(e=n4(new URL(e))),typeof t=="function"&&(r=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||t.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";let n=t.protocol==="https:";t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||r4(t),t.port=t.port||(n?443:80),t._defaultAgent=n?R0.globalAgent:tC.globalAgent;let i=t.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=i[n?"https":"http"]}return n&&await i4(t)==="h2"?(i&&(t.agent=i.http2),new t4(t,r)):tC.request(t,r)};F0.exports.protocolCache=lc});var sC=m((z$,iC)=>{"use strict";var s4=require("http2"),o4=b0(),T0=S0(),a4=w0(),u4=nC(),c4=(e,t,r)=>new T0(e,t,r),l4=(e,t,r)=>{let n=new T0(e,t,r);return n.end(),n};iC.exports={...s4,ClientRequest:T0,IncomingMessage:a4,...o4,request:c4,get:l4,auto:u4}});var k0=m(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});var oC=Fr();O0.default=e=>oC.default.nodeStream(e)&&oC.default.function_(e.getBoundary)});var lC=m(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var uC=require("fs"),cC=require("util"),aC=Fr(),f4=k0(),h4=cC.promisify(uC.stat);P0.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(aC.default.string(e))return Buffer.byteLength(e);if(aC.default.buffer(e))return e.length;if(f4.default(e))return cC.promisify(e.getLength.bind(e))();if(e instanceof uC.ReadStream){let{size:r}=await h4(e.path);return r===0?void 0:r}}});var I0=m(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});function d4(e,t,r){let n={};for(let i of r)n[i]=(...s)=>{t.emit(i,...s)},e.on(i,n[i]);return()=>{for(let i of r)e.off(i,n[i])}}B0.default=d4});var fC=m(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.default=()=>{let e=[];return{once(t,r,n){t.once(r,n),e.push({origin:t,event:r,fn:n})},unhandleAll(){for(let t of e){let{origin:r,event:n,fn:i}=t;r.removeListener(n,i)}e.length=0}}}});var dC=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.TimeoutError=void 0;var p4=require("net"),m4=fC(),hC=Symbol("reentry"),g4=()=>{},fc=class extends Error{constructor(t,r){super(`Timeout awaiting '${r}' for ${t}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};oo.TimeoutError=fc;oo.default=(e,t,r)=>{if(hC in e)return g4;e[hC]=!0;let n=[],{once:i,unhandleAll:s}=m4.default(),o=(f,h,g)=>{var b;let _=setTimeout(h,f,f,g);(b=_.unref)===null||b===void 0||b.call(_);let p=()=>{clearTimeout(_)};return n.push(p),p},{host:a,hostname:u}=r,c=(f,h)=>{e.destroy(new fc(f,h))},l=()=>{for(let f of n)f();s()};if(e.once("error",f=>{if(l(),e.listenerCount("error")===0)throw f}),e.once("close",l),i(e,"response",f=>{i(f,"end",l)}),typeof t.request!="undefined"&&o(t.request,c,"request"),typeof t.socket!="undefined"){let f=()=>{c(t.socket,"socket")};e.setTimeout(t.socket,f),n.push(()=>{e.removeListener("timeout",f)})}return i(e,"socket",f=>{var h;let{socketPath:g}=e;if(f.connecting){let b=!!(g!=null?g:p4.isIP((h=u!=null?u:a)!==null&&h!==void 0?h:"")!==0);if(typeof t.lookup!="undefined"&&!b&&typeof f.address().address=="undefined"){let _=o(t.lookup,c,"lookup");i(f,"lookup",_)}if(typeof t.connect!="undefined"){let _=()=>o(t.connect,c,"connect");b?i(f,"connect",_()):i(f,"lookup",p=>{p===null&&i(f,"connect",_())})}typeof t.secureConnect!="undefined"&&r.protocol==="https:"&&i(f,"connect",()=>{let _=o(t.secureConnect,c,"secureConnect");i(f,"secureConnect",_)})}if(typeof t.send!="undefined"){let b=()=>o(t.send,c,"send");f.connecting?i(f,"connect",()=>{i(e,"upload-complete",b())}):i(e,"upload-complete",b())}}),typeof t.response!="undefined"&&i(e,"upload-complete",()=>{let f=o(t.response,c,"response");i(e,"response",f)}),l}});var mC=m(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});var pC=Fr();N0.default=e=>{e=e;let t={protocol:e.protocol,hostname:pC.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return pC.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var gC=m(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});var y4=require("url"),_4=["protocol","host","hostname","port","pathname","search"];M0.default=(e,t)=>{var r,n;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${(n=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&n!==void 0?n:""}`}let i=new y4.URL(e);if(t.path){let s=t.path.indexOf("?");s===-1?t.pathname=t.path:(t.pathname=t.path.slice(0,s),t.search=t.path.slice(s+1)),delete t.path}for(let s of _4)t[s]&&(i[s]=t[s].toString());return i}});var yC=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var q0=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,r){typeof t=="object"?this.weakMap.set(t,r):this.map.set(t,r)}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)}};j0.default=q0});var $0=m(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});var b4=async e=>{let t=[],r=0;for await(let n of e)t.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(t[0])?Buffer.concat(t,r):Buffer.from(t.join(""))};H0.default=b4});var bC=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.dnsLookupIpVersionToFamily=Ln.isDnsLookupIpVersion=void 0;var _C={auto:0,ipv4:4,ipv6:6};Ln.isDnsLookupIpVersion=e=>e in _C;Ln.dnsLookupIpVersionToFamily=e=>{if(Ln.isDnsLookupIpVersion(e))return _C[e];throw new Error("Invalid DNS lookup IP version")}});var U0=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.isResponseOk=void 0;hc.isResponseOk=e=>{let{statusCode:t}=e,r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||t===304}});var wC=m(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});var EC=new Set;G0.default=e=>{EC.has(e)||(EC.add(e),process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))}});var vC=m(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});var _e=Fr(),E4=(e,t)=>{if(_e.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");_e.assert.any([_e.default.string,_e.default.undefined],e.encoding),_e.assert.any([_e.default.boolean,_e.default.undefined],e.resolveBodyOnly),_e.assert.any([_e.default.boolean,_e.default.undefined],e.methodRewriting),_e.assert.any([_e.default.boolean,_e.default.undefined],e.isStream),_e.assert.any([_e.default.string,_e.default.undefined],e.responseType),e.responseType===void 0&&(e.responseType="text");let{retry:r}=e;if(t?e.retry={...t.retry}:e.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},_e.default.object(r)?(e.retry={...e.retry,...r},e.retry.methods=[...new Set(e.retry.methods.map(n=>n.toUpperCase()))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):_e.default.number(r)&&(e.retry.limit=r),_e.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(_e.default.number))),_e.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});let{pagination:n}=e;if(!_e.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!_e.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!_e.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!_e.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return e.responseType==="json"&&e.headers.accept===void 0&&(e.headers.accept="application/json"),e};W0.default=E4});var AC=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.retryAfterStatusCodes=void 0;ao.retryAfterStatusCodes=new Set([413,429,503]);var w4=({attemptCount:e,retryOptions:t,error:r,retryAfter:n})=>{if(e>t.limit)return 0;let i=t.methods.includes(r.options.method),s=t.errorCodes.includes(r.code),o=r.response&&t.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return t.maxRetryAfter===void 0||n>t.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(e-1)*1e3+a};ao.default=w4});var lo=m(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.UnsupportedProtocolError=se.ReadError=se.TimeoutError=se.UploadError=se.CacheError=se.HTTPError=se.MaxRedirectsError=se.RequestError=se.setNonEnumerableProperties=se.knownHookEvents=se.withoutBody=se.kIsNormalizedAlready=void 0;var DC=require("util"),xC=require("stream"),v4=require("fs"),nn=require("url"),CC=require("http"),z0=require("http"),A4=require("https"),D4=qx(),x4=zx(),SC=C2(),C4=T2(),S4=sC(),R4=ac(),D=Fr(),F4=lC(),RC=k0(),T4=I0(),FC=dC(),O4=mC(),TC=gC(),k4=yC(),P4=$0(),OC=bC(),B4=U0(),sn=wC(),I4=vC(),L4=AC(),V0,He=Symbol("request"),mc=Symbol("response"),Xi=Symbol("responseSize"),Ji=Symbol("downloadedSize"),Zi=Symbol("bodySize"),Qi=Symbol("uploadedSize"),dc=Symbol("serverResponsesPiped"),kC=Symbol("unproxyEvents"),PC=Symbol("isFromCache"),Y0=Symbol("cancelTimeouts"),BC=Symbol("startedReading"),es=Symbol("stopReading"),pc=Symbol("triggerRead"),on=Symbol("body"),uo=Symbol("jobs"),IC=Symbol("originalResponse"),LC=Symbol("retryTimeout");se.kIsNormalizedAlready=Symbol("isNormalizedAlready");var N4=D.default.string(process.versions.brotli);se.withoutBody=new Set(["GET","HEAD"]);se.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function M4(e){for(let t in e){let r=e[t];if(!D.default.string(r)&&!D.default.number(r)&&!D.default.boolean(r)&&!D.default.null_(r)&&!D.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function q4(e){return D.default.object(e)&&!("statusCode"in e)}var K0=new k4.default,j4=async e=>new Promise((t,r)=>{let n=i=>{r(i)};e.pending||t(),e.once("error",n),e.once("ready",()=>{e.off("error",n),t()})}),H4=new Set([300,301,302,303,304,307,308]),$4=["context","body","json","form"];se.setNonEnumerableProperties=(e,t)=>{let r={};for(let n of e)if(n)for(let i of $4)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(t,r)};var Re=class extends Error{constructor(t,r,n){var i,s;if(super(t),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof vc?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[mc]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,D.default.string(r.stack)&&D.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
25
|
+
`).reduce(p6,Object.create(null)),p6=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};pA.exports=Us});var Fi=m((OH,mA)=>{mA.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var fu=m((kH,gA)=>{"use strict";gA.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var zd=m((BH,yA)=>{"use strict";var hu=["|","<",">","?",":"],Wd=hu.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),m6=new Map(hu.map((e,t)=>[e,Wd[t]])),g6=new Map(Wd.map((e,t)=>[e,hu[t]]));yA.exports={encode:e=>hu.reduce((t,r)=>t.split(r).join(m6.get(r)),e),decode:e=>Wd.reduce((t,r)=>t.split(r).join(g6.get(r)),e)}});var Vd=m((IH,bA)=>{var{isAbsolute:y6,parse:_A}=require("path").win32;bA.exports=e=>{let t="",r=_A(e);for(;y6(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=_A(e)}return[t,e]}});var wA=m((LH,EA)=>{"use strict";EA.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var np=m((qH,IA)=>{"use strict";var RA=Qa(),FA=lu(),TA=Ri(),Zt=require("fs"),vA=require("path"),Jt=Ci(),_6=Fi(),OA=(e,t)=>t?(e=Jt(e).replace(/^\.(\/|$)/,""),_6(t)+"/"+e):Jt(e),b6=16*1024*1024,AA=Symbol("process"),DA=Symbol("file"),xA=Symbol("directory"),Kd=Symbol("symlink"),CA=Symbol("hardlink"),Gs=Symbol("header"),du=Symbol("read"),Xd=Symbol("lstat"),pu=Symbol("onlstat"),Jd=Symbol("onread"),Zd=Symbol("onreadlink"),Qd=Symbol("openfile"),ep=Symbol("onopenfile"),Kr=Symbol("close"),mu=Symbol("mode"),tp=Symbol("awaitDrain"),Yd=Symbol("ondrain"),Qt=Symbol("prefix"),SA=Symbol("hadError"),kA=fu(),E6=zd(),PA=Vd(),BA=wA(),gu=kA(class extends RA{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Jt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||b6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Jt(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?Jt(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 n=!1;if(!this.preservePaths){let[i,s]=PA(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=E6.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Jt(r.absolute||vA.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[pu](this.statCache.get(this.absolute)):this[Xd]()}emit(t,...r){return t==="error"&&(this[SA]=!0),super.emit(t,...r)}[Xd](){Zt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[pu](r)})}[pu](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=v6(t),this.emit("stat",t),this[AA]()}[AA](){switch(this.type){case"File":return this[DA]();case"Directory":return this[xA]();case"SymbolicLink":return this[Kd]();default:return this.end()}}[mu](t){return BA(t,this.type==="Directory",this.portable)}[Qt](t){return OA(t,this.prefix)}[Gs](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new TA({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this[mu](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 FA({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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)}[xA](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Gs](),this.end()}[Kd](){Zt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Zd](r)})}[Zd](t){this.linkpath=Jt(t),this[Gs](),this.end()}[CA](t){this.type="Link",this.linkpath=Jt(vA.relative(this.cwd,t)),this.stat.size=0,this[Gs](),this.end()}[DA](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[CA](r)}this.linkCache.set(t,this.absolute)}if(this[Gs](),this.stat.size===0)return this.end();this[Qd]()}[Qd](){Zt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[ep](r)})}[ep](t){if(this.fd=t,this[SA])return this[Kr]();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[du]()}[du](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Zt.read(t,r,n,i,s,(o,a)=>{if(o)return this[Kr](()=>this.emit("error",o));this[Jd](a)})}[Kr](t){Zt.close(this.fd,t)}[Jd](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[Yd]():this[tp](()=>this[Yd]())}[tp](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[Yd](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Kr](t=>t?this.emit("error",t):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[du]()}}),rp=class extends gu{[Xd](){this[pu](Zt.lstatSync(this.absolute))}[Kd](){this[Zd](Zt.readlinkSync(this.absolute))}[Qd](){this[ep](Zt.openSync(this.absolute,"r"))}[du](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Zt.readSync(r,n,i,s,o);this[Jd](a),t=!1}finally{if(t)try{this[Kr](()=>{})}catch{}}}[tp](t){t()}[Kr](t){Zt.closeSync(this.fd),t()}},w6=kA(class extends RA{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Jt(t.path),this.mode=this[mu](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Jt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=PA(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new TA({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new FA({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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),t.pipe(this)}[Qt](t){return OA(t,this.prefix)}[mu](t){return BA(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});gu.Sync=rp;gu.Tar=w6;var v6=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";IA.exports=gu});var NA=m((jH,LA)=>{"use strict";LA.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var ip=m((HH,MA)=>{"use strict";MA.exports=ne;ne.Node=Sn;ne.create=ne;function ne(e){var t=this;if(t instanceof ne||(t=new ne),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}ne.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ne.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ne.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ne.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)D6(this,arguments[e]);return this.length};ne.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)x6(this,arguments[e]);return this.length};ne.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ne.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ne.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};ne.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};ne.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ne.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ne.prototype.map=function(e,t){t=t||this;for(var r=new ne,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};ne.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ne,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};ne.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};ne.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};ne.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ne.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ne.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ne;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};ne.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ne;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};ne.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=A6(this,i,r[n]);return s};ne.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function A6(e,t,r){var n=t===e.head?new Sn(r,null,t,e):new Sn(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function D6(e,t){e.tail=new Sn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function x6(e,t){e.head=new Sn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Sn(e,t,r,n){if(!(this instanceof Sn))return new Sn(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{NA()(ne)}catch{}});var xu=m((UH,WA)=>{"use strict";var Au=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},C6=Qa(),S6=Ld(),R6=uu(),dp=np(),F6=dp.Sync,T6=dp.Tar,O6=ip(),qA=Buffer.alloc(1024),bu=Symbol("onStat"),yu=Symbol("ended"),er=Symbol("queue"),Ti=Symbol("current"),Rn=Symbol("process"),_u=Symbol("processing"),jA=Symbol("processJob"),tr=Symbol("jobs"),sp=Symbol("jobDone"),Eu=Symbol("addFSEntry"),HA=Symbol("addTarEntry"),cp=Symbol("stat"),lp=Symbol("readdir"),wu=Symbol("onreaddir"),vu=Symbol("pipe"),$A=Symbol("entry"),op=Symbol("entryOpt"),fp=Symbol("writeEntryClass"),GA=Symbol("write"),ap=Symbol("ondrain"),Du=require("fs"),UA=require("path"),k6=fu(),up=Ci(),pp=k6(class extends C6{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=up(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[fp]=dp,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new S6.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[ap]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[ap]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[er]=new O6,this[tr]=0,this.jobs=+t.jobs||4,this[_u]=!1,this[yu]=!1}[GA](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[yu]=!0,this[Rn](),this}write(t){if(this[yu])throw new Error("write after end");return t instanceof R6?this[HA](t):this[Eu](t),this.flowing}[HA](t){let r=up(UA.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new Au(t.path,r,!1);n.entry=new T6(t,this[op](n)),n.entry.on("end",i=>this[sp](n)),this[tr]+=1,this[er].push(n)}this[Rn]()}[Eu](t){let r=up(UA.resolve(this.cwd,t));this[er].push(new Au(t,r)),this[Rn]()}[cp](t){t.pending=!0,this[tr]+=1;let r=this.follow?"stat":"lstat";Du[r](t.absolute,(n,i)=>{t.pending=!1,this[tr]-=1,n?this.emit("error",n):this[bu](t,i)})}[bu](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[Rn]()}[lp](t){t.pending=!0,this[tr]+=1,Du.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[tr]-=1,r)return this.emit("error",r);this[wu](t,n)})}[wu](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[Rn]()}[Rn](){if(!this[_u]){this[_u]=!0;for(let t=this[er].head;t!==null&&this[tr]<this.jobs;t=t.next)if(this[jA](t.value),t.value.ignore){let r=t.next;this[er].removeNode(t),t.next=r}this[_u]=!1,this[yu]&&!this[er].length&&this[tr]===0&&(this.zip?this.zip.end(qA):(super.write(qA),super.end()))}}get[Ti](){return this[er]&&this[er].head&&this[er].head.value}[sp](t){this[er].shift(),this[tr]-=1,this[Rn]()}[jA](t){if(!t.pending){if(t.entry){t===this[Ti]&&!t.piped&&this[vu](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[bu](t,this.statCache.get(t.absolute)):this[cp](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[wu](t,this.readdirCache.get(t.absolute)):this[lp](t),!t.readdir))){if(t.entry=this[$A](t),!t.entry){t.ignore=!0;return}t===this[Ti]&&!t.piped&&this[vu](t)}}}[op](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[$A](t){this[tr]+=1;try{return new this[fp](t.path,this[op](t)).on("end",()=>this[sp](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[ap](){this[Ti]&&this[Ti].entry&&this[Ti].entry.resume()}[vu](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Eu](o+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),hp=class extends pp{constructor(t){super(t),this[fp]=F6}pause(){}resume(){}[cp](t){let r=this.follow?"statSync":"lstatSync";this[bu](t,Du[r](t.absolute))}[lp](t,r){this[wu](t,Du.readdirSync(t.absolute))}[vu](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Eu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[GA](i)})}};pp.Sync=hp;WA.exports=pp});var Mi=m(zs=>{"use strict";var P6=Ed(),B6=require("events").EventEmitter,ft=require("fs"),yp=ft.writev;if(!yp){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;yp=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new t;a.oncomplete=o,e.writeBuffers(r,n,i,a)}}var Li=Symbol("_autoClose"),qt=Symbol("_close"),Ws=Symbol("_ended"),fe=Symbol("_fd"),zA=Symbol("_finished"),Jr=Symbol("_flags"),mp=Symbol("_flush"),_p=Symbol("_handleChunk"),bp=Symbol("_makeBuf"),Tu=Symbol("_mode"),Cu=Symbol("_needDrain"),Bi=Symbol("_onerror"),Ni=Symbol("_onopen"),gp=Symbol("_onread"),ki=Symbol("_onwrite"),Zr=Symbol("_open"),Dr=Symbol("_path"),Fn=Symbol("_pos"),rr=Symbol("_queue"),Pi=Symbol("_read"),VA=Symbol("_readSize"),Xr=Symbol("_reading"),Su=Symbol("_remain"),YA=Symbol("_size"),Ru=Symbol("_write"),Oi=Symbol("_writing"),Fu=Symbol("_defaultFlag"),Ii=Symbol("_errored"),Ou=class extends P6{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[Ii]=!1,this[fe]=typeof r.fd=="number"?r.fd:null,this[Dr]=t,this[VA]=r.readSize||16*1024*1024,this[Xr]=!1,this[YA]=typeof r.size=="number"?r.size:1/0,this[Su]=this[YA],this[Li]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[fe]=="number"?this[Pi]():this[Zr]()}get fd(){return this[fe]}get path(){return this[Dr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Zr](){ft.open(this[Dr],"r",(t,r)=>this[Ni](t,r))}[Ni](t,r){t?this[Bi](t):(this[fe]=r,this.emit("open",r),this[Pi]())}[bp](){return Buffer.allocUnsafe(Math.min(this[VA],this[Su]))}[Pi](){if(!this[Xr]){this[Xr]=!0;let t=this[bp]();if(t.length===0)return process.nextTick(()=>this[gp](null,0,t));ft.read(this[fe],t,0,t.length,null,(r,n,i)=>this[gp](r,n,i))}}[gp](t,r,n){this[Xr]=!1,t?this[Bi](t):this[_p](r,n)&&this[Pi]()}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[Bi](t){this[Xr]=!0,this[qt](),this.emit("error",t)}[_p](t,r){let n=!1;return this[Su]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[Su]<=0)&&(n=!1,this[qt](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[fe]=="number"&&this[Pi]();break;case"error":return this[Ii]?void 0:(this[Ii]=!0,super.emit(t,r));default:return super.emit(t,r)}}},Ep=class extends Ou{[Zr](){let t=!0;try{this[Ni](null,ft.openSync(this[Dr],"r")),t=!1}finally{t&&this[qt]()}}[Pi](){let t=!0;try{if(!this[Xr]){this[Xr]=!0;do{let r=this[bp](),n=r.length===0?0:ft.readSync(this[fe],r,0,r.length,null);if(!this[_p](n,r))break}while(!0);this[Xr]=!1}t=!1}finally{t&&this[qt]()}}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.closeSync(t),this.emit("close")}}},ku=class extends B6{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ii]=!1,this[Oi]=!1,this[Ws]=!1,this[Cu]=!1,this[rr]=[],this[Dr]=t,this[fe]=typeof r.fd=="number"?r.fd:null,this[Tu]=r.mode===void 0?438:r.mode,this[Fn]=typeof r.start=="number"?r.start:null,this[Li]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[Fn]!==null?"r+":"w";this[Fu]=r.flags===void 0,this[Jr]=this[Fu]?n:r.flags,this[fe]===null&&this[Zr]()}emit(t,r){if(t==="error"){if(this[Ii])return;this[Ii]=!0}return super.emit(t,r)}get fd(){return this[fe]}get path(){return this[Dr]}[Bi](t){this[qt](),this[Oi]=!0,this.emit("error",t)}[Zr](){ft.open(this[Dr],this[Jr],this[Tu],(t,r)=>this[Ni](t,r))}[Ni](t,r){this[Fu]&&this[Jr]==="r+"&&t&&t.code==="ENOENT"?(this[Jr]="w",this[Zr]()):t?this[Bi](t):(this[fe]=r,this.emit("open",r),this[mp]())}end(t,r){return t&&this.write(t,r),this[Ws]=!0,!this[Oi]&&!this[rr].length&&typeof this[fe]=="number"&&this[ki](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[Ws]?(this.emit("error",new Error("write() after end()")),!1):this[fe]===null||this[Oi]||this[rr].length?(this[rr].push(t),this[Cu]=!0,!1):(this[Oi]=!0,this[Ru](t),!0)}[Ru](t){ft.write(this[fe],t,0,t.length,this[Fn],(r,n)=>this[ki](r,n))}[ki](t,r){t?this[Bi](t):(this[Fn]!==null&&(this[Fn]+=r),this[rr].length?this[mp]():(this[Oi]=!1,this[Ws]&&!this[zA]?(this[zA]=!0,this[qt](),this.emit("finish")):this[Cu]&&(this[Cu]=!1,this.emit("drain"))))}[mp](){if(this[rr].length===0)this[Ws]&&this[ki](null,0);else if(this[rr].length===1)this[Ru](this[rr].pop());else{let t=this[rr];this[rr]=[],yp(this[fe],t,this[Fn],(r,n)=>this[ki](r,n))}}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},wp=class extends ku{[Zr](){let t;if(this[Fu]&&this[Jr]==="r+")try{t=ft.openSync(this[Dr],this[Jr],this[Tu])}catch(r){if(r.code==="ENOENT")return this[Jr]="w",this[Zr]();throw r}else t=ft.openSync(this[Dr],this[Jr],this[Tu]);this[Ni](null,t)}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,ft.closeSync(t),this.emit("close")}}[Ru](t){let r=!0;try{this[ki](null,ft.writeSync(this[fe],t,0,t.length,this[Fn])),r=!1}finally{if(r)try{this[qt]()}catch{}}}};zs.ReadStream=Ou;zs.ReadStreamSync=Ep;zs.WriteStream=ku;zs.WriteStreamSync=wp});var qu=m((zH,rD)=>{"use strict";var I6=fu(),L6=Ri(),N6=require("events"),M6=ip(),q6=1024*1024,j6=uu(),KA=lu(),H6=Ld(),{nextTick:$6}=require("process"),vp=Buffer.from([31,139]),xt=Symbol("state"),Tn=Symbol("writeEntry"),xr=Symbol("readEntry"),Ap=Symbol("nextEntry"),XA=Symbol("processEntry"),Ct=Symbol("extendedHeader"),Vs=Symbol("globalExtendedHeader"),Qr=Symbol("meta"),JA=Symbol("emitMeta"),ye=Symbol("buffer"),Cr=Symbol("queue"),On=Symbol("ended"),ZA=Symbol("emittedEnd"),kn=Symbol("emit"),ht=Symbol("unzip"),Pu=Symbol("consumeChunk"),Bu=Symbol("consumeChunkSub"),Dp=Symbol("consumeBody"),QA=Symbol("consumeMeta"),eD=Symbol("consumeHeader"),Iu=Symbol("consuming"),xp=Symbol("bufferConcat"),Cp=Symbol("maybeEnd"),Ys=Symbol("writing"),en=Symbol("aborted"),Lu=Symbol("onDone"),Pn=Symbol("sawValidEntry"),Nu=Symbol("sawNullBlock"),Mu=Symbol("sawEOF"),tD=Symbol("closeStream"),U6=e=>!0;rD.exports=I6(class extends N6{constructor(t){t=t||{},super(t),this.file=t.file||"",this[Pn]=null,this.on(Lu,r=>{(this[xt]==="begin"||this[Pn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Lu,t.ondone):this.on(Lu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||q6,this.filter=typeof t.filter=="function"?t.filter:U6,this.writable=!0,this.readable=!1,this[Cr]=new M6,this[ye]=null,this[xr]=null,this[Tn]=null,this[xt]="begin",this[Qr]="",this[Ct]=null,this[Vs]=null,this[On]=!1,this[ht]=null,this[en]=!1,this[Nu]=!1,this[Mu]=!1,this.on("end",()=>this[tD]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[eD](t,r){this[Pn]===null&&(this[Pn]=!1);let n;try{n=new L6(t,r,this[Ct],this[Vs])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Nu]?(this[Mu]=!0,this[xt]==="begin"&&(this[xt]="header"),this[kn]("eof")):(this[Nu]=!0,this[kn]("nullBlock"));else if(this[Nu]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[Tn]=new j6(n,this[Ct],this[Vs]);if(!this[Pn])if(s.remain){let o=()=>{s.invalid||(this[Pn]=!0)};s.on("end",o)}else this[Pn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[kn]("ignoredEntry",s),this[xt]="ignore",s.resume()):s.size>0&&(this[Qr]="",s.on("data",o=>this[Qr]+=o),this[xt]="meta"):(this[Ct]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[kn]("ignoredEntry",s),this[xt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[xt]="body":(this[xt]="header",s.end()),this[xr]?this[Cr].push(s):(this[Cr].push(s),this[Ap]())))}}}[tD](){$6(()=>this.emit("close"))}[XA](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[xr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[Ap]()),r=!1)):(this[xr]=null,r=!1),r}[Ap](){do;while(this[XA](this[Cr].shift()));if(!this[Cr].length){let t=this[xr];!t||t.flowing||t.size===t.remain?this[Ys]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[Dp](t,r){let n=this[Tn],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[xt]="header",this[Tn]=null,n.end()),s.length}[QA](t,r){let n=this[Tn],i=this[Dp](t,r);return this[Tn]||this[JA](n),i}[kn](t,r,n){!this[Cr].length&&!this[xr]?this.emit(t,r,n):this[Cr].push([t,r,n])}[JA](t){switch(this[kn]("meta",this[Qr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ct]=KA.parse(this[Qr],this[Ct],!1);break;case"GlobalExtendedHeader":this[Vs]=KA.parse(this[Qr],this[Vs],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ct]=this[Ct]||Object.create(null),this[Ct].path=this[Qr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ct]=this[Ct]||Object.create(null),this[Ct].linkpath=this[Qr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[en]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[en])return;if(this[ht]===null&&t){if(this[ye]&&(t=Buffer.concat([this[ye],t]),this[ye]=null),t.length<vp.length)return this[ye]=t,!0;for(let n=0;this[ht]===null&&n<vp.length;n++)t[n]!==vp[n]&&(this[ht]=!1);if(this[ht]===null){let n=this[On];this[On]=!1,this[ht]=new H6.Unzip,this[ht].on("data",s=>this[Pu](s)),this[ht].on("error",s=>this.abort(s)),this[ht].on("end",s=>{this[On]=!0,this[Pu]()}),this[Ys]=!0;let i=this[ht][n?"end":"write"](t);return this[Ys]=!1,i}}this[Ys]=!0,this[ht]?this[ht].write(t):this[Pu](t),this[Ys]=!1;let r=this[Cr].length?!1:this[xr]?this[xr].flowing:!0;return!r&&!this[Cr].length&&this[xr].once("drain",n=>this.emit("drain")),r}[xp](t){t&&!this[en]&&(this[ye]=this[ye]?Buffer.concat([this[ye],t]):t)}[Cp](){if(this[On]&&!this[ZA]&&!this[en]&&!this[Iu]){this[ZA]=!0;let t=this[Tn];if(t&&t.blockRemain){let r=this[ye]?this[ye].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[ye]&&t.write(this[ye]),t.end()}this[kn](Lu)}}[Pu](t){if(this[Iu])this[xp](t);else if(!t&&!this[ye])this[Cp]();else{if(this[Iu]=!0,this[ye]){this[xp](t);let r=this[ye];this[ye]=null,this[Bu](r)}else this[Bu](t);for(;this[ye]&&this[ye].length>=512&&!this[en]&&!this[Mu];){let r=this[ye];this[ye]=null,this[Bu](r)}this[Iu]=!1}(!this[ye]||this[On])&&this[Cp]()}[Bu](t){let r=0,n=t.length;for(;r+512<=n&&!this[en]&&!this[Mu];)switch(this[xt]){case"begin":case"header":this[eD](t,r),r+=512;break;case"ignore":case"body":r+=this[Dp](t,r);break;case"meta":r+=this[QA](t,r);break;default:throw new Error("invalid state: "+this[xt])}r<n&&(this[ye]?this[ye]=Buffer.concat([t.slice(r),this[ye]]):this[ye]=t.slice(r))}end(t){this[en]||(this[ht]?this[ht].end(t):(this[On]=!0,this.write(t)))}})});var ju=m((VH,oD)=>{"use strict";var G6=wi(),iD=qu(),qi=require("fs"),W6=Mi(),nD=require("path"),Sp=Fi();oD.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=G6(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&V6(n,t),n.noResume||z6(n),n.file&&n.sync?Y6(n):n.file?K6(n,r):sD(n)};var z6=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},V6=(e,t)=>{let r=new Map(t.map(s=>[Sp(s),!0])),n=e.filter,i=(s,o)=>{let a=o||nD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(nD.dirname(s),a);return r.set(s,u),u};e.filter=n?(s,o)=>n(s,o)&&i(Sp(s)):s=>i(Sp(s))},Y6=e=>{let t=sD(e),r=e.file,n=!0,i;try{let s=qi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(qi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=qi.openSync(r,"r");a<s.size;){let c=qi.readSync(i,u,0,o,a);a+=c,t.write(u.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{qi.closeSync(i)}catch{}}},K6=(e,t)=>{let r=new iD(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),qi.stat(i,(u,c)=>{if(u)a(u);else{let l=new W6.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return t?s.then(t,t):s},sD=e=>new iD(e)});var hD=m((YH,fD)=>{"use strict";var X6=wi(),Hu=xu(),aD=Mi(),uD=ju(),cD=require("path");fD.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=X6(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?J6(n,t):n.file?Z6(n,t,r):n.sync?Q6(n,t):e8(n,t)};var J6=(e,t)=>{let r=new Hu.Sync(e),n=new aD.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),lD(r,t)},Z6=(e,t,r)=>{let n=new Hu(e),i=new aD.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Rp(n,t),r?s.then(r,r):s},lD=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?uD({file:cD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},Rp=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return uD({file:cD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>Rp(e,t));e.add(r)}e.end()},Q6=(e,t)=>{let r=new Hu.Sync(e);return lD(r,t),r},e8=(e,t)=>{let r=new Hu(e);return Rp(r,t),r}});var Fp=m((KH,bD)=>{"use strict";var t8=wi(),dD=xu(),_t=require("fs"),pD=Mi(),mD=ju(),gD=require("path"),yD=Ri();bD.exports=(e,t,r)=>{let n=t8(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?r8(n,t):i8(n,t,r)};var r8=(e,t)=>{let r=new dD.Sync(e),n=!0,i,s;try{try{i=_t.openSync(e.file,"r+")}catch(u){if(u.code==="ENOENT")i=_t.openSync(e.file,"w+");else throw u}let o=_t.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=_t.readSync(i,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let u=new yD(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(u.path,u.mtime)}n=!1,n8(e,r,s,i,t)}finally{if(n)try{_t.closeSync(i)}catch{}}},n8=(e,t,r,n,i)=>{let s=new pD.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),s8(t,i)},i8=(e,t,r)=>{t=Array.from(t);let n=new dD(e),i=(o,a,u)=>{let c=(b,_)=>{b?_t.close(o,p=>u(b)):u(null,_)},l=0;if(a===0)return c(null,0);let f=0,h=Buffer.alloc(512),g=(b,_)=>{if(b)return c(b);if(f+=_,f<512&&_)return _t.read(o,h,f,h.length-f,l+f,g);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let p=new yD(h);if(!p.cksumValid)return c(null,l);let w=512*Math.ceil(p.size/512);if(l+w+512>a||(l+=w+512,l>=a))return c(null,l);e.mtimeCache&&e.mtimeCache.set(p.path,p.mtime),f=0,_t.read(o,h,0,512,l,g)};_t.read(o,h,0,512,l,g)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",_t.open(e.file,u,c);if(l)return a(l);_t.fstat(f,(h,g)=>{if(h)return _t.close(f,()=>a(h));i(f,g.size,(b,_)=>{if(b)return a(b);let p=new pD.WriteStream(e.file,{fd:f,start:_});n.pipe(p),p.on("error",a),p.on("close",o),_D(n,t)})})};_t.open(e.file,u,c)});return r?s.then(r,r):s},s8=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?mD({file:gD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},_D=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return mD({file:gD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>_D(e,t));e.add(r)}e.end()}});var wD=m((XH,ED)=>{"use strict";var o8=wi(),a8=Fp();ED.exports=(e,t,r)=>{let n=o8(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),u8(n),a8(n,t,r)};var u8=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var DD=m((JH,AD)=>{var{promisify:vD}=require("util"),tn=require("fs"),c8=e=>{if(!e)e={mode:511,fs:tn};else if(typeof e=="object")e={mode:511,fs:tn,...e};else if(typeof e=="number")e={mode:e,fs:tn};else if(typeof e=="string")e={mode:parseInt(e,8),fs:tn};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||tn.mkdir,e.mkdirAsync=vD(e.mkdir),e.stat=e.stat||e.fs.stat||tn.stat,e.statAsync=vD(e.stat),e.statSync=e.statSync||e.fs.statSync||tn.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||tn.mkdirSync,e};AD.exports=c8});var CD=m((ZH,xD)=>{var l8=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:f8,parse:h8}=require("path"),d8=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=f8(e),l8==="win32"){let t=/[*|"<>?:]/,{root:r}=h8(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};xD.exports=d8});var OD=m((QH,TD)=>{var{dirname:SD}=require("path"),RD=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?RD(e,SD(t),t):void 0),FD=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?FD(e,SD(t),t):void 0}};TD.exports={findMade:RD,findMadeSync:FD}});var kp=m((e$,PD)=>{var{dirname:kD}=require("path"),Tp=(e,t,r)=>{t.recursive=!1;let n=kD(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return Tp(n,t).then(s=>Tp(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Op=(e,t,r)=>{let n=kD(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return Op(e,t,Op(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};PD.exports={mkdirpManual:Tp,mkdirpManualSync:Op}});var LD=m((t$,ID)=>{var{dirname:BD}=require("path"),{findMade:p8,findMadeSync:m8}=OD(),{mkdirpManual:g8,mkdirpManualSync:y8}=kp(),_8=(e,t)=>(t.recursive=!0,BD(e)===e?t.mkdirAsync(e,t):p8(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return g8(e,t);throw i}))),b8=(e,t)=>{if(t.recursive=!0,BD(e)===e)return t.mkdirSync(e,t);let n=m8(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return y8(e,t);throw i}};ID.exports={mkdirpNative:_8,mkdirpNativeSync:b8}});var jD=m((r$,qD)=>{var ND=require("fs"),E8=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Pp=E8.replace(/^v/,"").split("."),MD=+Pp[0]>10||+Pp[0]==10&&+Pp[1]>=12,w8=MD?e=>e.mkdir===ND.mkdir:()=>!1,v8=MD?e=>e.mkdirSync===ND.mkdirSync:()=>!1;qD.exports={useNative:w8,useNativeSync:v8}});var zD=m((n$,WD)=>{var ji=DD(),Hi=CD(),{mkdirpNative:HD,mkdirpNativeSync:$D}=LD(),{mkdirpManual:UD,mkdirpManualSync:GD}=kp(),{useNative:A8,useNativeSync:D8}=jD(),$i=(e,t)=>(e=Hi(e),t=ji(t),A8(t)?HD(e,t):UD(e,t)),x8=(e,t)=>(e=Hi(e),t=ji(t),D8(t)?$D(e,t):GD(e,t));$i.sync=x8;$i.native=(e,t)=>HD(Hi(e),ji(t));$i.manual=(e,t)=>UD(Hi(e),ji(t));$i.nativeSync=(e,t)=>$D(Hi(e),ji(t));$i.manualSync=(e,t)=>GD(Hi(e),ji(t));WD.exports=$i});var QD=m((i$,ZD)=>{"use strict";var St=require("fs"),Bn=require("path"),C8=St.lchown?"lchown":"chown",S8=St.lchownSync?"lchownSync":"chownSync",YD=St.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),VD=(e,t,r)=>{try{return St[S8](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},R8=(e,t,r)=>{try{return St.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},F8=YD?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):St.chown(e,t,r,n)}:(e,t,r,n)=>n,Bp=YD?(e,t,r)=>{try{return VD(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;R8(e,t,r)}}:(e,t,r)=>VD(e,t,r),T8=process.version,KD=(e,t,r)=>St.readdir(e,t,r),O8=(e,t)=>St.readdirSync(e,t);/^v4\./.test(T8)&&(KD=(e,t,r)=>St.readdir(e,r));var $u=(e,t,r,n)=>{St[C8](e,t,r,F8(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},XD=(e,t,r,n,i)=>{if(typeof t=="string")return St.lstat(Bn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,XD(e,o,r,n,i)});if(t.isDirectory())Ip(Bn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=Bn.resolve(e,t.name);$u(o,r,n,i)});else{let s=Bn.resolve(e,t.name);$u(s,r,n,i)}},Ip=(e,t,r,n)=>{KD(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return $u(e,t,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return $u(e,t,r,n)}};s.forEach(c=>XD(e,c,t,r,u))})},k8=(e,t,r,n)=>{if(typeof t=="string")try{let i=St.lstatSync(Bn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&JD(Bn.resolve(e,t.name),r,n),Bp(Bn.resolve(e,t.name),r,n)},JD=(e,t,r)=>{let n;try{n=O8(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Bp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>k8(e,i,t,r)),Bp(e,t,r)};ZD.exports=Ip;Ip.sync=JD});var nx=m((s$,Lp)=>{"use strict";var ex=zD(),Rt=require("fs"),Uu=require("path"),tx=QD(),jt=Ci(),Gu=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Wu=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},zu=(e,t)=>e.get(jt(t)),Ks=(e,t,r)=>e.set(jt(t),r),P8=(e,t)=>{Rt.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Wu(e,r&&r.code||"ENOTDIR")),t(r)})};Lp.exports=(e,t,r)=>{e=jt(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,a=t.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==t.processUid||a!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,h=jt(t.cwd),g=(p,w)=>{p?r(p):(Ks(f,e,!0),w&&u?tx(w,o,a,C=>g(C)):s?Rt.chmod(e,i,r):r())};if(f&&zu(f,e)===!0)return g();if(e===h)return P8(e,g);if(c)return ex(e,{mode:i}).then(p=>g(null,p),g);let _=jt(Uu.relative(h,e)).split("/");Vu(h,_,i,f,l,h,null,g)};var Vu=(e,t,r,n,i,s,o,a)=>{if(!t.length)return a(null,o);let u=t.shift(),c=jt(Uu.resolve(e+"/"+u));if(zu(n,c))return Vu(c,t,r,n,i,s,o,a);Rt.mkdir(c,r,rx(c,t,r,n,i,s,o,a))},rx=(e,t,r,n,i,s,o,a)=>u=>{u?Rt.lstat(e,(c,l)=>{if(c)c.path=c.path&&jt(c.path),a(c);else if(l.isDirectory())Vu(e,t,r,n,i,s,o,a);else if(i)Rt.unlink(e,f=>{if(f)return a(f);Rt.mkdir(e,r,rx(e,t,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new Gu(e,e+"/"+t.join("/")));a(u)}}):(o=o||e,Vu(e,t,r,n,i,s,o,a))},B8=e=>{let t=!1,r="ENOTDIR";try{t=Rt.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Wu(e,r)}};Lp.exports.sync=(e,t)=>{e=jt(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),u=t.preserve,c=t.unlink,l=t.cache,f=jt(t.cwd),h=p=>{Ks(l,e,!0),p&&a&&tx.sync(p,s,o),i&&Rt.chmodSync(e,n)};if(l&&zu(l,e)===!0)return h();if(e===f)return B8(f),h();if(u)return h(ex.sync(e,n));let b=jt(Uu.relative(f,e)).split("/"),_=null;for(let p=b.shift(),w=f;p&&(w+="/"+p);p=b.shift())if(w=jt(Uu.resolve(w)),!zu(l,w))try{Rt.mkdirSync(w,n),_=_||w,Ks(l,w,!0)}catch{let N=Rt.lstatSync(w);if(N.isDirectory()){Ks(l,w,!0);continue}else if(c){Rt.unlinkSync(w),Rt.mkdirSync(w,n),_=_||w,Ks(l,w,!0);continue}else if(N.isSymbolicLink())return new Gu(w,w+"/"+b.join("/"))}return h(_)}});var Mp=m((o$,ix)=>{var Np=Object.create(null),{hasOwnProperty:I8}=Object.prototype;ix.exports=e=>(I8.call(Np,e)||(Np[e]=e.normalize("NFKD")),Np[e])});var ux=m((a$,ax)=>{var sx=require("assert"),L8=Mp(),N8=Fi(),{join:ox}=require("path"),M8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,q8=M8==="win32";ax.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=ox(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>a(c)),!0),a=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),h=new Set;return l.forEach(g=>{let b=e.get(g);sx.equal(b[0],c),b.length===1?e.delete(g):(b.shift(),typeof b[0]=="function"?h.add(b[0]):b[0].forEach(_=>h.add(_)))}),f.forEach(g=>{let b=e.get(g);sx(b[0]instanceof Set),b[0].size===1&&b.length===1?e.delete(g):b[0].size===1?(b.shift(),h.add(b[0])):b[0].delete(c)}),n.delete(c),h.forEach(g=>o(g)),!0};return{check:s,reserve:(c,l)=>{c=q8?["win32 parallelization disabled"]:c.map(h=>L8(N8(ox(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,g)=>h.concat(g)));return t.set(l,{dirs:f,paths:c}),c.forEach(h=>{let g=e.get(h);g?g.push(l):e.set(h,[l])}),f.forEach(h=>{let g=e.get(h);g?g[g.length-1]instanceof Set?g[g.length-1].add(l):g.push(new Set([l])):e.set(h,[new Set([l])])}),o(l)}}}});var fx=m((u$,lx)=>{var j8=process.env.__FAKE_PLATFORM__||process.platform,H8=j8==="win32",$8=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:U8,O_TRUNC:G8,O_WRONLY:W8,UV_FS_O_FILEMAP:cx=0}=$8.constants,z8=H8&&!!cx,V8=512*1024,Y8=cx|G8|U8|W8;lx.exports=z8?e=>e<V8?Y8:"w":()=>"w"});var Vp=m((c$,xx)=>{"use strict";var K8=require("assert"),X8=qu(),ie=require("fs"),J8=Mi(),Sr=require("path"),vx=nx(),hx=zd(),Z8=ux(),Q8=Vd(),bt=Ci(),eN=Fi(),tN=Mp(),dx=Symbol("onEntry"),Hp=Symbol("checkFs"),px=Symbol("checkFs2"),Xu=Symbol("pruneCache"),$p=Symbol("isReusable"),Ft=Symbol("makeFs"),Up=Symbol("file"),Gp=Symbol("directory"),Ju=Symbol("link"),mx=Symbol("symlink"),gx=Symbol("hardlink"),yx=Symbol("unsupported"),_x=Symbol("checkPath"),rn=Symbol("mkdir"),Ze=Symbol("onError"),Yu=Symbol("pending"),bx=Symbol("pend"),Ui=Symbol("unpend"),qp=Symbol("ended"),jp=Symbol("maybeClose"),Wp=Symbol("skip"),Xs=Symbol("doChown"),Js=Symbol("uid"),Zs=Symbol("gid"),Qs=Symbol("checkedCwd"),Ax=require("crypto"),Dx=fx(),rN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,eo=rN==="win32",nN=(e,t)=>{if(!eo)return ie.unlink(e,t);let r=e+".DELETE."+Ax.randomBytes(16).toString("hex");ie.rename(e,r,n=>{if(n)return t(n);ie.unlink(r,t)})},iN=e=>{if(!eo)return ie.unlinkSync(e);let t=e+".DELETE."+Ax.randomBytes(16).toString("hex");ie.renameSync(e,t),ie.unlinkSync(t)},Ex=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,wx=e=>tN(eN(bt(e))).toLowerCase(),sN=(e,t)=>{t=wx(t);for(let r of e.keys()){let n=wx(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},oN=e=>{for(let t of e.keys())e.delete(t)},to=class extends X8{constructor(t){if(t||(t={}),t.ondone=r=>{this[qp]=!0,this[jp]()},super(t),this[Qs]=!1,this.reservations=Z8(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[Yu]=0,this[qp]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||eo,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=bt(Sr.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[dx](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[jp](){this[qp]&&this[Yu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[_x](t){if(this.strip){let r=bt(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=bt(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=bt(t.path),n=r.split("/");if(n.includes("..")||eo&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=Q8(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(Sr.isAbsolute(t.path)?t.absolute=bt(Sr.resolve(t.path)):t.absolute=bt(Sr.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:bt(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Sr.win32.parse(t.absolute);t.absolute=r+hx.encode(t.absolute.slice(r.length));let{root:n}=Sr.win32.parse(t.path);t.path=n+hx.encode(t.path.slice(n.length))}return!0}[dx](t){if(!this[_x](t))return t.resume();switch(K8.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Hp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[yx](t)}}[Ze](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Ui](),r.resume())}[rn](t,r,n){vx(bt(t),{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},n)}[Xs](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Js](t){return Ex(this.uid,t.uid,this.processUid)}[Zs](t){return Ex(this.gid,t.gid,this.processGid)}[Up](t,r){let n=t.mode&4095||this.fmode,i=new J8.WriteStream(t.absolute,{flags:Dx(t.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&ie.close(i.fd,()=>{}),i.write=()=>!0,this[Ze](u,t),r()});let s=1,o=u=>{if(u){i.fd&&ie.close(i.fd,()=>{}),this[Ze](u,t),r();return}--s===0&&ie.close(i.fd,c=>{c?this[Ze](c,t):this[Ui](),r()})};i.on("finish",u=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,h=t.mtime;ie.futimes(l,f,h,g=>g?ie.utimes(c,f,h,b=>o(b&&g)):o())}if(this[Xs](t)){s++;let f=this[Js](t),h=this[Zs](t);ie.fchown(l,f,h,g=>g?ie.chown(c,f,h,b=>o(b&&g)):o())}o()});let a=this.transform&&this.transform(t)||t;a!==t&&(a.on("error",u=>{this[Ze](u,t),r()}),t.pipe(a)),a.pipe(i)}[Gp](t,r){let n=t.mode&4095||this.dmode;this[rn](t.absolute,n,i=>{if(i){this[Ze](i,t),r();return}let s=1,o=a=>{--s===0&&(r(),this[Ui](),t.resume())};t.mtime&&!this.noMtime&&(s++,ie.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[Xs](t)&&(s++,ie.chown(t.absolute,this[Js](t),this[Zs](t),o)),o()})}[yx](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[mx](t,r){this[Ju](t,t.linkpath,"symlink",r)}[gx](t,r){let n=bt(Sr.resolve(this.cwd,t.linkpath));this[Ju](t,n,"link",r)}[bx](){this[Yu]++}[Ui](){this[Yu]--,this[jp]()}[Wp](t){this[Ui](),t.resume()}[$p](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!eo}[Hp](t){this[bx]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[px](t,n))}[Xu](t){t.type==="SymbolicLink"?oN(this.dirCache):t.type!=="Directory"&&sN(this.dirCache,t.absolute)}[px](t,r){this[Xu](t);let n=a=>{this[Xu](t),r(a)},i=()=>{this[rn](this.cwd,this.dmode,a=>{if(a){this[Ze](a,t),n();return}this[Qs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let a=bt(Sr.dirname(t.absolute));if(a!==this.cwd)return this[rn](a,this.dmode,u=>{if(u){this[Ze](u,t),n();return}o()})}o()},o=()=>{ie.lstat(t.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>t.mtime)){this[Wp](t),n();return}if(a||this[$p](t,u))return this[Ft](null,t,n);if(u.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(u.mode&4095)!==t.mode,l=f=>this[Ft](f,t,n);return c?ie.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return ie.rmdir(t.absolute,c=>this[Ft](c,t,n))}if(t.absolute===this.cwd)return this[Ft](null,t,n);nN(t.absolute,c=>this[Ft](c,t,n))})};this[Qs]?s():i()}[Ft](t,r,n){if(t){this[Ze](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Up](r,n);case"Link":return this[gx](r,n);case"SymbolicLink":return this[mx](r,n);case"Directory":case"GNUDumpDir":return this[Gp](r,n)}}[Ju](t,r,n,i){ie[n](r,t.absolute,s=>{s?this[Ze](s,t):(this[Ui](),t.resume()),i()})}},Ku=e=>{try{return[null,e()]}catch(t){return[t,null]}},zp=class extends to{[Ft](t,r){return super[Ft](t,r,()=>{})}[Hp](t){if(this[Xu](t),!this[Qs]){let s=this[rn](this.cwd,this.dmode);if(s)return this[Ze](s,t);this[Qs]=!0}if(t.absolute!==this.cwd){let s=bt(Sr.dirname(t.absolute));if(s!==this.cwd){let o=this[rn](s,this.dmode);if(o)return this[Ze](o,t)}}let[r,n]=Ku(()=>ie.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[Wp](t);if(r||this[$p](t,n))return this[Ft](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[a]=o?Ku(()=>{ie.chmodSync(t.absolute,t.mode)}):[];return this[Ft](a,t)}let[s]=Ku(()=>ie.rmdirSync(t.absolute));this[Ft](s,t)}let[i]=t.absolute===this.cwd?[]:Ku(()=>iN(t.absolute));this[Ft](i,t)}[Up](t,r){let n=t.mode&4095||this.fmode,i=a=>{let u;try{ie.closeSync(s)}catch(c){u=c}(a||u)&&this[Ze](a||u,t),r()},s;try{s=ie.openSync(t.absolute,Dx(t.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",a=>this[Ze](a,t)),t.pipe(o)),o.on("data",a=>{try{ie.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{ie.futimesSync(s,c,l)}catch(f){try{ie.utimesSync(t.absolute,c,l)}catch{u=f}}}if(this[Xs](t)){let c=this[Js](t),l=this[Zs](t);try{ie.fchownSync(s,c,l)}catch(f){try{ie.chownSync(t.absolute,c,l)}catch{u=u||f}}}i(u)})}[Gp](t,r){let n=t.mode&4095||this.dmode,i=this[rn](t.absolute,n);if(i){this[Ze](i,t),r();return}if(t.mtime&&!this.noMtime)try{ie.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[Xs](t))try{ie.chownSync(t.absolute,this[Js](t),this[Zs](t))}catch{}r(),t.resume()}[rn](t,r){try{return vx.sync(bt(t),{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(n){return n}}[Ju](t,r,n,i){try{ie[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[Ze](s,t)}}};to.Sync=zp;xx.exports=to});var Tx=m((l$,Fx)=>{"use strict";var aN=wi(),Zu=Vp(),Sx=require("fs"),Rx=Mi(),Cx=require("path"),Yp=Fi();Fx.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=aN(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&uN(n,t),n.file&&n.sync?cN(n):n.file?lN(n,r):n.sync?fN(n):hN(n)};var uN=(e,t)=>{let r=new Map(t.map(s=>[Yp(s),!0])),n=e.filter,i=(s,o)=>{let a=o||Cx.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(Cx.dirname(s),a);return r.set(s,u),u};e.filter=n?(s,o)=>n(s,o)&&i(Yp(s)):s=>i(Yp(s))},cN=e=>{let t=new Zu.Sync(e),r=e.file,n=Sx.statSync(r),i=e.maxReadSize||16*1024*1024;new Rx.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},lN=(e,t)=>{let r=new Zu(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Sx.stat(i,(u,c)=>{if(u)a(u);else{let l=new Rx.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return t?s.then(t,t):s},fN=e=>new Zu.Sync(e),hN=e=>new Zu(e)});var Ox=m(Pe=>{"use strict";Pe.c=Pe.create=hD();Pe.r=Pe.replace=Fp();Pe.t=Pe.list=ju();Pe.u=Pe.update=wD();Pe.x=Pe.extract=Tx();Pe.Pack=xu();Pe.Unpack=Vp();Pe.Parse=qu();Pe.ReadEntry=uu();Pe.WriteEntry=np();Pe.Header=Ri();Pe.Pax=lu();Pe.types=qd()});var Fr=m((Rr,Qu)=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var kx=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function dN(e){return kx.includes(e)}var pN=["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",...kx];function mN(e){return pN.includes(e)}var gN=["null","undefined","string","number","bigint","boolean","symbol"];function yN(e){return gN.includes(e)}function Gi(e){return t=>typeof t===e}var{toString:Px}=Object.prototype,ro=e=>{let t=Px.call(e).slice(8,-1);if(/HTML\w+Element/.test(t)&&E.domElement(e))return"HTMLElement";if(mN(t))return t},de=e=>t=>ro(t)===e;function E(e){if(e===null)return"null";switch(typeof e){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(E.observable(e))return"Observable";if(E.array(e))return"Array";if(E.buffer(e))return"Buffer";let t=ro(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}E.undefined=Gi("undefined");E.string=Gi("string");var _N=Gi("number");E.number=e=>_N(e)&&!E.nan(e);E.bigint=Gi("bigint");E.function_=Gi("function");E.null_=e=>e===null;E.class_=e=>E.function_(e)&&e.toString().startsWith("class ");E.boolean=e=>e===!0||e===!1;E.symbol=Gi("symbol");E.numericString=e=>E.string(e)&&!E.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e));E.array=(e,t)=>Array.isArray(e)?E.function_(t)?e.every(t):!0:!1;E.buffer=e=>{var t,r,n,i;return(i=(n=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,e))!==null&&i!==void 0?i:!1};E.blob=e=>de("Blob")(e);E.nullOrUndefined=e=>E.null_(e)||E.undefined(e);E.object=e=>!E.null_(e)&&(typeof e=="object"||E.function_(e));E.iterable=e=>{var t;return E.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])};E.asyncIterable=e=>{var t;return E.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])};E.generator=e=>{var t,r;return E.iterable(e)&&E.function_((t=e)===null||t===void 0?void 0:t.next)&&E.function_((r=e)===null||r===void 0?void 0:r.throw)};E.asyncGenerator=e=>E.asyncIterable(e)&&E.function_(e.next)&&E.function_(e.throw);E.nativePromise=e=>de("Promise")(e);var bN=e=>{var t,r;return E.function_((t=e)===null||t===void 0?void 0:t.then)&&E.function_((r=e)===null||r===void 0?void 0:r.catch)};E.promise=e=>E.nativePromise(e)||bN(e);E.generatorFunction=de("GeneratorFunction");E.asyncGeneratorFunction=e=>ro(e)==="AsyncGeneratorFunction";E.asyncFunction=e=>ro(e)==="AsyncFunction";E.boundFunction=e=>E.function_(e)&&!e.hasOwnProperty("prototype");E.regExp=de("RegExp");E.date=de("Date");E.error=de("Error");E.map=e=>de("Map")(e);E.set=e=>de("Set")(e);E.weakMap=e=>de("WeakMap")(e);E.weakSet=e=>de("WeakSet")(e);E.int8Array=de("Int8Array");E.uint8Array=de("Uint8Array");E.uint8ClampedArray=de("Uint8ClampedArray");E.int16Array=de("Int16Array");E.uint16Array=de("Uint16Array");E.int32Array=de("Int32Array");E.uint32Array=de("Uint32Array");E.float32Array=de("Float32Array");E.float64Array=de("Float64Array");E.bigInt64Array=de("BigInt64Array");E.bigUint64Array=de("BigUint64Array");E.arrayBuffer=de("ArrayBuffer");E.sharedArrayBuffer=de("SharedArrayBuffer");E.dataView=de("DataView");E.enumCase=(e,t)=>Object.values(t).includes(e);E.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;E.urlInstance=e=>de("URL")(e);E.urlString=e=>{if(!E.string(e))return!1;try{return new URL(e),!0}catch{return!1}};E.truthy=e=>!!e;E.falsy=e=>!e;E.nan=e=>Number.isNaN(e);E.primitive=e=>E.null_(e)||yN(typeof e);E.integer=e=>Number.isInteger(e);E.safeInteger=e=>Number.isSafeInteger(e);E.plainObject=e=>{if(Px.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};E.typedArray=e=>dN(ro(e));var EN=e=>E.safeInteger(e)&&e>=0;E.arrayLike=e=>!E.nullOrUndefined(e)&&!E.function_(e)&&EN(e.length);E.inRange=(e,t)=>{if(E.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(E.array(t)&&t.length===2)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};var wN=1,vN=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.domElement=e=>E.object(e)&&e.nodeType===wN&&E.string(e.nodeName)&&!E.plainObject(e)&&vN.every(t=>t in e);E.observable=e=>{var t,r,n,i;return e?e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))||e===((i=(n=e)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};E.nodeStream=e=>E.object(e)&&E.function_(e.pipe)&&!E.observable(e);E.infinite=e=>e===1/0||e===-1/0;var Bx=e=>t=>E.integer(t)&&Math.abs(t%2)===e;E.evenInteger=Bx(0);E.oddInteger=Bx(1);E.emptyArray=e=>E.array(e)&&e.length===0;E.nonEmptyArray=e=>E.array(e)&&e.length>0;E.emptyString=e=>E.string(e)&&e.length===0;var AN=e=>E.string(e)&&!/\S/.test(e);E.emptyStringOrWhitespace=e=>E.emptyString(e)||AN(e);E.nonEmptyString=e=>E.string(e)&&e.length>0;E.nonEmptyStringAndNotWhitespace=e=>E.string(e)&&!E.emptyStringOrWhitespace(e);E.emptyObject=e=>E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length===0;E.nonEmptyObject=e=>E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length>0;E.emptySet=e=>E.set(e)&&e.size===0;E.nonEmptySet=e=>E.set(e)&&e.size>0;E.emptyMap=e=>E.map(e)&&e.size===0;E.nonEmptyMap=e=>E.map(e)&&e.size>0;E.propertyKey=e=>E.any([E.string,E.number,E.symbol],e);E.formData=e=>de("FormData")(e);E.urlSearchParams=e=>de("URLSearchParams")(e);var Ix=(e,t,r)=>{if(!E.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(r.length===0)throw new TypeError("Invalid number of values");return e.call(r,t)};E.any=(e,...t)=>(E.array(e)?e:[e]).some(n=>Ix(Array.prototype.some,n,t));E.all=(e,...t)=>Ix(Array.prototype.every,e,t);var P=(e,t,r,n={})=>{if(!e){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${E(o)}\``))].join(", ")}`:`received value of type \`${E(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${s}.`)}};Rr.assert={undefined:e=>P(E.undefined(e),"undefined",e),string:e=>P(E.string(e),"string",e),number:e=>P(E.number(e),"number",e),bigint:e=>P(E.bigint(e),"bigint",e),function_:e=>P(E.function_(e),"Function",e),null_:e=>P(E.null_(e),"null",e),class_:e=>P(E.class_(e),"Class",e),boolean:e=>P(E.boolean(e),"boolean",e),symbol:e=>P(E.symbol(e),"symbol",e),numericString:e=>P(E.numericString(e),"string with a number",e),array:(e,t)=>{P(E.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>P(E.buffer(e),"Buffer",e),blob:e=>P(E.blob(e),"Blob",e),nullOrUndefined:e=>P(E.nullOrUndefined(e),"null or undefined",e),object:e=>P(E.object(e),"Object",e),iterable:e=>P(E.iterable(e),"Iterable",e),asyncIterable:e=>P(E.asyncIterable(e),"AsyncIterable",e),generator:e=>P(E.generator(e),"Generator",e),asyncGenerator:e=>P(E.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>P(E.nativePromise(e),"native Promise",e),promise:e=>P(E.promise(e),"Promise",e),generatorFunction:e=>P(E.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>P(E.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>P(E.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>P(E.boundFunction(e),"Function",e),regExp:e=>P(E.regExp(e),"RegExp",e),date:e=>P(E.date(e),"Date",e),error:e=>P(E.error(e),"Error",e),map:e=>P(E.map(e),"Map",e),set:e=>P(E.set(e),"Set",e),weakMap:e=>P(E.weakMap(e),"WeakMap",e),weakSet:e=>P(E.weakSet(e),"WeakSet",e),int8Array:e=>P(E.int8Array(e),"Int8Array",e),uint8Array:e=>P(E.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>P(E.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>P(E.int16Array(e),"Int16Array",e),uint16Array:e=>P(E.uint16Array(e),"Uint16Array",e),int32Array:e=>P(E.int32Array(e),"Int32Array",e),uint32Array:e=>P(E.uint32Array(e),"Uint32Array",e),float32Array:e=>P(E.float32Array(e),"Float32Array",e),float64Array:e=>P(E.float64Array(e),"Float64Array",e),bigInt64Array:e=>P(E.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>P(E.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>P(E.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>P(E.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>P(E.dataView(e),"DataView",e),enumCase:(e,t)=>P(E.enumCase(e,t),"EnumCase",e),urlInstance:e=>P(E.urlInstance(e),"URL",e),urlString:e=>P(E.urlString(e),"string with a URL",e),truthy:e=>P(E.truthy(e),"truthy",e),falsy:e=>P(E.falsy(e),"falsy",e),nan:e=>P(E.nan(e),"NaN",e),primitive:e=>P(E.primitive(e),"primitive",e),integer:e=>P(E.integer(e),"integer",e),safeInteger:e=>P(E.safeInteger(e),"integer",e),plainObject:e=>P(E.plainObject(e),"plain object",e),typedArray:e=>P(E.typedArray(e),"TypedArray",e),arrayLike:e=>P(E.arrayLike(e),"array-like",e),domElement:e=>P(E.domElement(e),"HTMLElement",e),observable:e=>P(E.observable(e),"Observable",e),nodeStream:e=>P(E.nodeStream(e),"Node.js Stream",e),infinite:e=>P(E.infinite(e),"infinite number",e),emptyArray:e=>P(E.emptyArray(e),"empty array",e),nonEmptyArray:e=>P(E.nonEmptyArray(e),"non-empty array",e),emptyString:e=>P(E.emptyString(e),"empty string",e),emptyStringOrWhitespace:e=>P(E.emptyStringOrWhitespace(e),"empty string or whitespace",e),nonEmptyString:e=>P(E.nonEmptyString(e),"non-empty string",e),nonEmptyStringAndNotWhitespace:e=>P(E.nonEmptyStringAndNotWhitespace(e),"non-empty string and not whitespace",e),emptyObject:e=>P(E.emptyObject(e),"empty object",e),nonEmptyObject:e=>P(E.nonEmptyObject(e),"non-empty object",e),emptySet:e=>P(E.emptySet(e),"empty set",e),nonEmptySet:e=>P(E.nonEmptySet(e),"non-empty set",e),emptyMap:e=>P(E.emptyMap(e),"empty map",e),nonEmptyMap:e=>P(E.nonEmptyMap(e),"non-empty map",e),propertyKey:e=>P(E.propertyKey(e),"PropertyKey",e),formData:e=>P(E.formData(e),"FormData",e),urlSearchParams:e=>P(E.urlSearchParams(e),"URLSearchParams",e),evenInteger:e=>P(E.evenInteger(e),"even integer",e),oddInteger:e=>P(E.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>P(E.directInstanceOf(e,t),"T",e),inRange:(e,t)=>P(E.inRange(e,t),"in range",e),any:(e,...t)=>P(E.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>P(E.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})};Object.defineProperties(E,{class:{value:E.class_},function:{value:E.function_},null:{value:E.null_}});Object.defineProperties(Rr.assert,{class:{value:Rr.assert.class_},function:{value:Rr.assert.function_},null:{value:Rr.assert.null_}});Rr.default=E;Qu.exports=E;Qu.exports.default=E;Qu.exports.assert=Rr.assert});var Lx=m((h$,Kp)=>{"use strict";var ec=class extends Error{constructor(t){super(t||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Wi=class{static fn(t){return(...r)=>new Wi((n,i,s)=>{r.push(s),t(...r).then(n,i)})}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),t(i,s,o)})}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(t){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new ec(t))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Wi.prototype,Promise.prototype);Kp.exports=Wi;Kp.exports.CancelError=ec});var Nx=m((Jp,Zp)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});function DN(e){return e.encrypted}var Xp=(e,t)=>{let r;typeof t=="function"?r={connect:t}:r=t;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),DN(e)&&i&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),s&&e.once("close",r.close)};e.writable&&!e.connecting?o():e.connecting?e.once("connect",o):e.destroyed&&s&&r.close(e._hadError)};Jp.default=Xp;Zp.exports=Xp;Zp.exports.default=Xp});var Mx=m((e0,t0)=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});var xN=Nx(),CN=require("util"),SN=Number(process.versions.node.split(".")[0]),Qp=e=>{if(e.timings)return e.timings;let t={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}};e.timings=t;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(t.error=Date.now(),t.phases.total=t.error-t.start,a.emit=u),u(c,...l))};r(e);let n=()=>{t.abort=Date.now(),(!t.response||SN>=13)&&(t.phases.total=Date.now()-t.start)};e.prependOnceListener("abort",n);let i=a=>{if(t.socket=Date.now(),t.phases.wait=t.socket-t.start,CN.types.isProxy(a))return;let u=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};a.prependOnceListener("lookup",u),xN.default(a,{connect:()=>{t.connect=Date.now(),t.lookup===void 0&&(a.removeListener("lookup",u),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?i(e.socket):e.prependOnceListener("socket",i);let s=()=>{var a;t.upload=Date.now(),t.phases.request=t.upload-((a=t.secureConnect)!==null&&a!==void 0?a:t.connect)};return(()=>typeof e.writableFinished=="boolean"?e.writableFinished:e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0))()?s():e.prependOnceListener("finish",s),e.prependOnceListener("response",a=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,a.timings=t,r(a),a.prependOnceListener("end",()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}),a.prependOnceListener("aborted",n)}),t};e0.default=Qp;t0.exports=Qp;t0.exports.default=Qp});var Wx=m((d$,i0)=>{"use strict";var{V4MAPPED:RN,ADDRCONFIG:FN,ALL:Gx,promises:{Resolver:qx},lookup:TN}=require("dns"),{promisify:r0}=require("util"),ON=require("os"),zi=Symbol("cacheableLookupCreateConnection"),n0=Symbol("cacheableLookupInstance"),jx=Symbol("expires"),kN=typeof Gx=="number",Hx=e=>{if(!(e&&typeof e.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},PN=e=>{for(let t of e)t.family!==6&&(t.address=`::ffff:${t.address}`,t.family=6)},$x=()=>{let e=!1,t=!1;for(let r of Object.values(ON.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},BN=e=>Symbol.iterator in e,Ux={ttl:!0},IN={all:!0},tc=class{constructor({cache:t=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new qx,lookup:o=TN}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=t,this._resolver=s,this._dnsLookup=r0(o),this._resolver instanceof qx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=r0(this._resolver.resolve4.bind(this._resolver)),this._resolve6=r0(this._resolver.resolve6.bind(this._resolver))),this._iface=$x(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(t){this.clear(),this._resolver.setServers(t)}get servers(){return this._resolver.getServers()}lookup(t,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(t,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(t,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(t);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&RN&&(kN&&r.hints&Gx||i.length===0)?PN(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&FN){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${t}`);throw i.code="ENOTFOUND",i.hostname=t,i}return r.all?n:n[0]}async query(t){let r=await this._cache.get(t);if(!r){let n=this._pending[t];if(n)r=await n;else{let i=this.queryAndCache(t);this._pending[t]=i;try{r=await i}finally{delete this._pending[t]}}}return r=r.map(n=>({...n})),r}async _resolve(t){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(t,Ux),this._resolve6(t,Ux)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of n)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(t){try{return{entries:await this._dnsLookup(t,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(t,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[jx]=Date.now()+n;try{await this._cache.set(t,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}BN(this._cache)&&this._tick(n)}}async queryAndCache(t){if(this._hostnamesToFallback.has(t))return this._dnsLookup(t,IN);let r=await this._resolve(t);r.entries.length===0&&this._fallback&&(r=await this._lookup(t),r.entries.length!==0&&this._hostnamesToFallback.add(t));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(t,r.entries,n),r.entries}_tick(t){let r=this._nextRemovalTime;(!r||t<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=t,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[jx];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},t),this._removalTimeout.unref&&this._removalTimeout.unref())}install(t){if(Hx(t),zi in t)throw new Error("CacheableLookup has been already installed");t[zi]=t.createConnection,t[n0]=this,t.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),t[zi](r,n))}uninstall(t){if(Hx(t),t[zi]){if(t[n0]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");t.createConnection=t[zi],delete t[zi],delete t[n0]}}updateInterfaceInfo(){let{_iface:t}=this;this._iface=$x(),(t.has4&&!this._iface.has4||t.has6&&!this._iface.has6)&&this._cache.clear()}clear(t){if(t){this._cache.delete(t);return}this._cache.clear()}};i0.exports=tc;i0.exports.default=tc});var Yx=m((p$,Vx)=>{"use strict";var LN="text/plain",NN="us-ascii",zx=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),MN=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(f=>{let[h,g=""]=f.split("=").map(b=>b.trim());return h==="charset"&&(g=g.toLowerCase(),g===NN)?"":`${h}${g?`=${g}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==LN)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},qN=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return MN(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];zx(a,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])zx(o,t.removeQueryParameters)&&i.searchParams.delete(o);t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters&&i.searchParams.sort(),t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};Vx.exports=qN});var Jx=m((m$,Xx)=>{Xx.exports=Kx;function Kx(e,t){if(e&&t)return Kx(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var o0=m((g$,s0)=>{var Zx=Jx();s0.exports=Zx(rc);s0.exports.strict=Zx(Qx);rc.proto=rc(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return rc(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Qx(this)},configurable:!0})});function rc(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Qx(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var r2=m((y$,t2)=>{var jN=o0(),HN=function(){},$N=function(e){return e.setHeader&&typeof e.abort=="function"},UN=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},e2=function(e,t,r){if(typeof t=="function")return e2(e,null,t);t||(t={}),r=jN(r||HN);var n=e._writableState,i=e._readableState,s=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,a=!1,u=function(){e.writable||c()},c=function(){o=!1,s||r.call(e)},l=function(){s=!1,o||r.call(e)},f=function(p){r.call(e,p?new Error("exited with error code: "+p):null)},h=function(p){r.call(e,p)},g=function(){process.nextTick(b)},b=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(e,new Error("premature close"))}},_=function(){e.req.on("finish",c)};return $N(e)?(e.on("complete",c),e.on("abort",g),e.req?_():e.on("request",_)):o&&!n&&(e.on("end",u),e.on("close",u)),UN(e)&&e.on("exit",f),e.on("end",l),e.on("finish",c),t.error!==!1&&e.on("error",h),e.on("close",g),function(){a=!0,e.removeListener("complete",c),e.removeListener("abort",g),e.removeListener("request",_),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("exit",f),e.removeListener("end",l),e.removeListener("error",h),e.removeListener("close",g)}};t2.exports=e2});var s2=m((_$,i2)=>{var GN=o0(),WN=r2(),a0=require("fs"),no=function(){},zN=/^v?\.0/.test(process.version),nc=function(e){return typeof e=="function"},VN=function(e){return!zN||!a0?!1:(e instanceof(a0.ReadStream||no)||e instanceof(a0.WriteStream||no))&&nc(e.close)},YN=function(e){return e.setHeader&&nc(e.abort)},KN=function(e,t,r,n){n=GN(n);var i=!1;e.on("close",function(){i=!0}),WN(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,VN(e))return e.close(no);if(YN(e))return e.abort();if(nc(e.destroy))return e.destroy();n(o||new Error("stream was destroyed"))}}},n2=function(e){e()},XN=function(e,t){return e.pipe(t)},JN=function(){var e=Array.prototype.slice.call(arguments),t=nc(e[e.length-1]||no)&&e.pop()||no;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,s){var o=s<e.length-1,a=s>0;return KN(i,o,a,function(u){r||(r=u),u&&n.forEach(n2),!o&&(n.forEach(n2),t(r))})});return e.reduce(XN)};i2.exports=JN});var a2=m((b$,o2)=>{"use strict";var{PassThrough:ZN}=require("stream");o2.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new ZN({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var u2=m((E$,Vi)=>{"use strict";var{constants:QN}=require("buffer"),eM=s2(),tM=a2(),ic=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function sc(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=QN.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=eM(e,tM(t),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new ic)})}),n.getBufferedValue()}Vi.exports=sc;Vi.exports.default=sc;Vi.exports.buffer=(e,t)=>sc(e,{...t,encoding:"buffer"});Vi.exports.array=(e,t)=>sc(e,{...t,array:!0});Vi.exports.MaxBufferError=ic});var l2=m((v$,c2)=>{"use strict";var rM=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),nM=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),iM=new Set([500,502,503,504]),sM={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},oM={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function In(e){let t=parseInt(e,10);return isFinite(t)?t:0}function aM(e){return e?iM.has(e.status):!0}function u0(e){let t={};if(!e)return t;let r=e.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);t[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return t}function uM(e){let t=[];for(let r in e){let n=e[r];t.push(n===!0?r:r+"="+n)}if(t.length)return t.join(", ")}c2.exports=class{constructor(t,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=u0(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=u0(t.headers["cache-control"]),o&&"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":uM(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.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())&&nM.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||rM.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(t){if(!t||!t.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(t){this._assertRequestHasHeaders(t);let r=u0(t.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(t.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(t,!1)}_requestMatches(t,r){return(!this._url||this._url===t.url)&&this._host===t.headers.host&&(!t.method||this._method===t.method||r&&t.method==="HEAD")&&this._varyMatches(t)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(t){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(t.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(t){let r={};for(let n in t)sM[n]||(r[n]=t[n]);if(t.connection){let n=t.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let t=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(t.warning=(t.warning?`${t.warning}, `:"")+'113 - "rfc7234 5.5.4"'),t.age=`${Math.round(r)}`,t.date=new Date(this.now()).toUTCString(),t}date(){let t=Date.parse(this._resHeaders.date);return isFinite(t)?t:this._responseTime}age(){let t=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return t+r}_ageValue(){return In(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 In(this._rescc["s-maxage"])}if(this._rescc["max-age"])return In(this._rescc["max-age"]);let t=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(t,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(t,(r-n)/1e3*this._cacheHeuristic)}return t}timeToLive(){let t=this.maxAge()-this.age(),r=t+In(this._rescc["stale-if-error"]),n=t+In(this._rescc["stale-while-revalidate"]);return Math.max(0,t,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+In(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+In(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(t){return new this(void 0,void 0,{_fromObject:t})}_fromObject(t){if(this._responseTime)throw Error("Reinitialized");if(!t||t.v!==1)throw Error("Invalid serialization");this._responseTime=t.t,this._isShared=t.sh,this._cacheHeuristic=t.ch,this._immutableMinTtl=t.imm!==void 0?t.imm:24*3600*1e3,this._status=t.st,this._resHeaders=t.resh,this._rescc=t.rescc,this._method=t.m,this._url=t.u,this._host=t.h,this._noAuthorization=t.a,this._reqHeaders=t.reqh,this._reqcc=t.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(t){this._assertRequestHasHeaders(t);let r=this._copyWithoutHopByHopHeaders(t.headers);if(delete r["if-range"],!this._requestMatches(t,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(t,r){if(this._assertRequestHasHeaders(t),this._useStaleIfError()&&aM(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(t,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!oM[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(t,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var oc=m((A$,f2)=>{"use strict";f2.exports=e=>{let t={};for(let[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}});var d2=m((D$,h2)=>{"use strict";var cM=require("stream").Readable,lM=oc(),c0=class extends cM{constructor(t,r,n,i){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=lM(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};h2.exports=c0});var m2=m((x$,p2)=>{"use strict";var fM=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];p2.exports=(e,t)=>{let r=new Set(Object.keys(e).concat(fM));for(let n of r)n in t||(t[n]=typeof e[n]=="function"?e[n].bind(e):e[n])}});var y2=m((C$,g2)=>{"use strict";var hM=require("stream").PassThrough,dM=m2(),pM=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new hM;return dM(e,t),e.pipe(t)};g2.exports=pM});var _2=m(l0=>{l0.stringify=function e(t){if(typeof t=="undefined")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 r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var s in t){var o=typeof t[s]=="function"||!n&&typeof t[s]=="undefined";Object.hasOwnProperty.call(t,s)&&!o&&(i||(r+=","),i=!1,n?t[s]==null?r+="null":r+=e(t[s]):t[s]!==void 0&&(r+=e(s)+":"+e(t[s])))}return r+=n?"]":"}",r}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t=="undefined"?"null":JSON.stringify(t)};l0.parse=function(e){return JSON.parse(e,function(t,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var v2=m((R$,w2)=>{"use strict";var mM=require("events"),b2=_2(),gM=e=>{let t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){let r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map},E2=["sqlite","postgres","mysql","mongo","redis","tiered"],f0=class extends mM{constructor(t,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:b2.stringify,deserialize:b2.parse,...typeof t=="string"?{uri:t}:t,...n},!this.opts.store){let s={...this.opts};this.opts.store=gM(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return E2.includes(this.opts.store.opts.dialect)||E2.findIndex(t=>this.opts.store.opts.url.includes(t))>=0}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}_getKeyPrefixArray(t){return t.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(t){return t.split(":").splice(1).join(":")}get(t,r){let{store:n}=this.opts,i=Array.isArray(t),s=i?this._getKeyPrefixArray(t):this._getKeyPrefix(t);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let c of a)u.push(c.value);return u})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(t).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(t).then(()=>{}):r&&r.raw?o:o.value}})}set(t,r,n){let i=this._getKeyPrefix(t);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(t){let{store:r}=this.opts;if(Array.isArray(t)){let i=this._getKeyPrefixArray(t);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(t);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:t}=this.opts;return Promise.resolve().then(()=>t.clear())}has(t){let r=this._getKeyPrefix(t),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:t}=this.opts;if(typeof t.disconnect=="function")return t.disconnect()}};w2.exports=f0});var x2=m((F$,D2)=>{"use strict";var yM=require("events"),ac=require("url"),_M=Yx(),bM=u2(),h0=l2(),A2=d2(),EM=oc(),wM=y2(),vM=v2(),Ht=class{constructor(t,r){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new vM({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(r,n)=>{let i;if(typeof r=="string")i=d0(ac.parse(r)),r={};else if(r instanceof ac.URL)i=d0(ac.parse(r.toString())),r={};else{let[f,...h]=(r.path||"").split("?"),g=h.length>0?`?${h.join("?")}`:"";i=d0({...r,pathname:f,search:g})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...AM(i)},r.headers=EM(r.headers);let s=new yM,o=_M(ac.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=f=>{c=!0;let h=!1,g,b=new Promise(p=>{g=()=>{h||(h=!0,p())}}),_=p=>{if(u&&!f.forceRefresh){p.status=p.statusCode;let C=h0.fromObject(u.cachePolicy).revalidatedPolicy(f,p);if(!C.modified){let N=C.policy.responseHeaders();p=new A2(u.statusCode,N,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new h0(f,p,f),p.fromCache=!1);let w;f.cache&&p.cachePolicy.storable()?(w=wM(p),(async()=>{try{let C=bM.buffer(p);if(await Promise.race([b,new Promise(X=>p.once("end",X))]),h)return;let N=await C,W={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:N},M=f.strictTtl?p.cachePolicy.timeToLive():void 0;f.maxTtl&&(M=M?Math.min(M,f.maxTtl):f.maxTtl),await this.cache.set(a,W,M)}catch(C){s.emit("error",new Ht.CacheError(C))}})()):f.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Ht.CacheError(C))}})(),s.emit("response",w||p),typeof n=="function"&&n(w||p)};try{let p=t(f,_);p.once("error",g),p.once("abort",g),s.emit("request",p)}catch(p){s.emit("error",new Ht.RequestError(p))}};return(async()=>{let f=async g=>{await Promise.resolve();let b=g.cache?await this.cache.get(a):void 0;if(typeof b=="undefined")return l(g);let _=h0.fromObject(b.cachePolicy);if(_.satisfiesWithoutRevalidation(g)&&!g.forceRefresh){let p=_.responseHeaders(),w=new A2(b.statusCode,p,b.body,b.url);w.cachePolicy=_,w.fromCache=!0,s.emit("response",w),typeof n=="function"&&n(w)}else u=b,g.headers=_.revalidationHeaders(g),l(g)},h=g=>s.emit("error",new Ht.CacheError(g));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await f(r)}catch(g){r.automaticFailover&&!c&&l(r),s.emit("error",new Ht.CacheError(g))}})(),s}}};function AM(e){let t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function d0(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}Ht.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};Ht.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};D2.exports=Ht});var S2=m((k$,C2)=>{"use strict";var DM=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];C2.exports=(e,t)=>{if(t._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(e).concat(DM)),n={};for(let i of r)i in t||(n[i]={get(){let s=e[i];return typeof s=="function"?s.bind(e):s},set(s){e[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(t,n),e.once("aborted",()=>{t.destroy(),t.emit("aborted")}),e.once("close",()=>{e.complete&&t.readable?t.once("end",()=>{t.emit("close")}):t.emit("close")}),t}});var F2=m((P$,R2)=>{"use strict";var{Transform:xM,PassThrough:CM}=require("stream"),p0=require("zlib"),SM=S2();R2.exports=e=>{let t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;let r=t==="br";if(r&&typeof p0.createBrotliDecompress!="function")return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let n=!0,i=new xM({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new CM({autoDestroy:!1,destroy(a,u){e.destroy(),u(a)}}),o=r?p0.createBrotliDecompress():p0.createUnzip();return o.once("error",a=>{if(n&&!e.readable){s.end();return}s.destroy(a)}),SM(e,s),e.pipe(i).pipe(o).pipe(s),s}});var g0=m((B$,T2)=>{"use strict";var m0=class{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,r){if(this.cache.set(t,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){let r=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,r),r}}set(t,r){return this.cache.has(t)?this.cache.set(t,r):this._set(t,r),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache)yield t;for(let t of this.oldCache){let[r]=t;this.cache.has(r)||(yield t)}}get size(){let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}};T2.exports=m0});var _0=m((I$,B2)=>{"use strict";var RM=require("events"),FM=require("tls"),TM=require("http2"),OM=g0(),it=Symbol("currentStreamsCount"),O2=Symbol("request"),Tt=Symbol("cachedOriginSet"),Yi=Symbol("gracefullyClosing"),kM=["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"],PM=(e,t,r)=>{let n=0,i=e.length;for(;n<i;){let s=n+i>>>1;r(e[s],t)?n=s+1:i=s}return n},BM=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,y0=(e,t)=>{for(let r of e)r[Tt].length<t[Tt].length&&r[Tt].every(n=>t[Tt].includes(n))&&r[it]+t[it]<=t.remoteSettings.maxConcurrentStreams&&P2(r)},IM=(e,t)=>{for(let r of e)t[Tt].length<r[Tt].length&&t[Tt].every(n=>r[Tt].includes(n))&&t[it]+r[it]<=r.remoteSettings.maxConcurrentStreams&&P2(t)},k2=({agent:e,isFree:t})=>{let r={};for(let n in e.sessions){let s=e.sessions[n].filter(o=>{let a=o[nr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return t?a:!a});s.length!==0&&(r[n]=s)}return r},P2=e=>{e[Yi]=!0,e[it]===0&&e.close()},nr=class extends RM{constructor({timeout:t=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=t,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new OM({maxSize:i})}static normalizeOrigin(t,r){return typeof t=="string"&&(t=new URL(t)),r&&t.hostname!==r&&(t.hostname=r),t.origin}normalizeOptions(t){let r="";if(t)for(let n of kM)t[n]&&(r+=`:${t[n]}`);return r}_tryToCreateNewSession(t,r){if(!(t in this.queue)||!(r in this.queue[t]))return;let n=this.queue[t][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(t,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=nr.normalizeOrigin(t,r&&r.servername);if(a===void 0){for(let{reject:l}of n)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],f=-1,h=-1,g;for(let b of l){let _=b.remoteSettings.maxConcurrentStreams;if(_<f)break;if(b[Tt].includes(a)){let p=b[it];if(p>=_||b[Yi]||b.destroyed)continue;g||(f=_),p>h&&(g=b,h=p)}}if(g){if(n.length!==1){for(let{reject:b}of n){let _=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
26
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);b(_)}return}n[0].resolve(g);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${a}:${o}`,f=!1;try{let h=TM.connect(t,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[it]=0,h[Yi]=!1;let g=()=>h[it]<h.remoteSettings.maxConcurrentStreams,b=!0;h.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),h.once("error",p=>{for(let{reject:w}of n)w(p);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(f){b&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(h),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of n)w(p);u()}this._tryToCreateNewSession(o,a)});let _=()=>{if(!(!(o in this.queue)||!g())){for(let p of h[Tt])if(p in this.queue[o]){let{listeners:w}=this.queue[o][p];for(;w.length!==0&&g();)w.shift().resolve(h);let C=this.queue[o];if(C[p].listeners.length===0&&(delete C[p],Object.keys(C).length===0)){delete this.queue[o];break}if(!g())break}}};h.on("origin",()=>{h[Tt]=h.originSet,g()&&(_(),y0(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let w of n)w.reject(p);h.destroy();return}h[Tt]=h.originSet;{let p=this.sessions;if(o in p){let w=p[o];w.splice(PM(w,h,BM),0,h)}else p[o]=[h]}this._freeSessionsCount+=1,f=!0,this.emit("session",h),_(),u(),h[it]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),h.on("remoteSettings",()=>{_(),y0(this.sessions[o],h)})}),h[O2]=h.request,h.request=(p,w)=>{if(h[Yi])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=h[O2](p,w);return h.ref(),++h[it],h[it]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(b=g(),--h[it],!h.destroyed&&!h.closed&&(IM(this.sessions[o],h),g()&&!h.closed)){b||(this._freeSessionsCount++,b=!0);let N=h[it]===0;N&&h.unref(),N&&(this._freeSessionsCount>this.maxFreeSessions||h[Yi])?h.close():(y0(this.sessions[o],h),_())}}),C}}catch(h){for(let g of n)g.reject(h);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(t,r,n,i){return new Promise((s,o)=>{this.getSession(t,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(t,r){return nr.connect(t,r)}static connect(t,r){r.ALPNProtocols=["h2"];let n=t.port||443,i=t.hostname||t.host;return typeof r.servername=="undefined"&&(r.servername=i),FM.connect(n,i,r)}closeFreeSessions(){for(let t of Object.values(this.sessions))for(let r of t)r[it]===0&&r.close()}destroy(t){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(t);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return k2({agent:this,isFree:!0})}get busySessions(){return k2({agent:this,isFree:!1})}};nr.kCurrentStreamsCount=it;nr.kGracefullyClosing=Yi;B2.exports={Agent:nr,globalAgent:new nr}});var E0=m((L$,I2)=>{"use strict";var{Readable:LM}=require("stream"),b0=class extends LM{constructor(t,r){super({highWaterMark:r,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=t,this.connection=t,this._dumped=!1}_destroy(t){this.req._request.destroy(t)}setTimeout(t,r){return this.req.setTimeout(t,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};I2.exports=b0});var w0=m((N$,L2)=>{"use strict";L2.exports=e=>{let t={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return typeof e.port=="string"&&e.port.length!==0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var M2=m((M$,N2)=>{"use strict";N2.exports=(e,t,r)=>{for(let n of r)e.on(n,(...i)=>t.emit(n,...i))}});var j2=m((q$,q2)=>{"use strict";q2.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var $2=m((H$,H2)=>{"use strict";var Ki=(e,t,r)=>{H2.exports[t]=class extends e{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${t}]`,this.code=t}}};Ki(TypeError,"ERR_INVALID_ARG_TYPE",e=>{let t=e[0].includes(".")?"property":"argument",r=e[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${n?"one of":"of"} type ${r}. Received ${typeof e[2]}`});Ki(TypeError,"ERR_INVALID_PROTOCOL",e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`);Ki(Error,"ERR_HTTP_HEADERS_SENT",e=>`Cannot ${e[0]} headers after they are sent to the client`);Ki(TypeError,"ERR_INVALID_HTTP_TOKEN",e=>`${e[0]} must be a valid HTTP token [${e[1]}]`);Ki(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",e=>`Invalid value "${e[0]} for header "${e[1]}"`);Ki(TypeError,"ERR_INVALID_CHAR",e=>`Invalid character in ${e[0]} [${e[1]}]`)});var C0=m(($$,K2)=>{"use strict";var NM=require("http2"),{Writable:MM}=require("stream"),{Agent:U2,globalAgent:qM}=_0(),jM=E0(),HM=w0(),$M=M2(),UM=j2(),{ERR_INVALID_ARG_TYPE:v0,ERR_INVALID_PROTOCOL:GM,ERR_HTTP_HEADERS_SENT:G2,ERR_INVALID_HTTP_TOKEN:WM,ERR_HTTP_INVALID_HEADER_VALUE:zM,ERR_INVALID_CHAR:VM}=$2(),{HTTP2_HEADER_STATUS:W2,HTTP2_HEADER_METHOD:z2,HTTP2_HEADER_PATH:V2,HTTP2_METHOD_CONNECT:YM}=NM.constants,Qe=Symbol("headers"),A0=Symbol("origin"),D0=Symbol("session"),Y2=Symbol("options"),uc=Symbol("flushedHeaders"),io=Symbol("jobs"),KM=/^[\^`\-\w!#$%&*+.|~]+$/,XM=/[^\t\u0020-\u007E\u0080-\u00FF]/,x0=class extends MM{constructor(t,r,n){super({autoDestroy:!1});let i=typeof t=="string"||t instanceof URL;if(i&&(t=HM(t instanceof URL?t:new URL(t))),typeof r=="function"||r===void 0?(n=r,r=i?t:{...t}):r={...t,...r},r.h2session)this[D0]=r.h2session;else if(r.agent===!1)this.agent=new U2({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new U2({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=qM;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new v0("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new GM(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[Qe]=Object.create(null),this[io]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,c]of Object.entries(r.headers))this.setHeader(u,c);r.auth&&!("authorization"in this[Qe])&&(this[Qe].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[Y2]=r,s===443?(this[A0]=`https://${o}`,":authority"in this[Qe]||(this[Qe][":authority"]=o)):(this[A0]=`https://${o}:${s}`,":authority"in this[Qe]||(this[Qe][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[uc]=!1}get method(){return this[Qe][z2]}set method(t){t&&(this[Qe][z2]=t.toUpperCase())}get path(){return this[Qe][V2]}set path(t){t&&(this[Qe][V2]=t)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(t,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(t,r,n);this._request?i():this[io].push(i)}_final(t){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){t();return}this._request.end(t)};this._request?r():this[io].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(t,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(t)}async flushHeaders(){if(this[uc]||this.destroyed)return;this[uc]=!0;let t=this.method===YM,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}t||$M(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let c=new jM(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[W2],c.headers=o,c.rawHeaders=u,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),t?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[W2]}))),n.once("trailers",i((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[io])o();this.emit("socket",this.socket)};if(this[D0])try{r(this[D0].request(this[Qe]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[A0],this[Y2],this[Qe]))}catch(n){this.emit("error",n)}}}getHeader(t){if(typeof t!="string")throw new v0("name","string",t);return this[Qe][t.toLowerCase()]}get headersSent(){return this[uc]}removeHeader(t){if(typeof t!="string")throw new v0("name","string",t);if(this.headersSent)throw new G2("remove");delete this[Qe][t.toLowerCase()]}setHeader(t,r){if(this.headersSent)throw new G2("set");if(typeof t!="string"||!KM.test(t)&&!UM(t))throw new WM("Header name",t);if(typeof r=="undefined")throw new zM(r,t);if(XM.test(r))throw new VM("header content",t);this[Qe][t.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(t,r){let n=()=>this._request.setTimeout(t,r);return this._request?n():this[io].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(t){}};K2.exports=x0});var J2=m((U$,X2)=>{"use strict";var JM=require("tls");X2.exports=(e={},t=JM.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),e.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await t(e,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var Q2=m((G$,Z2)=>{"use strict";var ZM=require("net");Z2.exports=e=>{let t=e.host,r=e.headers&&e.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?t=r:t=r.slice(1,-1):t=r.split(":",1)[0]),ZM.isIP(t)?"":t}});var rC=m((W$,R0)=>{"use strict";var eC=require("http"),S0=require("https"),QM=J2(),e4=g0(),t4=C0(),r4=Q2(),n4=w0(),cc=new e4({maxSize:100}),so=new Map,tC=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};let n=()=>{e.emit("free",t,r)};t.on("free",n);let i=()=>{e.removeSocket(t,r)};t.on("close",i);let s=()=>{e.removeSocket(t,r),t.off("close",i),t.off("free",n),t.off("agentRemove",s)};t.on("agentRemove",s),e.emit("free",t,r)},i4=async e=>{let t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!cc.has(t)){if(so.has(t))return(await so.get(t)).alpnProtocol;let{path:r,agent:n}=e;e.path=e.socketPath;let i=QM(e);so.set(t,i);try{let{socket:s,alpnProtocol:o}=await i;if(cc.set(t,o),e.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=S0,u=S0.Agent.prototype.createConnection;n?n.createConnection===u?tC(n,s,e):s.destroy():a.createConnection===u?tC(a,s,e):s.destroy()}return so.delete(t),o}catch(s){throw so.delete(t),s}}return cc.get(t)};R0.exports=async(e,t,r)=>{if((typeof e=="string"||e instanceof URL)&&(e=n4(new URL(e))),typeof t=="function"&&(r=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||t.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";let n=t.protocol==="https:";t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||r4(t),t.port=t.port||(n?443:80),t._defaultAgent=n?S0.globalAgent:eC.globalAgent;let i=t.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=i[n?"https":"http"]}return n&&await i4(t)==="h2"?(i&&(t.agent=i.http2),new t4(t,r)):eC.request(t,r)};R0.exports.protocolCache=cc});var iC=m((z$,nC)=>{"use strict";var s4=require("http2"),o4=_0(),F0=C0(),a4=E0(),u4=rC(),c4=(e,t,r)=>new F0(e,t,r),l4=(e,t,r)=>{let n=new F0(e,t,r);return n.end(),n};nC.exports={...s4,ClientRequest:F0,IncomingMessage:a4,...o4,request:c4,get:l4,auto:u4}});var O0=m(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});var sC=Fr();T0.default=e=>sC.default.nodeStream(e)&&sC.default.function_(e.getBoundary)});var cC=m(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});var aC=require("fs"),uC=require("util"),oC=Fr(),f4=O0(),h4=uC.promisify(aC.stat);k0.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(oC.default.string(e))return Buffer.byteLength(e);if(oC.default.buffer(e))return e.length;if(f4.default(e))return uC.promisify(e.getLength.bind(e))();if(e instanceof aC.ReadStream){let{size:r}=await h4(e.path);return r===0?void 0:r}}});var B0=m(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});function d4(e,t,r){let n={};for(let i of r)n[i]=(...s)=>{t.emit(i,...s)},e.on(i,n[i]);return()=>{for(let i of r)e.off(i,n[i])}}P0.default=d4});var lC=m(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});I0.default=()=>{let e=[];return{once(t,r,n){t.once(r,n),e.push({origin:t,event:r,fn:n})},unhandleAll(){for(let t of e){let{origin:r,event:n,fn:i}=t;r.removeListener(n,i)}e.length=0}}}});var hC=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.TimeoutError=void 0;var p4=require("net"),m4=lC(),fC=Symbol("reentry"),g4=()=>{},lc=class extends Error{constructor(t,r){super(`Timeout awaiting '${r}' for ${t}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};oo.TimeoutError=lc;oo.default=(e,t,r)=>{if(fC in e)return g4;e[fC]=!0;let n=[],{once:i,unhandleAll:s}=m4.default(),o=(f,h,g)=>{var b;let _=setTimeout(h,f,f,g);(b=_.unref)===null||b===void 0||b.call(_);let p=()=>{clearTimeout(_)};return n.push(p),p},{host:a,hostname:u}=r,c=(f,h)=>{e.destroy(new lc(f,h))},l=()=>{for(let f of n)f();s()};if(e.once("error",f=>{if(l(),e.listenerCount("error")===0)throw f}),e.once("close",l),i(e,"response",f=>{i(f,"end",l)}),typeof t.request!="undefined"&&o(t.request,c,"request"),typeof t.socket!="undefined"){let f=()=>{c(t.socket,"socket")};e.setTimeout(t.socket,f),n.push(()=>{e.removeListener("timeout",f)})}return i(e,"socket",f=>{var h;let{socketPath:g}=e;if(f.connecting){let b=!!(g!=null?g:p4.isIP((h=u!=null?u:a)!==null&&h!==void 0?h:"")!==0);if(typeof t.lookup!="undefined"&&!b&&typeof f.address().address=="undefined"){let _=o(t.lookup,c,"lookup");i(f,"lookup",_)}if(typeof t.connect!="undefined"){let _=()=>o(t.connect,c,"connect");b?i(f,"connect",_()):i(f,"lookup",p=>{p===null&&i(f,"connect",_())})}typeof t.secureConnect!="undefined"&&r.protocol==="https:"&&i(f,"connect",()=>{let _=o(t.secureConnect,c,"secureConnect");i(f,"secureConnect",_)})}if(typeof t.send!="undefined"){let b=()=>o(t.send,c,"send");f.connecting?i(f,"connect",()=>{i(e,"upload-complete",b())}):i(e,"upload-complete",b())}}),typeof t.response!="undefined"&&i(e,"upload-complete",()=>{let f=o(t.response,c,"response");i(e,"response",f)}),l}});var pC=m(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});var dC=Fr();L0.default=e=>{e=e;let t={protocol:e.protocol,hostname:dC.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return dC.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var mC=m(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});var y4=require("url"),_4=["protocol","host","hostname","port","pathname","search"];N0.default=(e,t)=>{var r,n;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${(n=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&n!==void 0?n:""}`}let i=new y4.URL(e);if(t.path){let s=t.path.indexOf("?");s===-1?t.pathname=t.path:(t.pathname=t.path.slice(0,s),t.search=t.path.slice(s+1)),delete t.path}for(let s of _4)t[s]&&(i[s]=t[s].toString());return i}});var gC=m(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});var M0=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,r){typeof t=="object"?this.weakMap.set(t,r):this.map.set(t,r)}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)}};q0.default=M0});var H0=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var b4=async e=>{let t=[],r=0;for await(let n of e)t.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(t[0])?Buffer.concat(t,r):Buffer.from(t.join(""))};j0.default=b4});var _C=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.dnsLookupIpVersionToFamily=Ln.isDnsLookupIpVersion=void 0;var yC={auto:0,ipv4:4,ipv6:6};Ln.isDnsLookupIpVersion=e=>e in yC;Ln.dnsLookupIpVersionToFamily=e=>{if(Ln.isDnsLookupIpVersion(e))return yC[e];throw new Error("Invalid DNS lookup IP version")}});var $0=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.isResponseOk=void 0;fc.isResponseOk=e=>{let{statusCode:t}=e,r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||t===304}});var EC=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});var bC=new Set;U0.default=e=>{bC.has(e)||(bC.add(e),process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))}});var wC=m(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});var _e=Fr(),E4=(e,t)=>{if(_e.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");_e.assert.any([_e.default.string,_e.default.undefined],e.encoding),_e.assert.any([_e.default.boolean,_e.default.undefined],e.resolveBodyOnly),_e.assert.any([_e.default.boolean,_e.default.undefined],e.methodRewriting),_e.assert.any([_e.default.boolean,_e.default.undefined],e.isStream),_e.assert.any([_e.default.string,_e.default.undefined],e.responseType),e.responseType===void 0&&(e.responseType="text");let{retry:r}=e;if(t?e.retry={...t.retry}:e.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},_e.default.object(r)?(e.retry={...e.retry,...r},e.retry.methods=[...new Set(e.retry.methods.map(n=>n.toUpperCase()))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):_e.default.number(r)&&(e.retry.limit=r),_e.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(_e.default.number))),_e.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});let{pagination:n}=e;if(!_e.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!_e.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!_e.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!_e.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return e.responseType==="json"&&e.headers.accept===void 0&&(e.headers.accept="application/json"),e};G0.default=E4});var vC=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.retryAfterStatusCodes=void 0;ao.retryAfterStatusCodes=new Set([413,429,503]);var w4=({attemptCount:e,retryOptions:t,error:r,retryAfter:n})=>{if(e>t.limit)return 0;let i=t.methods.includes(r.options.method),s=t.errorCodes.includes(r.code),o=r.response&&t.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return t.maxRetryAfter===void 0||n>t.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(e-1)*1e3+a};ao.default=w4});var lo=m(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.UnsupportedProtocolError=se.ReadError=se.TimeoutError=se.UploadError=se.CacheError=se.HTTPError=se.MaxRedirectsError=se.RequestError=se.setNonEnumerableProperties=se.knownHookEvents=se.withoutBody=se.kIsNormalizedAlready=void 0;var AC=require("util"),DC=require("stream"),v4=require("fs"),nn=require("url"),xC=require("http"),W0=require("http"),A4=require("https"),D4=Mx(),x4=Wx(),CC=x2(),C4=F2(),S4=iC(),R4=oc(),D=Fr(),F4=cC(),SC=O0(),T4=B0(),RC=hC(),O4=pC(),FC=mC(),k4=gC(),P4=H0(),TC=_C(),B4=$0(),sn=EC(),I4=wC(),L4=vC(),z0,He=Symbol("request"),pc=Symbol("response"),Xi=Symbol("responseSize"),Ji=Symbol("downloadedSize"),Zi=Symbol("bodySize"),Qi=Symbol("uploadedSize"),hc=Symbol("serverResponsesPiped"),OC=Symbol("unproxyEvents"),kC=Symbol("isFromCache"),V0=Symbol("cancelTimeouts"),PC=Symbol("startedReading"),es=Symbol("stopReading"),dc=Symbol("triggerRead"),on=Symbol("body"),uo=Symbol("jobs"),BC=Symbol("originalResponse"),IC=Symbol("retryTimeout");se.kIsNormalizedAlready=Symbol("isNormalizedAlready");var N4=D.default.string(process.versions.brotli);se.withoutBody=new Set(["GET","HEAD"]);se.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function M4(e){for(let t in e){let r=e[t];if(!D.default.string(r)&&!D.default.number(r)&&!D.default.boolean(r)&&!D.default.null_(r)&&!D.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function q4(e){return D.default.object(e)&&!("statusCode"in e)}var Y0=new k4.default,j4=async e=>new Promise((t,r)=>{let n=i=>{r(i)};e.pending||t(),e.once("error",n),e.once("ready",()=>{e.off("error",n),t()})}),H4=new Set([300,301,302,303,304,307,308]),$4=["context","body","json","form"];se.setNonEnumerableProperties=(e,t)=>{let r={};for(let n of e)if(n)for(let i of $4)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(t,r)};var Re=class extends Error{constructor(t,r,n){var i,s;if(super(t),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof wc?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[pc]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,D.default.string(r.stack)&&D.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
27
27
|
`).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
28
28
|
`).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
29
29
|
`)}${u.reverse().join(`
|
30
|
-
`)}`}}};se.RequestError=Re;var gc=class extends Re{constructor(t){super(`Redirected ${t.options.maxRedirects} times. Aborting.`,{},t),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};se.MaxRedirectsError=gc;var yc=class extends Re{constructor(t){super(`Response code ${t.statusCode} (${t.statusMessage})`,{},t.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};se.HTTPError=yc;var _c=class extends Re{constructor(t,r){super(t.message,t,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};se.CacheError=_c;var bc=class extends Re{constructor(t,r){super(t.message,t,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};se.UploadError=bc;var Ec=class extends Re{constructor(t,r,n){super(t.message,t,n),this.name="TimeoutError",this.event=t.event,this.timings=r}};se.TimeoutError=Ec;var co=class extends Re{constructor(t,r){super(t.message,t,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};se.ReadError=co;var wc=class extends Re{constructor(t){super(`Unsupported protocol "${t.url.protocol}"`,{},t),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};se.UnsupportedProtocolError=wc;var U4=["socket","connect","continue","information","upgrade","timeout"],vc=class extends xC.Duplex{constructor(t,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Ji]=0,this[Qi]=0,this.requestInitialized=!1,this[dc]=new Set,this.redirects=[],this[es]=!1,this[pc]=!1,this[uo]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof z0.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),se.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(t,r,n)}catch(c){D.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof v4.ReadStream&&await j4(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[He])===null||c===void 0||c.destroy();return}for(let f of this[uo])f();this[uo].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Re){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(t,r,n){var i,s,o,a,u;let c=r;if(D.default.object(t)&&!D.default.urlInstance(t))r={...n,...t,...r};else{if(t&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},t!==void 0&&(r.url=t),D.default.urlInstance(r.url)&&(r.url=new nn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),D.assert.any([D.default.string,D.default.undefined],r.method),D.assert.any([D.default.object,D.default.undefined],r.headers),D.assert.any([D.default.string,D.default.urlInstance,D.default.undefined],r.prefixUrl),D.assert.any([D.default.object,D.default.undefined],r.cookieJar),D.assert.any([D.default.object,D.default.string,D.default.undefined],r.searchParams),D.assert.any([D.default.object,D.default.string,D.default.undefined],r.cache),D.assert.any([D.default.object,D.default.number,D.default.undefined],r.timeout),D.assert.any([D.default.object,D.default.undefined],r.context),D.assert.any([D.default.object,D.default.undefined],r.hooks),D.assert.any([D.default.boolean,D.default.undefined],r.decompress),D.assert.any([D.default.boolean,D.default.undefined],r.ignoreInvalidCookies),D.assert.any([D.default.boolean,D.default.undefined],r.followRedirect),D.assert.any([D.default.number,D.default.undefined],r.maxRedirects),D.assert.any([D.default.boolean,D.default.undefined],r.throwHttpErrors),D.assert.any([D.default.boolean,D.default.undefined],r.http2),D.assert.any([D.default.boolean,D.default.undefined],r.allowGetBody),D.assert.any([D.default.string,D.default.undefined],r.localAddress),D.assert.any([OC.isDnsLookupIpVersion,D.default.undefined],r.dnsLookupIpVersion),D.assert.any([D.default.object,D.default.undefined],r.https),D.assert.any([D.default.boolean,D.default.undefined],r.rejectUnauthorized),r.https&&(D.assert.any([D.default.boolean,D.default.undefined],r.https.rejectUnauthorized),D.assert.any([D.default.function_,D.default.undefined],r.https.checkServerIdentity),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.certificateAuthority),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.key),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.certificate),D.assert.any([D.default.string,D.default.undefined],r.https.passphrase),D.assert.any([D.default.string,D.default.buffer,D.default.array,D.default.undefined],r.https.pfx)),D.assert.any([D.default.object,D.default.undefined],r.cacheOptions),D.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=R4({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let g;if(D.default.string(r.searchParams)||r.searchParams instanceof nn.URLSearchParams)g=new nn.URLSearchParams(r.searchParams);else{M4(r.searchParams),g=new nn.URLSearchParams;for(let b in r.searchParams){let _=r.searchParams[b];_===null?g.append(b,""):_!==void 0&&g.append(b,_)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((b,_)=>{g.has(_)||g.append(_,b)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",D.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),D.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=TC.default(r.prefixUrl+r.url,r)}else(D.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=TC.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:_=>{let p=r.url;if(!p.href.startsWith(_))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${_}: ${p.href}`);r.url=new nn.URL(_+p.href.slice(g.length)),g=_},get:()=>g});let{protocol:b}=r.url;if(b==="unix:"&&(b="http:",r.url=new nn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),b!=="http:"&&b!=="https:")throw new wc(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:g,getCookieString:b}=l;D.assert.function_(g),D.assert.function_(b),g.length===4&&b.length===0&&(g=DC.promisify(g.bind(r.cookieJar)),b=DC.promisify(b.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:b})}let{cache:f}=r;if(f&&(K0.has(f)||K0.set(f,new SC((g,b)=>{let _=g[He](g,b);return D.default.promise(_)&&(_.once=(p,w)=>{if(p==="error")_.catch(w);else if(p==="abort")(async()=>{try{(await _).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return _}),_},f))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)V0||(V0=new x4.default),r.dnsCache=V0;else if(!D.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${D.default(r.dnsCache)}`);D.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let h=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let g of se.knownHookEvents)if(g in r.hooks)if(D.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${D.default(r.hooks[g])}`);else r.hooks[g]=[];if(n&&!h)for(let g of se.knownHookEvents)n.hooks[g].length>0&&(r.hooks[g]=[...n.hooks[g],...r.hooks[g]]);if("family"in r&&sn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&sn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&sn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&sn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&sn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&sn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&sn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&sn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,se.setNonEnumerableProperties([n,c],r),I4.default(r,n)}_lockWrite(){let t=()=>{throw new TypeError("The payload has been already provided")};this.write=t,this.end=t}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:t}=this,{headers:r}=t,n=!D.default.undefined(t.form),i=!D.default.undefined(t.json),s=!D.default.undefined(t.body),o=n||i||s,a=se.withoutBody.has(t.method)&&!(t.method==="GET"&&t.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${t.method}\` method cannot be used with a body`);if([s,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(t.body instanceof xC.Readable)&&!D.default.string(t.body)&&!D.default.buffer(t.body)&&!RC.default(t.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!D.default.object(t.form))throw new TypeError("The `form` option must be an Object");{let u=!D.default.string(r["content-type"]);s?(RC.default(t.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${t.body.getBoundary()}`),this[on]=t.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[on]=new nn.URLSearchParams(t.form).toString()):(u&&(r["content-type"]="application/json"),this[on]=t.stringifyJson(t.json));let c=await F4.default(this[on],t.headers);D.default.undefined(r["content-length"])&&D.default.undefined(r["transfer-encoding"])&&!a&&!D.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Zi]=Number(r["content-length"])||void 0}async _onResponseBase(t){let{options:r}=this,{url:n}=r;this[IC]=t,r.decompress&&(t=C4(t));let i=t.statusCode,s=t;s.statusMessage=s.statusMessage?s.statusMessage:CC.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=t.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[PC]=s.isFromCache,this[Xi]=Number(t.headers["content-length"])||void 0,this[mc]=t,t.once("end",()=>{this[Xi]=this[Ji],this.emit("downloadProgress",this.downloadProgress)}),t.once("error",a=>{t.destroy(),this._beforeError(new co(a,this))}),t.once("aborted",()=>{this._beforeError(new co({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=t.headers["set-cookie"];if(D.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&t.headers.location&&H4.has(i)){if(t.resume(),this[He]&&(this[Y0](),delete this[He],this[kC]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[on]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new gc(this));return}try{let f=function(h){return h.protocol==="unix:"||h.hostname==="unix"},u=Buffer.from(t.headers.location,"binary").toString(),c=new nn.URL(u,n),l=c.toString();if(decodeURI(l),!f(n)&&f(c)){this._beforeError(new Re("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let h of r.hooks.beforeRedirect)await h(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!B4.isResponseOk(s)){this._beforeError(new yc(s));return}t.on("readable",()=>{this[pc]&&this._read()}),this.on("resume",()=>{t.resume()}),this.on("pause",()=>{t.pause()}),t.once("end",()=>{this.push(null)}),this.emit("response",t);for(let a of this[dc])if(!a.headersSent){for(let u in t.headers){let c=r.decompress?u!=="content-encoding":!0,l=t.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(t){try{await this._onResponseBase(t)}catch(r){this._beforeError(r)}}_onRequest(t){let{options:r}=this,{timeout:n,url:i}=r;D4.default(t),this[Y0]=FC.default(t,n,i);let s=r.cache?"cacheableResponse":"response";t.once(s,u=>{this._onResponse(u)}),t.once("error",u=>{var c;t.destroy(),(c=t.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof FC.TimeoutError?new Ec(u,this.timings,this):new Re(u.message,u,this),this._beforeError(u)}),this[kC]=T4.default(t,this,U4),this[He]=t,this.emit("uploadProgress",this.uploadProgress);let o=this[on],a=this.redirects.length===0?this:t;D.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new bc(u,this))})):(this._unlockWrite(),D.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",t)}async _createCacheableRequest(t,r){return new Promise((n,i)=>{Object.assign(r,O4.default(t)),delete r.url;let s,o=K0.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=t,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var t,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let w in a)if(D.default.undefined(a[w]))delete a[w];else if(D.default.null_(a[w]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${w}\` header`);if(o.decompress&&D.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=N4?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let w=await o.cookieJar.getCookieString(o.url.toString());D.default.nonEmptyString(w)&&(o.headers.cookie=w)}for(let w of o.hooks.beforeRequest){let C=await w(o);if(!D.default.undefined(C)){o.request=()=>C;break}}o.body&&this[on]!==o.body&&(this[on]=o.body);let{agent:u,request:c,timeout:l,url:f}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),f.hostname==="unix"){let w=/(?<socketPath>.+?):(?<path>.+)/.exec(`${f.pathname}${f.search}`);if(w!=null&&w.groups){let{socketPath:C,path:N}=w.groups;Object.assign(o,{socketPath:C,path:N,host:""})}}let h=f.protocol==="https:",g;o.http2?g=S4.auto:g=h?A4.request:CC.request;let b=(t=o.request)!==null&&t!==void 0?t:g,_=o.cache?this._createCacheableRequest:b;u&&!o.http2&&(o.agent=u[h?"https":"http"]),o[He]=b,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,p.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=OC.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let w=await _(f,p);D.default.undefined(w)&&(w=g(f,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),q4(w)?this._onRequest(w):this.writable?(this.once("finish",()=>{this._onResponse(w)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(w)}catch(w){throw w instanceof SC.CacheError?new _c(w,this):new Re(w.message,w,this)}}async _error(t){try{for(let r of this.options.hooks.beforeError)t=await r(t)}catch(r){t=new Re(r.message,r,this)}this.destroy(t)}_beforeError(t){if(this[es])return;let{options:r}=this,n=this.retryCount+1;this[es]=!0,t instanceof Re||(t=new Re(t.message,t,this));let i=t,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await P4.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:L4.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Re(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new Re(u.message,t,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,t))};this[LC]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[pc]=!0;let t=this[mc];if(t&&!this[es]){t.readableLength&&(this[pc]=!1);let r;for(;(r=t.read())!==null;){this[Ji]+=r.length,this[BC]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(t,r,n){let i=()=>{this._writeRequest(t,r,n)};this.requestInitialized?i():this[uo].push(i)}_writeRequest(t,r,n){this[He].destroyed||(this._progressCallbacks.push(()=>{this[Qi]+=Buffer.byteLength(t,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[He].write(t,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(t){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(He in this)){t();return}if(this[He].destroyed){t();return}this[He].end(n=>{n||(this[Zi]=this[Qi],this.emit("uploadProgress",this.uploadProgress),this[He].emit("upload-complete")),t(n)})};this.requestInitialized?r():this[uo].push(r)}_destroy(t,r){var n;this[es]=!0,clearTimeout(this[LC]),He in this&&(this[Y0](),!((n=this[mc])===null||n===void 0)&&n.complete||this[He].destroy()),t!==null&&!D.default.undefined(t)&&!(t instanceof Re)&&(t=new Re(t.message,t,this)),r(t)}get _isAboutToError(){return this[es]}get ip(){var t;return(t=this.socket)===null||t===void 0?void 0:t.remoteAddress}get aborted(){var t,r,n;return((r=(t=this[He])===null||t===void 0?void 0:t.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[IC])===null||n===void 0)&&n.complete)}get socket(){var t,r;return(r=(t=this[He])===null||t===void 0?void 0:t.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let t;return this[Xi]?t=this[Ji]/this[Xi]:this[Xi]===this[Ji]?t=1:t=0,{percent:t,transferred:this[Ji],total:this[Xi]}}get uploadProgress(){let t;return this[Zi]?t=this[Qi]/this[Zi]:this[Zi]===this[Qi]?t=1:t=0,{percent:t,transferred:this[Qi],total:this[Zi]}}get timings(){var t;return(t=this[He])===null||t===void 0?void 0:t.timings}get isFromCache(){return this[PC]}pipe(t,r){if(this[BC])throw new Error("Failed to pipe. The response has been emitted already.");return t instanceof z0.ServerResponse&&this[dc].add(t),super.pipe(t,r)}unpipe(t){return t instanceof z0.ServerResponse&&this[dc].delete(t),super.unpipe(t),this}};se.default=vc});var fo=m($t=>{"use strict";var G4=$t&&$t.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),W4=$t&&$t.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&G4(t,e,r)};Object.defineProperty($t,"__esModule",{value:!0});$t.CancelError=$t.ParseError=void 0;var NC=lo(),X0=class extends NC.RequestError{constructor(t,r){let{options:n}=r.request;super(`${t.message} in "${n.url.toString()}"`,t,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};$t.ParseError=X0;var J0=class extends NC.RequestError{constructor(t){super("Promise was canceled",{},t),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};$t.CancelError=J0;W4(lo(),$t)});var qC=m(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});var MC=fo(),z4=(e,t,r,n)=>{let{rawBody:i}=e;try{if(t==="text")return i.toString(n);if(t==="json")return i.length===0?"":r(i.toString());if(t==="buffer")return i;throw new MC.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(s){throw new MC.ParseError(s,e)}};Z0.default=z4});var Q0=m(an=>{"use strict";var V4=an&&an.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y4=an&&an.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&V4(t,e,r)};Object.defineProperty(an,"__esModule",{value:!0});var K4=require("events"),X4=Fr(),J4=Nx(),Ac=fo(),jC=qC(),HC=lo(),Z4=I0(),Q4=$0(),$C=U0(),e9=["request","response","redirect","uploadProgress","downloadProgress"];function UC(e){let t,r,n=new K4.EventEmitter,i=new J4((o,a,u)=>{let c=l=>{let f=new HC.default(void 0,e);f.retryCount=l,f._noPipe=!0,u(()=>f.destroy()),u.shouldReject=!1,u(()=>a(new Ac.CancelError(f))),t=f,f.once("response",async b=>{var _;if(b.retryCount=l,b.request.aborted)return;let p;try{p=await Q4.default(f),b.rawBody=p}catch{return}if(f._isAboutToError)return;let w=((_=b.headers["content-encoding"])!==null&&_!==void 0?_:"").toLowerCase(),C=["gzip","deflate","br"].includes(w),{options:N}=f;if(C&&!N.decompress)b.body=p;else try{b.body=jC.default(b,N.responseType,N.parseJson,N.encoding)}catch(W){if(b.body=p.toString(),$C.isResponseOk(b)){f._beforeError(W);return}}try{for(let[W,M]of N.hooks.afterResponse.entries())b=await M(b,async X=>{let z=HC.default.normalizeArguments(void 0,{...X,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},N);z.hooks.afterResponse=z.hooks.afterResponse.slice(0,W);for(let ee of z.hooks.beforeRetry)await ee(z);let Y=UC(z);return u(()=>{Y.catch(()=>{}),Y.cancel()}),Y})}catch(W){f._beforeError(new Ac.RequestError(W.message,W,f));return}if(r=b,!$C.isResponseOk(b)){f._beforeError(new Ac.HTTPError(b));return}f.destroy(),o(f.options.resolveBodyOnly?b.body:b)});let h=b=>{if(i.isCanceled)return;let{options:_}=f;if(b instanceof Ac.HTTPError&&!_.throwHttpErrors){let{response:p}=b;o(f.options.resolveBodyOnly?p.body:p);return}a(b)};f.once("error",h);let g=f.options.body;f.once("retry",(b,_)=>{var p,w;if(g===((p=_.request)===null||p===void 0?void 0:p.options.body)&&X4.default.nodeStream((w=_.request)===null||w===void 0?void 0:w.options.body)){h(_);return}c(b)}),Z4.default(f,n,e9)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return jC.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=t.options;return!t.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}an.default=UC;Y4(fo(),an)});var GC=m(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var t9=fo();function r9(e,...t){let r=(async()=>{if(e instanceof t9.RequestError)try{for(let i of t)if(i)for(let s of i)e=await s(e)}catch(i){e=i}throw e})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}em.default=r9});var VC=m(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var WC=Fr();function zC(e){for(let t of Object.values(e))(WC.default.plainObject(t)||WC.default.array(t))&&zC(t);return Object.freeze(e)}tm.default=zC});var KC=m(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0})});var rm=m(kt=>{"use strict";var n9=kt&&kt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),i9=kt&&kt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n9(t,e,r)};Object.defineProperty(kt,"__esModule",{value:!0});kt.defaultHandler=void 0;var XC=Fr(),Ot=Q0(),s9=GC(),xc=lo(),o9=VC(),a9={RequestError:Ot.RequestError,CacheError:Ot.CacheError,ReadError:Ot.ReadError,HTTPError:Ot.HTTPError,MaxRedirectsError:Ot.MaxRedirectsError,TimeoutError:Ot.TimeoutError,ParseError:Ot.ParseError,CancelError:Ot.CancelError,UnsupportedProtocolError:Ot.UnsupportedProtocolError,UploadError:Ot.UploadError},u9=async e=>new Promise(t=>{setTimeout(t,e)}),{normalizeArguments:Dc}=xc.default,JC=(...e)=>{let t;for(let r of e)t=Dc(void 0,r,t);return t},c9=e=>e.isStream?new xc.default(void 0,e):Ot.default(e),l9=e=>"defaults"in e&&"options"in e.defaults,f9=["get","post","put","patch","head","delete"];kt.defaultHandler=(e,t)=>t(e);var ZC=(e,t)=>{if(e)for(let r of e)r(t)},QC=e=>{e._rawHandlers=e.handlers,e.handlers=e.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.isStream&&o){let u=a,{then:c,catch:l,finally:f}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=f}return a});let t=(n,i={},s)=>{var o,a;let u=0,c=l=>e.handlers[u++](l,u===e.handlers.length?c9:c);if(XC.default.plainObject(n)){let l={...n,...i};xc.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{ZC(e.options.hooks.init,i),ZC((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(h){l=h}let f=Dc(n,i,s!=null?s:e.options);if(f[xc.kIsNormalizedAlready]=!0,l)throw new Ot.RequestError(l.message,l,f);return c(f)}catch(l){if(i.isStream)throw l;return s9.default(l,e.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};t.extend=(...n)=>{let i=[e.options],s=[...e._rawHandlers],o;for(let a of n)l9(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==kt.defaultHandler),s.length===0&&s.push(kt.defaultHandler),QC({options:JC(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=Dc(n,i,e.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!XC.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await u9(o.backoff);let l=await t(void 0,void 0,s),f=await o.transform(l),h=[];for(let b of f)if(o.filter(b,a,h)&&(!o.shouldContinue(b,a,h)||(yield b,o.stackAllItems&&a.push(b),h.push(b),--u<=0)))return;let g=o.paginate(l,a,h);if(g===!1)return;g===l.request.options?s=l.request.options:g!==void 0&&(s=Dc(void 0,g,s)),c++}};t.paginate=r,t.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},t.paginate.each=r,t.stream=(n,i)=>t(n,{...i,isStream:!0});for(let n of f9)t[n]=(i,s)=>t(i,{...s,method:n}),t.stream[n]=(i,s)=>t(i,{...s,method:n,isStream:!0});return Object.assign(t,a9),Object.defineProperty(t,"defaults",{value:e.mutableDefaults?e:o9.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:!0}),t.mergeOptions=JC,t};kt.default=QC;i9(KC(),kt)});var rS=m((Tr,Cc)=>{"use strict";var h9=Tr&&Tr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),eS=Tr&&Tr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&h9(t,e,r)};Object.defineProperty(Tr,"__esModule",{value:!0});var d9=require("url"),tS=rm(),p9={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:e=>e.request.options.responseType==="json"?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;let t=e.headers.link.split(","),r;for(let n of t){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new d9.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[tS.defaultHandler],mutableDefaults:!1},nm=tS.default(p9);Tr.default=nm;Cc.exports=nm;Cc.exports.default=nm;Cc.exports.__esModule=!0;eS(rm(),Tr);eS(Q0(),Tr)});var uS=m((yU,aS)=>{function Pt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}aS.exports=Pt;Pt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Pt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Pt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Pt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Pt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Pt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Pt.prototype.start=Pt.prototype.try;Pt.prototype.errors=function(){return this._errors};Pt.prototype.attempts=function(){return this._attempts};Pt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var cS=m(Nn=>{var g9=uS();Nn.operation=function(e){var t=Nn.timeouts(e);return new g9(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Nn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};Nn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Nn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(u){var c=Nn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){u.apply(e,l)})}.bind(e,o),e[s].options=t}}});var fS=m((bU,lS)=>{lS.exports=cS()});var dS=m((EU,hS)=>{var y9=fS();function _9(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=y9.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,f){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(a,l)}catch(h){u(h,l);return}Promise.resolve(f).then(n).catch(function(g){u(g,l)})}o.attempt(c)}return new Promise(r)}hS.exports=_9});var qS=re(require("http")),jS=re(require("https")),HS=require("picocolors"),Ue=require("commander");var sR=re(Om());function Hc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e){return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function $c(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $c(e)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cn(e)}function or(e,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},or(e,t)}function Gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}function Wc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function zc(){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 qn(e,t,r){return zc()?qn=Reflect.construct.bind():qn=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&or(c,o.prototype),c},qn.apply(null,arguments)}function ss(e){var t=typeof Map=="function"?new Map:void 0;return ss=function(n){if(n===null||!Wc(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return qn(n,arguments,cn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),or(i,n)},ss(e)}var Qc=re(Ym()),xo=re(require("path")),Co=re(require("fs-extra")),oR=function(e){Gc(t,e);function t(r){var n;return Hc(this,t),n=Uc(this,cn(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(ss(Error));function aR(e,t){try{var r=Co.default.readJsonSync(xo.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function uR(e){try{var t=Co.default.readJsonSync(xo.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function cR(e){var t=Co.default.existsSync(xo.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function Km(e){var t={current:void 0},r=(0,Qc.sync)(function(n){return[uR(n),aR(n,t),cR(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new oR(e);return r===void 0?t.current:r}var lR=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,fR=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,hR=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,el={Space_Separator:lR,ID_Start:fR,ID_Continue:hR},xe={isSpaceSeparator(e){return typeof e=="string"&&el.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||el.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||el.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},rl,tt,ur,Ro,Pr,Nt,Be,sl,as,dR=function(t,r){rl=String(t),tt="start",ur=[],Ro=0,Pr=1,Nt=0,Be=void 0,sl=void 0,as=void 0;do Be=pR(),yR[tt]();while(Be.type!=="eof");return typeof r=="function"?nl({"":as},"",r):as};function nl(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=nl(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=nl(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Q,Z,os,ar,te;function pR(){for(Q="default",Z="",os=!1,ar=1;;){te=cr();let e=Jm[Q]();if(e)return e}}function cr(){if(rl[Ro])return String.fromCodePoint(rl.codePointAt(Ro))}function T(){let e=cr();return e===`
|
31
|
-
`?(Pr++,Nt=0):e?Nt+=e.length:Nt++,e&&(
|
32
|
-
`:case"\r":case"\u2028":case"\u2029":T();return;case"/":T(),Q="comment";return;case void 0:return T(),me("eof")}if(xe.isSpaceSeparator(te)){T();return}return
|
33
|
-
`:case"\r":case"\u2028":case"\u2029":T(),Q="default";return;case void 0:return T(),me("eof")}T()},value(){switch(te){case"{":case"[":return me("punctuator",T());case"n":return T(),ln("ull"),me("null",null);case"t":return T(),ln("rue"),me("boolean",!0);case"f":return T(),ln("alse"),me("boolean",!1);case"-":case"+":T()==="-"&&(ar=-1),Q="sign";return;case".":Z=T(),Q="decimalPointLeading";return;case"0":Z=T(),Q="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Z=T(),Q="decimalInteger";return;case"I":return T(),ln("nfinity"),me("numeric",1/0);case"N":return T(),ln("aN"),me("numeric",NaN);case'"':case"'":os=T()==='"',Z="",Q="string";return}throw ge(T())},identifierNameStartEscape(){if(te!=="u")throw ge(T());T();let e=
|
30
|
+
`)}`}}};se.RequestError=Re;var mc=class extends Re{constructor(t){super(`Redirected ${t.options.maxRedirects} times. Aborting.`,{},t),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};se.MaxRedirectsError=mc;var gc=class extends Re{constructor(t){super(`Response code ${t.statusCode} (${t.statusMessage})`,{},t.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};se.HTTPError=gc;var yc=class extends Re{constructor(t,r){super(t.message,t,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};se.CacheError=yc;var _c=class extends Re{constructor(t,r){super(t.message,t,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};se.UploadError=_c;var bc=class extends Re{constructor(t,r,n){super(t.message,t,n),this.name="TimeoutError",this.event=t.event,this.timings=r}};se.TimeoutError=bc;var co=class extends Re{constructor(t,r){super(t.message,t,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};se.ReadError=co;var Ec=class extends Re{constructor(t){super(`Unsupported protocol "${t.url.protocol}"`,{},t),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};se.UnsupportedProtocolError=Ec;var U4=["socket","connect","continue","information","upgrade","timeout"],wc=class extends DC.Duplex{constructor(t,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Ji]=0,this[Qi]=0,this.requestInitialized=!1,this[hc]=new Set,this.redirects=[],this[es]=!1,this[dc]=!1,this[uo]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof W0.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),se.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(t,r,n)}catch(c){D.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof v4.ReadStream&&await j4(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[He])===null||c===void 0||c.destroy();return}for(let f of this[uo])f();this[uo].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Re){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(t,r,n){var i,s,o,a,u;let c=r;if(D.default.object(t)&&!D.default.urlInstance(t))r={...n,...t,...r};else{if(t&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},t!==void 0&&(r.url=t),D.default.urlInstance(r.url)&&(r.url=new nn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),D.assert.any([D.default.string,D.default.undefined],r.method),D.assert.any([D.default.object,D.default.undefined],r.headers),D.assert.any([D.default.string,D.default.urlInstance,D.default.undefined],r.prefixUrl),D.assert.any([D.default.object,D.default.undefined],r.cookieJar),D.assert.any([D.default.object,D.default.string,D.default.undefined],r.searchParams),D.assert.any([D.default.object,D.default.string,D.default.undefined],r.cache),D.assert.any([D.default.object,D.default.number,D.default.undefined],r.timeout),D.assert.any([D.default.object,D.default.undefined],r.context),D.assert.any([D.default.object,D.default.undefined],r.hooks),D.assert.any([D.default.boolean,D.default.undefined],r.decompress),D.assert.any([D.default.boolean,D.default.undefined],r.ignoreInvalidCookies),D.assert.any([D.default.boolean,D.default.undefined],r.followRedirect),D.assert.any([D.default.number,D.default.undefined],r.maxRedirects),D.assert.any([D.default.boolean,D.default.undefined],r.throwHttpErrors),D.assert.any([D.default.boolean,D.default.undefined],r.http2),D.assert.any([D.default.boolean,D.default.undefined],r.allowGetBody),D.assert.any([D.default.string,D.default.undefined],r.localAddress),D.assert.any([TC.isDnsLookupIpVersion,D.default.undefined],r.dnsLookupIpVersion),D.assert.any([D.default.object,D.default.undefined],r.https),D.assert.any([D.default.boolean,D.default.undefined],r.rejectUnauthorized),r.https&&(D.assert.any([D.default.boolean,D.default.undefined],r.https.rejectUnauthorized),D.assert.any([D.default.function_,D.default.undefined],r.https.checkServerIdentity),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.certificateAuthority),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.key),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.certificate),D.assert.any([D.default.string,D.default.undefined],r.https.passphrase),D.assert.any([D.default.string,D.default.buffer,D.default.array,D.default.undefined],r.https.pfx)),D.assert.any([D.default.object,D.default.undefined],r.cacheOptions),D.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=R4({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let g;if(D.default.string(r.searchParams)||r.searchParams instanceof nn.URLSearchParams)g=new nn.URLSearchParams(r.searchParams);else{M4(r.searchParams),g=new nn.URLSearchParams;for(let b in r.searchParams){let _=r.searchParams[b];_===null?g.append(b,""):_!==void 0&&g.append(b,_)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((b,_)=>{g.has(_)||g.append(_,b)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",D.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),D.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=FC.default(r.prefixUrl+r.url,r)}else(D.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=FC.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:_=>{let p=r.url;if(!p.href.startsWith(_))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${_}: ${p.href}`);r.url=new nn.URL(_+p.href.slice(g.length)),g=_},get:()=>g});let{protocol:b}=r.url;if(b==="unix:"&&(b="http:",r.url=new nn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),b!=="http:"&&b!=="https:")throw new Ec(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:g,getCookieString:b}=l;D.assert.function_(g),D.assert.function_(b),g.length===4&&b.length===0&&(g=AC.promisify(g.bind(r.cookieJar)),b=AC.promisify(b.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:b})}let{cache:f}=r;if(f&&(Y0.has(f)||Y0.set(f,new CC((g,b)=>{let _=g[He](g,b);return D.default.promise(_)&&(_.once=(p,w)=>{if(p==="error")_.catch(w);else if(p==="abort")(async()=>{try{(await _).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return _}),_},f))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)z0||(z0=new x4.default),r.dnsCache=z0;else if(!D.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${D.default(r.dnsCache)}`);D.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let h=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let g of se.knownHookEvents)if(g in r.hooks)if(D.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${D.default(r.hooks[g])}`);else r.hooks[g]=[];if(n&&!h)for(let g of se.knownHookEvents)n.hooks[g].length>0&&(r.hooks[g]=[...n.hooks[g],...r.hooks[g]]);if("family"in r&&sn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&sn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&sn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&sn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&sn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&sn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&sn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&sn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,se.setNonEnumerableProperties([n,c],r),I4.default(r,n)}_lockWrite(){let t=()=>{throw new TypeError("The payload has been already provided")};this.write=t,this.end=t}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:t}=this,{headers:r}=t,n=!D.default.undefined(t.form),i=!D.default.undefined(t.json),s=!D.default.undefined(t.body),o=n||i||s,a=se.withoutBody.has(t.method)&&!(t.method==="GET"&&t.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${t.method}\` method cannot be used with a body`);if([s,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(t.body instanceof DC.Readable)&&!D.default.string(t.body)&&!D.default.buffer(t.body)&&!SC.default(t.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!D.default.object(t.form))throw new TypeError("The `form` option must be an Object");{let u=!D.default.string(r["content-type"]);s?(SC.default(t.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${t.body.getBoundary()}`),this[on]=t.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[on]=new nn.URLSearchParams(t.form).toString()):(u&&(r["content-type"]="application/json"),this[on]=t.stringifyJson(t.json));let c=await F4.default(this[on],t.headers);D.default.undefined(r["content-length"])&&D.default.undefined(r["transfer-encoding"])&&!a&&!D.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Zi]=Number(r["content-length"])||void 0}async _onResponseBase(t){let{options:r}=this,{url:n}=r;this[BC]=t,r.decompress&&(t=C4(t));let i=t.statusCode,s=t;s.statusMessage=s.statusMessage?s.statusMessage:xC.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=t.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[kC]=s.isFromCache,this[Xi]=Number(t.headers["content-length"])||void 0,this[pc]=t,t.once("end",()=>{this[Xi]=this[Ji],this.emit("downloadProgress",this.downloadProgress)}),t.once("error",a=>{t.destroy(),this._beforeError(new co(a,this))}),t.once("aborted",()=>{this._beforeError(new co({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=t.headers["set-cookie"];if(D.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&t.headers.location&&H4.has(i)){if(t.resume(),this[He]&&(this[V0](),delete this[He],this[OC]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[on]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new mc(this));return}try{let f=function(h){return h.protocol==="unix:"||h.hostname==="unix"},u=Buffer.from(t.headers.location,"binary").toString(),c=new nn.URL(u,n),l=c.toString();if(decodeURI(l),!f(n)&&f(c)){this._beforeError(new Re("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let h of r.hooks.beforeRedirect)await h(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!B4.isResponseOk(s)){this._beforeError(new gc(s));return}t.on("readable",()=>{this[dc]&&this._read()}),this.on("resume",()=>{t.resume()}),this.on("pause",()=>{t.pause()}),t.once("end",()=>{this.push(null)}),this.emit("response",t);for(let a of this[hc])if(!a.headersSent){for(let u in t.headers){let c=r.decompress?u!=="content-encoding":!0,l=t.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(t){try{await this._onResponseBase(t)}catch(r){this._beforeError(r)}}_onRequest(t){let{options:r}=this,{timeout:n,url:i}=r;D4.default(t),this[V0]=RC.default(t,n,i);let s=r.cache?"cacheableResponse":"response";t.once(s,u=>{this._onResponse(u)}),t.once("error",u=>{var c;t.destroy(),(c=t.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof RC.TimeoutError?new bc(u,this.timings,this):new Re(u.message,u,this),this._beforeError(u)}),this[OC]=T4.default(t,this,U4),this[He]=t,this.emit("uploadProgress",this.uploadProgress);let o=this[on],a=this.redirects.length===0?this:t;D.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new _c(u,this))})):(this._unlockWrite(),D.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",t)}async _createCacheableRequest(t,r){return new Promise((n,i)=>{Object.assign(r,O4.default(t)),delete r.url;let s,o=Y0.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=t,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var t,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let w in a)if(D.default.undefined(a[w]))delete a[w];else if(D.default.null_(a[w]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${w}\` header`);if(o.decompress&&D.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=N4?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let w=await o.cookieJar.getCookieString(o.url.toString());D.default.nonEmptyString(w)&&(o.headers.cookie=w)}for(let w of o.hooks.beforeRequest){let C=await w(o);if(!D.default.undefined(C)){o.request=()=>C;break}}o.body&&this[on]!==o.body&&(this[on]=o.body);let{agent:u,request:c,timeout:l,url:f}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),f.hostname==="unix"){let w=/(?<socketPath>.+?):(?<path>.+)/.exec(`${f.pathname}${f.search}`);if(w!=null&&w.groups){let{socketPath:C,path:N}=w.groups;Object.assign(o,{socketPath:C,path:N,host:""})}}let h=f.protocol==="https:",g;o.http2?g=S4.auto:g=h?A4.request:xC.request;let b=(t=o.request)!==null&&t!==void 0?t:g,_=o.cache?this._createCacheableRequest:b;u&&!o.http2&&(o.agent=u[h?"https":"http"]),o[He]=b,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,p.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=TC.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let w=await _(f,p);D.default.undefined(w)&&(w=g(f,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),q4(w)?this._onRequest(w):this.writable?(this.once("finish",()=>{this._onResponse(w)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(w)}catch(w){throw w instanceof CC.CacheError?new yc(w,this):new Re(w.message,w,this)}}async _error(t){try{for(let r of this.options.hooks.beforeError)t=await r(t)}catch(r){t=new Re(r.message,r,this)}this.destroy(t)}_beforeError(t){if(this[es])return;let{options:r}=this,n=this.retryCount+1;this[es]=!0,t instanceof Re||(t=new Re(t.message,t,this));let i=t,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await P4.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:L4.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Re(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new Re(u.message,t,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,t))};this[IC]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[dc]=!0;let t=this[pc];if(t&&!this[es]){t.readableLength&&(this[dc]=!1);let r;for(;(r=t.read())!==null;){this[Ji]+=r.length,this[PC]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(t,r,n){let i=()=>{this._writeRequest(t,r,n)};this.requestInitialized?i():this[uo].push(i)}_writeRequest(t,r,n){this[He].destroyed||(this._progressCallbacks.push(()=>{this[Qi]+=Buffer.byteLength(t,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[He].write(t,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(t){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(He in this)){t();return}if(this[He].destroyed){t();return}this[He].end(n=>{n||(this[Zi]=this[Qi],this.emit("uploadProgress",this.uploadProgress),this[He].emit("upload-complete")),t(n)})};this.requestInitialized?r():this[uo].push(r)}_destroy(t,r){var n;this[es]=!0,clearTimeout(this[IC]),He in this&&(this[V0](),!((n=this[pc])===null||n===void 0)&&n.complete||this[He].destroy()),t!==null&&!D.default.undefined(t)&&!(t instanceof Re)&&(t=new Re(t.message,t,this)),r(t)}get _isAboutToError(){return this[es]}get ip(){var t;return(t=this.socket)===null||t===void 0?void 0:t.remoteAddress}get aborted(){var t,r,n;return((r=(t=this[He])===null||t===void 0?void 0:t.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[BC])===null||n===void 0)&&n.complete)}get socket(){var t,r;return(r=(t=this[He])===null||t===void 0?void 0:t.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let t;return this[Xi]?t=this[Ji]/this[Xi]:this[Xi]===this[Ji]?t=1:t=0,{percent:t,transferred:this[Ji],total:this[Xi]}}get uploadProgress(){let t;return this[Zi]?t=this[Qi]/this[Zi]:this[Zi]===this[Qi]?t=1:t=0,{percent:t,transferred:this[Qi],total:this[Zi]}}get timings(){var t;return(t=this[He])===null||t===void 0?void 0:t.timings}get isFromCache(){return this[kC]}pipe(t,r){if(this[PC])throw new Error("Failed to pipe. The response has been emitted already.");return t instanceof W0.ServerResponse&&this[hc].add(t),super.pipe(t,r)}unpipe(t){return t instanceof W0.ServerResponse&&this[hc].delete(t),super.unpipe(t),this}};se.default=wc});var fo=m($t=>{"use strict";var G4=$t&&$t.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),W4=$t&&$t.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&G4(t,e,r)};Object.defineProperty($t,"__esModule",{value:!0});$t.CancelError=$t.ParseError=void 0;var LC=lo(),K0=class extends LC.RequestError{constructor(t,r){let{options:n}=r.request;super(`${t.message} in "${n.url.toString()}"`,t,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};$t.ParseError=K0;var X0=class extends LC.RequestError{constructor(t){super("Promise was canceled",{},t),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};$t.CancelError=X0;W4(lo(),$t)});var MC=m(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});var NC=fo(),z4=(e,t,r,n)=>{let{rawBody:i}=e;try{if(t==="text")return i.toString(n);if(t==="json")return i.length===0?"":r(i.toString());if(t==="buffer")return i;throw new NC.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(s){throw new NC.ParseError(s,e)}};J0.default=z4});var Z0=m(an=>{"use strict";var V4=an&&an.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y4=an&&an.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&V4(t,e,r)};Object.defineProperty(an,"__esModule",{value:!0});var K4=require("events"),X4=Fr(),J4=Lx(),vc=fo(),qC=MC(),jC=lo(),Z4=B0(),Q4=H0(),HC=$0(),e9=["request","response","redirect","uploadProgress","downloadProgress"];function $C(e){let t,r,n=new K4.EventEmitter,i=new J4((o,a,u)=>{let c=l=>{let f=new jC.default(void 0,e);f.retryCount=l,f._noPipe=!0,u(()=>f.destroy()),u.shouldReject=!1,u(()=>a(new vc.CancelError(f))),t=f,f.once("response",async b=>{var _;if(b.retryCount=l,b.request.aborted)return;let p;try{p=await Q4.default(f),b.rawBody=p}catch{return}if(f._isAboutToError)return;let w=((_=b.headers["content-encoding"])!==null&&_!==void 0?_:"").toLowerCase(),C=["gzip","deflate","br"].includes(w),{options:N}=f;if(C&&!N.decompress)b.body=p;else try{b.body=qC.default(b,N.responseType,N.parseJson,N.encoding)}catch(W){if(b.body=p.toString(),HC.isResponseOk(b)){f._beforeError(W);return}}try{for(let[W,M]of N.hooks.afterResponse.entries())b=await M(b,async X=>{let z=jC.default.normalizeArguments(void 0,{...X,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},N);z.hooks.afterResponse=z.hooks.afterResponse.slice(0,W);for(let ee of z.hooks.beforeRetry)await ee(z);let Y=$C(z);return u(()=>{Y.catch(()=>{}),Y.cancel()}),Y})}catch(W){f._beforeError(new vc.RequestError(W.message,W,f));return}if(r=b,!HC.isResponseOk(b)){f._beforeError(new vc.HTTPError(b));return}f.destroy(),o(f.options.resolveBodyOnly?b.body:b)});let h=b=>{if(i.isCanceled)return;let{options:_}=f;if(b instanceof vc.HTTPError&&!_.throwHttpErrors){let{response:p}=b;o(f.options.resolveBodyOnly?p.body:p);return}a(b)};f.once("error",h);let g=f.options.body;f.once("retry",(b,_)=>{var p,w;if(g===((p=_.request)===null||p===void 0?void 0:p.options.body)&&X4.default.nodeStream((w=_.request)===null||w===void 0?void 0:w.options.body)){h(_);return}c(b)}),Z4.default(f,n,e9)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return qC.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=t.options;return!t.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}an.default=$C;Y4(fo(),an)});var UC=m(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});var t9=fo();function r9(e,...t){let r=(async()=>{if(e instanceof t9.RequestError)try{for(let i of t)if(i)for(let s of i)e=await s(e)}catch(i){e=i}throw e})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Q0.default=r9});var zC=m(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var GC=Fr();function WC(e){for(let t of Object.values(e))(GC.default.plainObject(t)||GC.default.array(t))&&WC(t);return Object.freeze(e)}em.default=WC});var YC=m(VC=>{"use strict";Object.defineProperty(VC,"__esModule",{value:!0})});var tm=m(kt=>{"use strict";var n9=kt&&kt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),i9=kt&&kt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n9(t,e,r)};Object.defineProperty(kt,"__esModule",{value:!0});kt.defaultHandler=void 0;var KC=Fr(),Ot=Z0(),s9=UC(),Dc=lo(),o9=zC(),a9={RequestError:Ot.RequestError,CacheError:Ot.CacheError,ReadError:Ot.ReadError,HTTPError:Ot.HTTPError,MaxRedirectsError:Ot.MaxRedirectsError,TimeoutError:Ot.TimeoutError,ParseError:Ot.ParseError,CancelError:Ot.CancelError,UnsupportedProtocolError:Ot.UnsupportedProtocolError,UploadError:Ot.UploadError},u9=async e=>new Promise(t=>{setTimeout(t,e)}),{normalizeArguments:Ac}=Dc.default,XC=(...e)=>{let t;for(let r of e)t=Ac(void 0,r,t);return t},c9=e=>e.isStream?new Dc.default(void 0,e):Ot.default(e),l9=e=>"defaults"in e&&"options"in e.defaults,f9=["get","post","put","patch","head","delete"];kt.defaultHandler=(e,t)=>t(e);var JC=(e,t)=>{if(e)for(let r of e)r(t)},ZC=e=>{e._rawHandlers=e.handlers,e.handlers=e.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.isStream&&o){let u=a,{then:c,catch:l,finally:f}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=f}return a});let t=(n,i={},s)=>{var o,a;let u=0,c=l=>e.handlers[u++](l,u===e.handlers.length?c9:c);if(KC.default.plainObject(n)){let l={...n,...i};Dc.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{JC(e.options.hooks.init,i),JC((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(h){l=h}let f=Ac(n,i,s!=null?s:e.options);if(f[Dc.kIsNormalizedAlready]=!0,l)throw new Ot.RequestError(l.message,l,f);return c(f)}catch(l){if(i.isStream)throw l;return s9.default(l,e.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};t.extend=(...n)=>{let i=[e.options],s=[...e._rawHandlers],o;for(let a of n)l9(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==kt.defaultHandler),s.length===0&&s.push(kt.defaultHandler),ZC({options:XC(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=Ac(n,i,e.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!KC.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await u9(o.backoff);let l=await t(void 0,void 0,s),f=await o.transform(l),h=[];for(let b of f)if(o.filter(b,a,h)&&(!o.shouldContinue(b,a,h)||(yield b,o.stackAllItems&&a.push(b),h.push(b),--u<=0)))return;let g=o.paginate(l,a,h);if(g===!1)return;g===l.request.options?s=l.request.options:g!==void 0&&(s=Ac(void 0,g,s)),c++}};t.paginate=r,t.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},t.paginate.each=r,t.stream=(n,i)=>t(n,{...i,isStream:!0});for(let n of f9)t[n]=(i,s)=>t(i,{...s,method:n}),t.stream[n]=(i,s)=>t(i,{...s,method:n,isStream:!0});return Object.assign(t,a9),Object.defineProperty(t,"defaults",{value:e.mutableDefaults?e:o9.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:!0}),t.mergeOptions=XC,t};kt.default=ZC;i9(YC(),kt)});var tS=m((Tr,xc)=>{"use strict";var h9=Tr&&Tr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),QC=Tr&&Tr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&h9(t,e,r)};Object.defineProperty(Tr,"__esModule",{value:!0});var d9=require("url"),eS=tm(),p9={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:e=>e.request.options.responseType==="json"?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;let t=e.headers.link.split(","),r;for(let n of t){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new d9.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[eS.defaultHandler],mutableDefaults:!1},rm=eS.default(p9);Tr.default=rm;xc.exports=rm;xc.exports.default=rm;xc.exports.__esModule=!0;QC(tm(),Tr);QC(Z0(),Tr)});var uS=m((yU,aS)=>{function Pt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}aS.exports=Pt;Pt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Pt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Pt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Pt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Pt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Pt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Pt.prototype.start=Pt.prototype.try;Pt.prototype.errors=function(){return this._errors};Pt.prototype.attempts=function(){return this._attempts};Pt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var cS=m(Nn=>{var g9=uS();Nn.operation=function(e){var t=Nn.timeouts(e);return new g9(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Nn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};Nn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Nn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(u){var c=Nn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){u.apply(e,l)})}.bind(e,o),e[s].options=t}}});var fS=m((bU,lS)=>{lS.exports=cS()});var dS=m((EU,hS)=>{var y9=fS();function _9(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=y9.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,f){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(a,l)}catch(h){u(h,l);return}Promise.resolve(f).then(n).catch(function(g){u(g,l)})}o.attempt(c)}return new Promise(r)}hS.exports=_9});var qS=re(require("http")),jS=re(require("https")),HS=require("picocolors"),Ue=require("commander");var sR=re(Tm());function jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e){return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function Hc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $c(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hc(e)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cn(e)}function or(e,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},or(e,t)}function Uc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}function Gc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Wc(){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 qn(e,t,r){return Wc()?qn=Reflect.construct.bind():qn=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&or(c,o.prototype),c},qn.apply(null,arguments)}function ss(e){var t=typeof Map=="function"?new Map:void 0;return ss=function(n){if(n===null||!Gc(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return qn(n,arguments,cn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),or(i,n)},ss(e)}var Zc=re(Vm()),Do=re(require("path")),xo=re(require("fs-extra")),oR=function(e){Uc(t,e);function t(r){var n;return jc(this,t),n=$c(this,cn(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(ss(Error));function aR(e,t){try{var r=xo.default.readJsonSync(Do.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function uR(e){try{var t=xo.default.readJsonSync(Do.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function cR(e){var t=xo.default.existsSync(Do.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function Ym(e){var t={current:void 0},r=(0,Zc.sync)(function(n){return[uR(n),aR(n,t),cR(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new oR(e);return r===void 0?t.current:r}var lR=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,fR=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,hR=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Qc={Space_Separator:lR,ID_Start:fR,ID_Continue:hR},xe={isSpaceSeparator(e){return typeof e=="string"&&Qc.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Qc.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Qc.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},tl,tt,ur,So,Pr,Nt,Be,il,as,dR=function(t,r){tl=String(t),tt="start",ur=[],So=0,Pr=1,Nt=0,Be=void 0,il=void 0,as=void 0;do Be=pR(),yR[tt]();while(Be.type!=="eof");return typeof r=="function"?rl({"":as},"",r):as};function rl(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=rl(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=rl(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Q,Z,os,ar,te;function pR(){for(Q="default",Z="",os=!1,ar=1;;){te=cr();let e=Xm[Q]();if(e)return e}}function cr(){if(tl[So])return String.fromCodePoint(tl.codePointAt(So))}function T(){let e=cr();return e===`
|
31
|
+
`?(Pr++,Nt=0):e?Nt+=e.length:Nt++,e&&(So+=e.length),e}var Xm={default(){switch(te){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
32
|
+
`:case"\r":case"\u2028":case"\u2029":T();return;case"/":T(),Q="comment";return;case void 0:return T(),me("eof")}if(xe.isSpaceSeparator(te)){T();return}return Xm[tt]()},comment(){switch(te){case"*":T(),Q="multiLineComment";return;case"/":T(),Q="singleLineComment";return}throw ge(T())},multiLineComment(){switch(te){case"*":T(),Q="multiLineCommentAsterisk";return;case void 0:throw ge(T())}T()},multiLineCommentAsterisk(){switch(te){case"*":T();return;case"/":T(),Q="default";return;case void 0:throw ge(T())}T(),Q="multiLineComment"},singleLineComment(){switch(te){case`
|
33
|
+
`:case"\r":case"\u2028":case"\u2029":T(),Q="default";return;case void 0:return T(),me("eof")}T()},value(){switch(te){case"{":case"[":return me("punctuator",T());case"n":return T(),ln("ull"),me("null",null);case"t":return T(),ln("rue"),me("boolean",!0);case"f":return T(),ln("alse"),me("boolean",!1);case"-":case"+":T()==="-"&&(ar=-1),Q="sign";return;case".":Z=T(),Q="decimalPointLeading";return;case"0":Z=T(),Q="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Z=T(),Q="decimalInteger";return;case"I":return T(),ln("nfinity"),me("numeric",1/0);case"N":return T(),ln("aN"),me("numeric",NaN);case'"':case"'":os=T()==='"',Z="",Q="string";return}throw ge(T())},identifierNameStartEscape(){if(te!=="u")throw ge(T());T();let e=nl();switch(e){case"$":case"_":break;default:if(!xe.isIdStartChar(e))throw Km();break}Z+=e,Q="identifierName"},identifierName(){switch(te){case"$":case"_":case"\u200C":case"\u200D":Z+=T();return;case"\\":T(),Q="identifierNameEscape";return}if(xe.isIdContinueChar(te)){Z+=T();return}return me("identifier",Z)},identifierNameEscape(){if(te!=="u")throw ge(T());T();let e=nl();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!xe.isIdContinueChar(e))throw Km();break}Z+=e,Q="identifierName"},sign(){switch(te){case".":Z=T(),Q="decimalPointLeading";return;case"0":Z=T(),Q="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Z=T(),Q="decimalInteger";return;case"I":return T(),ln("nfinity"),me("numeric",ar*(1/0));case"N":return T(),ln("aN"),me("numeric",NaN)}throw ge(T())},zero(){switch(te){case".":Z+=T(),Q="decimalPoint";return;case"e":case"E":Z+=T(),Q="decimalExponent";return;case"x":case"X":Z+=T(),Q="hexadecimal";return}return me("numeric",ar*0)},decimalInteger(){switch(te){case".":Z+=T(),Q="decimalPoint";return;case"e":case"E":Z+=T(),Q="decimalExponent";return}if(xe.isDigit(te)){Z+=T();return}return me("numeric",ar*Number(Z))},decimalPointLeading(){if(xe.isDigit(te)){Z+=T(),Q="decimalFraction";return}throw ge(T())},decimalPoint(){switch(te){case"e":case"E":Z+=T(),Q="decimalExponent";return}if(xe.isDigit(te)){Z+=T(),Q="decimalFraction";return}return me("numeric",ar*Number(Z))},decimalFraction(){switch(te){case"e":case"E":Z+=T(),Q="decimalExponent";return}if(xe.isDigit(te)){Z+=T();return}return me("numeric",ar*Number(Z))},decimalExponent(){switch(te){case"+":case"-":Z+=T(),Q="decimalExponentSign";return}if(xe.isDigit(te)){Z+=T(),Q="decimalExponentInteger";return}throw ge(T())},decimalExponentSign(){if(xe.isDigit(te)){Z+=T(),Q="decimalExponentInteger";return}throw ge(T())},decimalExponentInteger(){if(xe.isDigit(te)){Z+=T();return}return me("numeric",ar*Number(Z))},hexadecimal(){if(xe.isHexDigit(te)){Z+=T(),Q="hexadecimalInteger";return}throw ge(T())},hexadecimalInteger(){if(xe.isHexDigit(te)){Z+=T();return}return me("numeric",ar*Number(Z))},string(){switch(te){case"\\":T(),Z+=mR();return;case'"':if(os)return T(),me("string",Z);Z+=T();return;case"'":if(!os)return T(),me("string",Z);Z+=T();return;case`
|
34
34
|
`:case"\r":throw ge(T());case"\u2028":case"\u2029":_R(te);break;case void 0:throw ge(T())}Z+=T()},start(){switch(te){case"{":case"[":return me("punctuator",T())}Q="value"},beforePropertyName(){switch(te){case"$":case"_":Z=T(),Q="identifierName";return;case"\\":T(),Q="identifierNameStartEscape";return;case"}":return me("punctuator",T());case'"':case"'":os=T()==='"',Q="string";return}if(xe.isIdStartChar(te)){Z+=T(),Q="identifierName";return}throw ge(T())},afterPropertyName(){if(te===":")return me("punctuator",T());throw ge(T())},beforePropertyValue(){Q="value"},afterPropertyValue(){switch(te){case",":case"}":return me("punctuator",T())}throw ge(T())},beforeArrayValue(){if(te==="]")return me("punctuator",T());Q="value"},afterArrayValue(){switch(te){case",":case"]":return me("punctuator",T())}throw ge(T())},end(){throw ge(T())}};function me(e,t){return{type:e,value:t,line:Pr,column:Nt}}function ln(e){for(let t of e){if(cr()!==t)throw ge(T());T()}}function mR(){switch(cr()){case"b":return T(),"\b";case"f":return T(),"\f";case"n":return T(),`
|
35
|
-
`;case"r":return T(),"\r";case"t":return T()," ";case"v":return T(),"\v";case"0":if(T(),xe.isDigit(cr()))throw ge(T());return"\0";case"x":return T(),gR();case"u":return T(),
|
35
|
+
`;case"r":return T(),"\r";case"t":return T()," ";case"v":return T(),"\v";case"0":if(T(),xe.isDigit(cr()))throw ge(T());return"\0";case"x":return T(),gR();case"u":return T(),nl();case`
|
36
36
|
`:case"\u2028":case"\u2029":return T(),"";case"\r":return T(),cr()===`
|
37
|
-
`&&T(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ge(T());case void 0:throw ge(T())}return T()}function gR(){let e="",t=cr();if(!xe.isHexDigit(t)||(e+=T(),t=cr(),!xe.isHexDigit(t)))throw ge(T());return e+=T(),String.fromCodePoint(parseInt(e,16))}function
|
37
|
+
`&&T(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ge(T());case void 0:throw ge(T())}return T()}function gR(){let e="",t=cr();if(!xe.isHexDigit(t)||(e+=T(),t=cr(),!xe.isHexDigit(t)))throw ge(T());return e+=T(),String.fromCodePoint(parseInt(e,16))}function nl(){let e="",t=4;for(;t-- >0;){let r=cr();if(!xe.isHexDigit(r))throw ge(T());e+=T()}return String.fromCodePoint(parseInt(e,16))}var yR={start(){if(Be.type==="eof")throw fn();el()},beforePropertyName(){switch(Be.type){case"identifier":case"string":il=Be.value,tt="afterPropertyName";return;case"punctuator":Co();return;case"eof":throw fn()}},afterPropertyName(){if(Be.type==="eof")throw fn();tt="beforePropertyValue"},beforePropertyValue(){if(Be.type==="eof")throw fn();el()},beforeArrayValue(){if(Be.type==="eof")throw fn();if(Be.type==="punctuator"&&Be.value==="]"){Co();return}el()},afterPropertyValue(){if(Be.type==="eof")throw fn();switch(Be.value){case",":tt="beforePropertyName";return;case"}":Co()}},afterArrayValue(){if(Be.type==="eof")throw fn();switch(Be.value){case",":tt="beforeArrayValue";return;case"]":Co()}},end(){}};function el(){let e;switch(Be.type){case"punctuator":switch(Be.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Be.value;break}if(as===void 0)as=e;else{let t=ur[ur.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,il,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ur.push(e),Array.isArray(e)?tt="beforeArrayValue":tt="beforePropertyName";else{let t=ur[ur.length-1];t==null?tt="end":Array.isArray(t)?tt="afterArrayValue":tt="afterPropertyValue"}}function Co(){ur.pop();let e=ur[ur.length-1];e==null?tt="end":Array.isArray(e)?tt="afterArrayValue":tt="afterPropertyValue"}function ge(e){return Ro(e===void 0?`JSON5: invalid end of input at ${Pr}:${Nt}`:`JSON5: invalid character '${Jm(e)}' at ${Pr}:${Nt}`)}function fn(){return Ro(`JSON5: invalid end of input at ${Pr}:${Nt}`)}function Km(){return Nt-=5,Ro(`JSON5: invalid identifier character at ${Pr}:${Nt}`)}function _R(e){console.warn(`JSON5: '${Jm(e)}' in strings is not valid ECMAScript; consider escaping`)}function Jm(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function Ro(e){let t=new SyntaxError(e);return t.lineNumber=Pr,t.columnNumber=Nt,t}var bR=function(t,r,n){let i=[],s="",o,a,u="",c;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,c=r.quote,r=r.replacer),typeof r=="function")a=r;else if(Array.isArray(r)){o=[];for(let _ of r){let p;typeof _=="string"?p=_:(typeof _=="number"||_ instanceof String||_ instanceof Number)&&(p=String(_)),p!==void 0&&o.indexOf(p)<0&&o.push(p)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),u=" ".substr(0,n)):typeof n=="string"&&(u=n.substr(0,10)),l("",{"":t});function l(_,p){let w=p[_];switch(w!=null&&(typeof w.toJSON5=="function"?w=w.toJSON5(_):typeof w.toJSON=="function"&&(w=w.toJSON(_))),a&&(w=a.call(p,_,w)),w instanceof Number?w=Number(w):w instanceof String?w=String(w):w instanceof Boolean&&(w=w.valueOf()),w){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof w=="string")return f(w,!1);if(typeof w=="number")return String(w);if(typeof w=="object")return Array.isArray(w)?b(w):h(w)}function f(_){let p={"'":.1,'"':.2},w={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},C="";for(let W=0;W<_.length;W++){let M=_[W];switch(M){case"'":case'"':p[M]++,C+=M;continue;case"\0":if(xe.isDigit(_[W+1])){C+="\\x00";continue}}if(w[M]){C+=w[M];continue}if(M<" "){let X=M.charCodeAt(0).toString(16);C+="\\x"+("00"+X).substring(X.length);continue}C+=M}let N=c||Object.keys(p).reduce((W,M)=>p[W]<p[M]?W:M);return C=C.replace(new RegExp(N,"g"),w[N]),N+C+N}function h(_){if(i.indexOf(_)>=0)throw TypeError("Converting circular structure to JSON5");i.push(_);let p=s;s=s+u;let w=o||Object.keys(_),C=[];for(let W of w){let M=l(W,_);if(M!==void 0){let X=g(W)+":";u!==""&&(X+=" "),X+=M,C.push(X)}}let N;if(C.length===0)N="{}";else{let W;if(u==="")W=C.join(","),N="{"+W+"}";else{let M=`,
|
38
38
|
`+s;W=C.join(M),N=`{
|
39
39
|
`+s+W+`,
|
40
40
|
`+p+"}"}}return i.pop(),s=p,N}function g(_){if(_.length===0)return f(_,!0);let p=String.fromCodePoint(_.codePointAt(0));if(!xe.isIdStartChar(p))return f(_,!0);for(let w=p.length;w<_.length;w++)if(!xe.isIdContinueChar(String.fromCodePoint(_.codePointAt(w))))return f(_,!0);return _}function b(_){if(i.indexOf(_)>=0)throw TypeError("Converting circular structure to JSON5");i.push(_);let p=s;s=s+u;let w=[];for(let N=0;N<_.length;N++){let W=l(String(N),_);w.push(W!==void 0?W:"null")}let C;if(w.length===0)C="[]";else if(u==="")C="["+w.join(",")+"]";else{let N=`,
|
41
41
|
`+s,W=w.join(N);C=`[
|
42
42
|
`+s+W+`,
|
43
|
-
`+p+"]"}return i.pop(),s=p,C}},ER={parse:dR,stringify:bR},wR=ER,
|
43
|
+
`+p+"]"}return i.pop(),s=p,C}},ER={parse:dR,stringify:bR},wR=ER,Fo=wR;var sl=re(require("fs")),us=re(require("path"));function cs({target:e,cwd:t,contentCheck:r}){let n=us.default.parse(t).root,i=!1,s=t;for(;!i&&s!==n;){if(r)try{let o=sl.default.readFileSync(us.default.join(s,e)).toString();if(r(o)){i=!0;break}}catch{}else if(sl.default.existsSync(us.default.join(s,e))){i=!0;break}s=us.default.dirname(s)}return i?s:null}function vR(e){let t=Fo.parse(e);return!(t&&"extends"in t)}var ol={};function ls(e,t){var s;let r=(s=t==null?void 0:t.cache)!=null?s:!0,n=e||process.cwd();if(r&&ol[n])return ol[n];let i=cs({target:"turbo.json",cwd:n,contentCheck:vR});if(!i)try{if(i=Ym(n),!i)return null}catch{return null}return r&&(ol[n]=i),i}var Ts=re(require("fs")),vn=re(require("path"));function dg(e){return typeof e=="undefined"||e===null}function AR(e){return typeof e=="object"&&e!==null}function DR(e){return Array.isArray(e)?e:dg(e)?[]:[e]}function xR(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function CR(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function SR(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var RR=dg,FR=AR,TR=DR,OR=CR,kR=SR,PR=xR,ke={isNothing:RR,isObject:FR,toArray:TR,repeat:OR,isNegativeZero:kR,extend:PR};function pg(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
44
44
|
|
45
|
-
`+e.mark.snippet),n+" "+r):n}function hs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=
|
46
|
-
`+a;for(c=
|
45
|
+
`+e.mark.snippet),n+" "+r):n}function hs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=pg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}hs.prototype=Object.create(Error.prototype);hs.prototype.constructor=hs;hs.prototype.toString=function(t){return this.name+": "+pg(this,t)};var rt=hs;function al(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function ul(e,t){return ke.repeat(" ",t-e.length)+e}function BR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=al(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),f),a=ke.repeat(" ",t.indent)+ul((e.line-u+1).toString(),l)+" | "+c.str+`
|
46
|
+
`+a;for(c=al(e.buffer,n[o],i[o],e.position,f),a+=ke.repeat(" ",t.indent)+ul((e.line+1).toString(),l)+" | "+c.str+`
|
47
47
|
`,a+=ke.repeat("-",t.indent+l+3+c.pos)+`^
|
48
|
-
`,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=
|
49
|
-
`;return a.replace(/\n$/,"")}var IR=BR,LR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],NR=["scalar","sequence","mapping"];function MR(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function qR(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(LR.indexOf(r)===-1)throw new rt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=MR(t.styleAliases||null),NR.indexOf(this.kind)===-1)throw new rt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var je=qR;function
|
50
|
-
\r`;function cF(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=
|
51
|
-
`: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 TF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var
|
52
|
-
`,t-1))}function kF(e,t,r){var n,i,s,o,a,u,c,l,f=e.kind,h=e.result,g;if(g=e.input.charCodeAt(e.position),ot(g)||$n(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=e.input.charCodeAt(e.position+1),ot(i)||r&&$n(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;g!==0;){if(g===58){if(i=e.input.charCodeAt(e.position+1),ot(i)||r&&$n(i))break}else if(g===35){if(n=e.input.charCodeAt(e.position-1),ot(n))break}else{if(e.position===e.lineStart&&
|
53
|
-
`,s?1+u:u):i===
|
48
|
+
`,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=al(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),f),a+=ke.repeat(" ",t.indent)+ul((e.line+u+1).toString(),l)+" | "+c.str+`
|
49
|
+
`;return a.replace(/\n$/,"")}var IR=BR,LR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],NR=["scalar","sequence","mapping"];function MR(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function qR(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(LR.indexOf(r)===-1)throw new rt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=MR(t.styleAliases||null),NR.indexOf(this.kind)===-1)throw new rt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var je=qR;function Zm(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function jR(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;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(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function ll(e){return this.extend(e)}ll.prototype.extend=function(t){var r=[],n=[];if(t instanceof je)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new rt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof je))throw new rt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new rt("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 rt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof je))throw new rt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ll.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Zm(i,"implicit"),i.compiledExplicit=Zm(i,"explicit"),i.compiledTypeMap=jR(i.compiledImplicit,i.compiledExplicit),i};var mg=ll,gg=new je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),yg=new je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),_g=new je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),bg=new mg({explicit:[gg,yg,_g]});function HR(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function $R(){return null}function UR(e){return e===null}var Eg=new je("tag:yaml.org,2002:null",{kind:"scalar",resolve:HR,construct:$R,predicate:UR,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function GR(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function WR(e){return e==="true"||e==="True"||e==="TRUE"}function zR(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var wg=new je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:GR,construct:WR,predicate:zR,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 VR(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function YR(e){return 48<=e&&e<=55}function KR(e){return 48<=e&&e<=57}function XR(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!VR(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!YR(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!KR(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function JR(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function ZR(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ke.isNegativeZero(e)}var vg=new je("tag:yaml.org,2002:int",{kind:"scalar",resolve:XR,construct:JR,predicate:ZR,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"]}}),QR=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function eF(e){return!(e===null||!QR.test(e)||e[e.length-1]==="_")}function tF(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var rF=/^[-+]?[0-9]+e/;function nF(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ke.isNegativeZero(e))return"-0.0";return r=e.toString(10),rF.test(r)?r.replace("e",".e"):r}function iF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ke.isNegativeZero(e))}var Ag=new je("tag:yaml.org,2002:float",{kind:"scalar",resolve:eF,construct:tF,predicate:iF,represent:nF,defaultStyle:"lowercase"}),Dg=bg.extend({implicit:[Eg,wg,vg,Ag]}),xg=Dg,Cg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Sg=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 sF(e){return e===null?!1:Cg.exec(e)!==null||Sg.exec(e)!==null}function oF(e){var t,r,n,i,s,o,a,u=0,c=null,l,f,h;if(t=Cg.exec(e),t===null&&(t=Sg.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function aF(e){return e.toISOString()}var Rg=new je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:sF,construct:oF,instanceOf:Date,represent:aF});function uF(e){return e==="<<"||e===null}var Fg=new je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:uF}),ml=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
50
|
+
\r`;function cF(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=ml;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function lF(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=ml,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%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 fF(e){var t="",r=0,n,i,s=e.length,o=ml;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function hF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Tg=new je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:cF,construct:lF,predicate:hF,represent:fF}),dF=Object.prototype.hasOwnProperty,pF=Object.prototype.toString;function mF(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,pF.call(i)!=="[object Object]")return!1;for(s in i)if(dF.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function gF(e){return e!==null?e:[]}var Og=new je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:mF,construct:gF}),yF=Object.prototype.toString;function _F(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],yF.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function bF(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var kg=new je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_F,construct:bF}),EF=Object.prototype.hasOwnProperty;function wF(e){if(e===null)return!0;var t,r=e;for(t in r)if(EF.call(r,t)&&r[t]!==null)return!1;return!0}function vF(e){return e!==null?e:{}}var Pg=new je("tag:yaml.org,2002:set",{kind:"mapping",resolve:wF,construct:vF}),gl=xg.extend({implicit:[Rg,Fg],explicit:[Tg,Og,kg,Pg]}),Ir=Object.prototype.hasOwnProperty,To=1,Bg=2,Ig=3,Oo=4,cl=1,AF=2,Qm=3,DF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xF=/[\x85\u2028\u2029]/,CF=/[,\[\]\{\}]/,Lg=/^(?:!|!!|![a-z\-]+!)$/i,Ng=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function eg(e){return Object.prototype.toString.call(e)}function Ut(e){return e===10||e===13}function dn(e){return e===9||e===32}function ot(e){return e===9||e===32||e===10||e===13}function $n(e){return e===44||e===91||e===93||e===123||e===125}function SF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function RF(e){return e===120?2:e===117?4:e===85?8:0}function FF(e){return 48<=e&&e<=57?e-48:-1}function tg(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
51
|
+
`: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 TF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Mg=new Array(256),qg=new Array(256);for(hn=0;hn<256;hn++)Mg[hn]=tg(hn)?1:0,qg[hn]=tg(hn);var hn;function OF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||gl,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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 jg(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=IR(r),new rt(t,r)}function V(e,t){throw jg(e,t)}function ko(e,t){e.onWarning&&e.onWarning.call(null,jg(e,t))}var rg={YAML:function(t,r,n){var i,s,o;t.version!==null&&V(t,"duplication of %YAML directive"),n.length!==1&&V(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&V(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&V(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&ko(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&V(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Lg.test(i)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),Ir.call(t.tagMap,i)&&V(t,'there is a previously declared suffix for "'+i+'" tag handle'),Ng.test(s)||V(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{V(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Br(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||V(e,"expected valid JSON character");else DF.test(a)&&V(e,"the stream contains non-printable characters");e.result+=a}}function ng(e,t,r,n){var i,s,o,a;for(ke.isObject(r)||V(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Ir.call(t,s)||(t[s]=r[s],n[s]=!0)}function Un(e,t,r,n,i,s,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&V(e,"nested arrays are not supported inside keys"),typeof i=="object"&&eg(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&eg(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)ng(e,t,s[c],r);else ng(e,t,s,r);else!e.json&&!Ir.call(r,i)&&Ir.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,V(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function yl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):V(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Fe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;dn(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Ut(i))for(yl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ko(e,"deficient indentation"),n}function Io(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ot(r)))}function _l(e,t){t===1?e.result+=" ":t>1&&(e.result+=ke.repeat(`
|
52
|
+
`,t-1))}function kF(e,t,r){var n,i,s,o,a,u,c,l,f=e.kind,h=e.result,g;if(g=e.input.charCodeAt(e.position),ot(g)||$n(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=e.input.charCodeAt(e.position+1),ot(i)||r&&$n(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;g!==0;){if(g===58){if(i=e.input.charCodeAt(e.position+1),ot(i)||r&&$n(i))break}else if(g===35){if(n=e.input.charCodeAt(e.position-1),ot(n))break}else{if(e.position===e.lineStart&&Io(e)||r&&$n(g))break;if(Ut(g))if(u=e.line,c=e.lineStart,l=e.lineIndent,Fe(e,!1,-1),e.lineIndent>=t){a=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=l;break}}a&&(Br(e,s,o,!1),_l(e,e.line-u),s=o=e.position,a=!1),dn(g)||(o=e.position+1),g=e.input.charCodeAt(++e.position)}return Br(e,s,o,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function PF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Br(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Ut(r)?(Br(e,n,i,!0),_l(e,Fe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Io(e)?V(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);V(e,"unexpected end of the stream within a single quoted scalar")}function BF(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Br(e,r,e.position,!0),e.position++,!0;if(a===92){if(Br(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Ut(a))Fe(e,!1,t);else if(a<256&&Mg[a])e.result+=qg[a],e.position++;else if((o=RF(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=SF(a))>=0?s=(s<<4)+o:V(e,"expected hexadecimal character");e.result+=TF(s),e.position++}else V(e,"unknown escape sequence");r=n=e.position}else Ut(a)?(Br(e,r,n,!0),_l(e,Fe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Io(e)?V(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}V(e,"unexpected end of the stream within a double quoted scalar")}function IF(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,l,f,h,g,b=Object.create(null),_,p,w,C;if(C=e.input.charCodeAt(e.position),C===91)l=93,g=!1,a=[];else if(C===123)l=125,g=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),C=e.input.charCodeAt(++e.position);C!==0;){if(Fe(e,!0,t),C=e.input.charCodeAt(e.position),C===l)return e.position++,e.tag=o,e.anchor=u,e.kind=g?"mapping":"sequence",e.result=a,!0;r?C===44&&V(e,"expected the node content, but found ','"):V(e,"missed comma between flow collection entries"),p=_=w=null,f=h=!1,C===63&&(c=e.input.charCodeAt(e.position+1),ot(c)&&(f=h=!0,e.position++,Fe(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Gn(e,t,To,!1,!0),p=e.tag,_=e.result,Fe(e,!0,t),C=e.input.charCodeAt(e.position),(h||e.line===n)&&C===58&&(f=!0,C=e.input.charCodeAt(++e.position),Fe(e,!0,t),Gn(e,t,To,!1,!0),w=e.result),g?Un(e,a,b,p,_,w,n,i,s):f?a.push(Un(e,null,b,p,_,w,n,i,s)):a.push(_),Fe(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(r=!0,C=e.input.charCodeAt(++e.position)):r=!1}V(e,"unexpected end of the stream within a flow collection")}function LF(e,t){var r,n,i=cl,s=!1,o=!1,a=t,u=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)cl===i?i=f===43?Qm:AF:V(e,"repeat of a chomping mode identifier");else if((l=FF(f))>=0)l===0?V(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?V(e,"repeat of an indentation width identifier"):(a=t+l-1,o=!0);else break;if(dn(f)){do f=e.input.charCodeAt(++e.position);while(dn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Ut(f)&&f!==0)}for(;f!==0;){for(yl(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Ut(f)){u++;continue}if(e.lineIndent<a){i===Qm?e.result+=ke.repeat(`
|
53
|
+
`,s?1+u:u):i===cl&&s&&(e.result+=`
|
54
54
|
`);break}for(n?dn(f)?(c=!0,e.result+=ke.repeat(`
|
55
55
|
`,s?1+u:u)):c?(c=!1,e.result+=ke.repeat(`
|
56
56
|
`,u+1)):u===0?s&&(e.result+=" "):e.result+=ke.repeat(`
|
57
57
|
`,u):e.result+=ke.repeat(`
|
58
|
-
`,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Ut(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Br(e,r,e.position,!1)}return!0}function
|
59
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new OF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,V(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;)HF(r);return r.documents}function $F(e,t,r){t!==null&&typeof t=="object"&&typeof r=="undefined"&&(r=t,t=null);var n
|
58
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Ut(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Br(e,r,e.position,!1)}return!0}function ig(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!ot(o))));){if(a=!0,e.position++,Fe(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Gn(e,t,Ig,!1,!0),s.push(e.result),Fe(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)V(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function NF(e,t,r){var n,i,s,o,a,u,c=e.tag,l=e.anchor,f={},h=Object.create(null),g=null,b=null,_=null,p=!1,w=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),C=e.input.charCodeAt(e.position);C!==0;){if(!p&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(C===63||C===58)&&ot(n))C===63?(p&&(Un(e,f,h,g,b,null,o,a,u),g=b=_=null),w=!0,p=!0,i=!0):p?(p=!1,i=!0):V(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=n;else{if(o=e.line,a=e.lineStart,u=e.position,!Gn(e,r,Bg,!1,!0))break;if(e.line===s){for(C=e.input.charCodeAt(e.position);dn(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),ot(C)||V(e,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(Un(e,f,h,g,b,null,o,a,u),g=b=_=null),w=!0,p=!1,i=!1,g=e.tag,b=e.result;else if(w)V(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(w)V(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===s||e.lineIndent>t)&&(p&&(o=e.line,a=e.lineStart,u=e.position),Gn(e,t,Oo,!0,i)&&(p?b=e.result:_=e.result),p||(Un(e,f,h,g,b,_,o,a,u),g=b=_=null),Fe(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&C!==0)V(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return p&&Un(e,f,h,g,b,null,o,a,u),w&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),w}function MF(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&V(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):V(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ot(o);)o===33&&(n?V(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Lg.test(i)||V(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),CF.test(s)&&V(e,"tag suffix cannot contain flow indicator characters")}s&&!Ng.test(s)&&V(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{V(e,"tag name is malformed: "+s)}return r?e.tag=s:Ir.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:V(e,'undeclared tag handle "'+i+'"'),!0}function qF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&V(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ot(r)&&!$n(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function jF(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ot(n)&&!$n(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ir.call(e.anchorMap,r)||V(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Fe(e,!0,-1),!0}function Gn(e,t,r,n,i){var s,o,a,u=1,c=!1,l=!1,f,h,g,b,_,p;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Oo===r||Ig===r,n&&Fe(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;MF(e)||qF(e);)Fe(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Oo===r)&&(To===r||Bg===r?_=t:_=t+1,p=e.position-e.lineStart,u===1?a&&(ig(e,p)||NF(e,p,_))||IF(e,_)?l=!0:(o&&LF(e,_)||PF(e,_)||BF(e,_)?l=!0:jF(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&V(e,"alias node should not have any properties")):kF(e,_,To===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=a&&ig(e,p))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&V(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(b=e.implicitTypes[f],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ir.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,g=e.typeMap.multi[e.kind||"fallback"],f=0,h=g.length;f<h;f+=1)if(e.tag.slice(0,g[f].tag.length)===g[f].tag){b=g[f];break}b||V(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&V(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):V(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 HF(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Fe(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ot(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&V(e,"directive name must not be less than one character in length");o!==0;){for(;dn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Ut(o));break}if(Ut(o))break;for(r=e.position;o!==0&&!ot(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&yl(e),Ir.call(rg,n)?rg[n](e,n,i):ko(e,'unknown document directive "'+n+'"')}if(Fe(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,Fe(e,!0,-1)):s&&V(e,"directives end mark is expected"),Gn(e,e.lineIndent-1,Oo,!1,!0),Fe(e,!0,-1),e.checkLineBreaks&&xF.test(e.input.slice(t,e.position))&&ko(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Io(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Fe(e,!0,-1));return}if(e.position<e.length-1)V(e,"end of the stream or a document separator is expected");else return}function Hg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
59
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new OF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,V(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;)HF(r);return r.documents}function $F(e,t,r){t!==null&&typeof t=="object"&&typeof r=="undefined"&&(r=t,t=null);var n=Hg(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function UF(e,t){var r=Hg(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new rt("expected a single document in the stream, but found more")}}var GF=$F,WF=UF,$g={loadAll:GF,load:WF},Ug=Object.prototype.toString,Gg=Object.prototype.hasOwnProperty,bl=65279,zF=9,ds=10,VF=13,YF=32,KF=33,XF=34,fl=35,JF=37,ZF=38,QF=39,e5=42,Wg=44,t5=45,Po=58,r5=61,n5=62,i5=63,s5=64,zg=91,Vg=93,o5=96,Yg=123,a5=124,Kg=125,Ge={};Ge[0]="\\0";Ge[7]="\\a";Ge[8]="\\b";Ge[9]="\\t";Ge[10]="\\n";Ge[11]="\\v";Ge[12]="\\f";Ge[13]="\\r";Ge[27]="\\e";Ge[34]='\\"';Ge[92]="\\\\";Ge[133]="\\N";Ge[160]="\\_";Ge[8232]="\\L";Ge[8233]="\\P";var u5=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],c5=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l5(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&Gg.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function f5(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new rt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ke.repeat("0",n-t.length)+t}var h5=1,ps=2;function d5(e){this.schema=e.schema||gl,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=l5(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==='"'?ps:h5,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 sg(e,t){for(var r=ke.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
|
60
60
|
`,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
61
|
-
`&&(s+=r),s+=o;return s}function
|
62
|
-
`+ke.repeat(" ",e.indent*t)}function p5(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function
|
61
|
+
`&&(s+=r),s+=o;return s}function hl(e,t){return`
|
62
|
+
`+ke.repeat(" ",e.indent*t)}function p5(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Bo(e){return e===YF||e===zF}function ms(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==bl||65536<=e&&e<=1114111}function og(e){return ms(e)&&e!==bl&&e!==VF&&e!==ds}function ag(e,t,r){var n=og(e),i=n&&!Bo(e);return(r?n:n&&e!==Wg&&e!==zg&&e!==Vg&&e!==Yg&&e!==Kg)&&e!==fl&&!(t===Po&&!i)||og(t)&&!Bo(t)&&e===fl||t===Po&&i}function m5(e){return ms(e)&&e!==bl&&!Bo(e)&&e!==t5&&e!==i5&&e!==Po&&e!==Wg&&e!==zg&&e!==Vg&&e!==Yg&&e!==Kg&&e!==fl&&e!==ZF&&e!==e5&&e!==KF&&e!==a5&&e!==r5&&e!==n5&&e!==QF&&e!==XF&&e!==JF&&e!==s5&&e!==o5}function g5(e){return!Bo(e)&&e!==Po}function fs(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Xg(e){var t=/^\n* /;return t.test(e)}var Jg=1,dl=2,Zg=3,Qg=4,Hn=5;function y5(e,t,r,n,i,s,o,a){var u,c=0,l=null,f=!1,h=!1,g=n!==-1,b=-1,_=m5(fs(e,0))&&g5(fs(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=fs(e,u),!ms(c))return Hn;_=_&&ag(c,l,a),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=fs(e,u),c===ds)f=!0,g&&(h=h||u-b-1>n&&e[b+1]!==" ",b=u);else if(!ms(c))return Hn;_=_&&ag(c,l,a),l=c}h=h||g&&u-b-1>n&&e[b+1]!==" "}return!f&&!h?_&&!o&&!i(e)?Jg:s===ps?Hn:dl:r>9&&Xg(e)?Hn:o?s===ps?Hn:dl:h?Qg:Zg}function _5(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===ps?'""':"''";if(!e.noCompatMode&&(u5.indexOf(t)!==-1||c5.test(t)))return e.quotingType===ps?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return p5(e,c)}switch(y5(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case Jg:return t;case dl:return"'"+t.replace(/'/g,"''")+"'";case Zg:return"|"+ug(t,e.indent)+cg(sg(t,s));case Qg:return">"+ug(t,e.indent)+cg(sg(b5(t,o),s));case Hn:return'"'+E5(t)+'"';default:throw new rt("impossible error: invalid scalar style")}}()}function ug(e,t){var r=Xg(e)?String(t):"",n=e[e.length-1]===`
|
63
63
|
`,i=n&&(e[e.length-2]===`
|
64
64
|
`||e===`
|
65
65
|
`),s=i?"+":n?"":"-";return r+s+`
|
66
|
-
`}function
|
66
|
+
`}function cg(e){return e[e.length-1]===`
|
67
67
|
`?e.slice(0,-1):e}function b5(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
|
68
|
-
`);return c=c!==-1?c:e.length,r.lastIndex=c,
|
68
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,lg(e.slice(0,c),t)}(),i=e[0]===`
|
69
69
|
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
|
70
|
-
`:"")+
|
70
|
+
`:"")+lg(u,t),i=s}return n}function lg(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
|
71
71
|
`+e.slice(i,s),i=s+1),o=a;return u+=`
|
72
72
|
`,e.length-i>t&&o>i?u+=e.slice(i,o)+`
|
73
|
-
`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function E5(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=fs(e,i),n=Ge[r],!n&&ms(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||f5(r);return t}function w5(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(lr(e,t,a,!1,!1)||typeof a=="undefined"&&lr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function
|
74
|
-
`:""}var C5=x5,S5={dump:C5};function
|
73
|
+
`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function E5(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=fs(e,i),n=Ge[r],!n&&ms(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||f5(r);return t}function w5(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(lr(e,t,a,!1,!1)||typeof a=="undefined"&&lr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function fg(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(lr(e,t+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&lr(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=hl(e,t)),e.dump&&ds===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function v5(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,l;for(o=0,a=s.length;o<a;o+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),lr(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),lr(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function A5(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,l,f,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new rt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=hl(e,t)),c=o[a],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),lr(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ds===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=hl(e,t)),lr(e,t+1,l,!0,f)&&(e.dump&&ds===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function hg(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,Ug.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(Gg.call(a.represent,u))n=a.represent[u](t,u);else throw new rt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function lr(e,t,r,n,i,s,o){e.tag=null,e.dump=r,hg(e,r,!1)||hg(e,r,!0);var a=Ug.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=e.duplicates.indexOf(r),h=f!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(A5(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(v5(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?fg(e,t-1,e.dump,i):fg(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(w5(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&_5(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new rt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function D5(e,t){var r=[],n=[],i,s;for(pl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function pl(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)pl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)pl(e[n[i]],t,r)}function x5(e,t){t=t||{};var r=new d5(t);r.noRefs||D5(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),lr(r,0,n,!0,!0)?r.dump+`
|
74
|
+
`:""}var C5=x5,S5={dump:C5};function El(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var R5=je,F5=mg,T5=bg,O5=Dg,k5=xg,P5=gl,B5=$g.load,I5=$g.loadAll,L5=S5.dump,N5=rt,M5={binary:Tg,float:Ag,map:_g,null:Eg,pairs:kg,set:Pg,timestamp:Rg,bool:wg,int:vg,merge:Fg,omap:Og,seq:yg,str:gg},q5=El("safeLoad","load"),j5=El("safeLoadAll","loadAll"),H5=El("safeDump","dump"),$5={Type:R5,Schema:F5,FAILSAFE_SCHEMA:T5,JSON_SCHEMA:O5,CORE_SCHEMA:k5,DEFAULT_SCHEMA:P5,load:B5,loadAll:I5,dump:L5,YAMLException:N5,types:M5,safeLoad:q5,safeLoadAll:j5,safeDump:H5},ey=$5;var ow=re(H_());var L={};KS(L,{bold:()=>FB,dimmed:()=>OB,error:()=>Dt,grey:()=>kB,info:()=>RB,item:()=>PB,log:()=>pr,turboBlue:()=>mi,turboGradient:()=>SB,turboLoader:()=>Hh,turboRed:()=>iw,underline:()=>TB,warn:()=>$h,yellow:()=>sw});var ut=require("picocolors"),ew=re(CE()),tw=re(QE()),rw="#0099F7",nw="#F11712",CB="#FFFF00",jh=e=>{let t=BB(e);return r=>`\x1B[38;5;${t}m${r}${(0,ut.reset)("")}`},SB=(0,tw.default)(rw,nw),mi=jh(rw),iw=jh(nw),sw=jh(CB),Hh=e=>(0,ew.default)({text:e,spinner:{frames:[" ",mi("> "),mi(">> "),mi(">>>")]}}),RB=(...e)=>{pr(mi((0,ut.bold)(">>>")),e.join(" "))},FB=(...e)=>{pr((0,ut.bold)(e.join(" ")))},TB=(...e)=>{pr((0,ut.underline)(e.join(" ")))},OB=(...e)=>{pr((0,ut.dim)(e.join(" ")))},kB=(...e)=>{pr((0,ut.gray)(e.join(" ")))},PB=(...e)=>{pr(mi((0,ut.bold)(" \u2022")),e.join(" "))},pr=(...e)=>{console.log(...e)},$h=(...e)=>{console.error(sw((0,ut.bold)(">>>")),e.join(" "))},Dt=(...e)=>{console.error(iw((0,ut.bold)(">>>")),e.join(" "))};function BB(e){let t=parseInt(e.slice(1),16),r=Math.floor(t/(256*256))%256,n=Math.floor(t/256)%256,i=t%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var IB="turbo.json";var Uh={};function LB(e){try{if(Ts.default.existsSync(vn.default.join(e,"pnpm-workspace.yaml")))return ey.load(Ts.default.readFileSync(vn.default.join(e,"pnpm-workspace.yaml"),"utf8")).packages||[];let t=JSON.parse(Ts.default.readFileSync(vn.default.join(e,"package.json"),"utf8"));if(t.workspaces){if("packages"in t.workspaces)return t.workspaces.packages||[];if(Array.isArray(t.workspaces))return t.workspaces}return[]}catch{return[]}}function Gh(e,t){var s;let r=ls(e,t),n=[],i=(s=t==null?void 0:t.cache)!=null?s:!0;if(i&&e&&e in Uh)return Uh[e];if(r){let a=LB(r).map(c=>`${c}/turbo.json`);(0,ow.sync)([IB,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(c=>vn.default.join(r,c)).forEach(c=>{try{let l=Ts.default.readFileSync(c,"utf8"),f=Fo.parse(l),h=vn.default.dirname(c)===r;if(h){if("extends"in f)return}else if(!("extends"in f))return;n.push({config:f,turboConfigPath:c,workspacePath:vn.default.dirname(c),isRootConfig:h})}catch(l){$h(l)}})}return i&&e&&(Uh[e]=n),n}var FL=re(require("os")),TL=re(Pv());var Bv=re(require("fs-extra")),OL=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Is(e){let t=Bv.default.readdirSync(e).filter(r=>!OL.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:t.length===0,conflicts:t}}var ad=re(require("path")),ud=re(require("fs-extra")),cd=require("picocolors");function Va(e){let t=ad.default.resolve(e),r=ad.default.basename(t),n=ud.default.existsSync(t),i=ud.default.lstatSync(t,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:t,projectName:r,error:`${(0,cd.dim)(r)} is not a directory - please try a different location`};if(n){let{isEmpty:s,conflicts:o}=Is(t);if(!s)return{valid:!1,root:t,projectName:r,error:`${(0,cd.dim)(r)} (${t}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:t,projectName:r}}var rS=require("stream"),nS=require("util"),iS=require("path"),sS=require("os"),ho=require("fs"),nm=re(Ox()),Sc=re(tS()),m9=(0,nS.promisify)(rS.Stream.pipeline);async function Cc(e){try{return(await Sc.default.head(e)).statusCode===200}catch{return!1}}async function im(e,t){let[,r,n,i,s,...o]=e.pathname.split("/"),a=t?t.replace(/^\//,""):o.join("/");if(i===void 0||i===""&&s===void 0)try{let c=await(0,Sc.default)(`https://api.github.com/repos/${r}/${n}`),l=JSON.parse(c.body);return{username:r,name:n,branch:l.default_branch,filePath:a}}catch{return}let u=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&u&&i==="tree")return{username:r,name:n,branch:u,filePath:a}}function sm({username:e,name:t,branch:r,filePath:n}){let i=`https://api.github.com/repos/${e}/${t}/contents`,s=`${n?`/${n}`:""}/package.json`;return Cc(`${i+s}?ref=${r}`)}function om(e){try{let t=new URL(e);return Cc(t.href)}catch{return Cc(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(e)}`)}}async function oS(e,t){let r=(0,iS.join)((0,sS.tmpdir)(),`${t}.temp-${Date.now()}`);return await m9(Sc.default.stream(e),(0,ho.createWriteStream)(r)),r}async function am(e,{username:t,name:r,branch:n,filePath:i}){let s=await oS(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`,"turbo-ct-example"),o=null;await(0,nm.x)({file:s,cwd:e,strip:i?i.split("/").length+1:1,filter:a=>{if(o===null){let u=a.split("/");o=u.length?u[0]:null}return a.startsWith(`${o}${i?`/${i}/`:"/"}`)}}),await ho.promises.unlink(s)}async function um(e,t){let r=await oS("https://codeload.github.com/vercel/turborepo/tar.gz/main","turbo-ct-example"),n=null;await(0,nm.x)({file:r,cwd:e,strip:2+t.split("/").length,filter:i=>{if(n===null){let s=i.split("/");n=s.length?s[0]:null}return i.includes(`${n}/examples/${t}/`)}}),await ho.promises.unlink(r)}var Rc=require("fs-extra");async function cm(e){try{return await(0,Rc.access)(e,Rc.constants.W_OK),!0}catch{return!1}}var ts=re(require("path")),lm=re(dS()),un=require("picocolors"),rs=require("fs-extra");function b9(e){return typeof e=="object"&&e!==null&&typeof e.message=="string"}var Fc=class extends Error{};async function fm({appPath:e,example:t,isDefaultExample:r,examplePath:n}){let i,s;if(r)i={username:"vercel",name:"turbo",branch:"main",filePath:"examples/basic"};else{try{s=new URL(t)}catch(p){p.code!=="ERR_INVALID_URL"&&(Dt(p),process.exit(1))}s?(s.origin!=="https://github.com"&&(Dt(`Invalid URL: ${(0,un.red)(`"${t}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await im(s,n),i||(Dt(`Unable to fetch repository information from: ${(0,un.red)(`"${t}"`)}. Please fix the URL and try again.`),process.exit(1)),await sm(i)||(Dt(`Could not locate the repository for ${(0,un.red)(`"${t}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await om(t)||(Dt(`Could not locate an example named ${(0,un.red)(`"${t}"`)}. It could be due to the following:
|
75
75
|
`,`1. Your spelling of example ${(0,un.red)(`"${t}"`)} might be incorrect.
|
76
|
-
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=ts.default.resolve(e);await lm(ts.default.dirname(o))||(Dt("The application path is not writable, please check folder permissions and try again."),Dt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=ts.default.basename(o);try{await(0,rs.mkdir)(o,{recursive:!0})}catch(p){Dt("Unable to create project directory"),Dt(p),process.exit(1)}let{isEmpty:u,conflicts:c}=Is(o);u||(Dt(`${(0,un.dim)(o)} has ${c.length} conflicting ${c.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o),pr();let f=$h("Downloading files... (This might take a moment)");try{!r&&i?(f.start(),await(0,fm.default)(()=>um(o,i),{retries:3})):(f.start(),await(0,fm.default)(()=>cm(o,t),{retries:3}))}catch(p){throw new Tc(b9(p)?p.message:String(p))}finally{f.stop()}let h=ts.default.join(o,"package.json"),g=(0,rs.existsSync)(h),b=[];if(g){let p;try{p=(0,rs.readJsonSync)(h)}catch{}p&&b.push(...Object.keys(p.scripts||{}))}let _=e;return ts.default.join(l,a)===e&&(_=a),{cdPath:_,hasPackageJson:g,availableScripts:b,repoInfo:i}}function dm(e,t={to:"camel"}){switch(t.to){case"camel":return e.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var $S=require("proxy-agent");var mo={name:"@turbo/gen",version:"2.0.13",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit"},dependencies:{"@turbo/workspaces":"workspace:*",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3",picocolors:"1.0.1","proxy-agent":"^6.2.2","ts-node":"^10.9.1","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/validate-npm-package-name":"^4.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"5.3.3"},files:["dist"],publishConfig:{access:"public"}};var Oc=require("picocolors"),pS=re(require("update-check"));var w9=(0,pS.default)(mo).catch(()=>null);async function pm(){try{let e=await w9;e!=null&&e.latest&&(L.log(),L.log((0,Oc.yellow)((0,Oc.bold)(`A new version of \`${mo.name}\` is available!`))),L.log()),process.exit()}catch{}}var mS=require("@turbo/workspaces");async function kc({root:e}){let t=e||process.cwd(),r=ls(t);if(!r)L.error("Unable to infer repository root - override with --root");else try{return(0,mS.getWorkspaceDetails)({root:r})}catch{L.error(`Unable to determine workspace details. Make sure "${t}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var Or=re(require("path")),Bc=re(require("fs-extra")),Pc=re(require("node-plop")),gS=require("ts-node"),yS=require("inquirer");var $e=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,$e)}};var _S=["ts","js","cjs"],v9=Or.default.join("turbo","generators"),bS=_S.map(e=>Or.default.join(v9,`config.${e}`)),A9=[...bS,..._S.map(e=>Or.default.join(`plopfile.${e}`))];function ES({project:e,configPath:t}){(0,gS.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=x9({project:e}),n;if(t){if(!Bc.default.existsSync(t))throw new $e(`No config at "${t}"`,{type:"plop_no_config"});try{n=(0,Pc.default)(t,{destBasePath:t,force:!1})}catch(i){L.error(i)}}else{for(let i of A9){let s=Or.default.join(e.paths.root,i);if(Bc.default.existsSync(s))try{n=(0,Pc.default)(s,{destBasePath:e.paths.root,force:!1});break}catch(o){L.error(o)}}!n&&r.length>0&&(n=(0,Pc.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n==null||n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){L.error(s)}}),n}function mm({project:e,configPath:t}){let r=ES({project:e,configPath:t});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=e.workspaceData.workspaces.find(l=>{if(u.basePath===e.paths.root)return!1;let f=u.basePath.split(Or.default.sep);return f.pop(),f.pop(),Or.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(u)):("root"in s||(s.root=[]),s.root.push(u))});let o=[];return Object.keys(s).forEach(a=>{o.push(new yS.Separator(a)),o.push(...s[a])}),o}function D9({project:e,generator:t}){let r={cwd:process.cwd(),root:e.paths.root,workspace:t.basePath?cs({cwd:t.basePath,target:"package.json"}):void 0},n={};try{n=Wh(t.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function x9({project:e}){let t=[];return e.workspaceData.workspaces.forEach(r=>{for(let n of bS)Bc.default.existsSync(Or.default.join(r.paths.root,n))&&t.push({config:Or.default.join(r.paths.root,n),root:r.paths.root})}),t}async function wS({project:e,generator:t,bypassArgs:r,configPath:n}){let i=ES({project:e,configPath:n});if(!i)throw new $e("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(t);if(!s)throw new $e(`Generator ${t} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...D9({project:e,generator:s})},{onComment:u=>{L.dimmed(u)}});if(a.failures.length>0)throw a.failures.forEach(u=>{u instanceof Error?L.error(`Error - ${u.message}`):L.error(`Error - ${u.error}. Unable to ${u.type} to "${u.path}"`)}),new $e(`Failed to run "${t}" generator`,{type:"plop_error_running_generator"});a.changes.length>0&&(L.info("Changes made:"),a.changes.forEach(u=>{u.path&&L.item(`${u.path} (${u.type})`)}))}var Mn=require("inquirer");async function vS({generators:e,generator:t}){if(t){if(e.find(n=>!(n instanceof Mn.Separator)&&n.name===t))return{selectedGenerator:t};L.warn(`Generator "${t}" not found`),L.log()}return await(0,Mn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(n=>n instanceof Mn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function AS(){return(0,Mn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function DS({message:e}){return(0,Mn.prompt)({type:"confirm",name:"answer",message:e})}var gm=re(require("path")),Ic=require("fs-extra");async function xS({project:e,template:t}){let r=gm.default.join(e.paths.root,"turbo","generators"),n=`simple-${t}`;if(await(0,Ic.pathExists)(r))throw new $e(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await(0,Ic.copy)(gm.default.join(__dirname,"templates",n),r,{recursive:!0})}async function ym({generator:e,project:t,opts:r}){let n=!1,i=mm({project:t,configPath:r.config});if(!i.length){L.error("No generators found."),L.log();let{answer:o}=await DS({message:`Would you like to add a config with a sample custom generator to ${t.name}?`});if(o){n=!0;let{answer:a}=await AS();try{await xS({project:t,template:a})}catch(u){throw u instanceof $e||L.error("Failed to create generator config"),u}if(L.log(),L.info("Generator config successfully created!"),L.info("Loading generator config..."),L.log(),i=mm({project:t,configPath:r.config}),!i.length){L.error("Error loading generator");return}}else{L.log(),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators");return}}let{selectedGenerator:s}=await vS({generators:i,generator:e});try{await wS({project:t,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof $e)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new $e(a,{type:"plop_error_running_generator"})}finally{n&&(L.log(),L.info("Congrats! You just ran your first Turborepo generator"),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators"))}L.log(),L.bold(L.turboGradient(">>> Success!"))}var wm=re(require("path")),yo=require("fs-extra"),LS=require("picocolors");var go=re(require("path")),FS=require("fs-extra"),Bt=require("inquirer"),TS=require("minimatch"),Em=re(require("validate-npm-package-name"));var _m=re(require("path"));var CS=re(require("path"));function SS({project:e}){let r=e.workspaceData.workspaces.map(i=>CS.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function bm({project:e,workspace:t}){return _m.default.relative(e.paths.root,t.paths.root).split(_m.default.sep)[0]}function Lc({project:e}){let t=SS({project:e}),r=t.includes("apps"),n=t.includes("packages"),i={},s=[];return e.workspaceData.workspaces.forEach(o=>{let a=bm({project:e,workspace:o});a!=="apps"&&s.push(o),a in i||(i[a]=[]),i[a].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var RS=require("inquirer");function Nc({project:e,type:t,showAllDependencies:r}){let n=Lc({project:e}),i=[],s=e.workspaceData.workspaces;r||(t==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:t==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=bm({project:e,workspace:a});u!==o&&i.push(new RS.Separator(u)),o=u,i.push(a)}),i}async function OS({override:e,suggestion:t,workspaceType:r}){let{validForNewPackages:n}=(0,Em.default)(e||"");return e&&n?{answer:e}:(0,Bt.prompt)({type:"input",name:"answer",default:t,validate:i=>{let{validForNewPackages:s}=(0,Em.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function kS({override:e,message:t}){return e?{answer:e}:(0,Bt.prompt)({type:"list",name:"answer",message:t!=null?t:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function PS({workspaceType:e,workspaceName:t,destination:r,project:n}){let i=t.includes("/")?t.split("/")[1]:t;if(r){let{valid:u,root:c}=Ya(r);if(u)return{absolute:c,relative:go.default.relative(n.paths.root,c)}}let s,o=Lc({project:n});e==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:e==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,Bt.prompt)({type:"input",name:"answer",message:`Where should "${t}" be added?`,default:s?go.default.relative(n.paths.root,s):void 0,validate:u=>{let c=go.default.join(n.paths.root,u),{valid:l,error:f}=Ya(c),h=n.workspaceData.globs.some(g=>(0,TS.minimatch)(u,g));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:go.default.join(n.paths.root,a),relative:a}}async function BS({override:e,workspaces:t,workspaceName:r}){if(e){let i=t.find(s=>s instanceof Bt.Separator?!1:s.name===e);if(i)return{answer:i};L.warn(`Workspace "${e}" not found`),L.log()}return await(0,Bt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:t.map(i=>i instanceof Bt.Separator?i:{name:` ${i.name}`,value:i})})}async function IS({workspaceName:e,project:t,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await S9({message:`Add workspace dependencies to "${e}"?`});if(!s)return i;let{answer:o}=await(0,Bt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${e}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),a=Nc({project:t,type:"package",showAllDependencies:n}),u=r?(0,FS.readJsonSync)(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,Bt.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${e}?`,loop:!1,choices:a.map(h=>h instanceof Bt.Separator?h:{name:` ${h.name}`,value:h.name})}),f=(u==null?void 0:u[c])||{};if(Object.keys(f).length){let h=new Set(Object.keys(f));l.forEach(g=>{h.has(g)||(f[g]=t.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,g)=>({...h,[g]:t.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function S9({message:e}){return(0,Bt.prompt)({type:"confirm",name:"answer",message:e})}async function Mc({project:e,opts:t}){var u;let r,n=t.method==="copy"&&t.copy.type==="external"?((u=t.examplePath)==null?void 0:u.split("/").pop())||t.copy.source.split("/").pop():void 0,{answer:i}=await kS({override:t.type,message:t.method==="copy"&&t.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await OS({override:t.name,workspaceType:i,suggestion:n});if(t.method==="copy"&&t.copy.type==="internal"){let{answer:c}=await BS({override:t.copy.source,workspaces:Nc({project:e,type:i}),workspaceName:s});r=c}let o=await PS({workspaceType:i,workspaceName:s,project:e,destination:t.destination}),a=await IS({workspaceName:s,project:e,workspaceSource:r,showAllDependencies:t.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function vm({project:e,opts:t}){let{name:r,location:n,dependencies:i}=await Mc({project:e,opts:t}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let a=i[o];a&&Object.keys(a).length>0&&(s[o]=a)}),(0,yo.mkdirSync)(n.absolute,{recursive:!0}),(0,yo.writeFileSync)(wm.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),(0,yo.writeFileSync)(wm.default.join(n.absolute,"README.md"),`# \`${r}\``),L.log(),L.log(`${(0,LS.bold)(L.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var Am=re(require("path")),It=require("fs-extra"),NS=require("picocolors");async function Dm({project:e,opts:t}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Mc({project:e,opts:t}),a=Am.default.join(i.absolute,"package.json");if(t.copy.type==="external"){L.log(),L.warn("Some manual modifications may be required."),L.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await hm({appPath:i.absolute,example:t.copy.source,examplePath:t.examplePath});try{if((0,It.existsSync)(a)){if((await(0,It.readJSON)(a)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if((0,It.existsSync)(Am.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),L.error(l),await(0,It.rm)(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=L.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await(0,It.copy)(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await(0,It.readJSON)(a);u.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(u[c]=l)}),await(0,It.writeJSON)(a,u,{spaces:2}),L.log(),L.log(`${(0,NS.bold)(L.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function F9(e){let{copy:t,...r}=e,n=t===!0||typeof t=="string"?"copy":"empty",i=typeof t=="string"?t:"",s=typeof t=="string"&&t.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function _o(e){let t=await kc(e),r=F9(e);L.log();let n={project:t,opts:r};r.method==="copy"?(r.copy.type==="external"?L.info(`Copy a remote workspace from ${r.copy.source}`):L.info(`Copy an existing workspace from "${t.name}"`),L.log(),await Dm(n)):(L.info(`Add an empty workspace to "${t.name}"`),L.log(),await vm(n))}async function bo(e,t){let r=await kc(t);L.log(),L.info(`Modify "${r.name}" using custom generators`),L.log(),await ym({generator:e,project:r,opts:t})}function MS(e){try{let t=JSON.parse(e),r={};for(let n in t){let i=dm(n,{to:"camel"});r[i]=t[n]}return r}catch(t){L.error("Error parsing arguments",t),process.exit(1)}}async function xm(e,t){var r;if(e==="workspace"){let n=MS(t.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await _o(n)}else if(e==="run"){let n=MS(t.json),{generatorName:i,...s}=n;await bo(i,s)}else L.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var US=new $S.ProxyAgent;qS.default.globalAgent=US;jS.default.globalAgent=US;var Eo=new Ue.Command;Eo.name((0,HS.bold)(L.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(mo.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);Eo.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Ue.Argument("[generator-name]","The name of the generator to run")).addOption(new Ue.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Ue.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Ue.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(bo);Eo.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Ue.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Ue.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Ue.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
76
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=ts.default.resolve(e);await cm(ts.default.dirname(o))||(Dt("The application path is not writable, please check folder permissions and try again."),Dt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=ts.default.basename(o);try{await(0,rs.mkdir)(o,{recursive:!0})}catch(p){Dt("Unable to create project directory"),Dt(p),process.exit(1)}let{isEmpty:u,conflicts:c}=Is(o);u||(Dt(`${(0,un.dim)(o)} has ${c.length} conflicting ${c.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o),pr();let f=Hh("Downloading files... (This might take a moment)");try{!r&&i?(f.start(),await(0,lm.default)(()=>am(o,i),{retries:3})):(f.start(),await(0,lm.default)(()=>um(o,t),{retries:3}))}catch(p){throw new Fc(b9(p)?p.message:String(p))}finally{f.stop()}let h=ts.default.join(o,"package.json"),g=(0,rs.existsSync)(h),b=[];if(g){let p;try{p=(0,rs.readJsonSync)(h)}catch{}p&&b.push(...Object.keys(p.scripts||{}))}let _=e;return ts.default.join(l,a)===e&&(_=a),{cdPath:_,hasPackageJson:g,availableScripts:b,repoInfo:i}}function hm(e,t={to:"camel"}){switch(t.to){case"camel":return e.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var $S=require("proxy-agent");var po={name:"@turbo/gen",version:"2.0.14",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit"},dependencies:{"@turbo/workspaces":"workspace:*",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3",picocolors:"1.0.1","proxy-agent":"^6.2.2","ts-node":"^10.9.1","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/validate-npm-package-name":"^4.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"5.3.3"},files:["dist"],publishConfig:{access:"public"}};var Tc=require("picocolors"),pS=re(require("update-check"));var w9=(0,pS.default)(po).catch(()=>null);async function dm(){try{let e=await w9;e!=null&&e.latest&&(L.log(),L.log((0,Tc.yellow)((0,Tc.bold)(`A new version of \`${po.name}\` is available!`))),L.log()),process.exit()}catch{}}var mS=require("@turbo/workspaces");async function Oc({root:e}){let t=e||process.cwd(),r=ls(t);if(!r)L.error("Unable to infer repository root - override with --root");else try{return(0,mS.getWorkspaceDetails)({root:r})}catch{L.error(`Unable to determine workspace details. Make sure "${t}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var Or=re(require("path")),Pc=re(require("fs-extra")),kc=re(require("node-plop")),gS=require("ts-node"),yS=require("inquirer");var $e=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,$e)}};var _S=["ts","js","cjs"],v9=Or.default.join("turbo","generators"),bS=_S.map(e=>Or.default.join(v9,`config.${e}`)),A9=[...bS,..._S.map(e=>Or.default.join(`plopfile.${e}`))];function ES({project:e,configPath:t}){(0,gS.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=x9({project:e}),n;if(t){if(!Pc.default.existsSync(t))throw new $e(`No config at "${t}"`,{type:"plop_no_config"});try{n=(0,kc.default)(t,{destBasePath:t,force:!1})}catch(i){L.error(i)}}else{for(let i of A9){let s=Or.default.join(e.paths.root,i);if(Pc.default.existsSync(s))try{n=(0,kc.default)(s,{destBasePath:e.paths.root,force:!1});break}catch(o){L.error(o)}}!n&&r.length>0&&(n=(0,kc.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n==null||n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){L.error(s)}}),n}function pm({project:e,configPath:t}){let r=ES({project:e,configPath:t});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=e.workspaceData.workspaces.find(l=>{if(u.basePath===e.paths.root)return!1;let f=u.basePath.split(Or.default.sep);return f.pop(),f.pop(),Or.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(u)):("root"in s||(s.root=[]),s.root.push(u))});let o=[];return Object.keys(s).forEach(a=>{o.push(new yS.Separator(a)),o.push(...s[a])}),o}function D9({project:e,generator:t}){let r={cwd:process.cwd(),root:e.paths.root,workspace:t.basePath?cs({cwd:t.basePath,target:"package.json"}):void 0},n={};try{n=Gh(t.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function x9({project:e}){let t=[];return e.workspaceData.workspaces.forEach(r=>{for(let n of bS)Pc.default.existsSync(Or.default.join(r.paths.root,n))&&t.push({config:Or.default.join(r.paths.root,n),root:r.paths.root})}),t}async function wS({project:e,generator:t,bypassArgs:r,configPath:n}){let i=ES({project:e,configPath:n});if(!i)throw new $e("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(t);if(!s)throw new $e(`Generator ${t} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...D9({project:e,generator:s})},{onComment:u=>{L.dimmed(u)}});if(a.failures.length>0)throw a.failures.forEach(u=>{u instanceof Error?L.error(`Error - ${u.message}`):L.error(`Error - ${u.error}. Unable to ${u.type} to "${u.path}"`)}),new $e(`Failed to run "${t}" generator`,{type:"plop_error_running_generator"});a.changes.length>0&&(L.info("Changes made:"),a.changes.forEach(u=>{u.path&&L.item(`${u.path} (${u.type})`)}))}var Mn=require("inquirer");async function vS({generators:e,generator:t}){if(t){if(e.find(n=>!(n instanceof Mn.Separator)&&n.name===t))return{selectedGenerator:t};L.warn(`Generator "${t}" not found`),L.log()}return await(0,Mn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(n=>n instanceof Mn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function AS(){return(0,Mn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function DS({message:e}){return(0,Mn.prompt)({type:"confirm",name:"answer",message:e})}var mm=re(require("path")),Bc=require("fs-extra");async function xS({project:e,template:t}){let r=mm.default.join(e.paths.root,"turbo","generators"),n=`simple-${t}`;if(await(0,Bc.pathExists)(r))throw new $e(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await(0,Bc.copy)(mm.default.join(__dirname,"templates",n),r,{recursive:!0})}async function gm({generator:e,project:t,opts:r}){let n=!1,i=pm({project:t,configPath:r.config});if(!i.length){L.error("No generators found."),L.log();let{answer:o}=await DS({message:`Would you like to add a config with a sample custom generator to ${t.name}?`});if(o){n=!0;let{answer:a}=await AS();try{await xS({project:t,template:a})}catch(u){throw u instanceof $e||L.error("Failed to create generator config"),u}if(L.log(),L.info("Generator config successfully created!"),L.info("Loading generator config..."),L.log(),i=pm({project:t,configPath:r.config}),!i.length){L.error("Error loading generator");return}}else{L.log(),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators");return}}let{selectedGenerator:s}=await vS({generators:i,generator:e});try{await wS({project:t,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof $e)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new $e(a,{type:"plop_error_running_generator"})}finally{n&&(L.log(),L.info("Congrats! You just ran your first Turborepo generator"),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators"))}L.log(),L.bold(L.turboGradient(">>> Success!"))}var Em=re(require("path")),go=require("fs-extra"),LS=require("picocolors");var mo=re(require("path")),FS=require("fs-extra"),Bt=require("inquirer"),TS=require("minimatch"),bm=re(require("validate-npm-package-name"));var ym=re(require("path"));var CS=re(require("path"));function SS({project:e}){let r=e.workspaceData.workspaces.map(i=>CS.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function _m({project:e,workspace:t}){return ym.default.relative(e.paths.root,t.paths.root).split(ym.default.sep)[0]}function Ic({project:e}){let t=SS({project:e}),r=t.includes("apps"),n=t.includes("packages"),i={},s=[];return e.workspaceData.workspaces.forEach(o=>{let a=_m({project:e,workspace:o});a!=="apps"&&s.push(o),a in i||(i[a]=[]),i[a].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var RS=require("inquirer");function Lc({project:e,type:t,showAllDependencies:r}){let n=Ic({project:e}),i=[],s=e.workspaceData.workspaces;r||(t==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:t==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=_m({project:e,workspace:a});u!==o&&i.push(new RS.Separator(u)),o=u,i.push(a)}),i}async function OS({override:e,suggestion:t,workspaceType:r}){let{validForNewPackages:n}=(0,bm.default)(e||"");return e&&n?{answer:e}:(0,Bt.prompt)({type:"input",name:"answer",default:t,validate:i=>{let{validForNewPackages:s}=(0,bm.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function kS({override:e,message:t}){return e?{answer:e}:(0,Bt.prompt)({type:"list",name:"answer",message:t!=null?t:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function PS({workspaceType:e,workspaceName:t,destination:r,project:n}){let i=t.includes("/")?t.split("/")[1]:t;if(r){let{valid:u,root:c}=Va(r);if(u)return{absolute:c,relative:mo.default.relative(n.paths.root,c)}}let s,o=Ic({project:n});e==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:e==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,Bt.prompt)({type:"input",name:"answer",message:`Where should "${t}" be added?`,default:s?mo.default.relative(n.paths.root,s):void 0,validate:u=>{let c=mo.default.join(n.paths.root,u),{valid:l,error:f}=Va(c),h=n.workspaceData.globs.some(g=>(0,TS.minimatch)(u,g));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:mo.default.join(n.paths.root,a),relative:a}}async function BS({override:e,workspaces:t,workspaceName:r}){if(e){let i=t.find(s=>s instanceof Bt.Separator?!1:s.name===e);if(i)return{answer:i};L.warn(`Workspace "${e}" not found`),L.log()}return await(0,Bt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:t.map(i=>i instanceof Bt.Separator?i:{name:` ${i.name}`,value:i})})}async function IS({workspaceName:e,project:t,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await S9({message:`Add workspace dependencies to "${e}"?`});if(!s)return i;let{answer:o}=await(0,Bt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${e}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),a=Lc({project:t,type:"package",showAllDependencies:n}),u=r?(0,FS.readJsonSync)(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,Bt.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${e}?`,loop:!1,choices:a.map(h=>h instanceof Bt.Separator?h:{name:` ${h.name}`,value:h.name})}),f=(u==null?void 0:u[c])||{};if(Object.keys(f).length){let h=new Set(Object.keys(f));l.forEach(g=>{h.has(g)||(f[g]=t.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,g)=>({...h,[g]:t.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function S9({message:e}){return(0,Bt.prompt)({type:"confirm",name:"answer",message:e})}async function Nc({project:e,opts:t}){var u;let r,n=t.method==="copy"&&t.copy.type==="external"?((u=t.examplePath)==null?void 0:u.split("/").pop())||t.copy.source.split("/").pop():void 0,{answer:i}=await kS({override:t.type,message:t.method==="copy"&&t.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await OS({override:t.name,workspaceType:i,suggestion:n});if(t.method==="copy"&&t.copy.type==="internal"){let{answer:c}=await BS({override:t.copy.source,workspaces:Lc({project:e,type:i}),workspaceName:s});r=c}let o=await PS({workspaceType:i,workspaceName:s,project:e,destination:t.destination}),a=await IS({workspaceName:s,project:e,workspaceSource:r,showAllDependencies:t.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function wm({project:e,opts:t}){let{name:r,location:n,dependencies:i}=await Nc({project:e,opts:t}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let a=i[o];a&&Object.keys(a).length>0&&(s[o]=a)}),(0,go.mkdirSync)(n.absolute,{recursive:!0}),(0,go.writeFileSync)(Em.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),(0,go.writeFileSync)(Em.default.join(n.absolute,"README.md"),`# \`${r}\``),L.log(),L.log(`${(0,LS.bold)(L.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var vm=re(require("path")),It=require("fs-extra"),NS=require("picocolors");async function Am({project:e,opts:t}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Nc({project:e,opts:t}),a=vm.default.join(i.absolute,"package.json");if(t.copy.type==="external"){L.log(),L.warn("Some manual modifications may be required."),L.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await fm({appPath:i.absolute,example:t.copy.source,examplePath:t.examplePath});try{if((0,It.existsSync)(a)){if((await(0,It.readJSON)(a)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if((0,It.existsSync)(vm.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),L.error(l),await(0,It.rm)(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=L.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await(0,It.copy)(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await(0,It.readJSON)(a);u.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(u[c]=l)}),await(0,It.writeJSON)(a,u,{spaces:2}),L.log(),L.log(`${(0,NS.bold)(L.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function F9(e){let{copy:t,...r}=e,n=t===!0||typeof t=="string"?"copy":"empty",i=typeof t=="string"?t:"",s=typeof t=="string"&&t.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function yo(e){let t=await Oc(e),r=F9(e);L.log();let n={project:t,opts:r};r.method==="copy"?(r.copy.type==="external"?L.info(`Copy a remote workspace from ${r.copy.source}`):L.info(`Copy an existing workspace from "${t.name}"`),L.log(),await Am(n)):(L.info(`Add an empty workspace to "${t.name}"`),L.log(),await wm(n))}async function _o(e,t){let r=await Oc(t);L.log(),L.info(`Modify "${r.name}" using custom generators`),L.log(),await gm({generator:e,project:r,opts:t})}function MS(e){try{let t=JSON.parse(e),r={};for(let n in t){let i=hm(n,{to:"camel"});r[i]=t[n]}return r}catch(t){L.error("Error parsing arguments",t),process.exit(1)}}async function Dm(e,t){var r;if(e==="workspace"){let n=MS(t.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await yo(n)}else if(e==="run"){let n=MS(t.json),{generatorName:i,...s}=n;await _o(i,s)}else L.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var US=new $S.ProxyAgent;qS.default.globalAgent=US;jS.default.globalAgent=US;var bo=new Ue.Command;bo.name((0,HS.bold)(L.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(po.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);bo.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Ue.Argument("[generator-name]","The name of the generator to run")).addOption(new Ue.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Ue.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Ue.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(_o);bo.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Ue.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Ue.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Ue.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
77
77
|
within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.
|
78
78
|
`).conflicts("empty")).addOption(new Ue.Option("-d, --destination <dir>","Where the new workspace should be created")).addOption(new Ue.Option("-t, --type <type>","The type of workspace to create").choices(["app","package"])).addOption(new Ue.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Ue.Option("-p, --example-path <path-to-example>",`In a rare case, your GitHub URL might contain a branch name with
|
79
79
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
80
80
|
In this case, you must specify the path to the example separately:
|
81
81
|
--example-path foo/bar
|
82
|
-
`).implies({copy:!0})).addOption(new Ue.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(
|
82
|
+
`).implies({copy:!0})).addOption(new Ue.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(yo);bo.command("raw",{hidden:!0}).argument("<type>","The type of generator to run").addOption(new Ue.Option("--json <arguments>","Arguments as raw JSON")).action(Dm);bo.parseAsync().then(dm).catch(async e=>{L.log(),e instanceof $e?L.error(e.message):(L.error("Unexpected error. Please report it as a bug:"),L.log(e)),L.log(),await dm(),process.exit(1)});
|
83
83
|
/*! Bundled license information:
|
84
84
|
|
85
85
|
@babel/runtime/helpers/regeneratorRuntime.js:
|