@turbo/gen 2.0.7-canary.0 → 2.0.7-canary.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +71 -60
- package/package.json +5 -5
package/dist/cli.js
CHANGED
@@ -1,74 +1,85 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var Ev=Object.create;var Zu=Object.defineProperty;var bv=Object.getOwnPropertyDescriptor;var Dv=Object.getOwnPropertyNames;var wv=Object.getPrototypeOf,Av=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xv=(t,e)=>{for(var r in e)Zu(t,r,{get:e[r],enumerable:!0})},Sv=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dv(e))!Av.call(t,i)&&i!==r&&Zu(t,i,{get:()=>e[i],enumerable:!(n=bv(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?Ev(wv(t)):{},Sv(e||!t||!t.__esModule?Zu(r,"default",{value:t,enumerable:!0}):r,t));var gm=b((XM,Kt)=>{function Qu(t){return Kt.exports=Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports,Qu(t)}Kt.exports=Qu,Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports});var Em=b((ZM,Jt)=>{var ym=gm().default;function _m(){"use strict";Jt.exports=_m=function(){return e},Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(A,F,v){A[F]=v.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(A,F,v){return Object.defineProperty(A,F,{value:v,enumerable:!0,configurable:!0,writable:!0}),A[F]}try{c({},"")}catch{c=function(v,k,$){return v[k]=$}}function l(A,F,v,k){var $=F&&F.prototype instanceof D?F:D,q=Object.create($.prototype),ue=new Qe(k||[]);return i(q,"_invoke",{value:be(A,v,ue)}),q}function f(A,F,v){try{return{type:"normal",arg:A.call(F,v)}}catch(k){return{type:"throw",arg:k}}}e.wrap=l;var h="suspendedStart",m="suspendedYield",_="executing",y="completed",p={};function D(){}function C(){}function N(){}var U={};c(U,o,function(){return this});var M=Object.getPrototypeOf,Y=M&&M(M(S([])));Y&&Y!==r&&n.call(Y,o)&&(U=Y);var G=N.prototype=D.prototype=Object.create(U);function z(A){["next","throw","return"].forEach(function(F){c(A,F,function(v){return this._invoke(F,v)})})}function Q(A,F){function v($,q,ue,Re){var se=f(A[$],A,q);if(se.type!=="throw"){var De=se.arg,V=De.value;return V&&ym(V)=="object"&&n.call(V,"__await")?F.resolve(V.__await).then(function(Ke){v("next",Ke,ue,Re)},function(Ke){v("throw",Ke,ue,Re)}):F.resolve(V).then(function(Ke){De.value=Ke,ue(De)},function(Ke){return v("throw",Ke,ue,Re)})}Re(se.arg)}var k;i(this,"_invoke",{value:function(q,ue){function Re(){return new F(function(se,De){v(q,ue,se,De)})}return k=k?k.then(Re,Re):Re()}})}function be(A,F,v){var k=h;return function($,q){if(k===_)throw new Error("Generator is already running");if(k===y){if($==="throw")throw q;return{value:t,done:!0}}for(v.method=$,v.arg=q;;){var ue=v.delegate;if(ue){var Re=R(ue,v);if(Re){if(Re===p)continue;return Re}}if(v.method==="next")v.sent=v._sent=v.arg;else if(v.method==="throw"){if(k===h)throw k=y,v.arg;v.dispatchException(v.arg)}else v.method==="return"&&v.abrupt("return",v.arg);k=_;var se=f(A,F,v);if(se.type==="normal"){if(k=v.done?y:m,se.arg===p)continue;return{value:se.arg,done:v.done}}se.type==="throw"&&(k=y,v.method="throw",v.arg=se.arg)}}}function R(A,F){var v=F.method,k=A.iterator[v];if(k===t)return F.delegate=null,v==="throw"&&A.iterator.return&&(F.method="return",F.arg=t,R(A,F),F.method==="throw")||v!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+v+"' method")),p;var $=f(k,A.iterator,F.arg);if($.type==="throw")return F.method="throw",F.arg=$.arg,F.delegate=null,p;var q=$.arg;return q?q.done?(F[A.resultName]=q.value,F.next=A.nextLoc,F.method!=="return"&&(F.method="next",F.arg=t),F.delegate=null,p):q:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,p)}function ae(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 ie(A){var F=A.completion||{};F.type="normal",delete F.arg,A.completion=F}function Qe(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(ae,this),this.reset(!0)}function S(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 v=-1,k=function $(){for(;++v<A.length;)if(n.call(A,v))return $.value=A[v],$.done=!1,$;return $.value=t,$.done=!0,$};return k.next=k}}throw new TypeError(ym(A)+" is not iterable")}return C.prototype=N,i(G,"constructor",{value:N,configurable:!0}),i(N,"constructor",{value:C,configurable:!0}),C.displayName=c(N,u,"GeneratorFunction"),e.isGeneratorFunction=function(A){var F=typeof A=="function"&&A.constructor;return!!F&&(F===C||(F.displayName||F.name)==="GeneratorFunction")},e.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,N):(A.__proto__=N,c(A,u,"GeneratorFunction")),A.prototype=Object.create(G),A},e.awrap=function(A){return{__await:A}},z(Q.prototype),c(Q.prototype,a,function(){return this}),e.AsyncIterator=Q,e.async=function(A,F,v,k,$){$===void 0&&($=Promise);var q=new Q(l(A,F,v,k),$);return e.isGeneratorFunction(F)?q:q.next().then(function(ue){return ue.done?ue.value:q.next()})},z(G),c(G,u,"Generator"),c(G,o,function(){return this}),c(G,"toString",function(){return"[object Generator]"}),e.keys=function(A){var F=Object(A),v=[];for(var k in F)v.push(k);return v.reverse(),function $(){for(;v.length;){var q=v.pop();if(q in F)return $.value=q,$.done=!1,$}return $.done=!0,$}},e.values=S,Qe.prototype={constructor:Qe,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ie),!F)for(var v in this)v.charAt(0)==="t"&&n.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=t)},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 v=this;function k(De,V){return ue.type="throw",ue.arg=F,v.next=De,V&&(v.method="next",v.arg=t),!!V}for(var $=this.tryEntries.length-1;$>=0;--$){var q=this.tryEntries[$],ue=q.completion;if(q.tryLoc==="root")return k("end");if(q.tryLoc<=this.prev){var Re=n.call(q,"catchLoc"),se=n.call(q,"finallyLoc");if(Re&&se){if(this.prev<q.catchLoc)return k(q.catchLoc,!0);if(this.prev<q.finallyLoc)return k(q.finallyLoc)}else if(Re){if(this.prev<q.catchLoc)return k(q.catchLoc,!0)}else{if(!se)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return k(q.finallyLoc)}}}},abrupt:function(F,v){for(var k=this.tryEntries.length-1;k>=0;--k){var $=this.tryEntries[k];if($.tryLoc<=this.prev&&n.call($,"finallyLoc")&&this.prev<$.finallyLoc){var q=$;break}}q&&(F==="break"||F==="continue")&&q.tryLoc<=v&&v<=q.finallyLoc&&(q=null);var ue=q?q.completion:{};return ue.type=F,ue.arg=v,q?(this.method="next",this.next=q.finallyLoc,p):this.complete(ue)},complete:function(F,v){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"&&v&&(this.next=v),p},finish:function(F){for(var v=this.tryEntries.length-1;v>=0;--v){var k=this.tryEntries[v];if(k.finallyLoc===F)return this.complete(k.completion,k.afterLoc),ie(k),p}},catch:function(F){for(var v=this.tryEntries.length-1;v>=0;--v){var k=this.tryEntries[v];if(k.tryLoc===F){var $=k.completion;if($.type==="throw"){var q=$.arg;ie(k)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(F,v,k){return this.delegate={iterator:S(F),resultName:v,nextLoc:k},this.method==="next"&&(this.arg=t),p}},e}Jt.exports=_m,Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports});var Dm=b((QM,bm)=>{var Ys=Em()();bm.exports=Ys;try{regeneratorRuntime=Ys}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ys:Function("r","regeneratorRuntime = r")(Ys)}});var Am=b((Dq,oc)=>{"use strict";var wm=(t,...e)=>new Promise(r=>{r(t(...e))});oc.exports=wm;oc.exports.default=wm});var Sm=b((wq,ac)=>{"use strict";var Cv=Am(),xm=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...c)=>{r++;let l=Cv(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<t?i(a,u,...c):e.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:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};ac.exports=xm;ac.exports.default=xm});var Rm=b((Aq,uc)=>{"use strict";var Cm=Sm(),Ks=class extends Error{constructor(e){super(),this.value=e}},vv=async(t,e)=>e(await t),Rv=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ks(e[0]);return!1},vm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Cm(r.concurrency),i=[...t].map(o=>[o,n(vv,o,e)]),s=Cm(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Rv,o)))}catch(o){if(o instanceof Ks)return o.value;throw o}};uc.exports=vm;uc.exports.default=vm});var Bm=b((xq,cc)=>{"use strict";var Fm=require("path"),Js=require("fs"),{promisify:Tm}=require("util"),Fv=Rm(),Tv=Tm(Js.stat),Ov=Tm(Js.lstat),Om={directory:"isDirectory",file:"isFile"};function km({type:t}){if(!(t in Om))throw new Error(`Invalid type specified: ${t}`)}var Pm=(t,e)=>t===void 0||e[Om[t]]();cc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},km(e);let r=e.allowSymlinks?Tv:Ov;return Fv(t,async n=>{try{let i=await r(Fm.resolve(e.cwd,n));return Pm(e.type,i)}catch{return!1}},e)};cc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},km(e);let r=e.allowSymlinks?Js.statSync:Js.lstatSync;for(let n of t)try{let i=r(Fm.resolve(e.cwd,n));if(Pm(e.type,i))return n}catch{}}});var Lm=b((Sq,lc)=>{"use strict";var Im=require("fs"),{promisify:kv}=require("util"),Pv=kv(Im.access);lc.exports=async t=>{try{return await Pv(t),!0}catch{return!1}};lc.exports.sync=t=>{try{return Im.accessSync(t),!0}catch{return!1}}});var Mm=b((Cq,Tn)=>{"use strict";var Ar=require("path"),Xs=Bm(),Nm=Lm(),fc=Symbol("findUp.stop");Tn.exports=async(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Xs(i,o);let a=await t(o.cwd);return typeof a=="string"?Xs([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Tn.exports.sync=(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Xs.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Xs.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Tn.exports.exists=Nm;Tn.exports.sync.exists=Nm.sync;Tn.exports.stop=fc});var z0=b(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.splitWhen=In.flatten=void 0;function _F(t){return t.reduce((e,r)=>[].concat(e,r),[])}In.flatten=_F;function EF(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}In.splitWhen=EF});var V0=b(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.isEnoentCodeError=void 0;function bF(t){return t.code==="ENOENT"}lo.isEnoentCodeError=bF});var Y0=b(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.createDirentFromStats=void 0;var Ic=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function DF(t,e){return new Ic(t,e)}fo.createDirentFromStats=DF});var K0=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.removeLeadingDotSegment=It.escape=It.makeAbsolute=It.unixify=void 0;var wF=require("path"),AF=2,xF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function SF(t){return t.replace(/\\/g,"/")}It.unixify=SF;function CF(t,e){return wF.resolve(t,e)}It.makeAbsolute=CF;function vF(t){return t.replace(xF,"\\$2")}It.escape=vF;function RF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(AF)}return t}It.removeLeadingDotSegment=RF});var X0=b((zq,J0)=>{J0.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var eg=b((Vq,Q0)=>{var FF=X0(),Z0={"{":"}","(":")","[":"]"},TF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=Z0[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},OF=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Z0[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Q0.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(FF(e))return!0;var n=TF;return r&&r.strict===!1&&(n=OF),n(e)}});var rg=b((Yq,tg)=>{"use strict";var kF=eg(),PF=require("path").posix.dirname,BF=require("os").platform()==="win32",Lc="/",IF=/\\/g,LF=/[\{\[].*[\}\]]$/,NF=/(^|[^\\])([\{\[]|\([^\)]+$)/,MF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;tg.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&BF&&e.indexOf(Lc)<0&&(e=e.replace(IF,Lc)),LF.test(e)&&(e+=Lc),e+="a";do e=PF(e);while(kF(e)||NF.test(e));return e.replace(MF,"$1")}});var ho=b(pt=>{"use strict";pt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;pt.find=(t,e)=>t.nodes.find(r=>r.type===e);pt.exceedsLimit=(t,e,r=1,n)=>n===!1||!pt.isInteger(t)||!pt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;pt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};pt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);pt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;pt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;pt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);pt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var po=b((Jq,ig)=>{"use strict";var ng=ho();ig.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&ng.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&ng.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(t)}});var og=b((Xq,sg)=>{"use strict";sg.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var mg=b((Zq,pg)=>{"use strict";var ag=og(),nn=(t,e,r)=>{if(ag(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(ag(e)===!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=t+":"+e+"="+i+s+o+a;if(nn.cache.hasOwnProperty(u))return nn.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let y=t+"|"+e;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let f=dg(t)||dg(e),h={min:t,max:e,a:c,b:l},m=[],_=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let y=l<0?Math.abs(l):1;_=ug(y,Math.abs(c),h,n),c=h.a=0}return l>=0&&(m=ug(c,l,h,n)),h.negatives=_,h.positives=m,h.result=qF(_,m,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&m.length+_.length>1&&(h.result=`(?:${h.result})`),nn.cache[u]=h,h.result};function qF(t,e,r){let n=Nc(t,e,"-",!1,r)||[],i=Nc(e,t,"",!1,r)||[],s=Nc(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function HF(t,e){let r=1,n=1,i=lg(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=lg(t,r);for(i=fg(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=fg(e+1,n)-1;return s=[...s],s.sort(UF),s}function jF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=$F(t,e),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+=GF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ug(t,e,r,n){let i=HF(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],l=jF(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+hg(a.count),o=c+1;continue}r.isPadded&&(f=WF(c,r,n)),l.string=f+l.pattern+hg(l.count),s.push(l),o=c+1,a=l}return s}function Nc(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!cg(e,"string",a)&&s.push(r+a),n&&cg(e,"string",a)&&s.push(r+a)}return s}function $F(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function UF(t,e){return t>e?1:e>t?-1:0}function cg(t,e,r){return t.some(n=>n[e]===r)}function lg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function fg(t,e){return t-t%Math.pow(10,e)}function hg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function GF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function dg(t){return/^-?(0+)\d/.test(t)}function WF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).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}}`}}nn.cache={};nn.clearCache=()=>nn.cache={};pg.exports=nn});var Hc=b((Qq,Ag)=>{"use strict";var zF=require("util"),_g=mg(),gg=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),VF=t=>e=>t===!0?Number(e):String(e),Mc=t=>typeof t=="number"||typeof t=="string"&&t!=="",Xi=t=>Number.isInteger(+t),qc=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},YF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,KF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},yg=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},JF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},Eg=(t,e,r,n)=>{if(r)return _g(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},bg=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return _g(t,e,r)},Dg=(...t)=>new RangeError("Invalid range arguments: "+zF.inspect(...t)),wg=(t,e,r)=>{if(r.strictRanges===!0)throw Dg([t,e]);return[]},XF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ZF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Dg([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=qc(a)||qc(u)||qc(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&YF(t,e,n)===!1,m=n.transform||VF(h);if(n.toRegex&&r===1)return Eg(yg(t,f),yg(e,f),!0,n);let _={negatives:[],positives:[]},y=C=>_[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],D=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):p.push(KF(m(i,D),f,h)),i=o?i-r:i+r,D++;return n.toRegex===!0?r>1?JF(_,n):bg(p,null,{wrap:!1,...n}):p},QF=(t,e,r=1,n={})=>{if(!Xi(t)&&t.length>1||!Xi(e)&&e.length>1)return wg(t,e,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Eg(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?bg(l,null,{wrap:!1,options:n}):l},mo=(t,e,r,n={})=>{if(e==null&&Mc(t))return[t];if(!Mc(t)||!Mc(e))return wg(t,e,n);if(typeof r=="function")return mo(t,e,1,{transform:r});if(gg(r))return mo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Xi(r)?Xi(t)&&Xi(e)?ZF(t,e,r,i):QF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!gg(r)?XF(r,i):mo(t,e,1,r)};Ag.exports=mo});var Cg=b((e6,Sg)=>{"use strict";var eT=Hc(),xg=ho(),tT=(t,e={})=>{let r=(n,i={})=>{let s=xg.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.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=xg.reduce(n.nodes),f=eT(...l,{...e,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(t)};Sg.exports=tT});var Fg=b((t6,Rg)=>{"use strict";var rT=Hc(),vg=po(),Ln=ho(),sn=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Ln.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(sn(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?sn(i,s,r):i+s);return Ln.flatten(n)},nT=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.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(sn(a.pop(),vg(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(sn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=Ln.reduce(i.nodes);if(Ln.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=rT(...f,e);h.length===0&&(h=vg(i,e)),a.push(sn(a.pop(),h)),i.nodes=[];return}let u=Ln.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(sn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(sn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return Ln.flatten(n(t))};Rg.exports=nT});var Og=b((r6,Tg)=>{"use strict";Tg.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 Lg=b((n6,Ig)=>{"use strict";var iT=po(),{MAX_LENGTH:kg,CHAR_BACKSLASH:jc,CHAR_BACKTICK:sT,CHAR_COMMA:oT,CHAR_DOT:aT,CHAR_LEFT_PARENTHESES:uT,CHAR_RIGHT_PARENTHESES:cT,CHAR_LEFT_CURLY_BRACE:lT,CHAR_RIGHT_CURLY_BRACE:fT,CHAR_LEFT_SQUARE_BRACKET:Pg,CHAR_RIGHT_SQUARE_BRACKET:Bg,CHAR_DOUBLE_QUOTE:hT,CHAR_SINGLE_QUOTE:dT,CHAR_NO_BREAK_SPACE:pT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:mT}=Og(),gT=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(kg,r.maxLength):kg;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,l=0,f=0,h,m={},_=()=>t[l++],y=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(y({type:"bos"});l<c;)if(o=s[s.length-1],h=_(),!(h===mT||h===pT)){if(h===jc){y({type:"text",value:(e.keepEscaping?h:"")+_()});continue}if(h===Bg){y({type:"text",value:"\\"+h});continue}if(h===Pg){u++;let p=!0,D;for(;l<c&&(D=_());){if(h+=D,D===Pg){u++;continue}if(D===jc){h+=_();continue}if(D===Bg&&(u--,u===0))break}y({type:"text",value:h});continue}if(h===uT){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:h});continue}if(h===cT){if(o.type!=="paren"){y({type:"text",value:h});continue}o=s.pop(),y({type:"text",value:h}),o=s[s.length-1];continue}if(h===hT||h===dT||h===sT){let p=h,D;for(e.keepQuotes!==!0&&(h="");l<c&&(D=_());){if(D===jc){h+=D+_();continue}if(D===p){e.keepQuotes===!0&&(h+=D);break}h+=D}y({type:"text",value:h});continue}if(h===lT){f++;let D={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=y(D),s.push(o),y({type:"open",value:h});continue}if(h===fT){if(o.type!=="brace"){y({type:"text",value:h});continue}let p="close";o=s.pop(),o.close=!0,y({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:iT(o)}]}y({type:"comma",value:h}),o.commas++;continue}if(h===aT&&f>0&&o.commas===0){let p=o.nodes;if(f===0||p.length===0){y({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 D=p[p.length-1];D.value+=a.value+h,a=D,o.ranges--;continue}y({type:"dot",value:h});continue}y({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],D=p.nodes.indexOf(o);p.nodes.splice(D,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),i};Ig.exports=gT});var qg=b((i6,Mg)=>{"use strict";var Ng=po(),yT=Cg(),_T=Fg(),ET=Lg(),at=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=at.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(at.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};at.parse=(t,e={})=>ET(t,e);at.stringify=(t,e={})=>Ng(typeof t=="string"?at.parse(t,e):t,e);at.compile=(t,e={})=>(typeof t=="string"&&(t=at.parse(t,e)),yT(t,e));at.expand=(t,e={})=>{typeof t=="string"&&(t=at.parse(t,e));let r=_T(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};at.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?at.compile(t,e):at.expand(t,e);Mg.exports=at});var Zi=b((s6,Gg)=>{"use strict";var bT=require("path"),Lt="\\\\/",Hg=`[^${Lt}]`,rr="\\.",DT="\\+",wT="\\?",go="\\/",AT="(?=.)",jg="[^/]",$c=`(?:${go}|$)`,$g=`(?:^|${go})`,Uc=`${rr}{1,2}${$c}`,xT=`(?!${rr})`,ST=`(?!${$g}${Uc})`,CT=`(?!${rr}{0,1}${$c})`,vT=`(?!${Uc})`,RT=`[^.${go}]`,FT=`${jg}*?`,Ug={DOT_LITERAL:rr,PLUS_LITERAL:DT,QMARK_LITERAL:wT,SLASH_LITERAL:go,ONE_CHAR:AT,QMARK:jg,END_ANCHOR:$c,DOTS_SLASH:Uc,NO_DOT:xT,NO_DOTS:ST,NO_DOT_SLASH:CT,NO_DOTS_SLASH:vT,QMARK_NO_DOT:RT,STAR:FT,START_ANCHOR:$g},TT={...Ug,SLASH_LITERAL:`[${Lt}]`,QMARK:Hg,STAR:`${Hg}*?`,DOTS_SLASH:`${rr}{1,2}(?:[${Lt}]|$)`,NO_DOT:`(?!${rr})`,NO_DOTS:`(?!(?:^|[${Lt}])${rr}{1,2}(?:[${Lt}]|$))`,NO_DOT_SLASH:`(?!${rr}{0,1}(?:[${Lt}]|$))`,NO_DOTS_SLASH:`(?!${rr}{1,2}(?:[${Lt}]|$))`,QMARK_NO_DOT:`[^.${Lt}]`,START_ANCHOR:`(?:^|[${Lt}])`,END_ANCHOR:`(?:[${Lt}]|$)`},OT={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"};Gg.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:OT,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:bT.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?TT:Ug}}});var Qi=b(tt=>{"use strict";var kT=require("path"),PT=process.platform==="win32",{REGEX_BACKSLASH:BT,REGEX_REMOVE_BACKSLASH:IT,REGEX_SPECIAL_CHARS:LT,REGEX_SPECIAL_CHARS_GLOBAL:NT}=Zi();tt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);tt.hasRegexChars=t=>LT.test(t);tt.isRegexChar=t=>t.length===1&&tt.hasRegexChars(t);tt.escapeRegex=t=>t.replace(NT,"\\$1");tt.toPosixSlashes=t=>t.replace(BT,"/");tt.removeBackslashes=t=>t.replace(IT,e=>e==="\\"?"":e);tt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};tt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:PT===!0||kT.sep==="\\";tt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?tt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};tt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};tt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Zg=b((a6,Xg)=>{"use strict";var Wg=Qi(),{CHAR_ASTERISK:Gc,CHAR_AT:MT,CHAR_BACKWARD_SLASH:es,CHAR_COMMA:qT,CHAR_DOT:Wc,CHAR_EXCLAMATION_MARK:zc,CHAR_FORWARD_SLASH:Jg,CHAR_LEFT_CURLY_BRACE:Vc,CHAR_LEFT_PARENTHESES:Yc,CHAR_LEFT_SQUARE_BRACKET:HT,CHAR_PLUS:jT,CHAR_QUESTION_MARK:zg,CHAR_RIGHT_CURLY_BRACE:$T,CHAR_RIGHT_PARENTHESES:Vg,CHAR_RIGHT_SQUARE_BRACKET:UT}=Zi(),Yg=t=>t===Jg||t===es,Kg=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},GT=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,f=0,h=!1,m=!1,_=!1,y=!1,p=!1,D=!1,C=!1,N=!1,U=!1,M=!1,Y=0,G,z,Q={value:"",depth:0,isGlob:!1},be=()=>c>=n,R=()=>u.charCodeAt(c+1),ae=()=>(G=z,u.charCodeAt(++c));for(;c<n;){z=ae();let F;if(z===es){C=Q.backslashes=!0,z=ae(),z===Vc&&(D=!0);continue}if(D===!0||z===Vc){for(Y++;be()!==!0&&(z=ae());){if(z===es){C=Q.backslashes=!0,ae();continue}if(z===Vc){Y++;continue}if(D!==!0&&z===Wc&&(z=ae())===Wc){if(h=Q.isBrace=!0,_=Q.isGlob=!0,M=!0,i===!0)continue;break}if(D!==!0&&z===qT){if(h=Q.isBrace=!0,_=Q.isGlob=!0,M=!0,i===!0)continue;break}if(z===$T&&(Y--,Y===0)){D=!1,h=Q.isBrace=!0,M=!0;break}}if(i===!0)continue;break}if(z===Jg){if(s.push(c),o.push(Q),Q={value:"",depth:0,isGlob:!1},M===!0)continue;if(G===Wc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(z===jT||z===MT||z===Gc||z===zg||z===zc)===!0&&R()===Yc){if(_=Q.isGlob=!0,y=Q.isExtglob=!0,M=!0,z===zc&&c===l&&(U=!0),i===!0){for(;be()!==!0&&(z=ae());){if(z===es){C=Q.backslashes=!0,z=ae();continue}if(z===Vg){_=Q.isGlob=!0,M=!0;break}}continue}break}if(z===Gc){if(G===Gc&&(p=Q.isGlobstar=!0),_=Q.isGlob=!0,M=!0,i===!0)continue;break}if(z===zg){if(_=Q.isGlob=!0,M=!0,i===!0)continue;break}if(z===HT){for(;be()!==!0&&(F=ae());){if(F===es){C=Q.backslashes=!0,ae();continue}if(F===UT){m=Q.isBracket=!0,_=Q.isGlob=!0,M=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&z===zc&&c===l){N=Q.negated=!0,l++;continue}if(r.noparen!==!0&&z===Yc){if(_=Q.isGlob=!0,i===!0){for(;be()!==!0&&(z=ae());){if(z===Yc){C=Q.backslashes=!0,z=ae();continue}if(z===Vg){M=!0;break}}continue}break}if(_===!0){if(M=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,_=!1);let ie=u,Qe="",S="";l>0&&(Qe=u.slice(0,l),u=u.slice(l),f-=l),ie&&_===!0&&f>0?(ie=u.slice(0,f),S=u.slice(f)):_===!0?(ie="",S=u):ie=u,ie&&ie!==""&&ie!=="/"&&ie!==u&&Yg(ie.charCodeAt(ie.length-1))&&(ie=ie.slice(0,-1)),r.unescape===!0&&(S&&(S=Wg.removeBackslashes(S)),ie&&C===!0&&(ie=Wg.removeBackslashes(ie)));let A={prefix:Qe,input:t,start:l,base:ie,glob:S,isBrace:h,isBracket:m,isGlob:_,isExtglob:y,isGlobstar:p,negated:N,negatedExtglob:U};if(r.tokens===!0&&(A.maxDepth=0,Yg(z)||o.push(Q),A.tokens=o),r.parts===!0||r.tokens===!0){let F;for(let v=0;v<s.length;v++){let k=F?F+1:l,$=s[v],q=t.slice(k,$);r.tokens&&(v===0&&l!==0?(o[v].isPrefix=!0,o[v].value=Qe):o[v].value=q,Kg(o[v]),A.maxDepth+=o[v].depth),(v!==0||q!=="")&&a.push(q),F=$}if(F&&F+1<t.length){let v=t.slice(F+1);a.push(v),r.tokens&&(o[o.length-1].value=v,Kg(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};Xg.exports=GT});var ty=b((u6,ey)=>{"use strict";var yo=Zi(),ut=Qi(),{MAX_LENGTH:_o,POSIX_REGEX_SOURCE:WT,REGEX_NON_SPECIAL_CHARS:zT,REGEX_SPECIAL_CHARS_BACKREF:VT,REPLACEMENTS:Qg}=yo,YT=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>ut.escapeRegex(i)).join("..")}return r},Nn=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Kc=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Qg[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.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=ut.isWindows(e),c=yo.globChars(u),l=yo.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:m,ONE_CHAR:_,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:D,NO_DOTS_SLASH:C,QMARK:N,QMARK_NO_DOT:U,STAR:M,START_ANCHOR:Y}=c,G=I=>`(${a}(?:(?!${Y}${I.dot?y:f}).)*?)`,z=r.dot?"":p,Q=r.dot?N:U,be=r.bash===!0?G(r):M;r.capture&&(be=`(${be})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ut.removePrefix(t,R),i=t.length;let ae=[],ie=[],Qe=[],S=s,A,F=()=>R.index===i-1,v=R.peek=(I=1)=>t[R.index+I],k=R.advance=()=>t[++R.index]||"",$=()=>t.slice(R.index+1),q=(I="",le=0)=>{R.consumed+=I,R.index+=le},ue=I=>{R.output+=I.output!=null?I.output:I.value,q(I.value)},Re=()=>{let I=1;for(;v()==="!"&&(v(2)!=="("||v(3)==="?");)k(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},se=I=>{R[I]++,Qe.push(I)},De=I=>{R[I]--,Qe.pop()},V=I=>{if(S.type==="globstar"){let le=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||ae.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!le&&!B&&(R.output=R.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=be,R.output+=S.output)}if(ae.length&&I.type!=="paren"&&(ae[ae.length-1].inner+=I.value),(I.value||I.output)&&ue(I),S&&S.type==="text"&&I.type==="text"){S.value+=I.value,S.output=(S.output||"")+I.value;return}I.prev=S,o.push(I),S=I},Ke=(I,le)=>{let B={...l[le],conditions:1,inner:""};B.prev=S,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;se("parens"),V({type:I,value:le,output:R.output?"":_}),V({type:"paren",extglob:!0,value:k(),output:d}),ae.push(B)},ot=I=>{let le=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=be;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=G(r)),(d!==be||F()||/^\)+$/.test($()))&&(le=I.close=`)$))${d}`),I.inner.includes("*")&&(B=$())&&/^\.[^\\/.]+$/.test(B)){let w=Kc(B,{...e,fastpaths:!1}).output;le=I.close=`)${w})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:A,output:le}),De("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let I=!1,le=t.replace(VT,(B,d,w,g,O,j)=>g==="\\"?(I=!0,B):g==="?"?d?d+g+(O?N.repeat(O.length):""):j===0?Q+(O?N.repeat(O.length):""):N.repeat(w.length):g==="."?f.repeat(w.length):g==="*"?d?d+g+(O?be:""):be:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?le=le.replace(/\\/g,""):le=le.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),le===t&&r.contains===!0?(R.output=t,R):(R.output=ut.wrapOutput(le,R,e),R)}for(;!F();){if(A=k(),A==="\0")continue;if(A==="\\"){let B=v();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){A+="\\",V({type:"text",value:A});continue}let d=/^\\+/.exec($()),w=0;if(d&&d[0].length>2&&(w=d[0].length,R.index+=w,w%2!==0&&(A+="\\")),r.unescape===!0?A=k():A+=k(),R.brackets===0){V({type:"text",value:A});continue}}if(R.brackets>0&&(A!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&A===":"){let B=S.value.slice(1);if(B.includes("[")&&(S.posix=!0,B.includes(":"))){let d=S.value.lastIndexOf("["),w=S.value.slice(0,d),g=S.value.slice(d+2),O=WT[g];if(O){S.value=w+O,R.backtrack=!0,k(),!s.output&&o.indexOf(S)===1&&(s.output=_);continue}}}(A==="["&&v()!==":"||A==="-"&&v()==="]")&&(A=`\\${A}`),A==="]"&&(S.value==="["||S.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&S.value==="["&&(A="^"),S.value+=A,ue({value:A});continue}if(R.quotes===1&&A!=='"'){A=ut.escapeRegex(A),S.value+=A,ue({value:A});continue}if(A==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:A});continue}if(A==="("){se("parens"),V({type:"paren",value:A});continue}if(A===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Nn("opening","("));let B=ae[ae.length-1];if(B&&R.parens===B.parens+1){ot(ae.pop());continue}V({type:"paren",value:A,output:R.parens?")":"\\)"}),De("parens");continue}if(A==="["){if(r.nobracket===!0||!$().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Nn("closing","]"));A=`\\${A}`}else se("brackets");V({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){V({type:"text",value:A,output:`\\${A}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Nn("opening","["));V({type:"text",value:A,output:`\\${A}`});continue}De("brackets");let B=S.value.slice(1);if(S.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(A=`/${A}`),S.value+=A,ue({value:A}),r.literalBrackets===!1||ut.hasRegexChars(B))continue;let d=ut.escapeRegex(S.value);if(R.output=R.output.slice(0,-S.value.length),r.literalBrackets===!0){R.output+=d,S.value=d;continue}S.value=`(${a}${d}|${S.value})`,R.output+=S.value;continue}if(A==="{"&&r.nobrace!==!0){se("braces");let B={type:"brace",value:A,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};ie.push(B),V(B);continue}if(A==="}"){let B=ie[ie.length-1];if(r.nobrace===!0||!B){V({type:"text",value:A,output:A});continue}let d=")";if(B.dots===!0){let w=o.slice(),g=[];for(let O=w.length-1;O>=0&&(o.pop(),w[O].type!=="brace");O--)w[O].type!=="dots"&&g.unshift(w[O].value);d=YT(g,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let w=R.output.slice(0,B.outputIndex),g=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",A=d="\\}",R.output=w;for(let O of g)R.output+=O.output||O.value}V({type:"brace",value:A,output:d}),De("braces"),ie.pop();continue}if(A==="|"){ae.length>0&&ae[ae.length-1].conditions++,V({type:"text",value:A});continue}if(A===","){let B=A,d=ie[ie.length-1];d&&Qe[Qe.length-1]==="braces"&&(d.comma=!0,B="|"),V({type:"comma",value:A,output:B});continue}if(A==="/"){if(S.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),S=s;continue}V({type:"slash",value:A,output:m});continue}if(A==="."){if(R.braces>0&&S.type==="dot"){S.value==="."&&(S.output=f);let B=ie[ie.length-1];S.type="dots",S.output+=A,S.value+=A,B.dots=!0;continue}if(R.braces+R.parens===0&&S.type!=="bos"&&S.type!=="slash"){V({type:"text",value:A,output:f});continue}V({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(S&&S.value==="(")&&r.noextglob!==!0&&v()==="("&&v(2)!=="?"){Ke("qmark",A);continue}if(S&&S.type==="paren"){let d=v(),w=A;if(d==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test($()))&&(w=`\\${A}`),V({type:"text",value:A,output:w});continue}if(r.dot!==!0&&(S.type==="slash"||S.type==="bos")){V({type:"qmark",value:A,output:U});continue}V({type:"qmark",value:A,output:N});continue}if(A==="!"){if(r.noextglob!==!0&&v()==="("&&(v(2)!=="?"||!/[!=<:]/.test(v(3)))){Ke("negate",A);continue}if(r.nonegate!==!0&&R.index===0){Re();continue}}if(A==="+"){if(r.noextglob!==!0&&v()==="("&&v(2)!=="?"){Ke("plus",A);continue}if(S&&S.value==="("||r.regex===!1){V({type:"plus",value:A,output:h});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||R.parens>0){V({type:"plus",value:A});continue}V({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&v()==="("&&v(2)!=="?"){V({type:"at",extglob:!0,value:A,output:""});continue}V({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let B=zT.exec($());B&&(A+=B[0],R.index+=B[0].length),V({type:"text",value:A});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=A,S.output=be,R.backtrack=!0,R.globstar=!0,q(A);continue}let I=$();if(r.noextglob!==!0&&/^\([^?]/.test(I)){Ke("star",A);continue}if(S.type==="star"){if(r.noglobstar===!0){q(A);continue}let B=S.prev,d=B.prev,w=B.type==="slash"||B.type==="bos",g=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!w||I[0]&&I[0]!=="/")){V({type:"star",value:A,output:""});continue}let O=R.braces>0&&(B.type==="comma"||B.type==="brace"),j=ae.length&&(B.type==="pipe"||B.type==="paren");if(!w&&B.type!=="paren"&&!O&&!j){V({type:"star",value:A,output:""});continue}for(;I.slice(0,3)==="/**";){let H=t[R.index+4];if(H&&H!=="/")break;I=I.slice(3),q("/**",3)}if(B.type==="bos"&&F()){S.type="globstar",S.value+=A,S.output=G(r),R.output=S.output,R.globstar=!0,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!g&&F()){R.output=R.output.slice(0,-(B.output+S.output).length),B.output=`(?:${B.output}`,S.type="globstar",S.output=G(r)+(r.strictSlashes?")":"|$)"),S.value+=A,R.globstar=!0,R.output+=B.output+S.output,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let H=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+S.output).length),B.output=`(?:${B.output}`,S.type="globstar",S.output=`${G(r)}${m}|${m}${H})`,S.value+=A,R.output+=B.output+S.output,R.globstar=!0,q(A+k()),V({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){S.type="globstar",S.value+=A,S.output=`(?:^|${m}|${G(r)}${m})`,R.output=S.output,R.globstar=!0,q(A+k()),V({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-S.output.length),S.type="globstar",S.output=G(r),S.value+=A,R.output+=S.output,R.globstar=!0,q(A);continue}let le={type:"star",value:A,output:be};if(r.bash===!0){le.output=".*?",(S.type==="bos"||S.type==="slash")&&(le.output=z+le.output),V(le);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&r.regex===!0){le.output=A,V(le);continue}(R.index===R.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(R.output+=D,S.output+=D):r.dot===!0?(R.output+=C,S.output+=C):(R.output+=z,S.output+=z),v()!=="*"&&(R.output+=_,S.output+=_)),V(le)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Nn("closing","]"));R.output=ut.escapeLast(R.output,"["),De("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Nn("closing",")"));R.output=ut.escapeLast(R.output,"("),De("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Nn("closing","}"));R.output=ut.escapeLast(R.output,"{"),De("braces")}if(r.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${m}?`}),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};Kc.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=Qg[t]||t;let s=ut.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:m,START_ANCHOR:_}=yo.globChars(s),y=r.dot?f:l,p=r.dot?h:l,D=r.capture?"":"?:",C={negated:!1,prefix:""},N=r.bash===!0?".*?":m;r.capture&&(N=`(${N})`);let U=z=>z.noglobstar===!0?N:`(${D}(?:(?!${_}${z.dot?c:o}).)*?)`,M=z=>{switch(z){case"*":return`${y}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${y}${N}${o}${u}${N}`;case"*/*":return`${y}${N}${a}${u}${p}${N}`;case"**":return y+U(r);case"**/*":return`(?:${y}${U(r)}${a})?${p}${u}${N}`;case"**/*.*":return`(?:${y}${U(r)}${a})?${p}${N}${o}${u}${N}`;case"**/.*":return`(?:${y}${U(r)}${a})?${o}${u}${N}`;default:{let Q=/^(.*?)\.(\w+)$/.exec(z);if(!Q)return;let be=M(Q[1]);return be?be+o+Q[2]:void 0}}},Y=ut.removePrefix(t,C),G=M(Y);return G&&r.strictSlashes!==!0&&(G+=`${a}?`),G};ey.exports=Kc});var ny=b((c6,ry)=>{"use strict";var KT=require("path"),JT=Zg(),Jc=ty(),Xc=Qi(),XT=Zi(),ZT=t=>t&&typeof t=="object"&&!Array.isArray(t),xe=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>xe(h,e,r));return h=>{for(let m of l){let _=m(h);if(_)return _}return!1}}let n=ZT(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Xc.isWindows(e),o=n?xe.compileRe(t,e):xe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=xe(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:m,output:_}=xe.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:_,match:m,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,f?y:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,f?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),f?y:!0)};return r&&(c.state=a),c};xe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Xc.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=xe.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};xe.matchBase=(t,e,r,n=Xc.isWindows(r))=>(e instanceof RegExp?e:xe.makeRe(e,r)).test(KT.basename(t));xe.isMatch=(t,e,r)=>xe(e,r)(t);xe.parse=(t,e)=>Array.isArray(t)?t.map(r=>xe.parse(r,e)):Jc(t,{...e,fastpaths:!1});xe.scan=(t,e)=>JT(t,e);xe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=xe.toRegex(a,e);return n===!0&&(u.state=t),u};xe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Jc.fastpaths(t,e)),i.output||(i=Jc(t,e)),xe.compileRe(i,e,r,n)};xe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};xe.constants=XT;ry.exports=xe});var sy=b((l6,iy)=>{"use strict";iy.exports=ny()});var ly=b((f6,cy)=>{"use strict";var ay=require("util"),uy=qg(),Nt=sy(),Zc=Qi(),oy=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);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<e.length;l++){let f=Nt(String(e[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let m of t){let _=f(m,!0);(h?!_.isMatch:_.isMatch)&&(h?n.add(_.output):(n.delete(_.output),i.add(_.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};ye.match=ye;ye.matcher=(t,e)=>Nt(t,e);ye.isMatch=(t,e,r)=>Nt(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ay.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>ye.contains(t,n,r));if(typeof e=="string"){if(oy(t)||oy(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!Zc.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=ye(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};ye.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Nt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Nt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ay.inspect(t)}"`);return[].concat(e).every(n=>Nt(n,r)(t))};ye.capture=(t,e,r)=>{let n=Zc.isWindows(r),s=Nt.makeRe(String(t),{...r,capture:!0}).exec(n?Zc.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>Nt.makeRe(...t);ye.scan=(...t)=>Nt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of uy(String(n),e))r.push(Nt.parse(i,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:uy(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};cy.exports=ye});var _y=b(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.matchAny=K.convertPatternsToRe=K.makeRe=K.getPatternParts=K.expandBraceExpansion=K.expandPatternsWithBraceExpansion=K.isAffectDepthOfReadingPattern=K.endsWithSlashGlobStar=K.hasGlobStar=K.getBaseDirectory=K.isPatternRelatedToParentDirectory=K.getPatternsOutsideCurrentDirectory=K.getPatternsInsideCurrentDirectory=K.getPositivePatterns=K.getNegativePatterns=K.isPositivePattern=K.isNegativePattern=K.convertToNegativePattern=K.convertToPositivePattern=K.isDynamicPattern=K.isStaticPattern=void 0;var QT=require("path"),eO=rg(),Qc=ly(),fy="**",tO="\\",rO=/[*?]|^!/,nO=/\[[^[]*]/,iO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,sO=/[!*+?@]\([^(]*\)/,oO=/,|\.\./;function hy(t,e={}){return!dy(t,e)}K.isStaticPattern=hy;function dy(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(tO)||rO.test(t)||nO.test(t)||iO.test(t)||e.extglob!==!1&&sO.test(t)||e.braceExpansion!==!1&&aO(t))}K.isDynamicPattern=dy;function aO(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return oO.test(n)}function uO(t){return Eo(t)?t.slice(1):t}K.convertToPositivePattern=uO;function cO(t){return"!"+t}K.convertToNegativePattern=cO;function Eo(t){return t.startsWith("!")&&t[1]!=="("}K.isNegativePattern=Eo;function py(t){return!Eo(t)}K.isPositivePattern=py;function lO(t){return t.filter(Eo)}K.getNegativePatterns=lO;function fO(t){return t.filter(py)}K.getPositivePatterns=fO;function hO(t){return t.filter(e=>!el(e))}K.getPatternsInsideCurrentDirectory=hO;function dO(t){return t.filter(el)}K.getPatternsOutsideCurrentDirectory=dO;function el(t){return t.startsWith("..")||t.startsWith("./..")}K.isPatternRelatedToParentDirectory=el;function pO(t){return eO(t,{flipBackslashes:!1})}K.getBaseDirectory=pO;function mO(t){return t.includes(fy)}K.hasGlobStar=mO;function my(t){return t.endsWith("/"+fy)}K.endsWithSlashGlobStar=my;function gO(t){let e=QT.basename(t);return my(t)||hy(e)}K.isAffectDepthOfReadingPattern=gO;function yO(t){return t.reduce((e,r)=>e.concat(gy(r)),[])}K.expandPatternsWithBraceExpansion=yO;function gy(t){return Qc.braces(t,{expand:!0,nodupes:!0})}K.expandBraceExpansion=gy;function _O(t,e){let{parts:r}=Qc.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}K.getPatternParts=_O;function yy(t,e){return Qc.makeRe(t,e)}K.makeRe=yy;function EO(t,e){return t.map(r=>yy(r,e))}K.convertPatternsToRe=EO;function bO(t,e){return e.some(r=>r.test(t))}K.matchAny=bO});var wy=b((d6,Dy)=>{"use strict";var DO=require("stream"),Ey=DO.PassThrough,wO=Array.prototype.slice;Dy.exports=AO;function AO(){let t=[],e=wO.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.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=Ey(n);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(by(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,u())}function m(_){function y(){_.removeListener("merge2UnpipeEnd",y),_.removeListener("end",y),s&&_.removeListener("error",p),h()}function p(D){o.emit("error",D)}if(_._readableState.endEmitted)return h();_.on("merge2UnpipeEnd",y),_.on("end",y),s&&_.on("error",p),_.pipe(o,{end:!1}),_.resume()}for(let _=0;_<l.length;_++)m(l[_]);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")}),e.length&&a.apply(null,e),o}function by(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=by(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Ey(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var xy=b(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.merge=void 0;var xO=wy();function SO(t){let e=xO(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Ay(t)),e.once("end",()=>Ay(t)),e}bo.merge=SO;function Ay(t){t.forEach(e=>e.emit("close"))}});var Sy=b(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.isEmpty=Mn.isString=void 0;function CO(t){return typeof t=="string"}Mn.isString=CO;function vO(t){return t===""}Mn.isEmpty=vO});var nr=b(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.string=je.stream=je.pattern=je.path=je.fs=je.errno=je.array=void 0;var RO=z0();je.array=RO;var FO=V0();je.errno=FO;var TO=Y0();je.fs=TO;var OO=K0();je.path=OO;var kO=_y();je.pattern=kO;var PO=xy();je.stream=PO;var BO=Sy();je.string=BO});var Ry=b($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.convertPatternGroupToTask=$e.convertPatternGroupsToTasks=$e.groupPatternsByBaseDirectory=$e.getNegativePatternsAsPositive=$e.getPositivePatterns=$e.convertPatternsToTasks=$e.generate=void 0;var ir=nr();function IO(t,e){let r=Cy(t),n=vy(t,e.ignore),i=r.filter(u=>ir.pattern.isStaticPattern(u,e)),s=r.filter(u=>ir.pattern.isDynamicPattern(u,e)),o=tl(i,n,!1),a=tl(s,n,!0);return o.concat(a)}$e.generate=IO;function tl(t,e,r){let n=[],i=ir.pattern.getPatternsOutsideCurrentDirectory(t),s=ir.pattern.getPatternsInsideCurrentDirectory(t),o=rl(i),a=rl(s);return n.push(...nl(o,e,r)),"."in a?n.push(il(".",s,e,r)):n.push(...nl(a,e,r)),n}$e.convertPatternsToTasks=tl;function Cy(t){return ir.pattern.getPositivePatterns(t)}$e.getPositivePatterns=Cy;function vy(t,e){return ir.pattern.getNegativePatterns(t).concat(e).map(ir.pattern.convertToPositivePattern)}$e.getNegativePatternsAsPositive=vy;function rl(t){let e={};return t.reduce((r,n)=>{let i=ir.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}$e.groupPatternsByBaseDirectory=rl;function nl(t,e,r){return Object.keys(t).map(n=>il(n,t[n],e,r))}$e.convertPatternGroupsToTasks=nl;function il(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(ir.pattern.convertToNegativePattern))}}$e.convertPatternGroupToTask=il});var Ty=b(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.removeDuplicateSlashes=qn.transform=void 0;var LO=/(?!^)\/{2,}/g;function NO(t){return t.map(e=>Fy(e))}qn.transform=NO;function Fy(t){return t.replace(LO,"/")}qn.removeDuplicateSlashes=Fy});var ky=b(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.read=void 0;function MO(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Oy(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){sl(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Oy(r,s);return}sl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),sl(r,o)})})}Do.read=MO;function Oy(t,e){t(e)}function sl(t,e){t(null,e)}});var Py=b(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.read=void 0;function qO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}wo.read=qO});var By=b(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createFileSystemAdapter=vr.FILE_SYSTEM_ADAPTER=void 0;var Ao=require("fs");vr.FILE_SYSTEM_ADAPTER={lstat:Ao.lstat,stat:Ao.stat,lstatSync:Ao.lstatSync,statSync:Ao.statSync};function HO(t){return t===void 0?vr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vr.FILE_SYSTEM_ADAPTER),t)}vr.createFileSystemAdapter=HO});var Iy=b(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var jO=By(),ol=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=jO.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};al.default=ol});var on=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.statSync=Rr.stat=Rr.Settings=void 0;var Ly=ky(),$O=Py(),ul=Iy();Rr.Settings=ul.default;function UO(t,e,r){if(typeof e=="function"){Ly.read(t,cl(),e);return}Ly.read(t,cl(e),r)}Rr.stat=UO;function GO(t,e){let r=cl(e);return $O.read(t,r)}Rr.statSync=GO;function cl(t={}){return t instanceof ul.default?t:new ul.default(t)}});var qy=b((x6,My)=>{var Ny;My.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Ny||(Ny=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var jy=b((S6,Hy)=>{Hy.exports=zO;var WO=qy();function zO(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?WO(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var ll=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.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 $y=Number.parseInt(xo[0],10),VO=Number.parseInt(xo[1],10),Uy=10,YO=10,KO=$y>Uy,JO=$y===Uy&&VO>=YO;So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=KO||JO});var Gy=b(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createDirentFromStats=void 0;var fl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function XO(t,e){return new fl(t,e)}Co.createDirentFromStats=XO});var hl=b(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.fs=void 0;var ZO=Gy();vo.fs=ZO});var dl=b(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.joinPathSegments=void 0;function QO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ro.joinPathSegments=QO});var Jy=b(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.readdir=Fr.readdirWithFileTypes=Fr.read=void 0;var ek=on(),Wy=jy(),tk=ll(),zy=hl(),Vy=dl();function rk(t,e,r){if(!e.stats&&tk.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Yy(t,e,r);return}Ky(t,e,r)}Fr.read=rk;function Yy(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Vy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){pl(r,s);return}let o=s.map(a=>nk(a,e));Wy(o,(a,u)=>{if(a!==null){Fo(r,a);return}pl(r,u)})})}Fr.readdirWithFileTypes=Yy;function nk(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=zy.fs.createDirentFromStats(t.name,i),r(null,t)})}}function Ky(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(o=>{let a=Vy.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{ek.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:zy.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),u(null,f)})}});Wy(s,(o,a)=>{if(o!==null){Fo(r,o);return}pl(r,a)})})}Fr.readdir=Ky;function Fo(t,e){t(e)}function pl(t,e){t(null,e)}});var t_=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.readdir=Tr.readdirWithFileTypes=Tr.read=void 0;var ik=on(),sk=ll(),Xy=hl(),Zy=dl();function ok(t,e){return!e.stats&&sk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Qy(t,e):e_(t,e)}Tr.read=ok;function Qy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Zy.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=Xy.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Tr.readdirWithFileTypes=Qy;function e_(t,e){return e.fs.readdirSync(t).map(n=>{let i=Zy.joinPathSegments(t,n,e.pathSegmentSeparator),s=ik.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:Xy.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Tr.readdir=e_});var r_=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createFileSystemAdapter=Or.FILE_SYSTEM_ADAPTER=void 0;var Hn=require("fs");Or.FILE_SYSTEM_ADAPTER={lstat:Hn.lstat,stat:Hn.stat,lstatSync:Hn.lstatSync,statSync:Hn.statSync,readdir:Hn.readdir,readdirSync:Hn.readdirSync};function ak(t){return t===void 0?Or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Or.FILE_SYSTEM_ADAPTER),t)}Or.createFileSystemAdapter=ak});var n_=b(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var uk=require("path"),ck=on(),lk=r_(),ml=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=lk.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,uk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ck.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};gl.default=ml});var To=b(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var i_=Jy(),fk=t_(),yl=n_();kr.Settings=yl.default;function hk(t,e,r){if(typeof e=="function"){i_.read(t,_l(),e);return}i_.read(t,_l(e),r)}kr.scandir=hk;function dk(t,e){let r=_l(e);return fk.read(t,r)}kr.scandirSync=dk;function _l(t={}){return t instanceof yl.default?t:new yl.default(t)}});var o_=b((I6,s_)=>{"use strict";function pk(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}s_.exports=pk});var u_=b((L6,El)=>{"use strict";var mk=o_();function a_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=mk(gk),i=null,s=null,o=0,a=null,u={push:y,drain:mt,saturated:mt,pause:l,paused:!1,concurrency:r,running:c,resume:m,idle:_,length:f,getQueue:h,unshift:p,empty:mt,kill:C,killAndDrain:N,error:U};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var M=i,Y=0;M;)M=M.next,Y++;return Y}function h(){for(var M=i,Y=[];M;)Y.push(M.value),M=M.next;return Y}function m(){if(u.paused){u.paused=!1;for(var M=0;M<u.concurrency;M++)o++,D()}}function _(){return o===0&&u.length()===0}function y(M,Y){var G=n.get();G.context=t,G.release=D,G.value=M,G.callback=Y||mt,G.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=G,s=G):(i=G,s=G,u.saturated()):(o++,e.call(t,G.value,G.worked))}function p(M,Y){var G=n.get();G.context=t,G.release=D,G.value=M,G.callback=Y||mt,o===u.concurrency||u.paused?i?(G.next=i,i=G):(i=G,s=G,u.saturated()):(o++,e.call(t,G.value,G.worked))}function D(M){M&&n.release(M);var Y=i;Y?u.paused?o--:(s===i&&(s=null),i=Y.next,Y.next=null,e.call(t,Y.value,Y.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){i=null,s=null,u.drain=mt}function N(){i=null,s=null,u.drain(),u.drain=mt}function U(M){a=M}}function mt(){}function gk(){this.value=null,this.callback=mt,this.next=null,this.release=mt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=mt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function yk(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var i=a_(t,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,m){s(l,function(_,y){if(_){m(_);return}h(y)})});return f.catch(mt),f}function u(l){var f=new Promise(function(h,m){o(l,function(_,y){if(_){m(_);return}h(y)})});return f.catch(mt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}El.exports=a_;El.exports.promise=yk});var Oo=b(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.joinPathSegments=Mt.replacePathSegmentSeparator=Mt.isAppliedFilter=Mt.isFatalError=void 0;function _k(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Mt.isFatalError=_k;function Ek(t,e){return t===null||t(e)}Mt.isAppliedFilter=Ek;function bk(t,e){return t.split(/[/\\]/).join(e)}Mt.replacePathSegmentSeparator=bk;function Dk(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Mt.joinPathSegments=Dk});var wl=b(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var wk=Oo(),bl=class{constructor(e,r){this._root=e,this._settings=r,this._root=wk.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Dl.default=bl});var Sl=b(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Ak=require("events"),xk=To(),Sk=u_(),ko=Oo(),Ck=wl(),Al=class extends Ck.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=xk.scandir,this._emitter=new Ak.EventEmitter,this._queue=Sk(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ko.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=ko.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ko.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ko.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};xl.default=Al});var c_=b(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var vk=Sl(),Cl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new vk.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Rk(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fk(e,this._storage)}),this._reader.read()}};vl.default=Cl;function Rk(t,e){t(e)}function Fk(t,e){t(null,e)}});var l_=b(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var Tk=require("stream"),Ok=Sl(),Rl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Ok.default(this._root,this._settings),this._stream=new Tk.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Fl.default=Rl});var f_=b(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var kk=To(),Po=Oo(),Pk=wl(),Tl=class extends Pk.default{constructor(){super(...arguments),this._scandir=kk.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Po.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Po.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Po.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Po.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ol.default=Tl});var h_=b(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Bk=f_(),kl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Bk.default(this._root,this._settings)}read(){return this._reader.read()}};Pl.default=kl});var d_=b(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Ik=require("path"),Lk=To(),Bl=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ik.sep),this.fsScandirSettings=new Lk.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Il.default=Bl});var Io=b(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.Settings=qt.walkStream=qt.walkSync=qt.walk=void 0;var p_=c_(),Nk=l_(),Mk=h_(),Ll=d_();qt.Settings=Ll.default;function qk(t,e,r){if(typeof e=="function"){new p_.default(t,Bo()).read(e);return}new p_.default(t,Bo(e)).read(r)}qt.walk=qk;function Hk(t,e){let r=Bo(e);return new Mk.default(t,r).read()}qt.walkSync=Hk;function jk(t,e){let r=Bo(e);return new Nk.default(t,r).read()}qt.walkStream=jk;function Bo(t={}){return t instanceof Ll.default?t:new Ll.default(t)}});var Lo=b(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var $k=require("path"),Uk=on(),m_=nr(),Nl=class{constructor(e){this._settings=e,this._fsStatSettings=new Uk.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return $k.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:m_.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!m_.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ml.default=Nl});var jl=b(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Gk=require("stream"),Wk=on(),zk=Io(),Vk=Lo(),ql=class extends Vk.default{constructor(){super(...arguments),this._walkStream=zk.walkStream,this._stat=Wk.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Gk.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[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(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Hl.default=ql});var g_=b(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Yk=Io(),Kk=Lo(),Jk=jl(),$l=class extends Kk.default{constructor(){super(...arguments),this._walkAsync=Yk.walk,this._readerStream=new Jk.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Ul.default=$l});var y_=b(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var jn=nr(),Gl=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=jn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return jn.pattern.getPatternParts(e,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(e){return jn.array.splitWhen(e,r=>r.dynamic&&jn.pattern.hasGlobStar(r.pattern))}};Wl.default=Gl});var __=b(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var Xk=y_(),zl=class extends Xk.default{match(e){let r=e.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}};Vl.default=zl});var E_=b(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var No=nr(),Zk=__(),Yl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new Zk.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(No.pattern.isAffectDepthOfReadingPattern);return No.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=No.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!No.pattern.matchAny(e,r)}};Kl.default=Yl});var b_=b(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var an=nr(),Jl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=an.pattern.convertPatternsToRe(e,this._micromatchOptions),i=an.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=an.path.makeAbsolute(this._settings.cwd,e);return an.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=an.path.removeLeadingDotSegment(e),s=an.pattern.matchAny(i,r);return!s&&n?an.pattern.matchAny(i+"/",r):s}};Xl.default=Jl});var D_=b(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Qk=nr(),Zl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Qk.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ql.default=Zl});var A_=b(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var w_=nr(),ef=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=w_.path.makeAbsolute(this._settings.cwd,r),r=w_.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};tf.default=ef});var Mo=b(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var eP=require("path"),tP=E_(),rP=b_(),nP=D_(),iP=A_(),rf=class{constructor(e){this._settings=e,this.errorFilter=new nP.default(this._settings),this.entryFilter=new rP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new tP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new iP.default(this._settings)}_getRootDirectory(e){return eP.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};nf.default=rf});var x_=b(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var sP=g_(),oP=Mo(),sf=class extends oP.default{constructor(){super(...arguments),this._reader=new sP.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};of.default=sf});var S_=b(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var aP=require("stream"),uP=jl(),cP=Mo(),af=class extends cP.default{constructor(){super(...arguments),this._reader=new uP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new aP.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(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};uf.default=af});var C_=b(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var lP=on(),fP=Io(),hP=Lo(),cf=class extends hP.default{constructor(){super(...arguments),this._walkSync=fP.walkSync,this._statSync=lP.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};lf.default=cf});var v_=b(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var dP=C_(),pP=Mo(),ff=class extends pP.default{constructor(){super(...arguments),this._reader=new dP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};hf.default=ff});var R_=b(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var $n=require("fs"),mP=require("os"),gP=Math.max(mP.cpus().length,1);Un.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:$n.lstat,lstatSync:$n.lstatSync,stat:$n.stat,statSync:$n.statSync,readdir:$n.readdir,readdirSync:$n.readdirSync};var df=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,gP),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Un.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Un.default=df});var k_=b((a5,O_)=>{"use strict";var F_=Ry(),T_=Ty(),yP=x_(),_P=S_(),EP=v_(),pf=R_(),un=nr();async function mf(t,e){Gn(t);let r=gf(t,yP.default,e),n=await Promise.all(r);return un.array.flatten(n)}(function(t){function e(o,a){Gn(o);let u=gf(o,EP.default,a);return un.array.flatten(u)}t.sync=e;function r(o,a){Gn(o);let u=gf(o,_P.default,a);return un.stream.merge(u)}t.stream=r;function n(o,a){Gn(o);let u=T_.transform([].concat(o)),c=new pf.default(a);return F_.generate(u,c)}t.generateTasks=n;function i(o,a){Gn(o);let u=new pf.default(a);return un.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Gn(o),un.path.escape(o)}t.escapePath=s})(mf||(mf={}));function gf(t,e,r){let n=T_.transform([].concat(t)),i=new pf.default(r),s=F_.generate(n,i),o=new e(i);return s.map(o.read,o)}function Gn(t){if(![].concat(t).every(n=>un.string.isString(n)&&!un.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}O_.exports=mf});var B_=b((u5,yf)=>{"use strict";var P_=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};yf.exports=P_;yf.exports.default=P_});var _f=b((c5,Ho)=>{"use strict";var bP=B_(),qo=new WeakMap,I_=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(qo.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return bP(s,t),qo.set(s,n),s};Ho.exports=I_;Ho.exports.default=I_;Ho.exports.callCount=t=>{if(!qo.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return qo.get(t)}});var L_=b((l5,jo)=>{jo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&jo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&jo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Df=b((f5,Vn)=>{var _e=global.process,cn=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};cn(_e)?(N_=require("assert"),Wn=L_(),M_=/^win/i.test(_e.platform),ts=require("events"),typeof ts!="function"&&(ts=ts.EventEmitter),_e.__signal_exit_emitter__?ke=_e.__signal_exit_emitter__:(ke=_e.__signal_exit_emitter__=new ts,ke.count=0,ke.emitted={}),ke.infinite||(ke.setMaxListeners(1/0),ke.infinite=!0),Vn.exports=function(t,e){if(!cn(global.process))return function(){};N_.equal(typeof t,"function","a callback must be provided for exit handler"),zn===!1&&Ef();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){ke.removeListener(r,t),ke.listeners("exit").length===0&&ke.listeners("afterexit").length===0&&$o()};return ke.on(r,t),n},$o=function(){!zn||!cn(global.process)||(zn=!1,Wn.forEach(function(e){try{_e.removeListener(e,Uo[e])}catch{}}),_e.emit=Go,_e.reallyExit=bf,ke.count-=1)},Vn.exports.unload=$o,ln=function(e,r,n){ke.emitted[e]||(ke.emitted[e]=!0,ke.emit(e,r,n))},Uo={},Wn.forEach(function(t){Uo[t]=function(){if(cn(global.process)){var r=_e.listeners(t);r.length===ke.count&&($o(),ln("exit",null,t),ln("afterexit",null,t),M_&&t==="SIGHUP"&&(t="SIGINT"),_e.kill(_e.pid,t))}}}),Vn.exports.signals=function(){return Wn},zn=!1,Ef=function(){zn||!cn(global.process)||(zn=!0,ke.count+=1,Wn=Wn.filter(function(e){try{return _e.on(e,Uo[e]),!0}catch{return!1}}),_e.emit=H_,_e.reallyExit=q_)},Vn.exports.load=Ef,bf=_e.reallyExit,q_=function(e){cn(global.process)&&(_e.exitCode=e||0,ln("exit",_e.exitCode,null),ln("afterexit",_e.exitCode,null),bf.call(_e,_e.exitCode))},Go=_e.emit,H_=function(e,r){if(e==="exit"&&cn(global.process)){r!==void 0&&(_e.exitCode=r);var n=Go.apply(this,arguments);return ln("exit",_e.exitCode,null),ln("afterexit",_e.exitCode,null),n}else return Go.apply(this,arguments)}):Vn.exports=function(){return function(){}};var N_,Wn,M_,ts,ke,$o,ln,Uo,zn,Ef,bf,q_,Go,H_});var $_=b((h5,j_)=>{"use strict";var DP=_f(),wP=Df();j_.exports=DP(()=>{wP(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var U_=b(Yn=>{"use strict";var AP=$_(),Wo=!1;Yn.show=(t=process.stderr)=>{t.isTTY&&(Wo=!1,t.write("\x1B[?25h"))};Yn.hide=(t=process.stderr)=>{t.isTTY&&(AP(),Wo=!0,t.write("\x1B[?25l"))};Yn.toggle=(t,e)=>{t!==void 0&&(Wo=t),Wo?Yn.show(e):Yn.hide(e)}});var G_=b((p5,xP)=>{xP.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 V_=b((m5,z_)=>{"use strict";var zo=Object.assign({},G_()),W_=Object.keys(zo);Object.defineProperty(zo,"random",{get(){let t=Math.floor(Math.random()*W_.length),e=W_[t];return zo[e]}});z_.exports=zo});var K_=b((g5,Y_)=>{"use strict";var Pr=require("chalk"),SP=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",CP={info:Pr.blue("\u2139"),success:Pr.green("\u2714"),warning:Pr.yellow("\u26A0"),error:Pr.red("\u2716")},vP={info:Pr.blue("i"),success:Pr.green("\u221A"),warning:Pr.yellow("\u203C"),error:Pr.red("\xD7")};Y_.exports=SP?CP:vP});var X_=b((y5,J_)=>{"use strict";J_.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var Q_=b((_5,Z_)=>{"use strict";var RP=X_();Z_.exports=t=>typeof t=="string"?t.replace(RP(),""):t});var eE=b((E5,Vo)=>{var FP=function(){"use strict";function t(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var f=[],h=[],m=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function _(y,p){if(y===null)return null;if(p==0)return y;var D,C;if(typeof y!="object")return y;if(t.__isArray(y))D=[];else if(t.__isRegExp(y))D=new RegExp(y.source,s(y)),y.lastIndex&&(D.lastIndex=y.lastIndex);else if(t.__isDate(y))D=new Date(y.getTime());else{if(m&&Buffer.isBuffer(y))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(y.length):D=new Buffer(y.length),y.copy(D),D;typeof c=="undefined"?(C=Object.getPrototypeOf(y),D=Object.create(C)):(D=Object.create(c),C=c)}if(a){var N=f.indexOf(y);if(N!=-1)return h[N];f.push(y),h.push(D)}for(var U in y){var M;C&&(M=Object.getOwnPropertyDescriptor(C,U)),!(M&&M.set==null)&&(D[U]=_(y[U],p-1))}return D}return _(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Vo=="object"&&Vo.exports&&(Vo.exports=FP)});var rE=b((b5,tE)=>{var TP=eE();tE.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=TP(e[r]))}),t}});var iE=b((D5,nE)=>{nE.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 uE=b((w5,wf)=>{"use strict";var OP=rE(),rs=iE(),oE={nul:0,control:0};wf.exports=function(e){return aE(e,oE)};wf.exports.config=function(t){return t=OP(t||{},oE),function(r){return aE(r,t)}};function aE(t,e){if(typeof t!="string")return sE(t,e);for(var r=0,n=0;n<t.length;n++){var i=sE(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function sE(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:kP(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function kP(t){var e=0,r=rs.length-1,n;if(t<rs[0][0]||t>rs[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>rs[n][1])e=n+1;else if(t<rs[n][0])r=n-1;else return!0;return!1}});var lE=b((A5,cE)=>{"use strict";cE.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var hE=b((x5,fE)=>{var Af=require("stream");fE.exports=Pe;function Pe(t){Af.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Pe.prototype=Object.create(Af.prototype);Object.defineProperty(Pe.prototype,"constructor",{value:Pe,enumerable:!1});Pe.prototype.mute=function(){this.muted=!0};Pe.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Pe.prototype,"_onpipe",{value:PP,enumerable:!1,writable:!0,configurable:!0});function PP(t){this._src=t}Object.defineProperty(Pe.prototype,"isTTY",{get:BP,set:IP,enumerable:!0,configurable:!0});function BP(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function IP(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Pe.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Pe.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Pe.prototype.pipe=function(t,e){return this._dest=t,Af.prototype.pipe.call(this,t,e)};Pe.prototype.pause=function(){if(this._src)return this._src.pause()};Pe.prototype.resume=function(){if(this._src)return this._src.resume()};Pe.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Pe.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function xf(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Pe.prototype.destroy=xf("destroy");Pe.prototype.destroySoon=xf("destroySoon");Pe.prototype.close=xf("close")});var pE=b((S5,vf)=>{"use strict";var LP=require("readline"),NP=require("chalk"),dE=U_(),Yo=V_(),Ko=K_(),MP=Q_(),qP=uE(),HP=lE(),jP=hE(),Sf=Symbol("text"),Jo=Symbol("prefixText"),$P=3,Cf=class{constructor(){this.requests=0,this.mutedStream=new jP,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes($P)&&process.emit("SIGINT"),Reflect.apply(e.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=LP.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)}},Xo,Zo=class{constructor(e){Xo||(Xo=new Cf),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},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:HP({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(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=Yo.line;else if(e===void 0)this._spinner=Yo.dots;else if(Yo[e])this._spinner=Yo[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Sf]}get prefixText(){return this[Jo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Jo]=="string"?this[Jo]+"-":"";this.lineCount=MP(r+"--"+this[Sf]).split(`
|
4
|
-
`).reduce((n,i)=>n+Math.max(1,Math.ceil(qP(i)/e)),0)}set text(e){this[Sf]=e,this.updateLineCount()}set prefixText(e){this[Jo]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=NP[this.color](r)),this.frameIndex=++this.frameIndex%e.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 e=0;e<this.linesToClear;e++)e>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(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&dE.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Xo.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
5
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&dE.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Xo.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Ko.success,text:e})}fail(e){return this.stopAndPersist({symbol:Ko.error,text:e})}warn(e){return this.stopAndPersist({symbol:Ko.warning,text:e})}info(e){return this.stopAndPersist({symbol:Ko.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
|
6
|
-
`),this}},UP=function(t){return new Zo(t)};vf.exports=UP;vf.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Zo(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var mE=b((C5,Qo)=>{(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(d,w){if(d=d||"",w=w||{},d instanceof u)return d;if(!(this instanceof u))return new u(d,w);var g=c(d);this._originalInput=d,this._r=g.r,this._g=g.g,this._b=g.b,this._a=g.a,this._roundA=i(100*this._a)/100,this._format=w.format||g.format,this._gradientType=w.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=g.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(),w,g,O,j,H,oe;return w=d.r/255,g=d.g/255,O=d.b/255,w<=.03928?j=w/12.92:j=t.pow((w+.055)/1.055,2.4),g<=.03928?H=g/12.92:H=t.pow((g+.055)/1.055,2.4),O<=.03928?oe=O/12.92:oe=t.pow((O+.055)/1.055,2.4),.2126*j+.7152*H+.0722*oe},setAlpha:function(d){return this._a=v(d),this._roundA=i(100*this._a)/100,this},toHsv:function(){var d=m(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=m(this._r,this._g,this._b),w=i(d.h*360),g=i(d.s*100),O=i(d.v*100);return this._a==1?"hsv("+w+", "+g+"%, "+O+"%)":"hsva("+w+", "+g+"%, "+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),w=i(d.h*360),g=i(d.s*100),O=i(d.l*100);return this._a==1?"hsl("+w+", "+g+"%, "+O+"%)":"hsla("+w+", "+g+"%, "+O+"%, "+this._roundA+")"},toHex:function(d){return y(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[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var w="#"+D(this._r,this._g,this._b,this._a),g=w,O=this._gradientType?"GradientType = 1, ":"";if(d){var j=u(d);g="#"+D(j._r,j._g,j._b,j._a)}return"progid:DXImageTransform.Microsoft.gradient("+O+"startColorstr="+w+",endColorstr="+g+")"},toString:function(d){var w=!!d;d=d||this._format;var g=!1,O=this._a<1&&this._a>=0,j=!w&&O&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return j?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(g=this.toRgbString()),d==="prgb"&&(g=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(g=this.toHexString()),d==="hex3"&&(g=this.toHexString(!0)),d==="hex4"&&(g=this.toHex8String(!0)),d==="hex8"&&(g=this.toHex8String()),d==="name"&&(g=this.toName()),d==="hsl"&&(g=this.toHslString()),d==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,w){var g=d.apply(null,[this].concat([].slice.call(w)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(Y,arguments)},darken:function(){return this._applyModification(G,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(N,arguments)},greyscale:function(){return this._applyModification(U,arguments)},spin:function(){return this._applyModification(z,arguments)},_applyCombination:function(d,w){return d.apply(null,[this].concat([].slice.call(w)))},analogous:function(){return this._applyCombination(ie,arguments)},complement:function(){return this._applyCombination(Q,arguments)},monochromatic:function(){return this._applyCombination(Qe,arguments)},splitcomplement:function(){return this._applyCombination(ae,arguments)},triad:function(){return this._applyCombination(be,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,w){if(typeof d=="object"){var g={};for(var O in d)d.hasOwnProperty(O)&&(O==="a"?g[O]=d[O]:g[O]=De(d[O]));d=g}return u(d,w)};function c(d){var w={r:0,g:0,b:0},g=1,O=null,j=null,H=null,oe=!1,Ee=!1;return typeof d=="string"&&(d=le(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(w=l(d.r,d.g,d.b),oe=!0,Ee=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(O=De(d.s),j=De(d.v),w=_(d.h,O,j),oe=!0,Ee="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(O=De(d.s),H=De(d.l),w=h(d.h,O,H),oe=!0,Ee="hsl"),d.hasOwnProperty("a")&&(g=d.a)),g=v(g),{ok:oe,format:d.format||Ee,r:s(255,o(w.r,0)),g:s(255,o(w.g,0)),b:s(255,o(w.b,0)),a:g}}function l(d,w,g){return{r:k(d,255)*255,g:k(w,255)*255,b:k(g,255)*255}}function f(d,w,g){d=k(d,255),w=k(w,255),g=k(g,255);var O=o(d,w,g),j=s(d,w,g),H,oe,Ee=(O+j)/2;if(O==j)H=oe=0;else{var we=O-j;switch(oe=Ee>.5?we/(2-O-j):we/(O+j),O){case d:H=(w-g)/we+(w<g?6:0);break;case w:H=(g-d)/we+2;break;case g:H=(d-w)/we+4;break}H/=6}return{h:H,s:oe,l:Ee}}function h(d,w,g){var O,j,H;d=k(d,360),w=k(w,100),g=k(g,100);function oe(dt,Mi,Rt){return Rt<0&&(Rt+=1),Rt>1&&(Rt-=1),Rt<1/6?dt+(Mi-dt)*6*Rt:Rt<1/2?Mi:Rt<2/3?dt+(Mi-dt)*(2/3-Rt)*6:dt}if(w===0)O=j=H=g;else{var Ee=g<.5?g*(1+w):g+w-g*w,we=2*g-Ee;O=oe(we,Ee,d+1/3),j=oe(we,Ee,d),H=oe(we,Ee,d-1/3)}return{r:O*255,g:j*255,b:H*255}}function m(d,w,g){d=k(d,255),w=k(w,255),g=k(g,255);var O=o(d,w,g),j=s(d,w,g),H,oe,Ee=O,we=O-j;if(oe=O===0?0:we/O,O==j)H=0;else{switch(O){case d:H=(w-g)/we+(w<g?6:0);break;case w:H=(g-d)/we+2;break;case g:H=(d-w)/we+4;break}H/=6}return{h:H,s:oe,v:Ee}}function _(d,w,g){d=k(d,360)*6,w=k(w,100),g=k(g,100);var O=t.floor(d),j=d-O,H=g*(1-w),oe=g*(1-j*w),Ee=g*(1-(1-j)*w),we=O%6,dt=[g,oe,H,H,Ee,g][we],Mi=[Ee,g,g,oe,H,H][we],Rt=[H,H,Ee,g,g,oe][we];return{r:dt*255,g:Mi*255,b:Rt*255}}function y(d,w,g,O){var j=[se(i(d).toString(16)),se(i(w).toString(16)),se(i(g).toString(16))];return O&&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[0].charAt(0)+j[1].charAt(0)+j[2].charAt(0):j.join("")}function p(d,w,g,O,j){var H=[se(i(d).toString(16)),se(i(w).toString(16)),se(i(g).toString(16)),se(V(O))];return j&&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[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function D(d,w,g,O){var j=[se(V(O)),se(i(d).toString(16)),se(i(w).toString(16)),se(i(g).toString(16))];return j.join("")}u.equals=function(d,w){return!d||!w?!1:u(d).toRgbString()==u(w).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(d,w){w=w===0?0:w||10;var g=u(d).toHsl();return g.s-=w/100,g.s=$(g.s),u(g)}function N(d,w){w=w===0?0:w||10;var g=u(d).toHsl();return g.s+=w/100,g.s=$(g.s),u(g)}function U(d){return u(d).desaturate(100)}function M(d,w){w=w===0?0:w||10;var g=u(d).toHsl();return g.l+=w/100,g.l=$(g.l),u(g)}function Y(d,w){w=w===0?0:w||10;var g=u(d).toRgb();return g.r=o(0,s(255,g.r-i(255*-(w/100)))),g.g=o(0,s(255,g.g-i(255*-(w/100)))),g.b=o(0,s(255,g.b-i(255*-(w/100)))),u(g)}function G(d,w){w=w===0?0:w||10;var g=u(d).toHsl();return g.l-=w/100,g.l=$(g.l),u(g)}function z(d,w){var g=u(d).toHsl(),O=(g.h+w)%360;return g.h=O<0?360+O:O,u(g)}function Q(d){var w=u(d).toHsl();return w.h=(w.h+180)%360,u(w)}function be(d){var w=u(d).toHsl(),g=w.h;return[u(d),u({h:(g+120)%360,s:w.s,l:w.l}),u({h:(g+240)%360,s:w.s,l:w.l})]}function R(d){var w=u(d).toHsl(),g=w.h;return[u(d),u({h:(g+90)%360,s:w.s,l:w.l}),u({h:(g+180)%360,s:w.s,l:w.l}),u({h:(g+270)%360,s:w.s,l:w.l})]}function ae(d){var w=u(d).toHsl(),g=w.h;return[u(d),u({h:(g+72)%360,s:w.s,l:w.l}),u({h:(g+216)%360,s:w.s,l:w.l})]}function ie(d,w,g){w=w||6,g=g||30;var O=u(d).toHsl(),j=360/g,H=[u(d)];for(O.h=(O.h-(j*w>>1)+720)%360;--w;)O.h=(O.h+j)%360,H.push(u(O));return H}function Qe(d,w){w=w||6;for(var g=u(d).toHsv(),O=g.h,j=g.s,H=g.v,oe=[],Ee=1/w;w--;)oe.push(u({h:O,s:j,v:H})),H=(H+Ee)%1;return oe}u.mix=function(d,w,g){g=g===0?0:g||50;var O=u(d).toRgb(),j=u(w).toRgb(),H=g/100,oe={r:(j.r-O.r)*H+O.r,g:(j.g-O.g)*H+O.g,b:(j.b-O.b)*H+O.b,a:(j.a-O.a)*H+O.a};return u(oe)},u.readability=function(d,w){var g=u(d),O=u(w);return(t.max(g.getLuminance(),O.getLuminance())+.05)/(t.min(g.getLuminance(),O.getLuminance())+.05)},u.isReadable=function(d,w,g){var O=u.readability(d,w),j,H;switch(H=!1,j=B(g),j.level+j.size){case"AAsmall":case"AAAlarge":H=O>=4.5;break;case"AAlarge":H=O>=3;break;case"AAAsmall":H=O>=7;break}return H},u.mostReadable=function(d,w,g){var O=null,j=0,H,oe,Ee,we;g=g||{},oe=g.includeFallbackColors,Ee=g.level,we=g.size;for(var dt=0;dt<w.length;dt++)H=u.readability(d,w[dt]),H>j&&(j=H,O=u(w[dt]));return u.isReadable(d,O,{level:Ee,size:we})||!oe?O:(g.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],g))};var S=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(S);function F(d){var w={};for(var g in d)d.hasOwnProperty(g)&&(w[d[g]]=g);return w}function v(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function k(d,w){ue(d)&&(d="100%");var g=Re(d);return d=s(w,o(0,parseFloat(d))),g&&(d=parseInt(d*w,10)/100),t.abs(d-w)<1e-6?1:d%w/parseFloat(w)}function $(d){return s(1,o(0,d))}function q(d){return parseInt(d,16)}function ue(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Re(d){return typeof d=="string"&&d.indexOf("%")!=-1}function se(d){return d.length==1?"0"+d:""+d}function De(d){return d<=1&&(d=d*100+"%"),d}function V(d){return t.round(parseFloat(d)*255).toString(16)}function Ke(d){return q(d)/255}var ot=function(){var d="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",g="(?:"+w+")|(?:"+d+")",O="[\\s|\\(]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")\\s*\\)?",j="[\\s|\\(]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")\\s*\\)?";return{CSS_UNIT:new RegExp(g),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+j),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!!ot.CSS_UNIT.exec(d)}function le(d){d=d.replace(e,"").replace(r,"").toLowerCase();var w=!1;if(S[d])d=S[d],w=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var g;return(g=ot.rgb.exec(d))?{r:g[1],g:g[2],b:g[3]}:(g=ot.rgba.exec(d))?{r:g[1],g:g[2],b:g[3],a:g[4]}:(g=ot.hsl.exec(d))?{h:g[1],s:g[2],l:g[3]}:(g=ot.hsla.exec(d))?{h:g[1],s:g[2],l:g[3],a:g[4]}:(g=ot.hsv.exec(d))?{h:g[1],s:g[2],v:g[3]}:(g=ot.hsva.exec(d))?{h:g[1],s:g[2],v:g[3],a:g[4]}:(g=ot.hex8.exec(d))?{r:q(g[1]),g:q(g[2]),b:q(g[3]),a:Ke(g[4]),format:w?"name":"hex8"}:(g=ot.hex6.exec(d))?{r:q(g[1]),g:q(g[2]),b:q(g[3]),format:w?"name":"hex"}:(g=ot.hex4.exec(d))?{r:q(g[1]+""+g[1]),g:q(g[2]+""+g[2]),b:q(g[3]+""+g[3]),a:Ke(g[4]+""+g[4]),format:w?"name":"hex8"}:(g=ot.hex3.exec(d))?{r:q(g[1]+""+g[1]),g:q(g[2]+""+g[2]),b:q(g[3]+""+g[3]),format:w?"name":"hex"}:!1}function B(d){var w,g;return d=d||{level:"AA",size:"small"},w=(d.level||"AA").toUpperCase(),g=(d.size||"small").toLowerCase(),w!=="AA"&&w!=="AAA"&&(w="AA"),g!=="small"&&g!=="large"&&(g="small"),{level:w,size:g}}typeof Qo!="undefined"&&Qo.exports?Qo.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var wE=b((v5,DE)=>{var ns=mE(),EE={r:256,g:256,b:256,a:1},bE={h:360,s:1,v:1,a:1};function Ff(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Tf(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Rf(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Ff(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Tf(s,n,a,EE);o.push(ns(u))}return o}function gE(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Rf(t,e,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=Ff(i,s,r),u=[t.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=Tf(a,i,l,bE);u.push(ns(f))}return u}function yE(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<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=(e-1)*(t[s].pos-t[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!==e;)if(i<e){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 _E(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Ff(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Tf(o,i.color[r](),(e-i.pos)*100,n);return ns(a)}var Kn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.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?ns(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:ns(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 e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Kn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.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 Kn(e.concat(r.reverse()))}rgb(e){let r=yE(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Rf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Rf(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(e,r){let n=yE(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=gE(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=gE(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(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return _E(this.stops,e,"toRgb",EE)}hsvAt(e){return _E(this.stops,e,"toHsv",bE)}};DE.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Kn(t)}});var vE=b((R5,ea)=>{"use strict";var xE=require("chalk"),GP=wE(),AE=/\s/g;function Of(...t){let e=GP.apply(this,t),r=(n,i)=>WP(n?n.toString():"",e,i);return r.multiline=(n,i)=>zP(n?n.toString():"",e,i),r}var SE=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function WP(t,e,r){let n=CE(r),i=Math.max(t.replace(AE,"").length,e.stops.length),s=SE(e,n,i),o="";for(let a of t)o+=a.match(AE)?a:xE.hex(s.shift().toHex())(a);return o}function zP(t,e,r){let n=CE(r),i=t.split(`
|
7
|
-
`),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=SE(e,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(`
|
8
|
-
`)}function CE(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var is={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"}}};ea.exports=Of;for(let t in is)ea.exports[t]=e=>new Of(is[t].colors)(e,is[t].options),ea.exports[t].multiline=e=>new Of(is[t].colors).multiline(e,is[t].options)});var qE=b((P5,ME)=>{ME.exports=NE;NE.sync=i2;var IE=require("fs");function n2(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function LE(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:n2(e,r)}function NE(t,e,r){IE.stat(t,function(n,i){r(n,n?!1:LE(i,t,e))})}function i2(t,e){return LE(IE.statSync(t),t,e)}});var GE=b((B5,UE)=>{UE.exports=jE;jE.sync=s2;var HE=require("fs");function jE(t,e,r){HE.stat(t,function(n,i){r(n,n?!1:$E(i,e))})}function s2(t,e){return $E(HE.statSync(t),e)}function $E(t,e){return t.isFile()&&o2(t,e)}function o2(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),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 zE=b((L5,WE)=>{var I5=require("fs"),ta;process.platform==="win32"||global.TESTING_WINDOWS?ta=qE():ta=GE();WE.exports=Lf;Lf.sync=a2;function Lf(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Lf(t,e||{},function(s,o){s?i(s):n(o)})})}ta(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function a2(t,e){try{return ta.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var QE=b((N5,ZE)=>{var Xn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",VE=require("path"),u2=Xn?";":":",YE=zE(),KE=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),JE=(t,e)=>{let r=e.colon||u2,n=t.match(/\//)||Xn&&t.match(/\\/)?[""]:[...Xn?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Xn?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Xn?i.split(r):[""];return Xn&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},XE=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=JE(t,e),o=[],a=c=>new Promise((l,f)=>{if(c===n.length)return e.all&&o.length?l(o):f(KE(t));let h=n[c],m=/^".*"$/.test(h)?h.slice(1,-1):h,_=VE.join(m,t),y=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+_:_;l(u(y,c,0))}),u=(c,l,f)=>new Promise((h,m)=>{if(f===i.length)return h(a(l+1));let _=i[f];YE(c+_,{pathExt:s},(y,p)=>{if(!y&&p)if(e.all)o.push(c+_);else return h(c+_);return h(u(c,l,f+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},c2=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=JE(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=VE.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<n.length;f++){let h=l+n[f];try{if(YE.sync(h,{pathExt:i}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw KE(t)};ZE.exports=XE;XE.sync=c2});var Mf=b((M5,Nf)=>{"use strict";var eb=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Nf.exports=eb;Nf.exports.default=eb});var ib=b((q5,nb)=>{"use strict";var tb=require("path"),l2=QE(),f2=Mf();function rb(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=l2.sync(t.command,{path:r[f2({env:r})],pathExt:e?tb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=tb.resolve(i?t.options.cwd:"",o)),o}function h2(t){return rb(t)||rb(t,!0)}nb.exports=h2});var sb=b((H5,Hf)=>{"use strict";var qf=/([()\][%!^"`<>&|;, *?])/g;function d2(t){return t=t.replace(qf,"^$1"),t}function p2(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(qf,"^$1"),e&&(t=t.replace(qf,"^$1")),t}Hf.exports.command=d2;Hf.exports.argument=p2});var ab=b((j5,ob)=>{"use strict";ob.exports=/^#!(.*)/});var cb=b(($5,ub)=>{"use strict";var m2=ab();ub.exports=(t="")=>{let e=t.match(m2);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var fb=b((U5,lb)=>{"use strict";var jf=require("fs"),g2=cb();function y2(t){let r=Buffer.alloc(150),n;try{n=jf.openSync(t,"r"),jf.readSync(n,r,0,150,0),jf.closeSync(n)}catch{}return g2(r.toString())}lb.exports=y2});var mb=b((G5,pb)=>{"use strict";var _2=require("path"),hb=ib(),db=sb(),E2=fb(),b2=process.platform==="win32",D2=/\.(?:com|exe)$/i,w2=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function A2(t){t.file=hb(t);let e=t.file&&E2(t.file);return e?(t.args.unshift(t.file),t.command=e,hb(t)):t.file}function x2(t){if(!b2)return t;let e=A2(t),r=!D2.test(e);if(t.options.forceShell||r){let n=w2.test(e);t.command=_2.normalize(t.command),t.command=db.command(t.command),t.args=t.args.map(s=>db.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function S2(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:x2(n)}pb.exports=S2});var _b=b((W5,yb)=>{"use strict";var $f=process.platform==="win32";function Uf(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function C2(t,e){if(!$f)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=gb(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function gb(t,e){return $f&&t===1&&!e.file?Uf(e.original,"spawn"):null}function v2(t,e){return $f&&t===1&&!e.file?Uf(e.original,"spawnSync"):null}yb.exports={hookChildProcess:C2,verifyENOENT:gb,verifyENOENTSync:v2,notFoundError:Uf}});var Db=b((z5,Zn)=>{"use strict";var Eb=require("child_process"),Gf=mb(),Wf=_b();function bb(t,e,r){let n=Gf(t,e,r),i=Eb.spawn(n.command,n.args,n.options);return Wf.hookChildProcess(i,n),i}function R2(t,e,r){let n=Gf(t,e,r),i=Eb.spawnSync(n.command,n.args,n.options);return i.error=i.error||Wf.verifyENOENTSync(i.status,n),i}Zn.exports=bb;Zn.exports.spawn=bb;Zn.exports.sync=R2;Zn.exports._parse=Gf;Zn.exports._enoent=Wf});var Ab=b((V5,wb)=>{"use strict";wb.exports=t=>{let e=typeof t=="string"?`
|
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
|
9
4
|
`:`
|
10
|
-
|
11
|
-
|
12
|
-
`);return p?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=D,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=t,n.stderr=e,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};Pb.exports=Y2});var Lb=b((eH,Vf)=>{"use strict";var ia=["stdin","stdout","stderr"],K2=t=>ia.some(e=>t[e]!==void 0),Ib=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return ia.map(n=>t[n]);if(K2(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ia.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ia.length);return Array.from({length:r},(n,i)=>e[i])};Vf.exports=Ib;Vf.exports.node=t=>{let e=Ib(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Mb=b((tH,Nb)=>{"use strict";var J2=require("os"),X2=Df(),Z2=1e3*5,Q2=(t,e="SIGTERM",r={})=>{let n=t(e);return eB(t,e,r,n),n},eB=(t,e,r,n)=>{if(!tB(e,r,n))return;let i=nB(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},tB=(t,{forceKillAfterTimeout:e},r)=>rB(t)&&e!==!1&&r,rB=t=>t===J2.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",nB=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Z2;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},iB=(t,e)=>{t.kill()&&(e.isCanceled=!0)},sB=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},oB=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{sB(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},aB=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},uB=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=X2(()=>{t.kill()});return n.finally(()=>{i()})};Nb.exports={spawnedKill:Q2,spawnedCancel:iB,setupTimeout:oB,validateTimeout:aB,setExitHandler:uB}});var Hb=b((rH,qb)=>{"use strict";var Ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ht.writable=t=>Ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ht.readable=t=>Ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ht.duplex=t=>Ht.writable(t)&&Ht.readable(t);Ht.transform=t=>Ht.duplex(t)&&typeof t._transform=="function";qb.exports=Ht});var $b=b((nH,jb)=>{"use strict";var{PassThrough:cB}=require("stream");jb.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new cB({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=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Ub=b((iH,us)=>{"use strict";var{constants:lB}=require("buffer"),fB=require("stream"),{promisify:hB}=require("util"),dB=$b(),pB=hB(fB.pipeline),sa=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Yf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=dB(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=lB.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await pB(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new sa)})}),n.getBufferedValue()}us.exports=Yf;us.exports.buffer=(t,e)=>Yf(t,{...e,encoding:"buffer"});us.exports.array=(t,e)=>Yf(t,{...e,array:!0});us.exports.MaxBufferError=sa});var Wb=b((sH,Gb)=>{"use strict";var{PassThrough:mB}=require("stream");Gb.exports=function(){var t=[],e=new mB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Kb=b((oH,Yb)=>{"use strict";var Vb=Hb(),zb=Ub(),gB=Wb(),yB=(t,e)=>{e===void 0||t.stdin===void 0||(Vb(e)?e.pipe(t.stdin):t.stdin.end(e))},_B=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=gB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Kf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Jf=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?zb(t,{encoding:e,maxBuffer:n}):zb.buffer(t,{maxBuffer:n})},EB=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Jf(t,{encoding:n,buffer:i,maxBuffer:s}),u=Jf(e,{encoding:n,buffer:i,maxBuffer:s}),c=Jf(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},Kf(t,a),Kf(e,u),Kf(r,c)])}},bB=({input:t})=>{if(Vb(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Yb.exports={handleInput:yB,makeAllStream:_B,getSpawnedResult:EB,validateInputSync:bB}});var Xb=b((aH,Jb)=>{"use strict";var DB=(async()=>{})().constructor.prototype,wB=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(DB,t)]),AB=(t,e)=>{for(let[r,n]of wB){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},xB=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Jb.exports={mergePromise:AB,getSpawnedPromise:xB}});var eD=b((uH,Qb)=>{"use strict";var Zb=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],SB=/^[\w.-]+$/,CB=/"/g,vB=t=>typeof t!="string"||SB.test(t)?t:`"${t.replace(CB,'\\"')}"`,RB=(t,e)=>Zb(t,e).join(" "),FB=(t,e)=>Zb(t,e).map(r=>vB(r)).join(" "),TB=/ +/g,OB=t=>{let e=[];for(let r of t.trim().split(TB)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Qb.exports={joinCommand:RB,getEscapedCommand:FB,parseCommand:OB}});var aD=b((cH,ti)=>{"use strict";var kB=require("path"),Xf=require("child_process"),PB=Db(),BB=Ab(),IB=Cb(),LB=_f(),oa=Bb(),rD=Lb(),{spawnedKill:NB,spawnedCancel:MB,setupTimeout:qB,validateTimeout:HB,setExitHandler:jB}=Mb(),{handleInput:$B,getSpawnedResult:UB,makeAllStream:GB,validateInputSync:WB}=Kb(),{mergePromise:tD,getSpawnedPromise:zB}=Xb(),{joinCommand:nD,parseCommand:iD,getEscapedCommand:sD}=eD(),VB=1e3*1e3*100,YB=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?IB.env({env:s,cwd:n,execPath:i}):s},oD=(t,e,r={})=>{let n=PB._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:VB,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=YB(r),r.stdio=rD(r),process.platform==="win32"&&kB.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},cs=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?BB(e):e,aa=(t,e,r)=>{let n=oD(t,e,r),i=nD(t,e),s=sD(t,e);HB(n.options);let o;try{o=Xf.spawn(n.file,n.args,n.options)}catch(m){let _=new Xf.ChildProcess,y=Promise.reject(oa({error:m,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return tD(_,y)}let a=zB(o),u=qB(o,n.options,a),c=jB(o,n.options,u),l={isCanceled:!1};o.kill=NB.bind(null,o.kill.bind(o)),o.cancel=MB.bind(null,o,l);let h=LB(async()=>{let[{error:m,exitCode:_,signal:y,timedOut:p},D,C,N]=await UB(o,n.options,c),U=cs(n.options,D),M=cs(n.options,C),Y=cs(n.options,N);if(m||_!==0||y!==null){let G=oa({error:m,exitCode:_,signal:y,stdout:U,stderr:M,all:Y,command:i,escapedCommand:s,parsed:n,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return G;throw G}return{command:i,escapedCommand:s,exitCode:0,stdout:U,stderr:M,all:Y,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return $B(o,n.options.input),o.all=GB(o,n.options),tD(o,h)};ti.exports=aa;ti.exports.sync=(t,e,r)=>{let n=oD(t,e,r),i=nD(t,e),s=sD(t,e);WB(n.options);let o;try{o=Xf.spawnSync(n.file,n.args,n.options)}catch(c){throw oa({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=cs(n.options,o.stdout,o.error),u=cs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=oa({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}};ti.exports.command=(t,e)=>{let[r,...n]=iD(t);return aa(r,n,e)};ti.exports.commandSync=(t,e)=>{let[r,...n]=iD(t);return aa.sync(r,n,e)};ti.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=rD.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return aa(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var ri=b((pH,lD)=>{"use strict";var cD=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"]]);lD.exports=t=>t?Object.keys(t).map(e=>[cD.has(e)?cD.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var pa=b((mH,ED)=>{"use strict";var fD=typeof process=="object"&&process?process:{stdout:null,stderr:null},ZB=require("events"),hD=require("stream"),dD=require("string_decoder").StringDecoder,or=Symbol("EOF"),ar=Symbol("maybeEmitEnd"),Ir=Symbol("emittedEnd"),ca=Symbol("emittingEnd"),fs=Symbol("emittedError"),la=Symbol("closed"),pD=Symbol("read"),fa=Symbol("flush"),mD=Symbol("flushChunk"),rt=Symbol("encoding"),ur=Symbol("decoder"),ha=Symbol("flowing"),hs=Symbol("paused"),ni=Symbol("resume"),Se=Symbol("buffer"),jt=Symbol("pipes"),Be=Symbol("bufferLength"),th=Symbol("bufferPush"),rh=Symbol("bufferShift"),Ue=Symbol("objectMode"),Ge=Symbol("destroyed"),nh=Symbol("emitData"),gD=Symbol("emitEnd"),ih=Symbol("emitEnd2"),cr=Symbol("async"),ds=t=>Promise.resolve().then(t),yD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",QB=yD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),eI=yD&&Symbol.iterator||Symbol("iterator not implemented"),tI=t=>t==="end"||t==="finish"||t==="prefinish",rI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,nI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),da=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ni](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},sh=class extends da{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};ED.exports=class _D extends hD{constructor(e){super(),this[ha]=!1,this[hs]=!1,this[jt]=[],this[Se]=[],this[Ue]=e&&e.objectMode||!1,this[Ue]?this[rt]=null:this[rt]=e&&e.encoding||null,this[rt]==="buffer"&&(this[rt]=null),this[cr]=e&&!!e.async||!1,this[ur]=this[rt]?new dD(this[rt]):null,this[or]=!1,this[Ir]=!1,this[ca]=!1,this[la]=!1,this[fs]=null,this.writable=!0,this.readable=!0,this[Be]=0,this[Ge]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Se]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[jt]})}get bufferLength(){return this[Be]}get encoding(){return this[rt]}set encoding(e){if(this[Ue])throw new Error("cannot set encoding in objectMode");if(this[rt]&&e!==this[rt]&&(this[ur]&&this[ur].lastNeed||this[Be]))throw new Error("cannot change encoding");this[rt]!==e&&(this[ur]=e?new dD(e):null,this[Se].length&&(this[Se]=this[Se].map(r=>this[ur].write(r)))),this[rt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ue]}set objectMode(e){this[Ue]=this[Ue]||!!e}get async(){return this[cr]}set async(e){this[cr]=this[cr]||!!e}write(e,r,n){if(this[or])throw new Error("write after end");if(this[Ge])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[cr]?ds:s=>s();return!this[Ue]&&!Buffer.isBuffer(e)&&(nI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):rI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ue]?(this.flowing&&this[Be]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[rt]&&!this[ur].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[rt]&&(e=this[ur].write(e)),this.flowing&&this[Be]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[Ge])return null;if(this[Be]===0||e===0||e>this[Be])return this[ar](),null;this[Ue]&&(e=null),this[Se].length>1&&!this[Ue]&&(this.encoding?this[Se]=[this[Se].join("")]:this[Se]=[Buffer.concat(this[Se],this[Be])]);let r=this[pD](e||null,this[Se][0]);return this[ar](),r}[pD](e,r){return e===r.length||e===null?this[rh]():(this[Se][0]=r.slice(e),r=r.slice(0,e),this[Be]-=e),this.emit("data",r),!this[Se].length&&!this[or]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[or]=!0,this.writable=!1,(this.flowing||!this[hs])&&this[ar](),this}[ni](){this[Ge]||(this[hs]=!1,this[ha]=!0,this.emit("resume"),this[Se].length?this[fa]():this[or]?this[ar]():this.emit("drain"))}resume(){return this[ni]()}pause(){this[ha]=!1,this[hs]=!0}get destroyed(){return this[Ge]}get flowing(){return this[ha]}get paused(){return this[hs]}[th](e){this[Ue]?this[Be]+=1:this[Be]+=e.length,this[Se].push(e)}[rh](){return this[Se].length&&(this[Ue]?this[Be]-=1:this[Be]-=this[Se][0].length),this[Se].shift()}[fa](e){do;while(this[mD](this[rh]()));!e&&!this[Se].length&&!this[or]&&this.emit("drain")}[mD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ge])return;let n=this[Ir];return r=r||{},e===fD.stdout||e===fD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[jt].push(r.proxyErrors?new sh(this,e,r):new da(this,e,r)),this[cr]?ds(()=>this[ni]()):this[ni]()),e}unpipe(e){let r=this[jt].find(n=>n.dest===e);r&&(this[jt].splice(this[jt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[jt].length&&!this.flowing?this[ni]():e==="readable"&&this[Be]!==0?super.emit("readable"):tI(e)&&this[Ir]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[fs]&&(this[cr]?ds(()=>r.call(this,this[fs])):r.call(this,this[fs])),n}get emittedEnd(){return this[Ir]}[ar](){!this[ca]&&!this[Ir]&&!this[Ge]&&this[Se].length===0&&this[or]&&(this[ca]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[la]&&this.emit("close"),this[ca]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==Ge&&this[Ge])return;if(e==="data")return r?this[cr]?ds(()=>this[nh](r)):this[nh](r):!1;if(e==="end")return this[gD]();if(e==="close"){if(this[la]=!0,!this[Ir]&&!this[Ge])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[fs]=r;let s=super.emit("error",r);return this[ar](),s}else if(e==="resume"){let s=super.emit("resume");return this[ar](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[ar](),i}[nh](e){for(let n of this[jt])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[ar](),r}[gD](){this[Ir]||(this[Ir]=!0,this.readable=!1,this[cr]?ds(()=>this[ih]()):this[ih]())}[ih](){if(this[ur]){let r=this[ur].end();if(r){for(let n of this[jt])n.dest.write(r);super.emit("data",r)}}for(let r of this[jt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ue]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Ue]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this[rt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ge,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[QB](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[or])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[or]})},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(Ge,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[eI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ge]?(e?this.emit("error",e):this.emit(Ge),this):(this[Ge]=!0,this[Se].length=0,this[Be]=0,typeof this.close=="function"&&!this[la]&&this.close(),e?this.emit("error",e):this.emit(Ge),this)}static isStream(e){return!!e&&(e instanceof _D||e instanceof hD||e instanceof ZB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var DD=b((gH,bD)=>{var iI=require("zlib").constants||{ZLIB_VERNUM:4736};bD.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},iI))});var fh=b((yH,TD)=>{"use strict";var wD=typeof process=="object"&&process?process:{stdout:null,stderr:null},sI=require("events"),AD=require("stream"),xD=require("string_decoder").StringDecoder,lr=Symbol("EOF"),fr=Symbol("maybeEmitEnd"),Lr=Symbol("emittedEnd"),ma=Symbol("emittingEnd"),ps=Symbol("emittedError"),ga=Symbol("closed"),SD=Symbol("read"),ya=Symbol("flush"),CD=Symbol("flushChunk"),nt=Symbol("encoding"),hr=Symbol("decoder"),_a=Symbol("flowing"),ms=Symbol("paused"),ii=Symbol("resume"),Ie=Symbol("bufferLength"),oh=Symbol("bufferPush"),ah=Symbol("bufferShift"),We=Symbol("objectMode"),ze=Symbol("destroyed"),uh=Symbol("emitData"),vD=Symbol("emitEnd"),ch=Symbol("emitEnd2"),dr=Symbol("async"),gs=t=>Promise.resolve().then(t),RD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",oI=RD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),aI=RD&&Symbol.iterator||Symbol("iterator not implemented"),uI=t=>t==="end"||t==="finish"||t==="prefinish",cI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,lI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ea=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ii](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lh=class extends Ea{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};TD.exports=class FD extends AD{constructor(e){super(),this[_a]=!1,this[ms]=!1,this.pipes=[],this.buffer=[],this[We]=e&&e.objectMode||!1,this[We]?this[nt]=null:this[nt]=e&&e.encoding||null,this[nt]==="buffer"&&(this[nt]=null),this[dr]=e&&!!e.async||!1,this[hr]=this[nt]?new xD(this[nt]):null,this[lr]=!1,this[Lr]=!1,this[ma]=!1,this[ga]=!1,this[ps]=null,this.writable=!0,this.readable=!0,this[Ie]=0,this[ze]=!1}get bufferLength(){return this[Ie]}get encoding(){return this[nt]}set encoding(e){if(this[We])throw new Error("cannot set encoding in objectMode");if(this[nt]&&e!==this[nt]&&(this[hr]&&this[hr].lastNeed||this[Ie]))throw new Error("cannot change encoding");this[nt]!==e&&(this[hr]=e?new xD(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[hr].write(r)))),this[nt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[We]}set objectMode(e){this[We]=this[We]||!!e}get async(){return this[dr]}set async(e){this[dr]=this[dr]||!!e}write(e,r,n){if(this[lr])throw new Error("write after end");if(this[ze])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[dr]?gs:s=>s();return!this[We]&&!Buffer.isBuffer(e)&&(lI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):cI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[We]?(this.flowing&&this[Ie]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[Ie]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[nt]&&!this[hr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[nt]&&(e=this[hr].write(e)),this.flowing&&this[Ie]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[Ie]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ie]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ze])return null;if(this[Ie]===0||e===0||e>this[Ie])return this[fr](),null;this[We]&&(e=null),this.buffer.length>1&&!this[We]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Ie])]);let r=this[SD](e||null,this.buffer[0]);return this[fr](),r}[SD](e,r){return e===r.length||e===null?this[ah]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Ie]-=e),this.emit("data",r),!this.buffer.length&&!this[lr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[lr]=!0,this.writable=!1,(this.flowing||!this[ms])&&this[fr](),this}[ii](){this[ze]||(this[ms]=!1,this[_a]=!0,this.emit("resume"),this.buffer.length?this[ya]():this[lr]?this[fr]():this.emit("drain"))}resume(){return this[ii]()}pause(){this[_a]=!1,this[ms]=!0}get destroyed(){return this[ze]}get flowing(){return this[_a]}get paused(){return this[ms]}[oh](e){this[We]?this[Ie]+=1:this[Ie]+=e.length,this.buffer.push(e)}[ah](){return this.buffer.length&&(this[We]?this[Ie]-=1:this[Ie]-=this.buffer[0].length),this.buffer.shift()}[ya](e){do;while(this[CD](this[ah]()));!e&&!this.buffer.length&&!this[lr]&&this.emit("drain")}[CD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ze])return;let n=this[Lr];return r=r||{},e===wD.stdout||e===wD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new lh(this,e,r):new Ea(this,e,r)),this[dr]?gs(()=>this[ii]()):this[ii]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ii]():e==="readable"&&this[Ie]!==0?super.emit("readable"):uI(e)&&this[Lr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ps]&&(this[dr]?gs(()=>r.call(this,this[ps])):r.call(this,this[ps])),n}get emittedEnd(){return this[Lr]}[fr](){!this[ma]&&!this[Lr]&&!this[ze]&&this.buffer.length===0&&this[lr]&&(this[ma]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ga]&&this.emit("close"),this[ma]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ze&&this[ze])return;if(e==="data")return r?this[dr]?gs(()=>this[uh](r)):this[uh](r):!1;if(e==="end")return this[vD]();if(e==="close"){if(this[ga]=!0,!this[Lr]&&!this[ze])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ps]=r;let s=super.emit("error",r);return this[fr](),s}else if(e==="resume"){let s=super.emit("resume");return this[fr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[fr](),i}[uh](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[fr](),r}[vD](){this[Lr]||(this[Lr]=!0,this.readable=!1,this[dr]?gs(()=>this[ch]()):this[ch]())}[ch](){if(this[hr]){let r=this[hr].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 e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[We]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[We]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[We]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[We]?Promise.reject(new Error("cannot concat in objectMode")):this[nt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ze,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[oI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[lr])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[lr]})},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(ze,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[aI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ze]?(e?this.emit("error",e):this.emit(ze),this):(this[ze]=!0,this.buffer.length=0,this[Ie]=0,typeof this.close=="function"&&!this[ga]&&this.close(),e?this.emit("error",e):this.emit(ze),this)}static isStream(e){return!!e&&(e instanceof FD||e instanceof AD||e instanceof sI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var vh=b(ct=>{"use strict";var gh=require("assert"),Nr=require("buffer").Buffer,PD=require("zlib"),hn=ct.constants=DD(),fI=fh(),OD=Nr.concat,dn=Symbol("_superWrite"),oi=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},hI=Symbol("opts"),ys=Symbol("flushFlag"),kD=Symbol("finishFlushFlag"),Ch=Symbol("fullFlushFlag"),he=Symbol("handle"),ba=Symbol("onError"),si=Symbol("sawError"),hh=Symbol("level"),dh=Symbol("strategy"),ph=Symbol("ended"),_H=Symbol("_defaultFullFlush"),Da=class extends fI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[si]=!1,this[ph]=!1,this[hI]=e,this[ys]=e.flush,this[kD]=e.finishFlush;try{this[he]=new PD[r](e)}catch(n){throw new oi(n)}this[ba]=n=>{this[si]||(this[si]=!0,this.close(),this.emit("error",n))},this[he].on("error",n=>this[ba](new oi(n))),this.once("end",()=>this.close)}close(){this[he]&&(this[he].close(),this[he]=null,this.emit("close"))}reset(){if(!this[si])return gh(this[he],"zlib binding closed"),this[he].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Ch]),this.write(Object.assign(Nr.alloc(0),{[ys]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[kD]),this[ph]=!0,super.end(null,null,n)}get ended(){return this[ph]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Nr.from(e,r)),this[si])return;gh(this[he],"zlib binding closed");let i=this[he]._handle,s=i.close;i.close=()=>{};let o=this[he].close;this[he].close=()=>{},Nr.concat=c=>c;let a;try{let c=typeof e[ys]=="number"?e[ys]:this[ys];a=this[he]._processChunk(e,c),Nr.concat=OD}catch(c){Nr.concat=OD,this[ba](new oi(c))}finally{this[he]&&(this[he]._handle=i,i.close=s,this[he].close=o,this[he].removeAllListeners("error"))}this[he]&&this[he].on("error",c=>this[ba](new oi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[dn](Nr.from(a[0]));for(let c=1;c<a.length;c++)u=this[dn](a[c])}else u=this[dn](Nr.from(a));return n&&n(),u}[dn](e){return super.write(e)}},pr=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hn.Z_FINISH,super(e,r),this[Ch]=hn.Z_FULL_FLUSH,this[hh]=e.level,this[dh]=e.strategy}params(e,r){if(!this[si]){if(!this[he])throw new Error("cannot switch params when binding is closed");if(!this[he].params)throw new Error("not supported in this implementation");if(this[hh]!==e||this[dh]!==r){this.flush(hn.Z_SYNC_FLUSH),gh(this[he],"zlib binding closed");let n=this[he].flush;this[he].flush=(i,s)=>{this.flush(i),s()};try{this[he].params(e,r)}finally{this[he].flush=n}this[he]&&(this[hh]=e,this[dh]=r)}}}},yh=class extends pr{constructor(e){super(e,"Deflate")}},_h=class extends pr{constructor(e){super(e,"Inflate")}},mh=Symbol("_portable"),Eh=class extends pr{constructor(e){super(e,"Gzip"),this[mh]=e&&!!e.portable}[dn](e){return this[mh]?(this[mh]=!1,e[9]=255,super[dn](e)):super[dn](e)}},bh=class extends pr{constructor(e){super(e,"Gunzip")}},Dh=class extends pr{constructor(e){super(e,"DeflateRaw")}},wh=class extends pr{constructor(e){super(e,"InflateRaw")}},Ah=class extends pr{constructor(e){super(e,"Unzip")}},wa=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hn.BROTLI_OPERATION_FINISH,super(e,r),this[Ch]=hn.BROTLI_OPERATION_FLUSH}},xh=class extends wa{constructor(e){super(e,"BrotliCompress")}},Sh=class extends wa{constructor(e){super(e,"BrotliDecompress")}};ct.Deflate=yh;ct.Inflate=_h;ct.Gzip=Eh;ct.Gunzip=bh;ct.DeflateRaw=Dh;ct.InflateRaw=wh;ct.Unzip=Ah;typeof PD.BrotliCompress=="function"?(ct.BrotliCompress=xh,ct.BrotliDecompress=Sh):ct.BrotliCompress=ct.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ai=b((DH,BD)=>{var dI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;BD.exports=dI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Aa=b((AH,ID)=>{"use strict";var pI=pa(),Rh=ai(),Fh=Symbol("slurp");ID.exports=class extends pI{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Rh(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Rh(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Fh](r),n&&this[Fh](n,!0)}write(e){let r=e.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(e):super.write(e.slice(0,n))}[Fh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Rh(e[n]):e[n])}}});var Th=b(xa=>{"use strict";xa.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"]]);xa.code=new Map(Array.from(xa.name).map(t=>[t[1],t[0]]))});var qD=b((SH,MD)=>{"use strict";var mI=(t,e)=>{if(Number.isSafeInteger(t))t<0?yI(t,e):gI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},gI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},yI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=LD(i):i===0?e[n-1]=0:(r=!0,e[n-1]=ND(i))}},_I=t=>{let e=t[0],r=e===128?bI(t.slice(1,t.length)):e===255?EI(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},EI=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=LD(s):s===0?o=s:(n=!0,o=ND(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},bI=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},LD=t=>(255^t)&255,ND=t=>(255^t)+1&255;MD.exports={encode:mI,parse:_I}});var ci=b((CH,jD)=>{"use strict";var Oh=Th(),ui=require("path").posix,HD=qD(),kh=Symbol("slurp"),lt=Symbol("type"),Ih=class{constructor(e,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[lt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pn(e,r,100),this.mode=Mr(e,r+100,8),this.uid=Mr(e,r+108,8),this.gid=Mr(e,r+116,8),this.size=Mr(e,r+124,12),this.mtime=Ph(e,r+136,12),this.cksum=Mr(e,r+148,12),this[kh](n),this[kh](i,!0),this[lt]=pn(e,r+156,1),this[lt]===""&&(this[lt]="0"),this[lt]==="0"&&this.path.slice(-1)==="/"&&(this[lt]="5"),this[lt]==="5"&&(this.size=0),this.linkpath=pn(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pn(e,r+265,32),this.gname=pn(e,r+297,32),this.devmaj=Mr(e,r+329,8),this.devmin=Mr(e,r+337,8),e[r+475]!==0){let o=pn(e,r+345,155);this.path=o+"/"+this.path}else{let o=pn(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ph(e,r+476,12),this.ctime=Ph(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[kh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=DI(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=mn(e,r,100,s)||this.needPax,this.needPax=qr(e,r+100,8,this.mode)||this.needPax,this.needPax=qr(e,r+108,8,this.uid)||this.needPax,this.needPax=qr(e,r+116,8,this.gid)||this.needPax,this.needPax=qr(e,r+124,12,this.size)||this.needPax,this.needPax=Bh(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[lt].charCodeAt(0),this.needPax=mn(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=mn(e,r+265,32,this.uname)||this.needPax,this.needPax=mn(e,r+297,32,this.gname)||this.needPax,this.needPax=qr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=qr(e,r+337,8,this.devmin)||this.needPax,this.needPax=mn(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=mn(e,r+345,155,o)||this.needPax:(this.needPax=mn(e,r+345,130,o)||this.needPax,this.needPax=Bh(e,r+476,12,this.atime)||this.needPax,this.needPax=Bh(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,qr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Oh.name.get(this[lt])||this[lt]}get typeKey(){return this[lt]}set type(e){Oh.code.has(e)?this[lt]=Oh.code.get(e):this[lt]=e}},DI=(t,e)=>{let n=t,i="",s,o=ui.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=ui.dirname(n),n=ui.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=ui.join(ui.basename(i),n),i=ui.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pn=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ph=(t,e,r)=>wI(Mr(t,e,r)),wI=t=>t===null?null:new Date(t*1e3),Mr=(t,e,r)=>t[e]&128?HD.parse(t.slice(e,e+r)):xI(t,e,r),AI=t=>isNaN(t)?null:t,xI=(t,e,r)=>AI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),SI={12:8589934591,8:2097151},qr=(t,e,r,n)=>n===null?!1:n>SI[r]||n<0?(HD.encode(n,t.slice(e,e+r)),!0):(CI(t,e,r,n),!1),CI=(t,e,r,n)=>t.write(vI(n,r),e,r,"ascii"),vI=(t,e)=>RI(Math.floor(t).toString(8),e),RI=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Bh=(t,e,r,n)=>n===null?!1:qr(t,e,r,n.getTime()/1e3),FI=new Array(156).join("\0"),mn=(t,e,r,n)=>n===null?!1:(t.write(n+FI,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);jD.exports=Ih});var Sa=b((vH,$D)=>{"use strict";var TI=ci(),OI=require("path"),_s=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new TI({path:("PaxHeader/"+OI.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(e,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(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
13
|
-
`,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}};_s.parse=(t,e,r)=>new _s(kI(PI(t),e),r);var kI=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,PI=t=>t.replace(/\n$/,"").split(`
|
14
|
-
`).reduce(BI,Object.create(null)),BI=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};$D.exports=_s});var li=b((RH,UD)=>{UD.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Ca=b((FH,GD)=>{"use strict";GD.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!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(`${e}: ${r}`),n))}}});var Nh=b((OH,WD)=>{"use strict";var va=["|","<",">","?",":"],Lh=va.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),II=new Map(va.map((t,e)=>[t,Lh[e]])),LI=new Map(Lh.map((t,e)=>[t,va[e]]));WD.exports={encode:t=>va.reduce((e,r)=>e.split(r).join(II.get(r)),t),decode:t=>Lh.reduce((e,r)=>e.split(r).join(LI.get(r)),t)}});var Mh=b((kH,VD)=>{var{isAbsolute:NI,parse:zD}=require("path").win32;VD.exports=t=>{let e="",r=zD(t);for(;NI(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=zD(t)}return[e,t]}});var KD=b((PH,YD)=>{"use strict";YD.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Yh=b((LH,cw)=>{"use strict";var rw=pa(),nw=Sa(),iw=ci(),Ut=require("fs"),JD=require("path"),$t=ai(),MI=li(),sw=(t,e)=>e?(t=$t(t).replace(/^\.(\/|$)/,""),MI(e)+"/"+t):$t(t),qI=16*1024*1024,XD=Symbol("process"),ZD=Symbol("file"),QD=Symbol("directory"),Hh=Symbol("symlink"),ew=Symbol("hardlink"),Es=Symbol("header"),Ra=Symbol("read"),jh=Symbol("lstat"),Fa=Symbol("onlstat"),$h=Symbol("onread"),Uh=Symbol("onreadlink"),Gh=Symbol("openfile"),Wh=Symbol("onopenfile"),Hr=Symbol("close"),Ta=Symbol("mode"),zh=Symbol("awaitDrain"),qh=Symbol("ondrain"),Gt=Symbol("prefix"),tw=Symbol("hadError"),ow=Ca(),HI=Nh(),aw=Mh(),uw=KD(),Oa=ow(class extends rw{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=$t(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||qI,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=$t(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?$t(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]=aw(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=HI.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=$t(r.absolute||JD.resolve(this.cwd,e)),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[Fa](this.statCache.get(this.absolute)):this[jh]()}emit(e,...r){return e==="error"&&(this[tw]=!0),super.emit(e,...r)}[jh](){Ut.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Fa](r)})}[Fa](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=$I(e),this.emit("stat",e),this[XD]()}[XD](){switch(this.type){case"File":return this[ZD]();case"Directory":return this[QD]();case"SymbolicLink":return this[Hh]();default:return this.end()}}[Ta](e){return uw(e,this.type==="Directory",this.portable)}[Gt](e){return sw(e,this.prefix)}[Es](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new iw({path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,mode:this[Ta](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 nw({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[Gt](this.path),linkpath:this.type==="Link"?this[Gt](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)}[QD](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Es](),this.end()}[Hh](){Ut.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Uh](r)})}[Uh](e){this.linkpath=$t(e),this[Es](),this.end()}[ew](e){this.type="Link",this.linkpath=$t(JD.relative(this.cwd,e)),this.stat.size=0,this[Es](),this.end()}[ZD](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[ew](r)}this.linkCache.set(e,this.absolute)}if(this[Es](),this.stat.size===0)return this.end();this[Gh]()}[Gh](){Ut.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Wh](r)})}[Wh](e){if(this.fd=e,this[tw])return this[Hr]();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[Ra]()}[Ra](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Ut.read(e,r,n,i,s,(o,a)=>{if(o)return this[Hr](()=>this.emit("error",o));this[$h](a)})}[Hr](e){Ut.close(this.fd,e)}[$h](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Hr](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Hr](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[qh]():this[zh](()=>this[qh]())}[zh](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[qh](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Hr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Ra]()}}),Vh=class extends Oa{[jh](){this[Fa](Ut.lstatSync(this.absolute))}[Hh](){this[Uh](Ut.readlinkSync(this.absolute))}[Gh](){this[Wh](Ut.openSync(this.absolute,"r"))}[Ra](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Ut.readSync(r,n,i,s,o);this[$h](a),e=!1}finally{if(e)try{this[Hr](()=>{})}catch{}}}[zh](e){e()}[Hr](e){Ut.closeSync(this.fd),e()}},jI=ow(class extends rw{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=$t(e.path),this.mode=this[Ta](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=$t(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=aw(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new iw({path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](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 nw({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[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Gt](e){return sw(e,this.prefix)}[Ta](e){return uw(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Oa.Sync=Vh;Oa.Tar=jI;var $I=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";cw.exports=Oa});var fw=b((NH,lw)=>{"use strict";lw.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Kh=b((MH,hw)=>{"use strict";hw.exports=te;te.Node=gn;te.create=te;function te(t){var e=this;if(e instanceof te||(e=new te),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}te.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};te.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};te.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};te.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)GI(this,arguments[t]);return this.length};te.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)WI(this,arguments[t]);return this.length};te.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};te.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};te.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};te.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};te.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};te.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};te.prototype.map=function(t,e){e=e||this;for(var r=new te,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};te.prototype.mapReverse=function(t,e){e=e||this;for(var r=new te,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};te.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;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=t(r,n.value,i),n=n.next;return r};te.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;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=t(r,n.value,i),n=n.prev;return r};te.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};te.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};te.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new te;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};te.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new te;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};te.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;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=UI(this,i,r[n]);return s};te.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function UI(t,e,r){var n=e===t.head?new gn(r,null,e,t):new gn(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function GI(t,e){t.tail=new gn(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function WI(t,e){t.head=new gn(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function gn(t,e,r,n){if(!(this instanceof gn))return new gn(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{fw()(te)}catch{}});var Ha=b((HH,Ew)=>{"use strict";var Ma=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},zI=pa(),VI=vh(),YI=Aa(),id=Yh(),KI=id.Sync,JI=id.Tar,XI=Kh(),dw=Buffer.alloc(1024),Ba=Symbol("onStat"),ka=Symbol("ended"),Wt=Symbol("queue"),fi=Symbol("current"),yn=Symbol("process"),Pa=Symbol("processing"),pw=Symbol("processJob"),zt=Symbol("jobs"),Jh=Symbol("jobDone"),Ia=Symbol("addFSEntry"),mw=Symbol("addTarEntry"),ed=Symbol("stat"),td=Symbol("readdir"),La=Symbol("onreaddir"),Na=Symbol("pipe"),gw=Symbol("entry"),Xh=Symbol("entryOpt"),rd=Symbol("writeEntryClass"),_w=Symbol("write"),Zh=Symbol("ondrain"),qa=require("fs"),yw=require("path"),ZI=Ca(),Qh=ai(),sd=ZI(class extends zI{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Qh(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[rd]=id,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new VI.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Zh]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Zh]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Wt]=new XI,this[zt]=0,this.jobs=+e.jobs||4,this[Pa]=!1,this[ka]=!1}[_w](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ka]=!0,this[yn](),this}write(e){if(this[ka])throw new Error("write after end");return e instanceof YI?this[mw](e):this[Ia](e),this.flowing}[mw](e){let r=Qh(yw.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Ma(e.path,r,!1);n.entry=new JI(e,this[Xh](n)),n.entry.on("end",i=>this[Jh](n)),this[zt]+=1,this[Wt].push(n)}this[yn]()}[Ia](e){let r=Qh(yw.resolve(this.cwd,e));this[Wt].push(new Ma(e,r)),this[yn]()}[ed](e){e.pending=!0,this[zt]+=1;let r=this.follow?"stat":"lstat";qa[r](e.absolute,(n,i)=>{e.pending=!1,this[zt]-=1,n?this.emit("error",n):this[Ba](e,i)})}[Ba](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[yn]()}[td](e){e.pending=!0,this[zt]+=1,qa.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[zt]-=1,r)return this.emit("error",r);this[La](e,n)})}[La](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[yn]()}[yn](){if(!this[Pa]){this[Pa]=!0;for(let e=this[Wt].head;e!==null&&this[zt]<this.jobs;e=e.next)if(this[pw](e.value),e.value.ignore){let r=e.next;this[Wt].removeNode(e),e.next=r}this[Pa]=!1,this[ka]&&!this[Wt].length&&this[zt]===0&&(this.zip?this.zip.end(dw):(super.write(dw),super.end()))}}get[fi](){return this[Wt]&&this[Wt].head&&this[Wt].head.value}[Jh](e){this[Wt].shift(),this[zt]-=1,this[yn]()}[pw](e){if(!e.pending){if(e.entry){e===this[fi]&&!e.piped&&this[Na](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ba](e,this.statCache.get(e.absolute)):this[ed](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[La](e,this.readdirCache.get(e.absolute)):this[td](e),!e.readdir))){if(e.entry=this[gw](e),!e.entry){e.ignore=!0;return}e===this[fi]&&!e.piped&&this[Na](e)}}}[Xh](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[gw](e){this[zt]+=1;try{return new this[rd](e.path,this[Xh](e)).on("end",()=>this[Jh](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Zh](){this[fi]&&this[fi].entry&&this[fi].entry.resume()}[Na](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ia](o+i)});let r=e.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()}}),nd=class extends sd{constructor(e){super(e),this[rd]=KI}pause(){}resume(){}[ed](e){let r=this.follow?"statSync":"lstatSync";this[Ba](e,qa[r](e.absolute))}[td](e,r){this[La](e,qa.readdirSync(e.absolute))}[Na](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ia](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[_w](i)})}};sd.Sync=nd;Ew.exports=sd});var Ei=b(Ds=>{"use strict";var QI=fh(),eL=require("events").EventEmitter,it=require("fs"),ud=it.writev;if(!ud){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;ud=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var yi=Symbol("_autoClose"),Tt=Symbol("_close"),bs=Symbol("_ended"),ce=Symbol("_fd"),bw=Symbol("_finished"),$r=Symbol("_flags"),od=Symbol("_flush"),cd=Symbol("_handleChunk"),ld=Symbol("_makeBuf"),Wa=Symbol("_mode"),ja=Symbol("_needDrain"),mi=Symbol("_onerror"),_i=Symbol("_onopen"),ad=Symbol("_onread"),di=Symbol("_onwrite"),Ur=Symbol("_open"),mr=Symbol("_path"),_n=Symbol("_pos"),Vt=Symbol("_queue"),pi=Symbol("_read"),Dw=Symbol("_readSize"),jr=Symbol("_reading"),$a=Symbol("_remain"),ww=Symbol("_size"),Ua=Symbol("_write"),hi=Symbol("_writing"),Ga=Symbol("_defaultFlag"),gi=Symbol("_errored"),za=class extends QI{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[gi]=!1,this[ce]=typeof r.fd=="number"?r.fd:null,this[mr]=e,this[Dw]=r.readSize||16*1024*1024,this[jr]=!1,this[ww]=typeof r.size=="number"?r.size:1/0,this[$a]=this[ww],this[yi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ce]=="number"?this[pi]():this[Ur]()}get fd(){return this[ce]}get path(){return this[mr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ur](){it.open(this[mr],"r",(e,r)=>this[_i](e,r))}[_i](e,r){e?this[mi](e):(this[ce]=r,this.emit("open",r),this[pi]())}[ld](){return Buffer.allocUnsafe(Math.min(this[Dw],this[$a]))}[pi](){if(!this[jr]){this[jr]=!0;let e=this[ld]();if(e.length===0)return process.nextTick(()=>this[ad](null,0,e));it.read(this[ce],e,0,e.length,null,(r,n,i)=>this[ad](r,n,i))}}[ad](e,r,n){this[jr]=!1,e?this[mi](e):this[cd](r,n)&&this[pi]()}[Tt](){if(this[yi]&&typeof this[ce]=="number"){let e=this[ce];this[ce]=null,it.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[mi](e){this[jr]=!0,this[Tt](),this.emit("error",e)}[cd](e,r){let n=!1;return this[$a]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[$a]<=0)&&(n=!1,this[Tt](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[ce]=="number"&&this[pi]();break;case"error":return this[gi]?void 0:(this[gi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},fd=class extends za{[Ur](){let e=!0;try{this[_i](null,it.openSync(this[mr],"r")),e=!1}finally{e&&this[Tt]()}}[pi](){let e=!0;try{if(!this[jr]){this[jr]=!0;do{let r=this[ld](),n=r.length===0?0:it.readSync(this[ce],r,0,r.length,null);if(!this[cd](n,r))break}while(!0);this[jr]=!1}e=!1}finally{e&&this[Tt]()}}[Tt](){if(this[yi]&&typeof this[ce]=="number"){let e=this[ce];this[ce]=null,it.closeSync(e),this.emit("close")}}},Va=class extends eL{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[gi]=!1,this[hi]=!1,this[bs]=!1,this[ja]=!1,this[Vt]=[],this[mr]=e,this[ce]=typeof r.fd=="number"?r.fd:null,this[Wa]=r.mode===void 0?438:r.mode,this[_n]=typeof r.start=="number"?r.start:null,this[yi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[_n]!==null?"r+":"w";this[Ga]=r.flags===void 0,this[$r]=this[Ga]?n:r.flags,this[ce]===null&&this[Ur]()}emit(e,r){if(e==="error"){if(this[gi])return;this[gi]=!0}return super.emit(e,r)}get fd(){return this[ce]}get path(){return this[mr]}[mi](e){this[Tt](),this[hi]=!0,this.emit("error",e)}[Ur](){it.open(this[mr],this[$r],this[Wa],(e,r)=>this[_i](e,r))}[_i](e,r){this[Ga]&&this[$r]==="r+"&&e&&e.code==="ENOENT"?(this[$r]="w",this[Ur]()):e?this[mi](e):(this[ce]=r,this.emit("open",r),this[od]())}end(e,r){return e&&this.write(e,r),this[bs]=!0,!this[hi]&&!this[Vt].length&&typeof this[ce]=="number"&&this[di](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[bs]?(this.emit("error",new Error("write() after end()")),!1):this[ce]===null||this[hi]||this[Vt].length?(this[Vt].push(e),this[ja]=!0,!1):(this[hi]=!0,this[Ua](e),!0)}[Ua](e){it.write(this[ce],e,0,e.length,this[_n],(r,n)=>this[di](r,n))}[di](e,r){e?this[mi](e):(this[_n]!==null&&(this[_n]+=r),this[Vt].length?this[od]():(this[hi]=!1,this[bs]&&!this[bw]?(this[bw]=!0,this[Tt](),this.emit("finish")):this[ja]&&(this[ja]=!1,this.emit("drain"))))}[od](){if(this[Vt].length===0)this[bs]&&this[di](null,0);else if(this[Vt].length===1)this[Ua](this[Vt].pop());else{let e=this[Vt];this[Vt]=[],ud(this[ce],e,this[_n],(r,n)=>this[di](r,n))}}[Tt](){if(this[yi]&&typeof this[ce]=="number"){let e=this[ce];this[ce]=null,it.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},hd=class extends Va{[Ur](){let e;if(this[Ga]&&this[$r]==="r+")try{e=it.openSync(this[mr],this[$r],this[Wa])}catch(r){if(r.code==="ENOENT")return this[$r]="w",this[Ur]();throw r}else e=it.openSync(this[mr],this[$r],this[Wa]);this[_i](null,e)}[Tt](){if(this[yi]&&typeof this[ce]=="number"){let e=this[ce];this[ce]=null,it.closeSync(e),this.emit("close")}}[Ua](e){let r=!0;try{this[di](null,it.writeSync(this[ce],e,0,e.length,this[_n])),r=!1}finally{if(r)try{this[Tt]()}catch{}}}};Ds.ReadStream=za;Ds.ReadStreamSync=fd;Ds.WriteStream=Va;Ds.WriteStreamSync=hd});var eu=b((UH,Tw)=>{"use strict";var tL=Ca(),rL=ci(),nL=require("events"),iL=Kh(),sL=1024*1024,oL=Aa(),Aw=Sa(),aL=vh(),{nextTick:uL}=require("process"),dd=Buffer.from([31,139]),yt=Symbol("state"),En=Symbol("writeEntry"),gr=Symbol("readEntry"),pd=Symbol("nextEntry"),xw=Symbol("processEntry"),_t=Symbol("extendedHeader"),ws=Symbol("globalExtendedHeader"),Gr=Symbol("meta"),Sw=Symbol("emitMeta"),me=Symbol("buffer"),yr=Symbol("queue"),bn=Symbol("ended"),Cw=Symbol("emittedEnd"),Dn=Symbol("emit"),st=Symbol("unzip"),Ya=Symbol("consumeChunk"),Ka=Symbol("consumeChunkSub"),md=Symbol("consumeBody"),vw=Symbol("consumeMeta"),Rw=Symbol("consumeHeader"),Ja=Symbol("consuming"),gd=Symbol("bufferConcat"),yd=Symbol("maybeEnd"),As=Symbol("writing"),Wr=Symbol("aborted"),Xa=Symbol("onDone"),wn=Symbol("sawValidEntry"),Za=Symbol("sawNullBlock"),Qa=Symbol("sawEOF"),Fw=Symbol("closeStream"),cL=t=>!0;Tw.exports=tL(class extends nL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[wn]=null,this.on(Xa,r=>{(this[yt]==="begin"||this[wn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Xa,e.ondone):this.on(Xa,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||sL,this.filter=typeof e.filter=="function"?e.filter:cL,this.writable=!0,this.readable=!1,this[yr]=new iL,this[me]=null,this[gr]=null,this[En]=null,this[yt]="begin",this[Gr]="",this[_t]=null,this[ws]=null,this[bn]=!1,this[st]=null,this[Wr]=!1,this[Za]=!1,this[Qa]=!1,this.on("end",()=>this[Fw]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Rw](e,r){this[wn]===null&&(this[wn]=!1);let n;try{n=new rL(e,r,this[_t],this[ws])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Za]?(this[Qa]=!0,this[yt]==="begin"&&(this[yt]="header"),this[Dn]("eof")):(this[Za]=!0,this[Dn]("nullBlock"));else if(this[Za]=!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[En]=new oL(n,this[_t],this[ws]);if(!this[wn])if(s.remain){let o=()=>{s.invalid||(this[wn]=!0)};s.on("end",o)}else this[wn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Dn]("ignoredEntry",s),this[yt]="ignore",s.resume()):s.size>0&&(this[Gr]="",s.on("data",o=>this[Gr]+=o),this[yt]="meta"):(this[_t]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Dn]("ignoredEntry",s),this[yt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[yt]="body":(this[yt]="header",s.end()),this[gr]?this[yr].push(s):(this[yr].push(s),this[pd]())))}}}[Fw](){uL(()=>this.emit("close"))}[xw](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[gr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[pd]()),r=!1)):(this[gr]=null,r=!1),r}[pd](){do;while(this[xw](this[yr].shift()));if(!this[yr].length){let e=this[gr];!e||e.flowing||e.size===e.remain?this[As]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[md](e,r){let n=this[En],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[yt]="header",this[En]=null,n.end()),s.length}[vw](e,r){let n=this[En],i=this[md](e,r);return this[En]||this[Sw](n),i}[Dn](e,r,n){!this[yr].length&&!this[gr]?this.emit(e,r,n):this[yr].push([e,r,n])}[Sw](e){switch(this[Dn]("meta",this[Gr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[_t]=Aw.parse(this[Gr],this[_t],!1);break;case"GlobalExtendedHeader":this[ws]=Aw.parse(this[Gr],this[ws],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_t]=this[_t]||Object.create(null),this[_t].path=this[Gr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_t]=this[_t]||Object.create(null),this[_t].linkpath=this[Gr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Wr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Wr])return;if(this[st]===null&&e){if(this[me]&&(e=Buffer.concat([this[me],e]),this[me]=null),e.length<dd.length)return this[me]=e,!0;for(let n=0;this[st]===null&&n<dd.length;n++)e[n]!==dd[n]&&(this[st]=!1);if(this[st]===null){let n=this[bn];this[bn]=!1,this[st]=new aL.Unzip,this[st].on("data",s=>this[Ya](s)),this[st].on("error",s=>this.abort(s)),this[st].on("end",s=>{this[bn]=!0,this[Ya]()}),this[As]=!0;let i=this[st][n?"end":"write"](e);return this[As]=!1,i}}this[As]=!0,this[st]?this[st].write(e):this[Ya](e),this[As]=!1;let r=this[yr].length?!1:this[gr]?this[gr].flowing:!0;return!r&&!this[yr].length&&this[gr].once("drain",n=>this.emit("drain")),r}[gd](e){e&&!this[Wr]&&(this[me]=this[me]?Buffer.concat([this[me],e]):e)}[yd](){if(this[bn]&&!this[Cw]&&!this[Wr]&&!this[Ja]){this[Cw]=!0;let e=this[En];if(e&&e.blockRemain){let r=this[me]?this[me].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[me]&&e.write(this[me]),e.end()}this[Dn](Xa)}}[Ya](e){if(this[Ja])this[gd](e);else if(!e&&!this[me])this[yd]();else{if(this[Ja]=!0,this[me]){this[gd](e);let r=this[me];this[me]=null,this[Ka](r)}else this[Ka](e);for(;this[me]&&this[me].length>=512&&!this[Wr]&&!this[Qa];){let r=this[me];this[me]=null,this[Ka](r)}this[Ja]=!1}(!this[me]||this[bn])&&this[yd]()}[Ka](e){let r=0,n=e.length;for(;r+512<=n&&!this[Wr]&&!this[Qa];)switch(this[yt]){case"begin":case"header":this[Rw](e,r),r+=512;break;case"ignore":case"body":r+=this[md](e,r);break;case"meta":r+=this[vw](e,r);break;default:throw new Error("invalid state: "+this[yt])}r<n&&(this[me]?this[me]=Buffer.concat([e.slice(r),this[me]]):this[me]=e.slice(r))}end(e){this[Wr]||(this[st]?this[st].end(e):(this[bn]=!0,this.write(e)))}})});var tu=b((GH,Bw)=>{"use strict";var lL=ri(),kw=eu(),bi=require("fs"),fL=Ei(),Ow=require("path"),_d=li();Bw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=lL(t);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 e.length&&dL(n,e),n.noResume||hL(n),n.file&&n.sync?pL(n):n.file?mL(n,r):Pw(n)};var hL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},dL=(t,e)=>{let r=new Map(e.map(s=>[_d(s),!0])),n=t.filter,i=(s,o)=>{let a=o||Ow.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(Ow.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(_d(s)):s=>i(_d(s))},pL=t=>{let e=Pw(t),r=t.file,n=!0,i;try{let s=bi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(bi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=bi.openSync(r,"r");a<s.size;){let c=bi.readSync(i,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}n=!1}finally{if(n&&i)try{bi.closeSync(i)}catch{}}},mL=(t,e)=>{let r=new kw(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),bi.stat(i,(u,c)=>{if(u)a(u);else{let l=new fL.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},Pw=t=>new kw(t)});var Hw=b((WH,qw)=>{"use strict";var gL=ri(),ru=Ha(),Iw=Ei(),Lw=tu(),Nw=require("path");qw.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=gL(t);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?yL(n,e):n.file?_L(n,e,r):n.sync?EL(n,e):bL(n,e)};var yL=(t,e)=>{let r=new ru.Sync(t),n=new Iw.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),Mw(r,e)},_L=(t,e,r)=>{let n=new ru(t),i=new Iw.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Ed(n,e),r?s.then(r,r):s},Mw=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Lw({file:Nw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Ed=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Lw({file:Nw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Ed(t,e));t.add(r)}t.end()},EL=(t,e)=>{let r=new ru.Sync(t);return Mw(r,e),r},bL=(t,e)=>{let r=new ru(t);return Ed(r,e),r}});var bd=b((zH,Vw)=>{"use strict";var DL=ri(),jw=Ha(),ft=require("fs"),$w=Ei(),Uw=tu(),Gw=require("path"),Ww=ci();Vw.exports=(t,e,r)=>{let n=DL(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?wL(n,e):xL(n,e,r)};var wL=(t,e)=>{let r=new jw.Sync(t),n=!0,i,s;try{try{i=ft.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")i=ft.openSync(t.file,"w+");else throw u}let o=ft.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=ft.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 Ww(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}n=!1,AL(t,r,s,i,e)}finally{if(n)try{ft.closeSync(i)}catch{}}},AL=(t,e,r,n,i)=>{let s=new $w.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),SL(e,i)},xL=(t,e,r)=>{e=Array.from(e);let n=new jw(t),i=(o,a,u)=>{let c=(_,y)=>{_?ft.close(o,p=>u(_)):u(null,y)},l=0;if(a===0)return c(null,0);let f=0,h=Buffer.alloc(512),m=(_,y)=>{if(_)return c(_);if(f+=y,f<512&&y)return ft.read(o,h,f,h.length-f,l+f,m);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 Ww(h);if(!p.cksumValid)return c(null,l);let D=512*Math.ceil(p.size/512);if(l+D+512>a||(l+=D+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),f=0,ft.read(o,h,0,512,l,m)};ft.read(o,h,0,512,l,m)},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+",ft.open(t.file,u,c);if(l)return a(l);ft.fstat(f,(h,m)=>{if(h)return ft.close(f,()=>a(h));i(f,m.size,(_,y)=>{if(_)return a(_);let p=new $w.WriteStream(t.file,{fd:f,start:y});n.pipe(p),p.on("error",a),p.on("close",o),zw(n,e)})})};ft.open(t.file,u,c)});return r?s.then(r,r):s},SL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Uw({file:Gw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},zw=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Uw({file:Gw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>zw(t,e));t.add(r)}t.end()}});var Kw=b((VH,Yw)=>{"use strict";var CL=ri(),vL=bd();Yw.exports=(t,e,r)=>{let n=CL(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),RL(n),vL(n,e,r)};var RL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var Zw=b((YH,Xw)=>{var{promisify:Jw}=require("util"),zr=require("fs"),FL=t=>{if(!t)t={mode:511,fs:zr};else if(typeof t=="object")t={mode:511,fs:zr,...t};else if(typeof t=="number")t={mode:t,fs:zr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:zr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||zr.mkdir,t.mkdirAsync=Jw(t.mkdir),t.stat=t.stat||t.fs.stat||zr.stat,t.statAsync=Jw(t.stat),t.statSync=t.statSync||t.fs.statSync||zr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||zr.mkdirSync,t};Xw.exports=FL});var eA=b((KH,Qw)=>{var TL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:OL,parse:kL}=require("path"),PL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=OL(t),TL==="win32"){let e=/[*|"<>?:]/,{root:r}=kL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Qw.exports=PL});var sA=b((JH,iA)=>{var{dirname:tA}=require("path"),rA=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?rA(t,tA(e),e):void 0),nA=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?nA(t,tA(e),e):void 0}};iA.exports={findMade:rA,findMadeSync:nA}});var Ad=b((XH,aA)=>{var{dirname:oA}=require("path"),Dd=(t,e,r)=>{e.recursive=!1;let n=oA(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Dd(n,e).then(s=>Dd(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},wd=(t,e,r)=>{let n=oA(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return wd(t,e,wd(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};aA.exports={mkdirpManual:Dd,mkdirpManualSync:wd}});var lA=b((ZH,cA)=>{var{dirname:uA}=require("path"),{findMade:BL,findMadeSync:IL}=sA(),{mkdirpManual:LL,mkdirpManualSync:NL}=Ad(),ML=(t,e)=>(e.recursive=!0,uA(t)===t?e.mkdirAsync(t,e):BL(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return LL(t,e);throw i}))),qL=(t,e)=>{if(e.recursive=!0,uA(t)===t)return e.mkdirSync(t,e);let n=IL(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return NL(t,e);throw i}};cA.exports={mkdirpNative:ML,mkdirpNativeSync:qL}});var pA=b((QH,dA)=>{var fA=require("fs"),HL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,xd=HL.replace(/^v/,"").split("."),hA=+xd[0]>10||+xd[0]==10&&+xd[1]>=12,jL=hA?t=>t.mkdir===fA.mkdir:()=>!1,$L=hA?t=>t.mkdirSync===fA.mkdirSync:()=>!1;dA.exports={useNative:jL,useNativeSync:$L}});var bA=b((e4,EA)=>{var Di=Zw(),wi=eA(),{mkdirpNative:mA,mkdirpNativeSync:gA}=lA(),{mkdirpManual:yA,mkdirpManualSync:_A}=Ad(),{useNative:UL,useNativeSync:GL}=pA(),Ai=(t,e)=>(t=wi(t),e=Di(e),UL(e)?mA(t,e):yA(t,e)),WL=(t,e)=>(t=wi(t),e=Di(e),GL(e)?gA(t,e):_A(t,e));Ai.sync=WL;Ai.native=(t,e)=>mA(wi(t),Di(e));Ai.manual=(t,e)=>yA(wi(t),Di(e));Ai.nativeSync=(t,e)=>gA(wi(t),Di(e));Ai.manualSync=(t,e)=>_A(wi(t),Di(e));EA.exports=Ai});var vA=b((t4,CA)=>{"use strict";var Et=require("fs"),An=require("path"),zL=Et.lchown?"lchown":"chown",VL=Et.lchownSync?"lchownSync":"chownSync",wA=Et.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),DA=(t,e,r)=>{try{return Et[VL](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},YL=(t,e,r)=>{try{return Et.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},KL=wA?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Et.chown(t,e,r,n)}:(t,e,r,n)=>n,Sd=wA?(t,e,r)=>{try{return DA(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;YL(t,e,r)}}:(t,e,r)=>DA(t,e,r),JL=process.version,AA=(t,e,r)=>Et.readdir(t,e,r),XL=(t,e)=>Et.readdirSync(t,e);/^v4\./.test(JL)&&(AA=(t,e,r)=>Et.readdir(t,r));var nu=(t,e,r,n)=>{Et[zL](t,e,r,KL(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},xA=(t,e,r,n,i)=>{if(typeof e=="string")return Et.lstat(An.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,xA(t,o,r,n,i)});if(e.isDirectory())Cd(An.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=An.resolve(t,e.name);nu(o,r,n,i)});else{let s=An.resolve(t,e.name);nu(s,r,n,i)}},Cd=(t,e,r,n)=>{AA(t,{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 nu(t,e,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return nu(t,e,r,n)}};s.forEach(c=>xA(t,c,e,r,u))})},ZL=(t,e,r,n)=>{if(typeof e=="string")try{let i=Et.lstatSync(An.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&SA(An.resolve(t,e.name),r,n),Sd(An.resolve(t,e.name),r,n)},SA=(t,e,r)=>{let n;try{n=XL(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Sd(t,e,r);throw i}return n&&n.length&&n.forEach(i=>ZL(t,i,e,r)),Sd(t,e,r)};CA.exports=Cd;Cd.sync=SA});var OA=b((r4,vd)=>{"use strict";var RA=bA(),bt=require("fs"),iu=require("path"),FA=vA(),Ot=ai(),su=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},ou=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},au=(t,e)=>t.get(Ot(e)),xs=(t,e,r)=>t.set(Ot(e),r),QL=(t,e)=>{bt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new ou(t,r&&r.code||"ENOTDIR")),e(r)})};vd.exports=(t,e,r)=>{t=Ot(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=Ot(e.cwd),m=(p,D)=>{p?r(p):(xs(f,t,!0),D&&u?FA(D,o,a,C=>m(C)):s?bt.chmod(t,i,r):r())};if(f&&au(f,t)===!0)return m();if(t===h)return QL(t,m);if(c)return RA(t,{mode:i}).then(p=>m(null,p),m);let y=Ot(iu.relative(h,t)).split("/");uu(h,y,i,f,l,h,null,m)};var uu=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Ot(iu.resolve(t+"/"+u));if(au(n,c))return uu(c,e,r,n,i,s,o,a);bt.mkdir(c,r,TA(c,e,r,n,i,s,o,a))},TA=(t,e,r,n,i,s,o,a)=>u=>{u?bt.lstat(t,(c,l)=>{if(c)c.path=c.path&&Ot(c.path),a(c);else if(l.isDirectory())uu(t,e,r,n,i,s,o,a);else if(i)bt.unlink(t,f=>{if(f)return a(f);bt.mkdir(t,r,TA(t,e,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new su(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,uu(t,e,r,n,i,s,o,a))},eN=t=>{let e=!1,r="ENOTDIR";try{e=bt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new ou(t,r)}};vd.exports.sync=(t,e)=>{t=Ot(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,f=Ot(e.cwd),h=p=>{xs(l,t,!0),p&&a&&FA.sync(p,s,o),i&&bt.chmodSync(t,n)};if(l&&au(l,t)===!0)return h();if(t===f)return eN(f),h();if(u)return h(RA.sync(t,n));let _=Ot(iu.relative(f,t)).split("/"),y=null;for(let p=_.shift(),D=f;p&&(D+="/"+p);p=_.shift())if(D=Ot(iu.resolve(D)),!au(l,D))try{bt.mkdirSync(D,n),y=y||D,xs(l,D,!0)}catch{let N=bt.lstatSync(D);if(N.isDirectory()){xs(l,D,!0);continue}else if(c){bt.unlinkSync(D),bt.mkdirSync(D,n),y=y||D,xs(l,D,!0);continue}else if(N.isSymbolicLink())return new su(D,D+"/"+_.join("/"))}return h(y)}});var Fd=b((n4,kA)=>{var Rd=Object.create(null),{hasOwnProperty:tN}=Object.prototype;kA.exports=t=>(tN.call(Rd,t)||(Rd[t]=t.normalize("NFKD")),Rd[t])});var LA=b((i4,IA)=>{var PA=require("assert"),rN=Fd(),nN=li(),{join:BA}=require("path"),iN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,sN=iN==="win32";IA.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=BA(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=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}=e.get(c),h=new Set;return l.forEach(m=>{let _=t.get(m);PA.equal(_[0],c),_.length===1?t.delete(m):(_.shift(),typeof _[0]=="function"?h.add(_[0]):_[0].forEach(y=>h.add(y)))}),f.forEach(m=>{let _=t.get(m);PA(_[0]instanceof Set),_[0].size===1&&_.length===1?t.delete(m):_[0].size===1?(_.shift(),h.add(_[0])):_[0].delete(c)}),n.delete(c),h.forEach(m=>o(m)),!0};return{check:s,reserve:(c,l)=>{c=sN?["win32 parallelization disabled"]:c.map(h=>rN(nN(BA(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,m)=>h.concat(m)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let m=t.get(h);m?m.push(l):t.set(h,[l])}),f.forEach(h=>{let m=t.get(h);m?m[m.length-1]instanceof Set?m[m.length-1].add(l):m.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var qA=b((s4,MA)=>{var oN=process.env.__FAKE_PLATFORM__||process.platform,aN=oN==="win32",uN=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:cN,O_TRUNC:lN,O_WRONLY:fN,UV_FS_O_FILEMAP:NA=0}=uN.constants,hN=aN&&!!NA,dN=512*1024,pN=NA|lN|cN|fN;MA.exports=hN?t=>t<dN?pN:"w":()=>"w"});var Md=b((o4,QA)=>{"use strict";var mN=require("assert"),gN=eu(),re=require("fs"),yN=Ei(),_r=require("path"),JA=OA(),HA=Nh(),_N=LA(),EN=Mh(),ht=ai(),bN=li(),DN=Fd(),jA=Symbol("onEntry"),kd=Symbol("checkFs"),$A=Symbol("checkFs2"),fu=Symbol("pruneCache"),Pd=Symbol("isReusable"),Dt=Symbol("makeFs"),Bd=Symbol("file"),Id=Symbol("directory"),hu=Symbol("link"),UA=Symbol("symlink"),GA=Symbol("hardlink"),WA=Symbol("unsupported"),zA=Symbol("checkPath"),Vr=Symbol("mkdir"),Ve=Symbol("onError"),cu=Symbol("pending"),VA=Symbol("pend"),xi=Symbol("unpend"),Td=Symbol("ended"),Od=Symbol("maybeClose"),Ld=Symbol("skip"),Ss=Symbol("doChown"),Cs=Symbol("uid"),vs=Symbol("gid"),Rs=Symbol("checkedCwd"),XA=require("crypto"),ZA=qA(),wN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Fs=wN==="win32",AN=(t,e)=>{if(!Fs)return re.unlink(t,e);let r=t+".DELETE."+XA.randomBytes(16).toString("hex");re.rename(t,r,n=>{if(n)return e(n);re.unlink(r,e)})},xN=t=>{if(!Fs)return re.unlinkSync(t);let e=t+".DELETE."+XA.randomBytes(16).toString("hex");re.renameSync(t,e),re.unlinkSync(e)},YA=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,KA=t=>DN(bN(ht(t))).toLowerCase(),SN=(t,e)=>{e=KA(e);for(let r of t.keys()){let n=KA(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},CN=t=>{for(let e of t.keys())t.delete(e)},Ts=class extends gN{constructor(e){if(e||(e={}),e.ondone=r=>{this[Td]=!0,this[Od]()},super(e),this[Rs]=!1,this.reservations=_N(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[cu]=0,this[Td]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Fs,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=ht(_r.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[jA](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Od](){this[Td]&&this[cu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[zA](e){if(this.strip){let r=ht(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=ht(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=ht(e.path),n=r.split("/");if(n.includes("..")||Fs&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=EN(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(_r.isAbsolute(e.path)?e.absolute=ht(_r.resolve(e.path)):e.absolute=ht(_r.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:ht(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=_r.win32.parse(e.absolute);e.absolute=r+HA.encode(e.absolute.slice(r.length));let{root:n}=_r.win32.parse(e.path);e.path=n+HA.encode(e.path.slice(n.length))}return!0}[jA](e){if(!this[zA](e))return e.resume();switch(mN.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[kd](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[WA](e)}}[Ve](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[xi](),r.resume())}[Vr](e,r,n){JA(ht(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[Ss](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Cs](e){return YA(this.uid,e.uid,this.processUid)}[vs](e){return YA(this.gid,e.gid,this.processGid)}[Bd](e,r){let n=e.mode&4095||this.fmode,i=new yN.WriteStream(e.absolute,{flags:ZA(e.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&re.close(i.fd,()=>{}),i.write=()=>!0,this[Ve](u,e),r()});let s=1,o=u=>{if(u){i.fd&&re.close(i.fd,()=>{}),this[Ve](u,e),r();return}--s===0&&re.close(i.fd,c=>{c?this[Ve](c,e):this[xi](),r()})};i.on("finish",u=>{let c=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;re.futimes(l,f,h,m=>m?re.utimes(c,f,h,_=>o(_&&m)):o())}if(this[Ss](e)){s++;let f=this[Cs](e),h=this[vs](e);re.fchown(l,f,h,m=>m?re.chown(c,f,h,_=>o(_&&m)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[Ve](u,e),r()}),e.pipe(a)),a.pipe(i)}[Id](e,r){let n=e.mode&4095||this.dmode;this[Vr](e.absolute,n,i=>{if(i){this[Ve](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,re.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ss](e)&&(s++,re.chown(e.absolute,this[Cs](e),this[vs](e),o)),o()})}[WA](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[UA](e,r){this[hu](e,e.linkpath,"symlink",r)}[GA](e,r){let n=ht(_r.resolve(this.cwd,e.linkpath));this[hu](e,n,"link",r)}[VA](){this[cu]++}[xi](){this[cu]--,this[Od]()}[Ld](e){this[xi](),e.resume()}[Pd](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Fs}[kd](e){this[VA]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[$A](e,n))}[fu](e){e.type==="SymbolicLink"?CN(this.dirCache):e.type!=="Directory"&&SN(this.dirCache,e.absolute)}[$A](e,r){this[fu](e);let n=a=>{this[fu](e),r(a)},i=()=>{this[Vr](this.cwd,this.dmode,a=>{if(a){this[Ve](a,e),n();return}this[Rs]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=ht(_r.dirname(e.absolute));if(a!==this.cwd)return this[Vr](a,this.dmode,u=>{if(u){this[Ve](u,e),n();return}o()})}o()},o=()=>{re.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[Ld](e),n();return}if(a||this[Pd](e,u))return this[Dt](null,e,n);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=f=>this[Dt](f,e,n);return c?re.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return re.rmdir(e.absolute,c=>this[Dt](c,e,n))}if(e.absolute===this.cwd)return this[Dt](null,e,n);AN(e.absolute,c=>this[Dt](c,e,n))})};this[Rs]?s():i()}[Dt](e,r,n){if(e){this[Ve](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Bd](r,n);case"Link":return this[GA](r,n);case"SymbolicLink":return this[UA](r,n);case"Directory":case"GNUDumpDir":return this[Id](r,n)}}[hu](e,r,n,i){re[n](r,e.absolute,s=>{s?this[Ve](s,e):(this[xi](),e.resume()),i()})}},lu=t=>{try{return[null,t()]}catch(e){return[e,null]}},Nd=class extends Ts{[Dt](e,r){return super[Dt](e,r,()=>{})}[kd](e){if(this[fu](e),!this[Rs]){let s=this[Vr](this.cwd,this.dmode);if(s)return this[Ve](s,e);this[Rs]=!0}if(e.absolute!==this.cwd){let s=ht(_r.dirname(e.absolute));if(s!==this.cwd){let o=this[Vr](s,this.dmode);if(o)return this[Ve](o,e)}}let[r,n]=lu(()=>re.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[Ld](e);if(r||this[Pd](e,n))return this[Dt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?lu(()=>{re.chmodSync(e.absolute,e.mode)}):[];return this[Dt](a,e)}let[s]=lu(()=>re.rmdirSync(e.absolute));this[Dt](s,e)}let[i]=e.absolute===this.cwd?[]:lu(()=>xN(e.absolute));this[Dt](i,e)}[Bd](e,r){let n=e.mode&4095||this.fmode,i=a=>{let u;try{re.closeSync(s)}catch(c){u=c}(a||u)&&this[Ve](a||u,e),r()},s;try{s=re.openSync(e.absolute,ZA(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ve](a,e)),e.pipe(o)),o.on("data",a=>{try{re.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{re.futimesSync(s,c,l)}catch(f){try{re.utimesSync(e.absolute,c,l)}catch{u=f}}}if(this[Ss](e)){let c=this[Cs](e),l=this[vs](e);try{re.fchownSync(s,c,l)}catch(f){try{re.chownSync(e.absolute,c,l)}catch{u=u||f}}}i(u)})}[Id](e,r){let n=e.mode&4095||this.dmode,i=this[Vr](e.absolute,n);if(i){this[Ve](i,e),r();return}if(e.mtime&&!this.noMtime)try{re.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ss](e))try{re.chownSync(e.absolute,this[Cs](e),this[vs](e))}catch{}r(),e.resume()}[Vr](e,r){try{return JA.sync(ht(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[hu](e,r,n,i){try{re[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[Ve](s,e)}}};Ts.Sync=Nd;QA.exports=Ts});var ix=b((a4,nx)=>{"use strict";var vN=ri(),du=Md(),tx=require("fs"),rx=Ei(),ex=require("path"),qd=li();nx.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=vN(t);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 e.length&&RN(n,e),n.file&&n.sync?FN(n):n.file?TN(n,r):n.sync?ON(n):kN(n)};var RN=(t,e)=>{let r=new Map(e.map(s=>[qd(s),!0])),n=t.filter,i=(s,o)=>{let a=o||ex.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(ex.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(qd(s)):s=>i(qd(s))},FN=t=>{let e=new du.Sync(t),r=t.file,n=tx.statSync(r),i=t.maxReadSize||16*1024*1024;new rx.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},TN=(t,e)=>{let r=new du(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),tx.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 e?s.then(e,e):s},ON=t=>new du.Sync(t),kN=t=>new du(t)});var sx=b(Te=>{"use strict";Te.c=Te.create=Hw();Te.r=Te.replace=bd();Te.t=Te.list=tu();Te.u=Te.update=Kw();Te.x=Te.extract=ix();Te.Pack=Ha();Te.Unpack=Md();Te.Parse=eu();Te.ReadEntry=Aa();Te.WriteEntry=Yh();Te.Header=ci();Te.Pax=Sa();Te.types=Th()});var br=b((Er,pu)=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});var ox=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function PN(t){return ox.includes(t)}var BN=["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",...ox];function IN(t){return BN.includes(t)}var LN=["null","undefined","string","number","bigint","boolean","symbol"];function NN(t){return LN.includes(t)}function Si(t){return e=>typeof e===t}var{toString:ax}=Object.prototype,Os=t=>{let e=ax.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&E.domElement(t))return"HTMLElement";if(IN(e))return e},fe=t=>e=>Os(e)===t;function E(t){if(t===null)return"null";switch(typeof t){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(t))return"Observable";if(E.array(t))return"Array";if(E.buffer(t))return"Buffer";let e=Os(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}E.undefined=Si("undefined");E.string=Si("string");var MN=Si("number");E.number=t=>MN(t)&&!E.nan(t);E.bigint=Si("bigint");E.function_=Si("function");E.null_=t=>t===null;E.class_=t=>E.function_(t)&&t.toString().startsWith("class ");E.boolean=t=>t===!0||t===!1;E.symbol=Si("symbol");E.numericString=t=>E.string(t)&&!E.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));E.array=(t,e)=>Array.isArray(t)?E.function_(e)?t.every(e):!0:!1;E.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};E.blob=t=>fe("Blob")(t);E.nullOrUndefined=t=>E.null_(t)||E.undefined(t);E.object=t=>!E.null_(t)&&(typeof t=="object"||E.function_(t));E.iterable=t=>{var e;return E.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};E.asyncIterable=t=>{var e;return E.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};E.generator=t=>{var e,r;return E.iterable(t)&&E.function_((e=t)===null||e===void 0?void 0:e.next)&&E.function_((r=t)===null||r===void 0?void 0:r.throw)};E.asyncGenerator=t=>E.asyncIterable(t)&&E.function_(t.next)&&E.function_(t.throw);E.nativePromise=t=>fe("Promise")(t);var qN=t=>{var e,r;return E.function_((e=t)===null||e===void 0?void 0:e.then)&&E.function_((r=t)===null||r===void 0?void 0:r.catch)};E.promise=t=>E.nativePromise(t)||qN(t);E.generatorFunction=fe("GeneratorFunction");E.asyncGeneratorFunction=t=>Os(t)==="AsyncGeneratorFunction";E.asyncFunction=t=>Os(t)==="AsyncFunction";E.boundFunction=t=>E.function_(t)&&!t.hasOwnProperty("prototype");E.regExp=fe("RegExp");E.date=fe("Date");E.error=fe("Error");E.map=t=>fe("Map")(t);E.set=t=>fe("Set")(t);E.weakMap=t=>fe("WeakMap")(t);E.weakSet=t=>fe("WeakSet")(t);E.int8Array=fe("Int8Array");E.uint8Array=fe("Uint8Array");E.uint8ClampedArray=fe("Uint8ClampedArray");E.int16Array=fe("Int16Array");E.uint16Array=fe("Uint16Array");E.int32Array=fe("Int32Array");E.uint32Array=fe("Uint32Array");E.float32Array=fe("Float32Array");E.float64Array=fe("Float64Array");E.bigInt64Array=fe("BigInt64Array");E.bigUint64Array=fe("BigUint64Array");E.arrayBuffer=fe("ArrayBuffer");E.sharedArrayBuffer=fe("SharedArrayBuffer");E.dataView=fe("DataView");E.enumCase=(t,e)=>Object.values(e).includes(t);E.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;E.urlInstance=t=>fe("URL")(t);E.urlString=t=>{if(!E.string(t))return!1;try{return new URL(t),!0}catch{return!1}};E.truthy=t=>!!t;E.falsy=t=>!t;E.nan=t=>Number.isNaN(t);E.primitive=t=>E.null_(t)||NN(typeof t);E.integer=t=>Number.isInteger(t);E.safeInteger=t=>Number.isSafeInteger(t);E.plainObject=t=>{if(ax.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};E.typedArray=t=>PN(Os(t));var HN=t=>E.safeInteger(t)&&t>=0;E.arrayLike=t=>!E.nullOrUndefined(t)&&!E.function_(t)&&HN(t.length);E.inRange=(t,e)=>{if(E.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(E.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var jN=1,$N=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.domElement=t=>E.object(t)&&t.nodeType===jN&&E.string(t.nodeName)&&!E.plainObject(t)&&$N.every(e=>e in t);E.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};E.nodeStream=t=>E.object(t)&&E.function_(t.pipe)&&!E.observable(t);E.infinite=t=>t===1/0||t===-1/0;var ux=t=>e=>E.integer(e)&&Math.abs(e%2)===t;E.evenInteger=ux(0);E.oddInteger=ux(1);E.emptyArray=t=>E.array(t)&&t.length===0;E.nonEmptyArray=t=>E.array(t)&&t.length>0;E.emptyString=t=>E.string(t)&&t.length===0;var UN=t=>E.string(t)&&!/\S/.test(t);E.emptyStringOrWhitespace=t=>E.emptyString(t)||UN(t);E.nonEmptyString=t=>E.string(t)&&t.length>0;E.nonEmptyStringAndNotWhitespace=t=>E.string(t)&&!E.emptyStringOrWhitespace(t);E.emptyObject=t=>E.object(t)&&!E.map(t)&&!E.set(t)&&Object.keys(t).length===0;E.nonEmptyObject=t=>E.object(t)&&!E.map(t)&&!E.set(t)&&Object.keys(t).length>0;E.emptySet=t=>E.set(t)&&t.size===0;E.nonEmptySet=t=>E.set(t)&&t.size>0;E.emptyMap=t=>E.map(t)&&t.size===0;E.nonEmptyMap=t=>E.map(t)&&t.size>0;E.propertyKey=t=>E.any([E.string,E.number,E.symbol],t);E.formData=t=>fe("FormData")(t);E.urlSearchParams=t=>fe("URLSearchParams")(t);var cx=(t,e,r)=>{if(!E.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};E.any=(t,...e)=>(E.array(t)?t:[t]).some(n=>cx(Array.prototype.some,n,e));E.all=(t,...e)=>cx(Array.prototype.every,t,e);var P=(t,e,r,n={})=>{if(!t){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 \`${e}\`, ${s}.`)}};Er.assert={undefined:t=>P(E.undefined(t),"undefined",t),string:t=>P(E.string(t),"string",t),number:t=>P(E.number(t),"number",t),bigint:t=>P(E.bigint(t),"bigint",t),function_:t=>P(E.function_(t),"Function",t),null_:t=>P(E.null_(t),"null",t),class_:t=>P(E.class_(t),"Class",t),boolean:t=>P(E.boolean(t),"boolean",t),symbol:t=>P(E.symbol(t),"symbol",t),numericString:t=>P(E.numericString(t),"string with a number",t),array:(t,e)=>{P(E.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>P(E.buffer(t),"Buffer",t),blob:t=>P(E.blob(t),"Blob",t),nullOrUndefined:t=>P(E.nullOrUndefined(t),"null or undefined",t),object:t=>P(E.object(t),"Object",t),iterable:t=>P(E.iterable(t),"Iterable",t),asyncIterable:t=>P(E.asyncIterable(t),"AsyncIterable",t),generator:t=>P(E.generator(t),"Generator",t),asyncGenerator:t=>P(E.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>P(E.nativePromise(t),"native Promise",t),promise:t=>P(E.promise(t),"Promise",t),generatorFunction:t=>P(E.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>P(E.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>P(E.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>P(E.boundFunction(t),"Function",t),regExp:t=>P(E.regExp(t),"RegExp",t),date:t=>P(E.date(t),"Date",t),error:t=>P(E.error(t),"Error",t),map:t=>P(E.map(t),"Map",t),set:t=>P(E.set(t),"Set",t),weakMap:t=>P(E.weakMap(t),"WeakMap",t),weakSet:t=>P(E.weakSet(t),"WeakSet",t),int8Array:t=>P(E.int8Array(t),"Int8Array",t),uint8Array:t=>P(E.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>P(E.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>P(E.int16Array(t),"Int16Array",t),uint16Array:t=>P(E.uint16Array(t),"Uint16Array",t),int32Array:t=>P(E.int32Array(t),"Int32Array",t),uint32Array:t=>P(E.uint32Array(t),"Uint32Array",t),float32Array:t=>P(E.float32Array(t),"Float32Array",t),float64Array:t=>P(E.float64Array(t),"Float64Array",t),bigInt64Array:t=>P(E.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>P(E.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>P(E.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>P(E.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>P(E.dataView(t),"DataView",t),enumCase:(t,e)=>P(E.enumCase(t,e),"EnumCase",t),urlInstance:t=>P(E.urlInstance(t),"URL",t),urlString:t=>P(E.urlString(t),"string with a URL",t),truthy:t=>P(E.truthy(t),"truthy",t),falsy:t=>P(E.falsy(t),"falsy",t),nan:t=>P(E.nan(t),"NaN",t),primitive:t=>P(E.primitive(t),"primitive",t),integer:t=>P(E.integer(t),"integer",t),safeInteger:t=>P(E.safeInteger(t),"integer",t),plainObject:t=>P(E.plainObject(t),"plain object",t),typedArray:t=>P(E.typedArray(t),"TypedArray",t),arrayLike:t=>P(E.arrayLike(t),"array-like",t),domElement:t=>P(E.domElement(t),"HTMLElement",t),observable:t=>P(E.observable(t),"Observable",t),nodeStream:t=>P(E.nodeStream(t),"Node.js Stream",t),infinite:t=>P(E.infinite(t),"infinite number",t),emptyArray:t=>P(E.emptyArray(t),"empty array",t),nonEmptyArray:t=>P(E.nonEmptyArray(t),"non-empty array",t),emptyString:t=>P(E.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>P(E.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>P(E.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>P(E.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>P(E.emptyObject(t),"empty object",t),nonEmptyObject:t=>P(E.nonEmptyObject(t),"non-empty object",t),emptySet:t=>P(E.emptySet(t),"empty set",t),nonEmptySet:t=>P(E.nonEmptySet(t),"non-empty set",t),emptyMap:t=>P(E.emptyMap(t),"empty map",t),nonEmptyMap:t=>P(E.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>P(E.propertyKey(t),"PropertyKey",t),formData:t=>P(E.formData(t),"FormData",t),urlSearchParams:t=>P(E.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>P(E.evenInteger(t),"even integer",t),oddInteger:t=>P(E.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>P(E.directInstanceOf(t,e),"T",t),inRange:(t,e)=>P(E.inRange(t,e),"in range",t),any:(t,...e)=>P(E.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>P(E.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(E,{class:{value:E.class_},function:{value:E.function_},null:{value:E.null_}});Object.defineProperties(Er.assert,{class:{value:Er.assert.class_},function:{value:Er.assert.function_},null:{value:Er.assert.null_}});Er.default=E;pu.exports=E;pu.exports.default=E;pu.exports.assert=Er.assert});var lx=b((c4,Hd)=>{"use strict";var mu=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Ci=class{static fn(e){return(...r)=>new Ci((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){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}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){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 mu(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Ci.prototype,Promise.prototype);Hd.exports=Ci;Hd.exports.CancelError=mu});var fx=b(($d,Ud)=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});function GN(t){return t.encrypted}var jd=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),GN(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};$d.default=jd;Ud.exports=jd;Ud.exports.default=jd});var hx=b((Wd,zd)=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var WN=fx(),zN=require("util"),VN=Number(process.versions.node.split(".")[0]),Gd=t=>{if(t.timings)return t.timings;let e={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}};t.timings=e;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=u),u(c,...l))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||VN>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,zN.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),WN.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};Wd.default=Gd;zd.exports=Gd;zd.exports.default=Gd});var Ex=b((l4,Kd)=>{"use strict";var{V4MAPPED:YN,ADDRCONFIG:KN,ALL:_x,promises:{Resolver:dx},lookup:JN}=require("dns"),{promisify:Vd}=require("util"),XN=require("os"),vi=Symbol("cacheableLookupCreateConnection"),Yd=Symbol("cacheableLookupInstance"),px=Symbol("expires"),ZN=typeof _x=="number",mx=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},QN=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},gx=()=>{let t=!1,e=!1;for(let r of Object.values(XN.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},e3=t=>Symbol.iterator in t,yx={ttl:!0},t3={all:!0},gu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new dx,lookup:o=JN}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Vd(o),this._resolver instanceof dx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Vd(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Vd(this._resolver.resolve6.bind(this._resolver))),this._iface=gx(),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(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,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(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&YN&&(ZN&&r.hints&_x||i.length===0)?QN(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&KN){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 ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){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(e,yx),this._resolve6(e,yx)].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(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[px]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}e3(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,t3);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[px];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(mx(e),vi in e)throw new Error("CacheableLookup has been already installed");e[vi]=e.createConnection,e[Yd]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[vi](r,n))}uninstall(e){if(mx(e),e[vi]){if(e[Yd]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[vi],delete e[vi],delete e[Yd]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=gx(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Kd.exports=gu;Kd.exports.default=gu});var wx=b((f4,Dx)=>{"use strict";var r3="text/plain",n3="us-ascii",bx=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),i3=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(f=>{let[h,m=""]=f.split("=").map(_=>_.trim());return h==="charset"&&(m=m.toLowerCase(),m===n3)?"":`${h}${m?`=${m}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==r3)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},s3=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return i3(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.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(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];bx(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])bx(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};Dx.exports=s3});var Sx=b((h4,xx)=>{xx.exports=Ax;function Ax(t,e){if(t&&e)return Ax(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.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 Xd=b((d4,Jd)=>{var Cx=Sx();Jd.exports=Cx(yu);Jd.exports.strict=Cx(vx);yu.proto=yu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return vx(this)},configurable:!0})});function yu(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function vx(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Tx=b((p4,Fx)=>{var o3=Xd(),a3=function(){},u3=function(t){return t.setHeader&&typeof t.abort=="function"},c3=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Rx=function(t,e,r){if(typeof e=="function")return Rx(t,null,e);e||(e={}),r=o3(r||a3);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,u=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},f=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},h=function(p){r.call(t,p)},m=function(){process.nextTick(_)},_=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return u3(t)?(t.on("complete",c),t.on("abort",m),t.req?y():t.on("request",y)):o&&!n&&(t.on("end",u),t.on("close",u)),c3(t)&&t.on("exit",f),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",m),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",m),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",l),t.removeListener("error",h),t.removeListener("close",m)}};Fx.exports=Rx});var Px=b((m4,kx)=>{var l3=Xd(),f3=Tx(),Zd=require("fs"),ks=function(){},h3=/^v?\.0/.test(process.version),_u=function(t){return typeof t=="function"},d3=function(t){return!h3||!Zd?!1:(t instanceof(Zd.ReadStream||ks)||t instanceof(Zd.WriteStream||ks))&&_u(t.close)},p3=function(t){return t.setHeader&&_u(t.abort)},m3=function(t,e,r,n){n=l3(n);var i=!1;t.on("close",function(){i=!0}),f3(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,d3(t))return t.close(ks);if(p3(t))return t.abort();if(_u(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},Ox=function(t){t()},g3=function(t,e){return t.pipe(e)},y3=function(){var t=Array.prototype.slice.call(arguments),e=_u(t[t.length-1]||ks)&&t.pop()||ks;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return m3(i,o,a,function(u){r||(r=u),u&&n.forEach(Ox),!o&&(n.forEach(Ox),e(r))})});return t.reduce(g3)};kx.exports=y3});var Ix=b((g4,Bx)=>{"use strict";var{PassThrough:_3}=require("stream");Bx.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new _3({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=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Lx=b((y4,Ri)=>{"use strict";var{constants:E3}=require("buffer"),b3=Px(),D3=Ix(),Eu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function bu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=E3.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=b3(t,D3(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Eu)})}),n.getBufferedValue()}Ri.exports=bu;Ri.exports.default=bu;Ri.exports.buffer=(t,e)=>bu(t,{...e,encoding:"buffer"});Ri.exports.array=(t,e)=>bu(t,{...e,array:!0});Ri.exports.MaxBufferError=Eu});var Mx=b((E4,Nx)=>{"use strict";var w3=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),A3=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),x3=new Set([500,502,503,504]),S3={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},C3={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function xn(t){let e=parseInt(t,10);return isFinite(e)?e:0}function v3(t){return t?x3.has(t.status):!0}function Qd(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function R3(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}Nx.exports=class{constructor(e,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(e),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=Qd(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Qd(e.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":R3(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())&&A3.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||w3.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Qd(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.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(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){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(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)S3[n]||(r[n]=e[n]);if(e.connection){let n=e.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 e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return xn(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 xn(this._rescc["s-maxage"])}if(this._rescc["max-age"])return xn(this._rescc["max-age"]);let e=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(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+xn(this._rescc["stale-if-error"]),n=e+xn(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+xn(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+xn(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.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(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!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(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&v3(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(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!C3[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(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Du=b((b4,qx)=>{"use strict";qx.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var jx=b((D4,Hx)=>{"use strict";var F3=require("stream").Readable,T3=Du(),ep=class extends F3{constructor(e,r,n,i){if(typeof e!="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=e,this.headers=T3(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};Hx.exports=ep});var Ux=b((w4,$x)=>{"use strict";var O3=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];$x.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(O3));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var Wx=b((A4,Gx)=>{"use strict";var k3=require("stream").PassThrough,P3=Ux(),B3=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new k3;return P3(t,e),t.pipe(e)};Gx.exports=B3});var zx=b(tp=>{tp.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};tp.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Jx=b((S4,Kx)=>{"use strict";var I3=require("events"),Vx=zx(),L3=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Yx=["sqlite","postgres","mysql","mongo","redis","tiered"],rp=class extends I3{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Vx.stringify,deserialize:Vx.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=L3(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 Yx.includes(this.opts.store.opts.dialect)||Yx.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);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(e).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(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);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(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);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(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{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:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Kx.exports=rp});var Qx=b((C4,Zx)=>{"use strict";var N3=require("events"),wu=require("url"),M3=wx(),q3=Lx(),np=Mx(),Xx=jx(),H3=Du(),j3=Wx(),$3=Jx(),kt=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new $3({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=ip(wu.parse(r)),r={};else if(r instanceof wu.URL)i=ip(wu.parse(r.toString())),r={};else{let[f,...h]=(r.path||"").split("?"),m=h.length>0?`?${h.join("?")}`:"";i=ip({...r,pathname:f,search:m})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...U3(i)},r.headers=H3(r.headers);let s=new N3,o=M3(wu.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=f=>{c=!0;let h=!1,m,_=new Promise(p=>{m=()=>{h||(h=!0,p())}}),y=p=>{if(u&&!f.forceRefresh){p.status=p.statusCode;let C=np.fromObject(u.cachePolicy).revalidatedPolicy(f,p);if(!C.modified){let N=C.policy.responseHeaders();p=new Xx(u.statusCode,N,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new np(f,p,f),p.fromCache=!1);let D;f.cache&&p.cachePolicy.storable()?(D=j3(p),(async()=>{try{let C=q3.buffer(p);if(await Promise.race([_,new Promise(Y=>p.once("end",Y))]),h)return;let N=await C,U={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,U,M)}catch(C){s.emit("error",new kt.CacheError(C))}})()):f.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new kt.CacheError(C))}})(),s.emit("response",D||p),typeof n=="function"&&n(D||p)};try{let p=e(f,y);p.once("error",m),p.once("abort",m),s.emit("request",p)}catch(p){s.emit("error",new kt.RequestError(p))}};return(async()=>{let f=async m=>{await Promise.resolve();let _=m.cache?await this.cache.get(a):void 0;if(typeof _=="undefined")return l(m);let y=np.fromObject(_.cachePolicy);if(y.satisfiesWithoutRevalidation(m)&&!m.forceRefresh){let p=y.responseHeaders(),D=new Xx(_.statusCode,p,_.body,_.url);D.cachePolicy=y,D.fromCache=!0,s.emit("response",D),typeof n=="function"&&n(D)}else u=_,m.headers=y.revalidationHeaders(m),l(m)},h=m=>s.emit("error",new kt.CacheError(m));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await f(r)}catch(m){r.automaticFailover&&!c&&l(r),s.emit("error",new kt.CacheError(m))}})(),s}}};function U3(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function ip(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}kt.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};kt.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Zx.exports=kt});var tS=b((F4,eS)=>{"use strict";var G3=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];eS.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(G3)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var nS=b((T4,rS)=>{"use strict";var{Transform:W3,PassThrough:z3}=require("stream"),sp=require("zlib"),V3=tS();rS.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof sp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new W3({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new z3({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?sp.createBrotliDecompress():sp.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),V3(t,s),t.pipe(i).pipe(o).pipe(s),s}});var ap=b((O4,iS)=>{"use strict";var op=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,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(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};iS.exports=op});var cp=b((k4,uS)=>{"use strict";var Y3=require("events"),K3=require("tls"),J3=require("http2"),X3=ap(),Ze=Symbol("currentStreamsCount"),sS=Symbol("request"),wt=Symbol("cachedOriginSet"),Fi=Symbol("gracefullyClosing"),Z3=["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"],Q3=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},e8=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,up=(t,e)=>{for(let r of t)r[wt].length<e[wt].length&&r[wt].every(n=>e[wt].includes(n))&&r[Ze]+e[Ze]<=e.remoteSettings.maxConcurrentStreams&&aS(r)},t8=(t,e)=>{for(let r of t)e[wt].length<r[wt].length&&e[wt].every(n=>r[wt].includes(n))&&e[Ze]+r[Ze]<=r.remoteSettings.maxConcurrentStreams&&aS(e)},oS=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Yt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},aS=t=>{t[Fi]=!0,t[Ze]===0&&t.close()},Yt=class extends Y3{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new X3({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of Z3)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Yt.normalizeOrigin(e,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,m;for(let _ of l){let y=_.remoteSettings.maxConcurrentStreams;if(y<f)break;if(_[wt].includes(a)){let p=_[Ze];if(p>=y||_[Fi]||_.destroyed)continue;m||(f=y),p>h&&(m=_,h=p)}}if(m){if(n.length!==1){for(let{reject:_}of n){let y=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
15
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);_(y)}return}n[0].resolve(m);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=J3.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[Ze]=0,h[Fi]=!1;let m=()=>h[Ze]<h.remoteSettings.maxConcurrentStreams,_=!0;h.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),h.once("error",p=>{for(let{reject:D}of n)D(p);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(f){_&&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:D}of n)D(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!m())){for(let p of h[wt])if(p in this.queue[o]){let{listeners:D}=this.queue[o][p];for(;D.length!==0&&m();)D.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(!m())break}}};h.on("origin",()=>{h[wt]=h.originSet,m()&&(y(),up(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 D of n)D.reject(p);h.destroy();return}h[wt]=h.originSet;{let p=this.sessions;if(o in p){let D=p[o];D.splice(Q3(D,h,e8),0,h)}else p[o]=[h]}this._freeSessionsCount+=1,f=!0,this.emit("session",h),y(),u(),h[Ze]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),h.on("remoteSettings",()=>{y(),up(this.sessions[o],h)})}),h[sS]=h.request,h.request=(p,D)=>{if(h[Fi])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=h[sS](p,D);return h.ref(),++h[Ze],h[Ze]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(_=m(),--h[Ze],!h.destroyed&&!h.closed&&(t8(this.sessions[o],h),m()&&!h.closed)){_||(this._freeSessionsCount++,_=!0);let N=h[Ze]===0;N&&h.unref(),N&&(this._freeSessionsCount>this.maxFreeSessions||h[Fi])?h.close():(up(this.sessions[o],h),y())}}),C}}catch(h){for(let m of n)m.reject(h);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(e,r){return Yt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=i),K3.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Ze]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return oS({agent:this,isFree:!0})}get busySessions(){return oS({agent:this,isFree:!1})}};Yt.kCurrentStreamsCount=Ze;Yt.kGracefullyClosing=Fi;uS.exports={Agent:Yt,globalAgent:new Yt}});var fp=b((P4,cS)=>{"use strict";var{Readable:r8}=require("stream"),lp=class extends r8{constructor(e,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=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};cS.exports=lp});var hp=b((B4,lS)=>{"use strict";lS.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var hS=b((I4,fS)=>{"use strict";fS.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var pS=b((L4,dS)=>{"use strict";dS.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var gS=b((M4,mS)=>{"use strict";var Ti=(t,e,r)=>{mS.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ti(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ti(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ti(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ti(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ti(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ti(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var yp=b((q4,AS)=>{"use strict";var n8=require("http2"),{Writable:i8}=require("stream"),{Agent:yS,globalAgent:s8}=cp(),o8=fp(),a8=hp(),u8=hS(),c8=pS(),{ERR_INVALID_ARG_TYPE:dp,ERR_INVALID_PROTOCOL:l8,ERR_HTTP_HEADERS_SENT:_S,ERR_INVALID_HTTP_TOKEN:f8,ERR_HTTP_INVALID_HEADER_VALUE:h8,ERR_INVALID_CHAR:d8}=gS(),{HTTP2_HEADER_STATUS:ES,HTTP2_HEADER_METHOD:bS,HTTP2_HEADER_PATH:DS,HTTP2_METHOD_CONNECT:p8}=n8.constants,Ye=Symbol("headers"),pp=Symbol("origin"),mp=Symbol("session"),wS=Symbol("options"),Au=Symbol("flushedHeaders"),Ps=Symbol("jobs"),m8=/^[\^`\-\w!#$%&*+.|~]+$/,g8=/[^\t\u0020-\u007E\u0080-\u00FF]/,gp=class extends i8{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=a8(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[mp]=r.h2session;else if(r.agent===!1)this.agent=new yS({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new yS({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=s8;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new dp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new l8(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[Ye]=Object.create(null),this[Ps]=[],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[Ye])&&(this[Ye].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[wS]=r,s===443?(this[pp]=`https://${o}`,":authority"in this[Ye]||(this[Ye][":authority"]=o)):(this[pp]=`https://${o}:${s}`,":authority"in this[Ye]||(this[Ye][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Au]=!1}get method(){return this[Ye][bS]}set method(e){e&&(this[Ye][bS]=e.toUpperCase())}get path(){return this[Ye][DS]}set path(e){e&&(this[Ye][DS]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,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(e,r,n);this._request?i():this[Ps].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Ps].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Au]||this.destroyed)return;this[Au]=!0;let e=this.method===p8,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||u8(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 o8(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[ES],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)}),e?(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[ES]}))),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[Ps])o();this.emit("socket",this.socket)};if(this[mp])try{r(this[mp].request(this[Ye]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[pp],this[wS],this[Ye]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new dp("name","string",e);return this[Ye][e.toLowerCase()]}get headersSent(){return this[Au]}removeHeader(e){if(typeof e!="string")throw new dp("name","string",e);if(this.headersSent)throw new _S("remove");delete this[Ye][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new _S("set");if(typeof e!="string"||!m8.test(e)&&!c8(e))throw new f8("Header name",e);if(typeof r=="undefined")throw new h8(r,e);if(g8.test(r))throw new d8("header content",e);this[Ye][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Ps].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};AS.exports=gp});var SS=b((H4,xS)=>{"use strict";var y8=require("tls");xS.exports=(t={},e=y8.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),t.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 e(t,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var vS=b((j4,CS)=>{"use strict";var _8=require("net");CS.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),_8.isIP(e)?"":e}});var TS=b(($4,Ep)=>{"use strict";var RS=require("http"),_p=require("https"),E8=SS(),b8=ap(),D8=yp(),w8=vS(),A8=hp(),xu=new b8({maxSize:100}),Bs=new Map,FS=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},x8=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!xu.has(e)){if(Bs.has(e))return(await Bs.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=E8(t);Bs.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(xu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=_p,u=_p.Agent.prototype.createConnection;n?n.createConnection===u?FS(n,s,t):s.destroy():a.createConnection===u?FS(a,s,t):s.destroy()}return Bs.delete(e),o}catch(s){throw Bs.delete(e),s}}return xu.get(e)};Ep.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=A8(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||w8(e),e.port=e.port||(n?443:80),e._defaultAgent=n?_p.globalAgent:RS.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await x8(e)==="h2"?(i&&(e.agent=i.http2),new D8(e,r)):RS.request(e,r)};Ep.exports.protocolCache=xu});var kS=b((U4,OS)=>{"use strict";var S8=require("http2"),C8=cp(),bp=yp(),v8=fp(),R8=TS(),F8=(t,e,r)=>new bp(t,e,r),T8=(t,e,r)=>{let n=new bp(t,e,r);return n.end(),n};OS.exports={...S8,ClientRequest:bp,IncomingMessage:v8,...C8,request:F8,get:T8,auto:R8}});var wp=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var PS=br();Dp.default=t=>PS.default.nodeStream(t)&&PS.default.function_(t.getBoundary)});var NS=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var IS=require("fs"),LS=require("util"),BS=br(),O8=wp(),k8=LS.promisify(IS.stat);Ap.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(BS.default.string(t))return Buffer.byteLength(t);if(BS.default.buffer(t))return t.length;if(O8.default(t))return LS.promisify(t.getLength.bind(t))();if(t instanceof IS.ReadStream){let{size:r}=await k8(t.path);return r===0?void 0:r}}});var Sp=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});function P8(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}xp.default=P8});var MS=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var HS=b(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.TimeoutError=void 0;var B8=require("net"),I8=MS(),qS=Symbol("reentry"),L8=()=>{},Su=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Is.TimeoutError=Su;Is.default=(t,e,r)=>{if(qS in t)return L8;t[qS]=!0;let n=[],{once:i,unhandleAll:s}=I8.default(),o=(f,h,m)=>{var _;let y=setTimeout(h,f,f,m);(_=y.unref)===null||_===void 0||_.call(y);let p=()=>{clearTimeout(y)};return n.push(p),p},{host:a,hostname:u}=r,c=(f,h)=>{t.destroy(new Su(f,h))},l=()=>{for(let f of n)f();s()};if(t.once("error",f=>{if(l(),t.listenerCount("error")===0)throw f}),t.once("close",l),i(t,"response",f=>{i(f,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let f=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,f),n.push(()=>{t.removeListener("timeout",f)})}return i(t,"socket",f=>{var h;let{socketPath:m}=t;if(f.connecting){let _=!!(m!=null?m:B8.isIP((h=u!=null?u:a)!==null&&h!==void 0?h:"")!==0);if(typeof e.lookup!="undefined"&&!_&&typeof f.address().address=="undefined"){let y=o(e.lookup,c,"lookup");i(f,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");_?i(f,"connect",y()):i(f,"lookup",p=>{p===null&&i(f,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&i(f,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");i(f,"secureConnect",y)})}if(typeof e.send!="undefined"){let _=()=>o(e.send,c,"send");f.connecting?i(f,"connect",()=>{i(t,"upload-complete",_())}):i(t,"upload-complete",_())}}),typeof e.response!="undefined"&&i(t,"upload-complete",()=>{let f=o(e.response,c,"response");i(t,"response",f)}),l}});var $S=b(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var jS=br();vp.default=t=>{t=t;let e={protocol:t.protocol,hostname:jS.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return jS.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var US=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var N8=require("url"),M8=["protocol","host","hostname","port","pathname","search"];Rp.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new N8.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of M8)e[s]&&(i[s]=e[s].toString());return i}});var GS=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Fp=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Tp.default=Fp});var kp=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var q8=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Op.default=q8});var zS=b(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.dnsLookupIpVersionToFamily=Sn.isDnsLookupIpVersion=void 0;var WS={auto:0,ipv4:4,ipv6:6};Sn.isDnsLookupIpVersion=t=>t in WS;Sn.dnsLookupIpVersionToFamily=t=>{if(Sn.isDnsLookupIpVersion(t))return WS[t];throw new Error("Invalid DNS lookup IP version")}});var Pp=b(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.isResponseOk=void 0;Cu.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var YS=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var VS=new Set;Bp.default=t=>{VS.has(t)||(VS.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var KS=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var ge=br(),H8=(t,e)=>{if(ge.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");ge.assert.any([ge.default.string,ge.default.undefined],t.encoding),ge.assert.any([ge.default.boolean,ge.default.undefined],t.resolveBodyOnly),ge.assert.any([ge.default.boolean,ge.default.undefined],t.methodRewriting),ge.assert.any([ge.default.boolean,ge.default.undefined],t.isStream),ge.assert.any([ge.default.string,ge.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},ge.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):ge.default.number(r)&&(t.retry.limit=r),ge.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(ge.default.number))),ge.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!ge.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!ge.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!ge.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!ge.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Ip.default=H8});var JS=b(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.retryAfterStatusCodes=void 0;Ls.retryAfterStatusCodes=new Set([413,429,503]);var j8=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ls.default=j8});var qs=b(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.UnsupportedProtocolError=ne.ReadError=ne.TimeoutError=ne.UploadError=ne.CacheError=ne.HTTPError=ne.MaxRedirectsError=ne.RequestError=ne.setNonEnumerableProperties=ne.knownHookEvents=ne.withoutBody=ne.kIsNormalizedAlready=void 0;var XS=require("util"),ZS=require("stream"),$8=require("fs"),Yr=require("url"),QS=require("http"),Lp=require("http"),U8=require("https"),G8=hx(),W8=Ex(),eC=Qx(),z8=nS(),V8=kS(),Y8=Du(),x=br(),K8=NS(),tC=wp(),J8=Sp(),rC=HS(),X8=$S(),nC=US(),Z8=GS(),Q8=kp(),iC=zS(),eM=Pp(),Kr=YS(),tM=KS(),rM=JS(),Np,Ne=Symbol("request"),Fu=Symbol("response"),Oi=Symbol("responseSize"),ki=Symbol("downloadedSize"),Pi=Symbol("bodySize"),Bi=Symbol("uploadedSize"),vu=Symbol("serverResponsesPiped"),sC=Symbol("unproxyEvents"),oC=Symbol("isFromCache"),Mp=Symbol("cancelTimeouts"),aC=Symbol("startedReading"),Ii=Symbol("stopReading"),Ru=Symbol("triggerRead"),Jr=Symbol("body"),Ns=Symbol("jobs"),uC=Symbol("originalResponse"),cC=Symbol("retryTimeout");ne.kIsNormalizedAlready=Symbol("isNormalizedAlready");var nM=x.default.string(process.versions.brotli);ne.withoutBody=new Set(["GET","HEAD"]);ne.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function iM(t){for(let e in t){let r=t[e];if(!x.default.string(r)&&!x.default.number(r)&&!x.default.boolean(r)&&!x.default.null_(r)&&!x.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function sM(t){return x.default.object(t)&&!("statusCode"in t)}var qp=new Z8.default,oM=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),aM=new Set([300,301,302,303,304,307,308]),uM=["context","body","json","form"];ne.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(n)for(let i of uM)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Ce=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Lu?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Fu]}),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,x.default.string(r.stack)&&x.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
5
|
+
`)+r,i=n+1,n=e.indexOf(`
|
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
|
+
`:`
|
14
|
+
`)+r,i=n+1,n=e.indexOf(`
|
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
|
+
`:`
|
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
|
+
${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};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
|
+
`,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};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(`
|
16
27
|
`).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
17
28
|
`).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
18
29
|
`)}${u.reverse().join(`
|
19
|
-
`)}`}}};ne.RequestError=Ce;var Tu=class extends Ce{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};ne.MaxRedirectsError=Tu;var Ou=class extends Ce{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};ne.HTTPError=Ou;var ku=class extends Ce{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};ne.CacheError=ku;var Pu=class extends Ce{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};ne.UploadError=Pu;var Bu=class extends Ce{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};ne.TimeoutError=Bu;var Ms=class extends Ce{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};ne.ReadError=Ms;var Iu=class extends Ce{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};ne.UnsupportedProtocolError=Iu;var cM=["socket","connect","continue","information","upgrade","timeout"],Lu=class extends ZS.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[ki]=0,this[Bi]=0,this.requestInitialized=!1,this[vu]=new Set,this.redirects=[],this[Ii]=!1,this[Ru]=!1,this[Ns]=[],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 Lp.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),ne.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(c){x.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof $8.ReadStream&&await oM(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[Ne])===null||c===void 0||c.destroy();return}for(let f of this[Ns])f();this[Ns].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Ce){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let c=r;if(x.default.object(e)&&!x.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),x.default.urlInstance(r.url)&&(r.url=new Yr.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),x.assert.any([x.default.string,x.default.undefined],r.method),x.assert.any([x.default.object,x.default.undefined],r.headers),x.assert.any([x.default.string,x.default.urlInstance,x.default.undefined],r.prefixUrl),x.assert.any([x.default.object,x.default.undefined],r.cookieJar),x.assert.any([x.default.object,x.default.string,x.default.undefined],r.searchParams),x.assert.any([x.default.object,x.default.string,x.default.undefined],r.cache),x.assert.any([x.default.object,x.default.number,x.default.undefined],r.timeout),x.assert.any([x.default.object,x.default.undefined],r.context),x.assert.any([x.default.object,x.default.undefined],r.hooks),x.assert.any([x.default.boolean,x.default.undefined],r.decompress),x.assert.any([x.default.boolean,x.default.undefined],r.ignoreInvalidCookies),x.assert.any([x.default.boolean,x.default.undefined],r.followRedirect),x.assert.any([x.default.number,x.default.undefined],r.maxRedirects),x.assert.any([x.default.boolean,x.default.undefined],r.throwHttpErrors),x.assert.any([x.default.boolean,x.default.undefined],r.http2),x.assert.any([x.default.boolean,x.default.undefined],r.allowGetBody),x.assert.any([x.default.string,x.default.undefined],r.localAddress),x.assert.any([iC.isDnsLookupIpVersion,x.default.undefined],r.dnsLookupIpVersion),x.assert.any([x.default.object,x.default.undefined],r.https),x.assert.any([x.default.boolean,x.default.undefined],r.rejectUnauthorized),r.https&&(x.assert.any([x.default.boolean,x.default.undefined],r.https.rejectUnauthorized),x.assert.any([x.default.function_,x.default.undefined],r.https.checkServerIdentity),x.assert.any([x.default.string,x.default.object,x.default.array,x.default.undefined],r.https.certificateAuthority),x.assert.any([x.default.string,x.default.object,x.default.array,x.default.undefined],r.https.key),x.assert.any([x.default.string,x.default.object,x.default.array,x.default.undefined],r.https.certificate),x.assert.any([x.default.string,x.default.undefined],r.https.passphrase),x.assert.any([x.default.string,x.default.buffer,x.default.array,x.default.undefined],r.https.pfx)),x.assert.any([x.default.object,x.default.undefined],r.cacheOptions),x.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=Y8({...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 m;if(x.default.string(r.searchParams)||r.searchParams instanceof Yr.URLSearchParams)m=new Yr.URLSearchParams(r.searchParams);else{iM(r.searchParams),m=new Yr.URLSearchParams;for(let _ in r.searchParams){let y=r.searchParams[_];y===null?m.append(_,""):y!==void 0&&m.append(_,y)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((_,y)=>{m.has(y)||m.append(y,_)}),r.searchParams=m}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",x.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+="/")),x.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=nC.default(r.prefixUrl+r.url,r)}else(x.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=nC.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:m}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${m} to ${y}: ${p.href}`);r.url=new Yr.URL(y+p.href.slice(m.length)),m=y},get:()=>m});let{protocol:_}=r.url;if(_==="unix:"&&(_="http:",r.url=new Yr.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),_!=="http:"&&_!=="https:")throw new Iu(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:m,getCookieString:_}=l;x.assert.function_(m),x.assert.function_(_),m.length===4&&_.length===0&&(m=XS.promisify(m.bind(r.cookieJar)),_=XS.promisify(_.bind(r.cookieJar)),r.cookieJar={setCookie:m,getCookieString:_})}let{cache:f}=r;if(f&&(qp.has(f)||qp.set(f,new eC((m,_)=>{let y=m[Ne](m,_);return x.default.promise(y)&&(y.once=(p,D)=>{if(p==="error")y.catch(D);else if(p==="abort")(async()=>{try{(await y).once("abort",D)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},f))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Np||(Np=new W8.default),r.dnsCache=Np;else if(!x.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${x.default(r.dnsCache)}`);x.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 m of ne.knownHookEvents)if(m in r.hooks)if(x.default.array(r.hooks[m]))r.hooks[m]=[...r.hooks[m]];else throw new TypeError(`Parameter \`${m}\` must be an Array, got ${x.default(r.hooks[m])}`);else r.hooks[m]=[];if(n&&!h)for(let m of ne.knownHookEvents)n.hooks[m].length>0&&(r.hooks[m]=[...n.hooks[m],...r.hooks[m]]);if("family"in r&&Kr.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&Kr.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Kr.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Kr.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Kr.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Kr.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Kr.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Kr.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 m in r.agent)if(m!=="http"&&m!=="https"&&m!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${m}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,ne.setNonEnumerableProperties([n,c],r),tM.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!x.default.undefined(e.form),i=!x.default.undefined(e.json),s=!x.default.undefined(e.body),o=n||i||s,a=ne.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.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&&!(e.body instanceof ZS.Readable)&&!x.default.string(e.body)&&!x.default.buffer(e.body)&&!tC.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!x.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!x.default.string(r["content-type"]);s?(tC.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Jr]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Jr]=new Yr.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Jr]=e.stringifyJson(e.json));let c=await K8.default(this[Jr],e.headers);x.default.undefined(r["content-length"])&&x.default.undefined(r["transfer-encoding"])&&!a&&!x.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Pi]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[uC]=e,r.decompress&&(e=z8(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:QS.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[oC]=s.isFromCache,this[Oi]=Number(e.headers["content-length"])||void 0,this[Fu]=e,e.once("end",()=>{this[Oi]=this[ki],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ms(a,this))}),e.once("aborted",()=>{this._beforeError(new Ms({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(x.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&&e.headers.location&&aM.has(i)){if(e.resume(),this[Ne]&&(this[Mp](),delete this[Ne],this[sC]()),(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[Jr]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Tu(this));return}try{let f=function(h){return h.protocol==="unix:"||h.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Yr.URL(u,n),l=c.toString();if(decodeURI(l),!f(n)&&f(c)){this._beforeError(new Ce("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&&!eM.isResponseOk(s)){this._beforeError(new Ou(s));return}e.on("readable",()=>{this[Ru]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[vu])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;G8.default(e),this[Mp]=rC.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof rC.TimeoutError?new Bu(u,this.timings,this):new Ce(u.message,u,this),this._beforeError(u)}),this[sC]=J8.default(e,this,cM),this[Ne]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Jr],a=this.redirects.length===0?this:e;x.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Pu(u,this))})):(this._unlockWrite(),x.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,X8.default(e)),delete r.url;let s,o=qp.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let D in a)if(x.default.undefined(a[D]))delete a[D];else if(x.default.null_(a[D]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${D}\` header`);if(o.decompress&&x.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=nM?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let D=await o.cookieJar.getCookieString(o.url.toString());x.default.nonEmptyString(D)&&(o.headers.cookie=D)}for(let D of o.hooks.beforeRequest){let C=await D(o);if(!x.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Jr]!==o.body&&(this[Jr]=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 D=/(?<socketPath>.+?):(?<path>.+)/.exec(`${f.pathname}${f.search}`);if(D!=null&&D.groups){let{socketPath:C,path:N}=D.groups;Object.assign(o,{socketPath:C,path:N,host:""})}}let h=f.protocol==="https:",m;o.http2?m=V8.auto:m=h?U8.request:QS.request;let _=(e=o.request)!==null&&e!==void 0?e:m,y=o.cache?this._createCacheableRequest:_;u&&!o.http2&&(o.agent=u[h?"https":"http"]),o[Ne]=_,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=iC.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 D=await y(f,p);x.default.undefined(D)&&(D=m(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),sM(D)?this._onRequest(D):this.writable?(this.once("finish",()=>{this._onResponse(D)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(D)}catch(D){throw D instanceof eC.CacheError?new ku(D,this):new Ce(D.message,D,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Ce(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Ii])return;let{options:r}=this,n=this.retryCount+1;this[Ii]=!0,e instanceof Ce||(e=new Ce(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await Q8.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:rM.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Ce(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 Ce(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[cC]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Ru]=!0;let e=this[Fu];if(e&&!this[Ii]){e.readableLength&&(this[Ru]=!1);let r;for(;(r=e.read())!==null;){this[ki]+=r.length,this[aC]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ns].push(i)}_writeRequest(e,r,n){this[Ne].destroyed||(this._progressCallbacks.push(()=>{this[Bi]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[Ne].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Ne in this)){e();return}if(this[Ne].destroyed){e();return}this[Ne].end(n=>{n||(this[Pi]=this[Bi],this.emit("uploadProgress",this.uploadProgress),this[Ne].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ns].push(r)}_destroy(e,r){var n;this[Ii]=!0,clearTimeout(this[cC]),Ne in this&&(this[Mp](),!((n=this[Fu])===null||n===void 0)&&n.complete||this[Ne].destroy()),e!==null&&!x.default.undefined(e)&&!(e instanceof Ce)&&(e=new Ce(e.message,e,this)),r(e)}get _isAboutToError(){return this[Ii]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[Ne])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[uC])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[Ne])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Oi]?e=this[ki]/this[Oi]:this[Oi]===this[ki]?e=1:e=0,{percent:e,transferred:this[ki],total:this[Oi]}}get uploadProgress(){let e;return this[Pi]?e=this[Bi]/this[Pi]:this[Pi]===this[Bi]?e=1:e=0,{percent:e,transferred:this[Bi],total:this[Pi]}}get timings(){var e;return(e=this[Ne])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[oC]}pipe(e,r){if(this[aC])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof Lp.ServerResponse&&this[vu].add(e),super.pipe(e,r)}unpipe(e){return e instanceof Lp.ServerResponse&&this[vu].delete(e),super.unpipe(e),this}};ne.default=Lu});var Hs=b(Pt=>{"use strict";var lM=Pt&&Pt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fM=Pt&&Pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&lM(e,t,r)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.CancelError=Pt.ParseError=void 0;var lC=qs(),Hp=class extends lC.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};Pt.ParseError=Hp;var jp=class extends lC.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};Pt.CancelError=jp;fM(qs(),Pt)});var hC=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var fC=Hs(),hM=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new fC.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new fC.ParseError(s,t)}};$p.default=hM});var Up=b(Xr=>{"use strict";var dM=Xr&&Xr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),pM=Xr&&Xr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dM(e,t,r)};Object.defineProperty(Xr,"__esModule",{value:!0});var mM=require("events"),gM=br(),yM=lx(),Nu=Hs(),dC=hC(),pC=qs(),_M=Sp(),EM=kp(),mC=Pp(),bM=["request","response","redirect","uploadProgress","downloadProgress"];function gC(t){let e,r,n=new mM.EventEmitter,i=new yM((o,a,u)=>{let c=l=>{let f=new pC.default(void 0,t);f.retryCount=l,f._noPipe=!0,u(()=>f.destroy()),u.shouldReject=!1,u(()=>a(new Nu.CancelError(f))),e=f,f.once("response",async _=>{var y;if(_.retryCount=l,_.request.aborted)return;let p;try{p=await EM.default(f),_.rawBody=p}catch{return}if(f._isAboutToError)return;let D=((y=_.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(D),{options:N}=f;if(C&&!N.decompress)_.body=p;else try{_.body=dC.default(_,N.responseType,N.parseJson,N.encoding)}catch(U){if(_.body=p.toString(),mC.isResponseOk(_)){f._beforeError(U);return}}try{for(let[U,M]of N.hooks.afterResponse.entries())_=await M(_,async Y=>{let G=pC.default.normalizeArguments(void 0,{...Y,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},N);G.hooks.afterResponse=G.hooks.afterResponse.slice(0,U);for(let Q of G.hooks.beforeRetry)await Q(G);let z=gC(G);return u(()=>{z.catch(()=>{}),z.cancel()}),z})}catch(U){f._beforeError(new Nu.RequestError(U.message,U,f));return}if(r=_,!mC.isResponseOk(_)){f._beforeError(new Nu.HTTPError(_));return}f.destroy(),o(f.options.resolveBodyOnly?_.body:_)});let h=_=>{if(i.isCanceled)return;let{options:y}=f;if(_ instanceof Nu.HTTPError&&!y.throwHttpErrors){let{response:p}=_;o(f.options.resolveBodyOnly?p.body:p);return}a(_)};f.once("error",h);let m=f.options.body;f.once("retry",(_,y)=>{var p,D;if(m===((p=y.request)===null||p===void 0?void 0:p.options.body)&&gM.default.nodeStream((D=y.request)===null||D===void 0?void 0:D.options.body)){h(y);return}c(_)}),_M.default(f,n,bM)};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 dC.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}Xr.default=gC;pM(Hs(),Xr)});var yC=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var DM=Hs();function wM(t,...e){let r=(async()=>{if(t instanceof DM.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Gp.default=wM});var bC=b(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var _C=br();function EC(t){for(let e of Object.values(t))(_C.default.plainObject(e)||_C.default.array(e))&&EC(e);return Object.freeze(t)}Wp.default=EC});var wC=b(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0})});var zp=b(xt=>{"use strict";var AM=xt&&xt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),xM=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&AM(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});xt.defaultHandler=void 0;var AC=br(),At=Up(),SM=yC(),qu=qs(),CM=bC(),vM={RequestError:At.RequestError,CacheError:At.CacheError,ReadError:At.ReadError,HTTPError:At.HTTPError,MaxRedirectsError:At.MaxRedirectsError,TimeoutError:At.TimeoutError,ParseError:At.ParseError,CancelError:At.CancelError,UnsupportedProtocolError:At.UnsupportedProtocolError,UploadError:At.UploadError},RM=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Mu}=qu.default,xC=(...t)=>{let e;for(let r of t)e=Mu(void 0,r,e);return e},FM=t=>t.isStream?new qu.default(void 0,t):At.default(t),TM=t=>"defaults"in t&&"options"in t.defaults,OM=["get","post","put","patch","head","delete"];xt.defaultHandler=(t,e)=>e(t);var SC=(t,e)=>{if(t)for(let r of t)r(e)},CC=t=>{t._rawHandlers=t.handlers,t.handlers=t.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 e=(n,i={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?FM:c);if(AC.default.plainObject(n)){let l={...n,...i};qu.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{SC(t.options.hooks.init,i),SC((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(h){l=h}let f=Mu(n,i,s!=null?s:t.options);if(f[qu.kIsNormalizedAlready]=!0,l)throw new At.RequestError(l.message,l,f);return c(f)}catch(l){if(i.isStream)throw l;return SM.default(l,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)TM(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!==xt.defaultHandler),s.length===0&&s.push(xt.defaultHandler),CC({options:xC(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=Mu(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!AC.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 RM(o.backoff);let l=await e(void 0,void 0,s),f=await o.transform(l),h=[];for(let _ of f)if(o.filter(_,a,h)&&(!o.shouldContinue(_,a,h)||(yield _,o.stackAllItems&&a.push(_),h.push(_),--u<=0)))return;let m=o.paginate(l,a,h);if(m===!1)return;m===l.request.options?s=l.request.options:m!==void 0&&(s=Mu(void 0,m,s)),c++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of OM)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,vM),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:CM.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=xC,e};xt.default=CC;xM(wC(),xt)});var FC=b((Dr,Hu)=>{"use strict";var kM=Dr&&Dr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),vC=Dr&&Dr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kM(e,t,r)};Object.defineProperty(Dr,"__esModule",{value:!0});var PM=require("url"),RC=zp(),BM={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new PM.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[RC.defaultHandler],mutableDefaults:!1},Vp=RC.default(BM);Dr.default=Vp;Hu.exports=Vp;Hu.exports.default=Vp;Hu.exports.__esModule=!0;vC(zp(),Dr);vC(Up(),Dr)});var LC=b((p9,IC)=>{function St(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}IC.exports=St;St.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};St.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};St.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var 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};St.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};St.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};St.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};St.prototype.start=St.prototype.try;St.prototype.errors=function(){return this._errors};St.prototype.attempts=function(){return this._attempts};St.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var NC=b(Cn=>{var LM=LC();Cn.operation=function(t){var e=Cn.timeouts(t);return new LM(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Cn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Cn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Cn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=Cn.operation(e),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var qC=b((g9,MC)=>{MC.exports=NC()});var jC=b((y9,HC)=>{var NM=qC();function MM(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=NM.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=t(a,l)}catch(h){u(h,l);return}Promise.resolve(f).then(n).catch(function(m){u(m,l)})}o.attempt(c)}return new Promise(r)}HC.exports=MM});var pv=X(require("http")),mv=X(require("https")),gv=X(require("chalk")),qe=require("commander");var Bv=X(Dm());function ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qi(t){return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(t)}function tc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rc(t,e){if(e&&(qi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tc(t)}function Zr(t){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zr(t)}function Xt(t,e){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xt(t,e)}function nc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xt(t,e)}function ic(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function sc(){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 Fn(t,e,r){return sc()?Fn=Reflect.construct.bind():Fn=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Xt(c,o.prototype),c},Fn.apply(null,arguments)}function Hi(t){var e=typeof Map=="function"?new Map:void 0;return Hi=function(n){if(n===null||!ic(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Fn(n,arguments,Zr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xt(i,n)},Hi(t)}var hc=X(Mm()),Zs=X(require("path")),Qs=X(require("fs-extra")),Iv=function(t){nc(e,t);function e(r){var n;return ec(this,e),n=rc(this,Zr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Hi(Error));function Lv(t,e){try{var r=Qs.default.readJsonSync(Zs.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function Nv(t){try{var e=Qs.default.readJsonSync(Zs.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function Mv(t){var e=Qs.default.existsSync(Zs.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function qm(t){var e={current:void 0},r=(0,hc.sync)(function(n){return[Nv(n),Lv(n,e),Mv(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new Iv(t);return r===void 0?e.current:r}var qv=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hv=/[\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]/,jv=/[\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]/,dc={Space_Separator:qv,ID_Start:Hv,ID_Continue:jv},Ae={isSpaceSeparator(t){return typeof t=="string"&&dc.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||dc.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||dc.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},mc,Je,Qt,to,xr,Ft,Oe,_c,$i,$v=function(e,r){mc=String(e),Je="start",Qt=[],to=0,xr=1,Ft=0,Oe=void 0,_c=void 0,$i=void 0;do Oe=Uv(),zv[Je]();while(Oe.type!=="eof");return typeof r=="function"?gc({"":$i},"",r):$i};function gc(t,e,r){let n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=gc(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=gc(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}var Z,J,ji,Zt,ee;function Uv(){for(Z="default",J="",ji=!1,Zt=1;;){ee=er();let t=jm[Z]();if(t)return t}}function er(){if(mc[to])return String.fromCodePoint(mc.codePointAt(to))}function T(){let t=er();return t===`
|
20
|
-
`?(
|
21
|
-
`:case"\r":case"\u2028":case"\u2029":T();return;case"/":T(),
|
22
|
-
`:case"\r":case"\u2028":case"\u2029":T(),
|
23
|
-
`:case"\r":throw
|
24
|
-
`;case"r":return T(),"\r";case"t":return T()," ";case"v":return T(),"\v";case"0":if(T(),
|
25
|
-
`:case"\u2028":case"\u2029":return T(),"";case"\r":return T(),
|
26
|
-
`&&T(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw
|
27
|
-
`+s;
|
28
|
-
`+s+
|
29
|
-
`+p+"}"}}return i.pop(),s=p,N}function
|
30
|
-
`+s,
|
31
|
-
`+s+
|
32
|
-
`+p+"]"}return i.pop(),s=p,C}},
|
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
|
+
`: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(),nl();case`
|
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 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
|
+
`+s;W=C.join(M),N=`{
|
39
|
+
`+s+W+`,
|
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
|
+
`+s,W=w.join(N);C=`[
|
42
|
+
`+s+W+`,
|
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+=`
|
33
44
|
|
34
|
-
`+
|
35
|
-
`+a;for(c=
|
36
|
-
`,a+=
|
37
|
-
`,u=1;u<=
|
38
|
-
`;return a.replace(/\n$/,"")}var
|
39
|
-
\r`;function
|
40
|
-
`:
|
41
|
-
`,
|
42
|
-
`,s?1+u:u):i===
|
43
|
-
`);break}for(n?
|
44
|
-
`,s?1+u:u)):c?(c=!1,
|
45
|
-
`,u+1)):u===0?s&&(
|
46
|
-
`,u):
|
47
|
-
`,s?1+u:u),s=!0,o=!0,u=0,r=
|
48
|
-
`),
|
49
|
-
`,n),i===-1?(o=
|
50
|
-
`&&(s+=r),s+=o;return s}function
|
51
|
-
`+
|
52
|
-
`,i=n&&(
|
53
|
-
`||
|
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
|
+
`,a+=ke.repeat("-",t.indent+l+3+c.pos)+`^
|
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
|
+
`);break}for(n?dn(f)?(c=!0,e.result+=ke.repeat(`
|
55
|
+
`,s?1+u:u)):c?(c=!1,e.result+=ke.repeat(`
|
56
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=ke.repeat(`
|
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 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
|
+
`,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 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
|
+
`,i=n&&(e[e.length-2]===`
|
64
|
+
`||e===`
|
54
65
|
`),s=i?"+":n?"":"-";return r+s+`
|
55
|
-
`}function
|
56
|
-
`?
|
57
|
-
`);return c=c!==-1?c:
|
58
|
-
`||
|
59
|
-
`:"")+
|
60
|
-
`+
|
61
|
-
`,
|
62
|
-
`+
|
63
|
-
`:""}var
|
64
|
-
`,`1. Your spelling of example ${
|
65
|
-
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=Li.default.resolve(t);await em(Li.default.dirname(o))||(gt("The application path is not writable, please check folder permissions and try again."),gt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Li.default.basename(o);try{await(0,Ni.mkdir)(o,{recursive:!0})}catch(p){gt("Unable to create project directory"),gt(p),process.exit(1)}let{isEmpty:u,conflicts:c}=ls(o);u||(gt(`${vn.default.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),sr();let f=kf("Downloading files... (This might take a moment)");try{!r&&i?(f.start(),await(0,tm.default)(()=>Zp(o,i),{retries:3})):(f.start(),await(0,tm.default)(()=>Qp(o,e),{retries:3}))}catch(p){throw new Gu(qM(p)?p.message:String(p))}finally{f.stop()}let h=Li.default.join(o,"package.json"),m=(0,Ni.existsSync)(h),_=[];if(m){let p;try{p=(0,Ni.readJsonSync)(h)}catch{}p&&_.push(...Object.keys(p.scripts||{}))}let y=t;return Li.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:m,availableScripts:_,repoInfo:i}}function nm(t,e={to:"camel"}){switch(e.to){case"camel":return t.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var yv=require("proxy-agent");var $s={name:"@turbo/gen",version:"2.0.7-canary.0",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/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:*",chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3","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 $C=X(require("chalk")),UC=X(require("update-check"));var jM=(0,UC.default)($s).catch(()=>null);async function im(){try{let t=await jM;t!=null&&t.latest&&(L.log(),L.log($C.default.yellow.bold(`A new version of \`${$s.name}\` is available!`)),L.log()),process.exit()}catch{}}var GC=require("@turbo/workspaces");async function Wu({root:t}){let e=t||process.cwd(),r=Wi(e);if(!r)L.error("Unable to infer repository root - override with --root");else try{return(0,GC.getWorkspaceDetails)({root:r})}catch{L.error(`Unable to determine workspace details. Make sure "${e}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var wr=X(require("path")),Vu=X(require("fs-extra")),zu=X(require("node-plop")),WC=require("ts-node"),zC=require("inquirer");var Me=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,Me)}};var VC=["ts","js","cjs"],$M=wr.default.join("turbo","generators"),YC=VC.map(t=>wr.default.join($M,`config.${t}`)),UM=[...YC,...VC.map(t=>wr.default.join(`plopfile.${t}`))];function KC({project:t,configPath:e}){(0,WC.register)({transpileOnly:!0,cwd:t.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=WM({project:t}),n;if(e){if(!Vu.default.existsSync(e))throw new Me(`No config at "${e}"`,{type:"plop_no_config"});try{n=(0,zu.default)(e,{destBasePath:e,force:!1})}catch(i){L.error(i)}}else{for(let i of UM){let s=wr.default.join(t.paths.root,i);if(Vu.default.existsSync(s))try{n=(0,zu.default)(s,{destBasePath:t.paths.root,force:!1});break}catch(o){L.error(o)}}!n&&r.length>0&&(n=(0,zu.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 sm({project:t,configPath:e}){let r=KC({project:t,configPath:e});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=t.workspaceData.workspaces.find(l=>{if(u.basePath===t.paths.root)return!1;let f=u.basePath.split(wr.default.sep);return f.pop(),f.pop(),wr.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 zC.Separator(a)),o.push(...s[a])}),o}function GM({project:t,generator:e}){let r={cwd:process.cwd(),root:t.paths.root,workspace:e.basePath?Gi({cwd:e.basePath,target:"package.json"}):void 0},n={};try{n=If(e.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function WM({project:t}){let e=[];return t.workspaceData.workspaces.forEach(r=>{for(let n of YC)Vu.default.existsSync(wr.default.join(r.paths.root,n))&&e.push({config:wr.default.join(r.paths.root,n),root:r.paths.root})}),e}async function JC({project:t,generator:e,bypassArgs:r,configPath:n}){let i=KC({project:t,configPath:n});if(!i)throw new Me("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(e);if(!s)throw new Me(`Generator ${e} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...GM({project:t,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 Me(`Failed to run "${e}" 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 Rn=require("inquirer");async function XC({generators:t,generator:e}){if(e){if(t.find(n=>!(n instanceof Rn.Separator)&&n.name===e))return{selectedGenerator:e};L.warn(`Generator "${e}" not found`),L.log()}return await(0,Rn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:t.map(n=>n instanceof Rn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function ZC(){return(0,Rn.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 QC({message:t}){return(0,Rn.prompt)({type:"confirm",name:"answer",message:t})}var om=X(require("path")),Yu=require("fs-extra");async function ev({project:t,template:e}){let r=om.default.join(t.paths.root,"turbo","generators"),n=`simple-${e}`;if(await(0,Yu.pathExists)(r))throw new Me(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await(0,Yu.copy)(om.default.join(__dirname,"templates",n),r,{recursive:!0})}async function am({generator:t,project:e,opts:r}){let n=!1,i=sm({project:e,configPath:r.config});if(!i.length){L.error("No generators found."),L.log();let{answer:o}=await QC({message:`Would you like to add a config with a sample custom generator to ${e.name}?`});if(o){n=!0;let{answer:a}=await ZC();try{await ev({project:e,template:a})}catch(u){throw u instanceof Me||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=sm({project:e,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 XC({generators:i,generator:t});try{await JC({project:e,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Me)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new Me(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 fm=X(require("path")),Gs=require("fs-extra"),fv=X(require("chalk"));var Us=X(require("path")),iv=require("fs-extra"),Ct=require("inquirer"),sv=require("minimatch"),lm=X(require("validate-npm-package-name"));var um=X(require("path"));var tv=X(require("path"));function rv({project:t}){let r=t.workspaceData.workspaces.map(i=>tv.default.relative(t.paths.root,i.paths.root)),n=new Set;return t.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function cm({project:t,workspace:e}){return um.default.relative(t.paths.root,e.paths.root).split(um.default.sep)[0]}function Ku({project:t}){let e=rv({project:t}),r=e.includes("apps"),n=e.includes("packages"),i={},s=[];return t.workspaceData.workspaces.forEach(o=>{let a=cm({project:t,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 nv=require("inquirer");function Ju({project:t,type:e,showAllDependencies:r}){let n=Ku({project:t}),i=[],s=t.workspaceData.workspaces;r||(e==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:e==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=cm({project:t,workspace:a});u!==o&&i.push(new nv.Separator(u)),o=u,i.push(a)}),i}async function ov({override:t,suggestion:e,workspaceType:r}){let{validForNewPackages:n}=(0,lm.default)(t||"");return t&&n?{answer:t}:(0,Ct.prompt)({type:"input",name:"answer",default:e,validate:i=>{let{validForNewPackages:s}=(0,lm.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function av({override:t,message:e}){return t?{answer:t}:(0,Ct.prompt)({type:"list",name:"answer",message:e!=null?e:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function uv({workspaceType:t,workspaceName:e,destination:r,project:n}){let i=e.includes("/")?e.split("/")[1]:e;if(r){let{valid:u,root:c}=ua(r);if(u)return{absolute:c,relative:Us.default.relative(n.paths.root,c)}}let s,o=Ku({project:n});t==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:t==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,Ct.prompt)({type:"input",name:"answer",message:`Where should "${e}" be added?`,default:s?Us.default.relative(n.paths.root,s):void 0,validate:u=>{let c=Us.default.join(n.paths.root,u),{valid:l,error:f}=ua(c),h=n.workspaceData.globs.some(m=>(0,sv.minimatch)(u,m));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:Us.default.join(n.paths.root,a),relative:a}}async function cv({override:t,workspaces:e,workspaceName:r}){if(t){let i=e.find(s=>s instanceof Ct.Separator?!1:s.name===t);if(i)return{answer:i};L.warn(`Workspace "${t}" not found`),L.log()}return await(0,Ct.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:e.map(i=>i instanceof Ct.Separator?i:{name:` ${i.name}`,value:i})})}async function lv({workspaceName:t,project:e,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await VM({message:`Add workspace dependencies to "${t}"?`});if(!s)return i;let{answer:o}=await(0,Ct.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${t}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),a=Ju({project:e,type:"package",showAllDependencies:n}),u=r?(0,iv.readJsonSync)(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,Ct.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${t}?`,loop:!1,choices:a.map(h=>h instanceof Ct.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(m=>{h.has(m)||(f[m]=e.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,m)=>({...h,[m]:e.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function VM({message:t}){return(0,Ct.prompt)({type:"confirm",name:"answer",message:t})}async function Xu({project:t,opts:e}){var u;let r,n=e.method==="copy"&&e.copy.type==="external"?((u=e.examplePath)==null?void 0:u.split("/").pop())||e.copy.source.split("/").pop():void 0,{answer:i}=await av({override:e.type,message:e.method==="copy"&&e.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await ov({override:e.name,workspaceType:i,suggestion:n});if(e.method==="copy"&&e.copy.type==="internal"){let{answer:c}=await cv({override:e.copy.source,workspaces:Ju({project:t,type:i}),workspaceName:s});r=c}let o=await uv({workspaceType:i,workspaceName:s,project:t,destination:e.destination}),a=await lv({workspaceName:s,project:t,workspaceSource:r,showAllDependencies:e.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function hm({project:t,opts:e}){let{name:r,location:n,dependencies:i}=await Xu({project:t,opts:e}),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,Gs.mkdirSync)(n.absolute,{recursive:!0}),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"README.md"),`# \`${r}\``),L.log(),L.log(`${fv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var dm=X(require("path")),vt=require("fs-extra"),hv=X(require("chalk"));async function pm({project:t,opts:e}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Xu({project:t,opts:e}),a=dm.default.join(i.absolute,"package.json");if(e.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 rm({appPath:i.absolute,example:e.copy.source,examplePath:e.examplePath});try{if((0,vt.existsSync)(a)){if((await(0,vt.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,vt.existsSync)(dm.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,vt.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,vt.copy)(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await(0,vt.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,vt.writeJSON)(a,u,{spaces:2}),L.log(),L.log(`${hv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function KM(t){let{copy:e,...r}=t,n=e===!0||typeof e=="string"?"copy":"empty",i=typeof e=="string"?e:"",s=typeof e=="string"&&e.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function Ws(t){let e=await Wu(t),r=KM(t);L.log();let n={project:e,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 "${e.name}"`),L.log(),await pm(n)):(L.info(`Add an empty workspace to "${e.name}"`),L.log(),await hm(n))}async function zs(t,e){let r=await Wu(e);L.log(),L.info(`Modify "${r.name}" using custom generators`),L.log(),await am({generator:t,project:r,opts:e})}function dv(t){try{let e=JSON.parse(t),r={};for(let n in e){let i=nm(n,{to:"camel"});r[i]=e[n]}return r}catch(e){L.error("Error parsing arguments",e),process.exit(1)}}async function mm(t,e){var r;if(t==="workspace"){let n=dv(e.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 Ws(n)}else if(t==="run"){let n=dv(e.json),{generatorName:i,...s}=n;await zs(i,s)}else L.error(`Received unknown command - "${t}" (must be one of "workspace" | "run")`),process.exit(1)}var _v=new yv.ProxyAgent;pv.default.globalAgent=_v;mv.default.globalAgent=_v;var Vs=new qe.Command;Vs.name(gv.default.bold(L.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version($s.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);Vs.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new qe.Argument("[generator-name]","The name of the generator to run")).addOption(new qe.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new qe.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new qe.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(zs);Vs.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new qe.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new qe.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new qe.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
66
|
+
`}function cg(e){return e[e.length-1]===`
|
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,lg(e.slice(0,c),t)}(),i=e[0]===`
|
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
|
+
`:"")+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
|
+
`+e.slice(i,s),i=s+1),o=a;return u+=`
|
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 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");await(0,nm.x)({file:s,cwd:e,strip:i?i.split("/").length+1:1,filter:o=>o.startsWith(`${r}-${n.replace(/\//g,"-")}${i?`/${i}/`:"/"}`)}),await ho.promises.unlink(s)}async function um(e,t){let r=await oS("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await(0,nm.x)({file:r,cwd:e,strip:2+t.split("/").length,filter:n=>n.includes(`turbo-main/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
|
+
`,`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 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.7-canary.1",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/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
|
66
77
|
within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.
|
67
|
-
`).conflicts("empty")).addOption(new
|
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
|
68
79
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
69
80
|
In this case, you must specify the path to the example separately:
|
70
81
|
--example-path foo/bar
|
71
|
-
`).implies({copy:!0})).addOption(new
|
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)});
|
72
83
|
/*! Bundled license information:
|
73
84
|
|
74
85
|
@babel/runtime/helpers/regeneratorRuntime.js:
|