@turbo/codemod 2.7.2-canary.0 → 2.7.2-canary.2

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 sE=Object.create;var rn=Object.defineProperty;var oE=Object.getOwnPropertyDescriptor;var aE=Object.getOwnPropertyNames;var cE=Object.getPrototypeOf,lE=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bu=(t,e)=>{for(var r in e)rn(t,r,{get:e[r],enumerable:!0})},xu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of aE(e))!lE.call(t,n)&&n!==r&&rn(t,n,{get:()=>e[n],enumerable:!(i=oE(e,n))||i.enumerable});return t};var q=(t,e,r)=>(r=t!=null?sE(cE(t)):{},xu(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t)),uE=t=>xu(rn({},"__esModule",{value:!0}),t);var wu=m((uP,ht)=>{function ho(t){return ht.exports=ho=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,ho(t)}ht.exports=ho,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var Au=m((hP,ft)=>{var vu=wu().default;function Ru(){"use strict";ft.exports=Ru=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,E){p[b]=E.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(p,b,E){return Object.defineProperty(p,b,{value:E,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{l({},"")}catch{l=function(E,O,P){return E[O]=P}}function u(p,b,E,O){var P=b&&b.prototype instanceof v?b:v,T=Object.create(P.prototype),Y=new Be(O||[]);return n(T,"_invoke",{value:ie(p,E,Y)}),T}function h(p,b,E){try{return{type:"normal",arg:p.call(b,E)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",d="executing",y="completed",x={};function v(){}function A(){}function M(){}var re={};l(re,o,function(){return this});var N=Object.getPrototypeOf,H=N&&N(N(_([])));H&&H!==r&&i.call(H,o)&&(re=H);var L=M.prototype=v.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){l(p,b,function(E){return this._invoke(b,E)})})}function B(p,b){function E(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&vu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(qe){E("next",qe,Y,he)},function(qe){E("throw",qe,Y,he)}):b.resolve(k).then(function(qe){be.value=qe,Y(be)},function(qe){return E("throw",qe,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){E(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,E){var O=f;return function(P,T){if(O===d)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(E.method=P,E.arg=T;;){var Y=E.delegate;if(Y){var he=S(Y,E);if(he){if(he===x)continue;return he}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(O===f)throw O=y,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);O=d;var ne=h(p,b,E);if(ne.type==="normal"){if(O=E.done?y:g,ne.arg===x)continue;return{value:ne.arg,done:E.done}}ne.type==="throw"&&(O=y,E.method="throw",E.arg=ne.arg)}}}function S(p,b){var E=b.method,O=p.iterator[E];if(O===t)return b.delegate=null,E==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,S(p,b),b.method==="throw")||E!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+E+"' 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 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 j(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Be(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 E=-1,O=function P(){for(;++E<p.length;)if(i.call(p,E))return P.value=p[E],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(vu(p)+" is not iterable")}return A.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:A,configurable:!0}),A.displayName=l(M,c,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===A||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,l(p,c,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(B.prototype),l(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,E,O,P){P===void 0&&(P=Promise);var T=new B(u(p,b,E,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),l(L,c,"Generator"),l(L,o,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),E=[];for(var O in b)E.push(O);return E.reverse(),function P(){for(;E.length;){var T=E.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(j),!b)for(var E in this)E.charAt(0)==="t"&&i.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=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 E=this;function O(be,k){return Y.type="throw",Y.arg=b,E.next=be,k&&(E.method="next",E.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,E){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<=E&&E<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=E,T?(this.method="next",this.next=T.finallyLoc,x):this.complete(Y)},complete:function(b,E){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"&&E&&(this.next=E),x},finish:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),j(O),x}},catch:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;j(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,E,O){return this.delegate={iterator:_(b),resultName:E,nextLoc:O},this.method==="next"&&(this.arg=t),x}},e}ft.exports=Ru,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var Ou=m((fP,Tu)=>{var nn=Au()();Tu.exports=nn;try{regeneratorRuntime=nn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=nn:Function("r","regeneratorRuntime = r")(nn)}});var gh=m(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 yh=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.isEnoentCodeError=void 0;function Ub(t){return t.code==="ENOENT"}hn.isEnoentCodeError=Ub});var _h=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.createDirentFromStats=void 0;var Io=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 Io(t,e)}fn.createDirentFromStats=$b});var Eh=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var jb=require("path"),Gb=2,Wb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Yb(t){return t.replace(/\\/g,"/")}Qe.unixify=Yb;function zb(t,e){return jb.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(Gb)}return t}Qe.removeLeadingDotSegment=Vb});var bh=m((s1,Sh)=>{Sh.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 vh=m((o1,wh)=>{var Xb=bh(),xh={"{":"}","(":")","[":"]"},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 c=xh[a];if(c){var l=t.indexOf(c,e);l!==-1&&(e=l+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=xh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};wh.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 Ah=m((a1,Rh)=>{"use strict";var Jb=vh(),e0=require("path").posix.dirname,t0=require("os").platform()==="win32",ko="/",r0=/\\/g,i0=/[\{\[].*[\}\]]$/,n0=/(^|[^\\])([\{\[]|\([^\)]+$)/,s0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Rh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&t0&&e.indexOf(ko)<0&&(e=e.replace(r0,ko)),i0.test(e)&&(e+=ko),e+="a";do e=e0(e);while(Jb(e)||n0.test(e));return e.replace(s0,"$1")}});var pn=m(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];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var dn=m((l1,Oh)=>{"use strict";var Th=pn();Oh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Th.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Th.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let c of i.nodes)a+=r(c);return a};return r(t)}});var Ph=m((u1,Ch)=>{"use strict";Ch.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var qh=m((h1,Bh)=>{"use strict";var Lh=Ph(),ir=(t,e,r)=>{if(Lh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Lh(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),c=t+":"+e+"="+n+s+o+a;if(ir.cache.hasOwnProperty(c))return ir.cache[c].result;let l=Math.min(t,e),u=Math.max(t,e);if(Math.abs(l-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Mh(t)||Mh(e),f={min:t,max:e,a:l,b:u},g=[],d=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let y=u<0?Math.abs(u):1;d=Ih(y,Math.abs(l),f,i),l=f.a=0}return u>=0&&(g=Ih(l,u,f,i)),f.negatives=d,f.positives=g,f.result=o0(d,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+d.length>1&&(f.result=`(?:${f.result})`),ir.cache[c]=f,f.result};function o0(t,e,r){let i=No(t,e,"-",!1,r)||[],n=No(e,t,"",!1,r)||[],s=No(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function a0(t,e){let r=1,i=1,n=Nh(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Nh(t,r);for(n=Dh(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Dh(e+1,i)-1;return s=[...s],s.sort(u0),s}function c0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=l0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[c,l]=i[a];c===l?s+=c:c!=="0"||l!=="9"?s+=h0(c,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ih(t,e,r,i){let n=a0(t,e),s=[],o=t,a;for(let c=0;c<n.length;c++){let l=n[c],u=c0(String(o),String(l),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+Fh(a.count),o=l+1;continue}r.isPadded&&(h=f0(l,r,i)),u.string=h+u.pattern+Fh(u.count),s.push(u),o=l+1,a=u}return s}function No(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!kh(e,"string",a)&&s.push(r+a),i&&kh(e,"string",a)&&s.push(r+a)}return s}function l0(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 kh(t,e,r){return t.some(i=>i[e]===r)}function Nh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Dh(t,e){return t-t%Math.pow(10,e)}function Fh(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 Mh(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={};Bh.exports=ir});var Mo=m((f1,Yh)=>{"use strict";var p0=require("util"),Uh=qh(),Hh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),d0=t=>e=>t===!0?Number(e):String(e),Do=t=>typeof t=="number"||typeof t=="string"&&t!=="",vi=t=>Number.isInteger(+t),Fo=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},gn=(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,r)=>{t.negatives.sort((a,c)=>a<c?-1:a>c?1:0),t.positives.sort((a,c)=>a<c?-1:a>c?1:0);let i=e.capture?"":"?:",n="",s="",o;return t.positives.length&&(n=t.positives.map(a=>gn(String(a),r)).join("|")),t.negatives.length&&(s=`-(${i}${t.negatives.map(a=>gn(String(a),r)).join("|")})`),n&&s?o=`${n}|${s}`:o=n||s,e.wrap?`(${i}${o})`:o},$h=(t,e,r,i)=>{if(r)return Uh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},jh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Uh(t,e,r)},Gh=(...t)=>new RangeError("Invalid range arguments: "+p0.inspect(...t)),Wh=(t,e,r)=>{if(r.strictRanges===!0)throw Gh([t,e]);return[]},_0=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},E0=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Gh([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),c=String(e),l=String(r);r=Math.max(Math.abs(r),1);let u=Fo(a)||Fo(c)||Fo(l),h=u?Math.max(a.length,c.length,l.length):0,f=u===!1&&m0(t,e,i)===!1,g=i.transform||d0(f);if(i.toRegex&&r===1)return $h(gn(t,h),gn(e,h),!0,i);let d={negatives:[],positives:[]},y=A=>d[A<0?"negatives":"positives"].push(Math.abs(A)),x=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):x.push(g0(g(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?y0(d,i,h):jh(x,null,{wrap:!1,...i}):x},S0=(t,e,r=1,i={})=>{if(!vi(t)&&t.length>1||!vi(e)&&e.length>1)return Wh(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return $h(c,l,!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?jh(u,null,{wrap:!1,options:i}):u},mn=(t,e,r,i={})=>{if(e==null&&Do(t))return[t];if(!Do(t)||!Do(e))return Wh(t,e,i);if(typeof r=="function")return mn(t,e,1,{transform:r});if(Hh(r))return mn(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)?E0(t,e,r,n):S0(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Hh(r)?_0(r,n):mn(t,e,1,r)};Yh.exports=mn});var Vh=m((p1,Kh)=>{"use strict";var b0=Mo(),zh=pn(),x0=(t,e={})=>{let r=(i,n={})=>{let s=zh.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return c+i.value;if(i.isClose===!0)return console.log("node.isClose",c,i.value),c+i.value;if(i.type==="open")return a?c+i.value:"(";if(i.type==="close")return a?c+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=zh.reduce(i.nodes),h=b0(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)l+=r(u,i);return l};return r(t)};Kh.exports=x0});var Qh=m((d1,Zh)=>{"use strict";var w0=Mo(),Xh=dn(),Cr=pn(),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(),Xh(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=w0(...h,e);f.length===0&&(f=Xh(n,e)),a.push(nr(a.pop(),f)),n.nodes=[];return}let c=Cr.encloseBrace(n),l=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=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&&l.push(""),l.push("");continue}if(f.type==="close"){a.push(nr(a.pop(),l,c));continue}if(f.value&&f.type!=="open"){l.push(nr(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return Cr.flatten(i(t))};Zh.exports=v0});var ef=m((m1,Jh)=>{"use strict";Jh.exports={MAX_LENGTH:1e4,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 of=m((g1,sf)=>{"use strict";var R0=dn(),{MAX_LENGTH:tf,CHAR_BACKSLASH:Bo,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:rf,CHAR_RIGHT_SQUARE_BRACKET:nf,CHAR_DOUBLE_QUOTE:k0,CHAR_SINGLE_QUOTE:N0,CHAR_NO_BREAK_SPACE:D0,CHAR_ZERO_WIDTH_NOBREAK_SPACE:F0}=ef(),M0=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(tf,r.maxLength):tf;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,c=0,l=t.length,u=0,h=0,f,g=()=>t[u++],d=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(d({type:"bos"});u<l;)if(o=s[s.length-1],f=g(),!(f===F0||f===D0)){if(f===Bo){d({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===nf){d({type:"text",value:"\\"+f});continue}if(f===rf){c++;let y;for(;u<l&&(y=g());){if(f+=y,y===rf){c++;continue}if(y===Bo){f+=g();continue}if(y===nf&&(c--,c===0))break}d({type:"text",value:f});continue}if(f===C0){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===P0){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===k0||f===N0||f===A0){let y=f,x;for(e.keepQuotes!==!0&&(f="");u<l&&(x=g());){if(x===Bo){f+=x+g();continue}if(x===y){e.keepQuotes===!0&&(f+=x);break}f+=x}d({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=d(x),s.push(o),d({type:"open",value:f});continue}if(f===I0){if(o.type!=="brace"){d({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===T0&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:R0(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===O0&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){d({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"){y.pop();let x=y[y.length-1];x.value+=a.value+f,a=x,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let y=s[s.length-1],x=y.nodes.indexOf(o);y.nodes.splice(x,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};sf.exports=M0});var lf=m((y1,cf)=>{"use strict";var af=dn(),B0=Vh(),q0=Qh(),H0=of(),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={})=>af(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);cf.exports=Le});var Ri=m((_1,df)=>{"use strict";var U0=require("path"),Je="\\\\/",uf=`[^${Je}]`,mt="\\.",$0="\\+",j0="\\?",yn="\\/",G0="(?=.)",hf="[^/]",qo=`(?:${yn}|$)`,ff=`(?:^|${yn})`,Ho=`${mt}{1,2}${qo}`,W0=`(?!${mt})`,Y0=`(?!${ff}${Ho})`,z0=`(?!${mt}{0,1}${qo})`,K0=`(?!${Ho})`,V0=`[^.${yn}]`,X0=`${hf}*?`,pf={DOT_LITERAL:mt,PLUS_LITERAL:$0,QMARK_LITERAL:j0,SLASH_LITERAL:yn,ONE_CHAR:G0,QMARK:hf,END_ANCHOR:qo,DOTS_SLASH:Ho,NO_DOT:W0,NO_DOTS:Y0,NO_DOT_SLASH:z0,NO_DOTS_SLASH:K0,QMARK_NO_DOT:V0,STAR:X0,START_ANCHOR:ff},Z0={...pf,SLASH_LITERAL:`[${Je}]`,QMARK:uf,STAR:`${uf}*?`,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"};df.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:pf}}});var Ai=m(Re=>{"use strict";var J0=require("path"),ex=process.platform==="win32",{REGEX_BACKSLASH:tx,REGEX_REMOVE_BACKSLASH:rx,REGEX_SPECIAL_CHARS:ix,REGEX_SPECIAL_CHARS_GLOBAL:nx}=Ri();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>ix.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(nx,"\\$1");Re.toPosixSlashes=t=>t.replace(tx,"/");Re.removeBackslashes=t=>t.replace(rx,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:ex===!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 xf=m((S1,bf)=>{"use strict";var mf=Ai(),{CHAR_ASTERISK:Uo,CHAR_AT:sx,CHAR_BACKWARD_SLASH:Ti,CHAR_COMMA:ox,CHAR_DOT:$o,CHAR_EXCLAMATION_MARK:jo,CHAR_FORWARD_SLASH:Sf,CHAR_LEFT_CURLY_BRACE:Go,CHAR_LEFT_PARENTHESES:Wo,CHAR_LEFT_SQUARE_BRACKET:ax,CHAR_PLUS:cx,CHAR_QUESTION_MARK:gf,CHAR_RIGHT_CURLY_BRACE:lx,CHAR_RIGHT_PARENTHESES:yf,CHAR_RIGHT_SQUARE_BRACKET:ux}=Ri(),_f=t=>t===Sf||t===Ti,Ef=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hx=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,l=-1,u=0,h=0,f=!1,g=!1,d=!1,y=!1,x=!1,v=!1,A=!1,M=!1,re=!1,N=!1,H=0,L,I,B={value:"",depth:0,isGlob:!1},ie=()=>l>=i,S=()=>c.charCodeAt(l+1),W=()=>(L=I,c.charCodeAt(++l));for(;l<i;){I=W();let b;if(I===Ti){A=B.backslashes=!0,I=W(),I===Go&&(v=!0);continue}if(v===!0||I===Go){for(H++;ie()!==!0&&(I=W());){if(I===Ti){A=B.backslashes=!0,W();continue}if(I===Go){H++;continue}if(v!==!0&&I===$o&&(I=W())===$o){if(f=B.isBrace=!0,d=B.isGlob=!0,N=!0,n===!0)continue;break}if(v!==!0&&I===ox){if(f=B.isBrace=!0,d=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===lx&&(H--,H===0)){v=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===Sf){if(s.push(l),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===$o&&l===u+1){u+=2;continue}h=l+1;continue}if(r.noext!==!0&&(I===cx||I===sx||I===Uo||I===gf||I===jo)===!0&&S()===Wo){if(d=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===jo&&l===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ti){A=B.backslashes=!0,I=W();continue}if(I===yf){d=B.isGlob=!0,N=!0;break}}continue}break}if(I===Uo){if(L===Uo&&(x=B.isGlobstar=!0),d=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===gf){if(d=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===ax){for(;ie()!==!0&&(b=W());){if(b===Ti){A=B.backslashes=!0,W();continue}if(b===ux){g=B.isBracket=!0,d=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===jo&&l===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===Wo){if(d=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===Wo){A=B.backslashes=!0,I=W();continue}if(I===yf){N=!0;break}}continue}break}if(d===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,d=!1);let j=c,Be="",_="";u>0&&(Be=c.slice(0,u),c=c.slice(u),h-=u),j&&d===!0&&h>0?(j=c.slice(0,h),_=c.slice(h)):d===!0?(j="",_=c):j=c,j&&j!==""&&j!=="/"&&j!==c&&_f(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),r.unescape===!0&&(_&&(_=mf.removeBackslashes(_)),j&&A===!0&&(j=mf.removeBackslashes(j)));let p={prefix:Be,input:t,start:u,base:j,glob:_,isBrace:f,isBracket:g,isGlob:d,isExtglob:y,isGlobstar:x,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,_f(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let E=0;E<s.length;E++){let O=b?b+1:u,P=s[E],T=t.slice(O,P);r.tokens&&(E===0&&u!==0?(o[E].isPrefix=!0,o[E].value=Be):o[E].value=T,Ef(o[E]),p.maxDepth+=o[E].depth),(E!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let E=t.slice(b+1);a.push(E),r.tokens&&(o[o.length-1].value=E,Ef(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};bf.exports=hx});var Rf=m((b1,vf)=>{"use strict";var _n=Ri(),Ie=Ai(),{MAX_LENGTH:En,POSIX_REGEX_SOURCE:fx,REGEX_NON_SPECIAL_CHARS:px,REGEX_SPECIAL_CHARS_BACKREF:dx,REPLACEMENTS:wf}=_n,mx=(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`,Yo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=wf[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?"":"?:",c=Ie.isWindows(e),l=_n.globChars(c),u=_n.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:d,DOTS_SLASH:y,NO_DOT:x,NO_DOT_SLASH:v,NO_DOTS_SLASH:A,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:H}=l,L=R=>`(${a}(?:(?!${H}${R.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 S={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,S),n=t.length;let W=[],j=[],Be=[],_=s,p,b=()=>S.index===n-1,E=S.peek=(R=1)=>t[S.index+R],O=S.advance=()=>t[++S.index]||"",P=()=>t.slice(S.index+1),T=(R="",K=0)=>{S.consumed+=R,S.index+=K},Y=R=>{S.output+=R.output!=null?R.output:R.value,T(R.value)},he=()=>{let R=1;for(;E()==="!"&&(E(2)!=="("||E(3)==="?");)O(),S.start++,R++;return R%2===0?!1:(S.negated=!0,S.start++,!0)},ne=R=>{S[R]++,Be.push(R)},be=R=>{S[R]--,Be.pop()},k=R=>{if(_.type==="globstar"){let K=S.braces>0&&(R.type==="comma"||R.type==="brace"),w=R.extglob===!0||W.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!K&&!w&&(S.output=S.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,S.output+=_.output)}if(W.length&&R.type!=="paren"&&(W[W.length-1].inner+=R.value),(R.value||R.output)&&Y(R),_&&_.type==="text"&&R.type==="text"){_.value+=R.value,_.output=(_.output||"")+R.value;return}R.prev=_,o.push(R),_=R},qe=(R,K)=>{let w={...u[K],conditions:1,inner:""};w.prev=_,w.parens=S.parens,w.output=S.output;let F=(r.capture?"(":"")+w.open;ne("parens"),k({type:R,value:K,output:S.output?"":d}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(w)},nE=R=>{let K=R.close+(r.capture?")":""),w;if(R.type==="negate"){let F=ie;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(K=R.close=`)$))${F}`),R.inner.includes("*")&&(w=P())&&/^\.[^\\/.]+$/.test(w)){let Q=Yo(w,{...e,fastpaths:!1}).output;K=R.close=`)${Q})${F})`}R.prev.type==="bos"&&(S.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:K}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let R=!1,K=t.replace(dx,(w,F,Q,xe,se,uo)=>xe==="\\"?(R=!0,w):xe==="?"?F?F+xe+(se?M.repeat(se.length):""):uo===0?B+(se?M.repeat(se.length):""):M.repeat(Q.length):xe==="."?h.repeat(Q.length):xe==="*"?F?F+xe+(se?ie:""):ie:F?w:`\\${w}`);return R===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),K===t&&r.contains===!0?(S.output=t,S):(S.output=Ie.wrapOutput(K,S,e),S)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let w=E();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,S.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),S.brackets===0){k({type:"text",value:p});continue}}if(S.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let w=_.value.slice(1);if(w.includes("[")&&(_.posix=!0,w.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),xe=_.value.slice(F+2),se=fx[xe];if(se){_.value=Q+se,S.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=d);continue}}}(p==="["&&E()!==":"||p==="-"&&E()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(S.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){S.quotes=S.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(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Pr("opening","("));let w=W[W.length-1];if(w&&S.parens===w.parens+1){nE(W.pop());continue}k({type:"paren",value:p,output:S.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(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Pr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let w=_.value.slice(1);if(_.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(w))continue;let F=Ie.escapeRegex(_.value);if(S.output=S.output.slice(0,-_.value.length),r.literalBrackets===!0){S.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,S.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let w={type:"brace",value:p,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};j.push(w),k(w);continue}if(p==="}"){let w=j[j.length-1];if(r.nobrace===!0||!w){k({type:"text",value:p,output:p});continue}let F=")";if(w.dots===!0){let Q=o.slice(),xe=[];for(let se=Q.length-1;se>=0&&(o.pop(),Q[se].type!=="brace");se--)Q[se].type!=="dots"&&xe.unshift(Q[se].value);F=mx(xe,r),S.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Q=S.output.slice(0,w.outputIndex),xe=S.tokens.slice(w.tokensIndex);w.value=w.output="\\{",p=F="\\}",S.output=Q;for(let se of xe)S.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),j.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let w=p,F=j[j.length-1];F&&Be[Be.length-1]==="braces"&&(F.comma=!0,w="|"),k({type:"comma",value:p,output:w});continue}if(p==="/"){if(_.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(S.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let w=j[j.length-1];_.type="dots",_.output+=p,_.value+=p,w.dots=!0;continue}if(S.braces+S.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&&E()==="("&&E(2)!=="?"){qe("qmark",p);continue}if(_&&_.type==="paren"){let F=E(),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&&E()==="("&&(E(2)!=="?"||!/[!=<:]/.test(E(3)))){qe("negate",p);continue}if(r.nonegate!==!0&&S.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&E()==="("&&E(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")||S.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let w=px.exec(P());w&&(p+=w[0],S.index+=w[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,S.backtrack=!0,S.globstar=!0,T(p);continue}let R=P();if(r.noextglob!==!0&&/^\([^?]/.test(R)){qe("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let w=_.prev,F=w.prev,Q=w.type==="slash"||w.type==="bos",xe=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||R[0]&&R[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=S.braces>0&&(w.type==="comma"||w.type==="brace"),uo=W.length&&(w.type==="pipe"||w.type==="paren");if(!Q&&w.type!=="paren"&&!se&&!uo){k({type:"star",value:p,output:""});continue}for(;R.slice(0,3)==="/**";){let tn=t[S.index+4];if(tn&&tn!=="/")break;R=R.slice(3),T("/**",3)}if(w.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),S.output=_.output,S.globstar=!0,T(p);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!xe&&b()){S.output=S.output.slice(0,-(w.output+_.output).length),w.output=`(?:${w.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,S.globstar=!0,S.output+=w.output+_.output,T(p);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&R[0]==="/"){let tn=R[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(w.output+_.output).length),w.output=`(?:${w.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${tn})`,_.value+=p,S.output+=w.output+_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&R[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,S.output=_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,S.output+=_.output,S.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}(S.index===S.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(S.output+=v,_.output+=v):r.dot===!0?(S.output+=A,_.output+=A):(S.output+=I,_.output+=I),E()!=="*"&&(S.output+=d,_.output+=d)),k(K)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));S.output=Ie.escapeLast(S.output,"["),be("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing",")"));S.output=Ie.escapeLast(S.output,"("),be("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","}"));S.output=Ie.escapeLast(S.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),S.backtrack===!0){S.output="";for(let R of S.tokens)S.output+=R.output!=null?R.output:R.value,R.suffix&&(S.output+=R.suffix)}return S};Yo.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=wf[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:d}=_n.globChars(s),y=r.dot?h:u,x=r.dot?f:u,v=r.capture?"":"?:",A={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${v}(?:(?!${d}${I.dot?l:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${c}${M}`;case".*":return`${o}${c}${M}`;case"*.*":return`${y}${M}${o}${c}${M}`;case"*/*":return`${y}${M}${a}${c}${x}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${x}${c}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${x}${M}${o}${c}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${c}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},H=Ie.removePrefix(t,A),L=N(H);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};vf.exports=Yo});var Tf=m((x1,Af)=>{"use strict";var gx=require("path"),yx=xf(),zo=Rf(),Ko=Ai(),_x=Ri(),Ex=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 d=g(f);if(d)return d}return!1}}let i=Ex(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=Ko.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};c=J(n.ignore,u,r)}let l=(u,h=!1)=>{let{isMatch:f,match:g,output:d}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:d,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):c(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&&(l.state=a),l};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?Ko.toPosixSlashes:null),a=t===i,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};J.matchBase=(t,e,r,i=Ko.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(gx.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)):zo(t,{...e,fastpaths:!1});J.scan=(t,e)=>yx(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 c=J.toRegex(a,e);return i===!0&&(c.state=t),c};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=zo.fastpaths(t,e)),n.output||(n=zo(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=_x;Af.exports=J});var Cf=m((w1,Of)=>{"use strict";Of.exports=Tf()});var Df=m((v1,Nf)=>{"use strict";var Lf=require("util"),If=lf(),et=Cf(),Vo=Ai(),Pf=t=>t===""||t==="./",kf=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},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 d=h(g,!0);(f?!d.isMatch:d.isMatch)&&(f?i.add(d.output):(i.delete(d.output),n.add(d.output)))}}let l=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return l};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: "${Lf.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>V.contains(t,i,r));if(typeof e=="string"){if(Pf(t)||Pf(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(!Vo.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: "${Lf.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};V.capture=(t,e,r)=>{let i=Vo.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?Vo.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 If(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||!kf(t)?[t]:If(t,e)};V.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return V.braces(t,{...e,expand:!0})};V.hasBraces=kf;Nf.exports=V});var jf=m(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 Sx=require("path"),bx=Ah(),Xo=Df(),Ff="**",xx="\\",wx=/[*?]|^!/,vx=/\[[^[]*]/,Rx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Ax=/[!*+?@]\([^(]*\)/,Tx=/,|\.\./;function Mf(t,e={}){return!Bf(t,e)}D.isStaticPattern=Mf;function Bf(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(xx)||wx.test(t)||vx.test(t)||Rx.test(t)||e.extglob!==!1&&Ax.test(t)||e.braceExpansion!==!1&&Ox(t))}D.isDynamicPattern=Bf;function Ox(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 Tx.test(i)}function Cx(t){return Sn(t)?t.slice(1):t}D.convertToPositivePattern=Cx;function Px(t){return"!"+t}D.convertToNegativePattern=Px;function Sn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=Sn;function qf(t){return!Sn(t)}D.isPositivePattern=qf;function Lx(t){return t.filter(Sn)}D.getNegativePatterns=Lx;function Ix(t){return t.filter(qf)}D.getPositivePatterns=Ix;function kx(t){return t.filter(e=>!Zo(e))}D.getPatternsInsideCurrentDirectory=kx;function Nx(t){return t.filter(Zo)}D.getPatternsOutsideCurrentDirectory=Nx;function Zo(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=Zo;function Dx(t){return bx(t,{flipBackslashes:!1})}D.getBaseDirectory=Dx;function Fx(t){return t.includes(Ff)}D.hasGlobStar=Fx;function Hf(t){return t.endsWith("/"+Ff)}D.endsWithSlashGlobStar=Hf;function Mx(t){let e=Sx.basename(t);return Hf(t)||Mf(e)}D.isAffectDepthOfReadingPattern=Mx;function Bx(t){return t.reduce((e,r)=>e.concat(Uf(r)),[])}D.expandPatternsWithBraceExpansion=Bx;function Uf(t){return Xo.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=Uf;function qx(t,e){let{parts:r}=Xo.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=qx;function $f(t,e){return Xo.makeRe(t,e)}D.makeRe=$f;function Hx(t,e){return t.map(r=>$f(r,e))}D.convertPatternsToRe=Hx;function Ux(t,e){return e.some(r=>r.test(t))}D.matchAny=Ux});var zf=m((A1,Yf)=>{"use strict";var $x=require("stream"),Gf=$x.PassThrough,jx=Array.prototype.slice;Yf.exports=Gx;function Gx(){let t=[],e=jx.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=Gf(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Wf(arguments[u],i));return c(),this}function c(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(l);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,c())}function g(d){function y(){d.removeListener("merge2UnpipeEnd",y),d.removeListener("end",y),s&&d.removeListener("error",x),f()}function x(v){o.emit("error",v)}if(d._readableState.endEmitted)return f();d.on("merge2UnpipeEnd",y),d.on("end",y),s&&d.on("error",x),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<u.length;d++)g(u[d]);f()}function l(){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 Wf(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Wf(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gf(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vf=m(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.merge=void 0;var Wx=zf();function Yx(t){let e=Wx(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Kf(t)),e.once("end",()=>Kf(t)),e}bn.merge=Yx;function Kf(t){t.forEach(e=>e.emit("close"))}});var Xf=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.isEmpty=Lr.isString=void 0;function zx(t){return typeof t=="string"}Lr.isString=zx;function Kx(t){return t===""}Lr.isEmpty=Kx});var gt=m(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 Vx=gh();de.array=Vx;var Xx=yh();de.errno=Xx;var Zx=_h();de.fs=Zx;var Qx=Eh();de.path=Qx;var Jx=jf();de.pattern=Jx;var ew=Vf();de.stream=ew;var tw=Xf();de.string=tw});var Jf=m(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 rw(t,e){let r=Zf(t),i=Qf(t,e.ignore),n=r.filter(c=>yt.pattern.isStaticPattern(c,e)),s=r.filter(c=>yt.pattern.isDynamicPattern(c,e)),o=Qo(n,i,!1),a=Qo(s,i,!0);return o.concat(a)}me.generate=rw;function Qo(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=Jo(n),a=Jo(s);return i.push(...ea(o,e,r)),"."in a?i.push(ta(".",s,e,r)):i.push(...ea(a,e,r)),i}me.convertPatternsToTasks=Qo;function Zf(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Zf;function Qf(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Qf;function Jo(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=Jo;function ea(t,e,r){return Object.keys(t).map(i=>ta(i,t[i],e,r))}me.convertPatternGroupsToTasks=ea;function ta(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=ta});var tp=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.removeDuplicateSlashes=Ir.transform=void 0;var iw=/(?!^)\/{2,}/g;function nw(t){return t.map(e=>ep(e))}Ir.transform=nw;function ep(t){return t.replace(iw,"/")}Ir.removeDuplicateSlashes=ep});var ip=m(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.read=void 0;function sw(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){rp(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ra(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){rp(r,s);return}ra(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ra(r,o)})})}xn.read=sw;function rp(t,e){t(e)}function ra(t,e){t(null,e)}});var np=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.read=void 0;function ow(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}}wn.read=ow});var sp=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var vn=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:vn.lstat,stat:vn.stat,lstatSync:vn.lstatSync,statSync:vn.statSync};function aw(t){return t===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),t)}Nt.createFileSystemAdapter=aw});var op=m(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var cw=sp(),ia=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=cw.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}};na.default=ia});var sr=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.statSync=Dt.stat=Dt.Settings=void 0;var ap=ip(),lw=np(),sa=op();Dt.Settings=sa.default;function uw(t,e,r){if(typeof e=="function"){ap.read(t,oa(),e);return}ap.read(t,oa(e),r)}Dt.stat=uw;function hw(t,e){let r=oa(e);return lw.read(t,r)}Dt.statSync=hw;function oa(t={}){return t instanceof sa.default?t:new sa.default(t)}});var up=m((M1,lp)=>{var cp;lp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(cp||(cp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var fp=m((B1,hp)=>{hp.exports=pw;var fw=up();function pw(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(c){function l(){e&&e(c,r),e=null}s?fw(l):l()}function a(c,l,u){r[c]=u,(--i===0||l)&&o(l)}i?n?n.forEach(function(c){t[c](function(l,u){a(c,l,u)})}):t.forEach(function(c,l){c(function(u,h){a(l,u,h)})}):o(null),s=!1}});var aa=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Rn=process.versions.node.split(".");if(Rn[0]===void 0||Rn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var pp=Number.parseInt(Rn[0],10),dw=Number.parseInt(Rn[1],10),dp=10,mw=10,gw=pp>dp,yw=pp===dp&&dw>=mw;An.IS_SUPPORT_READDIR_WITH_FILE_TYPES=gw||yw});var mp=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.createDirentFromStats=void 0;var ca=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 _w(t,e){return new ca(t,e)}Tn.createDirentFromStats=_w});var la=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.fs=void 0;var Ew=mp();On.fs=Ew});var ua=m(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.joinPathSegments=void 0;function Sw(t,e,r){return t.endsWith(r)?t+e:t+r+e}Cn.joinPathSegments=Sw});var bp=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var bw=sr(),gp=fp(),xw=aa(),yp=la(),_p=ua();function ww(t,e,r){if(!e.stats&&xw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ep(t,e,r);return}Sp(t,e,r)}Ft.read=ww;function Ep(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Pn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:_p.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ha(r,s);return}let o=s.map(a=>vw(a,e));gp(o,(a,c)=>{if(a!==null){Pn(r,a);return}ha(r,c)})})}Ft.readdirWithFileTypes=Ep;function vw(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=yp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Sp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Pn(r,i);return}let s=n.map(o=>{let a=_p.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{bw.stat(a,e.fsStatSettings,(l,u)=>{if(l!==null){c(l);return}let h={name:o,path:a,dirent:yp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),c(null,h)})}});gp(s,(o,a)=>{if(o!==null){Pn(r,o);return}ha(r,a)})})}Ft.readdir=Sp;function Pn(t,e){t(e)}function ha(t,e){t(null,e)}});var Ap=m(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.readdir=Mt.readdirWithFileTypes=Mt.read=void 0;var Rw=sr(),Aw=aa(),xp=la(),wp=ua();function Tw(t,e){return!e.stats&&Aw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vp(t,e):Rp(t,e)}Mt.read=Tw;function vp(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:wp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=xp.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Mt.readdirWithFileTypes=vp;function Rp(t,e){return e.fs.readdirSync(t).map(i=>{let n=wp.joinPathSegments(t,i,e.pathSegmentSeparator),s=Rw.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:xp.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Mt.readdir=Rp});var Tp=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var kr=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:kr.lstat,stat:kr.stat,lstatSync:kr.lstatSync,statSync:kr.statSync,readdir:kr.readdir,readdirSync:kr.readdirSync};function Ow(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bt.FILE_SYSTEM_ADAPTER),t)}Bt.createFileSystemAdapter=Ow});var Op=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var Cw=require("path"),Pw=sr(),Lw=Tp(),fa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Lw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Cw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Pw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};pa.default=fa});var Ln=m(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.Settings=qt.scandirSync=qt.scandir=void 0;var Cp=bp(),Iw=Ap(),da=Op();qt.Settings=da.default;function kw(t,e,r){if(typeof e=="function"){Cp.read(t,ma(),e);return}Cp.read(t,ma(e),r)}qt.scandir=kw;function Nw(t,e){let r=ma(e);return Iw.read(t,r)}qt.scandirSync=Nw;function ma(t={}){return t instanceof da.default?t:new da.default(t)}});var Lp=m((K1,Pp)=>{"use strict";function Dw(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}}Pp.exports=Dw});var kp=m((V1,ga)=>{"use strict";var Fw=Lp();function Ip(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=Fw(Mw),n=null,s=null,o=0,a=null,c={push:y,drain:Ue,saturated:Ue,pause:u,paused:!1,concurrency:r,running:l,resume:g,idle:d,length:h,getQueue:f,unshift:x,empty:Ue,kill:A,killAndDrain:M,error:re};return c;function l(){return o}function u(){c.paused=!0}function h(){for(var N=n,H=0;N;)N=N.next,H++;return H}function f(){for(var N=n,H=[];N;)H.push(N.value),N=N.next;return H}function g(){if(c.paused){c.paused=!1;for(var N=0;N<c.concurrency;N++)o++,v()}}function d(){return o===0&&c.length()===0}function y(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,L.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=L,s=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,o===c.concurrency||c.paused?n?(L.next=n,n=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function v(N){N&&i.release(N);var H=n;H?c.paused?o--:(s===n&&(s=null),n=H.next,H.next=null,e.call(t,H.value,H.worked),s===null&&c.empty()):--o===0&&c.drain()}function A(){n=null,s=null,c.drain=Ue}function M(){n=null,s=null,c.drain(),c.drain=Ue}function re(N){a=N}}function Ue(){}function Mw(){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 Bw(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=Ip(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=c,n.drained=l,n;function a(u){var h=new Promise(function(f,g){s(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function c(u){var h=new Promise(function(f,g){o(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function l(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}ga.exports=Ip;ga.exports.promise=Bw});var In=m(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function qw(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=qw;function Hw(t,e){return t===null||t(e)}tt.isAppliedFilter=Hw;function Uw(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=Uw;function $w(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=$w});var Ea=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var jw=In(),ya=class{constructor(e,r){this._root=e,this._settings=r,this._root=jw.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};_a.default=ya});var xa=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Gw=require("events"),Ww=Ln(),Yw=kp(),kn=In(),zw=Ea(),Sa=class extends zw.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Ww.scandir,this._emitter=new Gw.EventEmitter,this._queue=Yw(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||!kn.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=kn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),kn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&kn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ba.default=Sa});var Np=m(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var Kw=xa(),wa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Kw.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Vw(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Xw(e,this._storage)}),this._reader.read()}};va.default=wa;function Vw(t,e){t(e)}function Xw(t,e){t(null,e)}});var Dp=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Zw=require("stream"),Qw=xa(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Qw.default(this._root,this._settings),this._stream=new Zw.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}};Aa.default=Ra});var Fp=m(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Jw=Ln(),Nn=In(),ev=Ea(),Ta=class extends ev.default{constructor(){super(...arguments),this._scandir=Jw.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(Nn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Nn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Nn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Nn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Oa.default=Ta});var Mp=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var tv=Fp(),Ca=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tv.default(this._root,this._settings)}read(){return this._reader.read()}};Pa.default=Ca});var Bp=m(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var rv=require("path"),iv=Ln(),La=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}};Ia.default=La});var Fn=m(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var qp=Np(),nv=Dp(),sv=Mp(),ka=Bp();rt.Settings=ka.default;function ov(t,e,r){if(typeof e=="function"){new qp.default(t,Dn()).read(e);return}new qp.default(t,Dn(e)).read(r)}rt.walk=ov;function av(t,e){let r=Dn(e);return new sv.default(t,r).read()}rt.walkSync=av;function cv(t,e){let r=Dn(e);return new nv.default(t,r).read()}rt.walkStream=cv;function Dn(t={}){return t instanceof ka.default?t:new ka.default(t)}});var Mn=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var lv=require("path"),uv=sr(),Hp=gt(),Na=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 lv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Hp.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Hp.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Da.default=Na});var Ba=m(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var hv=require("stream"),fv=sr(),pv=Fn(),dv=Mn(),Fa=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(c=>{c!==null&&r.entryFilter(c)&&n.push(c),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))})}};Ma.default=Fa});var Up=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var mv=Fn(),gv=Mn(),yv=Ba(),qa=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))})}};Ha.default=qa});var $p=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Nr=gt(),Ua=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))}};$a.default=Ua});var jp=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var _v=$p(),ja=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((c,l)=>{let u=s.segments[l];return!!(u.dynamic&&u.patternRe.test(c)||!u.dynamic&&u.pattern===c)}))return!0}return!1}};Ga.default=ja});var Gp=m(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Bn=gt(),Ev=jp(),Wa=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 Ev.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Bn.pattern.isAffectDepthOfReadingPattern);return Bn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Bn.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!Bn.pattern.matchAny(e,r)}};Ya.default=Wa});var Wp=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var or=gt(),za=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}};Ka.default=za});var Yp=m(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Sv=gt(),Va=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Sv.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Xa.default=Va});var Kp=m(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var zp=gt(),Za=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=zp.path.makeAbsolute(this._settings.cwd,r),r=zp.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Qa.default=Za});var qn=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var bv=require("path"),xv=Gp(),wv=Wp(),vv=Yp(),Rv=Kp(),Ja=class{constructor(e){this._settings=e,this.errorFilter=new vv.default(this._settings),this.entryFilter=new wv.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xv.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}}};ec.default=Ja});var Vp=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Av=Up(),Tv=qn(),tc=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)}};rc.default=tc});var Xp=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var Ov=require("stream"),Cv=Ba(),Pv=qn(),ic=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)}};nc.default=ic});var Zp=m(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var Lv=sr(),Iv=Fn(),kv=Mn(),sc=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)}};oc.default=sc});var Qp=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var Nv=Zp(),Dv=qn(),ac=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)}};cc.default=ac});var Jp=m(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 lc=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=lc});var id=m((SL,rd)=>{"use strict";var ed=Jf(),td=tp(),Bv=Vp(),qv=Xp(),Hv=Qp(),uc=Jp(),ar=gt();async function hc(t,e){Mr(t);let r=fc(t,Bv.default,e),i=await Promise.all(r);return ar.array.flatten(i)}(function(t){function e(o,a){Mr(o);let c=fc(o,Hv.default,a);return ar.array.flatten(c)}t.sync=e;function r(o,a){Mr(o);let c=fc(o,qv.default,a);return ar.stream.merge(c)}t.stream=r;function i(o,a){Mr(o);let c=td.transform([].concat(o)),l=new uc.default(a);return ed.generate(c,l)}t.generateTasks=i;function n(o,a){Mr(o);let c=new uc.default(a);return ar.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=n;function s(o){return Mr(o),ar.path.escape(o)}t.escapePath=s})(hc||(hc={}));function fc(t,e,r){let i=td.transform([].concat(t)),n=new uc.default(r),s=ed.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")}rd.exports=hc});var md=m((RL,dd)=>{dd.exports=pd;pd.sync=iR;var hd=require("fs");function rR(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 fd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:rR(e,r)}function pd(t,e,r){hd.stat(t,function(i,n){r(i,i?!1:fd(n,t,e))})}function iR(t,e){return fd(hd.statSync(t),t,e)}});var Sd=m((AL,Ed)=>{Ed.exports=yd;yd.sync=nR;var gd=require("fs");function yd(t,e,r){gd.stat(t,function(i,n){r(i,i?!1:_d(n,e))})}function nR(t,e){return _d(gd.statSync(t),e)}function _d(t,e){return t.isFile()&&sR(t,e)}function sR(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),c=parseInt("010",8),l=parseInt("001",8),u=a|c,h=r&l||r&c&&n===o||r&a&&i===s||r&u&&s===0;return h}});var xd=m((OL,bd)=>{var TL=require("fs"),Hn;process.platform==="win32"||global.TESTING_WINDOWS?Hn=md():Hn=Sd();bd.exports=mc;mc.sync=oR;function mc(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){mc(t,e||{},function(s,o){s?n(s):i(o)})})}Hn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function oR(t,e){try{return Hn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Cd=m((CL,Od)=>{var qr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",wd=require("path"),aR=qr?";":":",vd=xd(),Rd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Ad=(t,e)=>{let r=e.colon||aR,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}},Td=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Ad(t,e),o=[],a=l=>new Promise((u,h)=>{if(l===i.length)return e.all&&o.length?u(o):h(Rd(t));let f=i[l],g=/^".*"$/.test(f)?f.slice(1,-1):f,d=wd.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;u(c(y,l,0))}),c=(l,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let d=n[h];vd(l+d,{pathExt:s},(y,x)=>{if(!y&&x)if(e.all)o.push(l+d);else return f(l+d);return f(c(l,u,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},cR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Ad(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=wd.join(c,t),u=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(vd.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 Rd(t)};Od.exports=Td;Td.sync=cR});var yc=m((PL,gc)=>{"use strict";var Pd=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};gc.exports=Pd;gc.exports.default=Pd});var Nd=m((LL,kd)=>{"use strict";var Ld=require("path"),lR=Cd(),uR=yc();function Id(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[uR({env:r})],pathExt:e?Ld.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Ld.resolve(n?t.options.cwd:"",o)),o}function hR(t){return Id(t)||Id(t,!0)}kd.exports=hR});var Dd=m((IL,Ec)=>{"use strict";var _c=/([()\][%!^"`<>&|;, *?])/g;function fR(t){return t=t.replace(_c,"^$1"),t}function pR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(_c,"^$1"),e&&(t=t.replace(_c,"^$1")),t}Ec.exports.command=fR;Ec.exports.argument=pR});var Md=m((kL,Fd)=>{"use strict";Fd.exports=/^#!(.*)/});var qd=m((NL,Bd)=>{"use strict";var dR=Md();Bd.exports=(t="")=>{let e=t.match(dR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Ud=m((DL,Hd)=>{"use strict";var Sc=require("fs"),mR=qd();function gR(t){let r=Buffer.alloc(150),i;try{i=Sc.openSync(t,"r"),Sc.readSync(i,r,0,150,0),Sc.closeSync(i)}catch{}return mR(r.toString())}Hd.exports=gR});var Wd=m((FL,Gd)=>{"use strict";var yR=require("path"),$d=Nd(),jd=Dd(),_R=Ud(),ER=process.platform==="win32",SR=/\.(?:com|exe)$/i,bR=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function xR(t){t.file=$d(t);let e=t.file&&_R(t.file);return e?(t.args.unshift(t.file),t.command=e,$d(t)):t.file}function wR(t){if(!ER)return t;let e=xR(t),r=!SR.test(e);if(t.options.forceShell||r){let i=bR.test(e);t.command=yR.normalize(t.command),t.command=jd.command(t.command),t.args=t.args.map(s=>jd.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 vR(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)}Gd.exports=vR});var Kd=m((ML,zd)=>{"use strict";var bc=process.platform==="win32";function xc(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 RR(t,e){if(!bc)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Yd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Yd(t,e){return bc&&t===1&&!e.file?xc(e.original,"spawn"):null}function AR(t,e){return bc&&t===1&&!e.file?xc(e.original,"spawnSync"):null}zd.exports={hookChildProcess:RR,verifyENOENT:Yd,verifyENOENTSync:AR,notFoundError:xc}});var Zd=m((BL,Hr)=>{"use strict";var Vd=require("child_process"),wc=Wd(),vc=Kd();function Xd(t,e,r){let i=wc(t,e,r),n=Vd.spawn(i.command,i.args,i.options);return vc.hookChildProcess(n,i),n}function TR(t,e,r){let i=wc(t,e,r),n=Vd.spawnSync(i.command,i.args,i.options);return n.error=n.error||vc.verifyENOENTSync(n.status,i),n}Hr.exports=Xd;Hr.exports.spawn=Xd;Hr.exports.sync=TR;Hr.exports._parse=wc;Hr.exports._enoent=vc});var Jd=m((qL,Qd)=>{"use strict";Qd.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var aE=Object.create;var rn=Object.defineProperty;var cE=Object.getOwnPropertyDescriptor;var lE=Object.getOwnPropertyNames;var uE=Object.getPrototypeOf,hE=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bu=(t,e)=>{for(var r in e)rn(t,r,{get:e[r],enumerable:!0})},wu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lE(e))!hE.call(t,n)&&n!==r&&rn(t,n,{get:()=>e[n],enumerable:!(i=cE(e,n))||i.enumerable});return t};var q=(t,e,r)=>(r=t!=null?aE(uE(t)):{},wu(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t)),fE=t=>wu(rn({},"__esModule",{value:!0}),t);var xu=m((fP,ht)=>{function ho(t){return ht.exports=ho=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,ho(t)}ht.exports=ho,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var Au=m((pP,ft)=>{var vu=xu().default;function Ru(){"use strict";ft.exports=Ru=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,E){p[b]=E.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(p,b,E){return Object.defineProperty(p,b,{value:E,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{l({},"")}catch{l=function(E,O,P){return E[O]=P}}function u(p,b,E,O){var P=b&&b.prototype instanceof v?b:v,T=Object.create(P.prototype),Y=new Be(O||[]);return n(T,"_invoke",{value:ie(p,E,Y)}),T}function h(p,b,E){try{return{type:"normal",arg:p.call(b,E)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",d="executing",y="completed",w={};function v(){}function A(){}function M(){}var re={};l(re,o,function(){return this});var N=Object.getPrototypeOf,H=N&&N(N(_([])));H&&H!==r&&i.call(H,o)&&(re=H);var L=M.prototype=v.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){l(p,b,function(E){return this._invoke(b,E)})})}function B(p,b){function E(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&vu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(qe){E("next",qe,Y,he)},function(qe){E("throw",qe,Y,he)}):b.resolve(k).then(function(qe){be.value=qe,Y(be)},function(qe){return E("throw",qe,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){E(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,E){var O=f;return function(P,T){if(O===d)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(E.method=P,E.arg=T;;){var Y=E.delegate;if(Y){var he=S(Y,E);if(he){if(he===w)continue;return he}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(O===f)throw O=y,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);O=d;var ne=h(p,b,E);if(ne.type==="normal"){if(O=E.done?y:g,ne.arg===w)continue;return{value:ne.arg,done:E.done}}ne.type==="throw"&&(O=y,E.method="throw",E.arg=ne.arg)}}}function S(p,b){var E=b.method,O=p.iterator[E];if(O===t)return b.delegate=null,E==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,S(p,b),b.method==="throw")||E!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+E+"' 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 j(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Be(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 E=-1,O=function P(){for(;++E<p.length;)if(i.call(p,E))return P.value=p[E],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(vu(p)+" is not iterable")}return A.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:A,configurable:!0}),A.displayName=l(M,c,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===A||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,l(p,c,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(B.prototype),l(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,E,O,P){P===void 0&&(P=Promise);var T=new B(u(p,b,E,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),l(L,c,"Generator"),l(L,o,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),E=[];for(var O in b)E.push(O);return E.reverse(),function P(){for(;E.length;){var T=E.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(j),!b)for(var E in this)E.charAt(0)==="t"&&i.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=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 E=this;function O(be,k){return Y.type="throw",Y.arg=b,E.next=be,k&&(E.method="next",E.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,E){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<=E&&E<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=E,T?(this.method="next",this.next=T.finallyLoc,w):this.complete(Y)},complete:function(b,E){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"&&E&&(this.next=E),w},finish:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),j(O),w}},catch:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;j(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,E,O){return this.delegate={iterator:_(b),resultName:E,nextLoc:O},this.method==="next"&&(this.arg=t),w}},e}ft.exports=Ru,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var Ou=m((dP,Tu)=>{var nn=Au()();Tu.exports=nn;try{regeneratorRuntime=nn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=nn:Function("r","regeneratorRuntime = r")(nn)}});var gh=m(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.splitWhen=Or.flatten=void 0;function Ub(t){return t.reduce((e,r)=>[].concat(e,r),[])}Or.flatten=Ub;function $b(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Or.splitWhen=$b});var yh=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.isEnoentCodeError=void 0;function jb(t){return t.code==="ENOENT"}hn.isEnoentCodeError=jb});var _h=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.createDirentFromStats=void 0;var Io=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 Gb(t,e){return new Io(t,e)}fn.createDirentFromStats=Gb});var Eh=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var Wb=require("path"),Yb=2,zb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Kb(t){return t.replace(/\\/g,"/")}Qe.unixify=Kb;function Vb(t,e){return Wb.resolve(t,e)}Qe.makeAbsolute=Vb;function Xb(t){return t.replace(zb,"\\$2")}Qe.escape=Xb;function Zb(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Yb)}return t}Qe.removeLeadingDotSegment=Zb});var bh=m((a1,Sh)=>{Sh.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 vh=m((c1,xh)=>{var Qb=bh(),wh={"{":"}","(":")","[":"]"},Jb=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 c=wh[a];if(c){var l=t.indexOf(c,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},e0=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=wh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};xh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Qb(e))return!0;var i=Jb;return r&&r.strict===!1&&(i=e0),i(e)}});var Ah=m((l1,Rh)=>{"use strict";var t0=vh(),r0=require("path").posix.dirname,i0=require("os").platform()==="win32",ko="/",n0=/\\/g,s0=/[\{\[].*[\}\]]$/,o0=/(^|[^\\])([\{\[]|\([^\)]+$)/,a0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Rh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&i0&&e.indexOf(ko)<0&&(e=e.replace(n0,ko)),s0.test(e)&&(e+=ko),e+="a";do e=r0(e);while(t0(e)||o0.test(e));return e.replace(a0,"$1")}});var pn=m(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];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var dn=m((h1,Oh)=>{"use strict";var Th=pn();Oh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Th.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Th.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let c of i.nodes)a+=r(c);return a};return r(t)}});var Ph=m((f1,Ch)=>{"use strict";Ch.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var qh=m((p1,Bh)=>{"use strict";var Lh=Ph(),ir=(t,e,r)=>{if(Lh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Lh(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),c=t+":"+e+"="+n+s+o+a;if(ir.cache.hasOwnProperty(c))return ir.cache[c].result;let l=Math.min(t,e),u=Math.max(t,e);if(Math.abs(l-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Mh(t)||Mh(e),f={min:t,max:e,a:l,b:u},g=[],d=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let y=u<0?Math.abs(u):1;d=Ih(y,Math.abs(l),f,i),l=f.a=0}return u>=0&&(g=Ih(l,u,f,i)),f.negatives=d,f.positives=g,f.result=c0(d,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+d.length>1&&(f.result=`(?:${f.result})`),ir.cache[c]=f,f.result};function c0(t,e,r){let i=No(t,e,"-",!1,r)||[],n=No(e,t,"",!1,r)||[],s=No(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function l0(t,e){let r=1,i=1,n=Nh(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Nh(t,r);for(n=Dh(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Dh(e+1,i)-1;return s=[...s],s.sort(f0),s}function u0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=h0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[c,l]=i[a];c===l?s+=c:c!=="0"||l!=="9"?s+=p0(c,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ih(t,e,r,i){let n=l0(t,e),s=[],o=t,a;for(let c=0;c<n.length;c++){let l=n[c],u=u0(String(o),String(l),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+Fh(a.count),o=l+1;continue}r.isPadded&&(h=d0(l,r,i)),u.string=h+u.pattern+Fh(u.count),s.push(u),o=l+1,a=u}return s}function No(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!kh(e,"string",a)&&s.push(r+a),i&&kh(e,"string",a)&&s.push(r+a)}return s}function h0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function f0(t,e){return t>e?1:e>t?-1:0}function kh(t,e,r){return t.some(i=>i[e]===r)}function Nh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Dh(t,e){return t-t%Math.pow(10,e)}function Fh(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function p0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Mh(t){return/^-?(0+)\d/.test(t)}function d0(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={};Bh.exports=ir});var Mo=m((d1,Yh)=>{"use strict";var m0=require("util"),Uh=qh(),Hh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),g0=t=>e=>t===!0?Number(e):String(e),Do=t=>typeof t=="number"||typeof t=="string"&&t!=="",vi=t=>Number.isInteger(+t),Fo=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},y0=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,_0=(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},gn=(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,r)=>{t.negatives.sort((a,c)=>a<c?-1:a>c?1:0),t.positives.sort((a,c)=>a<c?-1:a>c?1:0);let i=e.capture?"":"?:",n="",s="",o;return t.positives.length&&(n=t.positives.map(a=>gn(String(a),r)).join("|")),t.negatives.length&&(s=`-(${i}${t.negatives.map(a=>gn(String(a),r)).join("|")})`),n&&s?o=`${n}|${s}`:o=n||s,e.wrap?`(${i}${o})`:o},$h=(t,e,r,i)=>{if(r)return Uh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},jh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Uh(t,e,r)},Gh=(...t)=>new RangeError("Invalid range arguments: "+m0.inspect(...t)),Wh=(t,e,r)=>{if(r.strictRanges===!0)throw Gh([t,e]);return[]},S0=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},b0=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Gh([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),c=String(e),l=String(r);r=Math.max(Math.abs(r),1);let u=Fo(a)||Fo(c)||Fo(l),h=u?Math.max(a.length,c.length,l.length):0,f=u===!1&&y0(t,e,i)===!1,g=i.transform||g0(f);if(i.toRegex&&r===1)return $h(gn(t,h),gn(e,h),!0,i);let d={negatives:[],positives:[]},y=A=>d[A<0?"negatives":"positives"].push(Math.abs(A)),w=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):w.push(_0(g(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?E0(d,i,h):jh(w,null,{wrap:!1,...i}):w},w0=(t,e,r=1,i={})=>{if(!vi(t)&&t.length>1||!vi(e)&&e.length>1)return Wh(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return $h(c,l,!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?jh(u,null,{wrap:!1,options:i}):u},mn=(t,e,r,i={})=>{if(e==null&&Do(t))return[t];if(!Do(t)||!Do(e))return Wh(t,e,i);if(typeof r=="function")return mn(t,e,1,{transform:r});if(Hh(r))return mn(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)?b0(t,e,r,n):w0(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Hh(r)?S0(r,n):mn(t,e,1,r)};Yh.exports=mn});var Vh=m((m1,Kh)=>{"use strict";var x0=Mo(),zh=pn(),v0=(t,e={})=>{let r=(i,n={})=>{let s=zh.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return c+i.value;if(i.isClose===!0)return console.log("node.isClose",c,i.value),c+i.value;if(i.type==="open")return a?c+i.value:"(";if(i.type==="close")return a?c+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=zh.reduce(i.nodes),h=x0(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)l+=r(u,i);return l};return r(t)};Kh.exports=v0});var Qh=m((g1,Zh)=>{"use strict";var R0=Mo(),Xh=dn(),Cr=pn(),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)},A0=(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(),Xh(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=R0(...h,e);f.length===0&&(f=Xh(n,e)),a.push(nr(a.pop(),f)),n.nodes=[];return}let c=Cr.encloseBrace(n),l=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=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&&l.push(""),l.push("");continue}if(f.type==="close"){a.push(nr(a.pop(),l,c));continue}if(f.value&&f.type!=="open"){l.push(nr(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return Cr.flatten(i(t))};Zh.exports=A0});var ef=m((y1,Jh)=>{"use strict";Jh.exports={MAX_LENGTH:1e4,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 of=m((_1,sf)=>{"use strict";var T0=dn(),{MAX_LENGTH:tf,CHAR_BACKSLASH:Bo,CHAR_BACKTICK:O0,CHAR_COMMA:C0,CHAR_DOT:P0,CHAR_LEFT_PARENTHESES:L0,CHAR_RIGHT_PARENTHESES:I0,CHAR_LEFT_CURLY_BRACE:k0,CHAR_RIGHT_CURLY_BRACE:N0,CHAR_LEFT_SQUARE_BRACKET:rf,CHAR_RIGHT_SQUARE_BRACKET:nf,CHAR_DOUBLE_QUOTE:D0,CHAR_SINGLE_QUOTE:F0,CHAR_NO_BREAK_SPACE:M0,CHAR_ZERO_WIDTH_NOBREAK_SPACE:B0}=ef(),q0=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(tf,r.maxLength):tf;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,c=0,l=t.length,u=0,h=0,f,g=()=>t[u++],d=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(d({type:"bos"});u<l;)if(o=s[s.length-1],f=g(),!(f===B0||f===M0)){if(f===Bo){d({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===nf){d({type:"text",value:"\\"+f});continue}if(f===rf){c++;let y;for(;u<l&&(y=g());){if(f+=y,y===rf){c++;continue}if(y===Bo){f+=g();continue}if(y===nf&&(c--,c===0))break}d({type:"text",value:f});continue}if(f===L0){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===I0){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===D0||f===F0||f===O0){let y=f,w;for(e.keepQuotes!==!0&&(f="");u<l&&(w=g());){if(w===Bo){f+=w+g();continue}if(w===y){e.keepQuotes===!0&&(f+=w);break}f+=w}d({type:"text",value:f});continue}if(f===k0){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=d(w),s.push(o),d({type:"open",value:f});continue}if(f===N0){if(o.type!=="brace"){d({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===C0&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:T0(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===P0&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){d({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"){y.pop();let w=y[y.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let y=s[s.length-1],w=y.nodes.indexOf(o);y.nodes.splice(w,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};sf.exports=q0});var lf=m((E1,cf)=>{"use strict";var af=dn(),H0=Vh(),U0=Qh(),$0=of(),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={})=>$0(t,e);Le.stringify=(t,e={})=>af(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),H0(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=U0(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);cf.exports=Le});var Ri=m((S1,df)=>{"use strict";var j0=require("path"),Je="\\\\/",uf=`[^${Je}]`,mt="\\.",G0="\\+",W0="\\?",yn="\\/",Y0="(?=.)",hf="[^/]",qo=`(?:${yn}|$)`,ff=`(?:^|${yn})`,Ho=`${mt}{1,2}${qo}`,z0=`(?!${mt})`,K0=`(?!${ff}${Ho})`,V0=`(?!${mt}{0,1}${qo})`,X0=`(?!${Ho})`,Z0=`[^.${yn}]`,Q0=`${hf}*?`,pf={DOT_LITERAL:mt,PLUS_LITERAL:G0,QMARK_LITERAL:W0,SLASH_LITERAL:yn,ONE_CHAR:Y0,QMARK:hf,END_ANCHOR:qo,DOTS_SLASH:Ho,NO_DOT:z0,NO_DOTS:K0,NO_DOT_SLASH:V0,NO_DOTS_SLASH:X0,QMARK_NO_DOT:Z0,STAR:Q0,START_ANCHOR:ff},J0={...pf,SLASH_LITERAL:`[${Je}]`,QMARK:uf,STAR:`${uf}*?`,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}]|$)`},ew={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"};df.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ew,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?J0:pf}}});var Ai=m(Re=>{"use strict";var tw=require("path"),rw=process.platform==="win32",{REGEX_BACKSLASH:iw,REGEX_REMOVE_BACKSLASH:nw,REGEX_SPECIAL_CHARS:sw,REGEX_SPECIAL_CHARS_GLOBAL:ow}=Ri();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>sw.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(ow,"\\$1");Re.toPosixSlashes=t=>t.replace(iw,"/");Re.removeBackslashes=t=>t.replace(nw,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:rw===!0||tw.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 wf=m((w1,bf)=>{"use strict";var mf=Ai(),{CHAR_ASTERISK:Uo,CHAR_AT:aw,CHAR_BACKWARD_SLASH:Ti,CHAR_COMMA:cw,CHAR_DOT:$o,CHAR_EXCLAMATION_MARK:jo,CHAR_FORWARD_SLASH:Sf,CHAR_LEFT_CURLY_BRACE:Go,CHAR_LEFT_PARENTHESES:Wo,CHAR_LEFT_SQUARE_BRACKET:lw,CHAR_PLUS:uw,CHAR_QUESTION_MARK:gf,CHAR_RIGHT_CURLY_BRACE:hw,CHAR_RIGHT_PARENTHESES:yf,CHAR_RIGHT_SQUARE_BRACKET:fw}=Ri(),_f=t=>t===Sf||t===Ti,Ef=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},pw=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,l=-1,u=0,h=0,f=!1,g=!1,d=!1,y=!1,w=!1,v=!1,A=!1,M=!1,re=!1,N=!1,H=0,L,I,B={value:"",depth:0,isGlob:!1},ie=()=>l>=i,S=()=>c.charCodeAt(l+1),W=()=>(L=I,c.charCodeAt(++l));for(;l<i;){I=W();let b;if(I===Ti){A=B.backslashes=!0,I=W(),I===Go&&(v=!0);continue}if(v===!0||I===Go){for(H++;ie()!==!0&&(I=W());){if(I===Ti){A=B.backslashes=!0,W();continue}if(I===Go){H++;continue}if(v!==!0&&I===$o&&(I=W())===$o){if(f=B.isBrace=!0,d=B.isGlob=!0,N=!0,n===!0)continue;break}if(v!==!0&&I===cw){if(f=B.isBrace=!0,d=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===hw&&(H--,H===0)){v=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===Sf){if(s.push(l),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===$o&&l===u+1){u+=2;continue}h=l+1;continue}if(r.noext!==!0&&(I===uw||I===aw||I===Uo||I===gf||I===jo)===!0&&S()===Wo){if(d=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===jo&&l===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ti){A=B.backslashes=!0,I=W();continue}if(I===yf){d=B.isGlob=!0,N=!0;break}}continue}break}if(I===Uo){if(L===Uo&&(w=B.isGlobstar=!0),d=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===gf){if(d=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===lw){for(;ie()!==!0&&(b=W());){if(b===Ti){A=B.backslashes=!0,W();continue}if(b===fw){g=B.isBracket=!0,d=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===jo&&l===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===Wo){if(d=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===Wo){A=B.backslashes=!0,I=W();continue}if(I===yf){N=!0;break}}continue}break}if(d===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,d=!1);let j=c,Be="",_="";u>0&&(Be=c.slice(0,u),c=c.slice(u),h-=u),j&&d===!0&&h>0?(j=c.slice(0,h),_=c.slice(h)):d===!0?(j="",_=c):j=c,j&&j!==""&&j!=="/"&&j!==c&&_f(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),r.unescape===!0&&(_&&(_=mf.removeBackslashes(_)),j&&A===!0&&(j=mf.removeBackslashes(j)));let p={prefix:Be,input:t,start:u,base:j,glob:_,isBrace:f,isBracket:g,isGlob:d,isExtglob:y,isGlobstar:w,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,_f(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let E=0;E<s.length;E++){let O=b?b+1:u,P=s[E],T=t.slice(O,P);r.tokens&&(E===0&&u!==0?(o[E].isPrefix=!0,o[E].value=Be):o[E].value=T,Ef(o[E]),p.maxDepth+=o[E].depth),(E!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let E=t.slice(b+1);a.push(E),r.tokens&&(o[o.length-1].value=E,Ef(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};bf.exports=pw});var Rf=m((x1,vf)=>{"use strict";var _n=Ri(),Ie=Ai(),{MAX_LENGTH:En,POSIX_REGEX_SOURCE:dw,REGEX_NON_SPECIAL_CHARS:mw,REGEX_SPECIAL_CHARS_BACKREF:gw,REPLACEMENTS:xf}=_n,yw=(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`,Yo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=xf[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?"":"?:",c=Ie.isWindows(e),l=_n.globChars(c),u=_n.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:d,DOTS_SLASH:y,NO_DOT:w,NO_DOT_SLASH:v,NO_DOTS_SLASH:A,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:H}=l,L=R=>`(${a}(?:(?!${H}${R.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 S={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,S),n=t.length;let W=[],j=[],Be=[],_=s,p,b=()=>S.index===n-1,E=S.peek=(R=1)=>t[S.index+R],O=S.advance=()=>t[++S.index]||"",P=()=>t.slice(S.index+1),T=(R="",K=0)=>{S.consumed+=R,S.index+=K},Y=R=>{S.output+=R.output!=null?R.output:R.value,T(R.value)},he=()=>{let R=1;for(;E()==="!"&&(E(2)!=="("||E(3)==="?");)O(),S.start++,R++;return R%2===0?!1:(S.negated=!0,S.start++,!0)},ne=R=>{S[R]++,Be.push(R)},be=R=>{S[R]--,Be.pop()},k=R=>{if(_.type==="globstar"){let K=S.braces>0&&(R.type==="comma"||R.type==="brace"),x=R.extglob===!0||W.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!K&&!x&&(S.output=S.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,S.output+=_.output)}if(W.length&&R.type!=="paren"&&(W[W.length-1].inner+=R.value),(R.value||R.output)&&Y(R),_&&_.type==="text"&&R.type==="text"){_.value+=R.value,_.output=(_.output||"")+R.value;return}R.prev=_,o.push(R),_=R},qe=(R,K)=>{let x={...u[K],conditions:1,inner:""};x.prev=_,x.parens=S.parens,x.output=S.output;let F=(r.capture?"(":"")+x.open;ne("parens"),k({type:R,value:K,output:S.output?"":d}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(x)},oE=R=>{let K=R.close+(r.capture?")":""),x;if(R.type==="negate"){let F=ie;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(K=R.close=`)$))${F}`),R.inner.includes("*")&&(x=P())&&/^\.[^\\/.]+$/.test(x)){let Q=Yo(x,{...e,fastpaths:!1}).output;K=R.close=`)${Q})${F})`}R.prev.type==="bos"&&(S.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:K}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let R=!1,K=t.replace(gw,(x,F,Q,we,se,uo)=>we==="\\"?(R=!0,x):we==="?"?F?F+we+(se?M.repeat(se.length):""):uo===0?B+(se?M.repeat(se.length):""):M.repeat(Q.length):we==="."?h.repeat(Q.length):we==="*"?F?F+we+(se?ie:""):ie:F?x:`\\${x}`);return R===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,x=>x.length%2===0?"\\\\":x?"\\":"")),K===t&&r.contains===!0?(S.output=t,S):(S.output=Ie.wrapOutput(K,S,e),S)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let x=E();if(x==="/"&&r.bash!==!0||x==="."||x===";")continue;if(!x){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,S.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),S.brackets===0){k({type:"text",value:p});continue}}if(S.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let x=_.value.slice(1);if(x.includes("[")&&(_.posix=!0,x.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),we=_.value.slice(F+2),se=dw[we];if(se){_.value=Q+se,S.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=d);continue}}}(p==="["&&E()!==":"||p==="-"&&E()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(S.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){S.quotes=S.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(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Pr("opening","("));let x=W[W.length-1];if(x&&S.parens===x.parens+1){oE(W.pop());continue}k({type:"paren",value:p,output:S.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(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Pr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let x=_.value.slice(1);if(_.posix!==!0&&x[0]==="^"&&!x.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(x))continue;let F=Ie.escapeRegex(_.value);if(S.output=S.output.slice(0,-_.value.length),r.literalBrackets===!0){S.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,S.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let x={type:"brace",value:p,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};j.push(x),k(x);continue}if(p==="}"){let x=j[j.length-1];if(r.nobrace===!0||!x){k({type:"text",value:p,output:p});continue}let F=")";if(x.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=yw(we,r),S.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){let Q=S.output.slice(0,x.outputIndex),we=S.tokens.slice(x.tokensIndex);x.value=x.output="\\{",p=F="\\}",S.output=Q;for(let se of we)S.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),j.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let x=p,F=j[j.length-1];F&&Be[Be.length-1]==="braces"&&(F.comma=!0,x="|"),k({type:"comma",value:p,output:x});continue}if(p==="/"){if(_.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(S.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let x=j[j.length-1];_.type="dots",_.output+=p,_.value+=p,x.dots=!0;continue}if(S.braces+S.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&&E()==="("&&E(2)!=="?"){qe("qmark",p);continue}if(_&&_.type==="paren"){let F=E(),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&&E()==="("&&(E(2)!=="?"||!/[!=<:]/.test(E(3)))){qe("negate",p);continue}if(r.nonegate!==!0&&S.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&E()==="("&&E(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")||S.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let x=mw.exec(P());x&&(p+=x[0],S.index+=x[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,S.backtrack=!0,S.globstar=!0,T(p);continue}let R=P();if(r.noextglob!==!0&&/^\([^?]/.test(R)){qe("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let x=_.prev,F=x.prev,Q=x.type==="slash"||x.type==="bos",we=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||R[0]&&R[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=S.braces>0&&(x.type==="comma"||x.type==="brace"),uo=W.length&&(x.type==="pipe"||x.type==="paren");if(!Q&&x.type!=="paren"&&!se&&!uo){k({type:"star",value:p,output:""});continue}for(;R.slice(0,3)==="/**";){let tn=t[S.index+4];if(tn&&tn!=="/")break;R=R.slice(3),T("/**",3)}if(x.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),S.output=_.output,S.globstar=!0,T(p);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!we&&b()){S.output=S.output.slice(0,-(x.output+_.output).length),x.output=`(?:${x.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,S.globstar=!0,S.output+=x.output+_.output,T(p);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&R[0]==="/"){let tn=R[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(x.output+_.output).length),x.output=`(?:${x.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${tn})`,_.value+=p,S.output+=x.output+_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&R[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,S.output=_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,S.output+=_.output,S.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}(S.index===S.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(S.output+=v,_.output+=v):r.dot===!0?(S.output+=A,_.output+=A):(S.output+=I,_.output+=I),E()!=="*"&&(S.output+=d,_.output+=d)),k(K)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));S.output=Ie.escapeLast(S.output,"["),be("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing",")"));S.output=Ie.escapeLast(S.output,"("),be("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","}"));S.output=Ie.escapeLast(S.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),S.backtrack===!0){S.output="";for(let R of S.tokens)S.output+=R.output!=null?R.output:R.value,R.suffix&&(S.output+=R.suffix)}return S};Yo.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=xf[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:d}=_n.globChars(s),y=r.dot?h:u,w=r.dot?f:u,v=r.capture?"":"?:",A={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${v}(?:(?!${d}${I.dot?l:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${c}${M}`;case".*":return`${o}${c}${M}`;case"*.*":return`${y}${M}${o}${c}${M}`;case"*/*":return`${y}${M}${a}${c}${w}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${w}${c}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${w}${M}${o}${c}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${c}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},H=Ie.removePrefix(t,A),L=N(H);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};vf.exports=Yo});var Tf=m((v1,Af)=>{"use strict";var _w=require("path"),Ew=wf(),zo=Rf(),Ko=Ai(),Sw=Ri(),bw=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 d=g(f);if(d)return d}return!1}}let i=bw(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=Ko.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};c=J(n.ignore,u,r)}let l=(u,h=!1)=>{let{isMatch:f,match:g,output:d}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:d,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):c(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&&(l.state=a),l};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?Ko.toPosixSlashes:null),a=t===i,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};J.matchBase=(t,e,r,i=Ko.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(_w.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)):zo(t,{...e,fastpaths:!1});J.scan=(t,e)=>Ew(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 c=J.toRegex(a,e);return i===!0&&(c.state=t),c};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=zo.fastpaths(t,e)),n.output||(n=zo(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=Sw;Af.exports=J});var Cf=m((R1,Of)=>{"use strict";Of.exports=Tf()});var Df=m((A1,Nf)=>{"use strict";var Lf=require("util"),If=lf(),et=Cf(),Vo=Ai(),Pf=t=>t===""||t==="./",kf=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},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 d=h(g,!0);(f?!d.isMatch:d.isMatch)&&(f?i.add(d.output):(i.delete(d.output),n.add(d.output)))}}let l=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return l};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: "${Lf.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>V.contains(t,i,r));if(typeof e=="string"){if(Pf(t)||Pf(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(!Vo.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: "${Lf.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};V.capture=(t,e,r)=>{let i=Vo.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?Vo.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 If(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||!kf(t)?[t]:If(t,e)};V.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return V.braces(t,{...e,expand:!0})};V.hasBraces=kf;Nf.exports=V});var jf=m(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 ww=require("path"),xw=Ah(),Xo=Df(),Ff="**",vw="\\",Rw=/[*?]|^!/,Aw=/\[[^[]*]/,Tw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Ow=/[!*+?@]\([^(]*\)/,Cw=/,|\.\./;function Mf(t,e={}){return!Bf(t,e)}D.isStaticPattern=Mf;function Bf(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(vw)||Rw.test(t)||Aw.test(t)||Tw.test(t)||e.extglob!==!1&&Ow.test(t)||e.braceExpansion!==!1&&Pw(t))}D.isDynamicPattern=Bf;function Pw(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 Cw.test(i)}function Lw(t){return Sn(t)?t.slice(1):t}D.convertToPositivePattern=Lw;function Iw(t){return"!"+t}D.convertToNegativePattern=Iw;function Sn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=Sn;function qf(t){return!Sn(t)}D.isPositivePattern=qf;function kw(t){return t.filter(Sn)}D.getNegativePatterns=kw;function Nw(t){return t.filter(qf)}D.getPositivePatterns=Nw;function Dw(t){return t.filter(e=>!Zo(e))}D.getPatternsInsideCurrentDirectory=Dw;function Fw(t){return t.filter(Zo)}D.getPatternsOutsideCurrentDirectory=Fw;function Zo(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=Zo;function Mw(t){return xw(t,{flipBackslashes:!1})}D.getBaseDirectory=Mw;function Bw(t){return t.includes(Ff)}D.hasGlobStar=Bw;function Hf(t){return t.endsWith("/"+Ff)}D.endsWithSlashGlobStar=Hf;function qw(t){let e=ww.basename(t);return Hf(t)||Mf(e)}D.isAffectDepthOfReadingPattern=qw;function Hw(t){return t.reduce((e,r)=>e.concat(Uf(r)),[])}D.expandPatternsWithBraceExpansion=Hw;function Uf(t){return Xo.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=Uf;function Uw(t,e){let{parts:r}=Xo.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=Uw;function $f(t,e){return Xo.makeRe(t,e)}D.makeRe=$f;function $w(t,e){return t.map(r=>$f(r,e))}D.convertPatternsToRe=$w;function jw(t,e){return e.some(r=>r.test(t))}D.matchAny=jw});var zf=m((O1,Yf)=>{"use strict";var Gw=require("stream"),Gf=Gw.PassThrough,Ww=Array.prototype.slice;Yf.exports=Yw;function Yw(){let t=[],e=Ww.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=Gf(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Wf(arguments[u],i));return c(),this}function c(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(l);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,c())}function g(d){function y(){d.removeListener("merge2UnpipeEnd",y),d.removeListener("end",y),s&&d.removeListener("error",w),f()}function w(v){o.emit("error",v)}if(d._readableState.endEmitted)return f();d.on("merge2UnpipeEnd",y),d.on("end",y),s&&d.on("error",w),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<u.length;d++)g(u[d]);f()}function l(){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 Wf(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Wf(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gf(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vf=m(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.merge=void 0;var zw=zf();function Kw(t){let e=zw(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Kf(t)),e.once("end",()=>Kf(t)),e}bn.merge=Kw;function Kf(t){t.forEach(e=>e.emit("close"))}});var Xf=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.isEmpty=Lr.isString=void 0;function Vw(t){return typeof t=="string"}Lr.isString=Vw;function Xw(t){return t===""}Lr.isEmpty=Xw});var gt=m(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 Zw=gh();de.array=Zw;var Qw=yh();de.errno=Qw;var Jw=_h();de.fs=Jw;var ex=Eh();de.path=ex;var tx=jf();de.pattern=tx;var rx=Vf();de.stream=rx;var ix=Xf();de.string=ix});var Jf=m(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 nx(t,e){let r=Zf(t),i=Qf(t,e.ignore),n=r.filter(c=>yt.pattern.isStaticPattern(c,e)),s=r.filter(c=>yt.pattern.isDynamicPattern(c,e)),o=Qo(n,i,!1),a=Qo(s,i,!0);return o.concat(a)}me.generate=nx;function Qo(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=Jo(n),a=Jo(s);return i.push(...ea(o,e,r)),"."in a?i.push(ta(".",s,e,r)):i.push(...ea(a,e,r)),i}me.convertPatternsToTasks=Qo;function Zf(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Zf;function Qf(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Qf;function Jo(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=Jo;function ea(t,e,r){return Object.keys(t).map(i=>ta(i,t[i],e,r))}me.convertPatternGroupsToTasks=ea;function ta(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=ta});var tp=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.removeDuplicateSlashes=Ir.transform=void 0;var sx=/(?!^)\/{2,}/g;function ox(t){return t.map(e=>ep(e))}Ir.transform=ox;function ep(t){return t.replace(sx,"/")}Ir.removeDuplicateSlashes=ep});var ip=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.read=void 0;function ax(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){rp(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ra(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){rp(r,s);return}ra(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ra(r,o)})})}wn.read=ax;function rp(t,e){t(e)}function ra(t,e){t(null,e)}});var np=m(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.read=void 0;function cx(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}}xn.read=cx});var sp=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var vn=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:vn.lstat,stat:vn.stat,lstatSync:vn.lstatSync,statSync:vn.statSync};function lx(t){return t===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),t)}Nt.createFileSystemAdapter=lx});var op=m(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var ux=sp(),ia=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=ux.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}};na.default=ia});var sr=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.statSync=Dt.stat=Dt.Settings=void 0;var ap=ip(),hx=np(),sa=op();Dt.Settings=sa.default;function fx(t,e,r){if(typeof e=="function"){ap.read(t,oa(),e);return}ap.read(t,oa(e),r)}Dt.stat=fx;function px(t,e){let r=oa(e);return hx.read(t,r)}Dt.statSync=px;function oa(t={}){return t instanceof sa.default?t:new sa.default(t)}});var up=m((q1,lp)=>{var cp;lp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(cp||(cp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var fp=m((H1,hp)=>{hp.exports=mx;var dx=up();function mx(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(c){function l(){e&&e(c,r),e=null}s?dx(l):l()}function a(c,l,u){r[c]=u,(--i===0||l)&&o(l)}i?n?n.forEach(function(c){t[c](function(l,u){a(c,l,u)})}):t.forEach(function(c,l){c(function(u,h){a(l,u,h)})}):o(null),s=!1}});var aa=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Rn=process.versions.node.split(".");if(Rn[0]===void 0||Rn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var pp=Number.parseInt(Rn[0],10),gx=Number.parseInt(Rn[1],10),dp=10,yx=10,_x=pp>dp,Ex=pp===dp&&gx>=yx;An.IS_SUPPORT_READDIR_WITH_FILE_TYPES=_x||Ex});var mp=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.createDirentFromStats=void 0;var ca=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 Sx(t,e){return new ca(t,e)}Tn.createDirentFromStats=Sx});var la=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.fs=void 0;var bx=mp();On.fs=bx});var ua=m(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.joinPathSegments=void 0;function wx(t,e,r){return t.endsWith(r)?t+e:t+r+e}Cn.joinPathSegments=wx});var bp=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var xx=sr(),gp=fp(),vx=aa(),yp=la(),_p=ua();function Rx(t,e,r){if(!e.stats&&vx.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ep(t,e,r);return}Sp(t,e,r)}Ft.read=Rx;function Ep(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Pn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:_p.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ha(r,s);return}let o=s.map(a=>Ax(a,e));gp(o,(a,c)=>{if(a!==null){Pn(r,a);return}ha(r,c)})})}Ft.readdirWithFileTypes=Ep;function Ax(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=yp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Sp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Pn(r,i);return}let s=n.map(o=>{let a=_p.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{xx.stat(a,e.fsStatSettings,(l,u)=>{if(l!==null){c(l);return}let h={name:o,path:a,dirent:yp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),c(null,h)})}});gp(s,(o,a)=>{if(o!==null){Pn(r,o);return}ha(r,a)})})}Ft.readdir=Sp;function Pn(t,e){t(e)}function ha(t,e){t(null,e)}});var Ap=m(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.readdir=Mt.readdirWithFileTypes=Mt.read=void 0;var Tx=sr(),Ox=aa(),wp=la(),xp=ua();function Cx(t,e){return!e.stats&&Ox.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vp(t,e):Rp(t,e)}Mt.read=Cx;function vp(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:xp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=wp.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Mt.readdirWithFileTypes=vp;function Rp(t,e){return e.fs.readdirSync(t).map(i=>{let n=xp.joinPathSegments(t,i,e.pathSegmentSeparator),s=Tx.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:wp.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Mt.readdir=Rp});var Tp=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var kr=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:kr.lstat,stat:kr.stat,lstatSync:kr.lstatSync,statSync:kr.statSync,readdir:kr.readdir,readdirSync:kr.readdirSync};function Px(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bt.FILE_SYSTEM_ADAPTER),t)}Bt.createFileSystemAdapter=Px});var Op=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var Lx=require("path"),Ix=sr(),kx=Tp(),fa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=kx.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Lx.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Ix.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};pa.default=fa});var Ln=m(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.Settings=qt.scandirSync=qt.scandir=void 0;var Cp=bp(),Nx=Ap(),da=Op();qt.Settings=da.default;function Dx(t,e,r){if(typeof e=="function"){Cp.read(t,ma(),e);return}Cp.read(t,ma(e),r)}qt.scandir=Dx;function Fx(t,e){let r=ma(e);return Nx.read(t,r)}qt.scandirSync=Fx;function ma(t={}){return t instanceof da.default?t:new da.default(t)}});var Lp=m((X1,Pp)=>{"use strict";function Mx(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}}Pp.exports=Mx});var kp=m((Z1,ga)=>{"use strict";var Bx=Lp();function Ip(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=Bx(qx),n=null,s=null,o=0,a=null,c={push:y,drain:Ue,saturated:Ue,pause:u,paused:!1,concurrency:r,running:l,resume:g,idle:d,length:h,getQueue:f,unshift:w,empty:Ue,kill:A,killAndDrain:M,error:re};return c;function l(){return o}function u(){c.paused=!0}function h(){for(var N=n,H=0;N;)N=N.next,H++;return H}function f(){for(var N=n,H=[];N;)H.push(N.value),N=N.next;return H}function g(){if(c.paused){c.paused=!1;for(var N=0;N<c.concurrency;N++)o++,v()}}function d(){return o===0&&c.length()===0}function y(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,L.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=L,s=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function w(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,o===c.concurrency||c.paused?n?(L.next=n,n=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function v(N){N&&i.release(N);var H=n;H?c.paused?o--:(s===n&&(s=null),n=H.next,H.next=null,e.call(t,H.value,H.worked),s===null&&c.empty()):--o===0&&c.drain()}function A(){n=null,s=null,c.drain=Ue}function M(){n=null,s=null,c.drain(),c.drain=Ue}function re(N){a=N}}function Ue(){}function qx(){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 Hx(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=Ip(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=c,n.drained=l,n;function a(u){var h=new Promise(function(f,g){s(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function c(u){var h=new Promise(function(f,g){o(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function l(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}ga.exports=Ip;ga.exports.promise=Hx});var In=m(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function Ux(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=Ux;function $x(t,e){return t===null||t(e)}tt.isAppliedFilter=$x;function jx(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=jx;function Gx(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=Gx});var Ea=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var Wx=In(),ya=class{constructor(e,r){this._root=e,this._settings=r,this._root=Wx.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};_a.default=ya});var wa=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Yx=require("events"),zx=Ln(),Kx=kp(),kn=In(),Vx=Ea(),Sa=class extends Vx.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=zx.scandir,this._emitter=new Yx.EventEmitter,this._queue=Kx(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||!kn.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=kn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),kn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&kn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ba.default=Sa});var Np=m(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var Xx=wa(),xa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Xx.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Zx(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Qx(e,this._storage)}),this._reader.read()}};va.default=xa;function Zx(t,e){t(e)}function Qx(t,e){t(null,e)}});var Dp=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Jx=require("stream"),ev=wa(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new ev.default(this._root,this._settings),this._stream=new Jx.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}};Aa.default=Ra});var Fp=m(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var tv=Ln(),Nn=In(),rv=Ea(),Ta=class extends rv.default{constructor(){super(...arguments),this._scandir=tv.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(Nn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Nn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Nn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Nn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Oa.default=Ta});var Mp=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var iv=Fp(),Ca=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new iv.default(this._root,this._settings)}read(){return this._reader.read()}};Pa.default=Ca});var Bp=m(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var nv=require("path"),sv=Ln(),La=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,nv.sep),this.fsScandirSettings=new sv.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}};Ia.default=La});var Fn=m(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var qp=Np(),ov=Dp(),av=Mp(),ka=Bp();rt.Settings=ka.default;function cv(t,e,r){if(typeof e=="function"){new qp.default(t,Dn()).read(e);return}new qp.default(t,Dn(e)).read(r)}rt.walk=cv;function lv(t,e){let r=Dn(e);return new av.default(t,r).read()}rt.walkSync=lv;function uv(t,e){let r=Dn(e);return new ov.default(t,r).read()}rt.walkStream=uv;function Dn(t={}){return t instanceof ka.default?t:new ka.default(t)}});var Mn=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var hv=require("path"),fv=sr(),Hp=gt(),Na=class{constructor(e){this._settings=e,this._fsStatSettings=new fv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return hv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Hp.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Hp.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Da.default=Na});var Ba=m(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var pv=require("stream"),dv=sr(),mv=Fn(),gv=Mn(),Fa=class extends gv.default{constructor(){super(...arguments),this._walkStream=mv.walkStream,this._stat=dv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new pv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&n.push(c),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))})}};Ma.default=Fa});var Up=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var yv=Fn(),_v=Mn(),Ev=Ba(),qa=class extends _v.default{constructor(){super(...arguments),this._walkAsync=yv.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))})}};Ha.default=qa});var $p=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Nr=gt(),Ua=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))}};$a.default=Ua});var jp=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Sv=$p(),ja=class extends Sv.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((c,l)=>{let u=s.segments[l];return!!(u.dynamic&&u.patternRe.test(c)||!u.dynamic&&u.pattern===c)}))return!0}return!1}};Ga.default=ja});var Gp=m(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Bn=gt(),bv=jp(),Wa=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 bv.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Bn.pattern.isAffectDepthOfReadingPattern);return Bn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Bn.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!Bn.pattern.matchAny(e,r)}};Ya.default=Wa});var Wp=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var or=gt(),za=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}};Ka.default=za});var Yp=m(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var wv=gt(),Va=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return wv.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Xa.default=Va});var Kp=m(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var zp=gt(),Za=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=zp.path.makeAbsolute(this._settings.cwd,r),r=zp.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Qa.default=Za});var qn=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var xv=require("path"),vv=Gp(),Rv=Wp(),Av=Yp(),Tv=Kp(),Ja=class{constructor(e){this._settings=e,this.errorFilter=new Av.default(this._settings),this.entryFilter=new Rv.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new vv.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Tv.default(this._settings)}_getRootDirectory(e){return xv.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}}};ec.default=Ja});var Vp=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Ov=Up(),Cv=qn(),tc=class extends Cv.default{constructor(){super(...arguments),this._reader=new Ov.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)}};rc.default=tc});var Xp=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var Pv=require("stream"),Lv=Ba(),Iv=qn(),ic=class extends Iv.default{constructor(){super(...arguments),this._reader=new Lv.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new Pv.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)}};nc.default=ic});var Zp=m(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var kv=sr(),Nv=Fn(),Dv=Mn(),sc=class extends Dv.default{constructor(){super(...arguments),this._walkSync=Nv.walkSync,this._statSync=kv.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)}};oc.default=sc});var Qp=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var Fv=Zp(),Mv=qn(),ac=class extends Mv.default{constructor(){super(...arguments),this._reader=new Fv.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)}};cc.default=ac});var Jp=m(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Dr=require("fs"),Bv=require("os"),qv=Math.max(Bv.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 lc=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,qv),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=lc});var id=m((wL,rd)=>{"use strict";var ed=Jf(),td=tp(),Hv=Vp(),Uv=Xp(),$v=Qp(),uc=Jp(),ar=gt();async function hc(t,e){Mr(t);let r=fc(t,Hv.default,e),i=await Promise.all(r);return ar.array.flatten(i)}(function(t){function e(o,a){Mr(o);let c=fc(o,$v.default,a);return ar.array.flatten(c)}t.sync=e;function r(o,a){Mr(o);let c=fc(o,Uv.default,a);return ar.stream.merge(c)}t.stream=r;function i(o,a){Mr(o);let c=td.transform([].concat(o)),l=new uc.default(a);return ed.generate(c,l)}t.generateTasks=i;function n(o,a){Mr(o);let c=new uc.default(a);return ar.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=n;function s(o){return Mr(o),ar.path.escape(o)}t.escapePath=s})(hc||(hc={}));function fc(t,e,r){let i=td.transform([].concat(t)),n=new uc.default(r),s=ed.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")}rd.exports=hc});var md=m((TL,dd)=>{dd.exports=pd;pd.sync=sR;var hd=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 fd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:nR(e,r)}function pd(t,e,r){hd.stat(t,function(i,n){r(i,i?!1:fd(n,t,e))})}function sR(t,e){return fd(hd.statSync(t),t,e)}});var Sd=m((OL,Ed)=>{Ed.exports=yd;yd.sync=oR;var gd=require("fs");function yd(t,e,r){gd.stat(t,function(i,n){r(i,i?!1:_d(n,e))})}function oR(t,e){return _d(gd.statSync(t),e)}function _d(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),c=parseInt("010",8),l=parseInt("001",8),u=a|c,h=r&l||r&c&&n===o||r&a&&i===s||r&u&&s===0;return h}});var wd=m((PL,bd)=>{var CL=require("fs"),Hn;process.platform==="win32"||global.TESTING_WINDOWS?Hn=md():Hn=Sd();bd.exports=mc;mc.sync=cR;function mc(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){mc(t,e||{},function(s,o){s?n(s):i(o)})})}Hn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function cR(t,e){try{return Hn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Cd=m((LL,Od)=>{var qr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xd=require("path"),lR=qr?";":":",vd=wd(),Rd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Ad=(t,e)=>{let r=e.colon||lR,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}},Td=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Ad(t,e),o=[],a=l=>new Promise((u,h)=>{if(l===i.length)return e.all&&o.length?u(o):h(Rd(t));let f=i[l],g=/^".*"$/.test(f)?f.slice(1,-1):f,d=xd.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;u(c(y,l,0))}),c=(l,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let d=n[h];vd(l+d,{pathExt:s},(y,w)=>{if(!y&&w)if(e.all)o.push(l+d);else return f(l+d);return f(c(l,u,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},uR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Ad(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=xd.join(c,t),u=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(vd.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 Rd(t)};Od.exports=Td;Td.sync=uR});var yc=m((IL,gc)=>{"use strict";var Pd=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};gc.exports=Pd;gc.exports.default=Pd});var Nd=m((kL,kd)=>{"use strict";var Ld=require("path"),hR=Cd(),fR=yc();function Id(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?Ld.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Ld.resolve(n?t.options.cwd:"",o)),o}function pR(t){return Id(t)||Id(t,!0)}kd.exports=pR});var Dd=m((NL,Ec)=>{"use strict";var _c=/([()\][%!^"`<>&|;, *?])/g;function dR(t){return t=t.replace(_c,"^$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(_c,"^$1"),e&&(t=t.replace(_c,"^$1")),t}Ec.exports.command=dR;Ec.exports.argument=mR});var Md=m((DL,Fd)=>{"use strict";Fd.exports=/^#!(.*)/});var qd=m((FL,Bd)=>{"use strict";var gR=Md();Bd.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 Ud=m((ML,Hd)=>{"use strict";var Sc=require("fs"),yR=qd();function _R(t){let r=Buffer.alloc(150),i;try{i=Sc.openSync(t,"r"),Sc.readSync(i,r,0,150,0),Sc.closeSync(i)}catch{}return yR(r.toString())}Hd.exports=_R});var Wd=m((BL,Gd)=>{"use strict";var ER=require("path"),$d=Nd(),jd=Dd(),SR=Ud(),bR=process.platform==="win32",wR=/\.(?:com|exe)$/i,xR=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function vR(t){t.file=$d(t);let e=t.file&&SR(t.file);return e?(t.args.unshift(t.file),t.command=e,$d(t)):t.file}function RR(t){if(!bR)return t;let e=vR(t),r=!wR.test(e);if(t.options.forceShell||r){let i=xR.test(e);t.command=ER.normalize(t.command),t.command=jd.command(t.command),t.args=t.args.map(s=>jd.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 Kd=m((qL,zd)=>{"use strict";var bc=process.platform==="win32";function wc(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(!bc)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Yd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Yd(t,e){return bc&&t===1&&!e.file?wc(e.original,"spawn"):null}function OR(t,e){return bc&&t===1&&!e.file?wc(e.original,"spawnSync"):null}zd.exports={hookChildProcess:TR,verifyENOENT:Yd,verifyENOENTSync:OR,notFoundError:wc}});var Zd=m((HL,Hr)=>{"use strict";var Vd=require("child_process"),xc=Wd(),vc=Kd();function Xd(t,e,r){let i=xc(t,e,r),n=Vd.spawn(i.command,i.args,i.options);return vc.hookChildProcess(n,i),n}function CR(t,e,r){let i=xc(t,e,r),n=Vd.spawnSync(i.command,i.args,i.options);return n.error=n.error||vc.verifyENOENTSync(n.status,i),n}Hr.exports=Xd;Hr.exports.spawn=Xd;Hr.exports.sync=CR;Hr.exports._parse=xc;Hr.exports._enoent=vc});var Jd=m((UL,Qd)=>{"use strict";Qd.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 rm=m((HL,Pi)=>{"use strict";var Ci=require("path"),em=yc(),tm=t=>{t={cwd:process.cwd(),path:process.env[em()],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=tm;Pi.exports.default=tm;Pi.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=em({env:e});return t.path=e[r],e[r]=Pi.exports(t),e}});var nm=m((UL,Rc)=>{"use strict";var im=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Rc.exports=im;Rc.exports.default=im});var om=m(($L,$n)=>{"use strict";var OR=nm(),Un=new WeakMap,sm=(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(Un.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 OR(s,t),Un.set(s,i),s};$n.exports=sm;$n.exports.default=sm;$n.exports.callCount=t=>{if(!Un.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Un.get(t)}});var am=m(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.SIGNALS=void 0;var CR=[{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=CR});var Ac=m(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var PR=function(){let t=lm-cm+1;return Array.from({length:t},LR)};Ur.getRealtimeSignals=PR;var LR=function(t,e){return{name:`SIGRT${e+1}`,number:cm+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},cm=34,lm=64;Ur.SIGRTMAX=lm});var um=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.getSignals=void 0;var IR=require("os"),kR=am(),NR=Ac(),DR=function(){let t=(0,NR.getRealtimeSignals)();return[...kR.SIGNALS,...t].map(FR)};Gn.getSignals=DR;var FR=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=IR.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var fm=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.signalsByNumber=$r.signalsByName=void 0;var MR=require("os"),hm=um(),BR=Ac(),qR=function(){return(0,hm.getSignals)().reduce(HR,{})},HR=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}}},UR=qR();$r.signalsByName=UR;var $R=function(){let t=(0,hm.getSignals)(),e=BR.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>jR(n,t));return Object.assign({},...r)},jR=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:c}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:c}}},GR=function(t,e){let r=e.find(({name:i})=>MR.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},WR=$R();$r.signalsByNumber=WR});var dm=m((zL,pm)=>{"use strict";var{signalsByName:YR}=fm(),zR=({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",KR=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,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:YR[n].description,g=i&&i.code,y=`Command ${zR({timedOut:c,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,x=Object.prototype.toString.call(i)==="[object Error]",v=x?`${y}
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 rm=m(($L,Pi)=>{"use strict";var Ci=require("path"),em=yc(),tm=t=>{t={cwd:process.cwd(),path:process.env[em()],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=tm;Pi.exports.default=tm;Pi.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=em({env:e});return t.path=e[r],e[r]=Pi.exports(t),e}});var nm=m((jL,Rc)=>{"use strict";var im=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Rc.exports=im;Rc.exports.default=im});var om=m((GL,$n)=>{"use strict";var PR=nm(),Un=new WeakMap,sm=(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(Un.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),Un.set(s,i),s};$n.exports=sm;$n.exports.default=sm;$n.exports.callCount=t=>{if(!Un.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Un.get(t)}});var am=m(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 Ac=m(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var IR=function(){let t=lm-cm+1;return Array.from({length:t},kR)};Ur.getRealtimeSignals=IR;var kR=function(t,e){return{name:`SIGRT${e+1}`,number:cm+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},cm=34,lm=64;Ur.SIGRTMAX=lm});var um=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.getSignals=void 0;var NR=require("os"),DR=am(),FR=Ac(),MR=function(){let t=(0,FR.getRealtimeSignals)();return[...DR.SIGNALS,...t].map(BR)};Gn.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 fm=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.signalsByNumber=$r.signalsByName=void 0;var qR=require("os"),hm=um(),HR=Ac(),UR=function(){return(0,hm.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}}},jR=UR();$r.signalsByName=jR;var GR=function(){let t=(0,hm.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:c}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:c}}},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=GR();$r.signalsByNumber=zR});var dm=m((VL,pm)=>{"use strict";var{signalsByName:KR}=fm(),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:c,isCanceled:l,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:c,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,w=Object.prototype.toString.call(i)==="[object Error]",v=w?`${y}
5
5
  ${i.message}`:y,A=[v,e,t].filter(Boolean).join(`
6
- `);return x?(i.originalMessage=i.message,i.message=A):i=new Error(A),i.shortMessage=v,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=!!c,i.isCanceled=l,i.killed=u&&!c,i};pm.exports=KR});var gm=m((KL,Tc)=>{"use strict";var Wn=["stdin","stdout","stderr"],VR=t=>Wn.some(e=>t[e]!==void 0),mm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Wn.map(i=>t[i]);if(VR(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Wn.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,Wn.length);return Array.from({length:r},(i,n)=>e[n])};Tc.exports=mm;Tc.exports.node=t=>{let e=mm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ym=m((VL,Yn)=>{Yn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Yn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Yn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var xm=m((XL,Wr)=>{var Z=global.process,cr=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"};cr(Z)?(_m=require("assert"),jr=ym(),Em=/^win/i.test(Z.platform),Li=require("events"),typeof Li!="function"&&(Li=Li.EventEmitter),Z.__signal_exit_emitter__?ce=Z.__signal_exit_emitter__:(ce=Z.__signal_exit_emitter__=new Li,ce.count=0,ce.emitted={}),ce.infinite||(ce.setMaxListeners(1/0),ce.infinite=!0),Wr.exports=function(t,e){if(!cr(global.process))return function(){};_m.equal(typeof t,"function","a callback must be provided for exit handler"),Gr===!1&&Oc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ce.removeListener(r,t),ce.listeners("exit").length===0&&ce.listeners("afterexit").length===0&&zn()};return ce.on(r,t),i},zn=function(){!Gr||!cr(global.process)||(Gr=!1,jr.forEach(function(e){try{Z.removeListener(e,Kn[e])}catch{}}),Z.emit=Vn,Z.reallyExit=Cc,ce.count-=1)},Wr.exports.unload=zn,lr=function(e,r,i){ce.emitted[e]||(ce.emitted[e]=!0,ce.emit(e,r,i))},Kn={},jr.forEach(function(t){Kn[t]=function(){if(cr(global.process)){var r=Z.listeners(t);r.length===ce.count&&(zn(),lr("exit",null,t),lr("afterexit",null,t),Em&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Wr.exports.signals=function(){return jr},Gr=!1,Oc=function(){Gr||!cr(global.process)||(Gr=!0,ce.count+=1,jr=jr.filter(function(e){try{return Z.on(e,Kn[e]),!0}catch{return!1}}),Z.emit=bm,Z.reallyExit=Sm)},Wr.exports.load=Oc,Cc=Z.reallyExit,Sm=function(e){cr(global.process)&&(Z.exitCode=e||0,lr("exit",Z.exitCode,null),lr("afterexit",Z.exitCode,null),Cc.call(Z,Z.exitCode))},Vn=Z.emit,bm=function(e,r){if(e==="exit"&&cr(global.process)){r!==void 0&&(Z.exitCode=r);var i=Vn.apply(this,arguments);return lr("exit",Z.exitCode,null),lr("afterexit",Z.exitCode,null),i}else return Vn.apply(this,arguments)}):Wr.exports=function(){return function(){}};var _m,jr,Em,Li,ce,zn,lr,Kn,Gr,Oc,Cc,Sm,Vn,bm});var vm=m((ZL,wm)=>{"use strict";var XR=require("os"),ZR=xm(),QR=1e3*5,JR=(t,e="SIGTERM",r={})=>{let i=t(e);return eA(t,e,r,i),i},eA=(t,e,r,i)=>{if(!tA(e,r,i))return;let n=iA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},tA=(t,{forceKillAfterTimeout:e},r)=>rA(t)&&e!==!1&&r,rA=t=>t===XR.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",iA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return QR;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},nA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},sA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},oA=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,c)=>{n=setTimeout(()=>{sA(t,r,c)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},aA=({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})`)},cA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=ZR(()=>{t.kill()});return i.finally(()=>{n()})};wm.exports={spawnedKill:JR,spawnedCancel:nA,setupTimeout:oA,validateTimeout:aA,setExitHandler:cA}});var Am=m((QL,Rm)=>{"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";Rm.exports=it});var Om=m((JL,Tm)=>{"use strict";var{PassThrough:lA}=require("stream");Tm.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",c=>{a.push(c),n?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Cm=m((eI,Ii)=>{"use strict";var{constants:uA}=require("buffer"),hA=require("stream"),{promisify:fA}=require("util"),pA=Om(),dA=fA(hA.pipeline),Xn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Pc(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=pA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=uA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await dA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Xn)})}),i.getBufferedValue()}Ii.exports=Pc;Ii.exports.buffer=(t,e)=>Pc(t,{...e,encoding:"buffer"});Ii.exports.array=(t,e)=>Pc(t,{...e,array:!0});Ii.exports.MaxBufferError=Xn});var Lm=m((tI,Pm)=>{"use strict";var{PassThrough:mA}=require("stream");Pm.exports=function(){var t=[],e=new mA({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 Dm=m((rI,Nm)=>{"use strict";var km=Am(),Im=Cm(),gA=Lm(),yA=(t,e)=>{e===void 0||t.stdin===void 0||(km(e)?e.pipe(t.stdin):t.stdin.end(e))},_A=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=gA();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Lc=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Ic=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Im(t,{encoding:e,maxBuffer:i}):Im.buffer(t,{maxBuffer:i})},EA=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Ic(t,{encoding:i,buffer:n,maxBuffer:s}),c=Ic(e,{encoding:i,buffer:n,maxBuffer:s}),l=Ic(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,c,l])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Lc(t,a),Lc(e,c),Lc(r,l)])}},SA=({input:t})=>{if(km(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Nm.exports={handleInput:yA,makeAllStream:_A,getSpawnedResult:EA,validateInputSync:SA}});var Mm=m((iI,Fm)=>{"use strict";var bA=(async()=>{})().constructor.prototype,xA=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(bA,t)]),wA=(t,e)=>{for(let[r,i]of xA){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},vA=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)})});Fm.exports={mergePromise:wA,getSpawnedPromise:vA}});var Hm=m((nI,qm)=>{"use strict";var Bm=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],RA=/^[\w.-]+$/,AA=/"/g,TA=t=>typeof t!="string"||RA.test(t)?t:`"${t.replace(AA,'\\"')}"`,OA=(t,e)=>Bm(t,e).join(" "),CA=(t,e)=>Bm(t,e).map(r=>TA(r)).join(" "),PA=/ +/g,LA=t=>{let e=[];for(let r of t.trim().split(PA)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};qm.exports={joinCommand:OA,getEscapedCommand:CA,parseCommand:LA}});var zm=m((sI,Yr)=>{"use strict";var IA=require("path"),kc=require("child_process"),kA=Zd(),NA=Jd(),DA=rm(),FA=om(),Zn=dm(),$m=gm(),{spawnedKill:MA,spawnedCancel:BA,setupTimeout:qA,validateTimeout:HA,setExitHandler:UA}=vm(),{handleInput:$A,getSpawnedResult:jA,makeAllStream:GA,validateInputSync:WA}=Dm(),{mergePromise:Um,getSpawnedPromise:YA}=Mm(),{joinCommand:jm,parseCommand:Gm,getEscapedCommand:Wm}=Hm(),zA=1e3*1e3*100,KA=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?DA.env({env:s,cwd:i,execPath:n}):s},Ym=(t,e,r={})=>{let i=kA._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:zA,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=KA(r),r.stdio=$m(r),process.platform==="win32"&&IA.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?NA(e):e,Qn=(t,e,r)=>{let i=Ym(t,e,r),n=jm(t,e),s=Wm(t,e);HA(i.options);let o;try{o=kc.spawn(i.file,i.args,i.options)}catch(g){let d=new kc.ChildProcess,y=Promise.reject(Zn({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Um(d,y)}let a=YA(o),c=qA(o,i.options,a),l=UA(o,i.options,c),u={isCanceled:!1};o.kill=MA.bind(null,o.kill.bind(o)),o.cancel=BA.bind(null,o,u);let f=FA(async()=>{let[{error:g,exitCode:d,signal:y,timedOut:x},v,A,M]=await jA(o,i.options,l),re=ki(i.options,v),N=ki(i.options,A),H=ki(i.options,M);if(g||d!==0||y!==null){let L=Zn({error:g,exitCode:d,signal:y,stdout:re,stderr:N,all:H,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:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return $A(o,i.options.input),o.all=GA(o,i.options),Um(o,f)};Yr.exports=Qn;Yr.exports.sync=(t,e,r)=>{let i=Ym(t,e,r),n=jm(t,e),s=Wm(t,e);WA(i.options);let o;try{o=kc.spawnSync(i.file,i.args,i.options)}catch(l){throw Zn({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=ki(i.options,o.stdout,o.error),c=ki(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=Zn({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Yr.exports.command=(t,e)=>{let[r,...i]=Gm(t);return Qn(r,i,e)};Yr.exports.commandSync=(t,e)=>{let[r,...i]=Gm(t);return Qn.sync(r,i,e)};Yr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=$m.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Qn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var zr=m((uI,Xm)=>{"use strict";var Vm=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"]]);Xm.exports=t=>t?Object.keys(t).map(e=>[Vm.has(e)?Vm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ns=m((hI,sg)=>{"use strict";var Zm=typeof process=="object"&&process?process:{stdout:null,stderr:null},tT=require("events"),Qm=require("stream"),Jm=require("string_decoder").StringDecoder,Et=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),Jn=Symbol("emittingEnd"),Ni=Symbol("emittedError"),es=Symbol("closed"),eg=Symbol("read"),ts=Symbol("flush"),tg=Symbol("flushChunk"),Te=Symbol("encoding"),bt=Symbol("decoder"),rs=Symbol("flowing"),Di=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),le=Symbol("bufferLength"),Nc=Symbol("bufferPush"),Dc=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Fc=Symbol("emitData"),rg=Symbol("emitEnd"),Mc=Symbol("emitEnd2"),xt=Symbol("async"),Fi=t=>Promise.resolve().then(t),ig=global._MP_NO_ITERATOR_SYMBOLS_!=="1",rT=ig&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),iT=ig&&Symbol.iterator||Symbol("iterator not implemented"),nT=t=>t==="end"||t==="finish"||t==="prefinish",sT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,oT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),is=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()}},Bc=class extends is{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)}};sg.exports=class ng extends Qm{constructor(e){super(),this[rs]=!1,this[Di]=!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[xt]=e&&!!e.async||!1,this[bt]=this[Te]?new Jm(this[Te]):null,this[Et]=!1,this[Ht]=!1,this[Jn]=!1,this[es]=!1,this[Ni]=null,this.writable=!0,this.readable=!0,this[le]=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[le]}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[bt]&&this[bt].lastNeed||this[le]))throw new Error("cannot change encoding");this[Te]!==e&&(this[bt]=e?new Jm(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[bt].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[xt]}set async(e){this[xt]=this[xt]||!!e}write(e,r,i){if(this[Et])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[xt]?Fi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(oT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):sT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[le]!==0&&this[ts](!0),this.flowing?this.emit("data",e):this[Nc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[bt].write(e)),this.flowing&&this[le]!==0&&this[ts](!0),this.flowing?this.emit("data",e):this[Nc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[le]===0||e===0||e>this[le])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[le])]);let r=this[eg](e||null,this[ee][0]);return this[St](),r}[eg](e,r){return e===r.length||e===null?this[Dc]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[le]-=e),this.emit("data",r),!this[ee].length&&!this[Et]&&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[Et]=!0,this.writable=!1,(this.flowing||!this[Di])&&this[St](),this}[Kr](){this[ye]||(this[Di]=!1,this[rs]=!0,this.emit("resume"),this[ee].length?this[ts]():this[Et]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[rs]=!1,this[Di]=!0}get destroyed(){return this[ye]}get flowing(){return this[rs]}get paused(){return this[Di]}[Nc](e){this[ge]?this[le]+=1:this[le]+=e.length,this[ee].push(e)}[Dc](){return this[ee].length&&(this[ge]?this[le]-=1:this[le]-=this[ee][0].length),this[ee].shift()}[ts](e){do;while(this[tg](this[Dc]()));!e&&!this[ee].length&&!this[Et]&&this.emit("drain")}[tg](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===Zm.stdout||e===Zm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Bc(this,e,r):new is(this,e,r)),this[xt]?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[le]!==0?super.emit("readable"):nT(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ni]&&(this[xt]?Fi(()=>r.call(this,this[Ni])):r.call(this,this[Ni])),i}get emittedEnd(){return this[Ht]}[St](){!this[Jn]&&!this[Ht]&&!this[ye]&&this[ee].length===0&&this[Et]&&(this[Jn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[es]&&this.emit("close"),this[Jn]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[xt]?Fi(()=>this[Fc](r)):this[Fc](r):!1;if(e==="end")return this[rg]();if(e==="close"){if(this[es]=!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}[Fc](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[rg](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[xt]?Fi(()=>this[Mc]()):this[Mc]())}[Mc](){if(this[bt]){let r=this[bt].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())})}[rT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Et])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[Et]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(ye,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[iT](){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[le]=0,typeof this.close=="function"&&!this[es]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof ng||e instanceof Qm||e instanceof tT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ag=m((fI,og)=>{var aT=require("zlib").constants||{ZLIB_VERNUM:4736};og.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},aT))});var Gc=m((pI,gg)=>{"use strict";var cg=typeof process=="object"&&process?process:{stdout:null,stderr:null},cT=require("events"),lg=require("stream"),ug=require("string_decoder").StringDecoder,wt=Symbol("EOF"),vt=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),ss=Symbol("emittingEnd"),Mi=Symbol("emittedError"),os=Symbol("closed"),hg=Symbol("read"),as=Symbol("flush"),fg=Symbol("flushChunk"),Oe=Symbol("encoding"),Rt=Symbol("decoder"),cs=Symbol("flowing"),Bi=Symbol("paused"),Vr=Symbol("resume"),ue=Symbol("bufferLength"),qc=Symbol("bufferPush"),Hc=Symbol("bufferShift"),_e=Symbol("objectMode"),Ee=Symbol("destroyed"),Uc=Symbol("emitData"),pg=Symbol("emitEnd"),$c=Symbol("emitEnd2"),At=Symbol("async"),qi=t=>Promise.resolve().then(t),dg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",lT=dg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),uT=dg&&Symbol.iterator||Symbol("iterator not implemented"),hT=t=>t==="end"||t==="finish"||t==="prefinish",fT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,pT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ls=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()}},jc=class extends ls{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)}};gg.exports=class mg extends lg{constructor(e){super(),this[cs]=!1,this[Bi]=!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[At]=e&&!!e.async||!1,this[Rt]=this[Oe]?new ug(this[Oe]):null,this[wt]=!1,this[Ut]=!1,this[ss]=!1,this[os]=!1,this[Mi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Ee]=!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[Rt]&&this[Rt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[Rt]=e?new ug(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Rt].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[At]}set async(e){this[At]=this[At]||!!e}write(e,r,i){if(this[wt])throw new Error("write after end");if(this[Ee])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[At]?qi:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(pT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):fT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[as](!0),this.flowing?this.emit("data",e):this[qc](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[Rt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[Rt].write(e)),this.flowing&&this[ue]!==0&&this[as](!0),this.flowing?this.emit("data",e):this[qc](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[Ee])return null;if(this[ue]===0||e===0||e>this[ue])return this[vt](),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[hg](e||null,this.buffer[0]);return this[vt](),r}[hg](e,r){return e===r.length||e===null?this[Hc]():(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[Bi])&&this[vt](),this}[Vr](){this[Ee]||(this[Bi]=!1,this[cs]=!0,this.emit("resume"),this.buffer.length?this[as]():this[wt]?this[vt]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[cs]=!1,this[Bi]=!0}get destroyed(){return this[Ee]}get flowing(){return this[cs]}get paused(){return this[Bi]}[qc](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Hc](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[as](e){do;while(this[fg](this[Hc]()));!e&&!this.buffer.length&&!this[wt]&&this.emit("drain")}[fg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[Ut];return r=r||{},e===cg.stdout||e===cg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new jc(this,e,r):new ls(this,e,r)),this[At]?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"):hT(e)&&this[Ut]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Mi]&&(this[At]?qi(()=>r.call(this,this[Mi])):r.call(this,this[Mi])),i}get emittedEnd(){return this[Ut]}[vt](){!this[ss]&&!this[Ut]&&!this[Ee]&&this.buffer.length===0&&this[wt]&&(this[ss]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[os]&&this.emit("close"),this[ss]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[At]?qi(()=>this[Uc](r)):this[Uc](r):!1;if(e==="end")return this[pg]();if(e==="close"){if(this[os]=!0,!this[Ut]&&!this[Ee])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[vt](),s}else if(e==="resume"){let s=super.emit("resume");return this[vt](),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[vt](),n}[Uc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[vt](),r}[pg](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[At]?qi(()=>this[$c]()):this[$c]())}[$c](){if(this[Rt]){let r=this[Rt].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(Ee,()=>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=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[wt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(Ee,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[uT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ee]?(e?this.emit("error",e):this.emit(Ee),this):(this[Ee]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[os]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof mg||e instanceof lg||e instanceof cT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ol=m(Ne=>{"use strict";var Vc=require("assert"),$t=require("buffer").Buffer,Eg=require("zlib"),ur=Ne.constants=ag(),dT=Gc(),yg=$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"}},mT=Symbol("opts"),Hi=Symbol("flushFlag"),_g=Symbol("finishFlushFlag"),sl=Symbol("fullFlushFlag"),z=Symbol("handle"),us=Symbol("onError"),Xr=Symbol("sawError"),Wc=Symbol("level"),Yc=Symbol("strategy"),zc=Symbol("ended"),dI=Symbol("_defaultFullFlush"),hs=class extends dT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Xr]=!1,this[zc]=!1,this[mT]=e,this[Hi]=e.flush,this[_g]=e.finishFlush;try{this[z]=new Eg[r](e)}catch(i){throw new Zr(i)}this[us]=i=>{this[Xr]||(this[Xr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[us](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 Vc(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[sl]),this.write(Object.assign($t.alloc(0),{[Hi]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[_g]),this[zc]=!0,super.end(null,null,i)}get ended(){return this[zc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=$t.from(e,r)),this[Xr])return;Vc(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=l=>l;let a;try{let l=typeof e[Hi]=="number"?e[Hi]:this[Hi];a=this[z]._processChunk(e,l),$t.concat=yg}catch(l){$t.concat=yg,this[us](new Zr(l))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",l=>this[us](new Zr(l)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[hr]($t.from(a[0]));for(let l=1;l<a.length;l++)c=this[hr](a[l])}else c=this[hr]($t.from(a));return i&&i(),c}[hr](e){return super.write(e)}},Tt=class extends hs{constructor(e,r){e=e||{},e.flush=e.flush||ur.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ur.Z_FINISH,super(e,r),this[sl]=ur.Z_FULL_FLUSH,this[Wc]=e.level,this[Yc]=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[Wc]!==e||this[Yc]!==r){this.flush(ur.Z_SYNC_FLUSH),Vc(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[Wc]=e,this[Yc]=r)}}}},Xc=class extends Tt{constructor(e){super(e,"Deflate")}},Zc=class extends Tt{constructor(e){super(e,"Inflate")}},Kc=Symbol("_portable"),Qc=class extends Tt{constructor(e){super(e,"Gzip"),this[Kc]=e&&!!e.portable}[hr](e){return this[Kc]?(this[Kc]=!1,e[9]=255,super[hr](e)):super[hr](e)}},Jc=class extends Tt{constructor(e){super(e,"Gunzip")}},el=class extends Tt{constructor(e){super(e,"DeflateRaw")}},tl=class extends Tt{constructor(e){super(e,"InflateRaw")}},rl=class extends Tt{constructor(e){super(e,"Unzip")}},fs=class extends hs{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[sl]=ur.BROTLI_OPERATION_FLUSH}},il=class extends fs{constructor(e){super(e,"BrotliCompress")}},nl=class extends fs{constructor(e){super(e,"BrotliDecompress")}};Ne.Deflate=Xc;Ne.Inflate=Zc;Ne.Gzip=Qc;Ne.Gunzip=Jc;Ne.DeflateRaw=el;Ne.InflateRaw=tl;Ne.Unzip=rl;typeof Eg.BrotliCompress=="function"?(Ne.BrotliCompress=il,Ne.BrotliDecompress=nl):Ne.BrotliCompress=Ne.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Qr=m((yI,Sg)=>{var gT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Sg.exports=gT!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ps=m((EI,bg)=>{"use strict";var yT=ns(),al=Qr(),cl=Symbol("slurp");bg.exports=class extends yT{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=al(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=al(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[cl](r),i&&this[cl](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))}[cl](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?al(e[i]):e[i])}}});var ll=m(ds=>{"use strict";ds.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"]]);ds.code=new Map(Array.from(ds.name).map(t=>[t[1],t[0]]))});var Rg=m((bI,vg)=>{"use strict";var _T=(t,e)=>{if(Number.isSafeInteger(t))t<0?ST(t,e):ET(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},ET=(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]=xg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=wg(n))}},bT=t=>{let e=t[0],r=e===128?wT(t.slice(1,t.length)):e===255?xT(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},xT=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=xg(s):s===0?o=s:(i=!0,o=wg(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},xg=t=>(255^t)&255,wg=t=>(255^t)+1&255;vg.exports={encode:_T,parse:bT}});var ei=m((xI,Tg)=>{"use strict";var ul=ll(),Jr=require("path").posix,Ag=Rg(),hl=Symbol("slurp"),De=Symbol("type"),dl=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=jt(e,r+100,8),this.uid=jt(e,r+108,8),this.gid=jt(e,r+116,8),this.size=jt(e,r+124,12),this.mtime=fl(e,r+136,12),this.cksum=jt(e,r+148,12),this[hl](i),this[hl](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=jt(e,r+329,8),this.devmin=jt(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=fl(e,r+476,12),this.ctime=fl(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)}[hl](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=vT(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=pr(e,r,100,s)||this.needPax,this.needPax=Gt(e,r+100,8,this.mode)||this.needPax,this.needPax=Gt(e,r+108,8,this.uid)||this.needPax,this.needPax=Gt(e,r+116,8,this.gid)||this.needPax,this.needPax=Gt(e,r+124,12,this.size)||this.needPax,this.needPax=pl(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=Gt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Gt(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=pl(e,r+476,12,this.atime)||this.needPax,this.needPax=pl(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,Gt(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 ul.name.get(this[De])||this[De]}get typeKey(){return this[De]}set type(e){ul.code.has(e)?this[De]=ul.code.get(e):this[De]=e}},vT=(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.*/,""),fl=(t,e,r)=>RT(jt(t,e,r)),RT=t=>t===null?null:new Date(t*1e3),jt=(t,e,r)=>t[e]&128?Ag.parse(t.slice(e,e+r)):TT(t,e,r),AT=t=>isNaN(t)?null:t,TT=(t,e,r)=>AT(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),OT={12:8589934591,8:2097151},Gt=(t,e,r,i)=>i===null?!1:i>OT[r]||i<0?(Ag.encode(i,t.slice(e,e+r)),!0):(CT(t,e,r,i),!1),CT=(t,e,r,i)=>t.write(PT(i,r),e,r,"ascii"),PT=(t,e)=>LT(Math.floor(t).toString(8),e),LT=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",pl=(t,e,r,i)=>i===null?!1:Gt(t,e,r,i.getTime()/1e3),IT=new Array(156).join("\0"),pr=(t,e,r,i)=>i===null?!1:(t.write(i+IT,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Tg.exports=dl});var ms=m((wI,Og)=>{"use strict";var kT=ei(),NT=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 kT({path:("PaxHeader/"+NT.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(DT(FT(t),e),r);var DT=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,FT=t=>t.replace(/\n$/,"").split(`
8
- `).reduce(MT,Object.create(null)),MT=(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};Og.exports=Ui});var ti=m((vI,Cg)=>{Cg.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 gs=m((RI,Pg)=>{"use strict";Pg.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 gl=m((TI,Lg)=>{"use strict";var ys=["|","<",">","?",":"],ml=ys.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),BT=new Map(ys.map((t,e)=>[t,ml[e]])),qT=new Map(ml.map((t,e)=>[t,ys[e]]));Lg.exports={encode:t=>ys.reduce((e,r)=>e.split(r).join(BT.get(r)),t),decode:t=>ml.reduce((e,r)=>e.split(r).join(qT.get(r)),t)}});var yl=m((OI,kg)=>{var{isAbsolute:HT,parse:Ig}=require("path").win32;kg.exports=t=>{let e="",r=Ig(t);for(;HT(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Ig(t)}return[e,t]}});var Dg=m((CI,Ng)=>{"use strict";Ng.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 Tl=m((II,Vg)=>{"use strict";var $g=ns(),jg=ms(),Gg=ei(),ot=require("fs"),Fg=require("path"),st=Qr(),UT=ti(),Wg=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),UT(e)+"/"+t):st(t),$T=16*1024*1024,Mg=Symbol("process"),Bg=Symbol("file"),qg=Symbol("directory"),El=Symbol("symlink"),Hg=Symbol("hardlink"),$i=Symbol("header"),_s=Symbol("read"),Sl=Symbol("lstat"),Es=Symbol("onlstat"),bl=Symbol("onread"),xl=Symbol("onreadlink"),wl=Symbol("openfile"),vl=Symbol("onopenfile"),Wt=Symbol("close"),Ss=Symbol("mode"),Rl=Symbol("awaitDrain"),_l=Symbol("ondrain"),at=Symbol("prefix"),Ug=Symbol("hadError"),Yg=gs(),jT=gl(),zg=yl(),Kg=Dg(),bs=Yg(class extends $g{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||$T,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]=zg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=jT.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||Fg.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[Sl]()}emit(e,...r){return e==="error"&&(this[Ug]=!0),super.emit(e,...r)}[Sl](){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=WT(e),this.emit("stat",e),this[Mg]()}[Mg](){switch(this.type){case"File":return this[Bg]();case"Directory":return this[qg]();case"SymbolicLink":return this[El]();default:return this.end()}}[Ss](e){return Kg(e,this.type==="Directory",this.portable)}[at](e){return Wg(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[Ss](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 jg({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)}[qg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[$i](),this.end()}[El](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[xl](r)})}[xl](e){this.linkpath=st(e),this[$i](),this.end()}[Hg](e){this.type="Link",this.linkpath=st(Fg.relative(this.cwd,e)),this.stat.size=0,this[$i](),this.end()}[Bg](){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[Hg](r)}this.linkCache.set(e,this.absolute)}if(this[$i](),this.stat.size===0)return this.end();this[wl]()}[wl](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[vl](r)})}[vl](e){if(this.fd=e,this[Ug])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[_s]()}[_s](){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[bl](a)})}[Wt](e){ot.close(this.fd,e)}[bl](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[_l]():this[Rl](()=>this[_l]())}[Rl](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)}[_l](){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[_s]()}}),Al=class extends bs{[Sl](){this[Es](ot.lstatSync(this.absolute))}[El](){this[xl](ot.readlinkSync(this.absolute))}[wl](){this[vl](ot.openSync(this.absolute,"r"))}[_s](){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[bl](a),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[Rl](e){e()}[Wt](e){ot.closeSync(this.fd),e()}},GT=Yg(class extends $g{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[Ss](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]=zg(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 jg({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 Wg(e,this.prefix)}[Ss](e){return Kg(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()}});bs.Sync=Al;bs.Tar=GT;var WT=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Vg.exports=bs});var Zg=m((kI,Xg)=>{"use strict";Xg.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ol=m((NI,Qg)=>{"use strict";Qg.exports=U;U.Node=dr;U.create=U;function U(t){var e=this;if(e instanceof U||(e=new U),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}U.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};U.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++}};U.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++}};U.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)zT(this,arguments[t]);return this.length};U.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)KT(this,arguments[t]);return this.length};U.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}};U.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}};U.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};U.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};U.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};U.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};U.prototype.map=function(t,e){e=e||this;for(var r=new U,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};U.prototype.mapReverse=function(t,e){e=e||this;for(var r=new U,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};U.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};U.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};U.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};U.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};U.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 U;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};U.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 U;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};U.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=YT(this,n,r[i]);return s};U.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 YT(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 zT(t,e){t.tail=new dr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function KT(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{Zg()(U)}catch{}});var Ps=m((FI,sy)=>{"use strict";var Os=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}},VT=ns(),XT=ol(),ZT=ps(),Ml=Tl(),QT=Ml.Sync,JT=Ml.Tar,eO=Ol(),Jg=Buffer.alloc(1024),vs=Symbol("onStat"),xs=Symbol("ended"),ct=Symbol("queue"),ri=Symbol("current"),mr=Symbol("process"),ws=Symbol("processing"),ey=Symbol("processJob"),lt=Symbol("jobs"),Cl=Symbol("jobDone"),Rs=Symbol("addFSEntry"),ty=Symbol("addTarEntry"),kl=Symbol("stat"),Nl=Symbol("readdir"),As=Symbol("onreaddir"),Ts=Symbol("pipe"),ry=Symbol("entry"),Pl=Symbol("entryOpt"),Dl=Symbol("writeEntryClass"),ny=Symbol("write"),Ll=Symbol("ondrain"),Cs=require("fs"),iy=require("path"),tO=gs(),Il=Qr(),Bl=tO(class extends VT{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=Il(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Dl]=Ml,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 XT.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Ll]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Ll]),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[ct]=new eO,this[lt]=0,this.jobs=+e.jobs||4,this[ws]=!1,this[xs]=!1}[ny](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[xs]=!0,this[mr](),this}write(e){if(this[xs])throw new Error("write after end");return e instanceof ZT?this[ty](e):this[Rs](e),this.flowing}[ty](e){let r=Il(iy.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Os(e.path,r,!1);i.entry=new JT(e,this[Pl](i)),i.entry.on("end",n=>this[Cl](i)),this[lt]+=1,this[ct].push(i)}this[mr]()}[Rs](e){let r=Il(iy.resolve(this.cwd,e));this[ct].push(new Os(e,r)),this[mr]()}[kl](e){e.pending=!0,this[lt]+=1;let r=this.follow?"stat":"lstat";Cs[r](e.absolute,(i,n)=>{e.pending=!1,this[lt]-=1,i?this.emit("error",i):this[vs](e,n)})}[vs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[mr]()}[Nl](e){e.pending=!0,this[lt]+=1,Cs.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[lt]-=1,r)return this.emit("error",r);this[As](e,i)})}[As](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[mr]()}[mr](){if(!this[ws]){this[ws]=!0;for(let e=this[ct].head;e!==null&&this[lt]<this.jobs;e=e.next)if(this[ey](e.value),e.value.ignore){let r=e.next;this[ct].removeNode(e),e.next=r}this[ws]=!1,this[xs]&&!this[ct].length&&this[lt]===0&&(this.zip?this.zip.end(Jg):(super.write(Jg),super.end()))}}get[ri](){return this[ct]&&this[ct].head&&this[ct].head.value}[Cl](e){this[ct].shift(),this[lt]-=1,this[mr]()}[ey](e){if(!e.pending){if(e.entry){e===this[ri]&&!e.piped&&this[Ts](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[vs](e,this.statCache.get(e.absolute)):this[kl](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[As](e,this.readdirCache.get(e.absolute)):this[Nl](e),!e.readdir))){if(e.entry=this[ry](e),!e.entry){e.ignore=!0;return}e===this[ri]&&!e.piped&&this[Ts](e)}}}[Pl](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}}[ry](e){this[lt]+=1;try{return new this[Dl](e.path,this[Pl](e)).on("end",()=>this[Cl](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Ll](){this[ri]&&this[ri].entry&&this[ri].entry.resume()}[Ts](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Rs](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()}}),Fl=class extends Bl{constructor(e){super(e),this[Dl]=QT}pause(){}resume(){}[kl](e){let r=this.follow?"statSync":"lstatSync";this[vs](e,Cs[r](e.absolute))}[Nl](e,r){this[As](e,Cs.readdirSync(e.absolute))}[Ts](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Rs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[ny](n)})}};Bl.Sync=Fl;sy.exports=Bl});var ui=m(Gi=>{"use strict";var rO=Gc(),iO=require("events").EventEmitter,Ce=require("fs"),Ul=Ce.writev;if(!Ul){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Ul=(r,i,n,s)=>{let o=(c,l)=>s(c,l,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var ci=Symbol("_autoClose"),Ke=Symbol("_close"),ji=Symbol("_ended"),G=Symbol("_fd"),oy=Symbol("_finished"),zt=Symbol("_flags"),ql=Symbol("_flush"),$l=Symbol("_handleChunk"),jl=Symbol("_makeBuf"),Ds=Symbol("_mode"),Ls=Symbol("_needDrain"),oi=Symbol("_onerror"),li=Symbol("_onopen"),Hl=Symbol("_onread"),ni=Symbol("_onwrite"),Kt=Symbol("_open"),Ot=Symbol("_path"),gr=Symbol("_pos"),ut=Symbol("_queue"),si=Symbol("_read"),ay=Symbol("_readSize"),Yt=Symbol("_reading"),Is=Symbol("_remain"),cy=Symbol("_size"),ks=Symbol("_write"),ii=Symbol("_writing"),Ns=Symbol("_defaultFlag"),ai=Symbol("_errored"),Fs=class extends rO{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[Ot]=e,this[ay]=r.readSize||16*1024*1024,this[Yt]=!1,this[cy]=typeof r.size=="number"?r.size:1/0,this[Is]=this[cy],this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[G]=="number"?this[si]():this[Kt]()}get fd(){return this[G]}get path(){return this[Ot]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Ce.open(this[Ot],"r",(e,r)=>this[li](e,r))}[li](e,r){e?this[oi](e):(this[G]=r,this.emit("open",r),this[si]())}[jl](){return Buffer.allocUnsafe(Math.min(this[ay],this[Is]))}[si](){if(!this[Yt]){this[Yt]=!0;let e=this[jl]();if(e.length===0)return process.nextTick(()=>this[Hl](null,0,e));Ce.read(this[G],e,0,e.length,null,(r,i,n)=>this[Hl](r,i,n))}}[Hl](e,r,i){this[Yt]=!1,e?this[oi](e):this[$l](r,i)&&this[si]()}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[oi](e){this[Yt]=!0,this[Ke](),this.emit("error",e)}[$l](e,r){let i=!1;return this[Is]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Is]<=0)&&(i=!1,this[Ke](),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)}}},Gl=class extends Fs{[Kt](){let e=!0;try{this[li](null,Ce.openSync(this[Ot],"r")),e=!1}finally{e&&this[Ke]()}}[si](){let e=!0;try{if(!this[Yt]){this[Yt]=!0;do{let r=this[jl](),i=r.length===0?0:Ce.readSync(this[G],r,0,r.length,null);if(!this[$l](i,r))break}while(!0);this[Yt]=!1}e=!1}finally{e&&this[Ke]()}}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}},Ms=class extends iO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ai]=!1,this[ii]=!1,this[ji]=!1,this[Ls]=!1,this[ut]=[],this[Ot]=e,this[G]=typeof r.fd=="number"?r.fd:null,this[Ds]=r.mode===void 0?438:r.mode,this[gr]=typeof r.start=="number"?r.start:null,this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[gr]!==null?"r+":"w";this[Ns]=r.flags===void 0,this[zt]=this[Ns]?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[Ot]}[oi](e){this[Ke](),this[ii]=!0,this.emit("error",e)}[Kt](){Ce.open(this[Ot],this[zt],this[Ds],(e,r)=>this[li](e,r))}[li](e,r){this[Ns]&&this[zt]==="r+"&&e&&e.code==="ENOENT"?(this[zt]="w",this[Kt]()):e?this[oi](e):(this[G]=r,this.emit("open",r),this[ql]())}end(e,r){return e&&this.write(e,r),this[ji]=!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[ji]?(this.emit("error",new Error("write() after end()")),!1):this[G]===null||this[ii]||this[ut].length?(this[ut].push(e),this[Ls]=!0,!1):(this[ii]=!0,this[ks](e),!0)}[ks](e){Ce.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[ql]():(this[ii]=!1,this[ji]&&!this[oy]?(this[oy]=!0,this[Ke](),this.emit("finish")):this[Ls]&&(this[Ls]=!1,this.emit("drain"))))}[ql](){if(this[ut].length===0)this[ji]&&this[ni](null,0);else if(this[ut].length===1)this[ks](this[ut].pop());else{let e=this[ut];this[ut]=[],Ul(this[G],e,this[gr],(r,i)=>this[ni](r,i))}}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Wl=class extends Ms{[Kt](){let e;if(this[Ns]&&this[zt]==="r+")try{e=Ce.openSync(this[Ot],this[zt],this[Ds])}catch(r){if(r.code==="ENOENT")return this[zt]="w",this[Kt]();throw r}else e=Ce.openSync(this[Ot],this[zt],this[Ds]);this[li](null,e)}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}[ks](e){let r=!0;try{this[ni](null,Ce.writeSync(this[G],e,0,e.length,this[gr])),r=!1}finally{if(r)try{this[Ke]()}catch{}}}};Gi.ReadStream=Fs;Gi.ReadStreamSync=Gl;Gi.WriteStream=Ms;Gi.WriteStreamSync=Wl});var Gs=m((qI,gy)=>{"use strict";var nO=gs(),sO=ei(),oO=require("events"),aO=Ol(),cO=1024*1024,lO=ps(),ly=ms(),uO=ol(),{nextTick:hO}=require("process"),Yl=Buffer.from([31,139]),$e=Symbol("state"),yr=Symbol("writeEntry"),Ct=Symbol("readEntry"),zl=Symbol("nextEntry"),uy=Symbol("processEntry"),je=Symbol("extendedHeader"),Wi=Symbol("globalExtendedHeader"),Vt=Symbol("meta"),hy=Symbol("emitMeta"),X=Symbol("buffer"),Pt=Symbol("queue"),_r=Symbol("ended"),fy=Symbol("emittedEnd"),Er=Symbol("emit"),Pe=Symbol("unzip"),Bs=Symbol("consumeChunk"),qs=Symbol("consumeChunkSub"),Kl=Symbol("consumeBody"),py=Symbol("consumeMeta"),dy=Symbol("consumeHeader"),Hs=Symbol("consuming"),Vl=Symbol("bufferConcat"),Xl=Symbol("maybeEnd"),Yi=Symbol("writing"),Xt=Symbol("aborted"),Us=Symbol("onDone"),Sr=Symbol("sawValidEntry"),$s=Symbol("sawNullBlock"),js=Symbol("sawEOF"),my=Symbol("closeStream"),fO=t=>!0;gy.exports=nO(class extends oO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Sr]=null,this.on(Us,r=>{(this[$e]==="begin"||this[Sr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Us,e.ondone):this.on(Us,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||cO,this.filter=typeof e.filter=="function"?e.filter:fO,this.writable=!0,this.readable=!1,this[Pt]=new aO,this[X]=null,this[Ct]=null,this[yr]=null,this[$e]="begin",this[Vt]="",this[je]=null,this[Wi]=null,this[_r]=!1,this[Pe]=null,this[Xt]=!1,this[$s]=!1,this[js]=!1,this.on("end",()=>this[my]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[dy](e,r){this[Sr]===null&&(this[Sr]=!1);let i;try{i=new sO(e,r,this[je],this[Wi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[$s]?(this[js]=!0,this[$e]==="begin"&&(this[$e]="header"),this[Er]("eof")):(this[$s]=!0,this[Er]("nullBlock"));else if(this[$s]=!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[je],this[Wi]);if(!this[Sr])if(s.remain){let o=()=>{s.invalid||(this[Sr]=!0)};s.on("end",o)}else this[Sr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Er]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Vt]="",s.on("data",o=>this[Vt]+=o),this[$e]="meta"):(this[je]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Er]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[Ct]?this[Pt].push(s):(this[Pt].push(s),this[zl]())))}}}[my](){hO(()=>this.emit("close"))}[uy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ct]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[zl]()),r=!1)):(this[Ct]=null,r=!1),r}[zl](){do;while(this[uy](this[Pt].shift()));if(!this[Pt].length){let e=this[Ct];!e||e.flowing||e.size===e.remain?this[Yi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Kl](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}[py](e,r){let i=this[yr],n=this[Kl](e,r);return this[yr]||this[hy](i),n}[Er](e,r,i){!this[Pt].length&&!this[Ct]?this.emit(e,r,i):this[Pt].push([e,r,i])}[hy](e){switch(this[Er]("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[Pe]===null&&e){if(this[X]&&(e=Buffer.concat([this[X],e]),this[X]=null),e.length<Yl.length)return this[X]=e,!0;for(let i=0;this[Pe]===null&&i<Yl.length;i++)e[i]!==Yl[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[_r];this[_r]=!1,this[Pe]=new uO.Unzip,this[Pe].on("data",s=>this[Bs](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[_r]=!0,this[Bs]()}),this[Yi]=!0;let n=this[Pe][i?"end":"write"](e);return this[Yi]=!1,n}}this[Yi]=!0,this[Pe]?this[Pe].write(e):this[Bs](e),this[Yi]=!1;let r=this[Pt].length?!1:this[Ct]?this[Ct].flowing:!0;return!r&&!this[Pt].length&&this[Ct].once("drain",i=>this.emit("drain")),r}[Vl](e){e&&!this[Xt]&&(this[X]=this[X]?Buffer.concat([this[X],e]):e)}[Xl](){if(this[_r]&&!this[fy]&&!this[Xt]&&!this[Hs]){this[fy]=!0;let e=this[yr];if(e&&e.blockRemain){let r=this[X]?this[X].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[X]&&e.write(this[X]),e.end()}this[Er](Us)}}[Bs](e){if(this[Hs])this[Vl](e);else if(!e&&!this[X])this[Xl]();else{if(this[Hs]=!0,this[X]){this[Vl](e);let r=this[X];this[X]=null,this[qs](r)}else this[qs](e);for(;this[X]&&this[X].length>=512&&!this[Xt]&&!this[js];){let r=this[X];this[X]=null,this[qs](r)}this[Hs]=!1}(!this[X]||this[_r])&&this[Xl]()}[qs](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[js];)switch(this[$e]){case"begin":case"header":this[dy](e,r),r+=512;break;case"ignore":case"body":r+=this[Kl](e,r);break;case"meta":r+=this[py](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[X]?this[X]=Buffer.concat([e.slice(r),this[X]]):this[X]=e.slice(r))}end(e){this[Xt]||(this[Pe]?this[Pe].end(e):(this[_r]=!0,this.write(e)))}})});var Ws=m((HI,Sy)=>{"use strict";var pO=zr(),_y=Gs(),hi=require("fs"),dO=ui(),yy=require("path"),Zl=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=pO(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&&gO(i,e),i.noResume||mO(i),i.file&&i.sync?yO(i):i.file?_O(i,r):Ey(i)};var mO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},gO=(t,e)=>{let r=new Map(e.map(s=>[Zl(s),!0])),i=t.filter,n=(s,o)=>{let a=o||yy.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(yy.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(Zl(s)):s=>n(Zl(s))},yO=t=>{let e=Ey(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,c=Buffer.allocUnsafe(o);for(n=hi.openSync(r,"r");a<s.size;){let l=hi.readSync(n,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{hi.closeSync(n)}catch{}}},_O=(t,e)=>{let r=new _y(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,(c,l)=>{if(c)a(c);else{let u=new dO.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Ey=t=>new _y(t)});var Ay=m((UI,Ry)=>{"use strict";var EO=zr(),Ys=Ps(),by=ui(),xy=Ws(),wy=require("path");Ry.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=EO(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?bO(i,e,r):i.sync?xO(i,e):wO(i,e)};var SO=(t,e)=>{let r=new Ys.Sync(t),i=new by.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),vy(r,e)},bO=(t,e,r)=>{let i=new Ys(t),n=new by.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 Ql(i,e),r?s.then(r,r):s},vy=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?xy({file:wy.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ql=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return xy({file:wy.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ql(t,e));t.add(r)}t.end()},xO=(t,e)=>{let r=new Ys.Sync(t);return vy(r,e),r},wO=(t,e)=>{let r=new Ys(t);return Ql(r,e),r}});var Jl=m(($I,ky)=>{"use strict";var vO=zr(),Ty=Ps(),Fe=require("fs"),Oy=ui(),Cy=Ws(),Py=require("path"),Ly=ei();ky.exports=(t,e,r)=>{let i=vO(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?RO(i,e):TO(i,e,r)};var RO=(t,e)=>{let r=new Ty.Sync(t),i=!0,n,s;try{try{n=Fe.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")n=Fe.openSync(t.file,"w+");else throw c}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 c=new Ly(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}i=!1,AO(t,r,s,n,e)}finally{if(i)try{Fe.closeSync(n)}catch{}}},AO=(t,e,r,i,n)=>{let s=new Oy.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),OO(e,n)},TO=(t,e,r)=>{e=Array.from(e);let i=new Ty(t),n=(o,a,c)=>{let l=(d,y)=>{d?Fe.close(o,x=>c(d)):c(null,y)},u=0;if(a===0)return l(null,0);let h=0,f=Buffer.alloc(512),g=(d,y)=>{if(d)return l(d);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 l(new Error("cannot append to compressed archives"));if(h<512)return l(null,u);let x=new Ly(f);if(!x.cksumValid)return l(null,u);let v=512*Math.ceil(x.size/512);if(u+v+512>a||(u+=v+512,u>=a))return l(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 c="r+",l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+")return c="w+",Fe.open(t.file,c,l);if(u)return a(u);Fe.fstat(h,(f,g)=>{if(f)return Fe.close(h,()=>a(f));n(h,g.size,(d,y)=>{if(d)return a(d);let x=new Oy.WriteStream(t.file,{fd:h,start:y});i.pipe(x),x.on("error",a),x.on("close",o),Iy(i,e)})})};Fe.open(t.file,c,l)});return r?s.then(r,r):s},OO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Cy({file:Py.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Iy=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Cy({file:Py.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Iy(t,e));t.add(r)}t.end()}});var Dy=m((jI,Ny)=>{"use strict";var CO=zr(),PO=Jl();Ny.exports=(t,e,r)=>{let i=CO(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),LO(i),PO(i,e,r)};var LO=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 By=m((GI,My)=>{var{promisify:Fy}=require("util"),Zt=require("fs"),IO=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=Fy(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=Fy(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};My.exports=IO});var Hy=m((WI,qy)=>{var kO=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:NO,parse:DO}=require("path"),FO=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=NO(t),kO==="win32"){let e=/[*|"<>?:]/,{root:r}=DO(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};qy.exports=FO});var Wy=m((YI,Gy)=>{var{dirname:Uy}=require("path"),$y=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?$y(t,Uy(e),e):void 0),jy=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?jy(t,Uy(e),e):void 0}};Gy.exports={findMade:$y,findMadeSync:jy}});var ru=m((zI,zy)=>{var{dirname:Yy}=require("path"),eu=(t,e,r)=>{e.recursive=!1;let i=Yy(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 eu(i,e).then(s=>eu(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})})},tu=(t,e,r)=>{let i=Yy(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 tu(t,e,tu(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};zy.exports={mkdirpManual:eu,mkdirpManualSync:tu}});var Xy=m((KI,Vy)=>{var{dirname:Ky}=require("path"),{findMade:MO,findMadeSync:BO}=Wy(),{mkdirpManual:qO,mkdirpManualSync:HO}=ru(),UO=(t,e)=>(e.recursive=!0,Ky(t)===t?e.mkdirAsync(t,e):MO(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return qO(t,e);throw n}))),$O=(t,e)=>{if(e.recursive=!0,Ky(t)===t)return e.mkdirSync(t,e);let i=BO(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return HO(t,e);throw n}};Vy.exports={mkdirpNative:UO,mkdirpNativeSync:$O}});var e_=m((VI,Jy)=>{var Zy=require("fs"),jO=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,iu=jO.replace(/^v/,"").split("."),Qy=+iu[0]>10||+iu[0]==10&&+iu[1]>=12,GO=Qy?t=>t.mkdir===Zy.mkdir:()=>!1,WO=Qy?t=>t.mkdirSync===Zy.mkdirSync:()=>!1;Jy.exports={useNative:GO,useNativeSync:WO}});var o_=m((XI,s_)=>{var fi=By(),pi=Hy(),{mkdirpNative:t_,mkdirpNativeSync:r_}=Xy(),{mkdirpManual:i_,mkdirpManualSync:n_}=ru(),{useNative:YO,useNativeSync:zO}=e_(),di=(t,e)=>(t=pi(t),e=fi(e),YO(e)?t_(t,e):i_(t,e)),KO=(t,e)=>(t=pi(t),e=fi(e),zO(e)?r_(t,e):n_(t,e));di.sync=KO;di.native=(t,e)=>t_(pi(t),fi(e));di.manual=(t,e)=>i_(pi(t),fi(e));di.nativeSync=(t,e)=>r_(pi(t),fi(e));di.manualSync=(t,e)=>n_(pi(t),fi(e));s_.exports=di});var p_=m((ZI,f_)=>{"use strict";var Ge=require("fs"),br=require("path"),VO=Ge.lchown?"lchown":"chown",XO=Ge.lchownSync?"lchownSync":"chownSync",c_=Ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a_=(t,e,r)=>{try{return Ge[XO](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},ZO=(t,e,r)=>{try{return Ge.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},QO=c_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ge.chown(t,e,r,i)}:(t,e,r,i)=>i,nu=c_?(t,e,r)=>{try{return a_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;ZO(t,e,r)}}:(t,e,r)=>a_(t,e,r),JO=process.version,l_=(t,e,r)=>Ge.readdir(t,e,r),eC=(t,e)=>Ge.readdirSync(t,e);/^v4\./.test(JO)&&(l_=(t,e,r)=>Ge.readdir(t,r));var zs=(t,e,r,i)=>{Ge[VO](t,e,r,QO(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},u_=(t,e,r,i,n)=>{if(typeof e=="string")return Ge.lstat(br.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,u_(t,o,r,i,n)});if(e.isDirectory())su(br.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=br.resolve(t,e.name);zs(o,r,i,n)});else{let s=br.resolve(t,e.name);zs(s,r,i,n)}},su=(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 zs(t,e,r,i);let o=s.length,a=null,c=l=>{if(!a){if(l)return i(a=l);if(--o===0)return zs(t,e,r,i)}};s.forEach(l=>u_(t,l,e,r,c))})},tC=(t,e,r,i)=>{if(typeof e=="string")try{let n=Ge.lstatSync(br.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&h_(br.resolve(t,e.name),r,i),nu(br.resolve(t,e.name),r,i)},h_=(t,e,r)=>{let i;try{i=eC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return nu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>tC(t,n,e,r)),nu(t,e,r)};f_.exports=su;su.sync=h_});var y_=m((QI,ou)=>{"use strict";var d_=o_(),We=require("fs"),Ks=require("path"),m_=p_(),Ve=Qr(),Vs=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Xs=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zs=(t,e)=>t.get(Ve(e)),zi=(t,e,r)=>t.set(Ve(e),r),rC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Xs(t,r&&r.code||"ENOTDIR")),e(r)})};ou.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,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,u=e.unlink,h=e.cache,f=Ve(e.cwd),g=(x,v)=>{x?r(x):(zi(h,t,!0),v&&c?m_(v,o,a,A=>g(A)):s?We.chmod(t,n,r):r())};if(h&&Zs(h,t)===!0)return g();if(t===f)return rC(t,g);if(l)return d_(t,{mode:n}).then(x=>g(null,x),g);let y=Ve(Ks.relative(f,t)).split("/");Qs(f,y,n,h,u,f,null,g)};var Qs=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=Ve(Ks.resolve(t+"/"+c));if(Zs(i,l))return Qs(l,e,r,i,n,s,o,a);We.mkdir(l,r,g_(l,e,r,i,n,s,o,a))},g_=(t,e,r,i,n,s,o,a)=>c=>{c?We.lstat(t,(l,u)=>{if(l)l.path=l.path&&Ve(l.path),a(l);else if(u.isDirectory())Qs(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,g_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Vs(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,Qs(t,e,r,i,n,s,o,a))},iC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Xs(t,r)}};ou.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),c=e.preserve,l=e.unlink,u=e.cache,h=Ve(e.cwd),f=x=>{zi(u,t,!0),x&&a&&m_.sync(x,s,o),n&&We.chmodSync(t,i)};if(u&&Zs(u,t)===!0)return f();if(t===h)return iC(h),f();if(c)return f(d_.sync(t,i));let d=Ve(Ks.relative(h,t)).split("/"),y=null;for(let x=d.shift(),v=h;x&&(v+="/"+x);x=d.shift())if(v=Ve(Ks.resolve(v)),!Zs(u,v))try{We.mkdirSync(v,i),y=y||v,zi(u,v,!0)}catch{let M=We.lstatSync(v);if(M.isDirectory()){zi(u,v,!0);continue}else if(l){We.unlinkSync(v),We.mkdirSync(v,i),y=y||v,zi(u,v,!0);continue}else if(M.isSymbolicLink())return new Vs(v,v+"/"+d.join("/"))}return f(y)}});var cu=m((JI,__)=>{var au=Object.create(null),{hasOwnProperty:nC}=Object.prototype;__.exports=t=>(nC.call(au,t)||(au[t]=t.normalize("NFKD")),au[t])});var x_=m((ek,b_)=>{var E_=require("assert"),sC=cu(),oC=ti(),{join:S_}=require("path"),aC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,cC=aC==="win32";b_.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=S_(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let u=e.get(l);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=l=>{let{paths:u,dirs:h}=n(l);return u.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>a(l)),!0),a=l=>{if(!i.has(l))return!1;let{paths:u,dirs:h}=e.get(l),f=new Set;return u.forEach(g=>{let d=t.get(g);E_.equal(d[0],l),d.length===1?t.delete(g):(d.shift(),typeof d[0]=="function"?f.add(d[0]):d[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let d=t.get(g);E_(d[0]instanceof Set),d[0].size===1&&d.length===1?t.delete(g):d[0].size===1?(d.shift(),f.add(d[0])):d[0].delete(l)}),i.delete(l),f.forEach(g=>o(g)),!0};return{check:s,reserve:(l,u)=>{l=cC?["win32 parallelization disabled"]:l.map(f=>sC(oC(S_(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:l}),l.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 R_=m((tk,v_)=>{var lC=process.env.__FAKE_PLATFORM__||process.platform,uC=lC==="win32",hC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:fC,O_TRUNC:pC,O_WRONLY:dC,UV_FS_O_FILEMAP:w_=0}=hC.constants,mC=uC&&!!w_,gC=512*1024,yC=w_|pC|fC|dC;v_.exports=mC?t=>t<gC?yC:"w":()=>"w"});var yu=m((rk,q_)=>{"use strict";var _C=require("assert"),EC=Gs(),$=require("fs"),SC=ui(),Lt=require("path"),F_=y_(),A_=gl(),bC=x_(),xC=yl(),Me=Qr(),wC=ti(),vC=cu(),T_=Symbol("onEntry"),hu=Symbol("checkFs"),O_=Symbol("checkFs2"),to=Symbol("pruneCache"),fu=Symbol("isReusable"),Ye=Symbol("makeFs"),pu=Symbol("file"),du=Symbol("directory"),ro=Symbol("link"),C_=Symbol("symlink"),P_=Symbol("hardlink"),L_=Symbol("unsupported"),I_=Symbol("checkPath"),Qt=Symbol("mkdir"),Se=Symbol("onError"),Js=Symbol("pending"),k_=Symbol("pend"),mi=Symbol("unpend"),lu=Symbol("ended"),uu=Symbol("maybeClose"),mu=Symbol("skip"),Ki=Symbol("doChown"),Vi=Symbol("uid"),Xi=Symbol("gid"),Zi=Symbol("checkedCwd"),M_=require("crypto"),B_=R_(),RC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Qi=RC==="win32",AC=(t,e)=>{if(!Qi)return $.unlink(t,e);let r=t+".DELETE."+M_.randomBytes(16).toString("hex");$.rename(t,r,i=>{if(i)return e(i);$.unlink(r,e)})},TC=t=>{if(!Qi)return $.unlinkSync(t);let e=t+".DELETE."+M_.randomBytes(16).toString("hex");$.renameSync(t,e),$.unlinkSync(e)},N_=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,D_=t=>vC(wC(Me(t))).toLowerCase(),OC=(t,e)=>{e=D_(e);for(let r of t.keys()){let i=D_(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},CC=t=>{for(let e of t.keys())t.delete(e)},Ji=class extends EC{constructor(e){if(e||(e={}),e.ondone=r=>{this[lu]=!0,this[uu]()},super(e),this[Zi]=!1,this.reservations=bC(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Js]=0,this[lu]=!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(Lt.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[T_](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[uu](){this[lu]&&this[Js]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[I_](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]=xC(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Lt.isAbsolute(e.path)?e.absolute=Me(Lt.resolve(e.path)):e.absolute=Me(Lt.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}=Lt.win32.parse(e.absolute);e.absolute=r+A_.encode(e.absolute.slice(r.length));let{root:i}=Lt.win32.parse(e.path);e.path=i+A_.encode(e.path.slice(i.length))}return!0}[T_](e){if(!this[I_](e))return e.resume();switch(_C.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[hu](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[L_](e)}}[Se](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){F_(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 N_(this.uid,e.uid,this.processUid)}[Xi](e){return N_(this.gid,e.gid,this.processGid)}[pu](e,r){let i=e.mode&4095||this.fmode,n=new SC.WriteStream(e.absolute,{flags:B_(e.size),mode:i,autoClose:!1});n.on("error",c=>{n.fd&&$.close(n.fd,()=>{}),n.write=()=>!0,this[Se](c,e),r()});let s=1,o=c=>{if(c){n.fd&&$.close(n.fd,()=>{}),this[Se](c,e),r();return}--s===0&&$.close(n.fd,l=>{l?this[Se](l,e):this[mi](),r()})};n.on("finish",c=>{let l=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;$.futimes(u,h,f,g=>g?$.utimes(l,h,f,d=>o(d&&g)):o())}if(this[Ki](e)){s++;let h=this[Vi](e),f=this[Xi](e);$.fchown(u,h,f,g=>g?$.chown(l,h,f,d=>o(d&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[Se](c,e),r()}),e.pipe(a)),a.pipe(n)}[du](e,r){let i=e.mode&4095||this.dmode;this[Qt](e.absolute,i,n=>{if(n){this[Se](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[mi](),e.resume())};e.mtime&&!this.noMtime&&(s++,$.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ki](e)&&(s++,$.chown(e.absolute,this[Vi](e),this[Xi](e),o)),o()})}[L_](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[C_](e,r){this[ro](e,e.linkpath,"symlink",r)}[P_](e,r){let i=Me(Lt.resolve(this.cwd,e.linkpath));this[ro](e,i,"link",r)}[k_](){this[Js]++}[mi](){this[Js]--,this[uu]()}[mu](e){this[mi](),e.resume()}[fu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Qi}[hu](e){this[k_]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[O_](e,i))}[to](e){e.type==="SymbolicLink"?CC(this.dirCache):e.type!=="Directory"&&OC(this.dirCache,e.absolute)}[O_](e,r){this[to](e);let i=a=>{this[to](e),r(a)},n=()=>{this[Qt](this.cwd,this.dmode,a=>{if(a){this[Se](a,e),i();return}this[Zi]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Me(Lt.dirname(e.absolute));if(a!==this.cwd)return this[Qt](a,this.dmode,c=>{if(c){this[Se](c,e),i();return}o()})}o()},o=()=>{$.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[mu](e),i();return}if(a||this[fu](e,c))return this[Ye](null,e,i);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return l?$.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return $.rmdir(e.absolute,l=>this[Ye](l,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);AC(e.absolute,l=>this[Ye](l,e,i))})};this[Zi]?s():n()}[Ye](e,r,i){if(e){this[Se](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[pu](r,i);case"Link":return this[P_](r,i);case"SymbolicLink":return this[C_](r,i);case"Directory":case"GNUDumpDir":return this[du](r,i)}}[ro](e,r,i,n){$[i](r,e.absolute,s=>{s?this[Se](s,e):(this[mi](),e.resume()),n()})}},eo=t=>{try{return[null,t()]}catch(e){return[e,null]}},gu=class extends Ji{[Ye](e,r){return super[Ye](e,r,()=>{})}[hu](e){if(this[to](e),!this[Zi]){let s=this[Qt](this.cwd,this.dmode);if(s)return this[Se](s,e);this[Zi]=!0}if(e.absolute!==this.cwd){let s=Me(Lt.dirname(e.absolute));if(s!==this.cwd){let o=this[Qt](s,this.dmode);if(o)return this[Se](o,e)}}let[r,i]=eo(()=>$.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[mu](e);if(r||this[fu](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?eo(()=>{$.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=eo(()=>$.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:eo(()=>TC(e.absolute));this[Ye](n,e)}[pu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let c;try{$.closeSync(s)}catch(l){c=l}(a||c)&&this[Se](a||c,e),r()},s;try{s=$.openSync(e.absolute,B_(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Se](a,e)),e.pipe(o)),o.on("data",a=>{try{$.writeSync(s,a,0,a.length)}catch(c){n(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,u=e.mtime;try{$.futimesSync(s,l,u)}catch(h){try{$.utimesSync(e.absolute,l,u)}catch{c=h}}}if(this[Ki](e)){let l=this[Vi](e),u=this[Xi](e);try{$.fchownSync(s,l,u)}catch(h){try{$.chownSync(e.absolute,l,u)}catch{c=c||h}}}n(c)})}[du](e,r){let i=e.mode&4095||this.dmode,n=this[Qt](e.absolute,i);if(n){this[Se](n,e),r();return}if(e.mtime&&!this.noMtime)try{$.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ki](e))try{$.chownSync(e.absolute,this[Vi](e),this[Xi](e))}catch{}r(),e.resume()}[Qt](e,r){try{return F_.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}}[ro](e,r,i,n){try{$[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Se](s,e)}}};Ji.Sync=gu;q_.exports=Ji});var G_=m((ik,j_)=>{"use strict";var PC=zr(),io=yu(),U_=require("fs"),$_=ui(),H_=require("path"),_u=ti();j_.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=PC(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&&LC(i,e),i.file&&i.sync?IC(i):i.file?kC(i,r):i.sync?NC(i):DC(i)};var LC=(t,e)=>{let r=new Map(e.map(s=>[_u(s),!0])),i=t.filter,n=(s,o)=>{let a=o||H_.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(H_.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(_u(s)):s=>n(_u(s))},IC=t=>{let e=new io.Sync(t),r=t.file,i=U_.statSync(r),n=t.maxReadSize||16*1024*1024;new $_.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},kC=(t,e)=>{let r=new io(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),U_.stat(n,(c,l)=>{if(c)a(c);else{let u=new $_.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},NC=t=>new io.Sync(t),DC=t=>new io(t)});var W_=m(ae=>{"use strict";ae.c=ae.create=Ay();ae.r=ae.replace=Jl();ae.t=ae.list=Ws();ae.u=ae.update=Dy();ae.x=ae.extract=G_();ae.Pack=Ps();ae.Unpack=yu();ae.Parse=Gs();ae.ReadEntry=ps();ae.WriteEntry=Tl();ae.Header=ei();ae.Pax=ms();ae.types=ll()});var z_=m((ck,Y_)=>{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))}Y_.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 K_=m(xr=>{var $C=z_();xr.operation=function(t){var e=xr.timeouts(t);return new $C(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(c){var l=xr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){c.apply(t,u)})}.bind(t,o),t[s].options=e}}});var X_=m((uk,V_)=>{V_.exports=K_()});var Q_=m((hk,Z_)=>{var jC=X_();function GC(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=jC.operation(s);function a(u){n(u||new Error("Aborted"))}function c(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function l(u){var h;try{h=t(a,u)}catch(f){c(f,u);return}Promise.resolve(h).then(i).catch(function(g){c(g,u)})}o.attempt(l)}return new Promise(r)}Z_.exports=GC});var cP={};bu(cP,{default:()=>aP,transformer:()=>iE});module.exports=uE(cP);var tE=q(require("path")),Su=q(require("fs-extra"));var lo=q(require("picocolors"));var hE=q(Ou());function fo(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 po(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mo(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 po(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 go(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 yo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _o(){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 _o()?wr=Reflect.construct.bind():wr=function(n,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(n,a),l=new c;return o&&pt(l,o.prototype),l},wr.apply(null,arguments)}function _i(t){var e=typeof Map=="function"?new Map:void 0;return _i=function(i){if(i===null||!yo(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)},_i(t)}var Cu=q(require("find-up"));var fE=q(require("fs-extra")),UP=function(t){go(e,t);function e(r){var i;return fo(this,e),i=mo(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 gE=q(require("json5"));var pE=q(require("fs")),dE=q(require("path"));var Qv=q(require("fs")),Jv=q(require("path"));function Wu(t){return typeof t=="undefined"||t===null}function yE(t){return typeof t=="object"&&t!==null}function _E(t){return Array.isArray(t)?t:Wu(t)?[]:[t]}function EE(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 SE(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function bE(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var xE=Wu,wE=yE,vE=_E,RE=SE,AE=bE,TE=EE,oe={isNothing:xE,isObject:wE,toArray:vE,repeat:RE,isNegativeZero:AE,extend:TE};function Yu(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+=`
6
+ `);return w?(i.originalMessage=i.message,i.message=A):i=new Error(A),i.shortMessage=v,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=!!c,i.isCanceled=l,i.killed=u&&!c,i};pm.exports=XR});var gm=m((XL,Tc)=>{"use strict";var Wn=["stdin","stdout","stderr"],ZR=t=>Wn.some(e=>t[e]!==void 0),mm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Wn.map(i=>t[i]);if(ZR(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Wn.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,Wn.length);return Array.from({length:r},(i,n)=>e[n])};Tc.exports=mm;Tc.exports.node=t=>{let e=mm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ym=m((ZL,Yn)=>{Yn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Yn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Yn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var wm=m((QL,Wr)=>{var Z=global.process,cr=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"};cr(Z)?(_m=require("assert"),jr=ym(),Em=/^win/i.test(Z.platform),Li=require("events"),typeof Li!="function"&&(Li=Li.EventEmitter),Z.__signal_exit_emitter__?ce=Z.__signal_exit_emitter__:(ce=Z.__signal_exit_emitter__=new Li,ce.count=0,ce.emitted={}),ce.infinite||(ce.setMaxListeners(1/0),ce.infinite=!0),Wr.exports=function(t,e){if(!cr(global.process))return function(){};_m.equal(typeof t,"function","a callback must be provided for exit handler"),Gr===!1&&Oc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ce.removeListener(r,t),ce.listeners("exit").length===0&&ce.listeners("afterexit").length===0&&zn()};return ce.on(r,t),i},zn=function(){!Gr||!cr(global.process)||(Gr=!1,jr.forEach(function(e){try{Z.removeListener(e,Kn[e])}catch{}}),Z.emit=Vn,Z.reallyExit=Cc,ce.count-=1)},Wr.exports.unload=zn,lr=function(e,r,i){ce.emitted[e]||(ce.emitted[e]=!0,ce.emit(e,r,i))},Kn={},jr.forEach(function(t){Kn[t]=function(){if(cr(global.process)){var r=Z.listeners(t);r.length===ce.count&&(zn(),lr("exit",null,t),lr("afterexit",null,t),Em&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Wr.exports.signals=function(){return jr},Gr=!1,Oc=function(){Gr||!cr(global.process)||(Gr=!0,ce.count+=1,jr=jr.filter(function(e){try{return Z.on(e,Kn[e]),!0}catch{return!1}}),Z.emit=bm,Z.reallyExit=Sm)},Wr.exports.load=Oc,Cc=Z.reallyExit,Sm=function(e){cr(global.process)&&(Z.exitCode=e||0,lr("exit",Z.exitCode,null),lr("afterexit",Z.exitCode,null),Cc.call(Z,Z.exitCode))},Vn=Z.emit,bm=function(e,r){if(e==="exit"&&cr(global.process)){r!==void 0&&(Z.exitCode=r);var i=Vn.apply(this,arguments);return lr("exit",Z.exitCode,null),lr("afterexit",Z.exitCode,null),i}else return Vn.apply(this,arguments)}):Wr.exports=function(){return function(){}};var _m,jr,Em,Li,ce,zn,lr,Kn,Gr,Oc,Cc,Sm,Vn,bm});var vm=m((JL,xm)=>{"use strict";var QR=require("os"),JR=wm(),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}))},cA=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,c)=>{n=setTimeout(()=>{aA(t,r,c)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},lA=({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:cA,validateTimeout:lA,setExitHandler:uA}});var Am=m((eI,Rm)=>{"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";Rm.exports=it});var Om=m((tI,Tm)=>{"use strict";var{PassThrough:hA}=require("stream");Tm.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",c=>{a.push(c),n?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Cm=m((rI,Ii)=>{"use strict";var{constants:fA}=require("buffer"),pA=require("stream"),{promisify:dA}=require("util"),mA=Om(),gA=dA(pA.pipeline),Xn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Pc(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 Xn)})}),i.getBufferedValue()}Ii.exports=Pc;Ii.exports.buffer=(t,e)=>Pc(t,{...e,encoding:"buffer"});Ii.exports.array=(t,e)=>Pc(t,{...e,array:!0});Ii.exports.MaxBufferError=Xn});var Lm=m((iI,Pm)=>{"use strict";var{PassThrough:yA}=require("stream");Pm.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 Dm=m((nI,Nm)=>{"use strict";var km=Am(),Im=Cm(),_A=Lm(),EA=(t,e)=>{e===void 0||t.stdin===void 0||(km(e)?e.pipe(t.stdin):t.stdin.end(e))},SA=(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},Lc=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Ic=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Im(t,{encoding:e,maxBuffer:i}):Im.buffer(t,{maxBuffer:i})},bA=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Ic(t,{encoding:i,buffer:n,maxBuffer:s}),c=Ic(e,{encoding:i,buffer:n,maxBuffer:s}),l=Ic(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,c,l])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Lc(t,a),Lc(e,c),Lc(r,l)])}},wA=({input:t})=>{if(km(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Nm.exports={handleInput:EA,makeAllStream:SA,getSpawnedResult:bA,validateInputSync:wA}});var Mm=m((sI,Fm)=>{"use strict";var xA=(async()=>{})().constructor.prototype,vA=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(xA,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)})});Fm.exports={mergePromise:RA,getSpawnedPromise:AA}});var Hm=m((oI,qm)=>{"use strict";var Bm=(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)=>Bm(t,e).join(" "),LA=(t,e)=>Bm(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};qm.exports={joinCommand:PA,getEscapedCommand:LA,parseCommand:kA}});var zm=m((aI,Yr)=>{"use strict";var NA=require("path"),kc=require("child_process"),DA=Zd(),FA=Jd(),MA=rm(),BA=om(),Zn=dm(),$m=gm(),{spawnedKill:qA,spawnedCancel:HA,setupTimeout:UA,validateTimeout:$A,setExitHandler:jA}=vm(),{handleInput:GA,getSpawnedResult:WA,makeAllStream:YA,validateInputSync:zA}=Dm(),{mergePromise:Um,getSpawnedPromise:KA}=Mm(),{joinCommand:jm,parseCommand:Gm,getEscapedCommand:Wm}=Hm(),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},Ym=(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=$m(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,Qn=(t,e,r)=>{let i=Ym(t,e,r),n=jm(t,e),s=Wm(t,e);$A(i.options);let o;try{o=kc.spawn(i.file,i.args,i.options)}catch(g){let d=new kc.ChildProcess,y=Promise.reject(Zn({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Um(d,y)}let a=KA(o),c=UA(o,i.options,a),l=jA(o,i.options,c),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:d,signal:y,timedOut:w},v,A,M]=await WA(o,i.options,l),re=ki(i.options,v),N=ki(i.options,A),H=ki(i.options,M);if(g||d!==0||y!==null){let L=Zn({error:g,exitCode:d,signal:y,stdout:re,stderr:N,all:H,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:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return GA(o,i.options.input),o.all=YA(o,i.options),Um(o,f)};Yr.exports=Qn;Yr.exports.sync=(t,e,r)=>{let i=Ym(t,e,r),n=jm(t,e),s=Wm(t,e);zA(i.options);let o;try{o=kc.spawnSync(i.file,i.args,i.options)}catch(l){throw Zn({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=ki(i.options,o.stdout,o.error),c=ki(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=Zn({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Yr.exports.command=(t,e)=>{let[r,...i]=Gm(t);return Qn(r,i,e)};Yr.exports.commandSync=(t,e)=>{let[r,...i]=Gm(t);return Qn.sync(r,i,e)};Yr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=$m.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Qn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var zr=m((fI,Xm)=>{"use strict";var Vm=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"]]);Xm.exports=t=>t?Object.keys(t).map(e=>[Vm.has(e)?Vm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ns=m((pI,sg)=>{"use strict";var Zm=typeof process=="object"&&process?process:{stdout:null,stderr:null},iT=require("events"),Qm=require("stream"),Jm=require("string_decoder").StringDecoder,Et=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),Jn=Symbol("emittingEnd"),Ni=Symbol("emittedError"),es=Symbol("closed"),eg=Symbol("read"),ts=Symbol("flush"),tg=Symbol("flushChunk"),Te=Symbol("encoding"),bt=Symbol("decoder"),rs=Symbol("flowing"),Di=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),le=Symbol("bufferLength"),Nc=Symbol("bufferPush"),Dc=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Fc=Symbol("emitData"),rg=Symbol("emitEnd"),Mc=Symbol("emitEnd2"),wt=Symbol("async"),Fi=t=>Promise.resolve().then(t),ig=global._MP_NO_ITERATOR_SYMBOLS_!=="1",nT=ig&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sT=ig&&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,cT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),is=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()}},Bc=class extends is{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)}};sg.exports=class ng extends Qm{constructor(e){super(),this[rs]=!1,this[Di]=!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[wt]=e&&!!e.async||!1,this[bt]=this[Te]?new Jm(this[Te]):null,this[Et]=!1,this[Ht]=!1,this[Jn]=!1,this[es]=!1,this[Ni]=null,this.writable=!0,this.readable=!0,this[le]=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[le]}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[bt]&&this[bt].lastNeed||this[le]))throw new Error("cannot change encoding");this[Te]!==e&&(this[bt]=e?new Jm(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[bt].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[wt]}set async(e){this[wt]=this[wt]||!!e}write(e,r,i){if(this[Et])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[wt]?Fi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(cT(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[le]!==0&&this[ts](!0),this.flowing?this.emit("data",e):this[Nc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[bt].write(e)),this.flowing&&this[le]!==0&&this[ts](!0),this.flowing?this.emit("data",e):this[Nc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[le]===0||e===0||e>this[le])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[le])]);let r=this[eg](e||null,this[ee][0]);return this[St](),r}[eg](e,r){return e===r.length||e===null?this[Dc]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[le]-=e),this.emit("data",r),!this[ee].length&&!this[Et]&&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[Et]=!0,this.writable=!1,(this.flowing||!this[Di])&&this[St](),this}[Kr](){this[ye]||(this[Di]=!1,this[rs]=!0,this.emit("resume"),this[ee].length?this[ts]():this[Et]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[rs]=!1,this[Di]=!0}get destroyed(){return this[ye]}get flowing(){return this[rs]}get paused(){return this[Di]}[Nc](e){this[ge]?this[le]+=1:this[le]+=e.length,this[ee].push(e)}[Dc](){return this[ee].length&&(this[ge]?this[le]-=1:this[le]-=this[ee][0].length),this[ee].shift()}[ts](e){do;while(this[tg](this[Dc]()));!e&&!this[ee].length&&!this[Et]&&this.emit("drain")}[tg](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===Zm.stdout||e===Zm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Bc(this,e,r):new is(this,e,r)),this[wt]?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[le]!==0?super.emit("readable"):oT(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ni]&&(this[wt]?Fi(()=>r.call(this,this[Ni])):r.call(this,this[Ni])),i}get emittedEnd(){return this[Ht]}[St](){!this[Jn]&&!this[Ht]&&!this[ye]&&this[ee].length===0&&this[Et]&&(this[Jn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[es]&&this.emit("close"),this[Jn]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[wt]?Fi(()=>this[Fc](r)):this[Fc](r):!1;if(e==="end")return this[rg]();if(e==="close"){if(this[es]=!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}[Fc](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[rg](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[wt]?Fi(()=>this[Mc]()):this[Mc]())}[Mc](){if(this[bt]){let r=this[bt].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())})}[nT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Et])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[Et]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(ye,c),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[le]=0,typeof this.close=="function"&&!this[es]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof ng||e instanceof Qm||e instanceof iT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ag=m((dI,og)=>{var lT=require("zlib").constants||{ZLIB_VERNUM:4736};og.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},lT))});var Gc=m((mI,gg)=>{"use strict";var cg=typeof process=="object"&&process?process:{stdout:null,stderr:null},uT=require("events"),lg=require("stream"),ug=require("string_decoder").StringDecoder,xt=Symbol("EOF"),vt=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),ss=Symbol("emittingEnd"),Mi=Symbol("emittedError"),os=Symbol("closed"),hg=Symbol("read"),as=Symbol("flush"),fg=Symbol("flushChunk"),Oe=Symbol("encoding"),Rt=Symbol("decoder"),cs=Symbol("flowing"),Bi=Symbol("paused"),Vr=Symbol("resume"),ue=Symbol("bufferLength"),qc=Symbol("bufferPush"),Hc=Symbol("bufferShift"),_e=Symbol("objectMode"),Ee=Symbol("destroyed"),Uc=Symbol("emitData"),pg=Symbol("emitEnd"),$c=Symbol("emitEnd2"),At=Symbol("async"),qi=t=>Promise.resolve().then(t),dg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",hT=dg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),fT=dg&&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),ls=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()}},jc=class extends ls{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)}};gg.exports=class mg extends lg{constructor(e){super(),this[cs]=!1,this[Bi]=!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[At]=e&&!!e.async||!1,this[Rt]=this[Oe]?new ug(this[Oe]):null,this[xt]=!1,this[Ut]=!1,this[ss]=!1,this[os]=!1,this[Mi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Ee]=!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[Rt]&&this[Rt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[Rt]=e?new ug(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Rt].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[At]}set async(e){this[At]=this[At]||!!e}write(e,r,i){if(this[xt])throw new Error("write after end");if(this[Ee])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[At]?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[as](!0),this.flowing?this.emit("data",e):this[qc](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[Rt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[Rt].write(e)),this.flowing&&this[ue]!==0&&this[as](!0),this.flowing?this.emit("data",e):this[qc](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[Ee])return null;if(this[ue]===0||e===0||e>this[ue])return this[vt](),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[hg](e||null,this.buffer[0]);return this[vt](),r}[hg](e,r){return e===r.length||e===null?this[Hc]():(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[vt](),this}[Vr](){this[Ee]||(this[Bi]=!1,this[cs]=!0,this.emit("resume"),this.buffer.length?this[as]():this[xt]?this[vt]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[cs]=!1,this[Bi]=!0}get destroyed(){return this[Ee]}get flowing(){return this[cs]}get paused(){return this[Bi]}[qc](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Hc](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[as](e){do;while(this[fg](this[Hc]()));!e&&!this.buffer.length&&!this[xt]&&this.emit("drain")}[fg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[Ut];return r=r||{},e===cg.stdout||e===cg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new jc(this,e,r):new ls(this,e,r)),this[At]?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[At]?qi(()=>r.call(this,this[Mi])):r.call(this,this[Mi])),i}get emittedEnd(){return this[Ut]}[vt](){!this[ss]&&!this[Ut]&&!this[Ee]&&this.buffer.length===0&&this[xt]&&(this[ss]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[os]&&this.emit("close"),this[ss]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[At]?qi(()=>this[Uc](r)):this[Uc](r):!1;if(e==="end")return this[pg]();if(e==="close"){if(this[os]=!0,!this[Ut]&&!this[Ee])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[vt](),s}else if(e==="resume"){let s=super.emit("resume");return this[vt](),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[vt](),n}[Uc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[vt](),r}[pg](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[At]?qi(()=>this[$c]()):this[$c]())}[$c](){if(this[Rt]){let r=this[Rt].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(Ee,()=>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=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[xt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(Ee,c),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[Ee]?(e?this.emit("error",e):this.emit(Ee),this):(this[Ee]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[os]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof mg||e instanceof lg||e instanceof uT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ol=m(Ne=>{"use strict";var Vc=require("assert"),$t=require("buffer").Buffer,Eg=require("zlib"),ur=Ne.constants=ag(),gT=Gc(),yg=$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"),_g=Symbol("finishFlushFlag"),sl=Symbol("fullFlushFlag"),z=Symbol("handle"),us=Symbol("onError"),Xr=Symbol("sawError"),Wc=Symbol("level"),Yc=Symbol("strategy"),zc=Symbol("ended"),gI=Symbol("_defaultFullFlush"),hs=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[zc]=!1,this[yT]=e,this[Hi]=e.flush,this[_g]=e.finishFlush;try{this[z]=new Eg[r](e)}catch(i){throw new Zr(i)}this[us]=i=>{this[Xr]||(this[Xr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[us](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 Vc(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[sl]),this.write(Object.assign($t.alloc(0),{[Hi]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[_g]),this[zc]=!0,super.end(null,null,i)}get ended(){return this[zc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=$t.from(e,r)),this[Xr])return;Vc(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=l=>l;let a;try{let l=typeof e[Hi]=="number"?e[Hi]:this[Hi];a=this[z]._processChunk(e,l),$t.concat=yg}catch(l){$t.concat=yg,this[us](new Zr(l))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",l=>this[us](new Zr(l)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[hr]($t.from(a[0]));for(let l=1;l<a.length;l++)c=this[hr](a[l])}else c=this[hr]($t.from(a));return i&&i(),c}[hr](e){return super.write(e)}},Tt=class extends hs{constructor(e,r){e=e||{},e.flush=e.flush||ur.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ur.Z_FINISH,super(e,r),this[sl]=ur.Z_FULL_FLUSH,this[Wc]=e.level,this[Yc]=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[Wc]!==e||this[Yc]!==r){this.flush(ur.Z_SYNC_FLUSH),Vc(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[Wc]=e,this[Yc]=r)}}}},Xc=class extends Tt{constructor(e){super(e,"Deflate")}},Zc=class extends Tt{constructor(e){super(e,"Inflate")}},Kc=Symbol("_portable"),Qc=class extends Tt{constructor(e){super(e,"Gzip"),this[Kc]=e&&!!e.portable}[hr](e){return this[Kc]?(this[Kc]=!1,e[9]=255,super[hr](e)):super[hr](e)}},Jc=class extends Tt{constructor(e){super(e,"Gunzip")}},el=class extends Tt{constructor(e){super(e,"DeflateRaw")}},tl=class extends Tt{constructor(e){super(e,"InflateRaw")}},rl=class extends Tt{constructor(e){super(e,"Unzip")}},fs=class extends hs{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[sl]=ur.BROTLI_OPERATION_FLUSH}},il=class extends fs{constructor(e){super(e,"BrotliCompress")}},nl=class extends fs{constructor(e){super(e,"BrotliDecompress")}};Ne.Deflate=Xc;Ne.Inflate=Zc;Ne.Gzip=Qc;Ne.Gunzip=Jc;Ne.DeflateRaw=el;Ne.InflateRaw=tl;Ne.Unzip=rl;typeof Eg.BrotliCompress=="function"?(Ne.BrotliCompress=il,Ne.BrotliDecompress=nl):Ne.BrotliCompress=Ne.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Qr=m((EI,Sg)=>{var _T=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Sg.exports=_T!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ps=m((bI,bg)=>{"use strict";var ET=ns(),al=Qr(),cl=Symbol("slurp");bg.exports=class extends ET{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=al(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=al(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[cl](r),i&&this[cl](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))}[cl](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?al(e[i]):e[i])}}});var ll=m(ds=>{"use strict";ds.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"]]);ds.code=new Map(Array.from(ds.name).map(t=>[t[1],t[0]]))});var Rg=m((xI,vg)=>{"use strict";var ST=(t,e)=>{if(Number.isSafeInteger(t))t<0?wT(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)},wT=(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]=wg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=xg(n))}},xT=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=wg(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},wg=t=>(255^t)&255,xg=t=>(255^t)+1&255;vg.exports={encode:ST,parse:xT}});var ei=m((vI,Tg)=>{"use strict";var ul=ll(),Jr=require("path").posix,Ag=Rg(),hl=Symbol("slurp"),De=Symbol("type"),dl=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=jt(e,r+100,8),this.uid=jt(e,r+108,8),this.gid=jt(e,r+116,8),this.size=jt(e,r+124,12),this.mtime=fl(e,r+136,12),this.cksum=jt(e,r+148,12),this[hl](i),this[hl](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=jt(e,r+329,8),this.devmin=jt(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=fl(e,r+476,12),this.ctime=fl(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)}[hl](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=Gt(e,r+100,8,this.mode)||this.needPax,this.needPax=Gt(e,r+108,8,this.uid)||this.needPax,this.needPax=Gt(e,r+116,8,this.gid)||this.needPax,this.needPax=Gt(e,r+124,12,this.size)||this.needPax,this.needPax=pl(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=Gt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Gt(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=pl(e,r+476,12,this.atime)||this.needPax,this.needPax=pl(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,Gt(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 ul.name.get(this[De])||this[De]}get typeKey(){return this[De]}set type(e){ul.code.has(e)?this[De]=ul.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.*/,""),fl=(t,e,r)=>TT(jt(t,e,r)),TT=t=>t===null?null:new Date(t*1e3),jt=(t,e,r)=>t[e]&128?Ag.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},Gt=(t,e,r,i)=>i===null?!1:i>PT[r]||i<0?(Ag.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",pl=(t,e,r,i)=>i===null?!1:Gt(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);Tg.exports=dl});var ms=m((RI,Og)=>{"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};Og.exports=Ui});var ti=m((AI,Cg)=>{Cg.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 gs=m((TI,Pg)=>{"use strict";Pg.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 gl=m((CI,Lg)=>{"use strict";var ys=["|","<",">","?",":"],ml=ys.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),HT=new Map(ys.map((t,e)=>[t,ml[e]])),UT=new Map(ml.map((t,e)=>[t,ys[e]]));Lg.exports={encode:t=>ys.reduce((e,r)=>e.split(r).join(HT.get(r)),t),decode:t=>ml.reduce((e,r)=>e.split(r).join(UT.get(r)),t)}});var yl=m((PI,kg)=>{var{isAbsolute:$T,parse:Ig}=require("path").win32;kg.exports=t=>{let e="",r=Ig(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=Ig(t)}return[e,t]}});var Dg=m((LI,Ng)=>{"use strict";Ng.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 Tl=m((NI,Vg)=>{"use strict";var $g=ns(),jg=ms(),Gg=ei(),ot=require("fs"),Fg=require("path"),st=Qr(),jT=ti(),Wg=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),jT(e)+"/"+t):st(t),GT=16*1024*1024,Mg=Symbol("process"),Bg=Symbol("file"),qg=Symbol("directory"),El=Symbol("symlink"),Hg=Symbol("hardlink"),$i=Symbol("header"),_s=Symbol("read"),Sl=Symbol("lstat"),Es=Symbol("onlstat"),bl=Symbol("onread"),wl=Symbol("onreadlink"),xl=Symbol("openfile"),vl=Symbol("onopenfile"),Wt=Symbol("close"),Ss=Symbol("mode"),Rl=Symbol("awaitDrain"),_l=Symbol("ondrain"),at=Symbol("prefix"),Ug=Symbol("hadError"),Yg=gs(),WT=gl(),zg=yl(),Kg=Dg(),bs=Yg(class extends $g{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||GT,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]=zg(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||Fg.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[Sl]()}emit(e,...r){return e==="error"&&(this[Ug]=!0),super.emit(e,...r)}[Sl](){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[Mg]()}[Mg](){switch(this.type){case"File":return this[Bg]();case"Directory":return this[qg]();case"SymbolicLink":return this[El]();default:return this.end()}}[Ss](e){return Kg(e,this.type==="Directory",this.portable)}[at](e){return Wg(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[Ss](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 jg({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)}[qg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[$i](),this.end()}[El](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[wl](r)})}[wl](e){this.linkpath=st(e),this[$i](),this.end()}[Hg](e){this.type="Link",this.linkpath=st(Fg.relative(this.cwd,e)),this.stat.size=0,this[$i](),this.end()}[Bg](){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[Hg](r)}this.linkCache.set(e,this.absolute)}if(this[$i](),this.stat.size===0)return this.end();this[xl]()}[xl](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[vl](r)})}[vl](e){if(this.fd=e,this[Ug])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[_s]()}[_s](){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[bl](a)})}[Wt](e){ot.close(this.fd,e)}[bl](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[_l]():this[Rl](()=>this[_l]())}[Rl](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)}[_l](){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[_s]()}}),Al=class extends bs{[Sl](){this[Es](ot.lstatSync(this.absolute))}[El](){this[wl](ot.readlinkSync(this.absolute))}[xl](){this[vl](ot.openSync(this.absolute,"r"))}[_s](){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[bl](a),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[Rl](e){e()}[Wt](e){ot.closeSync(this.fd),e()}},YT=Yg(class extends $g{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[Ss](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]=zg(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 jg({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 Wg(e,this.prefix)}[Ss](e){return Kg(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()}});bs.Sync=Al;bs.Tar=YT;var zT=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Vg.exports=bs});var Zg=m((DI,Xg)=>{"use strict";Xg.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ol=m((FI,Qg)=>{"use strict";Qg.exports=U;U.Node=dr;U.create=U;function U(t){var e=this;if(e instanceof U||(e=new U),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}U.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};U.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++}};U.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++}};U.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)VT(this,arguments[t]);return this.length};U.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)XT(this,arguments[t]);return this.length};U.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}};U.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}};U.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};U.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};U.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};U.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};U.prototype.map=function(t,e){e=e||this;for(var r=new U,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};U.prototype.mapReverse=function(t,e){e=e||this;for(var r=new U,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};U.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};U.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};U.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};U.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};U.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 U;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};U.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 U;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};U.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};U.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{Zg()(U)}catch{}});var Ps=m((BI,sy)=>{"use strict";var Os=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=ns(),QT=ol(),JT=ps(),Ml=Tl(),eO=Ml.Sync,tO=Ml.Tar,rO=Ol(),Jg=Buffer.alloc(1024),vs=Symbol("onStat"),ws=Symbol("ended"),ct=Symbol("queue"),ri=Symbol("current"),mr=Symbol("process"),xs=Symbol("processing"),ey=Symbol("processJob"),lt=Symbol("jobs"),Cl=Symbol("jobDone"),Rs=Symbol("addFSEntry"),ty=Symbol("addTarEntry"),kl=Symbol("stat"),Nl=Symbol("readdir"),As=Symbol("onreaddir"),Ts=Symbol("pipe"),ry=Symbol("entry"),Pl=Symbol("entryOpt"),Dl=Symbol("writeEntryClass"),ny=Symbol("write"),Ll=Symbol("ondrain"),Cs=require("fs"),iy=require("path"),iO=gs(),Il=Qr(),Bl=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=Il(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Dl]=Ml,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[Ll]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Ll]),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[ct]=new rO,this[lt]=0,this.jobs=+e.jobs||4,this[xs]=!1,this[ws]=!1}[ny](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[ty](e):this[Rs](e),this.flowing}[ty](e){let r=Il(iy.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Os(e.path,r,!1);i.entry=new tO(e,this[Pl](i)),i.entry.on("end",n=>this[Cl](i)),this[lt]+=1,this[ct].push(i)}this[mr]()}[Rs](e){let r=Il(iy.resolve(this.cwd,e));this[ct].push(new Os(e,r)),this[mr]()}[kl](e){e.pending=!0,this[lt]+=1;let r=this.follow?"stat":"lstat";Cs[r](e.absolute,(i,n)=>{e.pending=!1,this[lt]-=1,i?this.emit("error",i):this[vs](e,n)})}[vs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[mr]()}[Nl](e){e.pending=!0,this[lt]+=1,Cs.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[lt]-=1,r)return this.emit("error",r);this[As](e,i)})}[As](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[mr]()}[mr](){if(!this[xs]){this[xs]=!0;for(let e=this[ct].head;e!==null&&this[lt]<this.jobs;e=e.next)if(this[ey](e.value),e.value.ignore){let r=e.next;this[ct].removeNode(e),e.next=r}this[xs]=!1,this[ws]&&!this[ct].length&&this[lt]===0&&(this.zip?this.zip.end(Jg):(super.write(Jg),super.end()))}}get[ri](){return this[ct]&&this[ct].head&&this[ct].head.value}[Cl](e){this[ct].shift(),this[lt]-=1,this[mr]()}[ey](e){if(!e.pending){if(e.entry){e===this[ri]&&!e.piped&&this[Ts](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[vs](e,this.statCache.get(e.absolute)):this[kl](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[As](e,this.readdirCache.get(e.absolute)):this[Nl](e),!e.readdir))){if(e.entry=this[ry](e),!e.entry){e.ignore=!0;return}e===this[ri]&&!e.piped&&this[Ts](e)}}}[Pl](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}}[ry](e){this[lt]+=1;try{return new this[Dl](e.path,this[Pl](e)).on("end",()=>this[Cl](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Ll](){this[ri]&&this[ri].entry&&this[ri].entry.resume()}[Ts](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Rs](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()}}),Fl=class extends Bl{constructor(e){super(e),this[Dl]=eO}pause(){}resume(){}[kl](e){let r=this.follow?"statSync":"lstatSync";this[vs](e,Cs[r](e.absolute))}[Nl](e,r){this[As](e,Cs.readdirSync(e.absolute))}[Ts](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Rs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[ny](n)})}};Bl.Sync=Fl;sy.exports=Bl});var ui=m(Gi=>{"use strict";var nO=Gc(),sO=require("events").EventEmitter,Ce=require("fs"),Ul=Ce.writev;if(!Ul){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Ul=(r,i,n,s)=>{let o=(c,l)=>s(c,l,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var ci=Symbol("_autoClose"),Ke=Symbol("_close"),ji=Symbol("_ended"),G=Symbol("_fd"),oy=Symbol("_finished"),zt=Symbol("_flags"),ql=Symbol("_flush"),$l=Symbol("_handleChunk"),jl=Symbol("_makeBuf"),Ds=Symbol("_mode"),Ls=Symbol("_needDrain"),oi=Symbol("_onerror"),li=Symbol("_onopen"),Hl=Symbol("_onread"),ni=Symbol("_onwrite"),Kt=Symbol("_open"),Ot=Symbol("_path"),gr=Symbol("_pos"),ut=Symbol("_queue"),si=Symbol("_read"),ay=Symbol("_readSize"),Yt=Symbol("_reading"),Is=Symbol("_remain"),cy=Symbol("_size"),ks=Symbol("_write"),ii=Symbol("_writing"),Ns=Symbol("_defaultFlag"),ai=Symbol("_errored"),Fs=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[Ot]=e,this[ay]=r.readSize||16*1024*1024,this[Yt]=!1,this[cy]=typeof r.size=="number"?r.size:1/0,this[Is]=this[cy],this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[G]=="number"?this[si]():this[Kt]()}get fd(){return this[G]}get path(){return this[Ot]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Ce.open(this[Ot],"r",(e,r)=>this[li](e,r))}[li](e,r){e?this[oi](e):(this[G]=r,this.emit("open",r),this[si]())}[jl](){return Buffer.allocUnsafe(Math.min(this[ay],this[Is]))}[si](){if(!this[Yt]){this[Yt]=!0;let e=this[jl]();if(e.length===0)return process.nextTick(()=>this[Hl](null,0,e));Ce.read(this[G],e,0,e.length,null,(r,i,n)=>this[Hl](r,i,n))}}[Hl](e,r,i){this[Yt]=!1,e?this[oi](e):this[$l](r,i)&&this[si]()}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[oi](e){this[Yt]=!0,this[Ke](),this.emit("error",e)}[$l](e,r){let i=!1;return this[Is]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Is]<=0)&&(i=!1,this[Ke](),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)}}},Gl=class extends Fs{[Kt](){let e=!0;try{this[li](null,Ce.openSync(this[Ot],"r")),e=!1}finally{e&&this[Ke]()}}[si](){let e=!0;try{if(!this[Yt]){this[Yt]=!0;do{let r=this[jl](),i=r.length===0?0:Ce.readSync(this[G],r,0,r.length,null);if(!this[$l](i,r))break}while(!0);this[Yt]=!1}e=!1}finally{e&&this[Ke]()}}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}},Ms=class extends sO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ai]=!1,this[ii]=!1,this[ji]=!1,this[Ls]=!1,this[ut]=[],this[Ot]=e,this[G]=typeof r.fd=="number"?r.fd:null,this[Ds]=r.mode===void 0?438:r.mode,this[gr]=typeof r.start=="number"?r.start:null,this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[gr]!==null?"r+":"w";this[Ns]=r.flags===void 0,this[zt]=this[Ns]?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[Ot]}[oi](e){this[Ke](),this[ii]=!0,this.emit("error",e)}[Kt](){Ce.open(this[Ot],this[zt],this[Ds],(e,r)=>this[li](e,r))}[li](e,r){this[Ns]&&this[zt]==="r+"&&e&&e.code==="ENOENT"?(this[zt]="w",this[Kt]()):e?this[oi](e):(this[G]=r,this.emit("open",r),this[ql]())}end(e,r){return e&&this.write(e,r),this[ji]=!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[ji]?(this.emit("error",new Error("write() after end()")),!1):this[G]===null||this[ii]||this[ut].length?(this[ut].push(e),this[Ls]=!0,!1):(this[ii]=!0,this[ks](e),!0)}[ks](e){Ce.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[ql]():(this[ii]=!1,this[ji]&&!this[oy]?(this[oy]=!0,this[Ke](),this.emit("finish")):this[Ls]&&(this[Ls]=!1,this.emit("drain"))))}[ql](){if(this[ut].length===0)this[ji]&&this[ni](null,0);else if(this[ut].length===1)this[ks](this[ut].pop());else{let e=this[ut];this[ut]=[],Ul(this[G],e,this[gr],(r,i)=>this[ni](r,i))}}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Wl=class extends Ms{[Kt](){let e;if(this[Ns]&&this[zt]==="r+")try{e=Ce.openSync(this[Ot],this[zt],this[Ds])}catch(r){if(r.code==="ENOENT")return this[zt]="w",this[Kt]();throw r}else e=Ce.openSync(this[Ot],this[zt],this[Ds]);this[li](null,e)}[Ke](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}[ks](e){let r=!0;try{this[ni](null,Ce.writeSync(this[G],e,0,e.length,this[gr])),r=!1}finally{if(r)try{this[Ke]()}catch{}}}};Gi.ReadStream=Fs;Gi.ReadStreamSync=Gl;Gi.WriteStream=Ms;Gi.WriteStreamSync=Wl});var Gs=m((UI,gy)=>{"use strict";var oO=gs(),aO=ei(),cO=require("events"),lO=Ol(),uO=1024*1024,hO=ps(),ly=ms(),fO=ol(),{nextTick:pO}=require("process"),Yl=Buffer.from([31,139]),$e=Symbol("state"),yr=Symbol("writeEntry"),Ct=Symbol("readEntry"),zl=Symbol("nextEntry"),uy=Symbol("processEntry"),je=Symbol("extendedHeader"),Wi=Symbol("globalExtendedHeader"),Vt=Symbol("meta"),hy=Symbol("emitMeta"),X=Symbol("buffer"),Pt=Symbol("queue"),_r=Symbol("ended"),fy=Symbol("emittedEnd"),Er=Symbol("emit"),Pe=Symbol("unzip"),Bs=Symbol("consumeChunk"),qs=Symbol("consumeChunkSub"),Kl=Symbol("consumeBody"),py=Symbol("consumeMeta"),dy=Symbol("consumeHeader"),Hs=Symbol("consuming"),Vl=Symbol("bufferConcat"),Xl=Symbol("maybeEnd"),Yi=Symbol("writing"),Xt=Symbol("aborted"),Us=Symbol("onDone"),Sr=Symbol("sawValidEntry"),$s=Symbol("sawNullBlock"),js=Symbol("sawEOF"),my=Symbol("closeStream"),dO=t=>!0;gy.exports=oO(class extends cO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Sr]=null,this.on(Us,r=>{(this[$e]==="begin"||this[Sr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Us,e.ondone):this.on(Us,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[Pt]=new lO,this[X]=null,this[Ct]=null,this[yr]=null,this[$e]="begin",this[Vt]="",this[je]=null,this[Wi]=null,this[_r]=!1,this[Pe]=null,this[Xt]=!1,this[$s]=!1,this[js]=!1,this.on("end",()=>this[my]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[dy](e,r){this[Sr]===null&&(this[Sr]=!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[$s]?(this[js]=!0,this[$e]==="begin"&&(this[$e]="header"),this[Er]("eof")):(this[$s]=!0,this[Er]("nullBlock"));else if(this[$s]=!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[Sr])if(s.remain){let o=()=>{s.invalid||(this[Sr]=!0)};s.on("end",o)}else this[Sr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Er]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Vt]="",s.on("data",o=>this[Vt]+=o),this[$e]="meta"):(this[je]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Er]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[Ct]?this[Pt].push(s):(this[Pt].push(s),this[zl]())))}}}[my](){pO(()=>this.emit("close"))}[uy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ct]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[zl]()),r=!1)):(this[Ct]=null,r=!1),r}[zl](){do;while(this[uy](this[Pt].shift()));if(!this[Pt].length){let e=this[Ct];!e||e.flowing||e.size===e.remain?this[Yi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Kl](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}[py](e,r){let i=this[yr],n=this[Kl](e,r);return this[yr]||this[hy](i),n}[Er](e,r,i){!this[Pt].length&&!this[Ct]?this.emit(e,r,i):this[Pt].push([e,r,i])}[hy](e){switch(this[Er]("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[Pe]===null&&e){if(this[X]&&(e=Buffer.concat([this[X],e]),this[X]=null),e.length<Yl.length)return this[X]=e,!0;for(let i=0;this[Pe]===null&&i<Yl.length;i++)e[i]!==Yl[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[_r];this[_r]=!1,this[Pe]=new fO.Unzip,this[Pe].on("data",s=>this[Bs](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[_r]=!0,this[Bs]()}),this[Yi]=!0;let n=this[Pe][i?"end":"write"](e);return this[Yi]=!1,n}}this[Yi]=!0,this[Pe]?this[Pe].write(e):this[Bs](e),this[Yi]=!1;let r=this[Pt].length?!1:this[Ct]?this[Ct].flowing:!0;return!r&&!this[Pt].length&&this[Ct].once("drain",i=>this.emit("drain")),r}[Vl](e){e&&!this[Xt]&&(this[X]=this[X]?Buffer.concat([this[X],e]):e)}[Xl](){if(this[_r]&&!this[fy]&&!this[Xt]&&!this[Hs]){this[fy]=!0;let e=this[yr];if(e&&e.blockRemain){let r=this[X]?this[X].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[X]&&e.write(this[X]),e.end()}this[Er](Us)}}[Bs](e){if(this[Hs])this[Vl](e);else if(!e&&!this[X])this[Xl]();else{if(this[Hs]=!0,this[X]){this[Vl](e);let r=this[X];this[X]=null,this[qs](r)}else this[qs](e);for(;this[X]&&this[X].length>=512&&!this[Xt]&&!this[js];){let r=this[X];this[X]=null,this[qs](r)}this[Hs]=!1}(!this[X]||this[_r])&&this[Xl]()}[qs](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[js];)switch(this[$e]){case"begin":case"header":this[dy](e,r),r+=512;break;case"ignore":case"body":r+=this[Kl](e,r);break;case"meta":r+=this[py](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[X]?this[X]=Buffer.concat([e.slice(r),this[X]]):this[X]=e.slice(r))}end(e){this[Xt]||(this[Pe]?this[Pe].end(e):(this[_r]=!0,this.write(e)))}})});var Ws=m(($I,Sy)=>{"use strict";var mO=zr(),_y=Gs(),hi=require("fs"),gO=ui(),yy=require("path"),Zl=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?EO(i):i.file?SO(i,r):Ey(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=>[Zl(s),!0])),i=t.filter,n=(s,o)=>{let a=o||yy.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(yy.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(Zl(s)):s=>n(Zl(s))},EO=t=>{let e=Ey(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,c=Buffer.allocUnsafe(o);for(n=hi.openSync(r,"r");a<s.size;){let l=hi.readSync(n,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{hi.closeSync(n)}catch{}}},SO=(t,e)=>{let r=new _y(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,(c,l)=>{if(c)a(c);else{let u=new gO.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Ey=t=>new _y(t)});var Ay=m((jI,Ry)=>{"use strict";var bO=zr(),Ys=Ps(),by=ui(),wy=Ws(),xy=require("path");Ry.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?wO(i,e):i.file?xO(i,e,r):i.sync?vO(i,e):RO(i,e)};var wO=(t,e)=>{let r=new Ys.Sync(t),i=new by.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),vy(r,e)},xO=(t,e,r)=>{let i=new Ys(t),n=new by.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 Ql(i,e),r?s.then(r,r):s},vy=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?wy({file:xy.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ql=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return wy({file:xy.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ql(t,e));t.add(r)}t.end()},vO=(t,e)=>{let r=new Ys.Sync(t);return vy(r,e),r},RO=(t,e)=>{let r=new Ys(t);return Ql(r,e),r}});var Jl=m((GI,ky)=>{"use strict";var AO=zr(),Ty=Ps(),Fe=require("fs"),Oy=ui(),Cy=Ws(),Py=require("path"),Ly=ei();ky.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 Ty.Sync(t),i=!0,n,s;try{try{n=Fe.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")n=Fe.openSync(t.file,"w+");else throw c}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 c=new Ly(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(c.path,c.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 Oy.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),PO(e,n)},CO=(t,e,r)=>{e=Array.from(e);let i=new Ty(t),n=(o,a,c)=>{let l=(d,y)=>{d?Fe.close(o,w=>c(d)):c(null,y)},u=0;if(a===0)return l(null,0);let h=0,f=Buffer.alloc(512),g=(d,y)=>{if(d)return l(d);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 l(new Error("cannot append to compressed archives"));if(h<512)return l(null,u);let w=new Ly(f);if(!w.cksumValid)return l(null,u);let v=512*Math.ceil(w.size/512);if(u+v+512>a||(u+=v+512,u>=a))return l(null,u);t.mtimeCache&&t.mtimeCache.set(w.path,w.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 c="r+",l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+")return c="w+",Fe.open(t.file,c,l);if(u)return a(u);Fe.fstat(h,(f,g)=>{if(f)return Fe.close(h,()=>a(f));n(h,g.size,(d,y)=>{if(d)return a(d);let w=new Oy.WriteStream(t.file,{fd:h,start:y});i.pipe(w),w.on("error",a),w.on("close",o),Iy(i,e)})})};Fe.open(t.file,c,l)});return r?s.then(r,r):s},PO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Cy({file:Py.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Iy=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Cy({file:Py.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Iy(t,e));t.add(r)}t.end()}});var Dy=m((WI,Ny)=>{"use strict";var LO=zr(),IO=Jl();Ny.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 By=m((YI,My)=>{var{promisify:Fy}=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=Fy(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=Fy(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};My.exports=NO});var Hy=m((zI,qy)=>{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};qy.exports=BO});var Wy=m((KI,Gy)=>{var{dirname:Uy}=require("path"),$y=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?$y(t,Uy(e),e):void 0),jy=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?jy(t,Uy(e),e):void 0}};Gy.exports={findMade:$y,findMadeSync:jy}});var ru=m((VI,zy)=>{var{dirname:Yy}=require("path"),eu=(t,e,r)=>{e.recursive=!1;let i=Yy(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 eu(i,e).then(s=>eu(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})})},tu=(t,e,r)=>{let i=Yy(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 tu(t,e,tu(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};zy.exports={mkdirpManual:eu,mkdirpManualSync:tu}});var Xy=m((XI,Vy)=>{var{dirname:Ky}=require("path"),{findMade:qO,findMadeSync:HO}=Wy(),{mkdirpManual:UO,mkdirpManualSync:$O}=ru(),jO=(t,e)=>(e.recursive=!0,Ky(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}))),GO=(t,e)=>{if(e.recursive=!0,Ky(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}};Vy.exports={mkdirpNative:jO,mkdirpNativeSync:GO}});var e_=m((ZI,Jy)=>{var Zy=require("fs"),WO=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,iu=WO.replace(/^v/,"").split("."),Qy=+iu[0]>10||+iu[0]==10&&+iu[1]>=12,YO=Qy?t=>t.mkdir===Zy.mkdir:()=>!1,zO=Qy?t=>t.mkdirSync===Zy.mkdirSync:()=>!1;Jy.exports={useNative:YO,useNativeSync:zO}});var o_=m((QI,s_)=>{var fi=By(),pi=Hy(),{mkdirpNative:t_,mkdirpNativeSync:r_}=Xy(),{mkdirpManual:i_,mkdirpManualSync:n_}=ru(),{useNative:KO,useNativeSync:VO}=e_(),di=(t,e)=>(t=pi(t),e=fi(e),KO(e)?t_(t,e):i_(t,e)),XO=(t,e)=>(t=pi(t),e=fi(e),VO(e)?r_(t,e):n_(t,e));di.sync=XO;di.native=(t,e)=>t_(pi(t),fi(e));di.manual=(t,e)=>i_(pi(t),fi(e));di.nativeSync=(t,e)=>r_(pi(t),fi(e));di.manualSync=(t,e)=>n_(pi(t),fi(e));s_.exports=di});var p_=m((JI,f_)=>{"use strict";var Ge=require("fs"),br=require("path"),ZO=Ge.lchown?"lchown":"chown",QO=Ge.lchownSync?"lchownSync":"chownSync",c_=Ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a_=(t,e,r)=>{try{return Ge[QO](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},JO=(t,e,r)=>{try{return Ge.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},eC=c_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ge.chown(t,e,r,i)}:(t,e,r,i)=>i,nu=c_?(t,e,r)=>{try{return a_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;JO(t,e,r)}}:(t,e,r)=>a_(t,e,r),tC=process.version,l_=(t,e,r)=>Ge.readdir(t,e,r),rC=(t,e)=>Ge.readdirSync(t,e);/^v4\./.test(tC)&&(l_=(t,e,r)=>Ge.readdir(t,r));var zs=(t,e,r,i)=>{Ge[ZO](t,e,r,eC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},u_=(t,e,r,i,n)=>{if(typeof e=="string")return Ge.lstat(br.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,u_(t,o,r,i,n)});if(e.isDirectory())su(br.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=br.resolve(t,e.name);zs(o,r,i,n)});else{let s=br.resolve(t,e.name);zs(s,r,i,n)}},su=(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 zs(t,e,r,i);let o=s.length,a=null,c=l=>{if(!a){if(l)return i(a=l);if(--o===0)return zs(t,e,r,i)}};s.forEach(l=>u_(t,l,e,r,c))})},iC=(t,e,r,i)=>{if(typeof e=="string")try{let n=Ge.lstatSync(br.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&h_(br.resolve(t,e.name),r,i),nu(br.resolve(t,e.name),r,i)},h_=(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 nu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>iC(t,n,e,r)),nu(t,e,r)};f_.exports=su;su.sync=h_});var y_=m((ek,ou)=>{"use strict";var d_=o_(),We=require("fs"),Ks=require("path"),m_=p_(),Ve=Qr(),Vs=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Xs=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zs=(t,e)=>t.get(Ve(e)),zi=(t,e,r)=>t.set(Ve(e),r),nC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Xs(t,r&&r.code||"ENOTDIR")),e(r)})};ou.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,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,u=e.unlink,h=e.cache,f=Ve(e.cwd),g=(w,v)=>{w?r(w):(zi(h,t,!0),v&&c?m_(v,o,a,A=>g(A)):s?We.chmod(t,n,r):r())};if(h&&Zs(h,t)===!0)return g();if(t===f)return nC(t,g);if(l)return d_(t,{mode:n}).then(w=>g(null,w),g);let y=Ve(Ks.relative(f,t)).split("/");Qs(f,y,n,h,u,f,null,g)};var Qs=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=Ve(Ks.resolve(t+"/"+c));if(Zs(i,l))return Qs(l,e,r,i,n,s,o,a);We.mkdir(l,r,g_(l,e,r,i,n,s,o,a))},g_=(t,e,r,i,n,s,o,a)=>c=>{c?We.lstat(t,(l,u)=>{if(l)l.path=l.path&&Ve(l.path),a(l);else if(u.isDirectory())Qs(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,g_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Vs(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,Qs(t,e,r,i,n,s,o,a))},sC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Xs(t,r)}};ou.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),c=e.preserve,l=e.unlink,u=e.cache,h=Ve(e.cwd),f=w=>{zi(u,t,!0),w&&a&&m_.sync(w,s,o),n&&We.chmodSync(t,i)};if(u&&Zs(u,t)===!0)return f();if(t===h)return sC(h),f();if(c)return f(d_.sync(t,i));let d=Ve(Ks.relative(h,t)).split("/"),y=null;for(let w=d.shift(),v=h;w&&(v+="/"+w);w=d.shift())if(v=Ve(Ks.resolve(v)),!Zs(u,v))try{We.mkdirSync(v,i),y=y||v,zi(u,v,!0)}catch{let M=We.lstatSync(v);if(M.isDirectory()){zi(u,v,!0);continue}else if(l){We.unlinkSync(v),We.mkdirSync(v,i),y=y||v,zi(u,v,!0);continue}else if(M.isSymbolicLink())return new Vs(v,v+"/"+d.join("/"))}return f(y)}});var cu=m((tk,__)=>{var au=Object.create(null),{hasOwnProperty:oC}=Object.prototype;__.exports=t=>(oC.call(au,t)||(au[t]=t.normalize("NFKD")),au[t])});var w_=m((rk,b_)=>{var E_=require("assert"),aC=cu(),cC=ti(),{join:S_}=require("path"),lC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,uC=lC==="win32";b_.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=S_(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let u=e.get(l);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=l=>{let{paths:u,dirs:h}=n(l);return u.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>a(l)),!0),a=l=>{if(!i.has(l))return!1;let{paths:u,dirs:h}=e.get(l),f=new Set;return u.forEach(g=>{let d=t.get(g);E_.equal(d[0],l),d.length===1?t.delete(g):(d.shift(),typeof d[0]=="function"?f.add(d[0]):d[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let d=t.get(g);E_(d[0]instanceof Set),d[0].size===1&&d.length===1?t.delete(g):d[0].size===1?(d.shift(),f.add(d[0])):d[0].delete(l)}),i.delete(l),f.forEach(g=>o(g)),!0};return{check:s,reserve:(l,u)=>{l=uC?["win32 parallelization disabled"]:l.map(f=>aC(cC(S_(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:l}),l.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 R_=m((ik,v_)=>{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,EC=x_|mC|dC|gC;v_.exports=yC?t=>t<_C?EC:"w":()=>"w"});var yu=m((nk,q_)=>{"use strict";var SC=require("assert"),bC=Gs(),$=require("fs"),wC=ui(),Lt=require("path"),F_=y_(),A_=gl(),xC=w_(),vC=yl(),Me=Qr(),RC=ti(),AC=cu(),T_=Symbol("onEntry"),hu=Symbol("checkFs"),O_=Symbol("checkFs2"),to=Symbol("pruneCache"),fu=Symbol("isReusable"),Ye=Symbol("makeFs"),pu=Symbol("file"),du=Symbol("directory"),ro=Symbol("link"),C_=Symbol("symlink"),P_=Symbol("hardlink"),L_=Symbol("unsupported"),I_=Symbol("checkPath"),Qt=Symbol("mkdir"),Se=Symbol("onError"),Js=Symbol("pending"),k_=Symbol("pend"),mi=Symbol("unpend"),lu=Symbol("ended"),uu=Symbol("maybeClose"),mu=Symbol("skip"),Ki=Symbol("doChown"),Vi=Symbol("uid"),Xi=Symbol("gid"),Zi=Symbol("checkedCwd"),M_=require("crypto"),B_=R_(),TC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Qi=TC==="win32",OC=(t,e)=>{if(!Qi)return $.unlink(t,e);let r=t+".DELETE."+M_.randomBytes(16).toString("hex");$.rename(t,r,i=>{if(i)return e(i);$.unlink(r,e)})},CC=t=>{if(!Qi)return $.unlinkSync(t);let e=t+".DELETE."+M_.randomBytes(16).toString("hex");$.renameSync(t,e),$.unlinkSync(e)},N_=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,D_=t=>AC(RC(Me(t))).toLowerCase(),PC=(t,e)=>{e=D_(e);for(let r of t.keys()){let i=D_(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[lu]=!0,this[uu]()},super(e),this[Zi]=!1,this.reservations=xC(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Js]=0,this[lu]=!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(Lt.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[T_](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[uu](){this[lu]&&this[Js]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[I_](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(Lt.isAbsolute(e.path)?e.absolute=Me(Lt.resolve(e.path)):e.absolute=Me(Lt.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}=Lt.win32.parse(e.absolute);e.absolute=r+A_.encode(e.absolute.slice(r.length));let{root:i}=Lt.win32.parse(e.path);e.path=i+A_.encode(e.path.slice(i.length))}return!0}[T_](e){if(!this[I_](e))return e.resume();switch(SC.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[hu](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[L_](e)}}[Se](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){F_(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 N_(this.uid,e.uid,this.processUid)}[Xi](e){return N_(this.gid,e.gid,this.processGid)}[pu](e,r){let i=e.mode&4095||this.fmode,n=new wC.WriteStream(e.absolute,{flags:B_(e.size),mode:i,autoClose:!1});n.on("error",c=>{n.fd&&$.close(n.fd,()=>{}),n.write=()=>!0,this[Se](c,e),r()});let s=1,o=c=>{if(c){n.fd&&$.close(n.fd,()=>{}),this[Se](c,e),r();return}--s===0&&$.close(n.fd,l=>{l?this[Se](l,e):this[mi](),r()})};n.on("finish",c=>{let l=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;$.futimes(u,h,f,g=>g?$.utimes(l,h,f,d=>o(d&&g)):o())}if(this[Ki](e)){s++;let h=this[Vi](e),f=this[Xi](e);$.fchown(u,h,f,g=>g?$.chown(l,h,f,d=>o(d&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[Se](c,e),r()}),e.pipe(a)),a.pipe(n)}[du](e,r){let i=e.mode&4095||this.dmode;this[Qt](e.absolute,i,n=>{if(n){this[Se](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[mi](),e.resume())};e.mtime&&!this.noMtime&&(s++,$.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ki](e)&&(s++,$.chown(e.absolute,this[Vi](e),this[Xi](e),o)),o()})}[L_](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[C_](e,r){this[ro](e,e.linkpath,"symlink",r)}[P_](e,r){let i=Me(Lt.resolve(this.cwd,e.linkpath));this[ro](e,i,"link",r)}[k_](){this[Js]++}[mi](){this[Js]--,this[uu]()}[mu](e){this[mi](),e.resume()}[fu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Qi}[hu](e){this[k_]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[O_](e,i))}[to](e){e.type==="SymbolicLink"?LC(this.dirCache):e.type!=="Directory"&&PC(this.dirCache,e.absolute)}[O_](e,r){this[to](e);let i=a=>{this[to](e),r(a)},n=()=>{this[Qt](this.cwd,this.dmode,a=>{if(a){this[Se](a,e),i();return}this[Zi]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Me(Lt.dirname(e.absolute));if(a!==this.cwd)return this[Qt](a,this.dmode,c=>{if(c){this[Se](c,e),i();return}o()})}o()},o=()=>{$.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[mu](e),i();return}if(a||this[fu](e,c))return this[Ye](null,e,i);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return l?$.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return $.rmdir(e.absolute,l=>this[Ye](l,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);OC(e.absolute,l=>this[Ye](l,e,i))})};this[Zi]?s():n()}[Ye](e,r,i){if(e){this[Se](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[pu](r,i);case"Link":return this[P_](r,i);case"SymbolicLink":return this[C_](r,i);case"Directory":case"GNUDumpDir":return this[du](r,i)}}[ro](e,r,i,n){$[i](r,e.absolute,s=>{s?this[Se](s,e):(this[mi](),e.resume()),n()})}},eo=t=>{try{return[null,t()]}catch(e){return[e,null]}},gu=class extends Ji{[Ye](e,r){return super[Ye](e,r,()=>{})}[hu](e){if(this[to](e),!this[Zi]){let s=this[Qt](this.cwd,this.dmode);if(s)return this[Se](s,e);this[Zi]=!0}if(e.absolute!==this.cwd){let s=Me(Lt.dirname(e.absolute));if(s!==this.cwd){let o=this[Qt](s,this.dmode);if(o)return this[Se](o,e)}}let[r,i]=eo(()=>$.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[mu](e);if(r||this[fu](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?eo(()=>{$.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=eo(()=>$.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:eo(()=>CC(e.absolute));this[Ye](n,e)}[pu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let c;try{$.closeSync(s)}catch(l){c=l}(a||c)&&this[Se](a||c,e),r()},s;try{s=$.openSync(e.absolute,B_(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Se](a,e)),e.pipe(o)),o.on("data",a=>{try{$.writeSync(s,a,0,a.length)}catch(c){n(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,u=e.mtime;try{$.futimesSync(s,l,u)}catch(h){try{$.utimesSync(e.absolute,l,u)}catch{c=h}}}if(this[Ki](e)){let l=this[Vi](e),u=this[Xi](e);try{$.fchownSync(s,l,u)}catch(h){try{$.chownSync(e.absolute,l,u)}catch{c=c||h}}}n(c)})}[du](e,r){let i=e.mode&4095||this.dmode,n=this[Qt](e.absolute,i);if(n){this[Se](n,e),r();return}if(e.mtime&&!this.noMtime)try{$.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ki](e))try{$.chownSync(e.absolute,this[Vi](e),this[Xi](e))}catch{}r(),e.resume()}[Qt](e,r){try{return F_.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}}[ro](e,r,i,n){try{$[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Se](s,e)}}};Ji.Sync=gu;q_.exports=Ji});var G_=m((sk,j_)=>{"use strict";var IC=zr(),io=yu(),U_=require("fs"),$_=ui(),H_=require("path"),_u=ti();j_.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=>[_u(s),!0])),i=t.filter,n=(s,o)=>{let a=o||H_.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(H_.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(_u(s)):s=>n(_u(s))},NC=t=>{let e=new io.Sync(t),r=t.file,i=U_.statSync(r),n=t.maxReadSize||16*1024*1024;new $_.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},DC=(t,e)=>{let r=new io(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),U_.stat(n,(c,l)=>{if(c)a(c);else{let u=new $_.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},FC=t=>new io.Sync(t),MC=t=>new io(t)});var W_=m(ae=>{"use strict";ae.c=ae.create=Ay();ae.r=ae.replace=Jl();ae.t=ae.list=Ws();ae.u=ae.update=Dy();ae.x=ae.extract=G_();ae.Pack=Ps();ae.Unpack=yu();ae.Parse=Gs();ae.ReadEntry=ps();ae.WriteEntry=Tl();ae.Header=ei();ae.Pax=ms();ae.types=ll()});var V_=m((uk,K_)=>{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))}K_.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 X_=m(wr=>{var GC=V_();wr.operation=function(t){var e=wr.timeouts(t);return new GC(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(c){var l=wr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){c.apply(t,u)})}.bind(t,o),t[s].options=e}}});var Q_=m((fk,Z_)=>{Z_.exports=X_()});var eE=m((pk,J_)=>{var WC=Q_();function YC(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=WC.operation(s);function a(u){n(u||new Error("Aborted"))}function c(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function l(u){var h;try{h=t(a,u)}catch(f){c(f,u);return}Promise.resolve(h).then(i).catch(function(g){c(g,u)})}o.attempt(l)}return new Promise(r)}J_.exports=YC});var uP={};bu(uP,{default:()=>lP,transformer:()=>sE});module.exports=fE(uP);var iE=q(require("path")),Su=q(require("fs-extra"));var lo=q(require("picocolors"));var pE=q(Ou());function fo(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 po(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mo(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 po(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 go(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 yo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _o(){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 _o()?xr=Reflect.construct.bind():xr=function(n,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(n,a),l=new c;return o&&pt(l,o.prototype),l},xr.apply(null,arguments)}function _i(t){var e=typeof Map=="function"?new Map:void 0;return _i=function(i){if(i===null||!yo(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 Cu=q(require("find-up"));var dE=q(require("fs-extra")),jP=function(t){go(e,t);function e(r){var i;return fo(this,e),i=mo(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 _E=q(require("json5"));var mE=q(require("fs")),gE=q(require("path"));var eR=q(require("fs")),tR=q(require("path"));function Wu(t){return typeof t=="undefined"||t===null}function EE(t){return typeof t=="object"&&t!==null}function SE(t){return Array.isArray(t)?t:Wu(t)?[]:[t]}function bE(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 wE(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function xE(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var vE=Wu,RE=EE,AE=SE,TE=wE,OE=xE,CE=bE,oe={isNothing:vE,isObject:RE,toArray:AE,repeat:TE,isNegativeZero:OE,extend:CE};function Yu(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 Si(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Yu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Si.prototype=Object.create(Error.prototype);Si.prototype.constructor=Si;Si.prototype.toString=function(e){return this.name+": "+Yu(this,e)};var we=Si;function Eo(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 So(t,e){return oe.repeat(" ",e-t.length)+t}function OE(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="",c,l,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)l=Eo(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),h),a=oe.repeat(" ",e.indent)+So((t.line-c+1).toString(),u)+" | "+l.str+`
10
+ `+t.mark.snippet),i+" "+r):i}function Si(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Yu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Si.prototype=Object.create(Error.prototype);Si.prototype.constructor=Si;Si.prototype.toString=function(e){return this.name+": "+Yu(this,e)};var xe=Si;function Eo(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 So(t,e){return oe.repeat(" ",e-t.length)+t}function PE(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="",c,l,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)l=Eo(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),h),a=oe.repeat(" ",e.indent)+So((t.line-c+1).toString(),u)+" | "+l.str+`
11
11
  `+a;for(l=Eo(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+So((t.line+1).toString(),u)+" | "+l.str+`
12
12
  `,a+=oe.repeat("-",e.indent+u+3+l.pos)+`^
13
13
  `,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)l=Eo(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),h),a+=oe.repeat(" ",e.indent)+So((t.line+c+1).toString(),u)+" | "+l.str+`
14
- `;return a.replace(/\n$/,"")}var CE=OE,PE=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],LE=["scalar","sequence","mapping"];function IE(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function kE(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(PE.indexOf(r)===-1)throw new we('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=IE(e.styleAliases||null),LE.indexOf(this.kind)===-1)throw new we('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=kE;function Pu(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 NE(){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 xo(t){return this.extend(t)}xo.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 we("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof fe))throw new we("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new we("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 we("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 we("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(xo.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Pu(n,"implicit"),n.compiledExplicit=Pu(n,"explicit"),n.compiledTypeMap=NE(n.compiledImplicit,n.compiledExplicit),n};var DE=xo,FE=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ME=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),BE=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),qE=new DE({explicit:[FE,ME,BE]});function HE(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function UE(){return null}function $E(t){return t===null}var jE=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:HE,construct:UE,predicate:$E,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function GE(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 WE(t){return t==="true"||t==="True"||t==="TRUE"}function YE(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var zE=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:GE,construct:WE,predicate:YE,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 KE(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function VE(t){return 48<=t&&t<=55}function XE(t){return 48<=t&&t<=57}function ZE(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(!KE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!VE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!XE(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function QE(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 JE(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var eS=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:ZE,construct:QE,predicate:JE,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"]}}),tS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function rS(t){return!(t===null||!tS.test(t)||t[t.length-1]==="_")}function iS(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 nS=/^[-+]?[0-9]+e/;function sS(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),nS.test(r)?r.replace("e",".e"):r}function oS(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var aS=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:rS,construct:iS,predicate:oS,represent:sS,defaultStyle:"lowercase"}),cS=qE.extend({implicit:[jE,zE,eS,aS]}),lS=cS,zu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ku=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 uS(t){return t===null?!1:zu.exec(t)!==null||Ku.exec(t)!==null}function hS(t){var e,r,i,n,s,o,a,c=0,l=null,u,h,f;if(e=zu.exec(t),e===null&&(e=Ku.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(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=+e[10],h=+(e[11]||0),l=(u*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,a,c)),l&&f.setTime(f.getTime()-l),f}function fS(t){return t.toISOString()}var pS=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uS,construct:hS,instanceOf:Date,represent:fS});function dS(t){return t==="<<"||t===null}var mS=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dS}),To=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
- \r`;function gS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=To;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 yS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=To,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 _S(t){var e="",r=0,i,n,s=t.length,o=To;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 ES(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var SS=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:gS,construct:yS,predicate:ES,represent:_S}),bS=Object.prototype.hasOwnProperty,xS=Object.prototype.toString;function wS(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,xS.call(n)!=="[object Object]")return!1;for(s in n)if(bS.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 vS(t){return t!==null?t:[]}var RS=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wS,construct:vS}),AS=Object.prototype.toString;function TS(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],AS.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function OS(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 CS=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TS,construct:OS}),PS=Object.prototype.hasOwnProperty;function LS(t){if(t===null)return!0;var e,r=t;for(e in r)if(PS.call(r,e)&&r[e]!==null)return!1;return!0}function IS(t){return t!==null?t:{}}var kS=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:LS,construct:IS}),Vu=lS.extend({implicit:[pS,mS],explicit:[SS,RS,CS,kS]}),kt=Object.prototype.hasOwnProperty,sn=1,Xu=2,Zu=3,on=4,bo=1,NS=2,Lu=3,DS=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,FS=/[\x85\u2028\u2029]/,MS=/[,\[\]\{\}]/,Qu=/^(?:!|!!|![a-z\-]+!)$/i,Ju=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Iu(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 BS(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function qS(t){return t===120?2:t===117?4:t===85?8:0}function HS(t){return 48<=t&&t<=57?t-48:-1}function ku(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 US(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var eh=new Array(256),th=new Array(256);for(tr=0;tr<256;tr++)eh[tr]=ku(tr)?1:0,th[tr]=ku(tr);var tr;function $S(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Vu,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 rh(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=CE(r),new we(e,r)}function C(t,e){throw rh(t,e)}function an(t,e){t.onWarning&&t.onWarning.call(null,rh(t,e))}var Nu={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&&an(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],Qu.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),kt.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ju.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 It(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 DS.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Du(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],kt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Ar(t,e,r,i,n,s,o,a,c){var l,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,u=n.length;l<u;l+=1)Array.isArray(n[l])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Iu(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&Iu(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,u=s.length;l<u;l+=1)Du(t,e,s[l],r);else Du(t,e,s,r);else!t.json&&!kt.call(r,n)&&kt.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||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 Oo(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(Oo(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&&an(t,"deficient indentation"),i}function un(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 Co(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
- `,e-1))}function jS(t,e,r){var i,n,s,o,a,c,l,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&&un(t)||r&&Rr(g))break;if(Ze(g))if(c=t.line,l=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=c,t.lineStart=l,t.lineIndent=u;break}}a&&(It(t,s,o,!1),Co(t,t.line-c),s=o=t.position,a=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return It(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function GS(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(It(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)?(It(t,i,n,!0),Co(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&un(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 WS(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 It(t,r,t.position,!0),t.position++,!0;if(a===92){if(It(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&eh[a])t.result+=th[a],t.position++;else if((o=qS(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=BS(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=US(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(It(t,r,i,!0),Co(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&un(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 YS(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,l,u,h,f,g,d=Object.create(null),y,x,v,A;if(A=t.input.charCodeAt(t.position),A===91)u=93,g=!1,a=[];else if(A===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),A=t.input.charCodeAt(++t.position);A!==0;){if(te(t,!0,e),A=t.input.charCodeAt(t.position),A===u)return t.position++,t.tag=o,t.anchor=c,t.kind=g?"mapping":"sequence",t.result=a,!0;r?A===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),x=y=v=null,h=f=!1,A===63&&(l=t.input.charCodeAt(t.position+1),ve(l)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Tr(t,e,sn,!1,!0),x=t.tag,y=t.result,te(t,!0,e),A=t.input.charCodeAt(t.position),(f||t.line===i)&&A===58&&(h=!0,A=t.input.charCodeAt(++t.position),te(t,!0,e),Tr(t,e,sn,!1,!0),v=t.result),g?Ar(t,a,d,x,y,v,i,n,s):h?a.push(Ar(t,null,d,x,y,v,i,n,s)):a.push(y),te(t,!0,e),A=t.input.charCodeAt(t.position),A===44?(r=!0,A=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function zS(t,e){var r,i,n=bo,s=!1,o=!1,a=e,c=0,l=!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)bo===n?n=h===43?Lu:NS:C(t,"repeat of a chomping mode identifier");else if((u=HS(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(Oo(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)){c++;continue}if(t.lineIndent<a){n===Lu?t.result+=oe.repeat(`
14
+ `;return a.replace(/\n$/,"")}var LE=PE,IE=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kE=["scalar","sequence","mapping"];function NE(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function DE(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(IE.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=NE(e.styleAliases||null),kE.indexOf(this.kind)===-1)throw new xe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=DE;function Pu(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 FE(){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 wo(t){return this.extend(t)}wo.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(wo.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Pu(n,"implicit"),n.compiledExplicit=Pu(n,"explicit"),n.compiledTypeMap=FE(n.compiledImplicit,n.compiledExplicit),n};var ME=wo,BE=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),qE=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),HE=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),UE=new ME({explicit:[BE,qE,HE]});function $E(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function jE(){return null}function GE(t){return t===null}var WE=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:$E,construct:jE,predicate:GE,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function YE(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 zE(t){return t==="true"||t==="True"||t==="TRUE"}function KE(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var VE=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:YE,construct:zE,predicate:KE,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 XE(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function ZE(t){return 48<=t&&t<=55}function QE(t){return 48<=t&&t<=57}function JE(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(!XE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!ZE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!QE(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function eS(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 tS(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var rS=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:JE,construct:eS,predicate:tS,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"]}}),iS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function nS(t){return!(t===null||!iS.test(t)||t[t.length-1]==="_")}function sS(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 oS=/^[-+]?[0-9]+e/;function aS(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),oS.test(r)?r.replace("e",".e"):r}function cS(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var lS=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:nS,construct:sS,predicate:cS,represent:aS,defaultStyle:"lowercase"}),uS=UE.extend({implicit:[WE,VE,rS,lS]}),hS=uS,zu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ku=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 fS(t){return t===null?!1:zu.exec(t)!==null||Ku.exec(t)!==null}function pS(t){var e,r,i,n,s,o,a,c=0,l=null,u,h,f;if(e=zu.exec(t),e===null&&(e=Ku.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(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=+e[10],h=+(e[11]||0),l=(u*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,a,c)),l&&f.setTime(f.getTime()-l),f}function dS(t){return t.toISOString()}var mS=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fS,construct:pS,instanceOf:Date,represent:dS});function gS(t){return t==="<<"||t===null}var yS=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gS}),To=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function _S(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=To;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 ES(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=To,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 SS(t){var e="",r=0,i,n,s=t.length,o=To;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 bS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wS=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_S,construct:ES,predicate:bS,represent:SS}),xS=Object.prototype.hasOwnProperty,vS=Object.prototype.toString;function RS(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,vS.call(n)!=="[object Object]")return!1;for(s in n)if(xS.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 AS(t){return t!==null?t:[]}var TS=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:RS,construct:AS}),OS=Object.prototype.toString;function CS(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],OS.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function PS(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 LS=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:CS,construct:PS}),IS=Object.prototype.hasOwnProperty;function kS(t){if(t===null)return!0;var e,r=t;for(e in r)if(IS.call(r,e)&&r[e]!==null)return!1;return!0}function NS(t){return t!==null?t:{}}var DS=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:kS,construct:NS}),Vu=hS.extend({implicit:[mS,yS],explicit:[wS,TS,LS,DS]}),kt=Object.prototype.hasOwnProperty,sn=1,Xu=2,Zu=3,on=4,bo=1,FS=2,Lu=3,MS=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,BS=/[\x85\u2028\u2029]/,qS=/[,\[\]\{\}]/,Qu=/^(?:!|!!|![a-z\-]+!)$/i,Ju=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Iu(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 HS(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function US(t){return t===120?2:t===117?4:t===85?8:0}function $S(t){return 48<=t&&t<=57?t-48:-1}function ku(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 jS(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var eh=new Array(256),th=new Array(256);for(tr=0;tr<256;tr++)eh[tr]=ku(tr)?1:0,th[tr]=ku(tr);var tr;function GS(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Vu,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 rh(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=LE(r),new xe(e,r)}function C(t,e){throw rh(t,e)}function an(t,e){t.onWarning&&t.onWarning.call(null,rh(t,e))}var Nu={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&&an(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],Qu.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),kt.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ju.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 It(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 MS.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Du(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],kt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Ar(t,e,r,i,n,s,o,a,c){var l,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,u=n.length;l<u;l+=1)Array.isArray(n[l])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Iu(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&Iu(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,u=s.length;l<u;l+=1)Du(t,e,s[l],r);else Du(t,e,s,r);else!t.json&&!kt.call(r,n)&&kt.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||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 Oo(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(Oo(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&&an(t,"deficient indentation"),i}function un(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 Co(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
+ `,e-1))}function WS(t,e,r){var i,n,s,o,a,c,l,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&&un(t)||r&&Rr(g))break;if(Ze(g))if(c=t.line,l=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=c,t.lineStart=l,t.lineIndent=u;break}}a&&(It(t,s,o,!1),Co(t,t.line-c),s=o=t.position,a=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return It(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function YS(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(It(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)?(It(t,i,n,!0),Co(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&un(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 zS(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 It(t,r,t.position,!0),t.position++,!0;if(a===92){if(It(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&eh[a])t.result+=th[a],t.position++;else if((o=US(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=HS(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=jS(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(It(t,r,i,!0),Co(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&un(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 KS(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,l,u,h,f,g,d=Object.create(null),y,w,v,A;if(A=t.input.charCodeAt(t.position),A===91)u=93,g=!1,a=[];else if(A===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),A=t.input.charCodeAt(++t.position);A!==0;){if(te(t,!0,e),A=t.input.charCodeAt(t.position),A===u)return t.position++,t.tag=o,t.anchor=c,t.kind=g?"mapping":"sequence",t.result=a,!0;r?A===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),w=y=v=null,h=f=!1,A===63&&(l=t.input.charCodeAt(t.position+1),ve(l)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Tr(t,e,sn,!1,!0),w=t.tag,y=t.result,te(t,!0,e),A=t.input.charCodeAt(t.position),(f||t.line===i)&&A===58&&(h=!0,A=t.input.charCodeAt(++t.position),te(t,!0,e),Tr(t,e,sn,!1,!0),v=t.result),g?Ar(t,a,d,w,y,v,i,n,s):h?a.push(Ar(t,null,d,w,y,v,i,n,s)):a.push(y),te(t,!0,e),A=t.input.charCodeAt(t.position),A===44?(r=!0,A=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function VS(t,e){var r,i,n=bo,s=!1,o=!1,a=e,c=0,l=!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)bo===n?n=h===43?Lu:FS:C(t,"repeat of a chomping mode identifier");else if((u=$S(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(Oo(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)){c++;continue}if(t.lineIndent<a){n===Lu?t.result+=oe.repeat(`
18
18
  `,s?1+c:c):n===bo&&s&&(t.result+=`
19
19
  `);break}for(i?rr(h)?(l=!0,t.result+=oe.repeat(`
20
20
  `,s?1+c:c)):l?(l=!1,t.result+=oe.repeat(`
21
21
  `,c+1)):c===0?s&&(t.result+=" "):t.result+=oe.repeat(`
22
22
  `,c):t.result+=oe.repeat(`
23
- `,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);It(t,r,t.position,!1)}return!0}function Fu(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(c!==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),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Tr(t,e,Zu,!1,!0),s.push(t.result),te(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==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 KS(t,e,r){var i,n,s,o,a,c,l=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,d=null,y=null,x=!1,v=!1,A;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),A=t.input.charCodeAt(t.position);A!==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,(A===63||A===58)&&ve(i))A===63?(x&&(Ar(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!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,A=i;else{if(o=t.line,a=t.lineStart,c=t.position,!Tr(t,r,Xu,!1,!0))break;if(t.line===s){for(A=t.input.charCodeAt(t.position);rr(A);)A=t.input.charCodeAt(++t.position);if(A===58)A=t.input.charCodeAt(++t.position),ve(A)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Ar(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!0,x=!1,n=!1,g=t.tag,d=t.result;else if(v)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(v)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(x&&(o=t.line,a=t.lineStart,c=t.position),Tr(t,e,on,!0,n)&&(x?d=t.result:y=t.result),x||(Ar(t,h,f,g,d,y,o,a,c),g=d=y=null),te(t,!0,-1),A=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&A!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Ar(t,h,f,g,d,null,o,a,c),v&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),v}function VS(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),Qu.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),MS.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Ju.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:kt.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 XS(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 ZS(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),kt.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,c=1,l=!1,u=!1,h,f,g,d,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=on===r||Zu===r,i&&te(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;VS(t)||XS(t);)te(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=l||n),(c===1||on===r)&&(sn===r||Xu===r?y=e:y=e+1,x=t.position-t.lineStart,c===1?a&&(Fu(t,x)||KS(t,x,y))||YS(t,y)?u=!0:(o&&zS(t,y)||GS(t,y)||WS(t,y)?u=!0:ZS(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):jS(t,y,sn===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(u=a&&Fu(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(d=t.implicitTypes[h],d.resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(kt.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=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){d=g[h];break}d||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&d.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):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 QS(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&&Oo(t),kt.call(Nu,i)?Nu[i](t,i,n):an(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,on,!1,!0),te(t,!0,-1),t.checkLineBreaks&&FS.test(t.input.slice(e,t.position))&&an(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&un(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 ih(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 $S(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;)QS(r);return r.documents}function JS(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=ih(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=ih(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new we("expected a single document in the stream, but found more")}}var tb=JS,rb=eb,nh={loadAll:tb,load:rb},sh=Object.prototype.toString,oh=Object.prototype.hasOwnProperty,Po=65279,ib=9,bi=10,nb=13,sb=32,ob=33,ab=34,wo=35,cb=37,lb=38,ub=39,hb=42,ah=44,fb=45,cn=58,pb=61,db=62,mb=63,gb=64,ch=91,lh=93,yb=96,uh=123,_b=124,hh=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 Eb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Sb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function bb(t,e){var r,i,n,s,o,a,c;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)),c=t.compiledTypeMap.fallback[o],c&&oh.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function xb(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 we("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oe.repeat("0",i-e.length)+e}var wb=1,xi=2;function vb(t){this.schema=t.schema||Vu,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==='"'?xi:wb,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 Mu(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+c:c),s=!0,o=!0,c=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);It(t,r,t.position,!1)}return!0}function Fu(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(c!==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),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Tr(t,e,Zu,!1,!0),s.push(t.result),te(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==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 XS(t,e,r){var i,n,s,o,a,c,l=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,d=null,y=null,w=!1,v=!1,A;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),A=t.input.charCodeAt(t.position);A!==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,(A===63||A===58)&&ve(i))A===63?(w&&(Ar(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!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,A=i;else{if(o=t.line,a=t.lineStart,c=t.position,!Tr(t,r,Xu,!1,!0))break;if(t.line===s){for(A=t.input.charCodeAt(t.position);rr(A);)A=t.input.charCodeAt(++t.position);if(A===58)A=t.input.charCodeAt(++t.position),ve(A)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Ar(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!0,w=!1,n=!1,g=t.tag,d=t.result;else if(v)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(v)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(w&&(o=t.line,a=t.lineStart,c=t.position),Tr(t,e,on,!0,n)&&(w?d=t.result:y=t.result),w||(Ar(t,h,f,g,d,y,o,a,c),g=d=y=null),te(t,!0,-1),A=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&A!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return w&&Ar(t,h,f,g,d,null,o,a,c),v&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),v}function ZS(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),Qu.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),qS.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Ju.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:kt.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 QS(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 JS(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),kt.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,c=1,l=!1,u=!1,h,f,g,d,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=on===r||Zu===r,i&&te(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;ZS(t)||QS(t);)te(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=l||n),(c===1||on===r)&&(sn===r||Xu===r?y=e:y=e+1,w=t.position-t.lineStart,c===1?a&&(Fu(t,w)||XS(t,w,y))||KS(t,y)?u=!0:(o&&VS(t,y)||YS(t,y)||zS(t,y)?u=!0:JS(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):WS(t,y,sn===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(u=a&&Fu(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(d=t.implicitTypes[h],d.resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(kt.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=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){d=g[h];break}d||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&d.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):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 eb(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&&Oo(t),kt.call(Nu,i)?Nu[i](t,i,n):an(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,on,!1,!0),te(t,!0,-1),t.checkLineBreaks&&BS.test(t.input.slice(e,t.position))&&an(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&un(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 ih(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 GS(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;)eb(r);return r.documents}function tb(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=ih(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function rb(t,e){var r=ih(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 ib=tb,nb=rb,nh={loadAll:ib,load:nb},sh=Object.prototype.toString,oh=Object.prototype.hasOwnProperty,Po=65279,sb=9,bi=10,ob=13,ab=32,cb=33,lb=34,xo=35,ub=37,hb=38,fb=39,pb=42,ah=44,db=45,cn=58,mb=61,gb=62,yb=63,_b=64,ch=91,lh=93,Eb=96,uh=123,Sb=124,hh=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 bb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],wb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xb(t,e){var r,i,n,s,o,a,c;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)),c=t.compiledTypeMap.fallback[o],c&&oh.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function vb(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 Rb=1,wi=2;function Ab(t){this.schema=t.schema||Vu,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=xb(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:Rb,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 Mu(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 vo(t,e){return`
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 wi(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Po||65536<=t&&t<=1114111}function Bu(t){return wi(t)&&t!==Po&&t!==nb&&t!==bi}function qu(t,e,r){var i=Bu(t),n=i&&!ln(t);return(r?i:i&&t!==ah&&t!==ch&&t!==lh&&t!==uh&&t!==hh)&&t!==wo&&!(e===cn&&!n)||Bu(e)&&!ln(e)&&t===wo||e===cn&&n}function Ab(t){return wi(t)&&t!==Po&&!ln(t)&&t!==fb&&t!==mb&&t!==cn&&t!==ah&&t!==ch&&t!==lh&&t!==uh&&t!==hh&&t!==wo&&t!==lb&&t!==hb&&t!==ob&&t!==_b&&t!==pb&&t!==db&&t!==ub&&t!==ab&&t!==cb&&t!==gb&&t!==yb}function Tb(t){return!ln(t)&&t!==cn}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 fh(t){var e=/^\n* /;return e.test(t)}var ph=1,Ro=2,dh=3,mh=4,vr=5;function Ob(t,e,r,i,n,s,o,a){var c,l=0,u=null,h=!1,f=!1,g=i!==-1,d=-1,y=Ab(Ei(t,0))&&Tb(Ei(t,t.length-1));if(e||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Ei(t,c),!wi(l))return vr;y=y&&qu(l,u,a),u=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Ei(t,c),l===bi)h=!0,g&&(f=f||c-d-1>i&&t[d+1]!==" ",d=c);else if(!wi(l))return vr;y=y&&qu(l,u,a),u=l}f=f||g&&c-d-1>i&&t[d+1]!==" "}return!h&&!f?y&&!o&&!n(t)?ph:s===xi?vr:Ro:r>9&&fh(t)?vr:o?s===xi?vr:Ro:f?mh:dh}function Cb(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===xi?'""':"''";if(!t.noCompatMode&&(Eb.indexOf(e)!==-1||Sb.test(e)))return t.quotingType===xi?'"'+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 c(l){return Rb(t,l)}switch(Ob(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case ph:return e;case Ro:return"'"+e.replace(/'/g,"''")+"'";case dh:return"|"+Hu(e,t.indent)+Uu(Mu(e,s));case mh:return">"+Hu(e,t.indent)+Uu(Mu(Pb(e,o),s));case vr:return'"'+Lb(e)+'"';default:throw new we("impossible error: invalid scalar style")}}()}function Hu(t,e){var r=fh(t)?String(e):"",i=t[t.length-1]===`
27
+ `+oe.repeat(" ",t.indent*e)}function Tb(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===ab||t===sb}function xi(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Po||65536<=t&&t<=1114111}function Bu(t){return xi(t)&&t!==Po&&t!==ob&&t!==bi}function qu(t,e,r){var i=Bu(t),n=i&&!ln(t);return(r?i:i&&t!==ah&&t!==ch&&t!==lh&&t!==uh&&t!==hh)&&t!==xo&&!(e===cn&&!n)||Bu(e)&&!ln(e)&&t===xo||e===cn&&n}function Ob(t){return xi(t)&&t!==Po&&!ln(t)&&t!==db&&t!==yb&&t!==cn&&t!==ah&&t!==ch&&t!==lh&&t!==uh&&t!==hh&&t!==xo&&t!==hb&&t!==pb&&t!==cb&&t!==Sb&&t!==mb&&t!==gb&&t!==fb&&t!==lb&&t!==ub&&t!==_b&&t!==Eb}function Cb(t){return!ln(t)&&t!==cn}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 fh(t){var e=/^\n* /;return e.test(t)}var ph=1,Ro=2,dh=3,mh=4,vr=5;function Pb(t,e,r,i,n,s,o,a){var c,l=0,u=null,h=!1,f=!1,g=i!==-1,d=-1,y=Ob(Ei(t,0))&&Cb(Ei(t,t.length-1));if(e||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Ei(t,c),!xi(l))return vr;y=y&&qu(l,u,a),u=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Ei(t,c),l===bi)h=!0,g&&(f=f||c-d-1>i&&t[d+1]!==" ",d=c);else if(!xi(l))return vr;y=y&&qu(l,u,a),u=l}f=f||g&&c-d-1>i&&t[d+1]!==" "}return!h&&!f?y&&!o&&!n(t)?ph:s===wi?vr:Ro:r>9&&fh(t)?vr:o?s===wi?vr:Ro:f?mh:dh}function Lb(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===wi?'""':"''";if(!t.noCompatMode&&(bb.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 c(l){return Tb(t,l)}switch(Pb(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case ph:return e;case Ro:return"'"+e.replace(/'/g,"''")+"'";case dh:return"|"+Hu(e,t.indent)+Uu(Mu(e,s));case mh:return">"+Hu(e,t.indent)+Uu(Mu(Ib(e,o),s));case vr:return'"'+kb(e)+'"';default:throw new xe("impossible error: invalid scalar style")}}()}function Hu(t,e){var r=fh(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
31
  `}function Uu(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 l=t.indexOf(`
32
+ `?t.slice(0,-1):t}function Ib(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
33
33
  `);return l=l!==-1?l:t.length,r.lastIndex=l,$u(t.slice(0,l),e)}(),n=t[0]===`
34
34
  `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",i+=a+(!n&&!s&&c!==""?`
35
35
  `:"")+$u(c,e),n=s}return i}function $u(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
36
36
  `+t.slice(n,s),n=s+1),o=a;return c+=`
37
37
  `,t.length-n>e&&o>n?c+=t.slice(n,o)+`
38
- `+t.slice(o+1):c+=t.slice(n),c.slice(1)}function Lb(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&&wi(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||xb(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 ju(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(dt(t,e+1,c,!0,!0,!1,!0)||typeof c=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=vo(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,c,l,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=s[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),dt(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,l,!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,c,l,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 we("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)f="",(!i||n!=="")&&(f+=vo(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),dt(t,e+1,l,!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+=vo(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 Gu(t,e,r){var i,n,s,o,a,c;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(c=t.styleMap[a.tag]||a.defaultStyle,sh.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(oh.call(a.represent,c))i=a.represent[c](e,c);else throw new we("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Gu(t,r,!1)||Gu(t,r,!0);var a=sh.call(t.dump),c=i,l;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?ju(t,e-1,t.dump,n):ju(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,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new we("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function Db(t,e){var r=[],i=[],n,s;for(Ao(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Ao(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)Ao(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Ao(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 Lo(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 KP=nh.load,VP=nh.loadAll,XP=Bb.dump;var ZP=Lo("safeLoad","load"),QP=Lo("safeLoadAll","loadAll"),JP=Lo("safeDump","dump");var eR=q(id()),tR=q(require("json5"));var ke={};bu(ke,{bold:()=>Gv,dimmed:()=>Yv,error:()=>Oi,grey:()=>zv,info:()=>jv,item:()=>Kv,log:()=>_t,turboBlue:()=>Br,turboGradient:()=>$v,turboLoader:()=>ud,turboRed:()=>cd,underline:()=>Wv,warn:()=>dc,yellow:()=>ld});var Ae=require("picocolors"),nd=q(require("ora")),sd=q(require("gradient-string")),od="#0099F7",ad="#F11712",Uv="#FFFF00",pc=t=>{let e=Vv(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},$v=(0,sd.default)(od,ad),Br=pc(od),cd=pc(ad),ld=pc(Uv),ud=t=>(0,nd.default)({text:t,spinner:{frames:[" ",Br("> "),Br(">> "),Br(">>>")]}}),jv=(...t)=>{_t(Br((0,Ae.bold)(">>>")),t.join(" "))},Gv=(...t)=>{_t((0,Ae.bold)(t.join(" ")))},Wv=(...t)=>{_t((0,Ae.underline)(t.join(" ")))},Yv=(...t)=>{_t((0,Ae.dim)(t.join(" ")))},zv=(...t)=>{_t((0,Ae.gray)(t.join(" ")))},Kv=(...t)=>{_t(Br((0,Ae.bold)(" \u2022")),t.join(" "))},_t=(...t)=>{console.log(...t)},dc=(...t)=>{console.error(ld((0,Ae.bold)(">>>")),t.join(" "))},Oi=(...t)=>{console.error(cd((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 VA=q(require("os")),XA=q(zm());var ZA=q(require("fs-extra"));var QA=q(require("path")),JA=q(require("fs-extra")),eT=q(require("picocolors"));var FC=require("stream"),MC=require("stream/promises"),BC=require("zlib"),no=require("fs"),so=require("path"),qC=require("child_process"),HC=q(W_());var UC=q(require("fs-extra"));var ZC=q(require("path")),QC=q(Q_()),JC=q(require("picocolors")),eP=q(require("fs-extra"));var tP=q(require("picocolors")),rP=q(require("update-check"));var Xe=q(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 J_=q(require("os")),Eu=q(require("path"));var oo=q(require("picocolors")),co=require("diff"),Jt=require("fs-extra"),ao=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{Eu.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,co.diffJson)(this.before,e.after):this.changes=(0,co.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Eu.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(oo.default.green(r.value)):r.removed?process.stdout.write(oo.default.red(r.value)):process.stdout.write(oo.default.dim(r.value))}),ke.log(J_.default.EOL)):ke.log(this.after)}};var en=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 ao({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(lo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(lo.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(lo.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(ke.log(),r.length>0){ke.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),ke.log()}}};function eE({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new gi(i),s=new en(i);return{log:n,runner:s}}var rE="update-schema-json-url",iP='Update the "$schema" property in turbo.json from "https://turborepo.com/schema.v1.json" to "https://turborepo.com/schema.v2.json"',nP="2.0.0";function sP(t){return t.replace("https://turborepo.com/schema.v1.json","https://turborepo.com/schema.v2.json")}function iE({root:t,options:e}){let{log:r,runner:i}=eE({transformer:rE,rootPath:t,options:e});r.info('Updating "$schema" property in turbo.json...');let n=tE.default.join(t,"turbo.json");if(!Su.default.existsSync(n))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});try{let s=Su.default.readFileSync(n,"utf8");if(s.includes("https://turborepo.com/schema.v1.json")){let o=sP(s);i.modifyFile({filePath:n,before:s,after:o}),r.info('Updated "$schema" property in turbo.json')}else r.info("No v1 schema URL found in turbo.json. Skipping update.")}catch(s){return i.abortTransform({reason:`Error updating schema URL in turbo.json: ${String(s)}`})}return i.finish()}var oP={name:rE,description:iP,introducedIn:nP,transformer:iE,idempotent:!0},aP=oP;0&&(module.exports={transformer});
38
+ `+t.slice(o+1):c+=t.slice(n),c.slice(1)}function kb(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&&xi(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||vb(r);return e}function Nb(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 ju(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(dt(t,e+1,c,!0,!0,!1,!0)||typeof c=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=vo(t,e)),t.dump&&bi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function Db(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,l,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=s[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),dt(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,l,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function Fb(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,l,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,c=o.length;a<c;a+=1)f="",(!i||n!=="")&&(f+=vo(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),dt(t,e+1,l,!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+=vo(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 Gu(t,e,r){var i,n,s,o,a,c;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(c=t.styleMap[a.tag]||a.defaultStyle,sh.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(oh.call(a.represent,c))i=a.represent[c](e,c);else throw new xe("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Gu(t,r,!1)||Gu(t,r,!0);var a=sh.call(t.dump),c=i,l;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?(Fb(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 Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?ju(t,e-1,t.dump,n):ju(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(Nb(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Lb(t,t.dump,e,s,c);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!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function Mb(t,e){var r=[],i=[],n,s;for(Ao(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Ao(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)Ao(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Ao(t[i[n]],e,r)}function Bb(t,e){e=e||{};var r=new Ab(e);r.noRefs||Mb(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),dt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var qb=Bb,Hb={dump:qb};function Lo(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 XP=nh.load,ZP=nh.loadAll,QP=Hb.dump;var JP=Lo("safeLoad","load"),e1=Lo("safeLoadAll","loadAll"),t1=Lo("safeDump","dump");var rR=q(id()),iR=q(require("json5"));var ke={};bu(ke,{bold:()=>Yv,dimmed:()=>Kv,error:()=>Oi,grey:()=>Vv,info:()=>Wv,item:()=>Xv,log:()=>_t,turboBlue:()=>Br,turboGradient:()=>Gv,turboLoader:()=>ud,turboRed:()=>cd,underline:()=>zv,warn:()=>dc,yellow:()=>ld});var Ae=require("picocolors"),nd=q(require("ora")),sd=q(require("gradient-string")),od="#0099F7",ad="#F11712",jv="#FFFF00",pc=t=>{let e=Zv(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},Gv=(0,sd.default)(od,ad),Br=pc(od),cd=pc(ad),ld=pc(jv),ud=t=>(0,nd.default)({text:t,spinner:{frames:[" ",Br("> "),Br(">> "),Br(">>>")]}}),Wv=(...t)=>{_t(Br((0,Ae.bold)(">>>")),t.join(" "))},Yv=(...t)=>{_t((0,Ae.bold)(t.join(" ")))},zv=(...t)=>{_t((0,Ae.underline)(t.join(" ")))},Kv=(...t)=>{_t((0,Ae.dim)(t.join(" ")))},Vv=(...t)=>{_t((0,Ae.gray)(t.join(" ")))},Xv=(...t)=>{_t(Br((0,Ae.bold)(" \u2022")),t.join(" "))},_t=(...t)=>{console.log(...t)},dc=(...t)=>{console.error(ld((0,Ae.bold)(">>>")),t.join(" "))},Oi=(...t)=>{console.error(cd((0,Ae.bold)(">>>")),t.join(" "))};function Zv(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(zm());var JA=q(require("fs-extra"));var eT=q(require("path")),tT=q(require("fs-extra")),rT=q(require("picocolors"));var BC=require("stream"),qC=require("stream/promises"),HC=require("zlib"),no=require("fs"),Y_=require("fs/promises"),so=require("path"),UC=require("os"),$C=require("child_process"),z_=q(W_());var jC=q(require("fs-extra"));var JC=q(require("path")),eP=q(eE()),tP=q(require("picocolors")),rP=q(require("fs-extra"));var iP=q(require("picocolors")),nP=q(require("update-check"));var Xe=q(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 tE=q(require("os")),Eu=q(require("path"));var oo=q(require("picocolors")),co=require("diff"),Jt=require("fs-extra"),ao=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{Eu.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,co.diffJson)(this.before,e.after):this.changes=(0,co.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Eu.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(oo.default.green(r.value)):r.removed?process.stdout.write(oo.default.red(r.value)):process.stdout.write(oo.default.dim(r.value))}),ke.log(tE.default.EOL)):ke.log(this.after)}};var en=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 ao({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(lo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(lo.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(lo.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(ke.log(),r.length>0){ke.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),ke.log()}}};function rE({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new gi(i),s=new en(i);return{log:n,runner:s}}var nE="update-schema-json-url",sP='Update the "$schema" property in turbo.json from "https://turborepo.com/schema.v1.json" to "https://turborepo.com/schema.v2.json"',oP="2.0.0";function aP(t){return t.replace("https://turborepo.com/schema.v1.json","https://turborepo.com/schema.v2.json")}function sE({root:t,options:e}){let{log:r,runner:i}=rE({transformer:nE,rootPath:t,options:e});r.info('Updating "$schema" property in turbo.json...');let n=iE.default.join(t,"turbo.json");if(!Su.default.existsSync(n))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});try{let s=Su.default.readFileSync(n,"utf8");if(s.includes("https://turborepo.com/schema.v1.json")){let o=aP(s);i.modifyFile({filePath:n,before:s,after:o}),r.info('Updated "$schema" property in turbo.json')}else r.info("No v1 schema URL found in turbo.json. Skipping update.")}catch(s){return i.abortTransform({reason:`Error updating schema URL in turbo.json: ${String(s)}`})}return i.finish()}var cP={name:nE,description:sP,introducedIn:oP,transformer:sE,idempotent:!0},lP=cP;0&&(module.exports={transformer});
40
40
  /*! Bundled license information:
41
41
 
42
42
  @babel/runtime/helpers/regeneratorRuntime.js: