@turbo/codemod 2.4.4 → 2.4.5-canary.1

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,43 @@
1
- "use strict";var YS=Object.create;var sn=Object.defineProperty;var zS=Object.getOwnPropertyDescriptor;var VS=Object.getOwnPropertyNames;var KS=Object.getPrototypeOf,XS=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nu=(t,e)=>{for(var r in e)sn(t,r,{get:e[r],enumerable:!0})},Du=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of VS(e))!XS.call(t,n)&&n!==r&&sn(t,n,{get:()=>e[n],enumerable:!(i=zS(e,n))||i.enumerable});return t};var q=(t,e,r)=>(r=t!=null?YS(KS(t)):{},Du(e||!t||!t.__esModule?sn(r,"default",{value:t,enumerable:!0}):r,t)),ZS=t=>Du(sn({},"__esModule",{value:!0}),t);var Fu=d((H1,ht)=>{function fo(t){return ht.exports=fo=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,fo(t)}ht.exports=fo,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var qu=d(($1,ft)=>{var Mu=Fu().default;function Bu(){"use strict";ft.exports=Bu=function(){return e},ft.exports.__esModule=!0,ft.exports.default=ft.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,S){p[b]=S.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(p,b,S){return Object.defineProperty(p,b,{value:S,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(S,O,P){return S[O]=P}}function u(p,b,S,O){var P=b&&b.prototype instanceof w?b:w,T=Object.create(P.prototype),Y=new Me(O||[]);return n(T,"_invoke",{value:ie(p,S,Y)}),T}function h(p,b,S){try{return{type:"normal",arg:p.call(b,S)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",m="executing",y="completed",x={};function w(){}function R(){}function M(){}var re={};c(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=w.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(S){return this._invoke(b,S)})})}function B(p,b){function S(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&Mu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(Be){S("next",Be,Y,he)},function(Be){S("throw",Be,Y,he)}):b.resolve(k).then(function(Be){be.value=Be,Y(be)},function(Be){return S("throw",Be,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){S(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,S){var O=f;return function(P,T){if(O===m)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(S.method=P,S.arg=T;;){var Y=S.delegate;if(Y){var he=E(Y,S);if(he){if(he===x)continue;return he}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(O===f)throw O=y,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);O=m;var ne=h(p,b,S);if(ne.type==="normal"){if(O=S.done?y:g,ne.arg===x)continue;return{value:ne.arg,done:S.done}}ne.type==="throw"&&(O=y,S.method="throw",S.arg=ne.arg)}}}function E(p,b){var S=b.method,O=p.iterator[S];if(O===t)return b.delegate=null,S==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,E(p,b),b.method==="throw")||S!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+S+"' method")),x;var P=h(O,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,x;var T=P.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,x):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,x)}function W(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function G(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Me(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var S=-1,O=function P(){for(;++S<p.length;)if(i.call(p,S))return P.value=p[S],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(Mu(p)+" is not iterable")}return R.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,l,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===R||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,c(p,l,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(B.prototype),c(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,S,O,P){P===void 0&&(P=Promise);var T=new B(u(p,b,S,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),c(L,l,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),S=[];for(var O in b)S.push(O);return S.reverse(),function P(){for(;S.length;){var T=S.pop();if(T in b)return P.value=T,P.done=!1,P}return P.done=!0,P}},e.values=_,Me.prototype={constructor:Me,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(G),!b)for(var S in this)S.charAt(0)==="t"&&i.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var S=this;function O(be,k){return Y.type="throw",Y.arg=b,S.next=be,k&&(S.method="next",S.arg=t),!!k}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],Y=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,S){for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=S&&S<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=S,T?(this.method="next",this.next=T.finallyLoc,x):this.complete(Y)},complete:function(b,S){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&S&&(this.next=S),x},finish:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),G(O),x}},catch:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;G(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,S,O){return this.delegate={iterator:_(b),resultName:S,nextLoc:O},this.method==="next"&&(this.arg=t),x}},e}ft.exports=Bu,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var $u=d((U1,Hu)=>{var on=qu()();Hu.exports=on;try{regeneratorRuntime=on}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=on:Function("r","regeneratorRuntime = r")(on)}});var zh=d(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.splitWhen=Cr.flatten=void 0;function v0(t){return t.reduce((e,r)=>[].concat(e,r),[])}Cr.flatten=v0;function R0(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Cr.splitWhen=R0});var Vh=d(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.isEnoentCodeError=void 0;function A0(t){return t.code==="ENOENT"}mn.isEnoentCodeError=A0});var Kh=d(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.createDirentFromStats=void 0;var qo=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 T0(t,e){return new qo(t,e)}gn.createDirentFromStats=T0});var Xh=d(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var O0=require("path"),C0=2,P0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function L0(t){return t.replace(/\\/g,"/")}Qe.unixify=L0;function I0(t,e){return O0.resolve(t,e)}Qe.makeAbsolute=I0;function k0(t){return t.replace(P0,"\\$2")}Qe.escape=k0;function N0(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(C0)}return t}Qe.removeLeadingDotSegment=N0});var Qh=d((TP,Zh)=>{Zh.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 tf=d((OP,ef)=>{var D0=Qh(),Jh={"{":"}","(":")","[":"]"},F0=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=Jh[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},M0=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=Jh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};ef.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(D0(e))return!0;var i=F0;return r&&r.strict===!1&&(i=M0),i(e)}});var nf=d((CP,rf)=>{"use strict";var B0=tf(),q0=require("path").posix.dirname,H0=require("os").platform()==="win32",Ho="/",$0=/\\/g,U0=/[\{\[].*[\}\]]$/,G0=/(^|[^\\])([\{\[]|\([^\)]+$)/,j0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;rf.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&H0&&e.indexOf(Ho)<0&&(e=e.replace($0,Ho)),U0.test(e)&&(e+=Ho),e+="a";do e=q0(e);while(B0(e)||G0.test(e));return e.replace(j0,"$1")}});var yn=d(qe=>{"use strict";qe.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;qe.find=(t,e)=>t.nodes.find(r=>r.type===e);qe.exceedsLimit=(t,e,r=1,i)=>i===!1||!qe.isInteger(t)||!qe.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;qe.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};qe.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);qe.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;qe.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;qe.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);qe.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var _n=d((LP,of)=>{"use strict";var sf=yn();of.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&sf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&sf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var lf=d((IP,af)=>{"use strict";af.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var yf=d((kP,gf)=>{"use strict";var cf=lf(),ir=(t,e,r)=>{if(cf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(cf(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(ir.cache.hasOwnProperty(l))return ir.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=mf(t)||mf(e),f={min:t,max:e,a:c,b:u},g=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;m=uf(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(g=uf(c,u,f,i)),f.negatives=m,f.positives=g,f.result=W0(m,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+m.length>1&&(f.result=`(?:${f.result})`),ir.cache[l]=f,f.result};function W0(t,e,r){let i=$o(t,e,"-",!1,r)||[],n=$o(e,t,"",!1,r)||[],s=$o(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function Y0(t,e){let r=1,i=1,n=ff(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=ff(t,r);for(n=pf(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=pf(e+1,i)-1;return s=[...s],s.sort(K0),s}function z0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=V0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=X0(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function uf(t,e,r,i){let n=Y0(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=z0(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+df(a.count),o=c+1;continue}r.isPadded&&(h=Z0(c,r,i)),u.string=h+u.pattern+df(u.count),s.push(u),o=c+1,a=u}return s}function $o(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!hf(e,"string",a)&&s.push(r+a),i&&hf(e,"string",a)&&s.push(r+a)}return s}function V0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function K0(t,e){return t>e?1:e>t?-1:0}function hf(t,e,r){return t.some(i=>i[e]===r)}function ff(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function pf(t,e){return t-t%Math.pow(10,e)}function df(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function X0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function mf(t){return/^-?(0+)\d/.test(t)}function Z0(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={};gf.exports=ir});var jo=d((NP,Rf)=>{"use strict";var Q0=require("util"),Ef=yf(),_f=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),J0=t=>e=>t===!0?Number(e):String(e),Uo=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ai=t=>Number.isInteger(+t),Go=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},ex=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,tx=(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},Sf=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},rx=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},bf=(t,e,r,i)=>{if(r)return Ef(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},xf=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Ef(t,e,r)},wf=(...t)=>new RangeError("Invalid range arguments: "+Q0.inspect(...t)),vf=(t,e,r)=>{if(r.strictRanges===!0)throw wf([t,e]);return[]},ix=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},nx=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw wf([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=Go(a)||Go(l)||Go(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&ex(t,e,i)===!1,g=i.transform||J0(f);if(i.toRegex&&r===1)return bf(Sf(t,h),Sf(e,h),!0,i);let m={negatives:[],positives:[]},y=R=>m[R<0?"negatives":"positives"].push(Math.abs(R)),x=[],w=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):x.push(tx(g(n,w),h,f)),n=o?n-r:n+r,w++;return i.toRegex===!0?r>1?rx(m,i):xf(x,null,{wrap:!1,...i}):x},sx=(t,e,r=1,i={})=>{if(!Ai(t)&&t.length>1||!Ai(e)&&e.length>1)return vf(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return bf(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?xf(u,null,{wrap:!1,options:i}):u},Sn=(t,e,r,i={})=>{if(e==null&&Uo(t))return[t];if(!Uo(t)||!Uo(e))return vf(t,e,i);if(typeof r=="function")return Sn(t,e,1,{transform:r});if(_f(r))return Sn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Ai(r)?Ai(t)&&Ai(e)?nx(t,e,r,n):sx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!_f(r)?ix(r,n):Sn(t,e,1,r)};Rf.exports=Sn});var Of=d((DP,Tf)=>{"use strict";var ox=jo(),Af=yn(),ax=(t,e={})=>{let r=(i,n={})=>{let s=Af.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Af.reduce(i.nodes),h=ox(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Tf.exports=ax});var Lf=d((FP,Pf)=>{"use strict";var lx=jo(),Cf=_n(),Pr=yn(),nr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Pr.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 Pr.flatten(i)},cx=(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(),Cf(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=Pr.reduce(n.nodes);if(Pr.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=lx(...h,e);f.length===0&&(f=Cf(n,e)),a.push(nr(a.pop(),f)),n.nodes=[];return}let l=Pr.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(nr(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(nr(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Pr.flatten(i(t))};Pf.exports=cx});var kf=d((MP,If)=>{"use strict";If.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Bf=d((BP,Mf)=>{"use strict";var ux=_n(),{MAX_LENGTH:Nf,CHAR_BACKSLASH:Wo,CHAR_BACKTICK:hx,CHAR_COMMA:fx,CHAR_DOT:px,CHAR_LEFT_PARENTHESES:dx,CHAR_RIGHT_PARENTHESES:mx,CHAR_LEFT_CURLY_BRACE:gx,CHAR_RIGHT_CURLY_BRACE:yx,CHAR_LEFT_SQUARE_BRACKET:Df,CHAR_RIGHT_SQUARE_BRACKET:Ff,CHAR_DOUBLE_QUOTE:_x,CHAR_SINGLE_QUOTE:Sx,CHAR_NO_BREAK_SPACE:Ex,CHAR_ZERO_WIDTH_NOBREAK_SPACE:bx}=kf(),xx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Nf,r.maxLength):Nf;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,h=0,f,g={},m=()=>t[u++],y=x=>{if(x.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&x.type==="text"){a.value+=x.value;return}return o.nodes.push(x),x.parent=o,x.prev=a,a=x,x};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===bx||f===Ex)){if(f===Wo){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===Ff){y({type:"text",value:"\\"+f});continue}if(f===Df){l++;let x=!0,w;for(;u<c&&(w=m());){if(f+=w,w===Df){l++;continue}if(w===Wo){f+=m();continue}if(w===Ff&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===dx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===mx){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===_x||f===Sx||f===hx){let x=f,w;for(e.keepQuotes!==!0&&(f="");u<c&&(w=m());){if(w===Wo){f+=w+m();continue}if(w===x){e.keepQuotes===!0&&(f+=w);break}f+=w}y({type:"text",value:f});continue}if(f===gx){h++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(w),s.push(o),y({type:"open",value:f});continue}if(f===yx){if(o.type!=="brace"){y({type:"text",value:f});continue}let x="close";o=s.pop(),o.close=!0,y({type:x,value:f}),h--,o=s[s.length-1];continue}if(f===fx&&h>0){if(o.ranges>0){o.ranges=0;let x=o.nodes.shift();o.nodes=[x,{type:"text",value:ux(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===px&&h>0&&o.commas===0){let x=o.nodes;if(h===0||x.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){x.pop();let w=x[x.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let x=s[s.length-1],w=x.nodes.indexOf(o);x.nodes.splice(w,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};Mf.exports=xx});var $f=d((qP,Hf)=>{"use strict";var qf=_n(),wx=Of(),vx=Lf(),Rx=Bf(),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={})=>Rx(t,e);Le.stringify=(t,e={})=>qf(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),wx(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=vx(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);Hf.exports=Le});var Ti=d((HP,Yf)=>{"use strict";var Ax=require("path"),Je="\\\\/",Uf=`[^${Je}]`,mt="\\.",Tx="\\+",Ox="\\?",En="\\/",Cx="(?=.)",Gf="[^/]",Yo=`(?:${En}|$)`,jf=`(?:^|${En})`,zo=`${mt}{1,2}${Yo}`,Px=`(?!${mt})`,Lx=`(?!${jf}${zo})`,Ix=`(?!${mt}{0,1}${Yo})`,kx=`(?!${zo})`,Nx=`[^.${En}]`,Dx=`${Gf}*?`,Wf={DOT_LITERAL:mt,PLUS_LITERAL:Tx,QMARK_LITERAL:Ox,SLASH_LITERAL:En,ONE_CHAR:Cx,QMARK:Gf,END_ANCHOR:Yo,DOTS_SLASH:zo,NO_DOT:Px,NO_DOTS:Lx,NO_DOT_SLASH:Ix,NO_DOTS_SLASH:kx,QMARK_NO_DOT:Nx,STAR:Dx,START_ANCHOR:jf},Fx={...Wf,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}]|$)`},Mx={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"};Yf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Mx,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:Ax.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?Fx:Wf}}});var Oi=d(Re=>{"use strict";var Bx=require("path"),qx=process.platform==="win32",{REGEX_BACKSLASH:Hx,REGEX_REMOVE_BACKSLASH:$x,REGEX_SPECIAL_CHARS:Ux,REGEX_SPECIAL_CHARS_GLOBAL:Gx}=Ti();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>Ux.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(Gx,"\\$1");Re.toPosixSlashes=t=>t.replace(Hx,"/");Re.removeBackslashes=t=>t.replace($x,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:qx===!0||Bx.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 ep=d((UP,Jf)=>{"use strict";var zf=Oi(),{CHAR_ASTERISK:Vo,CHAR_AT:jx,CHAR_BACKWARD_SLASH:Ci,CHAR_COMMA:Wx,CHAR_DOT:Ko,CHAR_EXCLAMATION_MARK:Xo,CHAR_FORWARD_SLASH:Qf,CHAR_LEFT_CURLY_BRACE:Zo,CHAR_LEFT_PARENTHESES:Qo,CHAR_LEFT_SQUARE_BRACKET:Yx,CHAR_PLUS:zx,CHAR_QUESTION_MARK:Vf,CHAR_RIGHT_CURLY_BRACE:Vx,CHAR_RIGHT_PARENTHESES:Kf,CHAR_RIGHT_SQUARE_BRACKET:Kx}=Ti(),Xf=t=>t===Qf||t===Ci,Zf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Xx=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,g=!1,m=!1,y=!1,x=!1,w=!1,R=!1,M=!1,re=!1,N=!1,H=0,L,I,B={value:"",depth:0,isGlob:!1},ie=()=>c>=i,E=()=>l.charCodeAt(c+1),W=()=>(L=I,l.charCodeAt(++c));for(;c<i;){I=W();let b;if(I===Ci){R=B.backslashes=!0,I=W(),I===Zo&&(w=!0);continue}if(w===!0||I===Zo){for(H++;ie()!==!0&&(I=W());){if(I===Ci){R=B.backslashes=!0,W();continue}if(I===Zo){H++;continue}if(w!==!0&&I===Ko&&(I=W())===Ko){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(w!==!0&&I===Wx){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Vx&&(H--,H===0)){w=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===Qf){if(s.push(c),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===Ko&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(I===zx||I===jx||I===Vo||I===Vf||I===Xo)===!0&&E()===Qo){if(m=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===Xo&&c===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ci){R=B.backslashes=!0,I=W();continue}if(I===Kf){m=B.isGlob=!0,N=!0;break}}continue}break}if(I===Vo){if(L===Vo&&(x=B.isGlobstar=!0),m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Vf){if(m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Yx){for(;ie()!==!0&&(b=W());){if(b===Ci){R=B.backslashes=!0,W();continue}if(b===Kx){g=B.isBracket=!0,m=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===Xo&&c===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===Qo){if(m=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===Qo){R=B.backslashes=!0,I=W();continue}if(I===Kf){N=!0;break}}continue}break}if(m===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let G=l,Me="",_="";u>0&&(Me=l.slice(0,u),l=l.slice(u),h-=u),G&&m===!0&&h>0?(G=l.slice(0,h),_=l.slice(h)):m===!0?(G="",_=l):G=l,G&&G!==""&&G!=="/"&&G!==l&&Xf(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),r.unescape===!0&&(_&&(_=zf.removeBackslashes(_)),G&&R===!0&&(G=zf.removeBackslashes(G)));let p={prefix:Me,input:t,start:u,base:G,glob:_,isBrace:f,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:x,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,Xf(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let S=0;S<s.length;S++){let O=b?b+1:u,P=s[S],T=t.slice(O,P);r.tokens&&(S===0&&u!==0?(o[S].isPrefix=!0,o[S].value=Me):o[S].value=T,Zf(o[S]),p.maxDepth+=o[S].depth),(S!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let S=t.slice(b+1);a.push(S),r.tokens&&(o[o.length-1].value=S,Zf(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};Jf.exports=Xx});var ip=d((GP,rp)=>{"use strict";var bn=Ti(),Ie=Oi(),{MAX_LENGTH:xn,POSIX_REGEX_SOURCE:Zx,REGEX_NON_SPECIAL_CHARS:Qx,REGEX_SPECIAL_CHARS_BACKREF:Jx,REPLACEMENTS:tp}=bn,ew=(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},Lr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Jo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=tp[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(xn,r.maxLength):xn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Ie.isWindows(e),c=bn.globChars(l),u=bn.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:x,NO_DOT_SLASH:w,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:H}=c,L=A=>`(${a}(?:(?!${H}${A.dot?y:h}).)*?)`,I=r.dot?"":x,B=r.dot?M:re,ie=r.bash===!0?L(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Ie.removePrefix(t,E),n=t.length;let W=[],G=[],Me=[],_=s,p,b=()=>E.index===n-1,S=E.peek=(A=1)=>t[E.index+A],O=E.advance=()=>t[++E.index]||"",P=()=>t.slice(E.index+1),T=(A="",V=0)=>{E.consumed+=A,E.index+=V},Y=A=>{E.output+=A.output!=null?A.output:A.value,T(A.value)},he=()=>{let A=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)O(),E.start++,A++;return A%2===0?!1:(E.negated=!0,E.start++,!0)},ne=A=>{E[A]++,Me.push(A)},be=A=>{E[A]--,Me.pop()},k=A=>{if(_.type==="globstar"){let V=E.braces>0&&(A.type==="comma"||A.type==="brace"),v=A.extglob===!0||W.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!V&&!v&&(E.output=E.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,E.output+=_.output)}if(W.length&&A.type!=="paren"&&(W[W.length-1].inner+=A.value),(A.value||A.output)&&Y(A),_&&_.type==="text"&&A.type==="text"){_.value+=A.value,_.output=(_.output||"")+A.value;return}A.prev=_,o.push(A),_=A},Be=(A,V)=>{let v={...u[V],conditions:1,inner:""};v.prev=_,v.parens=E.parens,v.output=E.output;let F=(r.capture?"(":"")+v.open;ne("parens"),k({type:A,value:V,output:E.output?"":m}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(v)},WS=A=>{let V=A.close+(r.capture?")":""),v;if(A.type==="negate"){let F=ie;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(V=A.close=`)$))${F}`),A.inner.includes("*")&&(v=P())&&/^\.[^\\/.]+$/.test(v)){let Q=Jo(v,{...e,fastpaths:!1}).output;V=A.close=`)${Q})${F})`}A.prev.type==="bos"&&(E.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:V}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,V=t.replace(Jx,(v,F,Q,xe,se,ho)=>xe==="\\"?(A=!0,v):xe==="?"?F?F+xe+(se?M.repeat(se.length):""):ho===0?B+(se?M.repeat(se.length):""):M.repeat(Q.length):xe==="."?h.repeat(Q.length):xe==="*"?F?F+xe+(se?ie:""):ie:F?v:`\\${v}`);return A===!0&&(r.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),V===t&&r.contains===!0?(E.output=t,E):(E.output=Ie.wrapOutput(V,E,e),E)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let v=S();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,E.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),E.brackets===0){k({type:"text",value:p});continue}}if(E.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let v=_.value.slice(1);if(v.includes("[")&&(_.posix=!0,v.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),xe=_.value.slice(F+2),se=Zx[xe];if(se){_.value=Q+se,E.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=m);continue}}}(p==="["&&S()!==":"||p==="-"&&S()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(E.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Lr("opening","("));let v=W[W.length-1];if(v&&E.parens===v.parens+1){WS(W.pop());continue}k({type:"paren",value:p,output:E.parens?")":"\\)"}),be("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Lr("closing","]"));p=`\\${p}`}else ne("brackets");k({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){k({type:"text",value:p,output:`\\${p}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Lr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let v=_.value.slice(1);if(_.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(v))continue;let F=Ie.escapeRegex(_.value);if(E.output=E.output.slice(0,-_.value.length),r.literalBrackets===!0){E.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,E.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let v={type:"brace",value:p,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};G.push(v),k(v);continue}if(p==="}"){let v=G[G.length-1];if(r.nobrace===!0||!v){k({type:"text",value:p,output:p});continue}let F=")";if(v.dots===!0){let Q=o.slice(),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=ew(xe,r),E.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let Q=E.output.slice(0,v.outputIndex),xe=E.tokens.slice(v.tokensIndex);v.value=v.output="\\{",p=F="\\}",E.output=Q;for(let se of xe)E.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),G.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let v=p,F=G[G.length-1];F&&Me[Me.length-1]==="braces"&&(F.comma=!0,v="|"),k({type:"comma",value:p,output:v});continue}if(p==="/"){if(_.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(E.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let v=G[G.length-1];_.type="dots",_.output+=p,_.value+=p,v.dots=!0;continue}if(E.braces+E.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Be("qmark",p);continue}if(_&&_.type==="paren"){let F=S(),Q=p;if(F==="<"&&!Ie.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(P()))&&(Q=`\\${p}`),k({type:"text",value:p,output:Q});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){Be("negate",p);continue}if(r.nonegate!==!0&&E.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Be("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||E.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let v=Qx.exec(P());v&&(p+=v[0],E.index+=v[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,E.backtrack=!0,E.globstar=!0,T(p);continue}let A=P();if(r.noextglob!==!0&&/^\([^?]/.test(A)){Be("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let v=_.prev,F=v.prev,Q=v.type==="slash"||v.type==="bos",xe=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||A[0]&&A[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=E.braces>0&&(v.type==="comma"||v.type==="brace"),ho=W.length&&(v.type==="pipe"||v.type==="paren");if(!Q&&v.type!=="paren"&&!se&&!ho){k({type:"star",value:p,output:""});continue}for(;A.slice(0,3)==="/**";){let nn=t[E.index+4];if(nn&&nn!=="/")break;A=A.slice(3),T("/**",3)}if(v.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),E.output=_.output,E.globstar=!0,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!xe&&b()){E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,E.globstar=!0,E.output+=v.output+_.output,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&A[0]==="/"){let nn=A[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${nn})`,_.value+=p,E.output+=v.output+_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&A[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,E.output=_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,E.output+=_.output,E.globstar=!0,T(p);continue}let V={type:"star",value:p,output:ie};if(r.bash===!0){V.output=".*?",(_.type==="bos"||_.type==="slash")&&(V.output=I+V.output),k(V);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&r.regex===!0){V.output=p,k(V);continue}(E.index===E.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(E.output+=w,_.output+=w):r.dot===!0?(E.output+=R,_.output+=R):(E.output+=I,_.output+=I),S()!=="*"&&(E.output+=m,_.output+=m)),k(V)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","]"));E.output=Ie.escapeLast(E.output,"["),be("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing",")"));E.output=Ie.escapeLast(E.output,"("),be("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","}"));E.output=Ie.escapeLast(E.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),E.backtrack===!0){E.output="";for(let A of E.tokens)E.output+=A.output!=null?A.output:A.value,A.suffix&&(E.output+=A.suffix)}return E};Jo.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(xn,r.maxLength):xn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=tp[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:m}=bn.globChars(s),y=r.dot?h:u,x=r.dot?f:u,w=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${w}(?:(?!${m}${I.dot?c:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${l}${M}`;case".*":return`${o}${l}${M}`;case"*.*":return`${y}${M}${o}${l}${M}`;case"*/*":return`${y}${M}${a}${l}${x}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${x}${l}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${x}${M}${o}${l}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${l}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},H=Ie.removePrefix(t,R),L=N(H);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};rp.exports=Jo});var sp=d((jP,np)=>{"use strict";var tw=require("path"),rw=ep(),ea=ip(),ta=Oi(),iw=Ti(),nw=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let m=g(f);if(m)return m}return!1}}let i=nw(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=ta.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=J(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:g,output:m}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:m,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?ta.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};J.matchBase=(t,e,r,i=ta.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(tw.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)):ea(t,{...e,fastpaths:!1});J.scan=(t,e)=>rw(t,e);J.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=J.toRegex(a,e);return i===!0&&(l.state=t),l};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ea.fastpaths(t,e)),n.output||(n=ea(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=iw;np.exports=J});var ap=d((WP,op)=>{"use strict";op.exports=sp()});var fp=d((YP,hp)=>{"use strict";var cp=require("util"),up=$f(),et=ap(),ra=Oi(),lp=t=>t===""||t==="./",X=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=et(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let m=h(g,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};X.match=X;X.matcher=(t,e)=>et(t,e);X.isMatch=(t,e,r)=>et(e,r)(t);X.any=X.isMatch;X.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(X(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};X.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${cp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>X.contains(t,i,r));if(typeof e=="string"){if(lp(t)||lp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return X.isMatch(t,e,{...r,contains:!0})};X.matchKeys=(t,e,r)=>{if(!ra.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=X(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};X.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(i.some(o=>s(o)))return!0}return!1};X.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};X.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${cp.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};X.capture=(t,e,r)=>{let i=ra.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?ra.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};X.makeRe=(...t)=>et.makeRe(...t);X.scan=(...t)=>et.scan(...t);X.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of up(String(i),e))r.push(et.parse(n,e));return r};X.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:up(t,e)};X.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return X.braces(t,{...e,expand:!0})};hp.exports=X});var Ep=d(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var sw=require("path"),ow=nf(),ia=fp(),pp="**",aw="\\",lw=/[*?]|^!/,cw=/\[[^[]*]/,uw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,hw=/[!*+?@]\([^(]*\)/,fw=/,|\.\./;function dp(t,e={}){return!mp(t,e)}D.isStaticPattern=dp;function mp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(aw)||lw.test(t)||cw.test(t)||uw.test(t)||e.extglob!==!1&&hw.test(t)||e.braceExpansion!==!1&&pw(t))}D.isDynamicPattern=mp;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 fw.test(i)}function dw(t){return wn(t)?t.slice(1):t}D.convertToPositivePattern=dw;function mw(t){return"!"+t}D.convertToNegativePattern=mw;function wn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=wn;function gp(t){return!wn(t)}D.isPositivePattern=gp;function gw(t){return t.filter(wn)}D.getNegativePatterns=gw;function yw(t){return t.filter(gp)}D.getPositivePatterns=yw;function _w(t){return t.filter(e=>!na(e))}D.getPatternsInsideCurrentDirectory=_w;function Sw(t){return t.filter(na)}D.getPatternsOutsideCurrentDirectory=Sw;function na(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=na;function Ew(t){return ow(t,{flipBackslashes:!1})}D.getBaseDirectory=Ew;function bw(t){return t.includes(pp)}D.hasGlobStar=bw;function yp(t){return t.endsWith("/"+pp)}D.endsWithSlashGlobStar=yp;function xw(t){let e=sw.basename(t);return yp(t)||dp(e)}D.isAffectDepthOfReadingPattern=xw;function ww(t){return t.reduce((e,r)=>e.concat(_p(r)),[])}D.expandPatternsWithBraceExpansion=ww;function _p(t){return ia.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=_p;function vw(t,e){let{parts:r}=ia.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=vw;function Sp(t,e){return ia.makeRe(t,e)}D.makeRe=Sp;function Rw(t,e){return t.map(r=>Sp(r,e))}D.convertPatternsToRe=Rw;function Aw(t,e){return e.some(r=>r.test(t))}D.matchAny=Aw});var vp=d((VP,wp)=>{"use strict";var Tw=require("stream"),bp=Tw.PassThrough,Ow=Array.prototype.slice;wp.exports=Cw;function Cw(){let t=[],e=Ow.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=bp(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(xp(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function g(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",x),f()}function x(w){o.emit("error",w)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",x),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)g(u[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function xp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=xp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(bp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ap=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.merge=void 0;var Pw=vp();function Lw(t){let e=Pw(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Rp(t)),e.once("end",()=>Rp(t)),e}vn.merge=Lw;function Rp(t){t.forEach(e=>e.emit("close"))}});var Tp=d(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEmpty=Ir.isString=void 0;function Iw(t){return typeof t=="string"}Ir.isString=Iw;function kw(t){return t===""}Ir.isEmpty=kw});var gt=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Nw=zh();de.array=Nw;var Dw=Vh();de.errno=Dw;var Fw=Kh();de.fs=Fw;var Mw=Xh();de.path=Mw;var Bw=Ep();de.pattern=Bw;var qw=Ap();de.stream=qw;var Hw=Tp();de.string=Hw});var Pp=d(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var yt=gt();function $w(t,e){let r=Op(t),i=Cp(t,e.ignore),n=r.filter(l=>yt.pattern.isStaticPattern(l,e)),s=r.filter(l=>yt.pattern.isDynamicPattern(l,e)),o=sa(n,i,!1),a=sa(s,i,!0);return o.concat(a)}me.generate=$w;function sa(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=oa(n),a=oa(s);return i.push(...aa(o,e,r)),"."in a?i.push(la(".",s,e,r)):i.push(...aa(a,e,r)),i}me.convertPatternsToTasks=sa;function Op(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Op;function Cp(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Cp;function oa(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=oa;function aa(t,e,r){return Object.keys(t).map(i=>la(i,t[i],e,r))}me.convertPatternGroupsToTasks=aa;function la(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=la});var Ip=d(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.removeDuplicateSlashes=kr.transform=void 0;var Uw=/(?!^)\/{2,}/g;function Gw(t){return t.map(e=>Lp(e))}kr.transform=Gw;function Lp(t){return t.replace(Uw,"/")}kr.removeDuplicateSlashes=Lp});var Np=d(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.read=void 0;function jw(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){kp(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ca(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){kp(r,s);return}ca(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ca(r,o)})})}Rn.read=jw;function kp(t,e){t(e)}function ca(t,e){t(null,e)}});var Dp=d(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.read=void 0;function Ww(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}}An.read=Ww});var Fp=d(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.createFileSystemAdapter=kt.FILE_SYSTEM_ADAPTER=void 0;var Tn=require("fs");kt.FILE_SYSTEM_ADAPTER={lstat:Tn.lstat,stat:Tn.stat,lstatSync:Tn.lstatSync,statSync:Tn.statSync};function Yw(t){return t===void 0?kt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kt.FILE_SYSTEM_ADAPTER),t)}kt.createFileSystemAdapter=Yw});var Mp=d(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var zw=Fp(),ua=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zw.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}};ha.default=ua});var sr=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.statSync=Nt.stat=Nt.Settings=void 0;var Bp=Np(),Vw=Dp(),fa=Mp();Nt.Settings=fa.default;function Kw(t,e,r){if(typeof e=="function"){Bp.read(t,pa(),e);return}Bp.read(t,pa(e),r)}Nt.stat=Kw;function Xw(t,e){let r=pa(e);return Vw.read(t,r)}Nt.statSync=Xw;function pa(t={}){return t instanceof fa.default?t:new fa.default(t)}});var $p=d((sL,Hp)=>{var qp;Hp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(qp||(qp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Gp=d((oL,Up)=>{Up.exports=Qw;var Zw=$p();function Qw(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?Zw(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var da=d(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var On=process.versions.node.split(".");if(On[0]===void 0||On[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var jp=Number.parseInt(On[0],10),Jw=Number.parseInt(On[1],10),Wp=10,ev=10,tv=jp>Wp,rv=jp===Wp&&Jw>=ev;Cn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=tv||rv});var Yp=d(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.createDirentFromStats=void 0;var ma=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 iv(t,e){return new ma(t,e)}Pn.createDirentFromStats=iv});var ga=d(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.fs=void 0;var nv=Yp();Ln.fs=nv});var ya=d(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.joinPathSegments=void 0;function sv(t,e,r){return t.endsWith(r)?t+e:t+r+e}In.joinPathSegments=sv});var Qp=d(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.readdir=Dt.readdirWithFileTypes=Dt.read=void 0;var ov=sr(),zp=Gp(),av=da(),Vp=ga(),Kp=ya();function lv(t,e,r){if(!e.stats&&av.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Xp(t,e,r);return}Zp(t,e,r)}Dt.read=lv;function Xp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){kn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Kp.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){_a(r,s);return}let o=s.map(a=>cv(a,e));zp(o,(a,l)=>{if(a!==null){kn(r,a);return}_a(r,l)})})}Dt.readdirWithFileTypes=Xp;function cv(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=Vp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Zp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){kn(r,i);return}let s=n.map(o=>{let a=Kp.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{ov.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:Vp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});zp(s,(o,a)=>{if(o!==null){kn(r,o);return}_a(r,a)})})}Dt.readdir=Zp;function kn(t,e){t(e)}function _a(t,e){t(null,e)}});var id=d(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var uv=sr(),hv=da(),Jp=ga(),ed=ya();function fv(t,e){return!e.stats&&hv.IS_SUPPORT_READDIR_WITH_FILE_TYPES?td(t,e):rd(t,e)}Ft.read=fv;function td(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:ed.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Jp.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Ft.readdirWithFileTypes=td;function rd(t,e){return e.fs.readdirSync(t).map(i=>{let n=ed.joinPathSegments(t,i,e.pathSegmentSeparator),s=uv.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Jp.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Ft.readdir=rd});var nd=d(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createFileSystemAdapter=Mt.FILE_SYSTEM_ADAPTER=void 0;var Nr=require("fs");Mt.FILE_SYSTEM_ADAPTER={lstat:Nr.lstat,stat:Nr.stat,lstatSync:Nr.lstatSync,statSync:Nr.statSync,readdir:Nr.readdir,readdirSync:Nr.readdirSync};function pv(t){return t===void 0?Mt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mt.FILE_SYSTEM_ADAPTER),t)}Mt.createFileSystemAdapter=pv});var sd=d(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var dv=require("path"),mv=sr(),gv=nd(),Sa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=gv.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,dv.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new mv.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ea.default=Sa});var Nn=d(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.scandirSync=Bt.scandir=void 0;var od=Qp(),yv=id(),ba=sd();Bt.Settings=ba.default;function _v(t,e,r){if(typeof e=="function"){od.read(t,xa(),e);return}od.read(t,xa(e),r)}Bt.scandir=_v;function Sv(t,e){let r=xa(e);return yv.read(t,r)}Bt.scandirSync=Sv;function xa(t={}){return t instanceof ba.default?t:new ba.default(t)}});var ld=d((gL,ad)=>{"use strict";function Ev(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}}ad.exports=Ev});var ud=d((yL,wa)=>{"use strict";var bv=ld();function cd(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=bv(xv),n=null,s=null,o=0,a=null,l={push:y,drain:He,saturated:He,pause:u,paused:!1,concurrency:r,running:c,resume:g,idle:m,length:h,getQueue:f,unshift:x,empty:He,kill:R,killAndDrain:M,error:re};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var N=n,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(l.paused){l.paused=!1;for(var N=0;N<l.concurrency;N++)o++,w()}}function m(){return o===0&&l.length()===0}function y(N,H){var L=i.get();L.context=t,L.release=w,L.value=N,L.callback=H||He,L.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=L,s=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N,H){var L=i.get();L.context=t,L.release=w,L.value=N,L.callback=H||He,o===l.concurrency||l.paused?n?(L.next=n,n=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function w(N){N&&i.release(N);var H=n;H?l.paused?o--:(s===n&&(s=null),n=H.next,H.next=null,e.call(t,H.value,H.worked),s===null&&l.empty()):--o===0&&l.drain()}function R(){n=null,s=null,l.drain=He}function M(){n=null,s=null,l.drain(),l.drain=He}function re(N){a=N}}function He(){}function xv(){this.value=null,this.callback=He,this.next=null,this.release=He,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=He,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function wv(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=cd(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,g){s(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(He),h}function l(u){var h=new Promise(function(f,g){o(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(He),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}wa.exports=cd;wa.exports.promise=wv});var Dn=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function vv(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=vv;function Rv(t,e){return t===null||t(e)}tt.isAppliedFilter=Rv;function Av(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=Av;function Tv(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=Tv});var Aa=d(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Ov=Dn(),va=class{constructor(e,r){this._root=e,this._settings=r,this._root=Ov.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ra.default=va});var Ca=d(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Cv=require("events"),Pv=Nn(),Lv=ud(),Fn=Dn(),Iv=Aa(),Ta=class extends Iv.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Pv.scandir,this._emitter=new Cv.EventEmitter,this._queue=Lv(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||!Fn.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=Fn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Fn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Fn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Oa.default=Ta});var hd=d(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var kv=Ca(),Pa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new kv.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Nv(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Dv(e,this._storage)}),this._reader.read()}};La.default=Pa;function Nv(t,e){t(e)}function Dv(t,e){t(null,e)}});var fd=d(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Fv=require("stream"),Mv=Ca(),Ia=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Mv.default(this._root,this._settings),this._stream=new Fv.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}};ka.default=Ia});var pd=d(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var Bv=Nn(),Mn=Dn(),qv=Aa(),Na=class extends qv.default{constructor(){super(...arguments),this._scandir=Bv.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(Mn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Mn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Mn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Mn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Da.default=Na});var dd=d(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var Hv=pd(),Fa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Hv.default(this._root,this._settings)}read(){return this._reader.read()}};Ma.default=Fa});var md=d(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var $v=require("path"),Uv=Nn(),Ba=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,$v.sep),this.fsScandirSettings=new Uv.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}};qa.default=Ba});var qn=d(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var gd=hd(),Gv=fd(),jv=dd(),Ha=md();rt.Settings=Ha.default;function Wv(t,e,r){if(typeof e=="function"){new gd.default(t,Bn()).read(e);return}new gd.default(t,Bn(e)).read(r)}rt.walk=Wv;function Yv(t,e){let r=Bn(e);return new jv.default(t,r).read()}rt.walkSync=Yv;function zv(t,e){let r=Bn(e);return new Gv.default(t,r).read()}rt.walkStream=zv;function Bn(t={}){return t instanceof Ha.default?t:new Ha.default(t)}});var Hn=d(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Vv=require("path"),Kv=sr(),yd=gt(),$a=class{constructor(e){this._settings=e,this._fsStatSettings=new Kv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Vv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:yd.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!yd.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ua.default=$a});var Wa=d(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var Xv=require("stream"),Zv=sr(),Qv=qn(),Jv=Hn(),Ga=class extends Jv.default{constructor(){super(...arguments),this._walkStream=Qv.walkStream,this._stat=Zv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new Xv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};ja.default=Ga});var _d=d(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var eR=qn(),tR=Hn(),rR=Wa(),Ya=class extends tR.default{constructor(){super(...arguments),this._walkAsync=eR.walk,this._readerStream=new rR.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))})}};za.default=Ya});var Sd=d(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Dr=gt(),Va=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Dr.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 Dr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Dr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Dr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Dr.array.splitWhen(e,r=>r.dynamic&&Dr.pattern.hasGlobStar(r.pattern))}};Ka.default=Va});var Ed=d(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var iR=Sd(),Xa=class extends iR.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Za.default=Xa});var bd=d(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var $n=gt(),nR=Ed(),Qa=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 nR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($n.pattern.isAffectDepthOfReadingPattern);return $n.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$n.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!$n.pattern.matchAny(e,r)}};Ja.default=Qa});var xd=d(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var or=gt(),el=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}};tl.default=el});var wd=d(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var sR=gt(),rl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return sR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};il.default=rl});var Rd=d(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var vd=gt(),nl=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=vd.path.makeAbsolute(this._settings.cwd,r),r=vd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};sl.default=nl});var Un=d(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var oR=require("path"),aR=bd(),lR=xd(),cR=wd(),uR=Rd(),ol=class{constructor(e){this._settings=e,this.errorFilter=new cR.default(this._settings),this.entryFilter=new lR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new aR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new uR.default(this._settings)}_getRootDirectory(e){return oR.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}}};al.default=ol});var Ad=d(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var hR=_d(),fR=Un(),ll=class extends fR.default{constructor(){super(...arguments),this._reader=new hR.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)}};cl.default=ll});var Td=d(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var pR=require("stream"),dR=Wa(),mR=Un(),ul=class extends mR.default{constructor(){super(...arguments),this._reader=new dR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new pR.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)}};hl.default=ul});var Od=d(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var gR=sr(),yR=qn(),_R=Hn(),fl=class extends _R.default{constructor(){super(...arguments),this._walkSync=yR.walkSync,this._statSync=gR.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)}};pl.default=fl});var Cd=d(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var SR=Od(),ER=Un(),dl=class extends ER.default{constructor(){super(...arguments),this._reader=new SR.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)}};ml.default=dl});var Pd=d(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fr=require("fs"),bR=require("os"),xR=Math.max(bR.cpus().length,1);Mr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Fr.lstat,lstatSync:Fr.lstatSync,stat:Fr.stat,statSync:Fr.statSync,readdir:Fr.readdir,readdirSync:Fr.readdirSync};var gl=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,xR),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({},Mr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Mr.default=gl});var Nd=d((UL,kd)=>{"use strict";var Ld=Pp(),Id=Ip(),wR=Ad(),vR=Td(),RR=Cd(),yl=Pd(),ar=gt();async function _l(t,e){Br(t);let r=Sl(t,wR.default,e),i=await Promise.all(r);return ar.array.flatten(i)}(function(t){function e(o,a){Br(o);let l=Sl(o,RR.default,a);return ar.array.flatten(l)}t.sync=e;function r(o,a){Br(o);let l=Sl(o,vR.default,a);return ar.stream.merge(l)}t.stream=r;function i(o,a){Br(o);let l=Id.transform([].concat(o)),c=new yl.default(a);return Ld.generate(l,c)}t.generateTasks=i;function n(o,a){Br(o);let l=new yl.default(a);return ar.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Br(o),ar.path.escape(o)}t.escapePath=s})(_l||(_l={}));function Sl(t,e,r){let i=Id.transform([].concat(t)),n=new yl.default(r),s=Ld.generate(i,n),o=new e(n);return s.map(o.read,o)}function Br(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")}kd.exports=_l});var Kd=d((YL,Vd)=>{Vd.exports=zd;zd.sync=BR;var Wd=require("fs");function MR(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 Yd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:MR(e,r)}function zd(t,e,r){Wd.stat(t,function(i,n){r(i,i?!1:Yd(n,t,e))})}function BR(t,e){return Yd(Wd.statSync(t),t,e)}});var em=d((zL,Jd)=>{Jd.exports=Zd;Zd.sync=qR;var Xd=require("fs");function Zd(t,e,r){Xd.stat(t,function(i,n){r(i,i?!1:Qd(n,e))})}function qR(t,e){return Qd(Xd.statSync(t),e)}function Qd(t,e){return t.isFile()&&HR(t,e)}function HR(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,h=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return h}});var rm=d((KL,tm)=>{var VL=require("fs"),Gn;process.platform==="win32"||global.TESTING_WINDOWS?Gn=Kd():Gn=em();tm.exports=vl;vl.sync=$R;function vl(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){vl(t,e||{},function(s,o){s?n(s):i(o)})})}Gn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function $R(t,e){try{return Gn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var cm=d((XL,lm)=>{var Hr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",im=require("path"),UR=Hr?";":":",nm=rm(),sm=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),om=(t,e)=>{let r=e.colon||UR,i=t.match(/\//)||Hr&&t.match(/\\/)?[""]:[...Hr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Hr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Hr?n.split(r):[""];return Hr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},am=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=om(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(sm(t));let f=i[c],g=/^".*"$/.test(f)?f.slice(1,-1):f,m=im.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(l(y,c,0))}),l=(c,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let m=n[h];nm(c+m,{pathExt:s},(y,x)=>{if(!y&&x)if(e.all)o.push(c+m);else return f(c+m);return f(l(c,u,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},GR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=om(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=im.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(nm.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 sm(t)};lm.exports=am;am.sync=GR});var Al=d((ZL,Rl)=>{"use strict";var um=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Rl.exports=um;Rl.exports.default=um});var dm=d((QL,pm)=>{"use strict";var hm=require("path"),jR=cm(),WR=Al();function fm(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=jR.sync(t.command,{path:r[WR({env:r})],pathExt:e?hm.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=hm.resolve(n?t.options.cwd:"",o)),o}function YR(t){return fm(t)||fm(t,!0)}pm.exports=YR});var mm=d((JL,Ol)=>{"use strict";var Tl=/([()\][%!^"`<>&|;, *?])/g;function zR(t){return t=t.replace(Tl,"^$1"),t}function VR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Tl,"^$1"),e&&(t=t.replace(Tl,"^$1")),t}Ol.exports.command=zR;Ol.exports.argument=VR});var ym=d((eI,gm)=>{"use strict";gm.exports=/^#!(.*)/});var Sm=d((tI,_m)=>{"use strict";var KR=ym();_m.exports=(t="")=>{let e=t.match(KR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var bm=d((rI,Em)=>{"use strict";var Cl=require("fs"),XR=Sm();function ZR(t){let r=Buffer.alloc(150),i;try{i=Cl.openSync(t,"r"),Cl.readSync(i,r,0,150,0),Cl.closeSync(i)}catch{}return XR(r.toString())}Em.exports=ZR});var Rm=d((iI,vm)=>{"use strict";var QR=require("path"),xm=dm(),wm=mm(),JR=bm(),eA=process.platform==="win32",tA=/\.(?:com|exe)$/i,rA=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function iA(t){t.file=xm(t);let e=t.file&&JR(t.file);return e?(t.args.unshift(t.file),t.command=e,xm(t)):t.file}function nA(t){if(!eA)return t;let e=iA(t),r=!tA.test(e);if(t.options.forceShell||r){let i=rA.test(e);t.command=QR.normalize(t.command),t.command=wm.command(t.command),t.args=t.args.map(s=>wm.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 sA(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:nA(i)}vm.exports=sA});var Om=d((nI,Tm)=>{"use strict";var Pl=process.platform==="win32";function Ll(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 oA(t,e){if(!Pl)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Am(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Am(t,e){return Pl&&t===1&&!e.file?Ll(e.original,"spawn"):null}function aA(t,e){return Pl&&t===1&&!e.file?Ll(e.original,"spawnSync"):null}Tm.exports={hookChildProcess:oA,verifyENOENT:Am,verifyENOENTSync:aA,notFoundError:Ll}});var Lm=d((sI,$r)=>{"use strict";var Cm=require("child_process"),Il=Rm(),kl=Om();function Pm(t,e,r){let i=Il(t,e,r),n=Cm.spawn(i.command,i.args,i.options);return kl.hookChildProcess(n,i),n}function lA(t,e,r){let i=Il(t,e,r),n=Cm.spawnSync(i.command,i.args,i.options);return n.error=n.error||kl.verifyENOENTSync(n.status,i),n}$r.exports=Pm;$r.exports.spawn=Pm;$r.exports.sync=lA;$r.exports._parse=Il;$r.exports._enoent=kl});var km=d((oI,Im)=>{"use strict";Im.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var zS=Object.create;var sn=Object.defineProperty;var VS=Object.getOwnPropertyDescriptor;var KS=Object.getOwnPropertyNames;var XS=Object.getPrototypeOf,ZS=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Du=(t,e)=>{for(var r in e)sn(t,r,{get:e[r],enumerable:!0})},Fu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of KS(e))!ZS.call(t,n)&&n!==r&&sn(t,n,{get:()=>e[n],enumerable:!(i=VS(e,n))||i.enumerable});return t};var q=(t,e,r)=>(r=t!=null?zS(XS(t)):{},Fu(e||!t||!t.__esModule?sn(r,"default",{value:t,enumerable:!0}):r,t)),QS=t=>Fu(sn({},"__esModule",{value:!0}),t);var Mu=d((H1,ht)=>{function po(t){return ht.exports=po=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,po(t)}ht.exports=po,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var Hu=d(($1,ft)=>{var Bu=Mu().default;function qu(){"use strict";ft.exports=qu=function(){return e},ft.exports.__esModule=!0,ft.exports.default=ft.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,S){p[b]=S.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(p,b,S){return Object.defineProperty(p,b,{value:S,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(S,O,P){return S[O]=P}}function u(p,b,S,O){var P=b&&b.prototype instanceof w?b:w,T=Object.create(P.prototype),Y=new Me(O||[]);return n(T,"_invoke",{value:ie(p,S,Y)}),T}function h(p,b,S){try{return{type:"normal",arg:p.call(b,S)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",m="executing",y="completed",x={};function w(){}function R(){}function M(){}var re={};c(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=w.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(S){return this._invoke(b,S)})})}function B(p,b){function S(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&Bu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(Be){S("next",Be,Y,he)},function(Be){S("throw",Be,Y,he)}):b.resolve(k).then(function(Be){be.value=Be,Y(be)},function(Be){return S("throw",Be,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){S(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,S){var O=f;return function(P,T){if(O===m)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(S.method=P,S.arg=T;;){var Y=S.delegate;if(Y){var he=E(Y,S);if(he){if(he===x)continue;return he}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(O===f)throw O=y,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);O=m;var ne=h(p,b,S);if(ne.type==="normal"){if(O=S.done?y:g,ne.arg===x)continue;return{value:ne.arg,done:S.done}}ne.type==="throw"&&(O=y,S.method="throw",S.arg=ne.arg)}}}function E(p,b){var S=b.method,O=p.iterator[S];if(O===t)return b.delegate=null,S==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,E(p,b),b.method==="throw")||S!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+S+"' method")),x;var P=h(O,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,x;var T=P.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,x):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,x)}function 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 Me(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var S=-1,O=function P(){for(;++S<p.length;)if(i.call(p,S))return P.value=p[S],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(Bu(p)+" is not iterable")}return R.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,l,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===R||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,c(p,l,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(B.prototype),c(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,S,O,P){P===void 0&&(P=Promise);var T=new B(u(p,b,S,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),c(L,l,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),S=[];for(var O in b)S.push(O);return S.reverse(),function P(){for(;S.length;){var T=S.pop();if(T in b)return P.value=T,P.done=!1,P}return P.done=!0,P}},e.values=_,Me.prototype={constructor:Me,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!b)for(var S in this)S.charAt(0)==="t"&&i.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var S=this;function O(be,k){return Y.type="throw",Y.arg=b,S.next=be,k&&(S.method="next",S.arg=t),!!k}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],Y=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,S){for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=S&&S<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=S,T?(this.method="next",this.next=T.finallyLoc,x):this.complete(Y)},complete:function(b,S){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&S&&(this.next=S),x},finish:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),j(O),x}},catch:function(b){for(var S=this.tryEntries.length-1;S>=0;--S){var O=this.tryEntries[S];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;j(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,S,O){return this.delegate={iterator:_(b),resultName:S,nextLoc:O},this.method==="next"&&(this.arg=t),x}},e}ft.exports=qu,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var Uu=d((U1,$u)=>{var on=Hu()();$u.exports=on;try{regeneratorRuntime=on}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=on:Function("r","regeneratorRuntime = r")(on)}});var Vh=d(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.splitWhen=Cr.flatten=void 0;function R0(t){return t.reduce((e,r)=>[].concat(e,r),[])}Cr.flatten=R0;function A0(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Cr.splitWhen=A0});var Kh=d(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.isEnoentCodeError=void 0;function T0(t){return t.code==="ENOENT"}mn.isEnoentCodeError=T0});var Xh=d(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.createDirentFromStats=void 0;var Ho=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 O0(t,e){return new Ho(t,e)}gn.createDirentFromStats=O0});var Zh=d(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var C0=require("path"),P0=2,L0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function I0(t){return t.replace(/\\/g,"/")}Qe.unixify=I0;function k0(t,e){return C0.resolve(t,e)}Qe.makeAbsolute=k0;function N0(t){return t.replace(L0,"\\$2")}Qe.escape=N0;function D0(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(P0)}return t}Qe.removeLeadingDotSegment=D0});var Jh=d((TP,Qh)=>{Qh.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 rf=d((OP,tf)=>{var F0=Jh(),ef={"{":"}","(":")","[":"]"},M0=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=ef[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},B0=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=ef[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};tf.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(F0(e))return!0;var i=M0;return r&&r.strict===!1&&(i=B0),i(e)}});var sf=d((CP,nf)=>{"use strict";var q0=rf(),H0=require("path").posix.dirname,$0=require("os").platform()==="win32",$o="/",U0=/\\/g,j0=/[\{\[].*[\}\]]$/,G0=/(^|[^\\])([\{\[]|\([^\)]+$)/,W0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;nf.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&$0&&e.indexOf($o)<0&&(e=e.replace(U0,$o)),j0.test(e)&&(e+=$o),e+="a";do e=H0(e);while(q0(e)||G0.test(e));return e.replace(W0,"$1")}});var yn=d(qe=>{"use strict";qe.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;qe.find=(t,e)=>t.nodes.find(r=>r.type===e);qe.exceedsLimit=(t,e,r=1,i)=>i===!1||!qe.isInteger(t)||!qe.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;qe.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};qe.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);qe.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;qe.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;qe.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);qe.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var _n=d((LP,af)=>{"use strict";var of=yn();af.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&of.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&of.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var cf=d((IP,lf)=>{"use strict";lf.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var _f=d((kP,yf)=>{"use strict";var uf=cf(),nr=(t,e,r)=>{if(uf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(uf(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(nr.cache.hasOwnProperty(l))return nr.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=gf(t)||gf(e),f={min:t,max:e,a:c,b:u},g=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;m=hf(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(g=hf(c,u,f,i)),f.negatives=m,f.positives=g,f.result=Y0(m,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+m.length>1&&(f.result=`(?:${f.result})`),nr.cache[l]=f,f.result};function Y0(t,e,r){let i=Uo(t,e,"-",!1,r)||[],n=Uo(e,t,"",!1,r)||[],s=Uo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function z0(t,e){let r=1,i=1,n=pf(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=pf(t,r);for(n=df(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=df(e+1,i)-1;return s=[...s],s.sort(X0),s}function V0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=K0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=Z0(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function hf(t,e,r,i){let n=z0(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=V0(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+mf(a.count),o=c+1;continue}r.isPadded&&(h=Q0(c,r,i)),u.string=h+u.pattern+mf(u.count),s.push(u),o=c+1,a=u}return s}function Uo(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!ff(e,"string",a)&&s.push(r+a),i&&ff(e,"string",a)&&s.push(r+a)}return s}function K0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function X0(t,e){return t>e?1:e>t?-1:0}function ff(t,e,r){return t.some(i=>i[e]===r)}function pf(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function df(t,e){return t-t%Math.pow(10,e)}function mf(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Z0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function gf(t){return/^-?(0+)\d/.test(t)}function Q0(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}}`}}nr.cache={};nr.clearCache=()=>nr.cache={};yf.exports=nr});var Wo=d((NP,Af)=>{"use strict";var J0=require("util"),bf=_f(),Sf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ex=t=>e=>t===!0?Number(e):String(e),jo=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ai=t=>Number.isInteger(+t),Go=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},tx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,rx=(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},Ef=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},ix=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},xf=(t,e,r,i)=>{if(r)return bf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},wf=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return bf(t,e,r)},vf=(...t)=>new RangeError("Invalid range arguments: "+J0.inspect(...t)),Rf=(t,e,r)=>{if(r.strictRanges===!0)throw vf([t,e]);return[]},nx=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},sx=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw vf([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=Go(a)||Go(l)||Go(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&tx(t,e,i)===!1,g=i.transform||ex(f);if(i.toRegex&&r===1)return xf(Ef(t,h),Ef(e,h),!0,i);let m={negatives:[],positives:[]},y=R=>m[R<0?"negatives":"positives"].push(Math.abs(R)),x=[],w=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):x.push(rx(g(n,w),h,f)),n=o?n-r:n+r,w++;return i.toRegex===!0?r>1?ix(m,i):wf(x,null,{wrap:!1,...i}):x},ox=(t,e,r=1,i={})=>{if(!Ai(t)&&t.length>1||!Ai(e)&&e.length>1)return Rf(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return xf(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?wf(u,null,{wrap:!1,options:i}):u},Sn=(t,e,r,i={})=>{if(e==null&&jo(t))return[t];if(!jo(t)||!jo(e))return Rf(t,e,i);if(typeof r=="function")return Sn(t,e,1,{transform:r});if(Sf(r))return Sn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Ai(r)?Ai(t)&&Ai(e)?sx(t,e,r,n):ox(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Sf(r)?nx(r,n):Sn(t,e,1,r)};Af.exports=Sn});var Cf=d((DP,Of)=>{"use strict";var ax=Wo(),Tf=yn(),lx=(t,e={})=>{let r=(i,n={})=>{let s=Tf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Tf.reduce(i.nodes),h=ax(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Of.exports=lx});var If=d((FP,Lf)=>{"use strict";var cx=Wo(),Pf=_n(),Pr=yn(),sr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Pr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(sr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?sr(n,s,r):n+s);return Pr.flatten(i)},ux=(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(sr(a.pop(),Pf(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(sr(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Pr.reduce(n.nodes);if(Pr.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=cx(...h,e);f.length===0&&(f=Pf(n,e)),a.push(sr(a.pop(),f)),n.nodes=[];return}let l=Pr.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(sr(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(sr(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Pr.flatten(i(t))};Lf.exports=ux});var Nf=d((MP,kf)=>{"use strict";kf.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qf=d((BP,Bf)=>{"use strict";var hx=_n(),{MAX_LENGTH:Df,CHAR_BACKSLASH:Yo,CHAR_BACKTICK:fx,CHAR_COMMA:px,CHAR_DOT:dx,CHAR_LEFT_PARENTHESES:mx,CHAR_RIGHT_PARENTHESES:gx,CHAR_LEFT_CURLY_BRACE:yx,CHAR_RIGHT_CURLY_BRACE:_x,CHAR_LEFT_SQUARE_BRACKET:Ff,CHAR_RIGHT_SQUARE_BRACKET:Mf,CHAR_DOUBLE_QUOTE:Sx,CHAR_SINGLE_QUOTE:Ex,CHAR_NO_BREAK_SPACE:bx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xx}=Nf(),wx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Df,r.maxLength):Df;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,h=0,f,g={},m=()=>t[u++],y=x=>{if(x.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&x.type==="text"){a.value+=x.value;return}return o.nodes.push(x),x.parent=o,x.prev=a,a=x,x};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===xx||f===bx)){if(f===Yo){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===Mf){y({type:"text",value:"\\"+f});continue}if(f===Ff){l++;let x=!0,w;for(;u<c&&(w=m());){if(f+=w,w===Ff){l++;continue}if(w===Yo){f+=m();continue}if(w===Mf&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===mx){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===gx){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===Sx||f===Ex||f===fx){let x=f,w;for(e.keepQuotes!==!0&&(f="");u<c&&(w=m());){if(w===Yo){f+=w+m();continue}if(w===x){e.keepQuotes===!0&&(f+=w);break}f+=w}y({type:"text",value:f});continue}if(f===yx){h++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(w),s.push(o),y({type:"open",value:f});continue}if(f===_x){if(o.type!=="brace"){y({type:"text",value:f});continue}let x="close";o=s.pop(),o.close=!0,y({type:x,value:f}),h--,o=s[s.length-1];continue}if(f===px&&h>0){if(o.ranges>0){o.ranges=0;let x=o.nodes.shift();o.nodes=[x,{type:"text",value:hx(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===dx&&h>0&&o.commas===0){let x=o.nodes;if(h===0||x.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){x.pop();let w=x[x.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let x=s[s.length-1],w=x.nodes.indexOf(o);x.nodes.splice(w,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};Bf.exports=wx});var Uf=d((qP,$f)=>{"use strict";var Hf=_n(),vx=Cf(),Rx=If(),Ax=qf(),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={})=>Ax(t,e);Le.stringify=(t,e={})=>Hf(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),vx(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=Rx(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);$f.exports=Le});var Ti=d((HP,zf)=>{"use strict";var Tx=require("path"),Je="\\\\/",jf=`[^${Je}]`,mt="\\.",Ox="\\+",Cx="\\?",En="\\/",Px="(?=.)",Gf="[^/]",zo=`(?:${En}|$)`,Wf=`(?:^|${En})`,Vo=`${mt}{1,2}${zo}`,Lx=`(?!${mt})`,Ix=`(?!${Wf}${Vo})`,kx=`(?!${mt}{0,1}${zo})`,Nx=`(?!${Vo})`,Dx=`[^.${En}]`,Fx=`${Gf}*?`,Yf={DOT_LITERAL:mt,PLUS_LITERAL:Ox,QMARK_LITERAL:Cx,SLASH_LITERAL:En,ONE_CHAR:Px,QMARK:Gf,END_ANCHOR:zo,DOTS_SLASH:Vo,NO_DOT:Lx,NO_DOTS:Ix,NO_DOT_SLASH:kx,NO_DOTS_SLASH:Nx,QMARK_NO_DOT:Dx,STAR:Fx,START_ANCHOR:Wf},Mx={...Yf,SLASH_LITERAL:`[${Je}]`,QMARK:jf,STAR:`${jf}*?`,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}]|$)`},Bx={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"};zf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Bx,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:Tx.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?Mx:Yf}}});var Oi=d(Re=>{"use strict";var qx=require("path"),Hx=process.platform==="win32",{REGEX_BACKSLASH:$x,REGEX_REMOVE_BACKSLASH:Ux,REGEX_SPECIAL_CHARS:jx,REGEX_SPECIAL_CHARS_GLOBAL:Gx}=Ti();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>jx.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(Gx,"\\$1");Re.toPosixSlashes=t=>t.replace($x,"/");Re.removeBackslashes=t=>t.replace(Ux,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:Hx===!0||qx.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 tp=d((UP,ep)=>{"use strict";var Vf=Oi(),{CHAR_ASTERISK:Ko,CHAR_AT:Wx,CHAR_BACKWARD_SLASH:Ci,CHAR_COMMA:Yx,CHAR_DOT:Xo,CHAR_EXCLAMATION_MARK:Zo,CHAR_FORWARD_SLASH:Jf,CHAR_LEFT_CURLY_BRACE:Qo,CHAR_LEFT_PARENTHESES:Jo,CHAR_LEFT_SQUARE_BRACKET:zx,CHAR_PLUS:Vx,CHAR_QUESTION_MARK:Kf,CHAR_RIGHT_CURLY_BRACE:Kx,CHAR_RIGHT_PARENTHESES:Xf,CHAR_RIGHT_SQUARE_BRACKET:Xx}=Ti(),Zf=t=>t===Jf||t===Ci,Qf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Zx=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,g=!1,m=!1,y=!1,x=!1,w=!1,R=!1,M=!1,re=!1,N=!1,H=0,L,I,B={value:"",depth:0,isGlob:!1},ie=()=>c>=i,E=()=>l.charCodeAt(c+1),W=()=>(L=I,l.charCodeAt(++c));for(;c<i;){I=W();let b;if(I===Ci){R=B.backslashes=!0,I=W(),I===Qo&&(w=!0);continue}if(w===!0||I===Qo){for(H++;ie()!==!0&&(I=W());){if(I===Ci){R=B.backslashes=!0,W();continue}if(I===Qo){H++;continue}if(w!==!0&&I===Xo&&(I=W())===Xo){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(w!==!0&&I===Yx){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Kx&&(H--,H===0)){w=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===Jf){if(s.push(c),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===Xo&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(I===Vx||I===Wx||I===Ko||I===Kf||I===Zo)===!0&&E()===Jo){if(m=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===Zo&&c===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ci){R=B.backslashes=!0,I=W();continue}if(I===Xf){m=B.isGlob=!0,N=!0;break}}continue}break}if(I===Ko){if(L===Ko&&(x=B.isGlobstar=!0),m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Kf){if(m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===zx){for(;ie()!==!0&&(b=W());){if(b===Ci){R=B.backslashes=!0,W();continue}if(b===Xx){g=B.isBracket=!0,m=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===Zo&&c===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===Jo){if(m=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===Jo){R=B.backslashes=!0,I=W();continue}if(I===Xf){N=!0;break}}continue}break}if(m===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let j=l,Me="",_="";u>0&&(Me=l.slice(0,u),l=l.slice(u),h-=u),j&&m===!0&&h>0?(j=l.slice(0,h),_=l.slice(h)):m===!0?(j="",_=l):j=l,j&&j!==""&&j!=="/"&&j!==l&&Zf(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),r.unescape===!0&&(_&&(_=Vf.removeBackslashes(_)),j&&R===!0&&(j=Vf.removeBackslashes(j)));let p={prefix:Me,input:t,start:u,base:j,glob:_,isBrace:f,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:x,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,Zf(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let S=0;S<s.length;S++){let O=b?b+1:u,P=s[S],T=t.slice(O,P);r.tokens&&(S===0&&u!==0?(o[S].isPrefix=!0,o[S].value=Me):o[S].value=T,Qf(o[S]),p.maxDepth+=o[S].depth),(S!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let S=t.slice(b+1);a.push(S),r.tokens&&(o[o.length-1].value=S,Qf(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};ep.exports=Zx});var np=d((jP,ip)=>{"use strict";var bn=Ti(),Ie=Oi(),{MAX_LENGTH:xn,POSIX_REGEX_SOURCE:Qx,REGEX_NON_SPECIAL_CHARS:Jx,REGEX_SPECIAL_CHARS_BACKREF:ew,REPLACEMENTS:rp}=bn,tw=(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},Lr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ea=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=rp[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(xn,r.maxLength):xn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Ie.isWindows(e),c=bn.globChars(l),u=bn.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:x,NO_DOT_SLASH:w,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:H}=c,L=A=>`(${a}(?:(?!${H}${A.dot?y:h}).)*?)`,I=r.dot?"":x,B=r.dot?M:re,ie=r.bash===!0?L(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Ie.removePrefix(t,E),n=t.length;let W=[],j=[],Me=[],_=s,p,b=()=>E.index===n-1,S=E.peek=(A=1)=>t[E.index+A],O=E.advance=()=>t[++E.index]||"",P=()=>t.slice(E.index+1),T=(A="",V=0)=>{E.consumed+=A,E.index+=V},Y=A=>{E.output+=A.output!=null?A.output:A.value,T(A.value)},he=()=>{let A=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)O(),E.start++,A++;return A%2===0?!1:(E.negated=!0,E.start++,!0)},ne=A=>{E[A]++,Me.push(A)},be=A=>{E[A]--,Me.pop()},k=A=>{if(_.type==="globstar"){let V=E.braces>0&&(A.type==="comma"||A.type==="brace"),v=A.extglob===!0||W.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!V&&!v&&(E.output=E.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,E.output+=_.output)}if(W.length&&A.type!=="paren"&&(W[W.length-1].inner+=A.value),(A.value||A.output)&&Y(A),_&&_.type==="text"&&A.type==="text"){_.value+=A.value,_.output=(_.output||"")+A.value;return}A.prev=_,o.push(A),_=A},Be=(A,V)=>{let v={...u[V],conditions:1,inner:""};v.prev=_,v.parens=E.parens,v.output=E.output;let F=(r.capture?"(":"")+v.open;ne("parens"),k({type:A,value:V,output:E.output?"":m}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(v)},YS=A=>{let V=A.close+(r.capture?")":""),v;if(A.type==="negate"){let F=ie;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(V=A.close=`)$))${F}`),A.inner.includes("*")&&(v=P())&&/^\.[^\\/.]+$/.test(v)){let Q=ea(v,{...e,fastpaths:!1}).output;V=A.close=`)${Q})${F})`}A.prev.type==="bos"&&(E.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:V}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,V=t.replace(ew,(v,F,Q,xe,se,fo)=>xe==="\\"?(A=!0,v):xe==="?"?F?F+xe+(se?M.repeat(se.length):""):fo===0?B+(se?M.repeat(se.length):""):M.repeat(Q.length):xe==="."?h.repeat(Q.length):xe==="*"?F?F+xe+(se?ie:""):ie:F?v:`\\${v}`);return A===!0&&(r.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),V===t&&r.contains===!0?(E.output=t,E):(E.output=Ie.wrapOutput(V,E,e),E)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let v=S();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,E.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),E.brackets===0){k({type:"text",value:p});continue}}if(E.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let v=_.value.slice(1);if(v.includes("[")&&(_.posix=!0,v.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),xe=_.value.slice(F+2),se=Qx[xe];if(se){_.value=Q+se,E.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=m);continue}}}(p==="["&&S()!==":"||p==="-"&&S()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(E.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Lr("opening","("));let v=W[W.length-1];if(v&&E.parens===v.parens+1){YS(W.pop());continue}k({type:"paren",value:p,output:E.parens?")":"\\)"}),be("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Lr("closing","]"));p=`\\${p}`}else ne("brackets");k({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){k({type:"text",value:p,output:`\\${p}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Lr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let v=_.value.slice(1);if(_.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(v))continue;let F=Ie.escapeRegex(_.value);if(E.output=E.output.slice(0,-_.value.length),r.literalBrackets===!0){E.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,E.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let v={type:"brace",value:p,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};j.push(v),k(v);continue}if(p==="}"){let v=j[j.length-1];if(r.nobrace===!0||!v){k({type:"text",value:p,output:p});continue}let F=")";if(v.dots===!0){let Q=o.slice(),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=tw(xe,r),E.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let Q=E.output.slice(0,v.outputIndex),xe=E.tokens.slice(v.tokensIndex);v.value=v.output="\\{",p=F="\\}",E.output=Q;for(let se of xe)E.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 v=p,F=j[j.length-1];F&&Me[Me.length-1]==="braces"&&(F.comma=!0,v="|"),k({type:"comma",value:p,output:v});continue}if(p==="/"){if(_.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(E.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let v=j[j.length-1];_.type="dots",_.output+=p,_.value+=p,v.dots=!0;continue}if(E.braces+E.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Be("qmark",p);continue}if(_&&_.type==="paren"){let F=S(),Q=p;if(F==="<"&&!Ie.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(P()))&&(Q=`\\${p}`),k({type:"text",value:p,output:Q});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){Be("negate",p);continue}if(r.nonegate!==!0&&E.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){Be("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||E.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let v=Jx.exec(P());v&&(p+=v[0],E.index+=v[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,E.backtrack=!0,E.globstar=!0,T(p);continue}let A=P();if(r.noextglob!==!0&&/^\([^?]/.test(A)){Be("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let v=_.prev,F=v.prev,Q=v.type==="slash"||v.type==="bos",xe=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||A[0]&&A[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=E.braces>0&&(v.type==="comma"||v.type==="brace"),fo=W.length&&(v.type==="pipe"||v.type==="paren");if(!Q&&v.type!=="paren"&&!se&&!fo){k({type:"star",value:p,output:""});continue}for(;A.slice(0,3)==="/**";){let nn=t[E.index+4];if(nn&&nn!=="/")break;A=A.slice(3),T("/**",3)}if(v.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),E.output=_.output,E.globstar=!0,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!xe&&b()){E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,E.globstar=!0,E.output+=v.output+_.output,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&A[0]==="/"){let nn=A[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${nn})`,_.value+=p,E.output+=v.output+_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&A[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,E.output=_.output,E.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,E.output+=_.output,E.globstar=!0,T(p);continue}let V={type:"star",value:p,output:ie};if(r.bash===!0){V.output=".*?",(_.type==="bos"||_.type==="slash")&&(V.output=I+V.output),k(V);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&r.regex===!0){V.output=p,k(V);continue}(E.index===E.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(E.output+=w,_.output+=w):r.dot===!0?(E.output+=R,_.output+=R):(E.output+=I,_.output+=I),S()!=="*"&&(E.output+=m,_.output+=m)),k(V)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","]"));E.output=Ie.escapeLast(E.output,"["),be("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing",")"));E.output=Ie.escapeLast(E.output,"("),be("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","}"));E.output=Ie.escapeLast(E.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),E.backtrack===!0){E.output="";for(let A of E.tokens)E.output+=A.output!=null?A.output:A.value,A.suffix&&(E.output+=A.suffix)}return E};ea.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(xn,r.maxLength):xn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=rp[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:m}=bn.globChars(s),y=r.dot?h:u,x=r.dot?f:u,w=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${w}(?:(?!${m}${I.dot?c:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${l}${M}`;case".*":return`${o}${l}${M}`;case"*.*":return`${y}${M}${o}${l}${M}`;case"*/*":return`${y}${M}${a}${l}${x}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${x}${l}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${x}${M}${o}${l}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${l}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},H=Ie.removePrefix(t,R),L=N(H);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};ip.exports=ea});var op=d((GP,sp)=>{"use strict";var rw=require("path"),iw=tp(),ta=np(),ra=Oi(),nw=Ti(),sw=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let m=g(f);if(m)return m}return!1}}let i=sw(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=ra.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=J(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:g,output:m}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:m,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?ra.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};J.matchBase=(t,e,r,i=ra.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(rw.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)):ta(t,{...e,fastpaths:!1});J.scan=(t,e)=>iw(t,e);J.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=J.toRegex(a,e);return i===!0&&(l.state=t),l};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ta.fastpaths(t,e)),n.output||(n=ta(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=nw;sp.exports=J});var lp=d((WP,ap)=>{"use strict";ap.exports=op()});var pp=d((YP,fp)=>{"use strict";var up=require("util"),hp=Uf(),et=lp(),ia=Oi(),cp=t=>t===""||t==="./",X=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=et(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let m=h(g,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};X.match=X;X.matcher=(t,e)=>et(t,e);X.isMatch=(t,e,r)=>et(e,r)(t);X.any=X.isMatch;X.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(X(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};X.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${up.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>X.contains(t,i,r));if(typeof e=="string"){if(cp(t)||cp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return X.isMatch(t,e,{...r,contains:!0})};X.matchKeys=(t,e,r)=>{if(!ia.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=X(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};X.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(i.some(o=>s(o)))return!0}return!1};X.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=et(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};X.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${up.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};X.capture=(t,e,r)=>{let i=ia.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?ia.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};X.makeRe=(...t)=>et.makeRe(...t);X.scan=(...t)=>et.scan(...t);X.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of hp(String(i),e))r.push(et.parse(n,e));return r};X.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:hp(t,e)};X.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return X.braces(t,{...e,expand:!0})};fp.exports=X});var bp=d(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var ow=require("path"),aw=sf(),na=pp(),dp="**",lw="\\",cw=/[*?]|^!/,uw=/\[[^[]*]/,hw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fw=/[!*+?@]\([^(]*\)/,pw=/,|\.\./;function mp(t,e={}){return!gp(t,e)}D.isStaticPattern=mp;function gp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(lw)||cw.test(t)||uw.test(t)||hw.test(t)||e.extglob!==!1&&fw.test(t)||e.braceExpansion!==!1&&dw(t))}D.isDynamicPattern=gp;function dw(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 pw.test(i)}function mw(t){return wn(t)?t.slice(1):t}D.convertToPositivePattern=mw;function gw(t){return"!"+t}D.convertToNegativePattern=gw;function wn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=wn;function yp(t){return!wn(t)}D.isPositivePattern=yp;function yw(t){return t.filter(wn)}D.getNegativePatterns=yw;function _w(t){return t.filter(yp)}D.getPositivePatterns=_w;function Sw(t){return t.filter(e=>!sa(e))}D.getPatternsInsideCurrentDirectory=Sw;function Ew(t){return t.filter(sa)}D.getPatternsOutsideCurrentDirectory=Ew;function sa(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=sa;function bw(t){return aw(t,{flipBackslashes:!1})}D.getBaseDirectory=bw;function xw(t){return t.includes(dp)}D.hasGlobStar=xw;function _p(t){return t.endsWith("/"+dp)}D.endsWithSlashGlobStar=_p;function ww(t){let e=ow.basename(t);return _p(t)||mp(e)}D.isAffectDepthOfReadingPattern=ww;function vw(t){return t.reduce((e,r)=>e.concat(Sp(r)),[])}D.expandPatternsWithBraceExpansion=vw;function Sp(t){return na.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=Sp;function Rw(t,e){let{parts:r}=na.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=Rw;function Ep(t,e){return na.makeRe(t,e)}D.makeRe=Ep;function Aw(t,e){return t.map(r=>Ep(r,e))}D.convertPatternsToRe=Aw;function Tw(t,e){return e.some(r=>r.test(t))}D.matchAny=Tw});var Rp=d((VP,vp)=>{"use strict";var Ow=require("stream"),xp=Ow.PassThrough,Cw=Array.prototype.slice;vp.exports=Pw;function Pw(){let t=[],e=Cw.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=xp(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(wp(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function g(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",x),f()}function x(w){o.emit("error",w)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",x),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)g(u[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function wp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=wp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(xp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Tp=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.merge=void 0;var Lw=Rp();function Iw(t){let e=Lw(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Ap(t)),e.once("end",()=>Ap(t)),e}vn.merge=Iw;function Ap(t){t.forEach(e=>e.emit("close"))}});var Op=d(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEmpty=Ir.isString=void 0;function kw(t){return typeof t=="string"}Ir.isString=kw;function Nw(t){return t===""}Ir.isEmpty=Nw});var gt=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Dw=Vh();de.array=Dw;var Fw=Kh();de.errno=Fw;var Mw=Xh();de.fs=Mw;var Bw=Zh();de.path=Bw;var qw=bp();de.pattern=qw;var Hw=Tp();de.stream=Hw;var $w=Op();de.string=$w});var Lp=d(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var yt=gt();function Uw(t,e){let r=Cp(t),i=Pp(t,e.ignore),n=r.filter(l=>yt.pattern.isStaticPattern(l,e)),s=r.filter(l=>yt.pattern.isDynamicPattern(l,e)),o=oa(n,i,!1),a=oa(s,i,!0);return o.concat(a)}me.generate=Uw;function oa(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=aa(n),a=aa(s);return i.push(...la(o,e,r)),"."in a?i.push(ca(".",s,e,r)):i.push(...la(a,e,r)),i}me.convertPatternsToTasks=oa;function Cp(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Cp;function Pp(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Pp;function aa(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=aa;function la(t,e,r){return Object.keys(t).map(i=>ca(i,t[i],e,r))}me.convertPatternGroupsToTasks=la;function ca(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=ca});var kp=d(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.removeDuplicateSlashes=kr.transform=void 0;var jw=/(?!^)\/{2,}/g;function Gw(t){return t.map(e=>Ip(e))}kr.transform=Gw;function Ip(t){return t.replace(jw,"/")}kr.removeDuplicateSlashes=Ip});var Dp=d(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.read=void 0;function Ww(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Np(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ua(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Np(r,s);return}ua(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ua(r,o)})})}Rn.read=Ww;function Np(t,e){t(e)}function ua(t,e){t(null,e)}});var Fp=d(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.read=void 0;function Yw(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}}An.read=Yw});var Mp=d(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.createFileSystemAdapter=kt.FILE_SYSTEM_ADAPTER=void 0;var Tn=require("fs");kt.FILE_SYSTEM_ADAPTER={lstat:Tn.lstat,stat:Tn.stat,lstatSync:Tn.lstatSync,statSync:Tn.statSync};function zw(t){return t===void 0?kt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kt.FILE_SYSTEM_ADAPTER),t)}kt.createFileSystemAdapter=zw});var Bp=d(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var Vw=Mp(),ha=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Vw.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}};fa.default=ha});var or=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.statSync=Nt.stat=Nt.Settings=void 0;var qp=Dp(),Kw=Fp(),pa=Bp();Nt.Settings=pa.default;function Xw(t,e,r){if(typeof e=="function"){qp.read(t,da(),e);return}qp.read(t,da(e),r)}Nt.stat=Xw;function Zw(t,e){let r=da(e);return Kw.read(t,r)}Nt.statSync=Zw;function da(t={}){return t instanceof pa.default?t:new pa.default(t)}});var Up=d((sL,$p)=>{var Hp;$p.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Hp||(Hp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Gp=d((oL,jp)=>{jp.exports=Jw;var Qw=Up();function Jw(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?Qw(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var ma=d(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var On=process.versions.node.split(".");if(On[0]===void 0||On[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Wp=Number.parseInt(On[0],10),ev=Number.parseInt(On[1],10),Yp=10,tv=10,rv=Wp>Yp,iv=Wp===Yp&&ev>=tv;Cn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=rv||iv});var zp=d(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.createDirentFromStats=void 0;var ga=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 nv(t,e){return new ga(t,e)}Pn.createDirentFromStats=nv});var ya=d(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.fs=void 0;var sv=zp();Ln.fs=sv});var _a=d(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.joinPathSegments=void 0;function ov(t,e,r){return t.endsWith(r)?t+e:t+r+e}In.joinPathSegments=ov});var Jp=d(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.readdir=Dt.readdirWithFileTypes=Dt.read=void 0;var av=or(),Vp=Gp(),lv=ma(),Kp=ya(),Xp=_a();function cv(t,e,r){if(!e.stats&&lv.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Zp(t,e,r);return}Qp(t,e,r)}Dt.read=cv;function Zp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){kn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Xp.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Sa(r,s);return}let o=s.map(a=>uv(a,e));Vp(o,(a,l)=>{if(a!==null){kn(r,a);return}Sa(r,l)})})}Dt.readdirWithFileTypes=Zp;function uv(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=Kp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Qp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){kn(r,i);return}let s=n.map(o=>{let a=Xp.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{av.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:Kp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});Vp(s,(o,a)=>{if(o!==null){kn(r,o);return}Sa(r,a)})})}Dt.readdir=Qp;function kn(t,e){t(e)}function Sa(t,e){t(null,e)}});var nd=d(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var hv=or(),fv=ma(),ed=ya(),td=_a();function pv(t,e){return!e.stats&&fv.IS_SUPPORT_READDIR_WITH_FILE_TYPES?rd(t,e):id(t,e)}Ft.read=pv;function rd(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:td.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=ed.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Ft.readdirWithFileTypes=rd;function id(t,e){return e.fs.readdirSync(t).map(i=>{let n=td.joinPathSegments(t,i,e.pathSegmentSeparator),s=hv.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:ed.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Ft.readdir=id});var sd=d(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createFileSystemAdapter=Mt.FILE_SYSTEM_ADAPTER=void 0;var Nr=require("fs");Mt.FILE_SYSTEM_ADAPTER={lstat:Nr.lstat,stat:Nr.stat,lstatSync:Nr.lstatSync,statSync:Nr.statSync,readdir:Nr.readdir,readdirSync:Nr.readdirSync};function dv(t){return t===void 0?Mt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mt.FILE_SYSTEM_ADAPTER),t)}Mt.createFileSystemAdapter=dv});var od=d(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var mv=require("path"),gv=or(),yv=sd(),Ea=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=yv.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,mv.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gv.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};ba.default=Ea});var Nn=d(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.scandirSync=Bt.scandir=void 0;var ad=Jp(),_v=nd(),xa=od();Bt.Settings=xa.default;function Sv(t,e,r){if(typeof e=="function"){ad.read(t,wa(),e);return}ad.read(t,wa(e),r)}Bt.scandir=Sv;function Ev(t,e){let r=wa(e);return _v.read(t,r)}Bt.scandirSync=Ev;function wa(t={}){return t instanceof xa.default?t:new xa.default(t)}});var cd=d((gL,ld)=>{"use strict";function bv(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}}ld.exports=bv});var hd=d((yL,va)=>{"use strict";var xv=cd();function ud(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=xv(wv),n=null,s=null,o=0,a=null,l={push:y,drain:He,saturated:He,pause:u,paused:!1,concurrency:r,running:c,resume:g,idle:m,length:h,getQueue:f,unshift:x,empty:He,kill:R,killAndDrain:M,error:re};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var N=n,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(l.paused){l.paused=!1;for(var N=0;N<l.concurrency;N++)o++,w()}}function m(){return o===0&&l.length()===0}function y(N,H){var L=i.get();L.context=t,L.release=w,L.value=N,L.callback=H||He,L.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=L,s=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N,H){var L=i.get();L.context=t,L.release=w,L.value=N,L.callback=H||He,o===l.concurrency||l.paused?n?(L.next=n,n=L):(n=L,s=L,l.saturated()):(o++,e.call(t,L.value,L.worked))}function w(N){N&&i.release(N);var H=n;H?l.paused?o--:(s===n&&(s=null),n=H.next,H.next=null,e.call(t,H.value,H.worked),s===null&&l.empty()):--o===0&&l.drain()}function R(){n=null,s=null,l.drain=He}function M(){n=null,s=null,l.drain(),l.drain=He}function re(N){a=N}}function He(){}function wv(){this.value=null,this.callback=He,this.next=null,this.release=He,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=He,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function vv(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=ud(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,g){s(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(He),h}function l(u){var h=new Promise(function(f,g){o(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(He),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}va.exports=ud;va.exports.promise=vv});var Dn=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function Rv(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=Rv;function Av(t,e){return t===null||t(e)}tt.isAppliedFilter=Av;function Tv(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=Tv;function Ov(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=Ov});var Ta=d(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Cv=Dn(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._root=Cv.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Aa.default=Ra});var Pa=d(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Pv=require("events"),Lv=Nn(),Iv=hd(),Fn=Dn(),kv=Ta(),Oa=class extends kv.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Lv.scandir,this._emitter=new Pv.EventEmitter,this._queue=Iv(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||!Fn.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=Fn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Fn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Fn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ca.default=Oa});var fd=d(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var Nv=Pa(),La=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Nv.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Dv(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fv(e,this._storage)}),this._reader.read()}};Ia.default=La;function Dv(t,e){t(e)}function Fv(t,e){t(null,e)}});var pd=d(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var Mv=require("stream"),Bv=Pa(),ka=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Bv.default(this._root,this._settings),this._stream=new Mv.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}};Na.default=ka});var dd=d(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var qv=Nn(),Mn=Dn(),Hv=Ta(),Da=class extends Hv.default{constructor(){super(...arguments),this._scandir=qv.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(Mn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Mn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Mn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Mn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Fa.default=Da});var md=d(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var $v=dd(),Ma=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $v.default(this._root,this._settings)}read(){return this._reader.read()}};Ba.default=Ma});var gd=d(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Uv=require("path"),jv=Nn(),qa=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,Uv.sep),this.fsScandirSettings=new jv.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}};Ha.default=qa});var qn=d(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var yd=fd(),Gv=pd(),Wv=md(),$a=gd();rt.Settings=$a.default;function Yv(t,e,r){if(typeof e=="function"){new yd.default(t,Bn()).read(e);return}new yd.default(t,Bn(e)).read(r)}rt.walk=Yv;function zv(t,e){let r=Bn(e);return new Wv.default(t,r).read()}rt.walkSync=zv;function Vv(t,e){let r=Bn(e);return new Gv.default(t,r).read()}rt.walkStream=Vv;function Bn(t={}){return t instanceof $a.default?t:new $a.default(t)}});var Hn=d(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var Kv=require("path"),Xv=or(),_d=gt(),Ua=class{constructor(e){this._settings=e,this._fsStatSettings=new Xv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Kv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:_d.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!_d.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ja.default=Ua});var Ya=d(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var Zv=require("stream"),Qv=or(),Jv=qn(),eR=Hn(),Ga=class extends eR.default{constructor(){super(...arguments),this._walkStream=Jv.walkStream,this._stat=Qv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new Zv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Wa.default=Ga});var Sd=d(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var tR=qn(),rR=Hn(),iR=Ya(),za=class extends rR.default{constructor(){super(...arguments),this._walkAsync=tR.walk,this._readerStream=new iR.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))})}};Va.default=za});var Ed=d(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Dr=gt(),Ka=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Dr.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 Dr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Dr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Dr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Dr.array.splitWhen(e,r=>r.dynamic&&Dr.pattern.hasGlobStar(r.pattern))}};Xa.default=Ka});var bd=d(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var nR=Ed(),Za=class extends nR.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Qa.default=Za});var xd=d(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var $n=gt(),sR=bd(),Ja=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 sR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($n.pattern.isAffectDepthOfReadingPattern);return $n.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$n.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!$n.pattern.matchAny(e,r)}};el.default=Ja});var wd=d(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var ar=gt(),tl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=ar.pattern.convertPatternsToRe(e,this._micromatchOptions),n=ar.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=ar.path.makeAbsolute(this._settings.cwd,e);return ar.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=ar.path.removeLeadingDotSegment(e),s=ar.pattern.matchAny(n,r);return!s&&i?ar.pattern.matchAny(n+"/",r):s}};rl.default=tl});var vd=d(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var oR=gt(),il=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return oR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};nl.default=il});var Ad=d(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var Rd=gt(),sl=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Rd.path.makeAbsolute(this._settings.cwd,r),r=Rd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};ol.default=sl});var Un=d(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var aR=require("path"),lR=xd(),cR=wd(),uR=vd(),hR=Ad(),al=class{constructor(e){this._settings=e,this.errorFilter=new uR.default(this._settings),this.entryFilter=new cR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new lR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hR.default(this._settings)}_getRootDirectory(e){return aR.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}}};ll.default=al});var Td=d(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var fR=Sd(),pR=Un(),cl=class extends pR.default{constructor(){super(...arguments),this._reader=new fR.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)}};ul.default=cl});var Od=d(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var dR=require("stream"),mR=Ya(),gR=Un(),hl=class extends gR.default{constructor(){super(...arguments),this._reader=new mR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new dR.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)}};fl.default=hl});var Cd=d(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var yR=or(),_R=qn(),SR=Hn(),pl=class extends SR.default{constructor(){super(...arguments),this._walkSync=_R.walkSync,this._statSync=yR.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)}};dl.default=pl});var Pd=d(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ER=Cd(),bR=Un(),ml=class extends bR.default{constructor(){super(...arguments),this._reader=new ER.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)}};gl.default=ml});var Ld=d(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fr=require("fs"),xR=require("os"),wR=Math.max(xR.cpus().length,1);Mr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Fr.lstat,lstatSync:Fr.lstatSync,stat:Fr.stat,statSync:Fr.statSync,readdir:Fr.readdir,readdirSync:Fr.readdirSync};var yl=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,wR),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({},Mr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Mr.default=yl});var Dd=d((UL,Nd)=>{"use strict";var Id=Lp(),kd=kp(),vR=Td(),RR=Od(),AR=Pd(),_l=Ld(),lr=gt();async function Sl(t,e){Br(t);let r=El(t,vR.default,e),i=await Promise.all(r);return lr.array.flatten(i)}(function(t){function e(o,a){Br(o);let l=El(o,AR.default,a);return lr.array.flatten(l)}t.sync=e;function r(o,a){Br(o);let l=El(o,RR.default,a);return lr.stream.merge(l)}t.stream=r;function i(o,a){Br(o);let l=kd.transform([].concat(o)),c=new _l.default(a);return Id.generate(l,c)}t.generateTasks=i;function n(o,a){Br(o);let l=new _l.default(a);return lr.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Br(o),lr.path.escape(o)}t.escapePath=s})(Sl||(Sl={}));function El(t,e,r){let i=kd.transform([].concat(t)),n=new _l.default(r),s=Id.generate(i,n),o=new e(n);return s.map(o.read,o)}function Br(t){if(![].concat(t).every(i=>lr.string.isString(i)&&!lr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Nd.exports=Sl});var Xd=d((YL,Kd)=>{Kd.exports=Vd;Vd.sync=BR;var Yd=require("fs");function MR(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 zd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:MR(e,r)}function Vd(t,e,r){Yd.stat(t,function(i,n){r(i,i?!1:zd(n,t,e))})}function BR(t,e){return zd(Yd.statSync(t),t,e)}});var tm=d((zL,em)=>{em.exports=Qd;Qd.sync=qR;var Zd=require("fs");function Qd(t,e,r){Zd.stat(t,function(i,n){r(i,i?!1:Jd(n,e))})}function qR(t,e){return Jd(Zd.statSync(t),e)}function Jd(t,e){return t.isFile()&&HR(t,e)}function HR(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,h=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return h}});var im=d((KL,rm)=>{var VL=require("fs"),Gn;process.platform==="win32"||global.TESTING_WINDOWS?Gn=Xd():Gn=tm();rm.exports=Rl;Rl.sync=$R;function Rl(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){Rl(t,e||{},function(s,o){s?n(s):i(o)})})}Gn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function $R(t,e){try{return Gn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var um=d((XL,cm)=>{var Hr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",nm=require("path"),UR=Hr?";":":",sm=im(),om=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),am=(t,e)=>{let r=e.colon||UR,i=t.match(/\//)||Hr&&t.match(/\\/)?[""]:[...Hr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Hr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Hr?n.split(r):[""];return Hr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},lm=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=am(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(om(t));let f=i[c],g=/^".*"$/.test(f)?f.slice(1,-1):f,m=nm.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(l(y,c,0))}),l=(c,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let m=n[h];sm(c+m,{pathExt:s},(y,x)=>{if(!y&&x)if(e.all)o.push(c+m);else return f(c+m);return f(l(c,u,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},jR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=am(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=nm.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(sm.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 om(t)};cm.exports=lm;lm.sync=jR});var Tl=d((ZL,Al)=>{"use strict";var hm=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Al.exports=hm;Al.exports.default=hm});var mm=d((QL,dm)=>{"use strict";var fm=require("path"),GR=um(),WR=Tl();function pm(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=GR.sync(t.command,{path:r[WR({env:r})],pathExt:e?fm.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=fm.resolve(n?t.options.cwd:"",o)),o}function YR(t){return pm(t)||pm(t,!0)}dm.exports=YR});var gm=d((JL,Cl)=>{"use strict";var Ol=/([()\][%!^"`<>&|;, *?])/g;function zR(t){return t=t.replace(Ol,"^$1"),t}function VR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Ol,"^$1"),e&&(t=t.replace(Ol,"^$1")),t}Cl.exports.command=zR;Cl.exports.argument=VR});var _m=d((eI,ym)=>{"use strict";ym.exports=/^#!(.*)/});var Em=d((tI,Sm)=>{"use strict";var KR=_m();Sm.exports=(t="")=>{let e=t.match(KR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var xm=d((rI,bm)=>{"use strict";var Pl=require("fs"),XR=Em();function ZR(t){let r=Buffer.alloc(150),i;try{i=Pl.openSync(t,"r"),Pl.readSync(i,r,0,150,0),Pl.closeSync(i)}catch{}return XR(r.toString())}bm.exports=ZR});var Am=d((iI,Rm)=>{"use strict";var QR=require("path"),wm=mm(),vm=gm(),JR=xm(),eA=process.platform==="win32",tA=/\.(?:com|exe)$/i,rA=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function iA(t){t.file=wm(t);let e=t.file&&JR(t.file);return e?(t.args.unshift(t.file),t.command=e,wm(t)):t.file}function nA(t){if(!eA)return t;let e=iA(t),r=!tA.test(e);if(t.options.forceShell||r){let i=rA.test(e);t.command=QR.normalize(t.command),t.command=vm.command(t.command),t.args=t.args.map(s=>vm.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 sA(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:nA(i)}Rm.exports=sA});var Cm=d((nI,Om)=>{"use strict";var Ll=process.platform==="win32";function Il(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 oA(t,e){if(!Ll)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Tm(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Tm(t,e){return Ll&&t===1&&!e.file?Il(e.original,"spawn"):null}function aA(t,e){return Ll&&t===1&&!e.file?Il(e.original,"spawnSync"):null}Om.exports={hookChildProcess:oA,verifyENOENT:Tm,verifyENOENTSync:aA,notFoundError:Il}});var Im=d((sI,$r)=>{"use strict";var Pm=require("child_process"),kl=Am(),Nl=Cm();function Lm(t,e,r){let i=kl(t,e,r),n=Pm.spawn(i.command,i.args,i.options);return Nl.hookChildProcess(n,i),n}function lA(t,e,r){let i=kl(t,e,r),n=Pm.spawnSync(i.command,i.args,i.options);return n.error=n.error||Nl.verifyENOENTSync(n.status,i),n}$r.exports=Lm;$r.exports.spawn=Lm;$r.exports.sync=lA;$r.exports._parse=kl;$r.exports._enoent=Nl});var Nm=d((oI,km)=>{"use strict";km.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 Fm=d((aI,Ii)=>{"use strict";var Li=require("path"),Nm=Al(),Dm=t=>{t={cwd:process.cwd(),path:process.env[Nm()],execPath:process.execPath,...t};let e,r=Li.resolve(t.cwd),i=[];for(;e!==r;)i.push(Li.join(r,"node_modules/.bin")),e=r,r=Li.resolve(r,"..");let n=Li.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Li.delimiter)};Ii.exports=Dm;Ii.exports.default=Dm;Ii.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Nm({env:e});return t.path=e[r],e[r]=Ii.exports(t),e}});var Bm=d((lI,Nl)=>{"use strict";var Mm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Nl.exports=Mm;Nl.exports.default=Mm});var Hm=d((cI,Wn)=>{"use strict";var cA=Bm(),jn=new WeakMap,qm=(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(jn.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 cA(s,t),jn.set(s,i),s};Wn.exports=qm;Wn.exports.default=qm;Wn.exports.callCount=t=>{if(!jn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return jn.get(t)}});var $m=d(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.SIGNALS=void 0;var uA=[{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"}];Yn.SIGNALS=uA});var Dl=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var hA=function(){let t=Gm-Um+1;return Array.from({length:t},fA)};Ur.getRealtimeSignals=hA;var fA=function(t,e){return{name:`SIGRT${e+1}`,number:Um+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Um=34,Gm=64;Ur.SIGRTMAX=Gm});var jm=d(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.getSignals=void 0;var pA=require("os"),dA=$m(),mA=Dl(),gA=function(){let t=(0,mA.getRealtimeSignals)();return[...dA.SIGNALS,...t].map(yA)};zn.getSignals=gA;var yA=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=pA.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Ym=d(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.signalsByNumber=Gr.signalsByName=void 0;var _A=require("os"),Wm=jm(),SA=Dl(),EA=function(){return(0,Wm.getSignals)().reduce(bA,{})},bA=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}}},xA=EA();Gr.signalsByName=xA;var wA=function(){let t=(0,Wm.getSignals)(),e=SA.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>vA(n,t));return Object.assign({},...r)},vA=function(t,e){let r=RA(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:l}}},RA=function(t,e){let r=e.find(({name:i})=>_A.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},AA=wA();Gr.signalsByNumber=AA});var Vm=d((dI,zm)=>{"use strict";var{signalsByName:TA}=Ym(),OA=({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",CA=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:TA[n].description,g=i&&i.code,y=`Command ${OA({timedOut:l,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,x=Object.prototype.toString.call(i)==="[object Error]",w=x?`${y}
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 Mm=d((aI,Ii)=>{"use strict";var Li=require("path"),Dm=Tl(),Fm=t=>{t={cwd:process.cwd(),path:process.env[Dm()],execPath:process.execPath,...t};let e,r=Li.resolve(t.cwd),i=[];for(;e!==r;)i.push(Li.join(r,"node_modules/.bin")),e=r,r=Li.resolve(r,"..");let n=Li.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Li.delimiter)};Ii.exports=Fm;Ii.exports.default=Fm;Ii.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Dm({env:e});return t.path=e[r],e[r]=Ii.exports(t),e}});var qm=d((lI,Dl)=>{"use strict";var Bm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Dl.exports=Bm;Dl.exports.default=Bm});var $m=d((cI,Yn)=>{"use strict";var cA=qm(),Wn=new WeakMap,Hm=(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(Wn.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 cA(s,t),Wn.set(s,i),s};Yn.exports=Hm;Yn.exports.default=Hm;Yn.exports.callCount=t=>{if(!Wn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Wn.get(t)}});var Um=d(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.SIGNALS=void 0;var uA=[{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"}];zn.SIGNALS=uA});var Fl=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var hA=function(){let t=Gm-jm+1;return Array.from({length:t},fA)};Ur.getRealtimeSignals=hA;var fA=function(t,e){return{name:`SIGRT${e+1}`,number:jm+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},jm=34,Gm=64;Ur.SIGRTMAX=Gm});var Wm=d(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getSignals=void 0;var pA=require("os"),dA=Um(),mA=Fl(),gA=function(){let t=(0,mA.getRealtimeSignals)();return[...dA.SIGNALS,...t].map(yA)};Vn.getSignals=gA;var yA=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=pA.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var zm=d(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.signalsByNumber=jr.signalsByName=void 0;var _A=require("os"),Ym=Wm(),SA=Fl(),EA=function(){return(0,Ym.getSignals)().reduce(bA,{})},bA=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}}},xA=EA();jr.signalsByName=xA;var wA=function(){let t=(0,Ym.getSignals)(),e=SA.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>vA(n,t));return Object.assign({},...r)},vA=function(t,e){let r=RA(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:l}}},RA=function(t,e){let r=e.find(({name:i})=>_A.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},AA=wA();jr.signalsByNumber=AA});var Km=d((dI,Vm)=>{"use strict";var{signalsByName:TA}=zm(),OA=({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",CA=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:TA[n].description,g=i&&i.code,y=`Command ${OA({timedOut:l,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,x=Object.prototype.toString.call(i)==="[object Error]",w=x?`${y}
5
5
  ${i.message}`:y,R=[w,e,t].filter(Boolean).join(`
6
- `);return x?(i.originalMessage=i.message,i.message=R):i=new Error(R),i.shortMessage=w,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};zm.exports=CA});var Xm=d((mI,Fl)=>{"use strict";var Vn=["stdin","stdout","stderr"],PA=t=>Vn.some(e=>t[e]!==void 0),Km=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Vn.map(i=>t[i]);if(PA(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Vn.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,Vn.length);return Array.from({length:r},(i,n)=>e[n])};Fl.exports=Km;Fl.exports.node=t=>{let e=Km(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Zm=d((gI,Kn)=>{Kn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Kn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Kn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var rg=d((yI,Yr)=>{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)?(Qm=require("assert"),jr=Zm(),Jm=/^win/i.test(Z.platform),ki=require("events"),typeof ki!="function"&&(ki=ki.EventEmitter),Z.__signal_exit_emitter__?le=Z.__signal_exit_emitter__:(le=Z.__signal_exit_emitter__=new ki,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Yr.exports=function(t,e){if(!cr(global.process))return function(){};Qm.equal(typeof t,"function","a callback must be provided for exit handler"),Wr===!1&&Ml();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Xn()};return le.on(r,t),i},Xn=function(){!Wr||!cr(global.process)||(Wr=!1,jr.forEach(function(e){try{Z.removeListener(e,Zn[e])}catch{}}),Z.emit=Qn,Z.reallyExit=Bl,le.count-=1)},Yr.exports.unload=Xn,ur=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Zn={},jr.forEach(function(t){Zn[t]=function(){if(cr(global.process)){var r=Z.listeners(t);r.length===le.count&&(Xn(),ur("exit",null,t),ur("afterexit",null,t),Jm&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Yr.exports.signals=function(){return jr},Wr=!1,Ml=function(){Wr||!cr(global.process)||(Wr=!0,le.count+=1,jr=jr.filter(function(e){try{return Z.on(e,Zn[e]),!0}catch{return!1}}),Z.emit=tg,Z.reallyExit=eg)},Yr.exports.load=Ml,Bl=Z.reallyExit,eg=function(e){cr(global.process)&&(Z.exitCode=e||0,ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),Bl.call(Z,Z.exitCode))},Qn=Z.emit,tg=function(e,r){if(e==="exit"&&cr(global.process)){r!==void 0&&(Z.exitCode=r);var i=Qn.apply(this,arguments);return ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),i}else return Qn.apply(this,arguments)}):Yr.exports=function(){return function(){}};var Qm,jr,Jm,ki,le,Xn,ur,Zn,Wr,Ml,Bl,eg,Qn,tg});var ng=d((_I,ig)=>{"use strict";var LA=require("os"),IA=rg(),kA=1e3*5,NA=(t,e="SIGTERM",r={})=>{let i=t(e);return DA(t,e,r,i),i},DA=(t,e,r,i)=>{if(!FA(e,r,i))return;let n=BA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},FA=(t,{forceKillAfterTimeout:e},r)=>MA(t)&&e!==!1&&r,MA=t=>t===LA.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",BA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return kA;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},qA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},HA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},$A=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{HA(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},UA=({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})`)},GA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=IA(()=>{t.kill()});return i.finally(()=>{n()})};ig.exports={spawnedKill:NA,spawnedCancel:qA,setupTimeout:$A,validateTimeout:UA,setExitHandler:GA}});var og=d((SI,sg)=>{"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";sg.exports=it});var lg=d((EI,ag)=>{"use strict";var{PassThrough:jA}=require("stream");ag.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 jA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var cg=d((bI,Ni)=>{"use strict";var{constants:WA}=require("buffer"),YA=require("stream"),{promisify:zA}=require("util"),VA=lg(),KA=zA(YA.pipeline),Jn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function ql(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=VA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=WA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await KA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Jn)})}),i.getBufferedValue()}Ni.exports=ql;Ni.exports.buffer=(t,e)=>ql(t,{...e,encoding:"buffer"});Ni.exports.array=(t,e)=>ql(t,{...e,array:!0});Ni.exports.MaxBufferError=Jn});var hg=d((xI,ug)=>{"use strict";var{PassThrough:XA}=require("stream");ug.exports=function(){var t=[],e=new XA({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 mg=d((wI,dg)=>{"use strict";var pg=og(),fg=cg(),ZA=hg(),QA=(t,e)=>{e===void 0||t.stdin===void 0||(pg(e)?e.pipe(t.stdin):t.stdin.end(e))},JA=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=ZA();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Hl=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},$l=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?fg(t,{encoding:e,maxBuffer:i}):fg.buffer(t,{maxBuffer:i})},eT=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=$l(t,{encoding:i,buffer:n,maxBuffer:s}),l=$l(e,{encoding:i,buffer:n,maxBuffer:s}),c=$l(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Hl(t,a),Hl(e,l),Hl(r,c)])}},tT=({input:t})=>{if(pg(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};dg.exports={handleInput:QA,makeAllStream:JA,getSpawnedResult:eT,validateInputSync:tT}});var yg=d((vI,gg)=>{"use strict";var rT=(async()=>{})().constructor.prototype,iT=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(rT,t)]),nT=(t,e)=>{for(let[r,i]of iT){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},sT=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)})});gg.exports={mergePromise:nT,getSpawnedPromise:sT}});var Eg=d((RI,Sg)=>{"use strict";var _g=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],oT=/^[\w.-]+$/,aT=/"/g,lT=t=>typeof t!="string"||oT.test(t)?t:`"${t.replace(aT,'\\"')}"`,cT=(t,e)=>_g(t,e).join(" "),uT=(t,e)=>_g(t,e).map(r=>lT(r)).join(" "),hT=/ +/g,fT=t=>{let e=[];for(let r of t.trim().split(hT)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Sg.exports={joinCommand:cT,getEscapedCommand:uT,parseCommand:fT}});var Tg=d((AI,zr)=>{"use strict";var pT=require("path"),Ul=require("child_process"),dT=Lm(),mT=km(),gT=Fm(),yT=Hm(),es=Vm(),xg=Xm(),{spawnedKill:_T,spawnedCancel:ST,setupTimeout:ET,validateTimeout:bT,setExitHandler:xT}=ng(),{handleInput:wT,getSpawnedResult:vT,makeAllStream:RT,validateInputSync:AT}=mg(),{mergePromise:bg,getSpawnedPromise:TT}=yg(),{joinCommand:wg,parseCommand:vg,getEscapedCommand:Rg}=Eg(),OT=1e3*1e3*100,CT=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?gT.env({env:s,cwd:i,execPath:n}):s},Ag=(t,e,r={})=>{let i=dT._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:OT,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=CT(r),r.stdio=xg(r),process.platform==="win32"&&pT.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Di=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?mT(e):e,ts=(t,e,r)=>{let i=Ag(t,e,r),n=wg(t,e),s=Rg(t,e);bT(i.options);let o;try{o=Ul.spawn(i.file,i.args,i.options)}catch(g){let m=new Ul.ChildProcess,y=Promise.reject(es({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return bg(m,y)}let a=TT(o),l=ET(o,i.options,a),c=xT(o,i.options,l),u={isCanceled:!1};o.kill=_T.bind(null,o.kill.bind(o)),o.cancel=ST.bind(null,o,u);let f=yT(async()=>{let[{error:g,exitCode:m,signal:y,timedOut:x},w,R,M]=await vT(o,i.options,c),re=Di(i.options,w),N=Di(i.options,R),H=Di(i.options,M);if(g||m!==0||y!==null){let L=es({error:g,exitCode:m,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 wT(o,i.options.input),o.all=RT(o,i.options),bg(o,f)};zr.exports=ts;zr.exports.sync=(t,e,r)=>{let i=Ag(t,e,r),n=wg(t,e),s=Rg(t,e);AT(i.options);let o;try{o=Ul.spawnSync(i.file,i.args,i.options)}catch(c){throw es({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Di(i.options,o.stdout,o.error),l=Di(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=es({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};zr.exports.command=(t,e)=>{let[r,...i]=vg(t);return ts(r,i,e)};zr.exports.commandSync=(t,e)=>{let[r,...i]=vg(t);return ts.sync(r,i,e)};zr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=xg.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return ts(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Vr=d((LI,Pg)=>{"use strict";var Cg=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"]]);Pg.exports=t=>t?Object.keys(t).map(e=>[Cg.has(e)?Cg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var as=d((II,qg)=>{"use strict";var Lg=typeof process=="object"&&process?process:{stdout:null,stderr:null},FT=require("events"),Ig=require("stream"),kg=require("string_decoder").StringDecoder,_t=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),rs=Symbol("emittingEnd"),Fi=Symbol("emittedError"),is=Symbol("closed"),Ng=Symbol("read"),ns=Symbol("flush"),Dg=Symbol("flushChunk"),Te=Symbol("encoding"),Et=Symbol("decoder"),ss=Symbol("flowing"),Mi=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),ce=Symbol("bufferLength"),Gl=Symbol("bufferPush"),jl=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Wl=Symbol("emitData"),Fg=Symbol("emitEnd"),Yl=Symbol("emitEnd2"),bt=Symbol("async"),Bi=t=>Promise.resolve().then(t),Mg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",MT=Mg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),BT=Mg&&Symbol.iterator||Symbol("iterator not implemented"),qT=t=>t==="end"||t==="finish"||t==="prefinish",HT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,$T=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),os=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()}},zl=class extends os{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)}};qg.exports=class Bg extends Ig{constructor(e){super(),this[ss]=!1,this[Mi]=!1,this[nt]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Te]=null:this[Te]=e&&e.encoding||null,this[Te]==="buffer"&&(this[Te]=null),this[bt]=e&&!!e.async||!1,this[Et]=this[Te]?new kg(this[Te]):null,this[_t]=!1,this[Ht]=!1,this[rs]=!1,this[is]=!1,this[Fi]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[nt]})}get bufferLength(){return this[ce]}get encoding(){return this[Te]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Te]&&e!==this[Te]&&(this[Et]&&this[Et].lastNeed||this[ce]))throw new Error("cannot change encoding");this[Te]!==e&&(this[Et]=e?new kg(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[Et].write(r)))),this[Te]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[bt]}set async(e){this[bt]=this[bt]||!!e}write(e,r,i){if(this[_t])throw new Error("write after end");if(this[ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[bt]?Bi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&($T(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):HT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[ns](!0),this.flowing?this.emit("data",e):this[Gl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[Et].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[Et].write(e)),this.flowing&&this[ce]!==0&&this[ns](!0),this.flowing?this.emit("data",e):this[Gl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[ce]===0||e===0||e>this[ce])return this[St](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[ce])]);let r=this[Ng](e||null,this[ee][0]);return this[St](),r}[Ng](e,r){return e===r.length||e===null?this[jl]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this[ee].length&&!this[_t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[_t]=!0,this.writable=!1,(this.flowing||!this[Mi])&&this[St](),this}[Kr](){this[ye]||(this[Mi]=!1,this[ss]=!0,this.emit("resume"),this[ee].length?this[ns]():this[_t]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[ss]=!1,this[Mi]=!0}get destroyed(){return this[ye]}get flowing(){return this[ss]}get paused(){return this[Mi]}[Gl](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this[ee].push(e)}[jl](){return this[ee].length&&(this[ge]?this[ce]-=1:this[ce]-=this[ee][0].length),this[ee].shift()}[ns](e){do;while(this[Dg](this[jl]()));!e&&!this[ee].length&&!this[_t]&&this.emit("drain")}[Dg](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===Lg.stdout||e===Lg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new zl(this,e,r):new os(this,e,r)),this[bt]?Bi(()=>this[Kr]()):this[Kr]()),e}unpipe(e){let r=this[nt].find(i=>i.dest===e);r&&(this[nt].splice(this[nt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[nt].length&&!this.flowing?this[Kr]():e==="readable"&&this[ce]!==0?super.emit("readable"):qT(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fi]&&(this[bt]?Bi(()=>r.call(this,this[Fi])):r.call(this,this[Fi])),i}get emittedEnd(){return this[Ht]}[St](){!this[rs]&&!this[Ht]&&!this[ye]&&this[ee].length===0&&this[_t]&&(this[rs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[is]&&this.emit("close"),this[rs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[bt]?Bi(()=>this[Wl](r)):this[Wl](r):!1;if(e==="end")return this[Fg]();if(e==="close"){if(this[is]=!0,!this[Ht]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Fi]=r;let s=super.emit("error",r);return this[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}[Wl](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[Fg](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[bt]?Bi(()=>this[Yl]()):this[Yl]())}[Yl](){if(this[Et]){let r=this[Et].end();if(r){for(let i of this[nt])i.dest.write(r);super.emit("data",r)}}for(let r of this[nt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Te]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[MT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[_t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[_t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(ye,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[BT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ye]?(e?this.emit("error",e):this.emit(ye),this):(this[ye]=!0,this[ee].length=0,this[ce]=0,typeof this.close=="function"&&!this[is]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof Bg||e instanceof Ig||e instanceof FT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var $g=d((kI,Hg)=>{var UT=require("zlib").constants||{ZLIB_VERNUM:4736};Hg.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},UT))});var Jl=d((NI,Xg)=>{"use strict";var Ug=typeof process=="object"&&process?process:{stdout:null,stderr:null},GT=require("events"),Gg=require("stream"),jg=require("string_decoder").StringDecoder,xt=Symbol("EOF"),wt=Symbol("maybeEmitEnd"),$t=Symbol("emittedEnd"),ls=Symbol("emittingEnd"),qi=Symbol("emittedError"),cs=Symbol("closed"),Wg=Symbol("read"),us=Symbol("flush"),Yg=Symbol("flushChunk"),Oe=Symbol("encoding"),vt=Symbol("decoder"),hs=Symbol("flowing"),Hi=Symbol("paused"),Xr=Symbol("resume"),ue=Symbol("bufferLength"),Vl=Symbol("bufferPush"),Kl=Symbol("bufferShift"),_e=Symbol("objectMode"),Se=Symbol("destroyed"),Xl=Symbol("emitData"),zg=Symbol("emitEnd"),Zl=Symbol("emitEnd2"),Rt=Symbol("async"),$i=t=>Promise.resolve().then(t),Vg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jT=Vg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),WT=Vg&&Symbol.iterator||Symbol("iterator not implemented"),YT=t=>t==="end"||t==="finish"||t==="prefinish",zT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,VT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),fs=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Xr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ql=class extends fs{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)}};Xg.exports=class Kg extends Gg{constructor(e){super(),this[hs]=!1,this[Hi]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Oe]=null:this[Oe]=e&&e.encoding||null,this[Oe]==="buffer"&&(this[Oe]=null),this[Rt]=e&&!!e.async||!1,this[vt]=this[Oe]?new jg(this[Oe]):null,this[xt]=!1,this[$t]=!1,this[ls]=!1,this[cs]=!1,this[qi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Se]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Oe]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Oe]&&e!==this[Oe]&&(this[vt]&&this[vt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[vt]=e?new jg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[vt].write(r)))),this[Oe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[Rt]}set async(e){this[Rt]=this[Rt]||!!e}write(e,r,i){if(this[xt])throw new Error("write after end");if(this[Se])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Rt]?$i:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(VT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):zT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[us](!0),this.flowing?this.emit("data",e):this[Vl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[vt].write(e)),this.flowing&&this[ue]!==0&&this[us](!0),this.flowing?this.emit("data",e):this[Vl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Se])return null;if(this[ue]===0||e===0||e>this[ue])return this[wt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[Wg](e||null,this.buffer[0]);return this[wt](),r}[Wg](e,r){return e===r.length||e===null?this[Kl]():(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[Hi])&&this[wt](),this}[Xr](){this[Se]||(this[Hi]=!1,this[hs]=!0,this.emit("resume"),this.buffer.length?this[us]():this[xt]?this[wt]():this.emit("drain"))}resume(){return this[Xr]()}pause(){this[hs]=!1,this[Hi]=!0}get destroyed(){return this[Se]}get flowing(){return this[hs]}get paused(){return this[Hi]}[Vl](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Kl](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[us](e){do;while(this[Yg](this[Kl]()));!e&&!this.buffer.length&&!this[xt]&&this.emit("drain")}[Yg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Se])return;let i=this[$t];return r=r||{},e===Ug.stdout||e===Ug.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Ql(this,e,r):new fs(this,e,r)),this[Rt]?$i(()=>this[Xr]()):this[Xr]()),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[Xr]():e==="readable"&&this[ue]!==0?super.emit("readable"):YT(e)&&this[$t]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[qi]&&(this[Rt]?$i(()=>r.call(this,this[qi])):r.call(this,this[qi])),i}get emittedEnd(){return this[$t]}[wt](){!this[ls]&&!this[$t]&&!this[Se]&&this.buffer.length===0&&this[xt]&&(this[ls]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[cs]&&this.emit("close"),this[ls]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Se&&this[Se])return;if(e==="data")return r?this[Rt]?$i(()=>this[Xl](r)):this[Xl](r):!1;if(e==="end")return this[zg]();if(e==="close"){if(this[cs]=!0,!this[$t]&&!this[Se])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[qi]=r;let s=super.emit("error",r);return this[wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[wt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[wt](),n}[Xl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[wt](),r}[zg](){this[$t]||(this[$t]=!0,this.readable=!1,this[Rt]?$i(()=>this[Zl]()):this[Zl]())}[Zl](){if(this[vt]){let r=this[vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Oe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Se,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[jT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[xt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[xt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Se,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[WT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Se]?(e?this.emit("error",e):this.emit(Se),this):(this[Se]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[cs]&&this.close(),e?this.emit("error",e):this.emit(Se),this)}static isStream(e){return!!e&&(e instanceof Kg||e instanceof Gg||e instanceof GT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mc=d(ke=>{"use strict";var nc=require("assert"),Ut=require("buffer").Buffer,Jg=require("zlib"),hr=ke.constants=$g(),KT=Jl(),Zg=Ut.concat,fr=Symbol("_superWrite"),Qr=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"}},XT=Symbol("opts"),Ui=Symbol("flushFlag"),Qg=Symbol("finishFlushFlag"),dc=Symbol("fullFlushFlag"),z=Symbol("handle"),ps=Symbol("onError"),Zr=Symbol("sawError"),ec=Symbol("level"),tc=Symbol("strategy"),rc=Symbol("ended"),DI=Symbol("_defaultFullFlush"),ds=class extends KT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Zr]=!1,this[rc]=!1,this[XT]=e,this[Ui]=e.flush,this[Qg]=e.finishFlush;try{this[z]=new Jg[r](e)}catch(i){throw new Qr(i)}this[ps]=i=>{this[Zr]||(this[Zr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[ps](new Qr(i))),this.once("end",()=>this.close)}close(){this[z]&&(this[z].close(),this[z]=null,this.emit("close"))}reset(){if(!this[Zr])return nc(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[dc]),this.write(Object.assign(Ut.alloc(0),{[Ui]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Qg]),this[rc]=!0,super.end(null,null,i)}get ended(){return this[rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=Ut.from(e,r)),this[Zr])return;nc(this[z],"zlib binding closed");let n=this[z]._handle,s=n.close;n.close=()=>{};let o=this[z].close;this[z].close=()=>{},Ut.concat=c=>c;let a;try{let c=typeof e[Ui]=="number"?e[Ui]:this[Ui];a=this[z]._processChunk(e,c),Ut.concat=Zg}catch(c){Ut.concat=Zg,this[ps](new Qr(c))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",c=>this[ps](new Qr(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[fr](Ut.from(a[0]));for(let c=1;c<a.length;c++)l=this[fr](a[c])}else l=this[fr](Ut.from(a));return i&&i(),l}[fr](e){return super.write(e)}},At=class extends ds{constructor(e,r){e=e||{},e.flush=e.flush||hr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hr.Z_FINISH,super(e,r),this[dc]=hr.Z_FULL_FLUSH,this[ec]=e.level,this[tc]=e.strategy}params(e,r){if(!this[Zr]){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[ec]!==e||this[tc]!==r){this.flush(hr.Z_SYNC_FLUSH),nc(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[ec]=e,this[tc]=r)}}}},sc=class extends At{constructor(e){super(e,"Deflate")}},oc=class extends At{constructor(e){super(e,"Inflate")}},ic=Symbol("_portable"),ac=class extends At{constructor(e){super(e,"Gzip"),this[ic]=e&&!!e.portable}[fr](e){return this[ic]?(this[ic]=!1,e[9]=255,super[fr](e)):super[fr](e)}},lc=class extends At{constructor(e){super(e,"Gunzip")}},cc=class extends At{constructor(e){super(e,"DeflateRaw")}},uc=class extends At{constructor(e){super(e,"InflateRaw")}},hc=class extends At{constructor(e){super(e,"Unzip")}},ms=class extends ds{constructor(e,r){e=e||{},e.flush=e.flush||hr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hr.BROTLI_OPERATION_FINISH,super(e,r),this[dc]=hr.BROTLI_OPERATION_FLUSH}},fc=class extends ms{constructor(e){super(e,"BrotliCompress")}},pc=class extends ms{constructor(e){super(e,"BrotliDecompress")}};ke.Deflate=sc;ke.Inflate=oc;ke.Gzip=ac;ke.Gunzip=lc;ke.DeflateRaw=cc;ke.InflateRaw=uc;ke.Unzip=hc;typeof Jg.BrotliCompress=="function"?(ke.BrotliCompress=fc,ke.BrotliDecompress=pc):ke.BrotliCompress=ke.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Jr=d((BI,ey)=>{var ZT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;ey.exports=ZT!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var gs=d((HI,ty)=>{"use strict";var QT=as(),gc=Jr(),yc=Symbol("slurp");ty.exports=class extends QT{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=gc(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=gc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[yc](r),i&&this[yc](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))}[yc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?gc(e[i]):e[i])}}});var _c=d(ys=>{"use strict";ys.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"]]);ys.code=new Map(Array.from(ys.name).map(t=>[t[1],t[0]]))});var sy=d((UI,ny)=>{"use strict";var JT=(t,e)=>{if(Number.isSafeInteger(t))t<0?tO(t,e):eO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},eO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},tO=(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]=ry(n):n===0?e[i-1]=0:(r=!0,e[i-1]=iy(n))}},rO=t=>{let e=t[0],r=e===128?nO(t.slice(1,t.length)):e===255?iO(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},iO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=ry(s):s===0?o=s:(i=!0,o=iy(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},nO=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},ry=t=>(255^t)&255,iy=t=>(255^t)+1&255;ny.exports={encode:JT,parse:rO}});var ti=d((GI,ay)=>{"use strict";var Sc=_c(),ei=require("path").posix,oy=sy(),Ec=Symbol("slurp"),Ne=Symbol("type"),wc=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Ne]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pr(e,r,100),this.mode=Gt(e,r+100,8),this.uid=Gt(e,r+108,8),this.gid=Gt(e,r+116,8),this.size=Gt(e,r+124,12),this.mtime=bc(e,r+136,12),this.cksum=Gt(e,r+148,12),this[Ec](i),this[Ec](n,!0),this[Ne]=pr(e,r+156,1),this[Ne]===""&&(this[Ne]="0"),this[Ne]==="0"&&this.path.slice(-1)==="/"&&(this[Ne]="5"),this[Ne]==="5"&&(this.size=0),this.linkpath=pr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pr(e,r+265,32),this.gname=pr(e,r+297,32),this.devmaj=Gt(e,r+329,8),this.devmin=Gt(e,r+337,8),e[r+475]!==0){let o=pr(e,r+345,155);this.path=o+"/"+this.path}else{let o=pr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=bc(e,r+476,12),this.ctime=bc(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)}[Ec](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=sO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=dr(e,r,100,s)||this.needPax,this.needPax=jt(e,r+100,8,this.mode)||this.needPax,this.needPax=jt(e,r+108,8,this.uid)||this.needPax,this.needPax=jt(e,r+116,8,this.gid)||this.needPax,this.needPax=jt(e,r+124,12,this.size)||this.needPax,this.needPax=xc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Ne].charCodeAt(0),this.needPax=dr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=dr(e,r+265,32,this.uname)||this.needPax,this.needPax=dr(e,r+297,32,this.gname)||this.needPax,this.needPax=jt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=jt(e,r+337,8,this.devmin)||this.needPax,this.needPax=dr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=dr(e,r+345,155,o)||this.needPax:(this.needPax=dr(e,r+345,130,o)||this.needPax,this.needPax=xc(e,r+476,12,this.atime)||this.needPax,this.needPax=xc(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,jt(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Sc.name.get(this[Ne])||this[Ne]}get typeKey(){return this[Ne]}set type(e){Sc.code.has(e)?this[Ne]=Sc.code.get(e):this[Ne]=e}},sO=(t,e)=>{let i=t,n="",s,o=ei.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=ei.dirname(i),i=ei.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=ei.join(ei.basename(n),i),n=ei.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),bc=(t,e,r)=>oO(Gt(t,e,r)),oO=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?oy.parse(t.slice(e,e+r)):lO(t,e,r),aO=t=>isNaN(t)?null:t,lO=(t,e,r)=>aO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),cO={12:8589934591,8:2097151},jt=(t,e,r,i)=>i===null?!1:i>cO[r]||i<0?(oy.encode(i,t.slice(e,e+r)),!0):(uO(t,e,r,i),!1),uO=(t,e,r,i)=>t.write(hO(i,r),e,r,"ascii"),hO=(t,e)=>fO(Math.floor(t).toString(8),e),fO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",xc=(t,e,r,i)=>i===null?!1:jt(t,e,r,i.getTime()/1e3),pO=new Array(156).join("\0"),dr=(t,e,r,i)=>i===null?!1:(t.write(i+pO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);ay.exports=wc});var _s=d((jI,ly)=>{"use strict";var dO=ti(),mO=require("path"),Gi=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 dO({path:("PaxHeader/"+mO.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}};Gi.parse=(t,e,r)=>new Gi(gO(yO(t),e),r);var gO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,yO=t=>t.replace(/\n$/,"").split(`
8
- `).reduce(_O,Object.create(null)),_O=(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};ly.exports=Gi});var ri=d((WI,cy)=>{cy.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 Ss=d((YI,uy)=>{"use strict";uy.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 Rc=d((VI,hy)=>{"use strict";var Es=["|","<",">","?",":"],vc=Es.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),SO=new Map(Es.map((t,e)=>[t,vc[e]])),EO=new Map(vc.map((t,e)=>[t,Es[e]]));hy.exports={encode:t=>Es.reduce((e,r)=>e.split(r).join(SO.get(r)),t),decode:t=>vc.reduce((e,r)=>e.split(r).join(EO.get(r)),t)}});var Ac=d((KI,py)=>{var{isAbsolute:bO,parse:fy}=require("path").win32;py.exports=t=>{let e="",r=fy(t);for(;bO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=fy(t)}return[e,t]}});var my=d((XI,dy)=>{"use strict";dy.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 Fc=d((JI,Cy)=>{"use strict";var xy=as(),wy=_s(),vy=ti(),ot=require("fs"),gy=require("path"),st=Jr(),xO=ri(),Ry=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),xO(e)+"/"+t):st(t),wO=16*1024*1024,yy=Symbol("process"),_y=Symbol("file"),Sy=Symbol("directory"),Oc=Symbol("symlink"),Ey=Symbol("hardlink"),ji=Symbol("header"),bs=Symbol("read"),Cc=Symbol("lstat"),xs=Symbol("onlstat"),Pc=Symbol("onread"),Lc=Symbol("onreadlink"),Ic=Symbol("openfile"),kc=Symbol("onopenfile"),Wt=Symbol("close"),ws=Symbol("mode"),Nc=Symbol("awaitDrain"),Tc=Symbol("ondrain"),at=Symbol("prefix"),by=Symbol("hadError"),Ay=Ss(),vO=Rc(),Ty=Ac(),Oy=my(),vs=Ay(class extends xy{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||wO,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]=Ty(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=vO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||gy.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[xs](this.statCache.get(this.absolute)):this[Cc]()}emit(e,...r){return e==="error"&&(this[by]=!0),super.emit(e,...r)}[Cc](){ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[xs](r)})}[xs](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=AO(e),this.emit("stat",e),this[yy]()}[yy](){switch(this.type){case"File":return this[_y]();case"Directory":return this[Sy]();case"SymbolicLink":return this[Oc]();default:return this.end()}}[ws](e){return Oy(e,this.type==="Directory",this.portable)}[at](e){return Ry(e,this.prefix)}[ji](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new vy({path:this[at](this.path),linkpath:this.type==="Link"?this[at](this.linkpath):this.linkpath,mode:this[ws](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 wy({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)}[Sy](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ji](),this.end()}[Oc](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Lc](r)})}[Lc](e){this.linkpath=st(e),this[ji](),this.end()}[Ey](e){this.type="Link",this.linkpath=st(gy.relative(this.cwd,e)),this.stat.size=0,this[ji](),this.end()}[_y](){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[Ey](r)}this.linkCache.set(e,this.absolute)}if(this[ji](),this.stat.size===0)return this.end();this[Ic]()}[Ic](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[kc](r)})}[kc](e){if(this.fd=e,this[by])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[bs]()}[bs](){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[Pc](a)})}[Wt](e){ot.close(this.fd,e)}[Pc](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[Tc]():this[Nc](()=>this[Tc]())}[Nc](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)}[Tc](){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[bs]()}}),Dc=class extends vs{[Cc](){this[xs](ot.lstatSync(this.absolute))}[Oc](){this[Lc](ot.readlinkSync(this.absolute))}[Ic](){this[kc](ot.openSync(this.absolute,"r"))}[bs](){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[Pc](a),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[Nc](e){e()}[Wt](e){ot.closeSync(this.fd),e()}},RO=Ay(class extends xy{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[ws](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]=Ty(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new vy({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 wy({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 Ry(e,this.prefix)}[ws](e){return Oy(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()}});vs.Sync=Dc;vs.Tar=RO;var AO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Cy.exports=vs});var Ly=d((ek,Py)=>{"use strict";Py.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Mc=d((tk,Iy)=>{"use strict";Iy.exports=$;$.Node=mr;$.create=$;function $(t){var e=this;if(e instanceof $||(e=new $),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}$.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};$.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++}};$.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++}};$.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)OO(this,arguments[t]);return this.length};$.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)CO(this,arguments[t]);return this.length};$.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}};$.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}};$.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};$.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};$.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};$.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};$.prototype.map=function(t,e){e=e||this;for(var r=new $,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};$.prototype.mapReverse=function(t,e){e=e||this;for(var r=new $,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};$.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};$.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};$.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};$.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};$.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 $;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};$.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 $;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};$.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=TO(this,n,r[i]);return s};$.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 TO(t,e,r){var i=e===t.head?new mr(r,null,e,t):new mr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function OO(t,e){t.tail=new mr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function CO(t,e){t.head=new mr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function mr(t,e,r,i){if(!(this instanceof mr))return new mr(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{Ly()($)}catch{}});var ks=d((ik,qy)=>{"use strict";var Ls=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}},PO=as(),LO=mc(),IO=gs(),Yc=Fc(),kO=Yc.Sync,NO=Yc.Tar,DO=Mc(),ky=Buffer.alloc(1024),Ts=Symbol("onStat"),Rs=Symbol("ended"),lt=Symbol("queue"),ii=Symbol("current"),gr=Symbol("process"),As=Symbol("processing"),Ny=Symbol("processJob"),ct=Symbol("jobs"),Bc=Symbol("jobDone"),Os=Symbol("addFSEntry"),Dy=Symbol("addTarEntry"),Uc=Symbol("stat"),Gc=Symbol("readdir"),Cs=Symbol("onreaddir"),Ps=Symbol("pipe"),Fy=Symbol("entry"),qc=Symbol("entryOpt"),jc=Symbol("writeEntryClass"),By=Symbol("write"),Hc=Symbol("ondrain"),Is=require("fs"),My=require("path"),FO=Ss(),$c=Jr(),zc=FO(class extends PO{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=$c(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[jc]=Yc,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 LO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Hc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hc]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[lt]=new DO,this[ct]=0,this.jobs=+e.jobs||4,this[As]=!1,this[Rs]=!1}[By](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Rs]=!0,this[gr](),this}write(e){if(this[Rs])throw new Error("write after end");return e instanceof IO?this[Dy](e):this[Os](e),this.flowing}[Dy](e){let r=$c(My.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ls(e.path,r,!1);i.entry=new NO(e,this[qc](i)),i.entry.on("end",n=>this[Bc](i)),this[ct]+=1,this[lt].push(i)}this[gr]()}[Os](e){let r=$c(My.resolve(this.cwd,e));this[lt].push(new Ls(e,r)),this[gr]()}[Uc](e){e.pending=!0,this[ct]+=1;let r=this.follow?"stat":"lstat";Is[r](e.absolute,(i,n)=>{e.pending=!1,this[ct]-=1,i?this.emit("error",i):this[Ts](e,n)})}[Ts](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[gr]()}[Gc](e){e.pending=!0,this[ct]+=1,Is.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[ct]-=1,r)return this.emit("error",r);this[Cs](e,i)})}[Cs](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[gr]()}[gr](){if(!this[As]){this[As]=!0;for(let e=this[lt].head;e!==null&&this[ct]<this.jobs;e=e.next)if(this[Ny](e.value),e.value.ignore){let r=e.next;this[lt].removeNode(e),e.next=r}this[As]=!1,this[Rs]&&!this[lt].length&&this[ct]===0&&(this.zip?this.zip.end(ky):(super.write(ky),super.end()))}}get[ii](){return this[lt]&&this[lt].head&&this[lt].head.value}[Bc](e){this[lt].shift(),this[ct]-=1,this[gr]()}[Ny](e){if(!e.pending){if(e.entry){e===this[ii]&&!e.piped&&this[Ps](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ts](e,this.statCache.get(e.absolute)):this[Uc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Cs](e,this.readdirCache.get(e.absolute)):this[Gc](e),!e.readdir))){if(e.entry=this[Fy](e),!e.entry){e.ignore=!0;return}e===this[ii]&&!e.piped&&this[Ps](e)}}}[qc](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}}[Fy](e){this[ct]+=1;try{return new this[jc](e.path,this[qc](e)).on("end",()=>this[Bc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hc](){this[ii]&&this[ii].entry&&this[ii].entry.resume()}[Ps](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Os](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()}}),Wc=class extends zc{constructor(e){super(e),this[jc]=kO}pause(){}resume(){}[Uc](e){let r=this.follow?"statSync":"lstatSync";this[Ts](e,Is[r](e.absolute))}[Gc](e,r){this[Cs](e,Is.readdirSync(e.absolute))}[Ps](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Os](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[By](n)})}};zc.Sync=Wc;qy.exports=zc});var hi=d(Yi=>{"use strict";var MO=Jl(),BO=require("events").EventEmitter,Ce=require("fs"),Xc=Ce.writev;if(!Xc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Xc=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var ci=Symbol("_autoClose"),Ve=Symbol("_close"),Wi=Symbol("_ended"),j=Symbol("_fd"),Hy=Symbol("_finished"),zt=Symbol("_flags"),Vc=Symbol("_flush"),Zc=Symbol("_handleChunk"),Qc=Symbol("_makeBuf"),Bs=Symbol("_mode"),Ns=Symbol("_needDrain"),ai=Symbol("_onerror"),ui=Symbol("_onopen"),Kc=Symbol("_onread"),si=Symbol("_onwrite"),Vt=Symbol("_open"),Tt=Symbol("_path"),yr=Symbol("_pos"),ut=Symbol("_queue"),oi=Symbol("_read"),$y=Symbol("_readSize"),Yt=Symbol("_reading"),Ds=Symbol("_remain"),Uy=Symbol("_size"),Fs=Symbol("_write"),ni=Symbol("_writing"),Ms=Symbol("_defaultFlag"),li=Symbol("_errored"),qs=class extends MO{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[li]=!1,this[j]=typeof r.fd=="number"?r.fd:null,this[Tt]=e,this[$y]=r.readSize||16*1024*1024,this[Yt]=!1,this[Uy]=typeof r.size=="number"?r.size:1/0,this[Ds]=this[Uy],this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[j]=="number"?this[oi]():this[Vt]()}get fd(){return this[j]}get path(){return this[Tt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Vt](){Ce.open(this[Tt],"r",(e,r)=>this[ui](e,r))}[ui](e,r){e?this[ai](e):(this[j]=r,this.emit("open",r),this[oi]())}[Qc](){return Buffer.allocUnsafe(Math.min(this[$y],this[Ds]))}[oi](){if(!this[Yt]){this[Yt]=!0;let e=this[Qc]();if(e.length===0)return process.nextTick(()=>this[Kc](null,0,e));Ce.read(this[j],e,0,e.length,null,(r,i,n)=>this[Kc](r,i,n))}}[Kc](e,r,i){this[Yt]=!1,e?this[ai](e):this[Zc](r,i)&&this[oi]()}[Ve](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ai](e){this[Yt]=!0,this[Ve](),this.emit("error",e)}[Zc](e,r){let i=!1;return this[Ds]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Ds]<=0)&&(i=!1,this[Ve](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[j]=="number"&&this[oi]();break;case"error":return this[li]?void 0:(this[li]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Jc=class extends qs{[Vt](){let e=!0;try{this[ui](null,Ce.openSync(this[Tt],"r")),e=!1}finally{e&&this[Ve]()}}[oi](){let e=!0;try{if(!this[Yt]){this[Yt]=!0;do{let r=this[Qc](),i=r.length===0?0:Ce.readSync(this[j],r,0,r.length,null);if(!this[Zc](i,r))break}while(!0);this[Yt]=!1}e=!1}finally{e&&this[Ve]()}}[Ve](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.closeSync(e),this.emit("close")}}},Hs=class extends BO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[li]=!1,this[ni]=!1,this[Wi]=!1,this[Ns]=!1,this[ut]=[],this[Tt]=e,this[j]=typeof r.fd=="number"?r.fd:null,this[Bs]=r.mode===void 0?438:r.mode,this[yr]=typeof r.start=="number"?r.start:null,this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[yr]!==null?"r+":"w";this[Ms]=r.flags===void 0,this[zt]=this[Ms]?i:r.flags,this[j]===null&&this[Vt]()}emit(e,r){if(e==="error"){if(this[li])return;this[li]=!0}return super.emit(e,r)}get fd(){return this[j]}get path(){return this[Tt]}[ai](e){this[Ve](),this[ni]=!0,this.emit("error",e)}[Vt](){Ce.open(this[Tt],this[zt],this[Bs],(e,r)=>this[ui](e,r))}[ui](e,r){this[Ms]&&this[zt]==="r+"&&e&&e.code==="ENOENT"?(this[zt]="w",this[Vt]()):e?this[ai](e):(this[j]=r,this.emit("open",r),this[Vc]())}end(e,r){return e&&this.write(e,r),this[Wi]=!0,!this[ni]&&!this[ut].length&&typeof this[j]=="number"&&this[si](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Wi]?(this.emit("error",new Error("write() after end()")),!1):this[j]===null||this[ni]||this[ut].length?(this[ut].push(e),this[Ns]=!0,!1):(this[ni]=!0,this[Fs](e),!0)}[Fs](e){Ce.write(this[j],e,0,e.length,this[yr],(r,i)=>this[si](r,i))}[si](e,r){e?this[ai](e):(this[yr]!==null&&(this[yr]+=r),this[ut].length?this[Vc]():(this[ni]=!1,this[Wi]&&!this[Hy]?(this[Hy]=!0,this[Ve](),this.emit("finish")):this[Ns]&&(this[Ns]=!1,this.emit("drain"))))}[Vc](){if(this[ut].length===0)this[Wi]&&this[si](null,0);else if(this[ut].length===1)this[Fs](this[ut].pop());else{let e=this[ut];this[ut]=[],Xc(this[j],e,this[yr],(r,i)=>this[si](r,i))}}[Ve](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},eu=class extends Hs{[Vt](){let e;if(this[Ms]&&this[zt]==="r+")try{e=Ce.openSync(this[Tt],this[zt],this[Bs])}catch(r){if(r.code==="ENOENT")return this[zt]="w",this[Vt]();throw r}else e=Ce.openSync(this[Tt],this[zt],this[Bs]);this[ui](null,e)}[Ve](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Ce.closeSync(e),this.emit("close")}}[Fs](e){let r=!0;try{this[si](null,Ce.writeSync(this[j],e,0,e.length,this[yr])),r=!1}finally{if(r)try{this[Ve]()}catch{}}}};Yi.ReadStream=qs;Yi.ReadStreamSync=Jc;Yi.WriteStream=Hs;Yi.WriteStreamSync=eu});var zs=d((ok,Xy)=>{"use strict";var qO=Ss(),HO=ti(),$O=require("events"),UO=Mc(),GO=1024*1024,jO=gs(),Gy=_s(),WO=mc(),{nextTick:YO}=require("process"),tu=Buffer.from([31,139]),Ue=Symbol("state"),_r=Symbol("writeEntry"),Ot=Symbol("readEntry"),ru=Symbol("nextEntry"),jy=Symbol("processEntry"),Ge=Symbol("extendedHeader"),zi=Symbol("globalExtendedHeader"),Kt=Symbol("meta"),Wy=Symbol("emitMeta"),K=Symbol("buffer"),Ct=Symbol("queue"),Sr=Symbol("ended"),Yy=Symbol("emittedEnd"),Er=Symbol("emit"),Pe=Symbol("unzip"),$s=Symbol("consumeChunk"),Us=Symbol("consumeChunkSub"),iu=Symbol("consumeBody"),zy=Symbol("consumeMeta"),Vy=Symbol("consumeHeader"),Gs=Symbol("consuming"),nu=Symbol("bufferConcat"),su=Symbol("maybeEnd"),Vi=Symbol("writing"),Xt=Symbol("aborted"),js=Symbol("onDone"),br=Symbol("sawValidEntry"),Ws=Symbol("sawNullBlock"),Ys=Symbol("sawEOF"),Ky=Symbol("closeStream"),zO=t=>!0;Xy.exports=qO(class extends $O{constructor(e){e=e||{},super(e),this.file=e.file||"",this[br]=null,this.on(js,r=>{(this[Ue]==="begin"||this[br]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(js,e.ondone):this.on(js,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||GO,this.filter=typeof e.filter=="function"?e.filter:zO,this.writable=!0,this.readable=!1,this[Ct]=new UO,this[K]=null,this[Ot]=null,this[_r]=null,this[Ue]="begin",this[Kt]="",this[Ge]=null,this[zi]=null,this[Sr]=!1,this[Pe]=null,this[Xt]=!1,this[Ws]=!1,this[Ys]=!1,this.on("end",()=>this[Ky]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Vy](e,r){this[br]===null&&(this[br]=!1);let i;try{i=new HO(e,r,this[Ge],this[zi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Ws]?(this[Ys]=!0,this[Ue]==="begin"&&(this[Ue]="header"),this[Er]("eof")):(this[Ws]=!0,this[Er]("nullBlock"));else if(this[Ws]=!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[_r]=new jO(i,this[Ge],this[zi]);if(!this[br])if(s.remain){let o=()=>{s.invalid||(this[br]=!0)};s.on("end",o)}else this[br]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Er]("ignoredEntry",s),this[Ue]="ignore",s.resume()):s.size>0&&(this[Kt]="",s.on("data",o=>this[Kt]+=o),this[Ue]="meta"):(this[Ge]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Er]("ignoredEntry",s),this[Ue]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Ue]="body":(this[Ue]="header",s.end()),this[Ot]?this[Ct].push(s):(this[Ct].push(s),this[ru]())))}}}[Ky](){YO(()=>this.emit("close"))}[jy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ot]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[ru]()),r=!1)):(this[Ot]=null,r=!1),r}[ru](){do;while(this[jy](this[Ct].shift()));if(!this[Ct].length){let e=this[Ot];!e||e.flowing||e.size===e.remain?this[Vi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[iu](e,r){let i=this[_r],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Ue]="header",this[_r]=null,i.end()),s.length}[zy](e,r){let i=this[_r],n=this[iu](e,r);return this[_r]||this[Wy](i),n}[Er](e,r,i){!this[Ct].length&&!this[Ot]?this.emit(e,r,i):this[Ct].push([e,r,i])}[Wy](e){switch(this[Er]("meta",this[Kt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ge]=Gy.parse(this[Kt],this[Ge],!1);break;case"GlobalExtendedHeader":this[zi]=Gy.parse(this[Kt],this[zi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ge]=this[Ge]||Object.create(null),this[Ge].path=this[Kt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ge]=this[Ge]||Object.create(null),this[Ge].linkpath=this[Kt].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[K]&&(e=Buffer.concat([this[K],e]),this[K]=null),e.length<tu.length)return this[K]=e,!0;for(let i=0;this[Pe]===null&&i<tu.length;i++)e[i]!==tu[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[Sr];this[Sr]=!1,this[Pe]=new WO.Unzip,this[Pe].on("data",s=>this[$s](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[Sr]=!0,this[$s]()}),this[Vi]=!0;let n=this[Pe][i?"end":"write"](e);return this[Vi]=!1,n}}this[Vi]=!0,this[Pe]?this[Pe].write(e):this[$s](e),this[Vi]=!1;let r=this[Ct].length?!1:this[Ot]?this[Ot].flowing:!0;return!r&&!this[Ct].length&&this[Ot].once("drain",i=>this.emit("drain")),r}[nu](e){e&&!this[Xt]&&(this[K]=this[K]?Buffer.concat([this[K],e]):e)}[su](){if(this[Sr]&&!this[Yy]&&!this[Xt]&&!this[Gs]){this[Yy]=!0;let e=this[_r];if(e&&e.blockRemain){let r=this[K]?this[K].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[K]&&e.write(this[K]),e.end()}this[Er](js)}}[$s](e){if(this[Gs])this[nu](e);else if(!e&&!this[K])this[su]();else{if(this[Gs]=!0,this[K]){this[nu](e);let r=this[K];this[K]=null,this[Us](r)}else this[Us](e);for(;this[K]&&this[K].length>=512&&!this[Xt]&&!this[Ys];){let r=this[K];this[K]=null,this[Us](r)}this[Gs]=!1}(!this[K]||this[Sr])&&this[su]()}[Us](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[Ys];)switch(this[Ue]){case"begin":case"header":this[Vy](e,r),r+=512;break;case"ignore":case"body":r+=this[iu](e,r);break;case"meta":r+=this[zy](e,r);break;default:throw new Error("invalid state: "+this[Ue])}r<i&&(this[K]?this[K]=Buffer.concat([e.slice(r),this[K]]):this[K]=e.slice(r))}end(e){this[Xt]||(this[Pe]?this[Pe].end(e):(this[Sr]=!0,this.write(e)))}})});var Vs=d((ak,e_)=>{"use strict";var VO=Vr(),Qy=zs(),fi=require("fs"),KO=hi(),Zy=require("path"),ou=ri();e_.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=VO(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&&ZO(i,e),i.noResume||XO(i),i.file&&i.sync?QO(i):i.file?JO(i,r):Jy(i)};var XO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},ZO=(t,e)=>{let r=new Map(e.map(s=>[ou(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Zy.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Zy.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(ou(s)):s=>n(ou(s))},QO=t=>{let e=Jy(t),r=t.file,i=!0,n;try{let s=fi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(fi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=fi.openSync(r,"r");a<s.size;){let c=fi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{fi.closeSync(n)}catch{}}},JO=(t,e)=>{let r=new Qy(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),fi.stat(n,(l,c)=>{if(l)a(l);else{let u=new KO.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Jy=t=>new Qy(t)});var o_=d((lk,s_)=>{"use strict";var eC=Vr(),Ks=ks(),t_=hi(),r_=Vs(),i_=require("path");s_.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=eC(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?tC(i,e):i.file?rC(i,e,r):i.sync?iC(i,e):nC(i,e)};var tC=(t,e)=>{let r=new Ks.Sync(t),i=new t_.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),n_(r,e)},rC=(t,e,r)=>{let i=new Ks(t),n=new t_.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 au(i,e),r?s.then(r,r):s},n_=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?r_({file:i_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},au=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return r_({file:i_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>au(t,e));t.add(r)}t.end()},iC=(t,e)=>{let r=new Ks.Sync(t);return n_(r,e),r},nC=(t,e)=>{let r=new Ks(t);return au(r,e),r}});var lu=d((ck,p_)=>{"use strict";var sC=Vr(),a_=ks(),De=require("fs"),l_=hi(),c_=Vs(),u_=require("path"),h_=ti();p_.exports=(t,e,r)=>{let i=sC(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?oC(i,e):lC(i,e,r)};var oC=(t,e)=>{let r=new a_.Sync(t),i=!0,n,s;try{try{n=De.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=De.openSync(t.file,"w+");else throw l}let o=De.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=De.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new h_(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,aC(t,r,s,n,e)}finally{if(i)try{De.closeSync(n)}catch{}}},aC=(t,e,r,i,n)=>{let s=new l_.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),cC(e,n)},lC=(t,e,r)=>{e=Array.from(e);let i=new a_(t),n=(o,a,l)=>{let c=(m,y)=>{m?De.close(o,x=>l(m)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),g=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return De.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let x=new h_(f);if(!x.cksumValid)return c(null,u);let w=512*Math.ceil(x.size/512);if(u+w+512>a||(u+=w+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(x.path,x.mtime),h=0,De.read(o,f,0,512,u,g)};De.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",De.open(t.file,l,c);if(u)return a(u);De.fstat(h,(f,g)=>{if(f)return De.close(h,()=>a(f));n(h,g.size,(m,y)=>{if(m)return a(m);let x=new l_.WriteStream(t.file,{fd:h,start:y});i.pipe(x),x.on("error",a),x.on("close",o),f_(i,e)})})};De.open(t.file,l,c)});return r?s.then(r,r):s},cC=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?c_({file:u_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},f_=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return c_({file:u_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>f_(t,e));t.add(r)}t.end()}});var m_=d((uk,d_)=>{"use strict";var uC=Vr(),hC=lu();d_.exports=(t,e,r)=>{let i=uC(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),fC(i),hC(i,e,r)};var fC=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 __=d((hk,y_)=>{var{promisify:g_}=require("util"),Zt=require("fs"),pC=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=g_(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=g_(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};y_.exports=pC});var E_=d((fk,S_)=>{var dC=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:mC,parse:gC}=require("path"),yC=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=mC(t),dC==="win32"){let e=/[*|"<>?:]/,{root:r}=gC(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};S_.exports=yC});var R_=d((pk,v_)=>{var{dirname:b_}=require("path"),x_=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?x_(t,b_(e),e):void 0),w_=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?w_(t,b_(e),e):void 0}};v_.exports={findMade:x_,findMadeSync:w_}});var hu=d((dk,T_)=>{var{dirname:A_}=require("path"),cu=(t,e,r)=>{e.recursive=!1;let i=A_(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 cu(i,e).then(s=>cu(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})})},uu=(t,e,r)=>{let i=A_(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 uu(t,e,uu(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};T_.exports={mkdirpManual:cu,mkdirpManualSync:uu}});var P_=d((mk,C_)=>{var{dirname:O_}=require("path"),{findMade:_C,findMadeSync:SC}=R_(),{mkdirpManual:EC,mkdirpManualSync:bC}=hu(),xC=(t,e)=>(e.recursive=!0,O_(t)===t?e.mkdirAsync(t,e):_C(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return EC(t,e);throw n}))),wC=(t,e)=>{if(e.recursive=!0,O_(t)===t)return e.mkdirSync(t,e);let i=SC(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return bC(t,e);throw n}};C_.exports={mkdirpNative:xC,mkdirpNativeSync:wC}});var N_=d((gk,k_)=>{var L_=require("fs"),vC=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fu=vC.replace(/^v/,"").split("."),I_=+fu[0]>10||+fu[0]==10&&+fu[1]>=12,RC=I_?t=>t.mkdir===L_.mkdir:()=>!1,AC=I_?t=>t.mkdirSync===L_.mkdirSync:()=>!1;k_.exports={useNative:RC,useNativeSync:AC}});var H_=d((yk,q_)=>{var pi=__(),di=E_(),{mkdirpNative:D_,mkdirpNativeSync:F_}=P_(),{mkdirpManual:M_,mkdirpManualSync:B_}=hu(),{useNative:TC,useNativeSync:OC}=N_(),mi=(t,e)=>(t=di(t),e=pi(e),TC(e)?D_(t,e):M_(t,e)),CC=(t,e)=>(t=di(t),e=pi(e),OC(e)?F_(t,e):B_(t,e));mi.sync=CC;mi.native=(t,e)=>D_(di(t),pi(e));mi.manual=(t,e)=>M_(di(t),pi(e));mi.nativeSync=(t,e)=>F_(di(t),pi(e));mi.manualSync=(t,e)=>B_(di(t),pi(e));q_.exports=mi});var z_=d((_k,Y_)=>{"use strict";var je=require("fs"),xr=require("path"),PC=je.lchown?"lchown":"chown",LC=je.lchownSync?"lchownSync":"chownSync",U_=je.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),$_=(t,e,r)=>{try{return je[LC](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IC=(t,e,r)=>{try{return je.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},kC=U_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):je.chown(t,e,r,i)}:(t,e,r,i)=>i,pu=U_?(t,e,r)=>{try{return $_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;IC(t,e,r)}}:(t,e,r)=>$_(t,e,r),NC=process.version,G_=(t,e,r)=>je.readdir(t,e,r),DC=(t,e)=>je.readdirSync(t,e);/^v4\./.test(NC)&&(G_=(t,e,r)=>je.readdir(t,r));var Xs=(t,e,r,i)=>{je[PC](t,e,r,kC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},j_=(t,e,r,i,n)=>{if(typeof e=="string")return je.lstat(xr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,j_(t,o,r,i,n)});if(e.isDirectory())du(xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=xr.resolve(t,e.name);Xs(o,r,i,n)});else{let s=xr.resolve(t,e.name);Xs(s,r,i,n)}},du=(t,e,r,i)=>{G_(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 Xs(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Xs(t,e,r,i)}};s.forEach(c=>j_(t,c,e,r,l))})},FC=(t,e,r,i)=>{if(typeof e=="string")try{let n=je.lstatSync(xr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&W_(xr.resolve(t,e.name),r,i),pu(xr.resolve(t,e.name),r,i)},W_=(t,e,r)=>{let i;try{i=DC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return pu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>FC(t,n,e,r)),pu(t,e,r)};Y_.exports=du;du.sync=W_});var Z_=d((Sk,mu)=>{"use strict";var V_=H_(),We=require("fs"),Zs=require("path"),K_=z_(),Ke=Jr(),Qs=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Js=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},eo=(t,e)=>t.get(Ke(e)),Ki=(t,e,r)=>t.set(Ke(e),r),MC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Js(t,r&&r.code||"ENOTDIR")),e(r)})};mu.exports=(t,e,r)=>{t=Ke(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=Ke(e.cwd),g=(x,w)=>{x?r(x):(Ki(h,t,!0),w&&l?K_(w,o,a,R=>g(R)):s?We.chmod(t,n,r):r())};if(h&&eo(h,t)===!0)return g();if(t===f)return MC(t,g);if(c)return V_(t,{mode:n}).then(x=>g(null,x),g);let y=Ke(Zs.relative(f,t)).split("/");to(f,y,n,h,u,f,null,g)};var to=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=Ke(Zs.resolve(t+"/"+l));if(eo(i,c))return to(c,e,r,i,n,s,o,a);We.mkdir(c,r,X_(c,e,r,i,n,s,o,a))},X_=(t,e,r,i,n,s,o,a)=>l=>{l?We.lstat(t,(c,u)=>{if(c)c.path=c.path&&Ke(c.path),a(c);else if(u.isDirectory())to(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,X_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Qs(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,to(t,e,r,i,n,s,o,a))},BC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Js(t,r)}};mu.exports.sync=(t,e)=>{t=Ke(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=Ke(e.cwd),f=x=>{Ki(u,t,!0),x&&a&&K_.sync(x,s,o),n&&We.chmodSync(t,i)};if(u&&eo(u,t)===!0)return f();if(t===h)return BC(h),f();if(l)return f(V_.sync(t,i));let m=Ke(Zs.relative(h,t)).split("/"),y=null;for(let x=m.shift(),w=h;x&&(w+="/"+x);x=m.shift())if(w=Ke(Zs.resolve(w)),!eo(u,w))try{We.mkdirSync(w,i),y=y||w,Ki(u,w,!0)}catch{let M=We.lstatSync(w);if(M.isDirectory()){Ki(u,w,!0);continue}else if(c){We.unlinkSync(w),We.mkdirSync(w,i),y=y||w,Ki(u,w,!0);continue}else if(M.isSymbolicLink())return new Qs(w,w+"/"+m.join("/"))}return f(y)}});var yu=d((Ek,Q_)=>{var gu=Object.create(null),{hasOwnProperty:qC}=Object.prototype;Q_.exports=t=>(qC.call(gu,t)||(gu[t]=t.normalize("NFKD")),gu[t])});var rS=d((bk,tS)=>{var J_=require("assert"),HC=yu(),$C=ri(),{join:eS}=require("path"),UC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,GC=UC==="win32";tS.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=eS(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:u,dirs:h}=e.get(c),f=new Set;return u.forEach(g=>{let m=t.get(g);J_.equal(m[0],c),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let m=t.get(g);J_(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(g=>o(g)),!0};return{check:s,reserve:(c,u)=>{c=GC?["win32 parallelization disabled"]:c.map(f=>HC($C(eS(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var sS=d((xk,nS)=>{var jC=process.env.__FAKE_PLATFORM__||process.platform,WC=jC==="win32",YC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:zC,O_TRUNC:VC,O_WRONLY:KC,UV_FS_O_FILEMAP:iS=0}=YC.constants,XC=WC&&!!iS,ZC=512*1024,QC=iS|VC|zC|KC;nS.exports=XC?t=>t<ZC?QC:"w":()=>"w"});var Au=d((wk,SS)=>{"use strict";var JC=require("assert"),e1=zs(),U=require("fs"),t1=hi(),Pt=require("path"),gS=Z_(),oS=Rc(),r1=rS(),i1=Ac(),Fe=Jr(),n1=ri(),s1=yu(),aS=Symbol("onEntry"),Eu=Symbol("checkFs"),lS=Symbol("checkFs2"),no=Symbol("pruneCache"),bu=Symbol("isReusable"),Ye=Symbol("makeFs"),xu=Symbol("file"),wu=Symbol("directory"),so=Symbol("link"),cS=Symbol("symlink"),uS=Symbol("hardlink"),hS=Symbol("unsupported"),fS=Symbol("checkPath"),Qt=Symbol("mkdir"),Ee=Symbol("onError"),ro=Symbol("pending"),pS=Symbol("pend"),gi=Symbol("unpend"),_u=Symbol("ended"),Su=Symbol("maybeClose"),vu=Symbol("skip"),Xi=Symbol("doChown"),Zi=Symbol("uid"),Qi=Symbol("gid"),Ji=Symbol("checkedCwd"),yS=require("crypto"),_S=sS(),o1=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,en=o1==="win32",a1=(t,e)=>{if(!en)return U.unlink(t,e);let r=t+".DELETE."+yS.randomBytes(16).toString("hex");U.rename(t,r,i=>{if(i)return e(i);U.unlink(r,e)})},l1=t=>{if(!en)return U.unlinkSync(t);let e=t+".DELETE."+yS.randomBytes(16).toString("hex");U.renameSync(t,e),U.unlinkSync(e)},dS=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,mS=t=>s1(n1(Fe(t))).toLowerCase(),c1=(t,e)=>{e=mS(e);for(let r of t.keys()){let i=mS(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},u1=t=>{for(let e of t.keys())t.delete(e)},tn=class extends e1{constructor(e){if(e||(e={}),e.ondone=r=>{this[_u]=!0,this[Su]()},super(e),this[Ji]=!1,this.reservations=r1(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ro]=0,this[_u]=!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||en,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Fe(Pt.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[aS](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Su](){this[_u]&&this[ro]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[fS](e){if(this.strip){let r=Fe(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Fe(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Fe(e.path),i=r.split("/");if(i.includes("..")||en&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=i1(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Pt.isAbsolute(e.path)?e.absolute=Fe(Pt.resolve(e.path)):e.absolute=Fe(Pt.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Fe(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Pt.win32.parse(e.absolute);e.absolute=r+oS.encode(e.absolute.slice(r.length));let{root:i}=Pt.win32.parse(e.path);e.path=i+oS.encode(e.path.slice(i.length))}return!0}[aS](e){if(!this[fS](e))return e.resume();switch(JC.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[Eu](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[hS](e)}}[Ee](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[gi](),r.resume())}[Qt](e,r,i){gS(Fe(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Xi](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}[Zi](e){return dS(this.uid,e.uid,this.processUid)}[Qi](e){return dS(this.gid,e.gid,this.processGid)}[xu](e,r){let i=e.mode&4095||this.fmode,n=new t1.WriteStream(e.absolute,{flags:_S(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&U.close(n.fd,()=>{}),n.write=()=>!0,this[Ee](l,e),r()});let s=1,o=l=>{if(l){n.fd&&U.close(n.fd,()=>{}),this[Ee](l,e),r();return}--s===0&&U.close(n.fd,c=>{c?this[Ee](c,e):this[gi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;U.futimes(u,h,f,g=>g?U.utimes(c,h,f,m=>o(m&&g)):o())}if(this[Xi](e)){s++;let h=this[Zi](e),f=this[Qi](e);U.fchown(u,h,f,g=>g?U.chown(c,h,f,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Ee](l,e),r()}),e.pipe(a)),a.pipe(n)}[wu](e,r){let i=e.mode&4095||this.dmode;this[Qt](e.absolute,i,n=>{if(n){this[Ee](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[gi](),e.resume())};e.mtime&&!this.noMtime&&(s++,U.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Xi](e)&&(s++,U.chown(e.absolute,this[Zi](e),this[Qi](e),o)),o()})}[hS](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[cS](e,r){this[so](e,e.linkpath,"symlink",r)}[uS](e,r){let i=Fe(Pt.resolve(this.cwd,e.linkpath));this[so](e,i,"link",r)}[pS](){this[ro]++}[gi](){this[ro]--,this[Su]()}[vu](e){this[gi](),e.resume()}[bu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!en}[Eu](e){this[pS]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[lS](e,i))}[no](e){e.type==="SymbolicLink"?u1(this.dirCache):e.type!=="Directory"&&c1(this.dirCache,e.absolute)}[lS](e,r){this[no](e);let i=a=>{this[no](e),r(a)},n=()=>{this[Qt](this.cwd,this.dmode,a=>{if(a){this[Ee](a,e),i();return}this[Ji]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Fe(Pt.dirname(e.absolute));if(a!==this.cwd)return this[Qt](a,this.dmode,l=>{if(l){this[Ee](l,e),i();return}o()})}o()},o=()=>{U.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[vu](e),i();return}if(a||this[bu](e,l))return this[Ye](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return c?U.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return U.rmdir(e.absolute,c=>this[Ye](c,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);a1(e.absolute,c=>this[Ye](c,e,i))})};this[Ji]?s():n()}[Ye](e,r,i){if(e){this[Ee](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[xu](r,i);case"Link":return this[uS](r,i);case"SymbolicLink":return this[cS](r,i);case"Directory":case"GNUDumpDir":return this[wu](r,i)}}[so](e,r,i,n){U[i](r,e.absolute,s=>{s?this[Ee](s,e):(this[gi](),e.resume()),n()})}},io=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ru=class extends tn{[Ye](e,r){return super[Ye](e,r,()=>{})}[Eu](e){if(this[no](e),!this[Ji]){let s=this[Qt](this.cwd,this.dmode);if(s)return this[Ee](s,e);this[Ji]=!0}if(e.absolute!==this.cwd){let s=Fe(Pt.dirname(e.absolute));if(s!==this.cwd){let o=this[Qt](s,this.dmode);if(o)return this[Ee](o,e)}}let[r,i]=io(()=>U.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[vu](e);if(r||this[bu](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?io(()=>{U.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=io(()=>U.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:io(()=>l1(e.absolute));this[Ye](n,e)}[xu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{U.closeSync(s)}catch(c){l=c}(a||l)&&this[Ee](a||l,e),r()},s;try{s=U.openSync(e.absolute,_S(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ee](a,e)),e.pipe(o)),o.on("data",a=>{try{U.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{U.futimesSync(s,c,u)}catch(h){try{U.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[Xi](e)){let c=this[Zi](e),u=this[Qi](e);try{U.fchownSync(s,c,u)}catch(h){try{U.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[wu](e,r){let i=e.mode&4095||this.dmode,n=this[Qt](e.absolute,i);if(n){this[Ee](n,e),r();return}if(e.mtime&&!this.noMtime)try{U.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Xi](e))try{U.chownSync(e.absolute,this[Zi](e),this[Qi](e))}catch{}r(),e.resume()}[Qt](e,r){try{return gS.sync(Fe(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[so](e,r,i,n){try{U[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ee](s,e)}}};tn.Sync=Ru;SS.exports=tn});var vS=d((vk,wS)=>{"use strict";var h1=Vr(),oo=Au(),bS=require("fs"),xS=hi(),ES=require("path"),Tu=ri();wS.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=h1(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&&f1(i,e),i.file&&i.sync?p1(i):i.file?d1(i,r):i.sync?m1(i):g1(i)};var f1=(t,e)=>{let r=new Map(e.map(s=>[Tu(s),!0])),i=t.filter,n=(s,o)=>{let a=o||ES.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(ES.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Tu(s)):s=>n(Tu(s))},p1=t=>{let e=new oo.Sync(t),r=t.file,i=bS.statSync(r),n=t.maxReadSize||16*1024*1024;new xS.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},d1=(t,e)=>{let r=new oo(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),bS.stat(n,(l,c)=>{if(l)a(l);else{let u=new xS.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},m1=t=>new oo.Sync(t),g1=t=>new oo(t)});var RS=d(ae=>{"use strict";ae.c=ae.create=o_();ae.r=ae.replace=lu();ae.t=ae.list=Vs();ae.u=ae.update=m_();ae.x=ae.extract=vS();ae.Pack=ks();ae.Unpack=Au();ae.Parse=zs();ae.ReadEntry=gs();ae.WriteEntry=Fc();ae.Header=ti();ae.Pax=_s();ae.types=_c()});var PS=d((Ck,CS)=>{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))}CS.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 LS=d(wr=>{var b1=PS();wr.operation=function(t){var e=wr.timeouts(t);return new b1(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};wr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};wr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=wr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var kS=d((Lk,IS)=>{IS.exports=LS()});var DS=d((Ik,NS)=>{var x1=kS();function w1(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=x1.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(g){l(g,u)})}o.attempt(c)}return new Promise(r)}NS.exports=w1});var B1={};Nu(B1,{default:()=>M1,hasLegacyEnvVarDependencies:()=>Lu,migrateConfig:()=>Iu,migrateDependencies:()=>ku,migrateGlobal:()=>GS,migratePipeline:()=>US,transformer:()=>jS});module.exports=ZS(B1);var Cu=q(require("path")),Pu=q(require("fs-extra"));var QS=q($u());function po(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t){return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(t)}function mo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function go(t,e){if(e&&(_i(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mo(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 yo(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 _o(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function So(){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 vr(t,e,r){return So()?vr=Reflect.construct.bind():vr=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&pt(c,o.prototype),c},vr.apply(null,arguments)}function Si(t){var e=typeof Map=="function"?new Map:void 0;return Si=function(i){if(i===null||!_o(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 vr(i,arguments,er(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),pt(n,i)},Si(t)}var Eo=q(require("find-up")),an=q(require("path")),ln=q(require("fs-extra")),JS=function(t){yo(e,t);function e(r){var i;return po(this,e),i=go(this,er(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Si(Error));function eE(t,e){try{var r=ln.default.readJsonSync(an.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function tE(t){try{var e=ln.default.readJsonSync(an.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function rE(t){var e=ln.default.existsSync(an.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function Uu(t){var e={current:void 0},r=(0,Eo.sync)(function(i){return[tE(i),eE(i,e),rE(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new JS(t);return r===void 0?e.current:r}var Gu=q(require("json5"));var bo=q(require("fs")),Ei=q(require("path"));function xo({target:t,cwd:e,contentCheck:r}){let i=Ei.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=bo.default.readFileSync(Ei.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(bo.default.existsSync(Ei.default.join(s,t))){n=!0;break}s=Ei.default.dirname(s)}return n?s:null}function iE(t){let e=Gu.default.parse(t);return!(e&&"extends"in e)}var wo={};function vo(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&wo[i])return wo[i];let n=xo({target:"turbo.json",cwd:i,contentCheck:iE});if(!n)try{if(n=Uu(i),!n)return null}catch{return null}return r&&(wo[i]=n),n}var Pi=q(require("fs")),lr=q(require("path"));function sh(t){return typeof t=="undefined"||t===null}function nE(t){return typeof t=="object"&&t!==null}function sE(t){return Array.isArray(t)?t:sh(t)?[]:[t]}function oE(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 aE(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function lE(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var cE=sh,uE=nE,hE=sE,fE=aE,pE=lE,dE=oE,oe={isNothing:cE,isObject:uE,toArray:hE,repeat:fE,isNegativeZero:pE,extend:dE};function oh(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 x?(i.originalMessage=i.message,i.message=R):i=new Error(R),i.shortMessage=w,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};Vm.exports=CA});var Zm=d((mI,Ml)=>{"use strict";var Kn=["stdin","stdout","stderr"],PA=t=>Kn.some(e=>t[e]!==void 0),Xm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Kn.map(i=>t[i]);if(PA(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Kn.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,Kn.length);return Array.from({length:r},(i,n)=>e[n])};Ml.exports=Xm;Ml.exports.node=t=>{let e=Xm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Qm=d((gI,Xn)=>{Xn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Xn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Xn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ig=d((yI,Yr)=>{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)?(Jm=require("assert"),Gr=Qm(),eg=/^win/i.test(Z.platform),ki=require("events"),typeof ki!="function"&&(ki=ki.EventEmitter),Z.__signal_exit_emitter__?le=Z.__signal_exit_emitter__:(le=Z.__signal_exit_emitter__=new ki,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Yr.exports=function(t,e){if(!cr(global.process))return function(){};Jm.equal(typeof t,"function","a callback must be provided for exit handler"),Wr===!1&&Bl();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Zn()};return le.on(r,t),i},Zn=function(){!Wr||!cr(global.process)||(Wr=!1,Gr.forEach(function(e){try{Z.removeListener(e,Qn[e])}catch{}}),Z.emit=Jn,Z.reallyExit=ql,le.count-=1)},Yr.exports.unload=Zn,ur=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Qn={},Gr.forEach(function(t){Qn[t]=function(){if(cr(global.process)){var r=Z.listeners(t);r.length===le.count&&(Zn(),ur("exit",null,t),ur("afterexit",null,t),eg&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Yr.exports.signals=function(){return Gr},Wr=!1,Bl=function(){Wr||!cr(global.process)||(Wr=!0,le.count+=1,Gr=Gr.filter(function(e){try{return Z.on(e,Qn[e]),!0}catch{return!1}}),Z.emit=rg,Z.reallyExit=tg)},Yr.exports.load=Bl,ql=Z.reallyExit,tg=function(e){cr(global.process)&&(Z.exitCode=e||0,ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),ql.call(Z,Z.exitCode))},Jn=Z.emit,rg=function(e,r){if(e==="exit"&&cr(global.process)){r!==void 0&&(Z.exitCode=r);var i=Jn.apply(this,arguments);return ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),i}else return Jn.apply(this,arguments)}):Yr.exports=function(){return function(){}};var Jm,Gr,eg,ki,le,Zn,ur,Qn,Wr,Bl,ql,tg,Jn,rg});var sg=d((_I,ng)=>{"use strict";var LA=require("os"),IA=ig(),kA=1e3*5,NA=(t,e="SIGTERM",r={})=>{let i=t(e);return DA(t,e,r,i),i},DA=(t,e,r,i)=>{if(!FA(e,r,i))return;let n=BA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},FA=(t,{forceKillAfterTimeout:e},r)=>MA(t)&&e!==!1&&r,MA=t=>t===LA.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",BA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return kA;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},qA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},HA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},$A=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{HA(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},UA=({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})`)},jA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=IA(()=>{t.kill()});return i.finally(()=>{n()})};ng.exports={spawnedKill:NA,spawnedCancel:qA,setupTimeout:$A,validateTimeout:UA,setExitHandler:jA}});var ag=d((SI,og)=>{"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";og.exports=it});var cg=d((EI,lg)=>{"use strict";var{PassThrough:GA}=require("stream");lg.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 GA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var ug=d((bI,Ni)=>{"use strict";var{constants:WA}=require("buffer"),YA=require("stream"),{promisify:zA}=require("util"),VA=cg(),KA=zA(YA.pipeline),es=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Hl(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=VA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=WA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await KA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new es)})}),i.getBufferedValue()}Ni.exports=Hl;Ni.exports.buffer=(t,e)=>Hl(t,{...e,encoding:"buffer"});Ni.exports.array=(t,e)=>Hl(t,{...e,array:!0});Ni.exports.MaxBufferError=es});var fg=d((xI,hg)=>{"use strict";var{PassThrough:XA}=require("stream");hg.exports=function(){var t=[],e=new XA({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 gg=d((wI,mg)=>{"use strict";var dg=ag(),pg=ug(),ZA=fg(),QA=(t,e)=>{e===void 0||t.stdin===void 0||(dg(e)?e.pipe(t.stdin):t.stdin.end(e))},JA=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=ZA();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},$l=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Ul=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?pg(t,{encoding:e,maxBuffer:i}):pg.buffer(t,{maxBuffer:i})},eT=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Ul(t,{encoding:i,buffer:n,maxBuffer:s}),l=Ul(e,{encoding:i,buffer:n,maxBuffer:s}),c=Ul(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},$l(t,a),$l(e,l),$l(r,c)])}},tT=({input:t})=>{if(dg(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};mg.exports={handleInput:QA,makeAllStream:JA,getSpawnedResult:eT,validateInputSync:tT}});var _g=d((vI,yg)=>{"use strict";var rT=(async()=>{})().constructor.prototype,iT=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(rT,t)]),nT=(t,e)=>{for(let[r,i]of iT){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},sT=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)})});yg.exports={mergePromise:nT,getSpawnedPromise:sT}});var bg=d((RI,Eg)=>{"use strict";var Sg=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],oT=/^[\w.-]+$/,aT=/"/g,lT=t=>typeof t!="string"||oT.test(t)?t:`"${t.replace(aT,'\\"')}"`,cT=(t,e)=>Sg(t,e).join(" "),uT=(t,e)=>Sg(t,e).map(r=>lT(r)).join(" "),hT=/ +/g,fT=t=>{let e=[];for(let r of t.trim().split(hT)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Eg.exports={joinCommand:cT,getEscapedCommand:uT,parseCommand:fT}});var Og=d((AI,zr)=>{"use strict";var pT=require("path"),jl=require("child_process"),dT=Im(),mT=Nm(),gT=Mm(),yT=$m(),ts=Km(),wg=Zm(),{spawnedKill:_T,spawnedCancel:ST,setupTimeout:ET,validateTimeout:bT,setExitHandler:xT}=sg(),{handleInput:wT,getSpawnedResult:vT,makeAllStream:RT,validateInputSync:AT}=gg(),{mergePromise:xg,getSpawnedPromise:TT}=_g(),{joinCommand:vg,parseCommand:Rg,getEscapedCommand:Ag}=bg(),OT=1e3*1e3*100,CT=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?gT.env({env:s,cwd:i,execPath:n}):s},Tg=(t,e,r={})=>{let i=dT._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:OT,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=CT(r),r.stdio=wg(r),process.platform==="win32"&&pT.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Di=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?mT(e):e,rs=(t,e,r)=>{let i=Tg(t,e,r),n=vg(t,e),s=Ag(t,e);bT(i.options);let o;try{o=jl.spawn(i.file,i.args,i.options)}catch(g){let m=new jl.ChildProcess,y=Promise.reject(ts({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return xg(m,y)}let a=TT(o),l=ET(o,i.options,a),c=xT(o,i.options,l),u={isCanceled:!1};o.kill=_T.bind(null,o.kill.bind(o)),o.cancel=ST.bind(null,o,u);let f=yT(async()=>{let[{error:g,exitCode:m,signal:y,timedOut:x},w,R,M]=await vT(o,i.options,c),re=Di(i.options,w),N=Di(i.options,R),H=Di(i.options,M);if(g||m!==0||y!==null){let L=ts({error:g,exitCode:m,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 wT(o,i.options.input),o.all=RT(o,i.options),xg(o,f)};zr.exports=rs;zr.exports.sync=(t,e,r)=>{let i=Tg(t,e,r),n=vg(t,e),s=Ag(t,e);AT(i.options);let o;try{o=jl.spawnSync(i.file,i.args,i.options)}catch(c){throw ts({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Di(i.options,o.stdout,o.error),l=Di(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=ts({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};zr.exports.command=(t,e)=>{let[r,...i]=Rg(t);return rs(r,i,e)};zr.exports.commandSync=(t,e)=>{let[r,...i]=Rg(t);return rs.sync(r,i,e)};zr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=wg.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return rs(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Vr=d((LI,Lg)=>{"use strict";var Pg=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"]]);Lg.exports=t=>t?Object.keys(t).map(e=>[Pg.has(e)?Pg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ls=d((II,Hg)=>{"use strict";var Ig=typeof process=="object"&&process?process:{stdout:null,stderr:null},FT=require("events"),kg=require("stream"),Ng=require("string_decoder").StringDecoder,_t=Symbol("EOF"),St=Symbol("maybeEmitEnd"),$t=Symbol("emittedEnd"),is=Symbol("emittingEnd"),Fi=Symbol("emittedError"),ns=Symbol("closed"),Dg=Symbol("read"),ss=Symbol("flush"),Fg=Symbol("flushChunk"),Te=Symbol("encoding"),Et=Symbol("decoder"),os=Symbol("flowing"),Mi=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),ce=Symbol("bufferLength"),Gl=Symbol("bufferPush"),Wl=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Yl=Symbol("emitData"),Mg=Symbol("emitEnd"),zl=Symbol("emitEnd2"),bt=Symbol("async"),Bi=t=>Promise.resolve().then(t),Bg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",MT=Bg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),BT=Bg&&Symbol.iterator||Symbol("iterator not implemented"),qT=t=>t==="end"||t==="finish"||t==="prefinish",HT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,$T=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),as=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Kr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Vl=class extends as{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Hg.exports=class qg extends kg{constructor(e){super(),this[os]=!1,this[Mi]=!1,this[nt]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Te]=null:this[Te]=e&&e.encoding||null,this[Te]==="buffer"&&(this[Te]=null),this[bt]=e&&!!e.async||!1,this[Et]=this[Te]?new Ng(this[Te]):null,this[_t]=!1,this[$t]=!1,this[is]=!1,this[ns]=!1,this[Fi]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[nt]})}get bufferLength(){return this[ce]}get encoding(){return this[Te]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Te]&&e!==this[Te]&&(this[Et]&&this[Et].lastNeed||this[ce]))throw new Error("cannot change encoding");this[Te]!==e&&(this[Et]=e?new Ng(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[Et].write(r)))),this[Te]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[bt]}set async(e){this[bt]=this[bt]||!!e}write(e,r,i){if(this[_t])throw new Error("write after end");if(this[ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[bt]?Bi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&($T(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):HT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[ss](!0),this.flowing?this.emit("data",e):this[Gl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[Et].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[Et].write(e)),this.flowing&&this[ce]!==0&&this[ss](!0),this.flowing?this.emit("data",e):this[Gl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[ce]===0||e===0||e>this[ce])return this[St](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[ce])]);let r=this[Dg](e||null,this[ee][0]);return this[St](),r}[Dg](e,r){return e===r.length||e===null?this[Wl]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this[ee].length&&!this[_t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[_t]=!0,this.writable=!1,(this.flowing||!this[Mi])&&this[St](),this}[Kr](){this[ye]||(this[Mi]=!1,this[os]=!0,this.emit("resume"),this[ee].length?this[ss]():this[_t]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[os]=!1,this[Mi]=!0}get destroyed(){return this[ye]}get flowing(){return this[os]}get paused(){return this[Mi]}[Gl](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this[ee].push(e)}[Wl](){return this[ee].length&&(this[ge]?this[ce]-=1:this[ce]-=this[ee][0].length),this[ee].shift()}[ss](e){do;while(this[Fg](this[Wl]()));!e&&!this[ee].length&&!this[_t]&&this.emit("drain")}[Fg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[$t];return r=r||{},e===Ig.stdout||e===Ig.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Vl(this,e,r):new as(this,e,r)),this[bt]?Bi(()=>this[Kr]()):this[Kr]()),e}unpipe(e){let r=this[nt].find(i=>i.dest===e);r&&(this[nt].splice(this[nt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[nt].length&&!this.flowing?this[Kr]():e==="readable"&&this[ce]!==0?super.emit("readable"):qT(e)&&this[$t]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fi]&&(this[bt]?Bi(()=>r.call(this,this[Fi])):r.call(this,this[Fi])),i}get emittedEnd(){return this[$t]}[St](){!this[is]&&!this[$t]&&!this[ye]&&this[ee].length===0&&this[_t]&&(this[is]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ns]&&this.emit("close"),this[is]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[bt]?Bi(()=>this[Yl](r)):this[Yl](r):!1;if(e==="end")return this[Mg]();if(e==="close"){if(this[ns]=!0,!this[$t]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Fi]=r;let s=super.emit("error",r);return this[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}[Yl](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[Mg](){this[$t]||(this[$t]=!0,this.readable=!1,this[bt]?Bi(()=>this[zl]()):this[zl]())}[zl](){if(this[Et]){let r=this[Et].end();if(r){for(let i of this[nt])i.dest.write(r);super.emit("data",r)}}for(let r of this[nt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Te]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[MT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[_t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[_t]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(ye,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[BT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ye]?(e?this.emit("error",e):this.emit(ye),this):(this[ye]=!0,this[ee].length=0,this[ce]=0,typeof this.close=="function"&&!this[ns]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof qg||e instanceof kg||e instanceof FT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Ug=d((kI,$g)=>{var UT=require("zlib").constants||{ZLIB_VERNUM:4736};$g.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},UT))});var ec=d((NI,Zg)=>{"use strict";var jg=typeof process=="object"&&process?process:{stdout:null,stderr:null},jT=require("events"),Gg=require("stream"),Wg=require("string_decoder").StringDecoder,xt=Symbol("EOF"),wt=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),cs=Symbol("emittingEnd"),qi=Symbol("emittedError"),us=Symbol("closed"),Yg=Symbol("read"),hs=Symbol("flush"),zg=Symbol("flushChunk"),Oe=Symbol("encoding"),vt=Symbol("decoder"),fs=Symbol("flowing"),Hi=Symbol("paused"),Xr=Symbol("resume"),ue=Symbol("bufferLength"),Kl=Symbol("bufferPush"),Xl=Symbol("bufferShift"),_e=Symbol("objectMode"),Se=Symbol("destroyed"),Zl=Symbol("emitData"),Vg=Symbol("emitEnd"),Ql=Symbol("emitEnd2"),Rt=Symbol("async"),$i=t=>Promise.resolve().then(t),Kg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",GT=Kg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),WT=Kg&&Symbol.iterator||Symbol("iterator not implemented"),YT=t=>t==="end"||t==="finish"||t==="prefinish",zT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,VT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ps=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Xr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Jl=class extends ps{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)}};Zg.exports=class Xg extends Gg{constructor(e){super(),this[fs]=!1,this[Hi]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Oe]=null:this[Oe]=e&&e.encoding||null,this[Oe]==="buffer"&&(this[Oe]=null),this[Rt]=e&&!!e.async||!1,this[vt]=this[Oe]?new Wg(this[Oe]):null,this[xt]=!1,this[Ut]=!1,this[cs]=!1,this[us]=!1,this[qi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Se]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Oe]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Oe]&&e!==this[Oe]&&(this[vt]&&this[vt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[vt]=e?new Wg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[vt].write(r)))),this[Oe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[Rt]}set async(e){this[Rt]=this[Rt]||!!e}write(e,r,i){if(this[xt])throw new Error("write after end");if(this[Se])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Rt]?$i:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(VT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):zT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[hs](!0),this.flowing?this.emit("data",e):this[Kl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[vt].write(e)),this.flowing&&this[ue]!==0&&this[hs](!0),this.flowing?this.emit("data",e):this[Kl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Se])return null;if(this[ue]===0||e===0||e>this[ue])return this[wt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[Yg](e||null,this.buffer[0]);return this[wt](),r}[Yg](e,r){return e===r.length||e===null?this[Xl]():(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[Hi])&&this[wt](),this}[Xr](){this[Se]||(this[Hi]=!1,this[fs]=!0,this.emit("resume"),this.buffer.length?this[hs]():this[xt]?this[wt]():this.emit("drain"))}resume(){return this[Xr]()}pause(){this[fs]=!1,this[Hi]=!0}get destroyed(){return this[Se]}get flowing(){return this[fs]}get paused(){return this[Hi]}[Kl](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Xl](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[hs](e){do;while(this[zg](this[Xl]()));!e&&!this.buffer.length&&!this[xt]&&this.emit("drain")}[zg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Se])return;let i=this[Ut];return r=r||{},e===jg.stdout||e===jg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Jl(this,e,r):new ps(this,e,r)),this[Rt]?$i(()=>this[Xr]()):this[Xr]()),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[Xr]():e==="readable"&&this[ue]!==0?super.emit("readable"):YT(e)&&this[Ut]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[qi]&&(this[Rt]?$i(()=>r.call(this,this[qi])):r.call(this,this[qi])),i}get emittedEnd(){return this[Ut]}[wt](){!this[cs]&&!this[Ut]&&!this[Se]&&this.buffer.length===0&&this[xt]&&(this[cs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[us]&&this.emit("close"),this[cs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Se&&this[Se])return;if(e==="data")return r?this[Rt]?$i(()=>this[Zl](r)):this[Zl](r):!1;if(e==="end")return this[Vg]();if(e==="close"){if(this[us]=!0,!this[Ut]&&!this[Se])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[qi]=r;let s=super.emit("error",r);return this[wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[wt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[wt](),n}[Zl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[wt](),r}[Vg](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[Rt]?$i(()=>this[Ql]()):this[Ql]())}[Ql](){if(this[vt]){let r=this[vt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Oe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Se,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[GT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[xt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[xt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Se,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[WT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Se]?(e?this.emit("error",e):this.emit(Se),this):(this[Se]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[us]&&this.close(),e?this.emit("error",e):this.emit(Se),this)}static isStream(e){return!!e&&(e instanceof Xg||e instanceof Gg||e instanceof jT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var gc=d(ke=>{"use strict";var sc=require("assert"),jt=require("buffer").Buffer,ey=require("zlib"),hr=ke.constants=Ug(),KT=ec(),Qg=jt.concat,fr=Symbol("_superWrite"),Qr=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"}},XT=Symbol("opts"),Ui=Symbol("flushFlag"),Jg=Symbol("finishFlushFlag"),mc=Symbol("fullFlushFlag"),z=Symbol("handle"),ds=Symbol("onError"),Zr=Symbol("sawError"),tc=Symbol("level"),rc=Symbol("strategy"),ic=Symbol("ended"),DI=Symbol("_defaultFullFlush"),ms=class extends KT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Zr]=!1,this[ic]=!1,this[XT]=e,this[Ui]=e.flush,this[Jg]=e.finishFlush;try{this[z]=new ey[r](e)}catch(i){throw new Qr(i)}this[ds]=i=>{this[Zr]||(this[Zr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[ds](new Qr(i))),this.once("end",()=>this.close)}close(){this[z]&&(this[z].close(),this[z]=null,this.emit("close"))}reset(){if(!this[Zr])return sc(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[mc]),this.write(Object.assign(jt.alloc(0),{[Ui]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Jg]),this[ic]=!0,super.end(null,null,i)}get ended(){return this[ic]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=jt.from(e,r)),this[Zr])return;sc(this[z],"zlib binding closed");let n=this[z]._handle,s=n.close;n.close=()=>{};let o=this[z].close;this[z].close=()=>{},jt.concat=c=>c;let a;try{let c=typeof e[Ui]=="number"?e[Ui]:this[Ui];a=this[z]._processChunk(e,c),jt.concat=Qg}catch(c){jt.concat=Qg,this[ds](new Qr(c))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",c=>this[ds](new Qr(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[fr](jt.from(a[0]));for(let c=1;c<a.length;c++)l=this[fr](a[c])}else l=this[fr](jt.from(a));return i&&i(),l}[fr](e){return super.write(e)}},At=class extends ms{constructor(e,r){e=e||{},e.flush=e.flush||hr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hr.Z_FINISH,super(e,r),this[mc]=hr.Z_FULL_FLUSH,this[tc]=e.level,this[rc]=e.strategy}params(e,r){if(!this[Zr]){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[tc]!==e||this[rc]!==r){this.flush(hr.Z_SYNC_FLUSH),sc(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[tc]=e,this[rc]=r)}}}},oc=class extends At{constructor(e){super(e,"Deflate")}},ac=class extends At{constructor(e){super(e,"Inflate")}},nc=Symbol("_portable"),lc=class extends At{constructor(e){super(e,"Gzip"),this[nc]=e&&!!e.portable}[fr](e){return this[nc]?(this[nc]=!1,e[9]=255,super[fr](e)):super[fr](e)}},cc=class extends At{constructor(e){super(e,"Gunzip")}},uc=class extends At{constructor(e){super(e,"DeflateRaw")}},hc=class extends At{constructor(e){super(e,"InflateRaw")}},fc=class extends At{constructor(e){super(e,"Unzip")}},gs=class extends ms{constructor(e,r){e=e||{},e.flush=e.flush||hr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hr.BROTLI_OPERATION_FINISH,super(e,r),this[mc]=hr.BROTLI_OPERATION_FLUSH}},pc=class extends gs{constructor(e){super(e,"BrotliCompress")}},dc=class extends gs{constructor(e){super(e,"BrotliDecompress")}};ke.Deflate=oc;ke.Inflate=ac;ke.Gzip=lc;ke.Gunzip=cc;ke.DeflateRaw=uc;ke.InflateRaw=hc;ke.Unzip=fc;typeof ey.BrotliCompress=="function"?(ke.BrotliCompress=pc,ke.BrotliDecompress=dc):ke.BrotliCompress=ke.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Jr=d((BI,ty)=>{var ZT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;ty.exports=ZT!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ys=d((HI,ry)=>{"use strict";var QT=ls(),yc=Jr(),_c=Symbol("slurp");ry.exports=class extends QT{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=yc(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=yc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[_c](r),i&&this[_c](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))}[_c](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?yc(e[i]):e[i])}}});var Sc=d(_s=>{"use strict";_s.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"]]);_s.code=new Map(Array.from(_s.name).map(t=>[t[1],t[0]]))});var oy=d((UI,sy)=>{"use strict";var JT=(t,e)=>{if(Number.isSafeInteger(t))t<0?tO(t,e):eO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},eO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},tO=(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]=iy(n):n===0?e[i-1]=0:(r=!0,e[i-1]=ny(n))}},rO=t=>{let e=t[0],r=e===128?nO(t.slice(1,t.length)):e===255?iO(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},iO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=iy(s):s===0?o=s:(i=!0,o=ny(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},nO=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},iy=t=>(255^t)&255,ny=t=>(255^t)+1&255;sy.exports={encode:JT,parse:rO}});var ti=d((jI,ly)=>{"use strict";var Ec=Sc(),ei=require("path").posix,ay=oy(),bc=Symbol("slurp"),Ne=Symbol("type"),vc=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Ne]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pr(e,r,100),this.mode=Gt(e,r+100,8),this.uid=Gt(e,r+108,8),this.gid=Gt(e,r+116,8),this.size=Gt(e,r+124,12),this.mtime=xc(e,r+136,12),this.cksum=Gt(e,r+148,12),this[bc](i),this[bc](n,!0),this[Ne]=pr(e,r+156,1),this[Ne]===""&&(this[Ne]="0"),this[Ne]==="0"&&this.path.slice(-1)==="/"&&(this[Ne]="5"),this[Ne]==="5"&&(this.size=0),this.linkpath=pr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pr(e,r+265,32),this.gname=pr(e,r+297,32),this.devmaj=Gt(e,r+329,8),this.devmin=Gt(e,r+337,8),e[r+475]!==0){let o=pr(e,r+345,155);this.path=o+"/"+this.path}else{let o=pr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=xc(e,r+476,12),this.ctime=xc(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)}[bc](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=sO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=dr(e,r,100,s)||this.needPax,this.needPax=Wt(e,r+100,8,this.mode)||this.needPax,this.needPax=Wt(e,r+108,8,this.uid)||this.needPax,this.needPax=Wt(e,r+116,8,this.gid)||this.needPax,this.needPax=Wt(e,r+124,12,this.size)||this.needPax,this.needPax=wc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Ne].charCodeAt(0),this.needPax=dr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=dr(e,r+265,32,this.uname)||this.needPax,this.needPax=dr(e,r+297,32,this.gname)||this.needPax,this.needPax=Wt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Wt(e,r+337,8,this.devmin)||this.needPax,this.needPax=dr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=dr(e,r+345,155,o)||this.needPax:(this.needPax=dr(e,r+345,130,o)||this.needPax,this.needPax=wc(e,r+476,12,this.atime)||this.needPax,this.needPax=wc(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,Wt(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 Ec.name.get(this[Ne])||this[Ne]}get typeKey(){return this[Ne]}set type(e){Ec.code.has(e)?this[Ne]=Ec.code.get(e):this[Ne]=e}},sO=(t,e)=>{let i=t,n="",s,o=ei.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=ei.dirname(i),i=ei.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=ei.join(ei.basename(n),i),n=ei.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),xc=(t,e,r)=>oO(Gt(t,e,r)),oO=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?ay.parse(t.slice(e,e+r)):lO(t,e,r),aO=t=>isNaN(t)?null:t,lO=(t,e,r)=>aO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),cO={12:8589934591,8:2097151},Wt=(t,e,r,i)=>i===null?!1:i>cO[r]||i<0?(ay.encode(i,t.slice(e,e+r)),!0):(uO(t,e,r,i),!1),uO=(t,e,r,i)=>t.write(hO(i,r),e,r,"ascii"),hO=(t,e)=>fO(Math.floor(t).toString(8),e),fO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",wc=(t,e,r,i)=>i===null?!1:Wt(t,e,r,i.getTime()/1e3),pO=new Array(156).join("\0"),dr=(t,e,r,i)=>i===null?!1:(t.write(i+pO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);ly.exports=vc});var Ss=d((GI,cy)=>{"use strict";var dO=ti(),mO=require("path"),ji=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 dO({path:("PaxHeader/"+mO.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}};ji.parse=(t,e,r)=>new ji(gO(yO(t),e),r);var gO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,yO=t=>t.replace(/\n$/,"").split(`
8
+ `).reduce(_O,Object.create(null)),_O=(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};cy.exports=ji});var ri=d((WI,uy)=>{uy.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 Es=d((YI,hy)=>{"use strict";hy.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 Ac=d((VI,fy)=>{"use strict";var bs=["|","<",">","?",":"],Rc=bs.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),SO=new Map(bs.map((t,e)=>[t,Rc[e]])),EO=new Map(Rc.map((t,e)=>[t,bs[e]]));fy.exports={encode:t=>bs.reduce((e,r)=>e.split(r).join(SO.get(r)),t),decode:t=>Rc.reduce((e,r)=>e.split(r).join(EO.get(r)),t)}});var Tc=d((KI,dy)=>{var{isAbsolute:bO,parse:py}=require("path").win32;dy.exports=t=>{let e="",r=py(t);for(;bO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=py(t)}return[e,t]}});var gy=d((XI,my)=>{"use strict";my.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 Mc=d((JI,Py)=>{"use strict";var wy=ls(),vy=Ss(),Ry=ti(),ot=require("fs"),yy=require("path"),st=Jr(),xO=ri(),Ay=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),xO(e)+"/"+t):st(t),wO=16*1024*1024,_y=Symbol("process"),Sy=Symbol("file"),Ey=Symbol("directory"),Cc=Symbol("symlink"),by=Symbol("hardlink"),Gi=Symbol("header"),xs=Symbol("read"),Pc=Symbol("lstat"),ws=Symbol("onlstat"),Lc=Symbol("onread"),Ic=Symbol("onreadlink"),kc=Symbol("openfile"),Nc=Symbol("onopenfile"),Yt=Symbol("close"),vs=Symbol("mode"),Dc=Symbol("awaitDrain"),Oc=Symbol("ondrain"),at=Symbol("prefix"),xy=Symbol("hadError"),Ty=Es(),vO=Ac(),Oy=Tc(),Cy=gy(),Rs=Ty(class extends wy{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||wO,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]=Oy(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=vO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||yy.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[ws](this.statCache.get(this.absolute)):this[Pc]()}emit(e,...r){return e==="error"&&(this[xy]=!0),super.emit(e,...r)}[Pc](){ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[ws](r)})}[ws](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=AO(e),this.emit("stat",e),this[_y]()}[_y](){switch(this.type){case"File":return this[Sy]();case"Directory":return this[Ey]();case"SymbolicLink":return this[Cc]();default:return this.end()}}[vs](e){return Cy(e,this.type==="Directory",this.portable)}[at](e){return Ay(e,this.prefix)}[Gi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Ry({path:this[at](this.path),linkpath:this.type==="Link"?this[at](this.linkpath):this.linkpath,mode:this[vs](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 vy({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)}[Ey](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Gi](),this.end()}[Cc](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ic](r)})}[Ic](e){this.linkpath=st(e),this[Gi](),this.end()}[by](e){this.type="Link",this.linkpath=st(yy.relative(this.cwd,e)),this.stat.size=0,this[Gi](),this.end()}[Sy](){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[by](r)}this.linkCache.set(e,this.absolute)}if(this[Gi](),this.stat.size===0)return this.end();this[kc]()}[kc](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Nc](r)})}[Nc](e){if(this.fd=e,this[xy])return this[Yt]();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[xs]()}[xs](){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[Yt](()=>this.emit("error",o));this[Lc](a)})}[Yt](e){ot.close(this.fd,e)}[Lc](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[Yt](()=>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[Yt](()=>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[Oc]():this[Dc](()=>this[Oc]())}[Dc](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)}[Oc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Yt](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[xs]()}}),Fc=class extends Rs{[Pc](){this[ws](ot.lstatSync(this.absolute))}[Cc](){this[Ic](ot.readlinkSync(this.absolute))}[kc](){this[Nc](ot.openSync(this.absolute,"r"))}[xs](){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[Lc](a),e=!1}finally{if(e)try{this[Yt](()=>{})}catch{}}}[Dc](e){e()}[Yt](e){ot.closeSync(this.fd),e()}},RO=Ty(class extends wy{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[vs](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]=Oy(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Ry({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 vy({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 Ay(e,this.prefix)}[vs](e){return Cy(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()}});Rs.Sync=Fc;Rs.Tar=RO;var AO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Py.exports=Rs});var Iy=d((ek,Ly)=>{"use strict";Ly.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Bc=d((tk,ky)=>{"use strict";ky.exports=$;$.Node=mr;$.create=$;function $(t){var e=this;if(e instanceof $||(e=new $),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}$.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};$.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++}};$.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++}};$.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)OO(this,arguments[t]);return this.length};$.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)CO(this,arguments[t]);return this.length};$.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}};$.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}};$.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};$.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};$.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};$.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};$.prototype.map=function(t,e){e=e||this;for(var r=new $,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};$.prototype.mapReverse=function(t,e){e=e||this;for(var r=new $,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};$.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};$.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};$.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};$.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};$.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 $;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};$.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 $;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};$.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=TO(this,n,r[i]);return s};$.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 TO(t,e,r){var i=e===t.head?new mr(r,null,e,t):new mr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function OO(t,e){t.tail=new mr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function CO(t,e){t.head=new mr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function mr(t,e,r,i){if(!(this instanceof mr))return new mr(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{Iy()($)}catch{}});var Ns=d((ik,Hy)=>{"use strict";var Is=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}},PO=ls(),LO=gc(),IO=ys(),zc=Mc(),kO=zc.Sync,NO=zc.Tar,DO=Bc(),Ny=Buffer.alloc(1024),Os=Symbol("onStat"),As=Symbol("ended"),lt=Symbol("queue"),ii=Symbol("current"),gr=Symbol("process"),Ts=Symbol("processing"),Dy=Symbol("processJob"),ct=Symbol("jobs"),qc=Symbol("jobDone"),Cs=Symbol("addFSEntry"),Fy=Symbol("addTarEntry"),jc=Symbol("stat"),Gc=Symbol("readdir"),Ps=Symbol("onreaddir"),Ls=Symbol("pipe"),My=Symbol("entry"),Hc=Symbol("entryOpt"),Wc=Symbol("writeEntryClass"),qy=Symbol("write"),$c=Symbol("ondrain"),ks=require("fs"),By=require("path"),FO=Es(),Uc=Jr(),Vc=FO(class extends PO{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=Uc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Wc]=zc,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 LO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$c]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[$c]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[lt]=new DO,this[ct]=0,this.jobs=+e.jobs||4,this[Ts]=!1,this[As]=!1}[qy](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[As]=!0,this[gr](),this}write(e){if(this[As])throw new Error("write after end");return e instanceof IO?this[Fy](e):this[Cs](e),this.flowing}[Fy](e){let r=Uc(By.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Is(e.path,r,!1);i.entry=new NO(e,this[Hc](i)),i.entry.on("end",n=>this[qc](i)),this[ct]+=1,this[lt].push(i)}this[gr]()}[Cs](e){let r=Uc(By.resolve(this.cwd,e));this[lt].push(new Is(e,r)),this[gr]()}[jc](e){e.pending=!0,this[ct]+=1;let r=this.follow?"stat":"lstat";ks[r](e.absolute,(i,n)=>{e.pending=!1,this[ct]-=1,i?this.emit("error",i):this[Os](e,n)})}[Os](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[gr]()}[Gc](e){e.pending=!0,this[ct]+=1,ks.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[ct]-=1,r)return this.emit("error",r);this[Ps](e,i)})}[Ps](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[gr]()}[gr](){if(!this[Ts]){this[Ts]=!0;for(let e=this[lt].head;e!==null&&this[ct]<this.jobs;e=e.next)if(this[Dy](e.value),e.value.ignore){let r=e.next;this[lt].removeNode(e),e.next=r}this[Ts]=!1,this[As]&&!this[lt].length&&this[ct]===0&&(this.zip?this.zip.end(Ny):(super.write(Ny),super.end()))}}get[ii](){return this[lt]&&this[lt].head&&this[lt].head.value}[qc](e){this[lt].shift(),this[ct]-=1,this[gr]()}[Dy](e){if(!e.pending){if(e.entry){e===this[ii]&&!e.piped&&this[Ls](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Os](e,this.statCache.get(e.absolute)):this[jc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ps](e,this.readdirCache.get(e.absolute)):this[Gc](e),!e.readdir))){if(e.entry=this[My](e),!e.entry){e.ignore=!0;return}e===this[ii]&&!e.piped&&this[Ls](e)}}}[Hc](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}}[My](e){this[ct]+=1;try{return new this[Wc](e.path,this[Hc](e)).on("end",()=>this[qc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$c](){this[ii]&&this[ii].entry&&this[ii].entry.resume()}[Ls](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Cs](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()}}),Yc=class extends Vc{constructor(e){super(e),this[Wc]=kO}pause(){}resume(){}[jc](e){let r=this.follow?"statSync":"lstatSync";this[Os](e,ks[r](e.absolute))}[Gc](e,r){this[Ps](e,ks.readdirSync(e.absolute))}[Ls](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Cs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[qy](n)})}};Vc.Sync=Yc;Hy.exports=Vc});var hi=d(Yi=>{"use strict";var MO=ec(),BO=require("events").EventEmitter,Ce=require("fs"),Zc=Ce.writev;if(!Zc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Zc=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var ci=Symbol("_autoClose"),Ve=Symbol("_close"),Wi=Symbol("_ended"),G=Symbol("_fd"),$y=Symbol("_finished"),Vt=Symbol("_flags"),Kc=Symbol("_flush"),Qc=Symbol("_handleChunk"),Jc=Symbol("_makeBuf"),qs=Symbol("_mode"),Ds=Symbol("_needDrain"),ai=Symbol("_onerror"),ui=Symbol("_onopen"),Xc=Symbol("_onread"),si=Symbol("_onwrite"),Kt=Symbol("_open"),Tt=Symbol("_path"),yr=Symbol("_pos"),ut=Symbol("_queue"),oi=Symbol("_read"),Uy=Symbol("_readSize"),zt=Symbol("_reading"),Fs=Symbol("_remain"),jy=Symbol("_size"),Ms=Symbol("_write"),ni=Symbol("_writing"),Bs=Symbol("_defaultFlag"),li=Symbol("_errored"),Hs=class extends MO{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[li]=!1,this[G]=typeof r.fd=="number"?r.fd:null,this[Tt]=e,this[Uy]=r.readSize||16*1024*1024,this[zt]=!1,this[jy]=typeof r.size=="number"?r.size:1/0,this[Fs]=this[jy],this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[G]=="number"?this[oi]():this[Kt]()}get fd(){return this[G]}get path(){return this[Tt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Ce.open(this[Tt],"r",(e,r)=>this[ui](e,r))}[ui](e,r){e?this[ai](e):(this[G]=r,this.emit("open",r),this[oi]())}[Jc](){return Buffer.allocUnsafe(Math.min(this[Uy],this[Fs]))}[oi](){if(!this[zt]){this[zt]=!0;let e=this[Jc]();if(e.length===0)return process.nextTick(()=>this[Xc](null,0,e));Ce.read(this[G],e,0,e.length,null,(r,i,n)=>this[Xc](r,i,n))}}[Xc](e,r,i){this[zt]=!1,e?this[ai](e):this[Qc](r,i)&&this[oi]()}[Ve](){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"))}}[ai](e){this[zt]=!0,this[Ve](),this.emit("error",e)}[Qc](e,r){let i=!1;return this[Fs]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Fs]<=0)&&(i=!1,this[Ve](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[G]=="number"&&this[oi]();break;case"error":return this[li]?void 0:(this[li]=!0,super.emit(e,r));default:return super.emit(e,r)}}},eu=class extends Hs{[Kt](){let e=!0;try{this[ui](null,Ce.openSync(this[Tt],"r")),e=!1}finally{e&&this[Ve]()}}[oi](){let e=!0;try{if(!this[zt]){this[zt]=!0;do{let r=this[Jc](),i=r.length===0?0:Ce.readSync(this[G],r,0,r.length,null);if(!this[Qc](i,r))break}while(!0);this[zt]=!1}e=!1}finally{e&&this[Ve]()}}[Ve](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}},$s=class extends BO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[li]=!1,this[ni]=!1,this[Wi]=!1,this[Ds]=!1,this[ut]=[],this[Tt]=e,this[G]=typeof r.fd=="number"?r.fd:null,this[qs]=r.mode===void 0?438:r.mode,this[yr]=typeof r.start=="number"?r.start:null,this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[yr]!==null?"r+":"w";this[Bs]=r.flags===void 0,this[Vt]=this[Bs]?i:r.flags,this[G]===null&&this[Kt]()}emit(e,r){if(e==="error"){if(this[li])return;this[li]=!0}return super.emit(e,r)}get fd(){return this[G]}get path(){return this[Tt]}[ai](e){this[Ve](),this[ni]=!0,this.emit("error",e)}[Kt](){Ce.open(this[Tt],this[Vt],this[qs],(e,r)=>this[ui](e,r))}[ui](e,r){this[Bs]&&this[Vt]==="r+"&&e&&e.code==="ENOENT"?(this[Vt]="w",this[Kt]()):e?this[ai](e):(this[G]=r,this.emit("open",r),this[Kc]())}end(e,r){return e&&this.write(e,r),this[Wi]=!0,!this[ni]&&!this[ut].length&&typeof this[G]=="number"&&this[si](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Wi]?(this.emit("error",new Error("write() after end()")),!1):this[G]===null||this[ni]||this[ut].length?(this[ut].push(e),this[Ds]=!0,!1):(this[ni]=!0,this[Ms](e),!0)}[Ms](e){Ce.write(this[G],e,0,e.length,this[yr],(r,i)=>this[si](r,i))}[si](e,r){e?this[ai](e):(this[yr]!==null&&(this[yr]+=r),this[ut].length?this[Kc]():(this[ni]=!1,this[Wi]&&!this[$y]?(this[$y]=!0,this[Ve](),this.emit("finish")):this[Ds]&&(this[Ds]=!1,this.emit("drain"))))}[Kc](){if(this[ut].length===0)this[Wi]&&this[si](null,0);else if(this[ut].length===1)this[Ms](this[ut].pop());else{let e=this[ut];this[ut]=[],Zc(this[G],e,this[yr],(r,i)=>this[si](r,i))}}[Ve](){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"))}}},tu=class extends $s{[Kt](){let e;if(this[Bs]&&this[Vt]==="r+")try{e=Ce.openSync(this[Tt],this[Vt],this[qs])}catch(r){if(r.code==="ENOENT")return this[Vt]="w",this[Kt]();throw r}else e=Ce.openSync(this[Tt],this[Vt],this[qs]);this[ui](null,e)}[Ve](){if(this[ci]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}[Ms](e){let r=!0;try{this[si](null,Ce.writeSync(this[G],e,0,e.length,this[yr])),r=!1}finally{if(r)try{this[Ve]()}catch{}}}};Yi.ReadStream=Hs;Yi.ReadStreamSync=eu;Yi.WriteStream=$s;Yi.WriteStreamSync=tu});var Vs=d((ok,Zy)=>{"use strict";var qO=Es(),HO=ti(),$O=require("events"),UO=Bc(),jO=1024*1024,GO=ys(),Gy=Ss(),WO=gc(),{nextTick:YO}=require("process"),ru=Buffer.from([31,139]),Ue=Symbol("state"),_r=Symbol("writeEntry"),Ot=Symbol("readEntry"),iu=Symbol("nextEntry"),Wy=Symbol("processEntry"),je=Symbol("extendedHeader"),zi=Symbol("globalExtendedHeader"),Xt=Symbol("meta"),Yy=Symbol("emitMeta"),K=Symbol("buffer"),Ct=Symbol("queue"),Sr=Symbol("ended"),zy=Symbol("emittedEnd"),Er=Symbol("emit"),Pe=Symbol("unzip"),Us=Symbol("consumeChunk"),js=Symbol("consumeChunkSub"),nu=Symbol("consumeBody"),Vy=Symbol("consumeMeta"),Ky=Symbol("consumeHeader"),Gs=Symbol("consuming"),su=Symbol("bufferConcat"),ou=Symbol("maybeEnd"),Vi=Symbol("writing"),Zt=Symbol("aborted"),Ws=Symbol("onDone"),br=Symbol("sawValidEntry"),Ys=Symbol("sawNullBlock"),zs=Symbol("sawEOF"),Xy=Symbol("closeStream"),zO=t=>!0;Zy.exports=qO(class extends $O{constructor(e){e=e||{},super(e),this.file=e.file||"",this[br]=null,this.on(Ws,r=>{(this[Ue]==="begin"||this[br]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ws,e.ondone):this.on(Ws,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||jO,this.filter=typeof e.filter=="function"?e.filter:zO,this.writable=!0,this.readable=!1,this[Ct]=new UO,this[K]=null,this[Ot]=null,this[_r]=null,this[Ue]="begin",this[Xt]="",this[je]=null,this[zi]=null,this[Sr]=!1,this[Pe]=null,this[Zt]=!1,this[Ys]=!1,this[zs]=!1,this.on("end",()=>this[Xy]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Ky](e,r){this[br]===null&&(this[br]=!1);let i;try{i=new HO(e,r,this[je],this[zi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Ys]?(this[zs]=!0,this[Ue]==="begin"&&(this[Ue]="header"),this[Er]("eof")):(this[Ys]=!0,this[Er]("nullBlock"));else if(this[Ys]=!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[_r]=new GO(i,this[je],this[zi]);if(!this[br])if(s.remain){let o=()=>{s.invalid||(this[br]=!0)};s.on("end",o)}else this[br]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Er]("ignoredEntry",s),this[Ue]="ignore",s.resume()):s.size>0&&(this[Xt]="",s.on("data",o=>this[Xt]+=o),this[Ue]="meta"):(this[je]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Er]("ignoredEntry",s),this[Ue]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Ue]="body":(this[Ue]="header",s.end()),this[Ot]?this[Ct].push(s):(this[Ct].push(s),this[iu]())))}}}[Xy](){YO(()=>this.emit("close"))}[Wy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ot]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[iu]()),r=!1)):(this[Ot]=null,r=!1),r}[iu](){do;while(this[Wy](this[Ct].shift()));if(!this[Ct].length){let e=this[Ot];!e||e.flowing||e.size===e.remain?this[Vi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[nu](e,r){let i=this[_r],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Ue]="header",this[_r]=null,i.end()),s.length}[Vy](e,r){let i=this[_r],n=this[nu](e,r);return this[_r]||this[Yy](i),n}[Er](e,r,i){!this[Ct].length&&!this[Ot]?this.emit(e,r,i):this[Ct].push([e,r,i])}[Yy](e){switch(this[Er]("meta",this[Xt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[je]=Gy.parse(this[Xt],this[je],!1);break;case"GlobalExtendedHeader":this[zi]=Gy.parse(this[Xt],this[zi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[je]=this[je]||Object.create(null),this[je].path=this[Xt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[je]=this[je]||Object.create(null),this[je].linkpath=this[Xt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Zt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Zt])return;if(this[Pe]===null&&e){if(this[K]&&(e=Buffer.concat([this[K],e]),this[K]=null),e.length<ru.length)return this[K]=e,!0;for(let i=0;this[Pe]===null&&i<ru.length;i++)e[i]!==ru[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[Sr];this[Sr]=!1,this[Pe]=new WO.Unzip,this[Pe].on("data",s=>this[Us](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[Sr]=!0,this[Us]()}),this[Vi]=!0;let n=this[Pe][i?"end":"write"](e);return this[Vi]=!1,n}}this[Vi]=!0,this[Pe]?this[Pe].write(e):this[Us](e),this[Vi]=!1;let r=this[Ct].length?!1:this[Ot]?this[Ot].flowing:!0;return!r&&!this[Ct].length&&this[Ot].once("drain",i=>this.emit("drain")),r}[su](e){e&&!this[Zt]&&(this[K]=this[K]?Buffer.concat([this[K],e]):e)}[ou](){if(this[Sr]&&!this[zy]&&!this[Zt]&&!this[Gs]){this[zy]=!0;let e=this[_r];if(e&&e.blockRemain){let r=this[K]?this[K].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[K]&&e.write(this[K]),e.end()}this[Er](Ws)}}[Us](e){if(this[Gs])this[su](e);else if(!e&&!this[K])this[ou]();else{if(this[Gs]=!0,this[K]){this[su](e);let r=this[K];this[K]=null,this[js](r)}else this[js](e);for(;this[K]&&this[K].length>=512&&!this[Zt]&&!this[zs];){let r=this[K];this[K]=null,this[js](r)}this[Gs]=!1}(!this[K]||this[Sr])&&this[ou]()}[js](e){let r=0,i=e.length;for(;r+512<=i&&!this[Zt]&&!this[zs];)switch(this[Ue]){case"begin":case"header":this[Ky](e,r),r+=512;break;case"ignore":case"body":r+=this[nu](e,r);break;case"meta":r+=this[Vy](e,r);break;default:throw new Error("invalid state: "+this[Ue])}r<i&&(this[K]?this[K]=Buffer.concat([e.slice(r),this[K]]):this[K]=e.slice(r))}end(e){this[Zt]||(this[Pe]?this[Pe].end(e):(this[Sr]=!0,this.write(e)))}})});var Ks=d((ak,t_)=>{"use strict";var VO=Vr(),Jy=Vs(),fi=require("fs"),KO=hi(),Qy=require("path"),au=ri();t_.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=VO(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&&ZO(i,e),i.noResume||XO(i),i.file&&i.sync?QO(i):i.file?JO(i,r):e_(i)};var XO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},ZO=(t,e)=>{let r=new Map(e.map(s=>[au(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Qy.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Qy.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(au(s)):s=>n(au(s))},QO=t=>{let e=e_(t),r=t.file,i=!0,n;try{let s=fi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(fi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=fi.openSync(r,"r");a<s.size;){let c=fi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{fi.closeSync(n)}catch{}}},JO=(t,e)=>{let r=new Jy(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),fi.stat(n,(l,c)=>{if(l)a(l);else{let u=new KO.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},e_=t=>new Jy(t)});var a_=d((lk,o_)=>{"use strict";var eC=Vr(),Xs=Ns(),r_=hi(),i_=Ks(),n_=require("path");o_.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=eC(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?tC(i,e):i.file?rC(i,e,r):i.sync?iC(i,e):nC(i,e)};var tC=(t,e)=>{let r=new Xs.Sync(t),i=new r_.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),s_(r,e)},rC=(t,e,r)=>{let i=new Xs(t),n=new r_.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 lu(i,e),r?s.then(r,r):s},s_=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?i_({file:n_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},lu=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return i_({file:n_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>lu(t,e));t.add(r)}t.end()},iC=(t,e)=>{let r=new Xs.Sync(t);return s_(r,e),r},nC=(t,e)=>{let r=new Xs(t);return lu(r,e),r}});var cu=d((ck,d_)=>{"use strict";var sC=Vr(),l_=Ns(),De=require("fs"),c_=hi(),u_=Ks(),h_=require("path"),f_=ti();d_.exports=(t,e,r)=>{let i=sC(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?oC(i,e):lC(i,e,r)};var oC=(t,e)=>{let r=new l_.Sync(t),i=!0,n,s;try{try{n=De.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=De.openSync(t.file,"w+");else throw l}let o=De.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=De.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new f_(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,aC(t,r,s,n,e)}finally{if(i)try{De.closeSync(n)}catch{}}},aC=(t,e,r,i,n)=>{let s=new c_.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),cC(e,n)},lC=(t,e,r)=>{e=Array.from(e);let i=new l_(t),n=(o,a,l)=>{let c=(m,y)=>{m?De.close(o,x=>l(m)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),g=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return De.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let x=new f_(f);if(!x.cksumValid)return c(null,u);let w=512*Math.ceil(x.size/512);if(u+w+512>a||(u+=w+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(x.path,x.mtime),h=0,De.read(o,f,0,512,u,g)};De.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",De.open(t.file,l,c);if(u)return a(u);De.fstat(h,(f,g)=>{if(f)return De.close(h,()=>a(f));n(h,g.size,(m,y)=>{if(m)return a(m);let x=new c_.WriteStream(t.file,{fd:h,start:y});i.pipe(x),x.on("error",a),x.on("close",o),p_(i,e)})})};De.open(t.file,l,c)});return r?s.then(r,r):s},cC=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?u_({file:h_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},p_=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return u_({file:h_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>p_(t,e));t.add(r)}t.end()}});var g_=d((uk,m_)=>{"use strict";var uC=Vr(),hC=cu();m_.exports=(t,e,r)=>{let i=uC(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),fC(i),hC(i,e,r)};var fC=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 S_=d((hk,__)=>{var{promisify:y_}=require("util"),Qt=require("fs"),pC=t=>{if(!t)t={mode:511,fs:Qt};else if(typeof t=="object")t={mode:511,fs:Qt,...t};else if(typeof t=="number")t={mode:t,fs:Qt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Qt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Qt.mkdir,t.mkdirAsync=y_(t.mkdir),t.stat=t.stat||t.fs.stat||Qt.stat,t.statAsync=y_(t.stat),t.statSync=t.statSync||t.fs.statSync||Qt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Qt.mkdirSync,t};__.exports=pC});var b_=d((fk,E_)=>{var dC=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:mC,parse:gC}=require("path"),yC=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=mC(t),dC==="win32"){let e=/[*|"<>?:]/,{root:r}=gC(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};E_.exports=yC});var A_=d((pk,R_)=>{var{dirname:x_}=require("path"),w_=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?w_(t,x_(e),e):void 0),v_=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?v_(t,x_(e),e):void 0}};R_.exports={findMade:w_,findMadeSync:v_}});var fu=d((dk,O_)=>{var{dirname:T_}=require("path"),uu=(t,e,r)=>{e.recursive=!1;let i=T_(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 uu(i,e).then(s=>uu(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})})},hu=(t,e,r)=>{let i=T_(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 hu(t,e,hu(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};O_.exports={mkdirpManual:uu,mkdirpManualSync:hu}});var L_=d((mk,P_)=>{var{dirname:C_}=require("path"),{findMade:_C,findMadeSync:SC}=A_(),{mkdirpManual:EC,mkdirpManualSync:bC}=fu(),xC=(t,e)=>(e.recursive=!0,C_(t)===t?e.mkdirAsync(t,e):_C(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return EC(t,e);throw n}))),wC=(t,e)=>{if(e.recursive=!0,C_(t)===t)return e.mkdirSync(t,e);let i=SC(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return bC(t,e);throw n}};P_.exports={mkdirpNative:xC,mkdirpNativeSync:wC}});var D_=d((gk,N_)=>{var I_=require("fs"),vC=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,pu=vC.replace(/^v/,"").split("."),k_=+pu[0]>10||+pu[0]==10&&+pu[1]>=12,RC=k_?t=>t.mkdir===I_.mkdir:()=>!1,AC=k_?t=>t.mkdirSync===I_.mkdirSync:()=>!1;N_.exports={useNative:RC,useNativeSync:AC}});var $_=d((yk,H_)=>{var pi=S_(),di=b_(),{mkdirpNative:F_,mkdirpNativeSync:M_}=L_(),{mkdirpManual:B_,mkdirpManualSync:q_}=fu(),{useNative:TC,useNativeSync:OC}=D_(),mi=(t,e)=>(t=di(t),e=pi(e),TC(e)?F_(t,e):B_(t,e)),CC=(t,e)=>(t=di(t),e=pi(e),OC(e)?M_(t,e):q_(t,e));mi.sync=CC;mi.native=(t,e)=>F_(di(t),pi(e));mi.manual=(t,e)=>B_(di(t),pi(e));mi.nativeSync=(t,e)=>M_(di(t),pi(e));mi.manualSync=(t,e)=>q_(di(t),pi(e));H_.exports=mi});var V_=d((_k,z_)=>{"use strict";var Ge=require("fs"),xr=require("path"),PC=Ge.lchown?"lchown":"chown",LC=Ge.lchownSync?"lchownSync":"chownSync",j_=Ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),U_=(t,e,r)=>{try{return Ge[LC](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IC=(t,e,r)=>{try{return Ge.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},kC=j_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ge.chown(t,e,r,i)}:(t,e,r,i)=>i,du=j_?(t,e,r)=>{try{return U_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;IC(t,e,r)}}:(t,e,r)=>U_(t,e,r),NC=process.version,G_=(t,e,r)=>Ge.readdir(t,e,r),DC=(t,e)=>Ge.readdirSync(t,e);/^v4\./.test(NC)&&(G_=(t,e,r)=>Ge.readdir(t,r));var Zs=(t,e,r,i)=>{Ge[PC](t,e,r,kC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},W_=(t,e,r,i,n)=>{if(typeof e=="string")return Ge.lstat(xr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,W_(t,o,r,i,n)});if(e.isDirectory())mu(xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=xr.resolve(t,e.name);Zs(o,r,i,n)});else{let s=xr.resolve(t,e.name);Zs(s,r,i,n)}},mu=(t,e,r,i)=>{G_(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,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Zs(t,e,r,i)}};s.forEach(c=>W_(t,c,e,r,l))})},FC=(t,e,r,i)=>{if(typeof e=="string")try{let n=Ge.lstatSync(xr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&Y_(xr.resolve(t,e.name),r,i),du(xr.resolve(t,e.name),r,i)},Y_=(t,e,r)=>{let i;try{i=DC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return du(t,e,r);throw n}return i&&i.length&&i.forEach(n=>FC(t,n,e,r)),du(t,e,r)};z_.exports=mu;mu.sync=Y_});var Q_=d((Sk,gu)=>{"use strict";var K_=$_(),We=require("fs"),Qs=require("path"),X_=V_(),Ke=Jr(),Js=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},eo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},to=(t,e)=>t.get(Ke(e)),Ki=(t,e,r)=>t.set(Ke(e),r),MC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new eo(t,r&&r.code||"ENOTDIR")),e(r)})};gu.exports=(t,e,r)=>{t=Ke(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=Ke(e.cwd),g=(x,w)=>{x?r(x):(Ki(h,t,!0),w&&l?X_(w,o,a,R=>g(R)):s?We.chmod(t,n,r):r())};if(h&&to(h,t)===!0)return g();if(t===f)return MC(t,g);if(c)return K_(t,{mode:n}).then(x=>g(null,x),g);let y=Ke(Qs.relative(f,t)).split("/");ro(f,y,n,h,u,f,null,g)};var ro=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=Ke(Qs.resolve(t+"/"+l));if(to(i,c))return ro(c,e,r,i,n,s,o,a);We.mkdir(c,r,Z_(c,e,r,i,n,s,o,a))},Z_=(t,e,r,i,n,s,o,a)=>l=>{l?We.lstat(t,(c,u)=>{if(c)c.path=c.path&&Ke(c.path),a(c);else if(u.isDirectory())ro(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,Z_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Js(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,ro(t,e,r,i,n,s,o,a))},BC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new eo(t,r)}};gu.exports.sync=(t,e)=>{t=Ke(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=Ke(e.cwd),f=x=>{Ki(u,t,!0),x&&a&&X_.sync(x,s,o),n&&We.chmodSync(t,i)};if(u&&to(u,t)===!0)return f();if(t===h)return BC(h),f();if(l)return f(K_.sync(t,i));let m=Ke(Qs.relative(h,t)).split("/"),y=null;for(let x=m.shift(),w=h;x&&(w+="/"+x);x=m.shift())if(w=Ke(Qs.resolve(w)),!to(u,w))try{We.mkdirSync(w,i),y=y||w,Ki(u,w,!0)}catch{let M=We.lstatSync(w);if(M.isDirectory()){Ki(u,w,!0);continue}else if(c){We.unlinkSync(w),We.mkdirSync(w,i),y=y||w,Ki(u,w,!0);continue}else if(M.isSymbolicLink())return new Js(w,w+"/"+m.join("/"))}return f(y)}});var _u=d((Ek,J_)=>{var yu=Object.create(null),{hasOwnProperty:qC}=Object.prototype;J_.exports=t=>(qC.call(yu,t)||(yu[t]=t.normalize("NFKD")),yu[t])});var iS=d((bk,rS)=>{var eS=require("assert"),HC=_u(),$C=ri(),{join:tS}=require("path"),UC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,jC=UC==="win32";rS.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=tS(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:u,dirs:h}=e.get(c),f=new Set;return u.forEach(g=>{let m=t.get(g);eS.equal(m[0],c),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let m=t.get(g);eS(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(g=>o(g)),!0};return{check:s,reserve:(c,u)=>{c=jC?["win32 parallelization disabled"]:c.map(f=>HC($C(tS(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var oS=d((xk,sS)=>{var GC=process.env.__FAKE_PLATFORM__||process.platform,WC=GC==="win32",YC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:zC,O_TRUNC:VC,O_WRONLY:KC,UV_FS_O_FILEMAP:nS=0}=YC.constants,XC=WC&&!!nS,ZC=512*1024,QC=nS|VC|zC|KC;sS.exports=XC?t=>t<ZC?QC:"w":()=>"w"});var Tu=d((wk,ES)=>{"use strict";var JC=require("assert"),e1=Vs(),U=require("fs"),t1=hi(),Pt=require("path"),yS=Q_(),aS=Ac(),r1=iS(),i1=Tc(),Fe=Jr(),n1=ri(),s1=_u(),lS=Symbol("onEntry"),bu=Symbol("checkFs"),cS=Symbol("checkFs2"),so=Symbol("pruneCache"),xu=Symbol("isReusable"),Ye=Symbol("makeFs"),wu=Symbol("file"),vu=Symbol("directory"),oo=Symbol("link"),uS=Symbol("symlink"),hS=Symbol("hardlink"),fS=Symbol("unsupported"),pS=Symbol("checkPath"),Jt=Symbol("mkdir"),Ee=Symbol("onError"),io=Symbol("pending"),dS=Symbol("pend"),gi=Symbol("unpend"),Su=Symbol("ended"),Eu=Symbol("maybeClose"),Ru=Symbol("skip"),Xi=Symbol("doChown"),Zi=Symbol("uid"),Qi=Symbol("gid"),Ji=Symbol("checkedCwd"),_S=require("crypto"),SS=oS(),o1=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,en=o1==="win32",a1=(t,e)=>{if(!en)return U.unlink(t,e);let r=t+".DELETE."+_S.randomBytes(16).toString("hex");U.rename(t,r,i=>{if(i)return e(i);U.unlink(r,e)})},l1=t=>{if(!en)return U.unlinkSync(t);let e=t+".DELETE."+_S.randomBytes(16).toString("hex");U.renameSync(t,e),U.unlinkSync(e)},mS=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,gS=t=>s1(n1(Fe(t))).toLowerCase(),c1=(t,e)=>{e=gS(e);for(let r of t.keys()){let i=gS(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},u1=t=>{for(let e of t.keys())t.delete(e)},tn=class extends e1{constructor(e){if(e||(e={}),e.ondone=r=>{this[Su]=!0,this[Eu]()},super(e),this[Ji]=!1,this.reservations=r1(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[io]=0,this[Su]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||en,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Fe(Pt.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[lS](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Eu](){this[Su]&&this[io]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[pS](e){if(this.strip){let r=Fe(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Fe(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Fe(e.path),i=r.split("/");if(i.includes("..")||en&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=i1(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Pt.isAbsolute(e.path)?e.absolute=Fe(Pt.resolve(e.path)):e.absolute=Fe(Pt.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Fe(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Pt.win32.parse(e.absolute);e.absolute=r+aS.encode(e.absolute.slice(r.length));let{root:i}=Pt.win32.parse(e.path);e.path=i+aS.encode(e.path.slice(i.length))}return!0}[lS](e){if(!this[pS](e))return e.resume();switch(JC.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[bu](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[fS](e)}}[Ee](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[gi](),r.resume())}[Jt](e,r,i){yS(Fe(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Xi](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}[Zi](e){return mS(this.uid,e.uid,this.processUid)}[Qi](e){return mS(this.gid,e.gid,this.processGid)}[wu](e,r){let i=e.mode&4095||this.fmode,n=new t1.WriteStream(e.absolute,{flags:SS(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&U.close(n.fd,()=>{}),n.write=()=>!0,this[Ee](l,e),r()});let s=1,o=l=>{if(l){n.fd&&U.close(n.fd,()=>{}),this[Ee](l,e),r();return}--s===0&&U.close(n.fd,c=>{c?this[Ee](c,e):this[gi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;U.futimes(u,h,f,g=>g?U.utimes(c,h,f,m=>o(m&&g)):o())}if(this[Xi](e)){s++;let h=this[Zi](e),f=this[Qi](e);U.fchown(u,h,f,g=>g?U.chown(c,h,f,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Ee](l,e),r()}),e.pipe(a)),a.pipe(n)}[vu](e,r){let i=e.mode&4095||this.dmode;this[Jt](e.absolute,i,n=>{if(n){this[Ee](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[gi](),e.resume())};e.mtime&&!this.noMtime&&(s++,U.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Xi](e)&&(s++,U.chown(e.absolute,this[Zi](e),this[Qi](e),o)),o()})}[fS](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[uS](e,r){this[oo](e,e.linkpath,"symlink",r)}[hS](e,r){let i=Fe(Pt.resolve(this.cwd,e.linkpath));this[oo](e,i,"link",r)}[dS](){this[io]++}[gi](){this[io]--,this[Eu]()}[Ru](e){this[gi](),e.resume()}[xu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!en}[bu](e){this[dS]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[cS](e,i))}[so](e){e.type==="SymbolicLink"?u1(this.dirCache):e.type!=="Directory"&&c1(this.dirCache,e.absolute)}[cS](e,r){this[so](e);let i=a=>{this[so](e),r(a)},n=()=>{this[Jt](this.cwd,this.dmode,a=>{if(a){this[Ee](a,e),i();return}this[Ji]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Fe(Pt.dirname(e.absolute));if(a!==this.cwd)return this[Jt](a,this.dmode,l=>{if(l){this[Ee](l,e),i();return}o()})}o()},o=()=>{U.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[Ru](e),i();return}if(a||this[xu](e,l))return this[Ye](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return c?U.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return U.rmdir(e.absolute,c=>this[Ye](c,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);a1(e.absolute,c=>this[Ye](c,e,i))})};this[Ji]?s():n()}[Ye](e,r,i){if(e){this[Ee](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wu](r,i);case"Link":return this[hS](r,i);case"SymbolicLink":return this[uS](r,i);case"Directory":case"GNUDumpDir":return this[vu](r,i)}}[oo](e,r,i,n){U[i](r,e.absolute,s=>{s?this[Ee](s,e):(this[gi](),e.resume()),n()})}},no=t=>{try{return[null,t()]}catch(e){return[e,null]}},Au=class extends tn{[Ye](e,r){return super[Ye](e,r,()=>{})}[bu](e){if(this[so](e),!this[Ji]){let s=this[Jt](this.cwd,this.dmode);if(s)return this[Ee](s,e);this[Ji]=!0}if(e.absolute!==this.cwd){let s=Fe(Pt.dirname(e.absolute));if(s!==this.cwd){let o=this[Jt](s,this.dmode);if(o)return this[Ee](o,e)}}let[r,i]=no(()=>U.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Ru](e);if(r||this[xu](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?no(()=>{U.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=no(()=>U.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:no(()=>l1(e.absolute));this[Ye](n,e)}[wu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{U.closeSync(s)}catch(c){l=c}(a||l)&&this[Ee](a||l,e),r()},s;try{s=U.openSync(e.absolute,SS(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ee](a,e)),e.pipe(o)),o.on("data",a=>{try{U.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{U.futimesSync(s,c,u)}catch(h){try{U.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[Xi](e)){let c=this[Zi](e),u=this[Qi](e);try{U.fchownSync(s,c,u)}catch(h){try{U.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[vu](e,r){let i=e.mode&4095||this.dmode,n=this[Jt](e.absolute,i);if(n){this[Ee](n,e),r();return}if(e.mtime&&!this.noMtime)try{U.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Xi](e))try{U.chownSync(e.absolute,this[Zi](e),this[Qi](e))}catch{}r(),e.resume()}[Jt](e,r){try{return yS.sync(Fe(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[oo](e,r,i,n){try{U[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ee](s,e)}}};tn.Sync=Au;ES.exports=tn});var RS=d((vk,vS)=>{"use strict";var h1=Vr(),ao=Tu(),xS=require("fs"),wS=hi(),bS=require("path"),Ou=ri();vS.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=h1(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&&f1(i,e),i.file&&i.sync?p1(i):i.file?d1(i,r):i.sync?m1(i):g1(i)};var f1=(t,e)=>{let r=new Map(e.map(s=>[Ou(s),!0])),i=t.filter,n=(s,o)=>{let a=o||bS.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(bS.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Ou(s)):s=>n(Ou(s))},p1=t=>{let e=new ao.Sync(t),r=t.file,i=xS.statSync(r),n=t.maxReadSize||16*1024*1024;new wS.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},d1=(t,e)=>{let r=new ao(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),xS.stat(n,(l,c)=>{if(l)a(l);else{let u=new wS.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},m1=t=>new ao.Sync(t),g1=t=>new ao(t)});var AS=d(ae=>{"use strict";ae.c=ae.create=a_();ae.r=ae.replace=cu();ae.t=ae.list=Ks();ae.u=ae.update=g_();ae.x=ae.extract=RS();ae.Pack=Ns();ae.Unpack=Tu();ae.Parse=Vs();ae.ReadEntry=ys();ae.WriteEntry=Mc();ae.Header=ti();ae.Pax=Ss();ae.types=Sc()});var LS=d((Ck,PS)=>{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))}PS.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 IS=d(wr=>{var b1=LS();wr.operation=function(t){var e=wr.timeouts(t);return new b1(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};wr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};wr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=wr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var NS=d((Lk,kS)=>{kS.exports=IS()});var FS=d((Ik,DS)=>{var x1=NS();function w1(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=x1.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(g){l(g,u)})}o.attempt(c)}return new Promise(r)}DS.exports=w1});var B1={};Du(B1,{default:()=>M1,hasLegacyEnvVarDependencies:()=>Iu,migrateConfig:()=>ku,migrateDependencies:()=>Nu,migrateGlobal:()=>GS,migratePipeline:()=>jS,transformer:()=>WS});module.exports=QS(B1);var Pu=q(require("path")),Lu=q(require("fs-extra"));var JS=q(Uu());function mo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t){return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(t)}function go(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yo(t,e){if(e&&(_i(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return go(t)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tr(t)}function pt(t,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},pt(t,e)}function _o(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 So(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Eo(){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 vr(t,e,r){return Eo()?vr=Reflect.construct.bind():vr=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&pt(c,o.prototype),c},vr.apply(null,arguments)}function Si(t){var e=typeof Map=="function"?new Map:void 0;return Si=function(i){if(i===null||!So(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 vr(i,arguments,tr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),pt(n,i)},Si(t)}var bo=q(require("find-up")),an=q(require("path")),ln=q(require("fs-extra")),eE=function(t){_o(e,t);function e(r){var i;return mo(this,e),i=yo(this,tr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Si(Error));function tE(t,e){try{var r=ln.default.readJsonSync(an.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function rE(t){try{var e=ln.default.readJsonSync(an.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function iE(t){var e=ln.default.existsSync(an.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function ju(t){var e={current:void 0},r=(0,bo.sync)(function(i){return[rE(i),tE(i,e),iE(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new eE(t);return r===void 0?e.current:r}var Gu=q(require("json5"));var xo=q(require("fs")),Ei=q(require("path"));function wo({target:t,cwd:e,contentCheck:r}){let i=Ei.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=xo.default.readFileSync(Ei.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(xo.default.existsSync(Ei.default.join(s,t))){n=!0;break}s=Ei.default.dirname(s)}return n?s:null}function nE(t){let e=Gu.default.parse(t);return!(e&&"extends"in e)}var vo={};function Ro(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&vo[i])return vo[i];let n=wo({target:"turbo.json",cwd:i,contentCheck:nE});if(!n)try{if(n=ju(i),!n)return null}catch{return null}return r&&(vo[i]=n),n}var Pi=q(require("fs")),Ht=q(require("path"));function oh(t){return typeof t=="undefined"||t===null}function sE(t){return typeof t=="object"&&t!==null}function oE(t){return Array.isArray(t)?t:oh(t)?[]:[t]}function aE(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 lE(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function cE(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var uE=oh,hE=sE,fE=oE,pE=lE,dE=cE,mE=aE,oe={isNothing:uE,isObject:hE,toArray:fE,repeat:pE,isNegativeZero:dE,extend:mE};function ah(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 xi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=oh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}xi.prototype=Object.create(Error.prototype);xi.prototype.constructor=xi;xi.prototype.toString=function(e){return this.name+": "+oh(this,e)};var we=xi;function Ro(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 Ao(t,e){return oe.repeat(" ",e-t.length)+t}function mE(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=Ro(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=oe.repeat(" ",e.indent)+Ao((t.line-l+1).toString(),u)+" | "+c.str+`
11
- `+a;for(c=Ro(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+Ao((t.line+1).toString(),u)+" | "+c.str+`
10
+ `+t.mark.snippet),i+" "+r):i}function xi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=ah(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}xi.prototype=Object.create(Error.prototype);xi.prototype.constructor=xi;xi.prototype.toString=function(e){return this.name+": "+ah(this,e)};var we=xi;function Ao(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 To(t,e){return oe.repeat(" ",e-t.length)+t}function gE(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=Ao(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=oe.repeat(" ",e.indent)+To((t.line-l+1).toString(),u)+" | "+c.str+`
11
+ `+a;for(c=Ao(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+To((t.line+1).toString(),u)+" | "+c.str+`
12
12
  `,a+=oe.repeat("-",e.indent+u+3+c.pos)+`^
13
- `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Ro(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=oe.repeat(" ",e.indent)+Ao((t.line+l+1).toString(),u)+" | "+c.str+`
14
- `;return a.replace(/\n$/,"")}var gE=mE,yE=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_E=["scalar","sequence","mapping"];function SE(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function EE(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(yE.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=SE(e.styleAliases||null),_E.indexOf(this.kind)===-1)throw new we('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=EE;function ju(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 bE(){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 Oo(t){return this.extend(t)}Oo.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(Oo.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=ju(n,"implicit"),n.compiledExplicit=ju(n,"explicit"),n.compiledTypeMap=bE(n.compiledImplicit,n.compiledExplicit),n};var ah=Oo,lh=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ch=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),uh=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),hh=new ah({explicit:[lh,ch,uh]});function xE(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function wE(){return null}function vE(t){return t===null}var fh=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:xE,construct:wE,predicate:vE,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function RE(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 AE(t){return t==="true"||t==="True"||t==="TRUE"}function TE(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var ph=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:RE,construct:AE,predicate:TE,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 OE(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function CE(t){return 48<=t&&t<=55}function PE(t){return 48<=t&&t<=57}function LE(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(!OE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!CE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!PE(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function IE(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 kE(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var dh=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:LE,construct:IE,predicate:kE,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),NE=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function DE(t){return!(t===null||!NE.test(t)||t[t.length-1]==="_")}function FE(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 ME=/^[-+]?[0-9]+e/;function BE(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),ME.test(r)?r.replace("e",".e"):r}function qE(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var mh=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:DE,construct:FE,predicate:qE,represent:BE,defaultStyle:"lowercase"}),gh=hh.extend({implicit:[fh,ph,dh,mh]}),yh=gh,_h=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Sh=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 HE(t){return t===null?!1:_h.exec(t)!==null||Sh.exec(t)!==null}function $E(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=_h.exec(t),e===null&&(e=Sh.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function UE(t){return t.toISOString()}var Eh=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HE,construct:$E,instanceOf:Date,represent:UE});function GE(t){return t==="<<"||t===null}var bh=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GE}),ko=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
- \r`;function jE(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=ko;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 WE(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=ko,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 YE(t){var e="",r=0,i,n,s=t.length,o=ko;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 zE(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var xh=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jE,construct:WE,predicate:zE,represent:YE}),VE=Object.prototype.hasOwnProperty,KE=Object.prototype.toString;function XE(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,KE.call(n)!=="[object Object]")return!1;for(s in n)if(VE.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function ZE(t){return t!==null?t:[]}var wh=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:XE,construct:ZE}),QE=Object.prototype.toString;function JE(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],QE.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function eb(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 vh=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:JE,construct:eb}),tb=Object.prototype.hasOwnProperty;function rb(t){if(t===null)return!0;var e,r=t;for(e in r)if(tb.call(r,e)&&r[e]!==null)return!1;return!0}function ib(t){return t!==null?t:{}}var Rh=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:rb,construct:ib}),No=yh.extend({implicit:[Eh,bh],explicit:[xh,wh,vh,Rh]}),It=Object.prototype.hasOwnProperty,cn=1,Ah=2,Th=3,un=4,To=1,nb=2,Wu=3,sb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ob=/[\x85\u2028\u2029]/,ab=/[,\[\]\{\}]/,Oh=/^(?:!|!!|![a-z\-]+!)$/i,Ch=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Yu(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 Ar(t){return t===44||t===91||t===93||t===123||t===125}function lb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function cb(t){return t===120?2:t===117?4:t===85?8:0}function ub(t){return 48<=t&&t<=57?t-48:-1}function zu(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 hb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Ph=new Array(256),Lh=new Array(256);for(tr=0;tr<256;tr++)Ph[tr]=zu(tr)?1:0,Lh[tr]=zu(tr);var tr;function fb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||No,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 Ih(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=gE(r),new we(e,r)}function C(t,e){throw Ih(t,e)}function hn(t,e){t.onWarning&&t.onWarning.call(null,Ih(t,e))}var Vu={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&&hn(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],Oh.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),It.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ch.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Lt(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||C(t,"expected valid JSON character");else sb.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Ku(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],It.call(e,s)||(e[s]=r[s],i[s]=!0)}function Tr(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Yu(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Yu(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)Ku(t,e,s[c],r);else Ku(t,e,s,r);else!t.json&&!It.call(r,n)&&It.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,C(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Do(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(Do(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&&hn(t,"deficient indentation"),i}function dn(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 Fo(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
- `,e-1))}function pb(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),ve(g)||Ar(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&&Ar(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&&Ar(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),ve(i))break}else{if(t.position===t.lineStart&&dn(t)||r&&Ar(g))break;if(Ze(g))if(l=t.line,c=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Lt(t,s,o,!1),Fo(t,t.line-l),s=o=t.position,a=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Lt(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function db(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Lt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ze(r)?(Lt(t,i,n,!0),Fo(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&dn(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 mb(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Lt(t,r,t.position,!0),t.position++,!0;if(a===92){if(Lt(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&Ph[a])t.result+=Lh[a],t.position++;else if((o=cb(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=lb(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=hb(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(Lt(t,r,i,!0),Fo(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&dn(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 gb(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,g,m=Object.create(null),y,x,w,R;if(R=t.input.charCodeAt(t.position),R===91)u=93,g=!1,a=[];else if(R===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),R=t.input.charCodeAt(++t.position);R!==0;){if(te(t,!0,e),R=t.input.charCodeAt(t.position),R===u)return t.position++,t.tag=o,t.anchor=l,t.kind=g?"mapping":"sequence",t.result=a,!0;r?R===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),x=y=w=null,h=f=!1,R===63&&(c=t.input.charCodeAt(t.position+1),ve(c)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Or(t,e,cn,!1,!0),x=t.tag,y=t.result,te(t,!0,e),R=t.input.charCodeAt(t.position),(f||t.line===i)&&R===58&&(h=!0,R=t.input.charCodeAt(++t.position),te(t,!0,e),Or(t,e,cn,!1,!0),w=t.result),g?Tr(t,a,m,x,y,w,i,n,s):h?a.push(Tr(t,null,m,x,y,w,i,n,s)):a.push(y),te(t,!0,e),R=t.input.charCodeAt(t.position),R===44?(r=!0,R=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function yb(t,e){var r,i,n=To,s=!1,o=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)To===n?n=h===43?Wu:nb:C(t,"repeat of a chomping mode identifier");else if((u=ub(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(Do(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ze(h)){l++;continue}if(t.lineIndent<a){n===Wu?t.result+=oe.repeat(`
18
- `,s?1+l:l):n===To&&s&&(t.result+=`
19
- `);break}for(i?rr(h)?(c=!0,t.result+=oe.repeat(`
13
+ `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Ao(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=oe.repeat(" ",e.indent)+To((t.line+l+1).toString(),u)+" | "+c.str+`
14
+ `;return a.replace(/\n$/,"")}var yE=gE,_E=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],SE=["scalar","sequence","mapping"];function EE(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function bE(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(_E.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=EE(e.styleAliases||null),SE.indexOf(this.kind)===-1)throw new we('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=bE;function Wu(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 xE(){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 Co(t){return this.extend(t)}Co.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(Co.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Wu(n,"implicit"),n.compiledExplicit=Wu(n,"explicit"),n.compiledTypeMap=xE(n.compiledImplicit,n.compiledExplicit),n};var lh=Co,ch=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),uh=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),hh=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),fh=new lh({explicit:[ch,uh,hh]});function wE(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function vE(){return null}function RE(t){return t===null}var ph=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:wE,construct:vE,predicate:RE,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function AE(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 TE(t){return t==="true"||t==="True"||t==="TRUE"}function OE(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var dh=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AE,construct:TE,predicate:OE,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 CE(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function PE(t){return 48<=t&&t<=55}function LE(t){return 48<=t&&t<=57}function IE(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(!CE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!PE(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!LE(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function kE(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 NE(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var mh=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:IE,construct:kE,predicate:NE,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"]}}),DE=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function FE(t){return!(t===null||!DE.test(t)||t[t.length-1]==="_")}function ME(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 BE=/^[-+]?[0-9]+e/;function qE(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),BE.test(r)?r.replace("e",".e"):r}function HE(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var gh=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:FE,construct:ME,predicate:HE,represent:qE,defaultStyle:"lowercase"}),yh=fh.extend({implicit:[ph,dh,mh,gh]}),_h=yh,Sh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Eh=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 $E(t){return t===null?!1:Sh.exec(t)!==null||Eh.exec(t)!==null}function UE(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=Sh.exec(t),e===null&&(e=Eh.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function jE(t){return t.toISOString()}var bh=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$E,construct:UE,instanceOf:Date,represent:jE});function GE(t){return t==="<<"||t===null}var xh=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GE}),No=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function WE(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=No;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function YE(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=No,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 zE(t){var e="",r=0,i,n,s=t.length,o=No;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 VE(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wh=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:WE,construct:YE,predicate:VE,represent:zE}),KE=Object.prototype.hasOwnProperty,XE=Object.prototype.toString;function ZE(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,XE.call(n)!=="[object Object]")return!1;for(s in n)if(KE.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 QE(t){return t!==null?t:[]}var vh=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ZE,construct:QE}),JE=Object.prototype.toString;function eb(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],JE.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function tb(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 Rh=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eb,construct:tb}),rb=Object.prototype.hasOwnProperty;function ib(t){if(t===null)return!0;var e,r=t;for(e in r)if(rb.call(r,e)&&r[e]!==null)return!1;return!0}function nb(t){return t!==null?t:{}}var Ah=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:ib,construct:nb}),Do=_h.extend({implicit:[bh,xh],explicit:[wh,vh,Rh,Ah]}),It=Object.prototype.hasOwnProperty,cn=1,Th=2,Oh=3,un=4,Oo=1,sb=2,Yu=3,ob=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ab=/[\x85\u2028\u2029]/,lb=/[,\[\]\{\}]/,Ch=/^(?:!|!!|![a-z\-]+!)$/i,Ph=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zu(t){return Object.prototype.toString.call(t)}function Ze(t){return t===10||t===13}function ir(t){return t===9||t===32}function ve(t){return t===9||t===32||t===10||t===13}function Ar(t){return t===44||t===91||t===93||t===123||t===125}function cb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function ub(t){return t===120?2:t===117?4:t===85?8:0}function hb(t){return 48<=t&&t<=57?t-48:-1}function Vu(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 fb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Lh=new Array(256),Ih=new Array(256);for(rr=0;rr<256;rr++)Lh[rr]=Vu(rr)?1:0,Ih[rr]=Vu(rr);var rr;function pb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Do,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 kh(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=yE(r),new we(e,r)}function C(t,e){throw kh(t,e)}function hn(t,e){t.onWarning&&t.onWarning.call(null,kh(t,e))}var Ku={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&&hn(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],Ch.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),It.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ph.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Lt(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||C(t,"expected valid JSON character");else ob.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Xu(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],It.call(e,s)||(e[s]=r[s],i[s]=!0)}function Tr(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&zu(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&zu(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)Xu(t,e,s[c],r);else Xu(t,e,s,r);else!t.json&&!It.call(r,n)&&It.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,C(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Fo(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(;ir(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(Fo(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&&hn(t,"deficient indentation"),i}function dn(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 Mo(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
+ `,e-1))}function db(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),ve(g)||Ar(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&&Ar(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&&Ar(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),ve(i))break}else{if(t.position===t.lineStart&&dn(t)||r&&Ar(g))break;if(Ze(g))if(l=t.line,c=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Lt(t,s,o,!1),Mo(t,t.line-l),s=o=t.position,a=!1),ir(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Lt(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function mb(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Lt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ze(r)?(Lt(t,i,n,!0),Mo(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&dn(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 gb(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Lt(t,r,t.position,!0),t.position++,!0;if(a===92){if(Lt(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&Lh[a])t.result+=Ih[a],t.position++;else if((o=ub(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=cb(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=fb(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(Lt(t,r,i,!0),Mo(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&dn(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 yb(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,g,m=Object.create(null),y,x,w,R;if(R=t.input.charCodeAt(t.position),R===91)u=93,g=!1,a=[];else if(R===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),R=t.input.charCodeAt(++t.position);R!==0;){if(te(t,!0,e),R=t.input.charCodeAt(t.position),R===u)return t.position++,t.tag=o,t.anchor=l,t.kind=g?"mapping":"sequence",t.result=a,!0;r?R===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),x=y=w=null,h=f=!1,R===63&&(c=t.input.charCodeAt(t.position+1),ve(c)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Or(t,e,cn,!1,!0),x=t.tag,y=t.result,te(t,!0,e),R=t.input.charCodeAt(t.position),(f||t.line===i)&&R===58&&(h=!0,R=t.input.charCodeAt(++t.position),te(t,!0,e),Or(t,e,cn,!1,!0),w=t.result),g?Tr(t,a,m,x,y,w,i,n,s):h?a.push(Tr(t,null,m,x,y,w,i,n,s)):a.push(y),te(t,!0,e),R=t.input.charCodeAt(t.position),R===44?(r=!0,R=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function _b(t,e){var r,i,n=Oo,s=!1,o=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Oo===n?n=h===43?Yu:sb:C(t,"repeat of a chomping mode identifier");else if((u=hb(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(ir(h)){do h=t.input.charCodeAt(++t.position);while(ir(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Ze(h)&&h!==0)}for(;h!==0;){for(Fo(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ze(h)){l++;continue}if(t.lineIndent<a){n===Yu?t.result+=oe.repeat(`
18
+ `,s?1+l:l):n===Oo&&s&&(t.result+=`
19
+ `);break}for(i?ir(h)?(c=!0,t.result+=oe.repeat(`
20
20
  `,s?1+l:l)):c?(c=!1,t.result+=oe.repeat(`
21
21
  `,l+1)):l===0?s&&(t.result+=" "):t.result+=oe.repeat(`
22
22
  `,l):t.result+=oe.repeat(`
23
- `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Lt(t,r,t.position,!1)}return!0}function Xu(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!ve(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Or(t,e,Th,!1,!0),s.push(t.result),te(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)C(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function _b(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,m=null,y=null,x=!1,w=!1,R;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),R=t.input.charCodeAt(t.position);R!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(R===63||R===58)&&ve(i))R===63?(x&&(Tr(t,h,f,g,m,null,o,a,l),g=m=y=null),w=!0,x=!0,n=!0):x?(x=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,R=i;else{if(o=t.line,a=t.lineStart,l=t.position,!Or(t,r,Ah,!1,!0))break;if(t.line===s){for(R=t.input.charCodeAt(t.position);rr(R);)R=t.input.charCodeAt(++t.position);if(R===58)R=t.input.charCodeAt(++t.position),ve(R)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Tr(t,h,f,g,m,null,o,a,l),g=m=y=null),w=!0,x=!1,n=!1,g=t.tag,m=t.result;else if(w)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(w)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(x&&(o=t.line,a=t.lineStart,l=t.position),Or(t,e,un,!0,n)&&(x?m=t.result:y=t.result),x||(Tr(t,h,f,g,m,y,o,a,l),g=m=y=null),te(t,!0,-1),R=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&R!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Tr(t,h,f,g,m,null,o,a,l),w&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),w}function Sb(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),Oh.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),ab.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Ch.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:It.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function Eb(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)&&!Ar(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 bb(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)&&!Ar(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),It.call(t.anchorMap,r)||C(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function Or(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,g,m,y,x;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=un===r||Th===r,i&&te(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Sb(t)||Eb(t);)te(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||un===r)&&(cn===r||Ah===r?y=e:y=e+1,x=t.position-t.lineStart,l===1?a&&(Xu(t,x)||_b(t,x,y))||gb(t,y)?u=!0:(o&&yb(t,y)||db(t,y)||mb(t,y)?u=!0:bb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):pb(t,y,cn===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Xu(t,x))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(It.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){m=g[h];break}m||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function xb(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&&Do(t),It.call(Vu,i)?Vu[i](t,i,n):hn(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"),Or(t,t.lineIndent-1,un,!1,!0),te(t,!0,-1),t.checkLineBreaks&&ob.test(t.input.slice(e,t.position))&&hn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&dn(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 kh(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 fb(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;)xb(r);return r.documents}function wb(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=kh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function vb(t,e){var r=kh(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 Rb=wb,Ab=vb,Nh={loadAll:Rb,load:Ab},Dh=Object.prototype.toString,Fh=Object.prototype.hasOwnProperty,Mo=65279,Tb=9,wi=10,Ob=13,Cb=32,Pb=33,Lb=34,Co=35,Ib=37,kb=38,Nb=39,Db=42,Mh=44,Fb=45,fn=58,Mb=61,Bb=62,qb=63,Hb=64,Bh=91,qh=93,$b=96,Hh=123,Ub=124,$h=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 Gb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Wb(t,e){var r,i,n,s,o,a,l;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&Fh.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function Yb(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 zb=1,vi=2;function Vb(t){this.schema=t.schema||No,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=Wb(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==='"'?vi:zb,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 Zu(t,e){for(var r=oe.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
23
+ `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Lt(t,r,t.position,!1)}return!0}function Zu(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!ve(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Or(t,e,Oh,!1,!0),s.push(t.result),te(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)C(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Sb(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,m=null,y=null,x=!1,w=!1,R;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),R=t.input.charCodeAt(t.position);R!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(R===63||R===58)&&ve(i))R===63?(x&&(Tr(t,h,f,g,m,null,o,a,l),g=m=y=null),w=!0,x=!0,n=!0):x?(x=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,R=i;else{if(o=t.line,a=t.lineStart,l=t.position,!Or(t,r,Th,!1,!0))break;if(t.line===s){for(R=t.input.charCodeAt(t.position);ir(R);)R=t.input.charCodeAt(++t.position);if(R===58)R=t.input.charCodeAt(++t.position),ve(R)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Tr(t,h,f,g,m,null,o,a,l),g=m=y=null),w=!0,x=!1,n=!1,g=t.tag,m=t.result;else if(w)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(w)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(x&&(o=t.line,a=t.lineStart,l=t.position),Or(t,e,un,!0,n)&&(x?m=t.result:y=t.result),x||(Tr(t,h,f,g,m,y,o,a,l),g=m=y=null),te(t,!0,-1),R=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&R!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Tr(t,h,f,g,m,null,o,a,l),w&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),w}function Eb(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),Ch.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),lb.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Ph.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:It.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function bb(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)&&!Ar(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 xb(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)&&!Ar(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),It.call(t.anchorMap,r)||C(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function Or(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,g,m,y,x;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=un===r||Oh===r,i&&te(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Eb(t)||bb(t);)te(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||un===r)&&(cn===r||Th===r?y=e:y=e+1,x=t.position-t.lineStart,l===1?a&&(Zu(t,x)||Sb(t,x,y))||yb(t,y)?u=!0:(o&&_b(t,y)||mb(t,y)||gb(t,y)?u=!0:xb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):db(t,y,cn===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Zu(t,x))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(It.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){m=g[h];break}m||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function wb(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(;ir(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&&Fo(t),It.call(Ku,i)?Ku[i](t,i,n):hn(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"),Or(t,t.lineIndent-1,un,!1,!0),te(t,!0,-1),t.checkLineBreaks&&ab.test(t.input.slice(e,t.position))&&hn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&dn(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 Nh(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 pb(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;)wb(r);return r.documents}function vb(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Nh(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=Nh(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 Ab=vb,Tb=Rb,Dh={loadAll:Ab,load:Tb},Fh=Object.prototype.toString,Mh=Object.prototype.hasOwnProperty,Bo=65279,Ob=9,wi=10,Cb=13,Pb=32,Lb=33,Ib=34,Po=35,kb=37,Nb=38,Db=39,Fb=42,Bh=44,Mb=45,fn=58,Bb=61,qb=62,Hb=63,$b=64,qh=91,Hh=93,Ub=96,$h=123,jb=124,Uh=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 Gb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Wb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Yb(t,e){var r,i,n,s,o,a,l;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&Mh.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function zb(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 Vb=1,vi=2;function Kb(t){this.schema=t.schema||Do,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=Yb(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==='"'?vi:Vb,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 Qu(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
- `&&(s+=r),s+=o;return s}function Po(t,e){return`
27
- `+oe.repeat(" ",t.indent*e)}function Kb(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 pn(t){return t===Cb||t===Tb}function Ri(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Mo||65536<=t&&t<=1114111}function Qu(t){return Ri(t)&&t!==Mo&&t!==Ob&&t!==wi}function Ju(t,e,r){var i=Qu(t),n=i&&!pn(t);return(r?i:i&&t!==Mh&&t!==Bh&&t!==qh&&t!==Hh&&t!==$h)&&t!==Co&&!(e===fn&&!n)||Qu(e)&&!pn(e)&&t===Co||e===fn&&n}function Xb(t){return Ri(t)&&t!==Mo&&!pn(t)&&t!==Fb&&t!==qb&&t!==fn&&t!==Mh&&t!==Bh&&t!==qh&&t!==Hh&&t!==$h&&t!==Co&&t!==kb&&t!==Db&&t!==Pb&&t!==Ub&&t!==Mb&&t!==Bb&&t!==Nb&&t!==Lb&&t!==Ib&&t!==Hb&&t!==$b}function Zb(t){return!pn(t)&&t!==fn}function bi(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 Uh(t){var e=/^\n* /;return e.test(t)}var Gh=1,Lo=2,jh=3,Wh=4,Rr=5;function Qb(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,g=i!==-1,m=-1,y=Xb(bi(t,0))&&Zb(bi(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=bi(t,l),!Ri(c))return Rr;y=y&&Ju(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=bi(t,l),c===wi)h=!0,g&&(f=f||l-m-1>i&&t[m+1]!==" ",m=l);else if(!Ri(c))return Rr;y=y&&Ju(c,u,a),u=c}f=f||g&&l-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?Gh:s===vi?Rr:Lo:r>9&&Uh(t)?Rr:o?s===vi?Rr:Lo:f?Wh:jh}function Jb(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===vi?'""':"''";if(!t.noCompatMode&&(Gb.indexOf(e)!==-1||jb.test(e)))return t.quotingType===vi?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return Kb(t,c)}switch(Qb(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case Gh:return e;case Lo:return"'"+e.replace(/'/g,"''")+"'";case jh:return"|"+eh(e,t.indent)+th(Zu(e,s));case Wh:return">"+eh(e,t.indent)+th(Zu(e0(e,o),s));case Rr:return'"'+t0(e)+'"';default:throw new we("impossible error: invalid scalar style")}}()}function eh(t,e){var r=Uh(t)?String(e):"",i=t[t.length-1]===`
26
+ `&&(s+=r),s+=o;return s}function Lo(t,e){return`
27
+ `+oe.repeat(" ",t.indent*e)}function Xb(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 pn(t){return t===Pb||t===Ob}function Ri(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Bo||65536<=t&&t<=1114111}function Ju(t){return Ri(t)&&t!==Bo&&t!==Cb&&t!==wi}function eh(t,e,r){var i=Ju(t),n=i&&!pn(t);return(r?i:i&&t!==Bh&&t!==qh&&t!==Hh&&t!==$h&&t!==Uh)&&t!==Po&&!(e===fn&&!n)||Ju(e)&&!pn(e)&&t===Po||e===fn&&n}function Zb(t){return Ri(t)&&t!==Bo&&!pn(t)&&t!==Mb&&t!==Hb&&t!==fn&&t!==Bh&&t!==qh&&t!==Hh&&t!==$h&&t!==Uh&&t!==Po&&t!==Nb&&t!==Fb&&t!==Lb&&t!==jb&&t!==Bb&&t!==qb&&t!==Db&&t!==Ib&&t!==kb&&t!==$b&&t!==Ub}function Qb(t){return!pn(t)&&t!==fn}function bi(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 jh(t){var e=/^\n* /;return e.test(t)}var Gh=1,Io=2,Wh=3,Yh=4,Rr=5;function Jb(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,g=i!==-1,m=-1,y=Zb(bi(t,0))&&Qb(bi(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=bi(t,l),!Ri(c))return Rr;y=y&&eh(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=bi(t,l),c===wi)h=!0,g&&(f=f||l-m-1>i&&t[m+1]!==" ",m=l);else if(!Ri(c))return Rr;y=y&&eh(c,u,a),u=c}f=f||g&&l-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?Gh:s===vi?Rr:Io:r>9&&jh(t)?Rr:o?s===vi?Rr:Io:f?Yh:Wh}function e0(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===vi?'""':"''";if(!t.noCompatMode&&(Gb.indexOf(e)!==-1||Wb.test(e)))return t.quotingType===vi?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return Xb(t,c)}switch(Jb(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case Gh:return e;case Io:return"'"+e.replace(/'/g,"''")+"'";case Wh:return"|"+th(e,t.indent)+rh(Qu(e,s));case Yh:return">"+th(e,t.indent)+rh(Qu(t0(e,o),s));case Rr:return'"'+r0(e)+'"';default:throw new we("impossible error: invalid scalar style")}}()}function th(t,e){var r=jh(t)?String(e):"",i=t[t.length-1]===`
28
28
  `,n=i&&(t[t.length-2]===`
29
29
  `||t===`
30
30
  `),s=n?"+":i?"":"-";return r+s+`
31
- `}function th(t){return t[t.length-1]===`
32
- `?t.slice(0,-1):t}function e0(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
33
- `);return c=c!==-1?c:t.length,r.lastIndex=c,rh(t.slice(0,c),e)}(),n=t[0]===`
31
+ `}function rh(t){return t[t.length-1]===`
32
+ `?t.slice(0,-1):t}function t0(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
33
+ `);return c=c!==-1?c:t.length,r.lastIndex=c,ih(t.slice(0,c),e)}(),n=t[0]===`
34
34
  `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
35
- `:"")+rh(l,e),n=s}return i}function rh(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
35
+ `:"")+ih(l,e),n=s}return i}function ih(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
36
36
  `+t.slice(n,s),n=s+1),o=a;return l+=`
37
37
  `,t.length-n>e&&o>n?l+=t.slice(n,o)+`
38
- `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function t0(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=bi(t,n),i=pe[r],!i&&Ri(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Yb(r);return e}function r0(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 ih(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(dt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Po(t,e)),t.dump&&wi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function i0(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),dt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function n0(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new we("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Po(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),dt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&wi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Po(t,e)),dt(t,e+1,u,!0,h)&&(t.dump&&wi===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function nh(t,e,r){var i,n,s,o,a,l;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,Dh.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(Fh.call(a.represent,l))i=a.represent[l](e,l);else throw new we("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,nh(t,r,!1)||nh(t,r,!0);var a=Dh.call(t.dump),l=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(n0(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(i0(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?ih(t,e-1,t.dump,n):ih(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(r0(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Jb(t,t.dump,e,s,l);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!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function s0(t,e){var r=[],i=[],n,s;for(Io(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Io(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)Io(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Io(t[i[n]],e,r)}function o0(t,e){e=e||{};var r=new Vb(e);r.noRefs||s0(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),dt(r,0,i,!0,!0)?r.dump+`
39
- `:""}var a0=o0,l0={dump:a0};function Bo(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 c0=fe,u0=ah,h0=hh,f0=gh,p0=yh,d0=No,m0=Nh.load,g0=Nh.loadAll,y0=l0.dump,_0=we,S0={binary:xh,float:mh,map:uh,null:fh,pairs:vh,set:Rh,timestamp:Eh,bool:ph,int:dh,merge:bh,omap:wh,seq:ch,str:lh},E0=Bo("safeLoad","load"),b0=Bo("safeLoadAll","loadAll"),x0=Bo("safeDump","dump"),w0={Type:c0,Schema:u0,FAILSAFE_SCHEMA:h0,JSON_SCHEMA:f0,CORE_SCHEMA:p0,DEFAULT_SCHEMA:d0,load:m0,loadAll:g0,dump:y0,YAMLException:_0,types:S0,safeLoad:E0,safeLoadAll:b0,safeDump:x0},Yh=w0;var Gd=q(Nd()),jd=q(require("json5"));var $e={};Nu($e,{bold:()=>CR,dimmed:()=>LR,error:()=>Ud,grey:()=>IR,info:()=>OR,item:()=>kR,log:()=>qt,turboBlue:()=>qr,turboGradient:()=>TR,turboLoader:()=>$d,turboRed:()=>qd,underline:()=>PR,warn:()=>bl,yellow:()=>Hd});var Ae=require("picocolors"),Dd=q(require("ora")),Fd=q(require("gradient-string")),Md="#0099F7",Bd="#F11712",AR="#FFFF00",El=t=>{let e=NR(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},TR=(0,Fd.default)(Md,Bd),qr=El(Md),qd=El(Bd),Hd=El(AR),$d=t=>(0,Dd.default)({text:t,spinner:{frames:[" ",qr("> "),qr(">> "),qr(">>>")]}}),OR=(...t)=>{qt(qr((0,Ae.bold)(">>>")),t.join(" "))},CR=(...t)=>{qt((0,Ae.bold)(t.join(" ")))},PR=(...t)=>{qt((0,Ae.underline)(t.join(" ")))},LR=(...t)=>{qt((0,Ae.dim)(t.join(" ")))},IR=(...t)=>{qt((0,Ae.gray)(t.join(" ")))},kR=(...t)=>{qt(qr((0,Ae.bold)(" \u2022")),t.join(" "))},qt=(...t)=>{console.log(...t)},bl=(...t)=>{console.error(Hd((0,Ae.bold)(">>>")),t.join(" "))},Ud=(...t)=>{console.error(qd((0,Ae.bold)(">>>")),t.join(" "))};function NR(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 DR="turbo.json";var xl={};function FR(t){try{if(Pi.default.existsSync(lr.default.join(t,"pnpm-workspace.yaml")))return Yh.load(Pi.default.readFileSync(lr.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Pi.default.readFileSync(lr.default.join(t,"package.json"),"utf8"));if(e.workspaces){if("packages"in e.workspaces)return e.workspaces.packages||[];if(Array.isArray(e.workspaces))return e.workspaces}return[]}catch{return[]}}function wl(t,e){var s;let r=vo(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in xl)return xl[t];if(r){let a=FR(r).map(c=>`${c}/turbo.json`);(0,Gd.sync)([DR,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(c=>lr.default.join(r,c)).forEach(c=>{try{let u=Pi.default.readFileSync(c,"utf8"),h=jd.default.parse(u),f=lr.default.dirname(c)===r;if(f){if("extends"in h)return}else if(!("extends"in h))return;i.push({config:h,turboConfigPath:c,workspacePath:lr.default.dirname(c),isRootConfig:f})}catch(u){bl(u)}})}return n&&t&&(xl[t]=i),i}var PT=q(require("os")),LT=q(Tg());var IT=q(require("fs-extra"));var kT=q(require("path")),NT=q(require("fs-extra")),DT=q(require("picocolors"));var AS=require("stream"),TS=require("util"),y1=require("path"),_1=require("os"),OS=require("fs"),S1=q(RS());var Ak=(0,TS.promisify)(AS.Stream.pipeline);var E1=q(require("fs-extra"));var P1=q(require("path")),L1=q(DS()),I1=q(require("picocolors")),k1=q(require("fs-extra"));var uo=q(require("picocolors"));var Xe=q(require("picocolors")),yi=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 FS=q(require("os")),Ou=q(require("path"));var ao=q(require("picocolors")),co=require("diff"),Jt=require("fs-extra"),lo=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{Ou.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 Ou.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(ao.default.green(r.value)):r.removed?process.stdout.write(ao.default.red(r.value)):process.stdout.write(ao.default.dim(r.value))}),$e.log(FS.default.EOL)):$e.log(this.after)}};var rn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new yi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new lo({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(uo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(uo.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(uo.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($e.log(),r.length>0){$e.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),$e.log()}}};function MS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new yi(i),s=new rn(i);return{log:n,runner:s}}var BS=q(require("fs-extra")),qS=require("json5");function HS(t){let e=BS.default.readFileSync(t,"utf8");return(0,qS.parse)(e)}var $S="migrate-env-var-dependencies",N1='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',D1="1.5.0";function Lu(t){let r=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(i=>{var n;return(n=i.dependsOn)!=null?n:[]})].flat().filter(i=>i==null?void 0:i.startsWith("$"));return{hasKeys:!!r.length,envVars:r}}function ku({env:t,deps:e}){let r=new Set(t),i=[];return e==null||e.forEach(n=>{n.startsWith("$")?r.add(n.slice(1)):i.push(n)}),r.size?{deps:i,env:Array.from(r)}:{env:t,deps:e}}function US(t){let{deps:e,env:r}=ku({env:t.env,deps:t.dependsOn}),i={...t};return e?i.dependsOn=e:delete i.dependsOn,r!=null&&r.length?i.env=r:delete i.env,i}function GS(t){if("extends"in t)return t;let{deps:e,env:r}=ku({env:t.globalEnv,deps:t.globalDependencies}),i={...t};return e!=null&&e.length?i.globalDependencies=e:delete i.globalDependencies,r!=null&&r.length?i.globalEnv=r:delete i.globalEnv,i}function Iu(t){let e=GS(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,r in t.pipeline){let i=e.pipeline[r];e.pipeline[r]={...i,...US(i)}}}),e}function jS({root:t,options:e}){let{log:r,runner:i}=MS({transformer:$S,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=Cu.default.join(t,"package.json"),s={};try{s=Pu.default.readJsonSync(n)}catch{}if("turbo"in s)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let o=Cu.default.join(t,"turbo.json");if(!Pu.default.existsSync(o))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let a=HS(o);return Lu(a).hasKeys&&(a=Iu(a)),i.modifyFile({filePath:o,after:a}),wl(t).forEach(c=>{let{config:u,turboConfigPath:h}=c;"pipeline"in u&&Lu(u).hasKeys&&i.modifyFile({filePath:h,after:Iu(u)})}),i.finish()}var F1={name:$S,description:N1,introducedIn:D1,transformer:jS},M1=F1;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
38
+ `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function r0(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=bi(t,n),i=pe[r],!i&&Ri(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||zb(r);return e}function i0(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 nh(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(dt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Lo(t,e)),t.dump&&wi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function n0(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),dt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function s0(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new we("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Lo(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),dt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&wi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Lo(t,e)),dt(t,e+1,u,!0,h)&&(t.dump&&wi===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function sh(t,e,r){var i,n,s,o,a,l;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,Fh.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(Mh.call(a.represent,l))i=a.represent[l](e,l);else throw new we("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,sh(t,r,!1)||sh(t,r,!0);var a=Fh.call(t.dump),l=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(s0(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(n0(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?nh(t,e-1,t.dump,n):nh(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(i0(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&e0(t,t.dump,e,s,l);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!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function o0(t,e){var r=[],i=[],n,s;for(ko(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function ko(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)ko(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)ko(t[i[n]],e,r)}function a0(t,e){e=e||{};var r=new Kb(e);r.noRefs||o0(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),dt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var l0=a0,c0={dump:l0};function qo(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 u0=fe,h0=lh,f0=fh,p0=yh,d0=_h,m0=Do,g0=Dh.load,y0=Dh.loadAll,_0=c0.dump,S0=we,E0={binary:wh,float:gh,map:hh,null:ph,pairs:Rh,set:Ah,timestamp:bh,bool:dh,int:mh,merge:xh,omap:vh,seq:uh,str:ch},b0=qo("safeLoad","load"),x0=qo("safeLoadAll","loadAll"),w0=qo("safeDump","dump"),v0={Type:u0,Schema:h0,FAILSAFE_SCHEMA:f0,JSON_SCHEMA:p0,CORE_SCHEMA:d0,DEFAULT_SCHEMA:m0,load:g0,loadAll:y0,dump:_0,YAMLException:S0,types:E0,safeLoad:b0,safeLoadAll:x0,safeDump:w0},zh=v0;var Gd=q(Dd()),Wd=q(require("json5"));var $e={};Du($e,{bold:()=>PR,dimmed:()=>IR,error:()=>jn,grey:()=>kR,info:()=>CR,item:()=>NR,log:()=>qt,turboBlue:()=>qr,turboGradient:()=>OR,turboLoader:()=>Ud,turboRed:()=>Hd,underline:()=>LR,warn:()=>xl,yellow:()=>$d});var Ae=require("picocolors"),Fd=q(require("ora")),Md=q(require("gradient-string")),Bd="#0099F7",qd="#F11712",TR="#FFFF00",bl=t=>{let e=DR(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},OR=(0,Md.default)(Bd,qd),qr=bl(Bd),Hd=bl(qd),$d=bl(TR),Ud=t=>(0,Fd.default)({text:t,spinner:{frames:[" ",qr("> "),qr(">> "),qr(">>>")]}}),CR=(...t)=>{qt(qr((0,Ae.bold)(">>>")),t.join(" "))},PR=(...t)=>{qt((0,Ae.bold)(t.join(" ")))},LR=(...t)=>{qt((0,Ae.underline)(t.join(" ")))},IR=(...t)=>{qt((0,Ae.dim)(t.join(" ")))},kR=(...t)=>{qt((0,Ae.gray)(t.join(" ")))},NR=(...t)=>{qt(qr((0,Ae.bold)(" \u2022")),t.join(" "))},qt=(...t)=>{console.log(...t)},xl=(...t)=>{console.error($d((0,Ae.bold)(">>>")),t.join(" "))},jn=(...t)=>{console.error(Hd((0,Ae.bold)(">>>")),t.join(" "))};function DR(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 jd="{turbo.json,turbo.jsonc}";var wl={};function FR(t){try{if(Pi.default.existsSync(Ht.default.join(t,"pnpm-workspace.yaml")))return zh.load(Pi.default.readFileSync(Ht.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Pi.default.readFileSync(Ht.default.join(t,"package.json"),"utf8"));if(e.workspaces){if("packages"in e.workspaces)return e.workspaces.packages||[];if(Array.isArray(e.workspaces))return e.workspaces}return[]}catch{return[]}}function vl(t,e){var s;let r=Ro(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in wl)return wl[t];if(r){let a=FR(r).map(u=>`${u}/${jd}`),l=(0,Gd.sync)([jd,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(u=>Ht.default.join(r,u)),c={};for(let u of l){let h=Ht.default.dirname(u);c[h]||(c[h]=[]),c[h].push(u)}for(let[u,h]of Object.entries(c)){if(h.length>1){let g=`Found both turbo.json and turbo.jsonc in the same directory: ${u}
40
+ Please use either turbo.json or turbo.jsonc, but not both.`;throw jn(g),new Error(g)}let f=h[0];try{let g=Pi.default.readFileSync(f,"utf8"),m=Wd.default.parse(g),y=Ht.default.dirname(f)===r;if(y){if("extends"in m)continue}else if(!("extends"in m))continue;i.push({config:m,turboConfigPath:f,workspacePath:Ht.default.dirname(f),isRootConfig:y})}catch(g){xl(g)}}}return n&&t&&(wl[t]=i),i}var PT=q(require("os")),LT=q(Og());var IT=q(require("fs-extra"));var kT=q(require("path")),NT=q(require("fs-extra")),DT=q(require("picocolors"));var TS=require("stream"),OS=require("util"),y1=require("path"),_1=require("os"),CS=require("fs"),S1=q(AS());var Ak=(0,OS.promisify)(TS.Stream.pipeline);var E1=q(require("fs-extra"));var P1=q(require("path")),L1=q(FS()),I1=q(require("picocolors")),k1=q(require("fs-extra"));var ho=q(require("picocolors"));var Xe=q(require("picocolors")),yi=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 MS=q(require("os")),Cu=q(require("path"));var lo=q(require("picocolors")),uo=require("diff"),er=require("fs-extra"),co=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{Cu.default.extname(e.filePath)===".json"?this.before=(0,er.readJsonSync)(e.filePath):this.before=(0,er.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,uo.diffJson)(this.before,e.after):this.changes=(0,uo.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Cu.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,er.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,er.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(lo.default.green(r.value)):r.removed?process.stdout.write(lo.default.red(r.value)):process.stdout.write(lo.default.dim(r.value))}),$e.log(MS.default.EOL)):$e.log(this.after)}};var rn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new yi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new co({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(ho.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(ho.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(ho.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($e.log(),r.length>0){$e.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),$e.log()}}};function BS({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new yi(i),s=new rn(i);return{log:n,runner:s}}var qS=q(require("fs-extra")),HS=require("json5");function $S(t){let e=qS.default.readFileSync(t,"utf8");return(0,HS.parse)(e)}var US="migrate-env-var-dependencies",N1='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',D1="1.5.0";function Iu(t){let r=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(i=>{var n;return(n=i.dependsOn)!=null?n:[]})].flat().filter(i=>i==null?void 0:i.startsWith("$"));return{hasKeys:!!r.length,envVars:r}}function Nu({env:t,deps:e}){let r=new Set(t),i=[];return e==null||e.forEach(n=>{n.startsWith("$")?r.add(n.slice(1)):i.push(n)}),r.size?{deps:i,env:Array.from(r)}:{env:t,deps:e}}function jS(t){let{deps:e,env:r}=Nu({env:t.env,deps:t.dependsOn}),i={...t};return e?i.dependsOn=e:delete i.dependsOn,r!=null&&r.length?i.env=r:delete i.env,i}function GS(t){if("extends"in t)return t;let{deps:e,env:r}=Nu({env:t.globalEnv,deps:t.globalDependencies}),i={...t};return e!=null&&e.length?i.globalDependencies=e:delete i.globalDependencies,r!=null&&r.length?i.globalEnv=r:delete i.globalEnv,i}function ku(t){let e=GS(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,r in t.pipeline){let i=e.pipeline[r];e.pipeline[r]={...i,...jS(i)}}}),e}function WS({root:t,options:e}){let{log:r,runner:i}=BS({transformer:US,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=Pu.default.join(t,"package.json"),s={};try{s=Lu.default.readJsonSync(n)}catch{}if("turbo"in s)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let o=Pu.default.join(t,"turbo.json");if(!Lu.default.existsSync(o))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let a=$S(o);return Iu(a).hasKeys&&(a=ku(a)),i.modifyFile({filePath:o,after:a}),vl(t).forEach(c=>{let{config:u,turboConfigPath:h}=c;"pipeline"in u&&Iu(u).hasKeys&&i.modifyFile({filePath:h,after:ku(u)})}),i.finish()}var F1={name:US,description:N1,introducedIn:D1,transformer:WS},M1=F1;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
40
41
  /*! Bundled license information:
41
42
 
42
43
  @babel/runtime/helpers/regeneratorRuntime.js: