@turbo/codemod 2.3.4-canary.9 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,42 +1,42 @@
1
- "use strict";var lS=Object.create;var sn=Object.defineProperty;var cS=Object.getOwnPropertyDescriptor;var uS=Object.getOwnPropertyNames;var hS=Object.getPrototypeOf,fS=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_u=(t,e)=>{for(var r in e)sn(t,r,{get:e[r],enumerable:!0})},Su=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uS(e))!fS.call(t,n)&&n!==r&&sn(t,n,{get:()=>e[n],enumerable:!(i=cS(e,n))||i.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?lS(hS(t)):{},Su(e||!t||!t.__esModule?sn(r,"default",{value:t,enumerable:!0}):r,t)),pS=t=>Su(sn({},"__esModule",{value:!0}),t);var Eu=d((n1,ht)=>{function lo(t){return ht.exports=lo=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},ht.exports.__esModule=!0,ht.exports.default=ht.exports,lo(t)}ht.exports=lo,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var wu=d((s1,ft)=>{var bu=Eu().default;function xu(){"use strict";ft.exports=xu=function(){return e},ft.exports.__esModule=!0,ft.exports.default=ft.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,S){p[b]=S.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(p,b,S){return Object.defineProperty(p,b,{value:S,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(S,O,P){return S[O]=P}}function u(p,b,S,O){var P=b&&b.prototype instanceof w?b:w,T=Object.create(P.prototype),W=new Be(O||[]);return n(T,"_invoke",{value:ie(p,S,W)}),T}function h(p,b,S){try{return{type:"normal",arg:p.call(b,S)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",m="executing",y="completed",x={};function w(){}function R(){}function M(){}var re={};c(re,o,function(){return this});var N=Object.getPrototypeOf,q=N&&N(N(_([])));q&&q!==r&&i.call(q,o)&&(re=q);var L=M.prototype=w.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(S){return this._invoke(b,S)})})}function B(p,b){function S(P,T,W,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var xe=ne.arg,k=xe.value;return k&&bu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(qe){S("next",qe,W,he)},function(qe){S("throw",qe,W,he)}):b.resolve(k).then(function(qe){xe.value=qe,W(xe)},function(qe){return S("throw",qe,W,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,W){function he(){return new b(function(ne,xe){S(T,W,ne,xe)})}return O=O?O.then(he,he):he()}})}function ie(p,b,S){var O=f;return function(P,T){if(O===m)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(S.method=P,S.arg=T;;){var W=S.delegate;if(W){var he=E(W,S);if(he){if(he===x)continue;return he}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(O===f)throw O=y,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);O=m;var ne=h(p,b,S);if(ne.type==="normal"){if(O=S.done?y:g,ne.arg===x)continue;return{value:ne.arg,done:S.done}}ne.type==="throw"&&(O=y,S.method="throw",S.arg=ne.arg)}}}function E(p,b){var S=b.method,O=p.iterator[S];if(O===t)return b.delegate=null,S==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,E(p,b),b.method==="throw")||S!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+S+"' method")),x;var P=h(O,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,x;var T=P.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,x):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,x)}function j(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function $(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Be(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(j,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var S=-1,O=function P(){for(;++S<p.length;)if(i.call(p,S))return P.value=p[S],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(bu(p)+" is not iterable")}return R.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,l,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===R||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,c(p,l,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(B.prototype),c(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,S,O,P){P===void 0&&(P=Promise);var T=new B(u(p,b,S,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(W){return W.done?W.value:T.next()})},I(L),c(L,l,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),S=[];for(var O in b)S.push(O);return S.reverse(),function P(){for(;S.length;){var T=S.pop();if(T in b)return P.value=T,P.done=!1,P}return P.done=!0,P}},e.values=_,Be.prototype={constructor:Be,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($),!b)for(var S in this)S.charAt(0)==="t"&&i.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=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 S=this;function O(xe,k){return W.type="throw",W.arg=b,S.next=xe,k&&(S.method="next",S.arg=t),!!k}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],W=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,S){for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=S&&S<=T.finallyLoc&&(T=null);var W=T?T.completion:{};return W.type=b,W.arg=S,T?(this.method="next",this.next=T.finallyLoc,x):this.complete(W)},complete:function(b,S){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"&&S&&(this.next=S),x},finish:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),$(O),x}},catch:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;$(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,S,O){return this.delegate={iterator:_(b),resultName:S,nextLoc:O},this.method==="next"&&(this.arg=t),x}},e}ft.exports=xu,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var Ru=d((o1,vu)=>{var on=wu()();vu.exports=on;try{regeneratorRuntime=on}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=on:Function("r","regeneratorRuntime = r")(on)}});var ph=d(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.splitWhen=Or.flatten=void 0;function $b(t){return t.reduce((e,r)=>[].concat(e,r),[])}Or.flatten=$b;function Gb(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Or.splitWhen=Gb});var dh=d(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.isEnoentCodeError=void 0;function jb(t){return t.code==="ENOENT"}pn.isEnoentCodeError=jb});var mh=d(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.createDirentFromStats=void 0;var Co=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 Wb(t,e){return new Co(t,e)}dn.createDirentFromStats=Wb});var gh=d(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var Yb=require("path"),zb=2,Kb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Vb(t){return t.replace(/\\/g,"/")}Qe.unixify=Vb;function Xb(t,e){return Yb.resolve(t,e)}Qe.makeAbsolute=Xb;function Zb(t){return t.replace(Kb,"\\$2")}Qe.escape=Zb;function Qb(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(zb)}return t}Qe.removeLeadingDotSegment=Qb});var _h=d((J1,yh)=>{yh.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 bh=d((eP,Eh)=>{var Jb=_h(),Sh={"{":"}","(":")","[":"]"},e0=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 l=Sh[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},t0=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=Sh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Eh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Jb(e))return!0;var i=e0;return r&&r.strict===!1&&(i=t0),i(e)}});var wh=d((tP,xh)=>{"use strict";var r0=bh(),i0=require("path").posix.dirname,n0=require("os").platform()==="win32",Po="/",s0=/\\/g,o0=/[\{\[].*[\}\]]$/,a0=/(^|[^\\])([\{\[]|\([^\)]+$)/,l0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;xh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&n0&&e.indexOf(Po)<0&&(e=e.replace(s0,Po)),o0.test(e)&&(e+=Po),e+="a";do e=i0(e);while(r0(e)||a0.test(e));return e.replace(l0,"$1")}});var mn=d(He=>{"use strict";He.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;He.find=(t,e)=>t.nodes.find(r=>r.type===e);He.exceedsLimit=(t,e,r=1,i)=>i===!1||!He.isInteger(t)||!He.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;He.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)};He.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);He.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;He.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;He.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);He.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 gn=d((iP,Rh)=>{"use strict";var vh=mn();Rh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&vh.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&vh.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var Th=d((nP,Ah)=>{"use strict";Ah.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Fh=d((sP,Dh)=>{"use strict";var Oh=Th(),ir=(t,e,r)=>{if(Oh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Oh(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),l=t+":"+e+"="+n+s+o+a;if(ir.cache.hasOwnProperty(l))return ir.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Nh(t)||Nh(e),f={min:t,max:e,a:c,b:u},g=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;m=Ch(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(g=Ch(c,u,f,i)),f.negatives=m,f.positives=g,f.result=c0(m,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+m.length>1&&(f.result=`(?:${f.result})`),ir.cache[l]=f,f.result};function c0(t,e,r){let i=Lo(t,e,"-",!1,r)||[],n=Lo(e,t,"",!1,r)||[],s=Lo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function u0(t,e){let r=1,i=1,n=Lh(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Lh(t,r);for(n=Ih(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Ih(e+1,i)-1;return s=[...s],s.sort(p0),s}function h0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=f0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=d0(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ch(t,e,r,i){let n=u0(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=h0(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+kh(a.count),o=c+1;continue}r.isPadded&&(h=m0(c,r,i)),u.string=h+u.pattern+kh(u.count),s.push(u),o=c+1,a=u}return s}function Lo(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Ph(e,"string",a)&&s.push(r+a),i&&Ph(e,"string",a)&&s.push(r+a)}return s}function f0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function p0(t,e){return t>e?1:e>t?-1:0}function Ph(t,e,r){return t.some(i=>i[e]===r)}function Lh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Ih(t,e){return t-t%Math.pow(10,e)}function kh(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function d0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Nh(t){return/^-?(0+)\d/.test(t)}function m0(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}}`}}ir.cache={};ir.clearCache=()=>ir.cache={};Dh.exports=ir});var No=d((oP,jh)=>{"use strict";var g0=require("util"),qh=Fh(),Mh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),y0=t=>e=>t===!0?Number(e):String(e),Io=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ri=t=>Number.isInteger(+t),ko=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},_0=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,S0=(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},Bh=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},E0=(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},Hh=(t,e,r,i)=>{if(r)return qh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Uh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return qh(t,e,r)},$h=(...t)=>new RangeError("Invalid range arguments: "+g0.inspect(...t)),Gh=(t,e,r)=>{if(r.strictRanges===!0)throw $h([t,e]);return[]},b0=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},x0=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw $h([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=ko(a)||ko(l)||ko(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&_0(t,e,i)===!1,g=i.transform||y0(f);if(i.toRegex&&r===1)return Hh(Bh(t,h),Bh(e,h),!0,i);let m={negatives:[],positives:[]},y=R=>m[R<0?"negatives":"positives"].push(Math.abs(R)),x=[],w=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):x.push(S0(g(n,w),h,f)),n=o?n-r:n+r,w++;return i.toRegex===!0?r>1?E0(m,i):Uh(x,null,{wrap:!1,...i}):x},w0=(t,e,r=1,i={})=>{if(!Ri(t)&&t.length>1||!Ri(e)&&e.length>1)return Gh(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return Hh(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?Uh(u,null,{wrap:!1,options:i}):u},yn=(t,e,r,i={})=>{if(e==null&&Io(t))return[t];if(!Io(t)||!Io(e))return Gh(t,e,i);if(typeof r=="function")return yn(t,e,1,{transform:r});if(Mh(r))return yn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Ri(r)?Ri(t)&&Ri(e)?x0(t,e,r,n):w0(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Mh(r)?b0(r,n):yn(t,e,1,r)};jh.exports=yn});var zh=d((aP,Yh)=>{"use strict";var v0=No(),Wh=mn(),R0=(t,e={})=>{let r=(i,n={})=>{let s=Wh.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+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 u=Wh.reduce(i.nodes),h=v0(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Yh.exports=R0});var Xh=d((lP,Vh)=>{"use strict";var A0=No(),Kh=gn(),Cr=mn(),nr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Cr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(nr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?nr(n,s,r):n+s);return Cr.flatten(i)},T0=(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(nr(a.pop(),Kh(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(nr(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Cr.reduce(n.nodes);if(Cr.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=A0(...h,e);f.length===0&&(f=Kh(n,e)),a.push(nr(a.pop(),f)),n.nodes=[];return}let l=Cr.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.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(nr(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(nr(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Cr.flatten(i(t))};Vh.exports=T0});var Qh=d((cP,Zh)=>{"use strict";Zh.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var nf=d((uP,rf)=>{"use strict";var O0=gn(),{MAX_LENGTH:Jh,CHAR_BACKSLASH:Do,CHAR_BACKTICK:C0,CHAR_COMMA:P0,CHAR_DOT:L0,CHAR_LEFT_PARENTHESES:I0,CHAR_RIGHT_PARENTHESES:k0,CHAR_LEFT_CURLY_BRACE:N0,CHAR_RIGHT_CURLY_BRACE:D0,CHAR_LEFT_SQUARE_BRACKET:ef,CHAR_RIGHT_SQUARE_BRACKET:tf,CHAR_DOUBLE_QUOTE:F0,CHAR_SINGLE_QUOTE:M0,CHAR_NO_BREAK_SPACE:B0,CHAR_ZERO_WIDTH_NOBREAK_SPACE:q0}=Qh(),H0=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Jh,r.maxLength):Jh;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,l=0,c=t.length,u=0,h=0,f,g={},m=()=>t[u++],y=x=>{if(x.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&x.type==="text"){a.value+=x.value;return}return o.nodes.push(x),x.parent=o,x.prev=a,a=x,x};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===q0||f===B0)){if(f===Do){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===tf){y({type:"text",value:"\\"+f});continue}if(f===ef){l++;let x=!0,w;for(;u<c&&(w=m());){if(f+=w,w===ef){l++;continue}if(w===Do){f+=m();continue}if(w===tf&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===I0){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===k0){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===F0||f===M0||f===C0){let x=f,w;for(e.keepQuotes!==!0&&(f="");u<c&&(w=m());){if(w===Do){f+=w+m();continue}if(w===x){e.keepQuotes===!0&&(f+=w);break}f+=w}y({type:"text",value:f});continue}if(f===N0){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===D0){if(o.type!=="brace"){y({type:"text",value:f});continue}let x="close";o=s.pop(),o.close=!0,y({type:x,value:f}),h--,o=s[s.length-1];continue}if(f===P0&&h>0){if(o.ranges>0){o.ranges=0;let x=o.nodes.shift();o.nodes=[x,{type:"text",value:O0(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===L0&&h>0&&o.commas===0){let x=o.nodes;if(h===0||x.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"){x.pop();let w=x[x.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(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let x=s[s.length-1],w=x.nodes.indexOf(o);x.nodes.splice(w,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};rf.exports=H0});var af=d((hP,of)=>{"use strict";var sf=gn(),U0=zh(),$0=Xh(),G0=nf(),Ie=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ie.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ie.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ie.parse=(t,e={})=>G0(t,e);Ie.stringify=(t,e={})=>sf(typeof t=="string"?Ie.parse(t,e):t,e);Ie.compile=(t,e={})=>(typeof t=="string"&&(t=Ie.parse(t,e)),U0(t,e));Ie.expand=(t,e={})=>{typeof t=="string"&&(t=Ie.parse(t,e));let r=$0(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ie.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ie.compile(t,e):Ie.expand(t,e);of.exports=Ie});var Ai=d((fP,ff)=>{"use strict";var j0=require("path"),Je="\\\\/",lf=`[^${Je}]`,mt="\\.",W0="\\+",Y0="\\?",_n="\\/",z0="(?=.)",cf="[^/]",Fo=`(?:${_n}|$)`,uf=`(?:^|${_n})`,Mo=`${mt}{1,2}${Fo}`,K0=`(?!${mt})`,V0=`(?!${uf}${Mo})`,X0=`(?!${mt}{0,1}${Fo})`,Z0=`(?!${Mo})`,Q0=`[^.${_n}]`,J0=`${cf}*?`,hf={DOT_LITERAL:mt,PLUS_LITERAL:W0,QMARK_LITERAL:Y0,SLASH_LITERAL:_n,ONE_CHAR:z0,QMARK:cf,END_ANCHOR:Fo,DOTS_SLASH:Mo,NO_DOT:K0,NO_DOTS:V0,NO_DOT_SLASH:X0,NO_DOTS_SLASH:Z0,QMARK_NO_DOT:Q0,STAR:J0,START_ANCHOR:uf},ex={...hf,SLASH_LITERAL:`[${Je}]`,QMARK:lf,STAR:`${lf}*?`,DOTS_SLASH:`${mt}{1,2}(?:[${Je}]|$)`,NO_DOT:`(?!${mt})`,NO_DOTS:`(?!(?:^|[${Je}])${mt}{1,2}(?:[${Je}]|$))`,NO_DOT_SLASH:`(?!${mt}{0,1}(?:[${Je}]|$))`,NO_DOTS_SLASH:`(?!${mt}{1,2}(?:[${Je}]|$))`,QMARK_NO_DOT:`[^.${Je}]`,START_ANCHOR:`(?:^|[${Je}])`,END_ANCHOR:`(?:[${Je}]|$)`},tx={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"};ff.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tx,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:j0.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?ex:hf}}});var Ti=d(Ae=>{"use strict";var rx=require("path"),ix=process.platform==="win32",{REGEX_BACKSLASH:nx,REGEX_REMOVE_BACKSLASH:sx,REGEX_SPECIAL_CHARS:ox,REGEX_SPECIAL_CHARS_GLOBAL:ax}=Ai();Ae.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ae.hasRegexChars=t=>ox.test(t);Ae.isRegexChar=t=>t.length===1&&Ae.hasRegexChars(t);Ae.escapeRegex=t=>t.replace(ax,"\\$1");Ae.toPosixSlashes=t=>t.replace(nx,"/");Ae.removeBackslashes=t=>t.replace(sx,e=>e==="\\"?"":e);Ae.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ae.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:ix===!0||rx.sep==="\\";Ae.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Ae.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Ae.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ae.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Ef=d((dP,Sf)=>{"use strict";var pf=Ti(),{CHAR_ASTERISK:Bo,CHAR_AT:lx,CHAR_BACKWARD_SLASH:Oi,CHAR_COMMA:cx,CHAR_DOT:qo,CHAR_EXCLAMATION_MARK:Ho,CHAR_FORWARD_SLASH:_f,CHAR_LEFT_CURLY_BRACE:Uo,CHAR_LEFT_PARENTHESES:$o,CHAR_LEFT_SQUARE_BRACKET:ux,CHAR_PLUS:hx,CHAR_QUESTION_MARK:df,CHAR_RIGHT_CURLY_BRACE:fx,CHAR_RIGHT_PARENTHESES:mf,CHAR_RIGHT_SQUARE_BRACKET:px}=Ai(),gf=t=>t===_f||t===Oi,yf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},dx=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,g=!1,m=!1,y=!1,x=!1,w=!1,R=!1,M=!1,re=!1,N=!1,q=0,L,I,B={value:"",depth:0,isGlob:!1},ie=()=>c>=i,E=()=>l.charCodeAt(c+1),j=()=>(L=I,l.charCodeAt(++c));for(;c<i;){I=j();let b;if(I===Oi){R=B.backslashes=!0,I=j(),I===Uo&&(w=!0);continue}if(w===!0||I===Uo){for(q++;ie()!==!0&&(I=j());){if(I===Oi){R=B.backslashes=!0,j();continue}if(I===Uo){q++;continue}if(w!==!0&&I===qo&&(I=j())===qo){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(w!==!0&&I===cx){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===fx&&(q--,q===0)){w=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===_f){if(s.push(c),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===qo&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(I===hx||I===lx||I===Bo||I===df||I===Ho)===!0&&E()===$o){if(m=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===Ho&&c===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=j());){if(I===Oi){R=B.backslashes=!0,I=j();continue}if(I===mf){m=B.isGlob=!0,N=!0;break}}continue}break}if(I===Bo){if(L===Bo&&(x=B.isGlobstar=!0),m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===df){if(m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===ux){for(;ie()!==!0&&(b=j());){if(b===Oi){R=B.backslashes=!0,j();continue}if(b===px){g=B.isBracket=!0,m=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===Ho&&c===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===$o){if(m=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=j());){if(I===$o){R=B.backslashes=!0,I=j();continue}if(I===mf){N=!0;break}}continue}break}if(m===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let $=l,Be="",_="";u>0&&(Be=l.slice(0,u),l=l.slice(u),h-=u),$&&m===!0&&h>0?($=l.slice(0,h),_=l.slice(h)):m===!0?($="",_=l):$=l,$&&$!==""&&$!=="/"&&$!==l&&gf($.charCodeAt($.length-1))&&($=$.slice(0,-1)),r.unescape===!0&&(_&&(_=pf.removeBackslashes(_)),$&&R===!0&&($=pf.removeBackslashes($)));let p={prefix:Be,input:t,start:u,base:$,glob:_,isBrace:f,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:x,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,gf(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let S=0;S<s.length;S++){let O=b?b+1:u,P=s[S],T=t.slice(O,P);r.tokens&&(S===0&&u!==0?(o[S].isPrefix=!0,o[S].value=Be):o[S].value=T,yf(o[S]),p.maxDepth+=o[S].depth),(S!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let S=t.slice(b+1);a.push(S),r.tokens&&(o[o.length-1].value=S,yf(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};Sf.exports=dx});var wf=d((mP,xf)=>{"use strict";var Sn=Ai(),ke=Ti(),{MAX_LENGTH:En,POSIX_REGEX_SOURCE:mx,REGEX_NON_SPECIAL_CHARS:gx,REGEX_SPECIAL_CHARS_BACKREF:yx,REPLACEMENTS:bf}=Sn,_x=(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=>ke.escapeRegex(n)).join("..")}return r},Pr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Go=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=bf[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(En,r.maxLength):En,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?"":"?:",l=ke.isWindows(e),c=Sn.globChars(l),u=Sn.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:x,NO_DOT_SLASH:w,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:q}=c,L=A=>`(${a}(?:(?!${q}${A.dot?y:h}).)*?)`,I=r.dot?"":x,B=r.dot?M:re,ie=r.bash===!0?L(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={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=ke.removePrefix(t,E),n=t.length;let j=[],$=[],Be=[],_=s,p,b=()=>E.index===n-1,S=E.peek=(A=1)=>t[E.index+A],O=E.advance=()=>t[++E.index]||"",P=()=>t.slice(E.index+1),T=(A="",z=0)=>{E.consumed+=A,E.index+=z},W=A=>{E.output+=A.output!=null?A.output:A.value,T(A.value)},he=()=>{let A=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)O(),E.start++,A++;return A%2===0?!1:(E.negated=!0,E.start++,!0)},ne=A=>{E[A]++,Be.push(A)},xe=A=>{E[A]--,Be.pop()},k=A=>{if(_.type==="globstar"){let z=E.braces>0&&(A.type==="comma"||A.type==="brace"),v=A.extglob===!0||j.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!z&&!v&&(E.output=E.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,E.output+=_.output)}if(j.length&&A.type!=="paren"&&(j[j.length-1].inner+=A.value),(A.value||A.output)&&W(A),_&&_.type==="text"&&A.type==="text"){_.value+=A.value,_.output=(_.output||"")+A.value;return}A.prev=_,o.push(A),_=A},qe=(A,z)=>{let v={...u[z],conditions:1,inner:""};v.prev=_,v.parens=E.parens,v.output=E.output;let F=(r.capture?"(":"")+v.open;ne("parens"),k({type:A,value:z,output:E.output?"":m}),k({type:"paren",extglob:!0,value:O(),output:F}),j.push(v)},aS=A=>{let z=A.close+(r.capture?")":""),v;if(A.type==="negate"){let F=ie;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(z=A.close=`)$))${F}`),A.inner.includes("*")&&(v=P())&&/^\.[^\\/.]+$/.test(v)){let Z=Go(v,{...e,fastpaths:!1}).output;z=A.close=`)${Z})${F})`}A.prev.type==="bos"&&(E.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:z}),xe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,z=t.replace(yx,(v,F,Z,we,se,ao)=>we==="\\"?(A=!0,v):we==="?"?F?F+we+(se?M.repeat(se.length):""):ao===0?B+(se?M.repeat(se.length):""):M.repeat(Z.length):we==="."?h.repeat(Z.length):we==="*"?F?F+we+(se?ie:""):ie:F?v:`\\${v}`);return A===!0&&(r.unescape===!0?z=z.replace(/\\/g,""):z=z.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),z===t&&r.contains===!0?(E.output=t,E):(E.output=ke.wrapOutput(z,E,e),E)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let v=S();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Z=0;if(F&&F[0].length>2&&(Z=F[0].length,E.index+=Z,Z%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),E.brackets===0){k({type:"text",value:p});continue}}if(E.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let v=_.value.slice(1);if(v.includes("[")&&(_.posix=!0,v.includes(":"))){let F=_.value.lastIndexOf("["),Z=_.value.slice(0,F),we=_.value.slice(F+2),se=mx[we];if(se){_.value=Z+se,E.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=m);continue}}}(p==="["&&S()!==":"||p==="-"&&S()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,W({value:p});continue}if(E.quotes===1&&p!=='"'){p=ke.escapeRegex(p),_.value+=p,W({value:p});continue}if(p==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Pr("opening","("));let v=j[j.length-1];if(v&&E.parens===v.parens+1){aS(j.pop());continue}k({type:"paren",value:p,output:E.parens?")":"\\)"}),xe("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));p=`\\${p}`}else ne("brackets");k({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){k({type:"text",value:p,output:`\\${p}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Pr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}xe("brackets");let v=_.value.slice(1);if(_.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(p=`/${p}`),_.value+=p,W({value:p}),r.literalBrackets===!1||ke.hasRegexChars(v))continue;let F=ke.escapeRegex(_.value);if(E.output=E.output.slice(0,-_.value.length),r.literalBrackets===!0){E.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,E.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let v={type:"brace",value:p,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};$.push(v),k(v);continue}if(p==="}"){let v=$[$.length-1];if(r.nobrace===!0||!v){k({type:"text",value:p,output:p});continue}let F=")";if(v.dots===!0){let Z=o.slice(),we=[];for(let se=Z.length-1;se>=0&&(o.pop(),Z[se].type!=="brace");se--)Z[se].type!=="dots"&&we.unshift(Z[se].value);F=_x(we,r),E.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let Z=E.output.slice(0,v.outputIndex),we=E.tokens.slice(v.tokensIndex);v.value=v.output="\\{",p=F="\\}",E.output=Z;for(let se of we)E.output+=se.output||se.value}k({type:"brace",value:p,output:F}),xe("braces"),$.pop();continue}if(p==="|"){j.length>0&&j[j.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let v=p,F=$[$.length-1];F&&Be[Be.length-1]==="braces"&&(F.comma=!0,v="|"),k({type:"comma",value:p,output:v});continue}if(p==="/"){if(_.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(E.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let v=$[$.length-1];_.type="dots",_.output+=p,_.value+=p,v.dots=!0;continue}if(E.braces+E.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){qe("qmark",p);continue}if(_&&_.type==="paren"){let F=S(),Z=p;if(F==="<"&&!ke.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(P()))&&(Z=`\\${p}`),k({type:"text",value:p,output:Z});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){qe("negate",p);continue}if(r.nonegate!==!0&&E.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){qe("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||E.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let v=gx.exec(P());v&&(p+=v[0],E.index+=v[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,E.backtrack=!0,E.globstar=!0,T(p);continue}let A=P();if(r.noextglob!==!0&&/^\([^?]/.test(A)){qe("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let v=_.prev,F=v.prev,Z=v.type==="slash"||v.type==="bos",we=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Z||A[0]&&A[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=E.braces>0&&(v.type==="comma"||v.type==="brace"),ao=j.length&&(v.type==="pipe"||v.type==="paren");if(!Z&&v.type!=="paren"&&!se&&!ao){k({type:"star",value:p,output:""});continue}for(;A.slice(0,3)==="/**";){let nn=t[E.index+4];if(nn&&nn!=="/")break;A=A.slice(3),T("/**",3)}if(v.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),E.output=_.output,E.globstar=!0,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!we&&b()){E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,E.globstar=!0,E.output+=v.output+_.output,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&A[0]==="/"){let nn=A[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${nn})`,_.value+=p,E.output+=v.output+_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&A[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,E.output=_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,E.output+=_.output,E.globstar=!0,T(p);continue}let z={type:"star",value:p,output:ie};if(r.bash===!0){z.output=".*?",(_.type==="bos"||_.type==="slash")&&(z.output=I+z.output),k(z);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&r.regex===!0){z.output=p,k(z);continue}(E.index===E.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(E.output+=w,_.output+=w):r.dot===!0?(E.output+=R,_.output+=R):(E.output+=I,_.output+=I),S()!=="*"&&(E.output+=m,_.output+=m)),k(z)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));E.output=ke.escapeLast(E.output,"["),xe("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing",")"));E.output=ke.escapeLast(E.output,"("),xe("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","}"));E.output=ke.escapeLast(E.output,"{"),xe("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),E.backtrack===!0){E.output="";for(let A of E.tokens)E.output+=A.output!=null?A.output:A.value,A.suffix&&(E.output+=A.suffix)}return E};Go.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(En,r.maxLength):En,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=bf[t]||t;let s=ke.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:m}=Sn.globChars(s),y=r.dot?h:u,x=r.dot?f:u,w=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${w}(?:(?!${m}${I.dot?c:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${l}${M}`;case".*":return`${o}${l}${M}`;case"*.*":return`${y}${M}${o}${l}${M}`;case"*/*":return`${y}${M}${a}${l}${x}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${x}${l}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${x}${M}${o}${l}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${l}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},q=ke.removePrefix(t,R),L=N(q);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};xf.exports=Go});var Rf=d((gP,vf)=>{"use strict";var Sx=require("path"),Ex=Ef(),jo=wf(),Wo=Ti(),bx=Ai(),xx=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let m=g(f);if(m)return m}return!1}}let i=xx(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Wo.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=J(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:g,output:m}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:m,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(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};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?Wo.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};J.matchBase=(t,e,r,i=Wo.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(Sx.basename(t));J.isMatch=(t,e,r)=>J(e,r)(t);J.parse=(t,e)=>Array.isArray(t)?t.map(r=>J.parse(r,e)):jo(t,{...e,fastpaths:!1});J.scan=(t,e)=>Ex(t,e);J.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 l=J.toRegex(a,e);return i===!0&&(l.state=t),l};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=jo.fastpaths(t,e)),n.output||(n=jo(t,e)),J.compileRe(n,e,r,i)};J.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/$^/}};J.constants=bx;vf.exports=J});var Tf=d((yP,Af)=>{"use strict";Af.exports=Rf()});var If=d((_P,Lf)=>{"use strict";var Cf=require("util"),Pf=af(),et=Tf(),Yo=Ti(),Of=t=>t===""||t==="./",V=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=et(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let m=h(g,!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(u=>!i.has(u));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(u=>u.replace(/\\/g,"")):e}return c};V.match=V;V.matcher=(t,e)=>et(t,e);V.isMatch=(t,e,r)=>et(e,r)(t);V.any=V.isMatch;V.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(V(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};V.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Cf.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>V.contains(t,i,r));if(typeof e=="string"){if(Of(t)||Of(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return V.isMatch(t,e,{...r,contains:!0})};V.matchKeys=(t,e,r)=>{if(!Yo.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=V(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};V.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(i.some(o=>s(o)))return!0}return!1};V.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};V.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Cf.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};V.capture=(t,e,r)=>{let i=Yo.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?Yo.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};V.makeRe=(...t)=>et.makeRe(...t);V.scan=(...t)=>et.scan(...t);V.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Pf(String(i),e))r.push(et.parse(n,e));return r};V.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Pf(t,e)};V.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return V.braces(t,{...e,expand:!0})};Lf.exports=V});var Hf=d(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var wx=require("path"),vx=wh(),zo=If(),kf="**",Rx="\\",Ax=/[*?]|^!/,Tx=/\[[^[]*]/,Ox=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Cx=/[!*+?@]\([^(]*\)/,Px=/,|\.\./;function Nf(t,e={}){return!Df(t,e)}D.isStaticPattern=Nf;function Df(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Rx)||Ax.test(t)||Tx.test(t)||Ox.test(t)||e.extglob!==!1&&Cx.test(t)||e.braceExpansion!==!1&&Lx(t))}D.isDynamicPattern=Df;function Lx(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 Px.test(i)}function Ix(t){return bn(t)?t.slice(1):t}D.convertToPositivePattern=Ix;function kx(t){return"!"+t}D.convertToNegativePattern=kx;function bn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=bn;function Ff(t){return!bn(t)}D.isPositivePattern=Ff;function Nx(t){return t.filter(bn)}D.getNegativePatterns=Nx;function Dx(t){return t.filter(Ff)}D.getPositivePatterns=Dx;function Fx(t){return t.filter(e=>!Ko(e))}D.getPatternsInsideCurrentDirectory=Fx;function Mx(t){return t.filter(Ko)}D.getPatternsOutsideCurrentDirectory=Mx;function Ko(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=Ko;function Bx(t){return vx(t,{flipBackslashes:!1})}D.getBaseDirectory=Bx;function qx(t){return t.includes(kf)}D.hasGlobStar=qx;function Mf(t){return t.endsWith("/"+kf)}D.endsWithSlashGlobStar=Mf;function Hx(t){let e=wx.basename(t);return Mf(t)||Nf(e)}D.isAffectDepthOfReadingPattern=Hx;function Ux(t){return t.reduce((e,r)=>e.concat(Bf(r)),[])}D.expandPatternsWithBraceExpansion=Ux;function Bf(t){return zo.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=Bf;function $x(t,e){let{parts:r}=zo.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}D.getPatternParts=$x;function qf(t,e){return zo.makeRe(t,e)}D.makeRe=qf;function Gx(t,e){return t.map(r=>qf(r,e))}D.convertPatternsToRe=Gx;function jx(t,e){return e.some(r=>r.test(t))}D.matchAny=jx});var jf=d((EP,Gf)=>{"use strict";var Wx=require("stream"),Uf=Wx.PassThrough,Yx=Array.prototype.slice;Gf.exports=zx;function zx(){let t=[],e=Yx.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=Uf(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push($f(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function g(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",x),f()}function x(w){o.emit("error",w)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",x),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)g(u[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function $f(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=$f(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Uf(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Yf=d(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.merge=void 0;var Kx=jf();function Vx(t){let e=Kx(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Wf(t)),e.once("end",()=>Wf(t)),e}xn.merge=Vx;function Wf(t){t.forEach(e=>e.emit("close"))}});var zf=d(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.isEmpty=Lr.isString=void 0;function Xx(t){return typeof t=="string"}Lr.isString=Xx;function Zx(t){return t===""}Lr.isEmpty=Zx});var gt=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Qx=ph();de.array=Qx;var Jx=dh();de.errno=Jx;var ew=mh();de.fs=ew;var tw=gh();de.path=tw;var rw=Hf();de.pattern=rw;var iw=Yf();de.stream=iw;var nw=zf();de.string=nw});var Xf=d(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var yt=gt();function sw(t,e){let r=Kf(t),i=Vf(t,e.ignore),n=r.filter(l=>yt.pattern.isStaticPattern(l,e)),s=r.filter(l=>yt.pattern.isDynamicPattern(l,e)),o=Vo(n,i,!1),a=Vo(s,i,!0);return o.concat(a)}me.generate=sw;function Vo(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=Xo(n),a=Xo(s);return i.push(...Zo(o,e,r)),"."in a?i.push(Qo(".",s,e,r)):i.push(...Zo(a,e,r)),i}me.convertPatternsToTasks=Vo;function Kf(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Kf;function Vf(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Vf;function Xo(t){let e={};return t.reduce((r,i)=>{let n=yt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}me.groupPatternsByBaseDirectory=Xo;function Zo(t,e,r){return Object.keys(t).map(i=>Qo(i,t[i],e,r))}me.convertPatternGroupsToTasks=Zo;function Qo(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=Qo});var Qf=d(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.removeDuplicateSlashes=Ir.transform=void 0;var ow=/(?!^)\/{2,}/g;function aw(t){return t.map(e=>Zf(e))}Ir.transform=aw;function Zf(t){return t.replace(ow,"/")}Ir.removeDuplicateSlashes=Zf});var ep=d(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.read=void 0;function lw(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Jf(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Jo(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Jf(r,s);return}Jo(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Jo(r,o)})})}wn.read=lw;function Jf(t,e){t(e)}function Jo(t,e){t(null,e)}});var tp=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.read=void 0;function cw(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}}vn.read=cw});var rp=d(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.createFileSystemAdapter=kt.FILE_SYSTEM_ADAPTER=void 0;var Rn=require("fs");kt.FILE_SYSTEM_ADAPTER={lstat:Rn.lstat,stat:Rn.stat,lstatSync:Rn.lstatSync,statSync:Rn.statSync};function uw(t){return t===void 0?kt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kt.FILE_SYSTEM_ADAPTER),t)}kt.createFileSystemAdapter=uw});var ip=d(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var hw=rp(),ea=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=hw.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}};ta.default=ea});var sr=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.statSync=Nt.stat=Nt.Settings=void 0;var np=ep(),fw=tp(),ra=ip();Nt.Settings=ra.default;function pw(t,e,r){if(typeof e=="function"){np.read(t,ia(),e);return}np.read(t,ia(e),r)}Nt.stat=pw;function dw(t,e){let r=ia(e);return fw.read(t,r)}Nt.statSync=dw;function ia(t={}){return t instanceof ra.default?t:new ra.default(t)}});var ap=d((LP,op)=>{var sp;op.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(sp||(sp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var cp=d((IP,lp)=>{lp.exports=gw;var mw=ap();function gw(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(l){function c(){e&&e(l,r),e=null}s?mw(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var na=d(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var An=process.versions.node.split(".");if(An[0]===void 0||An[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var up=Number.parseInt(An[0],10),yw=Number.parseInt(An[1],10),hp=10,_w=10,Sw=up>hp,Ew=up===hp&&yw>=_w;Tn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Sw||Ew});var fp=d(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.createDirentFromStats=void 0;var sa=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 bw(t,e){return new sa(t,e)}On.createDirentFromStats=bw});var oa=d(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.fs=void 0;var xw=fp();Cn.fs=xw});var aa=d(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.joinPathSegments=void 0;function ww(t,e,r){return t.endsWith(r)?t+e:t+r+e}Pn.joinPathSegments=ww});var _p=d(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.readdir=Dt.readdirWithFileTypes=Dt.read=void 0;var vw=sr(),pp=cp(),Rw=na(),dp=oa(),mp=aa();function Aw(t,e,r){if(!e.stats&&Rw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){gp(t,e,r);return}yp(t,e,r)}Dt.read=Aw;function gp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ln(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:mp.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){la(r,s);return}let o=s.map(a=>Tw(a,e));pp(o,(a,l)=>{if(a!==null){Ln(r,a);return}la(r,l)})})}Dt.readdirWithFileTypes=gp;function Tw(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=dp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function yp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ln(r,i);return}let s=n.map(o=>{let a=mp.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{vw.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:dp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});pp(s,(o,a)=>{if(o!==null){Ln(r,o);return}la(r,a)})})}Dt.readdir=yp;function Ln(t,e){t(e)}function la(t,e){t(null,e)}});var wp=d(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var Ow=sr(),Cw=na(),Sp=oa(),Ep=aa();function Pw(t,e){return!e.stats&&Cw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?bp(t,e):xp(t,e)}Ft.read=Pw;function bp(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Ep.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Sp.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Ft.readdirWithFileTypes=bp;function xp(t,e){return e.fs.readdirSync(t).map(i=>{let n=Ep.joinPathSegments(t,i,e.pathSegmentSeparator),s=Ow.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Sp.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Ft.readdir=xp});var vp=d(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createFileSystemAdapter=Mt.FILE_SYSTEM_ADAPTER=void 0;var kr=require("fs");Mt.FILE_SYSTEM_ADAPTER={lstat:kr.lstat,stat:kr.stat,lstatSync:kr.lstatSync,statSync:kr.statSync,readdir:kr.readdir,readdirSync:kr.readdirSync};function Lw(t){return t===void 0?Mt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mt.FILE_SYSTEM_ADAPTER),t)}Mt.createFileSystemAdapter=Lw});var Rp=d(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var Iw=require("path"),kw=sr(),Nw=vp(),ca=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Nw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Iw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new kw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};ua.default=ca});var In=d(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.scandirSync=Bt.scandir=void 0;var Ap=_p(),Dw=wp(),ha=Rp();Bt.Settings=ha.default;function Fw(t,e,r){if(typeof e=="function"){Ap.read(t,fa(),e);return}Ap.read(t,fa(e),r)}Bt.scandir=Fw;function Mw(t,e){let r=fa(e);return Dw.read(t,r)}Bt.scandirSync=Mw;function fa(t={}){return t instanceof ha.default?t:new ha.default(t)}});var Op=d(($P,Tp)=>{"use strict";function Bw(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}}Tp.exports=Bw});var Pp=d((GP,pa)=>{"use strict";var qw=Op();function Cp(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=qw(Hw),n=null,s=null,o=0,a=null,l={push:y,drain:Ue,saturated:Ue,pause:u,paused:!1,concurrency:r,running:c,resume:g,idle:m,length:h,getQueue:f,unshift:x,empty:Ue,kill:R,killAndDrain:M,error:re};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var N=n,q=0;N;)N=N.next,q++;return q}function f(){for(var N=n,q=[];N;)q.push(N.value),N=N.next;return q}function g(){if(l.paused){l.paused=!1;for(var N=0;N<l.concurrency;N++)o++,w()}}function m(){return o===0&&l.length()===0}function y(N,q){var L=i.get();L.context=t,L.release=w,L.value=N,L.callback=q||Ue,L.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=L,s=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N,q){var L=i.get();L.context=t,L.release=w,L.value=N,L.callback=q||Ue,o===l.concurrency||l.paused?n?(L.next=n,n=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function w(N){N&&i.release(N);var q=n;q?l.paused?o--:(s===n&&(s=null),n=q.next,q.next=null,e.call(t,q.value,q.worked),s===null&&l.empty()):--o===0&&l.drain()}function R(){n=null,s=null,l.drain=Ue}function M(){n=null,s=null,l.drain(),l.drain=Ue}function re(N){a=N}}function Ue(){}function Hw(){this.value=null,this.callback=Ue,this.next=null,this.release=Ue,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=Ue,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function Uw(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,h){e.call(this,u).then(function(f){h(null,f)},h)}var n=Cp(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,g){s(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(Ue),h}function l(u){var h=new Promise(function(f,g){o(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(Ue),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}pa.exports=Cp;pa.exports.promise=Uw});var kn=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function $w(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=$w;function Gw(t,e){return t===null||t(e)}tt.isAppliedFilter=Gw;function jw(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=jw;function Ww(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=Ww});var ga=d(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var Yw=kn(),da=class{constructor(e,r){this._root=e,this._settings=r,this._root=Yw.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};ma.default=da});var Sa=d(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var zw=require("events"),Kw=In(),Vw=Pp(),Nn=kn(),Xw=ga(),ya=class extends Xw.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Kw.scandir,this._emitter=new zw.EventEmitter,this._queue=Vw(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||!Nn.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=Nn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Nn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Nn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};_a.default=ya});var Lp=d(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Zw=Sa(),Ea=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Zw.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Qw(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Jw(e,this._storage)}),this._reader.read()}};ba.default=Ea;function Qw(t,e){t(e)}function Jw(t,e){t(null,e)}});var Ip=d(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var ev=require("stream"),tv=Sa(),xa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tv.default(this._root,this._settings),this._stream=new ev.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}};wa.default=xa});var kp=d(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var rv=In(),Dn=kn(),iv=ga(),va=class extends iv.default{constructor(){super(...arguments),this._scandir=rv.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(Dn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Dn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Dn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Dn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ra.default=va});var Np=d(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var nv=kp(),Aa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new nv.default(this._root,this._settings)}read(){return this._reader.read()}};Ta.default=Aa});var Dp=d(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var sv=require("path"),ov=In(),Oa=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,sv.sep),this.fsScandirSettings=new ov.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}};Ca.default=Oa});var Mn=d(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var Fp=Lp(),av=Ip(),lv=Np(),Pa=Dp();rt.Settings=Pa.default;function cv(t,e,r){if(typeof e=="function"){new Fp.default(t,Fn()).read(e);return}new Fp.default(t,Fn(e)).read(r)}rt.walk=cv;function uv(t,e){let r=Fn(e);return new lv.default(t,r).read()}rt.walkSync=uv;function hv(t,e){let r=Fn(e);return new av.default(t,r).read()}rt.walkStream=hv;function Fn(t={}){return t instanceof Pa.default?t:new Pa.default(t)}});var Bn=d(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var fv=require("path"),pv=sr(),Mp=gt(),La=class{constructor(e){this._settings=e,this._fsStatSettings=new pv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return fv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Mp.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Mp.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ia.default=La});var Da=d(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var dv=require("stream"),mv=sr(),gv=Mn(),yv=Bn(),ka=class extends yv.default{constructor(){super(...arguments),this._walkStream=gv.walkStream,this._stat=mv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new dv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),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))})}};Na.default=ka});var Bp=d(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var _v=Mn(),Sv=Bn(),Ev=Da(),Fa=class extends Sv.default{constructor(){super(...arguments),this._walkAsync=_v.walk,this._readerStream=new Ev.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))})}};Ma.default=Fa});var qp=d(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var Nr=gt(),Ba=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Nr.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 Nr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Nr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Nr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Nr.array.splitWhen(e,r=>r.dynamic&&Nr.pattern.hasGlobStar(r.pattern))}};qa.default=Ba});var Hp=d(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var bv=qp(),Ha=class extends bv.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((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Ua.default=Ha});var Up=d(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var qn=gt(),xv=Hp(),$a=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 xv.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(qn.pattern.isAffectDepthOfReadingPattern);return qn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=qn.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!qn.pattern.matchAny(e,r)}};Ga.default=$a});var $p=d(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var or=gt(),ja=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=or.pattern.convertPatternsToRe(e,this._micromatchOptions),n=or.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=or.path.makeAbsolute(this._settings.cwd,e);return or.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=or.path.removeLeadingDotSegment(e),s=or.pattern.matchAny(n,r);return!s&&i?or.pattern.matchAny(n+"/",r):s}};Wa.default=ja});var Gp=d(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var wv=gt(),Ya=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return wv.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};za.default=Ya});var Wp=d(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var jp=gt(),Ka=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=jp.path.makeAbsolute(this._settings.cwd,r),r=jp.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Va.default=Ka});var Hn=d(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var vv=require("path"),Rv=Up(),Av=$p(),Tv=Gp(),Ov=Wp(),Xa=class{constructor(e){this._settings=e,this.errorFilter=new Tv.default(this._settings),this.entryFilter=new Av.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Rv.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ov.default(this._settings)}_getRootDirectory(e){return vv.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}}};Za.default=Xa});var Yp=d(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var Cv=Bp(),Pv=Hn(),Qa=class extends Pv.default{constructor(){super(...arguments),this._reader=new Cv.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)}};Ja.default=Qa});var zp=d(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Lv=require("stream"),Iv=Da(),kv=Hn(),el=class extends kv.default{constructor(){super(...arguments),this._reader=new Iv.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new Lv.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)}};tl.default=el});var Kp=d(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var Nv=sr(),Dv=Mn(),Fv=Bn(),rl=class extends Fv.default{constructor(){super(...arguments),this._walkSync=Dv.walkSync,this._statSync=Nv.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)}};il.default=rl});var Vp=d(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var Mv=Kp(),Bv=Hn(),nl=class extends Bv.default{constructor(){super(...arguments),this._reader=new Mv.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)}};sl.default=nl});var Xp=d(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Dr=require("fs"),qv=require("os"),Hv=Math.max(qv.cpus().length,1);Fr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Dr.lstat,lstatSync:Dr.lstatSync,stat:Dr.stat,statSync:Dr.statSync,readdir:Dr.readdir,readdirSync:Dr.readdirSync};var ol=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,Hv),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({},Fr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Fr.default=ol});var ed=d((dL,Jp)=>{"use strict";var Zp=Xf(),Qp=Qf(),Uv=Yp(),$v=zp(),Gv=Vp(),al=Xp(),ar=gt();async function ll(t,e){Mr(t);let r=cl(t,Uv.default,e),i=await Promise.all(r);return ar.array.flatten(i)}(function(t){function e(o,a){Mr(o);let l=cl(o,Gv.default,a);return ar.array.flatten(l)}t.sync=e;function r(o,a){Mr(o);let l=cl(o,$v.default,a);return ar.stream.merge(l)}t.stream=r;function i(o,a){Mr(o);let l=Qp.transform([].concat(o)),c=new al.default(a);return Zp.generate(l,c)}t.generateTasks=i;function n(o,a){Mr(o);let l=new al.default(a);return ar.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Mr(o),ar.path.escape(o)}t.escapePath=s})(ll||(ll={}));function cl(t,e,r){let i=Qp.transform([].concat(t)),n=new al.default(r),s=Zp.generate(i,n),o=new e(n);return s.map(o.read,o)}function Mr(t){if(![].concat(t).every(i=>ar.string.isString(i)&&!ar.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Jp.exports=ll});var dd=d((SL,pd)=>{pd.exports=fd;fd.sync=sR;var ud=require("fs");function nR(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 hd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:nR(e,r)}function fd(t,e,r){ud.stat(t,function(i,n){r(i,i?!1:hd(n,t,e))})}function sR(t,e){return hd(ud.statSync(t),t,e)}});var Sd=d((EL,_d)=>{_d.exports=gd;gd.sync=oR;var md=require("fs");function gd(t,e,r){md.stat(t,function(i,n){r(i,i?!1:yd(n,e))})}function oR(t,e){return yd(md.statSync(t),e)}function yd(t,e){return t.isFile()&&aR(t,e)}function aR(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),l=parseInt("010",8),c=parseInt("001",8),u=a|l,h=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return h}});var bd=d((xL,Ed)=>{var bL=require("fs"),Un;process.platform==="win32"||global.TESTING_WINDOWS?Un=dd():Un=Sd();Ed.exports=hl;hl.sync=lR;function hl(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){hl(t,e||{},function(s,o){s?n(s):i(o)})})}Un(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function lR(t,e){try{return Un.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Od=d((wL,Td)=>{var qr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xd=require("path"),cR=qr?";":":",wd=bd(),vd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Rd=(t,e)=>{let r=e.colon||cR,i=t.match(/\//)||qr&&t.match(/\\/)?[""]:[...qr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=qr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=qr?n.split(r):[""];return qr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Ad=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Rd(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(vd(t));let f=i[c],g=/^".*"$/.test(f)?f.slice(1,-1):f,m=xd.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(l(y,c,0))}),l=(c,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let m=n[h];wd(c+m,{pathExt:s},(y,x)=>{if(!y&&x)if(e.all)o.push(c+m);else return f(c+m);return f(l(c,u,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},uR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Rd(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=xd.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(wd.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 vd(t)};Td.exports=Ad;Ad.sync=uR});var pl=d((vL,fl)=>{"use strict";var Cd=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};fl.exports=Cd;fl.exports.default=Cd});var kd=d((RL,Id)=>{"use strict";var Pd=require("path"),hR=Od(),fR=pl();function Ld(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=hR.sync(t.command,{path:r[fR({env:r})],pathExt:e?Pd.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Pd.resolve(n?t.options.cwd:"",o)),o}function pR(t){return Ld(t)||Ld(t,!0)}Id.exports=pR});var Nd=d((AL,ml)=>{"use strict";var dl=/([()\][%!^"`<>&|;, *?])/g;function dR(t){return t=t.replace(dl,"^$1"),t}function mR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(dl,"^$1"),e&&(t=t.replace(dl,"^$1")),t}ml.exports.command=dR;ml.exports.argument=mR});var Fd=d((TL,Dd)=>{"use strict";Dd.exports=/^#!(.*)/});var Bd=d((OL,Md)=>{"use strict";var gR=Fd();Md.exports=(t="")=>{let e=t.match(gR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Hd=d((CL,qd)=>{"use strict";var gl=require("fs"),yR=Bd();function _R(t){let r=Buffer.alloc(150),i;try{i=gl.openSync(t,"r"),gl.readSync(i,r,0,150,0),gl.closeSync(i)}catch{}return yR(r.toString())}qd.exports=_R});var jd=d((PL,Gd)=>{"use strict";var SR=require("path"),Ud=kd(),$d=Nd(),ER=Hd(),bR=process.platform==="win32",xR=/\.(?:com|exe)$/i,wR=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function vR(t){t.file=Ud(t);let e=t.file&&ER(t.file);return e?(t.args.unshift(t.file),t.command=e,Ud(t)):t.file}function RR(t){if(!bR)return t;let e=vR(t),r=!xR.test(e);if(t.options.forceShell||r){let i=wR.test(e);t.command=SR.normalize(t.command),t.command=$d.command(t.command),t.args=t.args.map(s=>$d.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 AR(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:RR(i)}Gd.exports=AR});var zd=d((LL,Yd)=>{"use strict";var yl=process.platform==="win32";function _l(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 TR(t,e){if(!yl)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Wd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Wd(t,e){return yl&&t===1&&!e.file?_l(e.original,"spawn"):null}function OR(t,e){return yl&&t===1&&!e.file?_l(e.original,"spawnSync"):null}Yd.exports={hookChildProcess:TR,verifyENOENT:Wd,verifyENOENTSync:OR,notFoundError:_l}});var Xd=d((IL,Hr)=>{"use strict";var Kd=require("child_process"),Sl=jd(),El=zd();function Vd(t,e,r){let i=Sl(t,e,r),n=Kd.spawn(i.command,i.args,i.options);return El.hookChildProcess(n,i),n}function CR(t,e,r){let i=Sl(t,e,r),n=Kd.spawnSync(i.command,i.args,i.options);return n.error=n.error||El.verifyENOENTSync(n.status,i),n}Hr.exports=Vd;Hr.exports.spawn=Vd;Hr.exports.sync=CR;Hr.exports._parse=Sl;Hr.exports._enoent=El});var Qd=d((kL,Zd)=>{"use strict";Zd.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var sS=Object.create;var tn=Object.defineProperty;var oS=Object.getOwnPropertyDescriptor;var aS=Object.getOwnPropertyNames;var lS=Object.getPrototypeOf,cS=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yu=(t,e)=>{for(var r in e)tn(t,r,{get:e[r],enumerable:!0})},_u=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of aS(e))!cS.call(t,n)&&n!==r&&tn(t,n,{get:()=>e[n],enumerable:!(i=oS(e,n))||i.enumerable});return t};var $=(t,e,r)=>(r=t!=null?sS(lS(t)):{},_u(e||!t||!t.__esModule?tn(r,"default",{value:t,enumerable:!0}):r,t)),uS=t=>_u(tn({},"__esModule",{value:!0}),t);var Su=d((n1,ht)=>{function lo(t){return ht.exports=lo=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},ht.exports.__esModule=!0,ht.exports.default=ht.exports,lo(t)}ht.exports=lo,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var wu=d((s1,ft)=>{var Eu=Su().default;function bu(){"use strict";ft.exports=bu=function(){return e},ft.exports.__esModule=!0,ft.exports.default=ft.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,S){p[b]=S.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(p,b,S){return Object.defineProperty(p,b,{value:S,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(S,O,P){return S[O]=P}}function u(p,b,S,O){var P=b&&b.prototype instanceof x?b:x,T=Object.create(P.prototype),Y=new Me(O||[]);return n(T,"_invoke",{value:ie(p,S,Y)}),T}function h(p,b,S){try{return{type:"normal",arg:p.call(b,S)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",m="executing",y="completed",w={};function x(){}function R(){}function M(){}var re={};c(re,o,function(){return this});var N=Object.getPrototypeOf,q=N&&N(N(_([])));q&&q!==r&&i.call(q,o)&&(re=q);var L=M.prototype=x.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(S){return this._invoke(b,S)})})}function B(p,b){function S(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&Eu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(Be){S("next",Be,Y,he)},function(Be){S("throw",Be,Y,he)}):b.resolve(k).then(function(Be){be.value=Be,Y(be)},function(Be){return S("throw",Be,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){S(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,S){var O=f;return function(P,T){if(O===m)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(S.method=P,S.arg=T;;){var Y=S.delegate;if(Y){var he=E(Y,S);if(he){if(he===w)continue;return he}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(O===f)throw O=y,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);O=m;var ne=h(p,b,S);if(ne.type==="normal"){if(O=S.done?y:g,ne.arg===w)continue;return{value:ne.arg,done:S.done}}ne.type==="throw"&&(O=y,S.method="throw",S.arg=ne.arg)}}}function E(p,b){var S=b.method,O=p.iterator[S];if(O===t)return b.delegate=null,S==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,E(p,b),b.method==="throw")||S!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+S+"' method")),w;var P=h(O,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,w;var T=P.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,w):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,w)}function W(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function G(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Me(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var S=-1,O=function P(){for(;++S<p.length;)if(i.call(p,S))return P.value=p[S],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(Eu(p)+" is not iterable")}return R.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,l,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===R||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,c(p,l,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(B.prototype),c(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,S,O,P){P===void 0&&(P=Promise);var T=new B(u(p,b,S,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),c(L,l,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),S=[];for(var O in b)S.push(O);return S.reverse(),function P(){for(;S.length;){var T=S.pop();if(T in b)return P.value=T,P.done=!1,P}return P.done=!0,P}},e.values=_,Me.prototype={constructor:Me,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(G),!b)for(var S in this)S.charAt(0)==="t"&&i.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=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 S=this;function O(be,k){return Y.type="throw",Y.arg=b,S.next=be,k&&(S.method="next",S.arg=t),!!k}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],Y=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,S){for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=S&&S<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=S,T?(this.method="next",this.next=T.finallyLoc,w):this.complete(Y)},complete:function(b,S){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"&&S&&(this.next=S),w},finish:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),G(O),w}},catch:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;G(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,S,O){return this.delegate={iterator:_(b),resultName:S,nextLoc:O},this.method==="next"&&(this.arg=t),w}},e}ft.exports=bu,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var vu=d((o1,xu)=>{var rn=wu()();xu.exports=rn;try{regeneratorRuntime=rn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=rn:Function("r","regeneratorRuntime = r")(rn)}});var fh=d(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.splitWhen=Or.flatten=void 0;function qb(t){return t.reduce((e,r)=>[].concat(e,r),[])}Or.flatten=qb;function Hb(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Or.splitWhen=Hb});var ph=d(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.isEnoentCodeError=void 0;function Ub(t){return t.code==="ENOENT"}un.isEnoentCodeError=Ub});var dh=d(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.createDirentFromStats=void 0;var Co=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 $b(t,e){return new Co(t,e)}hn.createDirentFromStats=$b});var mh=d(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var Gb=require("path"),jb=2,Wb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Yb(t){return t.replace(/\\/g,"/")}Qe.unixify=Yb;function zb(t,e){return Gb.resolve(t,e)}Qe.makeAbsolute=zb;function Kb(t){return t.replace(Wb,"\\$2")}Qe.escape=Kb;function Vb(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(jb)}return t}Qe.removeLeadingDotSegment=Vb});var yh=d((J1,gh)=>{gh.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 Eh=d((eP,Sh)=>{var Xb=yh(),_h={"{":"}","(":")","[":"]"},Zb=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 l=_h[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},Qb=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=_h[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Sh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Xb(e))return!0;var i=Zb;return r&&r.strict===!1&&(i=Qb),i(e)}});var wh=d((tP,bh)=>{"use strict";var Jb=Eh(),e0=require("path").posix.dirname,t0=require("os").platform()==="win32",Po="/",r0=/\\/g,i0=/[\{\[].*[\}\]]$/,n0=/(^|[^\\])([\{\[]|\([^\)]+$)/,s0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;bh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&t0&&e.indexOf(Po)<0&&(e=e.replace(r0,Po)),i0.test(e)&&(e+=Po),e+="a";do e=e0(e);while(Jb(e)||n0.test(e));return e.replace(s0,"$1")}});var fn=d(qe=>{"use strict";qe.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;qe.find=(t,e)=>t.nodes.find(r=>r.type===e);qe.exceedsLimit=(t,e,r=1,i)=>i===!1||!qe.isInteger(t)||!qe.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;qe.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)};qe.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);qe.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;qe.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;qe.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);qe.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 pn=d((iP,vh)=>{"use strict";var xh=fn();vh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&xh.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&xh.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var Ah=d((nP,Rh)=>{"use strict";Rh.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Dh=d((sP,Nh)=>{"use strict";var Th=Ah(),ir=(t,e,r)=>{if(Th(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Th(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),l=t+":"+e+"="+n+s+o+a;if(ir.cache.hasOwnProperty(l))return ir.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=kh(t)||kh(e),f={min:t,max:e,a:c,b:u},g=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;m=Oh(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(g=Oh(c,u,f,i)),f.negatives=m,f.positives=g,f.result=o0(m,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+m.length>1&&(f.result=`(?:${f.result})`),ir.cache[l]=f,f.result};function o0(t,e,r){let i=Lo(t,e,"-",!1,r)||[],n=Lo(e,t,"",!1,r)||[],s=Lo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function a0(t,e){let r=1,i=1,n=Ph(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Ph(t,r);for(n=Lh(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Lh(e+1,i)-1;return s=[...s],s.sort(u0),s}function l0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=c0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=h0(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Oh(t,e,r,i){let n=a0(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=l0(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+Ih(a.count),o=c+1;continue}r.isPadded&&(h=f0(c,r,i)),u.string=h+u.pattern+Ih(u.count),s.push(u),o=c+1,a=u}return s}function Lo(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Ch(e,"string",a)&&s.push(r+a),i&&Ch(e,"string",a)&&s.push(r+a)}return s}function c0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function u0(t,e){return t>e?1:e>t?-1:0}function Ch(t,e,r){return t.some(i=>i[e]===r)}function Ph(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Lh(t,e){return t-t%Math.pow(10,e)}function Ih(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function h0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function kh(t){return/^-?(0+)\d/.test(t)}function f0(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}}`}}ir.cache={};ir.clearCache=()=>ir.cache={};Nh.exports=ir});var No=d((oP,Gh)=>{"use strict";var p0=require("util"),Bh=Dh(),Fh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),d0=t=>e=>t===!0?Number(e):String(e),Io=t=>typeof t=="number"||typeof t=="string"&&t!=="",vi=t=>Number.isInteger(+t),ko=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},m0=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,g0=(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},Mh=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},y0=(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},qh=(t,e,r,i)=>{if(r)return Bh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Hh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Bh(t,e,r)},Uh=(...t)=>new RangeError("Invalid range arguments: "+p0.inspect(...t)),$h=(t,e,r)=>{if(r.strictRanges===!0)throw Uh([t,e]);return[]},_0=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},S0=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Uh([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=ko(a)||ko(l)||ko(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&m0(t,e,i)===!1,g=i.transform||d0(f);if(i.toRegex&&r===1)return qh(Mh(t,h),Mh(e,h),!0,i);let m={negatives:[],positives:[]},y=R=>m[R<0?"negatives":"positives"].push(Math.abs(R)),w=[],x=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):w.push(g0(g(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?y0(m,i):Hh(w,null,{wrap:!1,...i}):w},E0=(t,e,r=1,i={})=>{if(!vi(t)&&t.length>1||!vi(e)&&e.length>1)return $h(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return qh(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?Hh(u,null,{wrap:!1,options:i}):u},dn=(t,e,r,i={})=>{if(e==null&&Io(t))return[t];if(!Io(t)||!Io(e))return $h(t,e,i);if(typeof r=="function")return dn(t,e,1,{transform:r});if(Fh(r))return dn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,vi(r)?vi(t)&&vi(e)?S0(t,e,r,n):E0(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Fh(r)?_0(r,n):dn(t,e,1,r)};Gh.exports=dn});var Yh=d((aP,Wh)=>{"use strict";var b0=No(),jh=fn(),w0=(t,e={})=>{let r=(i,n={})=>{let s=jh.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+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 u=jh.reduce(i.nodes),h=b0(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Wh.exports=w0});var Vh=d((lP,Kh)=>{"use strict";var x0=No(),zh=pn(),Cr=fn(),nr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Cr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(nr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?nr(n,s,r):n+s);return Cr.flatten(i)},v0=(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(nr(a.pop(),zh(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(nr(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Cr.reduce(n.nodes);if(Cr.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=x0(...h,e);f.length===0&&(f=zh(n,e)),a.push(nr(a.pop(),f)),n.nodes=[];return}let l=Cr.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.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(nr(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(nr(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Cr.flatten(i(t))};Kh.exports=v0});var Zh=d((cP,Xh)=>{"use strict";Xh.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var rf=d((uP,tf)=>{"use strict";var R0=pn(),{MAX_LENGTH:Qh,CHAR_BACKSLASH:Do,CHAR_BACKTICK:A0,CHAR_COMMA:T0,CHAR_DOT:O0,CHAR_LEFT_PARENTHESES:C0,CHAR_RIGHT_PARENTHESES:P0,CHAR_LEFT_CURLY_BRACE:L0,CHAR_RIGHT_CURLY_BRACE:I0,CHAR_LEFT_SQUARE_BRACKET:Jh,CHAR_RIGHT_SQUARE_BRACKET:ef,CHAR_DOUBLE_QUOTE:k0,CHAR_SINGLE_QUOTE:N0,CHAR_NO_BREAK_SPACE:D0,CHAR_ZERO_WIDTH_NOBREAK_SPACE:F0}=Zh(),M0=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Qh,r.maxLength):Qh;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,l=0,c=t.length,u=0,h=0,f,g={},m=()=>t[u++],y=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return o.nodes.push(w),w.parent=o,w.prev=a,a=w,w};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===F0||f===D0)){if(f===Do){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===ef){y({type:"text",value:"\\"+f});continue}if(f===Jh){l++;let w=!0,x;for(;u<c&&(x=m());){if(f+=x,x===Jh){l++;continue}if(x===Do){f+=m();continue}if(x===ef&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===C0){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===P0){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===k0||f===N0||f===A0){let w=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=m());){if(x===Do){f+=x+m();continue}if(x===w){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===L0){h++;let x={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(x),s.push(o),y({type:"open",value:f});continue}if(f===I0){if(o.type!=="brace"){y({type:"text",value:f});continue}let w="close";o=s.pop(),o.close=!0,y({type:w,value:f}),h--,o=s[s.length-1];continue}if(f===T0&&h>0){if(o.ranges>0){o.ranges=0;let w=o.nodes.shift();o.nodes=[w,{type:"text",value:R0(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===O0&&h>0&&o.commas===0){let w=o.nodes;if(h===0||w.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"){w.pop();let x=w[w.length-1];x.value+=a.value+f,a=x,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(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let w=s[s.length-1],x=w.nodes.indexOf(o);w.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};tf.exports=M0});var of=d((hP,sf)=>{"use strict";var nf=pn(),B0=Yh(),q0=Vh(),H0=rf(),Le=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Le.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Le.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Le.parse=(t,e={})=>H0(t,e);Le.stringify=(t,e={})=>nf(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),B0(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=q0(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Le.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Le.compile(t,e):Le.expand(t,e);sf.exports=Le});var Ri=d((fP,hf)=>{"use strict";var U0=require("path"),Je="\\\\/",af=`[^${Je}]`,mt="\\.",$0="\\+",G0="\\?",mn="\\/",j0="(?=.)",lf="[^/]",Fo=`(?:${mn}|$)`,cf=`(?:^|${mn})`,Mo=`${mt}{1,2}${Fo}`,W0=`(?!${mt})`,Y0=`(?!${cf}${Mo})`,z0=`(?!${mt}{0,1}${Fo})`,K0=`(?!${Mo})`,V0=`[^.${mn}]`,X0=`${lf}*?`,uf={DOT_LITERAL:mt,PLUS_LITERAL:$0,QMARK_LITERAL:G0,SLASH_LITERAL:mn,ONE_CHAR:j0,QMARK:lf,END_ANCHOR:Fo,DOTS_SLASH:Mo,NO_DOT:W0,NO_DOTS:Y0,NO_DOT_SLASH:z0,NO_DOTS_SLASH:K0,QMARK_NO_DOT:V0,STAR:X0,START_ANCHOR:cf},Z0={...uf,SLASH_LITERAL:`[${Je}]`,QMARK:af,STAR:`${af}*?`,DOTS_SLASH:`${mt}{1,2}(?:[${Je}]|$)`,NO_DOT:`(?!${mt})`,NO_DOTS:`(?!(?:^|[${Je}])${mt}{1,2}(?:[${Je}]|$))`,NO_DOT_SLASH:`(?!${mt}{0,1}(?:[${Je}]|$))`,NO_DOTS_SLASH:`(?!${mt}{1,2}(?:[${Je}]|$))`,QMARK_NO_DOT:`[^.${Je}]`,START_ANCHOR:`(?:^|[${Je}])`,END_ANCHOR:`(?:[${Je}]|$)`},Q0={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"};hf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Q0,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:U0.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?Z0:uf}}});var Ai=d(Re=>{"use strict";var J0=require("path"),ew=process.platform==="win32",{REGEX_BACKSLASH:tw,REGEX_REMOVE_BACKSLASH:rw,REGEX_SPECIAL_CHARS:iw,REGEX_SPECIAL_CHARS_GLOBAL:nw}=Ri();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>iw.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(nw,"\\$1");Re.toPosixSlashes=t=>t.replace(tw,"/");Re.removeBackslashes=t=>t.replace(rw,e=>e==="\\"?"":e);Re.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Re.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:ew===!0||J0.sep==="\\";Re.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Re.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Re.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Re.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Sf=d((dP,_f)=>{"use strict";var ff=Ai(),{CHAR_ASTERISK:Bo,CHAR_AT:sw,CHAR_BACKWARD_SLASH:Ti,CHAR_COMMA:ow,CHAR_DOT:qo,CHAR_EXCLAMATION_MARK:Ho,CHAR_FORWARD_SLASH:yf,CHAR_LEFT_CURLY_BRACE:Uo,CHAR_LEFT_PARENTHESES:$o,CHAR_LEFT_SQUARE_BRACKET:aw,CHAR_PLUS:lw,CHAR_QUESTION_MARK:pf,CHAR_RIGHT_CURLY_BRACE:cw,CHAR_RIGHT_PARENTHESES:df,CHAR_RIGHT_SQUARE_BRACKET:uw}=Ri(),mf=t=>t===yf||t===Ti,gf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hw=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,g=!1,m=!1,y=!1,w=!1,x=!1,R=!1,M=!1,re=!1,N=!1,q=0,L,I,B={value:"",depth:0,isGlob:!1},ie=()=>c>=i,E=()=>l.charCodeAt(c+1),W=()=>(L=I,l.charCodeAt(++c));for(;c<i;){I=W();let b;if(I===Ti){R=B.backslashes=!0,I=W(),I===Uo&&(x=!0);continue}if(x===!0||I===Uo){for(q++;ie()!==!0&&(I=W());){if(I===Ti){R=B.backslashes=!0,W();continue}if(I===Uo){q++;continue}if(x!==!0&&I===qo&&(I=W())===qo){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(x!==!0&&I===ow){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===cw&&(q--,q===0)){x=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===yf){if(s.push(c),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===qo&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(I===lw||I===sw||I===Bo||I===pf||I===Ho)===!0&&E()===$o){if(m=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===Ho&&c===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ti){R=B.backslashes=!0,I=W();continue}if(I===df){m=B.isGlob=!0,N=!0;break}}continue}break}if(I===Bo){if(L===Bo&&(w=B.isGlobstar=!0),m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===pf){if(m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===aw){for(;ie()!==!0&&(b=W());){if(b===Ti){R=B.backslashes=!0,W();continue}if(b===uw){g=B.isBracket=!0,m=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===Ho&&c===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===$o){if(m=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===$o){R=B.backslashes=!0,I=W();continue}if(I===df){N=!0;break}}continue}break}if(m===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let G=l,Me="",_="";u>0&&(Me=l.slice(0,u),l=l.slice(u),h-=u),G&&m===!0&&h>0?(G=l.slice(0,h),_=l.slice(h)):m===!0?(G="",_=l):G=l,G&&G!==""&&G!=="/"&&G!==l&&mf(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),r.unescape===!0&&(_&&(_=ff.removeBackslashes(_)),G&&R===!0&&(G=ff.removeBackslashes(G)));let p={prefix:Me,input:t,start:u,base:G,glob:_,isBrace:f,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:w,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,mf(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let S=0;S<s.length;S++){let O=b?b+1:u,P=s[S],T=t.slice(O,P);r.tokens&&(S===0&&u!==0?(o[S].isPrefix=!0,o[S].value=Me):o[S].value=T,gf(o[S]),p.maxDepth+=o[S].depth),(S!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let S=t.slice(b+1);a.push(S),r.tokens&&(o[o.length-1].value=S,gf(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};_f.exports=hw});var wf=d((mP,bf)=>{"use strict";var gn=Ri(),Ie=Ai(),{MAX_LENGTH:yn,POSIX_REGEX_SOURCE:fw,REGEX_NON_SPECIAL_CHARS:pw,REGEX_SPECIAL_CHARS_BACKREF:dw,REPLACEMENTS:Ef}=gn,mw=(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=>Ie.escapeRegex(n)).join("..")}return r},Pr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Go=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Ef[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(yn,r.maxLength):yn,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?"":"?:",l=Ie.isWindows(e),c=gn.globChars(l),u=gn.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:w,NO_DOT_SLASH:x,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:q}=c,L=A=>`(${a}(?:(?!${q}${A.dot?y:h}).)*?)`,I=r.dot?"":w,B=r.dot?M:re,ie=r.bash===!0?L(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={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=Ie.removePrefix(t,E),n=t.length;let W=[],G=[],Me=[],_=s,p,b=()=>E.index===n-1,S=E.peek=(A=1)=>t[E.index+A],O=E.advance=()=>t[++E.index]||"",P=()=>t.slice(E.index+1),T=(A="",K=0)=>{E.consumed+=A,E.index+=K},Y=A=>{E.output+=A.output!=null?A.output:A.value,T(A.value)},he=()=>{let A=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)O(),E.start++,A++;return A%2===0?!1:(E.negated=!0,E.start++,!0)},ne=A=>{E[A]++,Me.push(A)},be=A=>{E[A]--,Me.pop()},k=A=>{if(_.type==="globstar"){let K=E.braces>0&&(A.type==="comma"||A.type==="brace"),v=A.extglob===!0||W.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!K&&!v&&(E.output=E.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,E.output+=_.output)}if(W.length&&A.type!=="paren"&&(W[W.length-1].inner+=A.value),(A.value||A.output)&&Y(A),_&&_.type==="text"&&A.type==="text"){_.value+=A.value,_.output=(_.output||"")+A.value;return}A.prev=_,o.push(A),_=A},Be=(A,K)=>{let v={...u[K],conditions:1,inner:""};v.prev=_,v.parens=E.parens,v.output=E.output;let F=(r.capture?"(":"")+v.open;ne("parens"),k({type:A,value:K,output:E.output?"":m}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(v)},nS=A=>{let K=A.close+(r.capture?")":""),v;if(A.type==="negate"){let F=ie;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(K=A.close=`)$))${F}`),A.inner.includes("*")&&(v=P())&&/^\.[^\\/.]+$/.test(v)){let Q=Go(v,{...e,fastpaths:!1}).output;K=A.close=`)${Q})${F})`}A.prev.type==="bos"&&(E.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:K}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,K=t.replace(dw,(v,F,Q,we,se,ao)=>we==="\\"?(A=!0,v):we==="?"?F?F+we+(se?M.repeat(se.length):""):ao===0?B+(se?M.repeat(se.length):""):M.repeat(Q.length):we==="."?h.repeat(Q.length):we==="*"?F?F+we+(se?ie:""):ie:F?v:`\\${v}`);return A===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),K===t&&r.contains===!0?(E.output=t,E):(E.output=Ie.wrapOutput(K,E,e),E)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let v=S();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,E.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),E.brackets===0){k({type:"text",value:p});continue}}if(E.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let v=_.value.slice(1);if(v.includes("[")&&(_.posix=!0,v.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),we=_.value.slice(F+2),se=fw[we];if(se){_.value=Q+se,E.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=m);continue}}}(p==="["&&S()!==":"||p==="-"&&S()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(E.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Pr("opening","("));let v=W[W.length-1];if(v&&E.parens===v.parens+1){nS(W.pop());continue}k({type:"paren",value:p,output:E.parens?")":"\\)"}),be("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));p=`\\${p}`}else ne("brackets");k({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){k({type:"text",value:p,output:`\\${p}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Pr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let v=_.value.slice(1);if(_.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(v))continue;let F=Ie.escapeRegex(_.value);if(E.output=E.output.slice(0,-_.value.length),r.literalBrackets===!0){E.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,E.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let v={type:"brace",value:p,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};G.push(v),k(v);continue}if(p==="}"){let v=G[G.length-1];if(r.nobrace===!0||!v){k({type:"text",value:p,output:p});continue}let F=")";if(v.dots===!0){let Q=o.slice(),we=[];for(let se=Q.length-1;se>=0&&(o.pop(),Q[se].type!=="brace");se--)Q[se].type!=="dots"&&we.unshift(Q[se].value);F=mw(we,r),E.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let Q=E.output.slice(0,v.outputIndex),we=E.tokens.slice(v.tokensIndex);v.value=v.output="\\{",p=F="\\}",E.output=Q;for(let se of we)E.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),G.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let v=p,F=G[G.length-1];F&&Me[Me.length-1]==="braces"&&(F.comma=!0,v="|"),k({type:"comma",value:p,output:v});continue}if(p==="/"){if(_.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(E.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let v=G[G.length-1];_.type="dots",_.output+=p,_.value+=p,v.dots=!0;continue}if(E.braces+E.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Be("qmark",p);continue}if(_&&_.type==="paren"){let F=S(),Q=p;if(F==="<"&&!Ie.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(P()))&&(Q=`\\${p}`),k({type:"text",value:p,output:Q});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){Be("negate",p);continue}if(r.nonegate!==!0&&E.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Be("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||E.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let v=pw.exec(P());v&&(p+=v[0],E.index+=v[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,E.backtrack=!0,E.globstar=!0,T(p);continue}let A=P();if(r.noextglob!==!0&&/^\([^?]/.test(A)){Be("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let v=_.prev,F=v.prev,Q=v.type==="slash"||v.type==="bos",we=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||A[0]&&A[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=E.braces>0&&(v.type==="comma"||v.type==="brace"),ao=W.length&&(v.type==="pipe"||v.type==="paren");if(!Q&&v.type!=="paren"&&!se&&!ao){k({type:"star",value:p,output:""});continue}for(;A.slice(0,3)==="/**";){let en=t[E.index+4];if(en&&en!=="/")break;A=A.slice(3),T("/**",3)}if(v.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),E.output=_.output,E.globstar=!0,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!we&&b()){E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,E.globstar=!0,E.output+=v.output+_.output,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&A[0]==="/"){let en=A[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${en})`,_.value+=p,E.output+=v.output+_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&A[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,E.output=_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,E.output+=_.output,E.globstar=!0,T(p);continue}let K={type:"star",value:p,output:ie};if(r.bash===!0){K.output=".*?",(_.type==="bos"||_.type==="slash")&&(K.output=I+K.output),k(K);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&r.regex===!0){K.output=p,k(K);continue}(E.index===E.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(E.output+=x,_.output+=x):r.dot===!0?(E.output+=R,_.output+=R):(E.output+=I,_.output+=I),S()!=="*"&&(E.output+=m,_.output+=m)),k(K)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));E.output=Ie.escapeLast(E.output,"["),be("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing",")"));E.output=Ie.escapeLast(E.output,"("),be("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","}"));E.output=Ie.escapeLast(E.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),E.backtrack===!0){E.output="";for(let A of E.tokens)E.output+=A.output!=null?A.output:A.value,A.suffix&&(E.output+=A.suffix)}return E};Go.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(yn,r.maxLength):yn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Ef[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:m}=gn.globChars(s),y=r.dot?h:u,w=r.dot?f:u,x=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${x}(?:(?!${m}${I.dot?c:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${l}${M}`;case".*":return`${o}${l}${M}`;case"*.*":return`${y}${M}${o}${l}${M}`;case"*/*":return`${y}${M}${a}${l}${w}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${w}${l}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${w}${M}${o}${l}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${l}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},q=Ie.removePrefix(t,R),L=N(q);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};bf.exports=Go});var vf=d((gP,xf)=>{"use strict";var gw=require("path"),yw=Sf(),jo=wf(),Wo=Ai(),_w=Ri(),Sw=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let m=g(f);if(m)return m}return!1}}let i=Sw(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Wo.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=J(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:g,output:m}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:m,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(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};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?Wo.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};J.matchBase=(t,e,r,i=Wo.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(gw.basename(t));J.isMatch=(t,e,r)=>J(e,r)(t);J.parse=(t,e)=>Array.isArray(t)?t.map(r=>J.parse(r,e)):jo(t,{...e,fastpaths:!1});J.scan=(t,e)=>yw(t,e);J.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 l=J.toRegex(a,e);return i===!0&&(l.state=t),l};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=jo.fastpaths(t,e)),n.output||(n=jo(t,e)),J.compileRe(n,e,r,i)};J.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/$^/}};J.constants=_w;xf.exports=J});var Af=d((yP,Rf)=>{"use strict";Rf.exports=vf()});var Lf=d((_P,Pf)=>{"use strict";var Of=require("util"),Cf=of(),et=Af(),Yo=Ai(),Tf=t=>t===""||t==="./",X=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=et(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let m=h(g,!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(u=>!i.has(u));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(u=>u.replace(/\\/g,"")):e}return c};X.match=X;X.matcher=(t,e)=>et(t,e);X.isMatch=(t,e,r)=>et(e,r)(t);X.any=X.isMatch;X.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(X(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};X.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Of.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>X.contains(t,i,r));if(typeof e=="string"){if(Tf(t)||Tf(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return X.isMatch(t,e,{...r,contains:!0})};X.matchKeys=(t,e,r)=>{if(!Yo.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=X(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};X.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(i.some(o=>s(o)))return!0}return!1};X.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};X.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Of.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};X.capture=(t,e,r)=>{let i=Yo.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?Yo.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};X.makeRe=(...t)=>et.makeRe(...t);X.scan=(...t)=>et.scan(...t);X.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Cf(String(i),e))r.push(et.parse(n,e));return r};X.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Cf(t,e)};X.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return X.braces(t,{...e,expand:!0})};Pf.exports=X});var qf=d(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var Ew=require("path"),bw=wh(),zo=Lf(),If="**",ww="\\",xw=/[*?]|^!/,vw=/\[[^[]*]/,Rw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Aw=/[!*+?@]\([^(]*\)/,Tw=/,|\.\./;function kf(t,e={}){return!Nf(t,e)}D.isStaticPattern=kf;function Nf(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(ww)||xw.test(t)||vw.test(t)||Rw.test(t)||e.extglob!==!1&&Aw.test(t)||e.braceExpansion!==!1&&Ow(t))}D.isDynamicPattern=Nf;function Ow(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 Tw.test(i)}function Cw(t){return _n(t)?t.slice(1):t}D.convertToPositivePattern=Cw;function Pw(t){return"!"+t}D.convertToNegativePattern=Pw;function _n(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=_n;function Df(t){return!_n(t)}D.isPositivePattern=Df;function Lw(t){return t.filter(_n)}D.getNegativePatterns=Lw;function Iw(t){return t.filter(Df)}D.getPositivePatterns=Iw;function kw(t){return t.filter(e=>!Ko(e))}D.getPatternsInsideCurrentDirectory=kw;function Nw(t){return t.filter(Ko)}D.getPatternsOutsideCurrentDirectory=Nw;function Ko(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=Ko;function Dw(t){return bw(t,{flipBackslashes:!1})}D.getBaseDirectory=Dw;function Fw(t){return t.includes(If)}D.hasGlobStar=Fw;function Ff(t){return t.endsWith("/"+If)}D.endsWithSlashGlobStar=Ff;function Mw(t){let e=Ew.basename(t);return Ff(t)||kf(e)}D.isAffectDepthOfReadingPattern=Mw;function Bw(t){return t.reduce((e,r)=>e.concat(Mf(r)),[])}D.expandPatternsWithBraceExpansion=Bw;function Mf(t){return zo.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=Mf;function qw(t,e){let{parts:r}=zo.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}D.getPatternParts=qw;function Bf(t,e){return zo.makeRe(t,e)}D.makeRe=Bf;function Hw(t,e){return t.map(r=>Bf(r,e))}D.convertPatternsToRe=Hw;function Uw(t,e){return e.some(r=>r.test(t))}D.matchAny=Uw});var Gf=d((EP,$f)=>{"use strict";var $w=require("stream"),Hf=$w.PassThrough,Gw=Array.prototype.slice;$f.exports=jw;function jw(){let t=[],e=Gw.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=Hf(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Uf(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function g(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",w),f()}function w(x){o.emit("error",x)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",w),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)g(u[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Uf(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Uf(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Hf(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Wf=d(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.merge=void 0;var Ww=Gf();function Yw(t){let e=Ww(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>jf(t)),e.once("end",()=>jf(t)),e}Sn.merge=Yw;function jf(t){t.forEach(e=>e.emit("close"))}});var Yf=d(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.isEmpty=Lr.isString=void 0;function zw(t){return typeof t=="string"}Lr.isString=zw;function Kw(t){return t===""}Lr.isEmpty=Kw});var gt=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Vw=fh();de.array=Vw;var Xw=ph();de.errno=Xw;var Zw=dh();de.fs=Zw;var Qw=mh();de.path=Qw;var Jw=qf();de.pattern=Jw;var ex=Wf();de.stream=ex;var tx=Yf();de.string=tx});var Vf=d(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var yt=gt();function rx(t,e){let r=zf(t),i=Kf(t,e.ignore),n=r.filter(l=>yt.pattern.isStaticPattern(l,e)),s=r.filter(l=>yt.pattern.isDynamicPattern(l,e)),o=Vo(n,i,!1),a=Vo(s,i,!0);return o.concat(a)}me.generate=rx;function Vo(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=Xo(n),a=Xo(s);return i.push(...Zo(o,e,r)),"."in a?i.push(Qo(".",s,e,r)):i.push(...Zo(a,e,r)),i}me.convertPatternsToTasks=Vo;function zf(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=zf;function Kf(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Kf;function Xo(t){let e={};return t.reduce((r,i)=>{let n=yt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}me.groupPatternsByBaseDirectory=Xo;function Zo(t,e,r){return Object.keys(t).map(i=>Qo(i,t[i],e,r))}me.convertPatternGroupsToTasks=Zo;function Qo(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=Qo});var Zf=d(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.removeDuplicateSlashes=Ir.transform=void 0;var ix=/(?!^)\/{2,}/g;function nx(t){return t.map(e=>Xf(e))}Ir.transform=nx;function Xf(t){return t.replace(ix,"/")}Ir.removeDuplicateSlashes=Xf});var Jf=d(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.read=void 0;function sx(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Qf(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Jo(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Qf(r,s);return}Jo(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Jo(r,o)})})}En.read=sx;function Qf(t,e){t(e)}function Jo(t,e){t(null,e)}});var ep=d(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.read=void 0;function ox(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}}bn.read=ox});var tp=d(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.createFileSystemAdapter=kt.FILE_SYSTEM_ADAPTER=void 0;var wn=require("fs");kt.FILE_SYSTEM_ADAPTER={lstat:wn.lstat,stat:wn.stat,lstatSync:wn.lstatSync,statSync:wn.statSync};function ax(t){return t===void 0?kt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kt.FILE_SYSTEM_ADAPTER),t)}kt.createFileSystemAdapter=ax});var rp=d(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var lx=tp(),ea=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=lx.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}};ta.default=ea});var sr=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.statSync=Nt.stat=Nt.Settings=void 0;var ip=Jf(),cx=ep(),ra=rp();Nt.Settings=ra.default;function ux(t,e,r){if(typeof e=="function"){ip.read(t,ia(),e);return}ip.read(t,ia(e),r)}Nt.stat=ux;function hx(t,e){let r=ia(e);return cx.read(t,r)}Nt.statSync=hx;function ia(t={}){return t instanceof ra.default?t:new ra.default(t)}});var op=d((LP,sp)=>{var np;sp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(np||(np=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var lp=d((IP,ap)=>{ap.exports=px;var fx=op();function px(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(l){function c(){e&&e(l,r),e=null}s?fx(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var na=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xn=process.versions.node.split(".");if(xn[0]===void 0||xn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var cp=Number.parseInt(xn[0],10),dx=Number.parseInt(xn[1],10),up=10,mx=10,gx=cp>up,yx=cp===up&&dx>=mx;vn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=gx||yx});var hp=d(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.createDirentFromStats=void 0;var sa=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 _x(t,e){return new sa(t,e)}Rn.createDirentFromStats=_x});var oa=d(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.fs=void 0;var Sx=hp();An.fs=Sx});var aa=d(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.joinPathSegments=void 0;function Ex(t,e,r){return t.endsWith(r)?t+e:t+r+e}Tn.joinPathSegments=Ex});var yp=d(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.readdir=Dt.readdirWithFileTypes=Dt.read=void 0;var bx=sr(),fp=lp(),wx=na(),pp=oa(),dp=aa();function xx(t,e,r){if(!e.stats&&wx.IS_SUPPORT_READDIR_WITH_FILE_TYPES){mp(t,e,r);return}gp(t,e,r)}Dt.read=xx;function mp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){On(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:dp.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){la(r,s);return}let o=s.map(a=>vx(a,e));fp(o,(a,l)=>{if(a!==null){On(r,a);return}la(r,l)})})}Dt.readdirWithFileTypes=mp;function vx(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=pp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function gp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){On(r,i);return}let s=n.map(o=>{let a=dp.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{bx.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:pp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});fp(s,(o,a)=>{if(o!==null){On(r,o);return}la(r,a)})})}Dt.readdir=gp;function On(t,e){t(e)}function la(t,e){t(null,e)}});var wp=d(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var Rx=sr(),Ax=na(),_p=oa(),Sp=aa();function Tx(t,e){return!e.stats&&Ax.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ep(t,e):bp(t,e)}Ft.read=Tx;function Ep(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Sp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=_p.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Ft.readdirWithFileTypes=Ep;function bp(t,e){return e.fs.readdirSync(t).map(i=>{let n=Sp.joinPathSegments(t,i,e.pathSegmentSeparator),s=Rx.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:_p.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Ft.readdir=bp});var xp=d(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createFileSystemAdapter=Mt.FILE_SYSTEM_ADAPTER=void 0;var kr=require("fs");Mt.FILE_SYSTEM_ADAPTER={lstat:kr.lstat,stat:kr.stat,lstatSync:kr.lstatSync,statSync:kr.statSync,readdir:kr.readdir,readdirSync:kr.readdirSync};function Ox(t){return t===void 0?Mt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mt.FILE_SYSTEM_ADAPTER),t)}Mt.createFileSystemAdapter=Ox});var vp=d(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var Cx=require("path"),Px=sr(),Lx=xp(),ca=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Lx.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Cx.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Px.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};ua.default=ca});var Cn=d(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.scandirSync=Bt.scandir=void 0;var Rp=yp(),Ix=wp(),ha=vp();Bt.Settings=ha.default;function kx(t,e,r){if(typeof e=="function"){Rp.read(t,fa(),e);return}Rp.read(t,fa(e),r)}Bt.scandir=kx;function Nx(t,e){let r=fa(e);return Ix.read(t,r)}Bt.scandirSync=Nx;function fa(t={}){return t instanceof ha.default?t:new ha.default(t)}});var Tp=d(($P,Ap)=>{"use strict";function Dx(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}}Ap.exports=Dx});var Cp=d((GP,pa)=>{"use strict";var Fx=Tp();function Op(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=Fx(Mx),n=null,s=null,o=0,a=null,l={push:y,drain:He,saturated:He,pause:u,paused:!1,concurrency:r,running:c,resume:g,idle:m,length:h,getQueue:f,unshift:w,empty:He,kill:R,killAndDrain:M,error:re};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var N=n,q=0;N;)N=N.next,q++;return q}function f(){for(var N=n,q=[];N;)q.push(N.value),N=N.next;return q}function g(){if(l.paused){l.paused=!1;for(var N=0;N<l.concurrency;N++)o++,x()}}function m(){return o===0&&l.length()===0}function y(N,q){var L=i.get();L.context=t,L.release=x,L.value=N,L.callback=q||He,L.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=L,s=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function w(N,q){var L=i.get();L.context=t,L.release=x,L.value=N,L.callback=q||He,o===l.concurrency||l.paused?n?(L.next=n,n=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N){N&&i.release(N);var q=n;q?l.paused?o--:(s===n&&(s=null),n=q.next,q.next=null,e.call(t,q.value,q.worked),s===null&&l.empty()):--o===0&&l.drain()}function R(){n=null,s=null,l.drain=He}function M(){n=null,s=null,l.drain(),l.drain=He}function re(N){a=N}}function He(){}function Mx(){this.value=null,this.callback=He,this.next=null,this.release=He,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=He,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function Bx(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,h){e.call(this,u).then(function(f){h(null,f)},h)}var n=Op(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,g){s(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(He),h}function l(u){var h=new Promise(function(f,g){o(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(He),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}pa.exports=Op;pa.exports.promise=Bx});var Pn=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function qx(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=qx;function Hx(t,e){return t===null||t(e)}tt.isAppliedFilter=Hx;function Ux(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=Ux;function $x(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=$x});var ga=d(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var Gx=Pn(),da=class{constructor(e,r){this._root=e,this._settings=r,this._root=Gx.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};ma.default=da});var Sa=d(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var jx=require("events"),Wx=Cn(),Yx=Cp(),Ln=Pn(),zx=ga(),ya=class extends zx.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Wx.scandir,this._emitter=new jx.EventEmitter,this._queue=Yx(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||!Ln.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=Ln.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ln.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ln.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};_a.default=ya});var Pp=d(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Kx=Sa(),Ea=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Kx.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Vx(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Xx(e,this._storage)}),this._reader.read()}};ba.default=Ea;function Vx(t,e){t(e)}function Xx(t,e){t(null,e)}});var Lp=d(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var Zx=require("stream"),Qx=Sa(),wa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Qx.default(this._root,this._settings),this._stream=new Zx.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}};xa.default=wa});var Ip=d(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Jx=Cn(),In=Pn(),ev=ga(),va=class extends ev.default{constructor(){super(...arguments),this._scandir=Jx.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(In.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=In.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),In.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&In.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ra.default=va});var kp=d(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var tv=Ip(),Aa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tv.default(this._root,this._settings)}read(){return this._reader.read()}};Ta.default=Aa});var Np=d(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var rv=require("path"),iv=Cn(),Oa=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,rv.sep),this.fsScandirSettings=new iv.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}};Ca.default=Oa});var Nn=d(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var Dp=Pp(),nv=Lp(),sv=kp(),Pa=Np();rt.Settings=Pa.default;function ov(t,e,r){if(typeof e=="function"){new Dp.default(t,kn()).read(e);return}new Dp.default(t,kn(e)).read(r)}rt.walk=ov;function av(t,e){let r=kn(e);return new sv.default(t,r).read()}rt.walkSync=av;function lv(t,e){let r=kn(e);return new nv.default(t,r).read()}rt.walkStream=lv;function kn(t={}){return t instanceof Pa.default?t:new Pa.default(t)}});var Dn=d(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var cv=require("path"),uv=sr(),Fp=gt(),La=class{constructor(e){this._settings=e,this._fsStatSettings=new uv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return cv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Fp.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Fp.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ia.default=La});var Da=d(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var hv=require("stream"),fv=sr(),pv=Nn(),dv=Dn(),ka=class extends dv.default{constructor(){super(...arguments),this._walkStream=pv.walkStream,this._stat=fv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new hv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),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))})}};Na.default=ka});var Mp=d(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var mv=Nn(),gv=Dn(),yv=Da(),Fa=class extends gv.default{constructor(){super(...arguments),this._walkAsync=mv.walk,this._readerStream=new yv.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))})}};Ma.default=Fa});var Bp=d(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var Nr=gt(),Ba=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Nr.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 Nr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Nr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Nr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Nr.array.splitWhen(e,r=>r.dynamic&&Nr.pattern.hasGlobStar(r.pattern))}};qa.default=Ba});var qp=d(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var _v=Bp(),Ha=class extends _v.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((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Ua.default=Ha});var Hp=d(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Fn=gt(),Sv=qp(),$a=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 Sv.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Fn.pattern.isAffectDepthOfReadingPattern);return Fn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Fn.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!Fn.pattern.matchAny(e,r)}};Ga.default=$a});var Up=d(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var or=gt(),ja=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=or.pattern.convertPatternsToRe(e,this._micromatchOptions),n=or.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=or.path.makeAbsolute(this._settings.cwd,e);return or.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=or.path.removeLeadingDotSegment(e),s=or.pattern.matchAny(n,r);return!s&&i?or.pattern.matchAny(n+"/",r):s}};Wa.default=ja});var $p=d(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var Ev=gt(),Ya=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Ev.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};za.default=Ya});var jp=d(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var Gp=gt(),Ka=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Gp.path.makeAbsolute(this._settings.cwd,r),r=Gp.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Va.default=Ka});var Mn=d(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var bv=require("path"),wv=Hp(),xv=Up(),vv=$p(),Rv=jp(),Xa=class{constructor(e){this._settings=e,this.errorFilter=new vv.default(this._settings),this.entryFilter=new xv.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new wv.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Rv.default(this._settings)}_getRootDirectory(e){return bv.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}}};Za.default=Xa});var Wp=d(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var Av=Mp(),Tv=Mn(),Qa=class extends Tv.default{constructor(){super(...arguments),this._reader=new Av.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)}};Ja.default=Qa});var Yp=d(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Ov=require("stream"),Cv=Da(),Pv=Mn(),el=class extends Pv.default{constructor(){super(...arguments),this._reader=new Cv.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new Ov.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)}};tl.default=el});var zp=d(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var Lv=sr(),Iv=Nn(),kv=Dn(),rl=class extends kv.default{constructor(){super(...arguments),this._walkSync=Iv.walkSync,this._statSync=Lv.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)}};il.default=rl});var Kp=d(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var Nv=zp(),Dv=Mn(),nl=class extends Dv.default{constructor(){super(...arguments),this._reader=new Nv.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)}};sl.default=nl});var Vp=d(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Dr=require("fs"),Fv=require("os"),Mv=Math.max(Fv.cpus().length,1);Fr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Dr.lstat,lstatSync:Dr.lstatSync,stat:Dr.stat,statSync:Dr.statSync,readdir:Dr.readdir,readdirSync:Dr.readdirSync};var ol=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,Mv),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({},Fr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Fr.default=ol});var Jp=d((dL,Qp)=>{"use strict";var Xp=Vf(),Zp=Zf(),Bv=Wp(),qv=Yp(),Hv=Kp(),al=Vp(),ar=gt();async function ll(t,e){Mr(t);let r=cl(t,Bv.default,e),i=await Promise.all(r);return ar.array.flatten(i)}(function(t){function e(o,a){Mr(o);let l=cl(o,Hv.default,a);return ar.array.flatten(l)}t.sync=e;function r(o,a){Mr(o);let l=cl(o,qv.default,a);return ar.stream.merge(l)}t.stream=r;function i(o,a){Mr(o);let l=Zp.transform([].concat(o)),c=new al.default(a);return Xp.generate(l,c)}t.generateTasks=i;function n(o,a){Mr(o);let l=new al.default(a);return ar.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Mr(o),ar.path.escape(o)}t.escapePath=s})(ll||(ll={}));function cl(t,e,r){let i=Zp.transform([].concat(t)),n=new al.default(r),s=Xp.generate(i,n),o=new e(n);return s.map(o.read,o)}function Mr(t){if(![].concat(t).every(i=>ar.string.isString(i)&&!ar.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Qp.exports=ll});var pd=d((SL,fd)=>{fd.exports=hd;hd.sync=rR;var cd=require("fs");function tR(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 ud(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:tR(e,r)}function hd(t,e,r){cd.stat(t,function(i,n){r(i,i?!1:ud(n,t,e))})}function rR(t,e){return ud(cd.statSync(t),t,e)}});var _d=d((EL,yd)=>{yd.exports=md;md.sync=iR;var dd=require("fs");function md(t,e,r){dd.stat(t,function(i,n){r(i,i?!1:gd(n,e))})}function iR(t,e){return gd(dd.statSync(t),e)}function gd(t,e){return t.isFile()&&nR(t,e)}function nR(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),l=parseInt("010",8),c=parseInt("001",8),u=a|l,h=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return h}});var Ed=d((wL,Sd)=>{var bL=require("fs"),Bn;process.platform==="win32"||global.TESTING_WINDOWS?Bn=pd():Bn=_d();Sd.exports=hl;hl.sync=sR;function hl(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){hl(t,e||{},function(s,o){s?n(s):i(o)})})}Bn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function sR(t,e){try{return Bn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Td=d((xL,Ad)=>{var qr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",bd=require("path"),oR=qr?";":":",wd=Ed(),xd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),vd=(t,e)=>{let r=e.colon||oR,i=t.match(/\//)||qr&&t.match(/\\/)?[""]:[...qr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=qr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=qr?n.split(r):[""];return qr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Rd=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=vd(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(xd(t));let f=i[c],g=/^".*"$/.test(f)?f.slice(1,-1):f,m=bd.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(l(y,c,0))}),l=(c,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let m=n[h];wd(c+m,{pathExt:s},(y,w)=>{if(!y&&w)if(e.all)o.push(c+m);else return f(c+m);return f(l(c,u,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},aR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=vd(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=bd.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(wd.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 xd(t)};Ad.exports=Rd;Rd.sync=aR});var pl=d((vL,fl)=>{"use strict";var Od=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};fl.exports=Od;fl.exports.default=Od});var Id=d((RL,Ld)=>{"use strict";var Cd=require("path"),lR=Td(),cR=pl();function Pd(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=lR.sync(t.command,{path:r[cR({env:r})],pathExt:e?Cd.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Cd.resolve(n?t.options.cwd:"",o)),o}function uR(t){return Pd(t)||Pd(t,!0)}Ld.exports=uR});var kd=d((AL,ml)=>{"use strict";var dl=/([()\][%!^"`<>&|;, *?])/g;function hR(t){return t=t.replace(dl,"^$1"),t}function fR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(dl,"^$1"),e&&(t=t.replace(dl,"^$1")),t}ml.exports.command=hR;ml.exports.argument=fR});var Dd=d((TL,Nd)=>{"use strict";Nd.exports=/^#!(.*)/});var Md=d((OL,Fd)=>{"use strict";var pR=Dd();Fd.exports=(t="")=>{let e=t.match(pR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var qd=d((CL,Bd)=>{"use strict";var gl=require("fs"),dR=Md();function mR(t){let r=Buffer.alloc(150),i;try{i=gl.openSync(t,"r"),gl.readSync(i,r,0,150,0),gl.closeSync(i)}catch{}return dR(r.toString())}Bd.exports=mR});var Gd=d((PL,$d)=>{"use strict";var gR=require("path"),Hd=Id(),Ud=kd(),yR=qd(),_R=process.platform==="win32",SR=/\.(?:com|exe)$/i,ER=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function bR(t){t.file=Hd(t);let e=t.file&&yR(t.file);return e?(t.args.unshift(t.file),t.command=e,Hd(t)):t.file}function wR(t){if(!_R)return t;let e=bR(t),r=!SR.test(e);if(t.options.forceShell||r){let i=ER.test(e);t.command=gR.normalize(t.command),t.command=Ud.command(t.command),t.args=t.args.map(s=>Ud.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 xR(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:wR(i)}$d.exports=xR});var Yd=d((LL,Wd)=>{"use strict";var yl=process.platform==="win32";function _l(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 vR(t,e){if(!yl)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=jd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function jd(t,e){return yl&&t===1&&!e.file?_l(e.original,"spawn"):null}function RR(t,e){return yl&&t===1&&!e.file?_l(e.original,"spawnSync"):null}Wd.exports={hookChildProcess:vR,verifyENOENT:jd,verifyENOENTSync:RR,notFoundError:_l}});var Vd=d((IL,Hr)=>{"use strict";var zd=require("child_process"),Sl=Gd(),El=Yd();function Kd(t,e,r){let i=Sl(t,e,r),n=zd.spawn(i.command,i.args,i.options);return El.hookChildProcess(n,i),n}function AR(t,e,r){let i=Sl(t,e,r),n=zd.spawnSync(i.command,i.args,i.options);return n.error=n.error||El.verifyENOENTSync(n.status,i),n}Hr.exports=Kd;Hr.exports.spawn=Kd;Hr.exports.sync=AR;Hr.exports._parse=Sl;Hr.exports._enoent=El});var Zd=d((kL,Xd)=>{"use strict";Xd.exports=t=>{let e=typeof t=="string"?`
3
3
  `:`
4
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var tm=d((NL,Pi)=>{"use strict";var Ci=require("path"),Jd=pl(),em=t=>{t={cwd:process.cwd(),path:process.env[Jd()],execPath:process.execPath,...t};let e,r=Ci.resolve(t.cwd),i=[];for(;e!==r;)i.push(Ci.join(r,"node_modules/.bin")),e=r,r=Ci.resolve(r,"..");let n=Ci.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Ci.delimiter)};Pi.exports=em;Pi.exports.default=em;Pi.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Jd({env:e});return t.path=e[r],e[r]=Pi.exports(t),e}});var im=d((DL,bl)=>{"use strict";var rm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};bl.exports=rm;bl.exports.default=rm});var sm=d((FL,Gn)=>{"use strict";var PR=im(),$n=new WeakMap,nm=(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($n.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 PR(s,t),$n.set(s,i),s};Gn.exports=nm;Gn.exports.default=nm;Gn.exports.callCount=t=>{if(!$n.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return $n.get(t)}});var om=d(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.SIGNALS=void 0;var LR=[{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"}];jn.SIGNALS=LR});var xl=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var IR=function(){let t=lm-am+1;return Array.from({length:t},kR)};Ur.getRealtimeSignals=IR;var kR=function(t,e){return{name:`SIGRT${e+1}`,number:am+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},am=34,lm=64;Ur.SIGRTMAX=lm});var cm=d(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.getSignals=void 0;var NR=require("os"),DR=om(),FR=xl(),MR=function(){let t=(0,FR.getRealtimeSignals)();return[...DR.SIGNALS,...t].map(BR)};Wn.getSignals=MR;var BR=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=NR.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var hm=d($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.signalsByNumber=$r.signalsByName=void 0;var qR=require("os"),um=cm(),HR=xl(),UR=function(){return(0,um.getSignals)().reduce($R,{})},$R=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}}},GR=UR();$r.signalsByName=GR;var jR=function(){let t=(0,um.getSignals)(),e=HR.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>WR(n,t));return Object.assign({},...r)},WR=function(t,e){let r=YR(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:l}}},YR=function(t,e){let r=e.find(({name:i})=>qR.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},zR=jR();$r.signalsByNumber=zR});var pm=d((UL,fm)=>{"use strict";var{signalsByName:KR}=hm(),VR=({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",XR=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:KR[n].description,g=i&&i.code,y=`Command ${VR({timedOut:l,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,x=Object.prototype.toString.call(i)==="[object Error]",w=x?`${y}
5
- ${i.message}`:y,R=[w,e,t].filter(Boolean).join(`
6
- `);return x?(i.originalMessage=i.message,i.message=R):i=new Error(R),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=!!l,i.isCanceled=c,i.killed=u&&!l,i};fm.exports=XR});var mm=d(($L,wl)=>{"use strict";var Yn=["stdin","stdout","stderr"],ZR=t=>Yn.some(e=>t[e]!==void 0),dm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Yn.map(i=>t[i]);if(ZR(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Yn.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,Yn.length);return Array.from({length:r},(i,n)=>e[n])};wl.exports=dm;wl.exports.node=t=>{let e=dm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var gm=d((GL,zn)=>{zn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&zn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&zn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var bm=d((jL,Wr)=>{var X=global.process,lr=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"};lr(X)?(ym=require("assert"),Gr=gm(),_m=/^win/i.test(X.platform),Li=require("events"),typeof Li!="function"&&(Li=Li.EventEmitter),X.__signal_exit_emitter__?le=X.__signal_exit_emitter__:(le=X.__signal_exit_emitter__=new Li,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Wr.exports=function(t,e){if(!lr(global.process))return function(){};ym.equal(typeof t,"function","a callback must be provided for exit handler"),jr===!1&&vl();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Kn()};return le.on(r,t),i},Kn=function(){!jr||!lr(global.process)||(jr=!1,Gr.forEach(function(e){try{X.removeListener(e,Vn[e])}catch{}}),X.emit=Xn,X.reallyExit=Rl,le.count-=1)},Wr.exports.unload=Kn,cr=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Vn={},Gr.forEach(function(t){Vn[t]=function(){if(lr(global.process)){var r=X.listeners(t);r.length===le.count&&(Kn(),cr("exit",null,t),cr("afterexit",null,t),_m&&t==="SIGHUP"&&(t="SIGINT"),X.kill(X.pid,t))}}}),Wr.exports.signals=function(){return Gr},jr=!1,vl=function(){jr||!lr(global.process)||(jr=!0,le.count+=1,Gr=Gr.filter(function(e){try{return X.on(e,Vn[e]),!0}catch{return!1}}),X.emit=Em,X.reallyExit=Sm)},Wr.exports.load=vl,Rl=X.reallyExit,Sm=function(e){lr(global.process)&&(X.exitCode=e||0,cr("exit",X.exitCode,null),cr("afterexit",X.exitCode,null),Rl.call(X,X.exitCode))},Xn=X.emit,Em=function(e,r){if(e==="exit"&&lr(global.process)){r!==void 0&&(X.exitCode=r);var i=Xn.apply(this,arguments);return cr("exit",X.exitCode,null),cr("afterexit",X.exitCode,null),i}else return Xn.apply(this,arguments)}):Wr.exports=function(){return function(){}};var ym,Gr,_m,Li,le,Kn,cr,Vn,jr,vl,Rl,Sm,Xn,Em});var wm=d((WL,xm)=>{"use strict";var QR=require("os"),JR=bm(),eA=1e3*5,tA=(t,e="SIGTERM",r={})=>{let i=t(e);return rA(t,e,r,i),i},rA=(t,e,r,i)=>{if(!iA(e,r,i))return;let n=sA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},iA=(t,{forceKillAfterTimeout:e},r)=>nA(t)&&e!==!1&&r,nA=t=>t===QR.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",sA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return eA;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},oA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},aA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},lA=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{aA(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},cA=({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})`)},uA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=JR(()=>{t.kill()});return i.finally(()=>{n()})};xm.exports={spawnedKill:tA,spawnedCancel:oA,setupTimeout:lA,validateTimeout:cA,setExitHandler:uA}});var Rm=d((YL,vm)=>{"use strict";var it=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";it.writable=t=>it(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";it.readable=t=>it(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";it.duplex=t=>it.writable(t)&&it.readable(t);it.transform=t=>it.duplex(t)&&typeof t._transform=="function";vm.exports=it});var Tm=d((zL,Am)=>{"use strict";var{PassThrough:hA}=require("stream");Am.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 hA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Om=d((KL,Ii)=>{"use strict";var{constants:fA}=require("buffer"),pA=require("stream"),{promisify:dA}=require("util"),mA=Tm(),gA=dA(pA.pipeline),Zn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Al(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=mA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=fA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await gA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Zn)})}),i.getBufferedValue()}Ii.exports=Al;Ii.exports.buffer=(t,e)=>Al(t,{...e,encoding:"buffer"});Ii.exports.array=(t,e)=>Al(t,{...e,array:!0});Ii.exports.MaxBufferError=Zn});var Pm=d((VL,Cm)=>{"use strict";var{PassThrough:yA}=require("stream");Cm.exports=function(){var t=[],e=new yA({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 Nm=d((XL,km)=>{"use strict";var Im=Rm(),Lm=Om(),_A=Pm(),SA=(t,e)=>{e===void 0||t.stdin===void 0||(Im(e)?e.pipe(t.stdin):t.stdin.end(e))},EA=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=_A();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tl=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Ol=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Lm(t,{encoding:e,maxBuffer:i}):Lm.buffer(t,{maxBuffer:i})},bA=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Ol(t,{encoding:i,buffer:n,maxBuffer:s}),l=Ol(e,{encoding:i,buffer:n,maxBuffer:s}),c=Ol(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Tl(t,a),Tl(e,l),Tl(r,c)])}},xA=({input:t})=>{if(Im(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};km.exports={handleInput:SA,makeAllStream:EA,getSpawnedResult:bA,validateInputSync:xA}});var Fm=d((ZL,Dm)=>{"use strict";var wA=(async()=>{})().constructor.prototype,vA=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(wA,t)]),RA=(t,e)=>{for(let[r,i]of vA){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},AA=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)})});Dm.exports={mergePromise:RA,getSpawnedPromise:AA}});var qm=d((QL,Bm)=>{"use strict";var Mm=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],TA=/^[\w.-]+$/,OA=/"/g,CA=t=>typeof t!="string"||TA.test(t)?t:`"${t.replace(OA,'\\"')}"`,PA=(t,e)=>Mm(t,e).join(" "),LA=(t,e)=>Mm(t,e).map(r=>CA(r)).join(" "),IA=/ +/g,kA=t=>{let e=[];for(let r of t.trim().split(IA)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Bm.exports={joinCommand:PA,getEscapedCommand:LA,parseCommand:kA}});var Ym=d((JL,Yr)=>{"use strict";var NA=require("path"),Cl=require("child_process"),DA=Xd(),FA=Qd(),MA=tm(),BA=sm(),Qn=pm(),Um=mm(),{spawnedKill:qA,spawnedCancel:HA,setupTimeout:UA,validateTimeout:$A,setExitHandler:GA}=wm(),{handleInput:jA,getSpawnedResult:WA,makeAllStream:YA,validateInputSync:zA}=Nm(),{mergePromise:Hm,getSpawnedPromise:KA}=Fm(),{joinCommand:$m,parseCommand:Gm,getEscapedCommand:jm}=qm(),VA=1e3*1e3*100,XA=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?MA.env({env:s,cwd:i,execPath:n}):s},Wm=(t,e,r={})=>{let i=DA._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:VA,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=XA(r),r.stdio=Um(r),process.platform==="win32"&&NA.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},ki=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?FA(e):e,Jn=(t,e,r)=>{let i=Wm(t,e,r),n=$m(t,e),s=jm(t,e);$A(i.options);let o;try{o=Cl.spawn(i.file,i.args,i.options)}catch(g){let m=new Cl.ChildProcess,y=Promise.reject(Qn({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Hm(m,y)}let a=KA(o),l=UA(o,i.options,a),c=GA(o,i.options,l),u={isCanceled:!1};o.kill=qA.bind(null,o.kill.bind(o)),o.cancel=HA.bind(null,o,u);let f=BA(async()=>{let[{error:g,exitCode:m,signal:y,timedOut:x},w,R,M]=await WA(o,i.options,c),re=ki(i.options,w),N=ki(i.options,R),q=ki(i.options,M);if(g||m!==0||y!==null){let L=Qn({error:g,exitCode:m,signal:y,stdout:re,stderr:N,all:q,command:n,escapedCommand:s,parsed:i,timedOut:x,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:N,all:q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return jA(o,i.options.input),o.all=YA(o,i.options),Hm(o,f)};Yr.exports=Jn;Yr.exports.sync=(t,e,r)=>{let i=Wm(t,e,r),n=$m(t,e),s=jm(t,e);zA(i.options);let o;try{o=Cl.spawnSync(i.file,i.args,i.options)}catch(c){throw Qn({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=ki(i.options,o.stdout,o.error),l=ki(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Qn({stdout:a,stderr:l,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:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Yr.exports.command=(t,e)=>{let[r,...i]=Gm(t);return Jn(r,i,e)};Yr.exports.commandSync=(t,e)=>{let[r,...i]=Gm(t);return Jn.sync(r,i,e)};Yr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Um.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Jn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var zr=d((nI,Vm)=>{"use strict";var Km=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"]]);Vm.exports=t=>t?Object.keys(t).map(e=>[Km.has(e)?Km.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ss=d((sI,ng)=>{"use strict";var Xm=typeof process=="object"&&process?process:{stdout:null,stderr:null},iT=require("events"),Zm=require("stream"),Qm=require("string_decoder").StringDecoder,_t=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),es=Symbol("emittingEnd"),Ni=Symbol("emittedError"),ts=Symbol("closed"),Jm=Symbol("read"),rs=Symbol("flush"),eg=Symbol("flushChunk"),Oe=Symbol("encoding"),Et=Symbol("decoder"),is=Symbol("flowing"),Di=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),ce=Symbol("bufferLength"),Pl=Symbol("bufferPush"),Ll=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Il=Symbol("emitData"),tg=Symbol("emitEnd"),kl=Symbol("emitEnd2"),bt=Symbol("async"),Fi=t=>Promise.resolve().then(t),rg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",nT=rg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sT=rg&&Symbol.iterator||Symbol("iterator not implemented"),oT=t=>t==="end"||t==="finish"||t==="prefinish",aT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,lT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ns=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Kr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Nl=class extends ns{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)}};ng.exports=class ig extends Zm{constructor(e){super(),this[is]=!1,this[Di]=!1,this[nt]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Oe]=null:this[Oe]=e&&e.encoding||null,this[Oe]==="buffer"&&(this[Oe]=null),this[bt]=e&&!!e.async||!1,this[Et]=this[Oe]?new Qm(this[Oe]):null,this[_t]=!1,this[Ht]=!1,this[es]=!1,this[ts]=!1,this[Ni]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[nt]})}get bufferLength(){return this[ce]}get encoding(){return this[Oe]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Oe]&&e!==this[Oe]&&(this[Et]&&this[Et].lastNeed||this[ce]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[Et]=e?new Qm(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[Et].write(r)))),this[Oe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[bt]}set async(e){this[bt]=this[bt]||!!e}write(e,r,i){if(this[_t])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[bt]?Fi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(lT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[rs](!0),this.flowing?this.emit("data",e):this[Pl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[Et].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[Et].write(e)),this.flowing&&this[ce]!==0&&this[rs](!0),this.flowing?this.emit("data",e):this[Pl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[ce]===0||e===0||e>this[ce])return this[St](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[ce])]);let r=this[Jm](e||null,this[ee][0]);return this[St](),r}[Jm](e,r){return e===r.length||e===null?this[Ll]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this[ee].length&&!this[_t]&&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[_t]=!0,this.writable=!1,(this.flowing||!this[Di])&&this[St](),this}[Kr](){this[ye]||(this[Di]=!1,this[is]=!0,this.emit("resume"),this[ee].length?this[rs]():this[_t]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[is]=!1,this[Di]=!0}get destroyed(){return this[ye]}get flowing(){return this[is]}get paused(){return this[Di]}[Pl](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this[ee].push(e)}[Ll](){return this[ee].length&&(this[ge]?this[ce]-=1:this[ce]-=this[ee][0].length),this[ee].shift()}[rs](e){do;while(this[eg](this[Ll]()));!e&&!this[ee].length&&!this[_t]&&this.emit("drain")}[eg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[Ht];return r=r||{},e===Xm.stdout||e===Xm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Nl(this,e,r):new ns(this,e,r)),this[bt]?Fi(()=>this[Kr]()):this[Kr]()),e}unpipe(e){let r=this[nt].find(i=>i.dest===e);r&&(this[nt].splice(this[nt].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[nt].length&&!this.flowing?this[Kr]():e==="readable"&&this[ce]!==0?super.emit("readable"):oT(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ni]&&(this[bt]?Fi(()=>r.call(this,this[Ni])):r.call(this,this[Ni])),i}get emittedEnd(){return this[Ht]}[St](){!this[es]&&!this[Ht]&&!this[ye]&&this[ee].length===0&&this[_t]&&(this[es]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ts]&&this.emit("close"),this[es]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[bt]?Fi(()=>this[Il](r)):this[Il](r):!1;if(e==="end")return this[tg]();if(e==="close"){if(this[ts]=!0,!this[Ht]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ni]=r;let s=super.emit("error",r);return this[St](),s}else if(e==="resume"){let s=super.emit("resume");return this[St](),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[St](),n}[Il](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[tg](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[bt]?Fi(()=>this[kl]()):this[kl]())}[kl](){if(this[Et]){let r=this[Et].end();if(r){for(let i of this[nt])i.dest.write(r);super.emit("data",r)}}for(let r of this[nt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Oe]?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())})}[nT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[_t])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[_t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(ye,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[sT](){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[ee].length=0,this[ce]=0,typeof this.close=="function"&&!this[ts]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof ig||e instanceof Zm||e instanceof iT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var og=d((oI,sg)=>{var cT=require("zlib").constants||{ZLIB_VERNUM:4736};sg.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},cT))});var Hl=d((aI,mg)=>{"use strict";var ag=typeof process=="object"&&process?process:{stdout:null,stderr:null},uT=require("events"),lg=require("stream"),cg=require("string_decoder").StringDecoder,xt=Symbol("EOF"),wt=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),os=Symbol("emittingEnd"),Mi=Symbol("emittedError"),as=Symbol("closed"),ug=Symbol("read"),ls=Symbol("flush"),hg=Symbol("flushChunk"),Ce=Symbol("encoding"),vt=Symbol("decoder"),cs=Symbol("flowing"),Bi=Symbol("paused"),Vr=Symbol("resume"),ue=Symbol("bufferLength"),Dl=Symbol("bufferPush"),Fl=Symbol("bufferShift"),_e=Symbol("objectMode"),Se=Symbol("destroyed"),Ml=Symbol("emitData"),fg=Symbol("emitEnd"),Bl=Symbol("emitEnd2"),Rt=Symbol("async"),qi=t=>Promise.resolve().then(t),pg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",hT=pg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),fT=pg&&Symbol.iterator||Symbol("iterator not implemented"),pT=t=>t==="end"||t==="finish"||t==="prefinish",dT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,mT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),us=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Vr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ql=class extends us{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)}};mg.exports=class dg extends lg{constructor(e){super(),this[cs]=!1,this[Bi]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Ce]=null:this[Ce]=e&&e.encoding||null,this[Ce]==="buffer"&&(this[Ce]=null),this[Rt]=e&&!!e.async||!1,this[vt]=this[Ce]?new cg(this[Ce]):null,this[xt]=!1,this[Ut]=!1,this[os]=!1,this[as]=!1,this[Mi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Se]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Ce]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Ce]&&e!==this[Ce]&&(this[vt]&&this[vt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Ce]!==e&&(this[vt]=e?new cg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[vt].write(r)))),this[Ce]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[Rt]}set async(e){this[Rt]=this[Rt]||!!e}write(e,r,i){if(this[xt])throw new Error("write after end");if(this[Se])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[Rt]?qi:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(mT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):dT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[ls](!0),this.flowing?this.emit("data",e):this[Dl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ce]&&!this[vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ce]&&(e=this[vt].write(e)),this.flowing&&this[ue]!==0&&this[ls](!0),this.flowing?this.emit("data",e):this[Dl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Se])return null;if(this[ue]===0||e===0||e>this[ue])return this[wt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[ug](e||null,this.buffer[0]);return this[wt](),r}[ug](e,r){return e===r.length||e===null?this[Fl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ue]-=e),this.emit("data",r),!this.buffer.length&&!this[xt]&&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[xt]=!0,this.writable=!1,(this.flowing||!this[Bi])&&this[wt](),this}[Vr](){this[Se]||(this[Bi]=!1,this[cs]=!0,this.emit("resume"),this.buffer.length?this[ls]():this[xt]?this[wt]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[cs]=!1,this[Bi]=!0}get destroyed(){return this[Se]}get flowing(){return this[cs]}get paused(){return this[Bi]}[Dl](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Fl](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[ls](e){do;while(this[hg](this[Fl]()));!e&&!this.buffer.length&&!this[xt]&&this.emit("drain")}[hg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Se])return;let i=this[Ut];return r=r||{},e===ag.stdout||e===ag.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new ql(this,e,r):new us(this,e,r)),this[Rt]?qi(()=>this[Vr]()):this[Vr]()),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[Vr]():e==="readable"&&this[ue]!==0?super.emit("readable"):pT(e)&&this[Ut]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Mi]&&(this[Rt]?qi(()=>r.call(this,this[Mi])):r.call(this,this[Mi])),i}get emittedEnd(){return this[Ut]}[wt](){!this[os]&&!this[Ut]&&!this[Se]&&this.buffer.length===0&&this[xt]&&(this[os]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[as]&&this.emit("close"),this[os]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Se&&this[Se])return;if(e==="data")return r?this[Rt]?qi(()=>this[Ml](r)):this[Ml](r):!1;if(e==="end")return this[fg]();if(e==="close"){if(this[as]=!0,!this[Ut]&&!this[Se])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Mi]=r;let s=super.emit("error",r);return this[wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[wt](),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[wt](),n}[Ml](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[wt](),r}[fg](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[Rt]?qi(()=>this[Bl]()):this[Bl]())}[Bl](){if(this[vt]){let r=this[vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Ce]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Se,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[hT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[xt])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[xt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Se,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[fT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Se]?(e?this.emit("error",e):this.emit(Se),this):(this[Se]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[as]&&this.close(),e?this.emit("error",e):this.emit(Se),this)}static isStream(e){return!!e&&(e instanceof dg||e instanceof lg||e instanceof uT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var rc=d(Ne=>{"use strict";var Wl=require("assert"),$t=require("buffer").Buffer,_g=require("zlib"),ur=Ne.constants=og(),gT=Hl(),gg=$t.concat,hr=Symbol("_superWrite"),Zr=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"}},yT=Symbol("opts"),Hi=Symbol("flushFlag"),yg=Symbol("finishFlushFlag"),tc=Symbol("fullFlushFlag"),Y=Symbol("handle"),hs=Symbol("onError"),Xr=Symbol("sawError"),Ul=Symbol("level"),$l=Symbol("strategy"),Gl=Symbol("ended"),lI=Symbol("_defaultFullFlush"),fs=class extends gT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Xr]=!1,this[Gl]=!1,this[yT]=e,this[Hi]=e.flush,this[yg]=e.finishFlush;try{this[Y]=new _g[r](e)}catch(i){throw new Zr(i)}this[hs]=i=>{this[Xr]||(this[Xr]=!0,this.close(),this.emit("error",i))},this[Y].on("error",i=>this[hs](new Zr(i))),this.once("end",()=>this.close)}close(){this[Y]&&(this[Y].close(),this[Y]=null,this.emit("close"))}reset(){if(!this[Xr])return Wl(this[Y],"zlib binding closed"),this[Y].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[tc]),this.write(Object.assign($t.alloc(0),{[Hi]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[yg]),this[Gl]=!0,super.end(null,null,i)}get ended(){return this[Gl]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=$t.from(e,r)),this[Xr])return;Wl(this[Y],"zlib binding closed");let n=this[Y]._handle,s=n.close;n.close=()=>{};let o=this[Y].close;this[Y].close=()=>{},$t.concat=c=>c;let a;try{let c=typeof e[Hi]=="number"?e[Hi]:this[Hi];a=this[Y]._processChunk(e,c),$t.concat=gg}catch(c){$t.concat=gg,this[hs](new Zr(c))}finally{this[Y]&&(this[Y]._handle=n,n.close=s,this[Y].close=o,this[Y].removeAllListeners("error"))}this[Y]&&this[Y].on("error",c=>this[hs](new Zr(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[hr]($t.from(a[0]));for(let c=1;c<a.length;c++)l=this[hr](a[c])}else l=this[hr]($t.from(a));return i&&i(),l}[hr](e){return super.write(e)}},At=class extends fs{constructor(e,r){e=e||{},e.flush=e.flush||ur.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ur.Z_FINISH,super(e,r),this[tc]=ur.Z_FULL_FLUSH,this[Ul]=e.level,this[$l]=e.strategy}params(e,r){if(!this[Xr]){if(!this[Y])throw new Error("cannot switch params when binding is closed");if(!this[Y].params)throw new Error("not supported in this implementation");if(this[Ul]!==e||this[$l]!==r){this.flush(ur.Z_SYNC_FLUSH),Wl(this[Y],"zlib binding closed");let i=this[Y].flush;this[Y].flush=(n,s)=>{this.flush(n),s()};try{this[Y].params(e,r)}finally{this[Y].flush=i}this[Y]&&(this[Ul]=e,this[$l]=r)}}}},Yl=class extends At{constructor(e){super(e,"Deflate")}},zl=class extends At{constructor(e){super(e,"Inflate")}},jl=Symbol("_portable"),Kl=class extends At{constructor(e){super(e,"Gzip"),this[jl]=e&&!!e.portable}[hr](e){return this[jl]?(this[jl]=!1,e[9]=255,super[hr](e)):super[hr](e)}},Vl=class extends At{constructor(e){super(e,"Gunzip")}},Xl=class extends At{constructor(e){super(e,"DeflateRaw")}},Zl=class extends At{constructor(e){super(e,"InflateRaw")}},Ql=class extends At{constructor(e){super(e,"Unzip")}},ps=class extends fs{constructor(e,r){e=e||{},e.flush=e.flush||ur.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ur.BROTLI_OPERATION_FINISH,super(e,r),this[tc]=ur.BROTLI_OPERATION_FLUSH}},Jl=class extends ps{constructor(e){super(e,"BrotliCompress")}},ec=class extends ps{constructor(e){super(e,"BrotliDecompress")}};Ne.Deflate=Yl;Ne.Inflate=zl;Ne.Gzip=Kl;Ne.Gunzip=Vl;Ne.DeflateRaw=Xl;Ne.InflateRaw=Zl;Ne.Unzip=Ql;typeof _g.BrotliCompress=="function"?(Ne.BrotliCompress=Jl,Ne.BrotliDecompress=ec):Ne.BrotliCompress=Ne.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Qr=d((hI,Sg)=>{var _T=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Sg.exports=_T!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ds=d((pI,Eg)=>{"use strict";var ST=ss(),ic=Qr(),nc=Symbol("slurp");Eg.exports=class extends ST{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=ic(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=ic(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[nc](r),i&&this[nc](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))}[nc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?ic(e[i]):e[i])}}});var sc=d(ms=>{"use strict";ms.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"]]);ms.code=new Map(Array.from(ms.name).map(t=>[t[1],t[0]]))});var vg=d((mI,wg)=>{"use strict";var ET=(t,e)=>{if(Number.isSafeInteger(t))t<0?xT(t,e):bT(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},bT=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},xT=(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]=bg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=xg(n))}},wT=t=>{let e=t[0],r=e===128?RT(t.slice(1,t.length)):e===255?vT(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},vT=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=bg(s):s===0?o=s:(i=!0,o=xg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},RT=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},bg=t=>(255^t)&255,xg=t=>(255^t)+1&255;wg.exports={encode:ET,parse:wT}});var ei=d((gI,Ag)=>{"use strict";var oc=sc(),Jr=require("path").posix,Rg=vg(),ac=Symbol("slurp"),De=Symbol("type"),uc=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[De]="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=fr(e,r,100),this.mode=Gt(e,r+100,8),this.uid=Gt(e,r+108,8),this.gid=Gt(e,r+116,8),this.size=Gt(e,r+124,12),this.mtime=lc(e,r+136,12),this.cksum=Gt(e,r+148,12),this[ac](i),this[ac](n,!0),this[De]=fr(e,r+156,1),this[De]===""&&(this[De]="0"),this[De]==="0"&&this.path.slice(-1)==="/"&&(this[De]="5"),this[De]==="5"&&(this.size=0),this.linkpath=fr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=fr(e,r+265,32),this.gname=fr(e,r+297,32),this.devmaj=Gt(e,r+329,8),this.devmin=Gt(e,r+337,8),e[r+475]!==0){let o=fr(e,r+345,155);this.path=o+"/"+this.path}else{let o=fr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=lc(e,r+476,12),this.ctime=lc(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)}[ac](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=AT(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=pr(e,r,100,s)||this.needPax,this.needPax=jt(e,r+100,8,this.mode)||this.needPax,this.needPax=jt(e,r+108,8,this.uid)||this.needPax,this.needPax=jt(e,r+116,8,this.gid)||this.needPax,this.needPax=jt(e,r+124,12,this.size)||this.needPax,this.needPax=cc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[De].charCodeAt(0),this.needPax=pr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=pr(e,r+265,32,this.uname)||this.needPax,this.needPax=pr(e,r+297,32,this.gname)||this.needPax,this.needPax=jt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=jt(e,r+337,8,this.devmin)||this.needPax,this.needPax=pr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=pr(e,r+345,155,o)||this.needPax:(this.needPax=pr(e,r+345,130,o)||this.needPax,this.needPax=cc(e,r+476,12,this.atime)||this.needPax,this.needPax=cc(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,jt(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 oc.name.get(this[De])||this[De]}get typeKey(){return this[De]}set type(e){oc.code.has(e)?this[De]=oc.code.get(e):this[De]=e}},AT=(t,e)=>{let i=t,n="",s,o=Jr.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Jr.dirname(i),i=Jr.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=Jr.join(Jr.basename(n),i),n=Jr.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},fr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),lc=(t,e,r)=>TT(Gt(t,e,r)),TT=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?Rg.parse(t.slice(e,e+r)):CT(t,e,r),OT=t=>isNaN(t)?null:t,CT=(t,e,r)=>OT(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),PT={12:8589934591,8:2097151},jt=(t,e,r,i)=>i===null?!1:i>PT[r]||i<0?(Rg.encode(i,t.slice(e,e+r)),!0):(LT(t,e,r,i),!1),LT=(t,e,r,i)=>t.write(IT(i,r),e,r,"ascii"),IT=(t,e)=>kT(Math.floor(t).toString(8),e),kT=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",cc=(t,e,r,i)=>i===null?!1:jt(t,e,r,i.getTime()/1e3),NT=new Array(156).join("\0"),pr=(t,e,r,i)=>i===null?!1:(t.write(i+NT,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Ag.exports=uc});var gs=d((yI,Tg)=>{"use strict";var DT=ei(),FT=require("path"),Ui=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 DT({path:("PaxHeader/"+FT.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
7
- `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Ui.parse=(t,e,r)=>new Ui(MT(BT(t),e),r);var MT=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,BT=t=>t.replace(/\n$/,"").split(`
8
- `).reduce(qT,Object.create(null)),qT=(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};Tg.exports=Ui});var ti=d((_I,Og)=>{Og.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 ys=d((SI,Cg)=>{"use strict";Cg.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fc=d((bI,Pg)=>{"use strict";var _s=["|","<",">","?",":"],hc=_s.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),HT=new Map(_s.map((t,e)=>[t,hc[e]])),UT=new Map(hc.map((t,e)=>[t,_s[e]]));Pg.exports={encode:t=>_s.reduce((e,r)=>e.split(r).join(HT.get(r)),t),decode:t=>hc.reduce((e,r)=>e.split(r).join(UT.get(r)),t)}});var pc=d((xI,Ig)=>{var{isAbsolute:$T,parse:Lg}=require("path").win32;Ig.exports=t=>{let e="",r=Lg(t);for(;$T(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Lg(t)}return[e,t]}});var Ng=d((wI,kg)=>{"use strict";kg.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 wc=d((AI,Kg)=>{"use strict";var Ug=ss(),$g=gs(),Gg=ei(),ot=require("fs"),Dg=require("path"),st=Qr(),GT=ti(),jg=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),GT(e)+"/"+t):st(t),jT=16*1024*1024,Fg=Symbol("process"),Mg=Symbol("file"),Bg=Symbol("directory"),mc=Symbol("symlink"),qg=Symbol("hardlink"),$i=Symbol("header"),Ss=Symbol("read"),gc=Symbol("lstat"),Es=Symbol("onlstat"),yc=Symbol("onread"),_c=Symbol("onreadlink"),Sc=Symbol("openfile"),Ec=Symbol("onopenfile"),Wt=Symbol("close"),bs=Symbol("mode"),bc=Symbol("awaitDrain"),dc=Symbol("ondrain"),at=Symbol("prefix"),Hg=Symbol("hadError"),Wg=ys(),WT=fc(),Yg=pc(),zg=Ng(),xs=Wg(class extends Ug{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=st(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||jT,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=st(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?st(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]=Yg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=WT.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||Dg.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[Es](this.statCache.get(this.absolute)):this[gc]()}emit(e,...r){return e==="error"&&(this[Hg]=!0),super.emit(e,...r)}[gc](){ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Es](r)})}[Es](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=zT(e),this.emit("stat",e),this[Fg]()}[Fg](){switch(this.type){case"File":return this[Mg]();case"Directory":return this[Bg]();case"SymbolicLink":return this[mc]();default:return this.end()}}[bs](e){return zg(e,this.type==="Directory",this.portable)}[at](e){return jg(e,this.prefix)}[$i](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Gg({path:this[at](this.path),linkpath:this.type==="Link"?this[at](this.linkpath):this.linkpath,mode:this[bs](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 $g({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[at](this.path),linkpath:this.type==="Link"?this[at](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)}[Bg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[$i](),this.end()}[mc](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[_c](r)})}[_c](e){this.linkpath=st(e),this[$i](),this.end()}[qg](e){this.type="Link",this.linkpath=st(Dg.relative(this.cwd,e)),this.stat.size=0,this[$i](),this.end()}[Mg](){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[qg](r)}this.linkCache.set(e,this.absolute)}if(this[$i](),this.stat.size===0)return this.end();this[Sc]()}[Sc](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Ec](r)})}[Ec](e){if(this.fd=e,this[Hg])return this[Wt]();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[Ss]()}[Ss](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;ot.read(e,r,i,n,s,(o,a)=>{if(o)return this[Wt](()=>this.emit("error",o));this[yc](a)})}[Wt](e){ot.close(this.fd,e)}[yc](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[Wt](()=>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[Wt](()=>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[dc]():this[bc](()=>this[dc]())}[bc](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)}[dc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Wt](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[Ss]()}}),xc=class extends xs{[gc](){this[Es](ot.lstatSync(this.absolute))}[mc](){this[_c](ot.readlinkSync(this.absolute))}[Sc](){this[Ec](ot.openSync(this.absolute,"r"))}[Ss](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=ot.readSync(r,i,n,s,o);this[yc](a),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[bc](e){e()}[Wt](e){ot.closeSync(this.fd),e()}},YT=Wg(class extends Ug{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=st(e.path),this.mode=this[bs](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=st(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Yg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Gg({path:this[at](this.path),linkpath:this.type==="Link"?this[at](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 $g({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[at](this.path),linkpath:this.type==="Link"?this[at](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)}[at](e){return jg(e,this.prefix)}[bs](e){return zg(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()}});xs.Sync=xc;xs.Tar=YT;var zT=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Kg.exports=xs});var Xg=d((TI,Vg)=>{"use strict";Vg.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var vc=d((OI,Zg)=>{"use strict";Zg.exports=H;H.Node=dr;H.create=H;function H(t){var e=this;if(e instanceof H||(e=new H),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}H.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};H.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++}};H.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++}};H.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)VT(this,arguments[t]);return this.length};H.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)XT(this,arguments[t]);return this.length};H.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}};H.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}};H.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};H.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};H.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};H.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};H.prototype.map=function(t,e){e=e||this;for(var r=new H,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};H.prototype.mapReverse=function(t,e){e=e||this;for(var r=new H,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};H.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};H.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};H.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};H.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};H.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 H;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};H.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 H;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};H.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=KT(this,n,r[i]);return s};H.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 KT(t,e,r){var i=e===t.head?new dr(r,null,e,t):new dr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function VT(t,e){t.tail=new dr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function XT(t,e){t.head=new dr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function dr(t,e,r,i){if(!(this instanceof dr))return new dr(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{Xg()(H)}catch{}});var Ls=d((PI,ny)=>{"use strict";var Cs=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}},ZT=ss(),QT=rc(),JT=ds(),kc=wc(),eO=kc.Sync,tO=kc.Tar,rO=vc(),Qg=Buffer.alloc(1024),Rs=Symbol("onStat"),ws=Symbol("ended"),lt=Symbol("queue"),ri=Symbol("current"),mr=Symbol("process"),vs=Symbol("processing"),Jg=Symbol("processJob"),ct=Symbol("jobs"),Rc=Symbol("jobDone"),As=Symbol("addFSEntry"),ey=Symbol("addTarEntry"),Cc=Symbol("stat"),Pc=Symbol("readdir"),Ts=Symbol("onreaddir"),Os=Symbol("pipe"),ty=Symbol("entry"),Ac=Symbol("entryOpt"),Lc=Symbol("writeEntryClass"),iy=Symbol("write"),Tc=Symbol("ondrain"),Ps=require("fs"),ry=require("path"),iO=ys(),Oc=Qr(),Nc=iO(class extends ZT{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=Oc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Lc]=kc,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new QT.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Tc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Tc]),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[lt]=new rO,this[ct]=0,this.jobs=+e.jobs||4,this[vs]=!1,this[ws]=!1}[iy](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ws]=!0,this[mr](),this}write(e){if(this[ws])throw new Error("write after end");return e instanceof JT?this[ey](e):this[As](e),this.flowing}[ey](e){let r=Oc(ry.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Cs(e.path,r,!1);i.entry=new tO(e,this[Ac](i)),i.entry.on("end",n=>this[Rc](i)),this[ct]+=1,this[lt].push(i)}this[mr]()}[As](e){let r=Oc(ry.resolve(this.cwd,e));this[lt].push(new Cs(e,r)),this[mr]()}[Cc](e){e.pending=!0,this[ct]+=1;let r=this.follow?"stat":"lstat";Ps[r](e.absolute,(i,n)=>{e.pending=!1,this[ct]-=1,i?this.emit("error",i):this[Rs](e,n)})}[Rs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[mr]()}[Pc](e){e.pending=!0,this[ct]+=1,Ps.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[ct]-=1,r)return this.emit("error",r);this[Ts](e,i)})}[Ts](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[mr]()}[mr](){if(!this[vs]){this[vs]=!0;for(let e=this[lt].head;e!==null&&this[ct]<this.jobs;e=e.next)if(this[Jg](e.value),e.value.ignore){let r=e.next;this[lt].removeNode(e),e.next=r}this[vs]=!1,this[ws]&&!this[lt].length&&this[ct]===0&&(this.zip?this.zip.end(Qg):(super.write(Qg),super.end()))}}get[ri](){return this[lt]&&this[lt].head&&this[lt].head.value}[Rc](e){this[lt].shift(),this[ct]-=1,this[mr]()}[Jg](e){if(!e.pending){if(e.entry){e===this[ri]&&!e.piped&&this[Os](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Rs](e,this.statCache.get(e.absolute)):this[Cc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ts](e,this.readdirCache.get(e.absolute)):this[Pc](e),!e.readdir))){if(e.entry=this[ty](e),!e.entry){e.ignore=!0;return}e===this[ri]&&!e.piped&&this[Os](e)}}}[Ac](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}}[ty](e){this[ct]+=1;try{return new this[Lc](e.path,this[Ac](e)).on("end",()=>this[Rc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Tc](){this[ri]&&this[ri].entry&&this[ri].entry.resume()}[Os](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[As](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()}}),Ic=class extends Nc{constructor(e){super(e),this[Lc]=eO}pause(){}resume(){}[Cc](e){let r=this.follow?"statSync":"lstatSync";this[Rs](e,Ps[r](e.absolute))}[Pc](e,r){this[Ts](e,Ps.readdirSync(e.absolute))}[Os](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[As](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[iy](n)})}};Nc.Sync=Ic;ny.exports=Nc});var ui=d(ji=>{"use strict";var nO=Hl(),sO=require("events").EventEmitter,Pe=require("fs"),Mc=Pe.writev;if(!Mc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Mc=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var li=Symbol("_autoClose"),Ve=Symbol("_close"),Gi=Symbol("_ended"),G=Symbol("_fd"),sy=Symbol("_finished"),zt=Symbol("_flags"),Dc=Symbol("_flush"),Bc=Symbol("_handleChunk"),qc=Symbol("_makeBuf"),Fs=Symbol("_mode"),Is=Symbol("_needDrain"),oi=Symbol("_onerror"),ci=Symbol("_onopen"),Fc=Symbol("_onread"),ni=Symbol("_onwrite"),Kt=Symbol("_open"),Tt=Symbol("_path"),gr=Symbol("_pos"),ut=Symbol("_queue"),si=Symbol("_read"),oy=Symbol("_readSize"),Yt=Symbol("_reading"),ks=Symbol("_remain"),ay=Symbol("_size"),Ns=Symbol("_write"),ii=Symbol("_writing"),Ds=Symbol("_defaultFlag"),ai=Symbol("_errored"),Ms=class extends nO{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[ai]=!1,this[G]=typeof r.fd=="number"?r.fd:null,this[Tt]=e,this[oy]=r.readSize||16*1024*1024,this[Yt]=!1,this[ay]=typeof r.size=="number"?r.size:1/0,this[ks]=this[ay],this[li]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[G]=="number"?this[si]():this[Kt]()}get fd(){return this[G]}get path(){return this[Tt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Pe.open(this[Tt],"r",(e,r)=>this[ci](e,r))}[ci](e,r){e?this[oi](e):(this[G]=r,this.emit("open",r),this[si]())}[qc](){return Buffer.allocUnsafe(Math.min(this[oy],this[ks]))}[si](){if(!this[Yt]){this[Yt]=!0;let e=this[qc]();if(e.length===0)return process.nextTick(()=>this[Fc](null,0,e));Pe.read(this[G],e,0,e.length,null,(r,i,n)=>this[Fc](r,i,n))}}[Fc](e,r,i){this[Yt]=!1,e?this[oi](e):this[Bc](r,i)&&this[si]()}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Pe.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[oi](e){this[Yt]=!0,this[Ve](),this.emit("error",e)}[Bc](e,r){let i=!1;return this[ks]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[ks]<=0)&&(i=!1,this[Ve](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[G]=="number"&&this[si]();break;case"error":return this[ai]?void 0:(this[ai]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Hc=class extends Ms{[Kt](){let e=!0;try{this[ci](null,Pe.openSync(this[Tt],"r")),e=!1}finally{e&&this[Ve]()}}[si](){let e=!0;try{if(!this[Yt]){this[Yt]=!0;do{let r=this[qc](),i=r.length===0?0:Pe.readSync(this[G],r,0,r.length,null);if(!this[Bc](i,r))break}while(!0);this[Yt]=!1}e=!1}finally{e&&this[Ve]()}}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Pe.closeSync(e),this.emit("close")}}},Bs=class extends sO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ai]=!1,this[ii]=!1,this[Gi]=!1,this[Is]=!1,this[ut]=[],this[Tt]=e,this[G]=typeof r.fd=="number"?r.fd:null,this[Fs]=r.mode===void 0?438:r.mode,this[gr]=typeof r.start=="number"?r.start:null,this[li]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[gr]!==null?"r+":"w";this[Ds]=r.flags===void 0,this[zt]=this[Ds]?i:r.flags,this[G]===null&&this[Kt]()}emit(e,r){if(e==="error"){if(this[ai])return;this[ai]=!0}return super.emit(e,r)}get fd(){return this[G]}get path(){return this[Tt]}[oi](e){this[Ve](),this[ii]=!0,this.emit("error",e)}[Kt](){Pe.open(this[Tt],this[zt],this[Fs],(e,r)=>this[ci](e,r))}[ci](e,r){this[Ds]&&this[zt]==="r+"&&e&&e.code==="ENOENT"?(this[zt]="w",this[Kt]()):e?this[oi](e):(this[G]=r,this.emit("open",r),this[Dc]())}end(e,r){return e&&this.write(e,r),this[Gi]=!0,!this[ii]&&!this[ut].length&&typeof this[G]=="number"&&this[ni](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Gi]?(this.emit("error",new Error("write() after end()")),!1):this[G]===null||this[ii]||this[ut].length?(this[ut].push(e),this[Is]=!0,!1):(this[ii]=!0,this[Ns](e),!0)}[Ns](e){Pe.write(this[G],e,0,e.length,this[gr],(r,i)=>this[ni](r,i))}[ni](e,r){e?this[oi](e):(this[gr]!==null&&(this[gr]+=r),this[ut].length?this[Dc]():(this[ii]=!1,this[Gi]&&!this[sy]?(this[sy]=!0,this[Ve](),this.emit("finish")):this[Is]&&(this[Is]=!1,this.emit("drain"))))}[Dc](){if(this[ut].length===0)this[Gi]&&this[ni](null,0);else if(this[ut].length===1)this[Ns](this[ut].pop());else{let e=this[ut];this[ut]=[],Mc(this[G],e,this[gr],(r,i)=>this[ni](r,i))}}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Pe.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Uc=class extends Bs{[Kt](){let e;if(this[Ds]&&this[zt]==="r+")try{e=Pe.openSync(this[Tt],this[zt],this[Fs])}catch(r){if(r.code==="ENOENT")return this[zt]="w",this[Kt]();throw r}else e=Pe.openSync(this[Tt],this[zt],this[Fs]);this[ci](null,e)}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Pe.closeSync(e),this.emit("close")}}[Ns](e){let r=!0;try{this[ni](null,Pe.writeSync(this[G],e,0,e.length,this[gr])),r=!1}finally{if(r)try{this[Ve]()}catch{}}}};ji.ReadStream=Ms;ji.ReadStreamSync=Hc;ji.WriteStream=Bs;ji.WriteStreamSync=Uc});var Ws=d((kI,my)=>{"use strict";var oO=ys(),aO=ei(),lO=require("events"),cO=vc(),uO=1024*1024,hO=ds(),ly=gs(),fO=rc(),{nextTick:pO}=require("process"),$c=Buffer.from([31,139]),Ge=Symbol("state"),yr=Symbol("writeEntry"),Ot=Symbol("readEntry"),Gc=Symbol("nextEntry"),cy=Symbol("processEntry"),je=Symbol("extendedHeader"),Wi=Symbol("globalExtendedHeader"),Vt=Symbol("meta"),uy=Symbol("emitMeta"),K=Symbol("buffer"),Ct=Symbol("queue"),_r=Symbol("ended"),hy=Symbol("emittedEnd"),Sr=Symbol("emit"),Le=Symbol("unzip"),qs=Symbol("consumeChunk"),Hs=Symbol("consumeChunkSub"),jc=Symbol("consumeBody"),fy=Symbol("consumeMeta"),py=Symbol("consumeHeader"),Us=Symbol("consuming"),Wc=Symbol("bufferConcat"),Yc=Symbol("maybeEnd"),Yi=Symbol("writing"),Xt=Symbol("aborted"),$s=Symbol("onDone"),Er=Symbol("sawValidEntry"),Gs=Symbol("sawNullBlock"),js=Symbol("sawEOF"),dy=Symbol("closeStream"),dO=t=>!0;my.exports=oO(class extends lO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Er]=null,this.on($s,r=>{(this[Ge]==="begin"||this[Er]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on($s,e.ondone):this.on($s,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||uO,this.filter=typeof e.filter=="function"?e.filter:dO,this.writable=!0,this.readable=!1,this[Ct]=new cO,this[K]=null,this[Ot]=null,this[yr]=null,this[Ge]="begin",this[Vt]="",this[je]=null,this[Wi]=null,this[_r]=!1,this[Le]=null,this[Xt]=!1,this[Gs]=!1,this[js]=!1,this.on("end",()=>this[dy]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[py](e,r){this[Er]===null&&(this[Er]=!1);let i;try{i=new aO(e,r,this[je],this[Wi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Gs]?(this[js]=!0,this[Ge]==="begin"&&(this[Ge]="header"),this[Sr]("eof")):(this[Gs]=!0,this[Sr]("nullBlock"));else if(this[Gs]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[yr]=new hO(i,this[je],this[Wi]);if(!this[Er])if(s.remain){let o=()=>{s.invalid||(this[Er]=!0)};s.on("end",o)}else this[Er]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Sr]("ignoredEntry",s),this[Ge]="ignore",s.resume()):s.size>0&&(this[Vt]="",s.on("data",o=>this[Vt]+=o),this[Ge]="meta"):(this[je]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Sr]("ignoredEntry",s),this[Ge]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Ge]="body":(this[Ge]="header",s.end()),this[Ot]?this[Ct].push(s):(this[Ct].push(s),this[Gc]())))}}}[dy](){pO(()=>this.emit("close"))}[cy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ot]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Gc]()),r=!1)):(this[Ot]=null,r=!1),r}[Gc](){do;while(this[cy](this[Ct].shift()));if(!this[Ct].length){let e=this[Ot];!e||e.flowing||e.size===e.remain?this[Yi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[jc](e,r){let i=this[yr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Ge]="header",this[yr]=null,i.end()),s.length}[fy](e,r){let i=this[yr],n=this[jc](e,r);return this[yr]||this[uy](i),n}[Sr](e,r,i){!this[Ct].length&&!this[Ot]?this.emit(e,r,i):this[Ct].push([e,r,i])}[uy](e){switch(this[Sr]("meta",this[Vt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[je]=ly.parse(this[Vt],this[je],!1);break;case"GlobalExtendedHeader":this[Wi]=ly.parse(this[Vt],this[Wi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[je]=this[je]||Object.create(null),this[je].path=this[Vt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[je]=this[je]||Object.create(null),this[je].linkpath=this[Vt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Xt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Xt])return;if(this[Le]===null&&e){if(this[K]&&(e=Buffer.concat([this[K],e]),this[K]=null),e.length<$c.length)return this[K]=e,!0;for(let i=0;this[Le]===null&&i<$c.length;i++)e[i]!==$c[i]&&(this[Le]=!1);if(this[Le]===null){let i=this[_r];this[_r]=!1,this[Le]=new fO.Unzip,this[Le].on("data",s=>this[qs](s)),this[Le].on("error",s=>this.abort(s)),this[Le].on("end",s=>{this[_r]=!0,this[qs]()}),this[Yi]=!0;let n=this[Le][i?"end":"write"](e);return this[Yi]=!1,n}}this[Yi]=!0,this[Le]?this[Le].write(e):this[qs](e),this[Yi]=!1;let r=this[Ct].length?!1:this[Ot]?this[Ot].flowing:!0;return!r&&!this[Ct].length&&this[Ot].once("drain",i=>this.emit("drain")),r}[Wc](e){e&&!this[Xt]&&(this[K]=this[K]?Buffer.concat([this[K],e]):e)}[Yc](){if(this[_r]&&!this[hy]&&!this[Xt]&&!this[Us]){this[hy]=!0;let e=this[yr];if(e&&e.blockRemain){let r=this[K]?this[K].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[K]&&e.write(this[K]),e.end()}this[Sr]($s)}}[qs](e){if(this[Us])this[Wc](e);else if(!e&&!this[K])this[Yc]();else{if(this[Us]=!0,this[K]){this[Wc](e);let r=this[K];this[K]=null,this[Hs](r)}else this[Hs](e);for(;this[K]&&this[K].length>=512&&!this[Xt]&&!this[js];){let r=this[K];this[K]=null,this[Hs](r)}this[Us]=!1}(!this[K]||this[_r])&&this[Yc]()}[Hs](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[js];)switch(this[Ge]){case"begin":case"header":this[py](e,r),r+=512;break;case"ignore":case"body":r+=this[jc](e,r);break;case"meta":r+=this[fy](e,r);break;default:throw new Error("invalid state: "+this[Ge])}r<i&&(this[K]?this[K]=Buffer.concat([e.slice(r),this[K]]):this[K]=e.slice(r))}end(e){this[Xt]||(this[Le]?this[Le].end(e):(this[_r]=!0,this.write(e)))}})});var Ys=d((NI,Sy)=>{"use strict";var mO=zr(),yy=Ws(),hi=require("fs"),gO=ui(),gy=require("path"),zc=ti();Sy.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=mO(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&&_O(i,e),i.noResume||yO(i),i.file&&i.sync?SO(i):i.file?EO(i,r):_y(i)};var yO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},_O=(t,e)=>{let r=new Map(e.map(s=>[zc(s),!0])),i=t.filter,n=(s,o)=>{let a=o||gy.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(gy.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(zc(s)):s=>n(zc(s))},SO=t=>{let e=_y(t),r=t.file,i=!0,n;try{let s=hi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(hi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=hi.openSync(r,"r");a<s.size;){let c=hi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{hi.closeSync(n)}catch{}}},EO=(t,e)=>{let r=new yy(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),hi.stat(n,(l,c)=>{if(l)a(l);else{let u=new gO.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},_y=t=>new yy(t)});var Ry=d((DI,vy)=>{"use strict";var bO=zr(),zs=Ls(),Ey=ui(),by=Ys(),xy=require("path");vy.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=bO(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?xO(i,e):i.file?wO(i,e,r):i.sync?vO(i,e):RO(i,e)};var xO=(t,e)=>{let r=new zs.Sync(t),i=new Ey.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),wy(r,e)},wO=(t,e,r)=>{let i=new zs(t),n=new Ey.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 Kc(i,e),r?s.then(r,r):s},wy=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?by({file:xy.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Kc=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return by({file:xy.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Kc(t,e));t.add(r)}t.end()},vO=(t,e)=>{let r=new zs.Sync(t);return wy(r,e),r},RO=(t,e)=>{let r=new zs(t);return Kc(r,e),r}});var Vc=d((FI,Iy)=>{"use strict";var AO=zr(),Ay=Ls(),Fe=require("fs"),Ty=ui(),Oy=Ys(),Cy=require("path"),Py=ei();Iy.exports=(t,e,r)=>{let i=AO(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?TO(i,e):CO(i,e,r)};var TO=(t,e)=>{let r=new Ay.Sync(t),i=!0,n,s;try{try{n=Fe.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=Fe.openSync(t.file,"w+");else throw l}let o=Fe.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=Fe.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new Py(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,OO(t,r,s,n,e)}finally{if(i)try{Fe.closeSync(n)}catch{}}},OO=(t,e,r,i,n)=>{let s=new Ty.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),PO(e,n)},CO=(t,e,r)=>{e=Array.from(e);let i=new Ay(t),n=(o,a,l)=>{let c=(m,y)=>{m?Fe.close(o,x=>l(m)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),g=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return Fe.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let x=new Py(f);if(!x.cksumValid)return c(null,u);let w=512*Math.ceil(x.size/512);if(u+w+512>a||(u+=w+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(x.path,x.mtime),h=0,Fe.read(o,f,0,512,u,g)};Fe.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",Fe.open(t.file,l,c);if(u)return a(u);Fe.fstat(h,(f,g)=>{if(f)return Fe.close(h,()=>a(f));n(h,g.size,(m,y)=>{if(m)return a(m);let x=new Ty.WriteStream(t.file,{fd:h,start:y});i.pipe(x),x.on("error",a),x.on("close",o),Ly(i,e)})})};Fe.open(t.file,l,c)});return r?s.then(r,r):s},PO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Oy({file:Cy.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ly=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Oy({file:Cy.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ly(t,e));t.add(r)}t.end()}});var Ny=d((MI,ky)=>{"use strict";var LO=zr(),IO=Vc();ky.exports=(t,e,r)=>{let i=LO(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),kO(i),IO(i,e,r)};var kO=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 My=d((BI,Fy)=>{var{promisify:Dy}=require("util"),Zt=require("fs"),NO=t=>{if(!t)t={mode:511,fs:Zt};else if(typeof t=="object")t={mode:511,fs:Zt,...t};else if(typeof t=="number")t={mode:t,fs:Zt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Zt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Zt.mkdir,t.mkdirAsync=Dy(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=Dy(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};Fy.exports=NO});var qy=d((qI,By)=>{var DO=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:FO,parse:MO}=require("path"),BO=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=FO(t),DO==="win32"){let e=/[*|"<>?:]/,{root:r}=MO(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};By.exports=BO});var jy=d((HI,Gy)=>{var{dirname:Hy}=require("path"),Uy=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Uy(t,Hy(e),e):void 0),$y=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?$y(t,Hy(e),e):void 0}};Gy.exports={findMade:Uy,findMadeSync:$y}});var Qc=d((UI,Yy)=>{var{dirname:Wy}=require("path"),Xc=(t,e,r)=>{e.recursive=!1;let i=Wy(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 Xc(i,e).then(s=>Xc(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})})},Zc=(t,e,r)=>{let i=Wy(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 Zc(t,e,Zc(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};Yy.exports={mkdirpManual:Xc,mkdirpManualSync:Zc}});var Vy=d(($I,Ky)=>{var{dirname:zy}=require("path"),{findMade:qO,findMadeSync:HO}=jy(),{mkdirpManual:UO,mkdirpManualSync:$O}=Qc(),GO=(t,e)=>(e.recursive=!0,zy(t)===t?e.mkdirAsync(t,e):qO(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return UO(t,e);throw n}))),jO=(t,e)=>{if(e.recursive=!0,zy(t)===t)return e.mkdirSync(t,e);let i=HO(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return $O(t,e);throw n}};Ky.exports={mkdirpNative:GO,mkdirpNativeSync:jO}});var Jy=d((GI,Qy)=>{var Xy=require("fs"),WO=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Jc=WO.replace(/^v/,"").split("."),Zy=+Jc[0]>10||+Jc[0]==10&&+Jc[1]>=12,YO=Zy?t=>t.mkdir===Xy.mkdir:()=>!1,zO=Zy?t=>t.mkdirSync===Xy.mkdirSync:()=>!1;Qy.exports={useNative:YO,useNativeSync:zO}});var s_=d((jI,n_)=>{var fi=My(),pi=qy(),{mkdirpNative:e_,mkdirpNativeSync:t_}=Vy(),{mkdirpManual:r_,mkdirpManualSync:i_}=Qc(),{useNative:KO,useNativeSync:VO}=Jy(),di=(t,e)=>(t=pi(t),e=fi(e),KO(e)?e_(t,e):r_(t,e)),XO=(t,e)=>(t=pi(t),e=fi(e),VO(e)?t_(t,e):i_(t,e));di.sync=XO;di.native=(t,e)=>e_(pi(t),fi(e));di.manual=(t,e)=>r_(pi(t),fi(e));di.nativeSync=(t,e)=>t_(pi(t),fi(e));di.manualSync=(t,e)=>i_(pi(t),fi(e));n_.exports=di});var f_=d((WI,h_)=>{"use strict";var We=require("fs"),br=require("path"),ZO=We.lchown?"lchown":"chown",QO=We.lchownSync?"lchownSync":"chownSync",a_=We.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),o_=(t,e,r)=>{try{return We[QO](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},JO=(t,e,r)=>{try{return We.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},eC=a_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):We.chown(t,e,r,i)}:(t,e,r,i)=>i,eu=a_?(t,e,r)=>{try{return o_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;JO(t,e,r)}}:(t,e,r)=>o_(t,e,r),tC=process.version,l_=(t,e,r)=>We.readdir(t,e,r),rC=(t,e)=>We.readdirSync(t,e);/^v4\./.test(tC)&&(l_=(t,e,r)=>We.readdir(t,r));var Ks=(t,e,r,i)=>{We[ZO](t,e,r,eC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},c_=(t,e,r,i,n)=>{if(typeof e=="string")return We.lstat(br.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,c_(t,o,r,i,n)});if(e.isDirectory())tu(br.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=br.resolve(t,e.name);Ks(o,r,i,n)});else{let s=br.resolve(t,e.name);Ks(s,r,i,n)}},tu=(t,e,r,i)=>{l_(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 Ks(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Ks(t,e,r,i)}};s.forEach(c=>c_(t,c,e,r,l))})},iC=(t,e,r,i)=>{if(typeof e=="string")try{let n=We.lstatSync(br.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&u_(br.resolve(t,e.name),r,i),eu(br.resolve(t,e.name),r,i)},u_=(t,e,r)=>{let i;try{i=rC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return eu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>iC(t,n,e,r)),eu(t,e,r)};h_.exports=tu;tu.sync=u_});var g_=d((YI,ru)=>{"use strict";var p_=s_(),Ye=require("fs"),Vs=require("path"),d_=f_(),Xe=Qr(),Xs=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Zs=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Qs=(t,e)=>t.get(Xe(e)),zi=(t,e,r)=>t.set(Xe(e),r),nC=(t,e)=>{Ye.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Zs(t,r&&r.code||"ENOTDIR")),e(r)})};ru.exports=(t,e,r)=>{t=Xe(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=Xe(e.cwd),g=(x,w)=>{x?r(x):(zi(h,t,!0),w&&l?d_(w,o,a,R=>g(R)):s?Ye.chmod(t,n,r):r())};if(h&&Qs(h,t)===!0)return g();if(t===f)return nC(t,g);if(c)return p_(t,{mode:n}).then(x=>g(null,x),g);let y=Xe(Vs.relative(f,t)).split("/");Js(f,y,n,h,u,f,null,g)};var Js=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=Xe(Vs.resolve(t+"/"+l));if(Qs(i,c))return Js(c,e,r,i,n,s,o,a);Ye.mkdir(c,r,m_(c,e,r,i,n,s,o,a))},m_=(t,e,r,i,n,s,o,a)=>l=>{l?Ye.lstat(t,(c,u)=>{if(c)c.path=c.path&&Xe(c.path),a(c);else if(u.isDirectory())Js(t,e,r,i,n,s,o,a);else if(n)Ye.unlink(t,h=>{if(h)return a(h);Ye.mkdir(t,r,m_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Xs(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,Js(t,e,r,i,n,s,o,a))},sC=t=>{let e=!1,r="ENOTDIR";try{e=Ye.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Zs(t,r)}};ru.exports.sync=(t,e)=>{t=Xe(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),l=e.preserve,c=e.unlink,u=e.cache,h=Xe(e.cwd),f=x=>{zi(u,t,!0),x&&a&&d_.sync(x,s,o),n&&Ye.chmodSync(t,i)};if(u&&Qs(u,t)===!0)return f();if(t===h)return sC(h),f();if(l)return f(p_.sync(t,i));let m=Xe(Vs.relative(h,t)).split("/"),y=null;for(let x=m.shift(),w=h;x&&(w+="/"+x);x=m.shift())if(w=Xe(Vs.resolve(w)),!Qs(u,w))try{Ye.mkdirSync(w,i),y=y||w,zi(u,w,!0)}catch{let M=Ye.lstatSync(w);if(M.isDirectory()){zi(u,w,!0);continue}else if(c){Ye.unlinkSync(w),Ye.mkdirSync(w,i),y=y||w,zi(u,w,!0);continue}else if(M.isSymbolicLink())return new Xs(w,w+"/"+m.join("/"))}return f(y)}});var nu=d((zI,y_)=>{var iu=Object.create(null),{hasOwnProperty:oC}=Object.prototype;y_.exports=t=>(oC.call(iu,t)||(iu[t]=t.normalize("NFKD")),iu[t])});var b_=d((KI,E_)=>{var __=require("assert"),aC=nu(),lC=ti(),{join:S_}=require("path"),cC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,uC=cC==="win32";E_.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=S_(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.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:u,dirs:h}=e.get(c),f=new Set;return u.forEach(g=>{let m=t.get(g);__.equal(m[0],c),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let m=t.get(g);__(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(g=>o(g)),!0};return{check:s,reserve:(c,u)=>{c=uC?["win32 parallelization disabled"]:c.map(f=>aC(lC(S_(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var v_=d((VI,w_)=>{var hC=process.env.__FAKE_PLATFORM__||process.platform,fC=hC==="win32",pC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:dC,O_TRUNC:mC,O_WRONLY:gC,UV_FS_O_FILEMAP:x_=0}=pC.constants,yC=fC&&!!x_,_C=512*1024,SC=x_|mC|dC|gC;w_.exports=yC?t=>t<_C?SC:"w":()=>"w"});var pu=d((XI,B_)=>{"use strict";var EC=require("assert"),bC=Ws(),U=require("fs"),xC=ui(),Pt=require("path"),D_=g_(),R_=fc(),wC=b_(),vC=pc(),Me=Qr(),RC=ti(),AC=nu(),A_=Symbol("onEntry"),au=Symbol("checkFs"),T_=Symbol("checkFs2"),ro=Symbol("pruneCache"),lu=Symbol("isReusable"),ze=Symbol("makeFs"),cu=Symbol("file"),uu=Symbol("directory"),io=Symbol("link"),O_=Symbol("symlink"),C_=Symbol("hardlink"),P_=Symbol("unsupported"),L_=Symbol("checkPath"),Qt=Symbol("mkdir"),Ee=Symbol("onError"),eo=Symbol("pending"),I_=Symbol("pend"),mi=Symbol("unpend"),su=Symbol("ended"),ou=Symbol("maybeClose"),hu=Symbol("skip"),Ki=Symbol("doChown"),Vi=Symbol("uid"),Xi=Symbol("gid"),Zi=Symbol("checkedCwd"),F_=require("crypto"),M_=v_(),TC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Qi=TC==="win32",OC=(t,e)=>{if(!Qi)return U.unlink(t,e);let r=t+".DELETE."+F_.randomBytes(16).toString("hex");U.rename(t,r,i=>{if(i)return e(i);U.unlink(r,e)})},CC=t=>{if(!Qi)return U.unlinkSync(t);let e=t+".DELETE."+F_.randomBytes(16).toString("hex");U.renameSync(t,e),U.unlinkSync(e)},k_=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,N_=t=>AC(RC(Me(t))).toLowerCase(),PC=(t,e)=>{e=N_(e);for(let r of t.keys()){let i=N_(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},LC=t=>{for(let e of t.keys())t.delete(e)},Ji=class extends bC{constructor(e){if(e||(e={}),e.ondone=r=>{this[su]=!0,this[ou]()},super(e),this[Zi]=!1,this.reservations=wC(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[eo]=0,this[su]=!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||Qi,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Me(Pt.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[A_](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[ou](){this[su]&&this[eo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[L_](e){if(this.strip){let r=Me(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Me(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Me(e.path),i=r.split("/");if(i.includes("..")||Qi&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=vC(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Pt.isAbsolute(e.path)?e.absolute=Me(Pt.resolve(e.path)):e.absolute=Me(Pt.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:Me(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}=Pt.win32.parse(e.absolute);e.absolute=r+R_.encode(e.absolute.slice(r.length));let{root:i}=Pt.win32.parse(e.path);e.path=i+R_.encode(e.path.slice(i.length))}return!0}[A_](e){if(!this[L_](e))return e.resume();switch(EC.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[au](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[P_](e)}}[Ee](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[mi](),r.resume())}[Qt](e,r,i){D_(Me(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)}[Ki](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}[Vi](e){return k_(this.uid,e.uid,this.processUid)}[Xi](e){return k_(this.gid,e.gid,this.processGid)}[cu](e,r){let i=e.mode&4095||this.fmode,n=new xC.WriteStream(e.absolute,{flags:M_(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&U.close(n.fd,()=>{}),n.write=()=>!0,this[Ee](l,e),r()});let s=1,o=l=>{if(l){n.fd&&U.close(n.fd,()=>{}),this[Ee](l,e),r();return}--s===0&&U.close(n.fd,c=>{c?this[Ee](c,e):this[mi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;U.futimes(u,h,f,g=>g?U.utimes(c,h,f,m=>o(m&&g)):o())}if(this[Ki](e)){s++;let h=this[Vi](e),f=this[Xi](e);U.fchown(u,h,f,g=>g?U.chown(c,h,f,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Ee](l,e),r()}),e.pipe(a)),a.pipe(n)}[uu](e,r){let i=e.mode&4095||this.dmode;this[Qt](e.absolute,i,n=>{if(n){this[Ee](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[mi](),e.resume())};e.mtime&&!this.noMtime&&(s++,U.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ki](e)&&(s++,U.chown(e.absolute,this[Vi](e),this[Xi](e),o)),o()})}[P_](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[O_](e,r){this[io](e,e.linkpath,"symlink",r)}[C_](e,r){let i=Me(Pt.resolve(this.cwd,e.linkpath));this[io](e,i,"link",r)}[I_](){this[eo]++}[mi](){this[eo]--,this[ou]()}[hu](e){this[mi](),e.resume()}[lu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Qi}[au](e){this[I_]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[T_](e,i))}[ro](e){e.type==="SymbolicLink"?LC(this.dirCache):e.type!=="Directory"&&PC(this.dirCache,e.absolute)}[T_](e,r){this[ro](e);let i=a=>{this[ro](e),r(a)},n=()=>{this[Qt](this.cwd,this.dmode,a=>{if(a){this[Ee](a,e),i();return}this[Zi]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Me(Pt.dirname(e.absolute));if(a!==this.cwd)return this[Qt](a,this.dmode,l=>{if(l){this[Ee](l,e),i();return}o()})}o()},o=()=>{U.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[hu](e),i();return}if(a||this[lu](e,l))return this[ze](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[ze](h,e,i);return c?U.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return U.rmdir(e.absolute,c=>this[ze](c,e,i))}if(e.absolute===this.cwd)return this[ze](null,e,i);OC(e.absolute,c=>this[ze](c,e,i))})};this[Zi]?s():n()}[ze](e,r,i){if(e){this[Ee](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[cu](r,i);case"Link":return this[C_](r,i);case"SymbolicLink":return this[O_](r,i);case"Directory":case"GNUDumpDir":return this[uu](r,i)}}[io](e,r,i,n){U[i](r,e.absolute,s=>{s?this[Ee](s,e):(this[mi](),e.resume()),n()})}},to=t=>{try{return[null,t()]}catch(e){return[e,null]}},fu=class extends Ji{[ze](e,r){return super[ze](e,r,()=>{})}[au](e){if(this[ro](e),!this[Zi]){let s=this[Qt](this.cwd,this.dmode);if(s)return this[Ee](s,e);this[Zi]=!0}if(e.absolute!==this.cwd){let s=Me(Pt.dirname(e.absolute));if(s!==this.cwd){let o=this[Qt](s,this.dmode);if(o)return this[Ee](o,e)}}let[r,i]=to(()=>U.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[hu](e);if(r||this[lu](e,i))return this[ze](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?to(()=>{U.chmodSync(e.absolute,e.mode)}):[];return this[ze](a,e)}let[s]=to(()=>U.rmdirSync(e.absolute));this[ze](s,e)}let[n]=e.absolute===this.cwd?[]:to(()=>CC(e.absolute));this[ze](n,e)}[cu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{U.closeSync(s)}catch(c){l=c}(a||l)&&this[Ee](a||l,e),r()},s;try{s=U.openSync(e.absolute,M_(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ee](a,e)),e.pipe(o)),o.on("data",a=>{try{U.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{U.futimesSync(s,c,u)}catch(h){try{U.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[Ki](e)){let c=this[Vi](e),u=this[Xi](e);try{U.fchownSync(s,c,u)}catch(h){try{U.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[uu](e,r){let i=e.mode&4095||this.dmode,n=this[Qt](e.absolute,i);if(n){this[Ee](n,e),r();return}if(e.mtime&&!this.noMtime)try{U.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ki](e))try{U.chownSync(e.absolute,this[Vi](e),this[Xi](e))}catch{}r(),e.resume()}[Qt](e,r){try{return D_.sync(Me(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}}[io](e,r,i,n){try{U[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ee](s,e)}}};Ji.Sync=fu;B_.exports=Ji});var G_=d((ZI,$_)=>{"use strict";var IC=zr(),no=pu(),H_=require("fs"),U_=ui(),q_=require("path"),du=ti();$_.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=IC(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&&kC(i,e),i.file&&i.sync?NC(i):i.file?DC(i,r):i.sync?FC(i):MC(i)};var kC=(t,e)=>{let r=new Map(e.map(s=>[du(s),!0])),i=t.filter,n=(s,o)=>{let a=o||q_.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(q_.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(du(s)):s=>n(du(s))},NC=t=>{let e=new no.Sync(t),r=t.file,i=H_.statSync(r),n=t.maxReadSize||16*1024*1024;new U_.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},DC=(t,e)=>{let r=new no(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),H_.stat(n,(l,c)=>{if(l)a(l);else{let u=new U_.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},FC=t=>new no.Sync(t),MC=t=>new no(t)});var j_=d(ae=>{"use strict";ae.c=ae.create=Ry();ae.r=ae.replace=Vc();ae.t=ae.list=Ys();ae.u=ae.update=Ny();ae.x=ae.extract=G_();ae.Pack=Ls();ae.Unpack=pu();ae.Parse=Ws();ae.ReadEntry=ds();ae.WriteEntry=wc();ae.Header=ei();ae.Pax=gs();ae.types=sc()});var X_=d((rk,V_)=>{function Ke(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))}V_.exports=Ke;Ke.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ke.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ke.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};Ke.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)};Ke.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ke.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ke.prototype.start=Ke.prototype.try;Ke.prototype.errors=function(){return this._errors};Ke.prototype.attempts=function(){return this._attempts};Ke.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 Z_=d(xr=>{var UC=X_();xr.operation=function(t){var e=xr.timeouts(t);return new UC(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};xr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};xr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};xr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=xr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var J_=d((nk,Q_)=>{Q_.exports=Z_()});var tS=d((sk,eS)=>{var $C=J_();function GC(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=$C.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(g){l(g,u)})}o.attempt(c)}return new Promise(r)}eS.exports=GC});var r1={};_u(r1,{default:()=>t1,transformer:()=>oS});module.exports=pS(r1);var yu=Q(require("path")),rn=require("fs-extra");var en=require("picocolors");var dS=Q(Ru());function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t){return _i=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},_i(t)}function uo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ho(t,e){if(e&&(_i(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uo(t)}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},er(t)}function pt(t,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},pt(t,e)}function fo(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&&pt(t,e)}function po(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function mo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wr(t,e,r){return mo()?wr=Reflect.construct.bind():wr=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&pt(c,o.prototype),c},wr.apply(null,arguments)}function Si(t){var e=typeof Map=="function"?new Map:void 0;return Si=function(i){if(i===null||!po(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return wr(i,arguments,er(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),pt(n,i)},Si(t)}var Au=Q(require("find-up"));var mS=Q(require("fs-extra")),D1=function(t){fo(e,t);function e(r){var i;return co(this,e),i=ho(this,er(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Si(Error));var SS=Q(require("json5"));var gS=Q(require("fs")),yS=Q(require("path"));var eR=Q(require("fs")),tR=Q(require("path"));function $u(t){return typeof t=="undefined"||t===null}function ES(t){return typeof t=="object"&&t!==null}function bS(t){return Array.isArray(t)?t:$u(t)?[]:[t]}function xS(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 wS(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function vS(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var RS=$u,AS=ES,TS=bS,OS=wS,CS=vS,PS=xS,oe={isNothing:RS,isObject:AS,toArray:TS,repeat:OS,isNegativeZero:CS,extend:PS};function Gu(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+=`
4
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var em=d((NL,Ci)=>{"use strict";var Oi=require("path"),Qd=pl(),Jd=t=>{t={cwd:process.cwd(),path:process.env[Qd()],execPath:process.execPath,...t};let e,r=Oi.resolve(t.cwd),i=[];for(;e!==r;)i.push(Oi.join(r,"node_modules/.bin")),e=r,r=Oi.resolve(r,"..");let n=Oi.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Oi.delimiter)};Ci.exports=Jd;Ci.exports.default=Jd;Ci.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Qd({env:e});return t.path=e[r],e[r]=Ci.exports(t),e}});var rm=d((DL,bl)=>{"use strict";var tm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};bl.exports=tm;bl.exports.default=tm});var nm=d((FL,Hn)=>{"use strict";var TR=rm(),qn=new WeakMap,im=(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(qn.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 TR(s,t),qn.set(s,i),s};Hn.exports=im;Hn.exports.default=im;Hn.exports.callCount=t=>{if(!qn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return qn.get(t)}});var sm=d(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.SIGNALS=void 0;var OR=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Un.SIGNALS=OR});var wl=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var CR=function(){let t=am-om+1;return Array.from({length:t},PR)};Ur.getRealtimeSignals=CR;var PR=function(t,e){return{name:`SIGRT${e+1}`,number:om+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},om=34,am=64;Ur.SIGRTMAX=am});var lm=d($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.getSignals=void 0;var LR=require("os"),IR=sm(),kR=wl(),NR=function(){let t=(0,kR.getRealtimeSignals)();return[...IR.SIGNALS,...t].map(DR)};$n.getSignals=NR;var DR=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=LR.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var um=d($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.signalsByNumber=$r.signalsByName=void 0;var FR=require("os"),cm=lm(),MR=wl(),BR=function(){return(0,cm.getSignals)().reduce(qR,{})},qR=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}}},HR=BR();$r.signalsByName=HR;var UR=function(){let t=(0,cm.getSignals)(),e=MR.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>$R(n,t));return Object.assign({},...r)},$R=function(t,e){let r=GR(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:l}}},GR=function(t,e){let r=e.find(({name:i})=>FR.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},jR=UR();$r.signalsByNumber=jR});var fm=d((UL,hm)=>{"use strict";var{signalsByName:WR}=um(),YR=({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",zR=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:WR[n].description,g=i&&i.code,y=`Command ${YR({timedOut:l,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,w=Object.prototype.toString.call(i)==="[object Error]",x=w?`${y}
5
+ ${i.message}`:y,R=[x,e,t].filter(Boolean).join(`
6
+ `);return w?(i.originalMessage=i.message,i.message=R):i=new Error(R),i.shortMessage=x,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=!!l,i.isCanceled=c,i.killed=u&&!l,i};hm.exports=zR});var dm=d(($L,xl)=>{"use strict";var Gn=["stdin","stdout","stderr"],KR=t=>Gn.some(e=>t[e]!==void 0),pm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Gn.map(i=>t[i]);if(KR(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Gn.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,Gn.length);return Array.from({length:r},(i,n)=>e[n])};xl.exports=pm;xl.exports.node=t=>{let e=pm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var mm=d((GL,jn)=>{jn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&jn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&jn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Em=d((jL,Wr)=>{var Z=global.process,lr=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"};lr(Z)?(gm=require("assert"),Gr=mm(),ym=/^win/i.test(Z.platform),Pi=require("events"),typeof Pi!="function"&&(Pi=Pi.EventEmitter),Z.__signal_exit_emitter__?le=Z.__signal_exit_emitter__:(le=Z.__signal_exit_emitter__=new Pi,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Wr.exports=function(t,e){if(!lr(global.process))return function(){};gm.equal(typeof t,"function","a callback must be provided for exit handler"),jr===!1&&vl();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Wn()};return le.on(r,t),i},Wn=function(){!jr||!lr(global.process)||(jr=!1,Gr.forEach(function(e){try{Z.removeListener(e,Yn[e])}catch{}}),Z.emit=zn,Z.reallyExit=Rl,le.count-=1)},Wr.exports.unload=Wn,cr=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Yn={},Gr.forEach(function(t){Yn[t]=function(){if(lr(global.process)){var r=Z.listeners(t);r.length===le.count&&(Wn(),cr("exit",null,t),cr("afterexit",null,t),ym&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Wr.exports.signals=function(){return Gr},jr=!1,vl=function(){jr||!lr(global.process)||(jr=!0,le.count+=1,Gr=Gr.filter(function(e){try{return Z.on(e,Yn[e]),!0}catch{return!1}}),Z.emit=Sm,Z.reallyExit=_m)},Wr.exports.load=vl,Rl=Z.reallyExit,_m=function(e){lr(global.process)&&(Z.exitCode=e||0,cr("exit",Z.exitCode,null),cr("afterexit",Z.exitCode,null),Rl.call(Z,Z.exitCode))},zn=Z.emit,Sm=function(e,r){if(e==="exit"&&lr(global.process)){r!==void 0&&(Z.exitCode=r);var i=zn.apply(this,arguments);return cr("exit",Z.exitCode,null),cr("afterexit",Z.exitCode,null),i}else return zn.apply(this,arguments)}):Wr.exports=function(){return function(){}};var gm,Gr,ym,Pi,le,Wn,cr,Yn,jr,vl,Rl,_m,zn,Sm});var wm=d((WL,bm)=>{"use strict";var VR=require("os"),XR=Em(),ZR=1e3*5,QR=(t,e="SIGTERM",r={})=>{let i=t(e);return JR(t,e,r,i),i},JR=(t,e,r,i)=>{if(!eA(e,r,i))return;let n=rA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},eA=(t,{forceKillAfterTimeout:e},r)=>tA(t)&&e!==!1&&r,tA=t=>t===VR.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",rA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return ZR;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},iA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},nA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},sA=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{nA(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},oA=({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})`)},aA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=XR(()=>{t.kill()});return i.finally(()=>{n()})};bm.exports={spawnedKill:QR,spawnedCancel:iA,setupTimeout:sA,validateTimeout:oA,setExitHandler:aA}});var vm=d((YL,xm)=>{"use strict";var it=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";it.writable=t=>it(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";it.readable=t=>it(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";it.duplex=t=>it.writable(t)&&it.readable(t);it.transform=t=>it.duplex(t)&&typeof t._transform=="function";xm.exports=it});var Am=d((zL,Rm)=>{"use strict";var{PassThrough:lA}=require("stream");Rm.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 lA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Tm=d((KL,Li)=>{"use strict";var{constants:cA}=require("buffer"),uA=require("stream"),{promisify:hA}=require("util"),fA=Am(),pA=hA(uA.pipeline),Kn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Al(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=fA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=cA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await pA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Kn)})}),i.getBufferedValue()}Li.exports=Al;Li.exports.buffer=(t,e)=>Al(t,{...e,encoding:"buffer"});Li.exports.array=(t,e)=>Al(t,{...e,array:!0});Li.exports.MaxBufferError=Kn});var Cm=d((VL,Om)=>{"use strict";var{PassThrough:dA}=require("stream");Om.exports=function(){var t=[],e=new dA({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 km=d((XL,Im)=>{"use strict";var Lm=vm(),Pm=Tm(),mA=Cm(),gA=(t,e)=>{e===void 0||t.stdin===void 0||(Lm(e)?e.pipe(t.stdin):t.stdin.end(e))},yA=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=mA();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tl=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Ol=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Pm(t,{encoding:e,maxBuffer:i}):Pm.buffer(t,{maxBuffer:i})},_A=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Ol(t,{encoding:i,buffer:n,maxBuffer:s}),l=Ol(e,{encoding:i,buffer:n,maxBuffer:s}),c=Ol(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Tl(t,a),Tl(e,l),Tl(r,c)])}},SA=({input:t})=>{if(Lm(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Im.exports={handleInput:gA,makeAllStream:yA,getSpawnedResult:_A,validateInputSync:SA}});var Dm=d((ZL,Nm)=>{"use strict";var EA=(async()=>{})().constructor.prototype,bA=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(EA,t)]),wA=(t,e)=>{for(let[r,i]of bA){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},xA=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)})});Nm.exports={mergePromise:wA,getSpawnedPromise:xA}});var Bm=d((QL,Mm)=>{"use strict";var Fm=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],vA=/^[\w.-]+$/,RA=/"/g,AA=t=>typeof t!="string"||vA.test(t)?t:`"${t.replace(RA,'\\"')}"`,TA=(t,e)=>Fm(t,e).join(" "),OA=(t,e)=>Fm(t,e).map(r=>AA(r)).join(" "),CA=/ +/g,PA=t=>{let e=[];for(let r of t.trim().split(CA)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Mm.exports={joinCommand:TA,getEscapedCommand:OA,parseCommand:PA}});var Wm=d((JL,Yr)=>{"use strict";var LA=require("path"),Cl=require("child_process"),IA=Vd(),kA=Zd(),NA=em(),DA=nm(),Vn=fm(),Hm=dm(),{spawnedKill:FA,spawnedCancel:MA,setupTimeout:BA,validateTimeout:qA,setExitHandler:HA}=wm(),{handleInput:UA,getSpawnedResult:$A,makeAllStream:GA,validateInputSync:jA}=km(),{mergePromise:qm,getSpawnedPromise:WA}=Dm(),{joinCommand:Um,parseCommand:$m,getEscapedCommand:Gm}=Bm(),YA=1e3*1e3*100,zA=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?NA.env({env:s,cwd:i,execPath:n}):s},jm=(t,e,r={})=>{let i=IA._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:YA,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=zA(r),r.stdio=Hm(r),process.platform==="win32"&&LA.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Ii=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?kA(e):e,Xn=(t,e,r)=>{let i=jm(t,e,r),n=Um(t,e),s=Gm(t,e);qA(i.options);let o;try{o=Cl.spawn(i.file,i.args,i.options)}catch(g){let m=new Cl.ChildProcess,y=Promise.reject(Vn({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return qm(m,y)}let a=WA(o),l=BA(o,i.options,a),c=HA(o,i.options,l),u={isCanceled:!1};o.kill=FA.bind(null,o.kill.bind(o)),o.cancel=MA.bind(null,o,u);let f=DA(async()=>{let[{error:g,exitCode:m,signal:y,timedOut:w},x,R,M]=await $A(o,i.options,c),re=Ii(i.options,x),N=Ii(i.options,R),q=Ii(i.options,M);if(g||m!==0||y!==null){let L=Vn({error:g,exitCode:m,signal:y,stdout:re,stderr:N,all:q,command:n,escapedCommand:s,parsed:i,timedOut:w,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:N,all:q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return UA(o,i.options.input),o.all=GA(o,i.options),qm(o,f)};Yr.exports=Xn;Yr.exports.sync=(t,e,r)=>{let i=jm(t,e,r),n=Um(t,e),s=Gm(t,e);jA(i.options);let o;try{o=Cl.spawnSync(i.file,i.args,i.options)}catch(c){throw Vn({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Ii(i.options,o.stdout,o.error),l=Ii(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Vn({stdout:a,stderr:l,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:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Yr.exports.command=(t,e)=>{let[r,...i]=$m(t);return Xn(r,i,e)};Yr.exports.commandSync=(t,e)=>{let[r,...i]=$m(t);return Xn.sync(r,i,e)};Yr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Hm.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Xn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var zr=d((nI,Km)=>{"use strict";var zm=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Km.exports=t=>t?Object.keys(t).map(e=>[zm.has(e)?zm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var rs=d((sI,ig)=>{"use strict";var Vm=typeof process=="object"&&process?process:{stdout:null,stderr:null},eT=require("events"),Xm=require("stream"),Zm=require("string_decoder").StringDecoder,_t=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),Zn=Symbol("emittingEnd"),ki=Symbol("emittedError"),Qn=Symbol("closed"),Qm=Symbol("read"),Jn=Symbol("flush"),Jm=Symbol("flushChunk"),Te=Symbol("encoding"),Et=Symbol("decoder"),es=Symbol("flowing"),Ni=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),ce=Symbol("bufferLength"),Pl=Symbol("bufferPush"),Ll=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Il=Symbol("emitData"),eg=Symbol("emitEnd"),kl=Symbol("emitEnd2"),bt=Symbol("async"),Di=t=>Promise.resolve().then(t),tg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",tT=tg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),rT=tg&&Symbol.iterator||Symbol("iterator not implemented"),iT=t=>t==="end"||t==="finish"||t==="prefinish",nT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,sT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ts=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Kr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Nl=class extends ts{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)}};ig.exports=class rg extends Xm{constructor(e){super(),this[es]=!1,this[Ni]=!1,this[nt]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Te]=null:this[Te]=e&&e.encoding||null,this[Te]==="buffer"&&(this[Te]=null),this[bt]=e&&!!e.async||!1,this[Et]=this[Te]?new Zm(this[Te]):null,this[_t]=!1,this[Ht]=!1,this[Zn]=!1,this[Qn]=!1,this[ki]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[nt]})}get bufferLength(){return this[ce]}get encoding(){return this[Te]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Te]&&e!==this[Te]&&(this[Et]&&this[Et].lastNeed||this[ce]))throw new Error("cannot change encoding");this[Te]!==e&&(this[Et]=e?new Zm(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[Et].write(r)))),this[Te]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[bt]}set async(e){this[bt]=this[bt]||!!e}write(e,r,i){if(this[_t])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[bt]?Di:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(sT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):nT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[Jn](!0),this.flowing?this.emit("data",e):this[Pl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[Et].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[Et].write(e)),this.flowing&&this[ce]!==0&&this[Jn](!0),this.flowing?this.emit("data",e):this[Pl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[ce]===0||e===0||e>this[ce])return this[St](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[ce])]);let r=this[Qm](e||null,this[ee][0]);return this[St](),r}[Qm](e,r){return e===r.length||e===null?this[Ll]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this[ee].length&&!this[_t]&&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[_t]=!0,this.writable=!1,(this.flowing||!this[Ni])&&this[St](),this}[Kr](){this[ye]||(this[Ni]=!1,this[es]=!0,this.emit("resume"),this[ee].length?this[Jn]():this[_t]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[es]=!1,this[Ni]=!0}get destroyed(){return this[ye]}get flowing(){return this[es]}get paused(){return this[Ni]}[Pl](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this[ee].push(e)}[Ll](){return this[ee].length&&(this[ge]?this[ce]-=1:this[ce]-=this[ee][0].length),this[ee].shift()}[Jn](e){do;while(this[Jm](this[Ll]()));!e&&!this[ee].length&&!this[_t]&&this.emit("drain")}[Jm](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[Ht];return r=r||{},e===Vm.stdout||e===Vm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Nl(this,e,r):new ts(this,e,r)),this[bt]?Di(()=>this[Kr]()):this[Kr]()),e}unpipe(e){let r=this[nt].find(i=>i.dest===e);r&&(this[nt].splice(this[nt].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[nt].length&&!this.flowing?this[Kr]():e==="readable"&&this[ce]!==0?super.emit("readable"):iT(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ki]&&(this[bt]?Di(()=>r.call(this,this[ki])):r.call(this,this[ki])),i}get emittedEnd(){return this[Ht]}[St](){!this[Zn]&&!this[Ht]&&!this[ye]&&this[ee].length===0&&this[_t]&&(this[Zn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Qn]&&this.emit("close"),this[Zn]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[bt]?Di(()=>this[Il](r)):this[Il](r):!1;if(e==="end")return this[eg]();if(e==="close"){if(this[Qn]=!0,!this[Ht]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ki]=r;let s=super.emit("error",r);return this[St](),s}else if(e==="resume"){let s=super.emit("resume");return this[St](),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[St](),n}[Il](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[eg](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[bt]?Di(()=>this[kl]()):this[kl]())}[kl](){if(this[Et]){let r=this[Et].end();if(r){for(let i of this[nt])i.dest.write(r);super.emit("data",r)}}for(let r of this[nt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Te]?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())})}[tT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[_t])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[_t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(ye,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[rT](){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[ee].length=0,this[ce]=0,typeof this.close=="function"&&!this[Qn]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof rg||e instanceof Xm||e instanceof eT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var sg=d((oI,ng)=>{var oT=require("zlib").constants||{ZLIB_VERNUM:4736};ng.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},oT))});var Hl=d((aI,dg)=>{"use strict";var og=typeof process=="object"&&process?process:{stdout:null,stderr:null},aT=require("events"),ag=require("stream"),lg=require("string_decoder").StringDecoder,wt=Symbol("EOF"),xt=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),is=Symbol("emittingEnd"),Fi=Symbol("emittedError"),ns=Symbol("closed"),cg=Symbol("read"),ss=Symbol("flush"),ug=Symbol("flushChunk"),Oe=Symbol("encoding"),vt=Symbol("decoder"),os=Symbol("flowing"),Mi=Symbol("paused"),Vr=Symbol("resume"),ue=Symbol("bufferLength"),Dl=Symbol("bufferPush"),Fl=Symbol("bufferShift"),_e=Symbol("objectMode"),Se=Symbol("destroyed"),Ml=Symbol("emitData"),hg=Symbol("emitEnd"),Bl=Symbol("emitEnd2"),Rt=Symbol("async"),Bi=t=>Promise.resolve().then(t),fg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",lT=fg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),cT=fg&&Symbol.iterator||Symbol("iterator not implemented"),uT=t=>t==="end"||t==="finish"||t==="prefinish",hT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,fT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),as=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Vr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ql=class extends as{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};dg.exports=class pg extends ag{constructor(e){super(),this[os]=!1,this[Mi]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Oe]=null:this[Oe]=e&&e.encoding||null,this[Oe]==="buffer"&&(this[Oe]=null),this[Rt]=e&&!!e.async||!1,this[vt]=this[Oe]?new lg(this[Oe]):null,this[wt]=!1,this[Ut]=!1,this[is]=!1,this[ns]=!1,this[Fi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Se]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Oe]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Oe]&&e!==this[Oe]&&(this[vt]&&this[vt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[vt]=e?new lg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[vt].write(r)))),this[Oe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[Rt]}set async(e){this[Rt]=this[Rt]||!!e}write(e,r,i){if(this[wt])throw new Error("write after end");if(this[Se])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[Rt]?Bi:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(fT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):hT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[ss](!0),this.flowing?this.emit("data",e):this[Dl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[vt].write(e)),this.flowing&&this[ue]!==0&&this[ss](!0),this.flowing?this.emit("data",e):this[Dl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Se])return null;if(this[ue]===0||e===0||e>this[ue])return this[xt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[cg](e||null,this.buffer[0]);return this[xt](),r}[cg](e,r){return e===r.length||e===null?this[Fl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ue]-=e),this.emit("data",r),!this.buffer.length&&!this[wt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[wt]=!0,this.writable=!1,(this.flowing||!this[Mi])&&this[xt](),this}[Vr](){this[Se]||(this[Mi]=!1,this[os]=!0,this.emit("resume"),this.buffer.length?this[ss]():this[wt]?this[xt]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[os]=!1,this[Mi]=!0}get destroyed(){return this[Se]}get flowing(){return this[os]}get paused(){return this[Mi]}[Dl](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Fl](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[ss](e){do;while(this[ug](this[Fl]()));!e&&!this.buffer.length&&!this[wt]&&this.emit("drain")}[ug](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Se])return;let i=this[Ut];return r=r||{},e===og.stdout||e===og.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new ql(this,e,r):new as(this,e,r)),this[Rt]?Bi(()=>this[Vr]()):this[Vr]()),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[Vr]():e==="readable"&&this[ue]!==0?super.emit("readable"):uT(e)&&this[Ut]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fi]&&(this[Rt]?Bi(()=>r.call(this,this[Fi])):r.call(this,this[Fi])),i}get emittedEnd(){return this[Ut]}[xt](){!this[is]&&!this[Ut]&&!this[Se]&&this.buffer.length===0&&this[wt]&&(this[is]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ns]&&this.emit("close"),this[is]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Se&&this[Se])return;if(e==="data")return r?this[Rt]?Bi(()=>this[Ml](r)):this[Ml](r):!1;if(e==="end")return this[hg]();if(e==="close"){if(this[ns]=!0,!this[Ut]&&!this[Se])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Fi]=r;let s=super.emit("error",r);return this[xt](),s}else if(e==="resume"){let s=super.emit("resume");return this[xt](),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[xt](),n}[Ml](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[xt](),r}[hg](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[Rt]?Bi(()=>this[Bl]()):this[Bl]())}[Bl](){if(this[vt]){let r=this[vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Oe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Se,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[lT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[wt])return Promise.resolve({done:!0});let i=null,n=null,s=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[wt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Se,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[cT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Se]?(e?this.emit("error",e):this.emit(Se),this):(this[Se]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[ns]&&this.close(),e?this.emit("error",e):this.emit(Se),this)}static isStream(e){return!!e&&(e instanceof pg||e instanceof ag||e instanceof aT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var rc=d(ke=>{"use strict";var Wl=require("assert"),$t=require("buffer").Buffer,yg=require("zlib"),ur=ke.constants=sg(),pT=Hl(),mg=$t.concat,hr=Symbol("_superWrite"),Zr=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"}},dT=Symbol("opts"),qi=Symbol("flushFlag"),gg=Symbol("finishFlushFlag"),tc=Symbol("fullFlushFlag"),z=Symbol("handle"),ls=Symbol("onError"),Xr=Symbol("sawError"),Ul=Symbol("level"),$l=Symbol("strategy"),Gl=Symbol("ended"),lI=Symbol("_defaultFullFlush"),cs=class extends pT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Xr]=!1,this[Gl]=!1,this[dT]=e,this[qi]=e.flush,this[gg]=e.finishFlush;try{this[z]=new yg[r](e)}catch(i){throw new Zr(i)}this[ls]=i=>{this[Xr]||(this[Xr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[ls](new Zr(i))),this.once("end",()=>this.close)}close(){this[z]&&(this[z].close(),this[z]=null,this.emit("close"))}reset(){if(!this[Xr])return Wl(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[tc]),this.write(Object.assign($t.alloc(0),{[qi]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[gg]),this[Gl]=!0,super.end(null,null,i)}get ended(){return this[Gl]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=$t.from(e,r)),this[Xr])return;Wl(this[z],"zlib binding closed");let n=this[z]._handle,s=n.close;n.close=()=>{};let o=this[z].close;this[z].close=()=>{},$t.concat=c=>c;let a;try{let c=typeof e[qi]=="number"?e[qi]:this[qi];a=this[z]._processChunk(e,c),$t.concat=mg}catch(c){$t.concat=mg,this[ls](new Zr(c))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",c=>this[ls](new Zr(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[hr]($t.from(a[0]));for(let c=1;c<a.length;c++)l=this[hr](a[c])}else l=this[hr]($t.from(a));return i&&i(),l}[hr](e){return super.write(e)}},At=class extends cs{constructor(e,r){e=e||{},e.flush=e.flush||ur.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ur.Z_FINISH,super(e,r),this[tc]=ur.Z_FULL_FLUSH,this[Ul]=e.level,this[$l]=e.strategy}params(e,r){if(!this[Xr]){if(!this[z])throw new Error("cannot switch params when binding is closed");if(!this[z].params)throw new Error("not supported in this implementation");if(this[Ul]!==e||this[$l]!==r){this.flush(ur.Z_SYNC_FLUSH),Wl(this[z],"zlib binding closed");let i=this[z].flush;this[z].flush=(n,s)=>{this.flush(n),s()};try{this[z].params(e,r)}finally{this[z].flush=i}this[z]&&(this[Ul]=e,this[$l]=r)}}}},Yl=class extends At{constructor(e){super(e,"Deflate")}},zl=class extends At{constructor(e){super(e,"Inflate")}},jl=Symbol("_portable"),Kl=class extends At{constructor(e){super(e,"Gzip"),this[jl]=e&&!!e.portable}[hr](e){return this[jl]?(this[jl]=!1,e[9]=255,super[hr](e)):super[hr](e)}},Vl=class extends At{constructor(e){super(e,"Gunzip")}},Xl=class extends At{constructor(e){super(e,"DeflateRaw")}},Zl=class extends At{constructor(e){super(e,"InflateRaw")}},Ql=class extends At{constructor(e){super(e,"Unzip")}},us=class extends cs{constructor(e,r){e=e||{},e.flush=e.flush||ur.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ur.BROTLI_OPERATION_FINISH,super(e,r),this[tc]=ur.BROTLI_OPERATION_FLUSH}},Jl=class extends us{constructor(e){super(e,"BrotliCompress")}},ec=class extends us{constructor(e){super(e,"BrotliDecompress")}};ke.Deflate=Yl;ke.Inflate=zl;ke.Gzip=Kl;ke.Gunzip=Vl;ke.DeflateRaw=Xl;ke.InflateRaw=Zl;ke.Unzip=Ql;typeof yg.BrotliCompress=="function"?(ke.BrotliCompress=Jl,ke.BrotliDecompress=ec):ke.BrotliCompress=ke.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Qr=d((hI,_g)=>{var mT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;_g.exports=mT!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var hs=d((pI,Sg)=>{"use strict";var gT=rs(),ic=Qr(),nc=Symbol("slurp");Sg.exports=class extends gT{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=ic(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=ic(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[nc](r),i&&this[nc](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))}[nc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?ic(e[i]):e[i])}}});var sc=d(fs=>{"use strict";fs.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"]]);fs.code=new Map(Array.from(fs.name).map(t=>[t[1],t[0]]))});var xg=d((mI,wg)=>{"use strict";var yT=(t,e)=>{if(Number.isSafeInteger(t))t<0?ST(t,e):_T(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},_T=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},ST=(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]=Eg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=bg(n))}},ET=t=>{let e=t[0],r=e===128?wT(t.slice(1,t.length)):e===255?bT(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},bT=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Eg(s):s===0?o=s:(i=!0,o=bg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},wT=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},Eg=t=>(255^t)&255,bg=t=>(255^t)+1&255;wg.exports={encode:yT,parse:ET}});var ei=d((gI,Rg)=>{"use strict";var oc=sc(),Jr=require("path").posix,vg=xg(),ac=Symbol("slurp"),Ne=Symbol("type"),uc=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[Ne]="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=fr(e,r,100),this.mode=Gt(e,r+100,8),this.uid=Gt(e,r+108,8),this.gid=Gt(e,r+116,8),this.size=Gt(e,r+124,12),this.mtime=lc(e,r+136,12),this.cksum=Gt(e,r+148,12),this[ac](i),this[ac](n,!0),this[Ne]=fr(e,r+156,1),this[Ne]===""&&(this[Ne]="0"),this[Ne]==="0"&&this.path.slice(-1)==="/"&&(this[Ne]="5"),this[Ne]==="5"&&(this.size=0),this.linkpath=fr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=fr(e,r+265,32),this.gname=fr(e,r+297,32),this.devmaj=Gt(e,r+329,8),this.devmin=Gt(e,r+337,8),e[r+475]!==0){let o=fr(e,r+345,155);this.path=o+"/"+this.path}else{let o=fr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=lc(e,r+476,12),this.ctime=lc(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)}[ac](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=xT(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=pr(e,r,100,s)||this.needPax,this.needPax=jt(e,r+100,8,this.mode)||this.needPax,this.needPax=jt(e,r+108,8,this.uid)||this.needPax,this.needPax=jt(e,r+116,8,this.gid)||this.needPax,this.needPax=jt(e,r+124,12,this.size)||this.needPax,this.needPax=cc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Ne].charCodeAt(0),this.needPax=pr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=pr(e,r+265,32,this.uname)||this.needPax,this.needPax=pr(e,r+297,32,this.gname)||this.needPax,this.needPax=jt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=jt(e,r+337,8,this.devmin)||this.needPax,this.needPax=pr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=pr(e,r+345,155,o)||this.needPax:(this.needPax=pr(e,r+345,130,o)||this.needPax,this.needPax=cc(e,r+476,12,this.atime)||this.needPax,this.needPax=cc(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,jt(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 oc.name.get(this[Ne])||this[Ne]}get typeKey(){return this[Ne]}set type(e){oc.code.has(e)?this[Ne]=oc.code.get(e):this[Ne]=e}},xT=(t,e)=>{let i=t,n="",s,o=Jr.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Jr.dirname(i),i=Jr.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=Jr.join(Jr.basename(n),i),n=Jr.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},fr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),lc=(t,e,r)=>vT(Gt(t,e,r)),vT=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?vg.parse(t.slice(e,e+r)):AT(t,e,r),RT=t=>isNaN(t)?null:t,AT=(t,e,r)=>RT(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),TT={12:8589934591,8:2097151},jt=(t,e,r,i)=>i===null?!1:i>TT[r]||i<0?(vg.encode(i,t.slice(e,e+r)),!0):(OT(t,e,r,i),!1),OT=(t,e,r,i)=>t.write(CT(i,r),e,r,"ascii"),CT=(t,e)=>PT(Math.floor(t).toString(8),e),PT=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",cc=(t,e,r,i)=>i===null?!1:jt(t,e,r,i.getTime()/1e3),LT=new Array(156).join("\0"),pr=(t,e,r,i)=>i===null?!1:(t.write(i+LT,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Rg.exports=uc});var ps=d((yI,Ag)=>{"use strict";var IT=ei(),kT=require("path"),Hi=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 IT({path:("PaxHeader/"+kT.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
7
+ `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Hi.parse=(t,e,r)=>new Hi(NT(DT(t),e),r);var NT=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,DT=t=>t.replace(/\n$/,"").split(`
8
+ `).reduce(FT,Object.create(null)),FT=(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};Ag.exports=Hi});var ti=d((_I,Tg)=>{Tg.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 ds=d((SI,Og)=>{"use strict";Og.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fc=d((bI,Cg)=>{"use strict";var ms=["|","<",">","?",":"],hc=ms.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),MT=new Map(ms.map((t,e)=>[t,hc[e]])),BT=new Map(hc.map((t,e)=>[t,ms[e]]));Cg.exports={encode:t=>ms.reduce((e,r)=>e.split(r).join(MT.get(r)),t),decode:t=>hc.reduce((e,r)=>e.split(r).join(BT.get(r)),t)}});var pc=d((wI,Lg)=>{var{isAbsolute:qT,parse:Pg}=require("path").win32;Lg.exports=t=>{let e="",r=Pg(t);for(;qT(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Pg(t)}return[e,t]}});var kg=d((xI,Ig)=>{"use strict";Ig.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 xc=d((AI,zg)=>{"use strict";var Hg=rs(),Ug=ps(),$g=ei(),ot=require("fs"),Ng=require("path"),st=Qr(),HT=ti(),Gg=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),HT(e)+"/"+t):st(t),UT=16*1024*1024,Dg=Symbol("process"),Fg=Symbol("file"),Mg=Symbol("directory"),mc=Symbol("symlink"),Bg=Symbol("hardlink"),Ui=Symbol("header"),gs=Symbol("read"),gc=Symbol("lstat"),ys=Symbol("onlstat"),yc=Symbol("onread"),_c=Symbol("onreadlink"),Sc=Symbol("openfile"),Ec=Symbol("onopenfile"),Wt=Symbol("close"),_s=Symbol("mode"),bc=Symbol("awaitDrain"),dc=Symbol("ondrain"),at=Symbol("prefix"),qg=Symbol("hadError"),jg=ds(),$T=fc(),Wg=pc(),Yg=kg(),Ss=jg(class extends Hg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=st(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||UT,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=st(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?st(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]=Wg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=$T.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||Ng.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[ys](this.statCache.get(this.absolute)):this[gc]()}emit(e,...r){return e==="error"&&(this[qg]=!0),super.emit(e,...r)}[gc](){ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[ys](r)})}[ys](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=jT(e),this.emit("stat",e),this[Dg]()}[Dg](){switch(this.type){case"File":return this[Fg]();case"Directory":return this[Mg]();case"SymbolicLink":return this[mc]();default:return this.end()}}[_s](e){return Yg(e,this.type==="Directory",this.portable)}[at](e){return Gg(e,this.prefix)}[Ui](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new $g({path:this[at](this.path),linkpath:this.type==="Link"?this[at](this.linkpath):this.linkpath,mode:this[_s](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 Ug({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[at](this.path),linkpath:this.type==="Link"?this[at](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)}[Mg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ui](),this.end()}[mc](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[_c](r)})}[_c](e){this.linkpath=st(e),this[Ui](),this.end()}[Bg](e){this.type="Link",this.linkpath=st(Ng.relative(this.cwd,e)),this.stat.size=0,this[Ui](),this.end()}[Fg](){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[Bg](r)}this.linkCache.set(e,this.absolute)}if(this[Ui](),this.stat.size===0)return this.end();this[Sc]()}[Sc](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Ec](r)})}[Ec](e){if(this.fd=e,this[qg])return this[Wt]();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[gs]()}[gs](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;ot.read(e,r,i,n,s,(o,a)=>{if(o)return this[Wt](()=>this.emit("error",o));this[yc](a)})}[Wt](e){ot.close(this.fd,e)}[yc](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[Wt](()=>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[Wt](()=>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[dc]():this[bc](()=>this[dc]())}[bc](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)}[dc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Wt](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[gs]()}}),wc=class extends Ss{[gc](){this[ys](ot.lstatSync(this.absolute))}[mc](){this[_c](ot.readlinkSync(this.absolute))}[Sc](){this[Ec](ot.openSync(this.absolute,"r"))}[gs](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=ot.readSync(r,i,n,s,o);this[yc](a),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[bc](e){e()}[Wt](e){ot.closeSync(this.fd),e()}},GT=jg(class extends Hg{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=st(e.path),this.mode=this[_s](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=st(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Wg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new $g({path:this[at](this.path),linkpath:this.type==="Link"?this[at](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 Ug({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[at](this.path),linkpath:this.type==="Link"?this[at](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)}[at](e){return Gg(e,this.prefix)}[_s](e){return Yg(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()}});Ss.Sync=wc;Ss.Tar=GT;var jT=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";zg.exports=Ss});var Vg=d((TI,Kg)=>{"use strict";Kg.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var vc=d((OI,Xg)=>{"use strict";Xg.exports=H;H.Node=dr;H.create=H;function H(t){var e=this;if(e instanceof H||(e=new H),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}H.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};H.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++}};H.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++}};H.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)YT(this,arguments[t]);return this.length};H.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)zT(this,arguments[t]);return this.length};H.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}};H.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}};H.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};H.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};H.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};H.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};H.prototype.map=function(t,e){e=e||this;for(var r=new H,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};H.prototype.mapReverse=function(t,e){e=e||this;for(var r=new H,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};H.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};H.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};H.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};H.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};H.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 H;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};H.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 H;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};H.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=WT(this,n,r[i]);return s};H.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 WT(t,e,r){var i=e===t.head?new dr(r,null,e,t):new dr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function YT(t,e){t.tail=new dr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function zT(t,e){t.head=new dr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function dr(t,e,r,i){if(!(this instanceof dr))return new dr(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{Vg()(H)}catch{}});var Os=d((PI,iy)=>{"use strict";var As=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}},KT=rs(),VT=rc(),XT=hs(),kc=xc(),ZT=kc.Sync,QT=kc.Tar,JT=vc(),Zg=Buffer.alloc(1024),ws=Symbol("onStat"),Es=Symbol("ended"),lt=Symbol("queue"),ri=Symbol("current"),mr=Symbol("process"),bs=Symbol("processing"),Qg=Symbol("processJob"),ct=Symbol("jobs"),Rc=Symbol("jobDone"),xs=Symbol("addFSEntry"),Jg=Symbol("addTarEntry"),Cc=Symbol("stat"),Pc=Symbol("readdir"),vs=Symbol("onreaddir"),Rs=Symbol("pipe"),ey=Symbol("entry"),Ac=Symbol("entryOpt"),Lc=Symbol("writeEntryClass"),ry=Symbol("write"),Tc=Symbol("ondrain"),Ts=require("fs"),ty=require("path"),eO=ds(),Oc=Qr(),Nc=eO(class extends KT{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=Oc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Lc]=kc,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new VT.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Tc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Tc]),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[lt]=new JT,this[ct]=0,this.jobs=+e.jobs||4,this[bs]=!1,this[Es]=!1}[ry](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Es]=!0,this[mr](),this}write(e){if(this[Es])throw new Error("write after end");return e instanceof XT?this[Jg](e):this[xs](e),this.flowing}[Jg](e){let r=Oc(ty.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new As(e.path,r,!1);i.entry=new QT(e,this[Ac](i)),i.entry.on("end",n=>this[Rc](i)),this[ct]+=1,this[lt].push(i)}this[mr]()}[xs](e){let r=Oc(ty.resolve(this.cwd,e));this[lt].push(new As(e,r)),this[mr]()}[Cc](e){e.pending=!0,this[ct]+=1;let r=this.follow?"stat":"lstat";Ts[r](e.absolute,(i,n)=>{e.pending=!1,this[ct]-=1,i?this.emit("error",i):this[ws](e,n)})}[ws](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[mr]()}[Pc](e){e.pending=!0,this[ct]+=1,Ts.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[ct]-=1,r)return this.emit("error",r);this[vs](e,i)})}[vs](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[mr]()}[mr](){if(!this[bs]){this[bs]=!0;for(let e=this[lt].head;e!==null&&this[ct]<this.jobs;e=e.next)if(this[Qg](e.value),e.value.ignore){let r=e.next;this[lt].removeNode(e),e.next=r}this[bs]=!1,this[Es]&&!this[lt].length&&this[ct]===0&&(this.zip?this.zip.end(Zg):(super.write(Zg),super.end()))}}get[ri](){return this[lt]&&this[lt].head&&this[lt].head.value}[Rc](e){this[lt].shift(),this[ct]-=1,this[mr]()}[Qg](e){if(!e.pending){if(e.entry){e===this[ri]&&!e.piped&&this[Rs](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[ws](e,this.statCache.get(e.absolute)):this[Cc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[vs](e,this.readdirCache.get(e.absolute)):this[Pc](e),!e.readdir))){if(e.entry=this[ey](e),!e.entry){e.ignore=!0;return}e===this[ri]&&!e.piped&&this[Rs](e)}}}[Ac](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}}[ey](e){this[ct]+=1;try{return new this[Lc](e.path,this[Ac](e)).on("end",()=>this[Rc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Tc](){this[ri]&&this[ri].entry&&this[ri].entry.resume()}[Rs](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[xs](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()}}),Ic=class extends Nc{constructor(e){super(e),this[Lc]=ZT}pause(){}resume(){}[Cc](e){let r=this.follow?"statSync":"lstatSync";this[ws](e,Ts[r](e.absolute))}[Pc](e,r){this[vs](e,Ts.readdirSync(e.absolute))}[Rs](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[xs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[ry](n)})}};Nc.Sync=Ic;iy.exports=Nc});var ui=d(Gi=>{"use strict";var tO=Hl(),rO=require("events").EventEmitter,Ce=require("fs"),Mc=Ce.writev;if(!Mc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Mc=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var li=Symbol("_autoClose"),Ke=Symbol("_close"),$i=Symbol("_ended"),j=Symbol("_fd"),ny=Symbol("_finished"),zt=Symbol("_flags"),Dc=Symbol("_flush"),Bc=Symbol("_handleChunk"),qc=Symbol("_makeBuf"),ks=Symbol("_mode"),Cs=Symbol("_needDrain"),oi=Symbol("_onerror"),ci=Symbol("_onopen"),Fc=Symbol("_onread"),ni=Symbol("_onwrite"),Kt=Symbol("_open"),Tt=Symbol("_path"),gr=Symbol("_pos"),ut=Symbol("_queue"),si=Symbol("_read"),sy=Symbol("_readSize"),Yt=Symbol("_reading"),Ps=Symbol("_remain"),oy=Symbol("_size"),Ls=Symbol("_write"),ii=Symbol("_writing"),Is=Symbol("_defaultFlag"),ai=Symbol("_errored"),Ns=class extends tO{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[ai]=!1,this[j]=typeof r.fd=="number"?r.fd:null,this[Tt]=e,this[sy]=r.readSize||16*1024*1024,this[Yt]=!1,this[oy]=typeof r.size=="number"?r.size:1/0,this[Ps]=this[oy],this[li]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[j]=="number"?this[si]():this[Kt]()}get fd(){return this[j]}get path(){return this[Tt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Ce.open(this[Tt],"r",(e,r)=>this[ci](e,r))}[ci](e,r){e?this[oi](e):(this[j]=r,this.emit("open",r),this[si]())}[qc](){return Buffer.allocUnsafe(Math.min(this[sy],this[Ps]))}[si](){if(!this[Yt]){this[Yt]=!0;let e=this[qc]();if(e.length===0)return process.nextTick(()=>this[Fc](null,0,e));Ce.read(this[j],e,0,e.length,null,(r,i,n)=>this[Fc](r,i,n))}}[Fc](e,r,i){this[Yt]=!1,e?this[oi](e):this[Bc](r,i)&&this[si]()}[Ke](){if(this[li]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[oi](e){this[Yt]=!0,this[Ke](),this.emit("error",e)}[Bc](e,r){let i=!1;return this[Ps]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Ps]<=0)&&(i=!1,this[Ke](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[j]=="number"&&this[si]();break;case"error":return this[ai]?void 0:(this[ai]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Hc=class extends Ns{[Kt](){let e=!0;try{this[ci](null,Ce.openSync(this[Tt],"r")),e=!1}finally{e&&this[Ke]()}}[si](){let e=!0;try{if(!this[Yt]){this[Yt]=!0;do{let r=this[qc](),i=r.length===0?0:Ce.readSync(this[j],r,0,r.length,null);if(!this[Bc](i,r))break}while(!0);this[Yt]=!1}e=!1}finally{e&&this[Ke]()}}[Ke](){if(this[li]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.closeSync(e),this.emit("close")}}},Ds=class extends rO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ai]=!1,this[ii]=!1,this[$i]=!1,this[Cs]=!1,this[ut]=[],this[Tt]=e,this[j]=typeof r.fd=="number"?r.fd:null,this[ks]=r.mode===void 0?438:r.mode,this[gr]=typeof r.start=="number"?r.start:null,this[li]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[gr]!==null?"r+":"w";this[Is]=r.flags===void 0,this[zt]=this[Is]?i:r.flags,this[j]===null&&this[Kt]()}emit(e,r){if(e==="error"){if(this[ai])return;this[ai]=!0}return super.emit(e,r)}get fd(){return this[j]}get path(){return this[Tt]}[oi](e){this[Ke](),this[ii]=!0,this.emit("error",e)}[Kt](){Ce.open(this[Tt],this[zt],this[ks],(e,r)=>this[ci](e,r))}[ci](e,r){this[Is]&&this[zt]==="r+"&&e&&e.code==="ENOENT"?(this[zt]="w",this[Kt]()):e?this[oi](e):(this[j]=r,this.emit("open",r),this[Dc]())}end(e,r){return e&&this.write(e,r),this[$i]=!0,!this[ii]&&!this[ut].length&&typeof this[j]=="number"&&this[ni](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[$i]?(this.emit("error",new Error("write() after end()")),!1):this[j]===null||this[ii]||this[ut].length?(this[ut].push(e),this[Cs]=!0,!1):(this[ii]=!0,this[Ls](e),!0)}[Ls](e){Ce.write(this[j],e,0,e.length,this[gr],(r,i)=>this[ni](r,i))}[ni](e,r){e?this[oi](e):(this[gr]!==null&&(this[gr]+=r),this[ut].length?this[Dc]():(this[ii]=!1,this[$i]&&!this[ny]?(this[ny]=!0,this[Ke](),this.emit("finish")):this[Cs]&&(this[Cs]=!1,this.emit("drain"))))}[Dc](){if(this[ut].length===0)this[$i]&&this[ni](null,0);else if(this[ut].length===1)this[Ls](this[ut].pop());else{let e=this[ut];this[ut]=[],Mc(this[j],e,this[gr],(r,i)=>this[ni](r,i))}}[Ke](){if(this[li]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Uc=class extends Ds{[Kt](){let e;if(this[Is]&&this[zt]==="r+")try{e=Ce.openSync(this[Tt],this[zt],this[ks])}catch(r){if(r.code==="ENOENT")return this[zt]="w",this[Kt]();throw r}else e=Ce.openSync(this[Tt],this[zt],this[ks]);this[ci](null,e)}[Ke](){if(this[li]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.closeSync(e),this.emit("close")}}[Ls](e){let r=!0;try{this[ni](null,Ce.writeSync(this[j],e,0,e.length,this[gr])),r=!1}finally{if(r)try{this[Ke]()}catch{}}}};Gi.ReadStream=Ns;Gi.ReadStreamSync=Hc;Gi.WriteStream=Ds;Gi.WriteStreamSync=Uc});var $s=d((kI,dy)=>{"use strict";var iO=ds(),nO=ei(),sO=require("events"),oO=vc(),aO=1024*1024,lO=hs(),ay=ps(),cO=rc(),{nextTick:uO}=require("process"),$c=Buffer.from([31,139]),$e=Symbol("state"),yr=Symbol("writeEntry"),Ot=Symbol("readEntry"),Gc=Symbol("nextEntry"),ly=Symbol("processEntry"),Ge=Symbol("extendedHeader"),ji=Symbol("globalExtendedHeader"),Vt=Symbol("meta"),cy=Symbol("emitMeta"),V=Symbol("buffer"),Ct=Symbol("queue"),_r=Symbol("ended"),uy=Symbol("emittedEnd"),Sr=Symbol("emit"),Pe=Symbol("unzip"),Fs=Symbol("consumeChunk"),Ms=Symbol("consumeChunkSub"),jc=Symbol("consumeBody"),hy=Symbol("consumeMeta"),fy=Symbol("consumeHeader"),Bs=Symbol("consuming"),Wc=Symbol("bufferConcat"),Yc=Symbol("maybeEnd"),Wi=Symbol("writing"),Xt=Symbol("aborted"),qs=Symbol("onDone"),Er=Symbol("sawValidEntry"),Hs=Symbol("sawNullBlock"),Us=Symbol("sawEOF"),py=Symbol("closeStream"),hO=t=>!0;dy.exports=iO(class extends sO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Er]=null,this.on(qs,r=>{(this[$e]==="begin"||this[Er]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(qs,e.ondone):this.on(qs,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||aO,this.filter=typeof e.filter=="function"?e.filter:hO,this.writable=!0,this.readable=!1,this[Ct]=new oO,this[V]=null,this[Ot]=null,this[yr]=null,this[$e]="begin",this[Vt]="",this[Ge]=null,this[ji]=null,this[_r]=!1,this[Pe]=null,this[Xt]=!1,this[Hs]=!1,this[Us]=!1,this.on("end",()=>this[py]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[fy](e,r){this[Er]===null&&(this[Er]=!1);let i;try{i=new nO(e,r,this[Ge],this[ji])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Hs]?(this[Us]=!0,this[$e]==="begin"&&(this[$e]="header"),this[Sr]("eof")):(this[Hs]=!0,this[Sr]("nullBlock"));else if(this[Hs]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[yr]=new lO(i,this[Ge],this[ji]);if(!this[Er])if(s.remain){let o=()=>{s.invalid||(this[Er]=!0)};s.on("end",o)}else this[Er]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Sr]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Vt]="",s.on("data",o=>this[Vt]+=o),this[$e]="meta"):(this[Ge]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Sr]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[Ot]?this[Ct].push(s):(this[Ct].push(s),this[Gc]())))}}}[py](){uO(()=>this.emit("close"))}[ly](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ot]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Gc]()),r=!1)):(this[Ot]=null,r=!1),r}[Gc](){do;while(this[ly](this[Ct].shift()));if(!this[Ct].length){let e=this[Ot];!e||e.flowing||e.size===e.remain?this[Wi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[jc](e,r){let i=this[yr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[$e]="header",this[yr]=null,i.end()),s.length}[hy](e,r){let i=this[yr],n=this[jc](e,r);return this[yr]||this[cy](i),n}[Sr](e,r,i){!this[Ct].length&&!this[Ot]?this.emit(e,r,i):this[Ct].push([e,r,i])}[cy](e){switch(this[Sr]("meta",this[Vt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ge]=ay.parse(this[Vt],this[Ge],!1);break;case"GlobalExtendedHeader":this[ji]=ay.parse(this[Vt],this[ji],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ge]=this[Ge]||Object.create(null),this[Ge].path=this[Vt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ge]=this[Ge]||Object.create(null),this[Ge].linkpath=this[Vt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Xt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Xt])return;if(this[Pe]===null&&e){if(this[V]&&(e=Buffer.concat([this[V],e]),this[V]=null),e.length<$c.length)return this[V]=e,!0;for(let i=0;this[Pe]===null&&i<$c.length;i++)e[i]!==$c[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[_r];this[_r]=!1,this[Pe]=new cO.Unzip,this[Pe].on("data",s=>this[Fs](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[_r]=!0,this[Fs]()}),this[Wi]=!0;let n=this[Pe][i?"end":"write"](e);return this[Wi]=!1,n}}this[Wi]=!0,this[Pe]?this[Pe].write(e):this[Fs](e),this[Wi]=!1;let r=this[Ct].length?!1:this[Ot]?this[Ot].flowing:!0;return!r&&!this[Ct].length&&this[Ot].once("drain",i=>this.emit("drain")),r}[Wc](e){e&&!this[Xt]&&(this[V]=this[V]?Buffer.concat([this[V],e]):e)}[Yc](){if(this[_r]&&!this[uy]&&!this[Xt]&&!this[Bs]){this[uy]=!0;let e=this[yr];if(e&&e.blockRemain){let r=this[V]?this[V].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[V]&&e.write(this[V]),e.end()}this[Sr](qs)}}[Fs](e){if(this[Bs])this[Wc](e);else if(!e&&!this[V])this[Yc]();else{if(this[Bs]=!0,this[V]){this[Wc](e);let r=this[V];this[V]=null,this[Ms](r)}else this[Ms](e);for(;this[V]&&this[V].length>=512&&!this[Xt]&&!this[Us];){let r=this[V];this[V]=null,this[Ms](r)}this[Bs]=!1}(!this[V]||this[_r])&&this[Yc]()}[Ms](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[Us];)switch(this[$e]){case"begin":case"header":this[fy](e,r),r+=512;break;case"ignore":case"body":r+=this[jc](e,r);break;case"meta":r+=this[hy](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[V]?this[V]=Buffer.concat([e.slice(r),this[V]]):this[V]=e.slice(r))}end(e){this[Xt]||(this[Pe]?this[Pe].end(e):(this[_r]=!0,this.write(e)))}})});var Gs=d((NI,_y)=>{"use strict";var fO=zr(),gy=$s(),hi=require("fs"),pO=ui(),my=require("path"),zc=ti();_y.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=fO(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&&mO(i,e),i.noResume||dO(i),i.file&&i.sync?gO(i):i.file?yO(i,r):yy(i)};var dO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},mO=(t,e)=>{let r=new Map(e.map(s=>[zc(s),!0])),i=t.filter,n=(s,o)=>{let a=o||my.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(my.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(zc(s)):s=>n(zc(s))},gO=t=>{let e=yy(t),r=t.file,i=!0,n;try{let s=hi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(hi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=hi.openSync(r,"r");a<s.size;){let c=hi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{hi.closeSync(n)}catch{}}},yO=(t,e)=>{let r=new gy(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),hi.stat(n,(l,c)=>{if(l)a(l);else{let u=new pO.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},yy=t=>new gy(t)});var vy=d((DI,xy)=>{"use strict";var _O=zr(),js=Os(),Sy=ui(),Ey=Gs(),by=require("path");xy.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=_O(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?SO(i,e):i.file?EO(i,e,r):i.sync?bO(i,e):wO(i,e)};var SO=(t,e)=>{let r=new js.Sync(t),i=new Sy.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),wy(r,e)},EO=(t,e,r)=>{let i=new js(t),n=new Sy.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 Kc(i,e),r?s.then(r,r):s},wy=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ey({file:by.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Kc=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ey({file:by.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Kc(t,e));t.add(r)}t.end()},bO=(t,e)=>{let r=new js.Sync(t);return wy(r,e),r},wO=(t,e)=>{let r=new js(t);return Kc(r,e),r}});var Vc=d((FI,Ly)=>{"use strict";var xO=zr(),Ry=Os(),De=require("fs"),Ay=ui(),Ty=Gs(),Oy=require("path"),Cy=ei();Ly.exports=(t,e,r)=>{let i=xO(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?vO(i,e):AO(i,e,r)};var vO=(t,e)=>{let r=new Ry.Sync(t),i=!0,n,s;try{try{n=De.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=De.openSync(t.file,"w+");else throw l}let o=De.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=De.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new Cy(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,RO(t,r,s,n,e)}finally{if(i)try{De.closeSync(n)}catch{}}},RO=(t,e,r,i,n)=>{let s=new Ay.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),TO(e,n)},AO=(t,e,r)=>{e=Array.from(e);let i=new Ry(t),n=(o,a,l)=>{let c=(m,y)=>{m?De.close(o,w=>l(m)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),g=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return De.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let w=new Cy(f);if(!w.cksumValid)return c(null,u);let x=512*Math.ceil(w.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(w.path,w.mtime),h=0,De.read(o,f,0,512,u,g)};De.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",De.open(t.file,l,c);if(u)return a(u);De.fstat(h,(f,g)=>{if(f)return De.close(h,()=>a(f));n(h,g.size,(m,y)=>{if(m)return a(m);let w=new Ay.WriteStream(t.file,{fd:h,start:y});i.pipe(w),w.on("error",a),w.on("close",o),Py(i,e)})})};De.open(t.file,l,c)});return r?s.then(r,r):s},TO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ty({file:Oy.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Py=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ty({file:Oy.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Py(t,e));t.add(r)}t.end()}});var ky=d((MI,Iy)=>{"use strict";var OO=zr(),CO=Vc();Iy.exports=(t,e,r)=>{let i=OO(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),PO(i),CO(i,e,r)};var PO=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 Fy=d((BI,Dy)=>{var{promisify:Ny}=require("util"),Zt=require("fs"),LO=t=>{if(!t)t={mode:511,fs:Zt};else if(typeof t=="object")t={mode:511,fs:Zt,...t};else if(typeof t=="number")t={mode:t,fs:Zt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Zt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Zt.mkdir,t.mkdirAsync=Ny(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=Ny(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};Dy.exports=LO});var By=d((qI,My)=>{var IO=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:kO,parse:NO}=require("path"),DO=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=kO(t),IO==="win32"){let e=/[*|"<>?:]/,{root:r}=NO(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};My.exports=DO});var Gy=d((HI,$y)=>{var{dirname:qy}=require("path"),Hy=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Hy(t,qy(e),e):void 0),Uy=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Uy(t,qy(e),e):void 0}};$y.exports={findMade:Hy,findMadeSync:Uy}});var Qc=d((UI,Wy)=>{var{dirname:jy}=require("path"),Xc=(t,e,r)=>{e.recursive=!1;let i=jy(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 Xc(i,e).then(s=>Xc(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})})},Zc=(t,e,r)=>{let i=jy(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 Zc(t,e,Zc(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};Wy.exports={mkdirpManual:Xc,mkdirpManualSync:Zc}});var Ky=d(($I,zy)=>{var{dirname:Yy}=require("path"),{findMade:FO,findMadeSync:MO}=Gy(),{mkdirpManual:BO,mkdirpManualSync:qO}=Qc(),HO=(t,e)=>(e.recursive=!0,Yy(t)===t?e.mkdirAsync(t,e):FO(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return BO(t,e);throw n}))),UO=(t,e)=>{if(e.recursive=!0,Yy(t)===t)return e.mkdirSync(t,e);let i=MO(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return qO(t,e);throw n}};zy.exports={mkdirpNative:HO,mkdirpNativeSync:UO}});var Qy=d((GI,Zy)=>{var Vy=require("fs"),$O=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Jc=$O.replace(/^v/,"").split("."),Xy=+Jc[0]>10||+Jc[0]==10&&+Jc[1]>=12,GO=Xy?t=>t.mkdir===Vy.mkdir:()=>!1,jO=Xy?t=>t.mkdirSync===Vy.mkdirSync:()=>!1;Zy.exports={useNative:GO,useNativeSync:jO}});var n_=d((jI,i_)=>{var fi=Fy(),pi=By(),{mkdirpNative:Jy,mkdirpNativeSync:e_}=Ky(),{mkdirpManual:t_,mkdirpManualSync:r_}=Qc(),{useNative:WO,useNativeSync:YO}=Qy(),di=(t,e)=>(t=pi(t),e=fi(e),WO(e)?Jy(t,e):t_(t,e)),zO=(t,e)=>(t=pi(t),e=fi(e),YO(e)?e_(t,e):r_(t,e));di.sync=zO;di.native=(t,e)=>Jy(pi(t),fi(e));di.manual=(t,e)=>t_(pi(t),fi(e));di.nativeSync=(t,e)=>e_(pi(t),fi(e));di.manualSync=(t,e)=>r_(pi(t),fi(e));i_.exports=di});var h_=d((WI,u_)=>{"use strict";var je=require("fs"),br=require("path"),KO=je.lchown?"lchown":"chown",VO=je.lchownSync?"lchownSync":"chownSync",o_=je.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s_=(t,e,r)=>{try{return je[VO](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},XO=(t,e,r)=>{try{return je.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},ZO=o_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):je.chown(t,e,r,i)}:(t,e,r,i)=>i,eu=o_?(t,e,r)=>{try{return s_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;XO(t,e,r)}}:(t,e,r)=>s_(t,e,r),QO=process.version,a_=(t,e,r)=>je.readdir(t,e,r),JO=(t,e)=>je.readdirSync(t,e);/^v4\./.test(QO)&&(a_=(t,e,r)=>je.readdir(t,r));var Ws=(t,e,r,i)=>{je[KO](t,e,r,ZO(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},l_=(t,e,r,i,n)=>{if(typeof e=="string")return je.lstat(br.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,l_(t,o,r,i,n)});if(e.isDirectory())tu(br.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=br.resolve(t,e.name);Ws(o,r,i,n)});else{let s=br.resolve(t,e.name);Ws(s,r,i,n)}},tu=(t,e,r,i)=>{a_(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 Ws(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Ws(t,e,r,i)}};s.forEach(c=>l_(t,c,e,r,l))})},eC=(t,e,r,i)=>{if(typeof e=="string")try{let n=je.lstatSync(br.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&c_(br.resolve(t,e.name),r,i),eu(br.resolve(t,e.name),r,i)},c_=(t,e,r)=>{let i;try{i=JO(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return eu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>eC(t,n,e,r)),eu(t,e,r)};u_.exports=tu;tu.sync=c_});var m_=d((YI,ru)=>{"use strict";var f_=n_(),We=require("fs"),Ys=require("path"),p_=h_(),Ve=Qr(),zs=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Ks=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Vs=(t,e)=>t.get(Ve(e)),Yi=(t,e,r)=>t.set(Ve(e),r),tC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Ks(t,r&&r.code||"ENOTDIR")),e(r)})};ru.exports=(t,e,r)=>{t=Ve(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=Ve(e.cwd),g=(w,x)=>{w?r(w):(Yi(h,t,!0),x&&l?p_(x,o,a,R=>g(R)):s?We.chmod(t,n,r):r())};if(h&&Vs(h,t)===!0)return g();if(t===f)return tC(t,g);if(c)return f_(t,{mode:n}).then(w=>g(null,w),g);let y=Ve(Ys.relative(f,t)).split("/");Xs(f,y,n,h,u,f,null,g)};var Xs=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=Ve(Ys.resolve(t+"/"+l));if(Vs(i,c))return Xs(c,e,r,i,n,s,o,a);We.mkdir(c,r,d_(c,e,r,i,n,s,o,a))},d_=(t,e,r,i,n,s,o,a)=>l=>{l?We.lstat(t,(c,u)=>{if(c)c.path=c.path&&Ve(c.path),a(c);else if(u.isDirectory())Xs(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,d_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new zs(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,Xs(t,e,r,i,n,s,o,a))},rC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Ks(t,r)}};ru.exports.sync=(t,e)=>{t=Ve(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),l=e.preserve,c=e.unlink,u=e.cache,h=Ve(e.cwd),f=w=>{Yi(u,t,!0),w&&a&&p_.sync(w,s,o),n&&We.chmodSync(t,i)};if(u&&Vs(u,t)===!0)return f();if(t===h)return rC(h),f();if(l)return f(f_.sync(t,i));let m=Ve(Ys.relative(h,t)).split("/"),y=null;for(let w=m.shift(),x=h;w&&(x+="/"+w);w=m.shift())if(x=Ve(Ys.resolve(x)),!Vs(u,x))try{We.mkdirSync(x,i),y=y||x,Yi(u,x,!0)}catch{let M=We.lstatSync(x);if(M.isDirectory()){Yi(u,x,!0);continue}else if(c){We.unlinkSync(x),We.mkdirSync(x,i),y=y||x,Yi(u,x,!0);continue}else if(M.isSymbolicLink())return new zs(x,x+"/"+m.join("/"))}return f(y)}});var nu=d((zI,g_)=>{var iu=Object.create(null),{hasOwnProperty:iC}=Object.prototype;g_.exports=t=>(iC.call(iu,t)||(iu[t]=t.normalize("NFKD")),iu[t])});var E_=d((KI,S_)=>{var y_=require("assert"),nC=nu(),sC=ti(),{join:__}=require("path"),oC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,aC=oC==="win32";S_.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=__(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.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:u,dirs:h}=e.get(c),f=new Set;return u.forEach(g=>{let m=t.get(g);y_.equal(m[0],c),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let m=t.get(g);y_(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(g=>o(g)),!0};return{check:s,reserve:(c,u)=>{c=aC?["win32 parallelization disabled"]:c.map(f=>nC(sC(__(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var x_=d((VI,w_)=>{var lC=process.env.__FAKE_PLATFORM__||process.platform,cC=lC==="win32",uC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:hC,O_TRUNC:fC,O_WRONLY:pC,UV_FS_O_FILEMAP:b_=0}=uC.constants,dC=cC&&!!b_,mC=512*1024,gC=b_|fC|hC|pC;w_.exports=dC?t=>t<mC?gC:"w":()=>"w"});var pu=d((XI,M_)=>{"use strict";var yC=require("assert"),_C=$s(),U=require("fs"),SC=ui(),Pt=require("path"),N_=m_(),v_=fc(),EC=E_(),bC=pc(),Fe=Qr(),wC=ti(),xC=nu(),R_=Symbol("onEntry"),au=Symbol("checkFs"),A_=Symbol("checkFs2"),Js=Symbol("pruneCache"),lu=Symbol("isReusable"),Ye=Symbol("makeFs"),cu=Symbol("file"),uu=Symbol("directory"),eo=Symbol("link"),T_=Symbol("symlink"),O_=Symbol("hardlink"),C_=Symbol("unsupported"),P_=Symbol("checkPath"),Qt=Symbol("mkdir"),Ee=Symbol("onError"),Zs=Symbol("pending"),L_=Symbol("pend"),mi=Symbol("unpend"),su=Symbol("ended"),ou=Symbol("maybeClose"),hu=Symbol("skip"),zi=Symbol("doChown"),Ki=Symbol("uid"),Vi=Symbol("gid"),Xi=Symbol("checkedCwd"),D_=require("crypto"),F_=x_(),vC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Zi=vC==="win32",RC=(t,e)=>{if(!Zi)return U.unlink(t,e);let r=t+".DELETE."+D_.randomBytes(16).toString("hex");U.rename(t,r,i=>{if(i)return e(i);U.unlink(r,e)})},AC=t=>{if(!Zi)return U.unlinkSync(t);let e=t+".DELETE."+D_.randomBytes(16).toString("hex");U.renameSync(t,e),U.unlinkSync(e)},I_=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,k_=t=>xC(wC(Fe(t))).toLowerCase(),TC=(t,e)=>{e=k_(e);for(let r of t.keys()){let i=k_(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},OC=t=>{for(let e of t.keys())t.delete(e)},Qi=class extends _C{constructor(e){if(e||(e={}),e.ondone=r=>{this[su]=!0,this[ou]()},super(e),this[Xi]=!1,this.reservations=EC(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Zs]=0,this[su]=!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||Zi,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Fe(Pt.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[R_](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[ou](){this[su]&&this[Zs]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[P_](e){if(this.strip){let r=Fe(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Fe(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Fe(e.path),i=r.split("/");if(i.includes("..")||Zi&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=bC(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Pt.isAbsolute(e.path)?e.absolute=Fe(Pt.resolve(e.path)):e.absolute=Fe(Pt.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:Fe(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}=Pt.win32.parse(e.absolute);e.absolute=r+v_.encode(e.absolute.slice(r.length));let{root:i}=Pt.win32.parse(e.path);e.path=i+v_.encode(e.path.slice(i.length))}return!0}[R_](e){if(!this[P_](e))return e.resume();switch(yC.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[au](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[C_](e)}}[Ee](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[mi](),r.resume())}[Qt](e,r,i){N_(Fe(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)}[zi](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}[Ki](e){return I_(this.uid,e.uid,this.processUid)}[Vi](e){return I_(this.gid,e.gid,this.processGid)}[cu](e,r){let i=e.mode&4095||this.fmode,n=new SC.WriteStream(e.absolute,{flags:F_(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&U.close(n.fd,()=>{}),n.write=()=>!0,this[Ee](l,e),r()});let s=1,o=l=>{if(l){n.fd&&U.close(n.fd,()=>{}),this[Ee](l,e),r();return}--s===0&&U.close(n.fd,c=>{c?this[Ee](c,e):this[mi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;U.futimes(u,h,f,g=>g?U.utimes(c,h,f,m=>o(m&&g)):o())}if(this[zi](e)){s++;let h=this[Ki](e),f=this[Vi](e);U.fchown(u,h,f,g=>g?U.chown(c,h,f,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Ee](l,e),r()}),e.pipe(a)),a.pipe(n)}[uu](e,r){let i=e.mode&4095||this.dmode;this[Qt](e.absolute,i,n=>{if(n){this[Ee](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[mi](),e.resume())};e.mtime&&!this.noMtime&&(s++,U.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[zi](e)&&(s++,U.chown(e.absolute,this[Ki](e),this[Vi](e),o)),o()})}[C_](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[T_](e,r){this[eo](e,e.linkpath,"symlink",r)}[O_](e,r){let i=Fe(Pt.resolve(this.cwd,e.linkpath));this[eo](e,i,"link",r)}[L_](){this[Zs]++}[mi](){this[Zs]--,this[ou]()}[hu](e){this[mi](),e.resume()}[lu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Zi}[au](e){this[L_]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[A_](e,i))}[Js](e){e.type==="SymbolicLink"?OC(this.dirCache):e.type!=="Directory"&&TC(this.dirCache,e.absolute)}[A_](e,r){this[Js](e);let i=a=>{this[Js](e),r(a)},n=()=>{this[Qt](this.cwd,this.dmode,a=>{if(a){this[Ee](a,e),i();return}this[Xi]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Fe(Pt.dirname(e.absolute));if(a!==this.cwd)return this[Qt](a,this.dmode,l=>{if(l){this[Ee](l,e),i();return}o()})}o()},o=()=>{U.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[hu](e),i();return}if(a||this[lu](e,l))return this[Ye](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return c?U.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return U.rmdir(e.absolute,c=>this[Ye](c,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);RC(e.absolute,c=>this[Ye](c,e,i))})};this[Xi]?s():n()}[Ye](e,r,i){if(e){this[Ee](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[cu](r,i);case"Link":return this[O_](r,i);case"SymbolicLink":return this[T_](r,i);case"Directory":case"GNUDumpDir":return this[uu](r,i)}}[eo](e,r,i,n){U[i](r,e.absolute,s=>{s?this[Ee](s,e):(this[mi](),e.resume()),n()})}},Qs=t=>{try{return[null,t()]}catch(e){return[e,null]}},fu=class extends Qi{[Ye](e,r){return super[Ye](e,r,()=>{})}[au](e){if(this[Js](e),!this[Xi]){let s=this[Qt](this.cwd,this.dmode);if(s)return this[Ee](s,e);this[Xi]=!0}if(e.absolute!==this.cwd){let s=Fe(Pt.dirname(e.absolute));if(s!==this.cwd){let o=this[Qt](s,this.dmode);if(o)return this[Ee](o,e)}}let[r,i]=Qs(()=>U.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[hu](e);if(r||this[lu](e,i))return this[Ye](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Qs(()=>{U.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=Qs(()=>U.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:Qs(()=>AC(e.absolute));this[Ye](n,e)}[cu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{U.closeSync(s)}catch(c){l=c}(a||l)&&this[Ee](a||l,e),r()},s;try{s=U.openSync(e.absolute,F_(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ee](a,e)),e.pipe(o)),o.on("data",a=>{try{U.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{U.futimesSync(s,c,u)}catch(h){try{U.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[zi](e)){let c=this[Ki](e),u=this[Vi](e);try{U.fchownSync(s,c,u)}catch(h){try{U.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[uu](e,r){let i=e.mode&4095||this.dmode,n=this[Qt](e.absolute,i);if(n){this[Ee](n,e),r();return}if(e.mtime&&!this.noMtime)try{U.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[zi](e))try{U.chownSync(e.absolute,this[Ki](e),this[Vi](e))}catch{}r(),e.resume()}[Qt](e,r){try{return N_.sync(Fe(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}}[eo](e,r,i,n){try{U[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ee](s,e)}}};Qi.Sync=fu;M_.exports=Qi});var $_=d((ZI,U_)=>{"use strict";var CC=zr(),to=pu(),q_=require("fs"),H_=ui(),B_=require("path"),du=ti();U_.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=CC(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&&PC(i,e),i.file&&i.sync?LC(i):i.file?IC(i,r):i.sync?kC(i):NC(i)};var PC=(t,e)=>{let r=new Map(e.map(s=>[du(s),!0])),i=t.filter,n=(s,o)=>{let a=o||B_.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(B_.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(du(s)):s=>n(du(s))},LC=t=>{let e=new to.Sync(t),r=t.file,i=q_.statSync(r),n=t.maxReadSize||16*1024*1024;new H_.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},IC=(t,e)=>{let r=new to(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),q_.stat(n,(l,c)=>{if(l)a(l);else{let u=new H_.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},kC=t=>new to.Sync(t),NC=t=>new to(t)});var G_=d(ae=>{"use strict";ae.c=ae.create=vy();ae.r=ae.replace=Vc();ae.t=ae.list=Gs();ae.u=ae.update=ky();ae.x=ae.extract=$_();ae.Pack=Os();ae.Unpack=pu();ae.Parse=$s();ae.ReadEntry=hs();ae.WriteEntry=xc();ae.Header=ei();ae.Pax=ps();ae.types=sc()});var K_=d((rk,z_)=>{function ze(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))}z_.exports=ze;ze.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ze.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ze.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};ze.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)};ze.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};ze.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};ze.prototype.start=ze.prototype.try;ze.prototype.errors=function(){return this._errors};ze.prototype.attempts=function(){return this._attempts};ze.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 V_=d(wr=>{var qC=K_();wr.operation=function(t){var e=wr.timeouts(t);return new qC(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wr.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};wr.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};wr.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(l){var c=wr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var Z_=d((nk,X_)=>{X_.exports=V_()});var J_=d((sk,Q_)=>{var HC=Z_();function UC(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=HC.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(g){l(g,u)})}o.attempt(c)}return new Promise(r)}Q_.exports=UC});var r1={};yu(r1,{default:()=>t1,transformer:()=>iS});module.exports=uS(r1);var gu=$(require("path")),oo=$(require("fs-extra"));var so=$(require("picocolors"));var hS=$(vu());function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yi(t){return yi=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},yi(t)}function uo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ho(t,e){if(e&&(yi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uo(t)}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},er(t)}function pt(t,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},pt(t,e)}function fo(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&&pt(t,e)}function po(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function mo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xr(t,e,r){return mo()?xr=Reflect.construct.bind():xr=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&pt(c,o.prototype),c},xr.apply(null,arguments)}function _i(t){var e=typeof Map=="function"?new Map:void 0;return _i=function(i){if(i===null||!po(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return xr(i,arguments,er(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),pt(n,i)},_i(t)}var Ru=$(require("find-up"));var fS=$(require("fs-extra")),D1=function(t){fo(e,t);function e(r){var i;return co(this,e),i=ho(this,er(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(_i(Error));var gS=$(require("json5"));var pS=$(require("fs")),dS=$(require("path"));var Zv=$(require("fs")),Qv=$(require("path"));function Uu(t){return typeof t=="undefined"||t===null}function yS(t){return typeof t=="object"&&t!==null}function _S(t){return Array.isArray(t)?t:Uu(t)?[]:[t]}function SS(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 ES(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function bS(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var wS=Uu,xS=yS,vS=_S,RS=ES,AS=bS,TS=SS,oe={isNothing:wS,isObject:xS,toArray:vS,repeat:RS,isNegativeZero:AS,extend:TS};function $u(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+=`
9
9
 
10
- `+t.mark.snippet),i+" "+r):i}function bi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Gu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}bi.prototype=Object.create(Error.prototype);bi.prototype.constructor=bi;bi.prototype.toString=function(e){return this.name+": "+Gu(this,e)};var ve=bi;function go(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 yo(t,e){return oe.repeat(" ",e-t.length)+t}function LS(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="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=go(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=oe.repeat(" ",e.indent)+yo((t.line-l+1).toString(),u)+" | "+c.str+`
10
+ `+t.mark.snippet),i+" "+r):i}function Ei(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=$u(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ei.prototype=Object.create(Error.prototype);Ei.prototype.constructor=Ei;Ei.prototype.toString=function(e){return this.name+": "+$u(this,e)};var xe=Ei;function go(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 yo(t,e){return oe.repeat(" ",e-t.length)+t}function OS(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="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=go(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=oe.repeat(" ",e.indent)+yo((t.line-l+1).toString(),u)+" | "+c.str+`
11
11
  `+a;for(c=go(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+yo((t.line+1).toString(),u)+" | "+c.str+`
12
12
  `,a+=oe.repeat("-",e.indent+u+3+c.pos)+`^
13
13
  `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=go(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=oe.repeat(" ",e.indent)+yo((t.line+l+1).toString(),u)+" | "+c.str+`
14
- `;return a.replace(/\n$/,"")}var IS=LS,kS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],NS=["scalar","sequence","mapping"];function DS(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function FS(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(kS.indexOf(r)===-1)throw new ve('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=DS(e.styleAliases||null),NS.indexOf(this.kind)===-1)throw new ve('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=FS;function Tu(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 MS(){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 So(t){return this.extend(t)}So.prototype.extend=function(e){var r=[],i=[];if(e instanceof fe)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 ve("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof fe))throw new ve("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ve("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 ve("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 fe))throw new ve("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(So.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Tu(n,"implicit"),n.compiledExplicit=Tu(n,"explicit"),n.compiledTypeMap=MS(n.compiledImplicit,n.compiledExplicit),n};var BS=So,qS=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),HS=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),US=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),$S=new BS({explicit:[qS,HS,US]});function GS(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function jS(){return null}function WS(t){return t===null}var YS=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:GS,construct:jS,predicate:WS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zS(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 KS(t){return t==="true"||t==="True"||t==="TRUE"}function VS(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var XS=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zS,construct:KS,predicate:VS,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 ZS(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function QS(t){return 48<=t&&t<=55}function JS(t){return 48<=t&&t<=57}function eE(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(!ZS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!QS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!JS(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function tE(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 rE(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var iE=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:eE,construct:tE,predicate:rE,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"]}}),nE=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function sE(t){return!(t===null||!nE.test(t)||t[t.length-1]==="_")}function oE(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 aE=/^[-+]?[0-9]+e/;function lE(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(oe.isNegativeZero(t))return"-0.0";return r=t.toString(10),aE.test(r)?r.replace("e",".e"):r}function cE(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var uE=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:sE,construct:oE,predicate:cE,represent:lE,defaultStyle:"lowercase"}),hE=$S.extend({implicit:[YS,XS,iE,uE]}),fE=hE,ju=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Wu=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 pE(t){return t===null?!1:ju.exec(t)!==null||Wu.exec(t)!==null}function dE(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=ju.exec(t),e===null&&(e=Wu.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(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function mE(t){return t.toISOString()}var gE=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:pE,construct:dE,instanceOf:Date,represent:mE});function yE(t){return t==="<<"||t===null}var _E=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yE}),vo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
- \r`;function SE(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=vo;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 EE(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=vo,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 bE(t){var e="",r=0,i,n,s=t.length,o=vo;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 xE(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wE=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:SE,construct:EE,predicate:xE,represent:bE}),vE=Object.prototype.hasOwnProperty,RE=Object.prototype.toString;function AE(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,RE.call(n)!=="[object Object]")return!1;for(s in n)if(vE.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 TE(t){return t!==null?t:[]}var OE=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:AE,construct:TE}),CE=Object.prototype.toString;function PE(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],CE.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function LE(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 IE=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:PE,construct:LE}),kE=Object.prototype.hasOwnProperty;function NE(t){if(t===null)return!0;var e,r=t;for(e in r)if(kE.call(r,e)&&r[e]!==null)return!1;return!0}function DE(t){return t!==null?t:{}}var FE=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:NE,construct:DE}),Yu=fE.extend({implicit:[gE,_E],explicit:[wE,OE,IE,FE]}),It=Object.prototype.hasOwnProperty,an=1,zu=2,Ku=3,ln=4,_o=1,ME=2,Ou=3,BE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qE=/[\x85\u2028\u2029]/,HE=/[,\[\]\{\}]/,Vu=/^(?:!|!!|![a-z\-]+!)$/i,Xu=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cu(t){return Object.prototype.toString.call(t)}function Ze(t){return t===10||t===13}function rr(t){return t===9||t===32}function Re(t){return t===9||t===32||t===10||t===13}function Rr(t){return t===44||t===91||t===93||t===123||t===125}function UE(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function $E(t){return t===120?2:t===117?4:t===85?8:0}function GE(t){return 48<=t&&t<=57?t-48:-1}function Pu(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
16
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function jE(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Zu=new Array(256),Qu=new Array(256);for(tr=0;tr<256;tr++)Zu[tr]=Pu(tr)?1:0,Qu[tr]=Pu(tr);var tr;function WE(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Yu,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 Ju(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=IS(r),new ve(e,r)}function C(t,e){throw Ju(t,e)}function cn(t,e){t.onWarning&&t.onWarning.call(null,Ju(t,e))}var Lu={YAML:function(e,r,i){var n,s,o;e.version!==null&&C(e,"duplication of %YAML directive"),i.length!==1&&C(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&C(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&C(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&cn(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&C(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Vu.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),It.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Xu.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Lt(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||C(t,"expected valid JSON character");else BE.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Iu(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(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],It.call(e,s)||(e[s]=r[s],i[s]=!0)}function Ar(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Cu(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Cu(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,u=s.length;c<u;c+=1)Iu(t,e,s[c],r);else Iu(t,e,s,r);else!t.json&&!It.call(r,n)&&It.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,C(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 Ro(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++):C(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function te(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;rr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Ze(n))for(Ro(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&&cn(t,"deficient indentation"),i}function fn(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||Re(r)))}function Ao(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
- `,e-1))}function YE(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),Re(g)||Rr(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(n=t.input.charCodeAt(t.position+1),Re(n)||r&&Rr(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;g!==0;){if(g===58){if(n=t.input.charCodeAt(t.position+1),Re(n)||r&&Rr(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),Re(i))break}else{if(t.position===t.lineStart&&fn(t)||r&&Rr(g))break;if(Ze(g))if(l=t.line,c=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Lt(t,s,o,!1),Ao(t,t.line-l),s=o=t.position,a=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Lt(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function zE(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(Lt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ze(r)?(Lt(t,i,n,!0),Ao(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&fn(t)?C(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);C(t,"unexpected end of the stream within a single quoted scalar")}function KE(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 Lt(t,r,t.position,!0),t.position++,!0;if(a===92){if(Lt(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&Zu[a])t.result+=Qu[a],t.position++;else if((o=$E(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=UE(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=jE(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(Lt(t,r,i,!0),Ao(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&fn(t)?C(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}C(t,"unexpected end of the stream within a double quoted scalar")}function VE(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,g,m=Object.create(null),y,x,w,R;if(R=t.input.charCodeAt(t.position),R===91)u=93,g=!1,a=[];else if(R===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),R=t.input.charCodeAt(++t.position);R!==0;){if(te(t,!0,e),R=t.input.charCodeAt(t.position),R===u)return t.position++,t.tag=o,t.anchor=l,t.kind=g?"mapping":"sequence",t.result=a,!0;r?R===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),x=y=w=null,h=f=!1,R===63&&(c=t.input.charCodeAt(t.position+1),Re(c)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Tr(t,e,an,!1,!0),x=t.tag,y=t.result,te(t,!0,e),R=t.input.charCodeAt(t.position),(f||t.line===i)&&R===58&&(h=!0,R=t.input.charCodeAt(++t.position),te(t,!0,e),Tr(t,e,an,!1,!0),w=t.result),g?Ar(t,a,m,x,y,w,i,n,s):h?a.push(Ar(t,null,m,x,y,w,i,n,s)):a.push(y),te(t,!0,e),R=t.input.charCodeAt(t.position),R===44?(r=!0,R=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function XE(t,e){var r,i,n=_o,s=!1,o=!1,a=e,l=0,c=!1,u,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)_o===n?n=h===43?Ou:ME:C(t,"repeat of a chomping mode identifier");else if((u=GE(h))>=0)u===0?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?C(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(rr(h)){do h=t.input.charCodeAt(++t.position);while(rr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Ze(h)&&h!==0)}for(;h!==0;){for(Ro(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),Ze(h)){l++;continue}if(t.lineIndent<a){n===Ou?t.result+=oe.repeat(`
14
+ `;return a.replace(/\n$/,"")}var CS=OS,PS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],LS=["scalar","sequence","mapping"];function IS(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function kS(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(PS.indexOf(r)===-1)throw new xe('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=IS(e.styleAliases||null),LS.indexOf(this.kind)===-1)throw new xe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=kS;function Au(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 NS(){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 So(t){return this.extend(t)}So.prototype.extend=function(e){var r=[],i=[];if(e instanceof fe)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 xe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof fe))throw new xe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new xe("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 xe("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 fe))throw new xe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(So.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Au(n,"implicit"),n.compiledExplicit=Au(n,"explicit"),n.compiledTypeMap=NS(n.compiledImplicit,n.compiledExplicit),n};var DS=So,FS=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),MS=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),BS=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),qS=new DS({explicit:[FS,MS,BS]});function HS(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function US(){return null}function $S(t){return t===null}var GS=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:HS,construct:US,predicate:$S,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function jS(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 WS(t){return t==="true"||t==="True"||t==="TRUE"}function YS(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var zS=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:jS,construct:WS,predicate:YS,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 KS(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function VS(t){return 48<=t&&t<=55}function XS(t){return 48<=t&&t<=57}function ZS(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(!KS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!VS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!XS(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function QS(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 JS(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var eE=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:ZS,construct:QS,predicate:JS,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"]}}),tE=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function rE(t){return!(t===null||!tE.test(t)||t[t.length-1]==="_")}function iE(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 nE=/^[-+]?[0-9]+e/;function sE(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(oe.isNegativeZero(t))return"-0.0";return r=t.toString(10),nE.test(r)?r.replace("e",".e"):r}function oE(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var aE=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:rE,construct:iE,predicate:oE,represent:sE,defaultStyle:"lowercase"}),lE=qS.extend({implicit:[GS,zS,eE,aE]}),cE=lE,Gu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ju=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 uE(t){return t===null?!1:Gu.exec(t)!==null||ju.exec(t)!==null}function hE(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=Gu.exec(t),e===null&&(e=ju.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(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function fE(t){return t.toISOString()}var pE=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uE,construct:hE,instanceOf:Date,represent:fE});function dE(t){return t==="<<"||t===null}var mE=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dE}),vo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function gE(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=vo;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 yE(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=vo,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 _E(t){var e="",r=0,i,n,s=t.length,o=vo;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 SE(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var EE=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:gE,construct:yE,predicate:SE,represent:_E}),bE=Object.prototype.hasOwnProperty,wE=Object.prototype.toString;function xE(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,wE.call(n)!=="[object Object]")return!1;for(s in n)if(bE.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 vE(t){return t!==null?t:[]}var RE=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xE,construct:vE}),AE=Object.prototype.toString;function TE(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],AE.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function OE(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 CE=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TE,construct:OE}),PE=Object.prototype.hasOwnProperty;function LE(t){if(t===null)return!0;var e,r=t;for(e in r)if(PE.call(r,e)&&r[e]!==null)return!1;return!0}function IE(t){return t!==null?t:{}}var kE=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:LE,construct:IE}),Wu=cE.extend({implicit:[pE,mE],explicit:[EE,RE,CE,kE]}),It=Object.prototype.hasOwnProperty,nn=1,Yu=2,zu=3,sn=4,_o=1,NE=2,Tu=3,DE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,FE=/[\x85\u2028\u2029]/,ME=/[,\[\]\{\}]/,Ku=/^(?:!|!!|![a-z\-]+!)$/i,Vu=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ou(t){return Object.prototype.toString.call(t)}function Ze(t){return t===10||t===13}function rr(t){return t===9||t===32}function ve(t){return t===9||t===32||t===10||t===13}function Rr(t){return t===44||t===91||t===93||t===123||t===125}function BE(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function qE(t){return t===120?2:t===117?4:t===85?8:0}function HE(t){return 48<=t&&t<=57?t-48:-1}function Cu(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
16
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function UE(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Xu=new Array(256),Zu=new Array(256);for(tr=0;tr<256;tr++)Xu[tr]=Cu(tr)?1:0,Zu[tr]=Cu(tr);var tr;function $E(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Wu,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 Qu(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=CS(r),new xe(e,r)}function C(t,e){throw Qu(t,e)}function on(t,e){t.onWarning&&t.onWarning.call(null,Qu(t,e))}var Pu={YAML:function(e,r,i){var n,s,o;e.version!==null&&C(e,"duplication of %YAML directive"),i.length!==1&&C(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&C(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&C(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&on(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&C(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Ku.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),It.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Vu.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Lt(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||C(t,"expected valid JSON character");else DE.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Lu(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(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],It.call(e,s)||(e[s]=r[s],i[s]=!0)}function Ar(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Ou(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Ou(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,u=s.length;c<u;c+=1)Lu(t,e,s[c],r);else Lu(t,e,s,r);else!t.json&&!It.call(r,n)&&It.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,C(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 Ro(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++):C(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function te(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;rr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Ze(n))for(Ro(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&&on(t,"deficient indentation"),i}function cn(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||ve(r)))}function Ao(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
+ `,e-1))}function GE(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),ve(g)||Rr(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(n=t.input.charCodeAt(t.position+1),ve(n)||r&&Rr(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;g!==0;){if(g===58){if(n=t.input.charCodeAt(t.position+1),ve(n)||r&&Rr(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),ve(i))break}else{if(t.position===t.lineStart&&cn(t)||r&&Rr(g))break;if(Ze(g))if(l=t.line,c=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Lt(t,s,o,!1),Ao(t,t.line-l),s=o=t.position,a=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Lt(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function jE(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(Lt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ze(r)?(Lt(t,i,n,!0),Ao(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&cn(t)?C(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);C(t,"unexpected end of the stream within a single quoted scalar")}function WE(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 Lt(t,r,t.position,!0),t.position++,!0;if(a===92){if(Lt(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&Xu[a])t.result+=Zu[a],t.position++;else if((o=qE(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=BE(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=UE(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(Lt(t,r,i,!0),Ao(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&cn(t)?C(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}C(t,"unexpected end of the stream within a double quoted scalar")}function YE(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,g,m=Object.create(null),y,w,x,R;if(R=t.input.charCodeAt(t.position),R===91)u=93,g=!1,a=[];else if(R===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),R=t.input.charCodeAt(++t.position);R!==0;){if(te(t,!0,e),R=t.input.charCodeAt(t.position),R===u)return t.position++,t.tag=o,t.anchor=l,t.kind=g?"mapping":"sequence",t.result=a,!0;r?R===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),w=y=x=null,h=f=!1,R===63&&(c=t.input.charCodeAt(t.position+1),ve(c)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Tr(t,e,nn,!1,!0),w=t.tag,y=t.result,te(t,!0,e),R=t.input.charCodeAt(t.position),(f||t.line===i)&&R===58&&(h=!0,R=t.input.charCodeAt(++t.position),te(t,!0,e),Tr(t,e,nn,!1,!0),x=t.result),g?Ar(t,a,m,w,y,x,i,n,s):h?a.push(Ar(t,null,m,w,y,x,i,n,s)):a.push(y),te(t,!0,e),R=t.input.charCodeAt(t.position),R===44?(r=!0,R=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function zE(t,e){var r,i,n=_o,s=!1,o=!1,a=e,l=0,c=!1,u,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)_o===n?n=h===43?Tu:NE:C(t,"repeat of a chomping mode identifier");else if((u=HE(h))>=0)u===0?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?C(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(rr(h)){do h=t.input.charCodeAt(++t.position);while(rr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Ze(h)&&h!==0)}for(;h!==0;){for(Ro(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),Ze(h)){l++;continue}if(t.lineIndent<a){n===Tu?t.result+=oe.repeat(`
18
18
  `,s?1+l:l):n===_o&&s&&(t.result+=`
19
19
  `);break}for(i?rr(h)?(c=!0,t.result+=oe.repeat(`
20
20
  `,s?1+l:l)):c?(c=!1,t.result+=oe.repeat(`
21
21
  `,l+1)):l===0?s&&(t.result+=" "):t.result+=oe.repeat(`
22
22
  `,l):t.result+=oe.repeat(`
23
- `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Lt(t,r,t.position,!1)}return!0}function ku(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Re(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Tr(t,e,Ku,!1,!0),s.push(t.result),te(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)C(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 ZE(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,m=null,y=null,x=!1,w=!1,R;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),R=t.input.charCodeAt(t.position);R!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(R===63||R===58)&&Re(i))R===63?(x&&(Ar(t,h,f,g,m,null,o,a,l),g=m=y=null),w=!0,x=!0,n=!0):x?(x=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,R=i;else{if(o=t.line,a=t.lineStart,l=t.position,!Tr(t,r,zu,!1,!0))break;if(t.line===s){for(R=t.input.charCodeAt(t.position);rr(R);)R=t.input.charCodeAt(++t.position);if(R===58)R=t.input.charCodeAt(++t.position),Re(R)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Ar(t,h,f,g,m,null,o,a,l),g=m=y=null),w=!0,x=!1,n=!1,g=t.tag,m=t.result;else if(w)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(w)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(x&&(o=t.line,a=t.lineStart,l=t.position),Tr(t,e,ln,!0,n)&&(x?m=t.result:y=t.result),x||(Ar(t,h,f,g,m,y,o,a,l),g=m=y=null),te(t,!0,-1),R=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&R!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Ar(t,h,f,g,m,null,o,a,l),w&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),w}function QE(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&&C(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)):C(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Re(o);)o===33&&(i?C(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Vu.test(n)||C(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),HE.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Xu.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:It.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function JE(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&C(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Re(r)&&!Rr(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function eb(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&&!Re(i)&&!Rr(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),It.call(t.anchorMap,r)||C(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function Tr(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,g,m,y,x;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=ln===r||Ku===r,i&&te(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;QE(t)||JE(t);)te(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||ln===r)&&(an===r||zu===r?y=e:y=e+1,x=t.position-t.lineStart,l===1?a&&(ku(t,x)||ZE(t,x,y))||VE(t,y)?u=!0:(o&&XE(t,y)||zE(t,y)||KE(t,y)?u=!0:eb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):YE(t,y,an===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&ku(t,x))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(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(It.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){m=g[h];break}m||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&C(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)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function tb(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&&(te(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&&!Re(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&C(t,"directive name must not be less than one character in length");o!==0;){for(;rr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Ze(o));break}if(Ze(o))break;for(r=t.position;o!==0&&!Re(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Ro(t),It.call(Lu,i)?Lu[i](t,i,n):cn(t,'unknown document directive "'+i+'"')}if(te(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,te(t,!0,-1)):s&&C(t,"directives end mark is expected"),Tr(t,t.lineIndent-1,ln,!1,!0),te(t,!0,-1),t.checkLineBreaks&&qE.test(t.input.slice(e,t.position))&&cn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&fn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,te(t,!0,-1));return}if(t.position<t.length-1)C(t,"end of the stream or a document separator is expected");else return}function eh(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
24
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new WE(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,C(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;)tb(r);return r.documents}function rb(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=eh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function ib(t,e){var r=eh(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new ve("expected a single document in the stream, but found more")}}var nb=rb,sb=ib,th={loadAll:nb,load:sb},rh=Object.prototype.toString,ih=Object.prototype.hasOwnProperty,To=65279,ob=9,xi=10,ab=13,lb=32,cb=33,ub=34,Eo=35,hb=37,fb=38,pb=39,db=42,nh=44,mb=45,un=58,gb=61,yb=62,_b=63,Sb=64,sh=91,oh=93,Eb=96,ah=123,bb=124,lh=125,pe={};pe[0]="\\0";pe[7]="\\a";pe[8]="\\b";pe[9]="\\t";pe[10]="\\n";pe[11]="\\v";pe[12]="\\f";pe[13]="\\r";pe[27]="\\e";pe[34]='\\"';pe[92]="\\\\";pe[133]="\\N";pe[160]="\\_";pe[8232]="\\L";pe[8233]="\\P";var xb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],wb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function vb(t,e){var r,i,n,s,o,a,l;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)),l=t.compiledTypeMap.fallback[o],l&&ih.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function Rb(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 ve("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oe.repeat("0",i-e.length)+e}var Ab=1,wi=2;function Tb(t){this.schema=t.schema||Yu,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=oe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=vb(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==='"'?wi:Ab,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 Nu(t,e){for(var r=oe.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
23
+ `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Lt(t,r,t.position,!1)}return!0}function Iu(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!ve(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Tr(t,e,zu,!1,!0),s.push(t.result),te(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)C(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 KE(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,m=null,y=null,w=!1,x=!1,R;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),R=t.input.charCodeAt(t.position);R!==0;){if(!w&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(R===63||R===58)&&ve(i))R===63?(w&&(Ar(t,h,f,g,m,null,o,a,l),g=m=y=null),x=!0,w=!0,n=!0):w?(w=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,R=i;else{if(o=t.line,a=t.lineStart,l=t.position,!Tr(t,r,Yu,!1,!0))break;if(t.line===s){for(R=t.input.charCodeAt(t.position);rr(R);)R=t.input.charCodeAt(++t.position);if(R===58)R=t.input.charCodeAt(++t.position),ve(R)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Ar(t,h,f,g,m,null,o,a,l),g=m=y=null),x=!0,w=!1,n=!1,g=t.tag,m=t.result;else if(x)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(w&&(o=t.line,a=t.lineStart,l=t.position),Tr(t,e,sn,!0,n)&&(w?m=t.result:y=t.result),w||(Ar(t,h,f,g,m,y,o,a,l),g=m=y=null),te(t,!0,-1),R=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&R!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return w&&Ar(t,h,f,g,m,null,o,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),x}function VE(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&&C(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)):C(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ve(o);)o===33&&(i?C(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Ku.test(n)||C(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),ME.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Vu.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:It.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function XE(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&C(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ve(r)&&!Rr(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function ZE(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&&!ve(i)&&!Rr(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),It.call(t.anchorMap,r)||C(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function Tr(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,g,m,y,w;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=sn===r||zu===r,i&&te(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;VE(t)||XE(t);)te(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||sn===r)&&(nn===r||Yu===r?y=e:y=e+1,w=t.position-t.lineStart,l===1?a&&(Iu(t,w)||KE(t,w,y))||YE(t,y)?u=!0:(o&&zE(t,y)||jE(t,y)||WE(t,y)?u=!0:ZE(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):GE(t,y,nn===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Iu(t,w))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(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(It.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){m=g[h];break}m||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&C(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)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function QE(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&&(te(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&&!ve(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&C(t,"directive name must not be less than one character in length");o!==0;){for(;rr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Ze(o));break}if(Ze(o))break;for(r=t.position;o!==0&&!ve(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Ro(t),It.call(Pu,i)?Pu[i](t,i,n):on(t,'unknown document directive "'+i+'"')}if(te(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,te(t,!0,-1)):s&&C(t,"directives end mark is expected"),Tr(t,t.lineIndent-1,sn,!1,!0),te(t,!0,-1),t.checkLineBreaks&&FE.test(t.input.slice(e,t.position))&&on(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&cn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,te(t,!0,-1));return}if(t.position<t.length-1)C(t,"end of the stream or a document separator is expected");else return}function Ju(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
24
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new $E(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,C(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;)QE(r);return r.documents}function JE(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Ju(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function eb(t,e){var r=Ju(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new xe("expected a single document in the stream, but found more")}}var tb=JE,rb=eb,eh={loadAll:tb,load:rb},th=Object.prototype.toString,rh=Object.prototype.hasOwnProperty,To=65279,ib=9,bi=10,nb=13,sb=32,ob=33,ab=34,Eo=35,lb=37,cb=38,ub=39,hb=42,ih=44,fb=45,an=58,pb=61,db=62,mb=63,gb=64,nh=91,sh=93,yb=96,oh=123,_b=124,ah=125,pe={};pe[0]="\\0";pe[7]="\\a";pe[8]="\\b";pe[9]="\\t";pe[10]="\\n";pe[11]="\\v";pe[12]="\\f";pe[13]="\\r";pe[27]="\\e";pe[34]='\\"';pe[92]="\\\\";pe[133]="\\N";pe[160]="\\_";pe[8232]="\\L";pe[8233]="\\P";var Sb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Eb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function bb(t,e){var r,i,n,s,o,a,l;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)),l=t.compiledTypeMap.fallback[o],l&&rh.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function wb(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 xe("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oe.repeat("0",i-e.length)+e}var xb=1,wi=2;function vb(t){this.schema=t.schema||Wu,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=oe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=bb(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==='"'?wi:xb,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 ku(t,e){for(var r=oe.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
25
25
  `,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
26
26
  `&&(s+=r),s+=o;return s}function bo(t,e){return`
27
- `+oe.repeat(" ",t.indent*e)}function Ob(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 hn(t){return t===lb||t===ob}function vi(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==To||65536<=t&&t<=1114111}function Du(t){return vi(t)&&t!==To&&t!==ab&&t!==xi}function Fu(t,e,r){var i=Du(t),n=i&&!hn(t);return(r?i:i&&t!==nh&&t!==sh&&t!==oh&&t!==ah&&t!==lh)&&t!==Eo&&!(e===un&&!n)||Du(e)&&!hn(e)&&t===Eo||e===un&&n}function Cb(t){return vi(t)&&t!==To&&!hn(t)&&t!==mb&&t!==_b&&t!==un&&t!==nh&&t!==sh&&t!==oh&&t!==ah&&t!==lh&&t!==Eo&&t!==fb&&t!==db&&t!==cb&&t!==bb&&t!==gb&&t!==yb&&t!==pb&&t!==ub&&t!==hb&&t!==Sb&&t!==Eb}function Pb(t){return!hn(t)&&t!==un}function Ei(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function ch(t){var e=/^\n* /;return e.test(t)}var uh=1,xo=2,hh=3,fh=4,vr=5;function Lb(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,g=i!==-1,m=-1,y=Cb(Ei(t,0))&&Pb(Ei(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=Ei(t,l),!vi(c))return vr;y=y&&Fu(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=Ei(t,l),c===xi)h=!0,g&&(f=f||l-m-1>i&&t[m+1]!==" ",m=l);else if(!vi(c))return vr;y=y&&Fu(c,u,a),u=c}f=f||g&&l-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?uh:s===wi?vr:xo:r>9&&ch(t)?vr:o?s===wi?vr:xo:f?fh:hh}function Ib(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===wi?'""':"''";if(!t.noCompatMode&&(xb.indexOf(e)!==-1||wb.test(e)))return t.quotingType===wi?'"'+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 l(c){return Ob(t,c)}switch(Lb(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case uh:return e;case xo:return"'"+e.replace(/'/g,"''")+"'";case hh:return"|"+Mu(e,t.indent)+Bu(Nu(e,s));case fh:return">"+Mu(e,t.indent)+Bu(Nu(kb(e,o),s));case vr:return'"'+Nb(e)+'"';default:throw new ve("impossible error: invalid scalar style")}}()}function Mu(t,e){var r=ch(t)?String(e):"",i=t[t.length-1]===`
27
+ `+oe.repeat(" ",t.indent*e)}function Rb(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 ln(t){return t===sb||t===ib}function xi(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==To||65536<=t&&t<=1114111}function Nu(t){return xi(t)&&t!==To&&t!==nb&&t!==bi}function Du(t,e,r){var i=Nu(t),n=i&&!ln(t);return(r?i:i&&t!==ih&&t!==nh&&t!==sh&&t!==oh&&t!==ah)&&t!==Eo&&!(e===an&&!n)||Nu(e)&&!ln(e)&&t===Eo||e===an&&n}function Ab(t){return xi(t)&&t!==To&&!ln(t)&&t!==fb&&t!==mb&&t!==an&&t!==ih&&t!==nh&&t!==sh&&t!==oh&&t!==ah&&t!==Eo&&t!==cb&&t!==hb&&t!==ob&&t!==_b&&t!==pb&&t!==db&&t!==ub&&t!==ab&&t!==lb&&t!==gb&&t!==yb}function Tb(t){return!ln(t)&&t!==an}function Si(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 lh(t){var e=/^\n* /;return e.test(t)}var ch=1,wo=2,uh=3,hh=4,vr=5;function Ob(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,g=i!==-1,m=-1,y=Ab(Si(t,0))&&Tb(Si(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=Si(t,l),!xi(c))return vr;y=y&&Du(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=Si(t,l),c===bi)h=!0,g&&(f=f||l-m-1>i&&t[m+1]!==" ",m=l);else if(!xi(c))return vr;y=y&&Du(c,u,a),u=c}f=f||g&&l-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?ch:s===wi?vr:wo:r>9&&lh(t)?vr:o?s===wi?vr:wo:f?hh:uh}function Cb(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===wi?'""':"''";if(!t.noCompatMode&&(Sb.indexOf(e)!==-1||Eb.test(e)))return t.quotingType===wi?'"'+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 l(c){return Rb(t,c)}switch(Ob(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case ch:return e;case wo:return"'"+e.replace(/'/g,"''")+"'";case uh:return"|"+Fu(e,t.indent)+Mu(ku(e,s));case hh:return">"+Fu(e,t.indent)+Mu(ku(Pb(e,o),s));case vr:return'"'+Lb(e)+'"';default:throw new xe("impossible error: invalid scalar style")}}()}function Fu(t,e){var r=lh(t)?String(e):"",i=t[t.length-1]===`
28
28
  `,n=i&&(t[t.length-2]===`
29
29
  `||t===`
30
30
  `),s=n?"+":i?"":"-";return r+s+`
31
- `}function Bu(t){return t[t.length-1]===`
32
- `?t.slice(0,-1):t}function kb(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
33
- `);return c=c!==-1?c:t.length,r.lastIndex=c,qu(t.slice(0,c),e)}(),n=t[0]===`
31
+ `}function Mu(t){return t[t.length-1]===`
32
+ `?t.slice(0,-1):t}function Pb(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
33
+ `);return c=c!==-1?c:t.length,r.lastIndex=c,Bu(t.slice(0,c),e)}(),n=t[0]===`
34
34
  `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
35
- `:"")+qu(l,e),n=s}return i}function qu(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
35
+ `:"")+Bu(l,e),n=s}return i}function Bu(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
36
36
  `+t.slice(n,s),n=s+1),o=a;return l+=`
37
37
  `,t.length-n>e&&o>n?l+=t.slice(n,o)+`
38
- `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function Nb(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=Ei(t,n),i=pe[r],!i&&vi(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Rb(r);return e}function Db(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)),(dt(t,e,a,!1,!1)||typeof a=="undefined"&&dt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Hu(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(dt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=bo(t,e)),t.dump&&xi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function Fb(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),dt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function Mb(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new ve("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=bo(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),dt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&xi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=bo(t,e)),dt(t,e+1,u,!0,h)&&(t.dump&&xi===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Uu(t,e,r){var i,n,s,o,a,l;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(l=t.styleMap[a.tag]||a.defaultStyle,rh.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(ih.call(a.represent,l))i=a.represent[l](e,l);else throw new ve("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Uu(t,r,!1)||Uu(t,r,!0);var a=rh.call(t.dump),l=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(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(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(Mb(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(Fb(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?Hu(t,e-1,t.dump,n):Hu(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(Db(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Ib(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ve("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 Bb(t,e){var r=[],i=[],n,s;for(wo(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function wo(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)wo(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)wo(t[i[n]],e,r)}function qb(t,e){e=e||{};var r=new Tb(e);r.noRefs||Bb(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),dt(r,0,i,!0,!0)?r.dump+`
39
- `:""}var Hb=qb,Ub={dump:Hb};function Oo(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 $1=th.load,G1=th.loadAll,j1=Ub.dump;var W1=Oo("safeLoad","load"),Y1=Oo("safeLoadAll","loadAll"),z1=Oo("safeDump","dump");var rR=Q(ed()),iR=Q(require("json5"));var $e={};_u($e,{bold:()=>zv,dimmed:()=>Vv,error:()=>cd,grey:()=>Xv,info:()=>Yv,item:()=>Zv,log:()=>qt,turboBlue:()=>Br,turboGradient:()=>Wv,turboLoader:()=>ad,turboRed:()=>sd,underline:()=>Kv,warn:()=>ld,yellow:()=>od});var Te=require("picocolors"),td=Q(require("ora")),rd=Q(require("gradient-string")),id="#0099F7",nd="#F11712",jv="#FFFF00",ul=t=>{let e=Qv(t);return r=>`\x1B[38;5;${e}m${r}${(0,Te.reset)("")}`},Wv=(0,rd.default)(id,nd),Br=ul(id),sd=ul(nd),od=ul(jv),ad=t=>(0,td.default)({text:t,spinner:{frames:[" ",Br("> "),Br(">> "),Br(">>>")]}}),Yv=(...t)=>{qt(Br((0,Te.bold)(">>>")),t.join(" "))},zv=(...t)=>{qt((0,Te.bold)(t.join(" ")))},Kv=(...t)=>{qt((0,Te.underline)(t.join(" ")))},Vv=(...t)=>{qt((0,Te.dim)(t.join(" ")))},Xv=(...t)=>{qt((0,Te.gray)(t.join(" ")))},Zv=(...t)=>{qt(Br((0,Te.bold)(" \u2022")),t.join(" "))},qt=(...t)=>{console.log(...t)},ld=(...t)=>{console.error(od((0,Te.bold)(">>>")),t.join(" "))},cd=(...t)=>{console.error(sd((0,Te.bold)(">>>")),t.join(" "))};function Qv(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}var ZA=Q(require("os")),QA=Q(Ym());var JA=Q(require("fs-extra"));var eT=Q(require("path")),tT=Q(require("fs-extra")),rT=require("picocolors");var W_=require("stream"),Y_=require("util"),BC=require("path"),qC=require("os"),z_=require("fs"),HC=Q(j_());var JI=(0,Y_.promisify)(W_.Stream.pipeline);var K_=require("fs-extra");var XC=Q(require("path")),ZC=Q(tS()),rS=require("picocolors"),mu=require("fs-extra");var be=require("picocolors"),gi=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log((0,be.green)(" MODIFIED "),...e,this.dry?(0,be.dim)("(dry run)"):"")}unchanged(...e){this._log((0,be.gray)(" UNCHANGED "),...e,this.dry?(0,be.dim)("(dry run)"):"")}skipped(...e){this._log((0,be.yellow)(" SKIPPED "),...e,this.dry?(0,be.dim)("(dry run)"):"")}error(...e){this._log((0,be.red)(" ERROR "),...e,this.dry?(0,be.dim)("(dry run)"):"")}info(...e){this._log((0,be.bold)(" INFO "),...e,this.dry?(0,be.dim)("(dry run)"):"")}};var iS=Q(require("os")),gu=Q(require("path"));var yi=require("picocolors"),oo=require("diff"),Jt=require("fs-extra"),so=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{gu.default.extname(e.filePath)===".json"?this.before=(0,Jt.readJsonSync)(e.filePath):this.before=(0,Jt.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,oo.diffJson)(this.before,e.after):this.changes=(0,oo.diffLines)(this.before,e.after):this.changes=[]}fileName(){return gu.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Jt.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Jt.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write((0,yi.green)(r.value)):r.removed?process.stdout.write((0,yi.red)(r.value)):process.stdout.write((0,yi.dim)(r.value))}),$e.log(iS.default.EOL)):$e.log(this.after)}};var tn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new gi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new so({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped((0,en.dim)(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified((0,en.bold)(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged((0,en.dim)(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if($e.log(),r.length>0){$e.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),$e.log()}}};function nS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new gi(i),s=new tn(i);return{log:n,runner:s}}var sS="create-turbo-config",QC='Create the `turbo.json` file from an existing "turbo" key in `package.json`',JC="1.1.0";function oS({root:t,options:e}){let{log:r,runner:i}=nS({transformer:sS,rootPath:t,options:e});r.info('Migrating "package.json" "turbo" key to "turbo.json" file...');let n=yu.default.join(t,"turbo.json"),s=yu.default.join(t,"package.json");if(!(0,rn.existsSync)(s))return i.abortTransform({reason:`No package.json found at ${t}. Is the path correct?`});let o=(0,rn.readJsonSync)(s),a=null;try{a=(0,rn.readJsonSync)(n)}catch{a=null}let l=o,c=a;if(!a&&o.turbo){let{turbo:u,...h}=o;c=u,l=h}return i.modifyFile({filePath:n,after:c}),i.modifyFile({filePath:s,after:l}),i.finish()}var e1={name:sS,description:QC,introducedIn:JC,transformer:oS},t1=e1;0&&(module.exports={transformer});
38
+ `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function Lb(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=Si(t,n),i=pe[r],!i&&xi(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||wb(r);return e}function Ib(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)),(dt(t,e,a,!1,!1)||typeof a=="undefined"&&dt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function qu(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(dt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=bo(t,e)),t.dump&&bi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function kb(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),dt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function Nb(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new xe("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=bo(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),dt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&bi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=bo(t,e)),dt(t,e+1,u,!0,h)&&(t.dump&&bi===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Hu(t,e,r){var i,n,s,o,a,l;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(l=t.styleMap[a.tag]||a.defaultStyle,th.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(rh.call(a.represent,l))i=a.represent[l](e,l);else throw new xe("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Hu(t,r,!1)||Hu(t,r,!0);var a=th.call(t.dump),l=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(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(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(Nb(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(kb(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?qu(t,e-1,t.dump,n):qu(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(Ib(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Cb(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new xe("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 Db(t,e){var r=[],i=[],n,s;for(xo(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function xo(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)xo(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)xo(t[i[n]],e,r)}function Fb(t,e){e=e||{};var r=new vb(e);r.noRefs||Db(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),dt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var Mb=Fb,Bb={dump:Mb};function Oo(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 $1=eh.load,G1=eh.loadAll,j1=Bb.dump;var W1=Oo("safeLoad","load"),Y1=Oo("safeLoadAll","loadAll"),z1=Oo("safeDump","dump");var Jv=$(Jp()),eR=$(require("json5"));var Ue={};yu(Ue,{bold:()=>jv,dimmed:()=>Yv,error:()=>ld,grey:()=>zv,info:()=>Gv,item:()=>Kv,log:()=>qt,turboBlue:()=>Br,turboGradient:()=>$v,turboLoader:()=>od,turboRed:()=>nd,underline:()=>Wv,warn:()=>ad,yellow:()=>sd});var Ae=require("picocolors"),ed=$(require("ora")),td=$(require("gradient-string")),rd="#0099F7",id="#F11712",Uv="#FFFF00",ul=t=>{let e=Vv(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},$v=(0,td.default)(rd,id),Br=ul(rd),nd=ul(id),sd=ul(Uv),od=t=>(0,ed.default)({text:t,spinner:{frames:[" ",Br("> "),Br(">> "),Br(">>>")]}}),Gv=(...t)=>{qt(Br((0,Ae.bold)(">>>")),t.join(" "))},jv=(...t)=>{qt((0,Ae.bold)(t.join(" ")))},Wv=(...t)=>{qt((0,Ae.underline)(t.join(" ")))},Yv=(...t)=>{qt((0,Ae.dim)(t.join(" ")))},zv=(...t)=>{qt((0,Ae.gray)(t.join(" ")))},Kv=(...t)=>{qt(Br((0,Ae.bold)(" \u2022")),t.join(" "))},qt=(...t)=>{console.log(...t)},ad=(...t)=>{console.error(sd((0,Ae.bold)(">>>")),t.join(" "))},ld=(...t)=>{console.error(nd((0,Ae.bold)(">>>")),t.join(" "))};function Vv(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,i=Math.floor(e/256)%256,n=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)}var KA=$(require("os")),VA=$(Wm());var XA=$(require("fs-extra"));var ZA=$(require("path")),QA=$(require("fs-extra")),JA=$(require("picocolors"));var j_=require("stream"),W_=require("util"),DC=require("path"),FC=require("os"),Y_=require("fs"),MC=$(G_());var JI=(0,W_.promisify)(j_.Stream.pipeline);var BC=$(require("fs-extra"));var KC=$(require("path")),VC=$(J_()),XC=$(require("picocolors")),ZC=$(require("fs-extra"));var Xe=$(require("picocolors")),gi=class{constructor(e){this.transform=e.transformer,this.dry=e.dryRun}_log(...e){console.log(...e)}modified(...e){this._log(Xe.default.green(" MODIFIED "),...e,this.dry?Xe.default.dim("(dry run)"):"")}unchanged(...e){this._log(Xe.default.gray(" UNCHANGED "),...e,this.dry?Xe.default.dim("(dry run)"):"")}skipped(...e){this._log(Xe.default.yellow(" SKIPPED "),...e,this.dry?Xe.default.dim("(dry run)"):"")}error(...e){this._log(Xe.default.red(" ERROR "),...e,this.dry?Xe.default.dim("(dry run)"):"")}info(...e){this._log(Xe.default.bold(" INFO "),...e,this.dry?Xe.default.dim("(dry run)"):"")}};var eS=$(require("os")),mu=$(require("path"));var ro=$(require("picocolors")),no=require("diff"),Jt=require("fs-extra"),io=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{mu.default.extname(e.filePath)===".json"?this.before=(0,Jt.readJsonSync)(e.filePath):this.before=(0,Jt.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,no.diffJson)(this.before,e.after):this.changes=(0,no.diffLines)(this.before,e.after):this.changes=[]}fileName(){return mu.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Jt.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Jt.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(ro.default.green(r.value)):r.removed?process.stdout.write(ro.default.red(r.value)):process.stdout.write(ro.default.dim(r.value))}),Ue.log(eS.default.EOL)):Ue.log(this.after)}};var Ji=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new gi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new io({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(so.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(so.default.bold(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged(so.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(Ue.log(),r.length>0){Ue.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),Ue.log()}}};function tS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new gi(i),s=new Ji(i);return{log:n,runner:s}}var rS="create-turbo-config",QC='Create the `turbo.json` file from an existing "turbo" key in `package.json`',JC="1.1.0";function iS({root:t,options:e}){let{log:r,runner:i}=tS({transformer:rS,rootPath:t,options:e});r.info('Migrating "package.json" "turbo" key to "turbo.json" file...');let n=gu.default.join(t,"turbo.json"),s=gu.default.join(t,"package.json");if(!oo.default.existsSync(s))return i.abortTransform({reason:`No package.json found at ${t}. Is the path correct?`});let o=oo.default.readJsonSync(s),a=null;try{a=oo.default.readJsonSync(n)}catch{a=null}let l=o,c=a;if(!a&&o.turbo){let{turbo:u,...h}=o;c=u,l=h}return i.modifyFile({filePath:n,after:c}),i.modifyFile({filePath:s,after:l}),i.finish()}var e1={name:rS,description:QC,introducedIn:JC,transformer:iS},t1=e1;0&&(module.exports={transformer});
40
40
  /*! Bundled license information:
41
41
 
42
42
  @babel/runtime/helpers/regeneratorRuntime.js: