create-turbo 1.13.1-canary.2 → 1.13.1-canary.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +37 -37
- package/package.json +5 -5
package/dist/cli.js
CHANGED
@@ -1,63 +1,63 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var EC=Object.create;var _c=Object.defineProperty;var wC=Object.getOwnPropertyDescriptor;var vC=Object.getOwnPropertyNames;var SC=Object.getPrototypeOf,DC=Object.prototype.hasOwnProperty;var O=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),AC=(t,e)=>{for(var r in e)_c(t,r,{get:e[r],enumerable:!0})},xC=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of vC(e))!DC.call(t,n)&&n!==r&&_c(t,n,{get:()=>e[n],enumerable:!(i=wC(e,n))||i.enumerable});return t};var oe=(t,e,r)=>(r=t!=null?EC(SC(t)):{},xC(e||!t||!t.__esModule?_c(r,"default",{value:t,enumerable:!0}):r,t));var Im=O((yq,Qt)=>{function bc(t){return Qt.exports=bc=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},Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports,bc(t)}Qt.exports=bc,Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports});var Mm=O((gq,er)=>{var CC=Im().default;function Nm(){"use strict";er.exports=Nm=function(){return t},er.exports.__esModule=!0,er.exports.default=er.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(I,U,G){I[U]=G.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(I,U,G){return Object.defineProperty(I,U,{value:G,enumerable:!0,configurable:!0,writable:!0}),I[U]}try{u({},"")}catch{u=function(G,P,v){return G[P]=v}}function c(I,U,G,P){var v=U&&U.prototype instanceof f?U:f,R=Object.create(v.prototype),$=new H(P||[]);return i(R,"_invoke",{value:T(I,G,$)}),R}function l(I,U,G){try{return{type:"normal",arg:I.call(U,G)}}catch(P){return{type:"throw",arg:P}}}t.wrap=c;var h={};function f(){}function d(){}function m(){}var y={};u(y,s,function(){return this});var p=Object.getPrototypeOf,_=p&&p(p(W([])));_&&_!==e&&r.call(_,s)&&(y=_);var C=m.prototype=f.prototype=Object.create(y);function L(I){["next","throw","return"].forEach(function(U){u(I,U,function(G){return this._invoke(U,G)})})}function B(I,U){function G(v,R,$,J){var X=l(I[v],I,R);if(X.type!=="throw"){var E=X.arg,w=E.value;return w&&CC(w)=="object"&&r.call(w,"__await")?U.resolve(w.__await).then(function(S){G("next",S,$,J)},function(S){G("throw",S,$,J)}):U.resolve(w).then(function(S){E.value=S,$(E)},function(S){return G("throw",S,$,J)})}J(X.arg)}var P;i(this,"_invoke",{value:function(R,$){function J(){return new U(function(X,E){G(R,$,X,E)})}return P=P?P.then(J,J):J()}})}function T(I,U,G){var P="suspendedStart";return function(v,R){if(P==="executing")throw new Error("Generator is already running");if(P==="completed"){if(v==="throw")throw R;return q()}for(G.method=v,G.arg=R;;){var $=G.delegate;if($){var J=M($,G);if(J){if(J===h)continue;return J}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(P==="suspendedStart")throw P="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);P="executing";var X=l(I,U,G);if(X.type==="normal"){if(P=G.done?"completed":"suspendedYield",X.arg===h)continue;return{value:X.arg,done:G.done}}X.type==="throw"&&(P="completed",G.method="throw",G.arg=X.arg)}}}function M(I,U){var G=U.method,P=I.iterator[G];if(P===void 0)return U.delegate=null,G==="throw"&&I.iterator.return&&(U.method="return",U.arg=void 0,M(I,U),U.method==="throw")||G!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+G+"' method")),h;var v=l(P,I.iterator,U.arg);if(v.type==="throw")return U.method="throw",U.arg=v.arg,U.delegate=null,h;var R=v.arg;return R?R.done?(U[I.resultName]=R.value,U.next=I.nextLoc,U.method!=="return"&&(U.method="next",U.arg=void 0),U.delegate=null,h):R:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,h)}function D(I){var U={tryLoc:I[0]};1 in I&&(U.catchLoc=I[1]),2 in I&&(U.finallyLoc=I[2],U.afterLoc=I[3]),this.tryEntries.push(U)}function A(I){var U=I.completion||{};U.type="normal",delete U.arg,I.completion=U}function H(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(D,this),this.reset(!0)}function W(I){if(I){var U=I[s];if(U)return U.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var G=-1,P=function v(){for(;++G<I.length;)if(r.call(I,G))return v.value=I[G],v.done=!1,v;return v.value=void 0,v.done=!0,v};return P.next=P}}return{next:q}}function q(){return{value:void 0,done:!0}}return d.prototype=m,i(C,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:d,configurable:!0}),d.displayName=u(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(I){var U=typeof I=="function"&&I.constructor;return!!U&&(U===d||(U.displayName||U.name)==="GeneratorFunction")},t.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,m):(I.__proto__=m,u(I,a,"GeneratorFunction")),I.prototype=Object.create(C),I},t.awrap=function(I){return{__await:I}},L(B.prototype),u(B.prototype,o,function(){return this}),t.AsyncIterator=B,t.async=function(I,U,G,P,v){v===void 0&&(v=Promise);var R=new B(c(I,U,G,P),v);return t.isGeneratorFunction(U)?R:R.next().then(function($){return $.done?$.value:R.next()})},L(C),u(C,a,"Generator"),u(C,s,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(I){var U=Object(I),G=[];for(var P in U)G.push(P);return G.reverse(),function v(){for(;G.length;){var R=G.pop();if(R in U)return v.value=R,v.done=!1,v}return v.done=!0,v}},t.values=W,H.prototype={constructor:H,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!U)for(var G in this)G.charAt(0)==="t"&&r.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=void 0)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var G=this;function P(E,w){return $.type="throw",$.arg=U,G.next=E,w&&(G.method="next",G.arg=void 0),!!w}for(var v=this.tryEntries.length-1;v>=0;--v){var R=this.tryEntries[v],$=R.completion;if(R.tryLoc==="root")return P("end");if(R.tryLoc<=this.prev){var J=r.call(R,"catchLoc"),X=r.call(R,"finallyLoc");if(J&&X){if(this.prev<R.catchLoc)return P(R.catchLoc,!0);if(this.prev<R.finallyLoc)return P(R.finallyLoc)}else if(J){if(this.prev<R.catchLoc)return P(R.catchLoc,!0)}else{if(!X)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return P(R.finallyLoc)}}}},abrupt:function(U,G){for(var P=this.tryEntries.length-1;P>=0;--P){var v=this.tryEntries[P];if(v.tryLoc<=this.prev&&r.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var R=v;break}}R&&(U==="break"||U==="continue")&&R.tryLoc<=G&&G<=R.finallyLoc&&(R=null);var $=R?R.completion:{};return $.type=U,$.arg=G,R?(this.method="next",this.next=R.finallyLoc,h):this.complete($)},complete:function(U,G){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&G&&(this.next=G),h},finish:function(U){for(var G=this.tryEntries.length-1;G>=0;--G){var P=this.tryEntries[G];if(P.finallyLoc===U)return this.complete(P.completion,P.afterLoc),A(P),h}},catch:function(U){for(var G=this.tryEntries.length-1;G>=0;--G){var P=this.tryEntries[G];if(P.tryLoc===U){var v=P.completion;if(v.type==="throw"){var R=v.arg;A(P)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(U,G,P){return this.delegate={iterator:W(U),resultName:G,nextLoc:P},this.method==="next"&&(this.arg=void 0),h}},t}er.exports=Nm,er.exports.__esModule=!0,er.exports.default=er.exports});var qm=O((_q,jm)=>{var co=Mm()();jm.exports=co;try{regeneratorRuntime=co}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=co:Function("r","regeneratorRuntime = r")(co)}});var Um=O((qq,xc)=>{"use strict";var Hm=(t,...e)=>new Promise(r=>{r(t(...e))});xc.exports=Hm;xc.exports.default=Hm});var Gm=O((Hq,Cc)=>{"use strict";var RC=Um(),$m=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,i=()=>{r--,e.length>0&&e.shift()()},n=(a,u,...c)=>{r++;let l=RC(a,...c);u(l),l.then(i,i)},s=(a,u,...c)=>{r<t?n(a,u,...c):e.push(n.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};Cc.exports=$m;Cc.exports.default=$m});var Vm=O((Uq,Rc)=>{"use strict";var zm=Gm(),lo=class extends Error{constructor(e){super(),this.value=e}},TC=async(t,e)=>e(await t),kC=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new lo(e[0]);return!1},Wm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let i=zm(r.concurrency),n=[...t].map(o=>[o,i(TC,o,e)]),s=zm(r.preserveOrder?1:1/0);try{await Promise.all(n.map(o=>s(kC,o)))}catch(o){if(o instanceof lo)return o.value;throw o}};Rc.exports=Wm;Rc.exports.default=Wm});var Qm=O(($q,Tc)=>{"use strict";var Ym=require("path"),ho=require("fs"),{promisify:Km}=require("util"),OC=Vm(),FC=Km(ho.stat),PC=Km(ho.lstat),Zm={directory:"isDirectory",file:"isFile"};function Jm({type:t}){if(!(t in Zm))throw new Error(`Invalid type specified: ${t}`)}var Xm=(t,e)=>t===void 0||e[Zm[t]]();Tc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Jm(e);let r=e.allowSymlinks?FC:PC;return OC(t,async i=>{try{let n=await r(Ym.resolve(e.cwd,i));return Xm(e.type,n)}catch{return!1}},e)};Tc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Jm(e);let r=e.allowSymlinks?ho.statSync:ho.lstatSync;for(let i of t)try{let n=r(Ym.resolve(e.cwd,i));if(Xm(e.type,n))return i}catch{}}});var t0=O((Gq,kc)=>{"use strict";var e0=require("fs"),{promisify:LC}=require("util"),BC=LC(e0.access);kc.exports=async t=>{try{return await BC(t),!0}catch{return!1}};kc.exports.sync=t=>{try{return e0.accessSync(t),!0}catch{return!1}}});var i0=O((zq,Oi)=>{"use strict";var Ar=require("path"),fo=Qm(),r0=t0(),Oc=Symbol("findUp.stop");Oi.exports=async(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:i}=Ar.parse(r),n=[].concat(t),s=async o=>{if(typeof t!="function")return fo(n,o);let a=await t(o.cwd);return typeof a=="string"?fo([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Oc)return;if(o)return Ar.resolve(r,o);if(r===i)return;r=Ar.dirname(r)}};Oi.exports.sync=(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:i}=Ar.parse(r),n=[].concat(t),s=o=>{if(typeof t!="function")return fo.sync(n,o);let a=t(o.cwd);return typeof a=="string"?fo.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Oc)return;if(o)return Ar.resolve(r,o);if(r===i)return;r=Ar.dirname(r)}};Oi.exports.exists=r0;Oi.exports.sync.exists=r0.sync;Oi.exports.stop=Oc});var ay=O(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.splitWhen=Ii.flatten=void 0;function uk(t){return t.reduce((e,r)=>[].concat(e,r),[])}Ii.flatten=uk;function ck(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Ii.splitWhen=ck});var uy=O(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.isEnoentCodeError=void 0;function lk(t){return t.code==="ENOENT"}Eo.isEnoentCodeError=lk});var cy=O(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.createDirentFromStats=void 0;var Vc=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 hk(t,e){return new Vc(t,e)}wo.createDirentFromStats=hk});var ly=O(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.removeLeadingDotSegment=Bt.escape=Bt.makeAbsolute=Bt.unixify=void 0;var fk=require("path"),dk=2,pk=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function mk(t){return t.replace(/\\/g,"/")}Bt.unixify=mk;function yk(t,e){return fk.resolve(t,e)}Bt.makeAbsolute=yk;function gk(t){return t.replace(pk,"\\$2")}Bt.escape=gk;function _k(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(dk)}return t}Bt.removeLeadingDotSegment=_k});var fy=O((d6,hy)=>{hy.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 my=O((p6,py)=>{var bk=fy(),dy={"{":"}","(":")","[":"]"},Ek=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=dy[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},wk=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=dy[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};py.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(bk(e))return!0;var i=Ek;return r&&r.strict===!1&&(i=wk),i(e)}});var gy=O((m6,yy)=>{"use strict";var vk=my(),Sk=require("path").posix.dirname,Dk=require("os").platform()==="win32",Yc="/",Ak=/\\/g,xk=/[\{\[].*[\}\]]$/,Ck=/(^|[^\\])([\{\[]|\([^\)]+$)/,Rk=/\\([\!\*\?\|\[\]\(\)\{\}])/g;yy.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&Dk&&e.indexOf(Yc)<0&&(e=e.replace(Ak,Yc)),xk.test(e)&&(e+=Yc),e+="a";do e=Sk(e);while(vk(e)||Ck.test(e));return e.replace(Rk,"$1")}});var vo=O(mt=>{"use strict";mt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;mt.find=(t,e)=>t.nodes.find(r=>r.type===e);mt.exceedsLimit=(t,e,r=1,i)=>i===!1||!mt.isInteger(t)||!mt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;mt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};mt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);mt.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;mt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;mt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);mt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var So=O((g6,by)=>{"use strict";var _y=vo();by.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&_y.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&_y.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var wy=O((_6,Ey)=>{"use strict";Ey.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ky=O((b6,Ty)=>{"use strict";var vy=wy(),oi=(t,e,r)=>{if(vy(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(vy(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(oi.cache.hasOwnProperty(u))return oi.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 i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Ry(t)||Ry(e),f={min:t,max:e,a:c,b:l},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;m=Sy(y,Math.abs(c),f,i),c=f.a=0}return l>=0&&(d=Sy(c,l,f,i)),f.negatives=m,f.positives=d,f.result=Tk(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),oi.cache[u]=f,f.result};function Tk(t,e,r){let i=Kc(t,e,"-",!1,r)||[],n=Kc(e,t,"",!1,r)||[],s=Kc(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function kk(t,e){let r=1,i=1,n=Ay(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Ay(t,r);for(n=xy(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=xy(e+1,i)-1;return s=[...s],s.sort(Pk),s}function Ok(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=Fk(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,c]=i[a];u===c?s+=u:u!=="0"||c!=="9"?s+=Lk(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Sy(t,e,r,i){let n=kk(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let c=n[u],l=Ok(String(o),String(c),i),h="";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+Cy(a.count),o=c+1;continue}r.isPadded&&(h=Bk(c,r,i)),l.string=h+l.pattern+Cy(l.count),s.push(l),o=c+1,a=l}return s}function Kc(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Dy(e,"string",a)&&s.push(r+a),i&&Dy(e,"string",a)&&s.push(r+a)}return s}function Fk(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function Pk(t,e){return t>e?1:e>t?-1:0}function Dy(t,e,r){return t.some(i=>i[e]===r)}function Ay(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function xy(t,e){return t-t%Math.pow(10,e)}function Cy(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Lk(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Ry(t){return/^-?(0+)\d/.test(t)}function Bk(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}oi.cache={};oi.clearCache=()=>oi.cache={};Ty.exports=oi});var Xc=O((E6,My)=>{"use strict";var Ik=require("util"),Py=ky(),Oy=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Nk=t=>e=>t===!0?Number(e):String(e),Zc=t=>typeof t=="number"||typeof t=="string"&&t!=="",os=t=>Number.isInteger(+t),Jc=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Mk=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,jk=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Fy=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},qk=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Ly=(t,e,r,i)=>{if(r)return Py(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},By=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Py(t,e,r)},Iy=(...t)=>new RangeError("Invalid range arguments: "+Ik.inspect(...t)),Ny=(t,e,r)=>{if(r.strictRanges===!0)throw Iy([t,e]);return[]},Hk=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Uk=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Iy([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Jc(a)||Jc(u)||Jc(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&Mk(t,e,i)===!1,d=i.transform||Nk(f);if(i.toRegex&&r===1)return Ly(Fy(t,h),Fy(e,h),!0,i);let m={negatives:[],positives:[]},y=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],_=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):p.push(jk(d(n,_),h,f)),n=o?n-r:n+r,_++;return i.toRegex===!0?r>1?qk(m,i):By(p,null,{wrap:!1,...i}):p},$k=(t,e,r=1,i={})=>{if(!os(t)&&t.length>1||!os(e)&&e.length>1)return Ny(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return Ly(u,c,!1,i);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?By(l,null,{wrap:!1,options:i}):l},Do=(t,e,r,i={})=>{if(e==null&&Zc(t))return[t];if(!Zc(t)||!Zc(e))return Ny(t,e,i);if(typeof r=="function")return Do(t,e,1,{transform:r});if(Oy(r))return Do(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,os(r)?os(t)&&os(e)?Uk(t,e,r,n):$k(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Oy(r)?Hk(r,n):Do(t,e,1,r)};My.exports=Do});var Hy=O((w6,qy)=>{"use strict";var Gk=Xc(),jy=vo(),zk=(t,e={})=>{let r=(i,n={})=>{let s=jy.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=jy.reduce(i.nodes),h=Gk(...l,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};qy.exports=zk});var Gy=O((v6,$y)=>{"use strict";var Wk=Xc(),Uy=So(),Ni=vo(),ai=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Ni.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(ai(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?ai(n,s,r):n+s);return Ni.flatten(i)},Vk=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(ai(a.pop(),Uy(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(ai(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Ni.reduce(n.nodes);if(Ni.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Wk(...h,e);f.length===0&&(f=Uy(n,e)),a.push(ai(a.pop(),f)),n.nodes=[];return}let u=Ni.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(ai(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(ai(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Ni.flatten(i(t))};$y.exports=Vk});var Wy=O((S6,zy)=>{"use strict";zy.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 Jy=O((D6,Zy)=>{"use strict";var Yk=So(),{MAX_LENGTH:Vy,CHAR_BACKSLASH:Qc,CHAR_BACKTICK:Kk,CHAR_COMMA:Zk,CHAR_DOT:Jk,CHAR_LEFT_PARENTHESES:Xk,CHAR_RIGHT_PARENTHESES:Qk,CHAR_LEFT_CURLY_BRACE:eO,CHAR_RIGHT_CURLY_BRACE:tO,CHAR_LEFT_SQUARE_BRACKET:Yy,CHAR_RIGHT_SQUARE_BRACKET:Ky,CHAR_DOUBLE_QUOTE:rO,CHAR_SINGLE_QUOTE:iO,CHAR_NO_BREAK_SPACE:nO,CHAR_ZERO_WIDTH_NOBREAK_SPACE:sO}=Wy(),oO=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Vy,r.maxLength):Vy;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,c=t.length,l=0,h=0,f,d={},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],f=m(),!(f===sO||f===nO)){if(f===Qc){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===Ky){y({type:"text",value:"\\"+f});continue}if(f===Yy){u++;let p=!0,_;for(;l<c&&(_=m());){if(f+=_,_===Yy){u++;continue}if(_===Qc){f+=m();continue}if(_===Ky&&(u--,u===0))break}y({type:"text",value:f});continue}if(f===Xk){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Qk){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===rO||f===iO||f===Kk){let p=f,_;for(e.keepQuotes!==!0&&(f="");l<c&&(_=m());){if(_===Qc){f+=_+m();continue}if(_===p){e.keepQuotes===!0&&(f+=_);break}f+=_}y({type:"text",value:f});continue}if(f===eO){h++;let _={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(_),s.push(o),y({type:"open",value:f});continue}if(f===tO){if(o.type!=="brace"){y({type:"text",value:f});continue}let p="close";o=s.pop(),o.close=!0,y({type:p,value:f}),h--,o=s[s.length-1];continue}if(f===Zk&&h>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:Yk(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Jk&&h>0&&o.commas===0){let p=o.nodes;if(h===0||p.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,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 _=p[p.length-1];_.value+=a.value+f,a=_,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}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],_=p.nodes.indexOf(o);p.nodes.splice(_,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};Zy.exports=oO});var eg=O((A6,Qy)=>{"use strict";var Xy=So(),aO=Hy(),uO=Gy(),cO=Jy(),at=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=at.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(at.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};at.parse=(t,e={})=>cO(t,e);at.stringify=(t,e={})=>Xy(typeof t=="string"?at.parse(t,e):t,e);at.compile=(t,e={})=>(typeof t=="string"&&(t=at.parse(t,e)),aO(t,e));at.expand=(t,e={})=>{typeof t=="string"&&(t=at.parse(t,e));let r=uO(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);Qy.exports=at});var as=O((x6,sg)=>{"use strict";var lO=require("path"),It="\\\\/",tg=`[^${It}]`,ir="\\.",hO="\\+",fO="\\?",Ao="\\/",dO="(?=.)",rg="[^/]",el=`(?:${Ao}|$)`,ig=`(?:^|${Ao})`,tl=`${ir}{1,2}${el}`,pO=`(?!${ir})`,mO=`(?!${ig}${tl})`,yO=`(?!${ir}{0,1}${el})`,gO=`(?!${tl})`,_O=`[^.${Ao}]`,bO=`${rg}*?`,ng={DOT_LITERAL:ir,PLUS_LITERAL:hO,QMARK_LITERAL:fO,SLASH_LITERAL:Ao,ONE_CHAR:dO,QMARK:rg,END_ANCHOR:el,DOTS_SLASH:tl,NO_DOT:pO,NO_DOTS:mO,NO_DOT_SLASH:yO,NO_DOTS_SLASH:gO,QMARK_NO_DOT:_O,STAR:bO,START_ANCHOR:ig},EO={...ng,SLASH_LITERAL:`[${It}]`,QMARK:tg,STAR:`${tg}*?`,DOTS_SLASH:`${ir}{1,2}(?:[${It}]|$)`,NO_DOT:`(?!${ir})`,NO_DOTS:`(?!(?:^|[${It}])${ir}{1,2}(?:[${It}]|$))`,NO_DOT_SLASH:`(?!${ir}{0,1}(?:[${It}]|$))`,NO_DOTS_SLASH:`(?!${ir}{1,2}(?:[${It}]|$))`,QMARK_NO_DOT:`[^.${It}]`,START_ANCHOR:`(?:^|[${It}])`,END_ANCHOR:`(?:[${It}]|$)`},wO={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"};sg.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:wO,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:lO.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?EO:ng}}});var us=O(tt=>{"use strict";var vO=require("path"),SO=process.platform==="win32",{REGEX_BACKSLASH:DO,REGEX_REMOVE_BACKSLASH:AO,REGEX_SPECIAL_CHARS:xO,REGEX_SPECIAL_CHARS_GLOBAL:CO}=as();tt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);tt.hasRegexChars=t=>xO.test(t);tt.isRegexChar=t=>t.length===1&&tt.hasRegexChars(t);tt.escapeRegex=t=>t.replace(CO,"\\$1");tt.toPosixSlashes=t=>t.replace(DO,"/");tt.removeBackslashes=t=>t.replace(AO,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:SO===!0||vO.sep==="\\";tt.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?tt.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};tt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};tt.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var dg=O((R6,fg)=>{"use strict";var og=us(),{CHAR_ASTERISK:rl,CHAR_AT:RO,CHAR_BACKWARD_SLASH:cs,CHAR_COMMA:TO,CHAR_DOT:il,CHAR_EXCLAMATION_MARK:nl,CHAR_FORWARD_SLASH:hg,CHAR_LEFT_CURLY_BRACE:sl,CHAR_LEFT_PARENTHESES:ol,CHAR_LEFT_SQUARE_BRACKET:kO,CHAR_PLUS:OO,CHAR_QUESTION_MARK:ag,CHAR_RIGHT_CURLY_BRACE:FO,CHAR_RIGHT_PARENTHESES:ug,CHAR_RIGHT_SQUARE_BRACKET:PO}=as(),cg=t=>t===hg||t===cs,lg=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},LO=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,m=!1,y=!1,p=!1,_=!1,C=!1,L=!1,B=!1,T=!1,M=0,D,A,H={value:"",depth:0,isGlob:!1},W=()=>c>=i,q=()=>u.charCodeAt(c+1),I=()=>(D=A,u.charCodeAt(++c));for(;c<i;){A=I();let R;if(A===cs){C=H.backslashes=!0,A=I(),A===sl&&(_=!0);continue}if(_===!0||A===sl){for(M++;W()!==!0&&(A=I());){if(A===cs){C=H.backslashes=!0,I();continue}if(A===sl){M++;continue}if(_!==!0&&A===il&&(A=I())===il){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(_!==!0&&A===TO){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(A===FO&&(M--,M===0)){_=!1,f=H.isBrace=!0,T=!0;break}}if(n===!0)continue;break}if(A===hg){if(s.push(c),o.push(H),H={value:"",depth:0,isGlob:!1},T===!0)continue;if(D===il&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(A===OO||A===RO||A===rl||A===ag||A===nl)===!0&&q()===ol){if(m=H.isGlob=!0,y=H.isExtglob=!0,T=!0,A===nl&&c===l&&(B=!0),n===!0){for(;W()!==!0&&(A=I());){if(A===cs){C=H.backslashes=!0,A=I();continue}if(A===ug){m=H.isGlob=!0,T=!0;break}}continue}break}if(A===rl){if(D===rl&&(p=H.isGlobstar=!0),m=H.isGlob=!0,T=!0,n===!0)continue;break}if(A===ag){if(m=H.isGlob=!0,T=!0,n===!0)continue;break}if(A===kO){for(;W()!==!0&&(R=I());){if(R===cs){C=H.backslashes=!0,I();continue}if(R===PO){d=H.isBracket=!0,m=H.isGlob=!0,T=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&A===nl&&c===l){L=H.negated=!0,l++;continue}if(r.noparen!==!0&&A===ol){if(m=H.isGlob=!0,n===!0){for(;W()!==!0&&(A=I());){if(A===ol){C=H.backslashes=!0,A=I();continue}if(A===ug){T=!0;break}}continue}break}if(m===!0){if(T=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let U=u,G="",P="";l>0&&(G=u.slice(0,l),u=u.slice(l),h-=l),U&&m===!0&&h>0?(U=u.slice(0,h),P=u.slice(h)):m===!0?(U="",P=u):U=u,U&&U!==""&&U!=="/"&&U!==u&&cg(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),r.unescape===!0&&(P&&(P=og.removeBackslashes(P)),U&&C===!0&&(U=og.removeBackslashes(U)));let v={prefix:G,input:t,start:l,base:U,glob:P,isBrace:f,isBracket:d,isGlob:m,isExtglob:y,isGlobstar:p,negated:L,negatedExtglob:B};if(r.tokens===!0&&(v.maxDepth=0,cg(A)||o.push(H),v.tokens=o),r.parts===!0||r.tokens===!0){let R;for(let $=0;$<s.length;$++){let J=R?R+1:l,X=s[$],E=t.slice(J,X);r.tokens&&($===0&&l!==0?(o[$].isPrefix=!0,o[$].value=G):o[$].value=E,lg(o[$]),v.maxDepth+=o[$].depth),($!==0||E!=="")&&a.push(E),R=X}if(R&&R+1<t.length){let $=t.slice(R+1);a.push($),r.tokens&&(o[o.length-1].value=$,lg(o[o.length-1]),v.maxDepth+=o[o.length-1].depth)}v.slashes=s,v.parts=a}return v};fg.exports=LO});var yg=O((T6,mg)=>{"use strict";var xo=as(),ut=us(),{MAX_LENGTH:Co,POSIX_REGEX_SOURCE:BO,REGEX_NON_SPECIAL_CHARS:IO,REGEX_SPECIAL_CHARS_BACKREF:NO,REPLACEMENTS:pg}=xo,MO=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>ut.escapeRegex(n)).join("..")}return r},Mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,al=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=pg[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Co,r.maxLength):Co,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ut.isWindows(e),c=xo.globChars(u),l=xo.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:_,NO_DOTS_SLASH:C,QMARK:L,QMARK_NO_DOT:B,STAR:T,START_ANCHOR:M}=c,D=Z=>`(${a}(?:(?!${M}${Z.dot?y:h}).)*?)`,A=r.dot?"":p,H=r.dot?L:B,W=r.bash===!0?D(r):T;r.capture&&(W=`(${W})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let q={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,q),n=t.length;let I=[],U=[],G=[],P=s,v,R=()=>q.index===n-1,$=q.peek=(Z=1)=>t[q.index+Z],J=q.advance=()=>t[++q.index]||"",X=()=>t.slice(q.index+1),E=(Z="",ue=0)=>{q.consumed+=Z,q.index+=ue},w=Z=>{q.output+=Z.output!=null?Z.output:Z.value,E(Z.value)},S=()=>{let Z=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)J(),q.start++,Z++;return Z%2===0?!1:(q.negated=!0,q.start++,!0)},j=Z=>{q[Z]++,G.push(Z)},F=Z=>{q[Z]--,G.pop()},Y=Z=>{if(P.type==="globstar"){let ue=q.braces>0&&(Z.type==="comma"||Z.type==="brace"),Q=Z.extglob===!0||I.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!ue&&!Q&&(q.output=q.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=W,q.output+=P.output)}if(I.length&&Z.type!=="paren"&&(I[I.length-1].inner+=Z.value),(Z.value||Z.output)&&w(Z),P&&P.type==="text"&&Z.type==="text"){P.value+=Z.value,P.output=(P.output||"")+Z.value;return}Z.prev=P,o.push(Z),P=Z},z=(Z,ue)=>{let Q={...l[ue],conditions:1,inner:""};Q.prev=P,Q.parens=q.parens,Q.output=q.output;let b=(r.capture?"(":"")+Q.open;j("parens"),Y({type:Z,value:ue,output:q.output?"":m}),Y({type:"paren",extglob:!0,value:J(),output:b}),I.push(Q)},ne=Z=>{let ue=Z.close+(r.capture?")":""),Q;if(Z.type==="negate"){let b=W;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(b=D(r)),(b!==W||R()||/^\)+$/.test(X()))&&(ue=Z.close=`)$))${b}`),Z.inner.includes("*")&&(Q=X())&&/^\.[^\\/.]+$/.test(Q)){let N=al(Q,{...e,fastpaths:!1}).output;ue=Z.close=`)${N})${b})`}Z.prev.type==="bos"&&(q.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:v,output:ue}),F("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let Z=!1,ue=t.replace(NO,(Q,b,N,x,ee,g)=>x==="\\"?(Z=!0,Q):x==="?"?b?b+x+(ee?L.repeat(ee.length):""):g===0?H+(ee?L.repeat(ee.length):""):L.repeat(N.length):x==="."?h.repeat(N.length):x==="*"?b?b+x+(ee?W:""):W:b?Q:`\\${Q}`);return Z===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),ue===t&&r.contains===!0?(q.output=t,q):(q.output=ut.wrapOutput(ue,q,e),q)}for(;!R();){if(v=J(),v==="\0")continue;if(v==="\\"){let Q=$();if(Q==="/"&&r.bash!==!0||Q==="."||Q===";")continue;if(!Q){v+="\\",Y({type:"text",value:v});continue}let b=/^\\+/.exec(X()),N=0;if(b&&b[0].length>2&&(N=b[0].length,q.index+=N,N%2!==0&&(v+="\\")),r.unescape===!0?v=J():v+=J(),q.brackets===0){Y({type:"text",value:v});continue}}if(q.brackets>0&&(v!=="]"||P.value==="["||P.value==="[^")){if(r.posix!==!1&&v===":"){let Q=P.value.slice(1);if(Q.includes("[")&&(P.posix=!0,Q.includes(":"))){let b=P.value.lastIndexOf("["),N=P.value.slice(0,b),x=P.value.slice(b+2),ee=BO[x];if(ee){P.value=N+ee,q.backtrack=!0,J(),!s.output&&o.indexOf(P)===1&&(s.output=m);continue}}}(v==="["&&$()!==":"||v==="-"&&$()==="]")&&(v=`\\${v}`),v==="]"&&(P.value==="["||P.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&P.value==="["&&(v="^"),P.value+=v,w({value:v});continue}if(q.quotes===1&&v!=='"'){v=ut.escapeRegex(v),P.value+=v,w({value:v});continue}if(v==='"'){q.quotes=q.quotes===1?0:1,r.keepQuotes===!0&&Y({type:"text",value:v});continue}if(v==="("){j("parens"),Y({type:"paren",value:v});continue}if(v===")"){if(q.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Mi("opening","("));let Q=I[I.length-1];if(Q&&q.parens===Q.parens+1){ne(I.pop());continue}Y({type:"paren",value:v,output:q.parens?")":"\\)"}),F("parens");continue}if(v==="["){if(r.nobracket===!0||!X().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Mi("closing","]"));v=`\\${v}`}else j("brackets");Y({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){Y({type:"text",value:v,output:`\\${v}`});continue}if(q.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Mi("opening","["));Y({type:"text",value:v,output:`\\${v}`});continue}F("brackets");let Q=P.value.slice(1);if(P.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(v=`/${v}`),P.value+=v,w({value:v}),r.literalBrackets===!1||ut.hasRegexChars(Q))continue;let b=ut.escapeRegex(P.value);if(q.output=q.output.slice(0,-P.value.length),r.literalBrackets===!0){q.output+=b,P.value=b;continue}P.value=`(${a}${b}|${P.value})`,q.output+=P.value;continue}if(v==="{"&&r.nobrace!==!0){j("braces");let Q={type:"brace",value:v,output:"(",outputIndex:q.output.length,tokensIndex:q.tokens.length};U.push(Q),Y(Q);continue}if(v==="}"){let Q=U[U.length-1];if(r.nobrace===!0||!Q){Y({type:"text",value:v,output:v});continue}let b=")";if(Q.dots===!0){let N=o.slice(),x=[];for(let ee=N.length-1;ee>=0&&(o.pop(),N[ee].type!=="brace");ee--)N[ee].type!=="dots"&&x.unshift(N[ee].value);b=MO(x,r),q.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){let N=q.output.slice(0,Q.outputIndex),x=q.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",v=b="\\}",q.output=N;for(let ee of x)q.output+=ee.output||ee.value}Y({type:"brace",value:v,output:b}),F("braces"),U.pop();continue}if(v==="|"){I.length>0&&I[I.length-1].conditions++,Y({type:"text",value:v});continue}if(v===","){let Q=v,b=U[U.length-1];b&&G[G.length-1]==="braces"&&(b.comma=!0,Q="|"),Y({type:"comma",value:v,output:Q});continue}if(v==="/"){if(P.type==="dot"&&q.index===q.start+1){q.start=q.index+1,q.consumed="",q.output="",o.pop(),P=s;continue}Y({type:"slash",value:v,output:d});continue}if(v==="."){if(q.braces>0&&P.type==="dot"){P.value==="."&&(P.output=h);let Q=U[U.length-1];P.type="dots",P.output+=v,P.value+=v,Q.dots=!0;continue}if(q.braces+q.parens===0&&P.type!=="bos"&&P.type!=="slash"){Y({type:"text",value:v,output:h});continue}Y({type:"dot",value:v,output:h});continue}if(v==="?"){if(!(P&&P.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){z("qmark",v);continue}if(P&&P.type==="paren"){let b=$(),N=v;if(b==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(b)||b==="<"&&!/<([!=]|\w+>)/.test(X()))&&(N=`\\${v}`),Y({type:"text",value:v,output:N});continue}if(r.dot!==!0&&(P.type==="slash"||P.type==="bos")){Y({type:"qmark",value:v,output:B});continue}Y({type:"qmark",value:v,output:L});continue}if(v==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){z("negate",v);continue}if(r.nonegate!==!0&&q.index===0){S();continue}}if(v==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){z("plus",v);continue}if(P&&P.value==="("||r.regex===!1){Y({type:"plus",value:v,output:f});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||q.parens>0){Y({type:"plus",value:v});continue}Y({type:"plus",value:f});continue}if(v==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Y({type:"at",extglob:!0,value:v,output:""});continue}Y({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let Q=IO.exec(X());Q&&(v+=Q[0],q.index+=Q[0].length),Y({type:"text",value:v});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=v,P.output=W,q.backtrack=!0,q.globstar=!0,E(v);continue}let Z=X();if(r.noextglob!==!0&&/^\([^?]/.test(Z)){z("star",v);continue}if(P.type==="star"){if(r.noglobstar===!0){E(v);continue}let Q=P.prev,b=Q.prev,N=Q.type==="slash"||Q.type==="bos",x=b&&(b.type==="star"||b.type==="globstar");if(r.bash===!0&&(!N||Z[0]&&Z[0]!=="/")){Y({type:"star",value:v,output:""});continue}let ee=q.braces>0&&(Q.type==="comma"||Q.type==="brace"),g=I.length&&(Q.type==="pipe"||Q.type==="paren");if(!N&&Q.type!=="paren"&&!ee&&!g){Y({type:"star",value:v,output:""});continue}for(;Z.slice(0,3)==="/**";){let V=t[q.index+4];if(V&&V!=="/")break;Z=Z.slice(3),E("/**",3)}if(Q.type==="bos"&&R()){P.type="globstar",P.value+=v,P.output=D(r),q.output=P.output,q.globstar=!0,E(v);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!x&&R()){q.output=q.output.slice(0,-(Q.output+P.output).length),Q.output=`(?:${Q.output}`,P.type="globstar",P.output=D(r)+(r.strictSlashes?")":"|$)"),P.value+=v,q.globstar=!0,q.output+=Q.output+P.output,E(v);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&Z[0]==="/"){let V=Z[1]!==void 0?"|$":"";q.output=q.output.slice(0,-(Q.output+P.output).length),Q.output=`(?:${Q.output}`,P.type="globstar",P.output=`${D(r)}${d}|${d}${V})`,P.value+=v,q.output+=Q.output+P.output,q.globstar=!0,E(v+J()),Y({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&Z[0]==="/"){P.type="globstar",P.value+=v,P.output=`(?:^|${d}|${D(r)}${d})`,q.output=P.output,q.globstar=!0,E(v+J()),Y({type:"slash",value:"/",output:""});continue}q.output=q.output.slice(0,-P.output.length),P.type="globstar",P.output=D(r),P.value+=v,q.output+=P.output,q.globstar=!0,E(v);continue}let ue={type:"star",value:v,output:W};if(r.bash===!0){ue.output=".*?",(P.type==="bos"||P.type==="slash")&&(ue.output=A+ue.output),Y(ue);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&r.regex===!0){ue.output=v,Y(ue);continue}(q.index===q.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(q.output+=_,P.output+=_):r.dot===!0?(q.output+=C,P.output+=C):(q.output+=A,P.output+=A),$()!=="*"&&(q.output+=m,P.output+=m)),Y(ue)}for(;q.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mi("closing","]"));q.output=ut.escapeLast(q.output,"["),F("brackets")}for(;q.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mi("closing",")"));q.output=ut.escapeLast(q.output,"("),F("parens")}for(;q.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mi("closing","}"));q.output=ut.escapeLast(q.output,"{"),F("braces")}if(r.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&Y({type:"maybe_slash",value:"",output:`${d}?`}),q.backtrack===!0){q.output="";for(let Z of q.tokens)q.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&(q.output+=Z.suffix)}return q};al.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Co,r.maxLength):Co,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=pg[t]||t;let s=ut.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=xo.globChars(s),y=r.dot?h:l,p=r.dot?f:l,_=r.capture?"":"?:",C={negated:!1,prefix:""},L=r.bash===!0?".*?":d;r.capture&&(L=`(${L})`);let B=A=>A.noglobstar===!0?L:`(${_}(?:(?!${m}${A.dot?c:o}).)*?)`,T=A=>{switch(A){case"*":return`${y}${u}${L}`;case".*":return`${o}${u}${L}`;case"*.*":return`${y}${L}${o}${u}${L}`;case"*/*":return`${y}${L}${a}${u}${p}${L}`;case"**":return y+B(r);case"**/*":return`(?:${y}${B(r)}${a})?${p}${u}${L}`;case"**/*.*":return`(?:${y}${B(r)}${a})?${p}${L}${o}${u}${L}`;case"**/.*":return`(?:${y}${B(r)}${a})?${o}${u}${L}`;default:{let H=/^(.*?)\.(\w+)$/.exec(A);if(!H)return;let W=T(H[1]);return W?W+o+H[2]:void 0}}},M=ut.removePrefix(t,C),D=T(M);return D&&r.strictSlashes!==!0&&(D+=`${a}?`),D};mg.exports=al});var _g=O((k6,gg)=>{"use strict";var jO=require("path"),qO=dg(),ul=yg(),cl=us(),HO=as(),UO=t=>t&&typeof t=="object"&&!Array.isArray(t),Ce=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>Ce(f,e,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let i=UO(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=cl.isWindows(e),o=i?Ce.compileRe(t,e):Ce.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=Ce(n.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:m}=Ce.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};Ce.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?cl.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(t,e,r,i=cl.isWindows(r))=>(e instanceof RegExp?e:Ce.makeRe(e,r)).test(jO.basename(t));Ce.isMatch=(t,e,r)=>Ce(e,r)(t);Ce.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ce.parse(r,e)):ul(t,{...e,fastpaths:!1});Ce.scan=(t,e)=>qO(t,e);Ce.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,e);return i===!0&&(u.state=t),u};Ce.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ul.fastpaths(t,e)),n.output||(n=ul(t,e)),Ce.compileRe(n,e,r,i)};Ce.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/$^/}};Ce.constants=HO;gg.exports=Ce});var Eg=O((O6,bg)=>{"use strict";bg.exports=_g()});var Ag=O((F6,Dg)=>{"use strict";var vg=require("util"),Sg=eg(),Nt=Eg(),ll=us(),wg=t=>t===""||t==="./",Ae=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=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 h=Nt(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};Ae.match=Ae;Ae.matcher=(t,e)=>Nt(t,e);Ae.isMatch=(t,e,r)=>Nt(e,r)(t);Ae.any=Ae.isMatch;Ae.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(Ae(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};Ae.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${vg.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>Ae.contains(t,i,r));if(typeof e=="string"){if(wg(t)||wg(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Ae.isMatch(t,e,{...r,contains:!0})};Ae.matchKeys=(t,e,r)=>{if(!ll.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=Ae(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};Ae.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Nt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};Ae.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Nt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};Ae.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${vg.inspect(t)}"`);return[].concat(e).every(i=>Nt(i,r)(t))};Ae.capture=(t,e,r)=>{let i=ll.isWindows(r),s=Nt.makeRe(String(t),{...r,capture:!0}).exec(i?ll.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ae.makeRe=(...t)=>Nt.makeRe(...t);Ae.scan=(...t)=>Nt.scan(...t);Ae.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Sg(String(i),e))r.push(Nt.parse(n,e));return r};Ae.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Sg(t,e)};Ae.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ae.braces(t,{...e,expand:!0})};Dg.exports=Ae});var Pg=O(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.matchAny=de.convertPatternsToRe=de.makeRe=de.getPatternParts=de.expandBraceExpansion=de.expandPatternsWithBraceExpansion=de.isAffectDepthOfReadingPattern=de.endsWithSlashGlobStar=de.hasGlobStar=de.getBaseDirectory=de.isPatternRelatedToParentDirectory=de.getPatternsOutsideCurrentDirectory=de.getPatternsInsideCurrentDirectory=de.getPositivePatterns=de.getNegativePatterns=de.isPositivePattern=de.isNegativePattern=de.convertToNegativePattern=de.convertToPositivePattern=de.isDynamicPattern=de.isStaticPattern=void 0;var $O=require("path"),GO=gy(),hl=Ag(),xg="**",zO="\\",WO=/[*?]|^!/,VO=/\[[^[]*]/,YO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,KO=/[!*+?@]\([^(]*\)/,ZO=/,|\.\./;function Cg(t,e={}){return!Rg(t,e)}de.isStaticPattern=Cg;function Rg(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(zO)||WO.test(t)||VO.test(t)||YO.test(t)||e.extglob!==!1&&KO.test(t)||e.braceExpansion!==!1&&JO(t))}de.isDynamicPattern=Rg;function JO(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return ZO.test(i)}function XO(t){return Ro(t)?t.slice(1):t}de.convertToPositivePattern=XO;function QO(t){return"!"+t}de.convertToNegativePattern=QO;function Ro(t){return t.startsWith("!")&&t[1]!=="("}de.isNegativePattern=Ro;function Tg(t){return!Ro(t)}de.isPositivePattern=Tg;function eF(t){return t.filter(Ro)}de.getNegativePatterns=eF;function tF(t){return t.filter(Tg)}de.getPositivePatterns=tF;function rF(t){return t.filter(e=>!fl(e))}de.getPatternsInsideCurrentDirectory=rF;function iF(t){return t.filter(fl)}de.getPatternsOutsideCurrentDirectory=iF;function fl(t){return t.startsWith("..")||t.startsWith("./..")}de.isPatternRelatedToParentDirectory=fl;function nF(t){return GO(t,{flipBackslashes:!1})}de.getBaseDirectory=nF;function sF(t){return t.includes(xg)}de.hasGlobStar=sF;function kg(t){return t.endsWith("/"+xg)}de.endsWithSlashGlobStar=kg;function oF(t){let e=$O.basename(t);return kg(t)||Cg(e)}de.isAffectDepthOfReadingPattern=oF;function aF(t){return t.reduce((e,r)=>e.concat(Og(r)),[])}de.expandPatternsWithBraceExpansion=aF;function Og(t){return hl.braces(t,{expand:!0,nodupes:!0})}de.expandBraceExpansion=Og;function uF(t,e){let{parts:r}=hl.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}de.getPatternParts=uF;function Fg(t,e){return hl.makeRe(t,e)}de.makeRe=Fg;function cF(t,e){return t.map(r=>Fg(r,e))}de.convertPatternsToRe=cF;function lF(t,e){return e.some(r=>r.test(t))}de.matchAny=lF});var Ng=O((L6,Ig)=>{"use strict";var hF=require("stream"),Lg=hF.PassThrough,fF=Array.prototype.slice;Ig.exports=dF;function dF(){let t=[],e=fF.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=Lg(i);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(Bg(arguments[l],i));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 h=l.length+1;function f(){--h>0||(r=!1,u())}function d(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",p),f()}function p(_){o.emit("error",_)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",p),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)d(l[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&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 Bg(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Bg(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Lg(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var jg=O(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.merge=void 0;var pF=Ng();function mF(t){let e=pF(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Mg(t)),e.once("end",()=>Mg(t)),e}To.merge=mF;function Mg(t){t.forEach(e=>e.emit("close"))}});var qg=O(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.isEmpty=ji.isString=void 0;function yF(t){return typeof t=="string"}ji.isString=yF;function gF(t){return t===""}ji.isEmpty=gF});var nr=O($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.string=$e.stream=$e.pattern=$e.path=$e.fs=$e.errno=$e.array=void 0;var _F=ay();$e.array=_F;var bF=uy();$e.errno=bF;var EF=cy();$e.fs=EF;var wF=ly();$e.path=wF;var vF=Pg();$e.pattern=vF;var SF=jg();$e.stream=SF;var DF=qg();$e.string=DF});var $g=O(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.convertPatternGroupToTask=Ge.convertPatternGroupsToTasks=Ge.groupPatternsByBaseDirectory=Ge.getNegativePatternsAsPositive=Ge.getPositivePatterns=Ge.convertPatternsToTasks=Ge.generate=void 0;var sr=nr();function AF(t,e){let r=Hg(t),i=Ug(t,e.ignore),n=r.filter(u=>sr.pattern.isStaticPattern(u,e)),s=r.filter(u=>sr.pattern.isDynamicPattern(u,e)),o=dl(n,i,!1),a=dl(s,i,!0);return o.concat(a)}Ge.generate=AF;function dl(t,e,r){let i=[],n=sr.pattern.getPatternsOutsideCurrentDirectory(t),s=sr.pattern.getPatternsInsideCurrentDirectory(t),o=pl(n),a=pl(s);return i.push(...ml(o,e,r)),"."in a?i.push(yl(".",s,e,r)):i.push(...ml(a,e,r)),i}Ge.convertPatternsToTasks=dl;function Hg(t){return sr.pattern.getPositivePatterns(t)}Ge.getPositivePatterns=Hg;function Ug(t,e){return sr.pattern.getNegativePatterns(t).concat(e).map(sr.pattern.convertToPositivePattern)}Ge.getNegativePatternsAsPositive=Ug;function pl(t){let e={};return t.reduce((r,i)=>{let n=sr.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Ge.groupPatternsByBaseDirectory=pl;function ml(t,e,r){return Object.keys(t).map(i=>yl(i,t[i],e,r))}Ge.convertPatternGroupsToTasks=ml;function yl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(sr.pattern.convertToNegativePattern))}}Ge.convertPatternGroupToTask=yl});var zg=O(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.removeDuplicateSlashes=qi.transform=void 0;var xF=/(?!^)\/{2,}/g;function CF(t){return t.map(e=>Gg(e))}qi.transform=CF;function Gg(t){return t.replace(xF,"/")}qi.removeDuplicateSlashes=Gg});var Vg=O(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.read=void 0;function RF(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Wg(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){gl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Wg(r,s);return}gl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),gl(r,o)})})}ko.read=RF;function Wg(t,e){t(e)}function gl(t,e){t(null,e)}});var Yg=O(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.read=void 0;function TF(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Oo.read=TF});var Kg=O(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.createFileSystemAdapter=Rr.FILE_SYSTEM_ADAPTER=void 0;var Fo=require("fs");Rr.FILE_SYSTEM_ADAPTER={lstat:Fo.lstat,stat:Fo.stat,lstatSync:Fo.lstatSync,statSync:Fo.statSync};function kF(t){return t===void 0?Rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Rr.FILE_SYSTEM_ADAPTER),t)}Rr.createFileSystemAdapter=kF});var Zg=O(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var OF=Kg(),_l=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=OF.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}};bl.default=_l});var ui=O(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.statSync=Tr.stat=Tr.Settings=void 0;var Jg=Vg(),FF=Yg(),El=Zg();Tr.Settings=El.default;function PF(t,e,r){if(typeof e=="function"){Jg.read(t,wl(),e);return}Jg.read(t,wl(e),r)}Tr.stat=PF;function LF(t,e){let r=wl(e);return FF.read(t,r)}Tr.statSync=LF;function wl(t={}){return t instanceof El.default?t:new El.default(t)}});var e_=O((z6,Qg)=>{var Xg;Qg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Xg||(Xg=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var r_=O((W6,t_)=>{t_.exports=IF;var BF=e_();function IF(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(u){function c(){e&&e(u,r),e=null}s?BF(c):c()}function a(u,c,l){r[u]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,h){a(c,l,h)})}):o(null),s=!1}});var vl=O(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Po=process.versions.node.split(".");if(Po[0]===void 0||Po[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var i_=Number.parseInt(Po[0],10),NF=Number.parseInt(Po[1],10),n_=10,MF=10,jF=i_>n_,qF=i_===n_&&NF>=MF;Lo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=jF||qF});var s_=O(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.createDirentFromStats=void 0;var Sl=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 HF(t,e){return new Sl(t,e)}Bo.createDirentFromStats=HF});var Dl=O(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.fs=void 0;var UF=s_();Io.fs=UF});var Al=O(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.joinPathSegments=void 0;function $F(t,e,r){return t.endsWith(r)?t+e:t+r+e}No.joinPathSegments=$F});var h_=O(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.readdir=kr.readdirWithFileTypes=kr.read=void 0;var GF=ui(),o_=r_(),zF=vl(),a_=Dl(),u_=Al();function WF(t,e,r){if(!e.stats&&zF.IS_SUPPORT_READDIR_WITH_FILE_TYPES){c_(t,e,r);return}l_(t,e,r)}kr.read=WF;function c_(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Mo(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:u_.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){xl(r,s);return}let o=s.map(a=>VF(a,e));o_(o,(a,u)=>{if(a!==null){Mo(r,a);return}xl(r,u)})})}kr.readdirWithFileTypes=c_;function VF(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=a_.fs.createDirentFromStats(t.name,n),r(null,t)})}}function l_(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Mo(r,i);return}let s=n.map(o=>{let a=u_.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{GF.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:a_.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});o_(s,(o,a)=>{if(o!==null){Mo(r,o);return}xl(r,a)})})}kr.readdir=l_;function Mo(t,e){t(e)}function xl(t,e){t(null,e)}});var y_=O(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.readdir=Or.readdirWithFileTypes=Or.read=void 0;var YF=ui(),KF=vl(),f_=Dl(),d_=Al();function ZF(t,e){return!e.stats&&KF.IS_SUPPORT_READDIR_WITH_FILE_TYPES?p_(t,e):m_(t,e)}Or.read=ZF;function p_(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:d_.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=f_.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Or.readdirWithFileTypes=p_;function m_(t,e){return e.fs.readdirSync(t).map(i=>{let n=d_.joinPathSegments(t,i,e.pathSegmentSeparator),s=YF.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:f_.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Or.readdir=m_});var g_=O(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.createFileSystemAdapter=Fr.FILE_SYSTEM_ADAPTER=void 0;var Hi=require("fs");Fr.FILE_SYSTEM_ADAPTER={lstat:Hi.lstat,stat:Hi.stat,lstatSync:Hi.lstatSync,statSync:Hi.statSync,readdir:Hi.readdir,readdirSync:Hi.readdirSync};function JF(t){return t===void 0?Fr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Fr.FILE_SYSTEM_ADAPTER),t)}Fr.createFileSystemAdapter=JF});var __=O(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var XF=require("path"),QF=ui(),eP=g_(),Cl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=eP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,XF.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new QF.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Rl.default=Cl});var jo=O(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Settings=Pr.scandirSync=Pr.scandir=void 0;var b_=h_(),tP=y_(),Tl=__();Pr.Settings=Tl.default;function rP(t,e,r){if(typeof e=="function"){b_.read(t,kl(),e);return}b_.read(t,kl(e),r)}Pr.scandir=rP;function iP(t,e){let r=kl(e);return tP.read(t,r)}Pr.scandirSync=iP;function kl(t={}){return t instanceof Tl.default?t:new Tl.default(t)}});var w_=O((rH,E_)=>{"use strict";function nP(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}E_.exports=nP});var S_=O((iH,Ol)=>{"use strict";var sP=w_();function v_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=sP(oP),n=null,s=null,o=0,a=null,u={push:y,drain:yt,saturated:yt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:h,getQueue:f,unshift:p,empty:yt,kill:C,killAndDrain:L,error:B};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var T=n,M=0;T;)T=T.next,M++;return M}function f(){for(var T=n,M=[];T;)M.push(T.value),T=T.next;return M}function d(){if(u.paused){u.paused=!1;for(var T=0;T<u.concurrency;T++)o++,_()}}function m(){return o===0&&u.length()===0}function y(T,M){var D=i.get();D.context=t,D.release=_,D.value=T,D.callback=M||yt,D.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=D,s=D):(n=D,s=D,u.saturated()):(o++,e.call(t,D.value,D.worked))}function p(T,M){var D=i.get();D.context=t,D.release=_,D.value=T,D.callback=M||yt,o===u.concurrency||u.paused?n?(D.next=n,n=D):(n=D,s=D,u.saturated()):(o++,e.call(t,D.value,D.worked))}function _(T){T&&i.release(T);var M=n;M?u.paused?o--:(s===n&&(s=null),n=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){n=null,s=null,u.drain=yt}function L(){n=null,s=null,u.drain(),u.drain=yt}function B(T){a=T}}function yt(){}function oP(){this.value=null,this.callback=yt,this.next=null,this.release=yt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=yt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function aP(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var n=v_(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=c,n;function a(l){var h=new Promise(function(f,d){s(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(yt),h}function u(l){var h=new Promise(function(f,d){o(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(yt),h}function c(){var l=n.drain,h=new Promise(function(f){n.drain=function(){l(),f()}});return h}}Ol.exports=v_;Ol.exports.promise=aP});var qo=O(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.joinPathSegments=Mt.replacePathSegmentSeparator=Mt.isAppliedFilter=Mt.isFatalError=void 0;function uP(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Mt.isFatalError=uP;function cP(t,e){return t===null||t(e)}Mt.isAppliedFilter=cP;function lP(t,e){return t.split(/[/\\]/).join(e)}Mt.replacePathSegmentSeparator=lP;function hP(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Mt.joinPathSegments=hP});var Ll=O(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var fP=qo(),Fl=class{constructor(e,r){this._root=e,this._settings=r,this._root=fP.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Pl.default=Fl});var Nl=O(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var dP=require("events"),pP=jo(),mP=S_(),Ho=qo(),yP=Ll(),Bl=class extends yP.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=pP.scandir,this._emitter=new dP.EventEmitter,this._queue=mP(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Ho.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Ho.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ho.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ho.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Il.default=Bl});var D_=O(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var gP=Nl(),Ml=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new gP.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{_P(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{bP(e,this._storage)}),this._reader.read()}};jl.default=Ml;function _P(t,e){t(e)}function bP(t,e){t(null,e)}});var A_=O(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var EP=require("stream"),wP=Nl(),ql=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wP.default(this._root,this._settings),this._stream=new EP.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}};Hl.default=ql});var x_=O($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var vP=jo(),Uo=qo(),SP=Ll(),Ul=class extends SP.default{constructor(){super(...arguments),this._scandir=vP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Uo.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Uo.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Uo.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Uo.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};$l.default=Ul});var C_=O(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var DP=x_(),Gl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new DP.default(this._root,this._settings)}read(){return this._reader.read()}};zl.default=Gl});var R_=O(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var AP=require("path"),xP=jo(),Wl=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,AP.sep),this.fsScandirSettings=new xP.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}};Vl.default=Wl});var Go=O(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Settings=jt.walkStream=jt.walkSync=jt.walk=void 0;var T_=D_(),CP=A_(),RP=C_(),Yl=R_();jt.Settings=Yl.default;function TP(t,e,r){if(typeof e=="function"){new T_.default(t,$o()).read(e);return}new T_.default(t,$o(e)).read(r)}jt.walk=TP;function kP(t,e){let r=$o(e);return new RP.default(t,r).read()}jt.walkSync=kP;function OP(t,e){let r=$o(e);return new CP.default(t,r).read()}jt.walkStream=OP;function $o(t={}){return t instanceof Yl.default?t:new Yl.default(t)}});var zo=O(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var FP=require("path"),PP=ui(),k_=nr(),Kl=class{constructor(e){this._settings=e,this._fsStatSettings=new PP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return FP.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:k_.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!k_.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Zl.default=Kl});var Ql=O(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var LP=require("stream"),BP=ui(),IP=Go(),NP=zo(),Jl=class extends NP.default{constructor(){super(...arguments),this._walkStream=IP.walkStream,this._stat=BP.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new LP.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Xl.default=Jl});var O_=O(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var MP=Go(),jP=zo(),qP=Ql(),eh=class extends jP.default{constructor(){super(...arguments),this._walkAsync=MP.walk,this._readerStream=new qP.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};th.default=eh});var F_=O(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var Ui=nr(),rh=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Ui.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Ui.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Ui.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Ui.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Ui.array.splitWhen(e,r=>r.dynamic&&Ui.pattern.hasGlobStar(r.pattern))}};ih.default=rh});var P_=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var HP=F_(),nh=class extends HP.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};sh.default=nh});var L_=O(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var Wo=nr(),UP=P_(),oh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new UP.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Wo.pattern.isAffectDepthOfReadingPattern);return Wo.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Wo.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Wo.pattern.matchAny(e,r)}};ah.default=oh});var B_=O(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var ci=nr(),uh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=ci.pattern.convertPatternsToRe(e,this._micromatchOptions),n=ci.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=ci.path.makeAbsolute(this._settings.cwd,e);return ci.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=ci.path.removeLeadingDotSegment(e),s=ci.pattern.matchAny(n,r);return!s&&i?ci.pattern.matchAny(n+"/",r):s}};ch.default=uh});var I_=O(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var $P=nr(),lh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return $P.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};hh.default=lh});var M_=O(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var N_=nr(),fh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=N_.path.makeAbsolute(this._settings.cwd,r),r=N_.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};dh.default=fh});var Vo=O(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var GP=require("path"),zP=L_(),WP=B_(),VP=I_(),YP=M_(),ph=class{constructor(e){this._settings=e,this.errorFilter=new VP.default(this._settings),this.entryFilter=new WP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new zP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new YP.default(this._settings)}_getRootDirectory(e){return GP.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}}};mh.default=ph});var j_=O(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var KP=O_(),ZP=Vo(),yh=class extends ZP.default{constructor(){super(...arguments),this._reader=new KP.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};gh.default=yh});var q_=O(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var JP=require("stream"),XP=Ql(),QP=Vo(),_h=class extends QP.default{constructor(){super(...arguments),this._reader=new XP.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new JP.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};bh.default=_h});var H_=O(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var e2=ui(),t2=Go(),r2=zo(),Eh=class extends r2.default{constructor(){super(...arguments),this._walkSync=t2.walkSync,this._statSync=e2.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};wh.default=Eh});var U_=O(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var i2=H_(),n2=Vo(),vh=class extends n2.default{constructor(){super(...arguments),this._reader=new i2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Sh.default=vh});var $_=O(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var $i=require("fs"),s2=require("os"),o2=Math.max(s2.cpus().length,1);Gi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:$i.lstat,lstatSync:$i.lstatSync,stat:$i.stat,statSync:$i.statSync,readdir:$i.readdir,readdirSync:$i.readdirSync};var Dh=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,o2),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Gi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Gi.default=Dh});var Yo=O((RH,W_)=>{"use strict";var G_=$g(),z_=zg(),a2=j_(),u2=q_(),c2=U_(),Ah=$_(),li=nr();async function xh(t,e){zi(t);let r=Ch(t,a2.default,e),i=await Promise.all(r);return li.array.flatten(i)}(function(t){function e(o,a){zi(o);let u=Ch(o,c2.default,a);return li.array.flatten(u)}t.sync=e;function r(o,a){zi(o);let u=Ch(o,u2.default,a);return li.stream.merge(u)}t.stream=r;function i(o,a){zi(o);let u=z_.transform([].concat(o)),c=new Ah.default(a);return G_.generate(u,c)}t.generateTasks=i;function n(o,a){zi(o);let u=new Ah.default(a);return li.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return zi(o),li.path.escape(o)}t.escapePath=s})(xh||(xh={}));function Ch(t,e,r){let i=z_.transform([].concat(t)),n=new Ah.default(r),s=G_.generate(i,n),o=new e(n);return s.map(o.read,o)}function zi(t){if(![].concat(t).every(i=>li.string.isString(i)&&!li.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}W_.exports=xh});var Y_=O((TH,Rh)=>{"use strict";var V_=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Rh.exports=V_;Rh.exports.default=V_});var Th=O((kH,Zo)=>{"use strict";var l2=Y_(),Ko=new WeakMap,K_=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ko.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return l2(s,t),Ko.set(s,i),s};Zo.exports=K_;Zo.exports.default=K_;Zo.exports.callCount=t=>{if(!Ko.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ko.get(t)}});var Z_=O((OH,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 Fh=O((FH,Yi)=>{var xe=global.process,hi=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"};hi(xe)?(J_=require("assert"),Wi=Z_(),X_=/^win/i.test(xe.platform),ls=require("events"),typeof ls!="function"&&(ls=ls.EventEmitter),xe.__signal_exit_emitter__?Be=xe.__signal_exit_emitter__:(Be=xe.__signal_exit_emitter__=new ls,Be.count=0,Be.emitted={}),Be.infinite||(Be.setMaxListeners(1/0),Be.infinite=!0),Yi.exports=function(t,e){if(!hi(global.process))return function(){};J_.equal(typeof t,"function","a callback must be provided for exit handler"),Vi===!1&&kh();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Be.removeListener(r,t),Be.listeners("exit").length===0&&Be.listeners("afterexit").length===0&&Xo()};return Be.on(r,t),i},Xo=function(){!Vi||!hi(global.process)||(Vi=!1,Wi.forEach(function(e){try{xe.removeListener(e,Qo[e])}catch{}}),xe.emit=ea,xe.reallyExit=Oh,Be.count-=1)},Yi.exports.unload=Xo,fi=function(e,r,i){Be.emitted[e]||(Be.emitted[e]=!0,Be.emit(e,r,i))},Qo={},Wi.forEach(function(t){Qo[t]=function(){if(hi(global.process)){var r=xe.listeners(t);r.length===Be.count&&(Xo(),fi("exit",null,t),fi("afterexit",null,t),X_&&t==="SIGHUP"&&(t="SIGINT"),xe.kill(xe.pid,t))}}}),Yi.exports.signals=function(){return Wi},Vi=!1,kh=function(){Vi||!hi(global.process)||(Vi=!0,Be.count+=1,Wi=Wi.filter(function(e){try{return xe.on(e,Qo[e]),!0}catch{return!1}}),xe.emit=eb,xe.reallyExit=Q_)},Yi.exports.load=kh,Oh=xe.reallyExit,Q_=function(e){hi(global.process)&&(xe.exitCode=e||0,fi("exit",xe.exitCode,null),fi("afterexit",xe.exitCode,null),Oh.call(xe,xe.exitCode))},ea=xe.emit,eb=function(e,r){if(e==="exit"&&hi(global.process)){r!==void 0&&(xe.exitCode=r);var i=ea.apply(this,arguments);return fi("exit",xe.exitCode,null),fi("afterexit",xe.exitCode,null),i}else return ea.apply(this,arguments)}):Yi.exports=function(){return function(){}};var J_,Wi,X_,ls,Be,Xo,fi,Qo,Vi,kh,Oh,Q_,ea,eb});var rb=O((PH,tb)=>{"use strict";var h2=Th(),f2=Fh();tb.exports=h2(()=>{f2(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var ib=O(Ki=>{"use strict";var d2=rb(),ta=!1;Ki.show=(t=process.stderr)=>{t.isTTY&&(ta=!1,t.write("\x1B[?25h"))};Ki.hide=(t=process.stderr)=>{t.isTTY&&(d2(),ta=!0,t.write("\x1B[?25l"))};Ki.toggle=(t,e)=>{t!==void 0&&(ta=t),ta?Ki.show(e):Ki.hide(e)}});var nb=O((BH,p2)=>{p2.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 ab=O((IH,ob)=>{"use strict";var ra=Object.assign({},nb()),sb=Object.keys(ra);Object.defineProperty(ra,"random",{get(){let t=Math.floor(Math.random()*sb.length),e=sb[t];return ra[e]}});ob.exports=ra});var cb=O((NH,ub)=>{"use strict";var Lr=require("chalk"),m2=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",y2={info:Lr.blue("\u2139"),success:Lr.green("\u2714"),warning:Lr.yellow("\u26A0"),error:Lr.red("\u2716")},g2={info:Lr.blue("i"),success:Lr.green("\u221A"),warning:Lr.yellow("\u203C"),error:Lr.red("\xD7")};ub.exports=m2?y2:g2});var hb=O((MH,lb)=>{"use strict";lb.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 db=O((jH,fb)=>{"use strict";var _2=hb();fb.exports=t=>typeof t=="string"?t.replace(_2(),""):t});var pb=O((qH,ia)=>{var b2=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 h=[],f=[],d=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(y,p){if(y===null)return null;if(p==0)return y;var _,C;if(typeof y!="object")return y;if(t.__isArray(y))_=[];else if(t.__isRegExp(y))_=new RegExp(y.source,s(y)),y.lastIndex&&(_.lastIndex=y.lastIndex);else if(t.__isDate(y))_=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(y.length):_=new Buffer(y.length),y.copy(_),_;typeof c=="undefined"?(C=Object.getPrototypeOf(y),_=Object.create(C)):(_=Object.create(c),C=c)}if(a){var L=h.indexOf(y);if(L!=-1)return f[L];h.push(y),f.push(_)}for(var B in y){var T;C&&(T=Object.getOwnPropertyDescriptor(C,B)),!(T&&T.set==null)&&(_[B]=m(y[B],p-1))}return _}return m(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 i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;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 ia=="object"&&ia.exports&&(ia.exports=b2)});var yb=O((HH,mb)=>{var E2=pb();mb.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=E2(e[r]))}),t}});var _b=O((UH,gb)=>{gb.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 vb=O(($H,Ph)=>{"use strict";var w2=yb(),hs=_b(),Eb={nul:0,control:0};Ph.exports=function(e){return wb(e,Eb)};Ph.exports.config=function(t){return t=w2(t||{},Eb),function(r){return wb(r,t)}};function wb(t,e){if(typeof t!="string")return bb(t,e);for(var r=0,i=0;i<t.length;i++){var n=bb(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function bb(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:v2(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 v2(t){var e=0,r=hs.length-1,i;if(t<hs[0][0]||t>hs[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>hs[i][1])e=i+1;else if(t<hs[i][0])r=i-1;else return!0;return!1}});var Db=O((GH,Sb)=>{"use strict";Sb.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var xb=O((zH,Ab)=>{var Lh=require("stream");Ab.exports=Ie;function Ie(t){Lh.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}Ie.prototype=Object.create(Lh.prototype);Object.defineProperty(Ie.prototype,"constructor",{value:Ie,enumerable:!1});Ie.prototype.mute=function(){this.muted=!0};Ie.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ie.prototype,"_onpipe",{value:S2,enumerable:!1,writable:!0,configurable:!0});function S2(t){this._src=t}Object.defineProperty(Ie.prototype,"isTTY",{get:D2,set:A2,enumerable:!0,configurable:!0});function D2(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function A2(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ie.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ie.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ie.prototype.pipe=function(t,e){return this._dest=t,Lh.prototype.pipe.call(this,t,e)};Ie.prototype.pause=function(){if(this._src)return this._src.pause()};Ie.prototype.resume=function(){if(this._src)return this._src.resume()};Ie.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)};Ie.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 Bh(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)}}Ie.prototype.destroy=Bh("destroy");Ie.prototype.destroySoon=Bh("destroySoon");Ie.prototype.close=Bh("close")});var ca=O((WH,Mh)=>{"use strict";var x2=require("readline"),C2=require("chalk"),Cb=ib(),na=ab(),sa=cb(),R2=db(),T2=vb(),k2=Db(),O2=xb(),Ih=Symbol("text"),oa=Symbol("prefixText"),F2=3,Nh=class{constructor(){this.requests=0,this.mutedStream=new O2,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(F2)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}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=x2.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)}},aa,ua=class{constructor(e){aa||(aa=new Nh),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:k2({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=na.line;else if(e===void 0)this._spinner=na.dots;else if(na[e])this._spinner=na[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[Ih]}get prefixText(){return this[oa]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[oa]=="string"?this[oa]+"-":"";this.lineCount=R2(r+"--"+this[Ih]).split(`
|
4
|
-
`).reduce((i,n)=>i+Math.max(1,Math.ceil(T2(n)/e)),0)}set text(e){this[Ih]=e,this.updateLineCount()}set prefixText(e){this[oa]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=C2[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}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&&
|
5
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&
|
6
|
-
`),this}},P2=function(t){return new ua(t)};Mh.exports=P2;Mh.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ua(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var Rb=O((VH,la)=>{(function(t){var e=/^\s+/,r=/\s+$/,i=0,n=t.round,s=t.min,o=t.max,a=t.random;function u(b,N){if(b=b||"",N=N||{},b instanceof u)return b;if(!(this instanceof u))return new u(b,N);var x=c(b);this._originalInput=b,this._r=x.r,this._g=x.g,this._b=x.b,this._a=x.a,this._roundA=n(100*this._a)/100,this._format=N.format||x.format,this._gradientType=N.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=x.ok,this._tc_id=i++}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 b=this.toRgb();return(b.r*299+b.g*587+b.b*114)/1e3},getLuminance:function(){var b=this.toRgb(),N,x,ee,g,V,re;return N=b.r/255,x=b.g/255,ee=b.b/255,N<=.03928?g=N/12.92:g=t.pow((N+.055)/1.055,2.4),x<=.03928?V=x/12.92:V=t.pow((x+.055)/1.055,2.4),ee<=.03928?re=ee/12.92:re=t.pow((ee+.055)/1.055,2.4),.2126*g+.7152*V+.0722*re},setAlpha:function(b){return this._a=$(b),this._roundA=n(100*this._a)/100,this},toHsv:function(){var b=d(this._r,this._g,this._b);return{h:b.h*360,s:b.s,v:b.v,a:this._a}},toHsvString:function(){var b=d(this._r,this._g,this._b),N=n(b.h*360),x=n(b.s*100),ee=n(b.v*100);return this._a==1?"hsv("+N+", "+x+"%, "+ee+"%)":"hsva("+N+", "+x+"%, "+ee+"%, "+this._roundA+")"},toHsl:function(){var b=h(this._r,this._g,this._b);return{h:b.h*360,s:b.s,l:b.l,a:this._a}},toHslString:function(){var b=h(this._r,this._g,this._b),N=n(b.h*360),x=n(b.s*100),ee=n(b.l*100);return this._a==1?"hsl("+N+", "+x+"%, "+ee+"%)":"hsla("+N+", "+x+"%, "+ee+"%, "+this._roundA+")"},toHex:function(b){return y(this._r,this._g,this._b,b)},toHexString:function(b){return"#"+this.toHex(b)},toHex8:function(b){return p(this._r,this._g,this._b,this._a,b)},toHex8String:function(b){return"#"+this.toHex8(b)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(J(this._r,255)*100)+"%",g:n(J(this._g,255)*100)+"%",b:n(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%)":"rgba("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:v[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(b){var N="#"+_(this._r,this._g,this._b,this._a),x=N,ee=this._gradientType?"GradientType = 1, ":"";if(b){var g=u(b);x="#"+_(g._r,g._g,g._b,g._a)}return"progid:DXImageTransform.Microsoft.gradient("+ee+"startColorstr="+N+",endColorstr="+x+")"},toString:function(b){var N=!!b;b=b||this._format;var x=!1,ee=this._a<1&&this._a>=0,g=!N&&ee&&(b==="hex"||b==="hex6"||b==="hex3"||b==="hex4"||b==="hex8"||b==="name");return g?b==="name"&&this._a===0?this.toName():this.toRgbString():(b==="rgb"&&(x=this.toRgbString()),b==="prgb"&&(x=this.toPercentageRgbString()),(b==="hex"||b==="hex6")&&(x=this.toHexString()),b==="hex3"&&(x=this.toHexString(!0)),b==="hex4"&&(x=this.toHex8String(!0)),b==="hex8"&&(x=this.toHex8String()),b==="name"&&(x=this.toName()),b==="hsl"&&(x=this.toHslString()),b==="hsv"&&(x=this.toHsvString()),x||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(b,N){var x=b.apply(null,[this].concat([].slice.call(N)));return this._r=x._r,this._g=x._g,this._b=x._b,this.setAlpha(x._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(D,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(L,arguments)},greyscale:function(){return this._applyModification(B,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(b,N){return b.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(U,arguments)},complement:function(){return this._applyCombination(H,arguments)},monochromatic:function(){return this._applyCombination(G,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(W,arguments)},tetrad:function(){return this._applyCombination(q,arguments)}},u.fromRatio=function(b,N){if(typeof b=="object"){var x={};for(var ee in b)b.hasOwnProperty(ee)&&(ee==="a"?x[ee]=b[ee]:x[ee]=F(b[ee]));b=x}return u(b,N)};function c(b){var N={r:0,g:0,b:0},x=1,ee=null,g=null,V=null,re=!1,se=!1;return typeof b=="string"&&(b=ue(b)),typeof b=="object"&&(Z(b.r)&&Z(b.g)&&Z(b.b)?(N=l(b.r,b.g,b.b),re=!0,se=String(b.r).substr(-1)==="%"?"prgb":"rgb"):Z(b.h)&&Z(b.s)&&Z(b.v)?(ee=F(b.s),g=F(b.v),N=m(b.h,ee,g),re=!0,se="hsv"):Z(b.h)&&Z(b.s)&&Z(b.l)&&(ee=F(b.s),V=F(b.l),N=f(b.h,ee,V),re=!0,se="hsl"),b.hasOwnProperty("a")&&(x=b.a)),x=$(x),{ok:re,format:b.format||se,r:s(255,o(N.r,0)),g:s(255,o(N.g,0)),b:s(255,o(N.b,0)),a:x}}function l(b,N,x){return{r:J(b,255)*255,g:J(N,255)*255,b:J(x,255)*255}}function h(b,N,x){b=J(b,255),N=J(N,255),x=J(x,255);var ee=o(b,N,x),g=s(b,N,x),V,re,se=(ee+g)/2;if(ee==g)V=re=0;else{var le=ee-g;switch(re=se>.5?le/(2-ee-g):le/(ee+g),ee){case b:V=(N-x)/le+(N<x?6:0);break;case N:V=(x-b)/le+2;break;case x:V=(b-N)/le+4;break}V/=6}return{h:V,s:re,l:se}}function f(b,N,x){var ee,g,V;b=J(b,360),N=J(N,100),x=J(x,100);function re(me,ye,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?me+(ye-me)*6*pe:pe<1/2?ye:pe<2/3?me+(ye-me)*(2/3-pe)*6:me}if(N===0)ee=g=V=x;else{var se=x<.5?x*(1+N):x+N-x*N,le=2*x-se;ee=re(le,se,b+1/3),g=re(le,se,b),V=re(le,se,b-1/3)}return{r:ee*255,g:g*255,b:V*255}}function d(b,N,x){b=J(b,255),N=J(N,255),x=J(x,255);var ee=o(b,N,x),g=s(b,N,x),V,re,se=ee,le=ee-g;if(re=ee===0?0:le/ee,ee==g)V=0;else{switch(ee){case b:V=(N-x)/le+(N<x?6:0);break;case N:V=(x-b)/le+2;break;case x:V=(b-N)/le+4;break}V/=6}return{h:V,s:re,v:se}}function m(b,N,x){b=J(b,360)*6,N=J(N,100),x=J(x,100);var ee=t.floor(b),g=b-ee,V=x*(1-N),re=x*(1-g*N),se=x*(1-(1-g)*N),le=ee%6,me=[x,re,V,V,se,x][le],ye=[se,x,x,re,V,V][le],pe=[V,V,se,x,x,re][le];return{r:me*255,g:ye*255,b:pe*255}}function y(b,N,x,ee){var g=[j(n(b).toString(16)),j(n(N).toString(16)),j(n(x).toString(16))];return ee&&g[0].charAt(0)==g[0].charAt(1)&&g[1].charAt(0)==g[1].charAt(1)&&g[2].charAt(0)==g[2].charAt(1)?g[0].charAt(0)+g[1].charAt(0)+g[2].charAt(0):g.join("")}function p(b,N,x,ee,g){var V=[j(n(b).toString(16)),j(n(N).toString(16)),j(n(x).toString(16)),j(Y(ee))];return g&&V[0].charAt(0)==V[0].charAt(1)&&V[1].charAt(0)==V[1].charAt(1)&&V[2].charAt(0)==V[2].charAt(1)&&V[3].charAt(0)==V[3].charAt(1)?V[0].charAt(0)+V[1].charAt(0)+V[2].charAt(0)+V[3].charAt(0):V.join("")}function _(b,N,x,ee){var g=[j(Y(ee)),j(n(b).toString(16)),j(n(N).toString(16)),j(n(x).toString(16))];return g.join("")}u.equals=function(b,N){return!b||!N?!1:u(b).toRgbString()==u(N).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(b,N){N=N===0?0:N||10;var x=u(b).toHsl();return x.s-=N/100,x.s=X(x.s),u(x)}function L(b,N){N=N===0?0:N||10;var x=u(b).toHsl();return x.s+=N/100,x.s=X(x.s),u(x)}function B(b){return u(b).desaturate(100)}function T(b,N){N=N===0?0:N||10;var x=u(b).toHsl();return x.l+=N/100,x.l=X(x.l),u(x)}function M(b,N){N=N===0?0:N||10;var x=u(b).toRgb();return x.r=o(0,s(255,x.r-n(255*-(N/100)))),x.g=o(0,s(255,x.g-n(255*-(N/100)))),x.b=o(0,s(255,x.b-n(255*-(N/100)))),u(x)}function D(b,N){N=N===0?0:N||10;var x=u(b).toHsl();return x.l-=N/100,x.l=X(x.l),u(x)}function A(b,N){var x=u(b).toHsl(),ee=(x.h+N)%360;return x.h=ee<0?360+ee:ee,u(x)}function H(b){var N=u(b).toHsl();return N.h=(N.h+180)%360,u(N)}function W(b){var N=u(b).toHsl(),x=N.h;return[u(b),u({h:(x+120)%360,s:N.s,l:N.l}),u({h:(x+240)%360,s:N.s,l:N.l})]}function q(b){var N=u(b).toHsl(),x=N.h;return[u(b),u({h:(x+90)%360,s:N.s,l:N.l}),u({h:(x+180)%360,s:N.s,l:N.l}),u({h:(x+270)%360,s:N.s,l:N.l})]}function I(b){var N=u(b).toHsl(),x=N.h;return[u(b),u({h:(x+72)%360,s:N.s,l:N.l}),u({h:(x+216)%360,s:N.s,l:N.l})]}function U(b,N,x){N=N||6,x=x||30;var ee=u(b).toHsl(),g=360/x,V=[u(b)];for(ee.h=(ee.h-(g*N>>1)+720)%360;--N;)ee.h=(ee.h+g)%360,V.push(u(ee));return V}function G(b,N){N=N||6;for(var x=u(b).toHsv(),ee=x.h,g=x.s,V=x.v,re=[],se=1/N;N--;)re.push(u({h:ee,s:g,v:V})),V=(V+se)%1;return re}u.mix=function(b,N,x){x=x===0?0:x||50;var ee=u(b).toRgb(),g=u(N).toRgb(),V=x/100,re={r:(g.r-ee.r)*V+ee.r,g:(g.g-ee.g)*V+ee.g,b:(g.b-ee.b)*V+ee.b,a:(g.a-ee.a)*V+ee.a};return u(re)},u.readability=function(b,N){var x=u(b),ee=u(N);return(t.max(x.getLuminance(),ee.getLuminance())+.05)/(t.min(x.getLuminance(),ee.getLuminance())+.05)},u.isReadable=function(b,N,x){var ee=u.readability(b,N),g,V;switch(V=!1,g=Q(x),g.level+g.size){case"AAsmall":case"AAAlarge":V=ee>=4.5;break;case"AAlarge":V=ee>=3;break;case"AAAsmall":V=ee>=7;break}return V},u.mostReadable=function(b,N,x){var ee=null,g=0,V,re,se,le;x=x||{},re=x.includeFallbackColors,se=x.level,le=x.size;for(var me=0;me<N.length;me++)V=u.readability(b,N[me]),V>g&&(g=V,ee=u(N[me]));return u.isReadable(b,ee,{level:se,size:le})||!re?ee:(x.includeFallbackColors=!1,u.mostReadable(b,["#fff","#000"],x))};var P=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"},v=u.hexNames=R(P);function R(b){var N={};for(var x in b)b.hasOwnProperty(x)&&(N[b[x]]=x);return N}function $(b){return b=parseFloat(b),(isNaN(b)||b<0||b>1)&&(b=1),b}function J(b,N){w(b)&&(b="100%");var x=S(b);return b=s(N,o(0,parseFloat(b))),x&&(b=parseInt(b*N,10)/100),t.abs(b-N)<1e-6?1:b%N/parseFloat(N)}function X(b){return s(1,o(0,b))}function E(b){return parseInt(b,16)}function w(b){return typeof b=="string"&&b.indexOf(".")!=-1&&parseFloat(b)===1}function S(b){return typeof b=="string"&&b.indexOf("%")!=-1}function j(b){return b.length==1?"0"+b:""+b}function F(b){return b<=1&&(b=b*100+"%"),b}function Y(b){return t.round(parseFloat(b)*255).toString(16)}function z(b){return E(b)/255}var ne=function(){var b="[-\\+]?\\d+%?",N="[-\\+]?\\d*\\.\\d+%?",x="(?:"+N+")|(?:"+b+")",ee="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",g="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?";return{CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+ee),rgba:new RegExp("rgba"+g),hsl:new RegExp("hsl"+ee),hsla:new RegExp("hsla"+g),hsv:new RegExp("hsv"+ee),hsva:new RegExp("hsva"+g),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 Z(b){return!!ne.CSS_UNIT.exec(b)}function ue(b){b=b.replace(e,"").replace(r,"").toLowerCase();var N=!1;if(P[b])b=P[b],N=!0;else if(b=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var x;return(x=ne.rgb.exec(b))?{r:x[1],g:x[2],b:x[3]}:(x=ne.rgba.exec(b))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=ne.hsl.exec(b))?{h:x[1],s:x[2],l:x[3]}:(x=ne.hsla.exec(b))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=ne.hsv.exec(b))?{h:x[1],s:x[2],v:x[3]}:(x=ne.hsva.exec(b))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=ne.hex8.exec(b))?{r:E(x[1]),g:E(x[2]),b:E(x[3]),a:z(x[4]),format:N?"name":"hex8"}:(x=ne.hex6.exec(b))?{r:E(x[1]),g:E(x[2]),b:E(x[3]),format:N?"name":"hex"}:(x=ne.hex4.exec(b))?{r:E(x[1]+""+x[1]),g:E(x[2]+""+x[2]),b:E(x[3]+""+x[3]),a:z(x[4]+""+x[4]),format:N?"name":"hex8"}:(x=ne.hex3.exec(b))?{r:E(x[1]+""+x[1]),g:E(x[2]+""+x[2]),b:E(x[3]+""+x[3]),format:N?"name":"hex"}:!1}function Q(b){var N,x;return b=b||{level:"AA",size:"small"},N=(b.level||"AA").toUpperCase(),x=(b.size||"small").toLowerCase(),N!=="AA"&&N!=="AAA"&&(N="AA"),x!=="small"&&x!=="large"&&(x="small"),{level:N,size:x}}typeof la!="undefined"&&la.exports?la.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var Bb=O((YH,Lb)=>{var fs=Rb(),Fb={r:256,g:256,b:256,a:1},Pb={h:360,s:1,v:1,a:1};function qh(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function Hh(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function jh(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=qh(i,n,r),o=[t.color];for(let a=1;a<r;a++){let u=Hh(s,i,a,Fb);o.push(fs(u))}return o}function Tb(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return jh(t,e,r);let o;if(typeof i=="boolean")o=i;else{let l=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&l||i==="short"&&!l}let a=qh(n,s,r),u=[t.color],c;n.h<=s.h&&!o||n.h>=s.h&&o?c=s.h-n.h:o?c=360-s.h+n.h:c=360-n.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=Hh(a,n,l,Pb);u.push(fs(h))}return u}function kb(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 i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function Ob(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){n=t[u],s=t[u+1];break}n||(n=s=t[t.length-1]);let o=qh(n.color[r](),s.color[r](),(s.pos-n.pos)*100),a=Hh(o,n.color[r](),(e-n.pos)*100,i);return fs(a)}var Zi=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-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===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?fs(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<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:fs(o.color!==void 0?o.color:o),pos:a/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Zi(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new Zi(e.concat(r.reverse()))}rgb(e){let r=kb(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=jh(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=jh(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=kb(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=Tb(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=Tb(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return Ob(this.stops,e,"toRgb",Fb)}hsvAt(e){return Ob(this.stops,e,"toHsv",Pb)}};Lb.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 Zi(t)}});var fa=O((KH,ha)=>{"use strict";var Nb=require("chalk"),L2=Bb(),Ib=/\s/g;function Uh(...t){let e=L2.apply(this,t),r=(i,n)=>B2(i?i.toString():"",e,n);return r.multiline=(i,n)=>I2(i?i.toString():"",e,n),r}var Mb=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function B2(t,e,r){let i=jb(r),n=Math.max(t.replace(Ib,"").length,e.stops.length),s=Mb(e,i,n),o="";for(let a of t)o+=a.match(Ib)?a:Nb.hex(s.shift().toHex())(a);return o}function I2(t,e,r){let i=jb(r),n=t.split(`
|
7
|
-
`),s=Math.max.apply(null,n.map(u=>u.length).concat([e.stops.length])),o=
|
8
|
-
`)}function
|
2
|
+
"use strict";var wC=Object.create;var _c=Object.defineProperty;var vC=Object.getOwnPropertyDescriptor;var SC=Object.getOwnPropertyNames;var DC=Object.getPrototypeOf,AC=Object.prototype.hasOwnProperty;var O=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xC=(t,e)=>{for(var r in e)_c(t,r,{get:e[r],enumerable:!0})},CC=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of SC(e))!AC.call(t,n)&&n!==r&&_c(t,n,{get:()=>e[n],enumerable:!(i=vC(e,n))||i.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?wC(DC(t)):{},CC(e||!t||!t.__esModule?_c(r,"default",{value:t,enumerable:!0}):r,t));var Im=O((Eq,Qt)=>{function bc(t){return Qt.exports=bc=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},Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports,bc(t)}Qt.exports=bc,Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports});var jm=O((wq,er)=>{var Nm=Im().default;function Mm(){"use strict";er.exports=Mm=function(){return e},er.exports.__esModule=!0,er.exports.default=er.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(L,B,G){L[B]=G.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(L,B,G){return Object.defineProperty(L,B,{value:G,enumerable:!0,configurable:!0,writable:!0}),L[B]}try{c({},"")}catch{c=function(G,Z,j){return G[Z]=j}}function l(L,B,G,Z){var j=B&&B.prototype instanceof w?B:w,g=Object.create(j.prototype),_=new ne(Z||[]);return n(g,"_invoke",{value:z(L,G,_)}),g}function h(L,B,G){try{return{type:"normal",arg:L.call(B,G)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",y="completed",p={};function w(){}function C(){}function F(){}var P={};c(P,o,function(){return this});var T=Object.getPrototypeOf,M=T&&T(T(q([])));M&&M!==r&&i.call(M,o)&&(P=M);var S=F.prototype=w.prototype=Object.create(P);function D(L){["next","throw","return"].forEach(function(B){c(L,B,function(G){return this._invoke(B,G)})})}function H(L,B){function G(j,g,_,E){var R=h(L[j],L,g);if(R.type!=="throw"){var A=R.arg,U=A.value;return U&&Nm(U)=="object"&&i.call(U,"__await")?B.resolve(U.__await).then(function($){G("next",$,_,E)},function($){G("throw",$,_,E)}):B.resolve(U).then(function($){A.value=$,_(A)},function($){return G("throw",$,_,E)})}E(R.arg)}var Z;n(this,"_invoke",{value:function(g,_){function E(){return new B(function(R,A){G(g,_,R,A)})}return Z=Z?Z.then(E,E):E()}})}function z(L,B,G){var Z=f;return function(j,g){if(Z===m)throw new Error("Generator is already running");if(Z===y){if(j==="throw")throw g;return{value:t,done:!0}}for(G.method=j,G.arg=g;;){var _=G.delegate;if(_){var E=N(_,G);if(E){if(E===p)continue;return E}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(Z===f)throw Z=y,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);Z=m;var R=h(L,B,G);if(R.type==="normal"){if(Z=G.done?y:d,R.arg===p)continue;return{value:R.arg,done:G.done}}R.type==="throw"&&(Z=y,G.method="throw",G.arg=R.arg)}}}function N(L,B){var G=B.method,Z=L.iterator[G];if(Z===t)return B.delegate=null,G==="throw"&&L.iterator.return&&(B.method="return",B.arg=t,N(L,B),B.method==="throw")||G!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+G+"' method")),p;var j=h(Z,L.iterator,B.arg);if(j.type==="throw")return B.method="throw",B.arg=j.arg,B.delegate=null,p;var g=j.arg;return g?g.done?(B[L.resultName]=g.value,B.next=L.nextLoc,B.method!=="return"&&(B.method="next",B.arg=t),B.delegate=null,p):g:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,p)}function K(L){var B={tryLoc:L[0]};1 in L&&(B.catchLoc=L[1]),2 in L&&(B.finallyLoc=L[2],B.afterLoc=L[3]),this.tryEntries.push(B)}function te(L){var B=L.completion||{};B.type="normal",delete B.arg,L.completion=B}function ne(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(K,this),this.reset(!0)}function q(L){if(L||L===""){var B=L[o];if(B)return B.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var G=-1,Z=function j(){for(;++G<L.length;)if(i.call(L,G))return j.value=L[G],j.done=!1,j;return j.value=t,j.done=!0,j};return Z.next=Z}}throw new TypeError(Nm(L)+" is not iterable")}return C.prototype=F,n(S,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:C,configurable:!0}),C.displayName=c(F,u,"GeneratorFunction"),e.isGeneratorFunction=function(L){var B=typeof L=="function"&&L.constructor;return!!B&&(B===C||(B.displayName||B.name)==="GeneratorFunction")},e.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,F):(L.__proto__=F,c(L,u,"GeneratorFunction")),L.prototype=Object.create(S),L},e.awrap=function(L){return{__await:L}},D(H.prototype),c(H.prototype,a,function(){return this}),e.AsyncIterator=H,e.async=function(L,B,G,Z,j){j===void 0&&(j=Promise);var g=new H(l(L,B,G,Z),j);return e.isGeneratorFunction(B)?g:g.next().then(function(_){return _.done?_.value:g.next()})},D(S),c(S,u,"Generator"),c(S,o,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),e.keys=function(L){var B=Object(L),G=[];for(var Z in B)G.push(Z);return G.reverse(),function j(){for(;G.length;){var g=G.pop();if(g in B)return j.value=g,j.done=!1,j}return j.done=!0,j}},e.values=q,ne.prototype={constructor:ne,reset:function(B){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(te),!B)for(var G in this)G.charAt(0)==="t"&&i.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=t)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var G=this;function Z(A,U){return _.type="throw",_.arg=B,G.next=A,U&&(G.method="next",G.arg=t),!!U}for(var j=this.tryEntries.length-1;j>=0;--j){var g=this.tryEntries[j],_=g.completion;if(g.tryLoc==="root")return Z("end");if(g.tryLoc<=this.prev){var E=i.call(g,"catchLoc"),R=i.call(g,"finallyLoc");if(E&&R){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(E){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(B,G){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var j=this.tryEntries[Z];if(j.tryLoc<=this.prev&&i.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var g=j;break}}g&&(B==="break"||B==="continue")&&g.tryLoc<=G&&G<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=B,_.arg=G,g?(this.method="next",this.next=g.finallyLoc,p):this.complete(_)},complete:function(B,G){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&G&&(this.next=G),p},finish:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.finallyLoc===B)return this.complete(Z.completion,Z.afterLoc),te(Z),p}},catch:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.tryLoc===B){var j=Z.completion;if(j.type==="throw"){var g=j.arg;te(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(B,G,Z){return this.delegate={iterator:q(B),resultName:G,nextLoc:Z},this.method==="next"&&(this.arg=t),p}},e}er.exports=Mm,er.exports.__esModule=!0,er.exports.default=er.exports});var Hm=O((vq,qm)=>{var co=jm()();qm.exports=co;try{regeneratorRuntime=co}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=co:Function("r","regeneratorRuntime = r")(co)}});var $m=O((Gq,xc)=>{"use strict";var Um=(t,...e)=>new Promise(r=>{r(t(...e))});xc.exports=Um;xc.exports.default=Um});var zm=O((zq,Cc)=>{"use strict";var RC=$m(),Gm=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,i=()=>{r--,e.length>0&&e.shift()()},n=(a,u,...c)=>{r++;let l=RC(a,...c);u(l),l.then(i,i)},s=(a,u,...c)=>{r<t?n(a,u,...c):e.push(n.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};Cc.exports=Gm;Cc.exports.default=Gm});var Ym=O((Wq,Rc)=>{"use strict";var Wm=zm(),lo=class extends Error{constructor(e){super(),this.value=e}},TC=async(t,e)=>e(await t),kC=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new lo(e[0]);return!1},Vm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let i=Wm(r.concurrency),n=[...t].map(o=>[o,i(TC,o,e)]),s=Wm(r.preserveOrder?1:1/0);try{await Promise.all(n.map(o=>s(kC,o)))}catch(o){if(o instanceof lo)return o.value;throw o}};Rc.exports=Vm;Rc.exports.default=Vm});var e0=O((Vq,Tc)=>{"use strict";var Km=require("path"),ho=require("fs"),{promisify:Zm}=require("util"),OC=Ym(),FC=Zm(ho.stat),PC=Zm(ho.lstat),Jm={directory:"isDirectory",file:"isFile"};function Xm({type:t}){if(!(t in Jm))throw new Error(`Invalid type specified: ${t}`)}var Qm=(t,e)=>t===void 0||e[Jm[t]]();Tc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Xm(e);let r=e.allowSymlinks?FC:PC;return OC(t,async i=>{try{let n=await r(Km.resolve(e.cwd,i));return Qm(e.type,n)}catch{return!1}},e)};Tc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Xm(e);let r=e.allowSymlinks?ho.statSync:ho.lstatSync;for(let i of t)try{let n=r(Km.resolve(e.cwd,i));if(Qm(e.type,n))return i}catch{}}});var r0=O((Yq,kc)=>{"use strict";var t0=require("fs"),{promisify:LC}=require("util"),BC=LC(t0.access);kc.exports=async t=>{try{return await BC(t),!0}catch{return!1}};kc.exports.sync=t=>{try{return t0.accessSync(t),!0}catch{return!1}}});var n0=O((Kq,Li)=>{"use strict";var Ar=require("path"),fo=e0(),i0=r0(),Oc=Symbol("findUp.stop");Li.exports=async(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:i}=Ar.parse(r),n=[].concat(t),s=async o=>{if(typeof t!="function")return fo(n,o);let a=await t(o.cwd);return typeof a=="string"?fo([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Oc)return;if(o)return Ar.resolve(r,o);if(r===i)return;r=Ar.dirname(r)}};Li.exports.sync=(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:i}=Ar.parse(r),n=[].concat(t),s=o=>{if(typeof t!="function")return fo.sync(n,o);let a=t(o.cwd);return typeof a=="string"?fo.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Oc)return;if(o)return Ar.resolve(r,o);if(r===i)return;r=Ar.dirname(r)}};Li.exports.exists=i0;Li.exports.sync.exists=i0.sync;Li.exports.stop=Oc});var uy=O(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.splitWhen=ji.flatten=void 0;function uk(t){return t.reduce((e,r)=>[].concat(e,r),[])}ji.flatten=uk;function ck(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}ji.splitWhen=ck});var cy=O(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.isEnoentCodeError=void 0;function lk(t){return t.code==="ENOENT"}Eo.isEnoentCodeError=lk});var ly=O(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.createDirentFromStats=void 0;var Vc=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 hk(t,e){return new Vc(t,e)}wo.createDirentFromStats=hk});var hy=O(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.removeLeadingDotSegment=It.escape=It.makeAbsolute=It.unixify=void 0;var fk=require("path"),dk=2,pk=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function mk(t){return t.replace(/\\/g,"/")}It.unixify=mk;function yk(t,e){return fk.resolve(t,e)}It.makeAbsolute=yk;function gk(t){return t.replace(pk,"\\$2")}It.escape=gk;function _k(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(dk)}return t}It.removeLeadingDotSegment=_k});var dy=O((g6,fy)=>{fy.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 yy=O((_6,my)=>{var bk=dy(),py={"{":"}","(":")","[":"]"},Ek=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=py[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},wk=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=py[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};my.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(bk(e))return!0;var i=Ek;return r&&r.strict===!1&&(i=wk),i(e)}});var _y=O((b6,gy)=>{"use strict";var vk=yy(),Sk=require("path").posix.dirname,Dk=require("os").platform()==="win32",Yc="/",Ak=/\\/g,xk=/[\{\[].*[\}\]]$/,Ck=/(^|[^\\])([\{\[]|\([^\)]+$)/,Rk=/\\([\!\*\?\|\[\]\(\)\{\}])/g;gy.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&Dk&&e.indexOf(Yc)<0&&(e=e.replace(Ak,Yc)),xk.test(e)&&(e+=Yc),e+="a";do e=Sk(e);while(vk(e)||Ck.test(e));return e.replace(Rk,"$1")}});var vo=O(mt=>{"use strict";mt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;mt.find=(t,e)=>t.nodes.find(r=>r.type===e);mt.exceedsLimit=(t,e,r=1,i)=>i===!1||!mt.isInteger(t)||!mt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;mt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};mt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);mt.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;mt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;mt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);mt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var So=O((w6,Ey)=>{"use strict";var by=vo();Ey.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&by.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&by.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var vy=O((v6,wy)=>{"use strict";wy.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Oy=O((S6,ky)=>{"use strict";var Sy=vy(),ui=(t,e,r)=>{if(Sy(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Sy(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(ui.cache.hasOwnProperty(u))return ui.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 i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Ty(t)||Ty(e),f={min:t,max:e,a:c,b:l},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;m=Dy(y,Math.abs(c),f,i),c=f.a=0}return l>=0&&(d=Dy(c,l,f,i)),f.negatives=m,f.positives=d,f.result=Tk(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),ui.cache[u]=f,f.result};function Tk(t,e,r){let i=Kc(t,e,"-",!1,r)||[],n=Kc(e,t,"",!1,r)||[],s=Kc(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function kk(t,e){let r=1,i=1,n=xy(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=xy(t,r);for(n=Cy(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Cy(e+1,i)-1;return s=[...s],s.sort(Pk),s}function Ok(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=Fk(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,c]=i[a];u===c?s+=u:u!=="0"||c!=="9"?s+=Lk(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Dy(t,e,r,i){let n=kk(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let c=n[u],l=Ok(String(o),String(c),i),h="";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+Ry(a.count),o=c+1;continue}r.isPadded&&(h=Bk(c,r,i)),l.string=h+l.pattern+Ry(l.count),s.push(l),o=c+1,a=l}return s}function Kc(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Ay(e,"string",a)&&s.push(r+a),i&&Ay(e,"string",a)&&s.push(r+a)}return s}function Fk(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function Pk(t,e){return t>e?1:e>t?-1:0}function Ay(t,e,r){return t.some(i=>i[e]===r)}function xy(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Cy(t,e){return t-t%Math.pow(10,e)}function Ry(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Lk(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Ty(t){return/^-?(0+)\d/.test(t)}function Bk(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}ui.cache={};ui.clearCache=()=>ui.cache={};ky.exports=ui});var Xc=O((D6,jy)=>{"use strict";var Ik=require("util"),Ly=Oy(),Fy=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Nk=t=>e=>t===!0?Number(e):String(e),Zc=t=>typeof t=="number"||typeof t=="string"&&t!=="",as=t=>Number.isInteger(+t),Jc=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Mk=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,jk=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Py=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},qk=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},By=(t,e,r,i)=>{if(r)return Ly(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Iy=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Ly(t,e,r)},Ny=(...t)=>new RangeError("Invalid range arguments: "+Ik.inspect(...t)),My=(t,e,r)=>{if(r.strictRanges===!0)throw Ny([t,e]);return[]},Hk=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Uk=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Ny([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Jc(a)||Jc(u)||Jc(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&Mk(t,e,i)===!1,d=i.transform||Nk(f);if(i.toRegex&&r===1)return By(Py(t,h),Py(e,h),!0,i);let m={negatives:[],positives:[]},y=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],w=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):p.push(jk(d(n,w),h,f)),n=o?n-r:n+r,w++;return i.toRegex===!0?r>1?qk(m,i):Iy(p,null,{wrap:!1,...i}):p},$k=(t,e,r=1,i={})=>{if(!as(t)&&t.length>1||!as(e)&&e.length>1)return My(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return By(u,c,!1,i);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?Iy(l,null,{wrap:!1,options:i}):l},Do=(t,e,r,i={})=>{if(e==null&&Zc(t))return[t];if(!Zc(t)||!Zc(e))return My(t,e,i);if(typeof r=="function")return Do(t,e,1,{transform:r});if(Fy(r))return Do(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,as(r)?as(t)&&as(e)?Uk(t,e,r,n):$k(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Fy(r)?Hk(r,n):Do(t,e,1,r)};jy.exports=Do});var Uy=O((A6,Hy)=>{"use strict";var Gk=Xc(),qy=vo(),zk=(t,e={})=>{let r=(i,n={})=>{let s=qy.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=qy.reduce(i.nodes),h=Gk(...l,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};Hy.exports=zk});var zy=O((x6,Gy)=>{"use strict";var Wk=Xc(),$y=So(),qi=vo(),ci=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?qi.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(ci(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?ci(n,s,r):n+s);return qi.flatten(i)},Vk=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(ci(a.pop(),$y(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(ci(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=qi.reduce(n.nodes);if(qi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Wk(...h,e);f.length===0&&(f=$y(n,e)),a.push(ci(a.pop(),f)),n.nodes=[];return}let u=qi.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(ci(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(ci(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return qi.flatten(i(t))};Gy.exports=Vk});var Vy=O((C6,Wy)=>{"use strict";Wy.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 Xy=O((R6,Jy)=>{"use strict";var Yk=So(),{MAX_LENGTH:Yy,CHAR_BACKSLASH:Qc,CHAR_BACKTICK:Kk,CHAR_COMMA:Zk,CHAR_DOT:Jk,CHAR_LEFT_PARENTHESES:Xk,CHAR_RIGHT_PARENTHESES:Qk,CHAR_LEFT_CURLY_BRACE:eO,CHAR_RIGHT_CURLY_BRACE:tO,CHAR_LEFT_SQUARE_BRACKET:Ky,CHAR_RIGHT_SQUARE_BRACKET:Zy,CHAR_DOUBLE_QUOTE:rO,CHAR_SINGLE_QUOTE:iO,CHAR_NO_BREAK_SPACE:nO,CHAR_ZERO_WIDTH_NOBREAK_SPACE:sO}=Vy(),oO=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Yy,r.maxLength):Yy;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,c=t.length,l=0,h=0,f,d={},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],f=m(),!(f===sO||f===nO)){if(f===Qc){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===Zy){y({type:"text",value:"\\"+f});continue}if(f===Ky){u++;let p=!0,w;for(;l<c&&(w=m());){if(f+=w,w===Ky){u++;continue}if(w===Qc){f+=m();continue}if(w===Zy&&(u--,u===0))break}y({type:"text",value:f});continue}if(f===Xk){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Qk){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===rO||f===iO||f===Kk){let p=f,w;for(e.keepQuotes!==!0&&(f="");l<c&&(w=m());){if(w===Qc){f+=w+m();continue}if(w===p){e.keepQuotes===!0&&(f+=w);break}f+=w}y({type:"text",value:f});continue}if(f===eO){h++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(w),s.push(o),y({type:"open",value:f});continue}if(f===tO){if(o.type!=="brace"){y({type:"text",value:f});continue}let p="close";o=s.pop(),o.close=!0,y({type:p,value:f}),h--,o=s[s.length-1];continue}if(f===Zk&&h>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:Yk(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Jk&&h>0&&o.commas===0){let p=o.nodes;if(h===0||p.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,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+f,a=w,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}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 y({type:"eos"}),n};Jy.exports=oO});var tg=O((T6,eg)=>{"use strict";var Qy=So(),aO=Uy(),uO=zy(),cO=Xy(),at=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=at.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(at.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};at.parse=(t,e={})=>cO(t,e);at.stringify=(t,e={})=>Qy(typeof t=="string"?at.parse(t,e):t,e);at.compile=(t,e={})=>(typeof t=="string"&&(t=at.parse(t,e)),aO(t,e));at.expand=(t,e={})=>{typeof t=="string"&&(t=at.parse(t,e));let r=uO(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);eg.exports=at});var us=O((k6,og)=>{"use strict";var lO=require("path"),Nt="\\\\/",rg=`[^${Nt}]`,ir="\\.",hO="\\+",fO="\\?",Ao="\\/",dO="(?=.)",ig="[^/]",el=`(?:${Ao}|$)`,ng=`(?:^|${Ao})`,tl=`${ir}{1,2}${el}`,pO=`(?!${ir})`,mO=`(?!${ng}${tl})`,yO=`(?!${ir}{0,1}${el})`,gO=`(?!${tl})`,_O=`[^.${Ao}]`,bO=`${ig}*?`,sg={DOT_LITERAL:ir,PLUS_LITERAL:hO,QMARK_LITERAL:fO,SLASH_LITERAL:Ao,ONE_CHAR:dO,QMARK:ig,END_ANCHOR:el,DOTS_SLASH:tl,NO_DOT:pO,NO_DOTS:mO,NO_DOT_SLASH:yO,NO_DOTS_SLASH:gO,QMARK_NO_DOT:_O,STAR:bO,START_ANCHOR:ng},EO={...sg,SLASH_LITERAL:`[${Nt}]`,QMARK:rg,STAR:`${rg}*?`,DOTS_SLASH:`${ir}{1,2}(?:[${Nt}]|$)`,NO_DOT:`(?!${ir})`,NO_DOTS:`(?!(?:^|[${Nt}])${ir}{1,2}(?:[${Nt}]|$))`,NO_DOT_SLASH:`(?!${ir}{0,1}(?:[${Nt}]|$))`,NO_DOTS_SLASH:`(?!${ir}{1,2}(?:[${Nt}]|$))`,QMARK_NO_DOT:`[^.${Nt}]`,START_ANCHOR:`(?:^|[${Nt}])`,END_ANCHOR:`(?:[${Nt}]|$)`},wO={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"};og.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:wO,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:lO.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?EO:sg}}});var cs=O(tt=>{"use strict";var vO=require("path"),SO=process.platform==="win32",{REGEX_BACKSLASH:DO,REGEX_REMOVE_BACKSLASH:AO,REGEX_SPECIAL_CHARS:xO,REGEX_SPECIAL_CHARS_GLOBAL:CO}=us();tt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);tt.hasRegexChars=t=>xO.test(t);tt.isRegexChar=t=>t.length===1&&tt.hasRegexChars(t);tt.escapeRegex=t=>t.replace(CO,"\\$1");tt.toPosixSlashes=t=>t.replace(DO,"/");tt.removeBackslashes=t=>t.replace(AO,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:SO===!0||vO.sep==="\\";tt.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?tt.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};tt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};tt.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var pg=O((F6,dg)=>{"use strict";var ag=cs(),{CHAR_ASTERISK:rl,CHAR_AT:RO,CHAR_BACKWARD_SLASH:ls,CHAR_COMMA:TO,CHAR_DOT:il,CHAR_EXCLAMATION_MARK:nl,CHAR_FORWARD_SLASH:fg,CHAR_LEFT_CURLY_BRACE:sl,CHAR_LEFT_PARENTHESES:ol,CHAR_LEFT_SQUARE_BRACKET:kO,CHAR_PLUS:OO,CHAR_QUESTION_MARK:ug,CHAR_RIGHT_CURLY_BRACE:FO,CHAR_RIGHT_PARENTHESES:cg,CHAR_RIGHT_SQUARE_BRACKET:PO}=us(),lg=t=>t===fg||t===ls,hg=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},LO=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,m=!1,y=!1,p=!1,w=!1,C=!1,F=!1,P=!1,T=!1,M=0,S,D,H={value:"",depth:0,isGlob:!1},z=()=>c>=i,N=()=>u.charCodeAt(c+1),K=()=>(S=D,u.charCodeAt(++c));for(;c<i;){D=K();let B;if(D===ls){C=H.backslashes=!0,D=K(),D===sl&&(w=!0);continue}if(w===!0||D===sl){for(M++;z()!==!0&&(D=K());){if(D===ls){C=H.backslashes=!0,K();continue}if(D===sl){M++;continue}if(w!==!0&&D===il&&(D=K())===il){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(w!==!0&&D===TO){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(D===FO&&(M--,M===0)){w=!1,f=H.isBrace=!0,T=!0;break}}if(n===!0)continue;break}if(D===fg){if(s.push(c),o.push(H),H={value:"",depth:0,isGlob:!1},T===!0)continue;if(S===il&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(D===OO||D===RO||D===rl||D===ug||D===nl)===!0&&N()===ol){if(m=H.isGlob=!0,y=H.isExtglob=!0,T=!0,D===nl&&c===l&&(P=!0),n===!0){for(;z()!==!0&&(D=K());){if(D===ls){C=H.backslashes=!0,D=K();continue}if(D===cg){m=H.isGlob=!0,T=!0;break}}continue}break}if(D===rl){if(S===rl&&(p=H.isGlobstar=!0),m=H.isGlob=!0,T=!0,n===!0)continue;break}if(D===ug){if(m=H.isGlob=!0,T=!0,n===!0)continue;break}if(D===kO){for(;z()!==!0&&(B=K());){if(B===ls){C=H.backslashes=!0,K();continue}if(B===PO){d=H.isBracket=!0,m=H.isGlob=!0,T=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&D===nl&&c===l){F=H.negated=!0,l++;continue}if(r.noparen!==!0&&D===ol){if(m=H.isGlob=!0,n===!0){for(;z()!==!0&&(D=K());){if(D===ol){C=H.backslashes=!0,D=K();continue}if(D===cg){T=!0;break}}continue}break}if(m===!0){if(T=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let te=u,ne="",q="";l>0&&(ne=u.slice(0,l),u=u.slice(l),h-=l),te&&m===!0&&h>0?(te=u.slice(0,h),q=u.slice(h)):m===!0?(te="",q=u):te=u,te&&te!==""&&te!=="/"&&te!==u&&lg(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),r.unescape===!0&&(q&&(q=ag.removeBackslashes(q)),te&&C===!0&&(te=ag.removeBackslashes(te)));let L={prefix:ne,input:t,start:l,base:te,glob:q,isBrace:f,isBracket:d,isGlob:m,isExtglob:y,isGlobstar:p,negated:F,negatedExtglob:P};if(r.tokens===!0&&(L.maxDepth=0,lg(D)||o.push(H),L.tokens=o),r.parts===!0||r.tokens===!0){let B;for(let G=0;G<s.length;G++){let Z=B?B+1:l,j=s[G],g=t.slice(Z,j);r.tokens&&(G===0&&l!==0?(o[G].isPrefix=!0,o[G].value=ne):o[G].value=g,hg(o[G]),L.maxDepth+=o[G].depth),(G!==0||g!=="")&&a.push(g),B=j}if(B&&B+1<t.length){let G=t.slice(B+1);a.push(G),r.tokens&&(o[o.length-1].value=G,hg(o[o.length-1]),L.maxDepth+=o[o.length-1].depth)}L.slashes=s,L.parts=a}return L};dg.exports=LO});var gg=O((P6,yg)=>{"use strict";var xo=us(),ut=cs(),{MAX_LENGTH:Co,POSIX_REGEX_SOURCE:BO,REGEX_NON_SPECIAL_CHARS:IO,REGEX_SPECIAL_CHARS_BACKREF:NO,REPLACEMENTS:mg}=xo,MO=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>ut.escapeRegex(n)).join("..")}return r},Hi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,al=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=mg[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Co,r.maxLength):Co,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ut.isWindows(e),c=xo.globChars(u),l=xo.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:w,NO_DOTS_SLASH:C,QMARK:F,QMARK_NO_DOT:P,STAR:T,START_ANCHOR:M}=c,S=V=>`(${a}(?:(?!${M}${V.dot?y:h}).)*?)`,D=r.dot?"":p,H=r.dot?F:P,z=r.bash===!0?S(r):T;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let N={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,N),n=t.length;let K=[],te=[],ne=[],q=s,L,B=()=>N.index===n-1,G=N.peek=(V=1)=>t[N.index+V],Z=N.advance=()=>t[++N.index]||"",j=()=>t.slice(N.index+1),g=(V="",oe=0)=>{N.consumed+=V,N.index+=oe},_=V=>{N.output+=V.output!=null?V.output:V.value,g(V.value)},E=()=>{let V=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)Z(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},R=V=>{N[V]++,ne.push(V)},A=V=>{N[V]--,ne.pop()},U=V=>{if(q.type==="globstar"){let oe=N.braces>0&&(V.type==="comma"||V.type==="brace"),J=V.extglob===!0||K.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!oe&&!J&&(N.output=N.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=z,N.output+=q.output)}if(K.length&&V.type!=="paren"&&(K[K.length-1].inner+=V.value),(V.value||V.output)&&_(V),q&&q.type==="text"&&V.type==="text"){q.value+=V.value,q.output=(q.output||"")+V.value;return}V.prev=q,o.push(V),q=V},$=(V,oe)=>{let J={...l[oe],conditions:1,inner:""};J.prev=q,J.parens=N.parens,J.output=N.output;let v=(r.capture?"(":"")+J.open;R("parens"),U({type:V,value:oe,output:N.output?"":m}),U({type:"paren",extglob:!0,value:Z(),output:v}),K.push(J)},re=V=>{let oe=V.close+(r.capture?")":""),J;if(V.type==="negate"){let v=z;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(v=S(r)),(v!==z||B()||/^\)+$/.test(j()))&&(oe=V.close=`)$))${v}`),V.inner.includes("*")&&(J=j())&&/^\.[^\\/.]+$/.test(J)){let I=al(J,{...e,fastpaths:!1}).output;oe=V.close=`)${I})${v})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:L,output:oe}),A("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let V=!1,oe=t.replace(NO,(J,v,I,x,X,b)=>x==="\\"?(V=!0,J):x==="?"?v?v+x+(X?F.repeat(X.length):""):b===0?H+(X?F.repeat(X.length):""):F.repeat(I.length):x==="."?h.repeat(I.length):x==="*"?v?v+x+(X?z:""):z:v?J:`\\${J}`);return V===!0&&(r.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),oe===t&&r.contains===!0?(N.output=t,N):(N.output=ut.wrapOutput(oe,N,e),N)}for(;!B();){if(L=Z(),L==="\0")continue;if(L==="\\"){let J=G();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){L+="\\",U({type:"text",value:L});continue}let v=/^\\+/.exec(j()),I=0;if(v&&v[0].length>2&&(I=v[0].length,N.index+=I,I%2!==0&&(L+="\\")),r.unescape===!0?L=Z():L+=Z(),N.brackets===0){U({type:"text",value:L});continue}}if(N.brackets>0&&(L!=="]"||q.value==="["||q.value==="[^")){if(r.posix!==!1&&L===":"){let J=q.value.slice(1);if(J.includes("[")&&(q.posix=!0,J.includes(":"))){let v=q.value.lastIndexOf("["),I=q.value.slice(0,v),x=q.value.slice(v+2),X=BO[x];if(X){q.value=I+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(q)===1&&(s.output=m);continue}}}(L==="["&&G()!==":"||L==="-"&&G()==="]")&&(L=`\\${L}`),L==="]"&&(q.value==="["||q.value==="[^")&&(L=`\\${L}`),r.posix===!0&&L==="!"&&q.value==="["&&(L="^"),q.value+=L,_({value:L});continue}if(N.quotes===1&&L!=='"'){L=ut.escapeRegex(L),q.value+=L,_({value:L});continue}if(L==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&U({type:"text",value:L});continue}if(L==="("){R("parens"),U({type:"paren",value:L});continue}if(L===")"){if(N.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Hi("opening","("));let J=K[K.length-1];if(J&&N.parens===J.parens+1){re(K.pop());continue}U({type:"paren",value:L,output:N.parens?")":"\\)"}),A("parens");continue}if(L==="["){if(r.nobracket===!0||!j().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Hi("closing","]"));L=`\\${L}`}else R("brackets");U({type:"bracket",value:L});continue}if(L==="]"){if(r.nobracket===!0||q&&q.type==="bracket"&&q.value.length===1){U({type:"text",value:L,output:`\\${L}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Hi("opening","["));U({type:"text",value:L,output:`\\${L}`});continue}A("brackets");let J=q.value.slice(1);if(q.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(L=`/${L}`),q.value+=L,_({value:L}),r.literalBrackets===!1||ut.hasRegexChars(J))continue;let v=ut.escapeRegex(q.value);if(N.output=N.output.slice(0,-q.value.length),r.literalBrackets===!0){N.output+=v,q.value=v;continue}q.value=`(${a}${v}|${q.value})`,N.output+=q.value;continue}if(L==="{"&&r.nobrace!==!0){R("braces");let J={type:"brace",value:L,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};te.push(J),U(J);continue}if(L==="}"){let J=te[te.length-1];if(r.nobrace===!0||!J){U({type:"text",value:L,output:L});continue}let v=")";if(J.dots===!0){let I=o.slice(),x=[];for(let X=I.length-1;X>=0&&(o.pop(),I[X].type!=="brace");X--)I[X].type!=="dots"&&x.unshift(I[X].value);v=MO(x,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let I=N.output.slice(0,J.outputIndex),x=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",L=v="\\}",N.output=I;for(let X of x)N.output+=X.output||X.value}U({type:"brace",value:L,output:v}),A("braces"),te.pop();continue}if(L==="|"){K.length>0&&K[K.length-1].conditions++,U({type:"text",value:L});continue}if(L===","){let J=L,v=te[te.length-1];v&&ne[ne.length-1]==="braces"&&(v.comma=!0,J="|"),U({type:"comma",value:L,output:J});continue}if(L==="/"){if(q.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),q=s;continue}U({type:"slash",value:L,output:d});continue}if(L==="."){if(N.braces>0&&q.type==="dot"){q.value==="."&&(q.output=h);let J=te[te.length-1];q.type="dots",q.output+=L,q.value+=L,J.dots=!0;continue}if(N.braces+N.parens===0&&q.type!=="bos"&&q.type!=="slash"){U({type:"text",value:L,output:h});continue}U({type:"dot",value:L,output:h});continue}if(L==="?"){if(!(q&&q.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("qmark",L);continue}if(q&&q.type==="paren"){let v=G(),I=L;if(v==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(q.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(j()))&&(I=`\\${L}`),U({type:"text",value:L,output:I});continue}if(r.dot!==!0&&(q.type==="slash"||q.type==="bos")){U({type:"qmark",value:L,output:P});continue}U({type:"qmark",value:L,output:F});continue}if(L==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){$("negate",L);continue}if(r.nonegate!==!0&&N.index===0){E();continue}}if(L==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("plus",L);continue}if(q&&q.value==="("||r.regex===!1){U({type:"plus",value:L,output:f});continue}if(q&&(q.type==="bracket"||q.type==="paren"||q.type==="brace")||N.parens>0){U({type:"plus",value:L});continue}U({type:"plus",value:f});continue}if(L==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){U({type:"at",extglob:!0,value:L,output:""});continue}U({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let J=IO.exec(j());J&&(L+=J[0],N.index+=J[0].length),U({type:"text",value:L});continue}if(q&&(q.type==="globstar"||q.star===!0)){q.type="star",q.star=!0,q.value+=L,q.output=z,N.backtrack=!0,N.globstar=!0,g(L);continue}let V=j();if(r.noextglob!==!0&&/^\([^?]/.test(V)){$("star",L);continue}if(q.type==="star"){if(r.noglobstar===!0){g(L);continue}let J=q.prev,v=J.prev,I=J.type==="slash"||J.type==="bos",x=v&&(v.type==="star"||v.type==="globstar");if(r.bash===!0&&(!I||V[0]&&V[0]!=="/")){U({type:"star",value:L,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=K.length&&(J.type==="pipe"||J.type==="paren");if(!I&&J.type!=="paren"&&!X&&!b){U({type:"star",value:L,output:""});continue}for(;V.slice(0,3)==="/**";){let W=t[N.index+4];if(W&&W!=="/")break;V=V.slice(3),g("/**",3)}if(J.type==="bos"&&B()){q.type="globstar",q.value+=L,q.output=S(r),N.output=q.output,N.globstar=!0,g(L);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!x&&B()){N.output=N.output.slice(0,-(J.output+q.output).length),J.output=`(?:${J.output}`,q.type="globstar",q.output=S(r)+(r.strictSlashes?")":"|$)"),q.value+=L,N.globstar=!0,N.output+=J.output+q.output,g(L);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&V[0]==="/"){let W=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(J.output+q.output).length),J.output=`(?:${J.output}`,q.type="globstar",q.output=`${S(r)}${d}|${d}${W})`,q.value+=L,N.output+=J.output+q.output,N.globstar=!0,g(L+Z()),U({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&V[0]==="/"){q.type="globstar",q.value+=L,q.output=`(?:^|${d}|${S(r)}${d})`,N.output=q.output,N.globstar=!0,g(L+Z()),U({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-q.output.length),q.type="globstar",q.output=S(r),q.value+=L,N.output+=q.output,N.globstar=!0,g(L);continue}let oe={type:"star",value:L,output:z};if(r.bash===!0){oe.output=".*?",(q.type==="bos"||q.type==="slash")&&(oe.output=D+oe.output),U(oe);continue}if(q&&(q.type==="bracket"||q.type==="paren")&&r.regex===!0){oe.output=L,U(oe);continue}(N.index===N.start||q.type==="slash"||q.type==="dot")&&(q.type==="dot"?(N.output+=w,q.output+=w):r.dot===!0?(N.output+=C,q.output+=C):(N.output+=D,q.output+=D),G()!=="*"&&(N.output+=m,q.output+=m)),U(oe)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hi("closing","]"));N.output=ut.escapeLast(N.output,"["),A("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hi("closing",")"));N.output=ut.escapeLast(N.output,"("),A("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hi("closing","}"));N.output=ut.escapeLast(N.output,"{"),A("braces")}if(r.strictSlashes!==!0&&(q.type==="star"||q.type==="bracket")&&U({type:"maybe_slash",value:"",output:`${d}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};al.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Co,r.maxLength):Co,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=mg[t]||t;let s=ut.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=xo.globChars(s),y=r.dot?h:l,p=r.dot?f:l,w=r.capture?"":"?:",C={negated:!1,prefix:""},F=r.bash===!0?".*?":d;r.capture&&(F=`(${F})`);let P=D=>D.noglobstar===!0?F:`(${w}(?:(?!${m}${D.dot?c:o}).)*?)`,T=D=>{switch(D){case"*":return`${y}${u}${F}`;case".*":return`${o}${u}${F}`;case"*.*":return`${y}${F}${o}${u}${F}`;case"*/*":return`${y}${F}${a}${u}${p}${F}`;case"**":return y+P(r);case"**/*":return`(?:${y}${P(r)}${a})?${p}${u}${F}`;case"**/*.*":return`(?:${y}${P(r)}${a})?${p}${F}${o}${u}${F}`;case"**/.*":return`(?:${y}${P(r)}${a})?${o}${u}${F}`;default:{let H=/^(.*?)\.(\w+)$/.exec(D);if(!H)return;let z=T(H[1]);return z?z+o+H[2]:void 0}}},M=ut.removePrefix(t,C),S=T(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};yg.exports=al});var bg=O((L6,_g)=>{"use strict";var jO=require("path"),qO=pg(),ul=gg(),cl=cs(),HO=us(),UO=t=>t&&typeof t=="object"&&!Array.isArray(t),Ce=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>Ce(f,e,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let i=UO(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=cl.isWindows(e),o=i?Ce.compileRe(t,e):Ce.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=Ce(n.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:m}=Ce.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};Ce.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?cl.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(t,e,r,i=cl.isWindows(r))=>(e instanceof RegExp?e:Ce.makeRe(e,r)).test(jO.basename(t));Ce.isMatch=(t,e,r)=>Ce(e,r)(t);Ce.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ce.parse(r,e)):ul(t,{...e,fastpaths:!1});Ce.scan=(t,e)=>qO(t,e);Ce.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,e);return i===!0&&(u.state=t),u};Ce.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ul.fastpaths(t,e)),n.output||(n=ul(t,e)),Ce.compileRe(n,e,r,i)};Ce.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/$^/}};Ce.constants=HO;_g.exports=Ce});var wg=O((B6,Eg)=>{"use strict";Eg.exports=bg()});var xg=O((I6,Ag)=>{"use strict";var Sg=require("util"),Dg=tg(),Mt=wg(),ll=cs(),vg=t=>t===""||t==="./",Ae=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=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 h=Mt(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};Ae.match=Ae;Ae.matcher=(t,e)=>Mt(t,e);Ae.isMatch=(t,e,r)=>Mt(e,r)(t);Ae.any=Ae.isMatch;Ae.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(Ae(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};Ae.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Sg.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>Ae.contains(t,i,r));if(typeof e=="string"){if(vg(t)||vg(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Ae.isMatch(t,e,{...r,contains:!0})};Ae.matchKeys=(t,e,r)=>{if(!ll.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=Ae(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};Ae.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Mt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};Ae.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Mt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};Ae.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Sg.inspect(t)}"`);return[].concat(e).every(i=>Mt(i,r)(t))};Ae.capture=(t,e,r)=>{let i=ll.isWindows(r),s=Mt.makeRe(String(t),{...r,capture:!0}).exec(i?ll.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ae.makeRe=(...t)=>Mt.makeRe(...t);Ae.scan=(...t)=>Mt.scan(...t);Ae.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Dg(String(i),e))r.push(Mt.parse(n,e));return r};Ae.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Dg(t,e)};Ae.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ae.braces(t,{...e,expand:!0})};Ag.exports=Ae});var Lg=O(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.matchAny=de.convertPatternsToRe=de.makeRe=de.getPatternParts=de.expandBraceExpansion=de.expandPatternsWithBraceExpansion=de.isAffectDepthOfReadingPattern=de.endsWithSlashGlobStar=de.hasGlobStar=de.getBaseDirectory=de.isPatternRelatedToParentDirectory=de.getPatternsOutsideCurrentDirectory=de.getPatternsInsideCurrentDirectory=de.getPositivePatterns=de.getNegativePatterns=de.isPositivePattern=de.isNegativePattern=de.convertToNegativePattern=de.convertToPositivePattern=de.isDynamicPattern=de.isStaticPattern=void 0;var $O=require("path"),GO=_y(),hl=xg(),Cg="**",zO="\\",WO=/[*?]|^!/,VO=/\[[^[]*]/,YO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,KO=/[!*+?@]\([^(]*\)/,ZO=/,|\.\./;function Rg(t,e={}){return!Tg(t,e)}de.isStaticPattern=Rg;function Tg(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(zO)||WO.test(t)||VO.test(t)||YO.test(t)||e.extglob!==!1&&KO.test(t)||e.braceExpansion!==!1&&JO(t))}de.isDynamicPattern=Tg;function JO(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return ZO.test(i)}function XO(t){return Ro(t)?t.slice(1):t}de.convertToPositivePattern=XO;function QO(t){return"!"+t}de.convertToNegativePattern=QO;function Ro(t){return t.startsWith("!")&&t[1]!=="("}de.isNegativePattern=Ro;function kg(t){return!Ro(t)}de.isPositivePattern=kg;function eF(t){return t.filter(Ro)}de.getNegativePatterns=eF;function tF(t){return t.filter(kg)}de.getPositivePatterns=tF;function rF(t){return t.filter(e=>!fl(e))}de.getPatternsInsideCurrentDirectory=rF;function iF(t){return t.filter(fl)}de.getPatternsOutsideCurrentDirectory=iF;function fl(t){return t.startsWith("..")||t.startsWith("./..")}de.isPatternRelatedToParentDirectory=fl;function nF(t){return GO(t,{flipBackslashes:!1})}de.getBaseDirectory=nF;function sF(t){return t.includes(Cg)}de.hasGlobStar=sF;function Og(t){return t.endsWith("/"+Cg)}de.endsWithSlashGlobStar=Og;function oF(t){let e=$O.basename(t);return Og(t)||Rg(e)}de.isAffectDepthOfReadingPattern=oF;function aF(t){return t.reduce((e,r)=>e.concat(Fg(r)),[])}de.expandPatternsWithBraceExpansion=aF;function Fg(t){return hl.braces(t,{expand:!0,nodupes:!0})}de.expandBraceExpansion=Fg;function uF(t,e){let{parts:r}=hl.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}de.getPatternParts=uF;function Pg(t,e){return hl.makeRe(t,e)}de.makeRe=Pg;function cF(t,e){return t.map(r=>Pg(r,e))}de.convertPatternsToRe=cF;function lF(t,e){return e.some(r=>r.test(t))}de.matchAny=lF});var Mg=O((M6,Ng)=>{"use strict";var hF=require("stream"),Bg=hF.PassThrough,fF=Array.prototype.slice;Ng.exports=dF;function dF(){let t=[],e=fF.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=Bg(i);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(Ig(arguments[l],i));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 h=l.length+1;function f(){--h>0||(r=!1,u())}function d(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",p),f()}function p(w){o.emit("error",w)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",p),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)d(l[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&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 Ig(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Ig(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Bg(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var qg=O(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.merge=void 0;var pF=Mg();function mF(t){let e=pF(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>jg(t)),e.once("end",()=>jg(t)),e}To.merge=mF;function jg(t){t.forEach(e=>e.emit("close"))}});var Hg=O(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.isEmpty=Ui.isString=void 0;function yF(t){return typeof t=="string"}Ui.isString=yF;function gF(t){return t===""}Ui.isEmpty=gF});var nr=O($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.string=$e.stream=$e.pattern=$e.path=$e.fs=$e.errno=$e.array=void 0;var _F=uy();$e.array=_F;var bF=cy();$e.errno=bF;var EF=ly();$e.fs=EF;var wF=hy();$e.path=wF;var vF=Lg();$e.pattern=vF;var SF=qg();$e.stream=SF;var DF=Hg();$e.string=DF});var Gg=O(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.convertPatternGroupToTask=Ge.convertPatternGroupsToTasks=Ge.groupPatternsByBaseDirectory=Ge.getNegativePatternsAsPositive=Ge.getPositivePatterns=Ge.convertPatternsToTasks=Ge.generate=void 0;var sr=nr();function AF(t,e){let r=Ug(t),i=$g(t,e.ignore),n=r.filter(u=>sr.pattern.isStaticPattern(u,e)),s=r.filter(u=>sr.pattern.isDynamicPattern(u,e)),o=dl(n,i,!1),a=dl(s,i,!0);return o.concat(a)}Ge.generate=AF;function dl(t,e,r){let i=[],n=sr.pattern.getPatternsOutsideCurrentDirectory(t),s=sr.pattern.getPatternsInsideCurrentDirectory(t),o=pl(n),a=pl(s);return i.push(...ml(o,e,r)),"."in a?i.push(yl(".",s,e,r)):i.push(...ml(a,e,r)),i}Ge.convertPatternsToTasks=dl;function Ug(t){return sr.pattern.getPositivePatterns(t)}Ge.getPositivePatterns=Ug;function $g(t,e){return sr.pattern.getNegativePatterns(t).concat(e).map(sr.pattern.convertToPositivePattern)}Ge.getNegativePatternsAsPositive=$g;function pl(t){let e={};return t.reduce((r,i)=>{let n=sr.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Ge.groupPatternsByBaseDirectory=pl;function ml(t,e,r){return Object.keys(t).map(i=>yl(i,t[i],e,r))}Ge.convertPatternGroupsToTasks=ml;function yl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(sr.pattern.convertToNegativePattern))}}Ge.convertPatternGroupToTask=yl});var Wg=O($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.removeDuplicateSlashes=$i.transform=void 0;var xF=/(?!^)\/{2,}/g;function CF(t){return t.map(e=>zg(e))}$i.transform=CF;function zg(t){return t.replace(xF,"/")}$i.removeDuplicateSlashes=zg});var Yg=O(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.read=void 0;function RF(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Vg(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){gl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Vg(r,s);return}gl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),gl(r,o)})})}ko.read=RF;function Vg(t,e){t(e)}function gl(t,e){t(null,e)}});var Kg=O(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.read=void 0;function TF(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Oo.read=TF});var Zg=O(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.createFileSystemAdapter=Rr.FILE_SYSTEM_ADAPTER=void 0;var Fo=require("fs");Rr.FILE_SYSTEM_ADAPTER={lstat:Fo.lstat,stat:Fo.stat,lstatSync:Fo.lstatSync,statSync:Fo.statSync};function kF(t){return t===void 0?Rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Rr.FILE_SYSTEM_ADAPTER),t)}Rr.createFileSystemAdapter=kF});var Jg=O(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var OF=Zg(),_l=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=OF.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}};bl.default=_l});var li=O(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.statSync=Tr.stat=Tr.Settings=void 0;var Xg=Yg(),FF=Kg(),El=Jg();Tr.Settings=El.default;function PF(t,e,r){if(typeof e=="function"){Xg.read(t,wl(),e);return}Xg.read(t,wl(e),r)}Tr.stat=PF;function LF(t,e){let r=wl(e);return FF.read(t,r)}Tr.statSync=LF;function wl(t={}){return t instanceof El.default?t:new El.default(t)}});var t_=O((K6,e_)=>{var Qg;e_.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Qg||(Qg=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var i_=O((Z6,r_)=>{r_.exports=IF;var BF=t_();function IF(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(u){function c(){e&&e(u,r),e=null}s?BF(c):c()}function a(u,c,l){r[u]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,h){a(c,l,h)})}):o(null),s=!1}});var vl=O(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Po=process.versions.node.split(".");if(Po[0]===void 0||Po[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n_=Number.parseInt(Po[0],10),NF=Number.parseInt(Po[1],10),s_=10,MF=10,jF=n_>s_,qF=n_===s_&&NF>=MF;Lo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=jF||qF});var o_=O(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.createDirentFromStats=void 0;var Sl=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 HF(t,e){return new Sl(t,e)}Bo.createDirentFromStats=HF});var Dl=O(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.fs=void 0;var UF=o_();Io.fs=UF});var Al=O(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.joinPathSegments=void 0;function $F(t,e,r){return t.endsWith(r)?t+e:t+r+e}No.joinPathSegments=$F});var f_=O(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.readdir=kr.readdirWithFileTypes=kr.read=void 0;var GF=li(),a_=i_(),zF=vl(),u_=Dl(),c_=Al();function WF(t,e,r){if(!e.stats&&zF.IS_SUPPORT_READDIR_WITH_FILE_TYPES){l_(t,e,r);return}h_(t,e,r)}kr.read=WF;function l_(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Mo(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:c_.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){xl(r,s);return}let o=s.map(a=>VF(a,e));a_(o,(a,u)=>{if(a!==null){Mo(r,a);return}xl(r,u)})})}kr.readdirWithFileTypes=l_;function VF(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=u_.fs.createDirentFromStats(t.name,n),r(null,t)})}}function h_(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Mo(r,i);return}let s=n.map(o=>{let a=c_.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{GF.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:u_.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});a_(s,(o,a)=>{if(o!==null){Mo(r,o);return}xl(r,a)})})}kr.readdir=h_;function Mo(t,e){t(e)}function xl(t,e){t(null,e)}});var g_=O(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.readdir=Or.readdirWithFileTypes=Or.read=void 0;var YF=li(),KF=vl(),d_=Dl(),p_=Al();function ZF(t,e){return!e.stats&&KF.IS_SUPPORT_READDIR_WITH_FILE_TYPES?m_(t,e):y_(t,e)}Or.read=ZF;function m_(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:p_.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=d_.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Or.readdirWithFileTypes=m_;function y_(t,e){return e.fs.readdirSync(t).map(i=>{let n=p_.joinPathSegments(t,i,e.pathSegmentSeparator),s=YF.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:d_.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Or.readdir=y_});var __=O(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.createFileSystemAdapter=Fr.FILE_SYSTEM_ADAPTER=void 0;var Gi=require("fs");Fr.FILE_SYSTEM_ADAPTER={lstat:Gi.lstat,stat:Gi.stat,lstatSync:Gi.lstatSync,statSync:Gi.statSync,readdir:Gi.readdir,readdirSync:Gi.readdirSync};function JF(t){return t===void 0?Fr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Fr.FILE_SYSTEM_ADAPTER),t)}Fr.createFileSystemAdapter=JF});var b_=O(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var XF=require("path"),QF=li(),eP=__(),Cl=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=eP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,XF.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new QF.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Rl.default=Cl});var jo=O(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Settings=Pr.scandirSync=Pr.scandir=void 0;var E_=f_(),tP=g_(),Tl=b_();Pr.Settings=Tl.default;function rP(t,e,r){if(typeof e=="function"){E_.read(t,kl(),e);return}E_.read(t,kl(e),r)}Pr.scandir=rP;function iP(t,e){let r=kl(e);return tP.read(t,r)}Pr.scandirSync=iP;function kl(t={}){return t instanceof Tl.default?t:new Tl.default(t)}});var v_=O((oH,w_)=>{"use strict";function nP(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}w_.exports=nP});var D_=O((aH,Ol)=>{"use strict";var sP=v_();function S_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=sP(oP),n=null,s=null,o=0,a=null,u={push:y,drain:yt,saturated:yt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:h,getQueue:f,unshift:p,empty:yt,kill:C,killAndDrain:F,error:P};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var T=n,M=0;T;)T=T.next,M++;return M}function f(){for(var T=n,M=[];T;)M.push(T.value),T=T.next;return M}function d(){if(u.paused){u.paused=!1;for(var T=0;T<u.concurrency;T++)o++,w()}}function m(){return o===0&&u.length()===0}function y(T,M){var S=i.get();S.context=t,S.release=w,S.value=T,S.callback=M||yt,S.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=S,s=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function p(T,M){var S=i.get();S.context=t,S.release=w,S.value=T,S.callback=M||yt,o===u.concurrency||u.paused?n?(S.next=n,n=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function w(T){T&&i.release(T);var M=n;M?u.paused?o--:(s===n&&(s=null),n=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){n=null,s=null,u.drain=yt}function F(){n=null,s=null,u.drain(),u.drain=yt}function P(T){a=T}}function yt(){}function oP(){this.value=null,this.callback=yt,this.next=null,this.release=yt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=yt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function aP(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var n=S_(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=c,n;function a(l){var h=new Promise(function(f,d){s(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(yt),h}function u(l){var h=new Promise(function(f,d){o(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(yt),h}function c(){var l=n.drain,h=new Promise(function(f){n.drain=function(){l(),f()}});return h}}Ol.exports=S_;Ol.exports.promise=aP});var qo=O(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.joinPathSegments=jt.replacePathSegmentSeparator=jt.isAppliedFilter=jt.isFatalError=void 0;function uP(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}jt.isFatalError=uP;function cP(t,e){return t===null||t(e)}jt.isAppliedFilter=cP;function lP(t,e){return t.split(/[/\\]/).join(e)}jt.replacePathSegmentSeparator=lP;function hP(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}jt.joinPathSegments=hP});var Ll=O(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var fP=qo(),Fl=class{constructor(e,r){this._root=e,this._settings=r,this._root=fP.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Pl.default=Fl});var Nl=O(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var dP=require("events"),pP=jo(),mP=D_(),Ho=qo(),yP=Ll(),Bl=class extends yP.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=pP.scandir,this._emitter=new dP.EventEmitter,this._queue=mP(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Ho.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Ho.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ho.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ho.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Il.default=Bl});var A_=O(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var gP=Nl(),Ml=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new gP.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{_P(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{bP(e,this._storage)}),this._reader.read()}};jl.default=Ml;function _P(t,e){t(e)}function bP(t,e){t(null,e)}});var x_=O(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var EP=require("stream"),wP=Nl(),ql=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wP.default(this._root,this._settings),this._stream=new EP.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}};Hl.default=ql});var C_=O($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var vP=jo(),Uo=qo(),SP=Ll(),Ul=class extends SP.default{constructor(){super(...arguments),this._scandir=vP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Uo.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Uo.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Uo.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Uo.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};$l.default=Ul});var R_=O(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var DP=C_(),Gl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new DP.default(this._root,this._settings)}read(){return this._reader.read()}};zl.default=Gl});var T_=O(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var AP=require("path"),xP=jo(),Wl=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,AP.sep),this.fsScandirSettings=new xP.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}};Vl.default=Wl});var Go=O(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.Settings=qt.walkStream=qt.walkSync=qt.walk=void 0;var k_=A_(),CP=x_(),RP=R_(),Yl=T_();qt.Settings=Yl.default;function TP(t,e,r){if(typeof e=="function"){new k_.default(t,$o()).read(e);return}new k_.default(t,$o(e)).read(r)}qt.walk=TP;function kP(t,e){let r=$o(e);return new RP.default(t,r).read()}qt.walkSync=kP;function OP(t,e){let r=$o(e);return new CP.default(t,r).read()}qt.walkStream=OP;function $o(t={}){return t instanceof Yl.default?t:new Yl.default(t)}});var zo=O(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var FP=require("path"),PP=li(),O_=nr(),Kl=class{constructor(e){this._settings=e,this._fsStatSettings=new PP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return FP.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:O_.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!O_.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Zl.default=Kl});var Ql=O(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var LP=require("stream"),BP=li(),IP=Go(),NP=zo(),Jl=class extends NP.default{constructor(){super(...arguments),this._walkStream=IP.walkStream,this._stat=BP.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new LP.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Xl.default=Jl});var F_=O(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var MP=Go(),jP=zo(),qP=Ql(),eh=class extends jP.default{constructor(){super(...arguments),this._walkAsync=MP.walk,this._readerStream=new qP.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};th.default=eh});var P_=O(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var zi=nr(),rh=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return zi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>zi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:zi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return zi.array.splitWhen(e,r=>r.dynamic&&zi.pattern.hasGlobStar(r.pattern))}};ih.default=rh});var L_=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var HP=P_(),nh=class extends HP.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};sh.default=nh});var B_=O(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var Wo=nr(),UP=L_(),oh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new UP.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Wo.pattern.isAffectDepthOfReadingPattern);return Wo.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Wo.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Wo.pattern.matchAny(e,r)}};ah.default=oh});var I_=O(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var hi=nr(),uh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=hi.pattern.convertPatternsToRe(e,this._micromatchOptions),n=hi.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=hi.path.makeAbsolute(this._settings.cwd,e);return hi.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=hi.path.removeLeadingDotSegment(e),s=hi.pattern.matchAny(n,r);return!s&&i?hi.pattern.matchAny(n+"/",r):s}};ch.default=uh});var N_=O(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var $P=nr(),lh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return $P.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};hh.default=lh});var j_=O(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var M_=nr(),fh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=M_.path.makeAbsolute(this._settings.cwd,r),r=M_.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};dh.default=fh});var Vo=O(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var GP=require("path"),zP=B_(),WP=I_(),VP=N_(),YP=j_(),ph=class{constructor(e){this._settings=e,this.errorFilter=new VP.default(this._settings),this.entryFilter=new WP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new zP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new YP.default(this._settings)}_getRootDirectory(e){return GP.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}}};mh.default=ph});var q_=O(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var KP=F_(),ZP=Vo(),yh=class extends ZP.default{constructor(){super(...arguments),this._reader=new KP.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};gh.default=yh});var H_=O(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var JP=require("stream"),XP=Ql(),QP=Vo(),_h=class extends QP.default{constructor(){super(...arguments),this._reader=new XP.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new JP.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};bh.default=_h});var U_=O(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var e2=li(),t2=Go(),r2=zo(),Eh=class extends r2.default{constructor(){super(...arguments),this._walkSync=t2.walkSync,this._statSync=e2.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};wh.default=Eh});var $_=O(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var i2=U_(),n2=Vo(),vh=class extends n2.default{constructor(){super(...arguments),this._reader=new i2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Sh.default=vh});var G_=O(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Wi=require("fs"),s2=require("os"),o2=Math.max(s2.cpus().length,1);Vi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Wi.lstat,lstatSync:Wi.lstatSync,stat:Wi.stat,statSync:Wi.statSync,readdir:Wi.readdir,readdirSync:Wi.readdirSync};var Dh=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,o2),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({},Vi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Vi.default=Dh});var Yo=O((FH,V_)=>{"use strict";var z_=Gg(),W_=Wg(),a2=q_(),u2=H_(),c2=$_(),Ah=G_(),fi=nr();async function xh(t,e){Yi(t);let r=Ch(t,a2.default,e),i=await Promise.all(r);return fi.array.flatten(i)}(function(t){function e(o,a){Yi(o);let u=Ch(o,c2.default,a);return fi.array.flatten(u)}t.sync=e;function r(o,a){Yi(o);let u=Ch(o,u2.default,a);return fi.stream.merge(u)}t.stream=r;function i(o,a){Yi(o);let u=W_.transform([].concat(o)),c=new Ah.default(a);return z_.generate(u,c)}t.generateTasks=i;function n(o,a){Yi(o);let u=new Ah.default(a);return fi.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return Yi(o),fi.path.escape(o)}t.escapePath=s})(xh||(xh={}));function Ch(t,e,r){let i=W_.transform([].concat(t)),n=new Ah.default(r),s=z_.generate(i,n),o=new e(n);return s.map(o.read,o)}function Yi(t){if(![].concat(t).every(i=>fi.string.isString(i)&&!fi.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}V_.exports=xh});var K_=O((PH,Rh)=>{"use strict";var Y_=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Rh.exports=Y_;Rh.exports.default=Y_});var Th=O((LH,Zo)=>{"use strict";var l2=K_(),Ko=new WeakMap,Z_=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ko.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return l2(s,t),Ko.set(s,i),s};Zo.exports=Z_;Zo.exports.default=Z_;Zo.exports.callCount=t=>{if(!Ko.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ko.get(t)}});var J_=O((BH,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 Fh=O((IH,Ji)=>{var xe=global.process,di=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"};di(xe)?(X_=require("assert"),Ki=J_(),Q_=/^win/i.test(xe.platform),hs=require("events"),typeof hs!="function"&&(hs=hs.EventEmitter),xe.__signal_exit_emitter__?Be=xe.__signal_exit_emitter__:(Be=xe.__signal_exit_emitter__=new hs,Be.count=0,Be.emitted={}),Be.infinite||(Be.setMaxListeners(1/0),Be.infinite=!0),Ji.exports=function(t,e){if(!di(global.process))return function(){};X_.equal(typeof t,"function","a callback must be provided for exit handler"),Zi===!1&&kh();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Be.removeListener(r,t),Be.listeners("exit").length===0&&Be.listeners("afterexit").length===0&&Xo()};return Be.on(r,t),i},Xo=function(){!Zi||!di(global.process)||(Zi=!1,Ki.forEach(function(e){try{xe.removeListener(e,Qo[e])}catch{}}),xe.emit=ea,xe.reallyExit=Oh,Be.count-=1)},Ji.exports.unload=Xo,pi=function(e,r,i){Be.emitted[e]||(Be.emitted[e]=!0,Be.emit(e,r,i))},Qo={},Ki.forEach(function(t){Qo[t]=function(){if(di(global.process)){var r=xe.listeners(t);r.length===Be.count&&(Xo(),pi("exit",null,t),pi("afterexit",null,t),Q_&&t==="SIGHUP"&&(t="SIGINT"),xe.kill(xe.pid,t))}}}),Ji.exports.signals=function(){return Ki},Zi=!1,kh=function(){Zi||!di(global.process)||(Zi=!0,Be.count+=1,Ki=Ki.filter(function(e){try{return xe.on(e,Qo[e]),!0}catch{return!1}}),xe.emit=tb,xe.reallyExit=eb)},Ji.exports.load=kh,Oh=xe.reallyExit,eb=function(e){di(global.process)&&(xe.exitCode=e||0,pi("exit",xe.exitCode,null),pi("afterexit",xe.exitCode,null),Oh.call(xe,xe.exitCode))},ea=xe.emit,tb=function(e,r){if(e==="exit"&&di(global.process)){r!==void 0&&(xe.exitCode=r);var i=ea.apply(this,arguments);return pi("exit",xe.exitCode,null),pi("afterexit",xe.exitCode,null),i}else return ea.apply(this,arguments)}):Ji.exports=function(){return function(){}};var X_,Ki,Q_,hs,Be,Xo,pi,Qo,Zi,kh,Oh,eb,ea,tb});var ib=O((NH,rb)=>{"use strict";var h2=Th(),f2=Fh();rb.exports=h2(()=>{f2(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var nb=O(Xi=>{"use strict";var d2=ib(),ta=!1;Xi.show=(t=process.stderr)=>{t.isTTY&&(ta=!1,t.write("\x1B[?25h"))};Xi.hide=(t=process.stderr)=>{t.isTTY&&(d2(),ta=!0,t.write("\x1B[?25l"))};Xi.toggle=(t,e)=>{t!==void 0&&(ta=t),ta?Xi.show(e):Xi.hide(e)}});var sb=O((jH,p2)=>{p2.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 ub=O((qH,ab)=>{"use strict";var ra=Object.assign({},sb()),ob=Object.keys(ra);Object.defineProperty(ra,"random",{get(){let t=Math.floor(Math.random()*ob.length),e=ob[t];return ra[e]}});ab.exports=ra});var lb=O((HH,cb)=>{"use strict";var Lr=require("chalk"),m2=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",y2={info:Lr.blue("\u2139"),success:Lr.green("\u2714"),warning:Lr.yellow("\u26A0"),error:Lr.red("\u2716")},g2={info:Lr.blue("i"),success:Lr.green("\u221A"),warning:Lr.yellow("\u203C"),error:Lr.red("\xD7")};cb.exports=m2?y2:g2});var fb=O((UH,hb)=>{"use strict";hb.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 pb=O(($H,db)=>{"use strict";var _2=fb();db.exports=t=>typeof t=="string"?t.replace(_2(),""):t});var mb=O((GH,ia)=>{var b2=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 h=[],f=[],d=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(y,p){if(y===null)return null;if(p==0)return y;var w,C;if(typeof y!="object")return y;if(t.__isArray(y))w=[];else if(t.__isRegExp(y))w=new RegExp(y.source,s(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(t.__isDate(y))w=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(y.length):w=new Buffer(y.length),y.copy(w),w;typeof c=="undefined"?(C=Object.getPrototypeOf(y),w=Object.create(C)):(w=Object.create(c),C=c)}if(a){var F=h.indexOf(y);if(F!=-1)return f[F];h.push(y),f.push(w)}for(var P in y){var T;C&&(T=Object.getOwnPropertyDescriptor(C,P)),!(T&&T.set==null)&&(w[P]=m(y[P],p-1))}return w}return m(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 i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;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 ia=="object"&&ia.exports&&(ia.exports=b2)});var gb=O((zH,yb)=>{var E2=mb();yb.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=E2(e[r]))}),t}});var bb=O((WH,_b)=>{_b.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 Sb=O((VH,Ph)=>{"use strict";var w2=gb(),fs=bb(),wb={nul:0,control:0};Ph.exports=function(e){return vb(e,wb)};Ph.exports.config=function(t){return t=w2(t||{},wb),function(r){return vb(r,t)}};function vb(t,e){if(typeof t!="string")return Eb(t,e);for(var r=0,i=0;i<t.length;i++){var n=Eb(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function Eb(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:v2(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 v2(t){var e=0,r=fs.length-1,i;if(t<fs[0][0]||t>fs[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>fs[i][1])e=i+1;else if(t<fs[i][0])r=i-1;else return!0;return!1}});var Ab=O((YH,Db)=>{"use strict";Db.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Cb=O((KH,xb)=>{var Lh=require("stream");xb.exports=Ie;function Ie(t){Lh.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}Ie.prototype=Object.create(Lh.prototype);Object.defineProperty(Ie.prototype,"constructor",{value:Ie,enumerable:!1});Ie.prototype.mute=function(){this.muted=!0};Ie.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ie.prototype,"_onpipe",{value:S2,enumerable:!1,writable:!0,configurable:!0});function S2(t){this._src=t}Object.defineProperty(Ie.prototype,"isTTY",{get:D2,set:A2,enumerable:!0,configurable:!0});function D2(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function A2(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ie.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ie.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ie.prototype.pipe=function(t,e){return this._dest=t,Lh.prototype.pipe.call(this,t,e)};Ie.prototype.pause=function(){if(this._src)return this._src.pause()};Ie.prototype.resume=function(){if(this._src)return this._src.resume()};Ie.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)};Ie.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 Bh(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)}}Ie.prototype.destroy=Bh("destroy");Ie.prototype.destroySoon=Bh("destroySoon");Ie.prototype.close=Bh("close")});var ca=O((ZH,Mh)=>{"use strict";var x2=require("readline"),C2=require("chalk"),Rb=nb(),na=ub(),sa=lb(),R2=pb(),T2=Sb(),k2=Ab(),O2=Cb(),Ih=Symbol("text"),oa=Symbol("prefixText"),F2=3,Nh=class{constructor(){this.requests=0,this.mutedStream=new O2,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(F2)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}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=x2.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)}},aa,ua=class{constructor(e){aa||(aa=new Nh),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:k2({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=na.line;else if(e===void 0)this._spinner=na.dots;else if(na[e])this._spinner=na[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[Ih]}get prefixText(){return this[oa]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[oa]=="string"?this[oa]+"-":"";this.lineCount=R2(r+"--"+this[Ih]).split(`
|
4
|
+
`).reduce((i,n)=>i+Math.max(1,Math.ceil(T2(n)/e)),0)}set text(e){this[Ih]=e,this.updateLineCount()}set prefixText(e){this[oa]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=C2[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}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&&Rb.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,aa.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&&Rb.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(aa.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:sa.success,text:e})}fail(e){return this.stopAndPersist({symbol:sa.error,text:e})}warn(e){return this.stopAndPersist({symbol:sa.warning,text:e})}info(e){return this.stopAndPersist({symbol:sa.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,i=typeof r=="string"&&r!==""?r+" ":"",n=e.text||this.text,s=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${i}${e.symbol||" "}${s}
|
6
|
+
`),this}},P2=function(t){return new ua(t)};Mh.exports=P2;Mh.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ua(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var Tb=O((JH,la)=>{(function(t){var e=/^\s+/,r=/\s+$/,i=0,n=t.round,s=t.min,o=t.max,a=t.random;function u(v,I){if(v=v||"",I=I||{},v instanceof u)return v;if(!(this instanceof u))return new u(v,I);var x=c(v);this._originalInput=v,this._r=x.r,this._g=x.g,this._b=x.b,this._a=x.a,this._roundA=n(100*this._a)/100,this._format=I.format||x.format,this._gradientType=I.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=x.ok,this._tc_id=i++}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 v=this.toRgb();return(v.r*299+v.g*587+v.b*114)/1e3},getLuminance:function(){var v=this.toRgb(),I,x,X,b,W,ee;return I=v.r/255,x=v.g/255,X=v.b/255,I<=.03928?b=I/12.92:b=t.pow((I+.055)/1.055,2.4),x<=.03928?W=x/12.92:W=t.pow((x+.055)/1.055,2.4),X<=.03928?ee=X/12.92:ee=t.pow((X+.055)/1.055,2.4),.2126*b+.7152*W+.0722*ee},setAlpha:function(v){return this._a=G(v),this._roundA=n(100*this._a)/100,this},toHsv:function(){var v=d(this._r,this._g,this._b);return{h:v.h*360,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=d(this._r,this._g,this._b),I=n(v.h*360),x=n(v.s*100),X=n(v.v*100);return this._a==1?"hsv("+I+", "+x+"%, "+X+"%)":"hsva("+I+", "+x+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var v=h(this._r,this._g,this._b);return{h:v.h*360,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=h(this._r,this._g,this._b),I=n(v.h*360),x=n(v.s*100),X=n(v.l*100);return this._a==1?"hsl("+I+", "+x+"%, "+X+"%)":"hsla("+I+", "+x+"%, "+X+"%, "+this._roundA+")"},toHex:function(v){return y(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return p(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Z(this._r,255)*100)+"%",g:n(Z(this._g,255)*100)+"%",b:n(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%)":"rgba("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:L[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(v){var I="#"+w(this._r,this._g,this._b,this._a),x=I,X=this._gradientType?"GradientType = 1, ":"";if(v){var b=u(v);x="#"+w(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+I+",endColorstr="+x+")"},toString:function(v){var I=!!v;v=v||this._format;var x=!1,X=this._a<1&&this._a>=0,b=!I&&X&&(v==="hex"||v==="hex6"||v==="hex3"||v==="hex4"||v==="hex8"||v==="name");return b?v==="name"&&this._a===0?this.toName():this.toRgbString():(v==="rgb"&&(x=this.toRgbString()),v==="prgb"&&(x=this.toPercentageRgbString()),(v==="hex"||v==="hex6")&&(x=this.toHexString()),v==="hex3"&&(x=this.toHexString(!0)),v==="hex4"&&(x=this.toHex8String(!0)),v==="hex8"&&(x=this.toHex8String()),v==="name"&&(x=this.toName()),v==="hsl"&&(x=this.toHslString()),v==="hsv"&&(x=this.toHsvString()),x||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(v,I){var x=v.apply(null,[this].concat([].slice.call(I)));return this._r=x._r,this._g=x._g,this._b=x._b,this.setAlpha(x._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(v,I){return v.apply(null,[this].concat([].slice.call(I)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(H,arguments)},monochromatic:function(){return this._applyCombination(ne,arguments)},splitcomplement:function(){return this._applyCombination(K,arguments)},triad:function(){return this._applyCombination(z,arguments)},tetrad:function(){return this._applyCombination(N,arguments)}},u.fromRatio=function(v,I){if(typeof v=="object"){var x={};for(var X in v)v.hasOwnProperty(X)&&(X==="a"?x[X]=v[X]:x[X]=A(v[X]));v=x}return u(v,I)};function c(v){var I={r:0,g:0,b:0},x=1,X=null,b=null,W=null,ee=!1,se=!1;return typeof v=="string"&&(v=oe(v)),typeof v=="object"&&(V(v.r)&&V(v.g)&&V(v.b)?(I=l(v.r,v.g,v.b),ee=!0,se=String(v.r).substr(-1)==="%"?"prgb":"rgb"):V(v.h)&&V(v.s)&&V(v.v)?(X=A(v.s),b=A(v.v),I=m(v.h,X,b),ee=!0,se="hsv"):V(v.h)&&V(v.s)&&V(v.l)&&(X=A(v.s),W=A(v.l),I=f(v.h,X,W),ee=!0,se="hsl"),v.hasOwnProperty("a")&&(x=v.a)),x=G(x),{ok:ee,format:v.format||se,r:s(255,o(I.r,0)),g:s(255,o(I.g,0)),b:s(255,o(I.b,0)),a:x}}function l(v,I,x){return{r:Z(v,255)*255,g:Z(I,255)*255,b:Z(x,255)*255}}function h(v,I,x){v=Z(v,255),I=Z(I,255),x=Z(x,255);var X=o(v,I,x),b=s(v,I,x),W,ee,se=(X+b)/2;if(X==b)W=ee=0;else{var le=X-b;switch(ee=se>.5?le/(2-X-b):le/(X+b),X){case v:W=(I-x)/le+(I<x?6:0);break;case I:W=(x-v)/le+2;break;case x:W=(v-I)/le+4;break}W/=6}return{h:W,s:ee,l:se}}function f(v,I,x){var X,b,W;v=Z(v,360),I=Z(I,100),x=Z(x,100);function ee(me,ye,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?me+(ye-me)*6*pe:pe<1/2?ye:pe<2/3?me+(ye-me)*(2/3-pe)*6:me}if(I===0)X=b=W=x;else{var se=x<.5?x*(1+I):x+I-x*I,le=2*x-se;X=ee(le,se,v+1/3),b=ee(le,se,v),W=ee(le,se,v-1/3)}return{r:X*255,g:b*255,b:W*255}}function d(v,I,x){v=Z(v,255),I=Z(I,255),x=Z(x,255);var X=o(v,I,x),b=s(v,I,x),W,ee,se=X,le=X-b;if(ee=X===0?0:le/X,X==b)W=0;else{switch(X){case v:W=(I-x)/le+(I<x?6:0);break;case I:W=(x-v)/le+2;break;case x:W=(v-I)/le+4;break}W/=6}return{h:W,s:ee,v:se}}function m(v,I,x){v=Z(v,360)*6,I=Z(I,100),x=Z(x,100);var X=t.floor(v),b=v-X,W=x*(1-I),ee=x*(1-b*I),se=x*(1-(1-b)*I),le=X%6,me=[x,ee,W,W,se,x][le],ye=[se,x,x,ee,W,W][le],pe=[W,W,se,x,x,ee][le];return{r:me*255,g:ye*255,b:pe*255}}function y(v,I,x,X){var b=[R(n(v).toString(16)),R(n(I).toString(16)),R(n(x).toString(16))];return X&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0):b.join("")}function p(v,I,x,X,b){var W=[R(n(v).toString(16)),R(n(I).toString(16)),R(n(x).toString(16)),R(U(X))];return b&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)&&W[3].charAt(0)==W[3].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0)+W[3].charAt(0):W.join("")}function w(v,I,x,X){var b=[R(U(X)),R(n(v).toString(16)),R(n(I).toString(16)),R(n(x).toString(16))];return b.join("")}u.equals=function(v,I){return!v||!I?!1:u(v).toRgbString()==u(I).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(v,I){I=I===0?0:I||10;var x=u(v).toHsl();return x.s-=I/100,x.s=j(x.s),u(x)}function F(v,I){I=I===0?0:I||10;var x=u(v).toHsl();return x.s+=I/100,x.s=j(x.s),u(x)}function P(v){return u(v).desaturate(100)}function T(v,I){I=I===0?0:I||10;var x=u(v).toHsl();return x.l+=I/100,x.l=j(x.l),u(x)}function M(v,I){I=I===0?0:I||10;var x=u(v).toRgb();return x.r=o(0,s(255,x.r-n(255*-(I/100)))),x.g=o(0,s(255,x.g-n(255*-(I/100)))),x.b=o(0,s(255,x.b-n(255*-(I/100)))),u(x)}function S(v,I){I=I===0?0:I||10;var x=u(v).toHsl();return x.l-=I/100,x.l=j(x.l),u(x)}function D(v,I){var x=u(v).toHsl(),X=(x.h+I)%360;return x.h=X<0?360+X:X,u(x)}function H(v){var I=u(v).toHsl();return I.h=(I.h+180)%360,u(I)}function z(v){var I=u(v).toHsl(),x=I.h;return[u(v),u({h:(x+120)%360,s:I.s,l:I.l}),u({h:(x+240)%360,s:I.s,l:I.l})]}function N(v){var I=u(v).toHsl(),x=I.h;return[u(v),u({h:(x+90)%360,s:I.s,l:I.l}),u({h:(x+180)%360,s:I.s,l:I.l}),u({h:(x+270)%360,s:I.s,l:I.l})]}function K(v){var I=u(v).toHsl(),x=I.h;return[u(v),u({h:(x+72)%360,s:I.s,l:I.l}),u({h:(x+216)%360,s:I.s,l:I.l})]}function te(v,I,x){I=I||6,x=x||30;var X=u(v).toHsl(),b=360/x,W=[u(v)];for(X.h=(X.h-(b*I>>1)+720)%360;--I;)X.h=(X.h+b)%360,W.push(u(X));return W}function ne(v,I){I=I||6;for(var x=u(v).toHsv(),X=x.h,b=x.s,W=x.v,ee=[],se=1/I;I--;)ee.push(u({h:X,s:b,v:W})),W=(W+se)%1;return ee}u.mix=function(v,I,x){x=x===0?0:x||50;var X=u(v).toRgb(),b=u(I).toRgb(),W=x/100,ee={r:(b.r-X.r)*W+X.r,g:(b.g-X.g)*W+X.g,b:(b.b-X.b)*W+X.b,a:(b.a-X.a)*W+X.a};return u(ee)},u.readability=function(v,I){var x=u(v),X=u(I);return(t.max(x.getLuminance(),X.getLuminance())+.05)/(t.min(x.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(v,I,x){var X=u.readability(v,I),b,W;switch(W=!1,b=J(x),b.level+b.size){case"AAsmall":case"AAAlarge":W=X>=4.5;break;case"AAlarge":W=X>=3;break;case"AAAsmall":W=X>=7;break}return W},u.mostReadable=function(v,I,x){var X=null,b=0,W,ee,se,le;x=x||{},ee=x.includeFallbackColors,se=x.level,le=x.size;for(var me=0;me<I.length;me++)W=u.readability(v,I[me]),W>b&&(b=W,X=u(I[me]));return u.isReadable(v,X,{level:se,size:le})||!ee?X:(x.includeFallbackColors=!1,u.mostReadable(v,["#fff","#000"],x))};var q=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"},L=u.hexNames=B(q);function B(v){var I={};for(var x in v)v.hasOwnProperty(x)&&(I[v[x]]=x);return I}function G(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function Z(v,I){_(v)&&(v="100%");var x=E(v);return v=s(I,o(0,parseFloat(v))),x&&(v=parseInt(v*I,10)/100),t.abs(v-I)<1e-6?1:v%I/parseFloat(I)}function j(v){return s(1,o(0,v))}function g(v){return parseInt(v,16)}function _(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function E(v){return typeof v=="string"&&v.indexOf("%")!=-1}function R(v){return v.length==1?"0"+v:""+v}function A(v){return v<=1&&(v=v*100+"%"),v}function U(v){return t.round(parseFloat(v)*255).toString(16)}function $(v){return g(v)/255}var re=function(){var v="[-\\+]?\\d+%?",I="[-\\+]?\\d*\\.\\d+%?",x="(?:"+I+")|(?:"+v+")",X="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",b="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?";return{CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+b),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+b),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+b),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 V(v){return!!re.CSS_UNIT.exec(v)}function oe(v){v=v.replace(e,"").replace(r,"").toLowerCase();var I=!1;if(q[v])v=q[v],I=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var x;return(x=re.rgb.exec(v))?{r:x[1],g:x[2],b:x[3]}:(x=re.rgba.exec(v))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=re.hsl.exec(v))?{h:x[1],s:x[2],l:x[3]}:(x=re.hsla.exec(v))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=re.hsv.exec(v))?{h:x[1],s:x[2],v:x[3]}:(x=re.hsva.exec(v))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=re.hex8.exec(v))?{r:g(x[1]),g:g(x[2]),b:g(x[3]),a:$(x[4]),format:I?"name":"hex8"}:(x=re.hex6.exec(v))?{r:g(x[1]),g:g(x[2]),b:g(x[3]),format:I?"name":"hex"}:(x=re.hex4.exec(v))?{r:g(x[1]+""+x[1]),g:g(x[2]+""+x[2]),b:g(x[3]+""+x[3]),a:$(x[4]+""+x[4]),format:I?"name":"hex8"}:(x=re.hex3.exec(v))?{r:g(x[1]+""+x[1]),g:g(x[2]+""+x[2]),b:g(x[3]+""+x[3]),format:I?"name":"hex"}:!1}function J(v){var I,x;return v=v||{level:"AA",size:"small"},I=(v.level||"AA").toUpperCase(),x=(v.size||"small").toLowerCase(),I!=="AA"&&I!=="AAA"&&(I="AA"),x!=="small"&&x!=="large"&&(x="small"),{level:I,size:x}}typeof la!="undefined"&&la.exports?la.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var Ib=O((XH,Bb)=>{var ds=Tb(),Pb={r:256,g:256,b:256,a:1},Lb={h:360,s:1,v:1,a:1};function qh(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function Hh(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function jh(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=qh(i,n,r),o=[t.color];for(let a=1;a<r;a++){let u=Hh(s,i,a,Pb);o.push(ds(u))}return o}function kb(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return jh(t,e,r);let o;if(typeof i=="boolean")o=i;else{let l=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&l||i==="short"&&!l}let a=qh(n,s,r),u=[t.color],c;n.h<=s.h&&!o||n.h>=s.h&&o?c=s.h-n.h:o?c=360-s.h+n.h:c=360-n.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=Hh(a,n,l,Lb);u.push(ds(h))}return u}function Ob(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 i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function Fb(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){n=t[u],s=t[u+1];break}n||(n=s=t[t.length-1]);let o=qh(n.color[r](),s.color[r](),(s.pos-n.pos)*100),a=Hh(o,n.color[r](),(e-n.pos)*100,i);return ds(a)}var Qi=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-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===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?ds(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<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:ds(o.color!==void 0?o.color:o),pos:a/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Qi(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new Qi(e.concat(r.reverse()))}rgb(e){let r=Ob(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=jh(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=jh(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=Ob(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=kb(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=kb(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return Fb(this.stops,e,"toRgb",Pb)}hsvAt(e){return Fb(this.stops,e,"toHsv",Lb)}};Bb.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 Qi(t)}});var fa=O((QH,ha)=>{"use strict";var Mb=require("chalk"),L2=Ib(),Nb=/\s/g;function Uh(...t){let e=L2.apply(this,t),r=(i,n)=>B2(i?i.toString():"",e,n);return r.multiline=(i,n)=>I2(i?i.toString():"",e,n),r}var jb=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function B2(t,e,r){let i=qb(r),n=Math.max(t.replace(Nb,"").length,e.stops.length),s=jb(e,i,n),o="";for(let a of t)o+=a.match(Nb)?a:Mb.hex(s.shift().toHex())(a);return o}function I2(t,e,r){let i=qb(r),n=t.split(`
|
7
|
+
`),s=Math.max.apply(null,n.map(u=>u.length).concat([e.stops.length])),o=jb(e,i,s),a=[];for(let u of n){let c=o.slice(0),l="";for(let h of u)l+=Mb.hex(c.shift().toHex())(h);a.push(l)}return a.join(`
|
8
|
+
`)}function qb(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 ps={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"}}};ha.exports=Uh;for(let t in ps)ha.exports[t]=e=>new Uh(ps[t].colors)(e,ps[t].options),ha.exports[t].multiline=e=>new Uh(ps[t].colors).multiline(e,ps[t].options)});var Xb=O((n4,Jb)=>{Jb.exports=Zb;Zb.sync=Z2;var Yb=require("fs");function K2(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function Kb(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:K2(e,r)}function Zb(t,e,r){Yb.stat(t,function(i,n){r(i,i?!1:Kb(n,t,e))})}function Z2(t,e){return Kb(Yb.statSync(t),t,e)}});var iE=O((s4,rE)=>{rE.exports=eE;eE.sync=J2;var Qb=require("fs");function eE(t,e,r){Qb.stat(t,function(i,n){r(i,i?!1:tE(n,e))})}function J2(t,e){return tE(Qb.statSync(t),e)}function tE(t,e){return t.isFile()&&X2(t,e)}function X2(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,h=r&c||r&u&&n===o||r&a&&i===s||r&l&&s===0;return h}});var sE=O((a4,nE)=>{var o4=require("fs"),da;process.platform==="win32"||global.TESTING_WINDOWS?da=Xb():da=iE();nE.exports=Gh;Gh.sync=Q2;function Gh(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Gh(t,e||{},function(s,o){s?n(s):i(o)})})}da(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function Q2(t,e){try{return da.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var fE=O((u4,hE)=>{var tn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",oE=require("path"),eL=tn?";":":",aE=sE(),uE=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),cE=(t,e)=>{let r=e.colon||eL,i=t.match(/\//)||tn&&t.match(/\\/)?[""]:[...tn?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=tn?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=tn?n.split(r):[""];return tn&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},lE=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=cE(t,e),o=[],a=c=>new Promise((l,h)=>{if(c===i.length)return e.all&&o.length?l(o):h(uE(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,m=oE.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(u(y,c,0))}),u=(c,l,h)=>new Promise((f,d)=>{if(h===n.length)return f(a(l+1));let m=n[h];aE(c+m,{pathExt:s},(y,p)=>{if(!y&&p)if(e.all)o.push(c+m);else return f(c+m);return f(u(c,l,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},tL=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=cE(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=oE.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=l+i[h];try{if(aE.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw uE(t)};hE.exports=lE;lE.sync=tL});var Wh=O((c4,zh)=>{"use strict";var dE=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};zh.exports=dE;zh.exports.default=dE});var gE=O((l4,yE)=>{"use strict";var pE=require("path"),rL=fE(),iL=Wh();function mE(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=rL.sync(t.command,{path:r[iL({env:r})],pathExt:e?pE.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=pE.resolve(n?t.options.cwd:"",o)),o}function nL(t){return mE(t)||mE(t,!0)}yE.exports=nL});var _E=O((h4,Yh)=>{"use strict";var Vh=/([()\][%!^"`<>&|;, *?])/g;function sL(t){return t=t.replace(Vh,"^$1"),t}function oL(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Vh,"^$1"),e&&(t=t.replace(Vh,"^$1")),t}Yh.exports.command=sL;Yh.exports.argument=oL});var EE=O((f4,bE)=>{"use strict";bE.exports=/^#!(.*)/});var vE=O((d4,wE)=>{"use strict";var aL=EE();wE.exports=(t="")=>{let e=t.match(aL);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var DE=O((p4,SE)=>{"use strict";var Kh=require("fs"),uL=vE();function cL(t){let r=Buffer.alloc(150),i;try{i=Kh.openSync(t,"r"),Kh.readSync(i,r,0,150,0),Kh.closeSync(i)}catch{}return uL(r.toString())}SE.exports=cL});var RE=O((m4,CE)=>{"use strict";var lL=require("path"),AE=gE(),xE=_E(),hL=DE(),fL=process.platform==="win32",dL=/\.(?:com|exe)$/i,pL=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function mL(t){t.file=AE(t);let e=t.file&&hL(t.file);return e?(t.args.unshift(t.file),t.command=e,AE(t)):t.file}function yL(t){if(!fL)return t;let e=mL(t),r=!dL.test(e);if(t.options.forceShell||r){let i=pL.test(e);t.command=lL.normalize(t.command),t.command=xE.command(t.command),t.args=t.args.map(s=>xE.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function gL(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:yL(i)}CE.exports=gL});var OE=O((y4,kE)=>{"use strict";var Zh=process.platform==="win32";function Jh(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 _L(t,e){if(!Zh)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=TE(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function TE(t,e){return Zh&&t===1&&!e.file?Jh(e.original,"spawn"):null}function bL(t,e){return Zh&&t===1&&!e.file?Jh(e.original,"spawnSync"):null}kE.exports={hookChildProcess:_L,verifyENOENT:TE,verifyENOENTSync:bL,notFoundError:Jh}});var LE=O((g4,rn)=>{"use strict";var FE=require("child_process"),Xh=RE(),Qh=OE();function PE(t,e,r){let i=Xh(t,e,r),n=FE.spawn(i.command,i.args,i.options);return Qh.hookChildProcess(n,i),n}function EL(t,e,r){let i=Xh(t,e,r),n=FE.spawnSync(i.command,i.args,i.options);return n.error=n.error||Qh.verifyENOENTSync(n.status,i),n}rn.exports=PE;rn.exports.spawn=PE;rn.exports.sync=EL;rn.exports._parse=Xh;rn.exports._enoent=Qh});var IE=O((_4,BE)=>{"use strict";BE.exports=t=>{let e=typeof t=="string"?`
|
9
9
|
`:`
|
10
|
-
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var
|
11
|
-
${i.message}`:y,C=[
|
12
|
-
`);return p?(i.originalMessage=i.message,i.message=C):i=new Error(C),i.shortMessage=_,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!u,i.isCanceled=c,i.killed=l&&!u,i};zE.exports=ML});var YE=O((w4,tf)=>{"use strict";var ya=["stdin","stdout","stderr"],jL=t=>ya.some(e=>t[e]!==void 0),VE=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return ya.map(i=>t[i]);if(jL(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ya.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ya.length);return Array.from({length:r},(i,n)=>e[n])};tf.exports=VE;tf.exports.node=t=>{let e=VE(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ZE=O((v4,KE)=>{"use strict";var qL=require("os"),HL=Fh(),UL=1e3*5,$L=(t,e="SIGTERM",r={})=>{let i=t(e);return GL(t,e,r,i),i},GL=(t,e,r,i)=>{if(!zL(e,r,i))return;let n=VL(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},zL=(t,{forceKillAfterTimeout:e},r)=>WL(t)&&e!==!1&&r,WL=t=>t===qL.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",VL=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return UL;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},YL=(t,e)=>{t.kill()&&(e.isCanceled=!0)},KL=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},ZL=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,u)=>{n=setTimeout(()=>{KL(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},JL=({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})`)},XL=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=HL(()=>{t.kill()});return i.finally(()=>{n()})};KE.exports={spawnedKill:$L,spawnedCancel:YL,setupTimeout:ZL,validateTimeout:JL,setExitHandler:XL}});var XE=O((S4,JE)=>{"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";JE.exports=Ht});var ew=O((D4,QE)=>{"use strict";var{PassThrough:QL}=require("stream");QE.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new QL({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var tw=O((A4,ys)=>{"use strict";var{constants:eB}=require("buffer"),tB=require("stream"),{promisify:rB}=require("util"),iB=ew(),nB=rB(tB.pipeline),ga=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function rf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=iB(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=eB.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await nB(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ga)})}),i.getBufferedValue()}ys.exports=rf;ys.exports.buffer=(t,e)=>rf(t,{...e,encoding:"buffer"});ys.exports.array=(t,e)=>rf(t,{...e,array:!0});ys.exports.MaxBufferError=ga});var iw=O((x4,rw)=>{"use strict";var{PassThrough:sB}=require("stream");rw.exports=function(){var t=[],e=new sB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var aw=O((C4,ow)=>{"use strict";var sw=XE(),nw=tw(),oB=iw(),aB=(t,e)=>{e===void 0||t.stdin===void 0||(sw(e)?e.pipe(t.stdin):t.stdin.end(e))},uB=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=oB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},nf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},sf=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?nw(t,{encoding:e,maxBuffer:i}):nw.buffer(t,{maxBuffer:i})},cB=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=sf(t,{encoding:i,buffer:n,maxBuffer:s}),u=sf(e,{encoding:i,buffer:n,maxBuffer:s}),c=sf(r,{encoding:i,buffer:n,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},nf(t,a),nf(e,u),nf(r,c)])}},lB=({input:t})=>{if(sw(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};ow.exports={handleInput:aB,makeAllStream:uB,getSpawnedResult:cB,validateInputSync:lB}});var cw=O((R4,uw)=>{"use strict";var hB=(async()=>{})().constructor.prototype,fB=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(hB,t)]),dB=(t,e)=>{for(let[r,i]of fB){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},pB=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});uw.exports={mergePromise:dB,getSpawnedPromise:pB}});var fw=O((T4,hw)=>{"use strict";var lw=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],mB=/^[\w.-]+$/,yB=/"/g,gB=t=>typeof t!="string"||mB.test(t)?t:`"${t.replace(yB,'\\"')}"`,_B=(t,e)=>lw(t,e).join(" "),bB=(t,e)=>lw(t,e).map(r=>gB(r)).join(" "),EB=/ +/g,wB=t=>{let e=[];for(let r of t.trim().split(EB)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};hw.exports={joinCommand:_B,getEscapedCommand:bB,parseCommand:wB}});var sn=O((k4,nn)=>{"use strict";var vB=require("path"),of=require("child_process"),SB=PE(),DB=BE(),AB=ME(),xB=Th(),_a=WE(),pw=YE(),{spawnedKill:CB,spawnedCancel:RB,setupTimeout:TB,validateTimeout:kB,setExitHandler:OB}=ZE(),{handleInput:FB,getSpawnedResult:PB,makeAllStream:LB,validateInputSync:BB}=aw(),{mergePromise:dw,getSpawnedPromise:IB}=cw(),{joinCommand:mw,parseCommand:yw,getEscapedCommand:gw}=fw(),NB=1e3*1e3*100,MB=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?AB.env({env:s,cwd:i,execPath:n}):s},_w=(t,e,r={})=>{let i=SB._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:NB,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=MB(r),r.stdio=pw(r),process.platform==="win32"&&vB.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},gs=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?DB(e):e,ba=(t,e,r)=>{let i=_w(t,e,r),n=mw(t,e),s=gw(t,e);kB(i.options);let o;try{o=of.spawn(i.file,i.args,i.options)}catch(d){let m=new of.ChildProcess,y=Promise.reject(_a({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return dw(m,y)}let a=IB(o),u=TB(o,i.options,a),c=OB(o,i.options,u),l={isCanceled:!1};o.kill=CB.bind(null,o.kill.bind(o)),o.cancel=RB.bind(null,o,l);let f=xB(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:p},_,C,L]=await PB(o,i.options,c),B=gs(i.options,_),T=gs(i.options,C),M=gs(i.options,L);if(d||m!==0||y!==null){let D=_a({error:d,exitCode:m,signal:y,stdout:B,stderr:T,all:M,command:n,escapedCommand:s,parsed:i,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return D;throw D}return{command:n,escapedCommand:s,exitCode:0,stdout:B,stderr:T,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return FB(o,i.options.input),o.all=LB(o,i.options),dw(o,f)};nn.exports=ba;nn.exports.sync=(t,e,r)=>{let i=_w(t,e,r),n=mw(t,e),s=gw(t,e);BB(i.options);let o;try{o=of.spawnSync(i.file,i.args,i.options)}catch(c){throw _a({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=gs(i.options,o.stdout,o.error),u=gs(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=_a({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};nn.exports.command=(t,e)=>{let[r,...i]=yw(t);return ba(r,i,e)};nn.exports.commandSync=(t,e)=>{let[r,...i]=yw(t);return ba.sync(r,i,e)};nn.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=pw.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return ba(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var on=O((B4,Sw)=>{"use strict";var vw=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"]]);Sw.exports=t=>t?Object.keys(t).map(e=>[vw.has(e)?vw.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Ca=O((I4,Fw)=>{"use strict";var Dw=typeof process=="object"&&process?process:{stdout:null,stderr:null},qB=require("events"),Aw=require("stream"),xw=require("string_decoder").StringDecoder,or=Symbol("EOF"),ar=Symbol("maybeEmitEnd"),Br=Symbol("emittedEnd"),va=Symbol("emittingEnd"),Es=Symbol("emittedError"),Sa=Symbol("closed"),Cw=Symbol("read"),Da=Symbol("flush"),Rw=Symbol("flushChunk"),rt=Symbol("encoding"),ur=Symbol("decoder"),Aa=Symbol("flowing"),ws=Symbol("paused"),an=Symbol("resume"),Re=Symbol("buffer"),Ut=Symbol("pipes"),Ne=Symbol("bufferLength"),lf=Symbol("bufferPush"),hf=Symbol("bufferShift"),ze=Symbol("objectMode"),We=Symbol("destroyed"),ff=Symbol("emitData"),Tw=Symbol("emitEnd"),df=Symbol("emitEnd2"),cr=Symbol("async"),vs=t=>Promise.resolve().then(t),kw=global._MP_NO_ITERATOR_SYMBOLS_!=="1",HB=kw&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),UB=kw&&Symbol.iterator||Symbol("iterator not implemented"),$B=t=>t==="end"||t==="finish"||t==="prefinish",GB=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,zB=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),xa=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[an](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},pf=class extends xa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Fw.exports=class Ow extends Aw{constructor(e){super(),this[Aa]=!1,this[ws]=!1,this[Ut]=[],this[Re]=[],this[ze]=e&&e.objectMode||!1,this[ze]?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 xw(this[rt]):null,this[or]=!1,this[Br]=!1,this[va]=!1,this[Sa]=!1,this[Es]=null,this.writable=!0,this.readable=!0,this[Ne]=0,this[We]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Re]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ut]})}get bufferLength(){return this[Ne]}get encoding(){return this[rt]}set encoding(e){if(this[ze])throw new Error("cannot set encoding in objectMode");if(this[rt]&&e!==this[rt]&&(this[ur]&&this[ur].lastNeed||this[Ne]))throw new Error("cannot change encoding");this[rt]!==e&&(this[ur]=e?new xw(e):null,this[Re].length&&(this[Re]=this[Re].map(r=>this[ur].write(r)))),this[rt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ze]}set objectMode(e){this[ze]=this[ze]||!!e}get async(){return this[cr]}set async(e){this[cr]=this[cr]||!!e}write(e,r,i){if(this[or])throw new Error("write after end");if(this[We])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[cr]?vs:s=>s();return!this[ze]&&!Buffer.isBuffer(e)&&(zB(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):GB(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ze]?(this.flowing&&this[Ne]!==0&&this[Da](!0),this.flowing?this.emit("data",e):this[lf](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),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[Ne]!==0&&this[Da](!0),this.flowing?this.emit("data",e):this[lf](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[We])return null;if(this[Ne]===0||e===0||e>this[Ne])return this[ar](),null;this[ze]&&(e=null),this[Re].length>1&&!this[ze]&&(this.encoding?this[Re]=[this[Re].join("")]:this[Re]=[Buffer.concat(this[Re],this[Ne])]);let r=this[Cw](e||null,this[Re][0]);return this[ar](),r}[Cw](e,r){return e===r.length||e===null?this[hf]():(this[Re][0]=r.slice(e),r=r.slice(0,e),this[Ne]-=e),this.emit("data",r),!this[Re].length&&!this[or]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[or]=!0,this.writable=!1,(this.flowing||!this[ws])&&this[ar](),this}[an](){this[We]||(this[ws]=!1,this[Aa]=!0,this.emit("resume"),this[Re].length?this[Da]():this[or]?this[ar]():this.emit("drain"))}resume(){return this[an]()}pause(){this[Aa]=!1,this[ws]=!0}get destroyed(){return this[We]}get flowing(){return this[Aa]}get paused(){return this[ws]}[lf](e){this[ze]?this[Ne]+=1:this[Ne]+=e.length,this[Re].push(e)}[hf](){return this[Re].length&&(this[ze]?this[Ne]-=1:this[Ne]-=this[Re][0].length),this[Re].shift()}[Da](e){do;while(this[Rw](this[hf]()));!e&&!this[Re].length&&!this[or]&&this.emit("drain")}[Rw](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[We])return;let i=this[Br];return r=r||{},e===Dw.stdout||e===Dw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ut].push(r.proxyErrors?new pf(this,e,r):new xa(this,e,r)),this[cr]?vs(()=>this[an]()):this[an]()),e}unpipe(e){let r=this[Ut].find(i=>i.dest===e);r&&(this[Ut].splice(this[Ut].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Ut].length&&!this.flowing?this[an]():e==="readable"&&this[Ne]!==0?super.emit("readable"):$B(e)&&this[Br]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Es]&&(this[cr]?vs(()=>r.call(this,this[Es])):r.call(this,this[Es])),i}get emittedEnd(){return this[Br]}[ar](){!this[va]&&!this[Br]&&!this[We]&&this[Re].length===0&&this[or]&&(this[va]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Sa]&&this.emit("close"),this[va]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==We&&this[We])return;if(e==="data")return r?this[cr]?vs(()=>this[ff](r)):this[ff](r):!1;if(e==="end")return this[Tw]();if(e==="close"){if(this[Sa]=!0,!this[Br]&&!this[We])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Es]=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 n=super.emit(e,r,...i);return this[ar](),n}[ff](e){for(let i of this[Ut])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[ar](),r}[Tw](){this[Br]||(this[Br]=!0,this.readable=!1,this[cr]?vs(()=>this[df]()):this[df]())}[df](){if(this[ur]){let r=this[ur].end();if(r){for(let i of this[Ut])i.dest.write(r);super.emit("data",r)}}for(let r of this[Ut])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ze]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ze]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ze]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ze]?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(We,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[HB](){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 i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[or]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(We,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[UB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[We]?(e?this.emit("error",e):this.emit(We),this):(this[We]=!0,this[Re].length=0,this[Ne]=0,typeof this.close=="function"&&!this[Sa]&&this.close(),e?this.emit("error",e):this.emit(We),this)}static isStream(e){return!!e&&(e instanceof Ow||e instanceof Aw||e instanceof qB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Lw=O((N4,Pw)=>{var WB=require("zlib").constants||{ZLIB_VERNUM:4736};Pw.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},WB))});var Ef=O((M4,$w)=>{"use strict";var Bw=typeof process=="object"&&process?process:{stdout:null,stderr:null},VB=require("events"),Iw=require("stream"),Nw=require("string_decoder").StringDecoder,lr=Symbol("EOF"),hr=Symbol("maybeEmitEnd"),Ir=Symbol("emittedEnd"),Ra=Symbol("emittingEnd"),Ss=Symbol("emittedError"),Ta=Symbol("closed"),Mw=Symbol("read"),ka=Symbol("flush"),jw=Symbol("flushChunk"),it=Symbol("encoding"),fr=Symbol("decoder"),Oa=Symbol("flowing"),Ds=Symbol("paused"),un=Symbol("resume"),Me=Symbol("bufferLength"),mf=Symbol("bufferPush"),yf=Symbol("bufferShift"),Ve=Symbol("objectMode"),Ye=Symbol("destroyed"),gf=Symbol("emitData"),qw=Symbol("emitEnd"),_f=Symbol("emitEnd2"),dr=Symbol("async"),As=t=>Promise.resolve().then(t),Hw=global._MP_NO_ITERATOR_SYMBOLS_!=="1",YB=Hw&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),KB=Hw&&Symbol.iterator||Symbol("iterator not implemented"),ZB=t=>t==="end"||t==="finish"||t==="prefinish",JB=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,XB=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Fa=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[un](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},bf=class extends Fa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};$w.exports=class Uw extends Iw{constructor(e){super(),this[Oa]=!1,this[Ds]=!1,this.pipes=[],this.buffer=[],this[Ve]=e&&e.objectMode||!1,this[Ve]?this[it]=null:this[it]=e&&e.encoding||null,this[it]==="buffer"&&(this[it]=null),this[dr]=e&&!!e.async||!1,this[fr]=this[it]?new Nw(this[it]):null,this[lr]=!1,this[Ir]=!1,this[Ra]=!1,this[Ta]=!1,this[Ss]=null,this.writable=!0,this.readable=!0,this[Me]=0,this[Ye]=!1}get bufferLength(){return this[Me]}get encoding(){return this[it]}set encoding(e){if(this[Ve])throw new Error("cannot set encoding in objectMode");if(this[it]&&e!==this[it]&&(this[fr]&&this[fr].lastNeed||this[Me]))throw new Error("cannot change encoding");this[it]!==e&&(this[fr]=e?new Nw(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[fr].write(r)))),this[it]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ve]}set objectMode(e){this[Ve]=this[Ve]||!!e}get async(){return this[dr]}set async(e){this[dr]=this[dr]||!!e}write(e,r,i){if(this[lr])throw new Error("write after end");if(this[Ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[dr]?As:s=>s();return!this[Ve]&&!Buffer.isBuffer(e)&&(XB(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):JB(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ve]?(this.flowing&&this[Me]!==0&&this[ka](!0),this.flowing?this.emit("data",e):this[mf](e),this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[it]&&!this[fr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[it]&&(e=this[fr].write(e)),this.flowing&&this[Me]!==0&&this[ka](!0),this.flowing?this.emit("data",e):this[mf](e),this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ye])return null;if(this[Me]===0||e===0||e>this[Me])return this[hr](),null;this[Ve]&&(e=null),this.buffer.length>1&&!this[Ve]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Me])]);let r=this[Mw](e||null,this.buffer[0]);return this[hr](),r}[Mw](e,r){return e===r.length||e===null?this[yf]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Me]-=e),this.emit("data",r),!this.buffer.length&&!this[lr]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[lr]=!0,this.writable=!1,(this.flowing||!this[Ds])&&this[hr](),this}[un](){this[Ye]||(this[Ds]=!1,this[Oa]=!0,this.emit("resume"),this.buffer.length?this[ka]():this[lr]?this[hr]():this.emit("drain"))}resume(){return this[un]()}pause(){this[Oa]=!1,this[Ds]=!0}get destroyed(){return this[Ye]}get flowing(){return this[Oa]}get paused(){return this[Ds]}[mf](e){this[Ve]?this[Me]+=1:this[Me]+=e.length,this.buffer.push(e)}[yf](){return this.buffer.length&&(this[Ve]?this[Me]-=1:this[Me]-=this.buffer[0].length),this.buffer.shift()}[ka](e){do;while(this[jw](this[yf]()));!e&&!this.buffer.length&&!this[lr]&&this.emit("drain")}[jw](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ye])return;let i=this[Ir];return r=r||{},e===Bw.stdout||e===Bw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new bf(this,e,r):new Fa(this,e,r)),this[dr]?As(()=>this[un]()):this[un]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[un]():e==="readable"&&this[Me]!==0?super.emit("readable"):ZB(e)&&this[Ir]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ss]&&(this[dr]?As(()=>r.call(this,this[Ss])):r.call(this,this[Ss])),i}get emittedEnd(){return this[Ir]}[hr](){!this[Ra]&&!this[Ir]&&!this[Ye]&&this.buffer.length===0&&this[lr]&&(this[Ra]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ta]&&this.emit("close"),this[Ra]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ye&&this[Ye])return;if(e==="data")return r?this[dr]?As(()=>this[gf](r)):this[gf](r):!1;if(e==="end")return this[qw]();if(e==="close"){if(this[Ta]=!0,!this[Ir]&&!this[Ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ss]=r;let s=super.emit("error",r);return this[hr](),s}else if(e==="resume"){let s=super.emit("resume");return this[hr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[hr](),n}[gf](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[hr](),r}[qw](){this[Ir]||(this[Ir]=!0,this.readable=!1,this[dr]?As(()=>this[_f]()):this[_f]())}[_f](){if(this[fr]){let r=this[fr].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ve]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ve]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ve]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ve]?Promise.reject(new Error("cannot concat in objectMode")):this[it]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[YB](){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 i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[lr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ye,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[KB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ye]?(e?this.emit("error",e):this.emit(Ye),this):(this[Ye]=!0,this.buffer.length=0,this[Me]=0,typeof this.close=="function"&&!this[Ta]&&this.close(),e?this.emit("error",e):this.emit(Ye),this)}static isStream(e){return!!e&&(e instanceof Uw||e instanceof Iw||e instanceof VB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var If=O(ct=>{"use strict";var Af=require("assert"),Nr=require("buffer").Buffer,Ww=require("zlib"),di=ct.constants=Lw(),QB=Ef(),Gw=Nr.concat,pi=Symbol("_superWrite"),ln=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"}},eI=Symbol("opts"),xs=Symbol("flushFlag"),zw=Symbol("finishFlushFlag"),Bf=Symbol("fullFlushFlag"),ve=Symbol("handle"),Pa=Symbol("onError"),cn=Symbol("sawError"),wf=Symbol("level"),vf=Symbol("strategy"),Sf=Symbol("ended"),j4=Symbol("_defaultFullFlush"),La=class extends QB{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[cn]=!1,this[Sf]=!1,this[eI]=e,this[xs]=e.flush,this[zw]=e.finishFlush;try{this[ve]=new Ww[r](e)}catch(i){throw new ln(i)}this[Pa]=i=>{this[cn]||(this[cn]=!0,this.close(),this.emit("error",i))},this[ve].on("error",i=>this[Pa](new ln(i))),this.once("end",()=>this.close)}close(){this[ve]&&(this[ve].close(),this[ve]=null,this.emit("close"))}reset(){if(!this[cn])return Af(this[ve],"zlib binding closed"),this[ve].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Bf]),this.write(Object.assign(Nr.alloc(0),{[xs]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[zw]),this[Sf]=!0,super.end(null,null,i)}get ended(){return this[Sf]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=Nr.from(e,r)),this[cn])return;Af(this[ve],"zlib binding closed");let n=this[ve]._handle,s=n.close;n.close=()=>{};let o=this[ve].close;this[ve].close=()=>{},Nr.concat=c=>c;let a;try{let c=typeof e[xs]=="number"?e[xs]:this[xs];a=this[ve]._processChunk(e,c),Nr.concat=Gw}catch(c){Nr.concat=Gw,this[Pa](new ln(c))}finally{this[ve]&&(this[ve]._handle=n,n.close=s,this[ve].close=o,this[ve].removeAllListeners("error"))}this[ve]&&this[ve].on("error",c=>this[Pa](new ln(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[pi](Nr.from(a[0]));for(let c=1;c<a.length;c++)u=this[pi](a[c])}else u=this[pi](Nr.from(a));return i&&i(),u}[pi](e){return super.write(e)}},pr=class extends La{constructor(e,r){e=e||{},e.flush=e.flush||di.Z_NO_FLUSH,e.finishFlush=e.finishFlush||di.Z_FINISH,super(e,r),this[Bf]=di.Z_FULL_FLUSH,this[wf]=e.level,this[vf]=e.strategy}params(e,r){if(!this[cn]){if(!this[ve])throw new Error("cannot switch params when binding is closed");if(!this[ve].params)throw new Error("not supported in this implementation");if(this[wf]!==e||this[vf]!==r){this.flush(di.Z_SYNC_FLUSH),Af(this[ve],"zlib binding closed");let i=this[ve].flush;this[ve].flush=(n,s)=>{this.flush(n),s()};try{this[ve].params(e,r)}finally{this[ve].flush=i}this[ve]&&(this[wf]=e,this[vf]=r)}}}},xf=class extends pr{constructor(e){super(e,"Deflate")}},Cf=class extends pr{constructor(e){super(e,"Inflate")}},Df=Symbol("_portable"),Rf=class extends pr{constructor(e){super(e,"Gzip"),this[Df]=e&&!!e.portable}[pi](e){return this[Df]?(this[Df]=!1,e[9]=255,super[pi](e)):super[pi](e)}},Tf=class extends pr{constructor(e){super(e,"Gunzip")}},kf=class extends pr{constructor(e){super(e,"DeflateRaw")}},Of=class extends pr{constructor(e){super(e,"InflateRaw")}},Ff=class extends pr{constructor(e){super(e,"Unzip")}},Ba=class extends La{constructor(e,r){e=e||{},e.flush=e.flush||di.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||di.BROTLI_OPERATION_FINISH,super(e,r),this[Bf]=di.BROTLI_OPERATION_FLUSH}},Pf=class extends Ba{constructor(e){super(e,"BrotliCompress")}},Lf=class extends Ba{constructor(e){super(e,"BrotliDecompress")}};ct.Deflate=xf;ct.Inflate=Cf;ct.Gzip=Rf;ct.Gunzip=Tf;ct.DeflateRaw=kf;ct.InflateRaw=Of;ct.Unzip=Ff;typeof Ww.BrotliCompress=="function"?(ct.BrotliCompress=Pf,ct.BrotliDecompress=Lf):ct.BrotliCompress=ct.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var hn=O((U4,Vw)=>{var tI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Vw.exports=tI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Ia=O((G4,Yw)=>{"use strict";var rI=Ca(),Nf=hn(),Mf=Symbol("slurp");Yw.exports=class extends rI{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Nf(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=Nf(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Mf](r),i&&this[Mf](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[Mf](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Nf(e[i]):e[i])}}});var jf=O(Na=>{"use strict";Na.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"]]);Na.code=new Map(Array.from(Na.name).map(t=>[t[1],t[0]]))});var Xw=O((W4,Jw)=>{"use strict";var iI=(t,e)=>{if(Number.isSafeInteger(t))t<0?sI(t,e):nI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},nI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},sI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=Kw(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Zw(n))}},oI=t=>{let e=t[0],r=e===128?uI(t.slice(1,t.length)):e===255?aI(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},aI=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Kw(s):s===0?o=s:(i=!0,o=Zw(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},uI=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},Kw=t=>(255^t)&255,Zw=t=>(255^t)+1&255;Jw.exports={encode:iI,parse:oI}});var dn=O((V4,ev)=>{"use strict";var qf=jf(),fn=require("path").posix,Qw=Xw(),Hf=Symbol("slurp"),lt=Symbol("type"),Gf=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[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,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=mi(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=Uf(e,r+136,12),this.cksum=Mr(e,r+148,12),this[Hf](i),this[Hf](n,!0),this[lt]=mi(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=mi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=mi(e,r+265,32),this.gname=mi(e,r+297,32),this.devmaj=Mr(e,r+329,8),this.devmin=Mr(e,r+337,8),e[r+475]!==0){let o=mi(e,r+345,155);this.path=o+"/"+this.path}else{let o=mi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Uf(e,r+476,12),this.ctime=Uf(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)}[Hf](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=cI(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=yi(e,r,100,s)||this.needPax,this.needPax=jr(e,r+100,8,this.mode)||this.needPax,this.needPax=jr(e,r+108,8,this.uid)||this.needPax,this.needPax=jr(e,r+116,8,this.gid)||this.needPax,this.needPax=jr(e,r+124,12,this.size)||this.needPax,this.needPax=$f(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[lt].charCodeAt(0),this.needPax=yi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=yi(e,r+265,32,this.uname)||this.needPax,this.needPax=yi(e,r+297,32,this.gname)||this.needPax,this.needPax=jr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=jr(e,r+337,8,this.devmin)||this.needPax,this.needPax=yi(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=yi(e,r+345,155,o)||this.needPax:(this.needPax=yi(e,r+345,130,o)||this.needPax,this.needPax=$f(e,r+476,12,this.atime)||this.needPax,this.needPax=$f(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,jr(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 qf.name.get(this[lt])||this[lt]}get typeKey(){return this[lt]}set type(e){qf.code.has(e)?this[lt]=qf.code.get(e):this[lt]=e}},cI=(t,e)=>{let i=t,n="",s,o=fn.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=fn.dirname(i),i=fn.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=fn.join(fn.basename(n),i),n=fn.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},mi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Uf=(t,e,r)=>lI(Mr(t,e,r)),lI=t=>t===null?null:new Date(t*1e3),Mr=(t,e,r)=>t[e]&128?Qw.parse(t.slice(e,e+r)):fI(t,e,r),hI=t=>isNaN(t)?null:t,fI=(t,e,r)=>hI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),dI={12:8589934591,8:2097151},jr=(t,e,r,i)=>i===null?!1:i>dI[r]||i<0?(Qw.encode(i,t.slice(e,e+r)),!0):(pI(t,e,r,i),!1),pI=(t,e,r,i)=>t.write(mI(i,r),e,r,"ascii"),mI=(t,e)=>yI(Math.floor(t).toString(8),e),yI=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",$f=(t,e,r,i)=>i===null?!1:jr(t,e,r,i.getTime()/1e3),gI=new Array(156).join("\0"),yi=(t,e,r,i)=>i===null?!1:(t.write(i+gI,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);ev.exports=Gf});var Ma=O((Y4,tv)=>{"use strict";var _I=dn(),bI=require("path"),Cs=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new _I({path:("PaxHeader/"+bI.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
13
|
-
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};
|
14
|
-
`).reduce(vI,Object.create(null)),vI=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};tv.exports=Cs});var pn=O((K4,rv)=>{rv.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 ja=O((Z4,iv)=>{"use strict";iv.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Wf=O((X4,nv)=>{"use strict";var qa=["|","<",">","?",":"],zf=qa.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),SI=new Map(qa.map((t,e)=>[t,zf[e]])),DI=new Map(zf.map((t,e)=>[t,qa[e]]));nv.exports={encode:t=>qa.reduce((e,r)=>e.split(r).join(SI.get(r)),t),decode:t=>zf.reduce((e,r)=>e.split(r).join(DI.get(r)),t)}});var Vf=O((Q4,ov)=>{var{isAbsolute:AI,parse:sv}=require("path").win32;ov.exports=t=>{let e="",r=sv(t);for(;AI(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=sv(t)}return[e,t]}});var uv=O((e9,av)=>{"use strict";av.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 id=O((i9,vv)=>{"use strict";var mv=Ca(),yv=Ma(),gv=dn(),Gt=require("fs"),cv=require("path"),$t=hn(),xI=pn(),_v=(t,e)=>e?(t=$t(t).replace(/^\.(\/|$)/,""),xI(e)+"/"+t):$t(t),CI=16*1024*1024,lv=Symbol("process"),hv=Symbol("file"),fv=Symbol("directory"),Kf=Symbol("symlink"),dv=Symbol("hardlink"),Rs=Symbol("header"),Ha=Symbol("read"),Zf=Symbol("lstat"),Ua=Symbol("onlstat"),Jf=Symbol("onread"),Xf=Symbol("onreadlink"),Qf=Symbol("openfile"),ed=Symbol("onopenfile"),qr=Symbol("close"),$a=Symbol("mode"),td=Symbol("awaitDrain"),Yf=Symbol("ondrain"),zt=Symbol("prefix"),pv=Symbol("hadError"),bv=ja(),RI=Wf(),Ev=Vf(),wv=uv(),Ga=bv(class extends mv{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||CI,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 i=!1;if(!this.preservePaths){let[n,s]=Ev(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=RI.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=$t(r.absolute||cv.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ua](this.statCache.get(this.absolute)):this[Zf]()}emit(e,...r){return e==="error"&&(this[pv]=!0),super.emit(e,...r)}[Zf](){Gt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ua](r)})}[Ua](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=kI(e),this.emit("stat",e),this[lv]()}[lv](){switch(this.type){case"File":return this[hv]();case"Directory":return this[fv]();case"SymbolicLink":return this[Kf]();default:return this.end()}}[$a](e){return wv(e,this.type==="Directory",this.portable)}[zt](e){return _v(e,this.prefix)}[Rs](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new gv({path:this[zt](this.path),linkpath:this.type==="Link"?this[zt](this.linkpath):this.linkpath,mode:this[$a](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new yv({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[zt](this.path),linkpath:this.type==="Link"?this[zt](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)}[fv](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Rs](),this.end()}[Kf](){Gt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Xf](r)})}[Xf](e){this.linkpath=$t(e),this[Rs](),this.end()}[dv](e){this.type="Link",this.linkpath=$t(cv.relative(this.cwd,e)),this.stat.size=0,this[Rs](),this.end()}[hv](){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[dv](r)}this.linkCache.set(e,this.absolute)}if(this[Rs](),this.stat.size===0)return this.end();this[Qf]()}[Qf](){Gt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[ed](r)})}[ed](e){if(this.fd=e,this[pv])return this[qr]();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[Ha]()}[Ha](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Gt.read(e,r,i,n,s,(o,a)=>{if(o)return this[qr](()=>this.emit("error",o));this[Jf](a)})}[qr](e){Gt.close(this.fd,e)}[Jf](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[qr](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[qr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Yf]():this[td](()=>this[Yf]())}[td](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)}[Yf](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[qr](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[Ha]()}}),rd=class extends Ga{[Zf](){this[Ua](Gt.lstatSync(this.absolute))}[Kf](){this[Xf](Gt.readlinkSync(this.absolute))}[Qf](){this[ed](Gt.openSync(this.absolute,"r"))}[Ha](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=Gt.readSync(r,i,n,s,o);this[Jf](a),e=!1}finally{if(e)try{this[qr](()=>{})}catch{}}}[td](e){e()}[qr](e){Gt.closeSync(this.fd),e()}},TI=bv(class extends mv{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[$a](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 i=!1;if(!this.preservePaths){let[n,s]=Ev(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new gv({path:this[zt](this.path),linkpath:this.type==="Link"?this[zt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new yv({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[zt](this.path),linkpath:this.type==="Link"?this[zt](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)}[zt](e){return _v(e,this.prefix)}[$a](e){return wv(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()}});Ga.Sync=rd;Ga.Tar=TI;var kI=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";vv.exports=Ga});var Dv=O((n9,Sv)=>{"use strict";Sv.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var nd=O((s9,Av)=>{"use strict";Av.exports=ge;ge.Node=gi;ge.create=ge;function ge(t){var e=this;if(e instanceof ge||(e=new ge),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}ge.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};ge.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++}};ge.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++}};ge.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)FI(this,arguments[t]);return this.length};ge.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)PI(this,arguments[t]);return this.length};ge.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}};ge.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}};ge.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};ge.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};ge.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};ge.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};ge.prototype.map=function(t,e){e=e||this;for(var r=new ge,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};ge.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ge,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};ge.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};ge.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};ge.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};ge.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};ge.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 ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};ge.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 ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};ge.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=OI(this,n,r[i]);return s};ge.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function OI(t,e,r){var i=e===t.head?new gi(r,null,e,t):new gi(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function FI(t,e){t.tail=new gi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function PI(t,e){t.head=new gi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function gi(t,e,r,i){if(!(this instanceof gi))return new gi(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Dv()(ge)}catch{}});var Qa=O((a9,Fv)=>{"use strict";var Ja=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}},LI=Ca(),BI=If(),II=Ia(),dd=id(),NI=dd.Sync,MI=dd.Tar,jI=nd(),xv=Buffer.alloc(1024),Va=Symbol("onStat"),za=Symbol("ended"),Wt=Symbol("queue"),mn=Symbol("current"),_i=Symbol("process"),Wa=Symbol("processing"),Cv=Symbol("processJob"),Vt=Symbol("jobs"),sd=Symbol("jobDone"),Ya=Symbol("addFSEntry"),Rv=Symbol("addTarEntry"),cd=Symbol("stat"),ld=Symbol("readdir"),Ka=Symbol("onreaddir"),Za=Symbol("pipe"),Tv=Symbol("entry"),od=Symbol("entryOpt"),hd=Symbol("writeEntryClass"),Ov=Symbol("write"),ad=Symbol("ondrain"),Xa=require("fs"),kv=require("path"),qI=ja(),ud=hn(),pd=qI(class extends LI{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=ud(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[hd]=dd,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 BI.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[ad]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[ad]),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 jI,this[Vt]=0,this.jobs=+e.jobs||4,this[Wa]=!1,this[za]=!1}[Ov](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[za]=!0,this[_i](),this}write(e){if(this[za])throw new Error("write after end");return e instanceof II?this[Rv](e):this[Ya](e),this.flowing}[Rv](e){let r=ud(kv.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ja(e.path,r,!1);i.entry=new MI(e,this[od](i)),i.entry.on("end",n=>this[sd](i)),this[Vt]+=1,this[Wt].push(i)}this[_i]()}[Ya](e){let r=ud(kv.resolve(this.cwd,e));this[Wt].push(new Ja(e,r)),this[_i]()}[cd](e){e.pending=!0,this[Vt]+=1;let r=this.follow?"stat":"lstat";Xa[r](e.absolute,(i,n)=>{e.pending=!1,this[Vt]-=1,i?this.emit("error",i):this[Va](e,n)})}[Va](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[_i]()}[ld](e){e.pending=!0,this[Vt]+=1,Xa.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Vt]-=1,r)return this.emit("error",r);this[Ka](e,i)})}[Ka](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[_i]()}[_i](){if(!this[Wa]){this[Wa]=!0;for(let e=this[Wt].head;e!==null&&this[Vt]<this.jobs;e=e.next)if(this[Cv](e.value),e.value.ignore){let r=e.next;this[Wt].removeNode(e),e.next=r}this[Wa]=!1,this[za]&&!this[Wt].length&&this[Vt]===0&&(this.zip?this.zip.end(xv):(super.write(xv),super.end()))}}get[mn](){return this[Wt]&&this[Wt].head&&this[Wt].head.value}[sd](e){this[Wt].shift(),this[Vt]-=1,this[_i]()}[Cv](e){if(!e.pending){if(e.entry){e===this[mn]&&!e.piped&&this[Za](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Va](e,this.statCache.get(e.absolute)):this[cd](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ka](e,this.readdirCache.get(e.absolute)):this[ld](e),!e.readdir))){if(e.entry=this[Tv](e),!e.entry){e.ignore=!0;return}e===this[mn]&&!e.piped&&this[Za](e)}}}[od](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[Tv](e){this[Vt]+=1;try{return new this[hd](e.path,this[od](e)).on("end",()=>this[sd](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[ad](){this[mn]&&this[mn].entry&&this[mn].entry.resume()}[Za](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ya](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),fd=class extends pd{constructor(e){super(e),this[hd]=NI}pause(){}resume(){}[cd](e){let r=this.follow?"statSync":"lstatSync";this[Va](e,Xa[r](e.absolute))}[ld](e,r){this[Ka](e,Xa.readdirSync(e.absolute))}[Za](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ya](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[Ov](n)})}};pd.Sync=fd;Fv.exports=pd});var Sn=O(ks=>{"use strict";var HI=Ef(),UI=require("events").EventEmitter,nt=require("fs"),gd=nt.writev;if(!gd){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;gd=(r,i,n,s)=>{let o=(u,c)=>s(u,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var wn=Symbol("_autoClose"),Tt=Symbol("_close"),Ts=Symbol("_ended"),Ee=Symbol("_fd"),Pv=Symbol("_finished"),Ur=Symbol("_flags"),md=Symbol("_flush"),_d=Symbol("_handleChunk"),bd=Symbol("_makeBuf"),nu=Symbol("_mode"),eu=Symbol("_needDrain"),bn=Symbol("_onerror"),vn=Symbol("_onopen"),yd=Symbol("_onread"),gn=Symbol("_onwrite"),$r=Symbol("_open"),mr=Symbol("_path"),bi=Symbol("_pos"),Yt=Symbol("_queue"),_n=Symbol("_read"),Lv=Symbol("_readSize"),Hr=Symbol("_reading"),tu=Symbol("_remain"),Bv=Symbol("_size"),ru=Symbol("_write"),yn=Symbol("_writing"),iu=Symbol("_defaultFlag"),En=Symbol("_errored"),su=class extends HI{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[En]=!1,this[Ee]=typeof r.fd=="number"?r.fd:null,this[mr]=e,this[Lv]=r.readSize||16*1024*1024,this[Hr]=!1,this[Bv]=typeof r.size=="number"?r.size:1/0,this[tu]=this[Bv],this[wn]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Ee]=="number"?this[_n]():this[$r]()}get fd(){return this[Ee]}get path(){return this[mr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[$r](){nt.open(this[mr],"r",(e,r)=>this[vn](e,r))}[vn](e,r){e?this[bn](e):(this[Ee]=r,this.emit("open",r),this[_n]())}[bd](){return Buffer.allocUnsafe(Math.min(this[Lv],this[tu]))}[_n](){if(!this[Hr]){this[Hr]=!0;let e=this[bd]();if(e.length===0)return process.nextTick(()=>this[yd](null,0,e));nt.read(this[Ee],e,0,e.length,null,(r,i,n)=>this[yd](r,i,n))}}[yd](e,r,i){this[Hr]=!1,e?this[bn](e):this[_d](r,i)&&this[_n]()}[Tt](){if(this[wn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[bn](e){this[Hr]=!0,this[Tt](),this.emit("error",e)}[_d](e,r){let i=!1;return this[tu]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[tu]<=0)&&(i=!1,this[Tt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Ee]=="number"&&this[_n]();break;case"error":return this[En]?void 0:(this[En]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Ed=class extends su{[$r](){let e=!0;try{this[vn](null,nt.openSync(this[mr],"r")),e=!1}finally{e&&this[Tt]()}}[_n](){let e=!0;try{if(!this[Hr]){this[Hr]=!0;do{let r=this[bd](),i=r.length===0?0:nt.readSync(this[Ee],r,0,r.length,null);if(!this[_d](i,r))break}while(!0);this[Hr]=!1}e=!1}finally{e&&this[Tt]()}}[Tt](){if(this[wn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.closeSync(e),this.emit("close")}}},ou=class extends UI{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[En]=!1,this[yn]=!1,this[Ts]=!1,this[eu]=!1,this[Yt]=[],this[mr]=e,this[Ee]=typeof r.fd=="number"?r.fd:null,this[nu]=r.mode===void 0?438:r.mode,this[bi]=typeof r.start=="number"?r.start:null,this[wn]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[bi]!==null?"r+":"w";this[iu]=r.flags===void 0,this[Ur]=this[iu]?i:r.flags,this[Ee]===null&&this[$r]()}emit(e,r){if(e==="error"){if(this[En])return;this[En]=!0}return super.emit(e,r)}get fd(){return this[Ee]}get path(){return this[mr]}[bn](e){this[Tt](),this[yn]=!0,this.emit("error",e)}[$r](){nt.open(this[mr],this[Ur],this[nu],(e,r)=>this[vn](e,r))}[vn](e,r){this[iu]&&this[Ur]==="r+"&&e&&e.code==="ENOENT"?(this[Ur]="w",this[$r]()):e?this[bn](e):(this[Ee]=r,this.emit("open",r),this[md]())}end(e,r){return e&&this.write(e,r),this[Ts]=!0,!this[yn]&&!this[Yt].length&&typeof this[Ee]=="number"&&this[gn](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Ts]?(this.emit("error",new Error("write() after end()")),!1):this[Ee]===null||this[yn]||this[Yt].length?(this[Yt].push(e),this[eu]=!0,!1):(this[yn]=!0,this[ru](e),!0)}[ru](e){nt.write(this[Ee],e,0,e.length,this[bi],(r,i)=>this[gn](r,i))}[gn](e,r){e?this[bn](e):(this[bi]!==null&&(this[bi]+=r),this[Yt].length?this[md]():(this[yn]=!1,this[Ts]&&!this[Pv]?(this[Pv]=!0,this[Tt](),this.emit("finish")):this[eu]&&(this[eu]=!1,this.emit("drain"))))}[md](){if(this[Yt].length===0)this[Ts]&&this[gn](null,0);else if(this[Yt].length===1)this[ru](this[Yt].pop());else{let e=this[Yt];this[Yt]=[],gd(this[Ee],e,this[bi],(r,i)=>this[gn](r,i))}}[Tt](){if(this[wn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},wd=class extends ou{[$r](){let e;if(this[iu]&&this[Ur]==="r+")try{e=nt.openSync(this[mr],this[Ur],this[nu])}catch(r){if(r.code==="ENOENT")return this[Ur]="w",this[$r]();throw r}else e=nt.openSync(this[mr],this[Ur],this[nu]);this[vn](null,e)}[Tt](){if(this[wn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.closeSync(e),this.emit("close")}}[ru](e){let r=!0;try{this[gn](null,nt.writeSync(this[Ee],e,0,e.length,this[bi])),r=!1}finally{if(r)try{this[Tt]()}catch{}}}};ks.ReadStream=su;ks.ReadStreamSync=Ed;ks.WriteStream=ou;ks.WriteStreamSync=wd});var du=O((l9,$v)=>{"use strict";var $I=ja(),GI=dn(),zI=require("events"),WI=nd(),VI=1024*1024,YI=Ia(),Iv=Ma(),KI=If(),{nextTick:ZI}=require("process"),vd=Buffer.from([31,139]),_t=Symbol("state"),Ei=Symbol("writeEntry"),yr=Symbol("readEntry"),Sd=Symbol("nextEntry"),Nv=Symbol("processEntry"),bt=Symbol("extendedHeader"),Os=Symbol("globalExtendedHeader"),Gr=Symbol("meta"),Mv=Symbol("emitMeta"),Se=Symbol("buffer"),gr=Symbol("queue"),wi=Symbol("ended"),jv=Symbol("emittedEnd"),vi=Symbol("emit"),st=Symbol("unzip"),au=Symbol("consumeChunk"),uu=Symbol("consumeChunkSub"),Dd=Symbol("consumeBody"),qv=Symbol("consumeMeta"),Hv=Symbol("consumeHeader"),cu=Symbol("consuming"),Ad=Symbol("bufferConcat"),xd=Symbol("maybeEnd"),Fs=Symbol("writing"),zr=Symbol("aborted"),lu=Symbol("onDone"),Si=Symbol("sawValidEntry"),hu=Symbol("sawNullBlock"),fu=Symbol("sawEOF"),Uv=Symbol("closeStream"),JI=t=>!0;$v.exports=$I(class extends zI{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Si]=null,this.on(lu,r=>{(this[_t]==="begin"||this[Si]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(lu,e.ondone):this.on(lu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||VI,this.filter=typeof e.filter=="function"?e.filter:JI,this.writable=!0,this.readable=!1,this[gr]=new WI,this[Se]=null,this[yr]=null,this[Ei]=null,this[_t]="begin",this[Gr]="",this[bt]=null,this[Os]=null,this[wi]=!1,this[st]=null,this[zr]=!1,this[hu]=!1,this[fu]=!1,this.on("end",()=>this[Uv]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Hv](e,r){this[Si]===null&&(this[Si]=!1);let i;try{i=new GI(e,r,this[bt],this[Os])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[hu]?(this[fu]=!0,this[_t]==="begin"&&(this[_t]="header"),this[vi]("eof")):(this[hu]=!0,this[vi]("nullBlock"));else if(this[hu]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Ei]=new YI(i,this[bt],this[Os]);if(!this[Si])if(s.remain){let o=()=>{s.invalid||(this[Si]=!0)};s.on("end",o)}else this[Si]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[vi]("ignoredEntry",s),this[_t]="ignore",s.resume()):s.size>0&&(this[Gr]="",s.on("data",o=>this[Gr]+=o),this[_t]="meta"):(this[bt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[vi]("ignoredEntry",s),this[_t]=s.remain?"ignore":"header",s.resume()):(s.remain?this[_t]="body":(this[_t]="header",s.end()),this[yr]?this[gr].push(s):(this[gr].push(s),this[Sd]())))}}}[Uv](){ZI(()=>this.emit("close"))}[Nv](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[yr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Sd]()),r=!1)):(this[yr]=null,r=!1),r}[Sd](){do;while(this[Nv](this[gr].shift()));if(!this[gr].length){let e=this[yr];!e||e.flowing||e.size===e.remain?this[Fs]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Dd](e,r){let i=this[Ei],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[_t]="header",this[Ei]=null,i.end()),s.length}[qv](e,r){let i=this[Ei],n=this[Dd](e,r);return this[Ei]||this[Mv](i),n}[vi](e,r,i){!this[gr].length&&!this[yr]?this.emit(e,r,i):this[gr].push([e,r,i])}[Mv](e){switch(this[vi]("meta",this[Gr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[bt]=Iv.parse(this[Gr],this[bt],!1);break;case"GlobalExtendedHeader":this[Os]=Iv.parse(this[Gr],this[Os],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[bt]=this[bt]||Object.create(null),this[bt].path=this[Gr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[bt]=this[bt]||Object.create(null),this[bt].linkpath=this[Gr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[zr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[zr])return;if(this[st]===null&&e){if(this[Se]&&(e=Buffer.concat([this[Se],e]),this[Se]=null),e.length<vd.length)return this[Se]=e,!0;for(let i=0;this[st]===null&&i<vd.length;i++)e[i]!==vd[i]&&(this[st]=!1);if(this[st]===null){let i=this[wi];this[wi]=!1,this[st]=new KI.Unzip,this[st].on("data",s=>this[au](s)),this[st].on("error",s=>this.abort(s)),this[st].on("end",s=>{this[wi]=!0,this[au]()}),this[Fs]=!0;let n=this[st][i?"end":"write"](e);return this[Fs]=!1,n}}this[Fs]=!0,this[st]?this[st].write(e):this[au](e),this[Fs]=!1;let r=this[gr].length?!1:this[yr]?this[yr].flowing:!0;return!r&&!this[gr].length&&this[yr].once("drain",i=>this.emit("drain")),r}[Ad](e){e&&!this[zr]&&(this[Se]=this[Se]?Buffer.concat([this[Se],e]):e)}[xd](){if(this[wi]&&!this[jv]&&!this[zr]&&!this[cu]){this[jv]=!0;let e=this[Ei];if(e&&e.blockRemain){let r=this[Se]?this[Se].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Se]&&e.write(this[Se]),e.end()}this[vi](lu)}}[au](e){if(this[cu])this[Ad](e);else if(!e&&!this[Se])this[xd]();else{if(this[cu]=!0,this[Se]){this[Ad](e);let r=this[Se];this[Se]=null,this[uu](r)}else this[uu](e);for(;this[Se]&&this[Se].length>=512&&!this[zr]&&!this[fu];){let r=this[Se];this[Se]=null,this[uu](r)}this[cu]=!1}(!this[Se]||this[wi])&&this[xd]()}[uu](e){let r=0,i=e.length;for(;r+512<=i&&!this[zr]&&!this[fu];)switch(this[_t]){case"begin":case"header":this[Hv](e,r),r+=512;break;case"ignore":case"body":r+=this[Dd](e,r);break;case"meta":r+=this[qv](e,r);break;default:throw new Error("invalid state: "+this[_t])}r<i&&(this[Se]?this[Se]=Buffer.concat([e.slice(r),this[Se]]):this[Se]=e.slice(r))}end(e){this[zr]||(this[st]?this[st].end(e):(this[wi]=!0,this.write(e)))}})});var pu=O((h9,Vv)=>{"use strict";var XI=on(),zv=du(),Dn=require("fs"),QI=Sn(),Gv=require("path"),Cd=pn();Vv.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=XI(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&tN(i,e),i.noResume||eN(i),i.file&&i.sync?rN(i):i.file?iN(i,r):Wv(i)};var eN=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},tN=(t,e)=>{let r=new Map(e.map(s=>[Cd(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Gv.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(Gv.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Cd(s)):s=>n(Cd(s))},rN=t=>{let e=Wv(t),r=t.file,i=!0,n;try{let s=Dn.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Dn.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=Dn.openSync(r,"r");a<s.size;){let c=Dn.readSync(n,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{Dn.closeSync(n)}catch{}}},iN=(t,e)=>{let r=new zv(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Dn.stat(n,(u,c)=>{if(u)a(u);else{let l=new QI.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},Wv=t=>new zv(t)});var Qv=O((f9,Xv)=>{"use strict";var nN=on(),mu=Qa(),Yv=Sn(),Kv=pu(),Zv=require("path");Xv.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=nN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?sN(i,e):i.file?oN(i,e,r):i.sync?aN(i,e):uN(i,e)};var sN=(t,e)=>{let r=new mu.Sync(t),i=new Yv.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Jv(r,e)},oN=(t,e,r)=>{let i=new mu(t),n=new Yv.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return Rd(i,e),r?s.then(r,r):s},Jv=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Kv({file:Zv.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Rd=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Kv({file:Zv.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Rd(t,e));t.add(r)}t.end()},aN=(t,e)=>{let r=new mu.Sync(t);return Jv(r,e),r},uN=(t,e)=>{let r=new mu(t);return Rd(r,e),r}});var Td=O((d9,oS)=>{"use strict";var cN=on(),eS=Qa(),ht=require("fs"),tS=Sn(),rS=pu(),iS=require("path"),nS=dn();oS.exports=(t,e,r)=>{let i=cN(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?lN(i,e):fN(i,e,r)};var lN=(t,e)=>{let r=new eS.Sync(t),i=!0,n,s;try{try{n=ht.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=ht.openSync(t.file,"w+");else throw u}let o=ht.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,h=0;l<512;l+=h){if(h=ht.readSync(n,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new nS(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)}i=!1,hN(t,r,s,n,e)}finally{if(i)try{ht.closeSync(n)}catch{}}},hN=(t,e,r,i,n)=>{let s=new tS.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),dN(e,n)},fN=(t,e,r)=>{e=Array.from(e);let i=new eS(t),n=(o,a,u)=>{let c=(m,y)=>{m?ht.close(o,p=>u(m)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return ht.read(o,f,h,f.length-h,l+h,d);if(l===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,l);let p=new nS(f);if(!p.cksumValid)return c(null,l);let _=512*Math.ceil(p.size/512);if(l+_+512>a||(l+=_+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),h=0,ht.read(o,f,0,512,l,d)};ht.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",ht.open(t.file,u,c);if(l)return a(l);ht.fstat(h,(f,d)=>{if(f)return ht.close(h,()=>a(f));n(h,d.size,(m,y)=>{if(m)return a(m);let p=new tS.WriteStream(t.file,{fd:h,start:y});i.pipe(p),p.on("error",a),p.on("close",o),sS(i,e)})})};ht.open(t.file,u,c)});return r?s.then(r,r):s},dN=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?rS({file:iS.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},sS=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return rS({file:iS.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>sS(t,e));t.add(r)}t.end()}});var uS=O((p9,aS)=>{"use strict";var pN=on(),mN=Td();aS.exports=(t,e,r)=>{let i=pN(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),yN(i),mN(i,e,r)};var yN=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var hS=O((m9,lS)=>{var{promisify:cS}=require("util"),Wr=require("fs"),gN=t=>{if(!t)t={mode:511,fs:Wr};else if(typeof t=="object")t={mode:511,fs:Wr,...t};else if(typeof t=="number")t={mode:t,fs:Wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Wr.mkdir,t.mkdirAsync=cS(t.mkdir),t.stat=t.stat||t.fs.stat||Wr.stat,t.statAsync=cS(t.stat),t.statSync=t.statSync||t.fs.statSync||Wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Wr.mkdirSync,t};lS.exports=gN});var dS=O((y9,fS)=>{var _N=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:bN,parse:EN}=require("path"),wN=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=bN(t),_N==="win32"){let e=/[*|"<>?:]/,{root:r}=EN(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};fS.exports=wN});var _S=O((g9,gS)=>{var{dirname:pS}=require("path"),mS=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?mS(t,pS(e),e):void 0),yS=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?yS(t,pS(e),e):void 0}};gS.exports={findMade:mS,findMadeSync:yS}});var Fd=O((_9,ES)=>{var{dirname:bS}=require("path"),kd=(t,e,r)=>{e.recursive=!1;let i=bS(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return kd(i,e).then(s=>kd(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Od=(t,e,r)=>{let i=bS(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Od(t,e,Od(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};ES.exports={mkdirpManual:kd,mkdirpManualSync:Od}});var SS=O((b9,vS)=>{var{dirname:wS}=require("path"),{findMade:vN,findMadeSync:SN}=_S(),{mkdirpManual:DN,mkdirpManualSync:AN}=Fd(),xN=(t,e)=>(e.recursive=!0,wS(t)===t?e.mkdirAsync(t,e):vN(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return DN(t,e);throw n}))),CN=(t,e)=>{if(e.recursive=!0,wS(t)===t)return e.mkdirSync(t,e);let i=SN(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return AN(t,e);throw n}};vS.exports={mkdirpNative:xN,mkdirpNativeSync:CN}});var CS=O((E9,xS)=>{var DS=require("fs"),RN=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Pd=RN.replace(/^v/,"").split("."),AS=+Pd[0]>10||+Pd[0]==10&&+Pd[1]>=12,TN=AS?t=>t.mkdir===DS.mkdir:()=>!1,kN=AS?t=>t.mkdirSync===DS.mkdirSync:()=>!1;xS.exports={useNative:TN,useNativeSync:kN}});var PS=O((w9,FS)=>{var An=hS(),xn=dS(),{mkdirpNative:RS,mkdirpNativeSync:TS}=SS(),{mkdirpManual:kS,mkdirpManualSync:OS}=Fd(),{useNative:ON,useNativeSync:FN}=CS(),Cn=(t,e)=>(t=xn(t),e=An(e),ON(e)?RS(t,e):kS(t,e)),PN=(t,e)=>(t=xn(t),e=An(e),FN(e)?TS(t,e):OS(t,e));Cn.sync=PN;Cn.native=(t,e)=>RS(xn(t),An(e));Cn.manual=(t,e)=>kS(xn(t),An(e));Cn.nativeSync=(t,e)=>TS(xn(t),An(e));Cn.manualSync=(t,e)=>OS(xn(t),An(e));FS.exports=Cn});var qS=O((v9,jS)=>{"use strict";var Et=require("fs"),Di=require("path"),LN=Et.lchown?"lchown":"chown",BN=Et.lchownSync?"lchownSync":"chownSync",BS=Et.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),LS=(t,e,r)=>{try{return Et[BN](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IN=(t,e,r)=>{try{return Et.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},NN=BS?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Et.chown(t,e,r,i)}:(t,e,r,i)=>i,Ld=BS?(t,e,r)=>{try{return LS(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;IN(t,e,r)}}:(t,e,r)=>LS(t,e,r),MN=process.version,IS=(t,e,r)=>Et.readdir(t,e,r),jN=(t,e)=>Et.readdirSync(t,e);/^v4\./.test(MN)&&(IS=(t,e,r)=>Et.readdir(t,r));var yu=(t,e,r,i)=>{Et[LN](t,e,r,NN(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},NS=(t,e,r,i,n)=>{if(typeof e=="string")return Et.lstat(Di.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,NS(t,o,r,i,n)});if(e.isDirectory())Bd(Di.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Di.resolve(t,e.name);yu(o,r,i,n)});else{let s=Di.resolve(t,e.name);yu(s,r,i,n)}},Bd=(t,e,r,i)=>{IS(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return yu(t,e,r,i);let o=s.length,a=null,u=c=>{if(!a){if(c)return i(a=c);if(--o===0)return yu(t,e,r,i)}};s.forEach(c=>NS(t,c,e,r,u))})},qN=(t,e,r,i)=>{if(typeof e=="string")try{let n=Et.lstatSync(Di.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&MS(Di.resolve(t,e.name),r,i),Ld(Di.resolve(t,e.name),r,i)},MS=(t,e,r)=>{let i;try{i=jN(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Ld(t,e,r);throw n}return i&&i.length&&i.forEach(n=>qN(t,n,e,r)),Ld(t,e,r)};jS.exports=Bd;Bd.sync=MS});var GS=O((S9,Id)=>{"use strict";var HS=PS(),wt=require("fs"),gu=require("path"),US=qS(),kt=hn(),_u=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},bu=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Eu=(t,e)=>t.get(kt(e)),Ps=(t,e,r)=>t.set(kt(e),r),HN=(t,e)=>{wt.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new bu(t,r&&r.code||"ENOTDIR")),e(r)})};Id.exports=(t,e,r)=>{t=kt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,h=e.cache,f=kt(e.cwd),d=(p,_)=>{p?r(p):(Ps(h,t,!0),_&&u?US(_,o,a,C=>d(C)):s?wt.chmod(t,n,r):r())};if(h&&Eu(h,t)===!0)return d();if(t===f)return HN(t,d);if(c)return HS(t,{mode:n}).then(p=>d(null,p),d);let y=kt(gu.relative(f,t)).split("/");wu(f,y,n,h,l,f,null,d)};var wu=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=kt(gu.resolve(t+"/"+u));if(Eu(i,c))return wu(c,e,r,i,n,s,o,a);wt.mkdir(c,r,$S(c,e,r,i,n,s,o,a))},$S=(t,e,r,i,n,s,o,a)=>u=>{u?wt.lstat(t,(c,l)=>{if(c)c.path=c.path&&kt(c.path),a(c);else if(l.isDirectory())wu(t,e,r,i,n,s,o,a);else if(n)wt.unlink(t,h=>{if(h)return a(h);wt.mkdir(t,r,$S(t,e,r,i,n,s,o,a))});else{if(l.isSymbolicLink())return a(new _u(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,wu(t,e,r,i,n,s,o,a))},UN=t=>{let e=!1,r="ENOTDIR";try{e=wt.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new bu(t,r)}};Id.exports.sync=(t,e)=>{t=kt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,h=kt(e.cwd),f=p=>{Ps(l,t,!0),p&&a&&US.sync(p,s,o),n&&wt.chmodSync(t,i)};if(l&&Eu(l,t)===!0)return f();if(t===h)return UN(h),f();if(u)return f(HS.sync(t,i));let m=kt(gu.relative(h,t)).split("/"),y=null;for(let p=m.shift(),_=h;p&&(_+="/"+p);p=m.shift())if(_=kt(gu.resolve(_)),!Eu(l,_))try{wt.mkdirSync(_,i),y=y||_,Ps(l,_,!0)}catch{let L=wt.lstatSync(_);if(L.isDirectory()){Ps(l,_,!0);continue}else if(c){wt.unlinkSync(_),wt.mkdirSync(_,i),y=y||_,Ps(l,_,!0);continue}else if(L.isSymbolicLink())return new _u(_,_+"/"+m.join("/"))}return f(y)}});var Md=O((D9,zS)=>{var Nd=Object.create(null),{hasOwnProperty:$N}=Object.prototype;zS.exports=t=>($N.call(Nd,t)||(Nd[t]=t.normalize("NFKD")),Nd[t])});var KS=O((A9,YS)=>{var WS=require("assert"),GN=Md(),zN=pn(),{join:VS}=require("path"),WN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,VN=WN==="win32";YS.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=VS(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(h=>t.get(h)),dirs:[...l.dirs].map(h=>t.get(h))}},s=c=>{let{paths:l,dirs:h}=n(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let m=t.get(d);WS.equal(m[0],c),m.length===1?t.delete(d):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let m=t.get(d);WS(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(d):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=VN?["win32 parallelization disabled"]:c.map(f=>GN(zN(VS(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(l,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(l):t.set(f,[l])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(l):d.push(new Set([l])):t.set(f,[new Set([l])])}),o(l)}}}});var XS=O((x9,JS)=>{var YN=process.env.__FAKE_PLATFORM__||process.platform,KN=YN==="win32",ZN=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:JN,O_TRUNC:XN,O_WRONLY:QN,UV_FS_O_FILEMAP:ZS=0}=ZN.constants,eM=KN&&!!ZS,tM=512*1024,rM=ZS|XN|JN|QN;JS.exports=eM?t=>t<tM?rM:"w":()=>"w"});var Vd=O((C9,fD)=>{"use strict";var iM=require("assert"),nM=du(),_e=require("fs"),sM=Sn(),_r=require("path"),cD=GS(),QS=Wf(),oM=KS(),aM=Vf(),ft=hn(),uM=pn(),cM=Md(),eD=Symbol("onEntry"),Hd=Symbol("checkFs"),tD=Symbol("checkFs2"),Du=Symbol("pruneCache"),Ud=Symbol("isReusable"),vt=Symbol("makeFs"),$d=Symbol("file"),Gd=Symbol("directory"),Au=Symbol("link"),rD=Symbol("symlink"),iD=Symbol("hardlink"),nD=Symbol("unsupported"),sD=Symbol("checkPath"),Vr=Symbol("mkdir"),Ke=Symbol("onError"),vu=Symbol("pending"),oD=Symbol("pend"),Rn=Symbol("unpend"),jd=Symbol("ended"),qd=Symbol("maybeClose"),zd=Symbol("skip"),Ls=Symbol("doChown"),Bs=Symbol("uid"),Is=Symbol("gid"),Ns=Symbol("checkedCwd"),lD=require("crypto"),hD=XS(),lM=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Ms=lM==="win32",hM=(t,e)=>{if(!Ms)return _e.unlink(t,e);let r=t+".DELETE."+lD.randomBytes(16).toString("hex");_e.rename(t,r,i=>{if(i)return e(i);_e.unlink(r,e)})},fM=t=>{if(!Ms)return _e.unlinkSync(t);let e=t+".DELETE."+lD.randomBytes(16).toString("hex");_e.renameSync(t,e),_e.unlinkSync(e)},aD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,uD=t=>cM(uM(ft(t))).toLowerCase(),dM=(t,e)=>{e=uD(e);for(let r of t.keys()){let i=uD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},pM=t=>{for(let e of t.keys())t.delete(e)},js=class extends nM{constructor(e){if(e||(e={}),e.ondone=r=>{this[jd]=!0,this[qd]()},super(e),this[Ns]=!1,this.reservations=oM(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[vu]=0,this[jd]=!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||Ms,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=ft(_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[eD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[qd](){this[jd]&&this[vu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[sD](e){if(this.strip){let r=ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=ft(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=ft(e.path),i=r.split("/");if(i.includes("..")||Ms&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=aM(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(_r.isAbsolute(e.path)?e.absolute=ft(_r.resolve(e.path)):e.absolute=ft(_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:ft(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+QS.encode(e.absolute.slice(r.length));let{root:i}=_r.win32.parse(e.path);e.path=i+QS.encode(e.path.slice(i.length))}return!0}[eD](e){if(!this[sD](e))return e.resume();switch(iM.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[Hd](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[nD](e)}}[Ke](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Rn](),r.resume())}[Vr](e,r,i){cD(ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Ls](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}[Bs](e){return aD(this.uid,e.uid,this.processUid)}[Is](e){return aD(this.gid,e.gid,this.processGid)}[$d](e,r){let i=e.mode&4095||this.fmode,n=new sM.WriteStream(e.absolute,{flags:hD(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&_e.close(n.fd,()=>{}),n.write=()=>!0,this[Ke](u,e),r()});let s=1,o=u=>{if(u){n.fd&&_e.close(n.fd,()=>{}),this[Ke](u,e),r();return}--s===0&&_e.close(n.fd,c=>{c?this[Ke](c,e):this[Rn](),r()})};n.on("finish",u=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;_e.futimes(l,h,f,d=>d?_e.utimes(c,h,f,m=>o(m&&d)):o())}if(this[Ls](e)){s++;let h=this[Bs](e),f=this[Is](e);_e.fchown(l,h,f,d=>d?_e.chown(c,h,f,m=>o(m&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[Ke](u,e),r()}),e.pipe(a)),a.pipe(n)}[Gd](e,r){let i=e.mode&4095||this.dmode;this[Vr](e.absolute,i,n=>{if(n){this[Ke](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Rn](),e.resume())};e.mtime&&!this.noMtime&&(s++,_e.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ls](e)&&(s++,_e.chown(e.absolute,this[Bs](e),this[Is](e),o)),o()})}[nD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[rD](e,r){this[Au](e,e.linkpath,"symlink",r)}[iD](e,r){let i=ft(_r.resolve(this.cwd,e.linkpath));this[Au](e,i,"link",r)}[oD](){this[vu]++}[Rn](){this[vu]--,this[qd]()}[zd](e){this[Rn](),e.resume()}[Ud](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Ms}[Hd](e){this[oD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[tD](e,i))}[Du](e){e.type==="SymbolicLink"?pM(this.dirCache):e.type!=="Directory"&&dM(this.dirCache,e.absolute)}[tD](e,r){this[Du](e);let i=a=>{this[Du](e),r(a)},n=()=>{this[Vr](this.cwd,this.dmode,a=>{if(a){this[Ke](a,e),i();return}this[Ns]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=ft(_r.dirname(e.absolute));if(a!==this.cwd)return this[Vr](a,this.dmode,u=>{if(u){this[Ke](u,e),i();return}o()})}o()},o=()=>{_e.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[zd](e),i();return}if(a||this[Ud](e,u))return this[vt](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[vt](h,e,i);return c?_e.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return _e.rmdir(e.absolute,c=>this[vt](c,e,i))}if(e.absolute===this.cwd)return this[vt](null,e,i);hM(e.absolute,c=>this[vt](c,e,i))})};this[Ns]?s():n()}[vt](e,r,i){if(e){this[Ke](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[$d](r,i);case"Link":return this[iD](r,i);case"SymbolicLink":return this[rD](r,i);case"Directory":case"GNUDumpDir":return this[Gd](r,i)}}[Au](e,r,i,n){_e[i](r,e.absolute,s=>{s?this[Ke](s,e):(this[Rn](),e.resume()),n()})}},Su=t=>{try{return[null,t()]}catch(e){return[e,null]}},Wd=class extends js{[vt](e,r){return super[vt](e,r,()=>{})}[Hd](e){if(this[Du](e),!this[Ns]){let s=this[Vr](this.cwd,this.dmode);if(s)return this[Ke](s,e);this[Ns]=!0}if(e.absolute!==this.cwd){let s=ft(_r.dirname(e.absolute));if(s!==this.cwd){let o=this[Vr](s,this.dmode);if(o)return this[Ke](o,e)}}let[r,i]=Su(()=>_e.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[zd](e);if(r||this[Ud](e,i))return this[vt](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Su(()=>{_e.chmodSync(e.absolute,e.mode)}):[];return this[vt](a,e)}let[s]=Su(()=>_e.rmdirSync(e.absolute));this[vt](s,e)}let[n]=e.absolute===this.cwd?[]:Su(()=>fM(e.absolute));this[vt](n,e)}[$d](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{_e.closeSync(s)}catch(c){u=c}(a||u)&&this[Ke](a||u,e),r()},s;try{s=_e.openSync(e.absolute,hD(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ke](a,e)),e.pipe(o)),o.on("data",a=>{try{_e.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{_e.futimesSync(s,c,l)}catch(h){try{_e.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[Ls](e)){let c=this[Bs](e),l=this[Is](e);try{_e.fchownSync(s,c,l)}catch(h){try{_e.chownSync(e.absolute,c,l)}catch{u=u||h}}}n(u)})}[Gd](e,r){let i=e.mode&4095||this.dmode,n=this[Vr](e.absolute,i);if(n){this[Ke](n,e),r();return}if(e.mtime&&!this.noMtime)try{_e.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ls](e))try{_e.chownSync(e.absolute,this[Bs](e),this[Is](e))}catch{}r(),e.resume()}[Vr](e,r){try{return cD.sync(ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[Au](e,r,i,n){try{_e[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ke](s,e)}}};js.Sync=Wd;fD.exports=js});var gD=O((R9,yD)=>{"use strict";var mM=on(),xu=Vd(),pD=require("fs"),mD=Sn(),dD=require("path"),Yd=pn();yD.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=mM(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&yM(i,e),i.file&&i.sync?gM(i):i.file?_M(i,r):i.sync?bM(i):EM(i)};var yM=(t,e)=>{let r=new Map(e.map(s=>[Yd(s),!0])),i=t.filter,n=(s,o)=>{let a=o||dD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(dD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Yd(s)):s=>n(Yd(s))},gM=t=>{let e=new xu.Sync(t),r=t.file,i=pD.statSync(r),n=t.maxReadSize||16*1024*1024;new mD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},_M=(t,e)=>{let r=new xu(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),pD.stat(n,(u,c)=>{if(u)a(u);else{let l=new mD.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},bM=t=>new xu.Sync(t),EM=t=>new xu(t)});var _D=O(Le=>{"use strict";Le.c=Le.create=Qv();Le.r=Le.replace=Td();Le.t=Le.list=pu();Le.u=Le.update=uS();Le.x=Le.extract=gD();Le.Pack=Qa();Le.Unpack=Vd();Le.Parse=du();Le.ReadEntry=Ia();Le.WriteEntry=id();Le.Header=dn();Le.Pax=Ma();Le.types=jf()});var Er=O((br,Cu)=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var bD=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function wM(t){return bD.includes(t)}var vM=["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",...bD];function SM(t){return vM.includes(t)}var DM=["null","undefined","string","number","bigint","boolean","symbol"];function AM(t){return DM.includes(t)}function Tn(t){return e=>typeof e===t}var{toString:ED}=Object.prototype,qs=t=>{let e=ED.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&k.domElement(t))return"HTMLElement";if(SM(e))return e},we=t=>e=>qs(e)===t;function k(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(k.observable(t))return"Observable";if(k.array(t))return"Array";if(k.buffer(t))return"Buffer";let e=qs(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"}k.undefined=Tn("undefined");k.string=Tn("string");var xM=Tn("number");k.number=t=>xM(t)&&!k.nan(t);k.bigint=Tn("bigint");k.function_=Tn("function");k.null_=t=>t===null;k.class_=t=>k.function_(t)&&t.toString().startsWith("class ");k.boolean=t=>t===!0||t===!1;k.symbol=Tn("symbol");k.numericString=t=>k.string(t)&&!k.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));k.array=(t,e)=>Array.isArray(t)?k.function_(e)?t.every(e):!0:!1;k.buffer=t=>{var e,r,i,n;return(n=(i=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||i===void 0?void 0:i.call(r,t))!==null&&n!==void 0?n:!1};k.blob=t=>we("Blob")(t);k.nullOrUndefined=t=>k.null_(t)||k.undefined(t);k.object=t=>!k.null_(t)&&(typeof t=="object"||k.function_(t));k.iterable=t=>{var e;return k.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};k.asyncIterable=t=>{var e;return k.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};k.generator=t=>{var e,r;return k.iterable(t)&&k.function_((e=t)===null||e===void 0?void 0:e.next)&&k.function_((r=t)===null||r===void 0?void 0:r.throw)};k.asyncGenerator=t=>k.asyncIterable(t)&&k.function_(t.next)&&k.function_(t.throw);k.nativePromise=t=>we("Promise")(t);var CM=t=>{var e,r;return k.function_((e=t)===null||e===void 0?void 0:e.then)&&k.function_((r=t)===null||r===void 0?void 0:r.catch)};k.promise=t=>k.nativePromise(t)||CM(t);k.generatorFunction=we("GeneratorFunction");k.asyncGeneratorFunction=t=>qs(t)==="AsyncGeneratorFunction";k.asyncFunction=t=>qs(t)==="AsyncFunction";k.boundFunction=t=>k.function_(t)&&!t.hasOwnProperty("prototype");k.regExp=we("RegExp");k.date=we("Date");k.error=we("Error");k.map=t=>we("Map")(t);k.set=t=>we("Set")(t);k.weakMap=t=>we("WeakMap")(t);k.weakSet=t=>we("WeakSet")(t);k.int8Array=we("Int8Array");k.uint8Array=we("Uint8Array");k.uint8ClampedArray=we("Uint8ClampedArray");k.int16Array=we("Int16Array");k.uint16Array=we("Uint16Array");k.int32Array=we("Int32Array");k.uint32Array=we("Uint32Array");k.float32Array=we("Float32Array");k.float64Array=we("Float64Array");k.bigInt64Array=we("BigInt64Array");k.bigUint64Array=we("BigUint64Array");k.arrayBuffer=we("ArrayBuffer");k.sharedArrayBuffer=we("SharedArrayBuffer");k.dataView=we("DataView");k.enumCase=(t,e)=>Object.values(e).includes(t);k.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;k.urlInstance=t=>we("URL")(t);k.urlString=t=>{if(!k.string(t))return!1;try{return new URL(t),!0}catch{return!1}};k.truthy=t=>!!t;k.falsy=t=>!t;k.nan=t=>Number.isNaN(t);k.primitive=t=>k.null_(t)||AM(typeof t);k.integer=t=>Number.isInteger(t);k.safeInteger=t=>Number.isSafeInteger(t);k.plainObject=t=>{if(ED.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};k.typedArray=t=>wM(qs(t));var RM=t=>k.safeInteger(t)&&t>=0;k.arrayLike=t=>!k.nullOrUndefined(t)&&!k.function_(t)&&RM(t.length);k.inRange=(t,e)=>{if(k.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(k.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var TM=1,kM=["innerHTML","ownerDocument","style","attributes","nodeValue"];k.domElement=t=>k.object(t)&&t.nodeType===TM&&k.string(t.nodeName)&&!k.plainObject(t)&&kM.every(e=>e in t);k.observable=t=>{var e,r,i,n;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((n=(i=t)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};k.nodeStream=t=>k.object(t)&&k.function_(t.pipe)&&!k.observable(t);k.infinite=t=>t===1/0||t===-1/0;var wD=t=>e=>k.integer(e)&&Math.abs(e%2)===t;k.evenInteger=wD(0);k.oddInteger=wD(1);k.emptyArray=t=>k.array(t)&&t.length===0;k.nonEmptyArray=t=>k.array(t)&&t.length>0;k.emptyString=t=>k.string(t)&&t.length===0;var OM=t=>k.string(t)&&!/\S/.test(t);k.emptyStringOrWhitespace=t=>k.emptyString(t)||OM(t);k.nonEmptyString=t=>k.string(t)&&t.length>0;k.nonEmptyStringAndNotWhitespace=t=>k.string(t)&&!k.emptyStringOrWhitespace(t);k.emptyObject=t=>k.object(t)&&!k.map(t)&&!k.set(t)&&Object.keys(t).length===0;k.nonEmptyObject=t=>k.object(t)&&!k.map(t)&&!k.set(t)&&Object.keys(t).length>0;k.emptySet=t=>k.set(t)&&t.size===0;k.nonEmptySet=t=>k.set(t)&&t.size>0;k.emptyMap=t=>k.map(t)&&t.size===0;k.nonEmptyMap=t=>k.map(t)&&t.size>0;k.propertyKey=t=>k.any([k.string,k.number,k.symbol],t);k.formData=t=>we("FormData")(t);k.urlSearchParams=t=>we("URLSearchParams")(t);var vD=(t,e,r)=>{if(!k.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)};k.any=(t,...e)=>(k.array(t)?t:[t]).some(i=>vD(Array.prototype.some,i,e));k.all=(t,...e)=>vD(Array.prototype.every,t,e);var ie=(t,e,r,i={})=>{if(!t){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(r.map(o=>`\`${k(o)}\``))].join(", ")}`:`received value of type \`${k(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};br.assert={undefined:t=>ie(k.undefined(t),"undefined",t),string:t=>ie(k.string(t),"string",t),number:t=>ie(k.number(t),"number",t),bigint:t=>ie(k.bigint(t),"bigint",t),function_:t=>ie(k.function_(t),"Function",t),null_:t=>ie(k.null_(t),"null",t),class_:t=>ie(k.class_(t),"Class",t),boolean:t=>ie(k.boolean(t),"boolean",t),symbol:t=>ie(k.symbol(t),"symbol",t),numericString:t=>ie(k.numericString(t),"string with a number",t),array:(t,e)=>{ie(k.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>ie(k.buffer(t),"Buffer",t),blob:t=>ie(k.blob(t),"Blob",t),nullOrUndefined:t=>ie(k.nullOrUndefined(t),"null or undefined",t),object:t=>ie(k.object(t),"Object",t),iterable:t=>ie(k.iterable(t),"Iterable",t),asyncIterable:t=>ie(k.asyncIterable(t),"AsyncIterable",t),generator:t=>ie(k.generator(t),"Generator",t),asyncGenerator:t=>ie(k.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>ie(k.nativePromise(t),"native Promise",t),promise:t=>ie(k.promise(t),"Promise",t),generatorFunction:t=>ie(k.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>ie(k.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>ie(k.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>ie(k.boundFunction(t),"Function",t),regExp:t=>ie(k.regExp(t),"RegExp",t),date:t=>ie(k.date(t),"Date",t),error:t=>ie(k.error(t),"Error",t),map:t=>ie(k.map(t),"Map",t),set:t=>ie(k.set(t),"Set",t),weakMap:t=>ie(k.weakMap(t),"WeakMap",t),weakSet:t=>ie(k.weakSet(t),"WeakSet",t),int8Array:t=>ie(k.int8Array(t),"Int8Array",t),uint8Array:t=>ie(k.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>ie(k.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>ie(k.int16Array(t),"Int16Array",t),uint16Array:t=>ie(k.uint16Array(t),"Uint16Array",t),int32Array:t=>ie(k.int32Array(t),"Int32Array",t),uint32Array:t=>ie(k.uint32Array(t),"Uint32Array",t),float32Array:t=>ie(k.float32Array(t),"Float32Array",t),float64Array:t=>ie(k.float64Array(t),"Float64Array",t),bigInt64Array:t=>ie(k.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>ie(k.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>ie(k.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>ie(k.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>ie(k.dataView(t),"DataView",t),enumCase:(t,e)=>ie(k.enumCase(t,e),"EnumCase",t),urlInstance:t=>ie(k.urlInstance(t),"URL",t),urlString:t=>ie(k.urlString(t),"string with a URL",t),truthy:t=>ie(k.truthy(t),"truthy",t),falsy:t=>ie(k.falsy(t),"falsy",t),nan:t=>ie(k.nan(t),"NaN",t),primitive:t=>ie(k.primitive(t),"primitive",t),integer:t=>ie(k.integer(t),"integer",t),safeInteger:t=>ie(k.safeInteger(t),"integer",t),plainObject:t=>ie(k.plainObject(t),"plain object",t),typedArray:t=>ie(k.typedArray(t),"TypedArray",t),arrayLike:t=>ie(k.arrayLike(t),"array-like",t),domElement:t=>ie(k.domElement(t),"HTMLElement",t),observable:t=>ie(k.observable(t),"Observable",t),nodeStream:t=>ie(k.nodeStream(t),"Node.js Stream",t),infinite:t=>ie(k.infinite(t),"infinite number",t),emptyArray:t=>ie(k.emptyArray(t),"empty array",t),nonEmptyArray:t=>ie(k.nonEmptyArray(t),"non-empty array",t),emptyString:t=>ie(k.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>ie(k.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>ie(k.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>ie(k.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>ie(k.emptyObject(t),"empty object",t),nonEmptyObject:t=>ie(k.nonEmptyObject(t),"non-empty object",t),emptySet:t=>ie(k.emptySet(t),"empty set",t),nonEmptySet:t=>ie(k.nonEmptySet(t),"non-empty set",t),emptyMap:t=>ie(k.emptyMap(t),"empty map",t),nonEmptyMap:t=>ie(k.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>ie(k.propertyKey(t),"PropertyKey",t),formData:t=>ie(k.formData(t),"FormData",t),urlSearchParams:t=>ie(k.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>ie(k.evenInteger(t),"even integer",t),oddInteger:t=>ie(k.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>ie(k.directInstanceOf(t,e),"T",t),inRange:(t,e)=>ie(k.inRange(t,e),"in range",t),any:(t,...e)=>ie(k.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>ie(k.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(k,{class:{value:k.class_},function:{value:k.function_},null:{value:k.null_}});Object.defineProperties(br.assert,{class:{value:br.assert.class_},function:{value:br.assert.function_},null:{value:br.assert.null_}});br.default=k;Cu.exports=k;Cu.exports.default=k;Cu.exports.assert=br.assert});var SD=O((k9,Kd)=>{"use strict";var Ru=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},kn=class{static fn(e){return(...r)=>new kn((i,n,s)=>{r.push(s),e(...r).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,i)=>{this._reject=i;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,i(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(n,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 Ru(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(kn.prototype,Promise.prototype);Kd.exports=kn;Kd.exports.CancelError=Ru});var DD=O((Jd,Xd)=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});function FM(t){return t.encrypted}var Zd=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let i=typeof r.connect=="function",n=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{i&&r.connect(),FM(t)&&n&&(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)};Jd.default=Zd;Xd.exports=Zd;Xd.exports.default=Zd});var AD=O((ep,tp)=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var PM=DD(),LM=require("util"),BM=Number(process.versions.node.split(".")[0]),Qd=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 i=()=>{e.abort=Date.now(),(!e.response||BM>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",i);let n=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,LM.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),PM.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?n(t.socket):t.prependOnceListener("socket",n);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",i)}),e};ep.default=Qd;tp.exports=Qd;tp.exports.default=Qd});var FD=O((O9,np)=>{"use strict";var{V4MAPPED:IM,ADDRCONFIG:NM,ALL:OD,promises:{Resolver:xD},lookup:MM}=require("dns"),{promisify:rp}=require("util"),jM=require("os"),On=Symbol("cacheableLookupCreateConnection"),ip=Symbol("cacheableLookupInstance"),CD=Symbol("expires"),qM=typeof OD=="number",RD=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},HM=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},TD=()=>{let t=!1,e=!1;for(let r of Object.values(jM.networkInterfaces()))for(let i of r)if(!i.internal&&(i.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},UM=t=>Symbol.iterator in t,kD={ttl:!0},$M={all:!0},Tu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new xD,lookup:o=MM}={}){if(this.maxTtl=r,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=rp(o),this._resolver instanceof xD?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=rp(this._resolver.resolve4.bind(this._resolver)),this._resolve6=rp(this._resolver.resolve6.bind(this._resolver))),this._iface=TD(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*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,i){if(typeof r=="function"?(i=r,r={}):typeof r=="number"&&(r={family:r}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(n=>{r.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let i=await this.query(e);if(r.family===6){let n=i.filter(s=>s.family===6);r.hints&IM&&(qM&&r.hints&OD||n.length===0)?HM(i):i=n}else r.family===4&&(i=i.filter(n=>n.family===4));if(r.hints&NM){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return r.all?i:i[0]}async query(e){let r=await this._cache.get(e);if(!r){let i=this._pending[e];if(i)r=await i;else{let n=this.queryAndCache(e);this._pending[e]=n;try{r=await n}finally{delete this._pending[e]}}}return r=r.map(i=>({...i})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[i,n]=await Promise.all([this._resolve4(e,kD),this._resolve6(e,kD)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of i)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],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,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,r[CD]=Date.now()+i;try{await this._cache.set(e,r,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}UM(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,$M);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 i=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,i),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,n=Date.now();for(let[s,o]of this._cache){let a=o[CD];n>=a?this._cache.delete(s):a<i&&(i=a)}i!==1/0&&this._tick(i-n)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(RD(e),On in e)throw new Error("CacheableLookup has been already installed");e[On]=e.createConnection,e[ip]=this,e.createConnection=(r,i)=>("lookup"in r||(r.lookup=this.lookup),e[On](r,i))}uninstall(e){if(RD(e),e[On]){if(e[ip]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[On],delete e[On],delete e[ip]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=TD(),(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()}};np.exports=Tu;np.exports.default=Tu});var BD=O((F9,LD)=>{"use strict";var GM="text/plain",zM="us-ascii",PD=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),WM=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:i,data:n,hash:s}=r.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(h=>{let[f,d=""]=h.split("=").map(m=>m.trim());return f==="charset"&&(d=d.toLowerCase(),d===zM)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==GM)&&l.unshift(u),`data:${l.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},VM=(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 WM(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 n=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];PD(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])PD(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=t;return t=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};LD.exports=VM});var MD=O((P9,ND)=>{ND.exports=ID;function ID(t,e){if(t&&e)return ID(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),o=i[i.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var op=O((L9,sp)=>{var jD=MD();sp.exports=jD(ku);sp.exports.strict=jD(qD);ku.proto=ku(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ku(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return qD(this)},configurable:!0})});function ku(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function qD(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 $D=O((B9,UD)=>{var YM=op(),KM=function(){},ZM=function(t){return t.setHeader&&typeof t.abort=="function"},JM=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},HD=function(t,e,r){if(typeof e=="function")return HD(t,null,e);e||(e={}),r=YM(r||KM);var i=t._writableState,n=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)},h=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},f=function(p){r.call(t,p)},d=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return ZM(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!i&&(t.on("end",u),t.on("close",u)),JM(t)&&t.on("exit",h),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",f),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),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",h),t.removeListener("end",l),t.removeListener("error",f),t.removeListener("close",d)}};UD.exports=HD});var WD=O((I9,zD)=>{var XM=op(),QM=$D(),ap=require("fs"),Hs=function(){},e3=/^v?\.0/.test(process.version),Ou=function(t){return typeof t=="function"},t3=function(t){return!e3||!ap?!1:(t instanceof(ap.ReadStream||Hs)||t instanceof(ap.WriteStream||Hs))&&Ou(t.close)},r3=function(t){return t.setHeader&&Ou(t.abort)},i3=function(t,e,r,i){i=XM(i);var n=!1;t.on("close",function(){n=!0}),QM(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,t3(t))return t.close(Hs);if(r3(t))return t.abort();if(Ou(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},GD=function(t){t()},n3=function(t,e){return t.pipe(e)},s3=function(){var t=Array.prototype.slice.call(arguments),e=Ou(t[t.length-1]||Hs)&&t.pop()||Hs;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,i=t.map(function(n,s){var o=s<t.length-1,a=s>0;return i3(n,o,a,function(u){r||(r=u),u&&i.forEach(GD),!o&&(i.forEach(GD),e(r))})});return t.reduce(n3)};zD.exports=s3});var YD=O((N9,VD)=>{"use strict";var{PassThrough:o3}=require("stream");VD.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new o3({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var KD=O((M9,Fn)=>{"use strict";var{constants:a3}=require("buffer"),u3=WD(),c3=YD(),Fu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Pu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=a3.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};i=u3(t,c3(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>r&&o(new Fu)})}),i.getBufferedValue()}Fn.exports=Pu;Fn.exports.default=Pu;Fn.exports.buffer=(t,e)=>Pu(t,{...e,encoding:"buffer"});Fn.exports.array=(t,e)=>Pu(t,{...e,array:!0});Fn.exports.MaxBufferError=Fu});var JD=O((q9,ZD)=>{"use strict";var l3=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),h3=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),f3=new Set([500,502,503,504]),d3={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},p3={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Ai(t){let e=parseInt(t,10);return isFinite(e)?e:0}function m3(t){return t?f3.has(t.status):!0}function up(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let i of r){let[n,s]=i.split(/=/,2);e[n.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function y3(t){let e=[];for(let r in t){let i=t[r];e.push(i===!0?r:r+"="+i)}if(e.length)return e.join(", ")}ZD.exports=class{constructor(e,r,{shared:i,cacheHeuristic:n,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=i!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=up(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=up(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":y3(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())&&h3.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||l3.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=up(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 i of r)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let i in e)d3[i]||(r[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete r[n]}if(r.warning){let i=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?r.warning=i.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 Ai(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 Ai(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Ai(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<r?0:Math.max(e,(i-r)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&r>i)return Math.max(e,(r-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+Ai(this._rescc["stale-if-error"]),i=e+Ai(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Ai(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Ai(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 n=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?r["if-none-match"]=n.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()&&m3(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let i=!1;if(r.status!==void 0&&r.status!=304?i=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!p3[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Lu=O((H9,XD)=>{"use strict";XD.exports=t=>{let e={};for(let[r,i]of Object.entries(t))e[r.toLowerCase()]=i;return e}});var eA=O((U9,QD)=>{"use strict";var g3=require("stream").Readable,_3=Lu(),cp=class extends g3{constructor(e,r,i,n){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(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=_3(r),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};QD.exports=cp});var rA=O(($9,tA)=>{"use strict";var b3=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];tA.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(b3));for(let i of r)i in e||(e[i]=typeof t[i]=="function"?t[i].bind(t):t[i])}});var nA=O((G9,iA)=>{"use strict";var E3=require("stream").PassThrough,w3=rA(),v3=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new E3;return w3(t,e),t.pipe(e)};iA.exports=v3});var sA=O(lp=>{lp.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="",i=Array.isArray(e);r=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(r+=","),n=!1,i?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=i?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};lp.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 cA=O((W9,uA)=>{"use strict";var S3=require("events"),oA=sA(),D3=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},aA=["sqlite","postgres","mysql","mongo","redis","tiered"],hp=class extends S3{constructor(e,{emitErrors:r=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:oA.stringify,deserialize:oA.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let s={...this.opts};this.opts.store=D3(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 n=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=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return aA.includes(this.opts.store.opts.dialect)||aA.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:i}=this.opts,n=Array.isArray(e),s=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&i.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>i.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(()=>n?i.getMany(s):i.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(n){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,i){let n=this._getKeyPrefix(e);typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof i=="number"?Date.now()+i: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(n,o,i)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of n)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(r):await i.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};uA.exports=hp});var fA=O((V9,hA)=>{"use strict";var A3=require("events"),Bu=require("url"),x3=BD(),C3=KD(),fp=JD(),lA=eA(),R3=Lu(),T3=nA(),k3=cA(),Ot=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new k3({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,i)=>{let n;if(typeof r=="string")n=dp(Bu.parse(r)),r={};else if(r instanceof Bu.URL)n=dp(Bu.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";n=dp({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...O3(n)},r.headers=R3(r.headers);let s=new A3,o=x3(Bu.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,m=new Promise(p=>{d=()=>{f||(f=!0,p())}}),y=p=>{if(u&&!h.forceRefresh){p.status=p.statusCode;let C=fp.fromObject(u.cachePolicy).revalidatedPolicy(h,p);if(!C.modified){let L=C.policy.responseHeaders();p=new lA(u.statusCode,L,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new fp(h,p,h),p.fromCache=!1);let _;h.cache&&p.cachePolicy.storable()?(_=T3(p),(async()=>{try{let C=C3.buffer(p);if(await Promise.race([m,new Promise(M=>p.once("end",M))]),f)return;let L=await C,B={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:L},T=h.strictTtl?p.cachePolicy.timeToLive():void 0;h.maxTtl&&(T=T?Math.min(T,h.maxTtl):h.maxTtl),await this.cache.set(a,B,T)}catch(C){s.emit("error",new Ot.CacheError(C))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Ot.CacheError(C))}})(),s.emit("response",_||p),typeof i=="function"&&i(_||p)};try{let p=e(h,y);p.once("error",d),p.once("abort",d),s.emit("request",p)}catch(p){s.emit("error",new Ot.RequestError(p))}};return(async()=>{let h=async d=>{await Promise.resolve();let m=d.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(d);let y=fp.fromObject(m.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let p=y.responseHeaders(),_=new lA(m.statusCode,p,m.body,m.url);_.cachePolicy=y,_.fromCache=!0,s.emit("response",_),typeof i=="function"&&i(_)}else u=m,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new Ot.CacheError(d));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await h(r)}catch(d){r.automaticFailover&&!c&&l(r),s.emit("error",new Ot.CacheError(d))}})(),s}}};function O3(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function dp(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Ot.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Ot.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};hA.exports=Ot});var pA=O((Z9,dA)=>{"use strict";var F3=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];dA.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(F3)),i={};for(let n of r)n in e||(i[n]={get(){let s=t[n];return typeof s=="function"?s.bind(t):s},set(s){t[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),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 yA=O((J9,mA)=>{"use strict";var{Transform:P3,PassThrough:L3}=require("stream"),pp=require("zlib"),B3=pA();mA.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof pp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let i=!0,n=new P3({transform(a,u,c){i=!1,c(null,a)},flush(a){a()}}),s=new L3({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?pp.createBrotliDecompress():pp.createUnzip();return o.once("error",a=>{if(i&&!t.readable){s.end();return}s.destroy(a)}),B3(t,s),t.pipe(n).pipe(o).pipe(s),s}});var yp=O((X9,gA)=>{"use strict";var mp=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[i,n]of this.oldCache.entries())this.onEviction(i,n);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)}};gA.exports=mp});var _p=O((Q9,wA)=>{"use strict";var I3=require("events"),N3=require("tls"),M3=require("http2"),j3=yp(),Xe=Symbol("currentStreamsCount"),_A=Symbol("request"),St=Symbol("cachedOriginSet"),Pn=Symbol("gracefullyClosing"),q3=["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"],H3=(t,e,r)=>{let i=0,n=t.length;for(;i<n;){let s=i+n>>>1;r(t[s],e)?i=s+1:n=s}return i},U3=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,gp=(t,e)=>{for(let r of t)r[St].length<e[St].length&&r[St].every(i=>e[St].includes(i))&&r[Xe]+e[Xe]<=e.remoteSettings.maxConcurrentStreams&&EA(r)},$3=(t,e)=>{for(let r of t)e[St].length<r[St].length&&e[St].every(i=>r[St].includes(i))&&e[Xe]+r[Xe]<=r.remoteSettings.maxConcurrentStreams&&EA(e)},bA=({agent:t,isFree:e})=>{let r={};for(let i in t.sessions){let s=t.sessions[i].filter(o=>{let a=o[Kt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[i]=s)}return r},EA=t=>{t[Pn]=!0,t[Xe]===0&&t.close()},Kt=class extends I3{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new j3({maxSize:n})}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 i of q3)e[i]&&(r+=`:${e[i]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let i=this.queue[e][r];this._sessionsCount<this.maxSessions&&!i.completed&&(i.completed=!0,i())}getSession(e,r,i){return new Promise((n,s)=>{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(r),a=Kt.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of i)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],h=-1,f=-1,d;for(let m of l){let y=m.remoteSettings.maxConcurrentStreams;if(y<h)break;if(m[St].includes(a)){let p=m[Xe];if(p>=y||m[Pn]||m.destroyed)continue;d||(h=y),p>f&&(d=m,f=p)}}if(d){if(i.length!==1){for(let{reject:m}of i){let y=new Error(`Expected the length of listeners to be 1, got ${i.length}.
|
15
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}i[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),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}`,h=!1;try{let f=M3.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[Xe]=0,f[Pn]=!1;let d=()=>f[Xe]<f.remoteSettings.maxConcurrentStreams,m=!0;f.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),f.once("error",p=>{for(let{reject:_}of i)_(p);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(f),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:_}of i)_(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let p of f[St])if(p in this.queue[o]){let{listeners:_}=this.queue[o][p];for(;_.length!==0&&d();)_.shift().resolve(f);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(!d())break}}};f.on("origin",()=>{f[St]=f.originSet,d()&&(y(),gp(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let _ of i)_.reject(p);f.destroy();return}f[St]=f.originSet;{let p=this.sessions;if(o in p){let _=p[o];_.splice(H3(_,f,U3),0,f)}else p[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[Xe]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{y(),gp(this.sessions[o],f)})}),f[_A]=f.request,f.request=(p,_)=>{if(f[Pn])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=f[_A](p,_);return f.ref(),++f[Xe],f[Xe]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=d(),--f[Xe],!f.destroyed&&!f.closed&&($3(this.sessions[o],f),d()&&!f.closed)){m||(this._freeSessionsCount++,m=!0);let L=f[Xe]===0;L&&f.unref(),L&&(this._freeSessionsCount>this.maxFreeSessions||f[Pn])?f.close():(gp(this.sessions[o],f),y())}}),C}}catch(f){for(let d of i)d.reject(f);u()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(u){o(u)}}}])})}createConnection(e,r){return Kt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),N3.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Xe]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return bA({agent:this,isFree:!0})}get busySessions(){return bA({agent:this,isFree:!1})}};Kt.kCurrentStreamsCount=Xe;Kt.kGracefullyClosing=Pn;wA.exports={Agent:Kt,globalAgent:new Kt}});var Ep=O((eU,vA)=>{"use strict";var{Readable:G3}=require("stream"),bp=class extends G3{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()}};vA.exports=bp});var wp=O((tU,SA)=>{"use strict";SA.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 AA=O((rU,DA)=>{"use strict";DA.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var CA=O((iU,xA)=>{"use strict";xA.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var TA=O((sU,RA)=>{"use strict";var Ln=(t,e,r)=>{RA.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Ln(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],i=Array.isArray(r);return i&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${i?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ln(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ln(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ln(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ln(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ln(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var xp=O((oU,IA)=>{"use strict";var z3=require("http2"),{Writable:W3}=require("stream"),{Agent:kA,globalAgent:V3}=_p(),Y3=Ep(),K3=wp(),Z3=AA(),J3=CA(),{ERR_INVALID_ARG_TYPE:vp,ERR_INVALID_PROTOCOL:X3,ERR_HTTP_HEADERS_SENT:OA,ERR_INVALID_HTTP_TOKEN:Q3,ERR_HTTP_INVALID_HEADER_VALUE:e8,ERR_INVALID_CHAR:t8}=TA(),{HTTP2_HEADER_STATUS:FA,HTTP2_HEADER_METHOD:PA,HTTP2_HEADER_PATH:LA,HTTP2_METHOD_CONNECT:r8}=z3.constants,Ze=Symbol("headers"),Sp=Symbol("origin"),Dp=Symbol("session"),BA=Symbol("options"),Iu=Symbol("flushedHeaders"),Us=Symbol("jobs"),i8=/^[\^`\-\w!#$%&*+.|~]+$/,n8=/[^\t\u0020-\u007E\u0080-\u00FF]/,Ap=class extends W3{constructor(e,r,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=K3(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(i=r,r=n?e:{...e}):r={...e,...r},r.h2session)this[Dp]=r.h2session;else if(r.agent===!1)this.agent=new kA({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new kA({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=V3;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new vp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new X3(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[Ze]=Object.create(null),this[Us]=[],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[Ze])&&(this[Ze].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[BA]=r,s===443?(this[Sp]=`https://${o}`,":authority"in this[Ze]||(this[Ze][":authority"]=o)):(this[Sp]=`https://${o}:${s}`,":authority"in this[Ze]||(this[Ze][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[Iu]=!1}get method(){return this[Ze][PA]}set method(e){e&&(this[Ze][PA]=e.toUpperCase())}get path(){return this[Ze][LA]}set path(e){e&&(this[Ze][LA]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,i);this._request?n():this[Us].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Us].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[Iu]||this.destroyed)return;this[Iu]=!0;let e=this.method===r8,r=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||Z3(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,u)=>{let c=new Y3(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[FA],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,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",l=>{!c._dumped&&!c.push(l)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[FA]}))),i.once("trailers",n((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[Us])o();this.emit("socket",this.socket)};if(this[Dp])try{r(this[Dp].request(this[Ze]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[Sp],this[BA],this[Ze]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new vp("name","string",e);return this[Ze][e.toLowerCase()]}get headersSent(){return this[Iu]}removeHeader(e){if(typeof e!="string")throw new vp("name","string",e);if(this.headersSent)throw new OA("remove");delete this[Ze][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new OA("set");if(typeof e!="string"||!i8.test(e)&&!J3(e))throw new Q3("Header name",e);if(typeof r=="undefined")throw new e8(r,e);if(n8.test(r))throw new t8("header content",e);this[Ze][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let i=()=>this._request.setTimeout(e,r);return this._request?i():this[Us].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};IA.exports=Ap});var MA=O((aU,NA)=>{"use strict";var s8=require("tls");NA.exports=(t={},e=s8.connect)=>new Promise((r,i)=>{let n=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",i),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:n}),n&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",i),s.once("timeout",a)}catch(c){i(c)}})()})});var qA=O((uU,jA)=>{"use strict";var o8=require("net");jA.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]),o8.isIP(e)?"":e}});var $A=O((cU,Rp)=>{"use strict";var HA=require("http"),Cp=require("https"),a8=MA(),u8=yp(),c8=xp(),l8=qA(),h8=wp(),Nu=new u8({maxSize:100}),$s=new Map,UA=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{t.emit("free",e,r)};e.on("free",i);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let s=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},f8=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Nu.has(e)){if($s.has(e))return(await $s.get(e)).alpnProtocol;let{path:r,agent:i}=t;t.path=t.socketPath;let n=a8(t);$s.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Nu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Cp,u=Cp.Agent.prototype.createConnection;i?i.createConnection===u?UA(i,s,t):s.destroy():a.createConnection===u?UA(a,s,t):s.destroy()}return $s.delete(e),o}catch(s){throw $s.delete(e),s}}return Nu.get(e)};Rp.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=h8(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 i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||l8(e),e.port=e.port||(i?443:80),e._defaultAgent=i?Cp.globalAgent:HA.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await f8(e)==="h2"?(n&&(e.agent=n.http2),new c8(e,r)):HA.request(e,r)};Rp.exports.protocolCache=Nu});var zA=O((lU,GA)=>{"use strict";var d8=require("http2"),p8=_p(),Tp=xp(),m8=Ep(),y8=$A(),g8=(t,e,r)=>new Tp(t,e,r),_8=(t,e,r)=>{let i=new Tp(t,e,r);return i.end(),i};GA.exports={...d8,ClientRequest:Tp,IncomingMessage:m8,...p8,request:g8,get:_8,auto:y8}});var Op=O(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var WA=Er();kp.default=t=>WA.default.nodeStream(t)&&WA.default.function_(t.getBoundary)});var ZA=O(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var YA=require("fs"),KA=require("util"),VA=Er(),b8=Op(),E8=KA.promisify(YA.stat);Fp.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(VA.default.string(t))return Buffer.byteLength(t);if(VA.default.buffer(t))return t.length;if(b8.default(t))return KA.promisify(t.getLength.bind(t))();if(t instanceof YA.ReadStream){let{size:r}=await E8(t.path);return r===0?void 0:r}}});var Lp=O(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});function w8(t,e,r){let i={};for(let n of r)i[n]=(...s)=>{e.emit(n,...s)},t.on(n,i[n]);return()=>{for(let n of r)t.off(n,i[n])}}Pp.default=w8});var JA=O(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=()=>{let t=[];return{once(e,r,i){e.once(r,i),t.push({origin:e,event:r,fn:i})},unhandleAll(){for(let e of t){let{origin:r,event:i,fn:n}=e;r.removeListener(i,n)}t.length=0}}}});var QA=O(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.TimeoutError=void 0;var v8=require("net"),S8=JA(),XA=Symbol("reentry"),D8=()=>{},Mu=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Gs.TimeoutError=Mu;Gs.default=(t,e,r)=>{if(XA in t)return D8;t[XA]=!0;let i=[],{once:n,unhandleAll:s}=S8.default(),o=(h,f,d)=>{var m;let y=setTimeout(f,h,h,d);(m=y.unref)===null||m===void 0||m.call(y);let p=()=>{clearTimeout(y)};return i.push(p),p},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new Mu(h,f))},l=()=>{for(let h of i)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),n(t,"response",h=>{n(h,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let h=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,h),i.push(()=>{t.removeListener("timeout",h)})}return n(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let m=!!(d!=null?d:v8.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");n(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");m?n(h,"connect",y()):n(h,"lookup",p=>{p===null&&n(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&n(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");n(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");h.connecting?n(h,"connect",()=>{n(t,"upload-complete",m())}):n(t,"upload-complete",m())}}),typeof e.response!="undefined"&&n(t,"upload-complete",()=>{let h=o(e.response,c,"response");n(t,"response",h)}),l}});var tx=O(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var ex=Er();Ip.default=t=>{t=t;let e={protocol:t.protocol,hostname:ex.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 ex.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 rx=O(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var A8=require("url"),x8=["protocol","host","hostname","port","pathname","search"];Np.default=(t,e)=>{var r,i;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}//${(i=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&i!==void 0?i:""}`}let n=new A8.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 x8)e[s]&&(n[s]=e[s].toString());return n}});var ix=O(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var Mp=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)}};jp.default=Mp});var Hp=O(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var C8=async t=>{let e=[],r=0;for await(let i of t)e.push(i),r+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};qp.default=C8});var sx=O(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.dnsLookupIpVersionToFamily=xi.isDnsLookupIpVersion=void 0;var nx={auto:0,ipv4:4,ipv6:6};xi.isDnsLookupIpVersion=t=>t in nx;xi.dnsLookupIpVersionToFamily=t=>{if(xi.isDnsLookupIpVersion(t))return nx[t];throw new Error("Invalid DNS lookup IP version")}});var Up=O(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.isResponseOk=void 0;ju.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var ax=O($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var ox=new Set;$p.default=t=>{ox.has(t)||(ox.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var ux=O(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var De=Er(),R8=(t,e)=>{if(De.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");De.assert.any([De.default.string,De.default.undefined],t.encoding),De.assert.any([De.default.boolean,De.default.undefined],t.resolveBodyOnly),De.assert.any([De.default.boolean,De.default.undefined],t.methodRewriting),De.assert.any([De.default.boolean,De.default.undefined],t.isStream),De.assert.any([De.default.string,De.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},De.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(i=>i.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):De.default.number(r)&&(t.retry.limit=r),De.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(De.default.number))),De.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:i}=t;if(!De.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!De.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!De.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!De.default.function_(i.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};Gp.default=R8});var cx=O(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.retryAfterStatusCodes=void 0;zs.retryAfterStatusCodes=new Set([413,429,503]);var T8=({attemptCount:t,retryOptions:e,error:r,retryAfter:i})=>{if(t>e.limit)return 0;let n=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!n||!s&&!o)return 0;if(r.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};zs.default=T8});var Ys=O(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.UnsupportedProtocolError=be.ReadError=be.TimeoutError=be.UploadError=be.CacheError=be.HTTPError=be.MaxRedirectsError=be.RequestError=be.setNonEnumerableProperties=be.knownHookEvents=be.withoutBody=be.kIsNormalizedAlready=void 0;var lx=require("util"),hx=require("stream"),k8=require("fs"),Yr=require("url"),fx=require("http"),zp=require("http"),O8=require("https"),F8=AD(),P8=FD(),dx=fA(),L8=yA(),B8=zA(),I8=Lu(),K=Er(),N8=ZA(),px=Op(),M8=Lp(),mx=QA(),j8=tx(),yx=rx(),q8=ix(),H8=Hp(),gx=sx(),U8=Up(),Kr=ax(),$8=ux(),G8=cx(),Wp,qe=Symbol("request"),Uu=Symbol("response"),Bn=Symbol("responseSize"),In=Symbol("downloadedSize"),Nn=Symbol("bodySize"),Mn=Symbol("uploadedSize"),qu=Symbol("serverResponsesPiped"),_x=Symbol("unproxyEvents"),bx=Symbol("isFromCache"),Vp=Symbol("cancelTimeouts"),Ex=Symbol("startedReading"),jn=Symbol("stopReading"),Hu=Symbol("triggerRead"),Zr=Symbol("body"),Ws=Symbol("jobs"),wx=Symbol("originalResponse"),vx=Symbol("retryTimeout");be.kIsNormalizedAlready=Symbol("isNormalizedAlready");var z8=K.default.string(process.versions.brotli);be.withoutBody=new Set(["GET","HEAD"]);be.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function W8(t){for(let e in t){let r=t[e];if(!K.default.string(r)&&!K.default.number(r)&&!K.default.boolean(r)&&!K.default.null_(r)&&!K.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function V8(t){return K.default.object(t)&&!("statusCode"in t)}var Yp=new q8.default,Y8=async t=>new Promise((e,r)=>{let i=n=>{r(n)};t.pending||e(),t.once("error",i),t.once("ready",()=>{t.off("error",i),e()})}),K8=new Set([300,301,302,303,304,307,308]),Z8=["context","body","json","form"];be.setNonEnumerableProperties=(t,e)=>{let r={};for(let i of t)if(i)for(let n of Z8)n in i&&(r[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,r)};var Te=class extends Error{constructor(e,r,i){var n,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(n=r.code)!==null&&n!==void 0?n:"ERR_GOT_REQUEST_ERROR",i instanceof Ku?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[Uu]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,K.default.string(r.stack)&&K.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
10
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var jE=O((b4,ys)=>{"use strict";var ms=require("path"),NE=Wh(),ME=t=>{t={cwd:process.cwd(),path:process.env[NE()],execPath:process.execPath,...t};let e,r=ms.resolve(t.cwd),i=[];for(;e!==r;)i.push(ms.join(r,"node_modules/.bin")),e=r,r=ms.resolve(r,"..");let n=ms.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(ms.delimiter)};ys.exports=ME;ys.exports.default=ME;ys.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=NE({env:e});return t.path=e[r],e[r]=ys.exports(t),e}});var qE=O(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.SIGNALS=void 0;var wL=[{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"}];pa.SIGNALS=wL});var ef=O(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.SIGRTMAX=nn.getRealtimeSignals=void 0;var vL=function(){let t=UE-HE+1;return Array.from({length:t},SL)};nn.getRealtimeSignals=vL;var SL=function(t,e){return{name:`SIGRT${e+1}`,number:HE+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},HE=34,UE=64;nn.SIGRTMAX=UE});var $E=O(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.getSignals=void 0;var DL=require("os"),AL=qE(),xL=ef(),CL=function(){let t=(0,xL.getRealtimeSignals)();return[...AL.SIGNALS,...t].map(RL)};ma.getSignals=CL;var RL=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=DL.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var zE=O(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.signalsByNumber=sn.signalsByName=void 0;var TL=require("os"),GE=$E(),kL=ef(),OL=function(){return(0,GE.getSignals)().reduce(FL,{})},FL=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}}},PL=OL();sn.signalsByName=PL;var LL=function(){let t=(0,GE.getSignals)(),e=kL.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>BL(n,t));return Object.assign({},...r)},BL=function(t,e){let r=IL(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:u}}},IL=function(t,e){let r=e.find(({name:i})=>TL.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},NL=LL();sn.signalsByNumber=NL});var VE=O((D4,WE)=>{"use strict";var{signalsByName:ML}=zE(),jL=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${n})`:s!==void 0?`failed with exit code ${s}`:"failed",qL=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:ML[n].description,d=i&&i.code,y=`Command ${jL({timedOut:u,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,p=Object.prototype.toString.call(i)==="[object Error]",w=p?`${y}
|
11
|
+
${i.message}`:y,C=[w,e,t].filter(Boolean).join(`
|
12
|
+
`);return p?(i.originalMessage=i.message,i.message=C):i=new Error(C),i.shortMessage=w,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!u,i.isCanceled=c,i.killed=l&&!u,i};WE.exports=qL});var KE=O((A4,tf)=>{"use strict";var ya=["stdin","stdout","stderr"],HL=t=>ya.some(e=>t[e]!==void 0),YE=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return ya.map(i=>t[i]);if(HL(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ya.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ya.length);return Array.from({length:r},(i,n)=>e[n])};tf.exports=YE;tf.exports.node=t=>{let e=YE(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var JE=O((x4,ZE)=>{"use strict";var UL=require("os"),$L=Fh(),GL=1e3*5,zL=(t,e="SIGTERM",r={})=>{let i=t(e);return WL(t,e,r,i),i},WL=(t,e,r,i)=>{if(!VL(e,r,i))return;let n=KL(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},VL=(t,{forceKillAfterTimeout:e},r)=>YL(t)&&e!==!1&&r,YL=t=>t===UL.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",KL=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return GL;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},ZL=(t,e)=>{t.kill()&&(e.isCanceled=!0)},JL=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},XL=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,u)=>{n=setTimeout(()=>{JL(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},QL=({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})`)},eB=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=$L(()=>{t.kill()});return i.finally(()=>{n()})};ZE.exports={spawnedKill:zL,spawnedCancel:ZL,setupTimeout:XL,validateTimeout:QL,setExitHandler:eB}});var QE=O((C4,XE)=>{"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";XE.exports=Ht});var tw=O((R4,ew)=>{"use strict";var{PassThrough:tB}=require("stream");ew.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new tB({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var rw=O((T4,gs)=>{"use strict";var{constants:rB}=require("buffer"),iB=require("stream"),{promisify:nB}=require("util"),sB=tw(),oB=nB(iB.pipeline),ga=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function rf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=sB(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=rB.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await oB(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ga)})}),i.getBufferedValue()}gs.exports=rf;gs.exports.buffer=(t,e)=>rf(t,{...e,encoding:"buffer"});gs.exports.array=(t,e)=>rf(t,{...e,array:!0});gs.exports.MaxBufferError=ga});var nw=O((k4,iw)=>{"use strict";var{PassThrough:aB}=require("stream");iw.exports=function(){var t=[],e=new aB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var uw=O((O4,aw)=>{"use strict";var ow=QE(),sw=rw(),uB=nw(),cB=(t,e)=>{e===void 0||t.stdin===void 0||(ow(e)?e.pipe(t.stdin):t.stdin.end(e))},lB=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=uB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},nf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},sf=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?sw(t,{encoding:e,maxBuffer:i}):sw.buffer(t,{maxBuffer:i})},hB=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=sf(t,{encoding:i,buffer:n,maxBuffer:s}),u=sf(e,{encoding:i,buffer:n,maxBuffer:s}),c=sf(r,{encoding:i,buffer:n,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},nf(t,a),nf(e,u),nf(r,c)])}},fB=({input:t})=>{if(ow(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};aw.exports={handleInput:cB,makeAllStream:lB,getSpawnedResult:hB,validateInputSync:fB}});var lw=O((F4,cw)=>{"use strict";var dB=(async()=>{})().constructor.prototype,pB=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(dB,t)]),mB=(t,e)=>{for(let[r,i]of pB){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},yB=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});cw.exports={mergePromise:mB,getSpawnedPromise:yB}});var dw=O((P4,fw)=>{"use strict";var hw=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],gB=/^[\w.-]+$/,_B=/"/g,bB=t=>typeof t!="string"||gB.test(t)?t:`"${t.replace(_B,'\\"')}"`,EB=(t,e)=>hw(t,e).join(" "),wB=(t,e)=>hw(t,e).map(r=>bB(r)).join(" "),vB=/ +/g,SB=t=>{let e=[];for(let r of t.trim().split(vB)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};fw.exports={joinCommand:EB,getEscapedCommand:wB,parseCommand:SB}});var an=O((L4,on)=>{"use strict";var DB=require("path"),of=require("child_process"),AB=LE(),xB=IE(),CB=jE(),RB=Th(),_a=VE(),mw=KE(),{spawnedKill:TB,spawnedCancel:kB,setupTimeout:OB,validateTimeout:FB,setExitHandler:PB}=JE(),{handleInput:LB,getSpawnedResult:BB,makeAllStream:IB,validateInputSync:NB}=uw(),{mergePromise:pw,getSpawnedPromise:MB}=lw(),{joinCommand:yw,parseCommand:gw,getEscapedCommand:_w}=dw(),jB=1e3*1e3*100,qB=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?CB.env({env:s,cwd:i,execPath:n}):s},bw=(t,e,r={})=>{let i=AB._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:jB,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=qB(r),r.stdio=mw(r),process.platform==="win32"&&DB.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},_s=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?xB(e):e,ba=(t,e,r)=>{let i=bw(t,e,r),n=yw(t,e),s=_w(t,e);FB(i.options);let o;try{o=of.spawn(i.file,i.args,i.options)}catch(d){let m=new of.ChildProcess,y=Promise.reject(_a({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return pw(m,y)}let a=MB(o),u=OB(o,i.options,a),c=PB(o,i.options,u),l={isCanceled:!1};o.kill=TB.bind(null,o.kill.bind(o)),o.cancel=kB.bind(null,o,l);let f=RB(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:p},w,C,F]=await BB(o,i.options,c),P=_s(i.options,w),T=_s(i.options,C),M=_s(i.options,F);if(d||m!==0||y!==null){let S=_a({error:d,exitCode:m,signal:y,stdout:P,stderr:T,all:M,command:n,escapedCommand:s,parsed:i,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return S;throw S}return{command:n,escapedCommand:s,exitCode:0,stdout:P,stderr:T,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return LB(o,i.options.input),o.all=IB(o,i.options),pw(o,f)};on.exports=ba;on.exports.sync=(t,e,r)=>{let i=bw(t,e,r),n=yw(t,e),s=_w(t,e);NB(i.options);let o;try{o=of.spawnSync(i.file,i.args,i.options)}catch(c){throw _a({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=_s(i.options,o.stdout,o.error),u=_s(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=_a({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};on.exports.command=(t,e)=>{let[r,...i]=gw(t);return ba(r,i,e)};on.exports.commandSync=(t,e)=>{let[r,...i]=gw(t);return ba.sync(r,i,e)};on.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=mw.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return ba(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var un=O((j4,Dw)=>{"use strict";var Sw=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"]]);Dw.exports=t=>t?Object.keys(t).map(e=>[Sw.has(e)?Sw.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Ca=O((q4,Pw)=>{"use strict";var Aw=typeof process=="object"&&process?process:{stdout:null,stderr:null},UB=require("events"),xw=require("stream"),Cw=require("string_decoder").StringDecoder,or=Symbol("EOF"),ar=Symbol("maybeEmitEnd"),Ir=Symbol("emittedEnd"),va=Symbol("emittingEnd"),ws=Symbol("emittedError"),Sa=Symbol("closed"),Rw=Symbol("read"),Da=Symbol("flush"),Tw=Symbol("flushChunk"),rt=Symbol("encoding"),ur=Symbol("decoder"),Aa=Symbol("flowing"),vs=Symbol("paused"),cn=Symbol("resume"),Re=Symbol("buffer"),Ut=Symbol("pipes"),Ne=Symbol("bufferLength"),lf=Symbol("bufferPush"),hf=Symbol("bufferShift"),ze=Symbol("objectMode"),We=Symbol("destroyed"),ff=Symbol("emitData"),kw=Symbol("emitEnd"),df=Symbol("emitEnd2"),cr=Symbol("async"),Ss=t=>Promise.resolve().then(t),Ow=global._MP_NO_ITERATOR_SYMBOLS_!=="1",$B=Ow&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),GB=Ow&&Symbol.iterator||Symbol("iterator not implemented"),zB=t=>t==="end"||t==="finish"||t==="prefinish",WB=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,VB=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),xa=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[cn](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},pf=class extends xa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Pw.exports=class Fw extends xw{constructor(e){super(),this[Aa]=!1,this[vs]=!1,this[Ut]=[],this[Re]=[],this[ze]=e&&e.objectMode||!1,this[ze]?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 Cw(this[rt]):null,this[or]=!1,this[Ir]=!1,this[va]=!1,this[Sa]=!1,this[ws]=null,this.writable=!0,this.readable=!0,this[Ne]=0,this[We]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Re]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ut]})}get bufferLength(){return this[Ne]}get encoding(){return this[rt]}set encoding(e){if(this[ze])throw new Error("cannot set encoding in objectMode");if(this[rt]&&e!==this[rt]&&(this[ur]&&this[ur].lastNeed||this[Ne]))throw new Error("cannot change encoding");this[rt]!==e&&(this[ur]=e?new Cw(e):null,this[Re].length&&(this[Re]=this[Re].map(r=>this[ur].write(r)))),this[rt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ze]}set objectMode(e){this[ze]=this[ze]||!!e}get async(){return this[cr]}set async(e){this[cr]=this[cr]||!!e}write(e,r,i){if(this[or])throw new Error("write after end");if(this[We])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[cr]?Ss:s=>s();return!this[ze]&&!Buffer.isBuffer(e)&&(VB(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):WB(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ze]?(this.flowing&&this[Ne]!==0&&this[Da](!0),this.flowing?this.emit("data",e):this[lf](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),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[Ne]!==0&&this[Da](!0),this.flowing?this.emit("data",e):this[lf](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[We])return null;if(this[Ne]===0||e===0||e>this[Ne])return this[ar](),null;this[ze]&&(e=null),this[Re].length>1&&!this[ze]&&(this.encoding?this[Re]=[this[Re].join("")]:this[Re]=[Buffer.concat(this[Re],this[Ne])]);let r=this[Rw](e||null,this[Re][0]);return this[ar](),r}[Rw](e,r){return e===r.length||e===null?this[hf]():(this[Re][0]=r.slice(e),r=r.slice(0,e),this[Ne]-=e),this.emit("data",r),!this[Re].length&&!this[or]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[or]=!0,this.writable=!1,(this.flowing||!this[vs])&&this[ar](),this}[cn](){this[We]||(this[vs]=!1,this[Aa]=!0,this.emit("resume"),this[Re].length?this[Da]():this[or]?this[ar]():this.emit("drain"))}resume(){return this[cn]()}pause(){this[Aa]=!1,this[vs]=!0}get destroyed(){return this[We]}get flowing(){return this[Aa]}get paused(){return this[vs]}[lf](e){this[ze]?this[Ne]+=1:this[Ne]+=e.length,this[Re].push(e)}[hf](){return this[Re].length&&(this[ze]?this[Ne]-=1:this[Ne]-=this[Re][0].length),this[Re].shift()}[Da](e){do;while(this[Tw](this[hf]()));!e&&!this[Re].length&&!this[or]&&this.emit("drain")}[Tw](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[We])return;let i=this[Ir];return r=r||{},e===Aw.stdout||e===Aw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ut].push(r.proxyErrors?new pf(this,e,r):new xa(this,e,r)),this[cr]?Ss(()=>this[cn]()):this[cn]()),e}unpipe(e){let r=this[Ut].find(i=>i.dest===e);r&&(this[Ut].splice(this[Ut].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[Ut].length&&!this.flowing?this[cn]():e==="readable"&&this[Ne]!==0?super.emit("readable"):zB(e)&&this[Ir]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ws]&&(this[cr]?Ss(()=>r.call(this,this[ws])):r.call(this,this[ws])),i}get emittedEnd(){return this[Ir]}[ar](){!this[va]&&!this[Ir]&&!this[We]&&this[Re].length===0&&this[or]&&(this[va]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Sa]&&this.emit("close"),this[va]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==We&&this[We])return;if(e==="data")return r?this[cr]?Ss(()=>this[ff](r)):this[ff](r):!1;if(e==="end")return this[kw]();if(e==="close"){if(this[Sa]=!0,!this[Ir]&&!this[We])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ws]=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 n=super.emit(e,r,...i);return this[ar](),n}[ff](e){for(let i of this[Ut])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[ar](),r}[kw](){this[Ir]||(this[Ir]=!0,this.readable=!1,this[cr]?Ss(()=>this[df]()):this[df]())}[df](){if(this[ur]){let r=this[ur].end();if(r){for(let i of this[Ut])i.dest.write(r);super.emit("data",r)}}for(let r of this[Ut])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ze]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ze]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ze]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ze]?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(We,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[$B](){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 i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[or]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(We,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[GB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[We]?(e?this.emit("error",e):this.emit(We),this):(this[We]=!0,this[Re].length=0,this[Ne]=0,typeof this.close=="function"&&!this[Sa]&&this.close(),e?this.emit("error",e):this.emit(We),this)}static isStream(e){return!!e&&(e instanceof Fw||e instanceof xw||e instanceof UB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Bw=O((H4,Lw)=>{var YB=require("zlib").constants||{ZLIB_VERNUM:4736};Lw.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},YB))});var Ef=O((U4,Gw)=>{"use strict";var Iw=typeof process=="object"&&process?process:{stdout:null,stderr:null},KB=require("events"),Nw=require("stream"),Mw=require("string_decoder").StringDecoder,lr=Symbol("EOF"),hr=Symbol("maybeEmitEnd"),Nr=Symbol("emittedEnd"),Ra=Symbol("emittingEnd"),Ds=Symbol("emittedError"),Ta=Symbol("closed"),jw=Symbol("read"),ka=Symbol("flush"),qw=Symbol("flushChunk"),it=Symbol("encoding"),fr=Symbol("decoder"),Oa=Symbol("flowing"),As=Symbol("paused"),ln=Symbol("resume"),Me=Symbol("bufferLength"),mf=Symbol("bufferPush"),yf=Symbol("bufferShift"),Ve=Symbol("objectMode"),Ye=Symbol("destroyed"),gf=Symbol("emitData"),Hw=Symbol("emitEnd"),_f=Symbol("emitEnd2"),dr=Symbol("async"),xs=t=>Promise.resolve().then(t),Uw=global._MP_NO_ITERATOR_SYMBOLS_!=="1",ZB=Uw&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),JB=Uw&&Symbol.iterator||Symbol("iterator not implemented"),XB=t=>t==="end"||t==="finish"||t==="prefinish",QB=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Fa=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ln](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},bf=class extends Fa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Gw.exports=class $w extends Nw{constructor(e){super(),this[Oa]=!1,this[As]=!1,this.pipes=[],this.buffer=[],this[Ve]=e&&e.objectMode||!1,this[Ve]?this[it]=null:this[it]=e&&e.encoding||null,this[it]==="buffer"&&(this[it]=null),this[dr]=e&&!!e.async||!1,this[fr]=this[it]?new Mw(this[it]):null,this[lr]=!1,this[Nr]=!1,this[Ra]=!1,this[Ta]=!1,this[Ds]=null,this.writable=!0,this.readable=!0,this[Me]=0,this[Ye]=!1}get bufferLength(){return this[Me]}get encoding(){return this[it]}set encoding(e){if(this[Ve])throw new Error("cannot set encoding in objectMode");if(this[it]&&e!==this[it]&&(this[fr]&&this[fr].lastNeed||this[Me]))throw new Error("cannot change encoding");this[it]!==e&&(this[fr]=e?new Mw(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[fr].write(r)))),this[it]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ve]}set objectMode(e){this[Ve]=this[Ve]||!!e}get async(){return this[dr]}set async(e){this[dr]=this[dr]||!!e}write(e,r,i){if(this[lr])throw new Error("write after end");if(this[Ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[dr]?xs:s=>s();return!this[Ve]&&!Buffer.isBuffer(e)&&(eI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):QB(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ve]?(this.flowing&&this[Me]!==0&&this[ka](!0),this.flowing?this.emit("data",e):this[mf](e),this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[it]&&!this[fr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[it]&&(e=this[fr].write(e)),this.flowing&&this[Me]!==0&&this[ka](!0),this.flowing?this.emit("data",e):this[mf](e),this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ye])return null;if(this[Me]===0||e===0||e>this[Me])return this[hr](),null;this[Ve]&&(e=null),this.buffer.length>1&&!this[Ve]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Me])]);let r=this[jw](e||null,this.buffer[0]);return this[hr](),r}[jw](e,r){return e===r.length||e===null?this[yf]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Me]-=e),this.emit("data",r),!this.buffer.length&&!this[lr]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[lr]=!0,this.writable=!1,(this.flowing||!this[As])&&this[hr](),this}[ln](){this[Ye]||(this[As]=!1,this[Oa]=!0,this.emit("resume"),this.buffer.length?this[ka]():this[lr]?this[hr]():this.emit("drain"))}resume(){return this[ln]()}pause(){this[Oa]=!1,this[As]=!0}get destroyed(){return this[Ye]}get flowing(){return this[Oa]}get paused(){return this[As]}[mf](e){this[Ve]?this[Me]+=1:this[Me]+=e.length,this.buffer.push(e)}[yf](){return this.buffer.length&&(this[Ve]?this[Me]-=1:this[Me]-=this.buffer[0].length),this.buffer.shift()}[ka](e){do;while(this[qw](this[yf]()));!e&&!this.buffer.length&&!this[lr]&&this.emit("drain")}[qw](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ye])return;let i=this[Nr];return r=r||{},e===Iw.stdout||e===Iw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new bf(this,e,r):new Fa(this,e,r)),this[dr]?xs(()=>this[ln]()):this[ln]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ln]():e==="readable"&&this[Me]!==0?super.emit("readable"):XB(e)&&this[Nr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ds]&&(this[dr]?xs(()=>r.call(this,this[Ds])):r.call(this,this[Ds])),i}get emittedEnd(){return this[Nr]}[hr](){!this[Ra]&&!this[Nr]&&!this[Ye]&&this.buffer.length===0&&this[lr]&&(this[Ra]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ta]&&this.emit("close"),this[Ra]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ye&&this[Ye])return;if(e==="data")return r?this[dr]?xs(()=>this[gf](r)):this[gf](r):!1;if(e==="end")return this[Hw]();if(e==="close"){if(this[Ta]=!0,!this[Nr]&&!this[Ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ds]=r;let s=super.emit("error",r);return this[hr](),s}else if(e==="resume"){let s=super.emit("resume");return this[hr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[hr](),n}[gf](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[hr](),r}[Hw](){this[Nr]||(this[Nr]=!0,this.readable=!1,this[dr]?xs(()=>this[_f]()):this[_f]())}[_f](){if(this[fr]){let r=this[fr].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ve]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ve]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ve]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ve]?Promise.reject(new Error("cannot concat in objectMode")):this[it]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[ZB](){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 i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[lr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ye,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[JB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ye]?(e?this.emit("error",e):this.emit(Ye),this):(this[Ye]=!0,this.buffer.length=0,this[Me]=0,typeof this.close=="function"&&!this[Ta]&&this.close(),e?this.emit("error",e):this.emit(Ye),this)}static isStream(e){return!!e&&(e instanceof $w||e instanceof Nw||e instanceof KB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var If=O(ct=>{"use strict";var Af=require("assert"),Mr=require("buffer").Buffer,Vw=require("zlib"),mi=ct.constants=Bw(),tI=Ef(),zw=Mr.concat,yi=Symbol("_superWrite"),fn=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"}},rI=Symbol("opts"),Cs=Symbol("flushFlag"),Ww=Symbol("finishFlushFlag"),Bf=Symbol("fullFlushFlag"),ve=Symbol("handle"),Pa=Symbol("onError"),hn=Symbol("sawError"),wf=Symbol("level"),vf=Symbol("strategy"),Sf=Symbol("ended"),$4=Symbol("_defaultFullFlush"),La=class extends tI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[hn]=!1,this[Sf]=!1,this[rI]=e,this[Cs]=e.flush,this[Ww]=e.finishFlush;try{this[ve]=new Vw[r](e)}catch(i){throw new fn(i)}this[Pa]=i=>{this[hn]||(this[hn]=!0,this.close(),this.emit("error",i))},this[ve].on("error",i=>this[Pa](new fn(i))),this.once("end",()=>this.close)}close(){this[ve]&&(this[ve].close(),this[ve]=null,this.emit("close"))}reset(){if(!this[hn])return Af(this[ve],"zlib binding closed"),this[ve].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Bf]),this.write(Object.assign(Mr.alloc(0),{[Cs]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Ww]),this[Sf]=!0,super.end(null,null,i)}get ended(){return this[Sf]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=Mr.from(e,r)),this[hn])return;Af(this[ve],"zlib binding closed");let n=this[ve]._handle,s=n.close;n.close=()=>{};let o=this[ve].close;this[ve].close=()=>{},Mr.concat=c=>c;let a;try{let c=typeof e[Cs]=="number"?e[Cs]:this[Cs];a=this[ve]._processChunk(e,c),Mr.concat=zw}catch(c){Mr.concat=zw,this[Pa](new fn(c))}finally{this[ve]&&(this[ve]._handle=n,n.close=s,this[ve].close=o,this[ve].removeAllListeners("error"))}this[ve]&&this[ve].on("error",c=>this[Pa](new fn(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[yi](Mr.from(a[0]));for(let c=1;c<a.length;c++)u=this[yi](a[c])}else u=this[yi](Mr.from(a));return i&&i(),u}[yi](e){return super.write(e)}},pr=class extends La{constructor(e,r){e=e||{},e.flush=e.flush||mi.Z_NO_FLUSH,e.finishFlush=e.finishFlush||mi.Z_FINISH,super(e,r),this[Bf]=mi.Z_FULL_FLUSH,this[wf]=e.level,this[vf]=e.strategy}params(e,r){if(!this[hn]){if(!this[ve])throw new Error("cannot switch params when binding is closed");if(!this[ve].params)throw new Error("not supported in this implementation");if(this[wf]!==e||this[vf]!==r){this.flush(mi.Z_SYNC_FLUSH),Af(this[ve],"zlib binding closed");let i=this[ve].flush;this[ve].flush=(n,s)=>{this.flush(n),s()};try{this[ve].params(e,r)}finally{this[ve].flush=i}this[ve]&&(this[wf]=e,this[vf]=r)}}}},xf=class extends pr{constructor(e){super(e,"Deflate")}},Cf=class extends pr{constructor(e){super(e,"Inflate")}},Df=Symbol("_portable"),Rf=class extends pr{constructor(e){super(e,"Gzip"),this[Df]=e&&!!e.portable}[yi](e){return this[Df]?(this[Df]=!1,e[9]=255,super[yi](e)):super[yi](e)}},Tf=class extends pr{constructor(e){super(e,"Gunzip")}},kf=class extends pr{constructor(e){super(e,"DeflateRaw")}},Of=class extends pr{constructor(e){super(e,"InflateRaw")}},Ff=class extends pr{constructor(e){super(e,"Unzip")}},Ba=class extends La{constructor(e,r){e=e||{},e.flush=e.flush||mi.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||mi.BROTLI_OPERATION_FINISH,super(e,r),this[Bf]=mi.BROTLI_OPERATION_FLUSH}},Pf=class extends Ba{constructor(e){super(e,"BrotliCompress")}},Lf=class extends Ba{constructor(e){super(e,"BrotliDecompress")}};ct.Deflate=xf;ct.Inflate=Cf;ct.Gzip=Rf;ct.Gunzip=Tf;ct.DeflateRaw=kf;ct.InflateRaw=Of;ct.Unzip=Ff;typeof Vw.BrotliCompress=="function"?(ct.BrotliCompress=Pf,ct.BrotliDecompress=Lf):ct.BrotliCompress=ct.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var dn=O((W4,Yw)=>{var iI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Yw.exports=iI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Ia=O((Y4,Kw)=>{"use strict";var nI=Ca(),Nf=dn(),Mf=Symbol("slurp");Kw.exports=class extends nI{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Nf(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=Nf(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Mf](r),i&&this[Mf](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[Mf](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Nf(e[i]):e[i])}}});var jf=O(Na=>{"use strict";Na.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"]]);Na.code=new Map(Array.from(Na.name).map(t=>[t[1],t[0]]))});var Qw=O((Z4,Xw)=>{"use strict";var sI=(t,e)=>{if(Number.isSafeInteger(t))t<0?aI(t,e):oI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},oI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},aI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=Zw(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Jw(n))}},uI=t=>{let e=t[0],r=e===128?lI(t.slice(1,t.length)):e===255?cI(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},cI=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Zw(s):s===0?o=s:(i=!0,o=Jw(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},lI=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},Zw=t=>(255^t)&255,Jw=t=>(255^t)+1&255;Xw.exports={encode:sI,parse:uI}});var mn=O((J4,tv)=>{"use strict";var qf=jf(),pn=require("path").posix,ev=Qw(),Hf=Symbol("slurp"),lt=Symbol("type"),Gf=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[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,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=gi(e,r,100),this.mode=jr(e,r+100,8),this.uid=jr(e,r+108,8),this.gid=jr(e,r+116,8),this.size=jr(e,r+124,12),this.mtime=Uf(e,r+136,12),this.cksum=jr(e,r+148,12),this[Hf](i),this[Hf](n,!0),this[lt]=gi(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=gi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=gi(e,r+265,32),this.gname=gi(e,r+297,32),this.devmaj=jr(e,r+329,8),this.devmin=jr(e,r+337,8),e[r+475]!==0){let o=gi(e,r+345,155);this.path=o+"/"+this.path}else{let o=gi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Uf(e,r+476,12),this.ctime=Uf(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)}[Hf](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=hI(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=_i(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=$f(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[lt].charCodeAt(0),this.needPax=_i(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=_i(e,r+265,32,this.uname)||this.needPax,this.needPax=_i(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=_i(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=_i(e,r+345,155,o)||this.needPax:(this.needPax=_i(e,r+345,130,o)||this.needPax,this.needPax=$f(e,r+476,12,this.atime)||this.needPax,this.needPax=$f(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 qf.name.get(this[lt])||this[lt]}get typeKey(){return this[lt]}set type(e){qf.code.has(e)?this[lt]=qf.code.get(e):this[lt]=e}},hI=(t,e)=>{let i=t,n="",s,o=pn.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=pn.dirname(i),i=pn.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=pn.join(pn.basename(n),i),n=pn.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},gi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Uf=(t,e,r)=>fI(jr(t,e,r)),fI=t=>t===null?null:new Date(t*1e3),jr=(t,e,r)=>t[e]&128?ev.parse(t.slice(e,e+r)):pI(t,e,r),dI=t=>isNaN(t)?null:t,pI=(t,e,r)=>dI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),mI={12:8589934591,8:2097151},qr=(t,e,r,i)=>i===null?!1:i>mI[r]||i<0?(ev.encode(i,t.slice(e,e+r)),!0):(yI(t,e,r,i),!1),yI=(t,e,r,i)=>t.write(gI(i,r),e,r,"ascii"),gI=(t,e)=>_I(Math.floor(t).toString(8),e),_I=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",$f=(t,e,r,i)=>i===null?!1:qr(t,e,r,i.getTime()/1e3),bI=new Array(156).join("\0"),_i=(t,e,r,i)=>i===null?!1:(t.write(i+bI,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);tv.exports=Gf});var Ma=O((X4,rv)=>{"use strict";var EI=mn(),wI=require("path"),Rs=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new EI({path:("PaxHeader/"+wI.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
13
|
+
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Rs.parse=(t,e,r)=>new Rs(vI(SI(t),e),r);var vI=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,SI=t=>t.replace(/\n$/,"").split(`
|
14
|
+
`).reduce(DI,Object.create(null)),DI=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};rv.exports=Rs});var yn=O((Q4,iv)=>{iv.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 ja=O((e9,nv)=>{"use strict";nv.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Wf=O((r9,sv)=>{"use strict";var qa=["|","<",">","?",":"],zf=qa.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),AI=new Map(qa.map((t,e)=>[t,zf[e]])),xI=new Map(zf.map((t,e)=>[t,qa[e]]));sv.exports={encode:t=>qa.reduce((e,r)=>e.split(r).join(AI.get(r)),t),decode:t=>zf.reduce((e,r)=>e.split(r).join(xI.get(r)),t)}});var Vf=O((i9,av)=>{var{isAbsolute:CI,parse:ov}=require("path").win32;av.exports=t=>{let e="",r=ov(t);for(;CI(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=ov(t)}return[e,t]}});var cv=O((n9,uv)=>{"use strict";uv.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 id=O((a9,Sv)=>{"use strict";var yv=Ca(),gv=Ma(),_v=mn(),Gt=require("fs"),lv=require("path"),$t=dn(),RI=yn(),bv=(t,e)=>e?(t=$t(t).replace(/^\.(\/|$)/,""),RI(e)+"/"+t):$t(t),TI=16*1024*1024,hv=Symbol("process"),fv=Symbol("file"),dv=Symbol("directory"),Kf=Symbol("symlink"),pv=Symbol("hardlink"),Ts=Symbol("header"),Ha=Symbol("read"),Zf=Symbol("lstat"),Ua=Symbol("onlstat"),Jf=Symbol("onread"),Xf=Symbol("onreadlink"),Qf=Symbol("openfile"),ed=Symbol("onopenfile"),Hr=Symbol("close"),$a=Symbol("mode"),td=Symbol("awaitDrain"),Yf=Symbol("ondrain"),zt=Symbol("prefix"),mv=Symbol("hadError"),Ev=ja(),kI=Wf(),wv=Vf(),vv=cv(),Ga=Ev(class extends yv{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||TI,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 i=!1;if(!this.preservePaths){let[n,s]=wv(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=kI.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=$t(r.absolute||lv.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ua](this.statCache.get(this.absolute)):this[Zf]()}emit(e,...r){return e==="error"&&(this[mv]=!0),super.emit(e,...r)}[Zf](){Gt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ua](r)})}[Ua](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=FI(e),this.emit("stat",e),this[hv]()}[hv](){switch(this.type){case"File":return this[fv]();case"Directory":return this[dv]();case"SymbolicLink":return this[Kf]();default:return this.end()}}[$a](e){return vv(e,this.type==="Directory",this.portable)}[zt](e){return bv(e,this.prefix)}[Ts](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new _v({path:this[zt](this.path),linkpath:this.type==="Link"?this[zt](this.linkpath):this.linkpath,mode:this[$a](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new gv({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[zt](this.path),linkpath:this.type==="Link"?this[zt](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)}[dv](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ts](),this.end()}[Kf](){Gt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Xf](r)})}[Xf](e){this.linkpath=$t(e),this[Ts](),this.end()}[pv](e){this.type="Link",this.linkpath=$t(lv.relative(this.cwd,e)),this.stat.size=0,this[Ts](),this.end()}[fv](){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[pv](r)}this.linkCache.set(e,this.absolute)}if(this[Ts](),this.stat.size===0)return this.end();this[Qf]()}[Qf](){Gt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[ed](r)})}[ed](e){if(this.fd=e,this[mv])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[Ha]()}[Ha](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Gt.read(e,r,i,n,s,(o,a)=>{if(o)return this[Hr](()=>this.emit("error",o));this[Jf](a)})}[Hr](e){Gt.close(this.fd,e)}[Jf](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Hr](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Hr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Yf]():this[td](()=>this[Yf]())}[td](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)}[Yf](){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[Ha]()}}),rd=class extends Ga{[Zf](){this[Ua](Gt.lstatSync(this.absolute))}[Kf](){this[Xf](Gt.readlinkSync(this.absolute))}[Qf](){this[ed](Gt.openSync(this.absolute,"r"))}[Ha](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=Gt.readSync(r,i,n,s,o);this[Jf](a),e=!1}finally{if(e)try{this[Hr](()=>{})}catch{}}}[td](e){e()}[Hr](e){Gt.closeSync(this.fd),e()}},OI=Ev(class extends yv{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[$a](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 i=!1;if(!this.preservePaths){let[n,s]=wv(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new _v({path:this[zt](this.path),linkpath:this.type==="Link"?this[zt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new gv({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[zt](this.path),linkpath:this.type==="Link"?this[zt](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)}[zt](e){return bv(e,this.prefix)}[$a](e){return vv(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()}});Ga.Sync=rd;Ga.Tar=OI;var FI=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Sv.exports=Ga});var Av=O((u9,Dv)=>{"use strict";Dv.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var nd=O((c9,xv)=>{"use strict";xv.exports=ge;ge.Node=bi;ge.create=ge;function ge(t){var e=this;if(e instanceof ge||(e=new ge),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}ge.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};ge.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++}};ge.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++}};ge.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)LI(this,arguments[t]);return this.length};ge.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)BI(this,arguments[t]);return this.length};ge.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}};ge.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}};ge.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};ge.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};ge.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};ge.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};ge.prototype.map=function(t,e){e=e||this;for(var r=new ge,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};ge.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ge,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};ge.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};ge.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};ge.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};ge.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};ge.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 ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};ge.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 ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};ge.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=PI(this,n,r[i]);return s};ge.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function PI(t,e,r){var i=e===t.head?new bi(r,null,e,t):new bi(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function LI(t,e){t.tail=new bi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function BI(t,e){t.head=new bi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function bi(t,e,r,i){if(!(this instanceof bi))return new bi(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Av()(ge)}catch{}});var Qa=O((h9,Pv)=>{"use strict";var Ja=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}},II=Ca(),NI=If(),MI=Ia(),dd=id(),jI=dd.Sync,qI=dd.Tar,HI=nd(),Cv=Buffer.alloc(1024),Va=Symbol("onStat"),za=Symbol("ended"),Wt=Symbol("queue"),gn=Symbol("current"),Ei=Symbol("process"),Wa=Symbol("processing"),Rv=Symbol("processJob"),Vt=Symbol("jobs"),sd=Symbol("jobDone"),Ya=Symbol("addFSEntry"),Tv=Symbol("addTarEntry"),cd=Symbol("stat"),ld=Symbol("readdir"),Ka=Symbol("onreaddir"),Za=Symbol("pipe"),kv=Symbol("entry"),od=Symbol("entryOpt"),hd=Symbol("writeEntryClass"),Fv=Symbol("write"),ad=Symbol("ondrain"),Xa=require("fs"),Ov=require("path"),UI=ja(),ud=dn(),pd=UI(class extends II{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=ud(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[hd]=dd,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 NI.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[ad]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[ad]),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 HI,this[Vt]=0,this.jobs=+e.jobs||4,this[Wa]=!1,this[za]=!1}[Fv](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[za]=!0,this[Ei](),this}write(e){if(this[za])throw new Error("write after end");return e instanceof MI?this[Tv](e):this[Ya](e),this.flowing}[Tv](e){let r=ud(Ov.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ja(e.path,r,!1);i.entry=new qI(e,this[od](i)),i.entry.on("end",n=>this[sd](i)),this[Vt]+=1,this[Wt].push(i)}this[Ei]()}[Ya](e){let r=ud(Ov.resolve(this.cwd,e));this[Wt].push(new Ja(e,r)),this[Ei]()}[cd](e){e.pending=!0,this[Vt]+=1;let r=this.follow?"stat":"lstat";Xa[r](e.absolute,(i,n)=>{e.pending=!1,this[Vt]-=1,i?this.emit("error",i):this[Va](e,n)})}[Va](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Ei]()}[ld](e){e.pending=!0,this[Vt]+=1,Xa.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Vt]-=1,r)return this.emit("error",r);this[Ka](e,i)})}[Ka](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Ei]()}[Ei](){if(!this[Wa]){this[Wa]=!0;for(let e=this[Wt].head;e!==null&&this[Vt]<this.jobs;e=e.next)if(this[Rv](e.value),e.value.ignore){let r=e.next;this[Wt].removeNode(e),e.next=r}this[Wa]=!1,this[za]&&!this[Wt].length&&this[Vt]===0&&(this.zip?this.zip.end(Cv):(super.write(Cv),super.end()))}}get[gn](){return this[Wt]&&this[Wt].head&&this[Wt].head.value}[sd](e){this[Wt].shift(),this[Vt]-=1,this[Ei]()}[Rv](e){if(!e.pending){if(e.entry){e===this[gn]&&!e.piped&&this[Za](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Va](e,this.statCache.get(e.absolute)):this[cd](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ka](e,this.readdirCache.get(e.absolute)):this[ld](e),!e.readdir))){if(e.entry=this[kv](e),!e.entry){e.ignore=!0;return}e===this[gn]&&!e.piped&&this[Za](e)}}}[od](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[kv](e){this[Vt]+=1;try{return new this[hd](e.path,this[od](e)).on("end",()=>this[sd](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[ad](){this[gn]&&this[gn].entry&&this[gn].entry.resume()}[Za](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ya](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),fd=class extends pd{constructor(e){super(e),this[hd]=jI}pause(){}resume(){}[cd](e){let r=this.follow?"statSync":"lstatSync";this[Va](e,Xa[r](e.absolute))}[ld](e,r){this[Ka](e,Xa.readdirSync(e.absolute))}[Za](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ya](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[Fv](n)})}};pd.Sync=fd;Pv.exports=pd});var An=O(Os=>{"use strict";var $I=Ef(),GI=require("events").EventEmitter,nt=require("fs"),gd=nt.writev;if(!gd){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;gd=(r,i,n,s)=>{let o=(u,c)=>s(u,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Sn=Symbol("_autoClose"),kt=Symbol("_close"),ks=Symbol("_ended"),Ee=Symbol("_fd"),Lv=Symbol("_finished"),$r=Symbol("_flags"),md=Symbol("_flush"),_d=Symbol("_handleChunk"),bd=Symbol("_makeBuf"),nu=Symbol("_mode"),eu=Symbol("_needDrain"),wn=Symbol("_onerror"),Dn=Symbol("_onopen"),yd=Symbol("_onread"),bn=Symbol("_onwrite"),Gr=Symbol("_open"),mr=Symbol("_path"),wi=Symbol("_pos"),Yt=Symbol("_queue"),En=Symbol("_read"),Bv=Symbol("_readSize"),Ur=Symbol("_reading"),tu=Symbol("_remain"),Iv=Symbol("_size"),ru=Symbol("_write"),_n=Symbol("_writing"),iu=Symbol("_defaultFlag"),vn=Symbol("_errored"),su=class extends $I{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[vn]=!1,this[Ee]=typeof r.fd=="number"?r.fd:null,this[mr]=e,this[Bv]=r.readSize||16*1024*1024,this[Ur]=!1,this[Iv]=typeof r.size=="number"?r.size:1/0,this[tu]=this[Iv],this[Sn]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Ee]=="number"?this[En]():this[Gr]()}get fd(){return this[Ee]}get path(){return this[mr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Gr](){nt.open(this[mr],"r",(e,r)=>this[Dn](e,r))}[Dn](e,r){e?this[wn](e):(this[Ee]=r,this.emit("open",r),this[En]())}[bd](){return Buffer.allocUnsafe(Math.min(this[Bv],this[tu]))}[En](){if(!this[Ur]){this[Ur]=!0;let e=this[bd]();if(e.length===0)return process.nextTick(()=>this[yd](null,0,e));nt.read(this[Ee],e,0,e.length,null,(r,i,n)=>this[yd](r,i,n))}}[yd](e,r,i){this[Ur]=!1,e?this[wn](e):this[_d](r,i)&&this[En]()}[kt](){if(this[Sn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[wn](e){this[Ur]=!0,this[kt](),this.emit("error",e)}[_d](e,r){let i=!1;return this[tu]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[tu]<=0)&&(i=!1,this[kt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Ee]=="number"&&this[En]();break;case"error":return this[vn]?void 0:(this[vn]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Ed=class extends su{[Gr](){let e=!0;try{this[Dn](null,nt.openSync(this[mr],"r")),e=!1}finally{e&&this[kt]()}}[En](){let e=!0;try{if(!this[Ur]){this[Ur]=!0;do{let r=this[bd](),i=r.length===0?0:nt.readSync(this[Ee],r,0,r.length,null);if(!this[_d](i,r))break}while(!0);this[Ur]=!1}e=!1}finally{e&&this[kt]()}}[kt](){if(this[Sn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.closeSync(e),this.emit("close")}}},ou=class extends GI{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[vn]=!1,this[_n]=!1,this[ks]=!1,this[eu]=!1,this[Yt]=[],this[mr]=e,this[Ee]=typeof r.fd=="number"?r.fd:null,this[nu]=r.mode===void 0?438:r.mode,this[wi]=typeof r.start=="number"?r.start:null,this[Sn]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[wi]!==null?"r+":"w";this[iu]=r.flags===void 0,this[$r]=this[iu]?i:r.flags,this[Ee]===null&&this[Gr]()}emit(e,r){if(e==="error"){if(this[vn])return;this[vn]=!0}return super.emit(e,r)}get fd(){return this[Ee]}get path(){return this[mr]}[wn](e){this[kt](),this[_n]=!0,this.emit("error",e)}[Gr](){nt.open(this[mr],this[$r],this[nu],(e,r)=>this[Dn](e,r))}[Dn](e,r){this[iu]&&this[$r]==="r+"&&e&&e.code==="ENOENT"?(this[$r]="w",this[Gr]()):e?this[wn](e):(this[Ee]=r,this.emit("open",r),this[md]())}end(e,r){return e&&this.write(e,r),this[ks]=!0,!this[_n]&&!this[Yt].length&&typeof this[Ee]=="number"&&this[bn](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ks]?(this.emit("error",new Error("write() after end()")),!1):this[Ee]===null||this[_n]||this[Yt].length?(this[Yt].push(e),this[eu]=!0,!1):(this[_n]=!0,this[ru](e),!0)}[ru](e){nt.write(this[Ee],e,0,e.length,this[wi],(r,i)=>this[bn](r,i))}[bn](e,r){e?this[wn](e):(this[wi]!==null&&(this[wi]+=r),this[Yt].length?this[md]():(this[_n]=!1,this[ks]&&!this[Lv]?(this[Lv]=!0,this[kt](),this.emit("finish")):this[eu]&&(this[eu]=!1,this.emit("drain"))))}[md](){if(this[Yt].length===0)this[ks]&&this[bn](null,0);else if(this[Yt].length===1)this[ru](this[Yt].pop());else{let e=this[Yt];this[Yt]=[],gd(this[Ee],e,this[wi],(r,i)=>this[bn](r,i))}}[kt](){if(this[Sn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},wd=class extends ou{[Gr](){let e;if(this[iu]&&this[$r]==="r+")try{e=nt.openSync(this[mr],this[$r],this[nu])}catch(r){if(r.code==="ENOENT")return this[$r]="w",this[Gr]();throw r}else e=nt.openSync(this[mr],this[$r],this[nu]);this[Dn](null,e)}[kt](){if(this[Sn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,nt.closeSync(e),this.emit("close")}}[ru](e){let r=!0;try{this[bn](null,nt.writeSync(this[Ee],e,0,e.length,this[wi])),r=!1}finally{if(r)try{this[kt]()}catch{}}}};Os.ReadStream=su;Os.ReadStreamSync=Ed;Os.WriteStream=ou;Os.WriteStreamSync=wd});var du=O((p9,Gv)=>{"use strict";var zI=ja(),WI=mn(),VI=require("events"),YI=nd(),KI=1024*1024,ZI=Ia(),Nv=Ma(),JI=If(),{nextTick:XI}=require("process"),vd=Buffer.from([31,139]),bt=Symbol("state"),vi=Symbol("writeEntry"),yr=Symbol("readEntry"),Sd=Symbol("nextEntry"),Mv=Symbol("processEntry"),Et=Symbol("extendedHeader"),Fs=Symbol("globalExtendedHeader"),zr=Symbol("meta"),jv=Symbol("emitMeta"),Se=Symbol("buffer"),gr=Symbol("queue"),Si=Symbol("ended"),qv=Symbol("emittedEnd"),Di=Symbol("emit"),st=Symbol("unzip"),au=Symbol("consumeChunk"),uu=Symbol("consumeChunkSub"),Dd=Symbol("consumeBody"),Hv=Symbol("consumeMeta"),Uv=Symbol("consumeHeader"),cu=Symbol("consuming"),Ad=Symbol("bufferConcat"),xd=Symbol("maybeEnd"),Ps=Symbol("writing"),Wr=Symbol("aborted"),lu=Symbol("onDone"),Ai=Symbol("sawValidEntry"),hu=Symbol("sawNullBlock"),fu=Symbol("sawEOF"),$v=Symbol("closeStream"),QI=t=>!0;Gv.exports=zI(class extends VI{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Ai]=null,this.on(lu,r=>{(this[bt]==="begin"||this[Ai]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(lu,e.ondone):this.on(lu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||KI,this.filter=typeof e.filter=="function"?e.filter:QI,this.writable=!0,this.readable=!1,this[gr]=new YI,this[Se]=null,this[yr]=null,this[vi]=null,this[bt]="begin",this[zr]="",this[Et]=null,this[Fs]=null,this[Si]=!1,this[st]=null,this[Wr]=!1,this[hu]=!1,this[fu]=!1,this.on("end",()=>this[$v]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Uv](e,r){this[Ai]===null&&(this[Ai]=!1);let i;try{i=new WI(e,r,this[Et],this[Fs])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[hu]?(this[fu]=!0,this[bt]==="begin"&&(this[bt]="header"),this[Di]("eof")):(this[hu]=!0,this[Di]("nullBlock"));else if(this[hu]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[vi]=new ZI(i,this[Et],this[Fs]);if(!this[Ai])if(s.remain){let o=()=>{s.invalid||(this[Ai]=!0)};s.on("end",o)}else this[Ai]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Di]("ignoredEntry",s),this[bt]="ignore",s.resume()):s.size>0&&(this[zr]="",s.on("data",o=>this[zr]+=o),this[bt]="meta"):(this[Et]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Di]("ignoredEntry",s),this[bt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[bt]="body":(this[bt]="header",s.end()),this[yr]?this[gr].push(s):(this[gr].push(s),this[Sd]())))}}}[$v](){XI(()=>this.emit("close"))}[Mv](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[yr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Sd]()),r=!1)):(this[yr]=null,r=!1),r}[Sd](){do;while(this[Mv](this[gr].shift()));if(!this[gr].length){let e=this[yr];!e||e.flowing||e.size===e.remain?this[Ps]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Dd](e,r){let i=this[vi],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[bt]="header",this[vi]=null,i.end()),s.length}[Hv](e,r){let i=this[vi],n=this[Dd](e,r);return this[vi]||this[jv](i),n}[Di](e,r,i){!this[gr].length&&!this[yr]?this.emit(e,r,i):this[gr].push([e,r,i])}[jv](e){switch(this[Di]("meta",this[zr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Et]=Nv.parse(this[zr],this[Et],!1);break;case"GlobalExtendedHeader":this[Fs]=Nv.parse(this[zr],this[Fs],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Et]=this[Et]||Object.create(null),this[Et].path=this[zr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Et]=this[Et]||Object.create(null),this[Et].linkpath=this[zr].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[Se]&&(e=Buffer.concat([this[Se],e]),this[Se]=null),e.length<vd.length)return this[Se]=e,!0;for(let i=0;this[st]===null&&i<vd.length;i++)e[i]!==vd[i]&&(this[st]=!1);if(this[st]===null){let i=this[Si];this[Si]=!1,this[st]=new JI.Unzip,this[st].on("data",s=>this[au](s)),this[st].on("error",s=>this.abort(s)),this[st].on("end",s=>{this[Si]=!0,this[au]()}),this[Ps]=!0;let n=this[st][i?"end":"write"](e);return this[Ps]=!1,n}}this[Ps]=!0,this[st]?this[st].write(e):this[au](e),this[Ps]=!1;let r=this[gr].length?!1:this[yr]?this[yr].flowing:!0;return!r&&!this[gr].length&&this[yr].once("drain",i=>this.emit("drain")),r}[Ad](e){e&&!this[Wr]&&(this[Se]=this[Se]?Buffer.concat([this[Se],e]):e)}[xd](){if(this[Si]&&!this[qv]&&!this[Wr]&&!this[cu]){this[qv]=!0;let e=this[vi];if(e&&e.blockRemain){let r=this[Se]?this[Se].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Se]&&e.write(this[Se]),e.end()}this[Di](lu)}}[au](e){if(this[cu])this[Ad](e);else if(!e&&!this[Se])this[xd]();else{if(this[cu]=!0,this[Se]){this[Ad](e);let r=this[Se];this[Se]=null,this[uu](r)}else this[uu](e);for(;this[Se]&&this[Se].length>=512&&!this[Wr]&&!this[fu];){let r=this[Se];this[Se]=null,this[uu](r)}this[cu]=!1}(!this[Se]||this[Si])&&this[xd]()}[uu](e){let r=0,i=e.length;for(;r+512<=i&&!this[Wr]&&!this[fu];)switch(this[bt]){case"begin":case"header":this[Uv](e,r),r+=512;break;case"ignore":case"body":r+=this[Dd](e,r);break;case"meta":r+=this[Hv](e,r);break;default:throw new Error("invalid state: "+this[bt])}r<i&&(this[Se]?this[Se]=Buffer.concat([e.slice(r),this[Se]]):this[Se]=e.slice(r))}end(e){this[Wr]||(this[st]?this[st].end(e):(this[Si]=!0,this.write(e)))}})});var pu=O((m9,Yv)=>{"use strict";var eN=un(),Wv=du(),xn=require("fs"),tN=An(),zv=require("path"),Cd=yn();Yv.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=eN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&iN(i,e),i.noResume||rN(i),i.file&&i.sync?nN(i):i.file?sN(i,r):Vv(i)};var rN=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},iN=(t,e)=>{let r=new Map(e.map(s=>[Cd(s),!0])),i=t.filter,n=(s,o)=>{let a=o||zv.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(zv.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Cd(s)):s=>n(Cd(s))},nN=t=>{let e=Vv(t),r=t.file,i=!0,n;try{let s=xn.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(xn.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=xn.openSync(r,"r");a<s.size;){let c=xn.readSync(n,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{xn.closeSync(n)}catch{}}},sN=(t,e)=>{let r=new Wv(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),xn.stat(n,(u,c)=>{if(u)a(u);else{let l=new tN.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},Vv=t=>new Wv(t)});var eS=O((y9,Qv)=>{"use strict";var oN=un(),mu=Qa(),Kv=An(),Zv=pu(),Jv=require("path");Qv.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=oN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?aN(i,e):i.file?uN(i,e,r):i.sync?cN(i,e):lN(i,e)};var aN=(t,e)=>{let r=new mu.Sync(t),i=new Kv.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Xv(r,e)},uN=(t,e,r)=>{let i=new mu(t),n=new Kv.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return Rd(i,e),r?s.then(r,r):s},Xv=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Zv({file:Jv.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Rd=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Zv({file:Jv.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Rd(t,e));t.add(r)}t.end()},cN=(t,e)=>{let r=new mu.Sync(t);return Xv(r,e),r},lN=(t,e)=>{let r=new mu(t);return Rd(r,e),r}});var Td=O((g9,aS)=>{"use strict";var hN=un(),tS=Qa(),ht=require("fs"),rS=An(),iS=pu(),nS=require("path"),sS=mn();aS.exports=(t,e,r)=>{let i=hN(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?fN(i,e):pN(i,e,r)};var fN=(t,e)=>{let r=new tS.Sync(t),i=!0,n,s;try{try{n=ht.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=ht.openSync(t.file,"w+");else throw u}let o=ht.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,h=0;l<512;l+=h){if(h=ht.readSync(n,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new sS(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)}i=!1,dN(t,r,s,n,e)}finally{if(i)try{ht.closeSync(n)}catch{}}},dN=(t,e,r,i,n)=>{let s=new rS.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),mN(e,n)},pN=(t,e,r)=>{e=Array.from(e);let i=new tS(t),n=(o,a,u)=>{let c=(m,y)=>{m?ht.close(o,p=>u(m)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return ht.read(o,f,h,f.length-h,l+h,d);if(l===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,l);let p=new sS(f);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);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),h=0,ht.read(o,f,0,512,l,d)};ht.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",ht.open(t.file,u,c);if(l)return a(l);ht.fstat(h,(f,d)=>{if(f)return ht.close(h,()=>a(f));n(h,d.size,(m,y)=>{if(m)return a(m);let p=new rS.WriteStream(t.file,{fd:h,start:y});i.pipe(p),p.on("error",a),p.on("close",o),oS(i,e)})})};ht.open(t.file,u,c)});return r?s.then(r,r):s},mN=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?iS({file:nS.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},oS=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return iS({file:nS.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>oS(t,e));t.add(r)}t.end()}});var cS=O((_9,uS)=>{"use strict";var yN=un(),gN=Td();uS.exports=(t,e,r)=>{let i=yN(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),_N(i),gN(i,e,r)};var _N=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var fS=O((b9,hS)=>{var{promisify:lS}=require("util"),Vr=require("fs"),bN=t=>{if(!t)t={mode:511,fs:Vr};else if(typeof t=="object")t={mode:511,fs:Vr,...t};else if(typeof t=="number")t={mode:t,fs:Vr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Vr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Vr.mkdir,t.mkdirAsync=lS(t.mkdir),t.stat=t.stat||t.fs.stat||Vr.stat,t.statAsync=lS(t.stat),t.statSync=t.statSync||t.fs.statSync||Vr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Vr.mkdirSync,t};hS.exports=bN});var pS=O((E9,dS)=>{var EN=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:wN,parse:vN}=require("path"),SN=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=wN(t),EN==="win32"){let e=/[*|"<>?:]/,{root:r}=vN(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};dS.exports=SN});var bS=O((w9,_S)=>{var{dirname:mS}=require("path"),yS=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?yS(t,mS(e),e):void 0),gS=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?gS(t,mS(e),e):void 0}};_S.exports={findMade:yS,findMadeSync:gS}});var Fd=O((v9,wS)=>{var{dirname:ES}=require("path"),kd=(t,e,r)=>{e.recursive=!1;let i=ES(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return kd(i,e).then(s=>kd(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Od=(t,e,r)=>{let i=ES(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Od(t,e,Od(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};wS.exports={mkdirpManual:kd,mkdirpManualSync:Od}});var DS=O((S9,SS)=>{var{dirname:vS}=require("path"),{findMade:DN,findMadeSync:AN}=bS(),{mkdirpManual:xN,mkdirpManualSync:CN}=Fd(),RN=(t,e)=>(e.recursive=!0,vS(t)===t?e.mkdirAsync(t,e):DN(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return xN(t,e);throw n}))),TN=(t,e)=>{if(e.recursive=!0,vS(t)===t)return e.mkdirSync(t,e);let i=AN(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return CN(t,e);throw n}};SS.exports={mkdirpNative:RN,mkdirpNativeSync:TN}});var RS=O((D9,CS)=>{var AS=require("fs"),kN=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Pd=kN.replace(/^v/,"").split("."),xS=+Pd[0]>10||+Pd[0]==10&&+Pd[1]>=12,ON=xS?t=>t.mkdir===AS.mkdir:()=>!1,FN=xS?t=>t.mkdirSync===AS.mkdirSync:()=>!1;CS.exports={useNative:ON,useNativeSync:FN}});var LS=O((A9,PS)=>{var Cn=fS(),Rn=pS(),{mkdirpNative:TS,mkdirpNativeSync:kS}=DS(),{mkdirpManual:OS,mkdirpManualSync:FS}=Fd(),{useNative:PN,useNativeSync:LN}=RS(),Tn=(t,e)=>(t=Rn(t),e=Cn(e),PN(e)?TS(t,e):OS(t,e)),BN=(t,e)=>(t=Rn(t),e=Cn(e),LN(e)?kS(t,e):FS(t,e));Tn.sync=BN;Tn.native=(t,e)=>TS(Rn(t),Cn(e));Tn.manual=(t,e)=>OS(Rn(t),Cn(e));Tn.nativeSync=(t,e)=>kS(Rn(t),Cn(e));Tn.manualSync=(t,e)=>FS(Rn(t),Cn(e));PS.exports=Tn});var HS=O((x9,qS)=>{"use strict";var wt=require("fs"),xi=require("path"),IN=wt.lchown?"lchown":"chown",NN=wt.lchownSync?"lchownSync":"chownSync",IS=wt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),BS=(t,e,r)=>{try{return wt[NN](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},MN=(t,e,r)=>{try{return wt.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},jN=IS?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):wt.chown(t,e,r,i)}:(t,e,r,i)=>i,Ld=IS?(t,e,r)=>{try{return BS(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;MN(t,e,r)}}:(t,e,r)=>BS(t,e,r),qN=process.version,NS=(t,e,r)=>wt.readdir(t,e,r),HN=(t,e)=>wt.readdirSync(t,e);/^v4\./.test(qN)&&(NS=(t,e,r)=>wt.readdir(t,r));var yu=(t,e,r,i)=>{wt[IN](t,e,r,jN(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},MS=(t,e,r,i,n)=>{if(typeof e=="string")return wt.lstat(xi.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,MS(t,o,r,i,n)});if(e.isDirectory())Bd(xi.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=xi.resolve(t,e.name);yu(o,r,i,n)});else{let s=xi.resolve(t,e.name);yu(s,r,i,n)}},Bd=(t,e,r,i)=>{NS(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return yu(t,e,r,i);let o=s.length,a=null,u=c=>{if(!a){if(c)return i(a=c);if(--o===0)return yu(t,e,r,i)}};s.forEach(c=>MS(t,c,e,r,u))})},UN=(t,e,r,i)=>{if(typeof e=="string")try{let n=wt.lstatSync(xi.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&jS(xi.resolve(t,e.name),r,i),Ld(xi.resolve(t,e.name),r,i)},jS=(t,e,r)=>{let i;try{i=HN(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Ld(t,e,r);throw n}return i&&i.length&&i.forEach(n=>UN(t,n,e,r)),Ld(t,e,r)};qS.exports=Bd;Bd.sync=jS});var zS=O((C9,Id)=>{"use strict";var US=LS(),vt=require("fs"),gu=require("path"),$S=HS(),Ot=dn(),_u=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},bu=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Eu=(t,e)=>t.get(Ot(e)),Ls=(t,e,r)=>t.set(Ot(e),r),$N=(t,e)=>{vt.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new bu(t,r&&r.code||"ENOTDIR")),e(r)})};Id.exports=(t,e,r)=>{t=Ot(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,h=e.cache,f=Ot(e.cwd),d=(p,w)=>{p?r(p):(Ls(h,t,!0),w&&u?$S(w,o,a,C=>d(C)):s?vt.chmod(t,n,r):r())};if(h&&Eu(h,t)===!0)return d();if(t===f)return $N(t,d);if(c)return US(t,{mode:n}).then(p=>d(null,p),d);let y=Ot(gu.relative(f,t)).split("/");wu(f,y,n,h,l,f,null,d)};var wu=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Ot(gu.resolve(t+"/"+u));if(Eu(i,c))return wu(c,e,r,i,n,s,o,a);vt.mkdir(c,r,GS(c,e,r,i,n,s,o,a))},GS=(t,e,r,i,n,s,o,a)=>u=>{u?vt.lstat(t,(c,l)=>{if(c)c.path=c.path&&Ot(c.path),a(c);else if(l.isDirectory())wu(t,e,r,i,n,s,o,a);else if(n)vt.unlink(t,h=>{if(h)return a(h);vt.mkdir(t,r,GS(t,e,r,i,n,s,o,a))});else{if(l.isSymbolicLink())return a(new _u(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,wu(t,e,r,i,n,s,o,a))},GN=t=>{let e=!1,r="ENOTDIR";try{e=vt.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new bu(t,r)}};Id.exports.sync=(t,e)=>{t=Ot(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,h=Ot(e.cwd),f=p=>{Ls(l,t,!0),p&&a&&$S.sync(p,s,o),n&&vt.chmodSync(t,i)};if(l&&Eu(l,t)===!0)return f();if(t===h)return GN(h),f();if(u)return f(US.sync(t,i));let m=Ot(gu.relative(h,t)).split("/"),y=null;for(let p=m.shift(),w=h;p&&(w+="/"+p);p=m.shift())if(w=Ot(gu.resolve(w)),!Eu(l,w))try{vt.mkdirSync(w,i),y=y||w,Ls(l,w,!0)}catch{let F=vt.lstatSync(w);if(F.isDirectory()){Ls(l,w,!0);continue}else if(c){vt.unlinkSync(w),vt.mkdirSync(w,i),y=y||w,Ls(l,w,!0);continue}else if(F.isSymbolicLink())return new _u(w,w+"/"+m.join("/"))}return f(y)}});var Md=O((R9,WS)=>{var Nd=Object.create(null),{hasOwnProperty:zN}=Object.prototype;WS.exports=t=>(zN.call(Nd,t)||(Nd[t]=t.normalize("NFKD")),Nd[t])});var ZS=O((T9,KS)=>{var VS=require("assert"),WN=Md(),VN=yn(),{join:YS}=require("path"),YN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,KN=YN==="win32";KS.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=YS(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(h=>t.get(h)),dirs:[...l.dirs].map(h=>t.get(h))}},s=c=>{let{paths:l,dirs:h}=n(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let m=t.get(d);VS.equal(m[0],c),m.length===1?t.delete(d):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let m=t.get(d);VS(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(d):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=KN?["win32 parallelization disabled"]:c.map(f=>WN(VN(YS(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(l,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(l):t.set(f,[l])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(l):d.push(new Set([l])):t.set(f,[new Set([l])])}),o(l)}}}});var QS=O((k9,XS)=>{var ZN=process.env.__FAKE_PLATFORM__||process.platform,JN=ZN==="win32",XN=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:QN,O_TRUNC:eM,O_WRONLY:tM,UV_FS_O_FILEMAP:JS=0}=XN.constants,rM=JN&&!!JS,iM=512*1024,nM=JS|eM|QN|tM;XS.exports=rM?t=>t<iM?nM:"w":()=>"w"});var Vd=O((O9,dD)=>{"use strict";var sM=require("assert"),oM=du(),_e=require("fs"),aM=An(),_r=require("path"),lD=zS(),eD=Wf(),uM=ZS(),cM=Vf(),ft=dn(),lM=yn(),hM=Md(),tD=Symbol("onEntry"),Hd=Symbol("checkFs"),rD=Symbol("checkFs2"),Du=Symbol("pruneCache"),Ud=Symbol("isReusable"),St=Symbol("makeFs"),$d=Symbol("file"),Gd=Symbol("directory"),Au=Symbol("link"),iD=Symbol("symlink"),nD=Symbol("hardlink"),sD=Symbol("unsupported"),oD=Symbol("checkPath"),Yr=Symbol("mkdir"),Ke=Symbol("onError"),vu=Symbol("pending"),aD=Symbol("pend"),kn=Symbol("unpend"),jd=Symbol("ended"),qd=Symbol("maybeClose"),zd=Symbol("skip"),Bs=Symbol("doChown"),Is=Symbol("uid"),Ns=Symbol("gid"),Ms=Symbol("checkedCwd"),hD=require("crypto"),fD=QS(),fM=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,js=fM==="win32",dM=(t,e)=>{if(!js)return _e.unlink(t,e);let r=t+".DELETE."+hD.randomBytes(16).toString("hex");_e.rename(t,r,i=>{if(i)return e(i);_e.unlink(r,e)})},pM=t=>{if(!js)return _e.unlinkSync(t);let e=t+".DELETE."+hD.randomBytes(16).toString("hex");_e.renameSync(t,e),_e.unlinkSync(e)},uD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,cD=t=>hM(lM(ft(t))).toLowerCase(),mM=(t,e)=>{e=cD(e);for(let r of t.keys()){let i=cD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},yM=t=>{for(let e of t.keys())t.delete(e)},qs=class extends oM{constructor(e){if(e||(e={}),e.ondone=r=>{this[jd]=!0,this[qd]()},super(e),this[Ms]=!1,this.reservations=uM(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[vu]=0,this[jd]=!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||js,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=ft(_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[tD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[qd](){this[jd]&&this[vu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[oD](e){if(this.strip){let r=ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=ft(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=ft(e.path),i=r.split("/");if(i.includes("..")||js&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=cM(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(_r.isAbsolute(e.path)?e.absolute=ft(_r.resolve(e.path)):e.absolute=ft(_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:ft(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+eD.encode(e.absolute.slice(r.length));let{root:i}=_r.win32.parse(e.path);e.path=i+eD.encode(e.path.slice(i.length))}return!0}[tD](e){if(!this[oD](e))return e.resume();switch(sM.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[Hd](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[sD](e)}}[Ke](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[kn](),r.resume())}[Yr](e,r,i){lD(ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Bs](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}[Is](e){return uD(this.uid,e.uid,this.processUid)}[Ns](e){return uD(this.gid,e.gid,this.processGid)}[$d](e,r){let i=e.mode&4095||this.fmode,n=new aM.WriteStream(e.absolute,{flags:fD(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&_e.close(n.fd,()=>{}),n.write=()=>!0,this[Ke](u,e),r()});let s=1,o=u=>{if(u){n.fd&&_e.close(n.fd,()=>{}),this[Ke](u,e),r();return}--s===0&&_e.close(n.fd,c=>{c?this[Ke](c,e):this[kn](),r()})};n.on("finish",u=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;_e.futimes(l,h,f,d=>d?_e.utimes(c,h,f,m=>o(m&&d)):o())}if(this[Bs](e)){s++;let h=this[Is](e),f=this[Ns](e);_e.fchown(l,h,f,d=>d?_e.chown(c,h,f,m=>o(m&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[Ke](u,e),r()}),e.pipe(a)),a.pipe(n)}[Gd](e,r){let i=e.mode&4095||this.dmode;this[Yr](e.absolute,i,n=>{if(n){this[Ke](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[kn](),e.resume())};e.mtime&&!this.noMtime&&(s++,_e.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Bs](e)&&(s++,_e.chown(e.absolute,this[Is](e),this[Ns](e),o)),o()})}[sD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[iD](e,r){this[Au](e,e.linkpath,"symlink",r)}[nD](e,r){let i=ft(_r.resolve(this.cwd,e.linkpath));this[Au](e,i,"link",r)}[aD](){this[vu]++}[kn](){this[vu]--,this[qd]()}[zd](e){this[kn](),e.resume()}[Ud](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!js}[Hd](e){this[aD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[rD](e,i))}[Du](e){e.type==="SymbolicLink"?yM(this.dirCache):e.type!=="Directory"&&mM(this.dirCache,e.absolute)}[rD](e,r){this[Du](e);let i=a=>{this[Du](e),r(a)},n=()=>{this[Yr](this.cwd,this.dmode,a=>{if(a){this[Ke](a,e),i();return}this[Ms]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=ft(_r.dirname(e.absolute));if(a!==this.cwd)return this[Yr](a,this.dmode,u=>{if(u){this[Ke](u,e),i();return}o()})}o()},o=()=>{_e.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[zd](e),i();return}if(a||this[Ud](e,u))return this[St](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[St](h,e,i);return c?_e.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return _e.rmdir(e.absolute,c=>this[St](c,e,i))}if(e.absolute===this.cwd)return this[St](null,e,i);dM(e.absolute,c=>this[St](c,e,i))})};this[Ms]?s():n()}[St](e,r,i){if(e){this[Ke](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[$d](r,i);case"Link":return this[nD](r,i);case"SymbolicLink":return this[iD](r,i);case"Directory":case"GNUDumpDir":return this[Gd](r,i)}}[Au](e,r,i,n){_e[i](r,e.absolute,s=>{s?this[Ke](s,e):(this[kn](),e.resume()),n()})}},Su=t=>{try{return[null,t()]}catch(e){return[e,null]}},Wd=class extends qs{[St](e,r){return super[St](e,r,()=>{})}[Hd](e){if(this[Du](e),!this[Ms]){let s=this[Yr](this.cwd,this.dmode);if(s)return this[Ke](s,e);this[Ms]=!0}if(e.absolute!==this.cwd){let s=ft(_r.dirname(e.absolute));if(s!==this.cwd){let o=this[Yr](s,this.dmode);if(o)return this[Ke](o,e)}}let[r,i]=Su(()=>_e.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[zd](e);if(r||this[Ud](e,i))return this[St](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Su(()=>{_e.chmodSync(e.absolute,e.mode)}):[];return this[St](a,e)}let[s]=Su(()=>_e.rmdirSync(e.absolute));this[St](s,e)}let[n]=e.absolute===this.cwd?[]:Su(()=>pM(e.absolute));this[St](n,e)}[$d](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{_e.closeSync(s)}catch(c){u=c}(a||u)&&this[Ke](a||u,e),r()},s;try{s=_e.openSync(e.absolute,fD(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ke](a,e)),e.pipe(o)),o.on("data",a=>{try{_e.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{_e.futimesSync(s,c,l)}catch(h){try{_e.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[Bs](e)){let c=this[Is](e),l=this[Ns](e);try{_e.fchownSync(s,c,l)}catch(h){try{_e.chownSync(e.absolute,c,l)}catch{u=u||h}}}n(u)})}[Gd](e,r){let i=e.mode&4095||this.dmode,n=this[Yr](e.absolute,i);if(n){this[Ke](n,e),r();return}if(e.mtime&&!this.noMtime)try{_e.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Bs](e))try{_e.chownSync(e.absolute,this[Is](e),this[Ns](e))}catch{}r(),e.resume()}[Yr](e,r){try{return lD.sync(ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[Au](e,r,i,n){try{_e[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ke](s,e)}}};qs.Sync=Wd;dD.exports=qs});var _D=O((F9,gD)=>{"use strict";var gM=un(),xu=Vd(),mD=require("fs"),yD=An(),pD=require("path"),Yd=yn();gD.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=gM(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&_M(i,e),i.file&&i.sync?bM(i):i.file?EM(i,r):i.sync?wM(i):vM(i)};var _M=(t,e)=>{let r=new Map(e.map(s=>[Yd(s),!0])),i=t.filter,n=(s,o)=>{let a=o||pD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(pD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Yd(s)):s=>n(Yd(s))},bM=t=>{let e=new xu.Sync(t),r=t.file,i=mD.statSync(r),n=t.maxReadSize||16*1024*1024;new yD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},EM=(t,e)=>{let r=new xu(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),mD.stat(n,(u,c)=>{if(u)a(u);else{let l=new yD.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},wM=t=>new xu.Sync(t),vM=t=>new xu(t)});var bD=O(Le=>{"use strict";Le.c=Le.create=eS();Le.r=Le.replace=Td();Le.t=Le.list=pu();Le.u=Le.update=cS();Le.x=Le.extract=_D();Le.Pack=Qa();Le.Unpack=Vd();Le.Parse=du();Le.ReadEntry=Ia();Le.WriteEntry=id();Le.Header=mn();Le.Pax=Ma();Le.types=jf()});var Er=O((br,Cu)=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var ED=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function SM(t){return ED.includes(t)}var DM=["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",...ED];function AM(t){return DM.includes(t)}var xM=["null","undefined","string","number","bigint","boolean","symbol"];function CM(t){return xM.includes(t)}function On(t){return e=>typeof e===t}var{toString:wD}=Object.prototype,Hs=t=>{let e=wD.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&k.domElement(t))return"HTMLElement";if(AM(e))return e},we=t=>e=>Hs(e)===t;function k(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(k.observable(t))return"Observable";if(k.array(t))return"Array";if(k.buffer(t))return"Buffer";let e=Hs(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"}k.undefined=On("undefined");k.string=On("string");var RM=On("number");k.number=t=>RM(t)&&!k.nan(t);k.bigint=On("bigint");k.function_=On("function");k.null_=t=>t===null;k.class_=t=>k.function_(t)&&t.toString().startsWith("class ");k.boolean=t=>t===!0||t===!1;k.symbol=On("symbol");k.numericString=t=>k.string(t)&&!k.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));k.array=(t,e)=>Array.isArray(t)?k.function_(e)?t.every(e):!0:!1;k.buffer=t=>{var e,r,i,n;return(n=(i=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||i===void 0?void 0:i.call(r,t))!==null&&n!==void 0?n:!1};k.blob=t=>we("Blob")(t);k.nullOrUndefined=t=>k.null_(t)||k.undefined(t);k.object=t=>!k.null_(t)&&(typeof t=="object"||k.function_(t));k.iterable=t=>{var e;return k.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};k.asyncIterable=t=>{var e;return k.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};k.generator=t=>{var e,r;return k.iterable(t)&&k.function_((e=t)===null||e===void 0?void 0:e.next)&&k.function_((r=t)===null||r===void 0?void 0:r.throw)};k.asyncGenerator=t=>k.asyncIterable(t)&&k.function_(t.next)&&k.function_(t.throw);k.nativePromise=t=>we("Promise")(t);var TM=t=>{var e,r;return k.function_((e=t)===null||e===void 0?void 0:e.then)&&k.function_((r=t)===null||r===void 0?void 0:r.catch)};k.promise=t=>k.nativePromise(t)||TM(t);k.generatorFunction=we("GeneratorFunction");k.asyncGeneratorFunction=t=>Hs(t)==="AsyncGeneratorFunction";k.asyncFunction=t=>Hs(t)==="AsyncFunction";k.boundFunction=t=>k.function_(t)&&!t.hasOwnProperty("prototype");k.regExp=we("RegExp");k.date=we("Date");k.error=we("Error");k.map=t=>we("Map")(t);k.set=t=>we("Set")(t);k.weakMap=t=>we("WeakMap")(t);k.weakSet=t=>we("WeakSet")(t);k.int8Array=we("Int8Array");k.uint8Array=we("Uint8Array");k.uint8ClampedArray=we("Uint8ClampedArray");k.int16Array=we("Int16Array");k.uint16Array=we("Uint16Array");k.int32Array=we("Int32Array");k.uint32Array=we("Uint32Array");k.float32Array=we("Float32Array");k.float64Array=we("Float64Array");k.bigInt64Array=we("BigInt64Array");k.bigUint64Array=we("BigUint64Array");k.arrayBuffer=we("ArrayBuffer");k.sharedArrayBuffer=we("SharedArrayBuffer");k.dataView=we("DataView");k.enumCase=(t,e)=>Object.values(e).includes(t);k.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;k.urlInstance=t=>we("URL")(t);k.urlString=t=>{if(!k.string(t))return!1;try{return new URL(t),!0}catch{return!1}};k.truthy=t=>!!t;k.falsy=t=>!t;k.nan=t=>Number.isNaN(t);k.primitive=t=>k.null_(t)||CM(typeof t);k.integer=t=>Number.isInteger(t);k.safeInteger=t=>Number.isSafeInteger(t);k.plainObject=t=>{if(wD.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};k.typedArray=t=>SM(Hs(t));var kM=t=>k.safeInteger(t)&&t>=0;k.arrayLike=t=>!k.nullOrUndefined(t)&&!k.function_(t)&&kM(t.length);k.inRange=(t,e)=>{if(k.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(k.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var OM=1,FM=["innerHTML","ownerDocument","style","attributes","nodeValue"];k.domElement=t=>k.object(t)&&t.nodeType===OM&&k.string(t.nodeName)&&!k.plainObject(t)&&FM.every(e=>e in t);k.observable=t=>{var e,r,i,n;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((n=(i=t)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};k.nodeStream=t=>k.object(t)&&k.function_(t.pipe)&&!k.observable(t);k.infinite=t=>t===1/0||t===-1/0;var vD=t=>e=>k.integer(e)&&Math.abs(e%2)===t;k.evenInteger=vD(0);k.oddInteger=vD(1);k.emptyArray=t=>k.array(t)&&t.length===0;k.nonEmptyArray=t=>k.array(t)&&t.length>0;k.emptyString=t=>k.string(t)&&t.length===0;var PM=t=>k.string(t)&&!/\S/.test(t);k.emptyStringOrWhitespace=t=>k.emptyString(t)||PM(t);k.nonEmptyString=t=>k.string(t)&&t.length>0;k.nonEmptyStringAndNotWhitespace=t=>k.string(t)&&!k.emptyStringOrWhitespace(t);k.emptyObject=t=>k.object(t)&&!k.map(t)&&!k.set(t)&&Object.keys(t).length===0;k.nonEmptyObject=t=>k.object(t)&&!k.map(t)&&!k.set(t)&&Object.keys(t).length>0;k.emptySet=t=>k.set(t)&&t.size===0;k.nonEmptySet=t=>k.set(t)&&t.size>0;k.emptyMap=t=>k.map(t)&&t.size===0;k.nonEmptyMap=t=>k.map(t)&&t.size>0;k.propertyKey=t=>k.any([k.string,k.number,k.symbol],t);k.formData=t=>we("FormData")(t);k.urlSearchParams=t=>we("URLSearchParams")(t);var SD=(t,e,r)=>{if(!k.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)};k.any=(t,...e)=>(k.array(t)?t:[t]).some(i=>SD(Array.prototype.some,i,e));k.all=(t,...e)=>SD(Array.prototype.every,t,e);var ie=(t,e,r,i={})=>{if(!t){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(r.map(o=>`\`${k(o)}\``))].join(", ")}`:`received value of type \`${k(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};br.assert={undefined:t=>ie(k.undefined(t),"undefined",t),string:t=>ie(k.string(t),"string",t),number:t=>ie(k.number(t),"number",t),bigint:t=>ie(k.bigint(t),"bigint",t),function_:t=>ie(k.function_(t),"Function",t),null_:t=>ie(k.null_(t),"null",t),class_:t=>ie(k.class_(t),"Class",t),boolean:t=>ie(k.boolean(t),"boolean",t),symbol:t=>ie(k.symbol(t),"symbol",t),numericString:t=>ie(k.numericString(t),"string with a number",t),array:(t,e)=>{ie(k.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>ie(k.buffer(t),"Buffer",t),blob:t=>ie(k.blob(t),"Blob",t),nullOrUndefined:t=>ie(k.nullOrUndefined(t),"null or undefined",t),object:t=>ie(k.object(t),"Object",t),iterable:t=>ie(k.iterable(t),"Iterable",t),asyncIterable:t=>ie(k.asyncIterable(t),"AsyncIterable",t),generator:t=>ie(k.generator(t),"Generator",t),asyncGenerator:t=>ie(k.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>ie(k.nativePromise(t),"native Promise",t),promise:t=>ie(k.promise(t),"Promise",t),generatorFunction:t=>ie(k.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>ie(k.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>ie(k.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>ie(k.boundFunction(t),"Function",t),regExp:t=>ie(k.regExp(t),"RegExp",t),date:t=>ie(k.date(t),"Date",t),error:t=>ie(k.error(t),"Error",t),map:t=>ie(k.map(t),"Map",t),set:t=>ie(k.set(t),"Set",t),weakMap:t=>ie(k.weakMap(t),"WeakMap",t),weakSet:t=>ie(k.weakSet(t),"WeakSet",t),int8Array:t=>ie(k.int8Array(t),"Int8Array",t),uint8Array:t=>ie(k.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>ie(k.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>ie(k.int16Array(t),"Int16Array",t),uint16Array:t=>ie(k.uint16Array(t),"Uint16Array",t),int32Array:t=>ie(k.int32Array(t),"Int32Array",t),uint32Array:t=>ie(k.uint32Array(t),"Uint32Array",t),float32Array:t=>ie(k.float32Array(t),"Float32Array",t),float64Array:t=>ie(k.float64Array(t),"Float64Array",t),bigInt64Array:t=>ie(k.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>ie(k.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>ie(k.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>ie(k.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>ie(k.dataView(t),"DataView",t),enumCase:(t,e)=>ie(k.enumCase(t,e),"EnumCase",t),urlInstance:t=>ie(k.urlInstance(t),"URL",t),urlString:t=>ie(k.urlString(t),"string with a URL",t),truthy:t=>ie(k.truthy(t),"truthy",t),falsy:t=>ie(k.falsy(t),"falsy",t),nan:t=>ie(k.nan(t),"NaN",t),primitive:t=>ie(k.primitive(t),"primitive",t),integer:t=>ie(k.integer(t),"integer",t),safeInteger:t=>ie(k.safeInteger(t),"integer",t),plainObject:t=>ie(k.plainObject(t),"plain object",t),typedArray:t=>ie(k.typedArray(t),"TypedArray",t),arrayLike:t=>ie(k.arrayLike(t),"array-like",t),domElement:t=>ie(k.domElement(t),"HTMLElement",t),observable:t=>ie(k.observable(t),"Observable",t),nodeStream:t=>ie(k.nodeStream(t),"Node.js Stream",t),infinite:t=>ie(k.infinite(t),"infinite number",t),emptyArray:t=>ie(k.emptyArray(t),"empty array",t),nonEmptyArray:t=>ie(k.nonEmptyArray(t),"non-empty array",t),emptyString:t=>ie(k.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>ie(k.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>ie(k.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>ie(k.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>ie(k.emptyObject(t),"empty object",t),nonEmptyObject:t=>ie(k.nonEmptyObject(t),"non-empty object",t),emptySet:t=>ie(k.emptySet(t),"empty set",t),nonEmptySet:t=>ie(k.nonEmptySet(t),"non-empty set",t),emptyMap:t=>ie(k.emptyMap(t),"empty map",t),nonEmptyMap:t=>ie(k.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>ie(k.propertyKey(t),"PropertyKey",t),formData:t=>ie(k.formData(t),"FormData",t),urlSearchParams:t=>ie(k.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>ie(k.evenInteger(t),"even integer",t),oddInteger:t=>ie(k.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>ie(k.directInstanceOf(t,e),"T",t),inRange:(t,e)=>ie(k.inRange(t,e),"in range",t),any:(t,...e)=>ie(k.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>ie(k.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(k,{class:{value:k.class_},function:{value:k.function_},null:{value:k.null_}});Object.defineProperties(br.assert,{class:{value:br.assert.class_},function:{value:br.assert.function_},null:{value:br.assert.null_}});br.default=k;Cu.exports=k;Cu.exports.default=k;Cu.exports.assert=br.assert});var DD=O((L9,Kd)=>{"use strict";var Ru=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Fn=class{static fn(e){return(...r)=>new Fn((i,n,s)=>{r.push(s),e(...r).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,i)=>{this._reject=i;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,i(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(n,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 Ru(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Fn.prototype,Promise.prototype);Kd.exports=Fn;Kd.exports.CancelError=Ru});var AD=O((Jd,Xd)=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});function LM(t){return t.encrypted}var Zd=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let i=typeof r.connect=="function",n=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{i&&r.connect(),LM(t)&&n&&(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)};Jd.default=Zd;Xd.exports=Zd;Xd.exports.default=Zd});var xD=O((ep,tp)=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var BM=AD(),IM=require("util"),NM=Number(process.versions.node.split(".")[0]),Qd=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 i=()=>{e.abort=Date.now(),(!e.response||NM>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",i);let n=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,IM.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),BM.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?n(t.socket):t.prependOnceListener("socket",n);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",i)}),e};ep.default=Qd;tp.exports=Qd;tp.exports.default=Qd});var PD=O((B9,np)=>{"use strict";var{V4MAPPED:MM,ADDRCONFIG:jM,ALL:FD,promises:{Resolver:CD},lookup:qM}=require("dns"),{promisify:rp}=require("util"),HM=require("os"),Pn=Symbol("cacheableLookupCreateConnection"),ip=Symbol("cacheableLookupInstance"),RD=Symbol("expires"),UM=typeof FD=="number",TD=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},$M=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},kD=()=>{let t=!1,e=!1;for(let r of Object.values(HM.networkInterfaces()))for(let i of r)if(!i.internal&&(i.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},GM=t=>Symbol.iterator in t,OD={ttl:!0},zM={all:!0},Tu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new CD,lookup:o=qM}={}){if(this.maxTtl=r,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=rp(o),this._resolver instanceof CD?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=rp(this._resolver.resolve4.bind(this._resolver)),this._resolve6=rp(this._resolver.resolve6.bind(this._resolver))),this._iface=kD(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*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,i){if(typeof r=="function"?(i=r,r={}):typeof r=="number"&&(r={family:r}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(n=>{r.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let i=await this.query(e);if(r.family===6){let n=i.filter(s=>s.family===6);r.hints&MM&&(UM&&r.hints&FD||n.length===0)?$M(i):i=n}else r.family===4&&(i=i.filter(n=>n.family===4));if(r.hints&jM){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return r.all?i:i[0]}async query(e){let r=await this._cache.get(e);if(!r){let i=this._pending[e];if(i)r=await i;else{let n=this.queryAndCache(e);this._pending[e]=n;try{r=await n}finally{delete this._pending[e]}}}return r=r.map(i=>({...i})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[i,n]=await Promise.all([this._resolve4(e,OD),this._resolve6(e,OD)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of i)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],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,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,r[RD]=Date.now()+i;try{await this._cache.set(e,r,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}GM(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,zM);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 i=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,i),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,n=Date.now();for(let[s,o]of this._cache){let a=o[RD];n>=a?this._cache.delete(s):a<i&&(i=a)}i!==1/0&&this._tick(i-n)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(TD(e),Pn in e)throw new Error("CacheableLookup has been already installed");e[Pn]=e.createConnection,e[ip]=this,e.createConnection=(r,i)=>("lookup"in r||(r.lookup=this.lookup),e[Pn](r,i))}uninstall(e){if(TD(e),e[Pn]){if(e[ip]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Pn],delete e[Pn],delete e[ip]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=kD(),(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()}};np.exports=Tu;np.exports.default=Tu});var ID=O((I9,BD)=>{"use strict";var WM="text/plain",VM="us-ascii",LD=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),YM=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:i,data:n,hash:s}=r.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(h=>{let[f,d=""]=h.split("=").map(m=>m.trim());return f==="charset"&&(d=d.toLowerCase(),d===VM)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==WM)&&l.unshift(u),`data:${l.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},KM=(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 YM(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 n=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];LD(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])LD(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=t;return t=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};BD.exports=KM});var jD=O((N9,MD)=>{MD.exports=ND;function ND(t,e){if(t&&e)return ND(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),o=i[i.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var op=O((M9,sp)=>{var qD=jD();sp.exports=qD(ku);sp.exports.strict=qD(HD);ku.proto=ku(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ku(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return HD(this)},configurable:!0})});function ku(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function HD(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 GD=O((j9,$D)=>{var ZM=op(),JM=function(){},XM=function(t){return t.setHeader&&typeof t.abort=="function"},QM=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},UD=function(t,e,r){if(typeof e=="function")return UD(t,null,e);e||(e={}),r=ZM(r||JM);var i=t._writableState,n=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)},h=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},f=function(p){r.call(t,p)},d=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return XM(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!i&&(t.on("end",u),t.on("close",u)),QM(t)&&t.on("exit",h),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",f),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),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",h),t.removeListener("end",l),t.removeListener("error",f),t.removeListener("close",d)}};$D.exports=UD});var VD=O((q9,WD)=>{var e3=op(),t3=GD(),ap=require("fs"),Us=function(){},r3=/^v?\.0/.test(process.version),Ou=function(t){return typeof t=="function"},i3=function(t){return!r3||!ap?!1:(t instanceof(ap.ReadStream||Us)||t instanceof(ap.WriteStream||Us))&&Ou(t.close)},n3=function(t){return t.setHeader&&Ou(t.abort)},s3=function(t,e,r,i){i=e3(i);var n=!1;t.on("close",function(){n=!0}),t3(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,i3(t))return t.close(Us);if(n3(t))return t.abort();if(Ou(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},zD=function(t){t()},o3=function(t,e){return t.pipe(e)},a3=function(){var t=Array.prototype.slice.call(arguments),e=Ou(t[t.length-1]||Us)&&t.pop()||Us;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,i=t.map(function(n,s){var o=s<t.length-1,a=s>0;return s3(n,o,a,function(u){r||(r=u),u&&i.forEach(zD),!o&&(i.forEach(zD),e(r))})});return t.reduce(o3)};WD.exports=a3});var KD=O((H9,YD)=>{"use strict";var{PassThrough:u3}=require("stream");YD.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new u3({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var ZD=O((U9,Ln)=>{"use strict";var{constants:c3}=require("buffer"),l3=VD(),h3=KD(),Fu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Pu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=c3.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};i=l3(t,h3(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>r&&o(new Fu)})}),i.getBufferedValue()}Ln.exports=Pu;Ln.exports.default=Pu;Ln.exports.buffer=(t,e)=>Pu(t,{...e,encoding:"buffer"});Ln.exports.array=(t,e)=>Pu(t,{...e,array:!0});Ln.exports.MaxBufferError=Fu});var XD=O((G9,JD)=>{"use strict";var f3=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),d3=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),p3=new Set([500,502,503,504]),m3={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},y3={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Ci(t){let e=parseInt(t,10);return isFinite(e)?e:0}function g3(t){return t?p3.has(t.status):!0}function up(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let i of r){let[n,s]=i.split(/=/,2);e[n.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function _3(t){let e=[];for(let r in t){let i=t[r];e.push(i===!0?r:r+"="+i)}if(e.length)return e.join(", ")}JD.exports=class{constructor(e,r,{shared:i,cacheHeuristic:n,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=i!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=up(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=up(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":_3(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())&&d3.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||f3.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=up(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 i of r)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let i in e)m3[i]||(r[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete r[n]}if(r.warning){let i=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?r.warning=i.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 Ci(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 Ci(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Ci(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<r?0:Math.max(e,(i-r)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&r>i)return Math.max(e,(r-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+Ci(this._rescc["stale-if-error"]),i=e+Ci(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Ci(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Ci(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 n=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?r["if-none-match"]=n.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()&&g3(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let i=!1;if(r.status!==void 0&&r.status!=304?i=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!y3[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Lu=O((z9,QD)=>{"use strict";QD.exports=t=>{let e={};for(let[r,i]of Object.entries(t))e[r.toLowerCase()]=i;return e}});var tA=O((W9,eA)=>{"use strict";var b3=require("stream").Readable,E3=Lu(),cp=class extends b3{constructor(e,r,i,n){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(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=E3(r),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};eA.exports=cp});var iA=O((V9,rA)=>{"use strict";var w3=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];rA.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(w3));for(let i of r)i in e||(e[i]=typeof t[i]=="function"?t[i].bind(t):t[i])}});var sA=O((Y9,nA)=>{"use strict";var v3=require("stream").PassThrough,S3=iA(),D3=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new v3;return S3(t,e),t.pipe(e)};nA.exports=D3});var oA=O(lp=>{lp.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="",i=Array.isArray(e);r=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(r+=","),n=!1,i?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=i?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};lp.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 lA=O((Z9,cA)=>{"use strict";var A3=require("events"),aA=oA(),x3=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},uA=["sqlite","postgres","mysql","mongo","redis","tiered"],hp=class extends A3{constructor(e,{emitErrors:r=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:aA.stringify,deserialize:aA.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let s={...this.opts};this.opts.store=x3(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 n=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=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return uA.includes(this.opts.store.opts.dialect)||uA.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:i}=this.opts,n=Array.isArray(e),s=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&i.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>i.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(()=>n?i.getMany(s):i.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(n){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,i){let n=this._getKeyPrefix(e);typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof i=="number"?Date.now()+i: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(n,o,i)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of n)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(r):await i.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};cA.exports=hp});var dA=O((J9,fA)=>{"use strict";var C3=require("events"),Bu=require("url"),R3=ID(),T3=ZD(),fp=XD(),hA=tA(),k3=Lu(),O3=sA(),F3=lA(),Ft=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new F3({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,i)=>{let n;if(typeof r=="string")n=dp(Bu.parse(r)),r={};else if(r instanceof Bu.URL)n=dp(Bu.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";n=dp({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...P3(n)},r.headers=k3(r.headers);let s=new C3,o=R3(Bu.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,m=new Promise(p=>{d=()=>{f||(f=!0,p())}}),y=p=>{if(u&&!h.forceRefresh){p.status=p.statusCode;let C=fp.fromObject(u.cachePolicy).revalidatedPolicy(h,p);if(!C.modified){let F=C.policy.responseHeaders();p=new hA(u.statusCode,F,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new fp(h,p,h),p.fromCache=!1);let w;h.cache&&p.cachePolicy.storable()?(w=O3(p),(async()=>{try{let C=T3.buffer(p);if(await Promise.race([m,new Promise(M=>p.once("end",M))]),f)return;let F=await C,P={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:F},T=h.strictTtl?p.cachePolicy.timeToLive():void 0;h.maxTtl&&(T=T?Math.min(T,h.maxTtl):h.maxTtl),await this.cache.set(a,P,T)}catch(C){s.emit("error",new Ft.CacheError(C))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Ft.CacheError(C))}})(),s.emit("response",w||p),typeof i=="function"&&i(w||p)};try{let p=e(h,y);p.once("error",d),p.once("abort",d),s.emit("request",p)}catch(p){s.emit("error",new Ft.RequestError(p))}};return(async()=>{let h=async d=>{await Promise.resolve();let m=d.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(d);let y=fp.fromObject(m.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let p=y.responseHeaders(),w=new hA(m.statusCode,p,m.body,m.url);w.cachePolicy=y,w.fromCache=!0,s.emit("response",w),typeof i=="function"&&i(w)}else u=m,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new Ft.CacheError(d));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await h(r)}catch(d){r.automaticFailover&&!c&&l(r),s.emit("error",new Ft.CacheError(d))}})(),s}}};function P3(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function dp(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Ft.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Ft.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};fA.exports=Ft});var mA=O((eU,pA)=>{"use strict";var L3=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];pA.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(L3)),i={};for(let n of r)n in e||(i[n]={get(){let s=t[n];return typeof s=="function"?s.bind(t):s},set(s){t[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),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 gA=O((tU,yA)=>{"use strict";var{Transform:B3,PassThrough:I3}=require("stream"),pp=require("zlib"),N3=mA();yA.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof pp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let i=!0,n=new B3({transform(a,u,c){i=!1,c(null,a)},flush(a){a()}}),s=new I3({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?pp.createBrotliDecompress():pp.createUnzip();return o.once("error",a=>{if(i&&!t.readable){s.end();return}s.destroy(a)}),N3(t,s),t.pipe(n).pipe(o).pipe(s),s}});var yp=O((rU,_A)=>{"use strict";var mp=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[i,n]of this.oldCache.entries())this.onEviction(i,n);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)}};_A.exports=mp});var _p=O((iU,vA)=>{"use strict";var M3=require("events"),j3=require("tls"),q3=require("http2"),H3=yp(),Xe=Symbol("currentStreamsCount"),bA=Symbol("request"),Dt=Symbol("cachedOriginSet"),Bn=Symbol("gracefullyClosing"),U3=["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"],$3=(t,e,r)=>{let i=0,n=t.length;for(;i<n;){let s=i+n>>>1;r(t[s],e)?i=s+1:n=s}return i},G3=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,gp=(t,e)=>{for(let r of t)r[Dt].length<e[Dt].length&&r[Dt].every(i=>e[Dt].includes(i))&&r[Xe]+e[Xe]<=e.remoteSettings.maxConcurrentStreams&&wA(r)},z3=(t,e)=>{for(let r of t)e[Dt].length<r[Dt].length&&e[Dt].every(i=>r[Dt].includes(i))&&e[Xe]+r[Xe]<=r.remoteSettings.maxConcurrentStreams&&wA(e)},EA=({agent:t,isFree:e})=>{let r={};for(let i in t.sessions){let s=t.sessions[i].filter(o=>{let a=o[Kt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[i]=s)}return r},wA=t=>{t[Bn]=!0,t[Xe]===0&&t.close()},Kt=class extends M3{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new H3({maxSize:n})}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 i of U3)e[i]&&(r+=`:${e[i]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let i=this.queue[e][r];this._sessionsCount<this.maxSessions&&!i.completed&&(i.completed=!0,i())}getSession(e,r,i){return new Promise((n,s)=>{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(r),a=Kt.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of i)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],h=-1,f=-1,d;for(let m of l){let y=m.remoteSettings.maxConcurrentStreams;if(y<h)break;if(m[Dt].includes(a)){let p=m[Xe];if(p>=y||m[Bn]||m.destroyed)continue;d||(h=y),p>f&&(d=m,f=p)}}if(d){if(i.length!==1){for(let{reject:m}of i){let y=new Error(`Expected the length of listeners to be 1, got ${i.length}.
|
15
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}i[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),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}`,h=!1;try{let f=q3.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[Xe]=0,f[Bn]=!1;let d=()=>f[Xe]<f.remoteSettings.maxConcurrentStreams,m=!0;f.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),f.once("error",p=>{for(let{reject:w}of i)w(p);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(f),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 i)w(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let p of f[Dt])if(p in this.queue[o]){let{listeners:w}=this.queue[o][p];for(;w.length!==0&&d();)w.shift().resolve(f);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(!d())break}}};f.on("origin",()=>{f[Dt]=f.originSet,d()&&(y(),gp(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let w of i)w.reject(p);f.destroy();return}f[Dt]=f.originSet;{let p=this.sessions;if(o in p){let w=p[o];w.splice($3(w,f,G3),0,f)}else p[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[Xe]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{y(),gp(this.sessions[o],f)})}),f[bA]=f.request,f.request=(p,w)=>{if(f[Bn])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=f[bA](p,w);return f.ref(),++f[Xe],f[Xe]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=d(),--f[Xe],!f.destroyed&&!f.closed&&(z3(this.sessions[o],f),d()&&!f.closed)){m||(this._freeSessionsCount++,m=!0);let F=f[Xe]===0;F&&f.unref(),F&&(this._freeSessionsCount>this.maxFreeSessions||f[Bn])?f.close():(gp(this.sessions[o],f),y())}}),C}}catch(f){for(let d of i)d.reject(f);u()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(u){o(u)}}}])})}createConnection(e,r){return Kt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),j3.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Xe]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return EA({agent:this,isFree:!0})}get busySessions(){return EA({agent:this,isFree:!1})}};Kt.kCurrentStreamsCount=Xe;Kt.kGracefullyClosing=Bn;vA.exports={Agent:Kt,globalAgent:new Kt}});var Ep=O((nU,SA)=>{"use strict";var{Readable:W3}=require("stream"),bp=class extends W3{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()}};SA.exports=bp});var wp=O((sU,DA)=>{"use strict";DA.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 xA=O((oU,AA)=>{"use strict";AA.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var RA=O((aU,CA)=>{"use strict";CA.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var kA=O((cU,TA)=>{"use strict";var In=(t,e,r)=>{TA.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};In(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],i=Array.isArray(r);return i&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${i?"one of":"of"} type ${r}. Received ${typeof t[2]}`});In(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);In(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);In(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);In(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);In(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var xp=O((lU,NA)=>{"use strict";var V3=require("http2"),{Writable:Y3}=require("stream"),{Agent:OA,globalAgent:K3}=_p(),Z3=Ep(),J3=wp(),X3=xA(),Q3=RA(),{ERR_INVALID_ARG_TYPE:vp,ERR_INVALID_PROTOCOL:e8,ERR_HTTP_HEADERS_SENT:FA,ERR_INVALID_HTTP_TOKEN:t8,ERR_HTTP_INVALID_HEADER_VALUE:r8,ERR_INVALID_CHAR:i8}=kA(),{HTTP2_HEADER_STATUS:PA,HTTP2_HEADER_METHOD:LA,HTTP2_HEADER_PATH:BA,HTTP2_METHOD_CONNECT:n8}=V3.constants,Ze=Symbol("headers"),Sp=Symbol("origin"),Dp=Symbol("session"),IA=Symbol("options"),Iu=Symbol("flushedHeaders"),$s=Symbol("jobs"),s8=/^[\^`\-\w!#$%&*+.|~]+$/,o8=/[^\t\u0020-\u007E\u0080-\u00FF]/,Ap=class extends Y3{constructor(e,r,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=J3(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(i=r,r=n?e:{...e}):r={...e,...r},r.h2session)this[Dp]=r.h2session;else if(r.agent===!1)this.agent=new OA({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new OA({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=K3;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new vp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new e8(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[Ze]=Object.create(null),this[$s]=[],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[Ze])&&(this[Ze].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[IA]=r,s===443?(this[Sp]=`https://${o}`,":authority"in this[Ze]||(this[Ze][":authority"]=o)):(this[Sp]=`https://${o}:${s}`,":authority"in this[Ze]||(this[Ze][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[Iu]=!1}get method(){return this[Ze][LA]}set method(e){e&&(this[Ze][LA]=e.toUpperCase())}get path(){return this[Ze][BA]}set path(e){e&&(this[Ze][BA]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,i);this._request?n():this[$s].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[$s].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[Iu]||this.destroyed)return;this[Iu]=!0;let e=this.method===n8,r=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||X3(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,u)=>{let c=new Z3(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[PA],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,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",l=>{!c._dumped&&!c.push(l)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[PA]}))),i.once("trailers",n((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[$s])o();this.emit("socket",this.socket)};if(this[Dp])try{r(this[Dp].request(this[Ze]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[Sp],this[IA],this[Ze]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new vp("name","string",e);return this[Ze][e.toLowerCase()]}get headersSent(){return this[Iu]}removeHeader(e){if(typeof e!="string")throw new vp("name","string",e);if(this.headersSent)throw new FA("remove");delete this[Ze][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new FA("set");if(typeof e!="string"||!s8.test(e)&&!Q3(e))throw new t8("Header name",e);if(typeof r=="undefined")throw new r8(r,e);if(o8.test(r))throw new i8("header content",e);this[Ze][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let i=()=>this._request.setTimeout(e,r);return this._request?i():this[$s].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};NA.exports=Ap});var jA=O((hU,MA)=>{"use strict";var a8=require("tls");MA.exports=(t={},e=a8.connect)=>new Promise((r,i)=>{let n=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",i),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:n}),n&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",i),s.once("timeout",a)}catch(c){i(c)}})()})});var HA=O((fU,qA)=>{"use strict";var u8=require("net");qA.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]),u8.isIP(e)?"":e}});var GA=O((dU,Rp)=>{"use strict";var UA=require("http"),Cp=require("https"),c8=jA(),l8=yp(),h8=xp(),f8=HA(),d8=wp(),Nu=new l8({maxSize:100}),Gs=new Map,$A=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{t.emit("free",e,r)};e.on("free",i);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let s=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},p8=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Nu.has(e)){if(Gs.has(e))return(await Gs.get(e)).alpnProtocol;let{path:r,agent:i}=t;t.path=t.socketPath;let n=c8(t);Gs.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Nu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Cp,u=Cp.Agent.prototype.createConnection;i?i.createConnection===u?$A(i,s,t):s.destroy():a.createConnection===u?$A(a,s,t):s.destroy()}return Gs.delete(e),o}catch(s){throw Gs.delete(e),s}}return Nu.get(e)};Rp.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=d8(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 i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||f8(e),e.port=e.port||(i?443:80),e._defaultAgent=i?Cp.globalAgent:UA.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await p8(e)==="h2"?(n&&(e.agent=n.http2),new h8(e,r)):UA.request(e,r)};Rp.exports.protocolCache=Nu});var WA=O((pU,zA)=>{"use strict";var m8=require("http2"),y8=_p(),Tp=xp(),g8=Ep(),_8=GA(),b8=(t,e,r)=>new Tp(t,e,r),E8=(t,e,r)=>{let i=new Tp(t,e,r);return i.end(),i};zA.exports={...m8,ClientRequest:Tp,IncomingMessage:g8,...y8,request:b8,get:E8,auto:_8}});var Op=O(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var VA=Er();kp.default=t=>VA.default.nodeStream(t)&&VA.default.function_(t.getBoundary)});var JA=O(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var KA=require("fs"),ZA=require("util"),YA=Er(),w8=Op(),v8=ZA.promisify(KA.stat);Fp.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(YA.default.string(t))return Buffer.byteLength(t);if(YA.default.buffer(t))return t.length;if(w8.default(t))return ZA.promisify(t.getLength.bind(t))();if(t instanceof KA.ReadStream){let{size:r}=await v8(t.path);return r===0?void 0:r}}});var Lp=O(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});function S8(t,e,r){let i={};for(let n of r)i[n]=(...s)=>{e.emit(n,...s)},t.on(n,i[n]);return()=>{for(let n of r)t.off(n,i[n])}}Pp.default=S8});var XA=O(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=()=>{let t=[];return{once(e,r,i){e.once(r,i),t.push({origin:e,event:r,fn:i})},unhandleAll(){for(let e of t){let{origin:r,event:i,fn:n}=e;r.removeListener(i,n)}t.length=0}}}});var ex=O(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.TimeoutError=void 0;var D8=require("net"),A8=XA(),QA=Symbol("reentry"),x8=()=>{},Mu=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};zs.TimeoutError=Mu;zs.default=(t,e,r)=>{if(QA in t)return x8;t[QA]=!0;let i=[],{once:n,unhandleAll:s}=A8.default(),o=(h,f,d)=>{var m;let y=setTimeout(f,h,h,d);(m=y.unref)===null||m===void 0||m.call(y);let p=()=>{clearTimeout(y)};return i.push(p),p},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new Mu(h,f))},l=()=>{for(let h of i)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),n(t,"response",h=>{n(h,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let h=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,h),i.push(()=>{t.removeListener("timeout",h)})}return n(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let m=!!(d!=null?d:D8.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");n(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");m?n(h,"connect",y()):n(h,"lookup",p=>{p===null&&n(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&n(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");n(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");h.connecting?n(h,"connect",()=>{n(t,"upload-complete",m())}):n(t,"upload-complete",m())}}),typeof e.response!="undefined"&&n(t,"upload-complete",()=>{let h=o(e.response,c,"response");n(t,"response",h)}),l}});var rx=O(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var tx=Er();Ip.default=t=>{t=t;let e={protocol:t.protocol,hostname:tx.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 tx.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 ix=O(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var C8=require("url"),R8=["protocol","host","hostname","port","pathname","search"];Np.default=(t,e)=>{var r,i;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}//${(i=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&i!==void 0?i:""}`}let n=new C8.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 R8)e[s]&&(n[s]=e[s].toString());return n}});var nx=O(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var Mp=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)}};jp.default=Mp});var Hp=O(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var T8=async t=>{let e=[],r=0;for await(let i of t)e.push(i),r+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};qp.default=T8});var ox=O(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.dnsLookupIpVersionToFamily=Ri.isDnsLookupIpVersion=void 0;var sx={auto:0,ipv4:4,ipv6:6};Ri.isDnsLookupIpVersion=t=>t in sx;Ri.dnsLookupIpVersionToFamily=t=>{if(Ri.isDnsLookupIpVersion(t))return sx[t];throw new Error("Invalid DNS lookup IP version")}});var Up=O(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.isResponseOk=void 0;ju.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var ux=O($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var ax=new Set;$p.default=t=>{ax.has(t)||(ax.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var cx=O(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var De=Er(),k8=(t,e)=>{if(De.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");De.assert.any([De.default.string,De.default.undefined],t.encoding),De.assert.any([De.default.boolean,De.default.undefined],t.resolveBodyOnly),De.assert.any([De.default.boolean,De.default.undefined],t.methodRewriting),De.assert.any([De.default.boolean,De.default.undefined],t.isStream),De.assert.any([De.default.string,De.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},De.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(i=>i.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):De.default.number(r)&&(t.retry.limit=r),De.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(De.default.number))),De.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:i}=t;if(!De.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!De.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!De.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!De.default.function_(i.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};Gp.default=k8});var lx=O(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.retryAfterStatusCodes=void 0;Ws.retryAfterStatusCodes=new Set([413,429,503]);var O8=({attemptCount:t,retryOptions:e,error:r,retryAfter:i})=>{if(t>e.limit)return 0;let n=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!n||!s&&!o)return 0;if(r.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ws.default=O8});var Ks=O(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.UnsupportedProtocolError=be.ReadError=be.TimeoutError=be.UploadError=be.CacheError=be.HTTPError=be.MaxRedirectsError=be.RequestError=be.setNonEnumerableProperties=be.knownHookEvents=be.withoutBody=be.kIsNormalizedAlready=void 0;var hx=require("util"),fx=require("stream"),F8=require("fs"),Kr=require("url"),dx=require("http"),zp=require("http"),P8=require("https"),L8=xD(),B8=PD(),px=dA(),I8=gA(),N8=WA(),M8=Lu(),Y=Er(),j8=JA(),mx=Op(),q8=Lp(),yx=ex(),H8=rx(),gx=ix(),U8=nx(),$8=Hp(),_x=ox(),G8=Up(),Zr=ux(),z8=cx(),W8=lx(),Wp,qe=Symbol("request"),Uu=Symbol("response"),Nn=Symbol("responseSize"),Mn=Symbol("downloadedSize"),jn=Symbol("bodySize"),qn=Symbol("uploadedSize"),qu=Symbol("serverResponsesPiped"),bx=Symbol("unproxyEvents"),Ex=Symbol("isFromCache"),Vp=Symbol("cancelTimeouts"),wx=Symbol("startedReading"),Hn=Symbol("stopReading"),Hu=Symbol("triggerRead"),Jr=Symbol("body"),Vs=Symbol("jobs"),vx=Symbol("originalResponse"),Sx=Symbol("retryTimeout");be.kIsNormalizedAlready=Symbol("isNormalizedAlready");var V8=Y.default.string(process.versions.brotli);be.withoutBody=new Set(["GET","HEAD"]);be.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function Y8(t){for(let e in t){let r=t[e];if(!Y.default.string(r)&&!Y.default.number(r)&&!Y.default.boolean(r)&&!Y.default.null_(r)&&!Y.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function K8(t){return Y.default.object(t)&&!("statusCode"in t)}var Yp=new U8.default,Z8=async t=>new Promise((e,r)=>{let i=n=>{r(n)};t.pending||e(),t.once("error",i),t.once("ready",()=>{t.off("error",i),e()})}),J8=new Set([300,301,302,303,304,307,308]),X8=["context","body","json","form"];be.setNonEnumerableProperties=(t,e)=>{let r={};for(let i of t)if(i)for(let n of X8)n in i&&(r[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,r)};var Te=class extends Error{constructor(e,r,i){var n,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(n=r.code)!==null&&n!==void 0?n:"ERR_GOT_REQUEST_ERROR",i instanceof Ku?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[Uu]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,Y.default.string(r.stack)&&Y.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
16
16
|
`).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
17
17
|
`).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
18
18
|
`)}${u.reverse().join(`
|
19
|
-
`)}`}}};be.RequestError=Te;var $u=class extends Te{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};be.MaxRedirectsError=$u;var Gu=class extends Te{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};be.HTTPError=Gu;var zu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};be.CacheError=zu;var Wu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};be.UploadError=Wu;var Vu=class extends Te{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};be.TimeoutError=Vu;var Vs=class extends Te{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}};be.ReadError=Vs;var Yu=class extends Te{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};be.UnsupportedProtocolError=Yu;var J8=["socket","connect","continue","information","upgrade","timeout"],Ku=class extends hx.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[In]=0,this[Mn]=0,this.requestInitialized=!1,this[qu]=new Set,this.redirects=[],this[jn]=!1,this[Hu]=!1,this[Ws]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof zp.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),be.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){K.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof k8.ReadStream&&await Y8(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[qe])===null||c===void 0||c.destroy();return}for(let h of this[Ws])h();this[Ws].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Te){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(K.default.object(e)&&!K.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),K.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),K.assert.any([K.default.string,K.default.undefined],r.method),K.assert.any([K.default.object,K.default.undefined],r.headers),K.assert.any([K.default.string,K.default.urlInstance,K.default.undefined],r.prefixUrl),K.assert.any([K.default.object,K.default.undefined],r.cookieJar),K.assert.any([K.default.object,K.default.string,K.default.undefined],r.searchParams),K.assert.any([K.default.object,K.default.string,K.default.undefined],r.cache),K.assert.any([K.default.object,K.default.number,K.default.undefined],r.timeout),K.assert.any([K.default.object,K.default.undefined],r.context),K.assert.any([K.default.object,K.default.undefined],r.hooks),K.assert.any([K.default.boolean,K.default.undefined],r.decompress),K.assert.any([K.default.boolean,K.default.undefined],r.ignoreInvalidCookies),K.assert.any([K.default.boolean,K.default.undefined],r.followRedirect),K.assert.any([K.default.number,K.default.undefined],r.maxRedirects),K.assert.any([K.default.boolean,K.default.undefined],r.throwHttpErrors),K.assert.any([K.default.boolean,K.default.undefined],r.http2),K.assert.any([K.default.boolean,K.default.undefined],r.allowGetBody),K.assert.any([K.default.string,K.default.undefined],r.localAddress),K.assert.any([gx.isDnsLookupIpVersion,K.default.undefined],r.dnsLookupIpVersion),K.assert.any([K.default.object,K.default.undefined],r.https),K.assert.any([K.default.boolean,K.default.undefined],r.rejectUnauthorized),r.https&&(K.assert.any([K.default.boolean,K.default.undefined],r.https.rejectUnauthorized),K.assert.any([K.default.function_,K.default.undefined],r.https.checkServerIdentity),K.assert.any([K.default.string,K.default.object,K.default.array,K.default.undefined],r.https.certificateAuthority),K.assert.any([K.default.string,K.default.object,K.default.array,K.default.undefined],r.https.key),K.assert.any([K.default.string,K.default.object,K.default.array,K.default.undefined],r.https.certificate),K.assert.any([K.default.string,K.default.undefined],r.https.passphrase),K.assert.any([K.default.string,K.default.buffer,K.default.array,K.default.undefined],r.https.pfx)),K.assert.any([K.default.object,K.default.undefined],r.cacheOptions),K.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(i==null?void 0:i.headers)?r.headers={...r.headers}:r.headers=I8({...i==null?void 0:i.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!==(i==null?void 0:i.searchParams)){let d;if(K.default.string(r.searchParams)||r.searchParams instanceof Yr.URLSearchParams)d=new Yr.URLSearchParams(r.searchParams);else{W8(r.searchParams),d=new Yr.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",K.default.undefined(r.prefixUrl)?r.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),K.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=yx.default(r.prefixUrl+r.url,r)}else(K.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=yx.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Yr.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Yr.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Yu(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:d,getCookieString:m}=l;K.assert.function_(d),K.assert.function_(m),d.length===4&&m.length===0&&(d=lx.promisify(d.bind(r.cookieJar)),m=lx.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(Yp.has(h)||Yp.set(h,new dx((d,m)=>{let y=d[qe](d,m);return K.default.promise(y)&&(y.once=(p,_)=>{if(p==="error")y.catch(_);else if(p==="abort")(async()=>{try{(await y).once("abort",_)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Wp||(Wp=new P8.default),r.dnsCache=Wp;else if(!K.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${K.default(r.dnsCache)}`);K.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(i==null?void 0:i.hooks);r.hooks={...r.hooks};for(let d of be.knownHookEvents)if(d in r.hooks)if(K.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${K.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of be.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Kr.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.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 d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,be.setNonEnumerableProperties([i,c],r),$8.default(r,i)}_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,i=!K.default.undefined(e.form),n=!K.default.undefined(e.json),s=!K.default.undefined(e.body),o=i||n||s,a=be.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,i,n].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof hx.Readable)&&!K.default.string(e.body)&&!K.default.buffer(e.body)&&!px.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!K.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!K.default.string(r["content-type"]);s?(px.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Zr]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Zr]=new Yr.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Zr]=e.stringifyJson(e.json));let c=await N8.default(this[Zr],e.headers);K.default.undefined(r["content-length"])&&K.default.undefined(r["transfer-encoding"])&&!a&&!K.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Nn]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[wx]=e,r.decompress&&(e=L8(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:fx.STATUS_CODES[n],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[bx]=s.isFromCache,this[Bn]=Number(e.headers["content-length"])||void 0,this[Uu]=e,e.once("end",()=>{this[Bn]=this[In],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Vs(a,this))}),e.once("aborted",()=>{this._beforeError(new Vs({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(K.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,i.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&&K8.has(n)){if(e.resume(),this[qe]&&(this[Vp](),delete this[qe],this[_x]()),(n===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[Zr]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new $u(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Yr.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new Te("Cannot redirect to UNIX socket",{},this));return}c.hostname!==i.hostname||c.port!==i.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 f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!U8.isResponseOk(s)){this._beforeError(new Gu(s));return}e.on("readable",()=>{this[Hu]&&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[qu])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=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:i,url:n}=r;F8.default(e),this[Vp]=mx.default(e,i,n);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 mx.TimeoutError?new Vu(u,this.timings,this):new Te(u.message,u,this),this._beforeError(u)}),this[_x]=M8.default(e,this,J8),this[qe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Zr],a=this.redirects.length===0?this:e;K.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Wu(u,this))})):(this._unlockWrite(),K.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((i,n)=>{Object.assign(r,j8.default(e)),delete r.url;let s,o=Yp.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});r.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,r,i,n,s;let{options:o}=this,{headers:a}=o;for(let _ in a)if(K.default.undefined(a[_]))delete a[_];else if(K.default.null_(a[_]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${_}\` header`);if(o.decompress&&K.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=z8?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let _=await o.cookieJar.getCookieString(o.url.toString());K.default.nonEmptyString(_)&&(o.headers.cookie=_)}for(let _ of o.hooks.beforeRequest){let C=await _(o);if(!K.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Zr]!==o.body&&(this[Zr]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let _=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(_!=null&&_.groups){let{socketPath:C,path:L}=_.groups;Object.assign(o,{socketPath:C,path:L,host:""})}}let f=h.protocol==="https:",d;o.http2?d=B8.auto:d=f?O8.request:fx.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[qe]=m,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=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,p.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=gx.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 _=await y(h,p);K.default.undefined(_)&&(_=d(h,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),V8(_)?this._onRequest(_):this.writable?(this.once("finish",()=>{this._onResponse(_)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(_)}catch(_){throw _ instanceof dx.CacheError?new zu(_,this):new Te(_.message,_,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Te(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[jn])return;let{options:r}=this,i=this.retryCount+1;this[jn]=!0,e instanceof Te||(e=new Te(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await H8.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:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:G8.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new Te(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,n,i)}catch(u){this._error(new Te(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[vx]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Hu]=!0;let e=this[Uu];if(e&&!this[jn]){e.readableLength&&(this[Hu]=!1);let r;for(;(r=e.read())!==null;){this[In]+=r.length,this[Ex]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(r)}}}_write(e,r,i){let n=()=>{this._writeRequest(e,r,i)};this.requestInitialized?n():this[Ws].push(n)}_writeRequest(e,r,i){this[qe].destroyed||(this._progressCallbacks.push(()=>{this[Mn]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[qe].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(qe in this)){e();return}if(this[qe].destroyed){e();return}this[qe].end(i=>{i||(this[Nn]=this[Mn],this.emit("uploadProgress",this.uploadProgress),this[qe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Ws].push(r)}_destroy(e,r){var i;this[jn]=!0,clearTimeout(this[vx]),qe in this&&(this[Vp](),!((i=this[Uu])===null||i===void 0)&&i.complete||this[qe].destroy()),e!==null&&!K.default.undefined(e)&&!(e instanceof Te)&&(e=new Te(e.message,e,this)),r(e)}get _isAboutToError(){return this[jn]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,i;return((r=(e=this[qe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[wx])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[qe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Bn]?e=this[In]/this[Bn]:this[Bn]===this[In]?e=1:e=0,{percent:e,transferred:this[In],total:this[Bn]}}get uploadProgress(){let e;return this[Nn]?e=this[Mn]/this[Nn]:this[Nn]===this[Mn]?e=1:e=0,{percent:e,transferred:this[Mn],total:this[Nn]}}get timings(){var e;return(e=this[qe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[bx]}pipe(e,r){if(this[Ex])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof zp.ServerResponse&&this[qu].add(e),super.pipe(e,r)}unpipe(e){return e instanceof zp.ServerResponse&&this[qu].delete(e),super.unpipe(e),this}};be.default=Ku});var Ks=O(Ft=>{"use strict";var X8=Ft&&Ft.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Q8=Ft&&Ft.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&X8(e,t,r)};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.CancelError=Ft.ParseError=void 0;var Sx=Ys(),Kp=class extends Sx.RequestError{constructor(e,r){let{options:i}=r.request;super(`${e.message} in "${i.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};Ft.ParseError=Kp;var Zp=class extends Sx.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};Ft.CancelError=Zp;Q8(Ys(),Ft)});var Ax=O(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Dx=Ks(),e5=(t,e,r,i)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new Dx.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new Dx.ParseError(s,t)}};Jp.default=e5});var Xp=O(Jr=>{"use strict";var t5=Jr&&Jr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),r5=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&t5(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});var i5=require("events"),n5=Er(),s5=SD(),Zu=Ks(),xx=Ax(),Cx=Ys(),o5=Lp(),a5=Hp(),Rx=Up(),u5=["request","response","redirect","uploadProgress","downloadProgress"];function Tx(t){let e,r,i=new i5.EventEmitter,n=new s5((o,a,u)=>{let c=l=>{let h=new Cx.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new Zu.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await a5.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let _=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(_),{options:L}=h;if(C&&!L.decompress)m.body=p;else try{m.body=xx.default(m,L.responseType,L.parseJson,L.encoding)}catch(B){if(m.body=p.toString(),Rx.isResponseOk(m)){h._beforeError(B);return}}try{for(let[B,T]of L.hooks.afterResponse.entries())m=await T(m,async M=>{let D=Cx.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},L);D.hooks.afterResponse=D.hooks.afterResponse.slice(0,B);for(let H of D.hooks.beforeRetry)await H(D);let A=Tx(D);return u(()=>{A.catch(()=>{}),A.cancel()}),A})}catch(B){h._beforeError(new Zu.RequestError(B.message,B,h));return}if(r=m,!Rx.isResponseOk(m)){h._beforeError(new Zu.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(n.isCanceled)return;let{options:y}=h;if(m instanceof Zu.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,_;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&n5.default.nodeStream((_=y.request)===null||_===void 0?void 0:_.options.body)){f(y);return}c(m)}),o5.default(h,i,u5)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:u}=r.request;return xx.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}Jr.default=Tx;r5(Ks(),Jr)});var kx=O(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var c5=Ks();function l5(t,...e){let r=(async()=>{if(t instanceof c5.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}Qp.default=l5});var Px=O(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var Ox=Er();function Fx(t){for(let e of Object.values(t))(Ox.default.plainObject(e)||Ox.default.array(e))&&Fx(e);return Object.freeze(t)}em.default=Fx});var Bx=O(Lx=>{"use strict";Object.defineProperty(Lx,"__esModule",{value:!0})});var tm=O(At=>{"use strict";var h5=At&&At.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),f5=At&&At.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&h5(e,t,r)};Object.defineProperty(At,"__esModule",{value:!0});At.defaultHandler=void 0;var Ix=Er(),Dt=Xp(),d5=kx(),Xu=Ys(),p5=Px(),m5={RequestError:Dt.RequestError,CacheError:Dt.CacheError,ReadError:Dt.ReadError,HTTPError:Dt.HTTPError,MaxRedirectsError:Dt.MaxRedirectsError,TimeoutError:Dt.TimeoutError,ParseError:Dt.ParseError,CancelError:Dt.CancelError,UnsupportedProtocolError:Dt.UnsupportedProtocolError,UploadError:Dt.UploadError},y5=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Ju}=Xu.default,Nx=(...t)=>{let e;for(let r of t)e=Ju(void 0,r,e);return e},g5=t=>t.isStream?new Xu.default(void 0,t):Dt.default(t),_5=t=>"defaults"in t&&"options"in t.defaults,b5=["get","post","put","patch","head","delete"];At.defaultHandler=(t,e)=>e(t);var Mx=(t,e)=>{if(t)for(let r of t)r(e)},jx=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(i=>(n,s)=>{let o,a=i(n,u=>(o=s(u),o));if(a!==o&&!n.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(i,n={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?g5:c);if(Ix.default.plainObject(i)){let l={...i,...n};Xu.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{Mx(t.options.hooks.init,n),Mx((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=Ju(i,n,s!=null?s:t.options);if(h[Xu.kIsNormalizedAlready]=!0,l)throw new Dt.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return d5.default(l,t.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[t.options],s=[...t._rawHandlers],o;for(let a of i)_5(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==At.defaultHandler),s.length===0&&s.push(At.defaultHandler),jx({options:Nx(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=Ju(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!Ix.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 y5(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=Ju(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(i,n)=>{let s=[];for await(let o of r(i,n))s.push(o);return s},e.paginate.each=r,e.stream=(i,n)=>e(i,{...n,isStream:!0});for(let i of b5)e[i]=(n,s)=>e(n,{...s,method:i}),e.stream[i]=(n,s)=>e(n,{...s,method:i,isStream:!0});return Object.assign(e,m5),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:p5.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=Nx,e};At.default=jx;f5(Bx(),At)});var Ux=O((wr,Qu)=>{"use strict";var E5=wr&&wr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),qx=wr&&wr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&E5(e,t,r)};Object.defineProperty(wr,"__esModule",{value:!0});var w5=require("url"),Hx=tm(),v5={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 i of e){let n=i.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new w5.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:[Hx.defaultHandler],mutableDefaults:!1},rm=Hx.default(v5);wr.default=rm;Qu.exports=rm;Qu.exports.default=rm;Qu.exports.__esModule=!0;qx(tm(),wr);qx(Xp(),wr)});var Kx=O((BU,Yx)=>{function xt(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))}Yx.exports=xt;xt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};xt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};xt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};xt.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)};xt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};xt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};xt.prototype.start=xt.prototype.try;xt.prototype.errors=function(){return this._errors};xt.prototype.attempts=function(){return this._attempts};xt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var Zx=O(Ci=>{var D5=Kx();Ci.operation=function(t){var e=Ci.timeouts(t);return new D5(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Ci.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Ci.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Ci.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(u){var c=Ci.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var Xx=O((NU,Jx)=>{Jx.exports=Zx()});var e1=O((MU,Qx)=>{var A5=Xx();function x5(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=A5.operation(s);function a(l){n(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):n(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(i).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}Qx.exports=x5});var mC=oe(require("http")),yC=oe(require("https")),Bm=oe(require("chalk")),yc=require("commander");var IC=oe(qm());function Ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qn(t){return Qn=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},Qn(t)}function wc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vc(t,e){if(e&&(Qn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wc(t)}function ii(t){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ii(t)}function tr(t,e){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},tr(t,e)}function Sc(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&&tr(t,e)}function Dc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ac(){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 ki(t,e,r){return Ac()?ki=Reflect.construct.bind():ki=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&tr(c,o.prototype),c},ki.apply(null,arguments)}function es(t){var e=typeof Map=="function"?new Map:void 0;return es=function(i){if(i===null||!Dc(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return ki(i,arguments,ii(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tr(n,i)},es(t)}var n0=oe(i0());var NC=oe(require("fs-extra")),Qq=function(t){Sc(e,t);function e(r){var i;return Ec(this,e),i=vc(this,ii(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(es(Error));var MC=oe(require("fs")),jC=oe(require("path"));var G2=oe(require("fs")),z2=oe(require("path"));function E0(t){return typeof t=="undefined"||t===null}function UC(t){return typeof t=="object"&&t!==null}function $C(t){return Array.isArray(t)?t:E0(t)?[]:[t]}function GC(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function zC(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function WC(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var VC=E0,YC=UC,KC=$C,ZC=zC,JC=WC,XC=GC,Pe={isNothing:VC,isObject:YC,toArray:KC,repeat:ZC,isNegativeZero:JC,extend:XC};function w0(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
19
|
+
`)}`}}};be.RequestError=Te;var $u=class extends Te{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};be.MaxRedirectsError=$u;var Gu=class extends Te{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};be.HTTPError=Gu;var zu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};be.CacheError=zu;var Wu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};be.UploadError=Wu;var Vu=class extends Te{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};be.TimeoutError=Vu;var Ys=class extends Te{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}};be.ReadError=Ys;var Yu=class extends Te{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};be.UnsupportedProtocolError=Yu;var Q8=["socket","connect","continue","information","upgrade","timeout"],Ku=class extends fx.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[Mn]=0,this[qn]=0,this.requestInitialized=!1,this[qu]=new Set,this.redirects=[],this[Hn]=!1,this[Hu]=!1,this[Vs]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof zp.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),be.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof F8.ReadStream&&await Z8(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[qe])===null||c===void 0||c.destroy();return}for(let h of this[Vs])h();this[Vs].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Te){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Kr.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([_x.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(i==null?void 0:i.headers)?r.headers={...r.headers}:r.headers=M8({...i==null?void 0:i.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!==(i==null?void 0:i.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Kr.URLSearchParams)d=new Kr.URLSearchParams(r.searchParams);else{Y8(r.searchParams),d=new Kr.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=gx.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=gx.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Kr.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Kr.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Yu(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:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=hx.promisify(d.bind(r.cookieJar)),m=hx.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(Yp.has(h)||Yp.set(h,new px((d,m)=>{let y=d[qe](d,m);return Y.default.promise(y)&&(y.once=(p,w)=>{if(p==="error")y.catch(w);else if(p==="abort")(async()=>{try{(await y).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Wp||(Wp=new B8.default),r.dnsCache=Wp;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(i==null?void 0:i.hooks);r.hooks={...r.hooks};for(let d of be.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of be.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Zr.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Zr.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Zr.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Zr.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Zr.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Zr.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Zr.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Zr.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 d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,be.setNonEnumerableProperties([i,c],r),z8.default(r,i)}_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,i=!Y.default.undefined(e.form),n=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=i||n||s,a=be.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,i,n].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof fx.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!mx.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(mx.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Jr]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Jr]=new Kr.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Jr]=e.stringifyJson(e.json));let c=await j8.default(this[Jr],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[jn]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[vx]=e,r.decompress&&(e=I8(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:dx.STATUS_CODES[n],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[Ex]=s.isFromCache,this[Nn]=Number(e.headers["content-length"])||void 0,this[Uu]=e,e.once("end",()=>{this[Nn]=this[Mn],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ys(a,this))}),e.once("aborted",()=>{this._beforeError(new Ys({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,i.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&&J8.has(n)){if(e.resume(),this[qe]&&(this[Vp](),delete this[qe],this[bx]()),(n===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 $u(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Kr.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new Te("Cannot redirect to UNIX socket",{},this));return}c.hostname!==i.hostname||c.port!==i.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 f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!G8.isResponseOk(s)){this._beforeError(new Gu(s));return}e.on("readable",()=>{this[Hu]&&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[qu])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=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:i,url:n}=r;L8.default(e),this[Vp]=yx.default(e,i,n);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 yx.TimeoutError?new Vu(u,this.timings,this):new Te(u.message,u,this),this._beforeError(u)}),this[bx]=q8.default(e,this,Q8),this[qe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Jr],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Wu(u,this))})):(this._unlockWrite(),Y.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((i,n)=>{Object.assign(r,H8.default(e)),delete r.url;let s,o=Yp.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});r.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,r,i,n,s;let{options:o}=this,{headers:a}=o;for(let w in a)if(Y.default.undefined(a[w]))delete a[w];else if(Y.default.null_(a[w]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${w}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=V8?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let w=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(w)&&(o.headers.cookie=w)}for(let w of o.hooks.beforeRequest){let C=await w(o);if(!Y.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:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let w=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(w!=null&&w.groups){let{socketPath:C,path:F}=w.groups;Object.assign(o,{socketPath:C,path:F,host:""})}}let f=h.protocol==="https:",d;o.http2?d=N8.auto:d=f?P8.request:dx.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[qe]=m,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=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,p.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=_x.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 y(h,p);Y.default.undefined(w)&&(w=d(h,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),K8(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 px.CacheError?new zu(w,this):new Te(w.message,w,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Te(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Hn])return;let{options:r}=this,i=this.retryCount+1;this[Hn]=!0,e instanceof Te||(e=new Te(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await $8.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:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:W8.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new Te(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,n,i)}catch(u){this._error(new Te(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[Sx]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Hu]=!0;let e=this[Uu];if(e&&!this[Hn]){e.readableLength&&(this[Hu]=!1);let r;for(;(r=e.read())!==null;){this[Mn]+=r.length,this[wx]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(r)}}}_write(e,r,i){let n=()=>{this._writeRequest(e,r,i)};this.requestInitialized?n():this[Vs].push(n)}_writeRequest(e,r,i){this[qe].destroyed||(this._progressCallbacks.push(()=>{this[qn]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[qe].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(qe in this)){e();return}if(this[qe].destroyed){e();return}this[qe].end(i=>{i||(this[jn]=this[qn],this.emit("uploadProgress",this.uploadProgress),this[qe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Vs].push(r)}_destroy(e,r){var i;this[Hn]=!0,clearTimeout(this[Sx]),qe in this&&(this[Vp](),!((i=this[Uu])===null||i===void 0)&&i.complete||this[qe].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof Te)&&(e=new Te(e.message,e,this)),r(e)}get _isAboutToError(){return this[Hn]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,i;return((r=(e=this[qe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[vx])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[qe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Nn]?e=this[Mn]/this[Nn]:this[Nn]===this[Mn]?e=1:e=0,{percent:e,transferred:this[Mn],total:this[Nn]}}get uploadProgress(){let e;return this[jn]?e=this[qn]/this[jn]:this[jn]===this[qn]?e=1:e=0,{percent:e,transferred:this[qn],total:this[jn]}}get timings(){var e;return(e=this[qe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[Ex]}pipe(e,r){if(this[wx])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof zp.ServerResponse&&this[qu].add(e),super.pipe(e,r)}unpipe(e){return e instanceof zp.ServerResponse&&this[qu].delete(e),super.unpipe(e),this}};be.default=Ku});var Zs=O(Pt=>{"use strict";var e5=Pt&&Pt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),t5=Pt&&Pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&e5(e,t,r)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.CancelError=Pt.ParseError=void 0;var Dx=Ks(),Kp=class extends Dx.RequestError{constructor(e,r){let{options:i}=r.request;super(`${e.message} in "${i.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};Pt.ParseError=Kp;var Zp=class extends Dx.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};Pt.CancelError=Zp;t5(Ks(),Pt)});var xx=O(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Ax=Zs(),r5=(t,e,r,i)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new Ax.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new Ax.ParseError(s,t)}};Jp.default=r5});var Xp=O(Xr=>{"use strict";var i5=Xr&&Xr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),n5=Xr&&Xr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&i5(e,t,r)};Object.defineProperty(Xr,"__esModule",{value:!0});var s5=require("events"),o5=Er(),a5=DD(),Zu=Zs(),Cx=xx(),Rx=Ks(),u5=Lp(),c5=Hp(),Tx=Up(),l5=["request","response","redirect","uploadProgress","downloadProgress"];function kx(t){let e,r,i=new s5.EventEmitter,n=new a5((o,a,u)=>{let c=l=>{let h=new Rx.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new Zu.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await c5.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let w=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(w),{options:F}=h;if(C&&!F.decompress)m.body=p;else try{m.body=Cx.default(m,F.responseType,F.parseJson,F.encoding)}catch(P){if(m.body=p.toString(),Tx.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,T]of F.hooks.afterResponse.entries())m=await T(m,async M=>{let S=Rx.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},F);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let H of S.hooks.beforeRetry)await H(S);let D=kx(S);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new Zu.RequestError(P.message,P,h));return}if(r=m,!Tx.isResponseOk(m)){h._beforeError(new Zu.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(n.isCanceled)return;let{options:y}=h;if(m instanceof Zu.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,w;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&o5.default.nodeStream((w=y.request)===null||w===void 0?void 0:w.options.body)){f(y);return}c(m)}),u5.default(h,i,l5)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:u}=r.request;return Cx.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}Xr.default=kx;n5(Zs(),Xr)});var Ox=O(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var h5=Zs();function f5(t,...e){let r=(async()=>{if(t instanceof h5.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}Qp.default=f5});var Lx=O(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var Fx=Er();function Px(t){for(let e of Object.values(t))(Fx.default.plainObject(e)||Fx.default.array(e))&&Px(e);return Object.freeze(t)}em.default=Px});var Ix=O(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0})});var tm=O(xt=>{"use strict";var d5=xt&&xt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),p5=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&d5(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});xt.defaultHandler=void 0;var Nx=Er(),At=Xp(),m5=Ox(),Xu=Ks(),y5=Lx(),g5={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},_5=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Ju}=Xu.default,Mx=(...t)=>{let e;for(let r of t)e=Ju(void 0,r,e);return e},b5=t=>t.isStream?new Xu.default(void 0,t):At.default(t),E5=t=>"defaults"in t&&"options"in t.defaults,w5=["get","post","put","patch","head","delete"];xt.defaultHandler=(t,e)=>e(t);var jx=(t,e)=>{if(t)for(let r of t)r(e)},qx=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(i=>(n,s)=>{let o,a=i(n,u=>(o=s(u),o));if(a!==o&&!n.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(i,n={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?b5:c);if(Nx.default.plainObject(i)){let l={...i,...n};Xu.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{jx(t.options.hooks.init,n),jx((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=Ju(i,n,s!=null?s:t.options);if(h[Xu.kIsNormalizedAlready]=!0,l)throw new At.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return m5.default(l,t.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[t.options],s=[...t._rawHandlers],o;for(let a of i)E5(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.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),qx({options:Mx(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=Ju(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!Nx.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 _5(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=Ju(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(i,n)=>{let s=[];for await(let o of r(i,n))s.push(o);return s},e.paginate.each=r,e.stream=(i,n)=>e(i,{...n,isStream:!0});for(let i of w5)e[i]=(n,s)=>e(n,{...s,method:i}),e.stream[i]=(n,s)=>e(n,{...s,method:i,isStream:!0});return Object.assign(e,g5),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:y5.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=Mx,e};xt.default=qx;p5(Ix(),xt)});var $x=O((wr,Qu)=>{"use strict";var v5=wr&&wr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Hx=wr&&wr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v5(e,t,r)};Object.defineProperty(wr,"__esModule",{value:!0});var S5=require("url"),Ux=tm(),D5={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 i of e){let n=i.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new S5.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:[Ux.defaultHandler],mutableDefaults:!1},rm=Ux.default(D5);wr.default=rm;Qu.exports=rm;Qu.exports.default=rm;Qu.exports.__esModule=!0;Hx(tm(),wr);Hx(Xp(),wr)});var Zx=O((jU,Kx)=>{function Ct(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}Kx.exports=Ct;Ct.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ct.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ct.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ct.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ct.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ct.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ct.prototype.start=Ct.prototype.try;Ct.prototype.errors=function(){return this._errors};Ct.prototype.attempts=function(){return this._attempts};Ct.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var Jx=O(Ti=>{var x5=Zx();Ti.operation=function(t){var e=Ti.timeouts(t);return new x5(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Ti.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};Ti.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};Ti.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(u){var c=Ti.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var Qx=O((HU,Xx)=>{Xx.exports=Jx()});var t1=O((UU,e1)=>{var C5=Qx();function R5(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=C5.operation(s);function a(l){n(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):n(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(i).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}e1.exports=R5});var yC=ae(require("http")),gC=ae(require("https")),Bm=ae(require("chalk")),yc=require("commander");var IC=ae(Hm());function Ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function es(t){return es=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},es(t)}function wc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vc(t,e){if(e&&(es(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wc(t)}function si(t){return si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},si(t)}function tr(t,e){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},tr(t,e)}function Sc(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&&tr(t,e)}function Dc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ac(){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 Pi(t,e,r){return Ac()?Pi=Reflect.construct.bind():Pi=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&tr(c,o.prototype),c},Pi.apply(null,arguments)}function ts(t){var e=typeof Map=="function"?new Map:void 0;return ts=function(i){if(i===null||!Dc(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Pi(i,arguments,si(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tr(n,i)},ts(t)}var s0=ae(n0());var NC=ae(require("fs-extra")),i6=function(t){Sc(e,t);function e(r){var i;return Ec(this,e),i=vc(this,si(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(ts(Error));var MC=ae(require("fs")),jC=ae(require("path"));var W2=ae(require("fs")),V2=ae(require("path"));function w0(t){return typeof t=="undefined"||t===null}function UC(t){return typeof t=="object"&&t!==null}function $C(t){return Array.isArray(t)?t:w0(t)?[]:[t]}function GC(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function zC(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function WC(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var VC=w0,YC=UC,KC=$C,ZC=zC,JC=WC,XC=GC,Pe={isNothing:VC,isObject:YC,toArray:KC,repeat:ZC,isNegativeZero:JC,extend:XC};function v0(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
20
20
|
|
21
|
-
`+t.mark.snippet),i+" "+r):i}function
|
21
|
+
`+t.mark.snippet),i+" "+r):i}function is(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=v0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}is.prototype=Object.create(Error.prototype);is.prototype.constructor=is;is.prototype.toString=function(e){return this.name+": "+v0(this,e)};var Je=is;function Fc(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Pc(t,e){return Pe.repeat(" ",e-t.length)+t}function QC(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Fc(t.buffer,i[o-u],n[o-u],t.position-(i[o]-i[o-u]),h),a=Pe.repeat(" ",e.indent)+Pc((t.line-u+1).toString(),l)+" | "+c.str+`
|
22
22
|
`+a;for(c=Fc(t.buffer,i[o],n[o],t.position,h),a+=Pe.repeat(" ",e.indent)+Pc((t.line+1).toString(),l)+" | "+c.str+`
|
23
23
|
`,a+=Pe.repeat("-",e.indent+l+3+c.pos)+`^
|
24
24
|
`,u=1;u<=e.linesAfter&&!(o+u>=n.length);u++)c=Fc(t.buffer,i[o+u],n[o+u],t.position-(i[o]-i[o+u]),h),a+=Pe.repeat(" ",e.indent)+Pc((t.line+u+1).toString(),l)+" | "+c.str+`
|
25
|
-
`;return a.replace(/\n$/,"")}var eR=QC,tR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rR=["scalar","sequence","mapping"];function iR(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function nR(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(tR.indexOf(r)===-1)throw new Je('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=iR(e.styleAliases||null),rR.indexOf(this.kind)===-1)throw new Je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var je=nR;function
|
26
|
-
\r`;function RR(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=qc;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function TR(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=qc,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function kR(t){var e="",r=0,i,n,s=t.length,o=qc;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function OR(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var
|
27
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function KR(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var
|
28
|
-
`,e-1))}function JR(t,e,r){var i,n,s,o,a,u,c,l,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),et(d)||
|
25
|
+
`;return a.replace(/\n$/,"")}var eR=QC,tR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rR=["scalar","sequence","mapping"];function iR(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function nR(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(tR.indexOf(r)===-1)throw new Je('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=iR(e.styleAliases||null),rR.indexOf(this.kind)===-1)throw new Je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var je=nR;function o0(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function sR(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Bc(t){return this.extend(t)}Bc.prototype.extend=function(e){var r=[],i=[];if(e instanceof je)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Je("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof je))throw new Je("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Je("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 Je("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof je))throw new Je("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Bc.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=o0(n,"implicit"),n.compiledExplicit=o0(n,"explicit"),n.compiledTypeMap=sR(n.compiledImplicit,n.compiledExplicit),n};var S0=Bc,D0=new je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),A0=new je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),x0=new je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),C0=new S0({explicit:[D0,A0,x0]});function oR(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function aR(){return null}function uR(t){return t===null}var R0=new je("tag:yaml.org,2002:null",{kind:"scalar",resolve:oR,construct:aR,predicate:uR,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function cR(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function lR(t){return t==="true"||t==="True"||t==="TRUE"}function hR(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var T0=new je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:cR,construct:lR,predicate:hR,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function fR(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function dR(t){return 48<=t&&t<=55}function pR(t){return 48<=t&&t<=57}function mR(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!fR(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!dR(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!pR(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function yR(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function gR(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Pe.isNegativeZero(t)}var k0=new je("tag:yaml.org,2002:int",{kind:"scalar",resolve:mR,construct:yR,predicate:gR,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),_R=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bR(t){return!(t===null||!_R.test(t)||t[t.length-1]==="_")}function ER(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var wR=/^[-+]?[0-9]+e/;function vR(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Pe.isNegativeZero(t))return"-0.0";return r=t.toString(10),wR.test(r)?r.replace("e",".e"):r}function SR(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Pe.isNegativeZero(t))}var O0=new je("tag:yaml.org,2002:float",{kind:"scalar",resolve:bR,construct:ER,predicate:SR,represent:vR,defaultStyle:"lowercase"}),F0=C0.extend({implicit:[R0,T0,k0,O0]}),P0=F0,L0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),B0=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 DR(t){return t===null?!1:L0.exec(t)!==null||B0.exec(t)!==null}function AR(t){var e,r,i,n,s,o,a,u=0,c=null,l,h,f;if(e=L0.exec(t),e===null&&(e=B0.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=+e[10],h=+(e[11]||0),c=(l*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,u)),c&&f.setTime(f.getTime()-c),f}function xR(t){return t.toISOString()}var I0=new je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:DR,construct:AR,instanceOf:Date,represent:xR});function CR(t){return t==="<<"||t===null}var N0=new je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:CR}),qc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
26
|
+
\r`;function RR(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=qc;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function TR(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=qc,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function kR(t){var e="",r=0,i,n,s=t.length,o=qc;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function OR(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var M0=new je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:RR,construct:TR,predicate:OR,represent:kR}),FR=Object.prototype.hasOwnProperty,PR=Object.prototype.toString;function LR(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,PR.call(n)!=="[object Object]")return!1;for(s in n)if(FR.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function BR(t){return t!==null?t:[]}var j0=new je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:LR,construct:BR}),IR=Object.prototype.toString;function NR(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],IR.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function MR(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var q0=new je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:NR,construct:MR}),jR=Object.prototype.hasOwnProperty;function qR(t){if(t===null)return!0;var e,r=t;for(e in r)if(jR.call(r,e)&&r[e]!==null)return!1;return!0}function HR(t){return t!==null?t:{}}var H0=new je("tag:yaml.org,2002:set",{kind:"mapping",resolve:qR,construct:HR}),Hc=P0.extend({implicit:[I0,N0],explicit:[M0,j0,q0,H0]}),Cr=Object.prototype.hasOwnProperty,po=1,U0=2,$0=3,mo=4,Lc=1,UR=2,a0=3,$R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,GR=/[\x85\u2028\u2029]/,zR=/[,\[\]\{\}]/,G0=/^(?:!|!!|![a-z\-]+!)$/i,z0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function u0(t){return Object.prototype.toString.call(t)}function Bt(t){return t===10||t===13}function ai(t){return t===9||t===32}function et(t){return t===9||t===32||t===10||t===13}function Ii(t){return t===44||t===91||t===93||t===123||t===125}function WR(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function VR(t){return t===120?2:t===117?4:t===85?8:0}function YR(t){return 48<=t&&t<=57?t-48:-1}function c0(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
27
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function KR(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var W0=new Array(256),V0=new Array(256);for(oi=0;oi<256;oi++)W0[oi]=c0(oi)?1:0,V0[oi]=c0(oi);var oi;function ZR(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Hc,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Y0(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=eR(r),new Je(e,r)}function ue(t,e){throw Y0(t,e)}function yo(t,e){t.onWarning&&t.onWarning.call(null,Y0(t,e))}var l0={YAML:function(e,r,i){var n,s,o;e.version!==null&&ue(e,"duplication of %YAML directive"),i.length!==1&&ue(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&ue(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&ue(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&yo(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&ue(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],G0.test(n)||ue(e,"ill-formed tag handle (first argument) of the TAG directive"),Cr.call(e.tagMap,n)&&ue(e,'there is a previously declared suffix for "'+n+'" tag handle'),z0.test(s)||ue(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ue(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function xr(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||ue(t,"expected valid JSON character");else $R.test(a)&&ue(t,"the stream contains non-printable characters");t.result+=a}}function h0(t,e,r,i){var n,s,o,a;for(Pe.isObject(r)||ue(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],Cr.call(e,s)||(e[s]=r[s],i[s]=!0)}function Ni(t,e,r,i,n,s,o,a,u){var c,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,l=n.length;c<l;c+=1)Array.isArray(n[c])&&ue(t,"nested arrays are not supported inside keys"),typeof n=="object"&&u0(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&u0(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)h0(t,e,s[c],r);else h0(t,e,s,r);else!t.json&&!Cr.call(r,n)&&Cr.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,ue(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Uc(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):ue(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Oe(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;ai(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Bt(n))for(Uc(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&yo(t,"deficient indentation"),i}function bo(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||et(r)))}function $c(t,e){e===1?t.result+=" ":e>1&&(t.result+=Pe.repeat(`
|
28
|
+
`,e-1))}function JR(t,e,r){var i,n,s,o,a,u,c,l,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),et(d)||Ii(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),et(n)||r&&Ii(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),et(n)||r&&Ii(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),et(i))break}else{if(t.position===t.lineStart&&bo(t)||r&&Ii(d))break;if(Bt(d))if(u=t.line,c=t.lineStart,l=t.lineIndent,Oe(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=c,t.lineIndent=l;break}}a&&(xr(t,s,o,!1),$c(t,t.line-u),s=o=t.position,a=!1),ai(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return xr(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function XR(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(xr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Bt(r)?(xr(t,i,n,!0),$c(t,Oe(t,!1,e)),i=n=t.position):t.position===t.lineStart&&bo(t)?ue(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);ue(t,"unexpected end of the stream within a single quoted scalar")}function QR(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return xr(t,r,t.position,!0),t.position++,!0;if(a===92){if(xr(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Bt(a))Oe(t,!1,e);else if(a<256&&W0[a])t.result+=V0[a],t.position++;else if((o=VR(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=WR(a))>=0?s=(s<<4)+o:ue(t,"expected hexadecimal character");t.result+=KR(s),t.position++}else ue(t,"unknown escape sequence");r=i=t.position}else Bt(a)?(xr(t,r,i,!0),$c(t,Oe(t,!1,e)),r=i=t.position):t.position===t.lineStart&&bo(t)?ue(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}ue(t,"unexpected end of the stream within a double quoted scalar")}function eT(t,e){var r=!0,i,n,s,o=t.tag,a,u=t.anchor,c,l,h,f,d,m=Object.create(null),y,p,w,C;if(C=t.input.charCodeAt(t.position),C===91)l=93,d=!1,a=[];else if(C===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Oe(t,!0,e),C=t.input.charCodeAt(t.position),C===l)return t.position++,t.tag=o,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=a,!0;r?C===44&&ue(t,"expected the node content, but found ','"):ue(t,"missed comma between flow collection entries"),p=y=w=null,h=f=!1,C===63&&(c=t.input.charCodeAt(t.position+1),et(c)&&(h=f=!0,t.position++,Oe(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Mi(t,e,po,!1,!0),p=t.tag,y=t.result,Oe(t,!0,e),C=t.input.charCodeAt(t.position),(f||t.line===i)&&C===58&&(h=!0,C=t.input.charCodeAt(++t.position),Oe(t,!0,e),Mi(t,e,po,!1,!0),w=t.result),d?Ni(t,a,m,p,y,w,i,n,s):h?a.push(Ni(t,null,m,p,y,w,i,n,s)):a.push(y),Oe(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}ue(t,"unexpected end of the stream within a flow collection")}function tT(t,e){var r,i,n=Lc,s=!1,o=!1,a=e,u=0,c=!1,l,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Lc===n?n=h===43?a0:UR:ue(t,"repeat of a chomping mode identifier");else if((l=YR(h))>=0)l===0?ue(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ue(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(ai(h)){do h=t.input.charCodeAt(++t.position);while(ai(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Bt(h)&&h!==0)}for(;h!==0;){for(Uc(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Bt(h)){u++;continue}if(t.lineIndent<a){n===a0?t.result+=Pe.repeat(`
|
29
29
|
`,s?1+u:u):n===Lc&&s&&(t.result+=`
|
30
|
-
`);break}for(i?
|
30
|
+
`);break}for(i?ai(h)?(c=!0,t.result+=Pe.repeat(`
|
31
31
|
`,s?1+u:u)):c?(c=!1,t.result+=Pe.repeat(`
|
32
32
|
`,u+1)):u===0?s&&(t.result+=" "):t.result+=Pe.repeat(`
|
33
33
|
`,u):t.result+=Pe.repeat(`
|
34
|
-
`,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!
|
35
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new ZR(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,
|
34
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!Bt(h)&&h!==0;)h=t.input.charCodeAt(++t.position);xr(t,r,t.position,!1)}return!0}function f0(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ue(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!et(o))));){if(a=!0,t.position++,Oe(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Mi(t,e,$0,!1,!0),s.push(t.result),Oe(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)ue(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function rT(t,e,r){var i,n,s,o,a,u,c=t.tag,l=t.anchor,h={},f=Object.create(null),d=null,m=null,y=null,p=!1,w=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),C=t.input.charCodeAt(t.position);C!==0;){if(!p&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ue(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(C===63||C===58)&&et(i))C===63?(p&&(Ni(t,h,f,d,m,null,o,a,u),d=m=y=null),w=!0,p=!0,n=!0):p?(p=!1,n=!0):ue(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=i;else{if(o=t.line,a=t.lineStart,u=t.position,!Mi(t,r,U0,!1,!0))break;if(t.line===s){for(C=t.input.charCodeAt(t.position);ai(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),et(C)||ue(t,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(Ni(t,h,f,d,m,null,o,a,u),d=m=y=null),w=!0,p=!1,n=!1,d=t.tag,m=t.result;else if(w)ue(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(w)ue(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(p&&(o=t.line,a=t.lineStart,u=t.position),Mi(t,e,mo,!0,n)&&(p?m=t.result:y=t.result),p||(Ni(t,h,f,d,m,y,o,a,u),d=m=y=null),Oe(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&C!==0)ue(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return p&&Ni(t,h,f,d,m,null,o,a,u),w&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=h),w}function iT(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&ue(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):ue(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!et(o);)o===33&&(i?ue(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),G0.test(n)||ue(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),zR.test(s)&&ue(t,"tag suffix cannot contain flow indicator characters")}s&&!z0.test(s)&&ue(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ue(t,"tag name is malformed: "+s)}return r?t.tag=s:Cr.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:ue(t,'undeclared tag handle "'+n+'"'),!0}function nT(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&ue(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!et(r)&&!Ii(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&ue(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function sT(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!et(i)&&!Ii(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&ue(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Cr.call(t.anchorMap,r)||ue(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Oe(t,!0,-1),!0}function Mi(t,e,r,i,n){var s,o,a,u=1,c=!1,l=!1,h,f,d,m,y,p;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=mo===r||$0===r,i&&Oe(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;iT(t)||nT(t);)Oe(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=c||n),(u===1||mo===r)&&(po===r||U0===r?y=e:y=e+1,p=t.position-t.lineStart,u===1?a&&(f0(t,p)||rT(t,p,y))||eT(t,y)?l=!0:(o&&tT(t,y)||XR(t,y)||QR(t,y)?l=!0:sT(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&ue(t,"alias node should not have any properties")):JR(t,y,po===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(l=a&&f0(t,p))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&ue(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Cr.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){m=d[h];break}m||ue(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&ue(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):ue(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function oT(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Oe(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!et(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&ue(t,"directive name must not be less than one character in length");o!==0;){for(;ai(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Bt(o));break}if(Bt(o))break;for(r=t.position;o!==0&&!et(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Uc(t),Cr.call(l0,i)?l0[i](t,i,n):yo(t,'unknown document directive "'+i+'"')}if(Oe(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Oe(t,!0,-1)):s&&ue(t,"directives end mark is expected"),Mi(t,t.lineIndent-1,mo,!1,!0),Oe(t,!0,-1),t.checkLineBreaks&&GR.test(t.input.slice(e,t.position))&&yo(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&bo(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Oe(t,!0,-1));return}if(t.position<t.length-1)ue(t,"end of the stream or a document separator is expected");else return}function K0(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
35
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new ZR(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,ue(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;)oT(r);return r.documents}function aT(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=K0(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function uT(t,e){var r=K0(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Je("expected a single document in the stream, but found more")}}var cT=aT,lT=uT,Z0={loadAll:cT,load:lT},J0=Object.prototype.toString,X0=Object.prototype.hasOwnProperty,Gc=65279,hT=9,ns=10,fT=13,dT=32,pT=33,mT=34,Ic=35,yT=37,gT=38,_T=39,bT=42,Q0=44,ET=45,go=58,wT=61,vT=62,ST=63,DT=64,ey=91,ty=93,AT=96,ry=123,xT=124,iy=125,Ue={};Ue[0]="\\0";Ue[7]="\\a";Ue[8]="\\b";Ue[9]="\\t";Ue[10]="\\n";Ue[11]="\\v";Ue[12]="\\f";Ue[13]="\\r";Ue[27]="\\e";Ue[34]='\\"';Ue[92]="\\\\";Ue[133]="\\N";Ue[160]="\\_";Ue[8232]="\\L";Ue[8233]="\\P";var CT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],RT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function TT(t,e){var r,i,n,s,o,a,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&X0.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function kT(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Je("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Pe.repeat("0",i-e.length)+e}var OT=1,ss=2;function FT(t){this.schema=t.schema||Hc,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Pe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=TT(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ss:OT,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d0(t,e){for(var r=Pe.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
|
36
36
|
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
37
37
|
`&&(s+=r),s+=o;return s}function Nc(t,e){return`
|
38
|
-
`+Pe.repeat(" ",t.indent*e)}function PT(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function _o(t){return t===dT||t===hT}function
|
38
|
+
`+Pe.repeat(" ",t.indent*e)}function PT(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function _o(t){return t===dT||t===hT}function os(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Gc||65536<=t&&t<=1114111}function p0(t){return os(t)&&t!==Gc&&t!==fT&&t!==ns}function m0(t,e,r){var i=p0(t),n=i&&!_o(t);return(r?i:i&&t!==Q0&&t!==ey&&t!==ty&&t!==ry&&t!==iy)&&t!==Ic&&!(e===go&&!n)||p0(e)&&!_o(e)&&t===Ic||e===go&&n}function LT(t){return os(t)&&t!==Gc&&!_o(t)&&t!==ET&&t!==ST&&t!==go&&t!==Q0&&t!==ey&&t!==ty&&t!==ry&&t!==iy&&t!==Ic&&t!==gT&&t!==bT&&t!==pT&&t!==xT&&t!==wT&&t!==vT&&t!==_T&&t!==mT&&t!==yT&&t!==DT&&t!==AT}function BT(t){return!_o(t)&&t!==go}function rs(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function ny(t){var e=/^\n* /;return e.test(t)}var sy=1,Mc=2,oy=3,ay=4,Bi=5;function IT(t,e,r,i,n,s,o,a){var u,c=0,l=null,h=!1,f=!1,d=i!==-1,m=-1,y=LT(rs(t,0))&&BT(rs(t,t.length-1));if(e||o)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=rs(t,u),!os(c))return Bi;y=y&&m0(c,l,a),l=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=rs(t,u),c===ns)h=!0,d&&(f=f||u-m-1>i&&t[m+1]!==" ",m=u);else if(!os(c))return Bi;y=y&&m0(c,l,a),l=c}f=f||d&&u-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?sy:s===ss?Bi:Mc:r>9&&ny(t)?Bi:o?s===ss?Bi:Mc:f?ay:oy}function NT(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===ss?'""':"''";if(!t.noCompatMode&&(CT.indexOf(e)!==-1||RT.test(e)))return t.quotingType===ss?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return PT(t,c)}switch(IT(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!i,n)){case sy:return e;case Mc:return"'"+e.replace(/'/g,"''")+"'";case oy:return"|"+y0(e,t.indent)+g0(d0(e,s));case ay:return">"+y0(e,t.indent)+g0(d0(MT(e,o),s));case Bi:return'"'+jT(e)+'"';default:throw new Je("impossible error: invalid scalar style")}}()}function y0(t,e){var r=ny(t)?String(e):"",i=t[t.length-1]===`
|
39
39
|
`,n=i&&(t[t.length-2]===`
|
40
40
|
`||t===`
|
41
41
|
`),s=n?"+":i?"":"-";return r+s+`
|
42
|
-
`}function
|
42
|
+
`}function g0(t){return t[t.length-1]===`
|
43
43
|
`?t.slice(0,-1):t}function MT(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
44
|
-
`);return c=c!==-1?c:t.length,r.lastIndex=c,
|
44
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,_0(t.slice(0,c),e)}(),n=t[0]===`
|
45
45
|
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",i+=a+(!n&&!s&&u!==""?`
|
46
|
-
`:"")+
|
46
|
+
`:"")+_0(u,e),n=s}return i}function _0(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,u="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,u+=`
|
47
47
|
`+t.slice(n,s),n=s+1),o=a;return u+=`
|
48
48
|
`,t.length-n>e&&o>n?u+=t.slice(n,o)+`
|
49
|
-
`+t.slice(o+1):u+=t.slice(n),u.slice(1)}function jT(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=
|
50
|
-
`:""}var zT=GT,WT={dump:zT};function zc(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var VT=je,YT=
|
49
|
+
`+t.slice(o+1):u+=t.slice(n),u.slice(1)}function jT(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=rs(t,n),i=Ue[r],!i&&os(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||kT(r);return e}function qT(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(rr(t,e,a,!1,!1)||typeof a=="undefined"&&rr(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function b0(t,e,r,i){var n="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(rr(t,e+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&rr(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Nc(t,e)),t.dump&&ns===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function HT(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,u,c,l;for(o=0,a=s.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),u=s[o],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),rr(t,e,u,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),rr(t,e,c,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function UT(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,u,c,l,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Je("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)f="",(!i||n!=="")&&(f+=Nc(t,e)),c=o[a],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),rr(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&ns===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Nc(t,e)),rr(t,e+1,l,!0,h)&&(t.dump&&ns===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function E0(t,e,r){var i,n,s,o,a,u;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,J0.call(a.represent)==="[object Function]")i=a.represent(e,u);else if(X0.call(a.represent,u))i=a.represent[u](e,u);else throw new Je("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}function rr(t,e,r,i,n,s,o){t.tag=null,t.dump=r,E0(t,r,!1)||E0(t,r,!0);var a=J0.call(t.dump),u=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",h,f;if(l&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(l&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(UT(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(HT(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?b0(t,e-1,t.dump,n):b0(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(qT(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&NT(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Je("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function $T(t,e){var r=[],i=[],n,s;for(jc(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function jc(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)jc(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)jc(t[i[n]],e,r)}function GT(t,e){e=e||{};var r=new FT(e);r.noRefs||$T(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),rr(r,0,i,!0,!0)?r.dump+`
|
50
|
+
`:""}var zT=GT,WT={dump:zT};function zc(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var VT=je,YT=S0,KT=C0,ZT=F0,JT=P0,XT=Hc,QT=Z0.load,ek=Z0.loadAll,tk=WT.dump,rk=Je,ik={binary:M0,float:O0,map:x0,null:R0,pairs:q0,set:H0,timestamp:I0,bool:T0,int:k0,merge:N0,omap:j0,seq:A0,str:D0},nk=zc("safeLoad","load"),sk=zc("safeLoadAll","loadAll"),ok=zc("safeDump","dump"),ak={Type:VT,Schema:YT,FAILSAFE_SCHEMA:KT,JSON_SCHEMA:ZT,CORE_SCHEMA:JT,DEFAULT_SCHEMA:XT,load:QT,loadAll:ek,dump:tk,YAMLException:rk,types:ik,safeLoad:nk,safeLoadAll:sk,safeDump:ok},Wc=ak;var Y2=ae(Yo());var fe={};xC(fe,{bold:()=>q2,dimmed:()=>U2,error:()=>_t,grey:()=>$2,info:()=>j2,item:()=>G2,log:()=>gt,turboBlue:()=>en,turboGradient:()=>M2,turboLoader:()=>$h,turboRed:()=>zb,underline:()=>H2,warn:()=>Vb,yellow:()=>Wb});var Br=ae(require("chalk")),Hb=ae(ca()),Ub=ae(fa()),$b="#0099F7",Gb="#F11712",N2="#FFFF00",M2=(0,Ub.default)($b,Gb),en=Br.default.hex($b),zb=Br.default.hex(Gb),Wb=Br.default.hex(N2),$h=t=>(0,Hb.default)({text:t,spinner:{frames:[" ",en("> "),en(">> "),en(">>>")]}}),j2=(...t)=>{gt(en.bold(">>>"),...t)},q2=(...t)=>{gt(Br.default.bold(...t))},H2=(...t)=>{gt(Br.default.underline(...t))},U2=(...t)=>{gt(Br.default.dim(...t))},$2=(...t)=>{gt(Br.default.grey(...t))},G2=(...t)=>{gt(en.bold(" \u2022"),...t)},gt=(...t)=>{console.log(...t)},Vb=(...t)=>{console.error(Wb.bold(">>>"),...t)},_t=(...t)=>{console.error(zb.bold(">>>"),...t)};var Ew=ae(require("os")),ww=ae(an());async function Ea(t,e=[],r){let i={cwd:Ew.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,ww.default)(t,e,i);return n.trim()}catch{return}}async function bs(){let[t,e,r,i]=await Promise.all([Ea("yarnpkg",["--version"]),Ea("npm",["--version"]),Ea("pnpm",["--version"]),Ea("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var vw=ae(require("fs-extra")),HB=[".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 Es(t){let e=vw.default.readdirSync(t).filter(r=>!HB.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:e.length===0,conflicts:e}}var af=ae(require("path")),uf=ae(require("fs-extra")),cf=ae(require("chalk"));function wa(t){let e=af.default.resolve(t),r=af.default.basename(e),i=uf.default.existsSync(e),n=uf.default.lstatSync(e,{throwIfNoEntry:!1});if(n&&!n.isDirectory())return{valid:!1,root:e,projectName:r,error:`${cf.default.dim(r)} is not a directory - please try a different location`};if(i){let{isEmpty:s,conflicts:o}=Es(e);if(!s)return{valid:!1,root:e,projectName:r,error:`${cf.default.dim(r)} (${e}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:e,projectName:r}}var Gx=require("stream"),zx=require("util"),Wx=require("path"),Vx=require("os"),Js=require("fs"),im=ae(bD()),tc=ae($x()),A5=(0,zx.promisify)(Gx.Stream.pipeline);async function ec(t){try{return(await tc.default.head(t)).statusCode===200}catch{return!1}}async function nm(t,e){let[,r,i,n,s,...o]=t.pathname.split("/"),a=e?e.replace(/^\//,""):o.join("/");if(n===void 0||n===""&&s===void 0)try{let c=await(0,tc.default)(`https://api.github.com/repos/${r}/${i}`),l=JSON.parse(c.body);return{username:r,name:i,branch:l.default_branch,filePath:a}}catch{return}let u=e?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&i&&u&&n==="tree")return{username:r,name:i,branch:u,filePath:a}}function sm({username:t,name:e,branch:r,filePath:i}){let n=`https://api.github.com/repos/${t}/${e}/contents`,s=`${i?`/${i}`:""}/package.json`;return ec(`${n+s}?ref=${r}`)}function om(t){try{let e=new URL(t);return ec(e.href)}catch{return ec(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(t)}`)}}async function Yx(t,e){let r=(0,Wx.join)((0,Vx.tmpdir)(),`${e}.temp-${Date.now()}`);return await A5(tc.default.stream(t),(0,Js.createWriteStream)(r)),r}async function am(t,{username:e,name:r,branch:i,filePath:n}){let s=await Yx(`https://codeload.github.com/${e}/${r}/tar.gz/${i}`,"turbo-ct-example");await(0,im.x)({file:s,cwd:t,strip:n?n.split("/").length+1:1,filter:o=>o.startsWith(`${r}-${i.replace(/\//g,"-")}${n?`/${n}/`:"/"}`)}),await Js.promises.unlink(s)}async function um(t,e){let r=await Yx("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await(0,im.x)({file:r,cwd:t,strip:2+e.split("/").length,filter:i=>i.includes(`turbo-main/examples/${e}/`)}),await Js.promises.unlink(r)}var rc=require("fs-extra");async function cm(t){try{return await(0,rc.access)(t,rc.constants.W_OK),!0}catch{return!1}}var Un=ae(require("path")),lm=ae(t1()),vr=ae(require("chalk")),Gn=require("fs-extra");function T5(t){return typeof t=="object"&&t!==null&&typeof t.message=="string"}var $n=class extends Error{};async function hm({appPath:t,example:e,isDefaultExample:r,examplePath:i}){let n,s;if(r)n={username:"vercel",name:"turbo",branch:"main",filePath:"examples/basic"};else{try{s=new URL(e)}catch(p){p.code!=="ERR_INVALID_URL"&&(_t(p),process.exit(1))}s?(s.origin!=="https://github.com"&&(_t(`Invalid URL: ${vr.default.red(`"${e}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),n=await nm(s,i),n||(_t(`Unable to fetch repository information from: ${vr.default.red(`"${e}"`)}. Please fix the URL and try again.`),process.exit(1)),await sm(n)||(_t(`Could not locate the repository for ${vr.default.red(`"${e}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await om(e)||(_t(`Could not locate an example named ${vr.default.red(`"${e}"`)}. It could be due to the following:
|
51
51
|
`,`1. Your spelling of example ${vr.default.red(`"${e}"`)} might be incorrect.
|
52
|
-
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=
|
53
|
-
Downloading files from repo ${vr.default.cyan(e)}. This might take a moment.`),
|
54
|
-
Downloading files${r?"":` for example ${vr.default.cyan(e)}`}. This might take a moment.`),qt(),h.start(),await(0,lm.default)(()=>um(o,e),{retries:3}))}catch(p){throw new Hn(C5(p)?p.message:String(p))}finally{h.stop()}let f=qn.default.join(o,"package.json"),d=(0,Un.existsSync)(f),m=[];if(d){let p;try{p=(0,Un.readJsonSync)(f)}catch{}p&&m.push(...Object.keys(p.scripts||{}))}let y=t;return qn.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:d,availableScripts:m,repoInfo:n}}var gC=require("proxy-agent");var $n={name:"create-turbo",version:"1.13.1-canary.2",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"4.1.2",commander:"^10.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]};var t1=oe(require("chalk")),r1=oe(require("update-check"));var T5=(0,r1.default)($n).catch(()=>null);async function fm(){try{let t=await T5;t!=null&&t.latest&&(fe.log(),fe.log(t1.default.yellow.bold("A new version of `create-turbo` is available!")),fe.log()),process.exit()}catch{}}var ao=oe(require("path")),He=oe(require("chalk"));var Zn=oe(require("chalk"),1),_1=oe(ca(),1),b1=oe(fa(),1),D1=oe(require("os"),1),A1=oe(sn(),1),f7=require("fs-extra");var g7=oe(Yo(),1),b7=require("fs-extra"),w7=require("fs-extra"),S7=require("chalk"),C1=require("stream"),R1=require("util"),C7=require("fs-extra"),O7=require("chalk"),P7=require("fs-extra"),Ri=oe(require("path"),1),Qe=require("fs-extra"),T1=oe(sn(),1),k1=oe(require("path"),1),O1=require("fs-extra"),F1=oe(require("chalk"),1),Dr=oe(require("path"),1),P1=oe(sn(),1),pt=require("fs-extra"),L1=oe(Yo(),1);var Xs=oe(require("path"),1),Zt=require("fs-extra"),Yn=oe(require("path"),1),Jt=require("fs-extra"),Qs=oe(require("path"),1),Xt=require("fs-extra"),dt=oe(require("chalk"),1),q1=oe(fa(),1),H1=oe(sn(),1),U1=oe(ca(),1),$1=require("semver"),G1=oe(require("chalk"),1),k5=Object.create,mm=Object.defineProperty,O5=Object.getOwnPropertyDescriptor,F5=Object.getOwnPropertyNames,P5=Object.getPrototypeOf,L5=Object.prototype.hasOwnProperty,he=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),B5=(t,e)=>()=>(t&&(e=t(t=0)),e),ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),I5=(t,e)=>{for(var r in e)mm(t,r,{get:e[r],enumerable:!0})},N5=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of F5(e))!L5.call(t,n)&&n!==r&&mm(t,n,{get:()=>e[n],enumerable:!(i=O5(e,n))||i.enumerable});return t},oc=(t,e,r)=>(r=t!=null?k5(P5(t)):{},N5(e||!t||!t.__esModule?mm(r,"default",{value:t,enumerable:!0}):r,t)),te=B5(()=>{}),M5=ce((t,e)=>{te();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),j5=ce((t,e)=>{te();var r=M5().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},s=Object.prototype,o=s.hasOwnProperty,a=Object.defineProperty||function(v,R,$){v[R]=$.value},u=typeof Symbol=="function"?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(v,R,$){return Object.defineProperty(v,R,{value:$,enumerable:!0,configurable:!0,writable:!0}),v[R]}try{f({},"")}catch{f=function(v,R,$){return v[R]=$}}function d(v,R,$,J){var X=R&&R.prototype instanceof p?R:p,E=Object.create(X.prototype),w=new U(J||[]);return a(E,"_invoke",{value:H(v,$,w)}),E}function m(v,R,$){try{return{type:"normal",arg:v.call(R,$)}}catch(J){return{type:"throw",arg:J}}}n.wrap=d;var y={};function p(){}function _(){}function C(){}var L={};f(L,c,function(){return this});var B=Object.getPrototypeOf,T=B&&B(B(G([])));T&&T!==s&&o.call(T,c)&&(L=T);var M=C.prototype=p.prototype=Object.create(L);function D(v){["next","throw","return"].forEach(function(R){f(v,R,function($){return this._invoke(R,$)})})}function A(v,R){function $(X,E,w,S){var j=m(v[X],v,E);if(j.type!=="throw"){var F=j.arg,Y=F.value;return Y&&r(Y)=="object"&&o.call(Y,"__await")?R.resolve(Y.__await).then(function(z){$("next",z,w,S)},function(z){$("throw",z,w,S)}):R.resolve(Y).then(function(z){F.value=z,w(F)},function(z){return $("throw",z,w,S)})}S(j.arg)}var J;a(this,"_invoke",{value:function(X,E){function w(){return new R(function(S,j){$(X,E,S,j)})}return J=J?J.then(w,w):w()}})}function H(v,R,$){var J="suspendedStart";return function(X,E){if(J==="executing")throw new Error("Generator is already running");if(J==="completed"){if(X==="throw")throw E;return P()}for($.method=X,$.arg=E;;){var w=$.delegate;if(w){var S=W(w,$);if(S){if(S===y)continue;return S}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(J==="suspendedStart")throw J="completed",$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);J="executing";var j=m(v,R,$);if(j.type==="normal"){if(J=$.done?"completed":"suspendedYield",j.arg===y)continue;return{value:j.arg,done:$.done}}j.type==="throw"&&(J="completed",$.method="throw",$.arg=j.arg)}}}function W(v,R){var $=R.method,J=v.iterator[$];if(J===void 0)return R.delegate=null,$==="throw"&&v.iterator.return&&(R.method="return",R.arg=void 0,W(v,R),R.method==="throw")||$!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+$+"' method")),y;var X=m(J,v.iterator,R.arg);if(X.type==="throw")return R.method="throw",R.arg=X.arg,R.delegate=null,y;var E=X.arg;return E?E.done?(R[v.resultName]=E.value,R.next=v.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,y):E:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,y)}function q(v){var R={tryLoc:v[0]};1 in v&&(R.catchLoc=v[1]),2 in v&&(R.finallyLoc=v[2],R.afterLoc=v[3]),this.tryEntries.push(R)}function I(v){var R=v.completion||{};R.type="normal",delete R.arg,v.completion=R}function U(v){this.tryEntries=[{tryLoc:"root"}],v.forEach(q,this),this.reset(!0)}function G(v){if(v){var R=v[c];if(R)return R.call(v);if(typeof v.next=="function")return v;if(!isNaN(v.length)){var $=-1,J=function X(){for(;++$<v.length;)if(o.call(v,$))return X.value=v[$],X.done=!1,X;return X.value=void 0,X.done=!0,X};return J.next=J}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=C,a(M,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=f(C,h,"GeneratorFunction"),n.isGeneratorFunction=function(v){var R=typeof v=="function"&&v.constructor;return!!R&&(R===_||(R.displayName||R.name)==="GeneratorFunction")},n.mark=function(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,C):(v.__proto__=C,f(v,h,"GeneratorFunction")),v.prototype=Object.create(M),v},n.awrap=function(v){return{__await:v}},D(A.prototype),f(A.prototype,l,function(){return this}),n.AsyncIterator=A,n.async=function(v,R,$,J,X){X===void 0&&(X=Promise);var E=new A(d(v,R,$,J),X);return n.isGeneratorFunction(R)?E:E.next().then(function(w){return w.done?w.value:E.next()})},D(M),f(M,h,"Generator"),f(M,c,function(){return this}),f(M,"toString",function(){return"[object Generator]"}),n.keys=function(v){var R=Object(v),$=[];for(var J in R)$.push(J);return $.reverse(),function X(){for(;$.length;){var E=$.pop();if(E in R)return X.value=E,X.done=!1,X}return X.done=!0,X}},n.values=G,U.prototype={constructor:U,reset:function(v){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!v)for(var R in this)R.charAt(0)==="t"&&o.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var v=this.tryEntries[0].completion;if(v.type==="throw")throw v.arg;return this.rval},dispatchException:function(v){if(this.done)throw v;var R=this;function $(j,F){return E.type="throw",E.arg=v,R.next=j,F&&(R.method="next",R.arg=void 0),!!F}for(var J=this.tryEntries.length-1;J>=0;--J){var X=this.tryEntries[J],E=X.completion;if(X.tryLoc==="root")return $("end");if(X.tryLoc<=this.prev){var w=o.call(X,"catchLoc"),S=o.call(X,"finallyLoc");if(w&&S){if(this.prev<X.catchLoc)return $(X.catchLoc,!0);if(this.prev<X.finallyLoc)return $(X.finallyLoc)}else if(w){if(this.prev<X.catchLoc)return $(X.catchLoc,!0)}else{if(!S)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return $(X.finallyLoc)}}}},abrupt:function(v,R){for(var $=this.tryEntries.length-1;$>=0;--$){var J=this.tryEntries[$];if(J.tryLoc<=this.prev&&o.call(J,"finallyLoc")&&this.prev<J.finallyLoc){var X=J;break}}X&&(v==="break"||v==="continue")&&X.tryLoc<=R&&R<=X.finallyLoc&&(X=null);var E=X?X.completion:{};return E.type=v,E.arg=R,X?(this.method="next",this.next=X.finallyLoc,y):this.complete(E)},complete:function(v,R){if(v.type==="throw")throw v.arg;return v.type==="break"||v.type==="continue"?this.next=v.arg:v.type==="return"?(this.rval=this.arg=v.arg,this.method="return",this.next="end"):v.type==="normal"&&R&&(this.next=R),y},finish:function(v){for(var R=this.tryEntries.length-1;R>=0;--R){var $=this.tryEntries[R];if($.finallyLoc===v)return this.complete($.completion,$.afterLoc),I($),y}},catch:function(v){for(var R=this.tryEntries.length-1;R>=0;--R){var $=this.tryEntries[R];if($.tryLoc===v){var J=$.completion;if(J.type==="throw"){var X=J.arg;I($)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(v,R,$){return this.delegate={iterator:G(v),resultName:R,nextLoc:$},this.method==="next"&&(this.arg=void 0),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),q5=ce((t,e)=>{te();var r=j5()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),H5=ce((t,e)=>{"use strict";te();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),U5=ce((t,e)=>{"use strict";te();var r=H5(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(h,f,...d)=>{o++;let m=r(h,...d);f(m),m.then(a,a)},c=(h,f,...d)=>{o<n?u(h,f,...d):s.push(u.bind(null,h,f,...d))},l=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),l};e.exports=i,e.exports.default=i}),$5=ce((t,e)=>{"use strict";te();var r=U5(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let l=r(c.concurrency),h=[...a].map(d=>[d,l(n,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),G5=ce((t,e)=>{"use strict";te();var r=he("path"),i=he("fs"),{promisify:n}=he("util"),s=$5(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in u))throw new Error(`Invalid type specified: ${h}`)}var l=(h,f)=>h===void 0||f[u[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async m=>{try{let y=await d(r.resolve(f.cwd,m));return l(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let y=d(r.resolve(f.cwd,m));if(l(f.type,y))return m}catch{}}}),z5=ce((t,e)=>{"use strict";te();var r=he("fs"),{promisify:i}=he("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),W5=ce((t,e)=>{"use strict";te();var r=he("path"),i=G5(),n=z5(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=async f=>{if(typeof o!="function")return i(l,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(l,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),eo=ce((t,e)=>{"use strict";te();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),ym=ce((t,e)=>{"use strict";te();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=he("events"),n=he("stream"),s=he("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),_=Symbol("flowing"),C=Symbol("paused"),L=Symbol("resume"),B=Symbol("buffer"),T=Symbol("pipes"),M=Symbol("bufferLength"),D=Symbol("bufferPush"),A=Symbol("bufferShift"),H=Symbol("objectMode"),W=Symbol("destroyed"),q=Symbol("emitData"),I=Symbol("emitEnd"),U=Symbol("emitEnd2"),G=Symbol("async"),P=j=>Promise.resolve().then(j),v=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=v&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$=v&&Symbol.iterator||Symbol("iterator not implemented"),J=j=>j==="end"||j==="finish"||j==="prefinish",X=j=>j instanceof ArrayBuffer||typeof j=="object"&&j.constructor&&j.constructor.name==="ArrayBuffer"&&j.byteLength>=0,E=j=>!Buffer.isBuffer(j)&&ArrayBuffer.isView(j),w=class{constructor(j,F,Y){this.src=j,this.dest=F,this.opts=Y,this.ondrain=()=>j[L](),F.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},S=class extends w{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(j,F,Y){super(j,F,Y),this.proxyErrors=z=>F.emit("error",z),j.on("error",this.proxyErrors)}};e.exports=class s1 extends n{constructor(F){super(),this[_]=!1,this[C]=!1,this[T]=[],this[B]=[],this[H]=F&&F.objectMode||!1,this[H]?this[y]=null:this[y]=F&&F.encoding||null,this[y]==="buffer"&&(this[y]=null),this[G]=F&&!!F.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[M]=0,this[W]=!1,F&&F.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[B]}),F&&F.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[T]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(F){if(this[H])throw new Error("cannot set encoding in objectMode");if(this[y]&&F!==this[y]&&(this[p]&&this[p].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==F&&(this[p]=F?new s(F):null,this[B].length&&(this[B]=this[B].map(Y=>this[p].write(Y)))),this[y]=F}setEncoding(F){this.encoding=F}get objectMode(){return this[H]}set objectMode(F){this[H]=this[H]||!!F}get async(){return this[G]}set async(F){this[G]=this[G]||!!F}write(F,Y,z){if(this[o])throw new Error("write after end");if(this[W])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Y=="function"&&(z=Y,Y="utf8"),Y||(Y="utf8");let ne=this[G]?P:Z=>Z();return!this[H]&&!Buffer.isBuffer(F)&&(E(F)?F=Buffer.from(F.buffer,F.byteOffset,F.byteLength):X(F)?F=Buffer.from(F):typeof F!="string"&&(this.objectMode=!0)),this[H]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[D](F),this[M]!==0&&this.emit("readable"),z&&ne(z),this.flowing):F.length?(typeof F=="string"&&!(Y===this[y]&&!this[p].lastNeed)&&(F=Buffer.from(F,Y)),Buffer.isBuffer(F)&&this[y]&&(F=this[p].write(F)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[D](F),this[M]!==0&&this.emit("readable"),z&&ne(z),this.flowing):(this[M]!==0&&this.emit("readable"),z&&ne(z),this.flowing)}read(F){if(this[W])return null;if(this[M]===0||F===0||F>this[M])return this[a](),null;this[H]&&(F=null),this[B].length>1&&!this[H]&&(this.encoding?this[B]=[this[B].join("")]:this[B]=[Buffer.concat(this[B],this[M])]);let Y=this[f](F||null,this[B][0]);return this[a](),Y}[f](F,Y){return F===Y.length||F===null?this[A]():(this[B][0]=Y.slice(F),Y=Y.slice(0,F),this[M]-=F),this.emit("data",Y),!this[B].length&&!this[o]&&this.emit("drain"),Y}end(F,Y,z){return typeof F=="function"&&(z=F,F=null),typeof Y=="function"&&(z=Y,Y="utf8"),F&&this.write(F,Y),z&&this.once("end",z),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[L](){this[W]||(this[C]=!1,this[_]=!0,this.emit("resume"),this[B].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[L]()}pause(){this[_]=!1,this[C]=!0}get destroyed(){return this[W]}get flowing(){return this[_]}get paused(){return this[C]}[D](F){this[H]?this[M]+=1:this[M]+=F.length,this[B].push(F)}[A](){return this[B].length&&(this[H]?this[M]-=1:this[M]-=this[B][0].length),this[B].shift()}[d](F){do;while(this[m](this[A]()));!F&&!this[B].length&&!this[o]&&this.emit("drain")}[m](F){return F?(this.emit("data",F),this.flowing):!1}pipe(F,Y){if(this[W])return;let z=this[u];return Y=Y||{},F===r.stdout||F===r.stderr?Y.end=!1:Y.end=Y.end!==!1,Y.proxyErrors=!!Y.proxyErrors,z?Y.end&&F.end():(this[T].push(Y.proxyErrors?new S(this,F,Y):new w(this,F,Y)),this[G]?P(()=>this[L]()):this[L]()),F}unpipe(F){let Y=this[T].find(z=>z.dest===F);Y&&(this[T].splice(this[T].indexOf(Y),1),Y.unpipe())}addListener(F,Y){return this.on(F,Y)}on(F,Y){let z=super.on(F,Y);return F==="data"&&!this[T].length&&!this.flowing?this[L]():F==="readable"&&this[M]!==0?super.emit("readable"):J(F)&&this[u]?(super.emit(F),this.removeAllListeners(F)):F==="error"&&this[l]&&(this[G]?P(()=>Y.call(this,this[l])):Y.call(this,this[l])),z}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[W]&&this[B].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(F,Y,...z){if(F!=="error"&&F!=="close"&&F!==W&&this[W])return;if(F==="data")return Y?this[G]?P(()=>this[q](Y)):this[q](Y):!1;if(F==="end")return this[I]();if(F==="close"){if(this[h]=!0,!this[u]&&!this[W])return;let Z=super.emit("close");return this.removeAllListeners("close"),Z}else if(F==="error"){this[l]=Y;let Z=super.emit("error",Y);return this[a](),Z}else if(F==="resume"){let Z=super.emit("resume");return this[a](),Z}else if(F==="finish"||F==="prefinish"){let Z=super.emit(F);return this.removeAllListeners(F),Z}let ne=super.emit(F,Y,...z);return this[a](),ne}[q](F){for(let z of this[T])z.dest.write(F)===!1&&this.pause();let Y=super.emit("data",F);return this[a](),Y}[I](){this[u]||(this[u]=!0,this.readable=!1,this[G]?P(()=>this[U]()):this[U]())}[U](){if(this[p]){let Y=this[p].end();if(Y){for(let z of this[T])z.dest.write(Y);super.emit("data",Y)}}for(let Y of this[T])Y.end();let F=super.emit("end");return this.removeAllListeners("end"),F}collect(){let F=[];this[H]||(F.dataLength=0);let Y=this.promise();return this.on("data",z=>{F.push(z),this[H]||(F.dataLength+=z.length)}),Y.then(()=>F)}concat(){return this[H]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(F=>this[H]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?F.join(""):Buffer.concat(F,F.dataLength))}promise(){return new Promise((F,Y)=>{this.on(W,()=>Y(new Error("stream destroyed"))),this.on("error",z=>Y(z)),this.on("end",()=>F())})}[R](){return{next:()=>{let F=this.read();if(F!==null)return Promise.resolve({done:!1,value:F});if(this[o])return Promise.resolve({done:!0});let Y=null,z=null,ne=b=>{this.removeListener("data",Z),this.removeListener("end",ue),z(b)},Z=b=>{this.removeListener("error",ne),this.removeListener("end",ue),this.pause(),Y({value:b,done:!!this[o]})},ue=()=>{this.removeListener("error",ne),this.removeListener("data",Z),Y({done:!0})},Q=()=>ne(new Error("stream destroyed"));return new Promise((b,N)=>{z=N,Y=b,this.once(W,Q),this.once("error",ne),this.once("end",ue),this.once("data",Z)})}}}[$](){return{next:()=>{let F=this.read();return{value:F,done:F===null}}}}destroy(F){return this[W]?(F?this.emit("error",F):this.emit(W),this):(this[W]=!0,this[B].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),F?this.emit("error",F):this.emit(W),this)}static isStream(F){return!!F&&(F instanceof s1||F instanceof n||F instanceof i&&(typeof F.pipe=="function"||typeof F.write=="function"&&typeof F.end=="function"))}}}),V5=ce((t,e)=>{te();var r=he("zlib").constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))}),o1=ce((t,e)=>{"use strict";te();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=he("events"),n=he("stream"),s=he("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),_=Symbol("flowing"),C=Symbol("paused"),L=Symbol("resume"),B=Symbol("bufferLength"),T=Symbol("bufferPush"),M=Symbol("bufferShift"),D=Symbol("objectMode"),A=Symbol("destroyed"),H=Symbol("emitData"),W=Symbol("emitEnd"),q=Symbol("emitEnd2"),I=Symbol("async"),U=w=>Promise.resolve().then(w),G=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=G&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),v=G&&Symbol.iterator||Symbol("iterator not implemented"),R=w=>w==="end"||w==="finish"||w==="prefinish",$=w=>w instanceof ArrayBuffer||typeof w=="object"&&w.constructor&&w.constructor.name==="ArrayBuffer"&&w.byteLength>=0,J=w=>!Buffer.isBuffer(w)&&ArrayBuffer.isView(w),X=class{constructor(w,S,j){this.src=w,this.dest=S,this.opts=j,this.ondrain=()=>w[L](),S.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends X{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(w,S,j){super(w,S,j),this.proxyErrors=F=>S.emit("error",F),w.on("error",this.proxyErrors)}};e.exports=class a1 extends n{constructor(S){super(),this[_]=!1,this[C]=!1,this.pipes=[],this.buffer=[],this[D]=S&&S.objectMode||!1,this[D]?this[y]=null:this[y]=S&&S.encoding||null,this[y]==="buffer"&&(this[y]=null),this[I]=S&&!!S.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[B]=0,this[A]=!1}get bufferLength(){return this[B]}get encoding(){return this[y]}set encoding(S){if(this[D])throw new Error("cannot set encoding in objectMode");if(this[y]&&S!==this[y]&&(this[p]&&this[p].lastNeed||this[B]))throw new Error("cannot change encoding");this[y]!==S&&(this[p]=S?new s(S):null,this.buffer.length&&(this.buffer=this.buffer.map(j=>this[p].write(j)))),this[y]=S}setEncoding(S){this.encoding=S}get objectMode(){return this[D]}set objectMode(S){this[D]=this[D]||!!S}get async(){return this[I]}set async(S){this[I]=this[I]||!!S}write(S,j,F){if(this[o])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof j=="function"&&(F=j,j="utf8"),j||(j="utf8");let Y=this[I]?U:z=>z();return!this[D]&&!Buffer.isBuffer(S)&&(J(S)?S=Buffer.from(S.buffer,S.byteOffset,S.byteLength):$(S)?S=Buffer.from(S):typeof S!="string"&&(this.objectMode=!0)),this[D]?(this.flowing&&this[B]!==0&&this[d](!0),this.flowing?this.emit("data",S):this[T](S),this[B]!==0&&this.emit("readable"),F&&Y(F),this.flowing):S.length?(typeof S=="string"&&!(j===this[y]&&!this[p].lastNeed)&&(S=Buffer.from(S,j)),Buffer.isBuffer(S)&&this[y]&&(S=this[p].write(S)),this.flowing&&this[B]!==0&&this[d](!0),this.flowing?this.emit("data",S):this[T](S),this[B]!==0&&this.emit("readable"),F&&Y(F),this.flowing):(this[B]!==0&&this.emit("readable"),F&&Y(F),this.flowing)}read(S){if(this[A])return null;if(this[B]===0||S===0||S>this[B])return this[a](),null;this[D]&&(S=null),this.buffer.length>1&&!this[D]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[B])]);let j=this[f](S||null,this.buffer[0]);return this[a](),j}[f](S,j){return S===j.length||S===null?this[M]():(this.buffer[0]=j.slice(S),j=j.slice(0,S),this[B]-=S),this.emit("data",j),!this.buffer.length&&!this[o]&&this.emit("drain"),j}end(S,j,F){return typeof S=="function"&&(F=S,S=null),typeof j=="function"&&(F=j,j="utf8"),S&&this.write(S,j),F&&this.once("end",F),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[L](){this[A]||(this[C]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[L]()}pause(){this[_]=!1,this[C]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[C]}[T](S){this[D]?this[B]+=1:this[B]+=S.length,this.buffer.push(S)}[M](){return this.buffer.length&&(this[D]?this[B]-=1:this[B]-=this.buffer[0].length),this.buffer.shift()}[d](S){do;while(this[m](this[M]()));!S&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](S){return S?(this.emit("data",S),this.flowing):!1}pipe(S,j){if(this[A])return;let F=this[u];return j=j||{},S===r.stdout||S===r.stderr?j.end=!1:j.end=j.end!==!1,j.proxyErrors=!!j.proxyErrors,F?j.end&&S.end():(this.pipes.push(j.proxyErrors?new E(this,S,j):new X(this,S,j)),this[I]?U(()=>this[L]()):this[L]()),S}unpipe(S){let j=this.pipes.find(F=>F.dest===S);j&&(this.pipes.splice(this.pipes.indexOf(j),1),j.unpipe())}addListener(S,j){return this.on(S,j)}on(S,j){let F=super.on(S,j);return S==="data"&&!this.pipes.length&&!this.flowing?this[L]():S==="readable"&&this[B]!==0?super.emit("readable"):R(S)&&this[u]?(super.emit(S),this.removeAllListeners(S)):S==="error"&&this[l]&&(this[I]?U(()=>j.call(this,this[l])):j.call(this,this[l])),F}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[A]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(S,j,...F){if(S!=="error"&&S!=="close"&&S!==A&&this[A])return;if(S==="data")return j?this[I]?U(()=>this[H](j)):this[H](j):!1;if(S==="end")return this[W]();if(S==="close"){if(this[h]=!0,!this[u]&&!this[A])return;let z=super.emit("close");return this.removeAllListeners("close"),z}else if(S==="error"){this[l]=j;let z=super.emit("error",j);return this[a](),z}else if(S==="resume"){let z=super.emit("resume");return this[a](),z}else if(S==="finish"||S==="prefinish"){let z=super.emit(S);return this.removeAllListeners(S),z}let Y=super.emit(S,j,...F);return this[a](),Y}[H](S){for(let F of this.pipes)F.dest.write(S)===!1&&this.pause();let j=super.emit("data",S);return this[a](),j}[W](){this[u]||(this[u]=!0,this.readable=!1,this[I]?U(()=>this[q]()):this[q]())}[q](){if(this[p]){let j=this[p].end();if(j){for(let F of this.pipes)F.dest.write(j);super.emit("data",j)}}for(let j of this.pipes)j.end();let S=super.emit("end");return this.removeAllListeners("end"),S}collect(){let S=[];this[D]||(S.dataLength=0);let j=this.promise();return this.on("data",F=>{S.push(F),this[D]||(S.dataLength+=F.length)}),j.then(()=>S)}concat(){return this[D]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(S=>this[D]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?S.join(""):Buffer.concat(S,S.dataLength))}promise(){return new Promise((S,j)=>{this.on(A,()=>j(new Error("stream destroyed"))),this.on("error",F=>j(F)),this.on("end",()=>S())})}[P](){return{next:()=>{let S=this.read();if(S!==null)return Promise.resolve({done:!1,value:S});if(this[o])return Promise.resolve({done:!0});let j=null,F=null,Y=ue=>{this.removeListener("data",z),this.removeListener("end",ne),F(ue)},z=ue=>{this.removeListener("error",Y),this.removeListener("end",ne),this.pause(),j({value:ue,done:!!this[o]})},ne=()=>{this.removeListener("error",Y),this.removeListener("data",z),j({done:!0})},Z=()=>Y(new Error("stream destroyed"));return new Promise((ue,Q)=>{F=Q,j=ue,this.once(A,Z),this.once("error",Y),this.once("end",ne),this.once("data",z)})}}}[v](){return{next:()=>{let S=this.read();return{value:S,done:S===null}}}}destroy(S){return this[A]?(S?this.emit("error",S):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[B]=0,typeof this.close=="function"&&!this[h]&&this.close(),S?this.emit("error",S):this.emit(A),this)}static isStream(S){return!!S&&(S instanceof a1||S instanceof n||S instanceof i&&(typeof S.pipe=="function"||typeof S.write=="function"&&typeof S.end=="function"))}}}),u1=ce(t=>{"use strict";te();var e=he("assert"),r=he("buffer").Buffer,i=he("zlib"),n=t.constants=V5(),s=o1(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(R){super("zlib: "+R.message),this.code=R.code,this.errno=R.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+R.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),m=Symbol("onError"),y=Symbol("sawError"),p=Symbol("level"),_=Symbol("strategy"),C=Symbol("ended"),L=Symbol("_defaultFullFlush"),B=class extends s{constructor(R,$){if(!R||typeof R!="object")throw new TypeError("invalid options for ZlibBase constructor");super(R),this[y]=!1,this[C]=!1,this[c]=R,this[l]=R.flush,this[h]=R.finishFlush;try{this[d]=new i[$](R)}catch(J){throw new u(J)}this[m]=J=>{this[y]||(this[y]=!0,this.close(),this.emit("error",J))},this[d].on("error",J=>this[m](new u(J))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(R){this.ended||(typeof R!="number"&&(R=this[f]),this.write(Object.assign(r.alloc(0),{[l]:R})))}end(R,$,J){return R&&this.write(R,$),this.flush(this[h]),this[C]=!0,super.end(null,null,J)}get ended(){return this[C]}write(R,$,J){if(typeof $=="function"&&(J=$,$="utf8"),typeof R=="string"&&(R=r.from(R,$)),this[y])return;e(this[d],"zlib binding closed");let X=this[d]._handle,E=X.close;X.close=()=>{};let w=this[d].close;this[d].close=()=>{},r.concat=F=>F;let S;try{let F=typeof R[l]=="number"?R[l]:this[l];S=this[d]._processChunk(R,F),r.concat=o}catch(F){r.concat=o,this[m](new u(F))}finally{this[d]&&(this[d]._handle=X,X.close=E,this[d].close=w,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",F=>this[m](new u(F)));let j;if(S)if(Array.isArray(S)&&S.length>0){j=this[a](r.from(S[0]));for(let F=1;F<S.length;F++)j=this[a](S[F])}else j=this[a](r.from(S));return J&&J(),j}[a](R){return super.write(R)}},T=class extends B{constructor(R,$){R=R||{},R.flush=R.flush||n.Z_NO_FLUSH,R.finishFlush=R.finishFlush||n.Z_FINISH,super(R,$),this[f]=n.Z_FULL_FLUSH,this[p]=R.level,this[_]=R.strategy}params(R,$){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[p]!==R||this[_]!==$){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let J=this[d].flush;this[d].flush=(X,E)=>{this.flush(X),E()};try{this[d].params(R,$)}finally{this[d].flush=J}this[d]&&(this[p]=R,this[_]=$)}}}},M=class extends T{constructor(R){super(R,"Deflate")}},D=class extends T{constructor(R){super(R,"Inflate")}},A=Symbol("_portable"),H=class extends T{constructor(R){super(R,"Gzip"),this[A]=R&&!!R.portable}[a](R){return this[A]?(this[A]=!1,R[9]=255,super[a](R)):super[a](R)}},W=class extends T{constructor(R){super(R,"Gunzip")}},q=class extends T{constructor(R){super(R,"DeflateRaw")}},I=class extends T{constructor(R){super(R,"InflateRaw")}},U=class extends T{constructor(R){super(R,"Unzip")}},G=class extends B{constructor(R,$){R=R||{},R.flush=R.flush||n.BROTLI_OPERATION_PROCESS,R.finishFlush=R.finishFlush||n.BROTLI_OPERATION_FINISH,super(R,$),this[f]=n.BROTLI_OPERATION_FLUSH}},P=class extends G{constructor(R){super(R,"BrotliCompress")}},v=class extends G{constructor(R){super(R,"BrotliDecompress")}};t.Deflate=M,t.Inflate=D,t.Gzip=H,t.Gunzip=W,t.DeflateRaw=q,t.InflateRaw=I,t.Unzip=U,typeof i.BrotliCompress=="function"?(t.BrotliCompress=P,t.BrotliDecompress=v):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),to=ce((t,e)=>{te();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),gm=ce((t,e)=>{"use strict";te();var r=ym(),i=to(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),c1=ce(t=>{"use strict";te(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),Y5=ce((t,e)=>{"use strict";te();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?n(l,h):i(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},n=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var m=l&255;l=Math.floor(l/256),f?h[d-1]=u(m):m===0?h[d-1]=0:(f=!0,h[d-1]=c(m))}},s=l=>{let h=l[0],f=h===128?a(l.slice(1,l.length)):h===255?o(l):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=l=>{for(var h=l.length,f=0,d=!1,m=h-1;m>-1;m--){var y=l[m],p;d?p=u(y):y===0?p=y:(d=!0,p=c(y)),p!==0&&(f-=p*Math.pow(256,h-m-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var m=l[d];m!==0&&(f+=m*Math.pow(256,h-d-1))}return f},u=l=>(255^l)&255,c=l=>(255^l)+1&255;e.exports={encode:r,parse:s}}),ro=ce((t,e)=>{"use strict";te();var r=c1(),i=he("path").posix,n=Y5(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(D,A,H,W){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(D)?this.decode(D,A||0,H,W):D&&this.set(D)}decode(D,A,H,W){if(A||(A=0),!D||!(D.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=c(D,A,100),this.mode=f(D,A+100,8),this.uid=f(D,A+108,8),this.gid=f(D,A+116,8),this.size=f(D,A+124,12),this.mtime=l(D,A+136,12),this.cksum=f(D,A+148,12),this[s](H),this[s](W,!0),this[o]=c(D,A+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(D,A+157,100),D.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=c(D,A+265,32),this.gname=c(D,A+297,32),this.devmaj=f(D,A+329,8),this.devmin=f(D,A+337,8),D[A+475]!==0){let I=c(D,A+345,155);this.path=I+"/"+this.path}else{let I=c(D,A+345,130);I&&(this.path=I+"/"+this.path),this.atime=l(D,A+476,12),this.ctime=l(D,A+488,12)}let q=8*32;for(let I=A;I<A+148;I++)q+=D[I];for(let I=A+156;I<A+512;I++)q+=D[I];this.cksumValid=q===this.cksum,this.cksum===null&&q===8*32&&(this.nullBlock=!0)}[s](D,A){for(let H in D)D[H]!==null&&D[H]!==void 0&&!(A&&H==="path")&&(this[H]=D[H])}encode(D,A){if(D||(D=this.block=Buffer.alloc(512),A=0),A||(A=0),!(D.length>=A+512))throw new Error("need 512 bytes for header");let H=this.ctime||this.atime?130:155,W=u(this.path||"",H),q=W[0],I=W[1];this.needPax=W[2],this.needPax=M(D,A,100,q)||this.needPax,this.needPax=p(D,A+100,8,this.mode)||this.needPax,this.needPax=p(D,A+108,8,this.uid)||this.needPax,this.needPax=p(D,A+116,8,this.gid)||this.needPax,this.needPax=p(D,A+124,12,this.size)||this.needPax,this.needPax=B(D,A+136,12,this.mtime)||this.needPax,D[A+156]=this[o].charCodeAt(0),this.needPax=M(D,A+157,100,this.linkpath)||this.needPax,D.write("ustar\x0000",A+257,8),this.needPax=M(D,A+265,32,this.uname)||this.needPax,this.needPax=M(D,A+297,32,this.gname)||this.needPax,this.needPax=p(D,A+329,8,this.devmaj)||this.needPax,this.needPax=p(D,A+337,8,this.devmin)||this.needPax,this.needPax=M(D,A+345,H,I)||this.needPax,D[A+475]!==0?this.needPax=M(D,A+345,155,I)||this.needPax:(this.needPax=M(D,A+345,130,I)||this.needPax,this.needPax=B(D,A+476,12,this.atime)||this.needPax,this.needPax=B(D,A+488,12,this.ctime)||this.needPax);let U=8*32;for(let G=A;G<A+148;G++)U+=D[G];for(let G=A+156;G<A+512;G++)U+=D[G];return this.cksum=U,p(D,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(D){for(let A in D)D[A]!==null&&D[A]!==void 0&&(this[A]=D[A])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(D){r.code.has(D)?this[o]=r.code.get(D):this[o]=D}},u=(D,A)=>{let H=D,W="",q,I=i.parse(D).root||".";if(Buffer.byteLength(H)<100)q=[H,W,!1];else{W=i.dirname(H),H=i.basename(H);do Buffer.byteLength(H)<=100&&Buffer.byteLength(W)<=A?q=[H,W,!1]:Buffer.byteLength(H)>100&&Buffer.byteLength(W)<=A?q=[H.slice(0,100-1),W,!0]:(H=i.join(i.basename(W),H),W=i.dirname(W));while(W!==I&&!q);q||(q=[D.slice(0,100-1),"",!0])}return q},c=(D,A,H)=>D.slice(A,A+H).toString("utf8").replace(/\0.*/,""),l=(D,A,H)=>h(f(D,A,H)),h=D=>D===null?null:new Date(D*1e3),f=(D,A,H)=>D[A]&128?n.parse(D.slice(A,A+H)):m(D,A,H),d=D=>isNaN(D)?null:D,m=(D,A,H)=>d(parseInt(D.slice(A,A+H).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},p=(D,A,H,W)=>W===null?!1:W>y[H]||W<0?(n.encode(W,D.slice(A,A+H)),!0):(_(D,A,H,W),!1),_=(D,A,H,W)=>D.write(C(W,H),A,H,"ascii"),C=(D,A)=>L(Math.floor(D).toString(8),A),L=(D,A)=>(D.length===A-1?D:new Array(A-D.length-1).join("0")+D+" ")+"\0",B=(D,A,H,W)=>W===null?!1:p(D,A,H,W.getTime()/1e3),T=new Array(156).join("\0"),M=(D,A,H,W)=>W===null?!1:(D.write(W+T,A,H,"utf8"),W.length!==Buffer.byteLength(W)||W.length>H);e.exports=a}),_m=ce((t,e)=>{"use strict";te();var r=ro(),i=he("path"),n=class{constructor(u,c){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=c||!1}encode(){let u=this.encodeBody();if(u==="")return null;let c=Buffer.byteLength(u),l=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(l);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(u,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(u){if(this[u]===null||this[u]===void 0)return"";let c=this[u]instanceof Date?this[u].getTime()/1e3:this[u],l=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+c+`
|
52
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=Un.default.resolve(t);await cm(Un.default.dirname(o))||(_t("The application path is not writable, please check folder permissions and try again."),_t("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Un.default.basename(o);try{await(0,Gn.mkdir)(o,{recursive:!0})}catch(p){_t("Unable to create project directory"),_t(p),process.exit(1)}let{isEmpty:u,conflicts:c}=Es(o);u||(_t(`${vr.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);let h=$h("Downloading files...");try{!r&&n?(gt(`
|
53
|
+
Downloading files from repo ${vr.default.cyan(e)}. This might take a moment.`),gt(),h.start(),await(0,lm.default)(()=>am(o,n),{retries:3})):(gt(`
|
54
|
+
Downloading files${r?"":` for example ${vr.default.cyan(e)}`}. This might take a moment.`),gt(),h.start(),await(0,lm.default)(()=>um(o,e),{retries:3}))}catch(p){throw new $n(T5(p)?p.message:String(p))}finally{h.stop()}let f=Un.default.join(o,"package.json"),d=(0,Gn.existsSync)(f),m=[];if(d){let p;try{p=(0,Gn.readJsonSync)(f)}catch{}p&&m.push(...Object.keys(p.scripts||{}))}let y=t;return Un.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:d,availableScripts:m,repoInfo:n}}var _C=require("proxy-agent");var zn={name:"create-turbo",version:"1.13.1-canary.3",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"4.1.2",commander:"^10.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]};var r1=ae(require("chalk")),i1=ae(require("update-check"));var O5=(0,i1.default)(zn).catch(()=>null);async function fm(){try{let t=await O5;t!=null&&t.latest&&(fe.log(),fe.log(r1.default.yellow.bold("A new version of `create-turbo` is available!")),fe.log()),process.exit()}catch{}}var ao=ae(require("path")),He=ae(require("chalk"));var ti=ae(require("chalk"),1),b1=ae(ca(),1),E1=ae(fa(),1),A1=ae(require("os"),1),x1=ae(an(),1),y7=require("fs-extra");var w7=ae(Yo(),1),S7=require("fs-extra"),A7=require("fs-extra"),C7=require("chalk"),R1=require("stream"),T1=require("util"),O7=require("fs-extra"),B7=require("chalk"),N7=require("fs-extra"),ki=ae(require("path"),1),Qe=require("fs-extra"),k1=ae(an(),1),O1=ae(require("path"),1),F1=require("fs-extra"),P1=ae(require("chalk"),1),Dr=ae(require("path"),1),L1=ae(an(),1),pt=require("fs-extra"),B1=ae(Yo(),1);var Qs=ae(require("path"),1),Zt=require("fs-extra"),Zn=ae(require("path"),1),Jt=require("fs-extra"),eo=ae(require("path"),1),Xt=require("fs-extra"),dt=ae(require("chalk"),1),H1=ae(fa(),1),U1=ae(an(),1),$1=ae(ca(),1),G1=require("semver"),z1=ae(require("chalk"),1),F5=Object.create,mm=Object.defineProperty,P5=Object.getOwnPropertyDescriptor,L5=Object.getOwnPropertyNames,B5=Object.getPrototypeOf,I5=Object.prototype.hasOwnProperty,he=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),N5=(t,e)=>()=>(t&&(e=t(t=0)),e),ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),M5=(t,e)=>{for(var r in e)mm(t,r,{get:e[r],enumerable:!0})},j5=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of L5(e))!I5.call(t,n)&&n!==r&&mm(t,n,{get:()=>e[n],enumerable:!(i=P5(e,n))||i.enumerable});return t},oc=(t,e,r)=>(r=t!=null?F5(B5(t)):{},j5(e||!t||!t.__esModule?mm(r,"default",{value:t,enumerable:!0}):r,t)),Q=N5(()=>{}),q5=ce((t,e)=>{Q();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),H5=ce((t,e)=>{Q();var r=q5().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(j,g,_){j[g]=_.value},c=typeof Symbol=="function"?Symbol:{},l=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(j,g,_){return Object.defineProperty(j,g,{value:_,enumerable:!0,configurable:!0,writable:!0}),j[g]}try{d({},"")}catch{d=function(j,g,_){return j[g]=_}}function m(j,g,_,E){var R=g&&g.prototype instanceof T?g:T,A=Object.create(R.prototype),U=new G(E||[]);return u(A,"_invoke",{value:ne(j,_,U)}),A}function y(j,g,_){try{return{type:"normal",arg:j.call(g,_)}}catch(E){return{type:"throw",arg:E}}}s.wrap=m;var p="suspendedStart",w="suspendedYield",C="executing",F="completed",P={};function T(){}function M(){}function S(){}var D={};d(D,l,function(){return this});var H=Object.getPrototypeOf,z=H&&H(H(Z([])));z&&z!==o&&a.call(z,l)&&(D=z);var N=S.prototype=T.prototype=Object.create(D);function K(j){["next","throw","return"].forEach(function(g){d(j,g,function(_){return this._invoke(g,_)})})}function te(j,g){function _(R,A,U,$){var re=y(j[R],j,A);if(re.type!=="throw"){var V=re.arg,oe=V.value;return oe&&r(oe)=="object"&&a.call(oe,"__await")?g.resolve(oe.__await).then(function(J){_("next",J,U,$)},function(J){_("throw",J,U,$)}):g.resolve(oe).then(function(J){V.value=J,U(V)},function(J){return _("throw",J,U,$)})}$(re.arg)}var E;u(this,"_invoke",{value:function(R,A){function U(){return new g(function($,re){_(R,A,$,re)})}return E=E?E.then(U,U):U()}})}function ne(j,g,_){var E=p;return function(R,A){if(E===C)throw new Error("Generator is already running");if(E===F){if(R==="throw")throw A;return{value:n,done:!0}}for(_.method=R,_.arg=A;;){var U=_.delegate;if(U){var $=q(U,_);if($){if($===P)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(E===p)throw E=F,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);E=C;var re=y(j,g,_);if(re.type==="normal"){if(E=_.done?F:w,re.arg===P)continue;return{value:re.arg,done:_.done}}re.type==="throw"&&(E=F,_.method="throw",_.arg=re.arg)}}}function q(j,g){var _=g.method,E=j.iterator[_];if(E===n)return g.delegate=null,_==="throw"&&j.iterator.return&&(g.method="return",g.arg=n,q(j,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),P;var R=y(E,j.iterator,g.arg);if(R.type==="throw")return g.method="throw",g.arg=R.arg,g.delegate=null,P;var A=R.arg;return A?A.done?(g[j.resultName]=A.value,g.next=j.nextLoc,g.method!=="return"&&(g.method="next",g.arg=n),g.delegate=null,P):A:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,P)}function L(j){var g={tryLoc:j[0]};1 in j&&(g.catchLoc=j[1]),2 in j&&(g.finallyLoc=j[2],g.afterLoc=j[3]),this.tryEntries.push(g)}function B(j){var g=j.completion||{};g.type="normal",delete g.arg,j.completion=g}function G(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(L,this),this.reset(!0)}function Z(j){if(j||j===""){var g=j[l];if(g)return g.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var _=-1,E=function R(){for(;++_<j.length;)if(a.call(j,_))return R.value=j[_],R.done=!1,R;return R.value=n,R.done=!0,R};return E.next=E}}throw new TypeError(r(j)+" is not iterable")}return M.prototype=S,u(N,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:M,configurable:!0}),M.displayName=d(S,f,"GeneratorFunction"),s.isGeneratorFunction=function(j){var g=typeof j=="function"&&j.constructor;return!!g&&(g===M||(g.displayName||g.name)==="GeneratorFunction")},s.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,S):(j.__proto__=S,d(j,f,"GeneratorFunction")),j.prototype=Object.create(N),j},s.awrap=function(j){return{__await:j}},K(te.prototype),d(te.prototype,h,function(){return this}),s.AsyncIterator=te,s.async=function(j,g,_,E,R){R===void 0&&(R=Promise);var A=new te(m(j,g,_,E),R);return s.isGeneratorFunction(g)?A:A.next().then(function(U){return U.done?U.value:A.next()})},K(N),d(N,f,"Generator"),d(N,l,function(){return this}),d(N,"toString",function(){return"[object Generator]"}),s.keys=function(j){var g=Object(j),_=[];for(var E in g)_.push(E);return _.reverse(),function R(){for(;_.length;){var A=_.pop();if(A in g)return R.value=A,R.done=!1,R}return R.done=!0,R}},s.values=Z,G.prototype={constructor:G,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!j)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=n)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var g=this;function _(re,V){return A.type="throw",A.arg=j,g.next=re,V&&(g.method="next",g.arg=n),!!V}for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E],A=R.completion;if(R.tryLoc==="root")return _("end");if(R.tryLoc<=this.prev){var U=a.call(R,"catchLoc"),$=a.call(R,"finallyLoc");if(U&&$){if(this.prev<R.catchLoc)return _(R.catchLoc,!0);if(this.prev<R.finallyLoc)return _(R.finallyLoc)}else if(U){if(this.prev<R.catchLoc)return _(R.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return _(R.finallyLoc)}}}},abrupt:function(j,g){for(var _=this.tryEntries.length-1;_>=0;--_){var E=this.tryEntries[_];if(E.tryLoc<=this.prev&&a.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var R=E;break}}R&&(j==="break"||j==="continue")&&R.tryLoc<=g&&g<=R.finallyLoc&&(R=null);var A=R?R.completion:{};return A.type=j,A.arg=g,R?(this.method="next",this.next=R.finallyLoc,P):this.complete(A)},complete:function(j,g){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&g&&(this.next=g),P},finish:function(j){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.finallyLoc===j)return this.complete(_.completion,_.afterLoc),B(_),P}},catch:function(j){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===j){var E=_.completion;if(E.type==="throw"){var R=E.arg;B(_)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(j,g,_){return this.delegate={iterator:Z(j),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=n),P}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),U5=ce((t,e)=>{Q();var r=H5()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),$5=ce((t,e)=>{"use strict";Q();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),G5=ce((t,e)=>{"use strict";Q();var r=$5(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(h,f,...d)=>{o++;let m=r(h,...d);f(m),m.then(a,a)},c=(h,f,...d)=>{o<n?u(h,f,...d):s.push(u.bind(null,h,f,...d))},l=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),l};e.exports=i,e.exports.default=i}),z5=ce((t,e)=>{"use strict";Q();var r=G5(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let l=r(c.concurrency),h=[...a].map(d=>[d,l(n,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),W5=ce((t,e)=>{"use strict";Q();var r=he("path"),i=he("fs"),{promisify:n}=he("util"),s=z5(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in u))throw new Error(`Invalid type specified: ${h}`)}var l=(h,f)=>h===void 0||f[u[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async m=>{try{let y=await d(r.resolve(f.cwd,m));return l(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let y=d(r.resolve(f.cwd,m));if(l(f.type,y))return m}catch{}}}),V5=ce((t,e)=>{"use strict";Q();var r=he("fs"),{promisify:i}=he("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),Y5=ce((t,e)=>{"use strict";Q();var r=he("path"),i=W5(),n=V5(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=async f=>{if(typeof o!="function")return i(l,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(l,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),to=ce((t,e)=>{"use strict";Q();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),ym=ce((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=he("events"),n=he("stream"),s=he("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),w=Symbol("flowing"),C=Symbol("paused"),F=Symbol("resume"),P=Symbol("buffer"),T=Symbol("pipes"),M=Symbol("bufferLength"),S=Symbol("bufferPush"),D=Symbol("bufferShift"),H=Symbol("objectMode"),z=Symbol("destroyed"),N=Symbol("emitData"),K=Symbol("emitEnd"),te=Symbol("emitEnd2"),ne=Symbol("async"),q=R=>Promise.resolve().then(R),L=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=L&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=L&&Symbol.iterator||Symbol("iterator not implemented"),Z=R=>R==="end"||R==="finish"||R==="prefinish",j=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,g=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),_=class{constructor(R,A,U){this.src=R,this.dest=A,this.opts=U,this.ondrain=()=>R[F](),A.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,A,U){super(R,A,U),this.proxyErrors=$=>A.emit("error",$),R.on("error",this.proxyErrors)}};e.exports=class o1 extends n{constructor(A){super(),this[w]=!1,this[C]=!1,this[T]=[],this[P]=[],this[H]=A&&A.objectMode||!1,this[H]?this[y]=null:this[y]=A&&A.encoding||null,this[y]==="buffer"&&(this[y]=null),this[ne]=A&&!!A.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[M]=0,this[z]=!1,A&&A.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[P]}),A&&A.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[T]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(A){if(this[H])throw new Error("cannot set encoding in objectMode");if(this[y]&&A!==this[y]&&(this[p]&&this[p].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==A&&(this[p]=A?new s(A):null,this[P].length&&(this[P]=this[P].map(U=>this[p].write(U)))),this[y]=A}setEncoding(A){this.encoding=A}get objectMode(){return this[H]}set objectMode(A){this[H]=this[H]||!!A}get async(){return this[ne]}set async(A){this[ne]=this[ne]||!!A}write(A,U,$){if(this[o])throw new Error("write after end");if(this[z])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof U=="function"&&($=U,U="utf8"),U||(U="utf8");let re=this[ne]?q:V=>V();return!this[H]&&!Buffer.isBuffer(A)&&(g(A)?A=Buffer.from(A.buffer,A.byteOffset,A.byteLength):j(A)?A=Buffer.from(A):typeof A!="string"&&(this.objectMode=!0)),this[H]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",A):this[S](A),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):A.length?(typeof A=="string"&&!(U===this[y]&&!this[p].lastNeed)&&(A=Buffer.from(A,U)),Buffer.isBuffer(A)&&this[y]&&(A=this[p].write(A)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",A):this[S](A),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&re($),this.flowing)}read(A){if(this[z])return null;if(this[M]===0||A===0||A>this[M])return this[a](),null;this[H]&&(A=null),this[P].length>1&&!this[H]&&(this.encoding?this[P]=[this[P].join("")]:this[P]=[Buffer.concat(this[P],this[M])]);let U=this[f](A||null,this[P][0]);return this[a](),U}[f](A,U){return A===U.length||A===null?this[D]():(this[P][0]=U.slice(A),U=U.slice(0,A),this[M]-=A),this.emit("data",U),!this[P].length&&!this[o]&&this.emit("drain"),U}end(A,U,$){return typeof A=="function"&&($=A,A=null),typeof U=="function"&&($=U,U="utf8"),A&&this.write(A,U),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[F](){this[z]||(this[C]=!1,this[w]=!0,this.emit("resume"),this[P].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[C]=!0}get destroyed(){return this[z]}get flowing(){return this[w]}get paused(){return this[C]}[S](A){this[H]?this[M]+=1:this[M]+=A.length,this[P].push(A)}[D](){return this[P].length&&(this[H]?this[M]-=1:this[M]-=this[P][0].length),this[P].shift()}[d](A){do;while(this[m](this[D]()));!A&&!this[P].length&&!this[o]&&this.emit("drain")}[m](A){return A?(this.emit("data",A),this.flowing):!1}pipe(A,U){if(this[z])return;let $=this[u];return U=U||{},A===r.stdout||A===r.stderr?U.end=!1:U.end=U.end!==!1,U.proxyErrors=!!U.proxyErrors,$?U.end&&A.end():(this[T].push(U.proxyErrors?new E(this,A,U):new _(this,A,U)),this[ne]?q(()=>this[F]()):this[F]()),A}unpipe(A){let U=this[T].find($=>$.dest===A);U&&(this[T].splice(this[T].indexOf(U),1),U.unpipe())}addListener(A,U){return this.on(A,U)}on(A,U){let $=super.on(A,U);return A==="data"&&!this[T].length&&!this.flowing?this[F]():A==="readable"&&this[M]!==0?super.emit("readable"):Z(A)&&this[u]?(super.emit(A),this.removeAllListeners(A)):A==="error"&&this[l]&&(this[ne]?q(()=>U.call(this,this[l])):U.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[z]&&this[P].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(A,U,...$){if(A!=="error"&&A!=="close"&&A!==z&&this[z])return;if(A==="data")return U?this[ne]?q(()=>this[N](U)):this[N](U):!1;if(A==="end")return this[K]();if(A==="close"){if(this[h]=!0,!this[u]&&!this[z])return;let V=super.emit("close");return this.removeAllListeners("close"),V}else if(A==="error"){this[l]=U;let V=super.emit("error",U);return this[a](),V}else if(A==="resume"){let V=super.emit("resume");return this[a](),V}else if(A==="finish"||A==="prefinish"){let V=super.emit(A);return this.removeAllListeners(A),V}let re=super.emit(A,U,...$);return this[a](),re}[N](A){for(let $ of this[T])$.dest.write(A)===!1&&this.pause();let U=super.emit("data",A);return this[a](),U}[K](){this[u]||(this[u]=!0,this.readable=!1,this[ne]?q(()=>this[te]()):this[te]())}[te](){if(this[p]){let U=this[p].end();if(U){for(let $ of this[T])$.dest.write(U);super.emit("data",U)}}for(let U of this[T])U.end();let A=super.emit("end");return this.removeAllListeners("end"),A}collect(){let A=[];this[H]||(A.dataLength=0);let U=this.promise();return this.on("data",$=>{A.push($),this[H]||(A.dataLength+=$.length)}),U.then(()=>A)}concat(){return this[H]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(A=>this[H]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?A.join(""):Buffer.concat(A,A.dataLength))}promise(){return new Promise((A,U)=>{this.on(z,()=>U(new Error("stream destroyed"))),this.on("error",$=>U($)),this.on("end",()=>A())})}[B](){return{next:()=>{let A=this.read();if(A!==null)return Promise.resolve({done:!1,value:A});if(this[o])return Promise.resolve({done:!0});let U=null,$=null,re=v=>{this.removeListener("data",V),this.removeListener("end",oe),$(v)},V=v=>{this.removeListener("error",re),this.removeListener("end",oe),this.pause(),U({value:v,done:!!this[o]})},oe=()=>{this.removeListener("error",re),this.removeListener("data",V),U({done:!0})},J=()=>re(new Error("stream destroyed"));return new Promise((v,I)=>{$=I,U=v,this.once(z,J),this.once("error",re),this.once("end",oe),this.once("data",V)})}}}[G](){return{next:()=>{let A=this.read();return{value:A,done:A===null}}}}destroy(A){return this[z]?(A?this.emit("error",A):this.emit(z),this):(this[z]=!0,this[P].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),A?this.emit("error",A):this.emit(z),this)}static isStream(A){return!!A&&(A instanceof o1||A instanceof n||A instanceof i&&(typeof A.pipe=="function"||typeof A.write=="function"&&typeof A.end=="function"))}}}),K5=ce((t,e)=>{Q();var r=he("zlib").constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))}),a1=ce((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=he("events"),n=he("stream"),s=he("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),w=Symbol("flowing"),C=Symbol("paused"),F=Symbol("resume"),P=Symbol("bufferLength"),T=Symbol("bufferPush"),M=Symbol("bufferShift"),S=Symbol("objectMode"),D=Symbol("destroyed"),H=Symbol("emitData"),z=Symbol("emitEnd"),N=Symbol("emitEnd2"),K=Symbol("async"),te=_=>Promise.resolve().then(_),ne=global._MP_NO_ITERATOR_SYMBOLS_!=="1",q=ne&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L=ne&&Symbol.iterator||Symbol("iterator not implemented"),B=_=>_==="end"||_==="finish"||_==="prefinish",G=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),j=class{constructor(_,E,R){this.src=_,this.dest=E,this.opts=R,this.ondrain=()=>_[F](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},g=class extends j{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(_,E,R){super(_,E,R),this.proxyErrors=A=>E.emit("error",A),_.on("error",this.proxyErrors)}};e.exports=class u1 extends n{constructor(E){super(),this[w]=!1,this[C]=!1,this.pipes=[],this.buffer=[],this[S]=E&&E.objectMode||!1,this[S]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[K]=E&&!!E.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[P]=0,this[D]=!1}get bufferLength(){return this[P]}get encoding(){return this[y]}set encoding(E){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[p]&&this[p].lastNeed||this[P]))throw new Error("cannot change encoding");this[y]!==E&&(this[p]=E?new s(E):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[p].write(R)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[S]}set objectMode(E){this[S]=this[S]||!!E}get async(){return this[K]}set async(E){this[K]=this[K]||!!E}write(E,R,A){if(this[o])throw new Error("write after end");if(this[D])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(A=R,R="utf8"),R||(R="utf8");let U=this[K]?te:$=>$();return!this[S]&&!Buffer.isBuffer(E)&&(Z(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):G(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[S]?(this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[T](E),this[P]!==0&&this.emit("readable"),A&&U(A),this.flowing):E.length?(typeof E=="string"&&!(R===this[y]&&!this[p].lastNeed)&&(E=Buffer.from(E,R)),Buffer.isBuffer(E)&&this[y]&&(E=this[p].write(E)),this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[T](E),this[P]!==0&&this.emit("readable"),A&&U(A),this.flowing):(this[P]!==0&&this.emit("readable"),A&&U(A),this.flowing)}read(E){if(this[D])return null;if(this[P]===0||E===0||E>this[P])return this[a](),null;this[S]&&(E=null),this.buffer.length>1&&!this[S]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[P])]);let R=this[f](E||null,this.buffer[0]);return this[a](),R}[f](E,R){return E===R.length||E===null?this[M]():(this.buffer[0]=R.slice(E),R=R.slice(0,E),this[P]-=E),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(E,R,A){return typeof E=="function"&&(A=E,E=null),typeof R=="function"&&(A=R,R="utf8"),E&&this.write(E,R),A&&this.once("end",A),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[F](){this[D]||(this[C]=!1,this[w]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[C]=!0}get destroyed(){return this[D]}get flowing(){return this[w]}get paused(){return this[C]}[T](E){this[S]?this[P]+=1:this[P]+=E.length,this.buffer.push(E)}[M](){return this.buffer.length&&(this[S]?this[P]-=1:this[P]-=this.buffer[0].length),this.buffer.shift()}[d](E){do;while(this[m](this[M]()));!E&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,R){if(this[D])return;let A=this[u];return R=R||{},E===r.stdout||E===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,A?R.end&&E.end():(this.pipes.push(R.proxyErrors?new g(this,E,R):new j(this,E,R)),this[K]?te(()=>this[F]()):this[F]()),E}unpipe(E){let R=this.pipes.find(A=>A.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 A=super.on(E,R);return E==="data"&&!this.pipes.length&&!this.flowing?this[F]():E==="readable"&&this[P]!==0?super.emit("readable"):B(E)&&this[u]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[l]&&(this[K]?te(()=>R.call(this,this[l])):R.call(this,this[l])),A}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[D]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,R,...A){if(E!=="error"&&E!=="close"&&E!==D&&this[D])return;if(E==="data")return R?this[K]?te(()=>this[H](R)):this[H](R):!1;if(E==="end")return this[z]();if(E==="close"){if(this[h]=!0,!this[u]&&!this[D])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(E==="error"){this[l]=R;let $=super.emit("error",R);return this[a](),$}else if(E==="resume"){let $=super.emit("resume");return this[a](),$}else if(E==="finish"||E==="prefinish"){let $=super.emit(E);return this.removeAllListeners(E),$}let U=super.emit(E,R,...A);return this[a](),U}[H](E){for(let A of this.pipes)A.dest.write(E)===!1&&this.pause();let R=super.emit("data",E);return this[a](),R}[z](){this[u]||(this[u]=!0,this.readable=!1,this[K]?te(()=>this[N]()):this[N]())}[N](){if(this[p]){let R=this[p].end();if(R){for(let A of this.pipes)A.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[S]||(E.dataLength=0);let R=this.promise();return this.on("data",A=>{E.push(A),this[S]||(E.dataLength+=A.length)}),R.then(()=>E)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,R)=>{this.on(D,()=>R(new Error("stream destroyed"))),this.on("error",A=>R(A)),this.on("end",()=>E())})}[q](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let R=null,A=null,U=oe=>{this.removeListener("data",$),this.removeListener("end",re),A(oe)},$=oe=>{this.removeListener("error",U),this.removeListener("end",re),this.pause(),R({value:oe,done:!!this[o]})},re=()=>{this.removeListener("error",U),this.removeListener("data",$),R({done:!0})},V=()=>U(new Error("stream destroyed"));return new Promise((oe,J)=>{A=J,R=oe,this.once(D,V),this.once("error",U),this.once("end",re),this.once("data",$)})}}}[L](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[D]?(E?this.emit("error",E):this.emit(D),this):(this[D]=!0,this.buffer.length=0,this[P]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(D),this)}static isStream(E){return!!E&&(E instanceof u1||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),c1=ce(t=>{"use strict";Q();var e=he("assert"),r=he("buffer").Buffer,i=he("zlib"),n=t.constants=K5(),s=a1(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),m=Symbol("onError"),y=Symbol("sawError"),p=Symbol("level"),w=Symbol("strategy"),C=Symbol("ended"),F=Symbol("_defaultFullFlush"),P=class extends s{constructor(B,G){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[C]=!1,this[c]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new i[G](B)}catch(Z){throw new u(Z)}this[m]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[m](new u(Z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[f]),this.write(Object.assign(r.alloc(0),{[l]:B})))}end(B,G,Z){return B&&this.write(B,G),this.flush(this[h]),this[C]=!0,super.end(null,null,Z)}get ended(){return this[C]}write(B,G,Z){if(typeof G=="function"&&(Z=G,G="utf8"),typeof B=="string"&&(B=r.from(B,G)),this[y])return;e(this[d],"zlib binding closed");let j=this[d]._handle,g=j.close;j.close=()=>{};let _=this[d].close;this[d].close=()=>{},r.concat=A=>A;let E;try{let A=typeof B[l]=="number"?B[l]:this[l];E=this[d]._processChunk(B,A),r.concat=o}catch(A){r.concat=o,this[m](new u(A))}finally{this[d]&&(this[d]._handle=j,j.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",A=>this[m](new u(A)));let R;if(E)if(Array.isArray(E)&&E.length>0){R=this[a](r.from(E[0]));for(let A=1;A<E.length;A++)R=this[a](E[A])}else R=this[a](r.from(E));return Z&&Z(),R}[a](B){return super.write(B)}},T=class extends P{constructor(B,G){B=B||{},B.flush=B.flush||n.Z_NO_FLUSH,B.finishFlush=B.finishFlush||n.Z_FINISH,super(B,G),this[f]=n.Z_FULL_FLUSH,this[p]=B.level,this[w]=B.strategy}params(B,G){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[p]!==B||this[w]!==G){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let Z=this[d].flush;this[d].flush=(j,g)=>{this.flush(j),g()};try{this[d].params(B,G)}finally{this[d].flush=Z}this[d]&&(this[p]=B,this[w]=G)}}}},M=class extends T{constructor(B){super(B,"Deflate")}},S=class extends T{constructor(B){super(B,"Inflate")}},D=Symbol("_portable"),H=class extends T{constructor(B){super(B,"Gzip"),this[D]=B&&!!B.portable}[a](B){return this[D]?(this[D]=!1,B[9]=255,super[a](B)):super[a](B)}},z=class extends T{constructor(B){super(B,"Gunzip")}},N=class extends T{constructor(B){super(B,"DeflateRaw")}},K=class extends T{constructor(B){super(B,"InflateRaw")}},te=class extends T{constructor(B){super(B,"Unzip")}},ne=class extends P{constructor(B,G){B=B||{},B.flush=B.flush||n.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||n.BROTLI_OPERATION_FINISH,super(B,G),this[f]=n.BROTLI_OPERATION_FLUSH}},q=class extends ne{constructor(B){super(B,"BrotliCompress")}},L=class extends ne{constructor(B){super(B,"BrotliDecompress")}};t.Deflate=M,t.Inflate=S,t.Gzip=H,t.Gunzip=z,t.DeflateRaw=N,t.InflateRaw=K,t.Unzip=te,typeof i.BrotliCompress=="function"?(t.BrotliCompress=q,t.BrotliDecompress=L):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),ro=ce((t,e)=>{Q();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),gm=ce((t,e)=>{"use strict";Q();var r=ym(),i=ro(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),l1=ce(t=>{"use strict";Q(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),Z5=ce((t,e)=>{"use strict";Q();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?n(l,h):i(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},n=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var m=l&255;l=Math.floor(l/256),f?h[d-1]=u(m):m===0?h[d-1]=0:(f=!0,h[d-1]=c(m))}},s=l=>{let h=l[0],f=h===128?a(l.slice(1,l.length)):h===255?o(l):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=l=>{for(var h=l.length,f=0,d=!1,m=h-1;m>-1;m--){var y=l[m],p;d?p=u(y):y===0?p=y:(d=!0,p=c(y)),p!==0&&(f-=p*Math.pow(256,h-m-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var m=l[d];m!==0&&(f+=m*Math.pow(256,h-d-1))}return f},u=l=>(255^l)&255,c=l=>(255^l)+1&255;e.exports={encode:r,parse:s}}),io=ce((t,e)=>{"use strict";Q();var r=l1(),i=he("path").posix,n=Z5(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(S,D,H,z){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(S)?this.decode(S,D||0,H,z):S&&this.set(S)}decode(S,D,H,z){if(D||(D=0),!S||!(S.length>=D+512))throw new Error("need 512 bytes for header");if(this.path=c(S,D,100),this.mode=f(S,D+100,8),this.uid=f(S,D+108,8),this.gid=f(S,D+116,8),this.size=f(S,D+124,12),this.mtime=l(S,D+136,12),this.cksum=f(S,D+148,12),this[s](H),this[s](z,!0),this[o]=c(S,D+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(S,D+157,100),S.slice(D+257,D+265).toString()==="ustar\x0000")if(this.uname=c(S,D+265,32),this.gname=c(S,D+297,32),this.devmaj=f(S,D+329,8),this.devmin=f(S,D+337,8),S[D+475]!==0){let K=c(S,D+345,155);this.path=K+"/"+this.path}else{let K=c(S,D+345,130);K&&(this.path=K+"/"+this.path),this.atime=l(S,D+476,12),this.ctime=l(S,D+488,12)}let N=8*32;for(let K=D;K<D+148;K++)N+=S[K];for(let K=D+156;K<D+512;K++)N+=S[K];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](S,D){for(let H in S)S[H]!==null&&S[H]!==void 0&&!(D&&H==="path")&&(this[H]=S[H])}encode(S,D){if(S||(S=this.block=Buffer.alloc(512),D=0),D||(D=0),!(S.length>=D+512))throw new Error("need 512 bytes for header");let H=this.ctime||this.atime?130:155,z=u(this.path||"",H),N=z[0],K=z[1];this.needPax=z[2],this.needPax=M(S,D,100,N)||this.needPax,this.needPax=p(S,D+100,8,this.mode)||this.needPax,this.needPax=p(S,D+108,8,this.uid)||this.needPax,this.needPax=p(S,D+116,8,this.gid)||this.needPax,this.needPax=p(S,D+124,12,this.size)||this.needPax,this.needPax=P(S,D+136,12,this.mtime)||this.needPax,S[D+156]=this[o].charCodeAt(0),this.needPax=M(S,D+157,100,this.linkpath)||this.needPax,S.write("ustar\x0000",D+257,8),this.needPax=M(S,D+265,32,this.uname)||this.needPax,this.needPax=M(S,D+297,32,this.gname)||this.needPax,this.needPax=p(S,D+329,8,this.devmaj)||this.needPax,this.needPax=p(S,D+337,8,this.devmin)||this.needPax,this.needPax=M(S,D+345,H,K)||this.needPax,S[D+475]!==0?this.needPax=M(S,D+345,155,K)||this.needPax:(this.needPax=M(S,D+345,130,K)||this.needPax,this.needPax=P(S,D+476,12,this.atime)||this.needPax,this.needPax=P(S,D+488,12,this.ctime)||this.needPax);let te=8*32;for(let ne=D;ne<D+148;ne++)te+=S[ne];for(let ne=D+156;ne<D+512;ne++)te+=S[ne];return this.cksum=te,p(S,D+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(S){for(let D in S)S[D]!==null&&S[D]!==void 0&&(this[D]=S[D])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(S){r.code.has(S)?this[o]=r.code.get(S):this[o]=S}},u=(S,D)=>{let H=S,z="",N,K=i.parse(S).root||".";if(Buffer.byteLength(H)<100)N=[H,z,!1];else{z=i.dirname(H),H=i.basename(H);do Buffer.byteLength(H)<=100&&Buffer.byteLength(z)<=D?N=[H,z,!1]:Buffer.byteLength(H)>100&&Buffer.byteLength(z)<=D?N=[H.slice(0,100-1),z,!0]:(H=i.join(i.basename(z),H),z=i.dirname(z));while(z!==K&&!N);N||(N=[S.slice(0,100-1),"",!0])}return N},c=(S,D,H)=>S.slice(D,D+H).toString("utf8").replace(/\0.*/,""),l=(S,D,H)=>h(f(S,D,H)),h=S=>S===null?null:new Date(S*1e3),f=(S,D,H)=>S[D]&128?n.parse(S.slice(D,D+H)):m(S,D,H),d=S=>isNaN(S)?null:S,m=(S,D,H)=>d(parseInt(S.slice(D,D+H).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},p=(S,D,H,z)=>z===null?!1:z>y[H]||z<0?(n.encode(z,S.slice(D,D+H)),!0):(w(S,D,H,z),!1),w=(S,D,H,z)=>S.write(C(z,H),D,H,"ascii"),C=(S,D)=>F(Math.floor(S).toString(8),D),F=(S,D)=>(S.length===D-1?S:new Array(D-S.length-1).join("0")+S+" ")+"\0",P=(S,D,H,z)=>z===null?!1:p(S,D,H,z.getTime()/1e3),T=new Array(156).join("\0"),M=(S,D,H,z)=>z===null?!1:(S.write(z+T,D,H,"utf8"),z.length!==Buffer.byteLength(z)||z.length>H);e.exports=a}),_m=ce((t,e)=>{"use strict";Q();var r=io(),i=he("path"),n=class{constructor(u,c){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=c||!1}encode(){let u=this.encodeBody();if(u==="")return null;let c=Buffer.byteLength(u),l=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(l);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(u,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(u){if(this[u]===null||this[u]===void 0)return"";let c=this[u]instanceof Date?this[u].getTime()/1e3:this[u],l=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+c+`
|
55
55
|
`,h=Buffer.byteLength(l),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+l}};n.parse=(u,c,l)=>new n(s(o(u),c),l);var s=(u,c)=>c?Object.keys(u).reduce((l,h)=>(l[h]=u[h],l),c):u,o=u=>u.replace(/\n$/,"").split(`
|
56
|
-
`).reduce(a,Object.create(null)),a=(u,c)=>{let l=parseInt(c,10);if(l!==Buffer.byteLength(c)+1)return u;c=c.slice((l+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return u;let d=h.join("=");return u[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,u};e.exports=n}),io=ce((t,e)=>{te(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),bm=ce((t,e)=>{"use strict";te(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),l1=ce((t,e)=>{"use strict";te();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),h1=ce((t,e)=>{te();var{isAbsolute:r,parse:i}=he("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),K5=ce((t,e)=>{"use strict";te(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),f1=ce((t,e)=>{"use strict";te();var r=ym(),i=_m(),n=ro(),s=he("fs"),o=he("path"),a=to(),u=io(),c=(w,S)=>S?(w=a(w).replace(/^\.(\/|$)/,""),u(S)+"/"+w):a(w),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),m=Symbol("symlink"),y=Symbol("hardlink"),p=Symbol("header"),_=Symbol("read"),C=Symbol("lstat"),L=Symbol("onlstat"),B=Symbol("onread"),T=Symbol("onreadlink"),M=Symbol("openfile"),D=Symbol("onopenfile"),A=Symbol("close"),H=Symbol("mode"),W=Symbol("awaitDrain"),q=Symbol("ondrain"),I=Symbol("prefix"),U=Symbol("hadError"),G=bm(),P=l1(),v=h1(),R=K5(),$=G(class extends r{constructor(w,S){if(S=S||{},super(S),typeof w!="string")throw new TypeError("path is required");this.path=a(w),this.portable=!!S.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=S.maxReadSize||l,this.linkCache=S.linkCache||new Map,this.statCache=S.statCache||new Map,this.preservePaths=!!S.preservePaths,this.cwd=a(S.cwd||process.cwd()),this.strict=!!S.strict,this.noPax=!!S.noPax,this.noMtime=!!S.noMtime,this.mtime=S.mtime||null,this.prefix=S.prefix?a(S.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 S.onwarn=="function"&&this.on("warn",S.onwarn);let j=!1;if(!this.preservePaths){let[F,Y]=v(this.path);F&&(this.path=Y,j=F)}this.win32=!!S.win32||process.platform==="win32",this.win32&&(this.path=P.decode(this.path.replace(/\\/g,"/")),w=w.replace(/\\/g,"/")),this.absolute=a(S.absolute||o.resolve(this.cwd,w)),this.path===""&&(this.path="./"),j&&this.warn("TAR_ENTRY_INFO",`stripping ${j} from absolute path`,{entry:this,path:j+this.path}),this.statCache.has(this.absolute)?this[L](this.statCache.get(this.absolute)):this[C]()}emit(w,...S){return w==="error"&&(this[U]=!0),super.emit(w,...S)}[C](){s.lstat(this.absolute,(w,S)=>{if(w)return this.emit("error",w);this[L](S)})}[L](w){this.statCache.set(this.absolute,w),this.stat=w,w.isFile()||(w.size=0),this.type=E(w),this.emit("stat",w),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[H](w){return R(w,this.type==="Directory",this.portable)}[I](w){return c(w,this.prefix)}[p](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[I](this.path),linkpath:this.type==="Link"?this[I](this.linkpath):this.linkpath,mode:this[H](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[I](this.path),linkpath:this.type==="Link"?this[I](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[p](),this.end()}[m](){s.readlink(this.absolute,(w,S)=>{if(w)return this.emit("error",w);this[T](S)})}[T](w){this.linkpath=a(w),this[p](),this.end()}[y](w){this.type="Link",this.linkpath=a(o.relative(this.cwd,w)),this.stat.size=0,this[p](),this.end()}[f](){if(this.stat.nlink>1){let w=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(w)){let S=this.linkCache.get(w);if(S.indexOf(this.cwd)===0)return this[y](S)}this.linkCache.set(w,this.absolute)}if(this[p](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(w,S)=>{if(w)return this.emit("error",w);this[D](S)})}[D](w){if(this.fd=w,this[U])return this[A]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let S=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(S),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:w,buf:S,offset:j,length:F,pos:Y}=this;s.read(w,S,j,F,Y,(z,ne)=>{if(z)return this[A](()=>this.emit("error",z));this[B](ne)})}[A](w){s.close(this.fd,w)}[B](w){if(w<=0&&this.remain>0){let j=new Error("encountered unexpected EOF");return j.path=this.absolute,j.syscall="read",j.code="EOF",this[A](()=>this.emit("error",j))}if(w>this.remain){let j=new Error("did not encounter expected EOF");return j.path=this.absolute,j.syscall="read",j.code="EOF",this[A](()=>this.emit("error",j))}if(w===this.remain)for(let j=w;j<this.length&&w<this.blockRemain;j++)this.buf[j+this.offset]=0,w++,this.remain++;let S=this.offset===0&&w===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+w);this.write(S)?this[q]():this[W](()=>this[q]())}[W](w){this.once("drain",w)}write(w){if(this.blockRemain<w.length){let S=new Error("writing more data than expected");return S.path=this.absolute,this.emit("error",S)}return this.remain-=w.length,this.blockRemain-=w.length,this.pos+=w.length,this.offset+=w.length,super.write(w)}[q](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](w=>w?this.emit("error",w):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[_]()}}),J=class extends ${[C](){this[L](s.lstatSync(this.absolute))}[m](){this[T](s.readlinkSync(this.absolute))}[M](){this[D](s.openSync(this.absolute,"r"))}[_](){let w=!0;try{let{fd:S,buf:j,offset:F,length:Y,pos:z}=this,ne=s.readSync(S,j,F,Y,z);this[B](ne),w=!1}finally{if(w)try{this[A](()=>{})}catch{}}}[W](w){w()}[A](w){s.closeSync(this.fd),w()}},X=G(class extends r{constructor(w,S){S=S||{},super(S),this.preservePaths=!!S.preservePaths,this.portable=!!S.portable,this.strict=!!S.strict,this.noPax=!!S.noPax,this.noMtime=!!S.noMtime,this.readEntry=w,this.type=w.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=S.prefix||null,this.path=a(w.path),this.mode=this[H](w.mode),this.uid=this.portable?null:w.uid,this.gid=this.portable?null:w.gid,this.uname=this.portable?null:w.uname,this.gname=this.portable?null:w.gname,this.size=w.size,this.mtime=this.noMtime?null:S.mtime||w.mtime,this.atime=this.portable?null:w.atime,this.ctime=this.portable?null:w.ctime,this.linkpath=a(w.linkpath),typeof S.onwarn=="function"&&this.on("warn",S.onwarn);let j=!1;if(!this.preservePaths){let[F,Y]=v(this.path);F&&(this.path=Y,j=F)}this.remain=w.size,this.blockRemain=w.startBlockSize,this.header=new n({path:this[I](this.path),linkpath:this.type==="Link"?this[I](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),j&&this.warn("TAR_ENTRY_INFO",`stripping ${j} from absolute path`,{entry:this,path:j+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[I](this.path),linkpath:this.type==="Link"?this[I](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),w.pipe(this)}[I](w){return c(w,this.prefix)}[H](w){return R(w,this.type==="Directory",this.portable)}write(w){let S=w.length;if(S>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=S,super.write(w)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});$.Sync=J,$.Tar=X;var E=w=>w.isFile()?"File":w.isDirectory()?"Directory":w.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=$}),Z5=ce((t,e)=>{"use strict";te(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),d1=ce((t,e)=>{"use strict";te(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){u.push(h)});else if(arguments.length>0)for(var c=0,l=arguments.length;c<l;c++)u.push(arguments[c]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,c=a.prev;return u&&(u.prev=c),c&&(c.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var c=this.head,l=0;c!==null;l++)a.call(u,c.value,l,this),c=c.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var c=this.tail,l=this.length-1;c!==null;l--)a.call(u,c.value,l,this),c=c.prev},r.prototype.get=function(a){for(var u=0,c=this.head;c!==null&&u<a;u++)c=c.next;if(u===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var u=0,c=this.tail;c!==null&&u<a;u++)c=c.prev;if(u===a&&c!==null)return c.value},r.prototype.map=function(a,u){u=u||this;for(var c=new r,l=this.head;l!==null;)c.push(a.call(u,l.value,this)),l=l.next;return c},r.prototype.mapReverse=function(a,u){u=u||this;for(var c=new r,l=this.tail;l!==null;)c.push(a.call(u,l.value,this)),l=l.prev;return c},r.prototype.reduce=function(a,u){var c,l=this.head;if(arguments.length>1)c=u;else if(this.head)l=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)c=a(c,l.value,h),l=l.next;return c},r.prototype.reduceReverse=function(a,u){var c,l=this.tail;if(arguments.length>1)c=u;else if(this.tail)l=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)c=a(c,l.value,h),l=l.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,c=this.head;c!==null;u++)a[u]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,c=this.tail;c!==null;u++)a[u]=c.value,c=c.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(;h!==null&&l<u;l++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=this.length,h=this.tail;h!==null&&l>u;l--)h=h.prev;for(;h!==null&&l>a;l--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,u,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(var f=[],l=0;h&&l<u;l++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<c.length;l++)h=i(this,h,c[l]);return f},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,c=a;c!==null;c=c.prev){var l=c.prev;c.prev=c.next,c.next=l}return this.head=u,this.tail=a,this};function i(a,u,c){var l=u===a.head?new o(c,null,u,a):new o(c,u,u.next,a);return l.next===null&&(a.tail=l),l.prev===null&&(a.head=l),a.length++,l}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,c,l){if(!(this instanceof o))return new o(a,u,c,l);this.list=l,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{Z5()(r)}catch{}}),Em=ce((t,e)=>{"use strict";te();var r=class{constructor(E,w){this.path=E||"./",this.absolute=w,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=ym(),n=u1(),s=gm(),o=f1(),a=o.Sync,u=o.Tar,c=d1(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),m=Symbol("current"),y=Symbol("process"),p=Symbol("processing"),_=Symbol("processJob"),C=Symbol("jobs"),L=Symbol("jobDone"),B=Symbol("addFSEntry"),T=Symbol("addTarEntry"),M=Symbol("stat"),D=Symbol("readdir"),A=Symbol("onreaddir"),H=Symbol("pipe"),W=Symbol("entry"),q=Symbol("entryOpt"),I=Symbol("writeEntryClass"),U=Symbol("write"),G=Symbol("ondrain"),P=he("fs"),v=he("path"),R=bm(),$=to(),J=R(class extends i{constructor(E){super(E),E=E||Object.create(null),this.opt=E,this.file=E.file||"",this.cwd=E.cwd||process.cwd(),this.maxReadSize=E.maxReadSize,this.preservePaths=!!E.preservePaths,this.strict=!!E.strict,this.noPax=!!E.noPax,this.prefix=$(E.prefix||""),this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.readdirCache=E.readdirCache||new Map,this[I]=o,typeof E.onwarn=="function"&&this.on("warn",E.onwarn),this.portable=!!E.portable,this.zip=null,E.gzip?(typeof E.gzip!="object"&&(E.gzip={}),this.portable&&(E.gzip.portable=!0),this.zip=new n.Gzip(E.gzip),this.zip.on("data",w=>super.write(w)),this.zip.on("end",w=>super.end()),this.zip.on("drain",w=>this[G]()),this.on("resume",w=>this.zip.resume())):this.on("drain",this[G]),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:w=>!0,this[d]=new c,this[C]=0,this.jobs=+E.jobs||4,this[p]=!1,this[f]=!1}[U](E){return super.write(E)}add(E){return this.write(E),this}end(E){return E&&this.write(E),this[f]=!0,this[y](),this}write(E){if(this[f])throw new Error("write after end");return E instanceof s?this[T](E):this[B](E),this.flowing}[T](E){let w=$(v.resolve(this.cwd,E.path));if(!this.filter(E.path,E))E.resume();else{let S=new r(E.path,w,!1);S.entry=new u(E,this[q](S)),S.entry.on("end",j=>this[L](S)),this[C]+=1,this[d].push(S)}this[y]()}[B](E){let w=$(v.resolve(this.cwd,E));this[d].push(new r(E,w)),this[y]()}[M](E){E.pending=!0,this[C]+=1;let w=this.follow?"stat":"lstat";P[w](E.absolute,(S,j)=>{E.pending=!1,this[C]-=1,S?this.emit("error",S):this[h](E,j)})}[h](E,w){this.statCache.set(E.absolute,w),E.stat=w,this.filter(E.path,w)||(E.ignore=!0),this[y]()}[D](E){E.pending=!0,this[C]+=1,P.readdir(E.absolute,(w,S)=>{if(E.pending=!1,this[C]-=1,w)return this.emit("error",w);this[A](E,S)})}[A](E,w){this.readdirCache.set(E.absolute,w),E.readdir=w,this[y]()}[y](){if(!this[p]){this[p]=!0;for(let E=this[d].head;E!==null&&this[C]<this.jobs;E=E.next)if(this[_](E.value),E.value.ignore){let w=E.next;this[d].removeNode(E),E.next=w}this[p]=!1,this[f]&&!this[d].length&&this[C]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[L](E){this[d].shift(),this[C]-=1,this[y]()}[_](E){if(!E.pending){if(E.entry){E===this[m]&&!E.piped&&this[H](E);return}if(E.stat||(this.statCache.has(E.absolute)?this[h](E,this.statCache.get(E.absolute)):this[M](E)),!!E.stat&&!E.ignore&&!(!this.noDirRecurse&&E.stat.isDirectory()&&!E.readdir&&(this.readdirCache.has(E.absolute)?this[A](E,this.readdirCache.get(E.absolute)):this[D](E),!E.readdir))){if(E.entry=this[W](E),!E.entry){E.ignore=!0;return}E===this[m]&&!E.piped&&this[H](E)}}}[q](E){return{onwarn:(w,S,j)=>this.warn(w,S,j),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}}[W](E){this[C]+=1;try{return new this[I](E.path,this[q](E)).on("end",()=>this[L](E)).on("error",w=>this.emit("error",w))}catch(w){this.emit("error",w)}}[G](){this[m]&&this[m].entry&&this[m].entry.resume()}[H](E){E.piped=!0,E.readdir&&E.readdir.forEach(j=>{let F=E.path,Y=F==="./"?"":F.replace(/\/*$/,"/");this[B](Y+j)});let w=E.entry,S=this.zip;S?w.on("data",j=>{S.write(j)||w.pause()}):w.on("data",j=>{super.write(j)||w.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),X=class extends J{constructor(E){super(E),this[I]=a}pause(){}resume(){}[M](E){let w=this.follow?"statSync":"lstatSync";this[h](E,P[w](E.absolute))}[D](E,w){this[A](E,P.readdirSync(E.absolute))}[H](E){let w=E.entry,S=this.zip;E.readdir&&E.readdir.forEach(j=>{let F=E.path,Y=F==="./"?"":F.replace(/\/*$/,"/");this[B](Y+j)}),S?w.on("data",j=>{S.write(j)}):w.on("data",j=>{super[U](j)})}};J.Sync=X,e.exports=J}),no=ce(t=>{"use strict";te();var e=o1(),r=he("events").EventEmitter,i=he("fs"),n=i.writev;if(!n){let E=process.binding("fs"),w=E.FSReqWrap||E.FSReqCallback;n=(S,j,F,Y)=>{let z=(Z,ue)=>Y(Z,ue,j),ne=new w;ne.oncomplete=z,E.writeBuffers(S,j,F,ne)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),c=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),m=Symbol("_mode"),y=Symbol("_needDrain"),p=Symbol("_onerror"),_=Symbol("_onopen"),C=Symbol("_onread"),L=Symbol("_onwrite"),B=Symbol("_open"),T=Symbol("_path"),M=Symbol("_pos"),D=Symbol("_queue"),A=Symbol("_read"),H=Symbol("_readSize"),W=Symbol("_reading"),q=Symbol("_remain"),I=Symbol("_size"),U=Symbol("_write"),G=Symbol("_writing"),P=Symbol("_defaultFlag"),v=Symbol("_errored"),R=class extends e{constructor(E,w){if(w=w||{},super(w),this.readable=!0,this.writable=!1,typeof E!="string")throw new TypeError("path must be a string");this[v]=!1,this[u]=typeof w.fd=="number"?w.fd:null,this[T]=E,this[H]=w.readSize||16*1024*1024,this[W]=!1,this[I]=typeof w.size=="number"?w.size:1/0,this[q]=this[I],this[s]=typeof w.autoClose=="boolean"?w.autoClose:!0,typeof this[u]=="number"?this[A]():this[B]()}get fd(){return this[u]}get path(){return this[T]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[B](){i.open(this[T],"r",(E,w)=>this[_](E,w))}[_](E,w){E?this[p](E):(this[u]=w,this.emit("open",w),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[H],this[q]))}[A](){if(!this[W]){this[W]=!0;let E=this[d]();if(E.length===0)return process.nextTick(()=>this[C](null,0,E));i.read(this[u],E,0,E.length,null,(w,S,j)=>this[C](w,S,j))}}[C](E,w,S){this[W]=!1,E?this[p](E):this[f](w,S)&&this[A]()}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.close(E,w=>w?this.emit("error",w):this.emit("close"))}}[p](E){this[W]=!0,this[o](),this.emit("error",E)}[f](E,w){let S=!1;return this[q]-=E,E>0&&(S=super.write(E<w.length?w.slice(0,E):w)),(E===0||this[q]<=0)&&(S=!1,this[o](),super.end()),S}emit(E,w){switch(E){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[A]();break;case"error":return this[v]?void 0:(this[v]=!0,super.emit(E,w));default:return super.emit(E,w)}}},$=class extends R{[B](){let E=!0;try{this[_](null,i.openSync(this[T],"r")),E=!1}finally{E&&this[o]()}}[A](){let E=!0;try{if(!this[W]){this[W]=!0;do{let w=this[d](),S=w.length===0?0:i.readSync(this[u],w,0,w.length,null);if(!this[f](S,w))break}while(!0);this[W]=!1}E=!1}finally{E&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.closeSync(E),this.emit("close")}}},J=class extends r{constructor(E,w){w=w||{},super(w),this.readable=!1,this.writable=!0,this[v]=!1,this[G]=!1,this[a]=!1,this[y]=!1,this[D]=[],this[T]=E,this[u]=typeof w.fd=="number"?w.fd:null,this[m]=w.mode===void 0?438:w.mode,this[M]=typeof w.start=="number"?w.start:null,this[s]=typeof w.autoClose=="boolean"?w.autoClose:!0;let S=this[M]!==null?"r+":"w";this[P]=w.flags===void 0,this[l]=this[P]?S:w.flags,this[u]===null&&this[B]()}emit(E,w){if(E==="error"){if(this[v])return;this[v]=!0}return super.emit(E,w)}get fd(){return this[u]}get path(){return this[T]}[p](E){this[o](),this[G]=!0,this.emit("error",E)}[B](){i.open(this[T],this[l],this[m],(E,w)=>this[_](E,w))}[_](E,w){this[P]&&this[l]==="r+"&&E&&E.code==="ENOENT"?(this[l]="w",this[B]()):E?this[p](E):(this[u]=w,this.emit("open",w),this[h]())}end(E,w){return E&&this.write(E,w),this[a]=!0,!this[G]&&!this[D].length&&typeof this[u]=="number"&&this[L](null,0),this}write(E,w){return typeof E=="string"&&(E=Buffer.from(E,w)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[G]||this[D].length?(this[D].push(E),this[y]=!0,!1):(this[G]=!0,this[U](E),!0)}[U](E){i.write(this[u],E,0,E.length,this[M],(w,S)=>this[L](w,S))}[L](E,w){E?this[p](E):(this[M]!==null&&(this[M]+=w),this[D].length?this[h]():(this[G]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[D].length===0)this[a]&&this[L](null,0);else if(this[D].length===1)this[U](this[D].pop());else{let E=this[D];this[D]=[],n(this[u],E,this[M],(w,S)=>this[L](w,S))}}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.close(E,w=>w?this.emit("error",w):this.emit("close"))}}},X=class extends J{[B](){let E;if(this[P]&&this[l]==="r+")try{E=i.openSync(this[T],this[l],this[m])}catch(w){if(w.code==="ENOENT")return this[l]="w",this[B]();throw w}else E=i.openSync(this[T],this[l],this[m]);this[_](null,E)}[o](){if(this[s]&&typeof this[u]=="number"){let E=this[u];this[u]=null,i.closeSync(E),this.emit("close")}}[U](E){let w=!0;try{this[L](null,i.writeSync(this[u],E,0,E.length,this[M])),w=!1}finally{if(w)try{this[o]()}catch{}}}};t.ReadStream=R,t.ReadStreamSync=$,t.WriteStream=J,t.WriteStreamSync=X}),wm=ce((t,e)=>{"use strict";te();var r=bm(),i=ro(),n=he("events"),s=d1(),o=1024*1024,a=gm(),u=_m(),c=u1(),{nextTick:l}=he("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),m=Symbol("readEntry"),y=Symbol("nextEntry"),p=Symbol("processEntry"),_=Symbol("extendedHeader"),C=Symbol("globalExtendedHeader"),L=Symbol("meta"),B=Symbol("emitMeta"),T=Symbol("buffer"),M=Symbol("queue"),D=Symbol("ended"),A=Symbol("emittedEnd"),H=Symbol("emit"),W=Symbol("unzip"),q=Symbol("consumeChunk"),I=Symbol("consumeChunkSub"),U=Symbol("consumeBody"),G=Symbol("consumeMeta"),P=Symbol("consumeHeader"),v=Symbol("consuming"),R=Symbol("bufferConcat"),$=Symbol("maybeEnd"),J=Symbol("writing"),X=Symbol("aborted"),E=Symbol("onDone"),w=Symbol("sawValidEntry"),S=Symbol("sawNullBlock"),j=Symbol("sawEOF"),F=Symbol("closeStream"),Y=z=>!0;e.exports=r(class extends n{constructor(z){z=z||{},super(z),this.file=z.file||"",this[w]=null,this.on(E,ne=>{(this[f]==="begin"||this[w]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),z.ondone?this.on(E,z.ondone):this.on(E,ne=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!z.strict,this.maxMetaEntrySize=z.maxMetaEntrySize||o,this.filter=typeof z.filter=="function"?z.filter:Y,this.writable=!0,this.readable=!1,this[M]=new s,this[T]=null,this[m]=null,this[d]=null,this[f]="begin",this[L]="",this[_]=null,this[C]=null,this[D]=!1,this[W]=null,this[X]=!1,this[S]=!1,this[j]=!1,this.on("end",()=>this[F]()),typeof z.onwarn=="function"&&this.on("warn",z.onwarn),typeof z.onentry=="function"&&this.on("entry",z.onentry)}[P](z,ne){this[w]===null&&(this[w]=!1);let Z;try{Z=new i(z,ne,this[_],this[C])}catch(ue){return this.warn("TAR_ENTRY_INVALID",ue)}if(Z.nullBlock)this[S]?(this[j]=!0,this[f]==="begin"&&(this[f]="header"),this[H]("eof")):(this[S]=!0,this[H]("nullBlock"));else if(this[S]=!1,!Z.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:Z});else if(!Z.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:Z});else{let ue=Z.type;if(/^(Symbolic)?Link$/.test(ue)&&!Z.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:Z});else if(!/^(Symbolic)?Link$/.test(ue)&&Z.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:Z});else{let Q=this[d]=new a(Z,this[_],this[C]);if(!this[w])if(Q.remain){let b=()=>{Q.invalid||(this[w]=!0)};Q.on("end",b)}else this[w]=!0;Q.meta?Q.size>this.maxMetaEntrySize?(Q.ignore=!0,this[H]("ignoredEntry",Q),this[f]="ignore",Q.resume()):Q.size>0&&(this[L]="",Q.on("data",b=>this[L]+=b),this[f]="meta"):(this[_]=null,Q.ignore=Q.ignore||!this.filter(Q.path,Q),Q.ignore?(this[H]("ignoredEntry",Q),this[f]=Q.remain?"ignore":"header",Q.resume()):(Q.remain?this[f]="body":(this[f]="header",Q.end()),this[m]?this[M].push(Q):(this[M].push(Q),this[y]())))}}}[F](){l(()=>this.emit("close"))}[p](z){let ne=!0;return z?Array.isArray(z)?this.emit.apply(this,z):(this[m]=z,this.emit("entry",z),z.emittedEnd||(z.on("end",Z=>this[y]()),ne=!1)):(this[m]=null,ne=!1),ne}[y](){do;while(this[p](this[M].shift()));if(!this[M].length){let z=this[m];!z||z.flowing||z.size===z.remain?this[J]||this.emit("drain"):z.once("drain",ne=>this.emit("drain"))}}[U](z,ne){let Z=this[d],ue=Z.blockRemain,Q=ue>=z.length&&ne===0?z:z.slice(ne,ne+ue);return Z.write(Q),Z.blockRemain||(this[f]="header",this[d]=null,Z.end()),Q.length}[G](z,ne){let Z=this[d],ue=this[U](z,ne);return this[d]||this[B](Z),ue}[H](z,ne,Z){!this[M].length&&!this[m]?this.emit(z,ne,Z):this[M].push([z,ne,Z])}[B](z){switch(this[H]("meta",this[L]),z.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=u.parse(this[L],this[_],!1);break;case"GlobalExtendedHeader":this[C]=u.parse(this[L],this[C],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[L].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[L].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+z.type)}}abort(z){this[X]=!0,this.emit("abort",z),this.warn("TAR_ABORT",z,{recoverable:!1})}write(z){if(this[X])return;if(this[W]===null&&z){if(this[T]&&(z=Buffer.concat([this[T],z]),this[T]=null),z.length<h.length)return this[T]=z,!0;for(let Z=0;this[W]===null&&Z<h.length;Z++)z[Z]!==h[Z]&&(this[W]=!1);if(this[W]===null){let Z=this[D];this[D]=!1,this[W]=new c.Unzip,this[W].on("data",Q=>this[q](Q)),this[W].on("error",Q=>this.abort(Q)),this[W].on("end",Q=>{this[D]=!0,this[q]()}),this[J]=!0;let ue=this[W][Z?"end":"write"](z);return this[J]=!1,ue}}this[J]=!0,this[W]?this[W].write(z):this[q](z),this[J]=!1;let ne=this[M].length?!1:this[m]?this[m].flowing:!0;return!ne&&!this[M].length&&this[m].once("drain",Z=>this.emit("drain")),ne}[R](z){z&&!this[X]&&(this[T]=this[T]?Buffer.concat([this[T],z]):z)}[$](){if(this[D]&&!this[A]&&!this[X]&&!this[v]){this[A]=!0;let z=this[d];if(z&&z.blockRemain){let ne=this[T]?this[T].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${z.blockRemain} more bytes, only ${ne} available)`,{entry:z}),this[T]&&z.write(this[T]),z.end()}this[H](E)}}[q](z){if(this[v])this[R](z);else if(!z&&!this[T])this[$]();else{if(this[v]=!0,this[T]){this[R](z);let ne=this[T];this[T]=null,this[I](ne)}else this[I](z);for(;this[T]&&this[T].length>=512&&!this[X]&&!this[j];){let ne=this[T];this[T]=null,this[I](ne)}this[v]=!1}(!this[T]||this[D])&&this[$]()}[I](z){let ne=0,Z=z.length;for(;ne+512<=Z&&!this[X]&&!this[j];)switch(this[f]){case"begin":case"header":this[P](z,ne),ne+=512;break;case"ignore":case"body":ne+=this[U](z,ne);break;case"meta":ne+=this[G](z,ne);break;default:throw new Error("invalid state: "+this[f])}ne<Z&&(this[T]?this[T]=Buffer.concat([z.slice(ne),this[T]]):this[T]=z.slice(ne))}end(z){this[X]||(this[W]?this[W].end(z):(this[D]=!0,this.write(z)))}})}),vm=ce((t,e)=>{"use strict";te();var r=eo(),i=wm(),n=he("fs"),s=no(),o=he("path"),a=io();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&c(p,m),p.noResume||u(p),p.file&&p.sync?l(p):p.file?h(p,y):f(p)};var u=d=>{let m=d.onentry;d.onentry=m?y=>{m(y),y.resume()}:y=>y.resume()},c=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,_=(C,L)=>{let B=L||o.parse(C).root||".",T=C===B?!1:y.has(C)?y.get(C):_(o.dirname(C),B);return y.set(C,T),T};d.filter=p?(C,L)=>p(C,L)&&_(a(C)):C=>_(a(C))},l=d=>{let m=f(d),y=d.file,p=!0,_;try{let C=n.statSync(y),L=d.maxReadSize||16*1024*1024;if(C.size<L)m.end(n.readFileSync(y));else{let B=0,T=Buffer.allocUnsafe(L);for(_=n.openSync(y,"r");B<C.size;){let M=n.readSync(_,T,0,L,B);B+=M,m.write(T.slice(0,M))}m.end()}p=!1}finally{if(p&&_)try{n.closeSync(_)}catch{}}},h=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,_=d.file,C=new Promise((L,B)=>{y.on("error",B),y.on("end",L),n.stat(_,(T,M)=>{if(T)B(T);else{let D=new s.ReadStream(_,{readSize:p,size:M.size});D.on("error",B),D.pipe(y)}})});return m?C.then(m,m):C},f=d=>new i(d)}),J5=ce((t,e)=>{"use strict";te();var r=eo(),i=Em(),n=no(),s=vm(),o=he("path");e.exports=(d,m,y)=>{if(typeof m=="function"&&(y=m),Array.isArray(d)&&(m=d,d={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.file&&p.sync?a(p,m):p.file?u(p,m,y):p.sync?h(p,m):f(p,m)};var a=(d,m)=>{let y=new i.Sync(d),p=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(p),c(y,m)},u=(d,m,y)=>{let p=new i(d),_=new n.WriteStream(d.file,{mode:d.mode||438});p.pipe(_);let C=new Promise((L,B)=>{_.on("error",B),_.on("close",L),p.on("error",B)});return l(p,m),y?C.then(y,y):C},c=(d,m)=>{m.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:p=>d.add(p)}):d.add(y)}),d.end()},l=(d,m)=>{for(;m.length;){let y=m.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:p=>d.add(p)}).then(p=>l(d,m));d.add(y)}d.end()},h=(d,m)=>{let y=new i.Sync(d);return c(y,m),y},f=(d,m)=>{let y=new i(d);return l(y,m),y}}),p1=ce((t,e)=>{"use strict";te();var r=eo(),i=Em(),n=he("fs"),s=no(),o=vm(),a=he("path"),u=ro();e.exports=(m,y,p)=>{let _=r(m);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?c(_,y):h(_,y,p)};var c=(m,y)=>{let p=new i.Sync(m),_=!0,C,L;try{try{C=n.openSync(m.file,"r+")}catch(M){if(M.code==="ENOENT")C=n.openSync(m.file,"w+");else throw M}let B=n.fstatSync(C),T=Buffer.alloc(512);e:for(L=0;L<B.size;L+=512){for(let A=0,H=0;A<512;A+=H){if(H=n.readSync(C,T,A,T.length-A,L+A),L===0&&T[0]===31&&T[1]===139)throw new Error("cannot append to compressed archives");if(!H)break e}let M=new u(T);if(!M.cksumValid)break;let D=512*Math.ceil(M.size/512);if(L+D+512>B.size)break;L+=D,m.mtimeCache&&m.mtimeCache.set(M.path,M.mtime)}_=!1,l(m,p,L,C,y)}finally{if(_)try{n.closeSync(C)}catch{}}},l=(m,y,p,_,C)=>{let L=new s.WriteStreamSync(m.file,{fd:_,start:p});y.pipe(L),f(y,C)},h=(m,y,p)=>{y=Array.from(y);let _=new i(m),C=(B,T,M)=>{let D=(I,U)=>{I?n.close(B,G=>M(I)):M(null,U)},A=0;if(T===0)return D(null,0);let H=0,W=Buffer.alloc(512),q=(I,U)=>{if(I)return D(I);if(H+=U,H<512&&U)return n.read(B,W,H,W.length-H,A+H,q);if(A===0&&W[0]===31&&W[1]===139)return D(new Error("cannot append to compressed archives"));if(H<512)return D(null,A);let G=new u(W);if(!G.cksumValid)return D(null,A);let P=512*Math.ceil(G.size/512);if(A+P+512>T||(A+=P+512,A>=T))return D(null,A);m.mtimeCache&&m.mtimeCache.set(G.path,G.mtime),H=0,n.read(B,W,0,512,A,q)};n.read(B,W,0,512,A,q)},L=new Promise((B,T)=>{_.on("error",T);let M="r+",D=(A,H)=>{if(A&&A.code==="ENOENT"&&M==="r+")return M="w+",n.open(m.file,M,D);if(A)return T(A);n.fstat(H,(W,q)=>{if(W)return n.close(H,()=>T(W));C(H,q.size,(I,U)=>{if(I)return T(I);let G=new s.WriteStream(m.file,{fd:H,start:U});_.pipe(G),G.on("error",T),G.on("close",B),d(_,y)})})};n.open(m.file,M,D)});return p?L.then(p,p):L},f=(m,y)=>{y.forEach(p=>{p.charAt(0)==="@"?o({file:a.resolve(m.cwd,p.slice(1)),sync:!0,noResume:!0,onentry:_=>m.add(_)}):m.add(p)}),m.end()},d=(m,y)=>{for(;y.length;){let p=y.shift();if(p.charAt(0)==="@")return o({file:a.resolve(m.cwd,p.slice(1)),noResume:!0,onentry:_=>m.add(_)}).then(_=>d(m,y));m.add(p)}m.end()}}),X5=ce((t,e)=>{"use strict";te();var r=eo(),i=p1();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),Q5=ce((t,e)=>{te();var{promisify:r}=he("util"),i=he("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),ej=ce((t,e)=>{te();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=he("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),tj=ce((t,e)=>{te();var{dirname:r}=he("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),m1=ce((t,e)=>{te();var{dirname:r}=he("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(u,o).then(l=>i(s,o,l));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(l=>{if(l.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(u,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),rj=ce((t,e)=>{te();var{dirname:r}=he("path"),{findMade:i,findMadeSync:n}=tj(),{mkdirpManual:s,mkdirpManualSync:o}=m1(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):i(l,c).then(h=>l.mkdirAsync(c,l).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,l);throw f}))),u=(c,l)=>{if(l.recursive=!0,r(c)===c)return l.mkdirSync(c,l);let h=n(l,c);try{return l.mkdirSync(c,l),h}catch(f){if(f.code==="ENOENT")return o(c,l);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),ij=ce((t,e)=>{te();var r=he("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),nj=ce((t,e)=>{te();var r=Q5(),i=ej(),{mkdirpNative:n,mkdirpNativeSync:s}=rj(),{mkdirpManual:o,mkdirpManualSync:a}=m1(),{useNative:u,useNativeSync:c}=ij(),l=(f,d)=>(f=i(f),d=r(d),u(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>n(i(f),r(d)),l.manual=(f,d)=>o(i(f),r(d)),l.nativeSync=(f,d)=>s(i(f),r(d)),l.manualSync=(f,d)=>a(i(f),r(d)),e.exports=l}),sj=ce((t,e)=>{"use strict";te();var r=he("fs"),i=he("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(L,B,T)=>{try{return r[s](L,B,T)}catch(M){if(M.code!=="ENOENT")throw M}},u=(L,B,T)=>{try{return r.chownSync(L,B,T)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(L,B,T,M)=>D=>{!D||D.code!=="EISDIR"?M(D):r.chown(L,B,T,M)}:(L,B,T,M)=>M,l=o?(L,B,T)=>{try{return a(L,B,T)}catch(M){if(M.code!=="EISDIR")throw M;u(L,B,T)}}:(L,B,T)=>a(L,B,T),h=process.version,f=(L,B,T)=>r.readdir(L,B,T),d=(L,B)=>r.readdirSync(L,B);/^v4\./.test(h)&&(f=(L,B,T)=>r.readdir(L,T));var m=(L,B,T,M)=>{r[n](L,B,T,c(L,B,T,D=>{M(D&&D.code!=="ENOENT"?D:null)}))},y=(L,B,T,M,D)=>{if(typeof B=="string")return r.lstat(i.resolve(L,B),(A,H)=>{if(A)return D(A.code!=="ENOENT"?A:null);H.name=B,y(L,H,T,M,D)});if(B.isDirectory())p(i.resolve(L,B.name),T,M,A=>{if(A)return D(A);let H=i.resolve(L,B.name);m(H,T,M,D)});else{let A=i.resolve(L,B.name);m(A,T,M,D)}},p=(L,B,T,M)=>{f(L,{withFileTypes:!0},(D,A)=>{if(D){if(D.code==="ENOENT")return M();if(D.code!=="ENOTDIR"&&D.code!=="ENOTSUP")return M(D)}if(D||!A.length)return m(L,B,T,M);let H=A.length,W=null,q=I=>{if(!W){if(I)return M(W=I);if(--H===0)return m(L,B,T,M)}};A.forEach(I=>y(L,I,B,T,q))})},_=(L,B,T,M)=>{if(typeof B=="string")try{let D=r.lstatSync(i.resolve(L,B));D.name=B,B=D}catch(D){if(D.code==="ENOENT")return;throw D}B.isDirectory()&&C(i.resolve(L,B.name),T,M),l(i.resolve(L,B.name),T,M)},C=(L,B,T)=>{let M;try{M=d(L,{withFileTypes:!0})}catch(D){if(D.code==="ENOENT")return;if(D.code==="ENOTDIR"||D.code==="ENOTSUP")return l(L,B,T);throw D}return M&&M.length&&M.forEach(D=>_(L,D,B,T)),l(L,B,T)};e.exports=p,p.sync=C}),oj=ce((t,e)=>{"use strict";te();var r=nj(),i=he("fs"),n=he("path"),s=sj(),o=to(),a=class extends Error{constructor(y,p){super("Cannot extract through symbolic link"),this.path=p,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,p){super(p+": Cannot cd into '"+y+"'"),this.path=y,this.code=p}get name(){return"CwdError"}},c=(y,p)=>y.get(o(p)),l=(y,p,_)=>y.set(o(p),_),h=(y,p)=>{i.stat(y,(_,C)=>{(_||!C.isDirectory())&&(_=new u(y,_&&_.code||"ENOTDIR")),p(_)})};e.exports=(y,p,_)=>{y=o(y);let C=p.umask,L=p.mode|448,B=(L&C)!==0,T=p.uid,M=p.gid,D=typeof T=="number"&&typeof M=="number"&&(T!==p.processUid||M!==p.processGid),A=p.preserve,H=p.unlink,W=p.cache,q=o(p.cwd),I=(G,P)=>{G?_(G):(l(W,y,!0),P&&D?s(P,T,M,v=>I(v)):B?i.chmod(y,L,_):_())};if(W&&c(W,y)===!0)return I();if(y===q)return h(y,I);if(A)return r(y,{mode:L}).then(G=>I(null,G),I);let U=o(n.relative(q,y)).split("/");f(q,U,L,W,H,q,null,I)};var f=(y,p,_,C,L,B,T,M)=>{if(!p.length)return M(null,T);let D=p.shift(),A=o(n.resolve(y+"/"+D));if(c(C,A))return f(A,p,_,C,L,B,T,M);i.mkdir(A,_,d(A,p,_,C,L,B,T,M))},d=(y,p,_,C,L,B,T,M)=>D=>{D?i.lstat(y,(A,H)=>{if(A)A.path=A.path&&o(A.path),M(A);else if(H.isDirectory())f(y,p,_,C,L,B,T,M);else if(L)i.unlink(y,W=>{if(W)return M(W);i.mkdir(y,_,d(y,p,_,C,L,B,T,M))});else{if(H.isSymbolicLink())return M(new a(y,y+"/"+p.join("/")));M(D)}}):(T=T||y,f(y,p,_,C,L,B,T,M))},m=y=>{let p=!1,_="ENOTDIR";try{p=i.statSync(y).isDirectory()}catch(C){_=C.code}finally{if(!p)throw new u(y,_)}};e.exports.sync=(y,p)=>{y=o(y);let _=p.umask,C=p.mode|448,L=(C&_)!==0,B=p.uid,T=p.gid,M=typeof B=="number"&&typeof T=="number"&&(B!==p.processUid||T!==p.processGid),D=p.preserve,A=p.unlink,H=p.cache,W=o(p.cwd),q=G=>{l(H,y,!0),G&&M&&s.sync(G,B,T),L&&i.chmodSync(y,C)};if(H&&c(H,y)===!0)return q();if(y===W)return m(W),q();if(D)return q(r.sync(y,C));let I=o(n.relative(W,y)).split("/"),U=null;for(let G=I.shift(),P=W;G&&(P+="/"+G);G=I.shift())if(P=o(n.resolve(P)),!c(H,P))try{i.mkdirSync(P,C),U=U||P,l(H,P,!0)}catch{let v=i.lstatSync(P);if(v.isDirectory()){l(H,P,!0);continue}else if(A){i.unlinkSync(P),i.mkdirSync(P,C),U=U||P,l(H,P,!0);continue}else if(v.isSymbolicLink())return new a(P,P+"/"+I.join("/"))}return q(U)}}),y1=ce((t,e)=>{te();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),aj=ce((t,e)=>{te();var r=he("assert"),i=y1(),n=io(),{join:s}=he("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=p=>p.split("/").slice(0,-1).reduce((_,C)=>(_.length&&(C=s(_[_.length-1],C)),_.push(C||"/"),_),[]),h=new Set,f=p=>{let _=c.get(p);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(C=>u.get(C)),dirs:[..._.dirs].map(C=>u.get(C))}},d=p=>{let{paths:_,dirs:C}=f(p);return _.every(L=>L[0]===p)&&C.every(L=>L[0]instanceof Set&&L[0].has(p))},m=p=>h.has(p)||!d(p)?!1:(h.add(p),p(()=>y(p)),!0),y=p=>{if(!h.has(p))return!1;let{paths:_,dirs:C}=c.get(p),L=new Set;return _.forEach(B=>{let T=u.get(B);r.equal(T[0],p),T.length===1?u.delete(B):(T.shift(),typeof T[0]=="function"?L.add(T[0]):T[0].forEach(M=>L.add(M)))}),C.forEach(B=>{let T=u.get(B);r(T[0]instanceof Set),T[0].size===1&&T.length===1?u.delete(B):T[0].size===1?(T.shift(),L.add(T[0])):T[0].delete(p)}),h.delete(p),L.forEach(B=>m(B)),!0};return{check:d,reserve:(p,_)=>{p=a?["win32 parallelization disabled"]:p.map(L=>i(n(s(L))).toLowerCase());let C=new Set(p.map(L=>l(L)).reduce((L,B)=>L.concat(B)));return c.set(_,{dirs:C,paths:p}),p.forEach(L=>{let B=u.get(L);B?B.push(_):u.set(L,[_])}),C.forEach(L=>{let B=u.get(L);B?B[B.length-1]instanceof Set?B[B.length-1].add(_):B.push(new Set([_])):u.set(L,[new Set([_])])}),m(_)}}}}),uj=ce((t,e)=>{te();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||he("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,c=i&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),g1=ce((t,e)=>{"use strict";te();var r=he("assert"),i=wm(),n=he("fs"),s=no(),o=he("path"),a=oj(),u=l1(),c=aj(),l=h1(),h=to(),f=io(),d=y1(),m=Symbol("onEntry"),y=Symbol("checkFs"),p=Symbol("checkFs2"),_=Symbol("pruneCache"),C=Symbol("isReusable"),L=Symbol("makeFs"),B=Symbol("file"),T=Symbol("directory"),M=Symbol("link"),D=Symbol("symlink"),A=Symbol("hardlink"),H=Symbol("unsupported"),W=Symbol("checkPath"),q=Symbol("mkdir"),I=Symbol("onError"),U=Symbol("pending"),G=Symbol("pend"),P=Symbol("unpend"),v=Symbol("ended"),R=Symbol("maybeClose"),$=Symbol("skip"),J=Symbol("doChown"),X=Symbol("uid"),E=Symbol("gid"),w=Symbol("checkedCwd"),S=he("crypto"),j=uj(),F=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Y=F==="win32",z=(g,V)=>{if(!Y)return n.unlink(g,V);let re=g+".DELETE."+S.randomBytes(16).toString("hex");n.rename(g,re,se=>{if(se)return V(se);n.unlink(re,V)})},ne=g=>{if(!Y)return n.unlinkSync(g);let V=g+".DELETE."+S.randomBytes(16).toString("hex");n.renameSync(g,V),n.unlinkSync(V)},Z=(g,V,re)=>g===g>>>0?g:V===V>>>0?V:re,ue=g=>d(f(h(g))).toLowerCase(),Q=(g,V)=>{V=ue(V);for(let re of g.keys()){let se=ue(re);(se===V||se.indexOf(V+"/")===0)&&g.delete(re)}},b=g=>{for(let V of g.keys())g.delete(V)},N=class extends i{constructor(g){if(g||(g={}),g.ondone=V=>{this[v]=!0,this[R]()},super(g),this[w]=!1,this.reservations=c(),this.transform=typeof g.transform=="function"?g.transform:null,this.writable=!0,this.readable=!1,this[U]=0,this[v]=!1,this.dirCache=g.dirCache||new Map,typeof g.uid=="number"||typeof g.gid=="number"){if(typeof g.uid!="number"||typeof g.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(g.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=g.uid,this.gid=g.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;g.preserveOwner===void 0&&typeof g.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!g.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=g.forceChown===!0,this.win32=!!g.win32||Y,this.newer=!!g.newer,this.keep=!!g.keep,this.noMtime=!!g.noMtime,this.preservePaths=!!g.preservePaths,this.unlink=!!g.unlink,this.cwd=h(o.resolve(g.cwd||process.cwd())),this.strip=+g.strip||0,this.processUmask=g.noChmod?0:process.umask(),this.umask=typeof g.umask=="number"?g.umask:this.processUmask,this.dmode=g.dmode||511&~this.umask,this.fmode=g.fmode||438&~this.umask,this.on("entry",V=>this[m](V))}warn(g,V,re={}){return(g==="TAR_BAD_ARCHIVE"||g==="TAR_ABORT")&&(re.recoverable=!1),super.warn(g,V,re)}[R](){this[v]&&this[U]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[W](g){if(this.strip){let V=h(g.path).split("/");if(V.length<this.strip)return!1;if(g.path=V.slice(this.strip).join("/"),g.type==="Link"){let re=h(g.linkpath).split("/");if(re.length>=this.strip)g.linkpath=re.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let V=h(g.path),re=V.split("/");if(re.includes("..")||Y&&/^[a-z]:\.\.$/i.test(re[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:g,path:V}),!1;let[se,le]=l(V);se&&(g.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:g,path:V}))}if(o.isAbsolute(g.path)?g.absolute=h(o.resolve(g.path)):g.absolute=h(o.resolve(this.cwd,g.path)),!this.preservePaths&&g.absolute.indexOf(this.cwd+"/")!==0&&g.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:g,path:h(g.path),resolvedPath:g.absolute,cwd:this.cwd}),!1;if(g.absolute===this.cwd&&g.type!=="Directory"&&g.type!=="GNUDumpDir")return!1;if(this.win32){let{root:V}=o.win32.parse(g.absolute);g.absolute=V+u.encode(g.absolute.slice(V.length));let{root:re}=o.win32.parse(g.path);g.path=re+u.encode(g.path.slice(re.length))}return!0}[m](g){if(!this[W](g))return g.resume();switch(r.equal(typeof g.absolute,"string"),g.type){case"Directory":case"GNUDumpDir":g.mode&&(g.mode=g.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](g);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[H](g)}}[I](g,V){g.name==="CwdError"?this.emit("error",g):(this.warn("TAR_ENTRY_ERROR",g,{entry:V}),this[P](),V.resume())}[q](g,V,re){a(h(g),{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:V,noChmod:this.noChmod},re)}[J](g){return this.forceChown||this.preserveOwner&&(typeof g.uid=="number"&&g.uid!==this.processUid||typeof g.gid=="number"&&g.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[X](g){return Z(this.uid,g.uid,this.processUid)}[E](g){return Z(this.gid,g.gid,this.processGid)}[B](g,V){let re=g.mode&4095||this.fmode,se=new s.WriteStream(g.absolute,{flags:j(g.size),mode:re,autoClose:!1});se.on("error",pe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[I](pe,g),V()});let le=1,me=pe=>{if(pe){se.fd&&n.close(se.fd,()=>{}),this[I](pe,g),V();return}--le===0&&n.close(se.fd,Fe=>{Fe?this[I](Fe,g):this[P](),V()})};se.on("finish",pe=>{let Fe=g.absolute,Ct=se.fd;if(g.mtime&&!this.noMtime){le++;let Rt=g.atime||new Date,Jn=g.mtime;n.futimes(Ct,Rt,Jn,Xn=>Xn?n.utimes(Fe,Rt,Jn,gc=>me(gc&&Xn)):me())}if(this[J](g)){le++;let Rt=this[X](g),Jn=this[E](g);n.fchown(Ct,Rt,Jn,Xn=>Xn?n.chown(Fe,Rt,Jn,gc=>me(gc&&Xn)):me())}me()});let ye=this.transform&&this.transform(g)||g;ye!==g&&(ye.on("error",pe=>{this[I](pe,g),V()}),g.pipe(ye)),ye.pipe(se)}[T](g,V){let re=g.mode&4095||this.dmode;this[q](g.absolute,re,se=>{if(se){this[I](se,g),V();return}let le=1,me=ye=>{--le===0&&(V(),this[P](),g.resume())};g.mtime&&!this.noMtime&&(le++,n.utimes(g.absolute,g.atime||new Date,g.mtime,me)),this[J](g)&&(le++,n.chown(g.absolute,this[X](g),this[E](g),me)),me()})}[H](g){g.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${g.type}`,{entry:g}),g.resume()}[D](g,V){this[M](g,g.linkpath,"symlink",V)}[A](g,V){let re=h(o.resolve(this.cwd,g.linkpath));this[M](g,re,"link",V)}[G](){this[U]++}[P](){this[U]--,this[R]()}[$](g){this[P](),g.resume()}[C](g,V){return g.type==="File"&&!this.unlink&&V.isFile()&&V.nlink<=1&&!Y}[y](g){this[G]();let V=[g.path];g.linkpath&&V.push(g.linkpath),this.reservations.reserve(V,re=>this[p](g,re))}[_](g){g.type==="SymbolicLink"?b(this.dirCache):g.type!=="Directory"&&Q(this.dirCache,g.absolute)}[p](g,V){this[_](g);let re=ye=>{this[_](g),V(ye)},se=()=>{this[q](this.cwd,this.dmode,ye=>{if(ye){this[I](ye,g),re();return}this[w]=!0,le()})},le=()=>{if(g.absolute!==this.cwd){let ye=h(o.dirname(g.absolute));if(ye!==this.cwd)return this[q](ye,this.dmode,pe=>{if(pe){this[I](pe,g),re();return}me()})}me()},me=()=>{n.lstat(g.absolute,(ye,pe)=>{if(pe&&(this.keep||this.newer&&pe.mtime>g.mtime)){this[$](g),re();return}if(ye||this[C](g,pe))return this[L](null,g,re);if(pe.isDirectory()){if(g.type==="Directory"){let Fe=!this.noChmod&&g.mode&&(pe.mode&4095)!==g.mode,Ct=Rt=>this[L](Rt,g,re);return Fe?n.chmod(g.absolute,g.mode,Ct):Ct()}if(g.absolute!==this.cwd)return n.rmdir(g.absolute,Fe=>this[L](Fe,g,re))}if(g.absolute===this.cwd)return this[L](null,g,re);z(g.absolute,Fe=>this[L](Fe,g,re))})};this[w]?le():se()}[L](g,V,re){if(g){this[I](g,V),re();return}switch(V.type){case"File":case"OldFile":case"ContiguousFile":return this[B](V,re);case"Link":return this[A](V,re);case"SymbolicLink":return this[D](V,re);case"Directory":case"GNUDumpDir":return this[T](V,re)}}[M](g,V,re,se){n[re](V,g.absolute,le=>{le?this[I](le,g):(this[P](),g.resume()),se()})}},x=g=>{try{return[null,g()]}catch(V){return[V,null]}},ee=class extends N{[L](g,V){return super[L](g,V,()=>{})}[y](g){if(this[_](g),!this[w]){let le=this[q](this.cwd,this.dmode);if(le)return this[I](le,g);this[w]=!0}if(g.absolute!==this.cwd){let le=h(o.dirname(g.absolute));if(le!==this.cwd){let me=this[q](le,this.dmode);if(me)return this[I](me,g)}}let[V,re]=x(()=>n.lstatSync(g.absolute));if(re&&(this.keep||this.newer&&re.mtime>g.mtime))return this[$](g);if(V||this[C](g,re))return this[L](null,g);if(re.isDirectory()){if(g.type==="Directory"){let me=!this.noChmod&&g.mode&&(re.mode&4095)!==g.mode,[ye]=me?x(()=>{n.chmodSync(g.absolute,g.mode)}):[];return this[L](ye,g)}let[le]=x(()=>n.rmdirSync(g.absolute));this[L](le,g)}let[se]=g.absolute===this.cwd?[]:x(()=>ne(g.absolute));this[L](se,g)}[B](g,V){let re=g.mode&4095||this.fmode,se=ye=>{let pe;try{n.closeSync(le)}catch(Fe){pe=Fe}(ye||pe)&&this[I](ye||pe,g),V()},le;try{le=n.openSync(g.absolute,j(g.size),re)}catch(ye){return se(ye)}let me=this.transform&&this.transform(g)||g;me!==g&&(me.on("error",ye=>this[I](ye,g)),g.pipe(me)),me.on("data",ye=>{try{n.writeSync(le,ye,0,ye.length)}catch(pe){se(pe)}}),me.on("end",ye=>{let pe=null;if(g.mtime&&!this.noMtime){let Fe=g.atime||new Date,Ct=g.mtime;try{n.futimesSync(le,Fe,Ct)}catch(Rt){try{n.utimesSync(g.absolute,Fe,Ct)}catch{pe=Rt}}}if(this[J](g)){let Fe=this[X](g),Ct=this[E](g);try{n.fchownSync(le,Fe,Ct)}catch(Rt){try{n.chownSync(g.absolute,Fe,Ct)}catch{pe=pe||Rt}}}se(pe)})}[T](g,V){let re=g.mode&4095||this.dmode,se=this[q](g.absolute,re);if(se){this[I](se,g),V();return}if(g.mtime&&!this.noMtime)try{n.utimesSync(g.absolute,g.atime||new Date,g.mtime)}catch{}if(this[J](g))try{n.chownSync(g.absolute,this[X](g),this[E](g))}catch{}V(),g.resume()}[q](g,V){try{return a.sync(h(g),{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:V})}catch(re){return re}}[M](g,V,re,se){try{n[re+"Sync"](V,g.absolute),se(),g.resume()}catch(le){return this[I](le,g)}}};N.Sync=ee,e.exports=N}),cj=ce((t,e)=>{"use strict";te();var r=eo(),i=g1(),n=he("fs"),s=no(),o=he("path"),a=io();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&u(p,m),p.file&&p.sync?c(p):p.file?l(p,y):p.sync?h(p):f(p)};var u=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,_=(C,L)=>{let B=L||o.parse(C).root||".",T=C===B?!1:y.has(C)?y.get(C):_(o.dirname(C),B);return y.set(C,T),T};d.filter=p?(C,L)=>p(C,L)&&_(a(C)):C=>_(a(C))},c=d=>{let m=new i.Sync(d),y=d.file,p=n.statSync(y),_=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:_,size:p.size}).pipe(m)},l=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,_=d.file,C=new Promise((L,B)=>{y.on("error",B),y.on("close",L),n.stat(_,(T,M)=>{if(T)B(T);else{let D=new s.ReadStream(_,{readSize:p,size:M.size});D.on("error",B),D.pipe(y)}})});return m?C.then(m,m):C},h=d=>new i.Sync(d),f=d=>new i(d)}),lj=ce(t=>{"use strict";te(),t.c=t.create=J5(),t.r=t.replace=p1(),t.t=t.list=vm(),t.u=t.update=X5(),t.x=t.extract=cj(),t.Pack=Em(),t.Unpack=g1(),t.Parse=wm(),t.ReadEntry=gm(),t.WriteEntry=f1(),t.Header=ro(),t.Pax=_m(),t.types=c1()}),hj=ce((t,e)=>{te();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(i[u]||0)+1;i[u]=c,c>=s&&(n=a,s=c)}return n}}),fj=ce(t=>{te();var e=hj();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(c){var l=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){c.apply(r,h)})}.bind(r,u),r[a].options=i}}}),dj=ce((t,e)=>{te(),e.exports=fj()}),pj=ce((t,e)=>{te();var r=dj();function i(n,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(m){u(m||new Error("Aborted"))}function f(m,y){if(m.bail){h(m);return}l.retry(m)?c.onRetry&&c.onRetry(m,y):u(l.mainError())}function d(m){var y;try{y=n(h,m)}catch(p){f(p,m);return}Promise.resolve(y).then(a).catch(function(p){f(p,m)})}l.attempt(d)}return new Promise(o)}e.exports=i}),mj={};I5(mj,{bold:()=>Ej,dimmed:()=>wj,error:()=>Dj,info:()=>bj,item:()=>vj,log:()=>so,turboBlue:()=>Wn,turboGradient:()=>gj,turboLoader:()=>_j,turboRed:()=>v1,warn:()=>Sj,yellow:()=>S1});te();var E1="#0099F7",w1="#F11712",yj="#FFFF00",gj=(0,b1.default)(E1,w1),Wn=Zn.default.hex(E1),v1=Zn.default.hex(w1),S1=Zn.default.hex(yj),_j=t=>(0,_1.default)({text:t,spinner:{frames:[" ",Wn("> "),Wn(">> "),Wn(">>>")]}}),bj=(...t)=>{so(Wn.bold(">>>"),...t)},Ej=(...t)=>{so(Zn.default.bold(...t))},wj=(...t)=>{so(Zn.default.dim(...t))},vj=(...t)=>{so(Wn.bold(" \u2022"),...t)},so=(...t)=>{console.log(...t)},Sj=(...t)=>{console.error(S1.bold(">>>"),...t)},Dj=(...t)=>{console.error(v1.bold(">>>"),...t)};te();async function ic(t,e=[],r){let i={cwd:D1.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,A1.default)(t,e,i);return n.trim()}catch{return}}async function x1(){let[t,e,r,i]=await Promise.all([ic("yarnpkg",["--version"]),ic("npm",["--version"]),ic("pnpm",["--version"]),ic("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}te();te();te();var l7=oc(q5());te();te();function Aj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}te();te();function dm(t){return dm=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},dm(t)}te();function xj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cj(t,e){if(e&&(dm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xj(t)}te();function sc(t){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sc(t)}te();te();function Js(t,e){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Js(t,e)}function Rj(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&&Js(t,e)}te();te();function Tj(t){return Function.toString.call(t).indexOf("[native code]")!==-1}te();te();function kj(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nc(t,e,r){return kj()?nc=Reflect.construct.bind():nc=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&Js(u,s.prototype),u},nc.apply(null,arguments)}function pm(t){var e=typeof Map=="function"?new Map:void 0;return pm=function(r){if(r===null||!Tj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return nc(r,arguments,sc(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Js(i,r)},pm(t)}var h7=oc(W5()),p7=function(t){Rj(e,t);function e(r){var i;return Aj(this,e),i=Cj(this,sc(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(pm(Error));te();te();te();te();te();te();var A7=oc(lj()),x7=(0,R1.promisify)(C1.Stream.pipeline);te();te();var k7=oc(pj());te();te();te();var ke=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,ke)}};te();te();te();te();var Oj=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ot({workspaceRoot:t}){let e=Dr.default.join(t,"package.json");try{return(0,pt.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new ke(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new ke(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function ac({workspaceRoot:t}){let{packageManager:e}=ot({workspaceRoot:t});if(e)try{let r=Oj.exec(e);if(r){let[i,n]=r;return n}}catch{}}function oo({workspaceRoot:t}){let e=ot({workspaceRoot:t}),r=Dr.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function i1({workspaceRoot:t}){let e=Dr.default.join(t,"pnpm-workspace.yaml");if((0,pt.existsSync)(e))try{let r=Wc.load((0,pt.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new ke(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function uc({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Dr.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Sm({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function cc({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,L1.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Dr.default.dirname(r),{name:n,description:s}=oo({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Dr.default.join(i,"node_modules")}}}):[]}function Fj({directory:t}){let e=Dr.default.resolve(process.cwd(),t);return{exists:(0,pt.existsSync)(e),absolute:e}}function ei({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Pj({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Sr({project:t,options:e}){e!=null&&e.dry||(0,pt.rmSync)(t.paths.lockfile,{force:!0})}async function B1({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,pt.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,P1.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,pt.writeFile)(Dr.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,pt.rmSync)(t.paths.lockfile,{force:!0})}}function Lj({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function Xr({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=ot({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:m}=Lj({dependencyList:f,project:t,to:r});s[h]=m,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${F1.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${k1.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${l}`:d===c.length-1?h+=`and ${f} in ${l}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${l}`);n!=null&&n.dry||(0,O1.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var Qr={name:"pnpm",lock:"pnpm-lock.yaml"};async function I1(t){let e=Ri.default.join(t.workspaceRoot,Qr.lock),r=Ri.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=ac({workspaceRoot:t.workspaceRoot});return(0,Qe.existsSync)(e)||(0,Qe.existsSync)(r)||i===Qr.name}async function Bj(t){if(!await I1(t))throw new ke("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=oo(t);return{name:e,description:r,packageManager:Qr.name,paths:uc({root:t.workspaceRoot,lockFile:Qr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:i1(t),workspaces:cc({workspaceGlobs:i1(t),...t})}}}async function Ij(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(ei({action:"create",packageManager:Qr.name,project:e}));let o=ot({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,Qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,Qe.writeFileSync)(Ri.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
56
|
+
`).reduce(a,Object.create(null)),a=(u,c)=>{let l=parseInt(c,10);if(l!==Buffer.byteLength(c)+1)return u;c=c.slice((l+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return u;let d=h.join("=");return u[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,u};e.exports=n}),no=ce((t,e)=>{Q(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),bm=ce((t,e)=>{"use strict";Q(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),h1=ce((t,e)=>{"use strict";Q();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),f1=ce((t,e)=>{Q();var{isAbsolute:r,parse:i}=he("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),J5=ce((t,e)=>{"use strict";Q(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),d1=ce((t,e)=>{"use strict";Q();var r=ym(),i=_m(),n=io(),s=he("fs"),o=he("path"),a=ro(),u=no(),c=(_,E)=>E?(_=a(_).replace(/^\.(\/|$)/,""),u(E)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),m=Symbol("symlink"),y=Symbol("hardlink"),p=Symbol("header"),w=Symbol("read"),C=Symbol("lstat"),F=Symbol("onlstat"),P=Symbol("onread"),T=Symbol("onreadlink"),M=Symbol("openfile"),S=Symbol("onopenfile"),D=Symbol("close"),H=Symbol("mode"),z=Symbol("awaitDrain"),N=Symbol("ondrain"),K=Symbol("prefix"),te=Symbol("hadError"),ne=bm(),q=h1(),L=f1(),B=J5(),G=ne(class extends r{constructor(_,E){if(E=E||{},super(E),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!E.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=E.maxReadSize||l,this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.preservePaths=!!E.preservePaths,this.cwd=a(E.cwd||process.cwd()),this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.mtime=E.mtime||null,this.prefix=E.prefix?a(E.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 E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[A,U]=L(this.path);A&&(this.path=U,R=A)}this.win32=!!E.win32||process.platform==="win32",this.win32&&(this.path=q.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(E.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[F](this.statCache.get(this.absolute)):this[C]()}emit(_,...E){return _==="error"&&(this[te]=!0),super.emit(_,...E)}[C](){s.lstat(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[F](E)})}[F](_){this.statCache.set(this.absolute,_),this.stat=_,_.isFile()||(_.size=0),this.type=g(_),this.emit("stat",_),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[H](_){return B(_,this.type==="Directory",this.portable)}[K](_){return c(_,this.prefix)}[p](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,mode:this[H](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[p](),this.end()}[m](){s.readlink(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[T](E)})}[T](_){this.linkpath=a(_),this[p](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[p](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let E=this.linkCache.get(_);if(E.indexOf(this.cwd)===0)return this[y](E)}this.linkCache.set(_,this.absolute)}if(this[p](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,E)=>{if(_)return this.emit("error",_);this[S](E)})}[S](_){if(this.fd=_,this[te])return this[D]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let E=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(E),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[w]()}[w](){let{fd:_,buf:E,offset:R,length:A,pos:U}=this;s.read(_,E,R,A,U,($,re)=>{if($)return this[D](()=>this.emit("error",$));this[P](re)})}[D](_){s.close(this.fd,_)}[P](_){if(_<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_===this.remain)for(let R=_;R<this.length&&_<this.blockRemain;R++)this.buf[R+this.offset]=0,_++,this.remain++;let E=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(E)?this[N]():this[z](()=>this[N]())}[z](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let E=new Error("writing more data than expected");return E.path=this.absolute,this.emit("error",E)}return this.remain-=_.length,this.blockRemain-=_.length,this.pos+=_.length,this.offset+=_.length,super.write(_)}[N](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[D](_=>_?this.emit("error",_):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[w]()}}),Z=class extends G{[C](){this[F](s.lstatSync(this.absolute))}[m](){this[T](s.readlinkSync(this.absolute))}[M](){this[S](s.openSync(this.absolute,"r"))}[w](){let _=!0;try{let{fd:E,buf:R,offset:A,length:U,pos:$}=this,re=s.readSync(E,R,A,U,$);this[P](re),_=!1}finally{if(_)try{this[D](()=>{})}catch{}}}[z](_){_()}[D](_){s.closeSync(this.fd),_()}},j=ne(class extends r{constructor(_,E){E=E||{},super(E),this.preservePaths=!!E.preservePaths,this.portable=!!E.portable,this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=E.prefix||null,this.path=a(_.path),this.mode=this[H](_.mode),this.uid=this.portable?null:_.uid,this.gid=this.portable?null:_.gid,this.uname=this.portable?null:_.uname,this.gname=this.portable?null:_.gname,this.size=_.size,this.mtime=this.noMtime?null:E.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[A,U]=L(this.path);A&&(this.path=U,R=A)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](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}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[K](this.path),linkpath:this.type==="Link"?this[K](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),_.pipe(this)}[K](_){return c(_,this.prefix)}[H](_){return B(_,this.type==="Directory",this.portable)}write(_){let E=_.length;if(E>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=E,super.write(_)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=Z,G.Tar=j;var g=_=>_.isFile()?"File":_.isDirectory()?"Directory":_.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=G}),X5=ce((t,e)=>{"use strict";Q(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),p1=ce((t,e)=>{"use strict";Q(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){u.push(h)});else if(arguments.length>0)for(var c=0,l=arguments.length;c<l;c++)u.push(arguments[c]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,c=a.prev;return u&&(u.prev=c),c&&(c.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var c=this.head,l=0;c!==null;l++)a.call(u,c.value,l,this),c=c.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var c=this.tail,l=this.length-1;c!==null;l--)a.call(u,c.value,l,this),c=c.prev},r.prototype.get=function(a){for(var u=0,c=this.head;c!==null&&u<a;u++)c=c.next;if(u===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var u=0,c=this.tail;c!==null&&u<a;u++)c=c.prev;if(u===a&&c!==null)return c.value},r.prototype.map=function(a,u){u=u||this;for(var c=new r,l=this.head;l!==null;)c.push(a.call(u,l.value,this)),l=l.next;return c},r.prototype.mapReverse=function(a,u){u=u||this;for(var c=new r,l=this.tail;l!==null;)c.push(a.call(u,l.value,this)),l=l.prev;return c},r.prototype.reduce=function(a,u){var c,l=this.head;if(arguments.length>1)c=u;else if(this.head)l=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)c=a(c,l.value,h),l=l.next;return c},r.prototype.reduceReverse=function(a,u){var c,l=this.tail;if(arguments.length>1)c=u;else if(this.tail)l=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)c=a(c,l.value,h),l=l.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,c=this.head;c!==null;u++)a[u]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,c=this.tail;c!==null;u++)a[u]=c.value,c=c.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(;h!==null&&l<u;l++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=this.length,h=this.tail;h!==null&&l>u;l--)h=h.prev;for(;h!==null&&l>a;l--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,u,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(var f=[],l=0;h&&l<u;l++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<c.length;l++)h=i(this,h,c[l]);return f},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,c=a;c!==null;c=c.prev){var l=c.prev;c.prev=c.next,c.next=l}return this.head=u,this.tail=a,this};function i(a,u,c){var l=u===a.head?new o(c,null,u,a):new o(c,u,u.next,a);return l.next===null&&(a.tail=l),l.prev===null&&(a.head=l),a.length++,l}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,c,l){if(!(this instanceof o))return new o(a,u,c,l);this.list=l,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{X5()(r)}catch{}}),Em=ce((t,e)=>{"use strict";Q();var r=class{constructor(g,_){this.path=g||"./",this.absolute=_,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=ym(),n=c1(),s=gm(),o=d1(),a=o.Sync,u=o.Tar,c=p1(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),m=Symbol("current"),y=Symbol("process"),p=Symbol("processing"),w=Symbol("processJob"),C=Symbol("jobs"),F=Symbol("jobDone"),P=Symbol("addFSEntry"),T=Symbol("addTarEntry"),M=Symbol("stat"),S=Symbol("readdir"),D=Symbol("onreaddir"),H=Symbol("pipe"),z=Symbol("entry"),N=Symbol("entryOpt"),K=Symbol("writeEntryClass"),te=Symbol("write"),ne=Symbol("ondrain"),q=he("fs"),L=he("path"),B=bm(),G=ro(),Z=B(class extends i{constructor(g){super(g),g=g||Object.create(null),this.opt=g,this.file=g.file||"",this.cwd=g.cwd||process.cwd(),this.maxReadSize=g.maxReadSize,this.preservePaths=!!g.preservePaths,this.strict=!!g.strict,this.noPax=!!g.noPax,this.prefix=G(g.prefix||""),this.linkCache=g.linkCache||new Map,this.statCache=g.statCache||new Map,this.readdirCache=g.readdirCache||new Map,this[K]=o,typeof g.onwarn=="function"&&this.on("warn",g.onwarn),this.portable=!!g.portable,this.zip=null,g.gzip?(typeof g.gzip!="object"&&(g.gzip={}),this.portable&&(g.gzip.portable=!0),this.zip=new n.Gzip(g.gzip),this.zip.on("data",_=>super.write(_)),this.zip.on("end",_=>super.end()),this.zip.on("drain",_=>this[ne]()),this.on("resume",_=>this.zip.resume())):this.on("drain",this[ne]),this.noDirRecurse=!!g.noDirRecurse,this.follow=!!g.follow,this.noMtime=!!g.noMtime,this.mtime=g.mtime||null,this.filter=typeof g.filter=="function"?g.filter:_=>!0,this[d]=new c,this[C]=0,this.jobs=+g.jobs||4,this[p]=!1,this[f]=!1}[te](g){return super.write(g)}add(g){return this.write(g),this}end(g){return g&&this.write(g),this[f]=!0,this[y](),this}write(g){if(this[f])throw new Error("write after end");return g instanceof s?this[T](g):this[P](g),this.flowing}[T](g){let _=G(L.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let E=new r(g.path,_,!1);E.entry=new u(g,this[N](E)),E.entry.on("end",R=>this[F](E)),this[C]+=1,this[d].push(E)}this[y]()}[P](g){let _=G(L.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[C]+=1;let _=this.follow?"stat":"lstat";q[_](g.absolute,(E,R)=>{g.pending=!1,this[C]-=1,E?this.emit("error",E):this[h](g,R)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[S](g){g.pending=!0,this[C]+=1,q.readdir(g.absolute,(_,E)=>{if(g.pending=!1,this[C]-=1,_)return this.emit("error",_);this[D](g,E)})}[D](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[p]){this[p]=!0;for(let g=this[d].head;g!==null&&this[C]<this.jobs;g=g.next)if(this[w](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[p]=!1,this[f]&&!this[d].length&&this[C]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[F](g){this[d].shift(),this[C]-=1,this[y]()}[w](g){if(!g.pending){if(g.entry){g===this[m]&&!g.piped&&this[H](g);return}if(g.stat||(this.statCache.has(g.absolute)?this[h](g,this.statCache.get(g.absolute)):this[M](g)),!!g.stat&&!g.ignore&&!(!this.noDirRecurse&&g.stat.isDirectory()&&!g.readdir&&(this.readdirCache.has(g.absolute)?this[D](g,this.readdirCache.get(g.absolute)):this[S](g),!g.readdir))){if(g.entry=this[z](g),!g.entry){g.ignore=!0;return}g===this[m]&&!g.piped&&this[H](g)}}}[N](g){return{onwarn:(_,E,R)=>this.warn(_,E,R),noPax:this.noPax,cwd:this.cwd,absolute:g.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}}[z](g){this[C]+=1;try{return new this[K](g.path,this[N](g)).on("end",()=>this[F](g)).on("error",_=>this.emit("error",_))}catch(_){this.emit("error",_)}}[ne](){this[m]&&this[m].entry&&this[m].entry.resume()}[H](g){g.piped=!0,g.readdir&&g.readdir.forEach(R=>{let A=g.path,U=A==="./"?"":A.replace(/\/*$/,"/");this[P](U+R)});let _=g.entry,E=this.zip;E?_.on("data",R=>{E.write(R)||_.pause()}):_.on("data",R=>{super.write(R)||_.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),j=class extends Z{constructor(g){super(g),this[K]=a}pause(){}resume(){}[M](g){let _=this.follow?"statSync":"lstatSync";this[h](g,q[_](g.absolute))}[S](g,_){this[D](g,q.readdirSync(g.absolute))}[H](g){let _=g.entry,E=this.zip;g.readdir&&g.readdir.forEach(R=>{let A=g.path,U=A==="./"?"":A.replace(/\/*$/,"/");this[P](U+R)}),E?_.on("data",R=>{E.write(R)}):_.on("data",R=>{super[te](R)})}};Z.Sync=j,e.exports=Z}),so=ce(t=>{"use strict";Q();var e=a1(),r=he("events").EventEmitter,i=he("fs"),n=i.writev;if(!n){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;n=(E,R,A,U)=>{let $=(V,oe)=>U(V,oe,R),re=new _;re.oncomplete=$,g.writeBuffers(E,R,A,re)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),c=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),m=Symbol("_mode"),y=Symbol("_needDrain"),p=Symbol("_onerror"),w=Symbol("_onopen"),C=Symbol("_onread"),F=Symbol("_onwrite"),P=Symbol("_open"),T=Symbol("_path"),M=Symbol("_pos"),S=Symbol("_queue"),D=Symbol("_read"),H=Symbol("_readSize"),z=Symbol("_reading"),N=Symbol("_remain"),K=Symbol("_size"),te=Symbol("_write"),ne=Symbol("_writing"),q=Symbol("_defaultFlag"),L=Symbol("_errored"),B=class extends e{constructor(g,_){if(_=_||{},super(_),this.readable=!0,this.writable=!1,typeof g!="string")throw new TypeError("path must be a string");this[L]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[T]=g,this[H]=_.readSize||16*1024*1024,this[z]=!1,this[K]=typeof _.size=="number"?_.size:1/0,this[N]=this[K],this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0,typeof this[u]=="number"?this[D]():this[P]()}get fd(){return this[u]}get path(){return this[T]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[P](){i.open(this[T],"r",(g,_)=>this[w](g,_))}[w](g,_){g?this[p](g):(this[u]=_,this.emit("open",_),this[D]())}[d](){return Buffer.allocUnsafe(Math.min(this[H],this[N]))}[D](){if(!this[z]){this[z]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[C](null,0,g));i.read(this[u],g,0,g.length,null,(_,E,R)=>this[C](_,E,R))}}[C](g,_,E){this[z]=!1,g?this[p](g):this[f](_,E)&&this[D]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[p](g){this[z]=!0,this[o](),this.emit("error",g)}[f](g,_){let E=!1;return this[N]-=g,g>0&&(E=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(E=!1,this[o](),super.end()),E}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[D]();break;case"error":return this[L]?void 0:(this[L]=!0,super.emit(g,_));default:return super.emit(g,_)}}},G=class extends B{[P](){let g=!0;try{this[w](null,i.openSync(this[T],"r")),g=!1}finally{g&&this[o]()}}[D](){let g=!0;try{if(!this[z]){this[z]=!0;do{let _=this[d](),E=_.length===0?0:i.readSync(this[u],_,0,_.length,null);if(!this[f](E,_))break}while(!0);this[z]=!1}g=!1}finally{g&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[L]=!1,this[ne]=!1,this[a]=!1,this[y]=!1,this[S]=[],this[T]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[m]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let E=this[M]!==null?"r+":"w";this[q]=_.flags===void 0,this[l]=this[q]?E:_.flags,this[u]===null&&this[P]()}emit(g,_){if(g==="error"){if(this[L])return;this[L]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[T]}[p](g){this[o](),this[ne]=!0,this.emit("error",g)}[P](){i.open(this[T],this[l],this[m],(g,_)=>this[w](g,_))}[w](g,_){this[q]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[P]()):g?this[p](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[ne]&&!this[S].length&&typeof this[u]=="number"&&this[F](null,0),this}write(g,_){return typeof g=="string"&&(g=Buffer.from(g,_)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[ne]||this[S].length?(this[S].push(g),this[y]=!0,!1):(this[ne]=!0,this[te](g),!0)}[te](g){i.write(this[u],g,0,g.length,this[M],(_,E)=>this[F](_,E))}[F](g,_){g?this[p](g):(this[M]!==null&&(this[M]+=_),this[S].length?this[h]():(this[ne]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[S].length===0)this[a]&&this[F](null,0);else if(this[S].length===1)this[te](this[S].pop());else{let g=this[S];this[S]=[],n(this[u],g,this[M],(_,E)=>this[F](_,E))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},j=class extends Z{[P](){let g;if(this[q]&&this[l]==="r+")try{g=i.openSync(this[T],this[l],this[m])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[P]();throw _}else g=i.openSync(this[T],this[l],this[m]);this[w](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}[te](g){let _=!0;try{this[F](null,i.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=B,t.ReadStreamSync=G,t.WriteStream=Z,t.WriteStreamSync=j}),wm=ce((t,e)=>{"use strict";Q();var r=bm(),i=io(),n=he("events"),s=p1(),o=1024*1024,a=gm(),u=_m(),c=c1(),{nextTick:l}=he("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),m=Symbol("readEntry"),y=Symbol("nextEntry"),p=Symbol("processEntry"),w=Symbol("extendedHeader"),C=Symbol("globalExtendedHeader"),F=Symbol("meta"),P=Symbol("emitMeta"),T=Symbol("buffer"),M=Symbol("queue"),S=Symbol("ended"),D=Symbol("emittedEnd"),H=Symbol("emit"),z=Symbol("unzip"),N=Symbol("consumeChunk"),K=Symbol("consumeChunkSub"),te=Symbol("consumeBody"),ne=Symbol("consumeMeta"),q=Symbol("consumeHeader"),L=Symbol("consuming"),B=Symbol("bufferConcat"),G=Symbol("maybeEnd"),Z=Symbol("writing"),j=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),E=Symbol("sawNullBlock"),R=Symbol("sawEOF"),A=Symbol("closeStream"),U=$=>!0;e.exports=r(class extends n{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,re=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,re=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:U,this.writable=!0,this.readable=!1,this[M]=new s,this[T]=null,this[m]=null,this[d]=null,this[f]="begin",this[F]="",this[w]=null,this[C]=null,this[S]=!1,this[z]=null,this[j]=!1,this[E]=!1,this[R]=!1,this.on("end",()=>this[A]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[q]($,re){this[_]===null&&(this[_]=!1);let V;try{V=new i($,re,this[w],this[C])}catch(oe){return this.warn("TAR_ENTRY_INVALID",oe)}if(V.nullBlock)this[E]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[H]("eof")):(this[E]=!0,this[H]("nullBlock"));else if(this[E]=!1,!V.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:V});else if(!V.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:V});else{let oe=V.type;if(/^(Symbolic)?Link$/.test(oe)&&!V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:V});else if(!/^(Symbolic)?Link$/.test(oe)&&V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:V});else{let J=this[d]=new a(V,this[w],this[C]);if(!this[_])if(J.remain){let v=()=>{J.invalid||(this[_]=!0)};J.on("end",v)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[H]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[F]="",J.on("data",v=>this[F]+=v),this[f]="meta"):(this[w]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[H]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[m]?this[M].push(J):(this[M].push(J),this[y]())))}}}[A](){l(()=>this.emit("close"))}[p]($){let re=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[m]=$,this.emit("entry",$),$.emittedEnd||($.on("end",V=>this[y]()),re=!1)):(this[m]=null,re=!1),re}[y](){do;while(this[p](this[M].shift()));if(!this[M].length){let $=this[m];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",re=>this.emit("drain"))}}[te]($,re){let V=this[d],oe=V.blockRemain,J=oe>=$.length&&re===0?$:$.slice(re,re+oe);return V.write(J),V.blockRemain||(this[f]="header",this[d]=null,V.end()),J.length}[ne]($,re){let V=this[d],oe=this[te]($,re);return this[d]||this[P](V),oe}[H]($,re,V){!this[M].length&&!this[m]?this.emit($,re,V):this[M].push([$,re,V])}[P]($){switch(this[H]("meta",this[F]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=u.parse(this[F],this[w],!1);break;case"GlobalExtendedHeader":this[C]=u.parse(this[F],this[C],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null),this[w].path=this[F].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null),this[w].linkpath=this[F].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+$.type)}}abort($){this[j]=!0,this.emit("abort",$),this.warn("TAR_ABORT",$,{recoverable:!1})}write($){if(this[j])return;if(this[z]===null&&$){if(this[T]&&($=Buffer.concat([this[T],$]),this[T]=null),$.length<h.length)return this[T]=$,!0;for(let V=0;this[z]===null&&V<h.length;V++)$[V]!==h[V]&&(this[z]=!1);if(this[z]===null){let V=this[S];this[S]=!1,this[z]=new c.Unzip,this[z].on("data",J=>this[N](J)),this[z].on("error",J=>this.abort(J)),this[z].on("end",J=>{this[S]=!0,this[N]()}),this[Z]=!0;let oe=this[z][V?"end":"write"]($);return this[Z]=!1,oe}}this[Z]=!0,this[z]?this[z].write($):this[N]($),this[Z]=!1;let re=this[M].length?!1:this[m]?this[m].flowing:!0;return!re&&!this[M].length&&this[m].once("drain",V=>this.emit("drain")),re}[B]($){$&&!this[j]&&(this[T]=this[T]?Buffer.concat([this[T],$]):$)}[G](){if(this[S]&&!this[D]&&!this[j]&&!this[L]){this[D]=!0;let $=this[d];if($&&$.blockRemain){let re=this[T]?this[T].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${re} available)`,{entry:$}),this[T]&&$.write(this[T]),$.end()}this[H](g)}}[N]($){if(this[L])this[B]($);else if(!$&&!this[T])this[G]();else{if(this[L]=!0,this[T]){this[B]($);let re=this[T];this[T]=null,this[K](re)}else this[K]($);for(;this[T]&&this[T].length>=512&&!this[j]&&!this[R];){let re=this[T];this[T]=null,this[K](re)}this[L]=!1}(!this[T]||this[S])&&this[G]()}[K]($){let re=0,V=$.length;for(;re+512<=V&&!this[j]&&!this[R];)switch(this[f]){case"begin":case"header":this[q]($,re),re+=512;break;case"ignore":case"body":re+=this[te]($,re);break;case"meta":re+=this[ne]($,re);break;default:throw new Error("invalid state: "+this[f])}re<V&&(this[T]?this[T]=Buffer.concat([$.slice(re),this[T]]):this[T]=$.slice(re))}end($){this[j]||(this[z]?this[z].end($):(this[S]=!0,this.write($)))}})}),vm=ce((t,e)=>{"use strict";Q();var r=to(),i=wm(),n=he("fs"),s=so(),o=he("path"),a=no();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&c(p,m),p.noResume||u(p),p.file&&p.sync?l(p):p.file?h(p,y):f(p)};var u=d=>{let m=d.onentry;d.onentry=m?y=>{m(y),y.resume()}:y=>y.resume()},c=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,w=(C,F)=>{let P=F||o.parse(C).root||".",T=C===P?!1:y.has(C)?y.get(C):w(o.dirname(C),P);return y.set(C,T),T};d.filter=p?(C,F)=>p(C,F)&&w(a(C)):C=>w(a(C))},l=d=>{let m=f(d),y=d.file,p=!0,w;try{let C=n.statSync(y),F=d.maxReadSize||16*1024*1024;if(C.size<F)m.end(n.readFileSync(y));else{let P=0,T=Buffer.allocUnsafe(F);for(w=n.openSync(y,"r");P<C.size;){let M=n.readSync(w,T,0,F,P);P+=M,m.write(T.slice(0,M))}m.end()}p=!1}finally{if(p&&w)try{n.closeSync(w)}catch{}}},h=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,w=d.file,C=new Promise((F,P)=>{y.on("error",P),y.on("end",F),n.stat(w,(T,M)=>{if(T)P(T);else{let S=new s.ReadStream(w,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},f=d=>new i(d)}),Q5=ce((t,e)=>{"use strict";Q();var r=to(),i=Em(),n=so(),s=vm(),o=he("path");e.exports=(d,m,y)=>{if(typeof m=="function"&&(y=m),Array.isArray(d)&&(m=d,d={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.file&&p.sync?a(p,m):p.file?u(p,m,y):p.sync?h(p,m):f(p,m)};var a=(d,m)=>{let y=new i.Sync(d),p=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(p),c(y,m)},u=(d,m,y)=>{let p=new i(d),w=new n.WriteStream(d.file,{mode:d.mode||438});p.pipe(w);let C=new Promise((F,P)=>{w.on("error",P),w.on("close",F),p.on("error",P)});return l(p,m),y?C.then(y,y):C},c=(d,m)=>{m.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:p=>d.add(p)}):d.add(y)}),d.end()},l=(d,m)=>{for(;m.length;){let y=m.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:p=>d.add(p)}).then(p=>l(d,m));d.add(y)}d.end()},h=(d,m)=>{let y=new i.Sync(d);return c(y,m),y},f=(d,m)=>{let y=new i(d);return l(y,m),y}}),m1=ce((t,e)=>{"use strict";Q();var r=to(),i=Em(),n=he("fs"),s=so(),o=vm(),a=he("path"),u=io();e.exports=(m,y,p)=>{let w=r(m);if(!w.file)throw new TypeError("file is required");if(w.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),w.sync?c(w,y):h(w,y,p)};var c=(m,y)=>{let p=new i.Sync(m),w=!0,C,F;try{try{C=n.openSync(m.file,"r+")}catch(M){if(M.code==="ENOENT")C=n.openSync(m.file,"w+");else throw M}let P=n.fstatSync(C),T=Buffer.alloc(512);e:for(F=0;F<P.size;F+=512){for(let D=0,H=0;D<512;D+=H){if(H=n.readSync(C,T,D,T.length-D,F+D),F===0&&T[0]===31&&T[1]===139)throw new Error("cannot append to compressed archives");if(!H)break e}let M=new u(T);if(!M.cksumValid)break;let S=512*Math.ceil(M.size/512);if(F+S+512>P.size)break;F+=S,m.mtimeCache&&m.mtimeCache.set(M.path,M.mtime)}w=!1,l(m,p,F,C,y)}finally{if(w)try{n.closeSync(C)}catch{}}},l=(m,y,p,w,C)=>{let F=new s.WriteStreamSync(m.file,{fd:w,start:p});y.pipe(F),f(y,C)},h=(m,y,p)=>{y=Array.from(y);let w=new i(m),C=(P,T,M)=>{let S=(K,te)=>{K?n.close(P,ne=>M(K)):M(null,te)},D=0;if(T===0)return S(null,0);let H=0,z=Buffer.alloc(512),N=(K,te)=>{if(K)return S(K);if(H+=te,H<512&&te)return n.read(P,z,H,z.length-H,D+H,N);if(D===0&&z[0]===31&&z[1]===139)return S(new Error("cannot append to compressed archives"));if(H<512)return S(null,D);let ne=new u(z);if(!ne.cksumValid)return S(null,D);let q=512*Math.ceil(ne.size/512);if(D+q+512>T||(D+=q+512,D>=T))return S(null,D);m.mtimeCache&&m.mtimeCache.set(ne.path,ne.mtime),H=0,n.read(P,z,0,512,D,N)};n.read(P,z,0,512,D,N)},F=new Promise((P,T)=>{w.on("error",T);let M="r+",S=(D,H)=>{if(D&&D.code==="ENOENT"&&M==="r+")return M="w+",n.open(m.file,M,S);if(D)return T(D);n.fstat(H,(z,N)=>{if(z)return n.close(H,()=>T(z));C(H,N.size,(K,te)=>{if(K)return T(K);let ne=new s.WriteStream(m.file,{fd:H,start:te});w.pipe(ne),ne.on("error",T),ne.on("close",P),d(w,y)})})};n.open(m.file,M,S)});return p?F.then(p,p):F},f=(m,y)=>{y.forEach(p=>{p.charAt(0)==="@"?o({file:a.resolve(m.cwd,p.slice(1)),sync:!0,noResume:!0,onentry:w=>m.add(w)}):m.add(p)}),m.end()},d=(m,y)=>{for(;y.length;){let p=y.shift();if(p.charAt(0)==="@")return o({file:a.resolve(m.cwd,p.slice(1)),noResume:!0,onentry:w=>m.add(w)}).then(w=>d(m,y));m.add(p)}m.end()}}),ej=ce((t,e)=>{"use strict";Q();var r=to(),i=m1();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),tj=ce((t,e)=>{Q();var{promisify:r}=he("util"),i=he("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),rj=ce((t,e)=>{Q();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=he("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),ij=ce((t,e)=>{Q();var{dirname:r}=he("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),y1=ce((t,e)=>{Q();var{dirname:r}=he("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(u,o).then(l=>i(s,o,l));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(l=>{if(l.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(u,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),nj=ce((t,e)=>{Q();var{dirname:r}=he("path"),{findMade:i,findMadeSync:n}=ij(),{mkdirpManual:s,mkdirpManualSync:o}=y1(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):i(l,c).then(h=>l.mkdirAsync(c,l).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,l);throw f}))),u=(c,l)=>{if(l.recursive=!0,r(c)===c)return l.mkdirSync(c,l);let h=n(l,c);try{return l.mkdirSync(c,l),h}catch(f){if(f.code==="ENOENT")return o(c,l);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),sj=ce((t,e)=>{Q();var r=he("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),oj=ce((t,e)=>{Q();var r=tj(),i=rj(),{mkdirpNative:n,mkdirpNativeSync:s}=nj(),{mkdirpManual:o,mkdirpManualSync:a}=y1(),{useNative:u,useNativeSync:c}=sj(),l=(f,d)=>(f=i(f),d=r(d),u(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>n(i(f),r(d)),l.manual=(f,d)=>o(i(f),r(d)),l.nativeSync=(f,d)=>s(i(f),r(d)),l.manualSync=(f,d)=>a(i(f),r(d)),e.exports=l}),aj=ce((t,e)=>{"use strict";Q();var r=he("fs"),i=he("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(F,P,T)=>{try{return r[s](F,P,T)}catch(M){if(M.code!=="ENOENT")throw M}},u=(F,P,T)=>{try{return r.chownSync(F,P,T)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(F,P,T,M)=>S=>{!S||S.code!=="EISDIR"?M(S):r.chown(F,P,T,M)}:(F,P,T,M)=>M,l=o?(F,P,T)=>{try{return a(F,P,T)}catch(M){if(M.code!=="EISDIR")throw M;u(F,P,T)}}:(F,P,T)=>a(F,P,T),h=process.version,f=(F,P,T)=>r.readdir(F,P,T),d=(F,P)=>r.readdirSync(F,P);/^v4\./.test(h)&&(f=(F,P,T)=>r.readdir(F,T));var m=(F,P,T,M)=>{r[n](F,P,T,c(F,P,T,S=>{M(S&&S.code!=="ENOENT"?S:null)}))},y=(F,P,T,M,S)=>{if(typeof P=="string")return r.lstat(i.resolve(F,P),(D,H)=>{if(D)return S(D.code!=="ENOENT"?D:null);H.name=P,y(F,H,T,M,S)});if(P.isDirectory())p(i.resolve(F,P.name),T,M,D=>{if(D)return S(D);let H=i.resolve(F,P.name);m(H,T,M,S)});else{let D=i.resolve(F,P.name);m(D,T,M,S)}},p=(F,P,T,M)=>{f(F,{withFileTypes:!0},(S,D)=>{if(S){if(S.code==="ENOENT")return M();if(S.code!=="ENOTDIR"&&S.code!=="ENOTSUP")return M(S)}if(S||!D.length)return m(F,P,T,M);let H=D.length,z=null,N=K=>{if(!z){if(K)return M(z=K);if(--H===0)return m(F,P,T,M)}};D.forEach(K=>y(F,K,P,T,N))})},w=(F,P,T,M)=>{if(typeof P=="string")try{let S=r.lstatSync(i.resolve(F,P));S.name=P,P=S}catch(S){if(S.code==="ENOENT")return;throw S}P.isDirectory()&&C(i.resolve(F,P.name),T,M),l(i.resolve(F,P.name),T,M)},C=(F,P,T)=>{let M;try{M=d(F,{withFileTypes:!0})}catch(S){if(S.code==="ENOENT")return;if(S.code==="ENOTDIR"||S.code==="ENOTSUP")return l(F,P,T);throw S}return M&&M.length&&M.forEach(S=>w(F,S,P,T)),l(F,P,T)};e.exports=p,p.sync=C}),uj=ce((t,e)=>{"use strict";Q();var r=oj(),i=he("fs"),n=he("path"),s=aj(),o=ro(),a=class extends Error{constructor(y,p){super("Cannot extract through symbolic link"),this.path=p,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,p){super(p+": Cannot cd into '"+y+"'"),this.path=y,this.code=p}get name(){return"CwdError"}},c=(y,p)=>y.get(o(p)),l=(y,p,w)=>y.set(o(p),w),h=(y,p)=>{i.stat(y,(w,C)=>{(w||!C.isDirectory())&&(w=new u(y,w&&w.code||"ENOTDIR")),p(w)})};e.exports=(y,p,w)=>{y=o(y);let C=p.umask,F=p.mode|448,P=(F&C)!==0,T=p.uid,M=p.gid,S=typeof T=="number"&&typeof M=="number"&&(T!==p.processUid||M!==p.processGid),D=p.preserve,H=p.unlink,z=p.cache,N=o(p.cwd),K=(ne,q)=>{ne?w(ne):(l(z,y,!0),q&&S?s(q,T,M,L=>K(L)):P?i.chmod(y,F,w):w())};if(z&&c(z,y)===!0)return K();if(y===N)return h(y,K);if(D)return r(y,{mode:F}).then(ne=>K(null,ne),K);let te=o(n.relative(N,y)).split("/");f(N,te,F,z,H,N,null,K)};var f=(y,p,w,C,F,P,T,M)=>{if(!p.length)return M(null,T);let S=p.shift(),D=o(n.resolve(y+"/"+S));if(c(C,D))return f(D,p,w,C,F,P,T,M);i.mkdir(D,w,d(D,p,w,C,F,P,T,M))},d=(y,p,w,C,F,P,T,M)=>S=>{S?i.lstat(y,(D,H)=>{if(D)D.path=D.path&&o(D.path),M(D);else if(H.isDirectory())f(y,p,w,C,F,P,T,M);else if(F)i.unlink(y,z=>{if(z)return M(z);i.mkdir(y,w,d(y,p,w,C,F,P,T,M))});else{if(H.isSymbolicLink())return M(new a(y,y+"/"+p.join("/")));M(S)}}):(T=T||y,f(y,p,w,C,F,P,T,M))},m=y=>{let p=!1,w="ENOTDIR";try{p=i.statSync(y).isDirectory()}catch(C){w=C.code}finally{if(!p)throw new u(y,w)}};e.exports.sync=(y,p)=>{y=o(y);let w=p.umask,C=p.mode|448,F=(C&w)!==0,P=p.uid,T=p.gid,M=typeof P=="number"&&typeof T=="number"&&(P!==p.processUid||T!==p.processGid),S=p.preserve,D=p.unlink,H=p.cache,z=o(p.cwd),N=ne=>{l(H,y,!0),ne&&M&&s.sync(ne,P,T),F&&i.chmodSync(y,C)};if(H&&c(H,y)===!0)return N();if(y===z)return m(z),N();if(S)return N(r.sync(y,C));let K=o(n.relative(z,y)).split("/"),te=null;for(let ne=K.shift(),q=z;ne&&(q+="/"+ne);ne=K.shift())if(q=o(n.resolve(q)),!c(H,q))try{i.mkdirSync(q,C),te=te||q,l(H,q,!0)}catch{let L=i.lstatSync(q);if(L.isDirectory()){l(H,q,!0);continue}else if(D){i.unlinkSync(q),i.mkdirSync(q,C),te=te||q,l(H,q,!0);continue}else if(L.isSymbolicLink())return new a(q,q+"/"+K.join("/"))}return N(te)}}),g1=ce((t,e)=>{Q();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),cj=ce((t,e)=>{Q();var r=he("assert"),i=g1(),n=no(),{join:s}=he("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=p=>p.split("/").slice(0,-1).reduce((w,C)=>(w.length&&(C=s(w[w.length-1],C)),w.push(C||"/"),w),[]),h=new Set,f=p=>{let w=c.get(p);if(!w)throw new Error("function does not have any path reservations");return{paths:w.paths.map(C=>u.get(C)),dirs:[...w.dirs].map(C=>u.get(C))}},d=p=>{let{paths:w,dirs:C}=f(p);return w.every(F=>F[0]===p)&&C.every(F=>F[0]instanceof Set&&F[0].has(p))},m=p=>h.has(p)||!d(p)?!1:(h.add(p),p(()=>y(p)),!0),y=p=>{if(!h.has(p))return!1;let{paths:w,dirs:C}=c.get(p),F=new Set;return w.forEach(P=>{let T=u.get(P);r.equal(T[0],p),T.length===1?u.delete(P):(T.shift(),typeof T[0]=="function"?F.add(T[0]):T[0].forEach(M=>F.add(M)))}),C.forEach(P=>{let T=u.get(P);r(T[0]instanceof Set),T[0].size===1&&T.length===1?u.delete(P):T[0].size===1?(T.shift(),F.add(T[0])):T[0].delete(p)}),h.delete(p),F.forEach(P=>m(P)),!0};return{check:d,reserve:(p,w)=>{p=a?["win32 parallelization disabled"]:p.map(F=>i(n(s(F))).toLowerCase());let C=new Set(p.map(F=>l(F)).reduce((F,P)=>F.concat(P)));return c.set(w,{dirs:C,paths:p}),p.forEach(F=>{let P=u.get(F);P?P.push(w):u.set(F,[w])}),C.forEach(F=>{let P=u.get(F);P?P[P.length-1]instanceof Set?P[P.length-1].add(w):P.push(new Set([w])):u.set(F,[new Set([w])])}),m(w)}}}}),lj=ce((t,e)=>{Q();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||he("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,c=i&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),_1=ce((t,e)=>{"use strict";Q();var r=he("assert"),i=wm(),n=he("fs"),s=so(),o=he("path"),a=uj(),u=h1(),c=cj(),l=f1(),h=ro(),f=no(),d=g1(),m=Symbol("onEntry"),y=Symbol("checkFs"),p=Symbol("checkFs2"),w=Symbol("pruneCache"),C=Symbol("isReusable"),F=Symbol("makeFs"),P=Symbol("file"),T=Symbol("directory"),M=Symbol("link"),S=Symbol("symlink"),D=Symbol("hardlink"),H=Symbol("unsupported"),z=Symbol("checkPath"),N=Symbol("mkdir"),K=Symbol("onError"),te=Symbol("pending"),ne=Symbol("pend"),q=Symbol("unpend"),L=Symbol("ended"),B=Symbol("maybeClose"),G=Symbol("skip"),Z=Symbol("doChown"),j=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),E=he("crypto"),R=lj(),A=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,U=A==="win32",$=(b,W)=>{if(!U)return n.unlink(b,W);let ee=b+".DELETE."+E.randomBytes(16).toString("hex");n.rename(b,ee,se=>{if(se)return W(se);n.unlink(ee,W)})},re=b=>{if(!U)return n.unlinkSync(b);let W=b+".DELETE."+E.randomBytes(16).toString("hex");n.renameSync(b,W),n.unlinkSync(W)},V=(b,W,ee)=>b===b>>>0?b:W===W>>>0?W:ee,oe=b=>d(f(h(b))).toLowerCase(),J=(b,W)=>{W=oe(W);for(let ee of b.keys()){let se=oe(ee);(se===W||se.indexOf(W+"/")===0)&&b.delete(ee)}},v=b=>{for(let W of b.keys())b.delete(W)},I=class extends i{constructor(b){if(b||(b={}),b.ondone=W=>{this[L]=!0,this[B]()},super(b),this[_]=!1,this.reservations=c(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[te]=0,this[L]=!1,this.dirCache=b.dirCache||new Map,typeof b.uid=="number"||typeof b.gid=="number"){if(typeof b.uid!="number"||typeof b.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(b.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=b.uid,this.gid=b.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;b.preserveOwner===void 0&&typeof b.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!b.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=b.forceChown===!0,this.win32=!!b.win32||U,this.newer=!!b.newer,this.keep=!!b.keep,this.noMtime=!!b.noMtime,this.preservePaths=!!b.preservePaths,this.unlink=!!b.unlink,this.cwd=h(o.resolve(b.cwd||process.cwd())),this.strip=+b.strip||0,this.processUmask=b.noChmod?0:process.umask(),this.umask=typeof b.umask=="number"?b.umask:this.processUmask,this.dmode=b.dmode||511&~this.umask,this.fmode=b.fmode||438&~this.umask,this.on("entry",W=>this[m](W))}warn(b,W,ee={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(ee.recoverable=!1),super.warn(b,W,ee)}[B](){this[L]&&this[te]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[z](b){if(this.strip){let W=h(b.path).split("/");if(W.length<this.strip)return!1;if(b.path=W.slice(this.strip).join("/"),b.type==="Link"){let ee=h(b.linkpath).split("/");if(ee.length>=this.strip)b.linkpath=ee.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let W=h(b.path),ee=W.split("/");if(ee.includes("..")||U&&/^[a-z]:\.\.$/i.test(ee[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:W}),!1;let[se,le]=l(W);se&&(b.path=le,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:b,path:W}))}if(o.isAbsolute(b.path)?b.absolute=h(o.resolve(b.path)):b.absolute=h(o.resolve(this.cwd,b.path)),!this.preservePaths&&b.absolute.indexOf(this.cwd+"/")!==0&&b.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:b,path:h(b.path),resolvedPath:b.absolute,cwd:this.cwd}),!1;if(b.absolute===this.cwd&&b.type!=="Directory"&&b.type!=="GNUDumpDir")return!1;if(this.win32){let{root:W}=o.win32.parse(b.absolute);b.absolute=W+u.encode(b.absolute.slice(W.length));let{root:ee}=o.win32.parse(b.path);b.path=ee+u.encode(b.path.slice(ee.length))}return!0}[m](b){if(!this[z](b))return b.resume();switch(r.equal(typeof b.absolute,"string"),b.type){case"Directory":case"GNUDumpDir":b.mode&&(b.mode=b.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](b);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[H](b)}}[K](b,W){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:W}),this[q](),W.resume())}[N](b,W,ee){a(h(b),{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:W,noChmod:this.noChmod},ee)}[Z](b){return this.forceChown||this.preserveOwner&&(typeof b.uid=="number"&&b.uid!==this.processUid||typeof b.gid=="number"&&b.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[j](b){return V(this.uid,b.uid,this.processUid)}[g](b){return V(this.gid,b.gid,this.processGid)}[P](b,W){let ee=b.mode&4095||this.fmode,se=new s.WriteStream(b.absolute,{flags:R(b.size),mode:ee,autoClose:!1});se.on("error",pe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[K](pe,b),W()});let le=1,me=pe=>{if(pe){se.fd&&n.close(se.fd,()=>{}),this[K](pe,b),W();return}--le===0&&n.close(se.fd,Fe=>{Fe?this[K](Fe,b):this[q](),W()})};se.on("finish",pe=>{let Fe=b.absolute,Rt=se.fd;if(b.mtime&&!this.noMtime){le++;let Tt=b.atime||new Date,Xn=b.mtime;n.futimes(Rt,Tt,Xn,Qn=>Qn?n.utimes(Fe,Tt,Xn,gc=>me(gc&&Qn)):me())}if(this[Z](b)){le++;let Tt=this[j](b),Xn=this[g](b);n.fchown(Rt,Tt,Xn,Qn=>Qn?n.chown(Fe,Tt,Xn,gc=>me(gc&&Qn)):me())}me()});let ye=this.transform&&this.transform(b)||b;ye!==b&&(ye.on("error",pe=>{this[K](pe,b),W()}),b.pipe(ye)),ye.pipe(se)}[T](b,W){let ee=b.mode&4095||this.dmode;this[N](b.absolute,ee,se=>{if(se){this[K](se,b),W();return}let le=1,me=ye=>{--le===0&&(W(),this[q](),b.resume())};b.mtime&&!this.noMtime&&(le++,n.utimes(b.absolute,b.atime||new Date,b.mtime,me)),this[Z](b)&&(le++,n.chown(b.absolute,this[j](b),this[g](b),me)),me()})}[H](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[S](b,W){this[M](b,b.linkpath,"symlink",W)}[D](b,W){let ee=h(o.resolve(this.cwd,b.linkpath));this[M](b,ee,"link",W)}[ne](){this[te]++}[q](){this[te]--,this[B]()}[G](b){this[q](),b.resume()}[C](b,W){return b.type==="File"&&!this.unlink&&W.isFile()&&W.nlink<=1&&!U}[y](b){this[ne]();let W=[b.path];b.linkpath&&W.push(b.linkpath),this.reservations.reserve(W,ee=>this[p](b,ee))}[w](b){b.type==="SymbolicLink"?v(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[p](b,W){this[w](b);let ee=ye=>{this[w](b),W(ye)},se=()=>{this[N](this.cwd,this.dmode,ye=>{if(ye){this[K](ye,b),ee();return}this[_]=!0,le()})},le=()=>{if(b.absolute!==this.cwd){let ye=h(o.dirname(b.absolute));if(ye!==this.cwd)return this[N](ye,this.dmode,pe=>{if(pe){this[K](pe,b),ee();return}me()})}me()},me=()=>{n.lstat(b.absolute,(ye,pe)=>{if(pe&&(this.keep||this.newer&&pe.mtime>b.mtime)){this[G](b),ee();return}if(ye||this[C](b,pe))return this[F](null,b,ee);if(pe.isDirectory()){if(b.type==="Directory"){let Fe=!this.noChmod&&b.mode&&(pe.mode&4095)!==b.mode,Rt=Tt=>this[F](Tt,b,ee);return Fe?n.chmod(b.absolute,b.mode,Rt):Rt()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,Fe=>this[F](Fe,b,ee))}if(b.absolute===this.cwd)return this[F](null,b,ee);$(b.absolute,Fe=>this[F](Fe,b,ee))})};this[_]?le():se()}[F](b,W,ee){if(b){this[K](b,W),ee();return}switch(W.type){case"File":case"OldFile":case"ContiguousFile":return this[P](W,ee);case"Link":return this[D](W,ee);case"SymbolicLink":return this[S](W,ee);case"Directory":case"GNUDumpDir":return this[T](W,ee)}}[M](b,W,ee,se){n[ee](W,b.absolute,le=>{le?this[K](le,b):(this[q](),b.resume()),se()})}},x=b=>{try{return[null,b()]}catch(W){return[W,null]}},X=class extends I{[F](b,W){return super[F](b,W,()=>{})}[y](b){if(this[w](b),!this[_]){let le=this[N](this.cwd,this.dmode);if(le)return this[K](le,b);this[_]=!0}if(b.absolute!==this.cwd){let le=h(o.dirname(b.absolute));if(le!==this.cwd){let me=this[N](le,this.dmode);if(me)return this[K](me,b)}}let[W,ee]=x(()=>n.lstatSync(b.absolute));if(ee&&(this.keep||this.newer&&ee.mtime>b.mtime))return this[G](b);if(W||this[C](b,ee))return this[F](null,b);if(ee.isDirectory()){if(b.type==="Directory"){let me=!this.noChmod&&b.mode&&(ee.mode&4095)!==b.mode,[ye]=me?x(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[F](ye,b)}let[le]=x(()=>n.rmdirSync(b.absolute));this[F](le,b)}let[se]=b.absolute===this.cwd?[]:x(()=>re(b.absolute));this[F](se,b)}[P](b,W){let ee=b.mode&4095||this.fmode,se=ye=>{let pe;try{n.closeSync(le)}catch(Fe){pe=Fe}(ye||pe)&&this[K](ye||pe,b),W()},le;try{le=n.openSync(b.absolute,R(b.size),ee)}catch(ye){return se(ye)}let me=this.transform&&this.transform(b)||b;me!==b&&(me.on("error",ye=>this[K](ye,b)),b.pipe(me)),me.on("data",ye=>{try{n.writeSync(le,ye,0,ye.length)}catch(pe){se(pe)}}),me.on("end",ye=>{let pe=null;if(b.mtime&&!this.noMtime){let Fe=b.atime||new Date,Rt=b.mtime;try{n.futimesSync(le,Fe,Rt)}catch(Tt){try{n.utimesSync(b.absolute,Fe,Rt)}catch{pe=Tt}}}if(this[Z](b)){let Fe=this[j](b),Rt=this[g](b);try{n.fchownSync(le,Fe,Rt)}catch(Tt){try{n.chownSync(b.absolute,Fe,Rt)}catch{pe=pe||Tt}}}se(pe)})}[T](b,W){let ee=b.mode&4095||this.dmode,se=this[N](b.absolute,ee);if(se){this[K](se,b),W();return}if(b.mtime&&!this.noMtime)try{n.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{n.chownSync(b.absolute,this[j](b),this[g](b))}catch{}W(),b.resume()}[N](b,W){try{return a.sync(h(b),{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:W})}catch(ee){return ee}}[M](b,W,ee,se){try{n[ee+"Sync"](W,b.absolute),se(),b.resume()}catch(le){return this[K](le,b)}}};I.Sync=X,e.exports=I}),hj=ce((t,e)=>{"use strict";Q();var r=to(),i=_1(),n=he("fs"),s=so(),o=he("path"),a=no();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&u(p,m),p.file&&p.sync?c(p):p.file?l(p,y):p.sync?h(p):f(p)};var u=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,w=(C,F)=>{let P=F||o.parse(C).root||".",T=C===P?!1:y.has(C)?y.get(C):w(o.dirname(C),P);return y.set(C,T),T};d.filter=p?(C,F)=>p(C,F)&&w(a(C)):C=>w(a(C))},c=d=>{let m=new i.Sync(d),y=d.file,p=n.statSync(y),w=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:w,size:p.size}).pipe(m)},l=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,w=d.file,C=new Promise((F,P)=>{y.on("error",P),y.on("close",F),n.stat(w,(T,M)=>{if(T)P(T);else{let S=new s.ReadStream(w,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},h=d=>new i.Sync(d),f=d=>new i(d)}),fj=ce(t=>{"use strict";Q(),t.c=t.create=Q5(),t.r=t.replace=m1(),t.t=t.list=vm(),t.u=t.update=ej(),t.x=t.extract=hj(),t.Pack=Em(),t.Unpack=_1(),t.Parse=wm(),t.ReadEntry=gm(),t.WriteEntry=d1(),t.Header=io(),t.Pax=_m(),t.types=l1()}),dj=ce((t,e)=>{Q();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(i[u]||0)+1;i[u]=c,c>=s&&(n=a,s=c)}return n}}),pj=ce(t=>{Q();var e=dj();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(c){var l=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){c.apply(r,h)})}.bind(r,u),r[a].options=i}}}),mj=ce((t,e)=>{Q(),e.exports=pj()}),yj=ce((t,e)=>{Q();var r=mj();function i(n,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(m){u(m||new Error("Aborted"))}function f(m,y){if(m.bail){h(m);return}l.retry(m)?c.onRetry&&c.onRetry(m,y):u(l.mainError())}function d(m){var y;try{y=n(h,m)}catch(p){f(p,m);return}Promise.resolve(y).then(a).catch(function(p){f(p,m)})}l.attempt(d)}return new Promise(o)}e.exports=i}),gj={};M5(gj,{bold:()=>vj,dimmed:()=>Dj,error:()=>Rj,grey:()=>Aj,info:()=>wj,item:()=>xj,log:()=>Fi,turboBlue:()=>Yn,turboGradient:()=>bj,turboLoader:()=>Ej,turboRed:()=>S1,underline:()=>Sj,warn:()=>Cj,yellow:()=>D1});Q();var w1="#0099F7",v1="#F11712",_j="#FFFF00",bj=(0,E1.default)(w1,v1),Yn=ti.default.hex(w1),S1=ti.default.hex(v1),D1=ti.default.hex(_j),Ej=t=>(0,b1.default)({text:t,spinner:{frames:[" ",Yn("> "),Yn(">> "),Yn(">>>")]}}),wj=(...t)=>{Fi(Yn.bold(">>>"),...t)},vj=(...t)=>{Fi(ti.default.bold(...t))},Sj=(...t)=>{Fi(ti.default.underline(...t))},Dj=(...t)=>{Fi(ti.default.dim(...t))},Aj=(...t)=>{Fi(ti.default.grey(...t))},xj=(...t)=>{Fi(Yn.bold(" \u2022"),...t)},Fi=(...t)=>{console.log(...t)},Cj=(...t)=>{console.error(D1.bold(">>>"),...t)},Rj=(...t)=>{console.error(S1.bold(">>>"),...t)};Q();async function ic(t,e=[],r){let i={cwd:A1.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,x1.default)(t,e,i);return n.trim()}catch{return}}async function C1(){let[t,e,r,i]=await Promise.all([ic("yarnpkg",["--version"]),ic("npm",["--version"]),ic("pnpm",["--version"]),ic("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}Q();Q();Q();var p7=oc(U5());Q();Q();function Tj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Q();Q();function dm(t){return dm=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},dm(t)}Q();function kj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oj(t,e){if(e&&(dm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kj(t)}Q();function sc(t){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sc(t)}Q();Q();function Xs(t,e){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xs(t,e)}function Fj(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&&Xs(t,e)}Q();Q();function Pj(t){return Function.toString.call(t).indexOf("[native code]")!==-1}Q();Q();function Lj(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nc(t,e,r){return Lj()?nc=Reflect.construct.bind():nc=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&Xs(u,s.prototype),u},nc.apply(null,arguments)}function pm(t){var e=typeof Map=="function"?new Map:void 0;return pm=function(r){if(r===null||!Pj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return nc(r,arguments,sc(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xs(i,r)},pm(t)}var m7=oc(Y5()),_7=function(t){Fj(e,t);function e(r){var i;return Tj(this,e),i=Oj(this,sc(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(pm(Error));Q();Q();Q();Q();Q();Q();var T7=oc(fj()),k7=(0,T1.promisify)(R1.Stream.pipeline);Q();Q();var L7=oc(yj());Q();Q();Q();var ke=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,ke)}};Q();Q();Q();Q();var Bj=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function ot({workspaceRoot:t}){let e=Dr.default.join(t,"package.json");try{return(0,pt.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new ke(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new ke(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function ac({workspaceRoot:t}){let{packageManager:e}=ot({workspaceRoot:t});if(e)try{let r=Bj.exec(e);if(r){let[i,n]=r;return n}}catch{}}function oo({workspaceRoot:t}){let e=ot({workspaceRoot:t}),r=Dr.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function n1({workspaceRoot:t}){let e=Dr.default.join(t,"pnpm-workspace.yaml");if((0,pt.existsSync)(e))try{let r=Wc.load((0,pt.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new ke(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function uc({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Dr.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Sm({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function cc({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,B1.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Dr.default.dirname(r),{name:n,description:s}=oo({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Dr.default.join(i,"node_modules")}}}):[]}function Ij({directory:t}){let e=Dr.default.resolve(process.cwd(),t);return{exists:(0,pt.existsSync)(e),absolute:e}}function ri({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Nj({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Sr({project:t,options:e}){e!=null&&e.dry||(0,pt.rmSync)(t.paths.lockfile,{force:!0})}async function I1({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,pt.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,L1.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,pt.writeFile)(Dr.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,pt.rmSync)(t.paths.lockfile,{force:!0})}}function Mj({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function Qr({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=ot({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:m}=Mj({dependencyList:f,project:t,to:r});s[h]=m,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${P1.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${O1.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${l}`:d===c.length-1?h+=`and ${f} in ${l}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${l}`);n!=null&&n.dry||(0,F1.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var ei={name:"pnpm",lock:"pnpm-lock.yaml"};async function N1(t){let e=ki.default.join(t.workspaceRoot,ei.lock),r=ki.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=ac({workspaceRoot:t.workspaceRoot});return(0,Qe.existsSync)(e)||(0,Qe.existsSync)(r)||i===ei.name}async function jj(t){if(!await N1(t))throw new ke("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=oo(t);return{name:e,description:r,packageManager:ei.name,paths:uc({root:t.workspaceRoot,lockFile:ei.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:n1(t),workspaces:cc({workspaceGlobs:n1(t),...t})}}}async function qj(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(ri({action:"create",packageManager:ei.name,project:e}));let o=ot({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,Qe.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,Qe.writeFileSync)(ki.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
57
57
|
${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
|
58
|
-
`)}`))),s&&(Xr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Xr({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Nj(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ei({action:"remove",packageManager:Qr.name,project:e}));let s=ot({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,Qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Mj(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Ri.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Qe.rmSync)(e.paths.lockfile,{force:!0})}async function jj(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Ri.default.relative(e.paths.root,e.paths.lockfile)} to ${Qr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,Qe.existsSync)(e.paths.lockfile))try{await(0,T1.default)(Qr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Sr({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await B1({project:e,options:r}),await s(),(0,Qe.rmSync)(Ri.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var qj={detect:I1,read:Bj,create:Ij,remove:Nj,clean:Mj,convertLock:jj};te();var Vn={name:"npm",lock:"package-lock.json"};async function N1(t){let e=Xs.default.join(t.workspaceRoot,Vn.lock),r=ac({workspaceRoot:t.workspaceRoot});return(0,Zt.existsSync)(e)||r===Vn.name}async function Hj(t){if(!await N1(t))throw new ke("Not an npm project",{type:"package_manager-unexpected"});let e=ot(t),{name:r,description:i}=oo(t),n=Sm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Vn.name,paths:uc({root:t.workspaceRoot,lockFile:Vn.lock}),workspaceData:{globs:n,workspaces:cc({workspaceGlobs:n,...t})}}}async function Uj(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(ei({packageManager:Vn.name,action:"create",project:e}));let o=ot({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Xs.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${Xs.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Zt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Xr({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Xr({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Zt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function $j(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ei({packageManager:Vn.name,action:"remove",project:e}));let s=ot({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Zt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Zt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Gj(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Xs.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Zt.rmSync)(e.paths.lockfile,{force:!0})}async function zj(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Sr({project:e,options:r});break;case"bun":Sr({project:e,options:r});break;case"npm":break;case"yarn":Sr({project:e,options:r});break}}var Wj={detect:N1,read:Hj,create:Uj,remove:$j,clean:Gj,convertLock:zj};te();var Ti={name:"yarn",lock:"yarn.lock"};async function M1(t){let e=Yn.default.join(t.workspaceRoot,Ti.lock),r=ac({workspaceRoot:t.workspaceRoot});return(0,Jt.existsSync)(e)||r===Ti.name}async function Vj(t){if(!await M1(t))throw new ke("Not a yarn project",{type:"package_manager-unexpected"});let e=ot(t),{name:r,description:i}=oo(t),n=Sm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ti.name,paths:uc({root:t.workspaceRoot,lockFile:Ti.lock}),workspaceData:{globs:n,workspaces:cc({workspaceGlobs:n,...t})}}}async function Yj(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(ei({packageManager:Ti.name,action:"create",project:e}));let o=ot({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${Yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Jt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Xr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Xr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Jt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Kj(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ei({packageManager:Ti.name,action:"remove",project:e}));let s=ot({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Jt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Jt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Zj(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Yn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Jt.rmSync)(e.paths.lockfile,{force:!0})}async function Jj(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Yn.default.relative(e.paths.root,e.paths.lockfile)} to ${Ti.lock}`)};switch(e.packageManager){case"pnpm":Sr({project:e,options:r});break;case"bun":n(),await B1({project:e,options:r});break;case"npm":Sr({project:e,options:r});break;case"yarn":break}}var Xj={detect:M1,read:Vj,create:Yj,remove:Kj,clean:Zj,convertLock:Jj};te();var Kn={name:"bun",lock:"bun.lockb"};async function j1(t){let e=Qs.default.join(t.workspaceRoot,Kn.lock),r=ac({workspaceRoot:t.workspaceRoot});return(0,Xt.existsSync)(e)||r===Kn.name}async function Qj(t){if(!await j1(t))throw new ke("Not a bun project",{type:"package_manager-unexpected"});let e=ot(t),{name:r,description:i}=oo(t),n=Sm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Kn.name,paths:uc({root:t.workspaceRoot,lockFile:Kn.lock}),workspaceData:{globs:n,workspaces:cc({workspaceGlobs:n,...t})}}}async function eq(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Pj({project:e}))throw new ke("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(ei({packageManager:Kn.name,action:"create",project:e}));let o=ot({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Qs.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${Qs.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Xr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Xr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function tq(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ei({packageManager:Kn.name,action:"remove",project:e}));let s=ot({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function rq(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Qs.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Xt.rmSync)(e.paths.lockfile,{force:!0})}async function iq(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Sr({project:e,options:r});break;case"bun":break;case"npm":Sr({project:e,options:r});break;case"yarn":Sr({project:e,options:r});break}}var nq={detect:j1,read:Qj,create:eq,remove:tq,clean:rq,convertLock:iq},zn={pnpm:qj,yarn:Xj,npm:Wj,bun:nq};te();async function lc({root:t}){let{exists:e,absolute:r}=Fj({directory:t});if(!e)throw new ke(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(zn))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new ke("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}te();var Gn=2,Dm=class{constructor({interactive:t,dry:e}={}){this.interactive=t!=null?t:!0,this.dry=e!=null?e:!1,this.step=1}logger(...t){this.interactive&&console.log(...t)}indented(t,...e){this.logger(" ".repeat(Gn*t),...e)}header(t){this.blankLine(),this.logger(dt.default.bold(t))}installerFrames(){let t=`${" ".repeat(Gn)} - ${this.dry?dt.default.yellow("SKIPPED | "):dt.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,q1.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(dt.default.bold(this.gradient(`
|
58
|
+
`)}`))),s&&(Qr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Qr({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Hj(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ri({action:"remove",packageManager:ei.name,project:e}));let s=ot({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,Qe.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Qe.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Qe.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Uj(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${ki.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Qe.rmSync)(e.paths.lockfile,{force:!0})}async function $j(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${ki.default.relative(e.paths.root,e.paths.lockfile)} to ${ei.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,Qe.existsSync)(e.paths.lockfile))try{await(0,k1.default)(ei.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Sr({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await I1({project:e,options:r}),await s(),(0,Qe.rmSync)(ki.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var Gj={detect:N1,read:jj,create:qj,remove:Hj,clean:Uj,convertLock:$j};Q();var Kn={name:"npm",lock:"package-lock.json"};async function M1(t){let e=Qs.default.join(t.workspaceRoot,Kn.lock),r=ac({workspaceRoot:t.workspaceRoot});return(0,Zt.existsSync)(e)||r===Kn.name}async function zj(t){if(!await M1(t))throw new ke("Not an npm project",{type:"package_manager-unexpected"});let e=ot(t),{name:r,description:i}=oo(t),n=Sm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Kn.name,paths:uc({root:t.workspaceRoot,lockFile:Kn.lock}),workspaceData:{globs:n,workspaces:cc({workspaceGlobs:n,...t})}}}async function Wj(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(ri({packageManager:Kn.name,action:"create",project:e}));let o=ot({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Qs.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${Qs.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Zt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Qr({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Qr({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Zt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Vj(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ri({packageManager:Kn.name,action:"remove",project:e}));let s=ot({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Zt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Zt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Yj(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Qs.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Zt.rmSync)(e.paths.lockfile,{force:!0})}async function Kj(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Sr({project:e,options:r});break;case"bun":Sr({project:e,options:r});break;case"npm":break;case"yarn":Sr({project:e,options:r});break}}var Zj={detect:M1,read:zj,create:Wj,remove:Vj,clean:Yj,convertLock:Kj};Q();var Oi={name:"yarn",lock:"yarn.lock"};async function j1(t){let e=Zn.default.join(t.workspaceRoot,Oi.lock),r=ac({workspaceRoot:t.workspaceRoot});return(0,Jt.existsSync)(e)||r===Oi.name}async function Jj(t){if(!await j1(t))throw new ke("Not a yarn project",{type:"package_manager-unexpected"});let e=ot(t),{name:r,description:i}=oo(t),n=Sm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Oi.name,paths:uc({root:t.workspaceRoot,lockFile:Oi.lock}),workspaceData:{globs:n,workspaces:cc({workspaceGlobs:n,...t})}}}async function Xj(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(ri({packageManager:Oi.name,action:"create",project:e}));let o=ot({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Zn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${Zn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Jt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Qr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Qr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Jt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Qj(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ri({packageManager:Oi.name,action:"remove",project:e}));let s=ot({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Jt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Jt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function eq(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Zn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Jt.rmSync)(e.paths.lockfile,{force:!0})}async function tq(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Zn.default.relative(e.paths.root,e.paths.lockfile)} to ${Oi.lock}`)};switch(e.packageManager){case"pnpm":Sr({project:e,options:r});break;case"bun":n(),await I1({project:e,options:r});break;case"npm":Sr({project:e,options:r});break;case"yarn":break}}var rq={detect:j1,read:Jj,create:Xj,remove:Qj,clean:eq,convertLock:tq};Q();var Jn={name:"bun",lock:"bun.lockb"};async function q1(t){let e=eo.default.join(t.workspaceRoot,Jn.lock),r=ac({workspaceRoot:t.workspaceRoot});return(0,Xt.existsSync)(e)||r===Jn.name}async function iq(t){if(!await q1(t))throw new ke("Not a bun project",{type:"package_manager-unexpected"});let e=ot(t),{name:r,description:i}=oo(t),n=Sm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Jn.name,paths:uc({root:t.workspaceRoot,lockFile:Jn.lock}),workspaceData:{globs:n,workspaces:cc({workspaceGlobs:n,...t})}}}async function nq(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Nj({project:e}))throw new ke("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(ri({packageManager:Jn.name,action:"create",project:e}));let o=ot({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${eo.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${eo.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Qr({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Qr({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function sq(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(ri({packageManager:Jn.name,action:"remove",project:e}));let s=ot({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function oq(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${eo.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Xt.rmSync)(e.paths.lockfile,{force:!0})}async function aq(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Sr({project:e,options:r});break;case"bun":break;case"npm":Sr({project:e,options:r});break;case"yarn":Sr({project:e,options:r});break}}var uq={detect:q1,read:iq,create:nq,remove:sq,clean:oq,convertLock:aq},Vn={pnpm:Gj,yarn:rq,npm:Zj,bun:uq};Q();async function lc({root:t}){let{exists:e,absolute:r}=Ij({directory:t});if(!e)throw new ke(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Vn))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new ke("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}Q();var Wn=2,Dm=class{constructor({interactive:t,dry:e}={}){this.interactive=t!=null?t:!0,this.dry=e!=null?e:!1,this.step=1}logger(...t){this.interactive&&console.log(...t)}indented(t,...e){this.logger(" ".repeat(Wn*t),...e)}header(t){this.blankLine(),this.logger(dt.default.bold(t))}installerFrames(){let t=`${" ".repeat(Wn)} - ${this.dry?dt.default.yellow("SKIPPED | "):dt.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,H1.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(dt.default.bold(this.gradient(`
|
59
59
|
>>> TURBOREPO
|
60
|
-
`)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${dt.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(
|
60
|
+
`)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${dt.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(Wn),"-",this.dry?dt.default.yellow("SKIPPED |"):dt.default.green("OK |"),...t)}subStepFailure(...t){this.logger(" ".repeat(Wn),"-",dt.default.red("ERROR |"),...t)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...t){this.logger(" ".repeat(Wn*3),"-",this.dry?dt.default.yellow("SKIPPED |"):dt.default.green("OK |"),...t)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...t){this.logger(" ".repeat(Wn*3),"-",this.dry?dt.default.yellow("SKIPPED |"):dt.default.green("OK |"),...t)}blankLine(){this.logger()}error(...t){console.error(...t)}};Q();var s1={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install","--fix-lockfile"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}],bun:[{name:"bun",template:"bun",command:"bun",installArgs:["install"],version:"latest",executable:"bunx",semver:"^1.0.1",default:!0}]};function hc(t){let{version:e,name:r}=t;return e?s1[r].find(i=>(0,G1.satisfies)(e,i.semver)):s1[r].find(i=>i.default)}async function fc(t){let{to:e,logger:r,options:i}=t,n=r!=null?r:new Dm(i),s=hc(e);if(!s)throw new ke("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(n.subStep(`running "${s.command} ${s.installArgs.join(" ")}"`),!(i!=null&&i.dry)){let o;n.interactive&&(o=(0,$1.default)({text:"installing dependencies...",spinner:{frames:n.installerFrames()}}).start());try{await(0,U1.default)(s.command,s.installArgs,{cwd:t.project.paths.root}),o&&o.stop(),n.subStep("dependencies installed")}catch(a){throw n.subStepFailure("failed to install dependencies"),a}}}Q();async function W1({project:t,convertTo:e,logger:r,options:i}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),t.packageManager===e.name)throw new ke("You are already using this package manager",{type:"package_manager-already_in_use"});if(!e.version)throw new ke(`${e.name} is not installed, or could not be located`,{type:"package_manager-could_not_be_found"});let n=e;await Vn[t.packageManager].remove({project:t,to:n,logger:r,options:i}),await Vn[n.name].create({project:t,to:n,logger:r,options:i}),r.mainStep("Installing dependencies"),i!=null&&i.skipInstall?r.subStep(z1.default.yellow("Skipping install")):(await Vn[n.name].convertLock({project:t,to:n,logger:r,options:i}),await fc({project:t,to:n,logger:r,options:i})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),await Vn[t.packageManager].clean({project:t,logger:r})}Q();async function V1({root:t,to:e,options:r}){let i=new Dm({...r,interactive:!1}),[n,s]=await Promise.all([lc({root:t}),C1()]);await W1({project:n,convertTo:{name:e,version:s[e]},logger:i,options:r})}var ii=require("child_process"),Y1=ae(require("path")),K1=require("rimraf"),Z1=`
|
61
61
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
62
62
|
|
63
63
|
# dependencies
|
@@ -82,9 +82,9 @@ yarn-error.log*
|
|
82
82
|
|
83
83
|
# vercel
|
84
84
|
.vercel
|
85
|
-
`,
|
85
|
+
`,cq="git rev-parse --is-inside-work-tree",lq="hg --cwd . root";function hq(){try{return(0,ii.execSync)(cq,{stdio:"ignore"}),!0}catch{}return!1}function fq(){try{return(0,ii.execSync)(lq,{stdio:"ignore"}),!0}catch{}return!1}function J1(t,e){let r=!1;try{return hq()||fq()?!1:((0,ii.execSync)("git init",{stdio:"ignore"}),(0,ii.execSync)("git add -A",{stdio:"ignore"}),r=!0,(0,ii.execSync)("git checkout -b main",{stdio:"ignore"}),Q1(e),!0)}catch{if(r)try{(0,K1.sync)(Y1.default.join(t,".git"))}catch{}return!1}}function Am(t){try{return Q1(t),!0}catch{return!1}}function X1(){try{dq()}catch{}}function dq(){(0,ii.execSync)("git add -A",{stdio:"ignore"})}function Q1(t){(0,ii.execSync)(`git commit --author="Turbobot <turbobot@vercel.com>" -am "${t}"`,{stdio:"ignore"})}var eC=require("child_process"),xm=ae(require("dns")),tC=ae(require("url"));function pq(){if(process.env.https_proxy)return process.env.https_proxy;try{let t=(0,eC.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:void 0}catch{}}function rC(){return new Promise(t=>{xm.default.lookup("registry.yarnpkg.com",e=>{if(!e){t(!0);return}let r=pq();if(!r){t(!1);return}let{hostname:i}=tC.default.parse(r);if(!i){t(!1);return}xm.default.lookup(i,n=>{t(n===null)})})})}var iC={name:"package-manager"};async function nC(t){let{project:e,prompts:r}=t,{root:i,packageManager:n}=r;if(n&&e.packageManager!==n.name)await V1({root:i,to:n.name,options:{skipInstall:!0}});else return{result:"not-applicable",...iC};return{result:"success",...iC}}var Cm=ae(require("path")),ni=require("fs-extra"),sC=ae(require("semver/functions/prerelease"));var mq=new Set(["basic","default"]);function dc(t){return mq.has(t)}var Lt=class extends Error{constructor(r,i){var n,s;super(r);this.name="TransformError",this.transform=(n=i==null?void 0:i.transform)!=null?n:"unknown",this.fatal=(s=i==null?void 0:i.fatal)!=null?s:!0,Error.captureStackTrace(this,Lt)}};var pc={name:"official-starter"};async function oC(t){var c;let{prompts:e,example:r,opts:i}=t,n=dc(r.name);if(!(!r.repo||r.repo.username==="vercel"&&r.repo.name==="turbo"))return{result:"not-applicable",...pc};let o=Cm.default.join(e.root,"package.json"),a=Cm.default.join(e.root,"meta.json"),u=(0,ni.existsSync)(o);try{(0,ni.rmSync)(a,{force:!0})}catch{}if(u){let l;try{l=(0,ni.readJsonSync)(o)}catch{throw new Lt("Unable to read package.json",{transform:pc.name,fatal:!1})}if(l){if(n&&(l.name=e.projectName),(c=l.devDependencies)!=null&&c.turbo){let h=(0,sC.default)(zn.version)!==null;i.turboVersion?l.devDependencies.turbo=i.turboVersion:h?l.devDependencies.turbo="canary":l.devDependencies.turbo="latest"}try{(0,ni.writeJsonSync)(o,l,{spaces:2})}catch{throw new Lt("Unable to write package.json",{transform:pc.name,fatal:!1})}}}return{result:"success",...pc}}var aC=ae(require("path")),Tm=ae(require("fs-extra"));var Rm={name:"git-ignore"};async function uC(t){let{prompts:e}=t,r=aC.default.join(e.root,".gitignore");try{if(!Tm.default.existsSync(r))Tm.default.writeFileSync(r,Z1);else return{result:"not-applicable",...Rm}}catch{throw new Lt("Unable to write .gitignore",{transform:Rm.name,fatal:!1})}return{result:"success",...Rm}}var mc=require("fs-extra"),cC={name:"pnpm-eslint"},yq={"eslint.workingDirectories":[{mode:"auto"}]};async function lC(t){let{project:e,prompts:r}=t,{packageManager:i}=r;if((i==null?void 0:i.name)==="pnpm")await(0,mc.mkdir)(`${e.paths.root}/.vscode`,{recursive:!0}),await(0,mc.writeJson)(`${e.paths.root}/.vscode/settings.json`,yq,{spaces:2});else return{result:"not-applicable",...cC};return{result:"success",...cC}}var hC=[oC,uC,nC,lC];var km=ae(require("inquirer"));async function fC({dir:t}){let e=await km.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!t,default:"./my-turborepo",validate:i=>{let{valid:n,error:s}=wa(i);return!n&&s?s:!0},filter:i=>i.trim()}),{projectDirectory:r=t}=e;return wa(r)}async function dC({manager:t,skipTransforms:e}){if(e)return;let r=await bs(),i=await km.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!t||!r[t],choices:[{pm:"npm",label:"npm workspaces"},{pm:"pnpm",label:"pnpm workspaces"},{pm:"yarn",label:"yarn workspaces"},{pm:"bun",label:"bun workspaces (beta)"}].map(({pm:s,label:o})=>({name:o,value:s,disabled:r[s]?!1:"not installed"}))}),{packageManagerInput:n=t}=i;return{name:n,version:r[n]}}var{turboGradient:Om,turboLoader:_q,info:pC,error:uo,warn:Fm}=fe;function Pm(t){if(t instanceof Lt)uo(He.default.bold(t.transform),He.default.red(t.message)),t.fatal&&process.exit(1);else if(t instanceof ke&&t.type!=="unknown")uo(He.default.red(t.message)),process.exit(1);else if(t instanceof $n)uo(He.default.red("Unable to download template from Github")),uo(He.default.red(t.message)),process.exit(1);else throw t}var mC={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function Lm(t,e,r){let{packageManager:i,skipInstall:n,skipTransforms:s}=r;fe.log(He.default.bold(Om(`
|
86
86
|
>>> TURBOREPO
|
87
|
-
`))),
|
87
|
+
`))),pC("Welcome to Turborepo! Let's get you set up with a new codebase."),fe.log();let o=i!=null?i:e,[a,u]=await Promise.all([rC(),bs()]);a||(uo("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:c,projectName:l}=await fC({dir:t}),h=ao.default.relative(process.cwd(),c),f=h==="",d=await dC({manager:o,skipTransforms:s});o&&r.skipTransforms&&Fm("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:m,examplePath:y}=r,p=m&&m!=="default"?m:"basic",w={};try{w=await hm({appPath:c,example:p,isDefaultExample:dc(p),examplePath:y})}catch(D){Pm(D)}let{hasPackageJson:C,availableScripts:F,repoInfo:P}=w;J1(c,`feat(create-turbo): create ${p}`);let T={};try{T=await lc({root:c})}catch(D){Pm(D)}if(!s)for(let D of hC)try{let H=await D({example:{repo:P,name:p},project:T,prompts:{projectName:l,root:c,packageManager:d},opts:r});H.result==="success"&&(X1(),Am(`feat(create-turbo): apply ${H.name} transform`))}catch(H){Pm(H)}let M=s||!d?{name:T.packageManager,version:u[T.packageManager]}:d;if(pC("Created a new Turborepo with the following:"),fe.log(),T.workspaceData.workspaces.length>0){let D=T.workspaceData.workspaces.map(z=>({group:ao.default.relative(c,z.paths.root).split(ao.default.sep)[0]||"",title:ao.default.relative(c,z.paths.root),description:z.description})).sort((z,N)=>z.title.localeCompare(N.title)),H;D.forEach(({group:z,title:N,description:K},te)=>{(te===0||z!==H)&&fe.log(He.default.cyan(z)),fe.log(` - ${He.default.bold(N)}${K?`: ${K}`:""}`),H=z})}else fe.log(He.default.cyan("apps")),fe.log(` - ${He.default.bold(l)}`);if(fe.log(),C&&!n){if(r.skipTransforms&&!u[T.packageManager])Fm(`Unable to install dependencies - "${p}" uses "${T.packageManager}" which could not be found.`),Fm(`Try running without "--skip-transforms" to convert "${p}" to a package manager that is available on your system.`),fe.log();else if(M.version){fe.log("Installing packages. This might take a couple of minutes."),fe.log();let D=_q("Installing dependencies...").start();await fc({project:T,to:M,options:{interactive:!1}}),Am("feat(create-turbo): install dependencies"),D.stop()}}f?fe.log(`${He.default.bold(Om(">>> Success!"))} Your new Turborepo is ready.`):fe.log(`${He.default.bold(Om(">>> Success!"))} Created a new Turborepo at "${h}".`);let S=hc(M);S&&C&&(fe.log(`Inside ${f?"this":"that"} directory, you can run several commands:`),fe.log(),F.filter(D=>mC[D]).forEach(D=>{fe.log(He.default.cyan(` ${S.command} run ${D}`)),fe.log(` ${mC[D]} all apps and packages`),fe.log()}),fe.log("Turborepo will cache locally by default. For an additional"),fe.log("speed boost, enable Remote Caching with Vercel by"),fe.log("entering the following command:"),fe.log(),fe.log(He.default.cyan(` ${S.executable} turbo login`)),fe.log(),fe.log("We suggest that you begin by typing:"),fe.log(),f||fe.log(` ${He.default.cyan("cd")} ${h}`),fe.log(He.default.cyan(` ${S.executable} turbo login`)),fe.log())}var bC=new _C.ProxyAgent;yC.default.globalAgent=bC;gC.default.globalAgent=bC;var EC=new yc.Command;EC.name(Bm.default.bold(fe.turboGradient("create-turbo"))).description("Create a new Turborepo").usage(`${Bm.default.bold("<project-directory>")} [options]`).argument("[project-directory]").argument("[package-manager]").addOption(new yc.Option("-m, --package-manager <package-manager>","Specify the package manager to use").choices(["npm","yarn","pnpm","bun"])).option("--skip-install","Do not run a package manager install after creating the project",!1).option("--skip-transforms","Do not run any code transformation after creating the project",!1).option("--turbo-version <version>","Use a specific version of turbo (default: latest)").option("-e, --example [name]|[github-url]",`
|
88
88
|
An example to bootstrap the app with. You can use an example name
|
89
89
|
from the official Turborepo repo or a GitHub URL. The URL can use
|
90
90
|
any branch and/or subdirectory
|
@@ -93,7 +93,7 @@ yarn-error.log*
|
|
93
93
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
94
94
|
In this case, you must specify the path to the example separately:
|
95
95
|
--example-path foo/bar
|
96
|
-
`).version(
|
96
|
+
`).version(zn.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").action(Lm);EC.parseAsync().then(fm).catch(async t=>{fe.log(),fe.error("Unexpected error. Please report it as a bug:"),fe.log(t),fe.log(),await fm(),process.exit(1)});
|
97
97
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
98
98
|
/*! Bundled license information:
|
99
99
|
|