@turbo/codemod 2.7.1 → 2.7.2-canary.0

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,43 +1,43 @@
1
- "use strict";var KE=Object.create;var on=Object.defineProperty;var XE=Object.getOwnPropertyDescriptor;var ZE=Object.getOwnPropertyNames;var QE=Object.getPrototypeOf,JE=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mu=(t,e)=>{for(var r in e)on(t,r,{get:e[r],enumerable:!0})},Bu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ZE(e))!JE.call(t,n)&&n!==r&&on(t,n,{get:()=>e[n],enumerable:!(i=XE(e,n))||i.enumerable});return t};var B=(t,e,r)=>(r=t!=null?KE(QE(t)):{},Bu(e||!t||!t.__esModule?on(r,"default",{value:t,enumerable:!0}):r,t)),eS=t=>Bu(on({},"__esModule",{value:!0}),t);var qu=m((W1,ht)=>{function mo(t){return ht.exports=mo=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,mo(t)}ht.exports=mo,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var $u=m((Y1,ft)=>{var Hu=qu().default;function Uu(){"use strict";ft.exports=Uu=function(){return e},ft.exports.__esModule=!0,ft.exports.default=ft.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,E){p[b]=E.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(p,b,E){return Object.defineProperty(p,b,{value:E,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{l({},"")}catch{l=function(E,O,P){return E[O]=P}}function u(p,b,E,O){var P=b&&b.prototype instanceof v?b:v,T=Object.create(P.prototype),Y=new Be(O||[]);return n(T,"_invoke",{value:ie(p,E,Y)}),T}function h(p,b,E){try{return{type:"normal",arg:p.call(b,E)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",d="executing",y="completed",x={};function v(){}function A(){}function M(){}var re={};l(re,o,function(){return this});var N=Object.getPrototypeOf,H=N&&N(N(_([])));H&&H!==r&&i.call(H,o)&&(re=H);var L=M.prototype=v.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){l(p,b,function(E){return this._invoke(b,E)})})}function q(p,b){function E(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&Hu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(qe){E("next",qe,Y,he)},function(qe){E("throw",qe,Y,he)}):b.resolve(k).then(function(qe){be.value=qe,Y(be)},function(qe){return E("throw",qe,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){E(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,E){var O=f;return function(P,T){if(O===d)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(E.method=P,E.arg=T;;){var Y=E.delegate;if(Y){var he=S(Y,E);if(he){if(he===x)continue;return he}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(O===f)throw O=y,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);O=d;var ne=h(p,b,E);if(ne.type==="normal"){if(O=E.done?y:g,ne.arg===x)continue;return{value:ne.arg,done:E.done}}ne.type==="throw"&&(O=y,E.method="throw",E.arg=ne.arg)}}}function S(p,b){var E=b.method,O=p.iterator[E];if(O===t)return b.delegate=null,E==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,S(p,b),b.method==="throw")||E!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+E+"' method")),x;var P=h(O,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,x;var T=P.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,x):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,x)}function W(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function j(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Be(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var E=-1,O=function P(){for(;++E<p.length;)if(i.call(p,E))return P.value=p[E],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError(Hu(p)+" is not iterable")}return A.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:A,configurable:!0}),A.displayName=l(M,c,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===A||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,l(p,c,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(q.prototype),l(q.prototype,a,function(){return this}),e.AsyncIterator=q,e.async=function(p,b,E,O,P){P===void 0&&(P=Promise);var T=new q(u(p,b,E,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),l(L,c,"Generator"),l(L,o,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),E=[];for(var O in b)E.push(O);return E.reverse(),function P(){for(;E.length;){var T=E.pop();if(T in b)return P.value=T,P.done=!1,P}return P.done=!0,P}},e.values=_,Be.prototype={constructor:Be,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!b)for(var E in this)E.charAt(0)==="t"&&i.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var E=this;function O(be,k){return Y.type="throw",Y.arg=b,E.next=be,k&&(E.method="next",E.arg=t),!!k}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],Y=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,E){for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=E&&E<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=E,T?(this.method="next",this.next=T.finallyLoc,x):this.complete(Y)},complete:function(b,E){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&E&&(this.next=E),x},finish:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),j(O),x}},catch:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;j(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,E,O){return this.delegate={iterator:_(b),resultName:E,nextLoc:O},this.method==="next"&&(this.arg=t),x}},e}ft.exports=Uu,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var Gu=m((z1,ju)=>{var an=$u()();ju.exports=an;try{regeneratorRuntime=an}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=an:Function("r","regeneratorRuntime = r")(an)}});var Xh=m(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.splitWhen=Cr.flatten=void 0;function T0(t){return t.reduce((e,r)=>[].concat(e,r),[])}Cr.flatten=T0;function O0(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Cr.splitWhen=O0});var Zh=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.isEnoentCodeError=void 0;function C0(t){return t.code==="ENOENT"}gn.isEnoentCodeError=C0});var Qh=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.createDirentFromStats=void 0;var Uo=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 P0(t,e){return new Uo(t,e)}yn.createDirentFromStats=P0});var Jh=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var L0=require("path"),I0=2,k0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function N0(t){return t.replace(/\\/g,"/")}Qe.unixify=N0;function D0(t,e){return L0.resolve(t,e)}Qe.makeAbsolute=D0;function F0(t){return t.replace(k0,"\\$2")}Qe.escape=F0;function M0(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(I0)}return t}Qe.removeLeadingDotSegment=M0});var tf=m((IP,ef)=>{ef.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 sf=m((kP,nf)=>{var B0=tf(),rf={"{":"}","(":")","[":"]"},q0=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=rf[a];if(c){var l=t.indexOf(c,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},H0=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=rf[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};nf.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(B0(e))return!0;var i=q0;return r&&r.strict===!1&&(i=H0),i(e)}});var af=m((NP,of)=>{"use strict";var U0=sf(),$0=require("path").posix.dirname,j0=require("os").platform()==="win32",$o="/",G0=/\\/g,W0=/[\{\[].*[\}\]]$/,Y0=/(^|[^\\])([\{\[]|\([^\)]+$)/,z0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;of.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&j0&&e.indexOf($o)<0&&(e=e.replace(G0,$o)),W0.test(e)&&(e+=$o),e+="a";do e=$0(e);while(U0(e)||Y0.test(e));return e.replace(z0,"$1")}});var _n=m(He=>{"use strict";He.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;He.find=(t,e)=>t.nodes.find(r=>r.type===e);He.exceedsLimit=(t,e,r=1,i)=>i===!1||!He.isInteger(t)||!He.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;He.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};He.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);He.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;He.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;He.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);He.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var En=m((FP,lf)=>{"use strict";var cf=_n();lf.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&cf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&cf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let c of i.nodes)a+=r(c);return a};return r(t)}});var hf=m((MP,uf)=>{"use strict";uf.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Sf=m((BP,Ef)=>{"use strict";var ff=hf(),nr=(t,e,r)=>{if(ff(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(ff(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),c=t+":"+e+"="+n+s+o+a;if(nr.cache.hasOwnProperty(c))return nr.cache[c].result;let l=Math.min(t,e),u=Math.max(t,e);if(Math.abs(l-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=_f(t)||_f(e),f={min:t,max:e,a:l,b:u},g=[],d=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let y=u<0?Math.abs(u):1;d=pf(y,Math.abs(l),f,i),l=f.a=0}return u>=0&&(g=pf(l,u,f,i)),f.negatives=d,f.positives=g,f.result=V0(d,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+d.length>1&&(f.result=`(?:${f.result})`),nr.cache[c]=f,f.result};function V0(t,e,r){let i=jo(t,e,"-",!1,r)||[],n=jo(e,t,"",!1,r)||[],s=jo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function K0(t,e){let r=1,i=1,n=mf(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=mf(t,r);for(n=gf(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=gf(e+1,i)-1;return s=[...s],s.sort(Q0),s}function X0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=Z0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[c,l]=i[a];c===l?s+=c:c!=="0"||l!=="9"?s+=J0(c,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function pf(t,e,r,i){let n=K0(t,e),s=[],o=t,a;for(let c=0;c<n.length;c++){let l=n[c],u=X0(String(o),String(l),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+yf(a.count),o=l+1;continue}r.isPadded&&(h=ex(l,r,i)),u.string=h+u.pattern+yf(u.count),s.push(u),o=l+1,a=u}return s}function jo(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!df(e,"string",a)&&s.push(r+a),i&&df(e,"string",a)&&s.push(r+a)}return s}function Z0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function Q0(t,e){return t>e?1:e>t?-1:0}function df(t,e,r){return t.some(i=>i[e]===r)}function mf(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function gf(t,e){return t-t%Math.pow(10,e)}function yf(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function J0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function _f(t){return/^-?(0+)\d/.test(t)}function ex(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={};Ef.exports=nr});var Yo=m((qP,Tf)=>{"use strict";var tx=require("util"),xf=Sf(),bf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),rx=t=>e=>t===!0?Number(e):String(e),Go=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ai=t=>Number.isInteger(+t),Wo=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},ix=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,nx=(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},bn=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},sx=(t,e,r)=>{t.negatives.sort((a,c)=>a<c?-1:a>c?1:0),t.positives.sort((a,c)=>a<c?-1:a>c?1:0);let i=e.capture?"":"?:",n="",s="",o;return t.positives.length&&(n=t.positives.map(a=>bn(String(a),r)).join("|")),t.negatives.length&&(s=`-(${i}${t.negatives.map(a=>bn(String(a),r)).join("|")})`),n&&s?o=`${n}|${s}`:o=n||s,e.wrap?`(${i}${o})`:o},wf=(t,e,r,i)=>{if(r)return xf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},vf=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return xf(t,e,r)},Rf=(...t)=>new RangeError("Invalid range arguments: "+tx.inspect(...t)),Af=(t,e,r)=>{if(r.strictRanges===!0)throw Rf([t,e]);return[]},ox=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ax=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Rf([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),c=String(e),l=String(r);r=Math.max(Math.abs(r),1);let u=Wo(a)||Wo(c)||Wo(l),h=u?Math.max(a.length,c.length,l.length):0,f=u===!1&&ix(t,e,i)===!1,g=i.transform||rx(f);if(i.toRegex&&r===1)return wf(bn(t,h),bn(e,h),!0,i);let d={negatives:[],positives:[]},y=A=>d[A<0?"negatives":"positives"].push(Math.abs(A)),x=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):x.push(nx(g(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?sx(d,i,h):vf(x,null,{wrap:!1,...i}):x},cx=(t,e,r=1,i={})=>{if(!Ai(t)&&t.length>1||!Ai(e)&&e.length>1)return Af(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return wf(c,l,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?vf(u,null,{wrap:!1,options:i}):u},Sn=(t,e,r,i={})=>{if(e==null&&Go(t))return[t];if(!Go(t)||!Go(e))return Af(t,e,i);if(typeof r=="function")return Sn(t,e,1,{transform:r});if(bf(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)?ax(t,e,r,n):cx(t,e,Math.max(Math.abs(r),1),n):r!=null&&!bf(r)?ox(r,n):Sn(t,e,1,r)};Tf.exports=Sn});var Pf=m((HP,Cf)=>{"use strict";var lx=Yo(),Of=_n(),ux=(t,e={})=>{let r=(i,n={})=>{let s=Of.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return c+i.value;if(i.isClose===!0)return console.log("node.isClose",c,i.value),c+i.value;if(i.type==="open")return a?c+i.value:"(";if(i.type==="close")return a?c+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Of.reduce(i.nodes),h=lx(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)l+=r(u,i);return l};return r(t)};Cf.exports=ux});var kf=m((UP,If)=>{"use strict";var hx=Yo(),Lf=En(),Pr=_n(),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)},fx=(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(),Lf(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=hx(...h,e);f.length===0&&(f=Lf(n,e)),a.push(sr(a.pop(),f)),n.nodes=[];return}let c=Pr.encloseBrace(n),l=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){a.push(sr(a.pop(),l,c));continue}if(f.value&&f.type!=="open"){l.push(sr(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return Pr.flatten(i(t))};If.exports=fx});var Df=m(($P,Nf)=>{"use strict";Nf.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Hf=m((jP,qf)=>{"use strict";var px=En(),{MAX_LENGTH:Ff,CHAR_BACKSLASH:zo,CHAR_BACKTICK:dx,CHAR_COMMA:mx,CHAR_DOT:gx,CHAR_LEFT_PARENTHESES:yx,CHAR_RIGHT_PARENTHESES:_x,CHAR_LEFT_CURLY_BRACE:Ex,CHAR_RIGHT_CURLY_BRACE:Sx,CHAR_LEFT_SQUARE_BRACKET:Mf,CHAR_RIGHT_SQUARE_BRACKET:Bf,CHAR_DOUBLE_QUOTE:bx,CHAR_SINGLE_QUOTE:xx,CHAR_NO_BREAK_SPACE:wx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:vx}=Df(),Rx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Ff,r.maxLength):Ff;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,c=0,l=t.length,u=0,h=0,f,g=()=>t[u++],d=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(d({type:"bos"});u<l;)if(o=s[s.length-1],f=g(),!(f===vx||f===wx)){if(f===zo){d({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===Bf){d({type:"text",value:"\\"+f});continue}if(f===Mf){c++;let y;for(;u<l&&(y=g());){if(f+=y,y===Mf){c++;continue}if(y===zo){f+=g();continue}if(y===Bf&&(c--,c===0))break}d({type:"text",value:f});continue}if(f===yx){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===_x){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===bx||f===xx||f===dx){let y=f,x;for(e.keepQuotes!==!0&&(f="");u<l&&(x=g());){if(x===zo){f+=x+g();continue}if(x===y){e.keepQuotes===!0&&(f+=x);break}f+=x}d({type:"text",value:f});continue}if(f===Ex){h++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=d(x),s.push(o),d({type:"open",value:f});continue}if(f===Sx){if(o.type!=="brace"){d({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===mx&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:px(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===gx&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){d({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let x=y[y.length-1];x.value+=a.value+f,a=x,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let y=s[s.length-1],x=y.nodes.indexOf(o);y.nodes.splice(x,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};qf.exports=Rx});var jf=m((GP,$f)=>{"use strict";var Uf=En(),Ax=Pf(),Tx=kf(),Ox=Hf(),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={})=>Ox(t,e);Le.stringify=(t,e={})=>Uf(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),Ax(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=Tx(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=m((WP,Vf)=>{"use strict";var Cx=require("path"),Je="\\\\/",Gf=`[^${Je}]`,mt="\\.",Px="\\+",Lx="\\?",xn="\\/",Ix="(?=.)",Wf="[^/]",Vo=`(?:${xn}|$)`,Yf=`(?:^|${xn})`,Ko=`${mt}{1,2}${Vo}`,kx=`(?!${mt})`,Nx=`(?!${Yf}${Ko})`,Dx=`(?!${mt}{0,1}${Vo})`,Fx=`(?!${Ko})`,Mx=`[^.${xn}]`,Bx=`${Wf}*?`,zf={DOT_LITERAL:mt,PLUS_LITERAL:Px,QMARK_LITERAL:Lx,SLASH_LITERAL:xn,ONE_CHAR:Ix,QMARK:Wf,END_ANCHOR:Vo,DOTS_SLASH:Ko,NO_DOT:kx,NO_DOTS:Nx,NO_DOT_SLASH:Dx,NO_DOTS_SLASH:Fx,QMARK_NO_DOT:Mx,STAR:Bx,START_ANCHOR:Yf},qx={...zf,SLASH_LITERAL:`[${Je}]`,QMARK:Gf,STAR:`${Gf}*?`,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}]|$)`},Hx={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"};Vf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Hx,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:Cx.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?qx:zf}}});var Oi=m(Re=>{"use strict";var Ux=require("path"),$x=process.platform==="win32",{REGEX_BACKSLASH:jx,REGEX_REMOVE_BACKSLASH:Gx,REGEX_SPECIAL_CHARS:Wx,REGEX_SPECIAL_CHARS_GLOBAL:Yx}=Ti();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>Wx.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(Yx,"\\$1");Re.toPosixSlashes=t=>t.replace(jx,"/");Re.removeBackslashes=t=>t.replace(Gx,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:$x===!0||Ux.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 rp=m((zP,tp)=>{"use strict";var Kf=Oi(),{CHAR_ASTERISK:Xo,CHAR_AT:zx,CHAR_BACKWARD_SLASH:Ci,CHAR_COMMA:Vx,CHAR_DOT:Zo,CHAR_EXCLAMATION_MARK:Qo,CHAR_FORWARD_SLASH:ep,CHAR_LEFT_CURLY_BRACE:Jo,CHAR_LEFT_PARENTHESES:ea,CHAR_LEFT_SQUARE_BRACKET:Kx,CHAR_PLUS:Xx,CHAR_QUESTION_MARK:Xf,CHAR_RIGHT_CURLY_BRACE:Zx,CHAR_RIGHT_PARENTHESES:Zf,CHAR_RIGHT_SQUARE_BRACKET:Qx}=Ti(),Qf=t=>t===ep||t===Ci,Jf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Jx=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,l=-1,u=0,h=0,f=!1,g=!1,d=!1,y=!1,x=!1,v=!1,A=!1,M=!1,re=!1,N=!1,H=0,L,I,q={value:"",depth:0,isGlob:!1},ie=()=>l>=i,S=()=>c.charCodeAt(l+1),W=()=>(L=I,c.charCodeAt(++l));for(;l<i;){I=W();let b;if(I===Ci){A=q.backslashes=!0,I=W(),I===Jo&&(v=!0);continue}if(v===!0||I===Jo){for(H++;ie()!==!0&&(I=W());){if(I===Ci){A=q.backslashes=!0,W();continue}if(I===Jo){H++;continue}if(v!==!0&&I===Zo&&(I=W())===Zo){if(f=q.isBrace=!0,d=q.isGlob=!0,N=!0,n===!0)continue;break}if(v!==!0&&I===Vx){if(f=q.isBrace=!0,d=q.isGlob=!0,N=!0,n===!0)continue;break}if(I===Zx&&(H--,H===0)){v=!1,f=q.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===ep){if(s.push(l),o.push(q),q={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===Zo&&l===u+1){u+=2;continue}h=l+1;continue}if(r.noext!==!0&&(I===Xx||I===zx||I===Xo||I===Xf||I===Qo)===!0&&S()===ea){if(d=q.isGlob=!0,y=q.isExtglob=!0,N=!0,I===Qo&&l===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ci){A=q.backslashes=!0,I=W();continue}if(I===Zf){d=q.isGlob=!0,N=!0;break}}continue}break}if(I===Xo){if(L===Xo&&(x=q.isGlobstar=!0),d=q.isGlob=!0,N=!0,n===!0)continue;break}if(I===Xf){if(d=q.isGlob=!0,N=!0,n===!0)continue;break}if(I===Kx){for(;ie()!==!0&&(b=W());){if(b===Ci){A=q.backslashes=!0,W();continue}if(b===Qx){g=q.isBracket=!0,d=q.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===Qo&&l===u){M=q.negated=!0,u++;continue}if(r.noparen!==!0&&I===ea){if(d=q.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===ea){A=q.backslashes=!0,I=W();continue}if(I===Zf){N=!0;break}}continue}break}if(d===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,d=!1);let j=c,Be="",_="";u>0&&(Be=c.slice(0,u),c=c.slice(u),h-=u),j&&d===!0&&h>0?(j=c.slice(0,h),_=c.slice(h)):d===!0?(j="",_=c):j=c,j&&j!==""&&j!=="/"&&j!==c&&Qf(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),r.unescape===!0&&(_&&(_=Kf.removeBackslashes(_)),j&&A===!0&&(j=Kf.removeBackslashes(j)));let p={prefix:Be,input:t,start:u,base:j,glob:_,isBrace:f,isBracket:g,isGlob:d,isExtglob:y,isGlobstar:x,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,Qf(I)||o.push(q),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let E=0;E<s.length;E++){let O=b?b+1:u,P=s[E],T=t.slice(O,P);r.tokens&&(E===0&&u!==0?(o[E].isPrefix=!0,o[E].value=Be):o[E].value=T,Jf(o[E]),p.maxDepth+=o[E].depth),(E!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let E=t.slice(b+1);a.push(E),r.tokens&&(o[o.length-1].value=E,Jf(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};tp.exports=Jx});var sp=m((VP,np)=>{"use strict";var wn=Ti(),Ie=Oi(),{MAX_LENGTH:vn,POSIX_REGEX_SOURCE:ew,REGEX_NON_SPECIAL_CHARS:tw,REGEX_SPECIAL_CHARS_BACKREF:rw,REPLACEMENTS:ip}=wn,iw=(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`,ta=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=ip[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(vn,r.maxLength):vn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=Ie.isWindows(e),l=wn.globChars(c),u=wn.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:d,DOTS_SLASH:y,NO_DOT:x,NO_DOT_SLASH:v,NO_DOTS_SLASH:A,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:H}=l,L=R=>`(${a}(?:(?!${H}${R.dot?y:h}).)*?)`,I=r.dot?"":x,q=r.dot?M:re,ie=r.bash===!0?L(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let S={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Ie.removePrefix(t,S),n=t.length;let W=[],j=[],Be=[],_=s,p,b=()=>S.index===n-1,E=S.peek=(R=1)=>t[S.index+R],O=S.advance=()=>t[++S.index]||"",P=()=>t.slice(S.index+1),T=(R="",V=0)=>{S.consumed+=R,S.index+=V},Y=R=>{S.output+=R.output!=null?R.output:R.value,T(R.value)},he=()=>{let R=1;for(;E()==="!"&&(E(2)!=="("||E(3)==="?");)O(),S.start++,R++;return R%2===0?!1:(S.negated=!0,S.start++,!0)},ne=R=>{S[R]++,Be.push(R)},be=R=>{S[R]--,Be.pop()},k=R=>{if(_.type==="globstar"){let V=S.braces>0&&(R.type==="comma"||R.type==="brace"),w=R.extglob===!0||W.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!V&&!w&&(S.output=S.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,S.output+=_.output)}if(W.length&&R.type!=="paren"&&(W[W.length-1].inner+=R.value),(R.value||R.output)&&Y(R),_&&_.type==="text"&&R.type==="text"){_.value+=R.value,_.output=(_.output||"")+R.value;return}R.prev=_,o.push(R),_=R},qe=(R,V)=>{let w={...u[V],conditions:1,inner:""};w.prev=_,w.parens=S.parens,w.output=S.output;let F=(r.capture?"(":"")+w.open;ne("parens"),k({type:R,value:V,output:S.output?"":d}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(w)},VE=R=>{let V=R.close+(r.capture?")":""),w;if(R.type==="negate"){let F=ie;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(V=R.close=`)$))${F}`),R.inner.includes("*")&&(w=P())&&/^\.[^\\/.]+$/.test(w)){let Q=ta(w,{...e,fastpaths:!1}).output;V=R.close=`)${Q})${F})`}R.prev.type==="bos"&&(S.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:V}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let R=!1,V=t.replace(rw,(w,F,Q,xe,se,po)=>xe==="\\"?(R=!0,w):xe==="?"?F?F+xe+(se?M.repeat(se.length):""):po===0?q+(se?M.repeat(se.length):""):M.repeat(Q.length):xe==="."?h.repeat(Q.length):xe==="*"?F?F+xe+(se?ie:""):ie:F?w:`\\${w}`);return R===!0&&(r.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),V===t&&r.contains===!0?(S.output=t,S):(S.output=Ie.wrapOutput(V,S,e),S)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let w=E();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,S.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),S.brackets===0){k({type:"text",value:p});continue}}if(S.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let w=_.value.slice(1);if(w.includes("[")&&(_.posix=!0,w.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),xe=_.value.slice(F+2),se=ew[xe];if(se){_.value=Q+se,S.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=d);continue}}}(p==="["&&E()!==":"||p==="-"&&E()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(S.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){S.quotes=S.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Lr("opening","("));let w=W[W.length-1];if(w&&S.parens===w.parens+1){VE(W.pop());continue}k({type:"paren",value:p,output:S.parens?")":"\\)"}),be("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(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(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Lr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let w=_.value.slice(1);if(_.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(w))continue;let F=Ie.escapeRegex(_.value);if(S.output=S.output.slice(0,-_.value.length),r.literalBrackets===!0){S.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,S.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let w={type:"brace",value:p,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};j.push(w),k(w);continue}if(p==="}"){let w=j[j.length-1];if(r.nobrace===!0||!w){k({type:"text",value:p,output:p});continue}let F=")";if(w.dots===!0){let Q=o.slice(),xe=[];for(let se=Q.length-1;se>=0&&(o.pop(),Q[se].type!=="brace");se--)Q[se].type!=="dots"&&xe.unshift(Q[se].value);F=iw(xe,r),S.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Q=S.output.slice(0,w.outputIndex),xe=S.tokens.slice(w.tokensIndex);w.value=w.output="\\{",p=F="\\}",S.output=Q;for(let se of xe)S.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),j.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let w=p,F=j[j.length-1];F&&Be[Be.length-1]==="braces"&&(F.comma=!0,w="|"),k({type:"comma",value:p,output:w});continue}if(p==="/"){if(_.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(S.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let w=j[j.length-1];_.type="dots",_.output+=p,_.value+=p,w.dots=!0;continue}if(S.braces+S.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&E()==="("&&E(2)!=="?"){qe("qmark",p);continue}if(_&&_.type==="paren"){let F=E(),Q=p;if(F==="<"&&!Ie.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(P()))&&(Q=`\\${p}`),k({type:"text",value:p,output:Q});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&E()==="("&&(E(2)!=="?"||!/[!=<:]/.test(E(3)))){qe("negate",p);continue}if(r.nonegate!==!0&&S.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){qe("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||S.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let w=tw.exec(P());w&&(p+=w[0],S.index+=w[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,S.backtrack=!0,S.globstar=!0,T(p);continue}let R=P();if(r.noextglob!==!0&&/^\([^?]/.test(R)){qe("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let w=_.prev,F=w.prev,Q=w.type==="slash"||w.type==="bos",xe=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||R[0]&&R[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=S.braces>0&&(w.type==="comma"||w.type==="brace"),po=W.length&&(w.type==="pipe"||w.type==="paren");if(!Q&&w.type!=="paren"&&!se&&!po){k({type:"star",value:p,output:""});continue}for(;R.slice(0,3)==="/**";){let sn=t[S.index+4];if(sn&&sn!=="/")break;R=R.slice(3),T("/**",3)}if(w.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),S.output=_.output,S.globstar=!0,T(p);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!xe&&b()){S.output=S.output.slice(0,-(w.output+_.output).length),w.output=`(?:${w.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,S.globstar=!0,S.output+=w.output+_.output,T(p);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&R[0]==="/"){let sn=R[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(w.output+_.output).length),w.output=`(?:${w.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${sn})`,_.value+=p,S.output+=w.output+_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&R[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,S.output=_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,S.output+=_.output,S.globstar=!0,T(p);continue}let 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}(S.index===S.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(S.output+=v,_.output+=v):r.dot===!0?(S.output+=A,_.output+=A):(S.output+=I,_.output+=I),E()!=="*"&&(S.output+=d,_.output+=d)),k(V)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","]"));S.output=Ie.escapeLast(S.output,"["),be("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing",")"));S.output=Ie.escapeLast(S.output,"("),be("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","}"));S.output=Ie.escapeLast(S.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),S.backtrack===!0){S.output="";for(let R of S.tokens)S.output+=R.output!=null?R.output:R.value,R.suffix&&(S.output+=R.suffix)}return S};ta.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(vn,r.maxLength):vn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=ip[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:d}=wn.globChars(s),y=r.dot?h:u,x=r.dot?f:u,v=r.capture?"":"?:",A={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${v}(?:(?!${d}${I.dot?l:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${c}${M}`;case".*":return`${o}${c}${M}`;case"*.*":return`${y}${M}${o}${c}${M}`;case"*/*":return`${y}${M}${a}${c}${x}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${x}${c}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${x}${M}${o}${c}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${c}${M}`;default:{let q=/^(.*?)\.(\w+)$/.exec(I);if(!q)return;let ie=N(q[1]);return ie?ie+o+q[2]:void 0}}},H=Ie.removePrefix(t,A),L=N(H);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};np.exports=ta});var ap=m((KP,op)=>{"use strict";var nw=require("path"),sw=rp(),ra=sp(),ia=Oi(),ow=Ti(),aw=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let d=g(f);if(d)return d}return!1}}let i=aw(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=ia.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};c=J(n.ignore,u,r)}let l=(u,h=!1)=>{let{isMatch:f,match:g,output:d}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:d,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):c(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(l.state=a),l};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?ia.toPosixSlashes:null),a=t===i,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};J.matchBase=(t,e,r,i=ia.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(nw.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)):ra(t,{...e,fastpaths:!1});J.scan=(t,e)=>sw(t,e);J.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=J.toRegex(a,e);return i===!0&&(c.state=t),c};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ra.fastpaths(t,e)),n.output||(n=ra(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=ow;op.exports=J});var lp=m((XP,cp)=>{"use strict";cp.exports=ap()});var mp=m((ZP,dp)=>{"use strict";var hp=require("util"),fp=jf(),et=lp(),na=Oi(),up=t=>t===""||t==="./",pp=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},K=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=et(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let d=h(g,!0);(f?!d.isMatch:d.isMatch)&&(f?i.add(d.output):(i.delete(d.output),n.add(d.output)))}}let l=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return l};K.match=K;K.matcher=(t,e)=>et(t,e);K.isMatch=(t,e,r)=>et(e,r)(t);K.any=K.isMatch;K.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(K(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};K.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${hp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>K.contains(t,i,r));if(typeof e=="string"){if(up(t)||up(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return K.isMatch(t,e,{...r,contains:!0})};K.matchKeys=(t,e,r)=>{if(!na.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=K(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};K.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};K.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};K.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${hp.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};K.capture=(t,e,r)=>{let i=na.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?na.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};K.makeRe=(...t)=>et.makeRe(...t);K.scan=(...t)=>et.scan(...t);K.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of fp(String(i),e))r.push(et.parse(n,e));return r};K.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!pp(t)?[t]:fp(t,e)};K.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return K.braces(t,{...e,expand:!0})};K.hasBraces=pp;dp.exports=K});var wp=m(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var cw=require("path"),lw=af(),sa=mp(),gp="**",uw="\\",hw=/[*?]|^!/,fw=/\[[^[]*]/,pw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,dw=/[!*+?@]\([^(]*\)/,mw=/,|\.\./;function yp(t,e={}){return!_p(t,e)}D.isStaticPattern=yp;function _p(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(uw)||hw.test(t)||fw.test(t)||pw.test(t)||e.extglob!==!1&&dw.test(t)||e.braceExpansion!==!1&&gw(t))}D.isDynamicPattern=_p;function gw(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 mw.test(i)}function yw(t){return Rn(t)?t.slice(1):t}D.convertToPositivePattern=yw;function _w(t){return"!"+t}D.convertToNegativePattern=_w;function Rn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=Rn;function Ep(t){return!Rn(t)}D.isPositivePattern=Ep;function Ew(t){return t.filter(Rn)}D.getNegativePatterns=Ew;function Sw(t){return t.filter(Ep)}D.getPositivePatterns=Sw;function bw(t){return t.filter(e=>!oa(e))}D.getPatternsInsideCurrentDirectory=bw;function xw(t){return t.filter(oa)}D.getPatternsOutsideCurrentDirectory=xw;function oa(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=oa;function ww(t){return lw(t,{flipBackslashes:!1})}D.getBaseDirectory=ww;function vw(t){return t.includes(gp)}D.hasGlobStar=vw;function Sp(t){return t.endsWith("/"+gp)}D.endsWithSlashGlobStar=Sp;function Rw(t){let e=cw.basename(t);return Sp(t)||yp(e)}D.isAffectDepthOfReadingPattern=Rw;function Aw(t){return t.reduce((e,r)=>e.concat(bp(r)),[])}D.expandPatternsWithBraceExpansion=Aw;function bp(t){return sa.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=bp;function Tw(t,e){let{parts:r}=sa.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=Tw;function xp(t,e){return sa.makeRe(t,e)}D.makeRe=xp;function Ow(t,e){return t.map(r=>xp(r,e))}D.convertPatternsToRe=Ow;function Cw(t,e){return e.some(r=>r.test(t))}D.matchAny=Cw});var Tp=m((JP,Ap)=>{"use strict";var Pw=require("stream"),vp=Pw.PassThrough,Lw=Array.prototype.slice;Ap.exports=Iw;function Iw(){let t=[],e=Lw.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=vp(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Rp(arguments[u],i));return c(),this}function c(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(l);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,c())}function g(d){function y(){d.removeListener("merge2UnpipeEnd",y),d.removeListener("end",y),s&&d.removeListener("error",x),f()}function x(v){o.emit("error",v)}if(d._readableState.endEmitted)return f();d.on("merge2UnpipeEnd",y),d.on("end",y),s&&d.on("error",x),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<u.length;d++)g(u[d]);f()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Rp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Rp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(vp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Cp=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.merge=void 0;var kw=Tp();function Nw(t){let e=kw(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Op(t)),e.once("end",()=>Op(t)),e}An.merge=Nw;function Op(t){t.forEach(e=>e.emit("close"))}});var Pp=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEmpty=Ir.isString=void 0;function Dw(t){return typeof t=="string"}Ir.isString=Dw;function Fw(t){return t===""}Ir.isEmpty=Fw});var gt=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Mw=Xh();de.array=Mw;var Bw=Zh();de.errno=Bw;var qw=Qh();de.fs=qw;var Hw=Jh();de.path=Hw;var Uw=wp();de.pattern=Uw;var $w=Cp();de.stream=$w;var jw=Pp();de.string=jw});var kp=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var yt=gt();function Gw(t,e){let r=Lp(t),i=Ip(t,e.ignore),n=r.filter(c=>yt.pattern.isStaticPattern(c,e)),s=r.filter(c=>yt.pattern.isDynamicPattern(c,e)),o=aa(n,i,!1),a=aa(s,i,!0);return o.concat(a)}me.generate=Gw;function aa(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=ca(n),a=ca(s);return i.push(...la(o,e,r)),"."in a?i.push(ua(".",s,e,r)):i.push(...la(a,e,r)),i}me.convertPatternsToTasks=aa;function Lp(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Lp;function Ip(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Ip;function ca(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=ca;function la(t,e,r){return Object.keys(t).map(i=>ua(i,t[i],e,r))}me.convertPatternGroupsToTasks=la;function ua(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=ua});var Dp=m(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.removeDuplicateSlashes=kr.transform=void 0;var Ww=/(?!^)\/{2,}/g;function Yw(t){return t.map(e=>Np(e))}kr.transform=Yw;function Np(t){return t.replace(Ww,"/")}kr.removeDuplicateSlashes=Np});var Mp=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.read=void 0;function zw(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Fp(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ha(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Fp(r,s);return}ha(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ha(r,o)})})}Tn.read=zw;function Fp(t,e){t(e)}function ha(t,e){t(null,e)}});var Bp=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.read=void 0;function Vw(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}}On.read=Vw});var qp=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var Cn=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:Cn.lstat,stat:Cn.stat,lstatSync:Cn.lstatSync,statSync:Cn.statSync};function Kw(t){return t===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),t)}Nt.createFileSystemAdapter=Kw});var Hp=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var Xw=qp(),fa=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Xw.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}};pa.default=fa});var or=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.statSync=Dt.stat=Dt.Settings=void 0;var Up=Mp(),Zw=Bp(),da=Hp();Dt.Settings=da.default;function Qw(t,e,r){if(typeof e=="function"){Up.read(t,ma(),e);return}Up.read(t,ma(e),r)}Dt.stat=Qw;function Jw(t,e){let r=ma(e);return Zw.read(t,r)}Dt.statSync=Jw;function ma(t={}){return t instanceof da.default?t:new da.default(t)}});var Gp=m((uL,jp)=>{var $p;jp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>($p||($p=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Yp=m((hL,Wp)=>{Wp.exports=tv;var ev=Gp();function tv(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(c){function l(){e&&e(c,r),e=null}s?ev(l):l()}function a(c,l,u){r[c]=u,(--i===0||l)&&o(l)}i?n?n.forEach(function(c){t[c](function(l,u){a(c,l,u)})}):t.forEach(function(c,l){c(function(u,h){a(l,u,h)})}):o(null),s=!1}});var ga=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Pn=process.versions.node.split(".");if(Pn[0]===void 0||Pn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var zp=Number.parseInt(Pn[0],10),rv=Number.parseInt(Pn[1],10),Vp=10,iv=10,nv=zp>Vp,sv=zp===Vp&&rv>=iv;Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=nv||sv});var Kp=m(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.createDirentFromStats=void 0;var ya=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 ov(t,e){return new ya(t,e)}In.createDirentFromStats=ov});var _a=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.fs=void 0;var av=Kp();kn.fs=av});var Ea=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.joinPathSegments=void 0;function cv(t,e,r){return t.endsWith(r)?t+e:t+r+e}Nn.joinPathSegments=cv});var td=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var lv=or(),Xp=Yp(),uv=ga(),Zp=_a(),Qp=Ea();function hv(t,e,r){if(!e.stats&&uv.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Jp(t,e,r);return}ed(t,e,r)}Ft.read=hv;function Jp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Dn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Qp.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Sa(r,s);return}let o=s.map(a=>fv(a,e));Xp(o,(a,c)=>{if(a!==null){Dn(r,a);return}Sa(r,c)})})}Ft.readdirWithFileTypes=Jp;function fv(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=Zp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function ed(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Dn(r,i);return}let s=n.map(o=>{let a=Qp.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{lv.stat(a,e.fsStatSettings,(l,u)=>{if(l!==null){c(l);return}let h={name:o,path:a,dirent:Zp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),c(null,h)})}});Xp(s,(o,a)=>{if(o!==null){Dn(r,o);return}Sa(r,a)})})}Ft.readdir=ed;function Dn(t,e){t(e)}function Sa(t,e){t(null,e)}});var od=m(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.readdir=Mt.readdirWithFileTypes=Mt.read=void 0;var pv=or(),dv=ga(),rd=_a(),id=Ea();function mv(t,e){return!e.stats&&dv.IS_SUPPORT_READDIR_WITH_FILE_TYPES?nd(t,e):sd(t,e)}Mt.read=mv;function nd(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:id.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=rd.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Mt.readdirWithFileTypes=nd;function sd(t,e){return e.fs.readdirSync(t).map(i=>{let n=id.joinPathSegments(t,i,e.pathSegmentSeparator),s=pv.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:rd.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Mt.readdir=sd});var ad=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var Nr=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:Nr.lstat,stat:Nr.stat,lstatSync:Nr.lstatSync,statSync:Nr.statSync,readdir:Nr.readdir,readdirSync:Nr.readdirSync};function gv(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bt.FILE_SYSTEM_ADAPTER),t)}Bt.createFileSystemAdapter=gv});var cd=m(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var yv=require("path"),_v=or(),Ev=ad(),ba=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Ev.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,yv.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new _v.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};xa.default=ba});var Fn=m(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.Settings=qt.scandirSync=qt.scandir=void 0;var ld=td(),Sv=od(),wa=cd();qt.Settings=wa.default;function bv(t,e,r){if(typeof e=="function"){ld.read(t,va(),e);return}ld.read(t,va(e),r)}qt.scandir=bv;function xv(t,e){let r=va(e);return Sv.read(t,r)}qt.scandirSync=xv;function va(t={}){return t instanceof wa.default?t:new wa.default(t)}});var hd=m((bL,ud)=>{"use strict";function wv(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}}ud.exports=wv});var pd=m((xL,Ra)=>{"use strict";var vv=hd();function fd(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=vv(Rv),n=null,s=null,o=0,a=null,c={push:y,drain:Ue,saturated:Ue,pause:u,paused:!1,concurrency:r,running:l,resume:g,idle:d,length:h,getQueue:f,unshift:x,empty:Ue,kill:A,killAndDrain:M,error:re};return c;function l(){return o}function u(){c.paused=!0}function h(){for(var N=n,H=0;N;)N=N.next,H++;return H}function f(){for(var N=n,H=[];N;)H.push(N.value),N=N.next;return H}function g(){if(c.paused){c.paused=!1;for(var N=0;N<c.concurrency;N++)o++,v()}}function d(){return o===0&&c.length()===0}function y(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,L.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=L,s=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,o===c.concurrency||c.paused?n?(L.next=n,n=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function v(N){N&&i.release(N);var H=n;H?c.paused?o--:(s===n&&(s=null),n=H.next,H.next=null,e.call(t,H.value,H.worked),s===null&&c.empty()):--o===0&&c.drain()}function A(){n=null,s=null,c.drain=Ue}function M(){n=null,s=null,c.drain(),c.drain=Ue}function re(N){a=N}}function Ue(){}function Rv(){this.value=null,this.callback=Ue,this.next=null,this.release=Ue,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Ue,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function Av(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=fd(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=c,n.drained=l,n;function a(u){var h=new Promise(function(f,g){s(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function c(u){var h=new Promise(function(f,g){o(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function l(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}Ra.exports=fd;Ra.exports.promise=Av});var Mn=m(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function Tv(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=Tv;function Ov(t,e){return t===null||t(e)}tt.isAppliedFilter=Ov;function Cv(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=Cv;function Pv(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=Pv});var Oa=m(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var Lv=Mn(),Aa=class{constructor(e,r){this._root=e,this._settings=r,this._root=Lv.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ta.default=Aa});var La=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Iv=require("events"),kv=Fn(),Nv=pd(),Bn=Mn(),Dv=Oa(),Ca=class extends Dv.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=kv.scandir,this._emitter=new Iv.EventEmitter,this._queue=Nv(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||!Bn.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=Bn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Pa.default=Ca});var dd=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Fv=La(),Ia=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Fv.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Mv(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Bv(e,this._storage)}),this._reader.read()}};ka.default=Ia;function Mv(t,e){t(e)}function Bv(t,e){t(null,e)}});var md=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var qv=require("stream"),Hv=La(),Na=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Hv.default(this._root,this._settings),this._stream=new qv.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}};Da.default=Na});var gd=m(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var Uv=Fn(),qn=Mn(),$v=Oa(),Fa=class extends $v.default{constructor(){super(...arguments),this._scandir=Uv.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(qn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=qn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),qn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&qn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ma.default=Fa});var yd=m(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var jv=gd(),Ba=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new jv.default(this._root,this._settings)}read(){return this._reader.read()}};qa.default=Ba});var _d=m(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Gv=require("path"),Wv=Fn(),Ha=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,Gv.sep),this.fsScandirSettings=new Wv.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}};Ua.default=Ha});var Un=m(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var Ed=dd(),Yv=md(),zv=yd(),$a=_d();rt.Settings=$a.default;function Vv(t,e,r){if(typeof e=="function"){new Ed.default(t,Hn()).read(e);return}new Ed.default(t,Hn(e)).read(r)}rt.walk=Vv;function Kv(t,e){let r=Hn(e);return new zv.default(t,r).read()}rt.walkSync=Kv;function Xv(t,e){let r=Hn(e);return new Yv.default(t,r).read()}rt.walkStream=Xv;function Hn(t={}){return t instanceof $a.default?t:new $a.default(t)}});var $n=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Zv=require("path"),Qv=or(),Sd=gt(),ja=class{constructor(e){this._settings=e,this._fsStatSettings=new Qv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Zv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Sd.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Sd.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ga.default=ja});var za=m(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Jv=require("stream"),eR=or(),tR=Un(),rR=$n(),Wa=class extends rR.default{constructor(){super(...arguments),this._walkStream=tR.walkStream,this._stat=eR.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new Jv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&n.push(c),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Ya.default=Wa});var bd=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var iR=Un(),nR=$n(),sR=za(),Va=class extends nR.default{constructor(){super(...arguments),this._walkAsync=iR.walk,this._readerStream=new sR.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))})}};Ka.default=Va});var xd=m(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var Dr=gt(),Xa=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))}};Za.default=Xa});var wd=m(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var oR=xd(),Qa=class extends oR.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((c,l)=>{let u=s.segments[l];return!!(u.dynamic&&u.patternRe.test(c)||!u.dynamic&&u.pattern===c)}))return!0}return!1}};Ja.default=Qa});var vd=m(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var jn=gt(),aR=wd(),ec=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 aR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(jn.pattern.isAffectDepthOfReadingPattern);return jn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=jn.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!jn.pattern.matchAny(e,r)}};tc.default=ec});var Rd=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var ar=gt(),rc=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}};ic.default=rc});var Ad=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var cR=gt(),nc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return cR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};sc.default=nc});var Od=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Td=gt(),oc=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Td.path.makeAbsolute(this._settings.cwd,r),r=Td.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};ac.default=oc});var Gn=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var lR=require("path"),uR=vd(),hR=Rd(),fR=Ad(),pR=Od(),cc=class{constructor(e){this._settings=e,this.errorFilter=new fR.default(this._settings),this.entryFilter=new hR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new uR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new pR.default(this._settings)}_getRootDirectory(e){return lR.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}}};lc.default=cc});var Cd=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var dR=bd(),mR=Gn(),uc=class extends mR.default{constructor(){super(...arguments),this._reader=new dR.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)}};hc.default=uc});var Pd=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var gR=require("stream"),yR=za(),_R=Gn(),fc=class extends _R.default{constructor(){super(...arguments),this._reader=new yR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new gR.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)}};pc.default=fc});var Ld=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var ER=or(),SR=Un(),bR=$n(),dc=class extends bR.default{constructor(){super(...arguments),this._walkSync=SR.walkSync,this._statSync=ER.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)}};mc.default=dc});var Id=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var xR=Ld(),wR=Gn(),gc=class extends wR.default{constructor(){super(...arguments),this._reader=new xR.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)}};yc.default=gc});var kd=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fr=require("fs"),vR=require("os"),RR=Math.max(vR.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 _c=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,RR),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=_c});var Md=m((zL,Fd)=>{"use strict";var Nd=kp(),Dd=Dp(),AR=Cd(),TR=Pd(),OR=Id(),Ec=kd(),cr=gt();async function Sc(t,e){Br(t);let r=bc(t,AR.default,e),i=await Promise.all(r);return cr.array.flatten(i)}(function(t){function e(o,a){Br(o);let c=bc(o,OR.default,a);return cr.array.flatten(c)}t.sync=e;function r(o,a){Br(o);let c=bc(o,TR.default,a);return cr.stream.merge(c)}t.stream=r;function i(o,a){Br(o);let c=Dd.transform([].concat(o)),l=new Ec.default(a);return Nd.generate(c,l)}t.generateTasks=i;function n(o,a){Br(o);let c=new Ec.default(a);return cr.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=n;function s(o){return Br(o),cr.path.escape(o)}t.escapePath=s})(Sc||(Sc={}));function bc(t,e,r){let i=Dd.transform([].concat(t)),n=new Ec.default(r),s=Nd.generate(i,n),o=new e(n);return s.map(o.read,o)}function Br(t){if(![].concat(t).every(i=>cr.string.isString(i)&&!cr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Fd.exports=Sc});var Qd=m((ZL,Zd)=>{Zd.exports=Xd;Xd.sync=UR;var Vd=require("fs");function HR(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 Kd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:HR(e,r)}function Xd(t,e,r){Vd.stat(t,function(i,n){r(i,i?!1:Kd(n,t,e))})}function UR(t,e){return Kd(Vd.statSync(t),t,e)}});var im=m((QL,rm)=>{rm.exports=em;em.sync=$R;var Jd=require("fs");function em(t,e,r){Jd.stat(t,function(i,n){r(i,i?!1:tm(n,e))})}function $R(t,e){return tm(Jd.statSync(t),e)}function tm(t,e){return t.isFile()&&jR(t,e)}function jR(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=a|c,h=r&l||r&c&&n===o||r&a&&i===s||r&u&&s===0;return h}});var sm=m((eI,nm)=>{var JL=require("fs"),Wn;process.platform==="win32"||global.TESTING_WINDOWS?Wn=Qd():Wn=im();nm.exports=Ac;Ac.sync=GR;function Ac(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){Ac(t,e||{},function(s,o){s?n(s):i(o)})})}Wn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function GR(t,e){try{return Wn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var fm=m((tI,hm)=>{var Hr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",om=require("path"),WR=Hr?";":":",am=sm(),cm=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),lm=(t,e)=>{let r=e.colon||WR,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}},um=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=lm(t,e),o=[],a=l=>new Promise((u,h)=>{if(l===i.length)return e.all&&o.length?u(o):h(cm(t));let f=i[l],g=/^".*"$/.test(f)?f.slice(1,-1):f,d=om.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;u(c(y,l,0))}),c=(l,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let d=n[h];am(l+d,{pathExt:s},(y,x)=>{if(!y&&x)if(e.all)o.push(l+d);else return f(l+d);return f(c(l,u,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},YR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=lm(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=om.join(c,t),u=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(am.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 cm(t)};hm.exports=um;um.sync=YR});var Oc=m((rI,Tc)=>{"use strict";var pm=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Tc.exports=pm;Tc.exports.default=pm});var ym=m((iI,gm)=>{"use strict";var dm=require("path"),zR=fm(),VR=Oc();function mm(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=zR.sync(t.command,{path:r[VR({env:r})],pathExt:e?dm.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=dm.resolve(n?t.options.cwd:"",o)),o}function KR(t){return mm(t)||mm(t,!0)}gm.exports=KR});var _m=m((nI,Pc)=>{"use strict";var Cc=/([()\][%!^"`<>&|;, *?])/g;function XR(t){return t=t.replace(Cc,"^$1"),t}function ZR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Cc,"^$1"),e&&(t=t.replace(Cc,"^$1")),t}Pc.exports.command=XR;Pc.exports.argument=ZR});var Sm=m((sI,Em)=>{"use strict";Em.exports=/^#!(.*)/});var xm=m((oI,bm)=>{"use strict";var QR=Sm();bm.exports=(t="")=>{let e=t.match(QR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var vm=m((aI,wm)=>{"use strict";var Lc=require("fs"),JR=xm();function eA(t){let r=Buffer.alloc(150),i;try{i=Lc.openSync(t,"r"),Lc.readSync(i,r,0,150,0),Lc.closeSync(i)}catch{}return JR(r.toString())}wm.exports=eA});var Om=m((cI,Tm)=>{"use strict";var tA=require("path"),Rm=ym(),Am=_m(),rA=vm(),iA=process.platform==="win32",nA=/\.(?:com|exe)$/i,sA=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function oA(t){t.file=Rm(t);let e=t.file&&rA(t.file);return e?(t.args.unshift(t.file),t.command=e,Rm(t)):t.file}function aA(t){if(!iA)return t;let e=oA(t),r=!nA.test(e);if(t.options.forceShell||r){let i=sA.test(e);t.command=tA.normalize(t.command),t.command=Am.command(t.command),t.args=t.args.map(s=>Am.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 cA(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:aA(i)}Tm.exports=cA});var Lm=m((lI,Pm)=>{"use strict";var Ic=process.platform==="win32";function kc(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 lA(t,e){if(!Ic)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Cm(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Cm(t,e){return Ic&&t===1&&!e.file?kc(e.original,"spawn"):null}function uA(t,e){return Ic&&t===1&&!e.file?kc(e.original,"spawnSync"):null}Pm.exports={hookChildProcess:lA,verifyENOENT:Cm,verifyENOENTSync:uA,notFoundError:kc}});var Nm=m((uI,Ur)=>{"use strict";var Im=require("child_process"),Nc=Om(),Dc=Lm();function km(t,e,r){let i=Nc(t,e,r),n=Im.spawn(i.command,i.args,i.options);return Dc.hookChildProcess(n,i),n}function hA(t,e,r){let i=Nc(t,e,r),n=Im.spawnSync(i.command,i.args,i.options);return n.error=n.error||Dc.verifyENOENTSync(n.status,i),n}Ur.exports=km;Ur.exports.spawn=km;Ur.exports.sync=hA;Ur.exports._parse=Nc;Ur.exports._enoent=Dc});var Fm=m((hI,Dm)=>{"use strict";Dm.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var VE=Object.create;var on=Object.defineProperty;var KE=Object.getOwnPropertyDescriptor;var XE=Object.getOwnPropertyNames;var ZE=Object.getPrototypeOf,QE=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qu=(t,e)=>{for(var r in e)on(t,r,{get:e[r],enumerable:!0})},Hu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of XE(e))!QE.call(t,n)&&n!==r&&on(t,n,{get:()=>e[n],enumerable:!(i=KE(e,n))||i.enumerable});return t};var B=(t,e,r)=>(r=t!=null?VE(ZE(t)):{},Hu(e||!t||!t.__esModule?on(r,"default",{value:t,enumerable:!0}):r,t)),JE=t=>Hu(on({},"__esModule",{value:!0}),t);var Uu=m((YP,ht)=>{function _o(t){return ht.exports=_o=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,_o(t)}ht.exports=_o,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var Gu=m((zP,ft)=>{var $u=Uu().default;function ju(){"use strict";ft.exports=ju=function(){return e},ft.exports.__esModule=!0,ft.exports.default=ft.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,E){p[b]=E.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(p,b,E){return Object.defineProperty(p,b,{value:E,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{l({},"")}catch{l=function(E,O,P){return E[O]=P}}function u(p,b,E,O){var P=b&&b.prototype instanceof v?b:v,T=Object.create(P.prototype),Y=new Be(O||[]);return n(T,"_invoke",{value:ie(p,E,Y)}),T}function h(p,b,E){try{return{type:"normal",arg:p.call(b,E)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",d="executing",y="completed",x={};function v(){}function A(){}function M(){}var re={};l(re,o,function(){return this});var N=Object.getPrototypeOf,H=N&&N(N(_([])));H&&H!==r&&i.call(H,o)&&(re=H);var L=M.prototype=v.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){l(p,b,function(E){return this._invoke(b,E)})})}function q(p,b){function E(P,T,Y,he){var ne=h(p[P],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&$u(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(qe){E("next",qe,Y,he)},function(qe){E("throw",qe,Y,he)}):b.resolve(k).then(function(qe){be.value=qe,Y(be)},function(qe){return E("throw",qe,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){E(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,E){var O=f;return function(P,T){if(O===d)throw new Error("Generator is already running");if(O===y){if(P==="throw")throw T;return{value:t,done:!0}}for(E.method=P,E.arg=T;;){var Y=E.delegate;if(Y){var he=S(Y,E);if(he){if(he===x)continue;return he}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(O===f)throw O=y,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);O=d;var ne=h(p,b,E);if(ne.type==="normal"){if(O=E.done?y:g,ne.arg===x)continue;return{value:ne.arg,done:E.done}}ne.type==="throw"&&(O=y,E.method="throw",E.arg=ne.arg)}}}function S(p,b){var E=b.method,O=p.iterator[E];if(O===t)return b.delegate=null,E==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,S(p,b),b.method==="throw")||E!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+E+"' method")),x;var P=h(O,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,x;var T=P.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,x):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,x)}function W(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function j(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Be(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var E=-1,O=function P(){for(;++E<p.length;)if(i.call(p,E))return P.value=p[E],P.done=!1,P;return P.value=t,P.done=!0,P};return O.next=O}}throw new TypeError($u(p)+" is not iterable")}return A.prototype=M,n(L,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:A,configurable:!0}),A.displayName=l(M,c,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===A||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,l(p,c,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(q.prototype),l(q.prototype,a,function(){return this}),e.AsyncIterator=q,e.async=function(p,b,E,O,P){P===void 0&&(P=Promise);var T=new q(u(p,b,E,O),P);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(L),l(L,c,"Generator"),l(L,o,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),E=[];for(var O in b)E.push(O);return E.reverse(),function P(){for(;E.length;){var T=E.pop();if(T in b)return P.value=T,P.done=!1,P}return P.done=!0,P}},e.values=_,Be.prototype={constructor:Be,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!b)for(var E in this)E.charAt(0)==="t"&&i.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var E=this;function O(be,k){return Y.type="throw",Y.arg=b,E.next=be,k&&(E.method="next",E.arg=t),!!k}for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P],Y=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,E){for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var T=P;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=E&&E<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=E,T?(this.method="next",this.next=T.finallyLoc,x):this.complete(Y)},complete:function(b,E){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&E&&(this.next=E),x},finish:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),j(O),x}},catch:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc===b){var P=O.completion;if(P.type==="throw"){var T=P.arg;j(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,E,O){return this.delegate={iterator:_(b),resultName:E,nextLoc:O},this.method==="next"&&(this.arg=t),x}},e}ft.exports=ju,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var Yu=m((VP,Wu)=>{var an=Gu()();Wu.exports=an;try{regeneratorRuntime=an}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=an:Function("r","regeneratorRuntime = r")(an)}});var Qh=m(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.splitWhen=Cr.flatten=void 0;function A0(t){return t.reduce((e,r)=>[].concat(e,r),[])}Cr.flatten=A0;function T0(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Cr.splitWhen=T0});var Jh=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.isEnoentCodeError=void 0;function O0(t){return t.code==="ENOENT"}gn.isEnoentCodeError=O0});var ef=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.createDirentFromStats=void 0;var Go=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 C0(t,e){return new Go(t,e)}yn.createDirentFromStats=C0});var tf=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var P0=require("path"),L0=2,I0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function k0(t){return t.replace(/\\/g,"/")}Qe.unixify=k0;function N0(t,e){return P0.resolve(t,e)}Qe.makeAbsolute=N0;function D0(t){return t.replace(I0,"\\$2")}Qe.escape=D0;function F0(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(L0)}return t}Qe.removeLeadingDotSegment=F0});var nf=m((k1,rf)=>{rf.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 af=m((N1,of)=>{var M0=nf(),sf={"{":"}","(":")","[":"]"},B0=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=sf[a];if(c){var l=t.indexOf(c,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},q0=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=sf[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};of.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(M0(e))return!0;var i=B0;return r&&r.strict===!1&&(i=q0),i(e)}});var lf=m((D1,cf)=>{"use strict";var H0=af(),U0=require("path").posix.dirname,$0=require("os").platform()==="win32",Wo="/",j0=/\\/g,G0=/[\{\[].*[\}\]]$/,W0=/(^|[^\\])([\{\[]|\([^\)]+$)/,Y0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;cf.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&$0&&e.indexOf(Wo)<0&&(e=e.replace(j0,Wo)),G0.test(e)&&(e+=Wo),e+="a";do e=U0(e);while(H0(e)||W0.test(e));return e.replace(Y0,"$1")}});var _n=m(He=>{"use strict";He.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;He.find=(t,e)=>t.nodes.find(r=>r.type===e);He.exceedsLimit=(t,e,r=1,i)=>i===!1||!He.isInteger(t)||!He.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;He.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};He.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);He.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;He.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;He.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);He.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];if(Array.isArray(s)){r(s);continue}s!==void 0&&e.push(s)}return e};return r(t),e}});var En=m((M1,hf)=>{"use strict";var uf=_n();hf.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&uf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&uf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let c of i.nodes)a+=r(c);return a};return r(t)}});var pf=m((B1,ff)=>{"use strict";ff.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var xf=m((q1,bf)=>{"use strict";var df=pf(),nr=(t,e,r)=>{if(df(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(df(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),c=t+":"+e+"="+n+s+o+a;if(nr.cache.hasOwnProperty(c))return nr.cache[c].result;let l=Math.min(t,e),u=Math.max(t,e);if(Math.abs(l-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Sf(t)||Sf(e),f={min:t,max:e,a:l,b:u},g=[],d=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let y=u<0?Math.abs(u):1;d=mf(y,Math.abs(l),f,i),l=f.a=0}return u>=0&&(g=mf(l,u,f,i)),f.negatives=d,f.positives=g,f.result=z0(d,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+d.length>1&&(f.result=`(?:${f.result})`),nr.cache[c]=f,f.result};function z0(t,e,r){let i=Yo(t,e,"-",!1,r)||[],n=Yo(e,t,"",!1,r)||[],s=Yo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function V0(t,e){let r=1,i=1,n=yf(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=yf(t,r);for(n=_f(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=_f(e+1,i)-1;return s=[...s],s.sort(Z0),s}function K0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=X0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[c,l]=i[a];c===l?s+=c:c!=="0"||l!=="9"?s+=Q0(c,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function mf(t,e,r,i){let n=V0(t,e),s=[],o=t,a;for(let c=0;c<n.length;c++){let l=n[c],u=K0(String(o),String(l),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+Ef(a.count),o=l+1;continue}r.isPadded&&(h=J0(l,r,i)),u.string=h+u.pattern+Ef(u.count),s.push(u),o=l+1,a=u}return s}function Yo(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!gf(e,"string",a)&&s.push(r+a),i&&gf(e,"string",a)&&s.push(r+a)}return s}function X0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function Z0(t,e){return t>e?1:e>t?-1:0}function gf(t,e,r){return t.some(i=>i[e]===r)}function yf(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function _f(t,e){return t-t%Math.pow(10,e)}function Ef(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Q0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Sf(t){return/^-?(0+)\d/.test(t)}function J0(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={};bf.exports=nr});var Ko=m((H1,Cf)=>{"use strict";var ex=require("util"),vf=xf(),wf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),tx=t=>e=>t===!0?Number(e):String(e),zo=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ti=t=>Number.isInteger(+t),Vo=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},rx=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,ix=(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},bn=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},nx=(t,e,r)=>{t.negatives.sort((a,c)=>a<c?-1:a>c?1:0),t.positives.sort((a,c)=>a<c?-1:a>c?1:0);let i=e.capture?"":"?:",n="",s="",o;return t.positives.length&&(n=t.positives.map(a=>bn(String(a),r)).join("|")),t.negatives.length&&(s=`-(${i}${t.negatives.map(a=>bn(String(a),r)).join("|")})`),n&&s?o=`${n}|${s}`:o=n||s,e.wrap?`(${i}${o})`:o},Rf=(t,e,r,i)=>{if(r)return vf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Af=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return vf(t,e,r)},Tf=(...t)=>new RangeError("Invalid range arguments: "+ex.inspect(...t)),Of=(t,e,r)=>{if(r.strictRanges===!0)throw Tf([t,e]);return[]},sx=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ox=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Tf([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),c=String(e),l=String(r);r=Math.max(Math.abs(r),1);let u=Vo(a)||Vo(c)||Vo(l),h=u?Math.max(a.length,c.length,l.length):0,f=u===!1&&rx(t,e,i)===!1,g=i.transform||tx(f);if(i.toRegex&&r===1)return Rf(bn(t,h),bn(e,h),!0,i);let d={negatives:[],positives:[]},y=A=>d[A<0?"negatives":"positives"].push(Math.abs(A)),x=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):x.push(ix(g(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?nx(d,i,h):Af(x,null,{wrap:!1,...i}):x},ax=(t,e,r=1,i={})=>{if(!Ti(t)&&t.length>1||!Ti(e)&&e.length>1)return Of(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return Rf(c,l,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?Af(u,null,{wrap:!1,options:i}):u},Sn=(t,e,r,i={})=>{if(e==null&&zo(t))return[t];if(!zo(t)||!zo(e))return Of(t,e,i);if(typeof r=="function")return Sn(t,e,1,{transform:r});if(wf(r))return Sn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Ti(r)?Ti(t)&&Ti(e)?ox(t,e,r,n):ax(t,e,Math.max(Math.abs(r),1),n):r!=null&&!wf(r)?sx(r,n):Sn(t,e,1,r)};Cf.exports=Sn});var If=m((U1,Lf)=>{"use strict";var cx=Ko(),Pf=_n(),lx=(t,e={})=>{let r=(i,n={})=>{let s=Pf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return c+i.value;if(i.isClose===!0)return console.log("node.isClose",c,i.value),c+i.value;if(i.type==="open")return a?c+i.value:"(";if(i.type==="close")return a?c+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Pf.reduce(i.nodes),h=cx(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)l+=r(u,i);return l};return r(t)};Lf.exports=lx});var Df=m(($1,Nf)=>{"use strict";var ux=Ko(),kf=En(),Pr=_n(),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)},hx=(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(),kf(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=ux(...h,e);f.length===0&&(f=kf(n,e)),a.push(sr(a.pop(),f)),n.nodes=[];return}let c=Pr.encloseBrace(n),l=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){a.push(sr(a.pop(),l,c));continue}if(f.value&&f.type!=="open"){l.push(sr(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return Pr.flatten(i(t))};Nf.exports=hx});var Mf=m((j1,Ff)=>{"use strict";Ff.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var $f=m((G1,Uf)=>{"use strict";var fx=En(),{MAX_LENGTH:Bf,CHAR_BACKSLASH:Xo,CHAR_BACKTICK:px,CHAR_COMMA:dx,CHAR_DOT:mx,CHAR_LEFT_PARENTHESES:gx,CHAR_RIGHT_PARENTHESES:yx,CHAR_LEFT_CURLY_BRACE:_x,CHAR_RIGHT_CURLY_BRACE:Ex,CHAR_LEFT_SQUARE_BRACKET:qf,CHAR_RIGHT_SQUARE_BRACKET:Hf,CHAR_DOUBLE_QUOTE:Sx,CHAR_SINGLE_QUOTE:bx,CHAR_NO_BREAK_SPACE:xx,CHAR_ZERO_WIDTH_NOBREAK_SPACE:wx}=Mf(),vx=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Bf,r.maxLength):Bf;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,c=0,l=t.length,u=0,h=0,f,g=()=>t[u++],d=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(d({type:"bos"});u<l;)if(o=s[s.length-1],f=g(),!(f===wx||f===xx)){if(f===Xo){d({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===Hf){d({type:"text",value:"\\"+f});continue}if(f===qf){c++;let y;for(;u<l&&(y=g());){if(f+=y,y===qf){c++;continue}if(y===Xo){f+=g();continue}if(y===Hf&&(c--,c===0))break}d({type:"text",value:f});continue}if(f===gx){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===yx){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===Sx||f===bx||f===px){let y=f,x;for(e.keepQuotes!==!0&&(f="");u<l&&(x=g());){if(x===Xo){f+=x+g();continue}if(x===y){e.keepQuotes===!0&&(f+=x);break}f+=x}d({type:"text",value:f});continue}if(f===_x){h++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=d(x),s.push(o),d({type:"open",value:f});continue}if(f===Ex){if(o.type!=="brace"){d({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===dx&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:fx(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===mx&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){d({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let x=y[y.length-1];x.value+=a.value+f,a=x,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let y=s[s.length-1],x=y.nodes.indexOf(o);y.nodes.splice(x,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};Uf.exports=vx});var Wf=m((W1,Gf)=>{"use strict";var jf=En(),Rx=If(),Ax=Df(),Tx=$f(),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={})=>Tx(t,e);Le.stringify=(t,e={})=>jf(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),Rx(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=Ax(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);Gf.exports=Le});var Oi=m((Y1,Xf)=>{"use strict";var Ox=require("path"),Je="\\\\/",Yf=`[^${Je}]`,mt="\\.",Cx="\\+",Px="\\?",xn="\\/",Lx="(?=.)",zf="[^/]",Zo=`(?:${xn}|$)`,Vf=`(?:^|${xn})`,Qo=`${mt}{1,2}${Zo}`,Ix=`(?!${mt})`,kx=`(?!${Vf}${Qo})`,Nx=`(?!${mt}{0,1}${Zo})`,Dx=`(?!${Qo})`,Fx=`[^.${xn}]`,Mx=`${zf}*?`,Kf={DOT_LITERAL:mt,PLUS_LITERAL:Cx,QMARK_LITERAL:Px,SLASH_LITERAL:xn,ONE_CHAR:Lx,QMARK:zf,END_ANCHOR:Zo,DOTS_SLASH:Qo,NO_DOT:Ix,NO_DOTS:kx,NO_DOT_SLASH:Nx,NO_DOTS_SLASH:Dx,QMARK_NO_DOT:Fx,STAR:Mx,START_ANCHOR:Vf},Bx={...Kf,SLASH_LITERAL:`[${Je}]`,QMARK:Yf,STAR:`${Yf}*?`,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}]|$)`},qx={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"};Xf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:qx,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:Ox.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?Bx:Kf}}});var Ci=m(Re=>{"use strict";var Hx=require("path"),Ux=process.platform==="win32",{REGEX_BACKSLASH:$x,REGEX_REMOVE_BACKSLASH:jx,REGEX_SPECIAL_CHARS:Gx,REGEX_SPECIAL_CHARS_GLOBAL:Wx}=Oi();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>Gx.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(Wx,"\\$1");Re.toPosixSlashes=t=>t.replace($x,"/");Re.removeBackslashes=t=>t.replace(jx,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:Ux===!0||Hx.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 np=m((V1,ip)=>{"use strict";var Zf=Ci(),{CHAR_ASTERISK:Jo,CHAR_AT:Yx,CHAR_BACKWARD_SLASH:Pi,CHAR_COMMA:zx,CHAR_DOT:ea,CHAR_EXCLAMATION_MARK:ta,CHAR_FORWARD_SLASH:rp,CHAR_LEFT_CURLY_BRACE:ra,CHAR_LEFT_PARENTHESES:ia,CHAR_LEFT_SQUARE_BRACKET:Vx,CHAR_PLUS:Kx,CHAR_QUESTION_MARK:Qf,CHAR_RIGHT_CURLY_BRACE:Xx,CHAR_RIGHT_PARENTHESES:Jf,CHAR_RIGHT_SQUARE_BRACKET:Zx}=Oi(),ep=t=>t===rp||t===Pi,tp=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Qx=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,l=-1,u=0,h=0,f=!1,g=!1,d=!1,y=!1,x=!1,v=!1,A=!1,M=!1,re=!1,N=!1,H=0,L,I,q={value:"",depth:0,isGlob:!1},ie=()=>l>=i,S=()=>c.charCodeAt(l+1),W=()=>(L=I,c.charCodeAt(++l));for(;l<i;){I=W();let b;if(I===Pi){A=q.backslashes=!0,I=W(),I===ra&&(v=!0);continue}if(v===!0||I===ra){for(H++;ie()!==!0&&(I=W());){if(I===Pi){A=q.backslashes=!0,W();continue}if(I===ra){H++;continue}if(v!==!0&&I===ea&&(I=W())===ea){if(f=q.isBrace=!0,d=q.isGlob=!0,N=!0,n===!0)continue;break}if(v!==!0&&I===zx){if(f=q.isBrace=!0,d=q.isGlob=!0,N=!0,n===!0)continue;break}if(I===Xx&&(H--,H===0)){v=!1,f=q.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===rp){if(s.push(l),o.push(q),q={value:"",depth:0,isGlob:!1},N===!0)continue;if(L===ea&&l===u+1){u+=2;continue}h=l+1;continue}if(r.noext!==!0&&(I===Kx||I===Yx||I===Jo||I===Qf||I===ta)===!0&&S()===ia){if(d=q.isGlob=!0,y=q.isExtglob=!0,N=!0,I===ta&&l===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Pi){A=q.backslashes=!0,I=W();continue}if(I===Jf){d=q.isGlob=!0,N=!0;break}}continue}break}if(I===Jo){if(L===Jo&&(x=q.isGlobstar=!0),d=q.isGlob=!0,N=!0,n===!0)continue;break}if(I===Qf){if(d=q.isGlob=!0,N=!0,n===!0)continue;break}if(I===Vx){for(;ie()!==!0&&(b=W());){if(b===Pi){A=q.backslashes=!0,W();continue}if(b===Zx){g=q.isBracket=!0,d=q.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===ta&&l===u){M=q.negated=!0,u++;continue}if(r.noparen!==!0&&I===ia){if(d=q.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===ia){A=q.backslashes=!0,I=W();continue}if(I===Jf){N=!0;break}}continue}break}if(d===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,d=!1);let j=c,Be="",_="";u>0&&(Be=c.slice(0,u),c=c.slice(u),h-=u),j&&d===!0&&h>0?(j=c.slice(0,h),_=c.slice(h)):d===!0?(j="",_=c):j=c,j&&j!==""&&j!=="/"&&j!==c&&ep(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),r.unescape===!0&&(_&&(_=Zf.removeBackslashes(_)),j&&A===!0&&(j=Zf.removeBackslashes(j)));let p={prefix:Be,input:t,start:u,base:j,glob:_,isBrace:f,isBracket:g,isGlob:d,isExtglob:y,isGlobstar:x,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,ep(I)||o.push(q),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let E=0;E<s.length;E++){let O=b?b+1:u,P=s[E],T=t.slice(O,P);r.tokens&&(E===0&&u!==0?(o[E].isPrefix=!0,o[E].value=Be):o[E].value=T,tp(o[E]),p.maxDepth+=o[E].depth),(E!==0||T!=="")&&a.push(T),b=P}if(b&&b+1<t.length){let E=t.slice(b+1);a.push(E),r.tokens&&(o[o.length-1].value=E,tp(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};ip.exports=Qx});var ap=m((K1,op)=>{"use strict";var wn=Oi(),Ie=Ci(),{MAX_LENGTH:vn,POSIX_REGEX_SOURCE:Jx,REGEX_NON_SPECIAL_CHARS:ew,REGEX_SPECIAL_CHARS_BACKREF:tw,REPLACEMENTS:sp}=wn,rw=(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`,na=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=sp[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(vn,r.maxLength):vn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=Ie.isWindows(e),l=wn.globChars(c),u=wn.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:d,DOTS_SLASH:y,NO_DOT:x,NO_DOT_SLASH:v,NO_DOTS_SLASH:A,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:H}=l,L=R=>`(${a}(?:(?!${H}${R.dot?y:h}).)*?)`,I=r.dot?"":x,q=r.dot?M:re,ie=r.bash===!0?L(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let S={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Ie.removePrefix(t,S),n=t.length;let W=[],j=[],Be=[],_=s,p,b=()=>S.index===n-1,E=S.peek=(R=1)=>t[S.index+R],O=S.advance=()=>t[++S.index]||"",P=()=>t.slice(S.index+1),T=(R="",V=0)=>{S.consumed+=R,S.index+=V},Y=R=>{S.output+=R.output!=null?R.output:R.value,T(R.value)},he=()=>{let R=1;for(;E()==="!"&&(E(2)!=="("||E(3)==="?");)O(),S.start++,R++;return R%2===0?!1:(S.negated=!0,S.start++,!0)},ne=R=>{S[R]++,Be.push(R)},be=R=>{S[R]--,Be.pop()},k=R=>{if(_.type==="globstar"){let V=S.braces>0&&(R.type==="comma"||R.type==="brace"),w=R.extglob===!0||W.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!V&&!w&&(S.output=S.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,S.output+=_.output)}if(W.length&&R.type!=="paren"&&(W[W.length-1].inner+=R.value),(R.value||R.output)&&Y(R),_&&_.type==="text"&&R.type==="text"){_.value+=R.value,_.output=(_.output||"")+R.value;return}R.prev=_,o.push(R),_=R},qe=(R,V)=>{let w={...u[V],conditions:1,inner:""};w.prev=_,w.parens=S.parens,w.output=S.output;let F=(r.capture?"(":"")+w.open;ne("parens"),k({type:R,value:V,output:S.output?"":d}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(w)},zE=R=>{let V=R.close+(r.capture?")":""),w;if(R.type==="negate"){let F=ie;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(F=L(r)),(F!==ie||b()||/^\)+$/.test(P()))&&(V=R.close=`)$))${F}`),R.inner.includes("*")&&(w=P())&&/^\.[^\\/.]+$/.test(w)){let Q=na(w,{...e,fastpaths:!1}).output;V=R.close=`)${Q})${F})`}R.prev.type==="bos"&&(S.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:V}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let R=!1,V=t.replace(tw,(w,F,Q,xe,se,yo)=>xe==="\\"?(R=!0,w):xe==="?"?F?F+xe+(se?M.repeat(se.length):""):yo===0?q+(se?M.repeat(se.length):""):M.repeat(Q.length):xe==="."?h.repeat(Q.length):xe==="*"?F?F+xe+(se?ie:""):ie:F?w:`\\${w}`);return R===!0&&(r.unescape===!0?V=V.replace(/\\/g,""):V=V.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),V===t&&r.contains===!0?(S.output=t,S):(S.output=Ie.wrapOutput(V,S,e),S)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let w=E();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(P()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,S.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),S.brackets===0){k({type:"text",value:p});continue}}if(S.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let w=_.value.slice(1);if(w.includes("[")&&(_.posix=!0,w.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),xe=_.value.slice(F+2),se=Jx[xe];if(se){_.value=Q+se,S.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=d);continue}}}(p==="["&&E()!==":"||p==="-"&&E()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(S.quotes===1&&p!=='"'){p=Ie.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){S.quotes=S.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Lr("opening","("));let w=W[W.length-1];if(w&&S.parens===w.parens+1){zE(W.pop());continue}k({type:"paren",value:p,output:S.parens?")":"\\)"}),be("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(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(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Lr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let w=_.value.slice(1);if(_.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Ie.hasRegexChars(w))continue;let F=Ie.escapeRegex(_.value);if(S.output=S.output.slice(0,-_.value.length),r.literalBrackets===!0){S.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,S.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let w={type:"brace",value:p,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};j.push(w),k(w);continue}if(p==="}"){let w=j[j.length-1];if(r.nobrace===!0||!w){k({type:"text",value:p,output:p});continue}let F=")";if(w.dots===!0){let Q=o.slice(),xe=[];for(let se=Q.length-1;se>=0&&(o.pop(),Q[se].type!=="brace");se--)Q[se].type!=="dots"&&xe.unshift(Q[se].value);F=rw(xe,r),S.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Q=S.output.slice(0,w.outputIndex),xe=S.tokens.slice(w.tokensIndex);w.value=w.output="\\{",p=F="\\}",S.output=Q;for(let se of xe)S.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),j.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let w=p,F=j[j.length-1];F&&Be[Be.length-1]==="braces"&&(F.comma=!0,w="|"),k({type:"comma",value:p,output:w});continue}if(p==="/"){if(_.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(S.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let w=j[j.length-1];_.type="dots",_.output+=p,_.value+=p,w.dots=!0;continue}if(S.braces+S.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&E()==="("&&E(2)!=="?"){qe("qmark",p);continue}if(_&&_.type==="paren"){let F=E(),Q=p;if(F==="<"&&!Ie.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(P()))&&(Q=`\\${p}`),k({type:"text",value:p,output:Q});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&E()==="("&&(E(2)!=="?"||!/[!=<:]/.test(E(3)))){qe("negate",p);continue}if(r.nonegate!==!0&&S.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){qe("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||S.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let w=ew.exec(P());w&&(p+=w[0],S.index+=w[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,S.backtrack=!0,S.globstar=!0,T(p);continue}let R=P();if(r.noextglob!==!0&&/^\([^?]/.test(R)){qe("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let w=_.prev,F=w.prev,Q=w.type==="slash"||w.type==="bos",xe=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||R[0]&&R[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=S.braces>0&&(w.type==="comma"||w.type==="brace"),yo=W.length&&(w.type==="pipe"||w.type==="paren");if(!Q&&w.type!=="paren"&&!se&&!yo){k({type:"star",value:p,output:""});continue}for(;R.slice(0,3)==="/**";){let sn=t[S.index+4];if(sn&&sn!=="/")break;R=R.slice(3),T("/**",3)}if(w.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=L(r),S.output=_.output,S.globstar=!0,T(p);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!xe&&b()){S.output=S.output.slice(0,-(w.output+_.output).length),w.output=`(?:${w.output}`,_.type="globstar",_.output=L(r)+(r.strictSlashes?")":"|$)"),_.value+=p,S.globstar=!0,S.output+=w.output+_.output,T(p);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&R[0]==="/"){let sn=R[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(w.output+_.output).length),w.output=`(?:${w.output}`,_.type="globstar",_.output=`${L(r)}${g}|${g}${sn})`,_.value+=p,S.output+=w.output+_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&R[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${L(r)}${g})`,S.output=_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-_.output.length),_.type="globstar",_.output=L(r),_.value+=p,S.output+=_.output,S.globstar=!0,T(p);continue}let 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}(S.index===S.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(S.output+=v,_.output+=v):r.dot===!0?(S.output+=A,_.output+=A):(S.output+=I,_.output+=I),E()!=="*"&&(S.output+=d,_.output+=d)),k(V)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","]"));S.output=Ie.escapeLast(S.output,"["),be("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing",")"));S.output=Ie.escapeLast(S.output,"("),be("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Lr("closing","}"));S.output=Ie.escapeLast(S.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),S.backtrack===!0){S.output="";for(let R of S.tokens)S.output+=R.output!=null?R.output:R.value,R.suffix&&(S.output+=R.suffix)}return S};na.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(vn,r.maxLength):vn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=sp[t]||t;let s=Ie.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:d}=wn.globChars(s),y=r.dot?h:u,x=r.dot?f:u,v=r.capture?"":"?:",A={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${v}(?:(?!${d}${I.dot?l:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${c}${M}`;case".*":return`${o}${c}${M}`;case"*.*":return`${y}${M}${o}${c}${M}`;case"*/*":return`${y}${M}${a}${c}${x}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${x}${c}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${x}${M}${o}${c}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${c}${M}`;default:{let q=/^(.*?)\.(\w+)$/.exec(I);if(!q)return;let ie=N(q[1]);return ie?ie+o+q[2]:void 0}}},H=Ie.removePrefix(t,A),L=N(H);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};op.exports=na});var lp=m((X1,cp)=>{"use strict";var iw=require("path"),nw=np(),sa=ap(),oa=Ci(),sw=Oi(),ow=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let d=g(f);if(d)return d}return!1}}let i=ow(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=oa.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};c=J(n.ignore,u,r)}let l=(u,h=!1)=>{let{isMatch:f,match:g,output:d}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:d,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):c(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(l.state=a),l};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?oa.toPosixSlashes:null),a=t===i,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};J.matchBase=(t,e,r,i=oa.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(iw.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)):sa(t,{...e,fastpaths:!1});J.scan=(t,e)=>nw(t,e);J.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=J.toRegex(a,e);return i===!0&&(c.state=t),c};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=sa.fastpaths(t,e)),n.output||(n=sa(t,e)),J.compileRe(n,e,r,i)};J.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};J.constants=sw;cp.exports=J});var hp=m((Z1,up)=>{"use strict";up.exports=lp()});var yp=m((Q1,gp)=>{"use strict";var pp=require("util"),dp=Wf(),et=hp(),aa=Ci(),fp=t=>t===""||t==="./",mp=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},K=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=et(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let d=h(g,!0);(f?!d.isMatch:d.isMatch)&&(f?i.add(d.output):(i.delete(d.output),n.add(d.output)))}}let l=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return l};K.match=K;K.matcher=(t,e)=>et(t,e);K.isMatch=(t,e,r)=>et(e,r)(t);K.any=K.isMatch;K.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(K(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};K.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${pp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>K.contains(t,i,r));if(typeof e=="string"){if(fp(t)||fp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return K.isMatch(t,e,{...r,contains:!0})};K.matchKeys=(t,e,r)=>{if(!aa.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=K(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};K.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};K.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};K.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${pp.inspect(t)}"`);return[].concat(e).every(i=>et(i,r)(t))};K.capture=(t,e,r)=>{let i=aa.isWindows(r),s=et.makeRe(String(t),{...r,capture:!0}).exec(i?aa.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};K.makeRe=(...t)=>et.makeRe(...t);K.scan=(...t)=>et.scan(...t);K.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of dp(String(i),e))r.push(et.parse(n,e));return r};K.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!mp(t)?[t]:dp(t,e)};K.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return K.braces(t,{...e,expand:!0})};K.hasBraces=mp;gp.exports=K});var Rp=m(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var aw=require("path"),cw=lf(),ca=yp(),_p="**",lw="\\",uw=/[*?]|^!/,hw=/\[[^[]*]/,fw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pw=/[!*+?@]\([^(]*\)/,dw=/,|\.\./;function Ep(t,e={}){return!Sp(t,e)}D.isStaticPattern=Ep;function Sp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(lw)||uw.test(t)||hw.test(t)||fw.test(t)||e.extglob!==!1&&pw.test(t)||e.braceExpansion!==!1&&mw(t))}D.isDynamicPattern=Sp;function mw(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 dw.test(i)}function gw(t){return Rn(t)?t.slice(1):t}D.convertToPositivePattern=gw;function yw(t){return"!"+t}D.convertToNegativePattern=yw;function Rn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=Rn;function bp(t){return!Rn(t)}D.isPositivePattern=bp;function _w(t){return t.filter(Rn)}D.getNegativePatterns=_w;function Ew(t){return t.filter(bp)}D.getPositivePatterns=Ew;function Sw(t){return t.filter(e=>!la(e))}D.getPatternsInsideCurrentDirectory=Sw;function bw(t){return t.filter(la)}D.getPatternsOutsideCurrentDirectory=bw;function la(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=la;function xw(t){return cw(t,{flipBackslashes:!1})}D.getBaseDirectory=xw;function ww(t){return t.includes(_p)}D.hasGlobStar=ww;function xp(t){return t.endsWith("/"+_p)}D.endsWithSlashGlobStar=xp;function vw(t){let e=aw.basename(t);return xp(t)||Ep(e)}D.isAffectDepthOfReadingPattern=vw;function Rw(t){return t.reduce((e,r)=>e.concat(wp(r)),[])}D.expandPatternsWithBraceExpansion=Rw;function wp(t){return ca.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=wp;function Aw(t,e){let{parts:r}=ca.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=Aw;function vp(t,e){return ca.makeRe(t,e)}D.makeRe=vp;function Tw(t,e){return t.map(r=>vp(r,e))}D.convertPatternsToRe=Tw;function Ow(t,e){return e.some(r=>r.test(t))}D.matchAny=Ow});var Cp=m((eL,Op)=>{"use strict";var Cw=require("stream"),Ap=Cw.PassThrough,Pw=Array.prototype.slice;Op.exports=Lw;function Lw(){let t=[],e=Pw.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=Ap(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(Tp(arguments[u],i));return c(),this}function c(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(l);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,c())}function g(d){function y(){d.removeListener("merge2UnpipeEnd",y),d.removeListener("end",y),s&&d.removeListener("error",x),f()}function x(v){o.emit("error",v)}if(d._readableState.endEmitted)return f();d.on("merge2UnpipeEnd",y),d.on("end",y),s&&d.on("error",x),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<u.length;d++)g(u[d]);f()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Tp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Tp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Ap(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Lp=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.merge=void 0;var Iw=Cp();function kw(t){let e=Iw(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Pp(t)),e.once("end",()=>Pp(t)),e}An.merge=kw;function Pp(t){t.forEach(e=>e.emit("close"))}});var Ip=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEmpty=Ir.isString=void 0;function Nw(t){return typeof t=="string"}Ir.isString=Nw;function Dw(t){return t===""}Ir.isEmpty=Dw});var gt=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Fw=Qh();de.array=Fw;var Mw=Jh();de.errno=Mw;var Bw=ef();de.fs=Bw;var qw=tf();de.path=qw;var Hw=Rp();de.pattern=Hw;var Uw=Lp();de.stream=Uw;var $w=Ip();de.string=$w});var Dp=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var yt=gt();function jw(t,e){let r=kp(t),i=Np(t,e.ignore),n=r.filter(c=>yt.pattern.isStaticPattern(c,e)),s=r.filter(c=>yt.pattern.isDynamicPattern(c,e)),o=ua(n,i,!1),a=ua(s,i,!0);return o.concat(a)}me.generate=jw;function ua(t,e,r){let i=[],n=yt.pattern.getPatternsOutsideCurrentDirectory(t),s=yt.pattern.getPatternsInsideCurrentDirectory(t),o=ha(n),a=ha(s);return i.push(...fa(o,e,r)),"."in a?i.push(pa(".",s,e,r)):i.push(...fa(a,e,r)),i}me.convertPatternsToTasks=ua;function kp(t){return yt.pattern.getPositivePatterns(t)}me.getPositivePatterns=kp;function Np(t,e){return yt.pattern.getNegativePatterns(t).concat(e).map(yt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Np;function ha(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=ha;function fa(t,e,r){return Object.keys(t).map(i=>pa(i,t[i],e,r))}me.convertPatternGroupsToTasks=fa;function pa(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(yt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=pa});var Mp=m(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.removeDuplicateSlashes=kr.transform=void 0;var Gw=/(?!^)\/{2,}/g;function Ww(t){return t.map(e=>Fp(e))}kr.transform=Ww;function Fp(t){return t.replace(Gw,"/")}kr.removeDuplicateSlashes=Fp});var qp=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.read=void 0;function Yw(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Bp(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){da(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Bp(r,s);return}da(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),da(r,o)})})}Tn.read=Yw;function Bp(t,e){t(e)}function da(t,e){t(null,e)}});var Hp=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.read=void 0;function zw(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}}On.read=zw});var Up=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var Cn=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:Cn.lstat,stat:Cn.stat,lstatSync:Cn.lstatSync,statSync:Cn.statSync};function Vw(t){return t===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),t)}Nt.createFileSystemAdapter=Vw});var $p=m(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var Kw=Up(),ma=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Kw.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}};ga.default=ma});var or=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.statSync=Dt.stat=Dt.Settings=void 0;var jp=qp(),Xw=Hp(),ya=$p();Dt.Settings=ya.default;function Zw(t,e,r){if(typeof e=="function"){jp.read(t,_a(),e);return}jp.read(t,_a(e),r)}Dt.stat=Zw;function Qw(t,e){let r=_a(e);return Xw.read(t,r)}Dt.statSync=Qw;function _a(t={}){return t instanceof ya.default?t:new ya.default(t)}});var Yp=m((hL,Wp)=>{var Gp;Wp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Gp||(Gp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Vp=m((fL,zp)=>{zp.exports=ev;var Jw=Yp();function ev(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(c){function l(){e&&e(c,r),e=null}s?Jw(l):l()}function a(c,l,u){r[c]=u,(--i===0||l)&&o(l)}i?n?n.forEach(function(c){t[c](function(l,u){a(c,l,u)})}):t.forEach(function(c,l){c(function(u,h){a(l,u,h)})}):o(null),s=!1}});var Ea=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Pn=process.versions.node.split(".");if(Pn[0]===void 0||Pn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Kp=Number.parseInt(Pn[0],10),tv=Number.parseInt(Pn[1],10),Xp=10,rv=10,iv=Kp>Xp,nv=Kp===Xp&&tv>=rv;Ln.IS_SUPPORT_READDIR_WITH_FILE_TYPES=iv||nv});var Zp=m(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.createDirentFromStats=void 0;var Sa=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function sv(t,e){return new Sa(t,e)}In.createDirentFromStats=sv});var ba=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.fs=void 0;var ov=Zp();kn.fs=ov});var xa=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.joinPathSegments=void 0;function av(t,e,r){return t.endsWith(r)?t+e:t+r+e}Nn.joinPathSegments=av});var id=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var cv=or(),Qp=Vp(),lv=Ea(),Jp=ba(),ed=xa();function uv(t,e,r){if(!e.stats&&lv.IS_SUPPORT_READDIR_WITH_FILE_TYPES){td(t,e,r);return}rd(t,e,r)}Ft.read=uv;function td(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Dn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:ed.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){wa(r,s);return}let o=s.map(a=>hv(a,e));Qp(o,(a,c)=>{if(a!==null){Dn(r,a);return}wa(r,c)})})}Ft.readdirWithFileTypes=td;function hv(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=Jp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function rd(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Dn(r,i);return}let s=n.map(o=>{let a=ed.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{cv.stat(a,e.fsStatSettings,(l,u)=>{if(l!==null){c(l);return}let h={name:o,path:a,dirent:Jp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),c(null,h)})}});Qp(s,(o,a)=>{if(o!==null){Dn(r,o);return}wa(r,a)})})}Ft.readdir=rd;function Dn(t,e){t(e)}function wa(t,e){t(null,e)}});var cd=m(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.readdir=Mt.readdirWithFileTypes=Mt.read=void 0;var fv=or(),pv=Ea(),nd=ba(),sd=xa();function dv(t,e){return!e.stats&&pv.IS_SUPPORT_READDIR_WITH_FILE_TYPES?od(t,e):ad(t,e)}Mt.read=dv;function od(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:sd.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=nd.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Mt.readdirWithFileTypes=od;function ad(t,e){return e.fs.readdirSync(t).map(i=>{let n=sd.joinPathSegments(t,i,e.pathSegmentSeparator),s=fv.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:nd.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Mt.readdir=ad});var ld=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var Nr=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:Nr.lstat,stat:Nr.stat,lstatSync:Nr.lstatSync,statSync:Nr.statSync,readdir:Nr.readdir,readdirSync:Nr.readdirSync};function mv(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bt.FILE_SYSTEM_ADAPTER),t)}Bt.createFileSystemAdapter=mv});var ud=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var gv=require("path"),yv=or(),_v=ld(),va=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=_v.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,gv.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new yv.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ra.default=va});var Fn=m(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.Settings=qt.scandirSync=qt.scandir=void 0;var hd=id(),Ev=cd(),Aa=ud();qt.Settings=Aa.default;function Sv(t,e,r){if(typeof e=="function"){hd.read(t,Ta(),e);return}hd.read(t,Ta(e),r)}qt.scandir=Sv;function bv(t,e){let r=Ta(e);return Ev.read(t,r)}qt.scandirSync=bv;function Ta(t={}){return t instanceof Aa.default?t:new Aa.default(t)}});var pd=m((xL,fd)=>{"use strict";function xv(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}}fd.exports=xv});var md=m((wL,Oa)=>{"use strict";var wv=pd();function dd(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=wv(vv),n=null,s=null,o=0,a=null,c={push:y,drain:Ue,saturated:Ue,pause:u,paused:!1,concurrency:r,running:l,resume:g,idle:d,length:h,getQueue:f,unshift:x,empty:Ue,kill:A,killAndDrain:M,error:re};return c;function l(){return o}function u(){c.paused=!0}function h(){for(var N=n,H=0;N;)N=N.next,H++;return H}function f(){for(var N=n,H=[];N;)H.push(N.value),N=N.next;return H}function g(){if(c.paused){c.paused=!1;for(var N=0;N<c.concurrency;N++)o++,v()}}function d(){return o===0&&c.length()===0}function y(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,L.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=L,s=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function x(N,H){var L=i.get();L.context=t,L.release=v,L.value=N,L.callback=H||Ue,o===c.concurrency||c.paused?n?(L.next=n,n=L):(n=L,s=L,c.saturated()):(o++,e.call(t,L.value,L.worked))}function v(N){N&&i.release(N);var H=n;H?c.paused?o--:(s===n&&(s=null),n=H.next,H.next=null,e.call(t,H.value,H.worked),s===null&&c.empty()):--o===0&&c.drain()}function A(){n=null,s=null,c.drain=Ue}function M(){n=null,s=null,c.drain(),c.drain=Ue}function re(N){a=N}}function Ue(){}function vv(){this.value=null,this.callback=Ue,this.next=null,this.release=Ue,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Ue,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function Rv(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=dd(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=c,n.drained=l,n;function a(u){var h=new Promise(function(f,g){s(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function c(u){var h=new Promise(function(f,g){o(u,function(d,y){if(d){g(d);return}f(y)})});return h.catch(Ue),h}function l(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}Oa.exports=dd;Oa.exports.promise=Rv});var Mn=m(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function Av(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=Av;function Tv(t,e){return t===null||t(e)}tt.isAppliedFilter=Tv;function Ov(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=Ov;function Cv(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=Cv});var La=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Pv=Mn(),Ca=class{constructor(e,r){this._root=e,this._settings=r,this._root=Pv.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Pa.default=Ca});var Na=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Lv=require("events"),Iv=Fn(),kv=md(),Bn=Mn(),Nv=La(),Ia=class extends Nv.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Iv.scandir,this._emitter=new Lv.EventEmitter,this._queue=kv(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||!Bn.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=Bn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Bn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Bn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ka.default=Ia});var gd=m(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var Dv=Na(),Da=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Dv.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Fv(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Mv(e,this._storage)}),this._reader.read()}};Fa.default=Da;function Fv(t,e){t(e)}function Mv(t,e){t(null,e)}});var yd=m(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Bv=require("stream"),qv=Na(),Ma=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new qv.default(this._root,this._settings),this._stream=new Bv.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}};Ba.default=Ma});var _d=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Hv=Fn(),qn=Mn(),Uv=La(),qa=class extends Uv.default{constructor(){super(...arguments),this._scandir=Hv.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(qn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=qn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),qn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&qn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ha.default=qa});var Ed=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var $v=_d(),Ua=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $v.default(this._root,this._settings)}read(){return this._reader.read()}};$a.default=Ua});var Sd=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var jv=require("path"),Gv=Fn(),ja=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,jv.sep),this.fsScandirSettings=new Gv.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}};Ga.default=ja});var Un=m(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkStream=rt.walkSync=rt.walk=void 0;var bd=gd(),Wv=yd(),Yv=Ed(),Wa=Sd();rt.Settings=Wa.default;function zv(t,e,r){if(typeof e=="function"){new bd.default(t,Hn()).read(e);return}new bd.default(t,Hn(e)).read(r)}rt.walk=zv;function Vv(t,e){let r=Hn(e);return new Yv.default(t,r).read()}rt.walkSync=Vv;function Kv(t,e){let r=Hn(e);return new Wv.default(t,r).read()}rt.walkStream=Kv;function Hn(t={}){return t instanceof Wa.default?t:new Wa.default(t)}});var $n=m(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var Xv=require("path"),Zv=or(),xd=gt(),Ya=class{constructor(e){this._settings=e,this._fsStatSettings=new Zv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Xv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:xd.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!xd.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};za.default=Ya});var Xa=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Qv=require("stream"),Jv=or(),eR=Un(),tR=$n(),Va=class extends tR.default{constructor(){super(...arguments),this._walkStream=eR.walkStream,this._stat=Jv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new Qv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&n.push(c),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Ka.default=Va});var wd=m(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var rR=Un(),iR=$n(),nR=Xa(),Za=class extends iR.default{constructor(){super(...arguments),this._walkAsync=rR.walk,this._readerStream=new nR.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))})}};Qa.default=Za});var vd=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var Dr=gt(),Ja=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))}};ec.default=Ja});var Rd=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var sR=vd(),tc=class extends sR.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((c,l)=>{let u=s.segments[l];return!!(u.dynamic&&u.patternRe.test(c)||!u.dynamic&&u.pattern===c)}))return!0}return!1}};rc.default=tc});var Ad=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var jn=gt(),oR=Rd(),ic=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 oR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(jn.pattern.isAffectDepthOfReadingPattern);return jn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=jn.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!jn.pattern.matchAny(e,r)}};nc.default=ic});var Td=m(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var ar=gt(),sc=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}};oc.default=sc});var Od=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var aR=gt(),ac=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return aR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};cc.default=ac});var Pd=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var Cd=gt(),lc=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Cd.path.makeAbsolute(this._settings.cwd,r),r=Cd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};uc.default=lc});var Gn=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var cR=require("path"),lR=Ad(),uR=Td(),hR=Od(),fR=Pd(),hc=class{constructor(e){this._settings=e,this.errorFilter=new hR.default(this._settings),this.entryFilter=new uR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new lR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new fR.default(this._settings)}_getRootDirectory(e){return cR.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}}};fc.default=hc});var Ld=m(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var pR=wd(),dR=Gn(),pc=class extends dR.default{constructor(){super(...arguments),this._reader=new pR.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)}};dc.default=pc});var Id=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var mR=require("stream"),gR=Xa(),yR=Gn(),mc=class extends yR.default{constructor(){super(...arguments),this._reader=new gR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new mR.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)}};gc.default=mc});var kd=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var _R=or(),ER=Un(),SR=$n(),yc=class extends SR.default{constructor(){super(...arguments),this._walkSync=ER.walkSync,this._statSync=_R.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)}};_c.default=yc});var Nd=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var bR=kd(),xR=Gn(),Ec=class extends xR.default{constructor(){super(...arguments),this._reader=new bR.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)}};Sc.default=Ec});var Dd=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fr=require("fs"),wR=require("os"),vR=Math.max(wR.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 bc=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,vR),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=bc});var qd=m((VL,Bd)=>{"use strict";var Fd=Dp(),Md=Mp(),RR=Ld(),AR=Id(),TR=Nd(),xc=Dd(),cr=gt();async function wc(t,e){Br(t);let r=vc(t,RR.default,e),i=await Promise.all(r);return cr.array.flatten(i)}(function(t){function e(o,a){Br(o);let c=vc(o,TR.default,a);return cr.array.flatten(c)}t.sync=e;function r(o,a){Br(o);let c=vc(o,AR.default,a);return cr.stream.merge(c)}t.stream=r;function i(o,a){Br(o);let c=Md.transform([].concat(o)),l=new xc.default(a);return Fd.generate(c,l)}t.generateTasks=i;function n(o,a){Br(o);let c=new xc.default(a);return cr.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=n;function s(o){return Br(o),cr.path.escape(o)}t.escapePath=s})(wc||(wc={}));function vc(t,e,r){let i=Md.transform([].concat(t)),n=new xc.default(r),s=Fd.generate(i,n),o=new e(n);return s.map(o.read,o)}function Br(t){if(![].concat(t).every(i=>cr.string.isString(i)&&!cr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Bd.exports=wc});var em=m((QL,Jd)=>{Jd.exports=Qd;Qd.sync=HR;var Xd=require("fs");function qR(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:qR(e,r)}function Qd(t,e,r){Xd.stat(t,function(i,n){r(i,i?!1:Zd(n,t,e))})}function HR(t,e){return Zd(Xd.statSync(t),t,e)}});var sm=m((JL,nm)=>{nm.exports=rm;rm.sync=UR;var tm=require("fs");function rm(t,e,r){tm.stat(t,function(i,n){r(i,i?!1:im(n,e))})}function UR(t,e){return im(tm.statSync(t),e)}function im(t,e){return t.isFile()&&$R(t,e)}function $R(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=a|c,h=r&l||r&c&&n===o||r&a&&i===s||r&u&&s===0;return h}});var am=m((tI,om)=>{var eI=require("fs"),Yn;process.platform==="win32"||global.TESTING_WINDOWS?Yn=em():Yn=sm();om.exports=Oc;Oc.sync=jR;function Oc(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){Oc(t,e||{},function(s,o){s?n(s):i(o)})})}Yn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function jR(t,e){try{return Yn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var dm=m((rI,pm)=>{var Ur=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",cm=require("path"),GR=Ur?";":":",lm=am(),um=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),hm=(t,e)=>{let r=e.colon||GR,i=t.match(/\//)||Ur&&t.match(/\\/)?[""]:[...Ur?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Ur?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ur?n.split(r):[""];return Ur&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},fm=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=hm(t,e),o=[],a=l=>new Promise((u,h)=>{if(l===i.length)return e.all&&o.length?u(o):h(um(t));let f=i[l],g=/^".*"$/.test(f)?f.slice(1,-1):f,d=cm.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;u(c(y,l,0))}),c=(l,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let d=n[h];lm(l+d,{pathExt:s},(y,x)=>{if(!y&&x)if(e.all)o.push(l+d);else return f(l+d);return f(c(l,u,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},WR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=hm(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=cm.join(c,t),u=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(lm.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 um(t)};pm.exports=fm;fm.sync=WR});var Pc=m((iI,Cc)=>{"use strict";var mm=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Cc.exports=mm;Cc.exports.default=mm});var Em=m((nI,_m)=>{"use strict";var gm=require("path"),YR=dm(),zR=Pc();function ym(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=YR.sync(t.command,{path:r[zR({env:r})],pathExt:e?gm.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=gm.resolve(n?t.options.cwd:"",o)),o}function VR(t){return ym(t)||ym(t,!0)}_m.exports=VR});var Sm=m((sI,Ic)=>{"use strict";var Lc=/([()\][%!^"`<>&|;, *?])/g;function KR(t){return t=t.replace(Lc,"^$1"),t}function XR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Lc,"^$1"),e&&(t=t.replace(Lc,"^$1")),t}Ic.exports.command=KR;Ic.exports.argument=XR});var xm=m((oI,bm)=>{"use strict";bm.exports=/^#!(.*)/});var vm=m((aI,wm)=>{"use strict";var ZR=xm();wm.exports=(t="")=>{let e=t.match(ZR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Am=m((cI,Rm)=>{"use strict";var kc=require("fs"),QR=vm();function JR(t){let r=Buffer.alloc(150),i;try{i=kc.openSync(t,"r"),kc.readSync(i,r,0,150,0),kc.closeSync(i)}catch{}return QR(r.toString())}Rm.exports=JR});var Pm=m((lI,Cm)=>{"use strict";var eA=require("path"),Tm=Em(),Om=Sm(),tA=Am(),rA=process.platform==="win32",iA=/\.(?:com|exe)$/i,nA=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function sA(t){t.file=Tm(t);let e=t.file&&tA(t.file);return e?(t.args.unshift(t.file),t.command=e,Tm(t)):t.file}function oA(t){if(!rA)return t;let e=sA(t),r=!iA.test(e);if(t.options.forceShell||r){let i=nA.test(e);t.command=eA.normalize(t.command),t.command=Om.command(t.command),t.args=t.args.map(s=>Om.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 aA(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:oA(i)}Cm.exports=aA});var km=m((uI,Im)=>{"use strict";var Nc=process.platform==="win32";function Dc(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 cA(t,e){if(!Nc)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Lm(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Lm(t,e){return Nc&&t===1&&!e.file?Dc(e.original,"spawn"):null}function lA(t,e){return Nc&&t===1&&!e.file?Dc(e.original,"spawnSync"):null}Im.exports={hookChildProcess:cA,verifyENOENT:Lm,verifyENOENTSync:lA,notFoundError:Dc}});var Fm=m((hI,$r)=>{"use strict";var Nm=require("child_process"),Fc=Pm(),Mc=km();function Dm(t,e,r){let i=Fc(t,e,r),n=Nm.spawn(i.command,i.args,i.options);return Mc.hookChildProcess(n,i),n}function uA(t,e,r){let i=Fc(t,e,r),n=Nm.spawnSync(i.command,i.args,i.options);return n.error=n.error||Mc.verifyENOENTSync(n.status,i),n}$r.exports=Dm;$r.exports.spawn=Dm;$r.exports.sync=uA;$r.exports._parse=Fc;$r.exports._enoent=Mc});var Bm=m((fI,Mm)=>{"use strict";Mm.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 qm=m((fI,ki)=>{"use strict";var Ii=require("path"),Mm=Oc(),Bm=t=>{t={cwd:process.cwd(),path:process.env[Mm()],execPath:process.execPath,...t};let e,r=Ii.resolve(t.cwd),i=[];for(;e!==r;)i.push(Ii.join(r,"node_modules/.bin")),e=r,r=Ii.resolve(r,"..");let n=Ii.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Ii.delimiter)};ki.exports=Bm;ki.exports.default=Bm;ki.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Mm({env:e});return t.path=e[r],e[r]=ki.exports(t),e}});var Um=m((pI,Fc)=>{"use strict";var Hm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Fc.exports=Hm;Fc.exports.default=Hm});var jm=m((dI,zn)=>{"use strict";var fA=Um(),Yn=new WeakMap,$m=(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(Yn.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 fA(s,t),Yn.set(s,i),s};zn.exports=$m;zn.exports.default=$m;zn.exports.callCount=t=>{if(!Yn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Yn.get(t)}});var Gm=m(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.SIGNALS=void 0;var pA=[{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"}];Vn.SIGNALS=pA});var Mc=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.SIGRTMAX=$r.getRealtimeSignals=void 0;var dA=function(){let t=Ym-Wm+1;return Array.from({length:t},mA)};$r.getRealtimeSignals=dA;var mA=function(t,e){return{name:`SIGRT${e+1}`,number:Wm+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Wm=34,Ym=64;$r.SIGRTMAX=Ym});var zm=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getSignals=void 0;var gA=require("os"),yA=Gm(),_A=Mc(),EA=function(){let t=(0,_A.getRealtimeSignals)();return[...yA.SIGNALS,...t].map(SA)};Kn.getSignals=EA;var SA=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=gA.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Km=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.signalsByNumber=jr.signalsByName=void 0;var bA=require("os"),Vm=zm(),xA=Mc(),wA=function(){return(0,Vm.getSignals)().reduce(vA,{})},vA=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}}},RA=wA();jr.signalsByName=RA;var AA=function(){let t=(0,Vm.getSignals)(),e=xA.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>TA(n,t));return Object.assign({},...r)},TA=function(t,e){let r=OA(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:c}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:c}}},OA=function(t,e){let r=e.find(({name:i})=>bA.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},CA=AA();jr.signalsByNumber=CA});var Zm=m((EI,Xm)=>{"use strict";var{signalsByName:PA}=Km(),LA=({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",IA=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:PA[n].description,g=i&&i.code,y=`Command ${LA({timedOut:c,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,x=Object.prototype.toString.call(i)==="[object Error]",v=x?`${y}
4
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Um=m((pI,ki)=>{"use strict";var Ii=require("path"),qm=Pc(),Hm=t=>{t={cwd:process.cwd(),path:process.env[qm()],execPath:process.execPath,...t};let e,r=Ii.resolve(t.cwd),i=[];for(;e!==r;)i.push(Ii.join(r,"node_modules/.bin")),e=r,r=Ii.resolve(r,"..");let n=Ii.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Ii.delimiter)};ki.exports=Hm;ki.exports.default=Hm;ki.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=qm({env:e});return t.path=e[r],e[r]=ki.exports(t),e}});var jm=m((dI,Bc)=>{"use strict";var $m=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Bc.exports=$m;Bc.exports.default=$m});var Wm=m((mI,Vn)=>{"use strict";var hA=jm(),zn=new WeakMap,Gm=(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(zn.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 hA(s,t),zn.set(s,i),s};Vn.exports=Gm;Vn.exports.default=Gm;Vn.exports.callCount=t=>{if(!zn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return zn.get(t)}});var Ym=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.SIGNALS=void 0;var fA=[{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"}];Kn.SIGNALS=fA});var qc=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.SIGRTMAX=jr.getRealtimeSignals=void 0;var pA=function(){let t=Vm-zm+1;return Array.from({length:t},dA)};jr.getRealtimeSignals=pA;var dA=function(t,e){return{name:`SIGRT${e+1}`,number:zm+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},zm=34,Vm=64;jr.SIGRTMAX=Vm});var Km=m(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getSignals=void 0;var mA=require("os"),gA=Ym(),yA=qc(),_A=function(){let t=(0,yA.getRealtimeSignals)();return[...gA.SIGNALS,...t].map(EA)};Xn.getSignals=_A;var EA=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=mA.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Zm=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.signalsByNumber=Gr.signalsByName=void 0;var SA=require("os"),Xm=Km(),bA=qc(),xA=function(){return(0,Xm.getSignals)().reduce(wA,{})},wA=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}}},vA=xA();Gr.signalsByName=vA;var RA=function(){let t=(0,Xm.getSignals)(),e=bA.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>AA(n,t));return Object.assign({},...r)},AA=function(t,e){let r=TA(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:c}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:c}}},TA=function(t,e){let r=e.find(({name:i})=>SA.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},OA=RA();Gr.signalsByNumber=OA});var Jm=m((SI,Qm)=>{"use strict";var{signalsByName:CA}=Zm(),PA=({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",LA=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:CA[n].description,g=i&&i.code,y=`Command ${PA({timedOut:c,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,x=Object.prototype.toString.call(i)==="[object Error]",v=x?`${y}
5
5
  ${i.message}`:y,A=[v,e,t].filter(Boolean).join(`
6
- `);return x?(i.originalMessage=i.message,i.message=A):i=new Error(A),i.shortMessage=v,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!c,i.isCanceled=l,i.killed=u&&!c,i};Xm.exports=IA});var Jm=m((SI,Bc)=>{"use strict";var Xn=["stdin","stdout","stderr"],kA=t=>Xn.some(e=>t[e]!==void 0),Qm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Xn.map(i=>t[i]);if(kA(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Xn.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,Xn.length);return Array.from({length:r},(i,n)=>e[n])};Bc.exports=Qm;Bc.exports.node=t=>{let e=Qm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var eg=m((bI,Zn)=>{Zn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Zn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Zn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sg=m((xI,Yr)=>{var Z=global.process,lr=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};lr(Z)?(tg=require("assert"),Gr=eg(),rg=/^win/i.test(Z.platform),Ni=require("events"),typeof Ni!="function"&&(Ni=Ni.EventEmitter),Z.__signal_exit_emitter__?ce=Z.__signal_exit_emitter__:(ce=Z.__signal_exit_emitter__=new Ni,ce.count=0,ce.emitted={}),ce.infinite||(ce.setMaxListeners(1/0),ce.infinite=!0),Yr.exports=function(t,e){if(!lr(global.process))return function(){};tg.equal(typeof t,"function","a callback must be provided for exit handler"),Wr===!1&&qc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ce.removeListener(r,t),ce.listeners("exit").length===0&&ce.listeners("afterexit").length===0&&Qn()};return ce.on(r,t),i},Qn=function(){!Wr||!lr(global.process)||(Wr=!1,Gr.forEach(function(e){try{Z.removeListener(e,Jn[e])}catch{}}),Z.emit=es,Z.reallyExit=Hc,ce.count-=1)},Yr.exports.unload=Qn,ur=function(e,r,i){ce.emitted[e]||(ce.emitted[e]=!0,ce.emit(e,r,i))},Jn={},Gr.forEach(function(t){Jn[t]=function(){if(lr(global.process)){var r=Z.listeners(t);r.length===ce.count&&(Qn(),ur("exit",null,t),ur("afterexit",null,t),rg&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Yr.exports.signals=function(){return Gr},Wr=!1,qc=function(){Wr||!lr(global.process)||(Wr=!0,ce.count+=1,Gr=Gr.filter(function(e){try{return Z.on(e,Jn[e]),!0}catch{return!1}}),Z.emit=ng,Z.reallyExit=ig)},Yr.exports.load=qc,Hc=Z.reallyExit,ig=function(e){lr(global.process)&&(Z.exitCode=e||0,ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),Hc.call(Z,Z.exitCode))},es=Z.emit,ng=function(e,r){if(e==="exit"&&lr(global.process)){r!==void 0&&(Z.exitCode=r);var i=es.apply(this,arguments);return ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),i}else return es.apply(this,arguments)}):Yr.exports=function(){return function(){}};var tg,Gr,rg,Ni,ce,Qn,ur,Jn,Wr,qc,Hc,ig,es,ng});var ag=m((wI,og)=>{"use strict";var NA=require("os"),DA=sg(),FA=1e3*5,MA=(t,e="SIGTERM",r={})=>{let i=t(e);return BA(t,e,r,i),i},BA=(t,e,r,i)=>{if(!qA(e,r,i))return;let n=UA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},qA=(t,{forceKillAfterTimeout:e},r)=>HA(t)&&e!==!1&&r,HA=t=>t===NA.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",UA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return FA;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},$A=(t,e)=>{t.kill()&&(e.isCanceled=!0)},jA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},GA=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,c)=>{n=setTimeout(()=>{jA(t,r,c)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},WA=({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})`)},YA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=DA(()=>{t.kill()});return i.finally(()=>{n()})};og.exports={spawnedKill:MA,spawnedCancel:$A,setupTimeout:GA,validateTimeout:WA,setExitHandler:YA}});var lg=m((vI,cg)=>{"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";cg.exports=it});var hg=m((RI,ug)=>{"use strict";var{PassThrough:zA}=require("stream");ug.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 zA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),n?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var fg=m((AI,Di)=>{"use strict";var{constants:VA}=require("buffer"),KA=require("stream"),{promisify:XA}=require("util"),ZA=hg(),QA=XA(KA.pipeline),ts=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Uc(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=ZA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=VA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await QA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ts)})}),i.getBufferedValue()}Di.exports=Uc;Di.exports.buffer=(t,e)=>Uc(t,{...e,encoding:"buffer"});Di.exports.array=(t,e)=>Uc(t,{...e,array:!0});Di.exports.MaxBufferError=ts});var dg=m((TI,pg)=>{"use strict";var{PassThrough:JA}=require("stream");pg.exports=function(){var t=[],e=new JA({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 _g=m((OI,yg)=>{"use strict";var gg=lg(),mg=fg(),eT=dg(),tT=(t,e)=>{e===void 0||t.stdin===void 0||(gg(e)?e.pipe(t.stdin):t.stdin.end(e))},rT=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=eT();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},$c=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},jc=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?mg(t,{encoding:e,maxBuffer:i}):mg.buffer(t,{maxBuffer:i})},iT=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=jc(t,{encoding:i,buffer:n,maxBuffer:s}),c=jc(e,{encoding:i,buffer:n,maxBuffer:s}),l=jc(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,c,l])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},$c(t,a),$c(e,c),$c(r,l)])}},nT=({input:t})=>{if(gg(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};yg.exports={handleInput:tT,makeAllStream:rT,getSpawnedResult:iT,validateInputSync:nT}});var Sg=m((CI,Eg)=>{"use strict";var sT=(async()=>{})().constructor.prototype,oT=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(sT,t)]),aT=(t,e)=>{for(let[r,i]of oT){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},cT=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)})});Eg.exports={mergePromise:aT,getSpawnedPromise:cT}});var wg=m((PI,xg)=>{"use strict";var bg=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],lT=/^[\w.-]+$/,uT=/"/g,hT=t=>typeof t!="string"||lT.test(t)?t:`"${t.replace(uT,'\\"')}"`,fT=(t,e)=>bg(t,e).join(" "),pT=(t,e)=>bg(t,e).map(r=>hT(r)).join(" "),dT=/ +/g,mT=t=>{let e=[];for(let r of t.trim().split(dT)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};xg.exports={joinCommand:fT,getEscapedCommand:pT,parseCommand:mT}});var Pg=m((LI,zr)=>{"use strict";var gT=require("path"),Gc=require("child_process"),yT=Nm(),_T=Fm(),ET=qm(),ST=jm(),rs=Zm(),Rg=Jm(),{spawnedKill:bT,spawnedCancel:xT,setupTimeout:wT,validateTimeout:vT,setExitHandler:RT}=ag(),{handleInput:AT,getSpawnedResult:TT,makeAllStream:OT,validateInputSync:CT}=_g(),{mergePromise:vg,getSpawnedPromise:PT}=Sg(),{joinCommand:Ag,parseCommand:Tg,getEscapedCommand:Og}=wg(),LT=1e3*1e3*100,IT=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?ET.env({env:s,cwd:i,execPath:n}):s},Cg=(t,e,r={})=>{let i=yT._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:LT,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=IT(r),r.stdio=Rg(r),process.platform==="win32"&&gT.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Fi=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?_T(e):e,is=(t,e,r)=>{let i=Cg(t,e,r),n=Ag(t,e),s=Og(t,e);vT(i.options);let o;try{o=Gc.spawn(i.file,i.args,i.options)}catch(g){let d=new Gc.ChildProcess,y=Promise.reject(rs({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return vg(d,y)}let a=PT(o),c=wT(o,i.options,a),l=RT(o,i.options,c),u={isCanceled:!1};o.kill=bT.bind(null,o.kill.bind(o)),o.cancel=xT.bind(null,o,u);let f=ST(async()=>{let[{error:g,exitCode:d,signal:y,timedOut:x},v,A,M]=await TT(o,i.options,l),re=Fi(i.options,v),N=Fi(i.options,A),H=Fi(i.options,M);if(g||d!==0||y!==null){let L=rs({error:g,exitCode:d,signal:y,stdout:re,stderr:N,all:H,command:n,escapedCommand:s,parsed:i,timedOut:x,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:N,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return AT(o,i.options.input),o.all=OT(o,i.options),vg(o,f)};zr.exports=is;zr.exports.sync=(t,e,r)=>{let i=Cg(t,e,r),n=Ag(t,e),s=Og(t,e);CT(i.options);let o;try{o=Gc.spawnSync(i.file,i.args,i.options)}catch(l){throw rs({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Fi(i.options,o.stdout,o.error),c=Fi(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=rs({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};zr.exports.command=(t,e)=>{let[r,...i]=Tg(t);return is(r,i,e)};zr.exports.commandSync=(t,e)=>{let[r,...i]=Tg(t);return is.sync(r,i,e)};zr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Rg.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return is(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Vr=m((FI,kg)=>{"use strict";var Ig=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"]]);kg.exports=t=>t?Object.keys(t).map(e=>[Ig.has(e)?Ig.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ls=m((MI,$g)=>{"use strict";var Ng=typeof process=="object"&&process?process:{stdout:null,stderr:null},qT=require("events"),Dg=require("stream"),Fg=require("string_decoder").StringDecoder,Et=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),ns=Symbol("emittingEnd"),Mi=Symbol("emittedError"),ss=Symbol("closed"),Mg=Symbol("read"),os=Symbol("flush"),Bg=Symbol("flushChunk"),Te=Symbol("encoding"),bt=Symbol("decoder"),as=Symbol("flowing"),Bi=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),le=Symbol("bufferLength"),Wc=Symbol("bufferPush"),Yc=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),zc=Symbol("emitData"),qg=Symbol("emitEnd"),Vc=Symbol("emitEnd2"),xt=Symbol("async"),qi=t=>Promise.resolve().then(t),Hg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",HT=Hg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),UT=Hg&&Symbol.iterator||Symbol("iterator not implemented"),$T=t=>t==="end"||t==="finish"||t==="prefinish",jT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,GT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),cs=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()}},Kc=class extends cs{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)}};$g.exports=class Ug extends Dg{constructor(e){super(),this[as]=!1,this[Bi]=!1,this[nt]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Te]=null:this[Te]=e&&e.encoding||null,this[Te]==="buffer"&&(this[Te]=null),this[xt]=e&&!!e.async||!1,this[bt]=this[Te]?new Fg(this[Te]):null,this[Et]=!1,this[Ut]=!1,this[ns]=!1,this[ss]=!1,this[Mi]=null,this.writable=!0,this.readable=!0,this[le]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[nt]})}get bufferLength(){return this[le]}get encoding(){return this[Te]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Te]&&e!==this[Te]&&(this[bt]&&this[bt].lastNeed||this[le]))throw new Error("cannot change encoding");this[Te]!==e&&(this[bt]=e?new Fg(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[bt].write(r)))),this[Te]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[xt]}set async(e){this[xt]=this[xt]||!!e}write(e,r,i){if(this[Et])throw new Error("write after end");if(this[ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[xt]?qi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(GT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):jT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[le]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[Wc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[bt].write(e)),this.flowing&&this[le]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[Wc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[le]===0||e===0||e>this[le])return this[St](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[le])]);let r=this[Mg](e||null,this[ee][0]);return this[St](),r}[Mg](e,r){return e===r.length||e===null?this[Yc]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[le]-=e),this.emit("data",r),!this[ee].length&&!this[Et]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Et]=!0,this.writable=!1,(this.flowing||!this[Bi])&&this[St](),this}[Kr](){this[ye]||(this[Bi]=!1,this[as]=!0,this.emit("resume"),this[ee].length?this[os]():this[Et]?this[St]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[as]=!1,this[Bi]=!0}get destroyed(){return this[ye]}get flowing(){return this[as]}get paused(){return this[Bi]}[Wc](e){this[ge]?this[le]+=1:this[le]+=e.length,this[ee].push(e)}[Yc](){return this[ee].length&&(this[ge]?this[le]-=1:this[le]-=this[ee][0].length),this[ee].shift()}[os](e){do;while(this[Bg](this[Yc]()));!e&&!this[ee].length&&!this[Et]&&this.emit("drain")}[Bg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[Ut];return r=r||{},e===Ng.stdout||e===Ng.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Kc(this,e,r):new cs(this,e,r)),this[xt]?qi(()=>this[Kr]()):this[Kr]()),e}unpipe(e){let r=this[nt].find(i=>i.dest===e);r&&(this[nt].splice(this[nt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[nt].length&&!this.flowing?this[Kr]():e==="readable"&&this[le]!==0?super.emit("readable"):$T(e)&&this[Ut]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Mi]&&(this[xt]?qi(()=>r.call(this,this[Mi])):r.call(this,this[Mi])),i}get emittedEnd(){return this[Ut]}[St](){!this[ns]&&!this[Ut]&&!this[ye]&&this[ee].length===0&&this[Et]&&(this[ns]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ss]&&this.emit("close"),this[ns]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[xt]?qi(()=>this[zc](r)):this[zc](r):!1;if(e==="end")return this[qg]();if(e==="close"){if(this[ss]=!0,!this[Ut]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Mi]=r;let s=super.emit("error",r);return this[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}[zc](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[qg](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[xt]?qi(()=>this[Vc]()):this[Vc]())}[Vc](){if(this[bt]){let r=this[bt].end();if(r){for(let i of this[nt])i.dest.write(r);super.emit("data",r)}}for(let r of this[nt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Te]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[HT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Et])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[Et]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(ye,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[UT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ye]?(e?this.emit("error",e):this.emit(ye),this):(this[ye]=!0,this[ee].length=0,this[le]=0,typeof this.close=="function"&&!this[ss]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof Ug||e instanceof Dg||e instanceof qT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Gg=m((BI,jg)=>{var WT=require("zlib").constants||{ZLIB_VERNUM:4736};jg.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},WT))});var tl=m((qI,Jg)=>{"use strict";var Wg=typeof process=="object"&&process?process:{stdout:null,stderr:null},YT=require("events"),Yg=require("stream"),zg=require("string_decoder").StringDecoder,wt=Symbol("EOF"),vt=Symbol("maybeEmitEnd"),$t=Symbol("emittedEnd"),us=Symbol("emittingEnd"),Hi=Symbol("emittedError"),hs=Symbol("closed"),Vg=Symbol("read"),fs=Symbol("flush"),Kg=Symbol("flushChunk"),Oe=Symbol("encoding"),Rt=Symbol("decoder"),ps=Symbol("flowing"),Ui=Symbol("paused"),Xr=Symbol("resume"),ue=Symbol("bufferLength"),Xc=Symbol("bufferPush"),Zc=Symbol("bufferShift"),_e=Symbol("objectMode"),Ee=Symbol("destroyed"),Qc=Symbol("emitData"),Xg=Symbol("emitEnd"),Jc=Symbol("emitEnd2"),At=Symbol("async"),$i=t=>Promise.resolve().then(t),Zg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",zT=Zg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),VT=Zg&&Symbol.iterator||Symbol("iterator not implemented"),KT=t=>t==="end"||t==="finish"||t==="prefinish",XT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,ZT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ds=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()}},el=class extends ds{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)}};Jg.exports=class Qg extends Yg{constructor(e){super(),this[ps]=!1,this[Ui]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Oe]=null:this[Oe]=e&&e.encoding||null,this[Oe]==="buffer"&&(this[Oe]=null),this[At]=e&&!!e.async||!1,this[Rt]=this[Oe]?new zg(this[Oe]):null,this[wt]=!1,this[$t]=!1,this[us]=!1,this[hs]=!1,this[Hi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Ee]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Oe]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Oe]&&e!==this[Oe]&&(this[Rt]&&this[Rt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[Rt]=e?new zg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Rt].write(r)))),this[Oe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[At]}set async(e){this[At]=this[At]||!!e}write(e,r,i){if(this[wt])throw new Error("write after end");if(this[Ee])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[At]?$i:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(ZT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):XT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[fs](!0),this.flowing?this.emit("data",e):this[Xc](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[Rt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[Rt].write(e)),this.flowing&&this[ue]!==0&&this[fs](!0),this.flowing?this.emit("data",e):this[Xc](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ee])return null;if(this[ue]===0||e===0||e>this[ue])return this[vt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[Vg](e||null,this.buffer[0]);return this[vt](),r}[Vg](e,r){return e===r.length||e===null?this[Zc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ue]-=e),this.emit("data",r),!this.buffer.length&&!this[wt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[wt]=!0,this.writable=!1,(this.flowing||!this[Ui])&&this[vt](),this}[Xr](){this[Ee]||(this[Ui]=!1,this[ps]=!0,this.emit("resume"),this.buffer.length?this[fs]():this[wt]?this[vt]():this.emit("drain"))}resume(){return this[Xr]()}pause(){this[ps]=!1,this[Ui]=!0}get destroyed(){return this[Ee]}get flowing(){return this[ps]}get paused(){return this[Ui]}[Xc](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Zc](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[fs](e){do;while(this[Kg](this[Zc]()));!e&&!this.buffer.length&&!this[wt]&&this.emit("drain")}[Kg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[$t];return r=r||{},e===Wg.stdout||e===Wg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new el(this,e,r):new ds(this,e,r)),this[At]?$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"):KT(e)&&this[$t]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Hi]&&(this[At]?$i(()=>r.call(this,this[Hi])):r.call(this,this[Hi])),i}get emittedEnd(){return this[$t]}[vt](){!this[us]&&!this[$t]&&!this[Ee]&&this.buffer.length===0&&this[wt]&&(this[us]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[hs]&&this.emit("close"),this[us]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[At]?$i(()=>this[Qc](r)):this[Qc](r):!1;if(e==="end")return this[Xg]();if(e==="close"){if(this[hs]=!0,!this[$t]&&!this[Ee])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Hi]=r;let s=super.emit("error",r);return this[vt](),s}else if(e==="resume"){let s=super.emit("resume");return this[vt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[vt](),n}[Qc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[vt](),r}[Xg](){this[$t]||(this[$t]=!0,this.readable=!1,this[At]?$i(()=>this[Jc]()):this[Jc]())}[Jc](){if(this[Rt]){let r=this[Rt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Oe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ee,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[zT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[wt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[wt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(Ee,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[VT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ee]?(e?this.emit("error",e):this.emit(Ee),this):(this[Ee]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[hs]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof Qg||e instanceof Yg||e instanceof YT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var yl=m(Ne=>{"use strict";var ol=require("assert"),jt=require("buffer").Buffer,ry=require("zlib"),hr=Ne.constants=Gg(),QT=tl(),ey=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"}},JT=Symbol("opts"),ji=Symbol("flushFlag"),ty=Symbol("finishFlushFlag"),gl=Symbol("fullFlushFlag"),z=Symbol("handle"),ms=Symbol("onError"),Zr=Symbol("sawError"),rl=Symbol("level"),il=Symbol("strategy"),nl=Symbol("ended"),HI=Symbol("_defaultFullFlush"),gs=class extends QT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Zr]=!1,this[nl]=!1,this[JT]=e,this[ji]=e.flush,this[ty]=e.finishFlush;try{this[z]=new ry[r](e)}catch(i){throw new Qr(i)}this[ms]=i=>{this[Zr]||(this[Zr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[ms](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 ol(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[gl]),this.write(Object.assign(jt.alloc(0),{[ji]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[ty]),this[nl]=!0,super.end(null,null,i)}get ended(){return this[nl]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=jt.from(e,r)),this[Zr])return;ol(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=l=>l;let a;try{let l=typeof e[ji]=="number"?e[ji]:this[ji];a=this[z]._processChunk(e,l),jt.concat=ey}catch(l){jt.concat=ey,this[ms](new Qr(l))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",l=>this[ms](new Qr(l)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[fr](jt.from(a[0]));for(let l=1;l<a.length;l++)c=this[fr](a[l])}else c=this[fr](jt.from(a));return i&&i(),c}[fr](e){return super.write(e)}},Tt=class extends gs{constructor(e,r){e=e||{},e.flush=e.flush||hr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hr.Z_FINISH,super(e,r),this[gl]=hr.Z_FULL_FLUSH,this[rl]=e.level,this[il]=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[rl]!==e||this[il]!==r){this.flush(hr.Z_SYNC_FLUSH),ol(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[rl]=e,this[il]=r)}}}},al=class extends Tt{constructor(e){super(e,"Deflate")}},cl=class extends Tt{constructor(e){super(e,"Inflate")}},sl=Symbol("_portable"),ll=class extends Tt{constructor(e){super(e,"Gzip"),this[sl]=e&&!!e.portable}[fr](e){return this[sl]?(this[sl]=!1,e[9]=255,super[fr](e)):super[fr](e)}},ul=class extends Tt{constructor(e){super(e,"Gunzip")}},hl=class extends Tt{constructor(e){super(e,"DeflateRaw")}},fl=class extends Tt{constructor(e){super(e,"InflateRaw")}},pl=class extends Tt{constructor(e){super(e,"Unzip")}},ys=class extends gs{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[gl]=hr.BROTLI_OPERATION_FLUSH}},dl=class extends ys{constructor(e){super(e,"BrotliCompress")}},ml=class extends ys{constructor(e){super(e,"BrotliDecompress")}};Ne.Deflate=al;Ne.Inflate=cl;Ne.Gzip=ll;Ne.Gunzip=ul;Ne.DeflateRaw=hl;Ne.InflateRaw=fl;Ne.Unzip=pl;typeof ry.BrotliCompress=="function"?(Ne.BrotliCompress=dl,Ne.BrotliDecompress=ml):Ne.BrotliCompress=Ne.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Jr=m((jI,iy)=>{var eO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;iy.exports=eO!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var _s=m((WI,ny)=>{"use strict";var tO=ls(),_l=Jr(),El=Symbol("slurp");ny.exports=class extends tO{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=_l(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=_l(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[El](r),i&&this[El](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))}[El](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?_l(e[i]):e[i])}}});var Sl=m(Es=>{"use strict";Es.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"]]);Es.code=new Map(Array.from(Es.name).map(t=>[t[1],t[0]]))});var cy=m((zI,ay)=>{"use strict";var rO=(t,e)=>{if(Number.isSafeInteger(t))t<0?nO(t,e):iO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},iO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},nO=(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]=sy(n):n===0?e[i-1]=0:(r=!0,e[i-1]=oy(n))}},sO=t=>{let e=t[0],r=e===128?aO(t.slice(1,t.length)):e===255?oO(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},oO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=sy(s):s===0?o=s:(i=!0,o=oy(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},aO=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},sy=t=>(255^t)&255,oy=t=>(255^t)+1&255;ay.exports={encode:rO,parse:sO}});var ti=m((VI,uy)=>{"use strict";var bl=Sl(),ei=require("path").posix,ly=cy(),xl=Symbol("slurp"),De=Symbol("type"),Rl=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[De]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=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=wl(e,r+136,12),this.cksum=Gt(e,r+148,12),this[xl](i),this[xl](n,!0),this[De]=pr(e,r+156,1),this[De]===""&&(this[De]="0"),this[De]==="0"&&this.path.slice(-1)==="/"&&(this[De]="5"),this[De]==="5"&&(this.size=0),this.linkpath=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=wl(e,r+476,12),this.ctime=wl(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)}[xl](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=cO(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=vl(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[De].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=vl(e,r+476,12,this.atime)||this.needPax,this.needPax=vl(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,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 bl.name.get(this[De])||this[De]}get typeKey(){return this[De]}set type(e){bl.code.has(e)?this[De]=bl.code.get(e):this[De]=e}},cO=(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.*/,""),wl=(t,e,r)=>lO(Gt(t,e,r)),lO=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?ly.parse(t.slice(e,e+r)):hO(t,e,r),uO=t=>isNaN(t)?null:t,hO=(t,e,r)=>uO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),fO={12:8589934591,8:2097151},Wt=(t,e,r,i)=>i===null?!1:i>fO[r]||i<0?(ly.encode(i,t.slice(e,e+r)),!0):(pO(t,e,r,i),!1),pO=(t,e,r,i)=>t.write(dO(i,r),e,r,"ascii"),dO=(t,e)=>mO(Math.floor(t).toString(8),e),mO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",vl=(t,e,r,i)=>i===null?!1:Wt(t,e,r,i.getTime()/1e3),gO=new Array(156).join("\0"),dr=(t,e,r,i)=>i===null?!1:(t.write(i+gO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);uy.exports=Rl});var Ss=m((KI,hy)=>{"use strict";var yO=ti(),_O=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 yO({path:("PaxHeader/"+_O.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(EO(SO(t),e),r);var EO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,SO=t=>t.replace(/\n$/,"").split(`
8
- `).reduce(bO,Object.create(null)),bO=(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};hy.exports=Gi});var ri=m((XI,fy)=>{fy.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 bs=m((ZI,py)=>{"use strict";py.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 Tl=m((JI,dy)=>{"use strict";var xs=["|","<",">","?",":"],Al=xs.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),xO=new Map(xs.map((t,e)=>[t,Al[e]])),wO=new Map(Al.map((t,e)=>[t,xs[e]]));dy.exports={encode:t=>xs.reduce((e,r)=>e.split(r).join(xO.get(r)),t),decode:t=>Al.reduce((e,r)=>e.split(r).join(wO.get(r)),t)}});var Ol=m((ek,gy)=>{var{isAbsolute:vO,parse:my}=require("path").win32;gy.exports=t=>{let e="",r=my(t);for(;vO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=my(t)}return[e,t]}});var _y=m((tk,yy)=>{"use strict";yy.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 Bl=m((nk,Iy)=>{"use strict";var Ry=ls(),Ay=Ss(),Ty=ti(),ot=require("fs"),Ey=require("path"),st=Jr(),RO=ri(),Oy=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),RO(e)+"/"+t):st(t),AO=16*1024*1024,Sy=Symbol("process"),by=Symbol("file"),xy=Symbol("directory"),Pl=Symbol("symlink"),wy=Symbol("hardlink"),Wi=Symbol("header"),ws=Symbol("read"),Ll=Symbol("lstat"),vs=Symbol("onlstat"),Il=Symbol("onread"),kl=Symbol("onreadlink"),Nl=Symbol("openfile"),Dl=Symbol("onopenfile"),Yt=Symbol("close"),Rs=Symbol("mode"),Fl=Symbol("awaitDrain"),Cl=Symbol("ondrain"),at=Symbol("prefix"),vy=Symbol("hadError"),Cy=bs(),TO=Tl(),Py=Ol(),Ly=_y(),As=Cy(class extends Ry{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||AO,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]=Py(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=TO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||Ey.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[vs](this.statCache.get(this.absolute)):this[Ll]()}emit(e,...r){return e==="error"&&(this[vy]=!0),super.emit(e,...r)}[Ll](){ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[vs](r)})}[vs](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=CO(e),this.emit("stat",e),this[Sy]()}[Sy](){switch(this.type){case"File":return this[by]();case"Directory":return this[xy]();case"SymbolicLink":return this[Pl]();default:return this.end()}}[Rs](e){return Ly(e,this.type==="Directory",this.portable)}[at](e){return Oy(e,this.prefix)}[Wi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Ty({path:this[at](this.path),linkpath:this.type==="Link"?this[at](this.linkpath):this.linkpath,mode:this[Rs](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 Ay({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)}[xy](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Wi](),this.end()}[Pl](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[kl](r)})}[kl](e){this.linkpath=st(e),this[Wi](),this.end()}[wy](e){this.type="Link",this.linkpath=st(Ey.relative(this.cwd,e)),this.stat.size=0,this[Wi](),this.end()}[by](){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[wy](r)}this.linkCache.set(e,this.absolute)}if(this[Wi](),this.stat.size===0)return this.end();this[Nl]()}[Nl](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Dl](r)})}[Dl](e){if(this.fd=e,this[vy])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[ws]()}[ws](){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[Il](a)})}[Yt](e){ot.close(this.fd,e)}[Il](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[Cl]():this[Fl](()=>this[Cl]())}[Fl](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)}[Cl](){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[ws]()}}),Ml=class extends As{[Ll](){this[vs](ot.lstatSync(this.absolute))}[Pl](){this[kl](ot.readlinkSync(this.absolute))}[Nl](){this[Dl](ot.openSync(this.absolute,"r"))}[ws](){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[Il](a),e=!1}finally{if(e)try{this[Yt](()=>{})}catch{}}}[Fl](e){e()}[Yt](e){ot.closeSync(this.fd),e()}},OO=Cy(class extends Ry{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[Rs](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]=Py(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Ty({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 Ay({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 Oy(e,this.prefix)}[Rs](e){return Ly(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()}});As.Sync=Ml;As.Tar=OO;var CO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Iy.exports=As});var Ny=m((sk,ky)=>{"use strict";ky.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ql=m((ok,Dy)=>{"use strict";Dy.exports=U;U.Node=mr;U.create=U;function U(t){var e=this;if(e instanceof U||(e=new U),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}U.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};U.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};U.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};U.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)LO(this,arguments[t]);return this.length};U.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)IO(this,arguments[t]);return this.length};U.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};U.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};U.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};U.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};U.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};U.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};U.prototype.map=function(t,e){e=e||this;for(var r=new U,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};U.prototype.mapReverse=function(t,e){e=e||this;for(var r=new U,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};U.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};U.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};U.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};U.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};U.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new U;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};U.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new U;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};U.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=PO(this,n,r[i]);return s};U.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function PO(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 LO(t,e){t.tail=new mr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function IO(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{Ny()(U)}catch{}});var Ds=m((ck,$y)=>{"use strict";var ks=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}},kO=ls(),NO=yl(),DO=_s(),Vl=Bl(),FO=Vl.Sync,MO=Vl.Tar,BO=ql(),Fy=Buffer.alloc(1024),Cs=Symbol("onStat"),Ts=Symbol("ended"),ct=Symbol("queue"),ii=Symbol("current"),gr=Symbol("process"),Os=Symbol("processing"),My=Symbol("processJob"),lt=Symbol("jobs"),Hl=Symbol("jobDone"),Ps=Symbol("addFSEntry"),By=Symbol("addTarEntry"),Gl=Symbol("stat"),Wl=Symbol("readdir"),Ls=Symbol("onreaddir"),Is=Symbol("pipe"),qy=Symbol("entry"),Ul=Symbol("entryOpt"),Yl=Symbol("writeEntryClass"),Uy=Symbol("write"),$l=Symbol("ondrain"),Ns=require("fs"),Hy=require("path"),qO=bs(),jl=Jr(),Kl=qO(class extends kO{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=jl(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Yl]=Vl,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 NO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$l]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[$l]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[ct]=new BO,this[lt]=0,this.jobs=+e.jobs||4,this[Os]=!1,this[Ts]=!1}[Uy](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Ts]=!0,this[gr](),this}write(e){if(this[Ts])throw new Error("write after end");return e instanceof DO?this[By](e):this[Ps](e),this.flowing}[By](e){let r=jl(Hy.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new ks(e.path,r,!1);i.entry=new MO(e,this[Ul](i)),i.entry.on("end",n=>this[Hl](i)),this[lt]+=1,this[ct].push(i)}this[gr]()}[Ps](e){let r=jl(Hy.resolve(this.cwd,e));this[ct].push(new ks(e,r)),this[gr]()}[Gl](e){e.pending=!0,this[lt]+=1;let r=this.follow?"stat":"lstat";Ns[r](e.absolute,(i,n)=>{e.pending=!1,this[lt]-=1,i?this.emit("error",i):this[Cs](e,n)})}[Cs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[gr]()}[Wl](e){e.pending=!0,this[lt]+=1,Ns.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[lt]-=1,r)return this.emit("error",r);this[Ls](e,i)})}[Ls](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[gr]()}[gr](){if(!this[Os]){this[Os]=!0;for(let e=this[ct].head;e!==null&&this[lt]<this.jobs;e=e.next)if(this[My](e.value),e.value.ignore){let r=e.next;this[ct].removeNode(e),e.next=r}this[Os]=!1,this[Ts]&&!this[ct].length&&this[lt]===0&&(this.zip?this.zip.end(Fy):(super.write(Fy),super.end()))}}get[ii](){return this[ct]&&this[ct].head&&this[ct].head.value}[Hl](e){this[ct].shift(),this[lt]-=1,this[gr]()}[My](e){if(!e.pending){if(e.entry){e===this[ii]&&!e.piped&&this[Is](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Cs](e,this.statCache.get(e.absolute)):this[Gl](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Ls](e,this.readdirCache.get(e.absolute)):this[Wl](e),!e.readdir))){if(e.entry=this[qy](e),!e.entry){e.ignore=!0;return}e===this[ii]&&!e.piped&&this[Is](e)}}}[Ul](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}}[qy](e){this[lt]+=1;try{return new this[Yl](e.path,this[Ul](e)).on("end",()=>this[Hl](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$l](){this[ii]&&this[ii].entry&&this[ii].entry.resume()}[Is](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ps](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()}}),zl=class extends Kl{constructor(e){super(e),this[Yl]=FO}pause(){}resume(){}[Gl](e){let r=this.follow?"statSync":"lstatSync";this[Cs](e,Ns[r](e.absolute))}[Wl](e,r){this[Ls](e,Ns.readdirSync(e.absolute))}[Is](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ps](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[Uy](n)})}};Kl.Sync=zl;$y.exports=Kl});var hi=m(zi=>{"use strict";var HO=tl(),UO=require("events").EventEmitter,Ce=require("fs"),Ql=Ce.writev;if(!Ql){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Ql=(r,i,n,s)=>{let o=(c,l)=>s(c,l,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var li=Symbol("_autoClose"),Ve=Symbol("_close"),Yi=Symbol("_ended"),G=Symbol("_fd"),jy=Symbol("_finished"),Vt=Symbol("_flags"),Xl=Symbol("_flush"),Jl=Symbol("_handleChunk"),eu=Symbol("_makeBuf"),Hs=Symbol("_mode"),Fs=Symbol("_needDrain"),ai=Symbol("_onerror"),ui=Symbol("_onopen"),Zl=Symbol("_onread"),si=Symbol("_onwrite"),Kt=Symbol("_open"),Ot=Symbol("_path"),yr=Symbol("_pos"),ut=Symbol("_queue"),oi=Symbol("_read"),Gy=Symbol("_readSize"),zt=Symbol("_reading"),Ms=Symbol("_remain"),Wy=Symbol("_size"),Bs=Symbol("_write"),ni=Symbol("_writing"),qs=Symbol("_defaultFlag"),ci=Symbol("_errored"),Us=class extends HO{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[ci]=!1,this[G]=typeof r.fd=="number"?r.fd:null,this[Ot]=e,this[Gy]=r.readSize||16*1024*1024,this[zt]=!1,this[Wy]=typeof r.size=="number"?r.size:1/0,this[Ms]=this[Wy],this[li]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[G]=="number"?this[oi]():this[Kt]()}get fd(){return this[G]}get path(){return this[Ot]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Ce.open(this[Ot],"r",(e,r)=>this[ui](e,r))}[ui](e,r){e?this[ai](e):(this[G]=r,this.emit("open",r),this[oi]())}[eu](){return Buffer.allocUnsafe(Math.min(this[Gy],this[Ms]))}[oi](){if(!this[zt]){this[zt]=!0;let e=this[eu]();if(e.length===0)return process.nextTick(()=>this[Zl](null,0,e));Ce.read(this[G],e,0,e.length,null,(r,i,n)=>this[Zl](r,i,n))}}[Zl](e,r,i){this[zt]=!1,e?this[ai](e):this[Jl](r,i)&&this[oi]()}[Ve](){if(this[li]&&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)}[Jl](e,r){let i=!1;return this[Ms]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Ms]<=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[ci]?void 0:(this[ci]=!0,super.emit(e,r));default:return super.emit(e,r)}}},tu=class extends Us{[Kt](){let e=!0;try{this[ui](null,Ce.openSync(this[Ot],"r")),e=!1}finally{e&&this[Ve]()}}[oi](){let e=!0;try{if(!this[zt]){this[zt]=!0;do{let r=this[eu](),i=r.length===0?0:Ce.readSync(this[G],r,0,r.length,null);if(!this[Jl](i,r))break}while(!0);this[zt]=!1}e=!1}finally{e&&this[Ve]()}}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}},$s=class extends UO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ci]=!1,this[ni]=!1,this[Yi]=!1,this[Fs]=!1,this[ut]=[],this[Ot]=e,this[G]=typeof r.fd=="number"?r.fd:null,this[Hs]=r.mode===void 0?438:r.mode,this[yr]=typeof r.start=="number"?r.start:null,this[li]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[yr]!==null?"r+":"w";this[qs]=r.flags===void 0,this[Vt]=this[qs]?i:r.flags,this[G]===null&&this[Kt]()}emit(e,r){if(e==="error"){if(this[ci])return;this[ci]=!0}return super.emit(e,r)}get fd(){return this[G]}get path(){return this[Ot]}[ai](e){this[Ve](),this[ni]=!0,this.emit("error",e)}[Kt](){Ce.open(this[Ot],this[Vt],this[Hs],(e,r)=>this[ui](e,r))}[ui](e,r){this[qs]&&this[Vt]==="r+"&&e&&e.code==="ENOENT"?(this[Vt]="w",this[Kt]()):e?this[ai](e):(this[G]=r,this.emit("open",r),this[Xl]())}end(e,r){return e&&this.write(e,r),this[Yi]=!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[Yi]?(this.emit("error",new Error("write() after end()")),!1):this[G]===null||this[ni]||this[ut].length?(this[ut].push(e),this[Fs]=!0,!1):(this[ni]=!0,this[Bs](e),!0)}[Bs](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[Xl]():(this[ni]=!1,this[Yi]&&!this[jy]?(this[jy]=!0,this[Ve](),this.emit("finish")):this[Fs]&&(this[Fs]=!1,this.emit("drain"))))}[Xl](){if(this[ut].length===0)this[Yi]&&this[si](null,0);else if(this[ut].length===1)this[Bs](this[ut].pop());else{let e=this[ut];this[ut]=[],Ql(this[G],e,this[yr],(r,i)=>this[si](r,i))}}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},ru=class extends $s{[Kt](){let e;if(this[qs]&&this[Vt]==="r+")try{e=Ce.openSync(this[Ot],this[Vt],this[Hs])}catch(r){if(r.code==="ENOENT")return this[Vt]="w",this[Kt]();throw r}else e=Ce.openSync(this[Ot],this[Vt],this[Hs]);this[ui](null,e)}[Ve](){if(this[li]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}[Bs](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{}}}};zi.ReadStream=Us;zi.ReadStreamSync=tu;zi.WriteStream=$s;zi.WriteStreamSync=ru});var Ks=m((hk,Jy)=>{"use strict";var $O=bs(),jO=ti(),GO=require("events"),WO=ql(),YO=1024*1024,zO=_s(),Yy=Ss(),VO=yl(),{nextTick:KO}=require("process"),iu=Buffer.from([31,139]),$e=Symbol("state"),_r=Symbol("writeEntry"),Ct=Symbol("readEntry"),nu=Symbol("nextEntry"),zy=Symbol("processEntry"),je=Symbol("extendedHeader"),Vi=Symbol("globalExtendedHeader"),Xt=Symbol("meta"),Vy=Symbol("emitMeta"),X=Symbol("buffer"),Pt=Symbol("queue"),Er=Symbol("ended"),Ky=Symbol("emittedEnd"),Sr=Symbol("emit"),Pe=Symbol("unzip"),js=Symbol("consumeChunk"),Gs=Symbol("consumeChunkSub"),su=Symbol("consumeBody"),Xy=Symbol("consumeMeta"),Zy=Symbol("consumeHeader"),Ws=Symbol("consuming"),ou=Symbol("bufferConcat"),au=Symbol("maybeEnd"),Ki=Symbol("writing"),Zt=Symbol("aborted"),Ys=Symbol("onDone"),br=Symbol("sawValidEntry"),zs=Symbol("sawNullBlock"),Vs=Symbol("sawEOF"),Qy=Symbol("closeStream"),XO=t=>!0;Jy.exports=$O(class extends GO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[br]=null,this.on(Ys,r=>{(this[$e]==="begin"||this[br]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ys,e.ondone):this.on(Ys,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||YO,this.filter=typeof e.filter=="function"?e.filter:XO,this.writable=!0,this.readable=!1,this[Pt]=new WO,this[X]=null,this[Ct]=null,this[_r]=null,this[$e]="begin",this[Xt]="",this[je]=null,this[Vi]=null,this[Er]=!1,this[Pe]=null,this[Zt]=!1,this[zs]=!1,this[Vs]=!1,this.on("end",()=>this[Qy]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Zy](e,r){this[br]===null&&(this[br]=!1);let i;try{i=new jO(e,r,this[je],this[Vi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[zs]?(this[Vs]=!0,this[$e]==="begin"&&(this[$e]="header"),this[Sr]("eof")):(this[zs]=!0,this[Sr]("nullBlock"));else if(this[zs]=!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 zO(i,this[je],this[Vi]);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[Sr]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Xt]="",s.on("data",o=>this[Xt]+=o),this[$e]="meta"):(this[je]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Sr]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[Ct]?this[Pt].push(s):(this[Pt].push(s),this[nu]())))}}}[Qy](){KO(()=>this.emit("close"))}[zy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ct]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[nu]()),r=!1)):(this[Ct]=null,r=!1),r}[nu](){do;while(this[zy](this[Pt].shift()));if(!this[Pt].length){let e=this[Ct];!e||e.flowing||e.size===e.remain?this[Ki]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[su](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[$e]="header",this[_r]=null,i.end()),s.length}[Xy](e,r){let i=this[_r],n=this[su](e,r);return this[_r]||this[Vy](i),n}[Sr](e,r,i){!this[Pt].length&&!this[Ct]?this.emit(e,r,i):this[Pt].push([e,r,i])}[Vy](e){switch(this[Sr]("meta",this[Xt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[je]=Yy.parse(this[Xt],this[je],!1);break;case"GlobalExtendedHeader":this[Vi]=Yy.parse(this[Xt],this[Vi],!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[X]&&(e=Buffer.concat([this[X],e]),this[X]=null),e.length<iu.length)return this[X]=e,!0;for(let i=0;this[Pe]===null&&i<iu.length;i++)e[i]!==iu[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[Er];this[Er]=!1,this[Pe]=new VO.Unzip,this[Pe].on("data",s=>this[js](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[Er]=!0,this[js]()}),this[Ki]=!0;let n=this[Pe][i?"end":"write"](e);return this[Ki]=!1,n}}this[Ki]=!0,this[Pe]?this[Pe].write(e):this[js](e),this[Ki]=!1;let r=this[Pt].length?!1:this[Ct]?this[Ct].flowing:!0;return!r&&!this[Pt].length&&this[Ct].once("drain",i=>this.emit("drain")),r}[ou](e){e&&!this[Zt]&&(this[X]=this[X]?Buffer.concat([this[X],e]):e)}[au](){if(this[Er]&&!this[Ky]&&!this[Zt]&&!this[Ws]){this[Ky]=!0;let e=this[_r];if(e&&e.blockRemain){let r=this[X]?this[X].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[X]&&e.write(this[X]),e.end()}this[Sr](Ys)}}[js](e){if(this[Ws])this[ou](e);else if(!e&&!this[X])this[au]();else{if(this[Ws]=!0,this[X]){this[ou](e);let r=this[X];this[X]=null,this[Gs](r)}else this[Gs](e);for(;this[X]&&this[X].length>=512&&!this[Zt]&&!this[Vs];){let r=this[X];this[X]=null,this[Gs](r)}this[Ws]=!1}(!this[X]||this[Er])&&this[au]()}[Gs](e){let r=0,i=e.length;for(;r+512<=i&&!this[Zt]&&!this[Vs];)switch(this[$e]){case"begin":case"header":this[Zy](e,r),r+=512;break;case"ignore":case"body":r+=this[su](e,r);break;case"meta":r+=this[Xy](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[X]?this[X]=Buffer.concat([e.slice(r),this[X]]):this[X]=e.slice(r))}end(e){this[Zt]||(this[Pe]?this[Pe].end(e):(this[Er]=!0,this.write(e)))}})});var Xs=m((fk,i_)=>{"use strict";var ZO=Vr(),t_=Ks(),fi=require("fs"),QO=hi(),e_=require("path"),cu=ri();i_.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=ZO(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&&eC(i,e),i.noResume||JO(i),i.file&&i.sync?tC(i):i.file?rC(i,r):r_(i)};var JO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},eC=(t,e)=>{let r=new Map(e.map(s=>[cu(s),!0])),i=t.filter,n=(s,o)=>{let a=o||e_.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(e_.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(cu(s)):s=>n(cu(s))},tC=t=>{let e=r_(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,c=Buffer.allocUnsafe(o);for(n=fi.openSync(r,"r");a<s.size;){let l=fi.readSync(n,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{fi.closeSync(n)}catch{}}},rC=(t,e)=>{let r=new t_(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,(c,l)=>{if(c)a(c);else{let u=new QO.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},r_=t=>new t_(t)});var l_=m((pk,c_)=>{"use strict";var iC=Vr(),Zs=Ds(),n_=hi(),s_=Xs(),o_=require("path");c_.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=iC(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?nC(i,e):i.file?sC(i,e,r):i.sync?oC(i,e):aC(i,e)};var nC=(t,e)=>{let r=new Zs.Sync(t),i=new n_.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),a_(r,e)},sC=(t,e,r)=>{let i=new Zs(t),n=new n_.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},a_=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?s_({file:o_.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 s_({file:o_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>lu(t,e));t.add(r)}t.end()},oC=(t,e)=>{let r=new Zs.Sync(t);return a_(r,e),r},aC=(t,e)=>{let r=new Zs(t);return lu(r,e),r}});var uu=m((dk,g_)=>{"use strict";var cC=Vr(),u_=Ds(),Fe=require("fs"),h_=hi(),f_=Xs(),p_=require("path"),d_=ti();g_.exports=(t,e,r)=>{let i=cC(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?lC(i,e):hC(i,e,r)};var lC=(t,e)=>{let r=new u_.Sync(t),i=!0,n,s;try{try{n=Fe.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")n=Fe.openSync(t.file,"w+");else throw c}let o=Fe.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=Fe.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new d_(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}i=!1,uC(t,r,s,n,e)}finally{if(i)try{Fe.closeSync(n)}catch{}}},uC=(t,e,r,i,n)=>{let s=new h_.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),fC(e,n)},hC=(t,e,r)=>{e=Array.from(e);let i=new u_(t),n=(o,a,c)=>{let l=(d,y)=>{d?Fe.close(o,x=>c(d)):c(null,y)},u=0;if(a===0)return l(null,0);let h=0,f=Buffer.alloc(512),g=(d,y)=>{if(d)return l(d);if(h+=y,h<512&&y)return Fe.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,u);let x=new d_(f);if(!x.cksumValid)return l(null,u);let v=512*Math.ceil(x.size/512);if(u+v+512>a||(u+=v+512,u>=a))return l(null,u);t.mtimeCache&&t.mtimeCache.set(x.path,x.mtime),h=0,Fe.read(o,f,0,512,u,g)};Fe.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let c="r+",l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+")return c="w+",Fe.open(t.file,c,l);if(u)return a(u);Fe.fstat(h,(f,g)=>{if(f)return Fe.close(h,()=>a(f));n(h,g.size,(d,y)=>{if(d)return a(d);let x=new h_.WriteStream(t.file,{fd:h,start:y});i.pipe(x),x.on("error",a),x.on("close",o),m_(i,e)})})};Fe.open(t.file,c,l)});return r?s.then(r,r):s},fC=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?f_({file:p_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},m_=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return f_({file:p_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>m_(t,e));t.add(r)}t.end()}});var __=m((mk,y_)=>{"use strict";var pC=Vr(),dC=uu();y_.exports=(t,e,r)=>{let i=pC(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),mC(i),dC(i,e,r)};var mC=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 b_=m((gk,S_)=>{var{promisify:E_}=require("util"),Qt=require("fs"),gC=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=E_(t.mkdir),t.stat=t.stat||t.fs.stat||Qt.stat,t.statAsync=E_(t.stat),t.statSync=t.statSync||t.fs.statSync||Qt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Qt.mkdirSync,t};S_.exports=gC});var w_=m((yk,x_)=>{var yC=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:_C,parse:EC}=require("path"),SC=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=_C(t),yC==="win32"){let e=/[*|"<>?:]/,{root:r}=EC(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};x_.exports=SC});var O_=m((_k,T_)=>{var{dirname:v_}=require("path"),R_=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?R_(t,v_(e),e):void 0),A_=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?A_(t,v_(e),e):void 0}};T_.exports={findMade:R_,findMadeSync:A_}});var pu=m((Ek,P_)=>{var{dirname:C_}=require("path"),hu=(t,e,r)=>{e.recursive=!1;let i=C_(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 hu(i,e).then(s=>hu(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})})},fu=(t,e,r)=>{let i=C_(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 fu(t,e,fu(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};P_.exports={mkdirpManual:hu,mkdirpManualSync:fu}});var k_=m((Sk,I_)=>{var{dirname:L_}=require("path"),{findMade:bC,findMadeSync:xC}=O_(),{mkdirpManual:wC,mkdirpManualSync:vC}=pu(),RC=(t,e)=>(e.recursive=!0,L_(t)===t?e.mkdirAsync(t,e):bC(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return wC(t,e);throw n}))),AC=(t,e)=>{if(e.recursive=!0,L_(t)===t)return e.mkdirSync(t,e);let i=xC(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return vC(t,e);throw n}};I_.exports={mkdirpNative:RC,mkdirpNativeSync:AC}});var M_=m((bk,F_)=>{var N_=require("fs"),TC=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,du=TC.replace(/^v/,"").split("."),D_=+du[0]>10||+du[0]==10&&+du[1]>=12,OC=D_?t=>t.mkdir===N_.mkdir:()=>!1,CC=D_?t=>t.mkdirSync===N_.mkdirSync:()=>!1;F_.exports={useNative:OC,useNativeSync:CC}});var j_=m((xk,$_)=>{var pi=b_(),di=w_(),{mkdirpNative:B_,mkdirpNativeSync:q_}=k_(),{mkdirpManual:H_,mkdirpManualSync:U_}=pu(),{useNative:PC,useNativeSync:LC}=M_(),mi=(t,e)=>(t=di(t),e=pi(e),PC(e)?B_(t,e):H_(t,e)),IC=(t,e)=>(t=di(t),e=pi(e),LC(e)?q_(t,e):U_(t,e));mi.sync=IC;mi.native=(t,e)=>B_(di(t),pi(e));mi.manual=(t,e)=>H_(di(t),pi(e));mi.nativeSync=(t,e)=>q_(di(t),pi(e));mi.manualSync=(t,e)=>U_(di(t),pi(e));$_.exports=mi});var X_=m((wk,K_)=>{"use strict";var Ge=require("fs"),xr=require("path"),kC=Ge.lchown?"lchown":"chown",NC=Ge.lchownSync?"lchownSync":"chownSync",W_=Ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),G_=(t,e,r)=>{try{return Ge[NC](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},DC=(t,e,r)=>{try{return Ge.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},FC=W_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ge.chown(t,e,r,i)}:(t,e,r,i)=>i,mu=W_?(t,e,r)=>{try{return G_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;DC(t,e,r)}}:(t,e,r)=>G_(t,e,r),MC=process.version,Y_=(t,e,r)=>Ge.readdir(t,e,r),BC=(t,e)=>Ge.readdirSync(t,e);/^v4\./.test(MC)&&(Y_=(t,e,r)=>Ge.readdir(t,r));var Qs=(t,e,r,i)=>{Ge[kC](t,e,r,FC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},z_=(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,z_(t,o,r,i,n)});if(e.isDirectory())gu(xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=xr.resolve(t,e.name);Qs(o,r,i,n)});else{let s=xr.resolve(t,e.name);Qs(s,r,i,n)}},gu=(t,e,r,i)=>{Y_(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 Qs(t,e,r,i);let o=s.length,a=null,c=l=>{if(!a){if(l)return i(a=l);if(--o===0)return Qs(t,e,r,i)}};s.forEach(l=>z_(t,l,e,r,c))})},qC=(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()&&V_(xr.resolve(t,e.name),r,i),mu(xr.resolve(t,e.name),r,i)},V_=(t,e,r)=>{let i;try{i=BC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return mu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>qC(t,n,e,r)),mu(t,e,r)};K_.exports=gu;gu.sync=V_});var eE=m((vk,yu)=>{"use strict";var Z_=j_(),We=require("fs"),Js=require("path"),Q_=X_(),Ke=Jr(),eo=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},to=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},ro=(t,e)=>t.get(Ke(e)),Xi=(t,e,r)=>t.set(Ke(e),r),HC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new to(t,r&&r.code||"ENOTDIR")),e(r)})};yu.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,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,u=e.unlink,h=e.cache,f=Ke(e.cwd),g=(x,v)=>{x?r(x):(Xi(h,t,!0),v&&c?Q_(v,o,a,A=>g(A)):s?We.chmod(t,n,r):r())};if(h&&ro(h,t)===!0)return g();if(t===f)return HC(t,g);if(l)return Z_(t,{mode:n}).then(x=>g(null,x),g);let y=Ke(Js.relative(f,t)).split("/");io(f,y,n,h,u,f,null,g)};var io=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=Ke(Js.resolve(t+"/"+c));if(ro(i,l))return io(l,e,r,i,n,s,o,a);We.mkdir(l,r,J_(l,e,r,i,n,s,o,a))},J_=(t,e,r,i,n,s,o,a)=>c=>{c?We.lstat(t,(l,u)=>{if(l)l.path=l.path&&Ke(l.path),a(l);else if(u.isDirectory())io(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,J_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new eo(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,io(t,e,r,i,n,s,o,a))},UC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new to(t,r)}};yu.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),c=e.preserve,l=e.unlink,u=e.cache,h=Ke(e.cwd),f=x=>{Xi(u,t,!0),x&&a&&Q_.sync(x,s,o),n&&We.chmodSync(t,i)};if(u&&ro(u,t)===!0)return f();if(t===h)return UC(h),f();if(c)return f(Z_.sync(t,i));let d=Ke(Js.relative(h,t)).split("/"),y=null;for(let x=d.shift(),v=h;x&&(v+="/"+x);x=d.shift())if(v=Ke(Js.resolve(v)),!ro(u,v))try{We.mkdirSync(v,i),y=y||v,Xi(u,v,!0)}catch{let M=We.lstatSync(v);if(M.isDirectory()){Xi(u,v,!0);continue}else if(l){We.unlinkSync(v),We.mkdirSync(v,i),y=y||v,Xi(u,v,!0);continue}else if(M.isSymbolicLink())return new eo(v,v+"/"+d.join("/"))}return f(y)}});var Eu=m((Rk,tE)=>{var _u=Object.create(null),{hasOwnProperty:$C}=Object.prototype;tE.exports=t=>($C.call(_u,t)||(_u[t]=t.normalize("NFKD")),_u[t])});var sE=m((Ak,nE)=>{var rE=require("assert"),jC=Eu(),GC=ri(),{join:iE}=require("path"),WC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,YC=WC==="win32";nE.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=iE(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let u=e.get(l);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=l=>{let{paths:u,dirs:h}=n(l);return u.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>a(l)),!0),a=l=>{if(!i.has(l))return!1;let{paths:u,dirs:h}=e.get(l),f=new Set;return u.forEach(g=>{let d=t.get(g);rE.equal(d[0],l),d.length===1?t.delete(g):(d.shift(),typeof d[0]=="function"?f.add(d[0]):d[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let d=t.get(g);rE(d[0]instanceof Set),d[0].size===1&&d.length===1?t.delete(g):d[0].size===1?(d.shift(),f.add(d[0])):d[0].delete(l)}),i.delete(l),f.forEach(g=>o(g)),!0};return{check:s,reserve:(l,u)=>{l=YC?["win32 parallelization disabled"]:l.map(f=>jC(GC(iE(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:l}),l.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var cE=m((Tk,aE)=>{var zC=process.env.__FAKE_PLATFORM__||process.platform,VC=zC==="win32",KC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:XC,O_TRUNC:ZC,O_WRONLY:QC,UV_FS_O_FILEMAP:oE=0}=KC.constants,JC=VC&&!!oE,e1=512*1024,t1=oE|ZC|XC|QC;aE.exports=JC?t=>t<e1?t1:"w":()=>"w"});var Ou=m((Ok,xE)=>{"use strict";var r1=require("assert"),i1=Ks(),$=require("fs"),n1=hi(),Lt=require("path"),EE=eE(),lE=Tl(),s1=sE(),o1=Ol(),Me=Jr(),a1=ri(),c1=Eu(),uE=Symbol("onEntry"),xu=Symbol("checkFs"),hE=Symbol("checkFs2"),oo=Symbol("pruneCache"),wu=Symbol("isReusable"),Ye=Symbol("makeFs"),vu=Symbol("file"),Ru=Symbol("directory"),ao=Symbol("link"),fE=Symbol("symlink"),pE=Symbol("hardlink"),dE=Symbol("unsupported"),mE=Symbol("checkPath"),Jt=Symbol("mkdir"),Se=Symbol("onError"),no=Symbol("pending"),gE=Symbol("pend"),gi=Symbol("unpend"),Su=Symbol("ended"),bu=Symbol("maybeClose"),Au=Symbol("skip"),Zi=Symbol("doChown"),Qi=Symbol("uid"),Ji=Symbol("gid"),en=Symbol("checkedCwd"),SE=require("crypto"),bE=cE(),l1=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,tn=l1==="win32",u1=(t,e)=>{if(!tn)return $.unlink(t,e);let r=t+".DELETE."+SE.randomBytes(16).toString("hex");$.rename(t,r,i=>{if(i)return e(i);$.unlink(r,e)})},h1=t=>{if(!tn)return $.unlinkSync(t);let e=t+".DELETE."+SE.randomBytes(16).toString("hex");$.renameSync(t,e),$.unlinkSync(e)},yE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,_E=t=>c1(a1(Me(t))).toLowerCase(),f1=(t,e)=>{e=_E(e);for(let r of t.keys()){let i=_E(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},p1=t=>{for(let e of t.keys())t.delete(e)},rn=class extends i1{constructor(e){if(e||(e={}),e.ondone=r=>{this[Su]=!0,this[bu]()},super(e),this[en]=!1,this.reservations=s1(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[no]=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||tn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Me(Lt.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[uE](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[bu](){this[Su]&&this[no]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[mE](e){if(this.strip){let r=Me(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Me(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Me(e.path),i=r.split("/");if(i.includes("..")||tn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=o1(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Lt.isAbsolute(e.path)?e.absolute=Me(Lt.resolve(e.path)):e.absolute=Me(Lt.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Me(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Lt.win32.parse(e.absolute);e.absolute=r+lE.encode(e.absolute.slice(r.length));let{root:i}=Lt.win32.parse(e.path);e.path=i+lE.encode(e.path.slice(i.length))}return!0}[uE](e){if(!this[mE](e))return e.resume();switch(r1.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[xu](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[dE](e)}}[Se](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){EE(Me(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Zi](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Qi](e){return yE(this.uid,e.uid,this.processUid)}[Ji](e){return yE(this.gid,e.gid,this.processGid)}[vu](e,r){let i=e.mode&4095||this.fmode,n=new n1.WriteStream(e.absolute,{flags:bE(e.size),mode:i,autoClose:!1});n.on("error",c=>{n.fd&&$.close(n.fd,()=>{}),n.write=()=>!0,this[Se](c,e),r()});let s=1,o=c=>{if(c){n.fd&&$.close(n.fd,()=>{}),this[Se](c,e),r();return}--s===0&&$.close(n.fd,l=>{l?this[Se](l,e):this[gi](),r()})};n.on("finish",c=>{let l=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;$.futimes(u,h,f,g=>g?$.utimes(l,h,f,d=>o(d&&g)):o())}if(this[Zi](e)){s++;let h=this[Qi](e),f=this[Ji](e);$.fchown(u,h,f,g=>g?$.chown(l,h,f,d=>o(d&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[Se](c,e),r()}),e.pipe(a)),a.pipe(n)}[Ru](e,r){let i=e.mode&4095||this.dmode;this[Jt](e.absolute,i,n=>{if(n){this[Se](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[gi](),e.resume())};e.mtime&&!this.noMtime&&(s++,$.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Zi](e)&&(s++,$.chown(e.absolute,this[Qi](e),this[Ji](e),o)),o()})}[dE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[fE](e,r){this[ao](e,e.linkpath,"symlink",r)}[pE](e,r){let i=Me(Lt.resolve(this.cwd,e.linkpath));this[ao](e,i,"link",r)}[gE](){this[no]++}[gi](){this[no]--,this[bu]()}[Au](e){this[gi](),e.resume()}[wu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!tn}[xu](e){this[gE]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[hE](e,i))}[oo](e){e.type==="SymbolicLink"?p1(this.dirCache):e.type!=="Directory"&&f1(this.dirCache,e.absolute)}[hE](e,r){this[oo](e);let i=a=>{this[oo](e),r(a)},n=()=>{this[Jt](this.cwd,this.dmode,a=>{if(a){this[Se](a,e),i();return}this[en]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Me(Lt.dirname(e.absolute));if(a!==this.cwd)return this[Jt](a,this.dmode,c=>{if(c){this[Se](c,e),i();return}o()})}o()},o=()=>{$.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[Au](e),i();return}if(a||this[wu](e,c))return this[Ye](null,e,i);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return l?$.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return $.rmdir(e.absolute,l=>this[Ye](l,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);u1(e.absolute,l=>this[Ye](l,e,i))})};this[en]?s():n()}[Ye](e,r,i){if(e){this[Se](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[vu](r,i);case"Link":return this[pE](r,i);case"SymbolicLink":return this[fE](r,i);case"Directory":case"GNUDumpDir":return this[Ru](r,i)}}[ao](e,r,i,n){$[i](r,e.absolute,s=>{s?this[Se](s,e):(this[gi](),e.resume()),n()})}},so=t=>{try{return[null,t()]}catch(e){return[e,null]}},Tu=class extends rn{[Ye](e,r){return super[Ye](e,r,()=>{})}[xu](e){if(this[oo](e),!this[en]){let s=this[Jt](this.cwd,this.dmode);if(s)return this[Se](s,e);this[en]=!0}if(e.absolute!==this.cwd){let s=Me(Lt.dirname(e.absolute));if(s!==this.cwd){let o=this[Jt](s,this.dmode);if(o)return this[Se](o,e)}}let[r,i]=so(()=>$.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Au](e);if(r||this[wu](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?so(()=>{$.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=so(()=>$.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:so(()=>h1(e.absolute));this[Ye](n,e)}[vu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let c;try{$.closeSync(s)}catch(l){c=l}(a||c)&&this[Se](a||c,e),r()},s;try{s=$.openSync(e.absolute,bE(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Se](a,e)),e.pipe(o)),o.on("data",a=>{try{$.writeSync(s,a,0,a.length)}catch(c){n(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,u=e.mtime;try{$.futimesSync(s,l,u)}catch(h){try{$.utimesSync(e.absolute,l,u)}catch{c=h}}}if(this[Zi](e)){let l=this[Qi](e),u=this[Ji](e);try{$.fchownSync(s,l,u)}catch(h){try{$.chownSync(e.absolute,l,u)}catch{c=c||h}}}n(c)})}[Ru](e,r){let i=e.mode&4095||this.dmode,n=this[Jt](e.absolute,i);if(n){this[Se](n,e),r();return}if(e.mtime&&!this.noMtime)try{$.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Zi](e))try{$.chownSync(e.absolute,this[Qi](e),this[Ji](e))}catch{}r(),e.resume()}[Jt](e,r){try{return EE.sync(Me(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[ao](e,r,i,n){try{$[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Se](s,e)}}};rn.Sync=Tu;xE.exports=rn});var TE=m((Ck,AE)=>{"use strict";var d1=Vr(),co=Ou(),vE=require("fs"),RE=hi(),wE=require("path"),Cu=ri();AE.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=d1(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&&m1(i,e),i.file&&i.sync?g1(i):i.file?y1(i,r):i.sync?_1(i):E1(i)};var m1=(t,e)=>{let r=new Map(e.map(s=>[Cu(s),!0])),i=t.filter,n=(s,o)=>{let a=o||wE.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(wE.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(Cu(s)):s=>n(Cu(s))},g1=t=>{let e=new co.Sync(t),r=t.file,i=vE.statSync(r),n=t.maxReadSize||16*1024*1024;new RE.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},y1=(t,e)=>{let r=new co(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),vE.stat(n,(c,l)=>{if(c)a(c);else{let u=new RE.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},_1=t=>new co.Sync(t),E1=t=>new co(t)});var OE=m(ae=>{"use strict";ae.c=ae.create=l_();ae.r=ae.replace=uu();ae.t=ae.list=Xs();ae.u=ae.update=__();ae.x=ae.extract=TE();ae.Pack=Ds();ae.Unpack=Ou();ae.Parse=Ks();ae.ReadEntry=_s();ae.WriteEntry=Bl();ae.Header=ti();ae.Pax=Ss();ae.types=Sl()});var kE=m((Nk,IE)=>{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))}IE.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 NE=m(wr=>{var v1=kE();wr.operation=function(t){var e=wr.timeouts(t);return new v1(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};wr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};wr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(c){var l=wr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){c.apply(t,u)})}.bind(t,o),t[s].options=e}}});var FE=m((Fk,DE)=>{DE.exports=NE()});var BE=m((Mk,ME)=>{var R1=FE();function A1(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=R1.operation(s);function a(u){n(u||new Error("Aborted"))}function c(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function l(u){var h;try{h=t(a,u)}catch(f){c(f,u);return}Promise.resolve(h).then(i).catch(function(g){c(g,u)})}o.attempt(l)}return new Promise(r)}ME.exports=A1});var j1={};Mu(j1,{default:()=>$1,hasLegacyEnvVarDependencies:()=>Nu,migrateConfig:()=>Du,migrateDependencies:()=>Fu,migrateGlobal:()=>YE,migratePipeline:()=>WE,transformer:()=>zE});module.exports=eS(j1);var Iu=B(require("path")),ku=B(require("fs-extra"));var tS=B(Gu());function go(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 yo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _o(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 yo(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 Eo(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 bo(){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 bo()?vr=Reflect.construct.bind():vr=function(n,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(n,a),l=new c;return o&&pt(l,o.prototype),l},vr.apply(null,arguments)}function Ei(t){var e=typeof Map=="function"?new Map:void 0;return Ei=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)},Ei(t)}var xo=B(require("find-up")),cn=B(require("path")),ln=B(require("fs-extra")),rS=function(t){Eo(e,t);function e(r){var i;return go(this,e),i=_o(this,tr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Ei(Error));function iS(t,e){try{var r=ln.default.readJsonSync(cn.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 nS(t){try{var e=ln.default.readJsonSync(cn.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function sS(t){var e=ln.default.existsSync(cn.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function Wu(t){var e={current:void 0},r=(0,xo.sync)(function(i){return[nS(i),iS(i,e),sS(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new rS(t);return r===void 0?e.current:r}var Yu=B(require("json5"));var wo=B(require("fs")),Si=B(require("path"));function vo({target:t,cwd:e,contentCheck:r}){let i=Si.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=wo.default.readFileSync(Si.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(wo.default.existsSync(Si.default.join(s,t))){n=!0;break}s=Si.default.dirname(s)}return n?s:null}function oS(t){let e=Yu.default.parse(t);return!(e&&"extends"in e)}var Ro={};function Ao(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&Ro[i])return Ro[i];let n=vo({target:"turbo.json",cwd:i,contentCheck:oS});if(!n)try{if(n=Wu(i),!n)return null}catch{return null}return r&&(Ro[i]=n),n}var Li=B(require("fs")),Ht=B(require("path"));function ch(t){return typeof t=="undefined"||t===null}function aS(t){return typeof t=="object"&&t!==null}function cS(t){return Array.isArray(t)?t:ch(t)?[]:[t]}function lS(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 uS(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function hS(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var fS=ch,pS=aS,dS=cS,mS=uS,gS=hS,yS=lS,oe={isNothing:fS,isObject:pS,toArray:dS,repeat:mS,isNegativeZero:gS,extend:yS};function lh(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=A):i=new Error(A),i.shortMessage=v,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!c,i.isCanceled=l,i.killed=u&&!c,i};Qm.exports=LA});var tg=m((bI,Hc)=>{"use strict";var Zn=["stdin","stdout","stderr"],IA=t=>Zn.some(e=>t[e]!==void 0),eg=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Zn.map(i=>t[i]);if(IA(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Zn.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,Zn.length);return Array.from({length:r},(i,n)=>e[n])};Hc.exports=eg;Hc.exports.node=t=>{let e=eg(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var rg=m((xI,Qn)=>{Qn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Qn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Qn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ag=m((wI,zr)=>{var Z=global.process,lr=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};lr(Z)?(ig=require("assert"),Wr=rg(),ng=/^win/i.test(Z.platform),Ni=require("events"),typeof Ni!="function"&&(Ni=Ni.EventEmitter),Z.__signal_exit_emitter__?ce=Z.__signal_exit_emitter__:(ce=Z.__signal_exit_emitter__=new Ni,ce.count=0,ce.emitted={}),ce.infinite||(ce.setMaxListeners(1/0),ce.infinite=!0),zr.exports=function(t,e){if(!lr(global.process))return function(){};ig.equal(typeof t,"function","a callback must be provided for exit handler"),Yr===!1&&Uc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ce.removeListener(r,t),ce.listeners("exit").length===0&&ce.listeners("afterexit").length===0&&Jn()};return ce.on(r,t),i},Jn=function(){!Yr||!lr(global.process)||(Yr=!1,Wr.forEach(function(e){try{Z.removeListener(e,es[e])}catch{}}),Z.emit=ts,Z.reallyExit=$c,ce.count-=1)},zr.exports.unload=Jn,ur=function(e,r,i){ce.emitted[e]||(ce.emitted[e]=!0,ce.emit(e,r,i))},es={},Wr.forEach(function(t){es[t]=function(){if(lr(global.process)){var r=Z.listeners(t);r.length===ce.count&&(Jn(),ur("exit",null,t),ur("afterexit",null,t),ng&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),zr.exports.signals=function(){return Wr},Yr=!1,Uc=function(){Yr||!lr(global.process)||(Yr=!0,ce.count+=1,Wr=Wr.filter(function(e){try{return Z.on(e,es[e]),!0}catch{return!1}}),Z.emit=og,Z.reallyExit=sg)},zr.exports.load=Uc,$c=Z.reallyExit,sg=function(e){lr(global.process)&&(Z.exitCode=e||0,ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),$c.call(Z,Z.exitCode))},ts=Z.emit,og=function(e,r){if(e==="exit"&&lr(global.process)){r!==void 0&&(Z.exitCode=r);var i=ts.apply(this,arguments);return ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),i}else return ts.apply(this,arguments)}):zr.exports=function(){return function(){}};var ig,Wr,ng,Ni,ce,Jn,ur,es,Yr,Uc,$c,sg,ts,og});var lg=m((vI,cg)=>{"use strict";var kA=require("os"),NA=ag(),DA=1e3*5,FA=(t,e="SIGTERM",r={})=>{let i=t(e);return MA(t,e,r,i),i},MA=(t,e,r,i)=>{if(!BA(e,r,i))return;let n=HA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},BA=(t,{forceKillAfterTimeout:e},r)=>qA(t)&&e!==!1&&r,qA=t=>t===kA.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",HA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return DA;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},UA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},$A=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},jA=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,c)=>{n=setTimeout(()=>{$A(t,r,c)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},GA=({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})`)},WA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=NA(()=>{t.kill()});return i.finally(()=>{n()})};cg.exports={spawnedKill:FA,spawnedCancel:UA,setupTimeout:jA,validateTimeout:GA,setExitHandler:WA}});var hg=m((RI,ug)=>{"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";ug.exports=it});var pg=m((AI,fg)=>{"use strict";var{PassThrough:YA}=require("stream");fg.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 YA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),n?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var dg=m((TI,Di)=>{"use strict";var{constants:zA}=require("buffer"),VA=require("stream"),{promisify:KA}=require("util"),XA=pg(),ZA=KA(VA.pipeline),rs=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function jc(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=XA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=zA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await ZA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new rs)})}),i.getBufferedValue()}Di.exports=jc;Di.exports.buffer=(t,e)=>jc(t,{...e,encoding:"buffer"});Di.exports.array=(t,e)=>jc(t,{...e,array:!0});Di.exports.MaxBufferError=rs});var gg=m((OI,mg)=>{"use strict";var{PassThrough:QA}=require("stream");mg.exports=function(){var t=[],e=new QA({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 Sg=m((CI,Eg)=>{"use strict";var _g=hg(),yg=dg(),JA=gg(),eT=(t,e)=>{e===void 0||t.stdin===void 0||(_g(e)?e.pipe(t.stdin):t.stdin.end(e))},tT=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=JA();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Gc=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Wc=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?yg(t,{encoding:e,maxBuffer:i}):yg.buffer(t,{maxBuffer:i})},rT=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Wc(t,{encoding:i,buffer:n,maxBuffer:s}),c=Wc(e,{encoding:i,buffer:n,maxBuffer:s}),l=Wc(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,c,l])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Gc(t,a),Gc(e,c),Gc(r,l)])}},iT=({input:t})=>{if(_g(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Eg.exports={handleInput:eT,makeAllStream:tT,getSpawnedResult:rT,validateInputSync:iT}});var xg=m((PI,bg)=>{"use strict";var nT=(async()=>{})().constructor.prototype,sT=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(nT,t)]),oT=(t,e)=>{for(let[r,i]of sT){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},aT=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)})});bg.exports={mergePromise:oT,getSpawnedPromise:aT}});var Rg=m((LI,vg)=>{"use strict";var wg=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],cT=/^[\w.-]+$/,lT=/"/g,uT=t=>typeof t!="string"||cT.test(t)?t:`"${t.replace(lT,'\\"')}"`,hT=(t,e)=>wg(t,e).join(" "),fT=(t,e)=>wg(t,e).map(r=>uT(r)).join(" "),pT=/ +/g,dT=t=>{let e=[];for(let r of t.trim().split(pT)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};vg.exports={joinCommand:hT,getEscapedCommand:fT,parseCommand:dT}});var Ig=m((II,Vr)=>{"use strict";var mT=require("path"),Yc=require("child_process"),gT=Fm(),yT=Bm(),_T=Um(),ET=Wm(),is=Jm(),Tg=tg(),{spawnedKill:ST,spawnedCancel:bT,setupTimeout:xT,validateTimeout:wT,setExitHandler:vT}=lg(),{handleInput:RT,getSpawnedResult:AT,makeAllStream:TT,validateInputSync:OT}=Sg(),{mergePromise:Ag,getSpawnedPromise:CT}=xg(),{joinCommand:Og,parseCommand:Cg,getEscapedCommand:Pg}=Rg(),PT=1e3*1e3*100,LT=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?_T.env({env:s,cwd:i,execPath:n}):s},Lg=(t,e,r={})=>{let i=gT._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:PT,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=LT(r),r.stdio=Tg(r),process.platform==="win32"&&mT.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Fi=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?yT(e):e,ns=(t,e,r)=>{let i=Lg(t,e,r),n=Og(t,e),s=Pg(t,e);wT(i.options);let o;try{o=Yc.spawn(i.file,i.args,i.options)}catch(g){let d=new Yc.ChildProcess,y=Promise.reject(is({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Ag(d,y)}let a=CT(o),c=xT(o,i.options,a),l=vT(o,i.options,c),u={isCanceled:!1};o.kill=ST.bind(null,o.kill.bind(o)),o.cancel=bT.bind(null,o,u);let f=ET(async()=>{let[{error:g,exitCode:d,signal:y,timedOut:x},v,A,M]=await AT(o,i.options,l),re=Fi(i.options,v),N=Fi(i.options,A),H=Fi(i.options,M);if(g||d!==0||y!==null){let L=is({error:g,exitCode:d,signal:y,stdout:re,stderr:N,all:H,command:n,escapedCommand:s,parsed:i,timedOut:x,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:N,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return RT(o,i.options.input),o.all=TT(o,i.options),Ag(o,f)};Vr.exports=ns;Vr.exports.sync=(t,e,r)=>{let i=Lg(t,e,r),n=Og(t,e),s=Pg(t,e);OT(i.options);let o;try{o=Yc.spawnSync(i.file,i.args,i.options)}catch(l){throw is({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Fi(i.options,o.stdout,o.error),c=Fi(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=is({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Vr.exports.command=(t,e)=>{let[r,...i]=Cg(t);return ns(r,i,e)};Vr.exports.commandSync=(t,e)=>{let[r,...i]=Cg(t);return ns.sync(r,i,e)};Vr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Tg.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return ns(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Kr=m((MI,Dg)=>{"use strict";var Ng=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"]]);Dg.exports=t=>t?Object.keys(t).map(e=>[Ng.has(e)?Ng.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var us=m((BI,Gg)=>{"use strict";var Fg=typeof process=="object"&&process?process:{stdout:null,stderr:null},BT=require("events"),Mg=require("stream"),Bg=require("string_decoder").StringDecoder,Et=Symbol("EOF"),St=Symbol("maybeEmitEnd"),Ut=Symbol("emittedEnd"),ss=Symbol("emittingEnd"),Mi=Symbol("emittedError"),os=Symbol("closed"),qg=Symbol("read"),as=Symbol("flush"),Hg=Symbol("flushChunk"),Te=Symbol("encoding"),bt=Symbol("decoder"),cs=Symbol("flowing"),Bi=Symbol("paused"),Xr=Symbol("resume"),ee=Symbol("buffer"),nt=Symbol("pipes"),le=Symbol("bufferLength"),zc=Symbol("bufferPush"),Vc=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Kc=Symbol("emitData"),Ug=Symbol("emitEnd"),Xc=Symbol("emitEnd2"),xt=Symbol("async"),qi=t=>Promise.resolve().then(t),$g=global._MP_NO_ITERATOR_SYMBOLS_!=="1",qT=$g&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),HT=$g&&Symbol.iterator||Symbol("iterator not implemented"),UT=t=>t==="end"||t==="finish"||t==="prefinish",$T=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,jT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ls=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Xr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Zc=class extends ls{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Gg.exports=class jg extends Mg{constructor(e){super(),this[cs]=!1,this[Bi]=!1,this[nt]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Te]=null:this[Te]=e&&e.encoding||null,this[Te]==="buffer"&&(this[Te]=null),this[xt]=e&&!!e.async||!1,this[bt]=this[Te]?new Bg(this[Te]):null,this[Et]=!1,this[Ut]=!1,this[ss]=!1,this[os]=!1,this[Mi]=null,this.writable=!0,this.readable=!0,this[le]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[nt]})}get bufferLength(){return this[le]}get encoding(){return this[Te]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Te]&&e!==this[Te]&&(this[bt]&&this[bt].lastNeed||this[le]))throw new Error("cannot change encoding");this[Te]!==e&&(this[bt]=e?new Bg(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[bt].write(r)))),this[Te]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[xt]}set async(e){this[xt]=this[xt]||!!e}write(e,r,i){if(this[Et])throw new Error("write after end");if(this[ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[xt]?qi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(jT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):$T(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[le]!==0&&this[as](!0),this.flowing?this.emit("data",e):this[zc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[bt].write(e)),this.flowing&&this[le]!==0&&this[as](!0),this.flowing?this.emit("data",e):this[zc](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[le]===0||e===0||e>this[le])return this[St](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[le])]);let r=this[qg](e||null,this[ee][0]);return this[St](),r}[qg](e,r){return e===r.length||e===null?this[Vc]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[le]-=e),this.emit("data",r),!this[ee].length&&!this[Et]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Et]=!0,this.writable=!1,(this.flowing||!this[Bi])&&this[St](),this}[Xr](){this[ye]||(this[Bi]=!1,this[cs]=!0,this.emit("resume"),this[ee].length?this[as]():this[Et]?this[St]():this.emit("drain"))}resume(){return this[Xr]()}pause(){this[cs]=!1,this[Bi]=!0}get destroyed(){return this[ye]}get flowing(){return this[cs]}get paused(){return this[Bi]}[zc](e){this[ge]?this[le]+=1:this[le]+=e.length,this[ee].push(e)}[Vc](){return this[ee].length&&(this[ge]?this[le]-=1:this[le]-=this[ee][0].length),this[ee].shift()}[as](e){do;while(this[Hg](this[Vc]()));!e&&!this[ee].length&&!this[Et]&&this.emit("drain")}[Hg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[Ut];return r=r||{},e===Fg.stdout||e===Fg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[nt].push(r.proxyErrors?new Zc(this,e,r):new ls(this,e,r)),this[xt]?qi(()=>this[Xr]()):this[Xr]()),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[Xr]():e==="readable"&&this[le]!==0?super.emit("readable"):UT(e)&&this[Ut]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Mi]&&(this[xt]?qi(()=>r.call(this,this[Mi])):r.call(this,this[Mi])),i}get emittedEnd(){return this[Ut]}[St](){!this[ss]&&!this[Ut]&&!this[ye]&&this[ee].length===0&&this[Et]&&(this[ss]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[os]&&this.emit("close"),this[ss]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[xt]?qi(()=>this[Kc](r)):this[Kc](r):!1;if(e==="end")return this[Ug]();if(e==="close"){if(this[os]=!0,!this[Ut]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Mi]=r;let s=super.emit("error",r);return this[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}[Kc](e){for(let i of this[nt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[Ug](){this[Ut]||(this[Ut]=!0,this.readable=!1,this[xt]?qi(()=>this[Xc]()):this[Xc]())}[Xc](){if(this[bt]){let r=this[bt].end();if(r){for(let i of this[nt])i.dest.write(r);super.emit("data",r)}}for(let r of this[nt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Te]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[qT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Et])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[Et]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(ye,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[HT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ye]?(e?this.emit("error",e):this.emit(ye),this):(this[ye]=!0,this[ee].length=0,this[le]=0,typeof this.close=="function"&&!this[os]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof jg||e instanceof Mg||e instanceof BT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Yg=m((qI,Wg)=>{var GT=require("zlib").constants||{ZLIB_VERNUM:4736};Wg.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},GT))});var il=m((HI,ty)=>{"use strict";var zg=typeof process=="object"&&process?process:{stdout:null,stderr:null},WT=require("events"),Vg=require("stream"),Kg=require("string_decoder").StringDecoder,wt=Symbol("EOF"),vt=Symbol("maybeEmitEnd"),$t=Symbol("emittedEnd"),hs=Symbol("emittingEnd"),Hi=Symbol("emittedError"),fs=Symbol("closed"),Xg=Symbol("read"),ps=Symbol("flush"),Zg=Symbol("flushChunk"),Oe=Symbol("encoding"),Rt=Symbol("decoder"),ds=Symbol("flowing"),Ui=Symbol("paused"),Zr=Symbol("resume"),ue=Symbol("bufferLength"),Qc=Symbol("bufferPush"),Jc=Symbol("bufferShift"),_e=Symbol("objectMode"),Ee=Symbol("destroyed"),el=Symbol("emitData"),Qg=Symbol("emitEnd"),tl=Symbol("emitEnd2"),At=Symbol("async"),$i=t=>Promise.resolve().then(t),Jg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",YT=Jg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),zT=Jg&&Symbol.iterator||Symbol("iterator not implemented"),VT=t=>t==="end"||t==="finish"||t==="prefinish",KT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,XT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ms=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Zr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},rl=class extends ms{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)}};ty.exports=class ey extends Vg{constructor(e){super(),this[ds]=!1,this[Ui]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Oe]=null:this[Oe]=e&&e.encoding||null,this[Oe]==="buffer"&&(this[Oe]=null),this[At]=e&&!!e.async||!1,this[Rt]=this[Oe]?new Kg(this[Oe]):null,this[wt]=!1,this[$t]=!1,this[hs]=!1,this[fs]=!1,this[Hi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Ee]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Oe]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Oe]&&e!==this[Oe]&&(this[Rt]&&this[Rt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Oe]!==e&&(this[Rt]=e?new Kg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Rt].write(r)))),this[Oe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[At]}set async(e){this[At]=this[At]||!!e}write(e,r,i){if(this[wt])throw new Error("write after end");if(this[Ee])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[At]?$i:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(XT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):KT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[ps](!0),this.flowing?this.emit("data",e):this[Qc](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Oe]&&!this[Rt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Oe]&&(e=this[Rt].write(e)),this.flowing&&this[ue]!==0&&this[ps](!0),this.flowing?this.emit("data",e):this[Qc](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ee])return null;if(this[ue]===0||e===0||e>this[ue])return this[vt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[Xg](e||null,this.buffer[0]);return this[vt](),r}[Xg](e,r){return e===r.length||e===null?this[Jc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ue]-=e),this.emit("data",r),!this.buffer.length&&!this[wt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[wt]=!0,this.writable=!1,(this.flowing||!this[Ui])&&this[vt](),this}[Zr](){this[Ee]||(this[Ui]=!1,this[ds]=!0,this.emit("resume"),this.buffer.length?this[ps]():this[wt]?this[vt]():this.emit("drain"))}resume(){return this[Zr]()}pause(){this[ds]=!1,this[Ui]=!0}get destroyed(){return this[Ee]}get flowing(){return this[ds]}get paused(){return this[Ui]}[Qc](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Jc](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[ps](e){do;while(this[Zg](this[Jc]()));!e&&!this.buffer.length&&!this[wt]&&this.emit("drain")}[Zg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[$t];return r=r||{},e===zg.stdout||e===zg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new rl(this,e,r):new ms(this,e,r)),this[At]?$i(()=>this[Zr]()):this[Zr]()),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[Zr]():e==="readable"&&this[ue]!==0?super.emit("readable"):VT(e)&&this[$t]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Hi]&&(this[At]?$i(()=>r.call(this,this[Hi])):r.call(this,this[Hi])),i}get emittedEnd(){return this[$t]}[vt](){!this[hs]&&!this[$t]&&!this[Ee]&&this.buffer.length===0&&this[wt]&&(this[hs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[fs]&&this.emit("close"),this[hs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[At]?$i(()=>this[el](r)):this[el](r):!1;if(e==="end")return this[Qg]();if(e==="close"){if(this[fs]=!0,!this[$t]&&!this[Ee])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Hi]=r;let s=super.emit("error",r);return this[vt](),s}else if(e==="resume"){let s=super.emit("resume");return this[vt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[vt](),n}[el](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[vt](),r}[Qg](){this[$t]||(this[$t]=!0,this.readable=!1,this[At]?$i(()=>this[tl]()):this[tl]())}[tl](){if(this[Rt]){let r=this[Rt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Oe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ee,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[YT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[wt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:l,done:!!this[wt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,u)=>{n=u,i=l,this.once(Ee,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[zT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ee]?(e?this.emit("error",e):this.emit(Ee),this):(this[Ee]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[fs]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof ey||e instanceof Vg||e instanceof WT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var El=m(Ne=>{"use strict";var cl=require("assert"),jt=require("buffer").Buffer,ny=require("zlib"),hr=Ne.constants=Yg(),ZT=il(),ry=jt.concat,fr=Symbol("_superWrite"),Jr=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"}},QT=Symbol("opts"),ji=Symbol("flushFlag"),iy=Symbol("finishFlushFlag"),_l=Symbol("fullFlushFlag"),z=Symbol("handle"),gs=Symbol("onError"),Qr=Symbol("sawError"),nl=Symbol("level"),sl=Symbol("strategy"),ol=Symbol("ended"),UI=Symbol("_defaultFullFlush"),ys=class extends ZT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Qr]=!1,this[ol]=!1,this[QT]=e,this[ji]=e.flush,this[iy]=e.finishFlush;try{this[z]=new ny[r](e)}catch(i){throw new Jr(i)}this[gs]=i=>{this[Qr]||(this[Qr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[gs](new Jr(i))),this.once("end",()=>this.close)}close(){this[z]&&(this[z].close(),this[z]=null,this.emit("close"))}reset(){if(!this[Qr])return cl(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[_l]),this.write(Object.assign(jt.alloc(0),{[ji]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[iy]),this[ol]=!0,super.end(null,null,i)}get ended(){return this[ol]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=jt.from(e,r)),this[Qr])return;cl(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=l=>l;let a;try{let l=typeof e[ji]=="number"?e[ji]:this[ji];a=this[z]._processChunk(e,l),jt.concat=ry}catch(l){jt.concat=ry,this[gs](new Jr(l))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",l=>this[gs](new Jr(l)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[fr](jt.from(a[0]));for(let l=1;l<a.length;l++)c=this[fr](a[l])}else c=this[fr](jt.from(a));return i&&i(),c}[fr](e){return super.write(e)}},Tt=class extends ys{constructor(e,r){e=e||{},e.flush=e.flush||hr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hr.Z_FINISH,super(e,r),this[_l]=hr.Z_FULL_FLUSH,this[nl]=e.level,this[sl]=e.strategy}params(e,r){if(!this[Qr]){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[nl]!==e||this[sl]!==r){this.flush(hr.Z_SYNC_FLUSH),cl(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[nl]=e,this[sl]=r)}}}},ll=class extends Tt{constructor(e){super(e,"Deflate")}},ul=class extends Tt{constructor(e){super(e,"Inflate")}},al=Symbol("_portable"),hl=class extends Tt{constructor(e){super(e,"Gzip"),this[al]=e&&!!e.portable}[fr](e){return this[al]?(this[al]=!1,e[9]=255,super[fr](e)):super[fr](e)}},fl=class extends Tt{constructor(e){super(e,"Gunzip")}},pl=class extends Tt{constructor(e){super(e,"DeflateRaw")}},dl=class extends Tt{constructor(e){super(e,"InflateRaw")}},ml=class extends Tt{constructor(e){super(e,"Unzip")}},_s=class extends ys{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[_l]=hr.BROTLI_OPERATION_FLUSH}},gl=class extends _s{constructor(e){super(e,"BrotliCompress")}},yl=class extends _s{constructor(e){super(e,"BrotliDecompress")}};Ne.Deflate=ll;Ne.Inflate=ul;Ne.Gzip=hl;Ne.Gunzip=fl;Ne.DeflateRaw=pl;Ne.InflateRaw=dl;Ne.Unzip=ml;typeof ny.BrotliCompress=="function"?(Ne.BrotliCompress=gl,Ne.BrotliDecompress=yl):Ne.BrotliCompress=Ne.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ei=m((GI,sy)=>{var JT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;sy.exports=JT!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Es=m((YI,oy)=>{"use strict";var eO=us(),Sl=ei(),bl=Symbol("slurp");oy.exports=class extends eO{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=Sl(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=Sl(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[bl](r),i&&this[bl](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))}[bl](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Sl(e[i]):e[i])}}});var xl=m(Ss=>{"use strict";Ss.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"]]);Ss.code=new Map(Array.from(Ss.name).map(t=>[t[1],t[0]]))});var uy=m((VI,ly)=>{"use strict";var tO=(t,e)=>{if(Number.isSafeInteger(t))t<0?iO(t,e):rO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},rO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},iO=(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]=ay(n):n===0?e[i-1]=0:(r=!0,e[i-1]=cy(n))}},nO=t=>{let e=t[0],r=e===128?oO(t.slice(1,t.length)):e===255?sO(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},sO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=ay(s):s===0?o=s:(i=!0,o=cy(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},oO=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},ay=t=>(255^t)&255,cy=t=>(255^t)+1&255;ly.exports={encode:tO,parse:nO}});var ri=m((KI,fy)=>{"use strict";var wl=xl(),ti=require("path").posix,hy=uy(),vl=Symbol("slurp"),De=Symbol("type"),Tl=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[De]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=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=Rl(e,r+136,12),this.cksum=Gt(e,r+148,12),this[vl](i),this[vl](n,!0),this[De]=pr(e,r+156,1),this[De]===""&&(this[De]="0"),this[De]==="0"&&this.path.slice(-1)==="/"&&(this[De]="5"),this[De]==="5"&&(this.size=0),this.linkpath=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=Rl(e,r+476,12),this.ctime=Rl(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)}[vl](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=aO(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=Al(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[De].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=Al(e,r+476,12,this.atime)||this.needPax,this.needPax=Al(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,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 wl.name.get(this[De])||this[De]}get typeKey(){return this[De]}set type(e){wl.code.has(e)?this[De]=wl.code.get(e):this[De]=e}},aO=(t,e)=>{let i=t,n="",s,o=ti.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=ti.dirname(i),i=ti.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=ti.join(ti.basename(n),i),n=ti.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.*/,""),Rl=(t,e,r)=>cO(Gt(t,e,r)),cO=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?hy.parse(t.slice(e,e+r)):uO(t,e,r),lO=t=>isNaN(t)?null:t,uO=(t,e,r)=>lO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),hO={12:8589934591,8:2097151},Wt=(t,e,r,i)=>i===null?!1:i>hO[r]||i<0?(hy.encode(i,t.slice(e,e+r)),!0):(fO(t,e,r,i),!1),fO=(t,e,r,i)=>t.write(pO(i,r),e,r,"ascii"),pO=(t,e)=>dO(Math.floor(t).toString(8),e),dO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Al=(t,e,r,i)=>i===null?!1:Wt(t,e,r,i.getTime()/1e3),mO=new Array(156).join("\0"),dr=(t,e,r,i)=>i===null?!1:(t.write(i+mO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);fy.exports=Tl});var bs=m((XI,py)=>{"use strict";var gO=ri(),yO=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 gO({path:("PaxHeader/"+yO.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(_O(EO(t),e),r);var _O=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,EO=t=>t.replace(/\n$/,"").split(`
8
+ `).reduce(SO,Object.create(null)),SO=(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};py.exports=Gi});var ii=m((ZI,dy)=>{dy.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 xs=m((QI,my)=>{"use strict";my.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 Cl=m((ek,gy)=>{"use strict";var ws=["|","<",">","?",":"],Ol=ws.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),bO=new Map(ws.map((t,e)=>[t,Ol[e]])),xO=new Map(Ol.map((t,e)=>[t,ws[e]]));gy.exports={encode:t=>ws.reduce((e,r)=>e.split(r).join(bO.get(r)),t),decode:t=>Ol.reduce((e,r)=>e.split(r).join(xO.get(r)),t)}});var Pl=m((tk,_y)=>{var{isAbsolute:wO,parse:yy}=require("path").win32;_y.exports=t=>{let e="",r=yy(t);for(;wO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=yy(t)}return[e,t]}});var Sy=m((rk,Ey)=>{"use strict";Ey.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 Hl=m((sk,Ny)=>{"use strict";var Ty=us(),Oy=bs(),Cy=ri(),ot=require("fs"),by=require("path"),st=ei(),vO=ii(),Py=(t,e)=>e?(t=st(t).replace(/^\.(\/|$)/,""),vO(e)+"/"+t):st(t),RO=16*1024*1024,xy=Symbol("process"),wy=Symbol("file"),vy=Symbol("directory"),Il=Symbol("symlink"),Ry=Symbol("hardlink"),Wi=Symbol("header"),vs=Symbol("read"),kl=Symbol("lstat"),Rs=Symbol("onlstat"),Nl=Symbol("onread"),Dl=Symbol("onreadlink"),Fl=Symbol("openfile"),Ml=Symbol("onopenfile"),Yt=Symbol("close"),As=Symbol("mode"),Bl=Symbol("awaitDrain"),Ll=Symbol("ondrain"),at=Symbol("prefix"),Ay=Symbol("hadError"),Ly=xs(),AO=Cl(),Iy=Pl(),ky=Sy(),Ts=Ly(class extends Ty{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||RO,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]=Iy(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=AO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=st(r.absolute||by.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[Rs](this.statCache.get(this.absolute)):this[kl]()}emit(e,...r){return e==="error"&&(this[Ay]=!0),super.emit(e,...r)}[kl](){ot.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Rs](r)})}[Rs](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=OO(e),this.emit("stat",e),this[xy]()}[xy](){switch(this.type){case"File":return this[wy]();case"Directory":return this[vy]();case"SymbolicLink":return this[Il]();default:return this.end()}}[As](e){return ky(e,this.type==="Directory",this.portable)}[at](e){return Py(e,this.prefix)}[Wi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Cy({path:this[at](this.path),linkpath:this.type==="Link"?this[at](this.linkpath):this.linkpath,mode:this[As](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 Oy({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)}[vy](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Wi](),this.end()}[Il](){ot.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Dl](r)})}[Dl](e){this.linkpath=st(e),this[Wi](),this.end()}[Ry](e){this.type="Link",this.linkpath=st(by.relative(this.cwd,e)),this.stat.size=0,this[Wi](),this.end()}[wy](){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[Ry](r)}this.linkCache.set(e,this.absolute)}if(this[Wi](),this.stat.size===0)return this.end();this[Fl]()}[Fl](){ot.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Ml](r)})}[Ml](e){if(this.fd=e,this[Ay])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[vs]()}[vs](){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[Nl](a)})}[Yt](e){ot.close(this.fd,e)}[Nl](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[Ll]():this[Bl](()=>this[Ll]())}[Bl](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)}[Ll](){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[vs]()}}),ql=class extends Ts{[kl](){this[Rs](ot.lstatSync(this.absolute))}[Il](){this[Dl](ot.readlinkSync(this.absolute))}[Fl](){this[Ml](ot.openSync(this.absolute,"r"))}[vs](){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[Nl](a),e=!1}finally{if(e)try{this[Yt](()=>{})}catch{}}}[Bl](e){e()}[Yt](e){ot.closeSync(this.fd),e()}},TO=Ly(class extends Ty{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[As](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]=Iy(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Cy({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 Oy({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 Py(e,this.prefix)}[As](e){return ky(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()}});Ts.Sync=ql;Ts.Tar=TO;var OO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Ny.exports=Ts});var Fy=m((ok,Dy)=>{"use strict";Dy.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ul=m((ak,My)=>{"use strict";My.exports=U;U.Node=mr;U.create=U;function U(t){var e=this;if(e instanceof U||(e=new U),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}U.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};U.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};U.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};U.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)PO(this,arguments[t]);return this.length};U.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)LO(this,arguments[t]);return this.length};U.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};U.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};U.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};U.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};U.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};U.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};U.prototype.map=function(t,e){e=e||this;for(var r=new U,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};U.prototype.mapReverse=function(t,e){e=e||this;for(var r=new U,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};U.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};U.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};U.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};U.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};U.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new U;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};U.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new U;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};U.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=CO(this,n,r[i]);return s};U.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function CO(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 PO(t,e){t.tail=new mr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function LO(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{Fy()(U)}catch{}});var Fs=m((lk,Gy)=>{"use strict";var Ns=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}},IO=us(),kO=El(),NO=Es(),Xl=Hl(),DO=Xl.Sync,FO=Xl.Tar,MO=Ul(),By=Buffer.alloc(1024),Ps=Symbol("onStat"),Os=Symbol("ended"),ct=Symbol("queue"),ni=Symbol("current"),gr=Symbol("process"),Cs=Symbol("processing"),qy=Symbol("processJob"),lt=Symbol("jobs"),$l=Symbol("jobDone"),Ls=Symbol("addFSEntry"),Hy=Symbol("addTarEntry"),Yl=Symbol("stat"),zl=Symbol("readdir"),Is=Symbol("onreaddir"),ks=Symbol("pipe"),Uy=Symbol("entry"),jl=Symbol("entryOpt"),Vl=Symbol("writeEntryClass"),jy=Symbol("write"),Gl=Symbol("ondrain"),Ds=require("fs"),$y=require("path"),BO=xs(),Wl=ei(),Zl=BO(class extends IO{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=Wl(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Vl]=Xl,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 kO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Gl]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Gl]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[ct]=new MO,this[lt]=0,this.jobs=+e.jobs||4,this[Cs]=!1,this[Os]=!1}[jy](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Os]=!0,this[gr](),this}write(e){if(this[Os])throw new Error("write after end");return e instanceof NO?this[Hy](e):this[Ls](e),this.flowing}[Hy](e){let r=Wl($y.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ns(e.path,r,!1);i.entry=new FO(e,this[jl](i)),i.entry.on("end",n=>this[$l](i)),this[lt]+=1,this[ct].push(i)}this[gr]()}[Ls](e){let r=Wl($y.resolve(this.cwd,e));this[ct].push(new Ns(e,r)),this[gr]()}[Yl](e){e.pending=!0,this[lt]+=1;let r=this.follow?"stat":"lstat";Ds[r](e.absolute,(i,n)=>{e.pending=!1,this[lt]-=1,i?this.emit("error",i):this[Ps](e,n)})}[Ps](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[gr]()}[zl](e){e.pending=!0,this[lt]+=1,Ds.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[lt]-=1,r)return this.emit("error",r);this[Is](e,i)})}[Is](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[gr]()}[gr](){if(!this[Cs]){this[Cs]=!0;for(let e=this[ct].head;e!==null&&this[lt]<this.jobs;e=e.next)if(this[qy](e.value),e.value.ignore){let r=e.next;this[ct].removeNode(e),e.next=r}this[Cs]=!1,this[Os]&&!this[ct].length&&this[lt]===0&&(this.zip?this.zip.end(By):(super.write(By),super.end()))}}get[ni](){return this[ct]&&this[ct].head&&this[ct].head.value}[$l](e){this[ct].shift(),this[lt]-=1,this[gr]()}[qy](e){if(!e.pending){if(e.entry){e===this[ni]&&!e.piped&&this[ks](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ps](e,this.statCache.get(e.absolute)):this[Yl](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Is](e,this.readdirCache.get(e.absolute)):this[zl](e),!e.readdir))){if(e.entry=this[Uy](e),!e.entry){e.ignore=!0;return}e===this[ni]&&!e.piped&&this[ks](e)}}}[jl](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}}[Uy](e){this[lt]+=1;try{return new this[Vl](e.path,this[jl](e)).on("end",()=>this[$l](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Gl](){this[ni]&&this[ni].entry&&this[ni].entry.resume()}[ks](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ls](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()}}),Kl=class extends Zl{constructor(e){super(e),this[Vl]=DO}pause(){}resume(){}[Yl](e){let r=this.follow?"statSync":"lstatSync";this[Ps](e,Ds[r](e.absolute))}[zl](e,r){this[Is](e,Ds.readdirSync(e.absolute))}[ks](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ls](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[jy](n)})}};Zl.Sync=Kl;Gy.exports=Zl});var fi=m(zi=>{"use strict";var qO=il(),HO=require("events").EventEmitter,Ce=require("fs"),eu=Ce.writev;if(!eu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;eu=(r,i,n,s)=>{let o=(c,l)=>s(c,l,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var ui=Symbol("_autoClose"),Ve=Symbol("_close"),Yi=Symbol("_ended"),G=Symbol("_fd"),Wy=Symbol("_finished"),Vt=Symbol("_flags"),Ql=Symbol("_flush"),tu=Symbol("_handleChunk"),ru=Symbol("_makeBuf"),Us=Symbol("_mode"),Ms=Symbol("_needDrain"),ci=Symbol("_onerror"),hi=Symbol("_onopen"),Jl=Symbol("_onread"),oi=Symbol("_onwrite"),Kt=Symbol("_open"),Ot=Symbol("_path"),yr=Symbol("_pos"),ut=Symbol("_queue"),ai=Symbol("_read"),Yy=Symbol("_readSize"),zt=Symbol("_reading"),Bs=Symbol("_remain"),zy=Symbol("_size"),qs=Symbol("_write"),si=Symbol("_writing"),Hs=Symbol("_defaultFlag"),li=Symbol("_errored"),$s=class extends qO{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[Ot]=e,this[Yy]=r.readSize||16*1024*1024,this[zt]=!1,this[zy]=typeof r.size=="number"?r.size:1/0,this[Bs]=this[zy],this[ui]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[G]=="number"?this[ai]():this[Kt]()}get fd(){return this[G]}get path(){return this[Ot]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Ce.open(this[Ot],"r",(e,r)=>this[hi](e,r))}[hi](e,r){e?this[ci](e):(this[G]=r,this.emit("open",r),this[ai]())}[ru](){return Buffer.allocUnsafe(Math.min(this[Yy],this[Bs]))}[ai](){if(!this[zt]){this[zt]=!0;let e=this[ru]();if(e.length===0)return process.nextTick(()=>this[Jl](null,0,e));Ce.read(this[G],e,0,e.length,null,(r,i,n)=>this[Jl](r,i,n))}}[Jl](e,r,i){this[zt]=!1,e?this[ci](e):this[tu](r,i)&&this[ai]()}[Ve](){if(this[ui]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ci](e){this[zt]=!0,this[Ve](),this.emit("error",e)}[tu](e,r){let i=!1;return this[Bs]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Bs]<=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[ai]();break;case"error":return this[li]?void 0:(this[li]=!0,super.emit(e,r));default:return super.emit(e,r)}}},iu=class extends $s{[Kt](){let e=!0;try{this[hi](null,Ce.openSync(this[Ot],"r")),e=!1}finally{e&&this[Ve]()}}[ai](){let e=!0;try{if(!this[zt]){this[zt]=!0;do{let r=this[ru](),i=r.length===0?0:Ce.readSync(this[G],r,0,r.length,null);if(!this[tu](i,r))break}while(!0);this[zt]=!1}e=!1}finally{e&&this[Ve]()}}[Ve](){if(this[ui]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}},js=class extends HO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[li]=!1,this[si]=!1,this[Yi]=!1,this[Ms]=!1,this[ut]=[],this[Ot]=e,this[G]=typeof r.fd=="number"?r.fd:null,this[Us]=r.mode===void 0?438:r.mode,this[yr]=typeof r.start=="number"?r.start:null,this[ui]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[yr]!==null?"r+":"w";this[Hs]=r.flags===void 0,this[Vt]=this[Hs]?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[Ot]}[ci](e){this[Ve](),this[si]=!0,this.emit("error",e)}[Kt](){Ce.open(this[Ot],this[Vt],this[Us],(e,r)=>this[hi](e,r))}[hi](e,r){this[Hs]&&this[Vt]==="r+"&&e&&e.code==="ENOENT"?(this[Vt]="w",this[Kt]()):e?this[ci](e):(this[G]=r,this.emit("open",r),this[Ql]())}end(e,r){return e&&this.write(e,r),this[Yi]=!0,!this[si]&&!this[ut].length&&typeof this[G]=="number"&&this[oi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Yi]?(this.emit("error",new Error("write() after end()")),!1):this[G]===null||this[si]||this[ut].length?(this[ut].push(e),this[Ms]=!0,!1):(this[si]=!0,this[qs](e),!0)}[qs](e){Ce.write(this[G],e,0,e.length,this[yr],(r,i)=>this[oi](r,i))}[oi](e,r){e?this[ci](e):(this[yr]!==null&&(this[yr]+=r),this[ut].length?this[Ql]():(this[si]=!1,this[Yi]&&!this[Wy]?(this[Wy]=!0,this[Ve](),this.emit("finish")):this[Ms]&&(this[Ms]=!1,this.emit("drain"))))}[Ql](){if(this[ut].length===0)this[Yi]&&this[oi](null,0);else if(this[ut].length===1)this[qs](this[ut].pop());else{let e=this[ut];this[ut]=[],eu(this[G],e,this[yr],(r,i)=>this[oi](r,i))}}[Ve](){if(this[ui]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},nu=class extends js{[Kt](){let e;if(this[Hs]&&this[Vt]==="r+")try{e=Ce.openSync(this[Ot],this[Vt],this[Us])}catch(r){if(r.code==="ENOENT")return this[Vt]="w",this[Kt]();throw r}else e=Ce.openSync(this[Ot],this[Vt],this[Us]);this[hi](null,e)}[Ve](){if(this[ui]&&typeof this[G]=="number"){let e=this[G];this[G]=null,Ce.closeSync(e),this.emit("close")}}[qs](e){let r=!0;try{this[oi](null,Ce.writeSync(this[G],e,0,e.length,this[yr])),r=!1}finally{if(r)try{this[Ve]()}catch{}}}};zi.ReadStream=$s;zi.ReadStreamSync=iu;zi.WriteStream=js;zi.WriteStreamSync=nu});var Xs=m((fk,t_)=>{"use strict";var UO=xs(),$O=ri(),jO=require("events"),GO=Ul(),WO=1024*1024,YO=Es(),Vy=bs(),zO=El(),{nextTick:VO}=require("process"),su=Buffer.from([31,139]),$e=Symbol("state"),_r=Symbol("writeEntry"),Ct=Symbol("readEntry"),ou=Symbol("nextEntry"),Ky=Symbol("processEntry"),je=Symbol("extendedHeader"),Vi=Symbol("globalExtendedHeader"),Xt=Symbol("meta"),Xy=Symbol("emitMeta"),X=Symbol("buffer"),Pt=Symbol("queue"),Er=Symbol("ended"),Zy=Symbol("emittedEnd"),Sr=Symbol("emit"),Pe=Symbol("unzip"),Gs=Symbol("consumeChunk"),Ws=Symbol("consumeChunkSub"),au=Symbol("consumeBody"),Qy=Symbol("consumeMeta"),Jy=Symbol("consumeHeader"),Ys=Symbol("consuming"),cu=Symbol("bufferConcat"),lu=Symbol("maybeEnd"),Ki=Symbol("writing"),Zt=Symbol("aborted"),zs=Symbol("onDone"),br=Symbol("sawValidEntry"),Vs=Symbol("sawNullBlock"),Ks=Symbol("sawEOF"),e_=Symbol("closeStream"),KO=t=>!0;t_.exports=UO(class extends jO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[br]=null,this.on(zs,r=>{(this[$e]==="begin"||this[br]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(zs,e.ondone):this.on(zs,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||WO,this.filter=typeof e.filter=="function"?e.filter:KO,this.writable=!0,this.readable=!1,this[Pt]=new GO,this[X]=null,this[Ct]=null,this[_r]=null,this[$e]="begin",this[Xt]="",this[je]=null,this[Vi]=null,this[Er]=!1,this[Pe]=null,this[Zt]=!1,this[Vs]=!1,this[Ks]=!1,this.on("end",()=>this[e_]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Jy](e,r){this[br]===null&&(this[br]=!1);let i;try{i=new $O(e,r,this[je],this[Vi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Vs]?(this[Ks]=!0,this[$e]==="begin"&&(this[$e]="header"),this[Sr]("eof")):(this[Vs]=!0,this[Sr]("nullBlock"));else if(this[Vs]=!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 YO(i,this[je],this[Vi]);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[Sr]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Xt]="",s.on("data",o=>this[Xt]+=o),this[$e]="meta"):(this[je]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Sr]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[Ct]?this[Pt].push(s):(this[Pt].push(s),this[ou]())))}}}[e_](){VO(()=>this.emit("close"))}[Ky](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ct]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[ou]()),r=!1)):(this[Ct]=null,r=!1),r}[ou](){do;while(this[Ky](this[Pt].shift()));if(!this[Pt].length){let e=this[Ct];!e||e.flowing||e.size===e.remain?this[Ki]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[au](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[$e]="header",this[_r]=null,i.end()),s.length}[Qy](e,r){let i=this[_r],n=this[au](e,r);return this[_r]||this[Xy](i),n}[Sr](e,r,i){!this[Pt].length&&!this[Ct]?this.emit(e,r,i):this[Pt].push([e,r,i])}[Xy](e){switch(this[Sr]("meta",this[Xt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[je]=Vy.parse(this[Xt],this[je],!1);break;case"GlobalExtendedHeader":this[Vi]=Vy.parse(this[Xt],this[Vi],!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[X]&&(e=Buffer.concat([this[X],e]),this[X]=null),e.length<su.length)return this[X]=e,!0;for(let i=0;this[Pe]===null&&i<su.length;i++)e[i]!==su[i]&&(this[Pe]=!1);if(this[Pe]===null){let i=this[Er];this[Er]=!1,this[Pe]=new zO.Unzip,this[Pe].on("data",s=>this[Gs](s)),this[Pe].on("error",s=>this.abort(s)),this[Pe].on("end",s=>{this[Er]=!0,this[Gs]()}),this[Ki]=!0;let n=this[Pe][i?"end":"write"](e);return this[Ki]=!1,n}}this[Ki]=!0,this[Pe]?this[Pe].write(e):this[Gs](e),this[Ki]=!1;let r=this[Pt].length?!1:this[Ct]?this[Ct].flowing:!0;return!r&&!this[Pt].length&&this[Ct].once("drain",i=>this.emit("drain")),r}[cu](e){e&&!this[Zt]&&(this[X]=this[X]?Buffer.concat([this[X],e]):e)}[lu](){if(this[Er]&&!this[Zy]&&!this[Zt]&&!this[Ys]){this[Zy]=!0;let e=this[_r];if(e&&e.blockRemain){let r=this[X]?this[X].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[X]&&e.write(this[X]),e.end()}this[Sr](zs)}}[Gs](e){if(this[Ys])this[cu](e);else if(!e&&!this[X])this[lu]();else{if(this[Ys]=!0,this[X]){this[cu](e);let r=this[X];this[X]=null,this[Ws](r)}else this[Ws](e);for(;this[X]&&this[X].length>=512&&!this[Zt]&&!this[Ks];){let r=this[X];this[X]=null,this[Ws](r)}this[Ys]=!1}(!this[X]||this[Er])&&this[lu]()}[Ws](e){let r=0,i=e.length;for(;r+512<=i&&!this[Zt]&&!this[Ks];)switch(this[$e]){case"begin":case"header":this[Jy](e,r),r+=512;break;case"ignore":case"body":r+=this[au](e,r);break;case"meta":r+=this[Qy](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[X]?this[X]=Buffer.concat([e.slice(r),this[X]]):this[X]=e.slice(r))}end(e){this[Zt]||(this[Pe]?this[Pe].end(e):(this[Er]=!0,this.write(e)))}})});var Zs=m((pk,s_)=>{"use strict";var XO=Kr(),i_=Xs(),pi=require("fs"),ZO=fi(),r_=require("path"),uu=ii();s_.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=XO(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&&JO(i,e),i.noResume||QO(i),i.file&&i.sync?eC(i):i.file?tC(i,r):n_(i)};var QO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},JO=(t,e)=>{let r=new Map(e.map(s=>[uu(s),!0])),i=t.filter,n=(s,o)=>{let a=o||r_.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(r_.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(uu(s)):s=>n(uu(s))},eC=t=>{let e=n_(t),r=t.file,i=!0,n;try{let s=pi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(pi.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(n=pi.openSync(r,"r");a<s.size;){let l=pi.readSync(n,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{pi.closeSync(n)}catch{}}},tC=(t,e)=>{let r=new i_(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),pi.stat(n,(c,l)=>{if(c)a(c);else{let u=new ZO.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},n_=t=>new i_(t)});var h_=m((dk,u_)=>{"use strict";var rC=Kr(),Qs=Fs(),o_=fi(),a_=Zs(),c_=require("path");u_.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=rC(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?iC(i,e):i.file?nC(i,e,r):i.sync?sC(i,e):oC(i,e)};var iC=(t,e)=>{let r=new Qs.Sync(t),i=new o_.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),l_(r,e)},nC=(t,e,r)=>{let i=new Qs(t),n=new o_.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 hu(i,e),r?s.then(r,r):s},l_=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?a_({file:c_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},hu=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return a_({file:c_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>hu(t,e));t.add(r)}t.end()},sC=(t,e)=>{let r=new Qs.Sync(t);return l_(r,e),r},oC=(t,e)=>{let r=new Qs(t);return hu(r,e),r}});var fu=m((mk,__)=>{"use strict";var aC=Kr(),f_=Fs(),Fe=require("fs"),p_=fi(),d_=Zs(),m_=require("path"),g_=ri();__.exports=(t,e,r)=>{let i=aC(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?cC(i,e):uC(i,e,r)};var cC=(t,e)=>{let r=new f_.Sync(t),i=!0,n,s;try{try{n=Fe.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")n=Fe.openSync(t.file,"w+");else throw c}let o=Fe.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=Fe.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new g_(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}i=!1,lC(t,r,s,n,e)}finally{if(i)try{Fe.closeSync(n)}catch{}}},lC=(t,e,r,i,n)=>{let s=new p_.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),hC(e,n)},uC=(t,e,r)=>{e=Array.from(e);let i=new f_(t),n=(o,a,c)=>{let l=(d,y)=>{d?Fe.close(o,x=>c(d)):c(null,y)},u=0;if(a===0)return l(null,0);let h=0,f=Buffer.alloc(512),g=(d,y)=>{if(d)return l(d);if(h+=y,h<512&&y)return Fe.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,u);let x=new g_(f);if(!x.cksumValid)return l(null,u);let v=512*Math.ceil(x.size/512);if(u+v+512>a||(u+=v+512,u>=a))return l(null,u);t.mtimeCache&&t.mtimeCache.set(x.path,x.mtime),h=0,Fe.read(o,f,0,512,u,g)};Fe.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let c="r+",l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+")return c="w+",Fe.open(t.file,c,l);if(u)return a(u);Fe.fstat(h,(f,g)=>{if(f)return Fe.close(h,()=>a(f));n(h,g.size,(d,y)=>{if(d)return a(d);let x=new p_.WriteStream(t.file,{fd:h,start:y});i.pipe(x),x.on("error",a),x.on("close",o),y_(i,e)})})};Fe.open(t.file,c,l)});return r?s.then(r,r):s},hC=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?d_({file:m_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},y_=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return d_({file:m_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>y_(t,e));t.add(r)}t.end()}});var S_=m((gk,E_)=>{"use strict";var fC=Kr(),pC=fu();E_.exports=(t,e,r)=>{let i=fC(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),dC(i),pC(i,e,r)};var dC=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 w_=m((yk,x_)=>{var{promisify:b_}=require("util"),Qt=require("fs"),mC=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=b_(t.mkdir),t.stat=t.stat||t.fs.stat||Qt.stat,t.statAsync=b_(t.stat),t.statSync=t.statSync||t.fs.statSync||Qt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Qt.mkdirSync,t};x_.exports=mC});var R_=m((_k,v_)=>{var gC=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:yC,parse:_C}=require("path"),EC=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=yC(t),gC==="win32"){let e=/[*|"<>?:]/,{root:r}=_C(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};v_.exports=EC});var P_=m((Ek,C_)=>{var{dirname:A_}=require("path"),T_=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?T_(t,A_(e),e):void 0),O_=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?O_(t,A_(e),e):void 0}};C_.exports={findMade:T_,findMadeSync:O_}});var mu=m((Sk,I_)=>{var{dirname:L_}=require("path"),pu=(t,e,r)=>{e.recursive=!1;let i=L_(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 pu(i,e).then(s=>pu(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})})},du=(t,e,r)=>{let i=L_(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 du(t,e,du(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};I_.exports={mkdirpManual:pu,mkdirpManualSync:du}});var D_=m((bk,N_)=>{var{dirname:k_}=require("path"),{findMade:SC,findMadeSync:bC}=P_(),{mkdirpManual:xC,mkdirpManualSync:wC}=mu(),vC=(t,e)=>(e.recursive=!0,k_(t)===t?e.mkdirAsync(t,e):SC(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return xC(t,e);throw n}))),RC=(t,e)=>{if(e.recursive=!0,k_(t)===t)return e.mkdirSync(t,e);let i=bC(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return wC(t,e);throw n}};N_.exports={mkdirpNative:vC,mkdirpNativeSync:RC}});var q_=m((xk,B_)=>{var F_=require("fs"),AC=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,gu=AC.replace(/^v/,"").split("."),M_=+gu[0]>10||+gu[0]==10&&+gu[1]>=12,TC=M_?t=>t.mkdir===F_.mkdir:()=>!1,OC=M_?t=>t.mkdirSync===F_.mkdirSync:()=>!1;B_.exports={useNative:TC,useNativeSync:OC}});var W_=m((wk,G_)=>{var di=w_(),mi=R_(),{mkdirpNative:H_,mkdirpNativeSync:U_}=D_(),{mkdirpManual:$_,mkdirpManualSync:j_}=mu(),{useNative:CC,useNativeSync:PC}=q_(),gi=(t,e)=>(t=mi(t),e=di(e),CC(e)?H_(t,e):$_(t,e)),LC=(t,e)=>(t=mi(t),e=di(e),PC(e)?U_(t,e):j_(t,e));gi.sync=LC;gi.native=(t,e)=>H_(mi(t),di(e));gi.manual=(t,e)=>$_(mi(t),di(e));gi.nativeSync=(t,e)=>U_(mi(t),di(e));gi.manualSync=(t,e)=>j_(mi(t),di(e));G_.exports=gi});var Q_=m((vk,Z_)=>{"use strict";var Ge=require("fs"),xr=require("path"),IC=Ge.lchown?"lchown":"chown",kC=Ge.lchownSync?"lchownSync":"chownSync",z_=Ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),Y_=(t,e,r)=>{try{return Ge[kC](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},NC=(t,e,r)=>{try{return Ge.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},DC=z_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ge.chown(t,e,r,i)}:(t,e,r,i)=>i,yu=z_?(t,e,r)=>{try{return Y_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;NC(t,e,r)}}:(t,e,r)=>Y_(t,e,r),FC=process.version,V_=(t,e,r)=>Ge.readdir(t,e,r),MC=(t,e)=>Ge.readdirSync(t,e);/^v4\./.test(FC)&&(V_=(t,e,r)=>Ge.readdir(t,r));var Js=(t,e,r,i)=>{Ge[IC](t,e,r,DC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},K_=(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,K_(t,o,r,i,n)});if(e.isDirectory())_u(xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=xr.resolve(t,e.name);Js(o,r,i,n)});else{let s=xr.resolve(t,e.name);Js(s,r,i,n)}},_u=(t,e,r,i)=>{V_(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 Js(t,e,r,i);let o=s.length,a=null,c=l=>{if(!a){if(l)return i(a=l);if(--o===0)return Js(t,e,r,i)}};s.forEach(l=>K_(t,l,e,r,c))})},BC=(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()&&X_(xr.resolve(t,e.name),r,i),yu(xr.resolve(t,e.name),r,i)},X_=(t,e,r)=>{let i;try{i=MC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return yu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>BC(t,n,e,r)),yu(t,e,r)};Z_.exports=_u;_u.sync=X_});var rE=m((Rk,Eu)=>{"use strict";var J_=W_(),We=require("fs"),eo=require("path"),eE=Q_(),Ke=ei(),to=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},ro=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},io=(t,e)=>t.get(Ke(e)),Xi=(t,e,r)=>t.set(Ke(e),r),qC=(t,e)=>{We.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new ro(t,r&&r.code||"ENOTDIR")),e(r)})};Eu.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,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,u=e.unlink,h=e.cache,f=Ke(e.cwd),g=(x,v)=>{x?r(x):(Xi(h,t,!0),v&&c?eE(v,o,a,A=>g(A)):s?We.chmod(t,n,r):r())};if(h&&io(h,t)===!0)return g();if(t===f)return qC(t,g);if(l)return J_(t,{mode:n}).then(x=>g(null,x),g);let y=Ke(eo.relative(f,t)).split("/");no(f,y,n,h,u,f,null,g)};var no=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=Ke(eo.resolve(t+"/"+c));if(io(i,l))return no(l,e,r,i,n,s,o,a);We.mkdir(l,r,tE(l,e,r,i,n,s,o,a))},tE=(t,e,r,i,n,s,o,a)=>c=>{c?We.lstat(t,(l,u)=>{if(l)l.path=l.path&&Ke(l.path),a(l);else if(u.isDirectory())no(t,e,r,i,n,s,o,a);else if(n)We.unlink(t,h=>{if(h)return a(h);We.mkdir(t,r,tE(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new to(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,no(t,e,r,i,n,s,o,a))},HC=t=>{let e=!1,r="ENOTDIR";try{e=We.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new ro(t,r)}};Eu.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),c=e.preserve,l=e.unlink,u=e.cache,h=Ke(e.cwd),f=x=>{Xi(u,t,!0),x&&a&&eE.sync(x,s,o),n&&We.chmodSync(t,i)};if(u&&io(u,t)===!0)return f();if(t===h)return HC(h),f();if(c)return f(J_.sync(t,i));let d=Ke(eo.relative(h,t)).split("/"),y=null;for(let x=d.shift(),v=h;x&&(v+="/"+x);x=d.shift())if(v=Ke(eo.resolve(v)),!io(u,v))try{We.mkdirSync(v,i),y=y||v,Xi(u,v,!0)}catch{let M=We.lstatSync(v);if(M.isDirectory()){Xi(u,v,!0);continue}else if(l){We.unlinkSync(v),We.mkdirSync(v,i),y=y||v,Xi(u,v,!0);continue}else if(M.isSymbolicLink())return new to(v,v+"/"+d.join("/"))}return f(y)}});var bu=m((Ak,iE)=>{var Su=Object.create(null),{hasOwnProperty:UC}=Object.prototype;iE.exports=t=>(UC.call(Su,t)||(Su[t]=t.normalize("NFKD")),Su[t])});var aE=m((Tk,oE)=>{var nE=require("assert"),$C=bu(),jC=ii(),{join:sE}=require("path"),GC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,WC=GC==="win32";oE.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=sE(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let u=e.get(l);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=l=>{let{paths:u,dirs:h}=n(l);return u.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>a(l)),!0),a=l=>{if(!i.has(l))return!1;let{paths:u,dirs:h}=e.get(l),f=new Set;return u.forEach(g=>{let d=t.get(g);nE.equal(d[0],l),d.length===1?t.delete(g):(d.shift(),typeof d[0]=="function"?f.add(d[0]):d[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let d=t.get(g);nE(d[0]instanceof Set),d[0].size===1&&d.length===1?t.delete(g):d[0].size===1?(d.shift(),f.add(d[0])):d[0].delete(l)}),i.delete(l),f.forEach(g=>o(g)),!0};return{check:s,reserve:(l,u)=>{l=WC?["win32 parallelization disabled"]:l.map(f=>$C(jC(sE(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:l}),l.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var uE=m((Ok,lE)=>{var YC=process.env.__FAKE_PLATFORM__||process.platform,zC=YC==="win32",VC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:KC,O_TRUNC:XC,O_WRONLY:ZC,UV_FS_O_FILEMAP:cE=0}=VC.constants,QC=zC&&!!cE,JC=512*1024,eP=cE|XC|KC|ZC;lE.exports=QC?t=>t<JC?eP:"w":()=>"w"});var Pu=m((Ck,vE)=>{"use strict";var tP=require("assert"),rP=Xs(),$=require("fs"),iP=fi(),Lt=require("path"),bE=rE(),hE=Cl(),nP=aE(),sP=Pl(),Me=ei(),oP=ii(),aP=bu(),fE=Symbol("onEntry"),vu=Symbol("checkFs"),pE=Symbol("checkFs2"),ao=Symbol("pruneCache"),Ru=Symbol("isReusable"),Ye=Symbol("makeFs"),Au=Symbol("file"),Tu=Symbol("directory"),co=Symbol("link"),dE=Symbol("symlink"),mE=Symbol("hardlink"),gE=Symbol("unsupported"),yE=Symbol("checkPath"),Jt=Symbol("mkdir"),Se=Symbol("onError"),so=Symbol("pending"),_E=Symbol("pend"),yi=Symbol("unpend"),xu=Symbol("ended"),wu=Symbol("maybeClose"),Ou=Symbol("skip"),Zi=Symbol("doChown"),Qi=Symbol("uid"),Ji=Symbol("gid"),en=Symbol("checkedCwd"),xE=require("crypto"),wE=uE(),cP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,tn=cP==="win32",lP=(t,e)=>{if(!tn)return $.unlink(t,e);let r=t+".DELETE."+xE.randomBytes(16).toString("hex");$.rename(t,r,i=>{if(i)return e(i);$.unlink(r,e)})},uP=t=>{if(!tn)return $.unlinkSync(t);let e=t+".DELETE."+xE.randomBytes(16).toString("hex");$.renameSync(t,e),$.unlinkSync(e)},EE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,SE=t=>aP(oP(Me(t))).toLowerCase(),hP=(t,e)=>{e=SE(e);for(let r of t.keys()){let i=SE(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},fP=t=>{for(let e of t.keys())t.delete(e)},rn=class extends rP{constructor(e){if(e||(e={}),e.ondone=r=>{this[xu]=!0,this[wu]()},super(e),this[en]=!1,this.reservations=nP(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[so]=0,this[xu]=!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||tn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Me(Lt.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[fE](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[wu](){this[xu]&&this[so]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[yE](e){if(this.strip){let r=Me(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Me(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Me(e.path),i=r.split("/");if(i.includes("..")||tn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=sP(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Lt.isAbsolute(e.path)?e.absolute=Me(Lt.resolve(e.path)):e.absolute=Me(Lt.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Me(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Lt.win32.parse(e.absolute);e.absolute=r+hE.encode(e.absolute.slice(r.length));let{root:i}=Lt.win32.parse(e.path);e.path=i+hE.encode(e.path.slice(i.length))}return!0}[fE](e){if(!this[yE](e))return e.resume();switch(tP.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[vu](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[gE](e)}}[Se](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[yi](),r.resume())}[Jt](e,r,i){bE(Me(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Zi](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Qi](e){return EE(this.uid,e.uid,this.processUid)}[Ji](e){return EE(this.gid,e.gid,this.processGid)}[Au](e,r){let i=e.mode&4095||this.fmode,n=new iP.WriteStream(e.absolute,{flags:wE(e.size),mode:i,autoClose:!1});n.on("error",c=>{n.fd&&$.close(n.fd,()=>{}),n.write=()=>!0,this[Se](c,e),r()});let s=1,o=c=>{if(c){n.fd&&$.close(n.fd,()=>{}),this[Se](c,e),r();return}--s===0&&$.close(n.fd,l=>{l?this[Se](l,e):this[yi](),r()})};n.on("finish",c=>{let l=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;$.futimes(u,h,f,g=>g?$.utimes(l,h,f,d=>o(d&&g)):o())}if(this[Zi](e)){s++;let h=this[Qi](e),f=this[Ji](e);$.fchown(u,h,f,g=>g?$.chown(l,h,f,d=>o(d&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[Se](c,e),r()}),e.pipe(a)),a.pipe(n)}[Tu](e,r){let i=e.mode&4095||this.dmode;this[Jt](e.absolute,i,n=>{if(n){this[Se](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[yi](),e.resume())};e.mtime&&!this.noMtime&&(s++,$.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Zi](e)&&(s++,$.chown(e.absolute,this[Qi](e),this[Ji](e),o)),o()})}[gE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[dE](e,r){this[co](e,e.linkpath,"symlink",r)}[mE](e,r){let i=Me(Lt.resolve(this.cwd,e.linkpath));this[co](e,i,"link",r)}[_E](){this[so]++}[yi](){this[so]--,this[wu]()}[Ou](e){this[yi](),e.resume()}[Ru](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!tn}[vu](e){this[_E]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[pE](e,i))}[ao](e){e.type==="SymbolicLink"?fP(this.dirCache):e.type!=="Directory"&&hP(this.dirCache,e.absolute)}[pE](e,r){this[ao](e);let i=a=>{this[ao](e),r(a)},n=()=>{this[Jt](this.cwd,this.dmode,a=>{if(a){this[Se](a,e),i();return}this[en]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Me(Lt.dirname(e.absolute));if(a!==this.cwd)return this[Jt](a,this.dmode,c=>{if(c){this[Se](c,e),i();return}o()})}o()},o=()=>{$.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[Ou](e),i();return}if(a||this[Ru](e,c))return this[Ye](null,e,i);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,u=h=>this[Ye](h,e,i);return l?$.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return $.rmdir(e.absolute,l=>this[Ye](l,e,i))}if(e.absolute===this.cwd)return this[Ye](null,e,i);lP(e.absolute,l=>this[Ye](l,e,i))})};this[en]?s():n()}[Ye](e,r,i){if(e){this[Se](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Au](r,i);case"Link":return this[mE](r,i);case"SymbolicLink":return this[dE](r,i);case"Directory":case"GNUDumpDir":return this[Tu](r,i)}}[co](e,r,i,n){$[i](r,e.absolute,s=>{s?this[Se](s,e):(this[yi](),e.resume()),n()})}},oo=t=>{try{return[null,t()]}catch(e){return[e,null]}},Cu=class extends rn{[Ye](e,r){return super[Ye](e,r,()=>{})}[vu](e){if(this[ao](e),!this[en]){let s=this[Jt](this.cwd,this.dmode);if(s)return this[Se](s,e);this[en]=!0}if(e.absolute!==this.cwd){let s=Me(Lt.dirname(e.absolute));if(s!==this.cwd){let o=this[Jt](s,this.dmode);if(o)return this[Se](o,e)}}let[r,i]=oo(()=>$.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Ou](e);if(r||this[Ru](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?oo(()=>{$.chmodSync(e.absolute,e.mode)}):[];return this[Ye](a,e)}let[s]=oo(()=>$.rmdirSync(e.absolute));this[Ye](s,e)}let[n]=e.absolute===this.cwd?[]:oo(()=>uP(e.absolute));this[Ye](n,e)}[Au](e,r){let i=e.mode&4095||this.fmode,n=a=>{let c;try{$.closeSync(s)}catch(l){c=l}(a||c)&&this[Se](a||c,e),r()},s;try{s=$.openSync(e.absolute,wE(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Se](a,e)),e.pipe(o)),o.on("data",a=>{try{$.writeSync(s,a,0,a.length)}catch(c){n(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,u=e.mtime;try{$.futimesSync(s,l,u)}catch(h){try{$.utimesSync(e.absolute,l,u)}catch{c=h}}}if(this[Zi](e)){let l=this[Qi](e),u=this[Ji](e);try{$.fchownSync(s,l,u)}catch(h){try{$.chownSync(e.absolute,l,u)}catch{c=c||h}}}n(c)})}[Tu](e,r){let i=e.mode&4095||this.dmode,n=this[Jt](e.absolute,i);if(n){this[Se](n,e),r();return}if(e.mtime&&!this.noMtime)try{$.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Zi](e))try{$.chownSync(e.absolute,this[Qi](e),this[Ji](e))}catch{}r(),e.resume()}[Jt](e,r){try{return bE.sync(Me(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[co](e,r,i,n){try{$[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Se](s,e)}}};rn.Sync=Cu;vE.exports=rn});var CE=m((Pk,OE)=>{"use strict";var pP=Kr(),lo=Pu(),AE=require("fs"),TE=fi(),RE=require("path"),Lu=ii();OE.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=pP(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&&dP(i,e),i.file&&i.sync?mP(i):i.file?gP(i,r):i.sync?yP(i):_P(i)};var dP=(t,e)=>{let r=new Map(e.map(s=>[Lu(s),!0])),i=t.filter,n=(s,o)=>{let a=o||RE.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):n(RE.dirname(s),a);return r.set(s,c),c};t.filter=i?(s,o)=>i(s,o)&&n(Lu(s)):s=>n(Lu(s))},mP=t=>{let e=new lo.Sync(t),r=t.file,i=AE.statSync(r),n=t.maxReadSize||16*1024*1024;new TE.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},gP=(t,e)=>{let r=new lo(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),AE.stat(n,(c,l)=>{if(c)a(c);else{let u=new TE.ReadStream(n,{readSize:i,size:l.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},yP=t=>new lo.Sync(t),_P=t=>new lo(t)});var PE=m(ae=>{"use strict";ae.c=ae.create=h_();ae.r=ae.replace=fu();ae.t=ae.list=Zs();ae.u=ae.update=S_();ae.x=ae.extract=CE();ae.Pack=Fs();ae.Unpack=Pu();ae.Parse=Xs();ae.ReadEntry=Es();ae.WriteEntry=Hl();ae.Header=ri();ae.Pax=bs();ae.types=xl()});var IE=m((Dk,LE)=>{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))}LE.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 kE=m(wr=>{var RP=IE();wr.operation=function(t){var e=wr.timeouts(t);return new RP(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};wr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};wr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(c){var l=wr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){c.apply(t,u)})}.bind(t,o),t[s].options=e}}});var DE=m((Mk,NE)=>{NE.exports=kE()});var ME=m((Bk,FE)=>{var AP=DE();function TP(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=AP.operation(s);function a(u){n(u||new Error("Aborted"))}function c(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function l(u){var h;try{h=t(a,u)}catch(f){c(f,u);return}Promise.resolve(h).then(i).catch(function(g){c(g,u)})}o.attempt(l)}return new Promise(r)}FE.exports=TP});var GP={};qu(GP,{default:()=>jP,hasLegacyEnvVarDependencies:()=>Fu,migrateConfig:()=>Mu,migrateDependencies:()=>Bu,migrateGlobal:()=>WE,migratePipeline:()=>GE,transformer:()=>YE});module.exports=JE(GP);var Nu=B(require("path")),Du=B(require("fs-extra"));var eS=B(Yu());function Eo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ei(t){return Ei=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},Ei(t)}function So(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bo(t,e){if(e&&(Ei(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return So(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 xo(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 wo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vo(){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 vo()?vr=Reflect.construct.bind():vr=function(n,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(n,a),l=new c;return o&&pt(l,o.prototype),l},vr.apply(null,arguments)}function Si(t){var e=typeof Map=="function"?new Map:void 0;return Si=function(i){if(i===null||!wo(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 Ro=B(require("find-up")),cn=B(require("path")),ln=B(require("fs-extra")),tS=function(t){xo(e,t);function e(r){var i;return Eo(this,e),i=bo(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 rS(t,e){try{var r=ln.default.readJsonSync(cn.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 iS(t){try{var e=ln.default.readJsonSync(cn.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function nS(t){var e=ln.default.existsSync(cn.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function zu(t){var e={current:void 0},r=(0,Ro.sync)(function(i){return[iS(i),rS(i,e),nS(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new tS(t);return r===void 0?e.current:r}var Vu=B(require("json5"));var Ao=B(require("fs")),bi=B(require("path"));function To({target:t,cwd:e,contentCheck:r}){let i=bi.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=Ao.default.readFileSync(bi.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(Ao.default.existsSync(bi.default.join(s,t))){n=!0;break}s=bi.default.dirname(s)}return n?s:null}function sS(t){let e=Vu.default.parse(t);return!(e&&"extends"in e)}var Oo={};function Co(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&Oo[i])return Oo[i];let n=To({target:"turbo.json",cwd:i,contentCheck:sS});if(!n)try{if(n=zu(i),!n)return null}catch{return null}return r&&(Oo[i]=n),n}var Li=B(require("fs")),Ht=B(require("path"));function uh(t){return typeof t=="undefined"||t===null}function oS(t){return typeof t=="object"&&t!==null}function aS(t){return Array.isArray(t)?t:uh(t)?[]:[t]}function cS(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 lS(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function uS(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var hS=uh,fS=oS,pS=aS,dS=lS,mS=uS,gS=cS,oe={isNothing:hS,isObject:fS,toArray:pS,repeat:dS,isNegativeZero:mS,extend:gS};function hh(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=lh(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+": "+lh(this,e)};var we=xi;function To(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 Oo(t,e){return oe.repeat(" ",e-t.length)+t}function _S(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,l,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)l=To(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),h),a=oe.repeat(" ",e.indent)+Oo((t.line-c+1).toString(),u)+" | "+l.str+`
11
- `+a;for(l=To(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+Oo((t.line+1).toString(),u)+" | "+l.str+`
10
+ `+t.mark.snippet),i+" "+r):i}function wi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=hh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}wi.prototype=Object.create(Error.prototype);wi.prototype.constructor=wi;wi.prototype.toString=function(e){return this.name+": "+hh(this,e)};var we=wi;function Po(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 Lo(t,e){return oe.repeat(" ",e-t.length)+t}function yS(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,l,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)l=Po(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),h),a=oe.repeat(" ",e.indent)+Lo((t.line-c+1).toString(),u)+" | "+l.str+`
11
+ `+a;for(l=Po(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+Lo((t.line+1).toString(),u)+" | "+l.str+`
12
12
  `,a+=oe.repeat("-",e.indent+u+3+l.pos)+`^
13
- `,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)l=To(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),h),a+=oe.repeat(" ",e.indent)+Oo((t.line+c+1).toString(),u)+" | "+l.str+`
14
- `;return a.replace(/\n$/,"")}var ES=_S,SS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],bS=["scalar","sequence","mapping"];function xS(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function wS(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(SS.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=xS(e.styleAliases||null),bS.indexOf(this.kind)===-1)throw new we('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=wS;function zu(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 vS(){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 Po(t){return this.extend(t)}Po.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(Po.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=zu(n,"implicit"),n.compiledExplicit=zu(n,"explicit"),n.compiledTypeMap=vS(n.compiledImplicit,n.compiledExplicit),n};var uh=Po,hh=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),fh=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),ph=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),dh=new uh({explicit:[hh,fh,ph]});function RS(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function AS(){return null}function TS(t){return t===null}var mh=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:RS,construct:AS,predicate:TS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function OS(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 CS(t){return t==="true"||t==="True"||t==="TRUE"}function PS(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var gh=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:OS,construct:CS,predicate:PS,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 LS(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function IS(t){return 48<=t&&t<=55}function kS(t){return 48<=t&&t<=57}function NS(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(!LS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!IS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!kS(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function DS(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 FS(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var yh=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:NS,construct:DS,predicate:FS,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"]}}),MS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function BS(t){return!(t===null||!MS.test(t)||t[t.length-1]==="_")}function qS(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 HS=/^[-+]?[0-9]+e/;function US(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),HS.test(r)?r.replace("e",".e"):r}function $S(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var _h=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:BS,construct:qS,predicate:$S,represent:US,defaultStyle:"lowercase"}),Eh=dh.extend({implicit:[mh,gh,yh,_h]}),Sh=Eh,bh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xh=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 jS(t){return t===null?!1:bh.exec(t)!==null||xh.exec(t)!==null}function GS(t){var e,r,i,n,s,o,a,c=0,l=null,u,h,f;if(e=bh.exec(t),e===null&&(e=xh.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=+e[10],h=+(e[11]||0),l=(u*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,a,c)),l&&f.setTime(f.getTime()-l),f}function WS(t){return t.toISOString()}var wh=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:jS,construct:GS,instanceOf:Date,represent:WS});function YS(t){return t==="<<"||t===null}var vh=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:YS}),Do=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
- \r`;function zS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Do;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 VS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Do,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 KS(t){var e="",r=0,i,n,s=t.length,o=Do;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 XS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Rh=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zS,construct:VS,predicate:XS,represent:KS}),ZS=Object.prototype.hasOwnProperty,QS=Object.prototype.toString;function JS(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,QS.call(n)!=="[object Object]")return!1;for(s in n)if(ZS.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 eb(t){return t!==null?t:[]}var Ah=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:JS,construct:eb}),tb=Object.prototype.toString;function rb(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],tb.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function ib(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 Th=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rb,construct:ib}),nb=Object.prototype.hasOwnProperty;function sb(t){if(t===null)return!0;var e,r=t;for(e in r)if(nb.call(r,e)&&r[e]!==null)return!1;return!0}function ob(t){return t!==null?t:{}}var Oh=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:sb,construct:ob}),Fo=Sh.extend({implicit:[wh,vh],explicit:[Rh,Ah,Th,Oh]}),kt=Object.prototype.hasOwnProperty,un=1,Ch=2,Ph=3,hn=4,Co=1,ab=2,Vu=3,cb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lb=/[\x85\u2028\u2029]/,ub=/[,\[\]\{\}]/,Lh=/^(?:!|!!|![a-z\-]+!)$/i,Ih=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ku(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 hb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function fb(t){return t===120?2:t===117?4:t===85?8:0}function pb(t){return 48<=t&&t<=57?t-48:-1}function Xu(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 db(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var kh=new Array(256),Nh=new Array(256);for(rr=0;rr<256;rr++)kh[rr]=Xu(rr)?1:0,Nh[rr]=Xu(rr);var rr;function mb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Fo,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 Dh(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=ES(r),new we(e,r)}function C(t,e){throw Dh(t,e)}function fn(t,e){t.onWarning&&t.onWarning.call(null,Dh(t,e))}var Zu={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&&fn(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],Lh.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),kt.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ih.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function It(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||C(t,"expected valid JSON character");else cb.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Qu(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],kt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Tr(t,e,r,i,n,s,o,a,c){var l,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,u=n.length;l<u;l+=1)Array.isArray(n[l])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Ku(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&Ku(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,u=s.length;l<u;l+=1)Qu(t,e,s[l],r);else Qu(t,e,s,r);else!t.json&&!kt.call(r,n)&&kt.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,C(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Mo(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(Mo(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&&fn(t,"deficient indentation"),i}function mn(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 Bo(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
- `,e-1))}function gb(t,e,r){var i,n,s,o,a,c,l,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),ve(g)||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&&mn(t)||r&&Ar(g))break;if(Ze(g))if(c=t.line,l=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=l,t.lineIndent=u;break}}a&&(It(t,s,o,!1),Bo(t,t.line-c),s=o=t.position,a=!1),ir(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return It(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function yb(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(It(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ze(r)?(It(t,i,n,!0),Bo(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&mn(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 _b(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return It(t,r,t.position,!0),t.position++,!0;if(a===92){if(It(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&kh[a])t.result+=Nh[a],t.position++;else if((o=fb(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=hb(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=db(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(It(t,r,i,!0),Bo(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&mn(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 Eb(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,l,u,h,f,g,d=Object.create(null),y,x,v,A;if(A=t.input.charCodeAt(t.position),A===91)u=93,g=!1,a=[];else if(A===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),A=t.input.charCodeAt(++t.position);A!==0;){if(te(t,!0,e),A=t.input.charCodeAt(t.position),A===u)return t.position++,t.tag=o,t.anchor=c,t.kind=g?"mapping":"sequence",t.result=a,!0;r?A===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),x=y=v=null,h=f=!1,A===63&&(l=t.input.charCodeAt(t.position+1),ve(l)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Or(t,e,un,!1,!0),x=t.tag,y=t.result,te(t,!0,e),A=t.input.charCodeAt(t.position),(f||t.line===i)&&A===58&&(h=!0,A=t.input.charCodeAt(++t.position),te(t,!0,e),Or(t,e,un,!1,!0),v=t.result),g?Tr(t,a,d,x,y,v,i,n,s):h?a.push(Tr(t,null,d,x,y,v,i,n,s)):a.push(y),te(t,!0,e),A=t.input.charCodeAt(t.position),A===44?(r=!0,A=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function Sb(t,e){var r,i,n=Co,s=!1,o=!1,a=e,c=0,l=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Co===n?n=h===43?Vu:ab:C(t,"repeat of a chomping mode identifier");else if((u=pb(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(Mo(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ze(h)){c++;continue}if(t.lineIndent<a){n===Vu?t.result+=oe.repeat(`
18
- `,s?1+c:c):n===Co&&s&&(t.result+=`
13
+ `,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)l=Po(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),h),a+=oe.repeat(" ",e.indent)+Lo((t.line+c+1).toString(),u)+" | "+l.str+`
14
+ `;return a.replace(/\n$/,"")}var _S=yS,ES=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],SS=["scalar","sequence","mapping"];function bS(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function xS(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(ES.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=bS(e.styleAliases||null),SS.indexOf(this.kind)===-1)throw new we('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=xS;function Ku(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 wS(){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 ko(t){return this.extend(t)}ko.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(ko.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Ku(n,"implicit"),n.compiledExplicit=Ku(n,"explicit"),n.compiledTypeMap=wS(n.compiledImplicit,n.compiledExplicit),n};var fh=ko,ph=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),dh=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),mh=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),gh=new fh({explicit:[ph,dh,mh]});function vS(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function RS(){return null}function AS(t){return t===null}var yh=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:vS,construct:RS,predicate:AS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function TS(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 OS(t){return t==="true"||t==="True"||t==="TRUE"}function CS(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var _h=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:TS,construct:OS,predicate:CS,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 PS(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function LS(t){return 48<=t&&t<=55}function IS(t){return 48<=t&&t<=57}function kS(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(!PS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!LS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!IS(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function NS(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 DS(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var Eh=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:kS,construct:NS,predicate:DS,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"]}}),FS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function MS(t){return!(t===null||!FS.test(t)||t[t.length-1]==="_")}function BS(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 qS=/^[-+]?[0-9]+e/;function HS(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),qS.test(r)?r.replace("e",".e"):r}function US(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var Sh=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:MS,construct:BS,predicate:US,represent:HS,defaultStyle:"lowercase"}),bh=gh.extend({implicit:[yh,_h,Eh,Sh]}),xh=bh,wh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),vh=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 $S(t){return t===null?!1:wh.exec(t)!==null||vh.exec(t)!==null}function jS(t){var e,r,i,n,s,o,a,c=0,l=null,u,h,f;if(e=wh.exec(t),e===null&&(e=vh.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=+e[10],h=+(e[11]||0),l=(u*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,a,c)),l&&f.setTime(f.getTime()-l),f}function GS(t){return t.toISOString()}var Rh=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$S,construct:jS,instanceOf:Date,represent:GS});function WS(t){return t==="<<"||t===null}var Ah=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:WS}),Bo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function YS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Bo;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 zS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Bo,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 VS(t){var e="",r=0,i,n,s=t.length,o=Bo;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 KS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Th=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YS,construct:zS,predicate:KS,represent:VS}),XS=Object.prototype.hasOwnProperty,ZS=Object.prototype.toString;function QS(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,ZS.call(n)!=="[object Object]")return!1;for(s in n)if(XS.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function JS(t){return t!==null?t:[]}var Oh=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:QS,construct:JS}),eb=Object.prototype.toString;function tb(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],eb.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function rb(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 Ch=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tb,construct:rb}),ib=Object.prototype.hasOwnProperty;function nb(t){if(t===null)return!0;var e,r=t;for(e in r)if(ib.call(r,e)&&r[e]!==null)return!1;return!0}function sb(t){return t!==null?t:{}}var Ph=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:nb,construct:sb}),qo=xh.extend({implicit:[Rh,Ah],explicit:[Th,Oh,Ch,Ph]}),kt=Object.prototype.hasOwnProperty,un=1,Lh=2,Ih=3,hn=4,Io=1,ob=2,Xu=3,ab=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cb=/[\x85\u2028\u2029]/,lb=/[,\[\]\{\}]/,kh=/^(?:!|!!|![a-z\-]+!)$/i,Nh=/^(?:!|[^,\[\]\{\}])(?:%[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 ub(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function hb(t){return t===120?2:t===117?4:t===85?8:0}function fb(t){return 48<=t&&t<=57?t-48:-1}function Qu(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 pb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Dh=new Array(256),Fh=new Array(256);for(rr=0;rr<256;rr++)Dh[rr]=Qu(rr)?1:0,Fh[rr]=Qu(rr);var rr;function db(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||qo,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 Mh(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=_S(r),new we(e,r)}function C(t,e){throw Mh(t,e)}function fn(t,e){t.onWarning&&t.onWarning.call(null,Mh(t,e))}var Ju={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&&fn(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],kh.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),kt.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Nh.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function It(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||C(t,"expected valid JSON character");else ab.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function eh(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],kt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Tr(t,e,r,i,n,s,o,a,c){var l,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,u=n.length;l<u;l+=1)Array.isArray(n[l])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Zu(n[l])==="[object Object]"&&(n[l]="[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(l=0,u=s.length;l<u;l+=1)eh(t,e,s[l],r);else eh(t,e,s,r);else!t.json&&!kt.call(r,n)&&kt.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,C(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Ho(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(Ho(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&&fn(t,"deficient indentation"),i}function mn(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 Uo(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
+ `,e-1))}function mb(t,e,r){var i,n,s,o,a,c,l,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),ve(g)||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&&mn(t)||r&&Ar(g))break;if(Ze(g))if(c=t.line,l=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=l,t.lineIndent=u;break}}a&&(It(t,s,o,!1),Uo(t,t.line-c),s=o=t.position,a=!1),ir(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return It(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function gb(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(It(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ze(r)?(It(t,i,n,!0),Uo(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&mn(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 yb(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return It(t,r,t.position,!0),t.position++,!0;if(a===92){if(It(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ze(a))te(t,!1,e);else if(a<256&&Dh[a])t.result+=Fh[a],t.position++;else if((o=hb(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=ub(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=pb(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Ze(a)?(It(t,r,i,!0),Uo(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&mn(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 _b(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,l,u,h,f,g,d=Object.create(null),y,x,v,A;if(A=t.input.charCodeAt(t.position),A===91)u=93,g=!1,a=[];else if(A===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),A=t.input.charCodeAt(++t.position);A!==0;){if(te(t,!0,e),A=t.input.charCodeAt(t.position),A===u)return t.position++,t.tag=o,t.anchor=c,t.kind=g?"mapping":"sequence",t.result=a,!0;r?A===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),x=y=v=null,h=f=!1,A===63&&(l=t.input.charCodeAt(t.position+1),ve(l)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Or(t,e,un,!1,!0),x=t.tag,y=t.result,te(t,!0,e),A=t.input.charCodeAt(t.position),(f||t.line===i)&&A===58&&(h=!0,A=t.input.charCodeAt(++t.position),te(t,!0,e),Or(t,e,un,!1,!0),v=t.result),g?Tr(t,a,d,x,y,v,i,n,s):h?a.push(Tr(t,null,d,x,y,v,i,n,s)):a.push(y),te(t,!0,e),A=t.input.charCodeAt(t.position),A===44?(r=!0,A=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function Eb(t,e){var r,i,n=Io,s=!1,o=!1,a=e,c=0,l=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Io===n?n=h===43?Xu:ob:C(t,"repeat of a chomping mode identifier");else if((u=fb(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(Ho(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ze(h)){c++;continue}if(t.lineIndent<a){n===Xu?t.result+=oe.repeat(`
18
+ `,s?1+c:c):n===Io&&s&&(t.result+=`
19
19
  `);break}for(i?ir(h)?(l=!0,t.result+=oe.repeat(`
20
20
  `,s?1+c:c)):l?(l=!1,t.result+=oe.repeat(`
21
21
  `,c+1)):c===0?s&&(t.result+=" "):t.result+=oe.repeat(`
22
22
  `,c):t.result+=oe.repeat(`
23
- `,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);It(t,r,t.position,!1)}return!0}function Ju(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!ve(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Or(t,e,Ph,!1,!0),s.push(t.result),te(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)C(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function bb(t,e,r){var i,n,s,o,a,c,l=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,d=null,y=null,x=!1,v=!1,A;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),A=t.input.charCodeAt(t.position);A!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(A===63||A===58)&&ve(i))A===63?(x&&(Tr(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!0,x=!0,n=!0):x?(x=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,A=i;else{if(o=t.line,a=t.lineStart,c=t.position,!Or(t,r,Ch,!1,!0))break;if(t.line===s){for(A=t.input.charCodeAt(t.position);ir(A);)A=t.input.charCodeAt(++t.position);if(A===58)A=t.input.charCodeAt(++t.position),ve(A)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Tr(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!0,x=!1,n=!1,g=t.tag,d=t.result;else if(v)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(v)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(x&&(o=t.line,a=t.lineStart,c=t.position),Or(t,e,hn,!0,n)&&(x?d=t.result:y=t.result),x||(Tr(t,h,f,g,d,y,o,a,c),g=d=y=null),te(t,!0,-1),A=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&A!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Tr(t,h,f,g,d,null,o,a,c),v&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),v}function xb(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),Lh.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),ub.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Ih.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:kt.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function wb(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 vb(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),kt.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,c=1,l=!1,u=!1,h,f,g,d,y,x;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=hn===r||Ph===r,i&&te(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;xb(t)||wb(t);)te(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=l||n),(c===1||hn===r)&&(un===r||Ch===r?y=e:y=e+1,x=t.position-t.lineStart,c===1?a&&(Ju(t,x)||bb(t,x,y))||Eb(t,y)?u=!0:(o&&Sb(t,y)||yb(t,y)||_b(t,y)?u=!0:vb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):gb(t,y,un===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(u=a&&Ju(t,x))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(d=t.implicitTypes[h],d.resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(kt.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){d=g[h];break}d||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&d.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Rb(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&&Mo(t),kt.call(Zu,i)?Zu[i](t,i,n):fn(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,hn,!1,!0),te(t,!0,-1),t.checkLineBreaks&&lb.test(t.input.slice(e,t.position))&&fn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&mn(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 Fh(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 mb(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;)Rb(r);return r.documents}function Ab(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Fh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Tb(t,e){var r=Fh(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 Ob=Ab,Cb=Tb,Mh={loadAll:Ob,load:Cb},Bh=Object.prototype.toString,qh=Object.prototype.hasOwnProperty,qo=65279,Pb=9,wi=10,Lb=13,Ib=32,kb=33,Nb=34,Lo=35,Db=37,Fb=38,Mb=39,Bb=42,Hh=44,qb=45,pn=58,Hb=61,Ub=62,$b=63,jb=64,Uh=91,$h=93,Gb=96,jh=123,Wb=124,Gh=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 Yb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],zb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Vb(t,e){var r,i,n,s,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&qh.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function Kb(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 Xb=1,vi=2;function Zb(t){this.schema=t.schema||Fo,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=oe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Vb(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?vi:Xb,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eh(t,e){for(var r=oe.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
23
+ `,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!Ze(h)&&h!==0;)h=t.input.charCodeAt(++t.position);It(t,r,t.position,!1)}return!0}function th(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!ve(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Or(t,e,Ih,!1,!0),s.push(t.result),te(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)C(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Sb(t,e,r){var i,n,s,o,a,c,l=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,d=null,y=null,x=!1,v=!1,A;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),A=t.input.charCodeAt(t.position);A!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(A===63||A===58)&&ve(i))A===63?(x&&(Tr(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!0,x=!0,n=!0):x?(x=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,A=i;else{if(o=t.line,a=t.lineStart,c=t.position,!Or(t,r,Lh,!1,!0))break;if(t.line===s){for(A=t.input.charCodeAt(t.position);ir(A);)A=t.input.charCodeAt(++t.position);if(A===58)A=t.input.charCodeAt(++t.position),ve(A)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Tr(t,h,f,g,d,null,o,a,c),g=d=y=null),v=!0,x=!1,n=!1,g=t.tag,d=t.result;else if(v)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(v)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(x&&(o=t.line,a=t.lineStart,c=t.position),Or(t,e,hn,!0,n)&&(x?d=t.result:y=t.result),x||(Tr(t,h,f,g,d,y,o,a,c),g=d=y=null),te(t,!0,-1),A=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&A!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Tr(t,h,f,g,d,null,o,a,c),v&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),v}function bb(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),kh.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&&!Nh.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:kt.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function xb(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 wb(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),kt.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,c=1,l=!1,u=!1,h,f,g,d,y,x;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=hn===r||Ih===r,i&&te(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;bb(t)||xb(t);)te(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=l||n),(c===1||hn===r)&&(un===r||Lh===r?y=e:y=e+1,x=t.position-t.lineStart,c===1?a&&(th(t,x)||Sb(t,x,y))||_b(t,y)?u=!0:(o&&Eb(t,y)||gb(t,y)||yb(t,y)?u=!0:wb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):mb(t,y,un===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(u=a&&th(t,x))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(d=t.implicitTypes[h],d.resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(kt.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){d=g[h];break}d||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&d.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function vb(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&&Ho(t),kt.call(Ju,i)?Ju[i](t,i,n):fn(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,hn,!1,!0),te(t,!0,-1),t.checkLineBreaks&&cb.test(t.input.slice(e,t.position))&&fn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&mn(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 Bh(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 db(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;)vb(r);return r.documents}function Rb(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Bh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Ab(t,e){var r=Bh(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new we("expected a single document in the stream, but found more")}}var Tb=Rb,Ob=Ab,qh={loadAll:Tb,load:Ob},Hh=Object.prototype.toString,Uh=Object.prototype.hasOwnProperty,$o=65279,Cb=9,vi=10,Pb=13,Lb=32,Ib=33,kb=34,No=35,Nb=37,Db=38,Fb=39,Mb=42,$h=44,Bb=45,pn=58,qb=61,Hb=62,Ub=63,$b=64,jh=91,Gh=93,jb=96,Wh=123,Gb=124,Yh=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 Wb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Yb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zb(t,e){var r,i,n,s,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&Uh.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function Vb(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new we("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oe.repeat("0",i-e.length)+e}var Kb=1,Ri=2;function Xb(t){this.schema=t.schema||qo,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=zb(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==='"'?Ri:Kb,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 rh(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 Io(t,e){return`
27
- `+oe.repeat(" ",t.indent*e)}function Qb(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 dn(t){return t===Ib||t===Pb}function Ri(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==qo||65536<=t&&t<=1114111}function th(t){return Ri(t)&&t!==qo&&t!==Lb&&t!==wi}function rh(t,e,r){var i=th(t),n=i&&!dn(t);return(r?i:i&&t!==Hh&&t!==Uh&&t!==$h&&t!==jh&&t!==Gh)&&t!==Lo&&!(e===pn&&!n)||th(e)&&!dn(e)&&t===Lo||e===pn&&n}function Jb(t){return Ri(t)&&t!==qo&&!dn(t)&&t!==qb&&t!==$b&&t!==pn&&t!==Hh&&t!==Uh&&t!==$h&&t!==jh&&t!==Gh&&t!==Lo&&t!==Fb&&t!==Bb&&t!==kb&&t!==Wb&&t!==Hb&&t!==Ub&&t!==Mb&&t!==Nb&&t!==Db&&t!==jb&&t!==Gb}function e0(t){return!dn(t)&&t!==pn}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 Wh(t){var e=/^\n* /;return e.test(t)}var Yh=1,ko=2,zh=3,Vh=4,Rr=5;function t0(t,e,r,i,n,s,o,a){var c,l=0,u=null,h=!1,f=!1,g=i!==-1,d=-1,y=Jb(bi(t,0))&&e0(bi(t,t.length-1));if(e||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=bi(t,c),!Ri(l))return Rr;y=y&&rh(l,u,a),u=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=bi(t,c),l===wi)h=!0,g&&(f=f||c-d-1>i&&t[d+1]!==" ",d=c);else if(!Ri(l))return Rr;y=y&&rh(l,u,a),u=l}f=f||g&&c-d-1>i&&t[d+1]!==" "}return!h&&!f?y&&!o&&!n(t)?Yh:s===vi?Rr:ko:r>9&&Wh(t)?Rr:o?s===vi?Rr:ko:f?Vh:zh}function r0(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===vi?'""':"''";if(!t.noCompatMode&&(Yb.indexOf(e)!==-1||zb.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 c(l){return Qb(t,l)}switch(t0(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case Yh:return e;case ko:return"'"+e.replace(/'/g,"''")+"'";case zh:return"|"+ih(e,t.indent)+nh(eh(e,s));case Vh:return">"+ih(e,t.indent)+nh(eh(i0(e,o),s));case Rr:return'"'+n0(e)+'"';default:throw new we("impossible error: invalid scalar style")}}()}function ih(t,e){var r=Wh(t)?String(e):"",i=t[t.length-1]===`
26
+ `&&(s+=r),s+=o;return s}function Do(t,e){return`
27
+ `+oe.repeat(" ",t.indent*e)}function Zb(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 dn(t){return t===Lb||t===Cb}function Ai(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==$o||65536<=t&&t<=1114111}function ih(t){return Ai(t)&&t!==$o&&t!==Pb&&t!==vi}function nh(t,e,r){var i=ih(t),n=i&&!dn(t);return(r?i:i&&t!==$h&&t!==jh&&t!==Gh&&t!==Wh&&t!==Yh)&&t!==No&&!(e===pn&&!n)||ih(e)&&!dn(e)&&t===No||e===pn&&n}function Qb(t){return Ai(t)&&t!==$o&&!dn(t)&&t!==Bb&&t!==Ub&&t!==pn&&t!==$h&&t!==jh&&t!==Gh&&t!==Wh&&t!==Yh&&t!==No&&t!==Db&&t!==Mb&&t!==Ib&&t!==Gb&&t!==qb&&t!==Hb&&t!==Fb&&t!==kb&&t!==Nb&&t!==$b&&t!==jb}function Jb(t){return!dn(t)&&t!==pn}function xi(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 zh(t){var e=/^\n* /;return e.test(t)}var Vh=1,Fo=2,Kh=3,Xh=4,Rr=5;function e0(t,e,r,i,n,s,o,a){var c,l=0,u=null,h=!1,f=!1,g=i!==-1,d=-1,y=Qb(xi(t,0))&&Jb(xi(t,t.length-1));if(e||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=xi(t,c),!Ai(l))return Rr;y=y&&nh(l,u,a),u=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=xi(t,c),l===vi)h=!0,g&&(f=f||c-d-1>i&&t[d+1]!==" ",d=c);else if(!Ai(l))return Rr;y=y&&nh(l,u,a),u=l}f=f||g&&c-d-1>i&&t[d+1]!==" "}return!h&&!f?y&&!o&&!n(t)?Vh:s===Ri?Rr:Fo:r>9&&zh(t)?Rr:o?s===Ri?Rr:Fo:f?Xh:Kh}function t0(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===Ri?'""':"''";if(!t.noCompatMode&&(Wb.indexOf(e)!==-1||Yb.test(e)))return t.quotingType===Ri?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(l){return Zb(t,l)}switch(e0(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case Vh:return e;case Fo:return"'"+e.replace(/'/g,"''")+"'";case Kh:return"|"+sh(e,t.indent)+oh(rh(e,s));case Xh:return">"+sh(e,t.indent)+oh(rh(r0(e,o),s));case Rr:return'"'+i0(e)+'"';default:throw new we("impossible error: invalid scalar style")}}()}function sh(t,e){var r=zh(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 nh(t){return t[t.length-1]===`
32
- `?t.slice(0,-1):t}function i0(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
33
- `);return l=l!==-1?l:t.length,r.lastIndex=l,sh(t.slice(0,l),e)}(),n=t[0]===`
31
+ `}function oh(t){return t[t.length-1]===`
32
+ `?t.slice(0,-1):t}function r0(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
33
+ `);return l=l!==-1?l:t.length,r.lastIndex=l,ah(t.slice(0,l),e)}(),n=t[0]===`
34
34
  `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",i+=a+(!n&&!s&&c!==""?`
35
- `:"")+sh(c,e),n=s}return i}function sh(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
35
+ `:"")+ah(c,e),n=s}return i}function ah(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
36
36
  `+t.slice(n,s),n=s+1),o=a;return c+=`
37
37
  `,t.length-n>e&&o>n?c+=t.slice(n,o)+`
38
- `+t.slice(o+1):c+=t.slice(n),c.slice(1)}function n0(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||Kb(r);return e}function s0(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 oh(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(dt(t,e+1,c,!0,!0,!1,!0)||typeof c=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Io(t,e)),t.dump&&wi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function o0(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,l,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=s[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),dt(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,l,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function a0(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,l,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new we("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)f="",(!i||n!=="")&&(f+=Io(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),dt(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&wi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Io(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 ah(t,e,r){var i,n,s,o,a,c;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,Bh.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(qh.call(a.represent,c))i=a.represent[c](e,c);else throw new we("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,ah(t,r,!1)||ah(t,r,!0);var a=Bh.call(t.dump),c=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(a0(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(o0(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?oh(t,e-1,t.dump,n):oh(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(s0(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&r0(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new we("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function c0(t,e){var r=[],i=[],n,s;for(No(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function No(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)No(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)No(t[i[n]],e,r)}function l0(t,e){e=e||{};var r=new Zb(e);r.noRefs||c0(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),dt(r,0,i,!0,!0)?r.dump+`
39
- `:""}var u0=l0,h0={dump:u0};function Ho(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 f0=fe,p0=uh,d0=dh,m0=Eh,g0=Sh,y0=Fo,_0=Mh.load,E0=Mh.loadAll,S0=h0.dump,b0=we,x0={binary:Rh,float:_h,map:ph,null:mh,pairs:Th,set:Oh,timestamp:wh,bool:gh,int:yh,merge:vh,omap:Ah,seq:fh,str:hh},w0=Ho("safeLoad","load"),v0=Ho("safeLoadAll","loadAll"),R0=Ho("safeDump","dump"),A0={Type:f0,Schema:p0,FAILSAFE_SCHEMA:d0,JSON_SCHEMA:m0,CORE_SCHEMA:g0,DEFAULT_SCHEMA:y0,load:_0,loadAll:E0,dump:S0,YAMLException:b0,types:x0,safeLoad:w0,safeLoadAll:v0,safeDump:R0},Kh=A0;var Yd=B(Md()),zd=B(require("json5"));var ke={};Mu(ke,{bold:()=>IR,dimmed:()=>NR,error:()=>Pi,grey:()=>DR,info:()=>LR,item:()=>FR,log:()=>_t,turboBlue:()=>qr,turboGradient:()=>PR,turboLoader:()=>Gd,turboRed:()=>$d,underline:()=>kR,warn:()=>wc,yellow:()=>jd});var Ae=require("picocolors"),Bd=B(require("ora")),qd=B(require("gradient-string")),Hd="#0099F7",Ud="#F11712",CR="#FFFF00",xc=t=>{let e=MR(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},PR=(0,qd.default)(Hd,Ud),qr=xc(Hd),$d=xc(Ud),jd=xc(CR),Gd=t=>(0,Bd.default)({text:t,spinner:{frames:[" ",qr("> "),qr(">> "),qr(">>>")]}}),LR=(...t)=>{_t(qr((0,Ae.bold)(">>>")),t.join(" "))},IR=(...t)=>{_t((0,Ae.bold)(t.join(" ")))},kR=(...t)=>{_t((0,Ae.underline)(t.join(" ")))},NR=(...t)=>{_t((0,Ae.dim)(t.join(" ")))},DR=(...t)=>{_t((0,Ae.gray)(t.join(" ")))},FR=(...t)=>{_t(qr((0,Ae.bold)(" \u2022")),t.join(" "))},_t=(...t)=>{console.log(...t)},wc=(...t)=>{console.error(jd((0,Ae.bold)(">>>")),t.join(" "))},Pi=(...t)=>{console.error($d((0,Ae.bold)(">>>")),t.join(" "))};function MR(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 Wd="{turbo.json,turbo.jsonc}";var vc={};function qR(t){try{if(Li.default.existsSync(Ht.default.join(t,"pnpm-workspace.yaml")))return Kh.load(Li.default.readFileSync(Ht.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Li.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 Rc(t,e){var s;let r=Ao(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in vc)return vc[t];if(r){let a=qR(r).map(u=>`${u}/${Wd}`),c=(0,Yd.sync)([Wd,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(u=>Ht.default.join(r,u)),l={};for(let u of c){let h=Ht.default.dirname(u);l[h]||(l[h]=[]),l[h].push(u)}for(let[u,h]of Object.entries(l)){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 Pi(g),new Error(g)}let f=h[0];try{let g=Li.default.readFileSync(f,"utf8"),d=zd.default.parse(g),y=Ht.default.dirname(f)===r;if(y){if("extends"in d)continue}else if(!("extends"in d))continue;i.push({config:d,turboConfigPath:f,workspacePath:Ht.default.dirname(f),isRootConfig:y})}catch(g){wc(g)}}}return n&&t&&(vc[t]=i),i}var kT=B(require("os")),NT=B(Pg());var DT=B(require("fs-extra"));var FT=B(require("path")),MT=B(require("fs-extra")),BT=B(require("picocolors"));var CE=require("stream"),PE=require("util"),S1=require("path"),b1=require("os"),LE=require("fs"),x1=B(OE());var Lk=(0,PE.promisify)(CE.Stream.pipeline);var w1=B(require("fs-extra"));var k1=B(require("path")),N1=B(BE()),D1=B(require("picocolors")),F1=B(require("fs-extra"));var M1=B(require("picocolors")),B1=B(require("update-check"));var fo=B(require("picocolors"));var Xe=B(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 qE=B(require("os")),Pu=B(require("path"));var lo=B(require("picocolors")),ho=require("diff"),er=require("fs-extra"),uo=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{Pu.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,ho.diffJson)(this.before,e.after):this.changes=(0,ho.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Pu.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))}),ke.log(qE.default.EOL)):ke.log(this.after)}};var nn=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 uo({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(fo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(fo.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(fo.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(ke.log(),r.length>0){ke.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),ke.log()}}};function HE({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new yi(i),s=new nn(i);return{log:n,runner:s}}var UE=B(require("fs-extra")),$E=require("json5");function jE(t){let e=UE.default.readFileSync(t,"utf8");return(0,$E.parse)(e)}var Lu=t=>!t.pipeline;var GE="migrate-env-var-dependencies",q1='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',H1="1.5.0";function Nu(t){if(Lu(t))return{hasKeys:!1};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 Fu({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 WE(t){let{deps:e,env:r}=Fu({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 YE(t){if("extends"in t)return t;let{deps:e,env:r}=Fu({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 Du(t){if(Lu(t))return t;let e=YE(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,r in t.pipeline){let i=e.pipeline[r];e.pipeline[r]={...i,...WE(i)}}}),e}function zE({root:t,options:e}){let{log:r,runner:i}=HE({transformer:GE,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=Iu.default.join(t,"package.json"),s={};try{s=ku.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=Iu.default.join(t,"turbo.json");if(!ku.default.existsSync(o))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let a=jE(o);return Nu(a).hasKeys&&(a=Du(a)),i.modifyFile({filePath:o,after:a}),Rc(t).forEach(l=>{let{config:u,turboConfigPath:h}=l;"pipeline"in u&&Nu(u).hasKeys&&i.modifyFile({filePath:h,after:Du(u)})}),i.finish()}var U1={name:GE,description:q1,introducedIn:H1,transformer:zE},$1=U1;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
38
+ `+t.slice(o+1):c+=t.slice(n),c.slice(1)}function i0(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=xi(t,n),i=pe[r],!i&&Ai(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Vb(r);return e}function n0(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 ch(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(dt(t,e+1,c,!0,!0,!1,!0)||typeof c=="undefined"&&dt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Do(t,e)),t.dump&&vi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function s0(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,l,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=s[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),dt(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),dt(t,e,l,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function o0(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,l,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new we("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)f="",(!i||n!=="")&&(f+=Do(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),dt(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&vi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Do(t,e)),dt(t,e+1,u,!0,h)&&(t.dump&&vi===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function lh(t,e,r){var i,n,s,o,a,c;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,Hh.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(Uh.call(a.represent,c))i=a.represent[c](e,c);else throw new we("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function dt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,lh(t,r,!1)||lh(t,r,!0);var a=Hh.call(t.dump),c=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(o0(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(s0(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?ch(t,e-1,t.dump,n):ch(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 String]")t.tag!=="?"&&t0(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new we("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function a0(t,e){var r=[],i=[],n,s;for(Mo(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Mo(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)Mo(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Mo(t[i[n]],e,r)}function c0(t,e){e=e||{};var r=new Xb(e);r.noRefs||a0(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=c0,u0={dump:l0};function jo(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 h0=fe,f0=fh,p0=gh,d0=bh,m0=xh,g0=qo,y0=qh.load,_0=qh.loadAll,E0=u0.dump,S0=we,b0={binary:Th,float:Sh,map:mh,null:yh,pairs:Ch,set:Ph,timestamp:Rh,bool:_h,int:Eh,merge:Ah,omap:Oh,seq:dh,str:ph},x0=jo("safeLoad","load"),w0=jo("safeLoadAll","loadAll"),v0=jo("safeDump","dump"),R0={Type:h0,Schema:f0,FAILSAFE_SCHEMA:p0,JSON_SCHEMA:d0,CORE_SCHEMA:m0,DEFAULT_SCHEMA:g0,load:y0,loadAll:_0,dump:E0,YAMLException:S0,types:b0,safeLoad:x0,safeLoadAll:w0,safeDump:v0},Zh=R0;var Vd=B(qd()),Kd=B(require("json5"));var ke={};qu(ke,{bold:()=>LR,dimmed:()=>kR,error:()=>Hr,grey:()=>NR,info:()=>PR,item:()=>DR,log:()=>_t,turboBlue:()=>qr,turboGradient:()=>CR,turboLoader:()=>Yd,turboRed:()=>Gd,underline:()=>IR,warn:()=>Wn,yellow:()=>Wd});var Ae=require("picocolors"),Hd=B(require("ora")),Ud=B(require("gradient-string")),$d="#0099F7",jd="#F11712",OR="#FFFF00",Rc=t=>{let e=FR(t);return r=>`\x1B[38;5;${e}m${r}${(0,Ae.reset)("")}`},CR=(0,Ud.default)($d,jd),qr=Rc($d),Gd=Rc(jd),Wd=Rc(OR),Yd=t=>(0,Hd.default)({text:t,spinner:{frames:[" ",qr("> "),qr(">> "),qr(">>>")]}}),PR=(...t)=>{_t(qr((0,Ae.bold)(">>>")),t.join(" "))},LR=(...t)=>{_t((0,Ae.bold)(t.join(" ")))},IR=(...t)=>{_t((0,Ae.underline)(t.join(" ")))},kR=(...t)=>{_t((0,Ae.dim)(t.join(" ")))},NR=(...t)=>{_t((0,Ae.gray)(t.join(" ")))},DR=(...t)=>{_t(qr((0,Ae.bold)(" \u2022")),t.join(" "))},_t=(...t)=>{console.log(...t)},Wn=(...t)=>{console.error(Wd((0,Ae.bold)(">>>")),t.join(" "))},Hr=(...t)=>{console.error(Gd((0,Ae.bold)(">>>")),t.join(" "))};function FR(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 zd="{turbo.json,turbo.jsonc}";var Ac={};function BR(t){try{if(Li.default.existsSync(Ht.default.join(t,"pnpm-workspace.yaml")))return Zh.load(Li.default.readFileSync(Ht.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Li.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 Tc(t,e){var s;let r=Co(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in Ac)return Ac[t];if(r){let a=BR(r).map(u=>`${u}/${zd}`),c=(0,Vd.sync)([zd,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(u=>Ht.default.join(r,u)),l={};for(let u of c){let h=Ht.default.dirname(u);l[h]||(l[h]=[]),l[h].push(u)}for(let[u,h]of Object.entries(l)){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 Hr(g),new Error(g)}let f=h[0];try{let g=Li.default.readFileSync(f,"utf8"),d=Kd.default.parse(g),y=Ht.default.dirname(f)===r;if(y){if("extends"in d)continue}else if(!("extends"in d))continue;i.push({config:d,turboConfigPath:f,workspacePath:Ht.default.dirname(f),isRootConfig:y})}catch(g){Wn(g)}}}return n&&t&&(Ac[t]=i),i}var IT=B(require("os")),kT=B(Ig());var NT=B(require("fs-extra"));var DT=B(require("path")),FT=B(require("fs-extra")),MT=B(require("picocolors"));var EP=require("stream"),SP=require("stream/promises"),bP=require("zlib"),uo=require("fs"),ho=require("path"),xP=require("child_process"),wP=B(PE());var vP=B(require("fs-extra"));var NP=B(require("path")),DP=B(ME()),FP=B(require("picocolors")),MP=B(require("fs-extra"));var BP=B(require("picocolors")),qP=B(require("update-check"));var go=B(require("picocolors"));var Xe=B(require("picocolors")),_i=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 BE=B(require("os")),Iu=B(require("path"));var fo=B(require("picocolors")),mo=require("diff"),er=require("fs-extra"),po=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{Iu.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,mo.diffJson)(this.before,e.after):this.changes=(0,mo.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Iu.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(fo.default.green(r.value)):r.removed?process.stdout.write(fo.default.red(r.value)):process.stdout.write(fo.default.dim(r.value))}),ke.log(BE.default.EOL)):ke.log(this.after)}};var nn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dryRun,this.print=e.print,this.logger=new _i(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new po({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(go.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(go.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(go.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(ke.log(),r.length>0){ke.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),ke.log()}}};function qE({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new _i(i),s=new nn(i);return{log:n,runner:s}}var HE=B(require("fs-extra")),UE=require("json5");function $E(t){let e=HE.default.readFileSync(t,"utf8");return(0,UE.parse)(e)}var ku=t=>!t.pipeline;var jE="migrate-env-var-dependencies",HP='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',UP="1.5.0";function Fu(t){if(ku(t))return{hasKeys:!1};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 Bu({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 GE(t){let{deps:e,env:r}=Bu({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 WE(t){if("extends"in t)return t;let{deps:e,env:r}=Bu({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 Mu(t){if(ku(t))return t;let e=WE(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,r in t.pipeline){let i=e.pipeline[r];e.pipeline[r]={...i,...GE(i)}}}),e}function YE({root:t,options:e}){let{log:r,runner:i}=qE({transformer:jE,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=Nu.default.join(t,"package.json"),s={};try{s=Du.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=Nu.default.join(t,"turbo.json");if(!Du.default.existsSync(o))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let a=$E(o);return Fu(a).hasKeys&&(a=Mu(a)),i.modifyFile({filePath:o,after:a}),Tc(t).forEach(l=>{let{config:u,turboConfigPath:h}=l;"pipeline"in u&&Fu(u).hasKeys&&i.modifyFile({filePath:h,after:Mu(u)})}),i.finish()}var $P={name:jE,description:HP,introducedIn:UP,transformer:YE},jP=$P;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
41
41
  /*! Bundled license information:
42
42
 
43
43
  @babel/runtime/helpers/regeneratorRuntime.js: