@turbo/codemod 1.13.1-canary.1 → 1.13.1-canary.3
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.
- package/dist/cli.js +26 -26
- package/dist/transforms/add-package-manager.js +21 -21
- package/dist/transforms/clean-globs.js +40 -40
- package/dist/transforms/create-turbo-config.js +27 -27
- package/dist/transforms/migrate-env-var-dependencies.js +40 -40
- package/dist/transforms/set-default-outputs.js +40 -40
- package/dist/transforms/stabilize-env-mode.js +40 -40
- package/dist/transforms/transform-env-literals-to-wildcards.js +40 -40
- package/package.json +4 -4
@@ -1,42 +1,42 @@
|
|
1
|
-
"use strict";var sD=Object.create;var rn=Object.defineProperty;var oD=Object.getOwnPropertyDescriptor;var uD=Object.getOwnPropertyNames;var aD=Object.getPrototypeOf,cD=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),El=(t,e)=>{for(var r in e)rn(t,r,{get:e[r],enumerable:!0})},Dl=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uD(e))!cD.call(t,n)&&n!==r&&rn(t,n,{get:()=>e[n],enumerable:!(i=oD(e,n))||i.enumerable});return t};var G=(t,e,r)=>(r=t!=null?sD(aD(t)):{},Dl(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t)),lD=t=>Dl(rn({},"__esModule",{value:!0}),t);var yl=m((Qv,ut)=>{function ao(t){return ut.exports=ao=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},ut.exports.__esModule=!0,ut.exports.default=ut.exports,ao(t)}ut.exports=ao,ut.exports.__esModule=!0,ut.exports.default=ut.exports});var _l=m((eR,at)=>{var fD=yl().default;function Al(){"use strict";at.exports=Al=function(){return t},at.exports.__esModule=!0,at.exports.default=at.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(S,y,C){S[y]=C.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function a(S,y,C){return Object.defineProperty(S,y,{value:C,enumerable:!0,configurable:!0,writable:!0}),S[y]}try{a({},"")}catch{a=function(C,p,d){return C[p]=d}}function c(S,y,C,p){var d=y&&y.prototype instanceof h?y:h,v=Object.create(d.prototype),T=new k(p||[]);return i(v,"_invoke",{value:L(S,C,T)}),v}function l(S,y,C){try{return{type:"normal",arg:S.call(y,C)}}catch(p){return{type:"throw",arg:p}}}t.wrap=c;var f={};function h(){}function E(){}function g(){}var D={};a(D,s,function(){return this});var _=Object.getPrototypeOf,b=_&&_(_(J([])));b&&b!==e&&r.call(b,s)&&(D=b);var F=g.prototype=h.prototype=Object.create(D);function M(S){["next","throw","return"].forEach(function(y){a(S,y,function(C){return this._invoke(y,C)})})}function re(S,y){function C(d,v,T,j){var z=l(S[d],S,v);if(z.type!=="throw"){var Q=z.arg,xe=Q.value;return xe&&fD(xe)=="object"&&r.call(xe,"__await")?y.resolve(xe.__await).then(function(ot){C("next",ot,T,j)},function(ot){C("throw",ot,T,j)}):y.resolve(xe).then(function(ot){Q.value=ot,T(Q)},function(ot){return C("throw",ot,T,j)})}j(z.arg)}var p;i(this,"_invoke",{value:function(v,T){function j(){return new y(function(z,Q){C(v,T,z,Q)})}return p=p?p.then(j,j):j()}})}function L(S,y,C){var p="suspendedStart";return function(d,v){if(p==="executing")throw new Error("Generator is already running");if(p==="completed"){if(d==="throw")throw v;return A()}for(C.method=d,C.arg=v;;){var T=C.delegate;if(T){var j=$(T,C);if(j){if(j===f)continue;return j}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(p==="suspendedStart")throw p="completed",C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);p="executing";var z=l(S,y,C);if(z.type==="normal"){if(p=C.done?"completed":"suspendedYield",z.arg===f)continue;return{value:z.arg,done:C.done}}z.type==="throw"&&(p="completed",C.method="throw",C.arg=z.arg)}}}function $(S,y){var C=y.method,p=S.iterator[C];if(p===void 0)return y.delegate=null,C==="throw"&&S.iterator.return&&(y.method="return",y.arg=void 0,$(S,y),y.method==="throw")||C!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+C+"' method")),f;var d=l(p,S.iterator,y.arg);if(d.type==="throw")return y.method="throw",y.arg=d.arg,y.delegate=null,f;var v=d.arg;return v?v.done?(y[S.resultName]=v.value,y.next=S.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,f):v:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,f)}function P(S){var y={tryLoc:S[0]};1 in S&&(y.catchLoc=S[1]),2 in S&&(y.finallyLoc=S[2],y.afterLoc=S[3]),this.tryEntries.push(y)}function O(S){var y=S.completion||{};y.type="normal",delete y.arg,S.completion=y}function k(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(P,this),this.reset(!0)}function J(S){if(S){var y=S[s];if(y)return y.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var C=-1,p=function d(){for(;++C<S.length;)if(r.call(S,C))return d.value=S[C],d.done=!1,d;return d.value=void 0,d.done=!0,d};return p.next=p}}return{next:A}}function A(){return{value:void 0,done:!0}}return E.prototype=g,i(F,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:E,configurable:!0}),E.displayName=a(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(S){var y=typeof S=="function"&&S.constructor;return!!y&&(y===E||(y.displayName||y.name)==="GeneratorFunction")},t.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,g):(S.__proto__=g,a(S,u,"GeneratorFunction")),S.prototype=Object.create(F),S},t.awrap=function(S){return{__await:S}},M(re.prototype),a(re.prototype,o,function(){return this}),t.AsyncIterator=re,t.async=function(S,y,C,p,d){d===void 0&&(d=Promise);var v=new re(c(S,y,C,p),d);return t.isGeneratorFunction(y)?v:v.next().then(function(T){return T.done?T.value:v.next()})},M(F),a(F,u,"Generator"),a(F,s,function(){return this}),a(F,"toString",function(){return"[object Generator]"}),t.keys=function(S){var y=Object(S),C=[];for(var p in y)C.push(p);return C.reverse(),function d(){for(;C.length;){var v=C.pop();if(v in y)return d.value=v,d.done=!1,d}return d.done=!0,d}},t.values=J,k.prototype={constructor:k,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!y)for(var C in this)C.charAt(0)==="t"&&r.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var C=this;function p(Q,xe){return T.type="throw",T.arg=y,C.next=Q,xe&&(C.method="next",C.arg=void 0),!!xe}for(var d=this.tryEntries.length-1;d>=0;--d){var v=this.tryEntries[d],T=v.completion;if(v.tryLoc==="root")return p("end");if(v.tryLoc<=this.prev){var j=r.call(v,"catchLoc"),z=r.call(v,"finallyLoc");if(j&&z){if(this.prev<v.catchLoc)return p(v.catchLoc,!0);if(this.prev<v.finallyLoc)return p(v.finallyLoc)}else if(j){if(this.prev<v.catchLoc)return p(v.catchLoc,!0)}else{if(!z)throw new Error("try statement without catch or finally");if(this.prev<v.finallyLoc)return p(v.finallyLoc)}}}},abrupt:function(y,C){for(var p=this.tryEntries.length-1;p>=0;--p){var d=this.tryEntries[p];if(d.tryLoc<=this.prev&&r.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var v=d;break}}v&&(y==="break"||y==="continue")&&v.tryLoc<=C&&C<=v.finallyLoc&&(v=null);var T=v?v.completion:{};return T.type=y,T.arg=C,v?(this.method="next",this.next=v.finallyLoc,f):this.complete(T)},complete:function(y,C){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&C&&(this.next=C),f},finish:function(y){for(var C=this.tryEntries.length-1;C>=0;--C){var p=this.tryEntries[C];if(p.finallyLoc===y)return this.complete(p.completion,p.afterLoc),O(p),f}},catch:function(y){for(var C=this.tryEntries.length-1;C>=0;--C){var p=this.tryEntries[C];if(p.tryLoc===y){var d=p.completion;if(d.type==="throw"){var v=d.arg;O(p)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(y,C,p){return this.delegate={iterator:J(y),resultName:C,nextLoc:p},this.method==="next"&&(this.arg=void 0),f}},t}at.exports=Al,at.exports.__esModule=!0,at.exports.default=at.exports});var Cl=m((tR,Sl)=>{var nn=_l()();Sl.exports=nn;try{regeneratorRuntime=nn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=nn:Function("r","regeneratorRuntime = r")(nn)}});var hf=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.splitWhen=br.flatten=void 0;function HA(t){return t.reduce((e,r)=>[].concat(e,r),[])}br.flatten=HA;function $A(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}br.splitWhen=$A});var pf=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.isEnoentCodeError=void 0;function UA(t){return t.code==="ENOENT"}fn.isEnoentCodeError=UA});var df=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.createDirentFromStats=void 0;var Ro=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 GA(t,e){return new Ro(t,e)}hn.createDirentFromStats=GA});var mf=m(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.removeLeadingDotSegment=Ye.escape=Ye.makeAbsolute=Ye.unixify=void 0;var jA=require("path"),WA=2,zA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function YA(t){return t.replace(/\\/g,"/")}Ye.unixify=YA;function KA(t,e){return jA.resolve(t,e)}Ye.makeAbsolute=KA;function VA(t){return t.replace(zA,"\\$2")}Ye.escape=VA;function XA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(WA)}return t}Ye.removeLeadingDotSegment=XA});var Ef=m((XR,gf)=>{gf.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((ZR,yf)=>{var ZA=Ef(),Df={"{":"}","(":")","[":"]"},JA=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 u=t[e+1];e+=2;var a=Df[u];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},QA=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=Df[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};yf.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ZA(e))return!0;var i=JA;return r&&r.strict===!1&&(i=QA),i(e)}});var Sf=m((JR,_f)=>{"use strict";var e_=Af(),t_=require("path").posix.dirname,r_=require("os").platform()==="win32",To="/",i_=/\\/g,n_=/[\{\[].*[\}\]]$/,s_=/(^|[^\\])([\{\[]|\([^\)]+$)/,o_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;_f.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&r_&&e.indexOf(To)<0&&(e=e.replace(i_,To)),n_.test(e)&&(e+=To),e+="a";do e=t_(e);while(e_(e)||s_.test(e));return e.replace(o_,"$1")}});var pn=m(Le=>{"use strict";Le.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Le.find=(t,e)=>t.nodes.find(r=>r.type===e);Le.exceedsLimit=(t,e,r=1,i)=>i===!1||!Le.isInteger(t)||!Le.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Le.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)};Le.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Le.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;Le.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Le.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Le.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var dn=m((eT,bf)=>{"use strict";var Cf=pn();bf.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Cf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&Cf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Ff=m((tT,wf)=>{"use strict";wf.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var If=m((rT,Lf)=>{"use strict";var xf=Ff(),Qt=(t,e,r)=>{if(xf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(xf(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),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(Qt.cache.hasOwnProperty(a))return Qt.cache[a].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let D=t+"|"+e;return i.capture?`(${D})`:i.wrap===!1?D:`(?:${D})`}let f=Pf(t)||Pf(e),h={min:t,max:e,a:c,b:l},E=[],g=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let D=l<0?Math.abs(l):1;g=vf(D,Math.abs(c),h,i),c=h.a=0}return l>=0&&(E=vf(c,l,h,i)),h.negatives=g,h.positives=E,h.result=u_(g,E,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&E.length+g.length>1&&(h.result=`(?:${h.result})`),Qt.cache[a]=h,h.result};function u_(t,e,r){let i=Oo(t,e,"-",!1,r)||[],n=Oo(e,t,"",!1,r)||[],s=Oo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function a_(t,e){let r=1,i=1,n=Tf(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Tf(t,r);for(n=Of(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Of(e+1,i)-1;return s=[...s],s.sort(f_),s}function c_(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=l_(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,c]=i[u];a===c?s+=a:a!=="0"||c!=="9"?s+=h_(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function vf(t,e,r,i){let n=a_(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let c=n[a],l=c_(String(o),String(c),i),f="";if(!r.isPadded&&u&&u.pattern===l.pattern){u.count.length>1&&u.count.pop(),u.count.push(l.count[0]),u.string=u.pattern+Bf(u.count),o=c+1;continue}r.isPadded&&(f=p_(c,r,i)),l.string=f+l.pattern+Bf(l.count),s.push(l),o=c+1,u=l}return s}function Oo(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Rf(e,"string",u)&&s.push(r+u),i&&Rf(e,"string",u)&&s.push(r+u)}return s}function l_(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function f_(t,e){return t>e?1:e>t?-1:0}function Rf(t,e,r){return t.some(i=>i[e]===r)}function Tf(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Of(t,e){return t-t%Math.pow(10,e)}function Bf(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function h_(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Pf(t){return/^-?(0+)\d/.test(t)}function p_(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}}`}}Qt.cache={};Qt.clearCache=()=>Qt.cache={};Lf.exports=Qt});var Lo=m((iT,Gf)=>{"use strict";var d_=require("util"),Mf=If(),Nf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),m_=t=>e=>t===!0?Number(e):String(e),Bo=t=>typeof t=="number"||typeof t=="string"&&t!=="",Si=t=>Number.isInteger(+t),Po=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},g_=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,E_=(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},kf=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},D_=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},qf=(t,e,r,i)=>{if(r)return Mf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Hf=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Mf(t,e,r)},$f=(...t)=>new RangeError("Invalid range arguments: "+d_.inspect(...t)),Uf=(t,e,r)=>{if(r.strictRanges===!0)throw $f([t,e]);return[]},y_=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},A_=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw $f([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Po(u)||Po(a)||Po(c),f=l?Math.max(u.length,a.length,c.length):0,h=l===!1&&g_(t,e,i)===!1,E=i.transform||m_(h);if(i.toRegex&&r===1)return qf(kf(t,f),kf(e,f),!0,i);let g={negatives:[],positives:[]},D=F=>g[F<0?"negatives":"positives"].push(Math.abs(F)),_=[],b=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?D(n):_.push(E_(E(n,b),f,h)),n=o?n-r:n+r,b++;return i.toRegex===!0?r>1?D_(g,i):Hf(_,null,{wrap:!1,...i}):_},__=(t,e,r=1,i={})=>{if(!Si(t)&&t.length>1||!Si(e)&&e.length>1)return Uf(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return qf(a,c,!1,i);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(n(s,f)),s=u?s-r:s+r,f++;return i.toRegex===!0?Hf(l,null,{wrap:!1,options:i}):l},mn=(t,e,r,i={})=>{if(e==null&&Bo(t))return[t];if(!Bo(t)||!Bo(e))return Uf(t,e,i);if(typeof r=="function")return mn(t,e,1,{transform:r});if(Nf(r))return mn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Si(r)?Si(t)&&Si(e)?A_(t,e,r,n):__(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Nf(r)?y_(r,n):mn(t,e,1,r)};Gf.exports=mn});var zf=m((nT,Wf)=>{"use strict";var S_=Lo(),jf=pn(),C_=(t,e={})=>{let r=(i,n={})=>{let s=jf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=jf.reduce(i.nodes),f=S_(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};Wf.exports=C_});var Vf=m((sT,Kf)=>{"use strict";var b_=Lo(),Yf=dn(),wr=pn(),er=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?wr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(er(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?er(n,s,r):n+s);return wr.flatten(i)},w_=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(er(u.pop(),Yf(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(er(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=wr.reduce(n.nodes);if(wr.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=b_(...f,e);h.length===0&&(h=Yf(n,e)),u.push(er(u.pop(),h)),n.nodes=[];return}let a=wr.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){u.push(er(u.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(er(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return wr.flatten(i(t))};Kf.exports=w_});var Zf=m((oT,Xf)=>{"use strict";Xf.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
2
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var rh=m((uT,th)=>{"use strict";var F_=dn(),{MAX_LENGTH:Jf,CHAR_BACKSLASH:Io,CHAR_BACKTICK:x_,CHAR_COMMA:v_,CHAR_DOT:R_,CHAR_LEFT_PARENTHESES:T_,CHAR_RIGHT_PARENTHESES:O_,CHAR_LEFT_CURLY_BRACE:B_,CHAR_RIGHT_CURLY_BRACE:P_,CHAR_LEFT_SQUARE_BRACKET:Qf,CHAR_RIGHT_SQUARE_BRACKET:eh,CHAR_DOUBLE_QUOTE:L_,CHAR_SINGLE_QUOTE:I_,CHAR_NO_BREAK_SPACE:N_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:k_}=Zf(),M_=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Jf,r.maxLength):Jf;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,u=n,a=0,c=t.length,l=0,f=0,h,E={},g=()=>t[l++],D=_=>{if(_.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&_.type==="text"){u.value+=_.value;return}return o.nodes.push(_),_.parent=o,_.prev=u,u=_,_};for(D({type:"bos"});l<c;)if(o=s[s.length-1],h=g(),!(h===k_||h===N_)){if(h===Io){D({type:"text",value:(e.keepEscaping?h:"")+g()});continue}if(h===eh){D({type:"text",value:"\\"+h});continue}if(h===Qf){a++;let _=!0,b;for(;l<c&&(b=g());){if(h+=b,b===Qf){a++;continue}if(b===Io){h+=g();continue}if(b===eh&&(a--,a===0))break}D({type:"text",value:h});continue}if(h===T_){o=D({type:"paren",nodes:[]}),s.push(o),D({type:"text",value:h});continue}if(h===O_){if(o.type!=="paren"){D({type:"text",value:h});continue}o=s.pop(),D({type:"text",value:h}),o=s[s.length-1];continue}if(h===L_||h===I_||h===x_){let _=h,b;for(e.keepQuotes!==!0&&(h="");l<c&&(b=g());){if(b===Io){h+=b+g();continue}if(b===_){e.keepQuotes===!0&&(h+=b);break}h+=b}D({type:"text",value:h});continue}if(h===B_){f++;let b={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=D(b),s.push(o),D({type:"open",value:h});continue}if(h===P_){if(o.type!=="brace"){D({type:"text",value:h});continue}let _="close";o=s.pop(),o.close=!0,D({type:_,value:h}),f--,o=s[s.length-1];continue}if(h===v_&&f>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:F_(o)}]}D({type:"comma",value:h}),o.commas++;continue}if(h===R_&&f>0&&o.commas===0){let _=o.nodes;if(f===0||_.length===0){D({type:"text",value:h});continue}if(u.type==="dot"){if(o.range=[],u.value+=h,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){_.pop();let b=_[_.length-1];b.value+=u.value+h,u=b,o.ranges--;continue}D({type:"dot",value:h});continue}D({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let _=s[s.length-1],b=_.nodes.indexOf(o);_.nodes.splice(b,1,...o.nodes)}while(s.length>0);return D({type:"eos"}),n};th.exports=M_});var sh=m((aT,nh)=>{"use strict";var ih=dn(),q_=zf(),H_=Vf(),$_=rh(),ve=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=ve.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(ve.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ve.parse=(t,e={})=>$_(t,e);ve.stringify=(t,e={})=>ih(typeof t=="string"?ve.parse(t,e):t,e);ve.compile=(t,e={})=>(typeof t=="string"&&(t=ve.parse(t,e)),q_(t,e));ve.expand=(t,e={})=>{typeof t=="string"&&(t=ve.parse(t,e));let r=H_(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ve.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ve.compile(t,e):ve.expand(t,e);nh.exports=ve});var Ci=m((cT,lh)=>{"use strict";var U_=require("path"),Ke="\\\\/",oh=`[^${Ke}]`,ft="\\.",G_="\\+",j_="\\?",gn="\\/",W_="(?=.)",uh="[^/]",No=`(?:${gn}|$)`,ah=`(?:^|${gn})`,ko=`${ft}{1,2}${No}`,z_=`(?!${ft})`,Y_=`(?!${ah}${ko})`,K_=`(?!${ft}{0,1}${No})`,V_=`(?!${ko})`,X_=`[^.${gn}]`,Z_=`${uh}*?`,ch={DOT_LITERAL:ft,PLUS_LITERAL:G_,QMARK_LITERAL:j_,SLASH_LITERAL:gn,ONE_CHAR:W_,QMARK:uh,END_ANCHOR:No,DOTS_SLASH:ko,NO_DOT:z_,NO_DOTS:Y_,NO_DOT_SLASH:K_,NO_DOTS_SLASH:V_,QMARK_NO_DOT:X_,STAR:Z_,START_ANCHOR:ah},J_={...ch,SLASH_LITERAL:`[${Ke}]`,QMARK:oh,STAR:`${oh}*?`,DOTS_SLASH:`${ft}{1,2}(?:[${Ke}]|$)`,NO_DOT:`(?!${ft})`,NO_DOTS:`(?!(?:^|[${Ke}])${ft}{1,2}(?:[${Ke}]|$))`,NO_DOT_SLASH:`(?!${ft}{0,1}(?:[${Ke}]|$))`,NO_DOTS_SLASH:`(?!${ft}{1,2}(?:[${Ke}]|$))`,QMARK_NO_DOT:`[^.${Ke}]`,START_ANCHOR:`(?:^|[${Ke}])`,END_ANCHOR:`(?:[${Ke}]|$)`},Q_={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"};lh.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Q_,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:U_.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?J_:ch}}});var bi=m(Se=>{"use strict";var eS=require("path"),tS=process.platform==="win32",{REGEX_BACKSLASH:rS,REGEX_REMOVE_BACKSLASH:iS,REGEX_SPECIAL_CHARS:nS,REGEX_SPECIAL_CHARS_GLOBAL:sS}=Ci();Se.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Se.hasRegexChars=t=>nS.test(t);Se.isRegexChar=t=>t.length===1&&Se.hasRegexChars(t);Se.escapeRegex=t=>t.replace(sS,"\\$1");Se.toPosixSlashes=t=>t.replace(rS,"/");Se.removeBackslashes=t=>t.replace(iS,e=>e==="\\"?"":e);Se.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Se.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:tS===!0||eS.sep==="\\";Se.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Se.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Se.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Se.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Dh=m((fT,Eh)=>{"use strict";var fh=bi(),{CHAR_ASTERISK:Mo,CHAR_AT:oS,CHAR_BACKWARD_SLASH:wi,CHAR_COMMA:uS,CHAR_DOT:qo,CHAR_EXCLAMATION_MARK:Ho,CHAR_FORWARD_SLASH:gh,CHAR_LEFT_CURLY_BRACE:$o,CHAR_LEFT_PARENTHESES:Uo,CHAR_LEFT_SQUARE_BRACKET:aS,CHAR_PLUS:cS,CHAR_QUESTION_MARK:hh,CHAR_RIGHT_CURLY_BRACE:lS,CHAR_RIGHT_PARENTHESES:ph,CHAR_RIGHT_SQUARE_BRACKET:fS}=Ci(),dh=t=>t===gh||t===wi,mh=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hS=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,c=-1,l=0,f=0,h=!1,E=!1,g=!1,D=!1,_=!1,b=!1,F=!1,M=!1,re=!1,L=!1,$=0,P,O,k={value:"",depth:0,isGlob:!1},J=()=>c>=i,A=()=>a.charCodeAt(c+1),S=()=>(P=O,a.charCodeAt(++c));for(;c<i;){O=S();let v;if(O===wi){F=k.backslashes=!0,O=S(),O===$o&&(b=!0);continue}if(b===!0||O===$o){for($++;J()!==!0&&(O=S());){if(O===wi){F=k.backslashes=!0,S();continue}if(O===$o){$++;continue}if(b!==!0&&O===qo&&(O=S())===qo){if(h=k.isBrace=!0,g=k.isGlob=!0,L=!0,n===!0)continue;break}if(b!==!0&&O===uS){if(h=k.isBrace=!0,g=k.isGlob=!0,L=!0,n===!0)continue;break}if(O===lS&&($--,$===0)){b=!1,h=k.isBrace=!0,L=!0;break}}if(n===!0)continue;break}if(O===gh){if(s.push(c),o.push(k),k={value:"",depth:0,isGlob:!1},L===!0)continue;if(P===qo&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(O===cS||O===oS||O===Mo||O===hh||O===Ho)===!0&&A()===Uo){if(g=k.isGlob=!0,D=k.isExtglob=!0,L=!0,O===Ho&&c===l&&(re=!0),n===!0){for(;J()!==!0&&(O=S());){if(O===wi){F=k.backslashes=!0,O=S();continue}if(O===ph){g=k.isGlob=!0,L=!0;break}}continue}break}if(O===Mo){if(P===Mo&&(_=k.isGlobstar=!0),g=k.isGlob=!0,L=!0,n===!0)continue;break}if(O===hh){if(g=k.isGlob=!0,L=!0,n===!0)continue;break}if(O===aS){for(;J()!==!0&&(v=S());){if(v===wi){F=k.backslashes=!0,S();continue}if(v===fS){E=k.isBracket=!0,g=k.isGlob=!0,L=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&O===Ho&&c===l){M=k.negated=!0,l++;continue}if(r.noparen!==!0&&O===Uo){if(g=k.isGlob=!0,n===!0){for(;J()!==!0&&(O=S());){if(O===Uo){F=k.backslashes=!0,O=S();continue}if(O===ph){L=!0;break}}continue}break}if(g===!0){if(L=!0,n===!0)continue;break}}r.noext===!0&&(D=!1,g=!1);let y=a,C="",p="";l>0&&(C=a.slice(0,l),a=a.slice(l),f-=l),y&&g===!0&&f>0?(y=a.slice(0,f),p=a.slice(f)):g===!0?(y="",p=a):y=a,y&&y!==""&&y!=="/"&&y!==a&&dh(y.charCodeAt(y.length-1))&&(y=y.slice(0,-1)),r.unescape===!0&&(p&&(p=fh.removeBackslashes(p)),y&&F===!0&&(y=fh.removeBackslashes(y)));let d={prefix:C,input:t,start:l,base:y,glob:p,isBrace:h,isBracket:E,isGlob:g,isExtglob:D,isGlobstar:_,negated:M,negatedExtglob:re};if(r.tokens===!0&&(d.maxDepth=0,dh(O)||o.push(k),d.tokens=o),r.parts===!0||r.tokens===!0){let v;for(let T=0;T<s.length;T++){let j=v?v+1:l,z=s[T],Q=t.slice(j,z);r.tokens&&(T===0&&l!==0?(o[T].isPrefix=!0,o[T].value=C):o[T].value=Q,mh(o[T]),d.maxDepth+=o[T].depth),(T!==0||Q!=="")&&u.push(Q),v=z}if(v&&v+1<t.length){let T=t.slice(v+1);u.push(T),r.tokens&&(o[o.length-1].value=T,mh(o[o.length-1]),d.maxDepth+=o[o.length-1].depth)}d.slashes=s,d.parts=u}return d};Eh.exports=hS});var _h=m((hT,Ah)=>{"use strict";var En=Ci(),Re=bi(),{MAX_LENGTH:Dn,POSIX_REGEX_SOURCE:pS,REGEX_NON_SPECIAL_CHARS:dS,REGEX_SPECIAL_CHARS_BACKREF:mS,REPLACEMENTS:yh}=En,gS=(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=>Re.escapeRegex(n)).join("..")}return r},Fr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Go=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=yh[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Dn,r.maxLength):Dn,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],u=r.capture?"":"?:",a=Re.isWindows(e),c=En.globChars(a),l=En.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:D,NO_DOT:_,NO_DOT_SLASH:b,NO_DOTS_SLASH:F,QMARK:M,QMARK_NO_DOT:re,STAR:L,START_ANCHOR:$}=c,P=x=>`(${u}(?:(?!${$}${x.dot?D:f}).)*?)`,O=r.dot?"":_,k=r.dot?M:re,J=r.bash===!0?P(r):L;r.capture&&(J=`(${J})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={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=Re.removePrefix(t,A),n=t.length;let S=[],y=[],C=[],p=s,d,v=()=>A.index===n-1,T=A.peek=(x=1)=>t[A.index+x],j=A.advance=()=>t[++A.index]||"",z=()=>t.slice(A.index+1),Q=(x="",Y=0)=>{A.consumed+=x,A.index+=Y},xe=x=>{A.output+=x.output!=null?x.output:x.value,Q(x.value)},ot=()=>{let x=1;for(;T()==="!"&&(T(2)!=="("||T(3)==="?");)j(),A.start++,x++;return x%2===0?!1:(A.negated=!0,A.start++,!0)},Qi=x=>{A[x]++,C.push(x)},Vt=x=>{A[x]--,C.pop()},N=x=>{if(p.type==="globstar"){let Y=A.braces>0&&(x.type==="comma"||x.type==="brace"),w=x.extglob===!0||S.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!Y&&!w&&(A.output=A.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=J,A.output+=p.output)}if(S.length&&x.type!=="paren"&&(S[S.length-1].inner+=x.value),(x.value||x.output)&&xe(x),p&&p.type==="text"&&x.type==="text"){p.value+=x.value,p.output=(p.output||"")+x.value;return}x.prev=p,o.push(x),p=x},en=(x,Y)=>{let w={...l[Y],conditions:1,inner:""};w.prev=p,w.parens=A.parens,w.output=A.output;let I=(r.capture?"(":"")+w.open;Qi("parens"),N({type:x,value:Y,output:A.output?"":g}),N({type:"paren",extglob:!0,value:j(),output:I}),S.push(w)},nD=x=>{let Y=x.close+(r.capture?")":""),w;if(x.type==="negate"){let I=J;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(I=P(r)),(I!==J||v()||/^\)+$/.test(z()))&&(Y=x.close=`)$))${I}`),x.inner.includes("*")&&(w=z())&&/^\.[^\\/.]+$/.test(w)){let Z=Go(w,{...e,fastpaths:!1}).output;Y=x.close=`)${Z})${I})`}x.prev.type==="bos"&&(A.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:d,output:Y}),Vt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let x=!1,Y=t.replace(mS,(w,I,Z,ye,ne,uo)=>ye==="\\"?(x=!0,w):ye==="?"?I?I+ye+(ne?M.repeat(ne.length):""):uo===0?k+(ne?M.repeat(ne.length):""):M.repeat(Z.length):ye==="."?f.repeat(Z.length):ye==="*"?I?I+ye+(ne?J:""):J:I?w:`\\${w}`);return x===!0&&(r.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),Y===t&&r.contains===!0?(A.output=t,A):(A.output=Re.wrapOutput(Y,A,e),A)}for(;!v();){if(d=j(),d==="\0")continue;if(d==="\\"){let w=T();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){d+="\\",N({type:"text",value:d});continue}let I=/^\\+/.exec(z()),Z=0;if(I&&I[0].length>2&&(Z=I[0].length,A.index+=Z,Z%2!==0&&(d+="\\")),r.unescape===!0?d=j():d+=j(),A.brackets===0){N({type:"text",value:d});continue}}if(A.brackets>0&&(d!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&d===":"){let w=p.value.slice(1);if(w.includes("[")&&(p.posix=!0,w.includes(":"))){let I=p.value.lastIndexOf("["),Z=p.value.slice(0,I),ye=p.value.slice(I+2),ne=pS[ye];if(ne){p.value=Z+ne,A.backtrack=!0,j(),!s.output&&o.indexOf(p)===1&&(s.output=g);continue}}}(d==="["&&T()!==":"||d==="-"&&T()==="]")&&(d=`\\${d}`),d==="]"&&(p.value==="["||p.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&p.value==="["&&(d="^"),p.value+=d,xe({value:d});continue}if(A.quotes===1&&d!=='"'){d=Re.escapeRegex(d),p.value+=d,xe({value:d});continue}if(d==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&N({type:"text",value:d});continue}if(d==="("){Qi("parens"),N({type:"paren",value:d});continue}if(d===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Fr("opening","("));let w=S[S.length-1];if(w&&A.parens===w.parens+1){nD(S.pop());continue}N({type:"paren",value:d,output:A.parens?")":"\\)"}),Vt("parens");continue}if(d==="["){if(r.nobracket===!0||!z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Fr("closing","]"));d=`\\${d}`}else Qi("brackets");N({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){N({type:"text",value:d,output:`\\${d}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Fr("opening","["));N({type:"text",value:d,output:`\\${d}`});continue}Vt("brackets");let w=p.value.slice(1);if(p.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(d=`/${d}`),p.value+=d,xe({value:d}),r.literalBrackets===!1||Re.hasRegexChars(w))continue;let I=Re.escapeRegex(p.value);if(A.output=A.output.slice(0,-p.value.length),r.literalBrackets===!0){A.output+=I,p.value=I;continue}p.value=`(${u}${I}|${p.value})`,A.output+=p.value;continue}if(d==="{"&&r.nobrace!==!0){Qi("braces");let w={type:"brace",value:d,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};y.push(w),N(w);continue}if(d==="}"){let w=y[y.length-1];if(r.nobrace===!0||!w){N({type:"text",value:d,output:d});continue}let I=")";if(w.dots===!0){let Z=o.slice(),ye=[];for(let ne=Z.length-1;ne>=0&&(o.pop(),Z[ne].type!=="brace");ne--)Z[ne].type!=="dots"&&ye.unshift(Z[ne].value);I=gS(ye,r),A.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Z=A.output.slice(0,w.outputIndex),ye=A.tokens.slice(w.tokensIndex);w.value=w.output="\\{",d=I="\\}",A.output=Z;for(let ne of ye)A.output+=ne.output||ne.value}N({type:"brace",value:d,output:I}),Vt("braces"),y.pop();continue}if(d==="|"){S.length>0&&S[S.length-1].conditions++,N({type:"text",value:d});continue}if(d===","){let w=d,I=y[y.length-1];I&&C[C.length-1]==="braces"&&(I.comma=!0,w="|"),N({type:"comma",value:d,output:w});continue}if(d==="/"){if(p.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",o.pop(),p=s;continue}N({type:"slash",value:d,output:E});continue}if(d==="."){if(A.braces>0&&p.type==="dot"){p.value==="."&&(p.output=f);let w=y[y.length-1];p.type="dots",p.output+=d,p.value+=d,w.dots=!0;continue}if(A.braces+A.parens===0&&p.type!=="bos"&&p.type!=="slash"){N({type:"text",value:d,output:f});continue}N({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&T()==="("&&T(2)!=="?"){en("qmark",d);continue}if(p&&p.type==="paren"){let I=T(),Z=d;if(I==="<"&&!Re.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(z()))&&(Z=`\\${d}`),N({type:"text",value:d,output:Z});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){N({type:"qmark",value:d,output:re});continue}N({type:"qmark",value:d,output:M});continue}if(d==="!"){if(r.noextglob!==!0&&T()==="("&&(T(2)!=="?"||!/[!=<:]/.test(T(3)))){en("negate",d);continue}if(r.nonegate!==!0&&A.index===0){ot();continue}}if(d==="+"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){en("plus",d);continue}if(p&&p.value==="("||r.regex===!1){N({type:"plus",value:d,output:h});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||A.parens>0){N({type:"plus",value:d});continue}N({type:"plus",value:h});continue}if(d==="@"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){N({type:"at",extglob:!0,value:d,output:""});continue}N({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let w=dS.exec(z());w&&(d+=w[0],A.index+=w[0].length),N({type:"text",value:d});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=d,p.output=J,A.backtrack=!0,A.globstar=!0,Q(d);continue}let x=z();if(r.noextglob!==!0&&/^\([^?]/.test(x)){en("star",d);continue}if(p.type==="star"){if(r.noglobstar===!0){Q(d);continue}let w=p.prev,I=w.prev,Z=w.type==="slash"||w.type==="bos",ye=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!Z||x[0]&&x[0]!=="/")){N({type:"star",value:d,output:""});continue}let ne=A.braces>0&&(w.type==="comma"||w.type==="brace"),uo=S.length&&(w.type==="pipe"||w.type==="paren");if(!Z&&w.type!=="paren"&&!ne&&!uo){N({type:"star",value:d,output:""});continue}for(;x.slice(0,3)==="/**";){let tn=t[A.index+4];if(tn&&tn!=="/")break;x=x.slice(3),Q("/**",3)}if(w.type==="bos"&&v()){p.type="globstar",p.value+=d,p.output=P(r),A.output=p.output,A.globstar=!0,Q(d);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!ye&&v()){A.output=A.output.slice(0,-(w.output+p.output).length),w.output=`(?:${w.output}`,p.type="globstar",p.output=P(r)+(r.strictSlashes?")":"|$)"),p.value+=d,A.globstar=!0,A.output+=w.output+p.output,Q(d);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&x[0]==="/"){let tn=x[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(w.output+p.output).length),w.output=`(?:${w.output}`,p.type="globstar",p.output=`${P(r)}${E}|${E}${tn})`,p.value+=d,A.output+=w.output+p.output,A.globstar=!0,Q(d+j()),N({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&x[0]==="/"){p.type="globstar",p.value+=d,p.output=`(?:^|${E}|${P(r)}${E})`,A.output=p.output,A.globstar=!0,Q(d+j()),N({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-p.output.length),p.type="globstar",p.output=P(r),p.value+=d,A.output+=p.output,A.globstar=!0,Q(d);continue}let Y={type:"star",value:d,output:J};if(r.bash===!0){Y.output=".*?",(p.type==="bos"||p.type==="slash")&&(Y.output=O+Y.output),N(Y);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){Y.output=d,N(Y);continue}(A.index===A.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(A.output+=b,p.output+=b):r.dot===!0?(A.output+=F,p.output+=F):(A.output+=O,p.output+=O),T()!=="*"&&(A.output+=g,p.output+=g)),N(Y)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Fr("closing","]"));A.output=Re.escapeLast(A.output,"["),Vt("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Fr("closing",")"));A.output=Re.escapeLast(A.output,"("),Vt("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Fr("closing","}"));A.output=Re.escapeLast(A.output,"{"),Vt("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${E}?`}),A.backtrack===!0){A.output="";for(let x of A.tokens)A.output+=x.output!=null?x.output:x.value,x.suffix&&(A.output+=x.suffix)}return A};Go.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Dn,r.maxLength):Dn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=yh[t]||t;let s=Re.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:E,START_ANCHOR:g}=En.globChars(s),D=r.dot?f:l,_=r.dot?h:l,b=r.capture?"":"?:",F={negated:!1,prefix:""},M=r.bash===!0?".*?":E;r.capture&&(M=`(${M})`);let re=O=>O.noglobstar===!0?M:`(${b}(?:(?!${g}${O.dot?c:o}).)*?)`,L=O=>{switch(O){case"*":return`${D}${a}${M}`;case".*":return`${o}${a}${M}`;case"*.*":return`${D}${M}${o}${a}${M}`;case"*/*":return`${D}${M}${u}${a}${_}${M}`;case"**":return D+re(r);case"**/*":return`(?:${D}${re(r)}${u})?${_}${a}${M}`;case"**/*.*":return`(?:${D}${re(r)}${u})?${_}${M}${o}${a}${M}`;case"**/.*":return`(?:${D}${re(r)}${u})?${o}${a}${M}`;default:{let k=/^(.*?)\.(\w+)$/.exec(O);if(!k)return;let J=L(k[1]);return J?J+o+k[2]:void 0}}},$=Re.removePrefix(t,F),P=L($);return P&&r.strictSlashes!==!0&&(P+=`${u}?`),P};Ah.exports=Go});var Ch=m((pT,Sh)=>{"use strict";var ES=require("path"),DS=Dh(),jo=_h(),Wo=bi(),yS=Ci(),AS=t=>t&&typeof t=="object"&&!Array.isArray(t),ee=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>ee(h,e,r));return h=>{for(let E of l){let g=E(h);if(g)return g}return!1}}let i=AS(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Wo.isWindows(e),o=i?ee.compileRe(t,e):ee.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};a=ee(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:E,output:g}=ee.test(l,o,e,{glob:t,posix:s}),D={glob:t,state:u,regex:o,posix:s,input:l,output:g,match:E,isMatch:h};return typeof n.onResult=="function"&&n.onResult(D),h===!1?(D.isMatch=!1,f?D:!1):a(l)?(typeof n.onIgnore=="function"&&n.onIgnore(D),D.isMatch=!1,f?D:!1):(typeof n.onMatch=="function"&&n.onMatch(D),f?D:!0)};return r&&(c.state=u),c};ee.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?Wo.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=ee.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};ee.matchBase=(t,e,r,i=Wo.isWindows(r))=>(e instanceof RegExp?e:ee.makeRe(e,r)).test(ES.basename(t));ee.isMatch=(t,e,r)=>ee(e,r)(t);ee.parse=(t,e)=>Array.isArray(t)?t.map(r=>ee.parse(r,e)):jo(t,{...e,fastpaths:!1});ee.scan=(t,e)=>DS(t,e);ee.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=ee.toRegex(u,e);return i===!0&&(a.state=t),a};ee.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=jo.fastpaths(t,e)),n.output||(n=jo(t,e)),ee.compileRe(n,e,r,i)};ee.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/$^/}};ee.constants=yS;Sh.exports=ee});var wh=m((dT,bh)=>{"use strict";bh.exports=Ch()});var Th=m((mT,Rh)=>{"use strict";var xh=require("util"),vh=sh(),Ve=wh(),zo=bi(),Fh=t=>t===""||t==="./",V=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Ve(String(e[l]),{...r,onResult:u},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let E of t){let g=f(E,!0);(h?!g.isMatch:g.isMatch)&&(h?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};V.match=V;V.matcher=(t,e)=>Ve(t,e);V.isMatch=(t,e,r)=>Ve(e,r)(t);V.any=V.isMatch;V.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(V(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};V.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xh.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>V.contains(t,i,r));if(typeof e=="string"){if(Fh(t)||Fh(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return V.isMatch(t,e,{...r,contains:!0})};V.matchKeys=(t,e,r)=>{if(!zo.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=V(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};V.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Ve(String(n),r);if(i.some(o=>s(o)))return!0}return!1};V.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Ve(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};V.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xh.inspect(t)}"`);return[].concat(e).every(i=>Ve(i,r)(t))};V.capture=(t,e,r)=>{let i=zo.isWindows(r),s=Ve.makeRe(String(t),{...r,capture:!0}).exec(i?zo.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};V.makeRe=(...t)=>Ve.makeRe(...t);V.scan=(...t)=>Ve.scan(...t);V.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of vh(String(i),e))r.push(Ve.parse(n,e));return r};V.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:vh(t,e)};V.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return V.braces(t,{...e,expand:!0})};Rh.exports=V});var Mh=m(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.matchAny=B.convertPatternsToRe=B.makeRe=B.getPatternParts=B.expandBraceExpansion=B.expandPatternsWithBraceExpansion=B.isAffectDepthOfReadingPattern=B.endsWithSlashGlobStar=B.hasGlobStar=B.getBaseDirectory=B.isPatternRelatedToParentDirectory=B.getPatternsOutsideCurrentDirectory=B.getPatternsInsideCurrentDirectory=B.getPositivePatterns=B.getNegativePatterns=B.isPositivePattern=B.isNegativePattern=B.convertToNegativePattern=B.convertToPositivePattern=B.isDynamicPattern=B.isStaticPattern=void 0;var _S=require("path"),SS=Sf(),Yo=Th(),Oh="**",CS="\\",bS=/[*?]|^!/,wS=/\[[^[]*]/,FS=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,xS=/[!*+?@]\([^(]*\)/,vS=/,|\.\./;function Bh(t,e={}){return!Ph(t,e)}B.isStaticPattern=Bh;function Ph(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(CS)||bS.test(t)||wS.test(t)||FS.test(t)||e.extglob!==!1&&xS.test(t)||e.braceExpansion!==!1&&RS(t))}B.isDynamicPattern=Ph;function RS(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 vS.test(i)}function TS(t){return yn(t)?t.slice(1):t}B.convertToPositivePattern=TS;function OS(t){return"!"+t}B.convertToNegativePattern=OS;function yn(t){return t.startsWith("!")&&t[1]!=="("}B.isNegativePattern=yn;function Lh(t){return!yn(t)}B.isPositivePattern=Lh;function BS(t){return t.filter(yn)}B.getNegativePatterns=BS;function PS(t){return t.filter(Lh)}B.getPositivePatterns=PS;function LS(t){return t.filter(e=>!Ko(e))}B.getPatternsInsideCurrentDirectory=LS;function IS(t){return t.filter(Ko)}B.getPatternsOutsideCurrentDirectory=IS;function Ko(t){return t.startsWith("..")||t.startsWith("./..")}B.isPatternRelatedToParentDirectory=Ko;function NS(t){return SS(t,{flipBackslashes:!1})}B.getBaseDirectory=NS;function kS(t){return t.includes(Oh)}B.hasGlobStar=kS;function Ih(t){return t.endsWith("/"+Oh)}B.endsWithSlashGlobStar=Ih;function MS(t){let e=_S.basename(t);return Ih(t)||Bh(e)}B.isAffectDepthOfReadingPattern=MS;function qS(t){return t.reduce((e,r)=>e.concat(Nh(r)),[])}B.expandPatternsWithBraceExpansion=qS;function Nh(t){return Yo.braces(t,{expand:!0,nodupes:!0})}B.expandBraceExpansion=Nh;function HS(t,e){let{parts:r}=Yo.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}B.getPatternParts=HS;function kh(t,e){return Yo.makeRe(t,e)}B.makeRe=kh;function $S(t,e){return t.map(r=>kh(r,e))}B.convertPatternsToRe=$S;function US(t,e){return e.some(r=>r.test(t))}B.matchAny=US});var Uh=m((ET,$h)=>{"use strict";var GS=require("stream"),qh=GS.PassThrough,jS=Array.prototype.slice;$h.exports=WS;function WS(){let t=[],e=jS.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=qh(i);function u(){for(let l=0,f=arguments.length;l<f;l++)t.push(Hh(arguments[l],i));return a(),this}function a(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,a())}function E(g){function D(){g.removeListener("merge2UnpipeEnd",D),g.removeListener("end",D),s&&g.removeListener("error",_),h()}function _(b){o.emit("error",b)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",D),g.on("end",D),s&&g.on("error",_),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<l.length;g++)E(l[g]);h()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function Hh(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Hh(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(qh(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var jh=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.merge=void 0;var zS=Uh();function YS(t){let e=zS(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Gh(t)),e.once("end",()=>Gh(t)),e}An.merge=YS;function Gh(t){t.forEach(e=>e.emit("close"))}});var Wh=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.isEmpty=xr.isString=void 0;function KS(t){return typeof t=="string"}xr.isString=KS;function VS(t){return t===""}xr.isEmpty=VS});var ht=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.string=he.stream=he.pattern=he.path=he.fs=he.errno=he.array=void 0;var XS=hf();he.array=XS;var ZS=pf();he.errno=ZS;var JS=df();he.fs=JS;var QS=mf();he.path=QS;var eC=Mh();he.pattern=eC;var tC=jh();he.stream=tC;var rC=Wh();he.string=rC});var Kh=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.convertPatternGroupToTask=pe.convertPatternGroupsToTasks=pe.groupPatternsByBaseDirectory=pe.getNegativePatternsAsPositive=pe.getPositivePatterns=pe.convertPatternsToTasks=pe.generate=void 0;var pt=ht();function iC(t,e){let r=zh(t),i=Yh(t,e.ignore),n=r.filter(a=>pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>pt.pattern.isDynamicPattern(a,e)),o=Vo(n,i,!1),u=Vo(s,i,!0);return o.concat(u)}pe.generate=iC;function Vo(t,e,r){let i=[],n=pt.pattern.getPatternsOutsideCurrentDirectory(t),s=pt.pattern.getPatternsInsideCurrentDirectory(t),o=Xo(n),u=Xo(s);return i.push(...Zo(o,e,r)),"."in u?i.push(Jo(".",s,e,r)):i.push(...Zo(u,e,r)),i}pe.convertPatternsToTasks=Vo;function zh(t){return pt.pattern.getPositivePatterns(t)}pe.getPositivePatterns=zh;function Yh(t,e){return pt.pattern.getNegativePatterns(t).concat(e).map(pt.pattern.convertToPositivePattern)}pe.getNegativePatternsAsPositive=Yh;function Xo(t){let e={};return t.reduce((r,i)=>{let n=pt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}pe.groupPatternsByBaseDirectory=Xo;function Zo(t,e,r){return Object.keys(t).map(i=>Jo(i,t[i],e,r))}pe.convertPatternGroupsToTasks=Zo;function Jo(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(pt.pattern.convertToNegativePattern))}}pe.convertPatternGroupToTask=Jo});var Xh=m(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.removeDuplicateSlashes=vr.transform=void 0;var nC=/(?!^)\/{2,}/g;function sC(t){return t.map(e=>Vh(e))}vr.transform=sC;function Vh(t){return t.replace(nC,"/")}vr.removeDuplicateSlashes=Vh});var Jh=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.read=void 0;function oC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Zh(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Qo(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Zh(r,s);return}Qo(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Qo(r,o)})})}_n.read=oC;function Zh(t,e){t(e)}function Qo(t,e){t(null,e)}});var Qh=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.read=void 0;function uC(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}}Sn.read=uC});var ep=m(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createFileSystemAdapter=Rt.FILE_SYSTEM_ADAPTER=void 0;var Cn=require("fs");Rt.FILE_SYSTEM_ADAPTER={lstat:Cn.lstat,stat:Cn.stat,lstatSync:Cn.lstatSync,statSync:Cn.statSync};function aC(t){return t===void 0?Rt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Rt.FILE_SYSTEM_ADAPTER),t)}Rt.createFileSystemAdapter=aC});var tp=m(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var cC=ep(),eu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=cC.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}};tu.default=eu});var tr=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.statSync=Tt.stat=Tt.Settings=void 0;var rp=Jh(),lC=Qh(),ru=tp();Tt.Settings=ru.default;function fC(t,e,r){if(typeof e=="function"){rp.read(t,iu(),e);return}rp.read(t,iu(e),r)}Tt.stat=fC;function hC(t,e){let r=iu(e);return lC.read(t,r)}Tt.statSync=hC;function iu(t={}){return t instanceof ru.default?t:new ru.default(t)}});var sp=m((vT,np)=>{var ip;np.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(ip||(ip=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var up=m((RT,op)=>{op.exports=dC;var pC=sp();function dC(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(a){function c(){e&&e(a,r),e=null}s?pC(c):c()}function u(a,c,l){r[a]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(a){t[a](function(c,l){u(a,c,l)})}):t.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var nu=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var bn=process.versions.node.split(".");if(bn[0]===void 0||bn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ap=Number.parseInt(bn[0],10),mC=Number.parseInt(bn[1],10),cp=10,gC=10,EC=ap>cp,DC=ap===cp&&mC>=gC;wn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=EC||DC});var lp=m(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.createDirentFromStats=void 0;var su=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 yC(t,e){return new su(t,e)}Fn.createDirentFromStats=yC});var ou=m(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.fs=void 0;var AC=lp();xn.fs=AC});var uu=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.joinPathSegments=void 0;function _C(t,e,r){return t.endsWith(r)?t+e:t+r+e}vn.joinPathSegments=_C});var gp=m(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var SC=tr(),fp=up(),CC=nu(),hp=ou(),pp=uu();function bC(t,e,r){if(!e.stats&&CC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){dp(t,e,r);return}mp(t,e,r)}Ot.read=bC;function dp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Rn(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:pp.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){au(r,s);return}let o=s.map(u=>wC(u,e));fp(o,(u,a)=>{if(u!==null){Rn(r,u);return}au(r,a)})})}Ot.readdirWithFileTypes=dp;function wC(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=hp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function mp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Rn(r,i);return}let s=n.map(o=>{let u=pp.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{SC.stat(u,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:hp.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),a(null,f)})}});fp(s,(o,u)=>{if(o!==null){Rn(r,o);return}au(r,u)})})}Ot.readdir=mp;function Rn(t,e){t(e)}function au(t,e){t(null,e)}});var _p=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.readdir=Bt.readdirWithFileTypes=Bt.read=void 0;var FC=tr(),xC=nu(),Ep=ou(),Dp=uu();function vC(t,e){return!e.stats&&xC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?yp(t,e):Ap(t,e)}Bt.read=vC;function yp(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Dp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Ep.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Bt.readdirWithFileTypes=yp;function Ap(t,e){return e.fs.readdirSync(t).map(i=>{let n=Dp.joinPathSegments(t,i,e.pathSegmentSeparator),s=FC.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Ep.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Bt.readdir=Ap});var Sp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createFileSystemAdapter=Pt.FILE_SYSTEM_ADAPTER=void 0;var Rr=require("fs");Pt.FILE_SYSTEM_ADAPTER={lstat:Rr.lstat,stat:Rr.stat,lstatSync:Rr.lstatSync,statSync:Rr.statSync,readdir:Rr.readdir,readdirSync:Rr.readdirSync};function RC(t){return t===void 0?Pt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pt.FILE_SYSTEM_ADAPTER),t)}Pt.createFileSystemAdapter=RC});var Cp=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var TC=require("path"),OC=tr(),BC=Sp(),cu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=BC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,TC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new OC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};lu.default=cu});var Tn=m(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Settings=Lt.scandirSync=Lt.scandir=void 0;var bp=gp(),PC=_p(),fu=Cp();Lt.Settings=fu.default;function LC(t,e,r){if(typeof e=="function"){bp.read(t,hu(),e);return}bp.read(t,hu(e),r)}Lt.scandir=LC;function IC(t,e){let r=hu(e);return PC.read(t,r)}Lt.scandirSync=IC;function hu(t={}){return t instanceof fu.default?t:new fu.default(t)}});var Fp=m((qT,wp)=>{"use strict";function NC(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}}wp.exports=NC});var vp=m((HT,pu)=>{"use strict";var kC=Fp();function xp(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=kC(MC),n=null,s=null,o=0,u=null,a={push:D,drain:Ie,saturated:Ie,pause:l,paused:!1,concurrency:r,running:c,resume:E,idle:g,length:f,getQueue:h,unshift:_,empty:Ie,kill:F,killAndDrain:M,error:re};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var L=n,$=0;L;)L=L.next,$++;return $}function h(){for(var L=n,$=[];L;)$.push(L.value),L=L.next;return $}function E(){if(a.paused){a.paused=!1;for(var L=0;L<a.concurrency;L++)o++,b()}}function g(){return o===0&&a.length()===0}function D(L,$){var P=i.get();P.context=t,P.release=b,P.value=L,P.callback=$||Ie,P.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=P,s=P):(n=P,s=P,a.saturated()):(o++,e.call(t,P.value,P.worked))}function _(L,$){var P=i.get();P.context=t,P.release=b,P.value=L,P.callback=$||Ie,o===a.concurrency||a.paused?n?(P.next=n,n=P):(n=P,s=P,a.saturated()):(o++,e.call(t,P.value,P.worked))}function b(L){L&&i.release(L);var $=n;$?a.paused?o--:(s===n&&(s=null),n=$.next,$.next=null,e.call(t,$.value,$.worked),s===null&&a.empty()):--o===0&&a.drain()}function F(){n=null,s=null,a.drain=Ie}function M(){n=null,s=null,a.drain(),a.drain=Ie}function re(L){u=L}}function Ie(){}function MC(){this.value=null,this.callback=Ie,this.next=null,this.release=Ie,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=Ie,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function qC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var n=xp(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=c,n;function u(l){var f=new Promise(function(h,E){s(l,function(g,D){if(g){E(g);return}h(D)})});return f.catch(Ie),f}function a(l){var f=new Promise(function(h,E){o(l,function(g,D){if(g){E(g);return}h(D)})});return f.catch(Ie),f}function c(){var l=n.drain,f=new Promise(function(h){n.drain=function(){l(),h()}});return f}}pu.exports=xp;pu.exports.promise=qC});var On=m(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.joinPathSegments=Xe.replacePathSegmentSeparator=Xe.isAppliedFilter=Xe.isFatalError=void 0;function HC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Xe.isFatalError=HC;function $C(t,e){return t===null||t(e)}Xe.isAppliedFilter=$C;function UC(t,e){return t.split(/[/\\]/).join(e)}Xe.replacePathSegmentSeparator=UC;function GC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Xe.joinPathSegments=GC});var gu=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var jC=On(),du=class{constructor(e,r){this._root=e,this._settings=r,this._root=jC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};mu.default=du});var yu=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var WC=require("events"),zC=Tn(),YC=vp(),Bn=On(),KC=gu(),Eu=class extends KC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=zC.scandir,this._emitter=new WC.EventEmitter,this._queue=YC(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)}};Du.default=Eu});var Rp=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var VC=yu(),Au=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{XC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{ZC(e,this._storage)}),this._reader.read()}};_u.default=Au;function XC(t,e){t(e)}function ZC(t,e){t(null,e)}});var Tp=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var JC=require("stream"),QC=yu(),Su=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new QC.default(this._root,this._settings),this._stream=new JC.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}};Cu.default=Su});var Op=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var eb=Tn(),Pn=On(),tb=gu(),bu=class extends tb.default{constructor(){super(...arguments),this._scandir=eb.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(Pn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Pn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Pn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};wu.default=bu});var Bp=m(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var rb=Op(),Fu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new rb.default(this._root,this._settings)}read(){return this._reader.read()}};xu.default=Fu});var Pp=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var ib=require("path"),nb=Tn(),vu=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,ib.sep),this.fsScandirSettings=new nb.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}};Ru.default=vu});var In=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.Settings=Ze.walkStream=Ze.walkSync=Ze.walk=void 0;var Lp=Rp(),sb=Tp(),ob=Bp(),Tu=Pp();Ze.Settings=Tu.default;function ub(t,e,r){if(typeof e=="function"){new Lp.default(t,Ln()).read(e);return}new Lp.default(t,Ln(e)).read(r)}Ze.walk=ub;function ab(t,e){let r=Ln(e);return new ob.default(t,r).read()}Ze.walkSync=ab;function cb(t,e){let r=Ln(e);return new sb.default(t,r).read()}Ze.walkStream=cb;function Ln(t={}){return t instanceof Tu.default?t:new Tu.default(t)}});var Nn=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var lb=require("path"),fb=tr(),Ip=ht(),Ou=class{constructor(e){this._settings=e,this._fsStatSettings=new fb.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return lb.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Ip.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Ip.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Bu.default=Ou});var Iu=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var hb=require("stream"),pb=tr(),db=In(),mb=Nn(),Pu=class extends mb.default{constructor(){super(...arguments),this._walkStream=db.walkStream,this._stat=pb.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new hb.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);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))})}};Lu.default=Pu});var Np=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var gb=In(),Eb=Nn(),Db=Iu(),Nu=class extends Eb.default{constructor(){super(...arguments),this._walkAsync=gb.walk,this._readerStream=new Db.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",u=>i.push(u)),n.once("end",()=>s(i))})}};ku.default=Nu});var kp=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Tr=ht(),Mu=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Tr.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 Tr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Tr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Tr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Tr.array.splitWhen(e,r=>r.dynamic&&Tr.pattern.hasGlobStar(r.pattern))}};qu.default=Mu});var Mp=m($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var yb=kp(),Hu=class extends yb.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((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};$u.default=Hu});var qp=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var kn=ht(),Ab=Mp(),Uu=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 Ab.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(kn.pattern.isAffectDepthOfReadingPattern);return kn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=kn.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!kn.pattern.matchAny(e,r)}};Gu.default=Uu});var Hp=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var rr=ht(),ju=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=rr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=rr.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=rr.path.makeAbsolute(this._settings.cwd,e);return rr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=rr.path.removeLeadingDotSegment(e),s=rr.pattern.matchAny(n,r);return!s&&i?rr.pattern.matchAny(n+"/",r):s}};Wu.default=ju});var $p=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var _b=ht(),zu=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return _b.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Yu.default=zu});var Gp=m(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var Up=ht(),Ku=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Up.path.makeAbsolute(this._settings.cwd,r),r=Up.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Vu.default=Ku});var Mn=m(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var Sb=require("path"),Cb=qp(),bb=Hp(),wb=$p(),Fb=Gp(),Xu=class{constructor(e){this._settings=e,this.errorFilter=new wb.default(this._settings),this.entryFilter=new bb.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Cb.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fb.default(this._settings)}_getRootDirectory(e){return Sb.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}}};Zu.default=Xu});var jp=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var xb=Np(),vb=Mn(),Ju=class extends vb.default{constructor(){super(...arguments),this._reader=new xb.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)}};Qu.default=Ju});var Wp=m(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var Rb=require("stream"),Tb=Iu(),Ob=Mn(),ea=class extends Ob.default{constructor(){super(...arguments),this._reader=new Tb.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new Rb.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)}};ta.default=ea});var zp=m(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var Bb=tr(),Pb=In(),Lb=Nn(),ra=class extends Lb.default{constructor(){super(...arguments),this._walkSync=Pb.walkSync,this._statSync=Bb.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)}};ia.default=ra});var Yp=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var Ib=zp(),Nb=Mn(),na=class extends Nb.default{constructor(){super(...arguments),this._reader=new Ib.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)}};sa.default=na});var Kp=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Or=require("fs"),kb=require("os"),Mb=Math.max(kb.cpus().length,1);Br.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Or.lstat,lstatSync:Or.lstatSync,stat:Or.stat,statSync:Or.statSync,readdir:Or.readdir,readdirSync:Or.readdirSync};var oa=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,Mb),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({},Br.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Br.default=oa});var Jp=m((fO,Zp)=>{"use strict";var Vp=Kh(),Xp=Xh(),qb=jp(),Hb=Wp(),$b=Yp(),ua=Kp(),ir=ht();async function aa(t,e){Pr(t);let r=ca(t,qb.default,e),i=await Promise.all(r);return ir.array.flatten(i)}(function(t){function e(o,u){Pr(o);let a=ca(o,$b.default,u);return ir.array.flatten(a)}t.sync=e;function r(o,u){Pr(o);let a=ca(o,Hb.default,u);return ir.stream.merge(a)}t.stream=r;function i(o,u){Pr(o);let a=Xp.transform([].concat(o)),c=new ua.default(u);return Vp.generate(a,c)}t.generateTasks=i;function n(o,u){Pr(o);let a=new ua.default(u);return ir.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return Pr(o),ir.path.escape(o)}t.escapePath=s})(aa||(aa={}));function ca(t,e,r){let i=Xp.transform([].concat(t)),n=new ua.default(r),s=Vp.generate(i,n),o=new e(n);return s.map(o.read,o)}function Pr(t){if(![].concat(t).every(i=>ir.string.isString(i)&&!ir.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Zp.exports=aa});var hd=m((EO,fd)=>{fd.exports=ld;ld.sync=Qb;var ad=require("fs");function Jb(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 cd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Jb(e,r)}function ld(t,e,r){ad.stat(t,function(i,n){r(i,i?!1:cd(n,t,e))})}function Qb(t,e){return cd(ad.statSync(t),t,e)}});var Ed=m((DO,gd)=>{gd.exports=dd;dd.sync=e1;var pd=require("fs");function dd(t,e,r){pd.stat(t,function(i,n){r(i,i?!1:md(n,e))})}function e1(t,e){return md(pd.statSync(t),e)}function md(t,e){return t.isFile()&&t1(t,e)}function t1(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(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=u|a,f=r&c||r&a&&n===o||r&u&&i===s||r&l&&s===0;return f}});var yd=m((AO,Dd)=>{var yO=require("fs"),qn;process.platform==="win32"||global.TESTING_WINDOWS?qn=hd():qn=Ed();Dd.exports=la;la.sync=r1;function la(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){la(t,e||{},function(s,o){s?n(s):i(o)})})}qn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function r1(t,e){try{return qn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Fd=m((_O,wd)=>{var kr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ad=require("path"),i1=kr?";":":",_d=yd(),Sd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Cd=(t,e)=>{let r=e.colon||i1,i=t.match(/\//)||kr&&t.match(/\\/)?[""]:[...kr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=kr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=kr?n.split(r):[""];return kr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},bd=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Cd(t,e),o=[],u=c=>new Promise((l,f)=>{if(c===i.length)return e.all&&o.length?l(o):f(Sd(t));let h=i[c],E=/^".*"$/.test(h)?h.slice(1,-1):h,g=Ad.join(E,t),D=!E&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;l(a(D,c,0))}),a=(c,l,f)=>new Promise((h,E)=>{if(f===n.length)return h(u(l+1));let g=n[f];_d(c+g,{pathExt:s},(D,_)=>{if(!D&&_)if(e.all)o.push(c+g);else return h(c+g);return h(a(c,l,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},n1=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Cd(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=Ad.join(a,t),l=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<i.length;f++){let h=l+i[f];try{if(_d.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Sd(t)};wd.exports=bd;bd.sync=n1});var ha=m((SO,fa)=>{"use strict";var xd=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};fa.exports=xd;fa.exports.default=xd});var Od=m((CO,Td)=>{"use strict";var vd=require("path"),s1=Fd(),o1=ha();function Rd(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=s1.sync(t.command,{path:r[o1({env:r})],pathExt:e?vd.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=vd.resolve(n?t.options.cwd:"",o)),o}function u1(t){return Rd(t)||Rd(t,!0)}Td.exports=u1});var Bd=m((bO,da)=>{"use strict";var pa=/([()\][%!^"`<>&|;, *?])/g;function a1(t){return t=t.replace(pa,"^$1"),t}function c1(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(pa,"^$1"),e&&(t=t.replace(pa,"^$1")),t}da.exports.command=a1;da.exports.argument=c1});var Ld=m((wO,Pd)=>{"use strict";Pd.exports=/^#!(.*)/});var Nd=m((FO,Id)=>{"use strict";var l1=Ld();Id.exports=(t="")=>{let e=t.match(l1);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Md=m((xO,kd)=>{"use strict";var ma=require("fs"),f1=Nd();function h1(t){let r=Buffer.alloc(150),i;try{i=ma.openSync(t,"r"),ma.readSync(i,r,0,150,0),ma.closeSync(i)}catch{}return f1(r.toString())}kd.exports=h1});var Ud=m((vO,$d)=>{"use strict";var p1=require("path"),qd=Od(),Hd=Bd(),d1=Md(),m1=process.platform==="win32",g1=/\.(?:com|exe)$/i,E1=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function D1(t){t.file=qd(t);let e=t.file&&d1(t.file);return e?(t.args.unshift(t.file),t.command=e,qd(t)):t.file}function y1(t){if(!m1)return t;let e=D1(t),r=!g1.test(e);if(t.options.forceShell||r){let i=E1.test(e);t.command=p1.normalize(t.command),t.command=Hd.command(t.command),t.args=t.args.map(s=>Hd.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 A1(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:y1(i)}$d.exports=A1});var Wd=m((RO,jd)=>{"use strict";var ga=process.platform==="win32";function Ea(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 _1(t,e){if(!ga)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Gd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Gd(t,e){return ga&&t===1&&!e.file?Ea(e.original,"spawn"):null}function S1(t,e){return ga&&t===1&&!e.file?Ea(e.original,"spawnSync"):null}jd.exports={hookChildProcess:_1,verifyENOENT:Gd,verifyENOENTSync:S1,notFoundError:Ea}});var Kd=m((TO,Mr)=>{"use strict";var zd=require("child_process"),Da=Ud(),ya=Wd();function Yd(t,e,r){let i=Da(t,e,r),n=zd.spawn(i.command,i.args,i.options);return ya.hookChildProcess(n,i),n}function C1(t,e,r){let i=Da(t,e,r),n=zd.spawnSync(i.command,i.args,i.options);return n.error=n.error||ya.verifyENOENTSync(n.status,i),n}Mr.exports=Yd;Mr.exports.spawn=Yd;Mr.exports.sync=C1;Mr.exports._parse=Da;Mr.exports._enoent=ya});var Xd=m((OO,Vd)=>{"use strict";Vd.exports=t=>{let e=typeof t=="string"?`
|
1
|
+
"use strict";var oD=Object.create;var rn=Object.defineProperty;var uD=Object.getOwnPropertyDescriptor;var aD=Object.getOwnPropertyNames;var cD=Object.getPrototypeOf,lD=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),El=(t,e)=>{for(var r in e)rn(t,r,{get:e[r],enumerable:!0})},Dl=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of aD(e))!lD.call(t,n)&&n!==r&&rn(t,n,{get:()=>e[n],enumerable:!(i=uD(e,n))||i.enumerable});return t};var G=(t,e,r)=>(r=t!=null?oD(cD(t)):{},Dl(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t)),fD=t=>Dl(rn({},"__esModule",{value:!0}),t);var yl=d((tR,lt)=>{function ao(t){return lt.exports=ao=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},lt.exports.__esModule=!0,lt.exports.default=lt.exports,ao(t)}lt.exports=ao,lt.exports.__esModule=!0,lt.exports.default=lt.exports});var Sl=d((rR,ft)=>{var Al=yl().default;function _l(){"use strict";ft.exports=_l=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,_,y){p[_]=y.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(p,_,y){return Object.defineProperty(p,_,{value:y,enumerable:!0,configurable:!0,writable:!0}),p[_]}try{c({},"")}catch{c=function(y,v,T){return y[v]=T}}function l(p,_,y,v){var T=_&&_.prototype instanceof C?_:C,x=Object.create(T.prototype),z=new Ne(v||[]);return n(x,"_invoke",{value:ie(p,y,z)}),x}function f(p,_,y){try{return{type:"normal",arg:p.call(_,y)}}catch(v){return{type:"throw",arg:v}}}e.wrap=l;var h="suspendedStart",g="suspendedYield",m="executing",E="completed",S={};function C(){}function w(){}function k(){}var re={};c(re,o,function(){return this});var L=Object.getPrototypeOf,q=L&&L(L(D([])));q&&q!==r&&i.call(q,o)&&(re=q);var O=k.prototype=C.prototype=Object.create(re);function B(p){["next","throw","return"].forEach(function(_){c(p,_,function(y){return this._invoke(_,y)})})}function M(p,_){function y(T,x,z,fe){var ne=f(p[T],p,x);if(ne.type!=="throw"){var _e=ne.arg,P=_e.value;return P&&Al(P)=="object"&&i.call(P,"__await")?_.resolve(P.__await).then(function(ke){y("next",ke,z,fe)},function(ke){y("throw",ke,z,fe)}):_.resolve(P).then(function(ke){_e.value=ke,z(_e)},function(ke){return y("throw",ke,z,fe)})}fe(ne.arg)}var v;n(this,"_invoke",{value:function(x,z){function fe(){return new _(function(ne,_e){y(x,z,ne,_e)})}return v=v?v.then(fe,fe):fe()}})}function ie(p,_,y){var v=h;return function(T,x){if(v===m)throw new Error("Generator is already running");if(v===E){if(T==="throw")throw x;return{value:t,done:!0}}for(y.method=T,y.arg=x;;){var z=y.delegate;if(z){var fe=A(z,y);if(fe){if(fe===S)continue;return fe}}if(y.method==="next")y.sent=y._sent=y.arg;else if(y.method==="throw"){if(v===h)throw v=E,y.arg;y.dispatchException(y.arg)}else y.method==="return"&&y.abrupt("return",y.arg);v=m;var ne=f(p,_,y);if(ne.type==="normal"){if(v=y.done?E:g,ne.arg===S)continue;return{value:ne.arg,done:y.done}}ne.type==="throw"&&(v=E,y.method="throw",y.arg=ne.arg)}}}function A(p,_){var y=_.method,v=p.iterator[y];if(v===t)return _.delegate=null,y==="throw"&&p.iterator.return&&(_.method="return",_.arg=t,A(p,_),_.method==="throw")||y!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+y+"' method")),S;var T=f(v,p.iterator,_.arg);if(T.type==="throw")return _.method="throw",_.arg=T.arg,_.delegate=null,S;var x=T.arg;return x?x.done?(_[p.resultName]=x.value,_.next=p.nextLoc,_.method!=="return"&&(_.method="next",_.arg=t),_.delegate=null,S):x:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,S)}function W(p){var _={tryLoc:p[0]};1 in p&&(_.catchLoc=p[1]),2 in p&&(_.finallyLoc=p[2],_.afterLoc=p[3]),this.tryEntries.push(_)}function U(p){var _=p.completion||{};_.type="normal",delete _.arg,p.completion=_}function Ne(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function D(p){if(p||p===""){var _=p[o];if(_)return _.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var y=-1,v=function T(){for(;++y<p.length;)if(i.call(p,y))return T.value=p[y],T.done=!1,T;return T.value=t,T.done=!0,T};return v.next=v}}throw new TypeError(Al(p)+" is not iterable")}return w.prototype=k,n(O,"constructor",{value:k,configurable:!0}),n(k,"constructor",{value:w,configurable:!0}),w.displayName=c(k,a,"GeneratorFunction"),e.isGeneratorFunction=function(p){var _=typeof p=="function"&&p.constructor;return!!_&&(_===w||(_.displayName||_.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,k):(p.__proto__=k,c(p,a,"GeneratorFunction")),p.prototype=Object.create(O),p},e.awrap=function(p){return{__await:p}},B(M.prototype),c(M.prototype,u,function(){return this}),e.AsyncIterator=M,e.async=function(p,_,y,v,T){T===void 0&&(T=Promise);var x=new M(l(p,_,y,v),T);return e.isGeneratorFunction(_)?x:x.next().then(function(z){return z.done?z.value:x.next()})},B(O),c(O,a,"Generator"),c(O,o,function(){return this}),c(O,"toString",function(){return"[object Generator]"}),e.keys=function(p){var _=Object(p),y=[];for(var v in _)y.push(v);return y.reverse(),function T(){for(;y.length;){var x=y.pop();if(x in _)return T.value=x,T.done=!1,T}return T.done=!0,T}},e.values=D,Ne.prototype={constructor:Ne,reset:function(_){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(U),!_)for(var y in this)y.charAt(0)==="t"&&i.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=t)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var y=this;function v(_e,P){return z.type="throw",z.arg=_,y.next=_e,P&&(y.method="next",y.arg=t),!!P}for(var T=this.tryEntries.length-1;T>=0;--T){var x=this.tryEntries[T],z=x.completion;if(x.tryLoc==="root")return v("end");if(x.tryLoc<=this.prev){var fe=i.call(x,"catchLoc"),ne=i.call(x,"finallyLoc");if(fe&&ne){if(this.prev<x.catchLoc)return v(x.catchLoc,!0);if(this.prev<x.finallyLoc)return v(x.finallyLoc)}else if(fe){if(this.prev<x.catchLoc)return v(x.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return v(x.finallyLoc)}}}},abrupt:function(_,y){for(var v=this.tryEntries.length-1;v>=0;--v){var T=this.tryEntries[v];if(T.tryLoc<=this.prev&&i.call(T,"finallyLoc")&&this.prev<T.finallyLoc){var x=T;break}}x&&(_==="break"||_==="continue")&&x.tryLoc<=y&&y<=x.finallyLoc&&(x=null);var z=x?x.completion:{};return z.type=_,z.arg=y,x?(this.method="next",this.next=x.finallyLoc,S):this.complete(z)},complete:function(_,y){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&y&&(this.next=y),S},finish:function(_){for(var y=this.tryEntries.length-1;y>=0;--y){var v=this.tryEntries[y];if(v.finallyLoc===_)return this.complete(v.completion,v.afterLoc),U(v),S}},catch:function(_){for(var y=this.tryEntries.length-1;y>=0;--y){var v=this.tryEntries[y];if(v.tryLoc===_){var T=v.completion;if(T.type==="throw"){var x=T.arg;U(v)}return x}}throw new Error("illegal catch attempt")},delegateYield:function(_,y,v){return this.delegate={iterator:D(_),resultName:y,nextLoc:v},this.method==="next"&&(this.arg=t),S}},e}ft.exports=_l,ft.exports.__esModule=!0,ft.exports.default=ft.exports});var bl=d((iR,Cl)=>{var nn=Sl()();Cl.exports=nn;try{regeneratorRuntime=nn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=nn:Function("r","regeneratorRuntime = r")(nn)}});var pf=d(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.splitWhen=vr.flatten=void 0;function HA(t){return t.reduce((e,r)=>[].concat(e,r),[])}vr.flatten=HA;function $A(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}vr.splitWhen=$A});var df=d(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.isEnoentCodeError=void 0;function UA(t){return t.code==="ENOENT"}fn.isEnoentCodeError=UA});var mf=d(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.createDirentFromStats=void 0;var Ro=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 jA(t,e){return new Ro(t,e)}hn.createDirentFromStats=jA});var gf=d(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.removeLeadingDotSegment=Ze.escape=Ze.makeAbsolute=Ze.unixify=void 0;var GA=require("path"),WA=2,zA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function YA(t){return t.replace(/\\/g,"/")}Ze.unixify=YA;function KA(t,e){return GA.resolve(t,e)}Ze.makeAbsolute=KA;function VA(t){return t.replace(zA,"\\$2")}Ze.escape=VA;function XA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(WA)}return t}Ze.removeLeadingDotSegment=XA});var Df=d((JR,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 _f=d((QR,Af)=>{var ZA=Df(),yf={"{":"}","(":")","[":"]"},JA=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 u=t[e+1];e+=2;var a=yf[u];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},QA=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=yf[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Af.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ZA(e))return!0;var i=JA;return r&&r.strict===!1&&(i=QA),i(e)}});var Cf=d((eT,Sf)=>{"use strict";var e_=_f(),t_=require("path").posix.dirname,r_=require("os").platform()==="win32",To="/",i_=/\\/g,n_=/[\{\[].*[\}\]]$/,s_=/(^|[^\\])([\{\[]|\([^\)]+$)/,o_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Sf.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&r_&&e.indexOf(To)<0&&(e=e.replace(i_,To)),n_.test(e)&&(e+=To),e+="a";do e=t_(e);while(e_(e)||s_.test(e));return e.replace(o_,"$1")}});var pn=d(Me=>{"use strict";Me.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Me.find=(t,e)=>t.nodes.find(r=>r.type===e);Me.exceedsLimit=(t,e,r=1,i)=>i===!1||!Me.isInteger(t)||!Me.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Me.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)};Me.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Me.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;Me.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Me.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Me.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var dn=d((rT,wf)=>{"use strict";var bf=pn();wf.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&bf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&bf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var xf=d((iT,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 Nf=d((nT,If)=>{"use strict";var vf=xf(),ir=(t,e,r)=>{if(vf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(vf(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),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(ir.cache.hasOwnProperty(a))return ir.cache[a].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let E=t+"|"+e;return i.capture?`(${E})`:i.wrap===!1?E:`(?:${E})`}let f=Lf(t)||Lf(e),h={min:t,max:e,a:c,b:l},g=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let E=l<0?Math.abs(l):1;m=Rf(E,Math.abs(c),h,i),c=h.a=0}return l>=0&&(g=Rf(c,l,h,i)),h.negatives=m,h.positives=g,h.result=u_(m,g,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&g.length+m.length>1&&(h.result=`(?:${h.result})`),ir.cache[a]=h,h.result};function u_(t,e,r){let i=Oo(t,e,"-",!1,r)||[],n=Oo(e,t,"",!1,r)||[],s=Oo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function a_(t,e){let r=1,i=1,n=Of(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Of(t,r);for(n=Bf(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Bf(e+1,i)-1;return s=[...s],s.sort(f_),s}function c_(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=l_(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,c]=i[u];a===c?s+=a:a!=="0"||c!=="9"?s+=h_(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Rf(t,e,r,i){let n=a_(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let c=n[a],l=c_(String(o),String(c),i),f="";if(!r.isPadded&&u&&u.pattern===l.pattern){u.count.length>1&&u.count.pop(),u.count.push(l.count[0]),u.string=u.pattern+Pf(u.count),o=c+1;continue}r.isPadded&&(f=p_(c,r,i)),l.string=f+l.pattern+Pf(l.count),s.push(l),o=c+1,u=l}return s}function Oo(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Tf(e,"string",u)&&s.push(r+u),i&&Tf(e,"string",u)&&s.push(r+u)}return s}function l_(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function f_(t,e){return t>e?1:e>t?-1:0}function Tf(t,e,r){return t.some(i=>i[e]===r)}function Of(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Bf(t,e){return t-t%Math.pow(10,e)}function Pf(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function h_(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Lf(t){return/^-?(0+)\d/.test(t)}function p_(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}ir.cache={};ir.clearCache=()=>ir.cache={};If.exports=ir});var Lo=d((sT,Gf)=>{"use strict";var d_=require("util"),qf=Nf(),kf=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),m_=t=>e=>t===!0?Number(e):String(e),Bo=t=>typeof t=="number"||typeof t=="string"&&t!=="",bi=t=>Number.isInteger(+t),Po=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},g_=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,E_=(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},Mf=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},D_=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Hf=(t,e,r,i)=>{if(r)return qf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},$f=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return qf(t,e,r)},Uf=(...t)=>new RangeError("Invalid range arguments: "+d_.inspect(...t)),jf=(t,e,r)=>{if(r.strictRanges===!0)throw Uf([t,e]);return[]},y_=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},A_=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Uf([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Po(u)||Po(a)||Po(c),f=l?Math.max(u.length,a.length,c.length):0,h=l===!1&&g_(t,e,i)===!1,g=i.transform||m_(h);if(i.toRegex&&r===1)return Hf(Mf(t,f),Mf(e,f),!0,i);let m={negatives:[],positives:[]},E=w=>m[w<0?"negatives":"positives"].push(Math.abs(w)),S=[],C=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?E(n):S.push(E_(g(n,C),f,h)),n=o?n-r:n+r,C++;return i.toRegex===!0?r>1?D_(m,i):$f(S,null,{wrap:!1,...i}):S},__=(t,e,r=1,i={})=>{if(!bi(t)&&t.length>1||!bi(e)&&e.length>1)return jf(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return Hf(a,c,!1,i);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(n(s,f)),s=u?s-r:s+r,f++;return i.toRegex===!0?$f(l,null,{wrap:!1,options:i}):l},mn=(t,e,r,i={})=>{if(e==null&&Bo(t))return[t];if(!Bo(t)||!Bo(e))return jf(t,e,i);if(typeof r=="function")return mn(t,e,1,{transform:r});if(kf(r))return mn(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,bi(r)?bi(t)&&bi(e)?A_(t,e,r,n):__(t,e,Math.max(Math.abs(r),1),n):r!=null&&!kf(r)?y_(r,n):mn(t,e,1,r)};Gf.exports=mn});var Yf=d((oT,zf)=>{"use strict";var S_=Lo(),Wf=pn(),C_=(t,e={})=>{let r=(i,n={})=>{let s=Wf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=Wf.reduce(i.nodes),f=S_(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};zf.exports=C_});var Xf=d((uT,Vf)=>{"use strict";var b_=Lo(),Kf=dn(),Rr=pn(),nr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Rr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(nr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?nr(n,s,r):n+s);return Rr.flatten(i)},w_=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(nr(u.pop(),Kf(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(nr(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=Rr.reduce(n.nodes);if(Rr.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=b_(...f,e);h.length===0&&(h=Kf(n,e)),u.push(nr(u.pop(),h)),n.nodes=[];return}let a=Rr.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){u.push(nr(u.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(nr(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return Rr.flatten(i(t))};Vf.exports=w_});var Jf=d((aT,Zf)=>{"use strict";Zf.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
2
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var ih=d((cT,rh)=>{"use strict";var F_=dn(),{MAX_LENGTH:Qf,CHAR_BACKSLASH:Io,CHAR_BACKTICK:x_,CHAR_COMMA:v_,CHAR_DOT:R_,CHAR_LEFT_PARENTHESES:T_,CHAR_RIGHT_PARENTHESES:O_,CHAR_LEFT_CURLY_BRACE:B_,CHAR_RIGHT_CURLY_BRACE:P_,CHAR_LEFT_SQUARE_BRACKET:eh,CHAR_RIGHT_SQUARE_BRACKET:th,CHAR_DOUBLE_QUOTE:L_,CHAR_SINGLE_QUOTE:I_,CHAR_NO_BREAK_SPACE:N_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:k_}=Jf(),M_=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Qf,r.maxLength):Qf;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,u=n,a=0,c=t.length,l=0,f=0,h,g={},m=()=>t[l++],E=S=>{if(S.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&S.type==="text"){u.value+=S.value;return}return o.nodes.push(S),S.parent=o,S.prev=u,u=S,S};for(E({type:"bos"});l<c;)if(o=s[s.length-1],h=m(),!(h===k_||h===N_)){if(h===Io){E({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===th){E({type:"text",value:"\\"+h});continue}if(h===eh){a++;let S=!0,C;for(;l<c&&(C=m());){if(h+=C,C===eh){a++;continue}if(C===Io){h+=m();continue}if(C===th&&(a--,a===0))break}E({type:"text",value:h});continue}if(h===T_){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:h});continue}if(h===O_){if(o.type!=="paren"){E({type:"text",value:h});continue}o=s.pop(),E({type:"text",value:h}),o=s[s.length-1];continue}if(h===L_||h===I_||h===x_){let S=h,C;for(e.keepQuotes!==!0&&(h="");l<c&&(C=m());){if(C===Io){h+=C+m();continue}if(C===S){e.keepQuotes===!0&&(h+=C);break}h+=C}E({type:"text",value:h});continue}if(h===B_){f++;let C={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=E(C),s.push(o),E({type:"open",value:h});continue}if(h===P_){if(o.type!=="brace"){E({type:"text",value:h});continue}let S="close";o=s.pop(),o.close=!0,E({type:S,value:h}),f--,o=s[s.length-1];continue}if(h===v_&&f>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:F_(o)}]}E({type:"comma",value:h}),o.commas++;continue}if(h===R_&&f>0&&o.commas===0){let S=o.nodes;if(f===0||S.length===0){E({type:"text",value:h});continue}if(u.type==="dot"){if(o.range=[],u.value+=h,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){S.pop();let C=S[S.length-1];C.value+=u.value+h,u=C,o.ranges--;continue}E({type:"dot",value:h});continue}E({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let S=s[s.length-1],C=S.nodes.indexOf(o);S.nodes.splice(C,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),n};rh.exports=M_});var oh=d((lT,sh)=>{"use strict";var nh=dn(),q_=Yf(),H_=Xf(),$_=ih(),Te=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Te.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Te.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Te.parse=(t,e={})=>$_(t,e);Te.stringify=(t,e={})=>nh(typeof t=="string"?Te.parse(t,e):t,e);Te.compile=(t,e={})=>(typeof t=="string"&&(t=Te.parse(t,e)),q_(t,e));Te.expand=(t,e={})=>{typeof t=="string"&&(t=Te.parse(t,e));let r=H_(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Te.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Te.compile(t,e):Te.expand(t,e);sh.exports=Te});var wi=d((fT,fh)=>{"use strict";var U_=require("path"),Je="\\\\/",uh=`[^${Je}]`,dt="\\.",j_="\\+",G_="\\?",gn="\\/",W_="(?=.)",ah="[^/]",No=`(?:${gn}|$)`,ch=`(?:^|${gn})`,ko=`${dt}{1,2}${No}`,z_=`(?!${dt})`,Y_=`(?!${ch}${ko})`,K_=`(?!${dt}{0,1}${No})`,V_=`(?!${ko})`,X_=`[^.${gn}]`,Z_=`${ah}*?`,lh={DOT_LITERAL:dt,PLUS_LITERAL:j_,QMARK_LITERAL:G_,SLASH_LITERAL:gn,ONE_CHAR:W_,QMARK:ah,END_ANCHOR:No,DOTS_SLASH:ko,NO_DOT:z_,NO_DOTS:Y_,NO_DOT_SLASH:K_,NO_DOTS_SLASH:V_,QMARK_NO_DOT:X_,STAR:Z_,START_ANCHOR:ch},J_={...lh,SLASH_LITERAL:`[${Je}]`,QMARK:uh,STAR:`${uh}*?`,DOTS_SLASH:`${dt}{1,2}(?:[${Je}]|$)`,NO_DOT:`(?!${dt})`,NO_DOTS:`(?!(?:^|[${Je}])${dt}{1,2}(?:[${Je}]|$))`,NO_DOT_SLASH:`(?!${dt}{0,1}(?:[${Je}]|$))`,NO_DOTS_SLASH:`(?!${dt}{1,2}(?:[${Je}]|$))`,QMARK_NO_DOT:`[^.${Je}]`,START_ANCHOR:`(?:^|[${Je}])`,END_ANCHOR:`(?:[${Je}]|$)`},Q_={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"};fh.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Q_,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:U_.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?J_:lh}}});var Fi=d(we=>{"use strict";var eS=require("path"),tS=process.platform==="win32",{REGEX_BACKSLASH:rS,REGEX_REMOVE_BACKSLASH:iS,REGEX_SPECIAL_CHARS:nS,REGEX_SPECIAL_CHARS_GLOBAL:sS}=wi();we.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);we.hasRegexChars=t=>nS.test(t);we.isRegexChar=t=>t.length===1&&we.hasRegexChars(t);we.escapeRegex=t=>t.replace(sS,"\\$1");we.toPosixSlashes=t=>t.replace(rS,"/");we.removeBackslashes=t=>t.replace(iS,e=>e==="\\"?"":e);we.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};we.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:tS===!0||eS.sep==="\\";we.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?we.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};we.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};we.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var yh=d((pT,Dh)=>{"use strict";var hh=Fi(),{CHAR_ASTERISK:Mo,CHAR_AT:oS,CHAR_BACKWARD_SLASH:xi,CHAR_COMMA:uS,CHAR_DOT:qo,CHAR_EXCLAMATION_MARK:Ho,CHAR_FORWARD_SLASH:Eh,CHAR_LEFT_CURLY_BRACE:$o,CHAR_LEFT_PARENTHESES:Uo,CHAR_LEFT_SQUARE_BRACKET:aS,CHAR_PLUS:cS,CHAR_QUESTION_MARK:ph,CHAR_RIGHT_CURLY_BRACE:lS,CHAR_RIGHT_PARENTHESES:dh,CHAR_RIGHT_SQUARE_BRACKET:fS}=wi(),mh=t=>t===Eh||t===xi,gh=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},hS=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,c=-1,l=0,f=0,h=!1,g=!1,m=!1,E=!1,S=!1,C=!1,w=!1,k=!1,re=!1,L=!1,q=0,O,B,M={value:"",depth:0,isGlob:!1},ie=()=>c>=i,A=()=>a.charCodeAt(c+1),W=()=>(O=B,a.charCodeAt(++c));for(;c<i;){B=W();let _;if(B===xi){w=M.backslashes=!0,B=W(),B===$o&&(C=!0);continue}if(C===!0||B===$o){for(q++;ie()!==!0&&(B=W());){if(B===xi){w=M.backslashes=!0,W();continue}if(B===$o){q++;continue}if(C!==!0&&B===qo&&(B=W())===qo){if(h=M.isBrace=!0,m=M.isGlob=!0,L=!0,n===!0)continue;break}if(C!==!0&&B===uS){if(h=M.isBrace=!0,m=M.isGlob=!0,L=!0,n===!0)continue;break}if(B===lS&&(q--,q===0)){C=!1,h=M.isBrace=!0,L=!0;break}}if(n===!0)continue;break}if(B===Eh){if(s.push(c),o.push(M),M={value:"",depth:0,isGlob:!1},L===!0)continue;if(O===qo&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(B===cS||B===oS||B===Mo||B===ph||B===Ho)===!0&&A()===Uo){if(m=M.isGlob=!0,E=M.isExtglob=!0,L=!0,B===Ho&&c===l&&(re=!0),n===!0){for(;ie()!==!0&&(B=W());){if(B===xi){w=M.backslashes=!0,B=W();continue}if(B===dh){m=M.isGlob=!0,L=!0;break}}continue}break}if(B===Mo){if(O===Mo&&(S=M.isGlobstar=!0),m=M.isGlob=!0,L=!0,n===!0)continue;break}if(B===ph){if(m=M.isGlob=!0,L=!0,n===!0)continue;break}if(B===aS){for(;ie()!==!0&&(_=W());){if(_===xi){w=M.backslashes=!0,W();continue}if(_===fS){g=M.isBracket=!0,m=M.isGlob=!0,L=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&B===Ho&&c===l){k=M.negated=!0,l++;continue}if(r.noparen!==!0&&B===Uo){if(m=M.isGlob=!0,n===!0){for(;ie()!==!0&&(B=W());){if(B===Uo){w=M.backslashes=!0,B=W();continue}if(B===dh){L=!0;break}}continue}break}if(m===!0){if(L=!0,n===!0)continue;break}}r.noext===!0&&(E=!1,m=!1);let U=a,Ne="",D="";l>0&&(Ne=a.slice(0,l),a=a.slice(l),f-=l),U&&m===!0&&f>0?(U=a.slice(0,f),D=a.slice(f)):m===!0?(U="",D=a):U=a,U&&U!==""&&U!=="/"&&U!==a&&mh(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),r.unescape===!0&&(D&&(D=hh.removeBackslashes(D)),U&&w===!0&&(U=hh.removeBackslashes(U)));let p={prefix:Ne,input:t,start:l,base:U,glob:D,isBrace:h,isBracket:g,isGlob:m,isExtglob:E,isGlobstar:S,negated:k,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,mh(B)||o.push(M),p.tokens=o),r.parts===!0||r.tokens===!0){let _;for(let y=0;y<s.length;y++){let v=_?_+1:l,T=s[y],x=t.slice(v,T);r.tokens&&(y===0&&l!==0?(o[y].isPrefix=!0,o[y].value=Ne):o[y].value=x,gh(o[y]),p.maxDepth+=o[y].depth),(y!==0||x!=="")&&u.push(x),_=T}if(_&&_+1<t.length){let y=t.slice(_+1);u.push(y),r.tokens&&(o[o.length-1].value=y,gh(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=u}return p};Dh.exports=hS});var Sh=d((dT,_h)=>{"use strict";var En=wi(),Oe=Fi(),{MAX_LENGTH:Dn,POSIX_REGEX_SOURCE:pS,REGEX_NON_SPECIAL_CHARS:dS,REGEX_SPECIAL_CHARS_BACKREF:mS,REPLACEMENTS:Ah}=En,gS=(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=>Oe.escapeRegex(n)).join("..")}return r},Tr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,jo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Ah[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Dn,r.maxLength):Dn,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],u=r.capture?"":"?:",a=Oe.isWindows(e),c=En.globChars(a),l=En.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:E,NO_DOT:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:k,QMARK_NO_DOT:re,STAR:L,START_ANCHOR:q}=c,O=F=>`(${u}(?:(?!${q}${F.dot?E:f}).)*?)`,B=r.dot?"":S,M=r.dot?k:re,ie=r.bash===!0?O(r):L;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={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=Oe.removePrefix(t,A),n=t.length;let W=[],U=[],Ne=[],D=s,p,_=()=>A.index===n-1,y=A.peek=(F=1)=>t[A.index+F],v=A.advance=()=>t[++A.index]||"",T=()=>t.slice(A.index+1),x=(F="",K=0)=>{A.consumed+=F,A.index+=K},z=F=>{A.output+=F.output!=null?F.output:F.value,x(F.value)},fe=()=>{let F=1;for(;y()==="!"&&(y(2)!=="("||y(3)==="?");)v(),A.start++,F++;return F%2===0?!1:(A.negated=!0,A.start++,!0)},ne=F=>{A[F]++,Ne.push(F)},_e=F=>{A[F]--,Ne.pop()},P=F=>{if(D.type==="globstar"){let K=A.braces>0&&(F.type==="comma"||F.type==="brace"),b=F.extglob===!0||W.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!K&&!b&&(A.output=A.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=ie,A.output+=D.output)}if(W.length&&F.type!=="paren"&&(W[W.length-1].inner+=F.value),(F.value||F.output)&&z(F),D&&D.type==="text"&&F.type==="text"){D.value+=F.value,D.output=(D.output||"")+F.value;return}F.prev=D,o.push(F),D=F},ke=(F,K)=>{let b={...l[K],conditions:1,inner:""};b.prev=D,b.parens=A.parens,b.output=A.output;let N=(r.capture?"(":"")+b.open;ne("parens"),P({type:F,value:K,output:A.output?"":m}),P({type:"paren",extglob:!0,value:v(),output:N}),W.push(b)},sD=F=>{let K=F.close+(r.capture?")":""),b;if(F.type==="negate"){let N=ie;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(N=O(r)),(N!==ie||_()||/^\)+$/.test(T()))&&(K=F.close=`)$))${N}`),F.inner.includes("*")&&(b=T())&&/^\.[^\\/.]+$/.test(b)){let J=jo(b,{...e,fastpaths:!1}).output;K=F.close=`)${J})${N})`}F.prev.type==="bos"&&(A.negatedExtglob=!0)}P({type:"paren",extglob:!0,value:p,output:K}),_e("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,K=t.replace(mS,(b,N,J,Se,se,uo)=>Se==="\\"?(F=!0,b):Se==="?"?N?N+Se+(se?k.repeat(se.length):""):uo===0?M+(se?k.repeat(se.length):""):k.repeat(J.length):Se==="."?f.repeat(J.length):Se==="*"?N?N+Se+(se?ie:""):ie:N?b:`\\${b}`);return F===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),K===t&&r.contains===!0?(A.output=t,A):(A.output=Oe.wrapOutput(K,A,e),A)}for(;!_();){if(p=v(),p==="\0")continue;if(p==="\\"){let b=y();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){p+="\\",P({type:"text",value:p});continue}let N=/^\\+/.exec(T()),J=0;if(N&&N[0].length>2&&(J=N[0].length,A.index+=J,J%2!==0&&(p+="\\")),r.unescape===!0?p=v():p+=v(),A.brackets===0){P({type:"text",value:p});continue}}if(A.brackets>0&&(p!=="]"||D.value==="["||D.value==="[^")){if(r.posix!==!1&&p===":"){let b=D.value.slice(1);if(b.includes("[")&&(D.posix=!0,b.includes(":"))){let N=D.value.lastIndexOf("["),J=D.value.slice(0,N),Se=D.value.slice(N+2),se=pS[Se];if(se){D.value=J+se,A.backtrack=!0,v(),!s.output&&o.indexOf(D)===1&&(s.output=m);continue}}}(p==="["&&y()!==":"||p==="-"&&y()==="]")&&(p=`\\${p}`),p==="]"&&(D.value==="["||D.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&D.value==="["&&(p="^"),D.value+=p,z({value:p});continue}if(A.quotes===1&&p!=='"'){p=Oe.escapeRegex(p),D.value+=p,z({value:p});continue}if(p==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&P({type:"text",value:p});continue}if(p==="("){ne("parens"),P({type:"paren",value:p});continue}if(p===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Tr("opening","("));let b=W[W.length-1];if(b&&A.parens===b.parens+1){sD(W.pop());continue}P({type:"paren",value:p,output:A.parens?")":"\\)"}),_e("parens");continue}if(p==="["){if(r.nobracket===!0||!T().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Tr("closing","]"));p=`\\${p}`}else ne("brackets");P({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){P({type:"text",value:p,output:`\\${p}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Tr("opening","["));P({type:"text",value:p,output:`\\${p}`});continue}_e("brackets");let b=D.value.slice(1);if(D.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(p=`/${p}`),D.value+=p,z({value:p}),r.literalBrackets===!1||Oe.hasRegexChars(b))continue;let N=Oe.escapeRegex(D.value);if(A.output=A.output.slice(0,-D.value.length),r.literalBrackets===!0){A.output+=N,D.value=N;continue}D.value=`(${u}${N}|${D.value})`,A.output+=D.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let b={type:"brace",value:p,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};U.push(b),P(b);continue}if(p==="}"){let b=U[U.length-1];if(r.nobrace===!0||!b){P({type:"text",value:p,output:p});continue}let N=")";if(b.dots===!0){let J=o.slice(),Se=[];for(let se=J.length-1;se>=0&&(o.pop(),J[se].type!=="brace");se--)J[se].type!=="dots"&&Se.unshift(J[se].value);N=gS(Se,r),A.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let J=A.output.slice(0,b.outputIndex),Se=A.tokens.slice(b.tokensIndex);b.value=b.output="\\{",p=N="\\}",A.output=J;for(let se of Se)A.output+=se.output||se.value}P({type:"brace",value:p,output:N}),_e("braces"),U.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,P({type:"text",value:p});continue}if(p===","){let b=p,N=U[U.length-1];N&&Ne[Ne.length-1]==="braces"&&(N.comma=!0,b="|"),P({type:"comma",value:p,output:b});continue}if(p==="/"){if(D.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",o.pop(),D=s;continue}P({type:"slash",value:p,output:g});continue}if(p==="."){if(A.braces>0&&D.type==="dot"){D.value==="."&&(D.output=f);let b=U[U.length-1];D.type="dots",D.output+=p,D.value+=p,b.dots=!0;continue}if(A.braces+A.parens===0&&D.type!=="bos"&&D.type!=="slash"){P({type:"text",value:p,output:f});continue}P({type:"dot",value:p,output:f});continue}if(p==="?"){if(!(D&&D.value==="(")&&r.noextglob!==!0&&y()==="("&&y(2)!=="?"){ke("qmark",p);continue}if(D&&D.type==="paren"){let N=y(),J=p;if(N==="<"&&!Oe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(T()))&&(J=`\\${p}`),P({type:"text",value:p,output:J});continue}if(r.dot!==!0&&(D.type==="slash"||D.type==="bos")){P({type:"qmark",value:p,output:re});continue}P({type:"qmark",value:p,output:k});continue}if(p==="!"){if(r.noextglob!==!0&&y()==="("&&(y(2)!=="?"||!/[!=<:]/.test(y(3)))){ke("negate",p);continue}if(r.nonegate!==!0&&A.index===0){fe();continue}}if(p==="+"){if(r.noextglob!==!0&&y()==="("&&y(2)!=="?"){ke("plus",p);continue}if(D&&D.value==="("||r.regex===!1){P({type:"plus",value:p,output:h});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||A.parens>0){P({type:"plus",value:p});continue}P({type:"plus",value:h});continue}if(p==="@"){if(r.noextglob!==!0&&y()==="("&&y(2)!=="?"){P({type:"at",extglob:!0,value:p,output:""});continue}P({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let b=dS.exec(T());b&&(p+=b[0],A.index+=b[0].length),P({type:"text",value:p});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=p,D.output=ie,A.backtrack=!0,A.globstar=!0,x(p);continue}let F=T();if(r.noextglob!==!0&&/^\([^?]/.test(F)){ke("star",p);continue}if(D.type==="star"){if(r.noglobstar===!0){x(p);continue}let b=D.prev,N=b.prev,J=b.type==="slash"||b.type==="bos",Se=N&&(N.type==="star"||N.type==="globstar");if(r.bash===!0&&(!J||F[0]&&F[0]!=="/")){P({type:"star",value:p,output:""});continue}let se=A.braces>0&&(b.type==="comma"||b.type==="brace"),uo=W.length&&(b.type==="pipe"||b.type==="paren");if(!J&&b.type!=="paren"&&!se&&!uo){P({type:"star",value:p,output:""});continue}for(;F.slice(0,3)==="/**";){let tn=t[A.index+4];if(tn&&tn!=="/")break;F=F.slice(3),x("/**",3)}if(b.type==="bos"&&_()){D.type="globstar",D.value+=p,D.output=O(r),A.output=D.output,A.globstar=!0,x(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!Se&&_()){A.output=A.output.slice(0,-(b.output+D.output).length),b.output=`(?:${b.output}`,D.type="globstar",D.output=O(r)+(r.strictSlashes?")":"|$)"),D.value+=p,A.globstar=!0,A.output+=b.output+D.output,x(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&F[0]==="/"){let tn=F[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(b.output+D.output).length),b.output=`(?:${b.output}`,D.type="globstar",D.output=`${O(r)}${g}|${g}${tn})`,D.value+=p,A.output+=b.output+D.output,A.globstar=!0,x(p+v()),P({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&F[0]==="/"){D.type="globstar",D.value+=p,D.output=`(?:^|${g}|${O(r)}${g})`,A.output=D.output,A.globstar=!0,x(p+v()),P({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-D.output.length),D.type="globstar",D.output=O(r),D.value+=p,A.output+=D.output,A.globstar=!0,x(p);continue}let K={type:"star",value:p,output:ie};if(r.bash===!0){K.output=".*?",(D.type==="bos"||D.type==="slash")&&(K.output=B+K.output),P(K);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&r.regex===!0){K.output=p,P(K);continue}(A.index===A.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(A.output+=C,D.output+=C):r.dot===!0?(A.output+=w,D.output+=w):(A.output+=B,D.output+=B),y()!=="*"&&(A.output+=m,D.output+=m)),P(K)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Tr("closing","]"));A.output=Oe.escapeLast(A.output,"["),_e("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Tr("closing",")"));A.output=Oe.escapeLast(A.output,"("),_e("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Tr("closing","}"));A.output=Oe.escapeLast(A.output,"{"),_e("braces")}if(r.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&P({type:"maybe_slash",value:"",output:`${g}?`}),A.backtrack===!0){A.output="";for(let F of A.tokens)A.output+=F.output!=null?F.output:F.value,F.suffix&&(A.output+=F.suffix)}return A};jo.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Dn,r.maxLength):Dn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Ah[t]||t;let s=Oe.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:m}=En.globChars(s),E=r.dot?f:l,S=r.dot?h:l,C=r.capture?"":"?:",w={negated:!1,prefix:""},k=r.bash===!0?".*?":g;r.capture&&(k=`(${k})`);let re=B=>B.noglobstar===!0?k:`(${C}(?:(?!${m}${B.dot?c:o}).)*?)`,L=B=>{switch(B){case"*":return`${E}${a}${k}`;case".*":return`${o}${a}${k}`;case"*.*":return`${E}${k}${o}${a}${k}`;case"*/*":return`${E}${k}${u}${a}${S}${k}`;case"**":return E+re(r);case"**/*":return`(?:${E}${re(r)}${u})?${S}${a}${k}`;case"**/*.*":return`(?:${E}${re(r)}${u})?${S}${k}${o}${a}${k}`;case"**/.*":return`(?:${E}${re(r)}${u})?${o}${a}${k}`;default:{let M=/^(.*?)\.(\w+)$/.exec(B);if(!M)return;let ie=L(M[1]);return ie?ie+o+M[2]:void 0}}},q=Oe.removePrefix(t,w),O=L(q);return O&&r.strictSlashes!==!0&&(O+=`${u}?`),O};_h.exports=jo});var bh=d((mT,Ch)=>{"use strict";var ES=require("path"),DS=yh(),Go=Sh(),Wo=Fi(),yS=wi(),AS=t=>t&&typeof t=="object"&&!Array.isArray(t),Q=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>Q(h,e,r));return h=>{for(let g of l){let m=g(h);if(m)return m}return!1}}let i=AS(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Wo.isWindows(e),o=i?Q.compileRe(t,e):Q.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};a=Q(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:g,output:m}=Q.test(l,o,e,{glob:t,posix:s}),E={glob:t,state:u,regex:o,posix:s,input:l,output:m,match:g,isMatch:h};return typeof n.onResult=="function"&&n.onResult(E),h===!1?(E.isMatch=!1,f?E:!1):a(l)?(typeof n.onIgnore=="function"&&n.onIgnore(E),E.isMatch=!1,f?E:!1):(typeof n.onMatch=="function"&&n.onMatch(E),f?E:!0)};return r&&(c.state=u),c};Q.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?Wo.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=Q.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};Q.matchBase=(t,e,r,i=Wo.isWindows(r))=>(e instanceof RegExp?e:Q.makeRe(e,r)).test(ES.basename(t));Q.isMatch=(t,e,r)=>Q(e,r)(t);Q.parse=(t,e)=>Array.isArray(t)?t.map(r=>Q.parse(r,e)):Go(t,{...e,fastpaths:!1});Q.scan=(t,e)=>DS(t,e);Q.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=Q.toRegex(u,e);return i===!0&&(a.state=t),a};Q.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=Go.fastpaths(t,e)),n.output||(n=Go(t,e)),Q.compileRe(n,e,r,i)};Q.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/$^/}};Q.constants=yS;Ch.exports=Q});var Fh=d((gT,wh)=>{"use strict";wh.exports=bh()});var Oh=d((ET,Th)=>{"use strict";var vh=require("util"),Rh=oh(),Qe=Fh(),zo=Fi(),xh=t=>t===""||t==="./",X=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Qe(String(e[l]),{...r,onResult:u},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let g of t){let m=f(g,!0);(h?!m.isMatch:m.isMatch)&&(h?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};X.match=X;X.matcher=(t,e)=>Qe(t,e);X.isMatch=(t,e,r)=>Qe(e,r)(t);X.any=X.isMatch;X.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(X(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};X.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${vh.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>X.contains(t,i,r));if(typeof e=="string"){if(xh(t)||xh(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return X.isMatch(t,e,{...r,contains:!0})};X.matchKeys=(t,e,r)=>{if(!zo.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=X(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};X.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Qe(String(n),r);if(i.some(o=>s(o)))return!0}return!1};X.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Qe(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};X.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${vh.inspect(t)}"`);return[].concat(e).every(i=>Qe(i,r)(t))};X.capture=(t,e,r)=>{let i=zo.isWindows(r),s=Qe.makeRe(String(t),{...r,capture:!0}).exec(i?zo.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};X.makeRe=(...t)=>Qe.makeRe(...t);X.scan=(...t)=>Qe.scan(...t);X.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Rh(String(i),e))r.push(Qe.parse(n,e));return r};X.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Rh(t,e)};X.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return X.braces(t,{...e,expand:!0})};Th.exports=X});var qh=d(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.matchAny=I.convertPatternsToRe=I.makeRe=I.getPatternParts=I.expandBraceExpansion=I.expandPatternsWithBraceExpansion=I.isAffectDepthOfReadingPattern=I.endsWithSlashGlobStar=I.hasGlobStar=I.getBaseDirectory=I.isPatternRelatedToParentDirectory=I.getPatternsOutsideCurrentDirectory=I.getPatternsInsideCurrentDirectory=I.getPositivePatterns=I.getNegativePatterns=I.isPositivePattern=I.isNegativePattern=I.convertToNegativePattern=I.convertToPositivePattern=I.isDynamicPattern=I.isStaticPattern=void 0;var _S=require("path"),SS=Cf(),Yo=Oh(),Bh="**",CS="\\",bS=/[*?]|^!/,wS=/\[[^[]*]/,FS=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,xS=/[!*+?@]\([^(]*\)/,vS=/,|\.\./;function Ph(t,e={}){return!Lh(t,e)}I.isStaticPattern=Ph;function Lh(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(CS)||bS.test(t)||wS.test(t)||FS.test(t)||e.extglob!==!1&&xS.test(t)||e.braceExpansion!==!1&&RS(t))}I.isDynamicPattern=Lh;function RS(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 vS.test(i)}function TS(t){return yn(t)?t.slice(1):t}I.convertToPositivePattern=TS;function OS(t){return"!"+t}I.convertToNegativePattern=OS;function yn(t){return t.startsWith("!")&&t[1]!=="("}I.isNegativePattern=yn;function Ih(t){return!yn(t)}I.isPositivePattern=Ih;function BS(t){return t.filter(yn)}I.getNegativePatterns=BS;function PS(t){return t.filter(Ih)}I.getPositivePatterns=PS;function LS(t){return t.filter(e=>!Ko(e))}I.getPatternsInsideCurrentDirectory=LS;function IS(t){return t.filter(Ko)}I.getPatternsOutsideCurrentDirectory=IS;function Ko(t){return t.startsWith("..")||t.startsWith("./..")}I.isPatternRelatedToParentDirectory=Ko;function NS(t){return SS(t,{flipBackslashes:!1})}I.getBaseDirectory=NS;function kS(t){return t.includes(Bh)}I.hasGlobStar=kS;function Nh(t){return t.endsWith("/"+Bh)}I.endsWithSlashGlobStar=Nh;function MS(t){let e=_S.basename(t);return Nh(t)||Ph(e)}I.isAffectDepthOfReadingPattern=MS;function qS(t){return t.reduce((e,r)=>e.concat(kh(r)),[])}I.expandPatternsWithBraceExpansion=qS;function kh(t){return Yo.braces(t,{expand:!0,nodupes:!0})}I.expandBraceExpansion=kh;function HS(t,e){let{parts:r}=Yo.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}I.getPatternParts=HS;function Mh(t,e){return Yo.makeRe(t,e)}I.makeRe=Mh;function $S(t,e){return t.map(r=>Mh(r,e))}I.convertPatternsToRe=$S;function US(t,e){return e.some(r=>r.test(t))}I.matchAny=US});var jh=d((yT,Uh)=>{"use strict";var jS=require("stream"),Hh=jS.PassThrough,GS=Array.prototype.slice;Uh.exports=WS;function WS(){let t=[],e=GS.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=Hh(i);function u(){for(let l=0,f=arguments.length;l<f;l++)t.push($h(arguments[l],i));return a(),this}function a(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,a())}function g(m){function E(){m.removeListener("merge2UnpipeEnd",E),m.removeListener("end",E),s&&m.removeListener("error",S),h()}function S(C){o.emit("error",C)}if(m._readableState.endEmitted)return h();m.on("merge2UnpipeEnd",E),m.on("end",E),s&&m.on("error",S),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)g(l[m]);h()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function $h(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=$h(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Hh(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Wh=d(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.merge=void 0;var zS=jh();function YS(t){let e=zS(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Gh(t)),e.once("end",()=>Gh(t)),e}An.merge=YS;function Gh(t){t.forEach(e=>e.emit("close"))}});var zh=d(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.isEmpty=Or.isString=void 0;function KS(t){return typeof t=="string"}Or.isString=KS;function VS(t){return t===""}Or.isEmpty=VS});var mt=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var XS=pf();de.array=XS;var ZS=df();de.errno=ZS;var JS=mf();de.fs=JS;var QS=gf();de.path=QS;var eC=qh();de.pattern=eC;var tC=Wh();de.stream=tC;var rC=zh();de.string=rC});var Vh=d(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var gt=mt();function iC(t,e){let r=Yh(t),i=Kh(t,e.ignore),n=r.filter(a=>gt.pattern.isStaticPattern(a,e)),s=r.filter(a=>gt.pattern.isDynamicPattern(a,e)),o=Vo(n,i,!1),u=Vo(s,i,!0);return o.concat(u)}me.generate=iC;function Vo(t,e,r){let i=[],n=gt.pattern.getPatternsOutsideCurrentDirectory(t),s=gt.pattern.getPatternsInsideCurrentDirectory(t),o=Xo(n),u=Xo(s);return i.push(...Zo(o,e,r)),"."in u?i.push(Jo(".",s,e,r)):i.push(...Zo(u,e,r)),i}me.convertPatternsToTasks=Vo;function Yh(t){return gt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Yh;function Kh(t,e){return gt.pattern.getNegativePatterns(t).concat(e).map(gt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Kh;function Xo(t){let e={};return t.reduce((r,i)=>{let n=gt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}me.groupPatternsByBaseDirectory=Xo;function Zo(t,e,r){return Object.keys(t).map(i=>Jo(i,t[i],e,r))}me.convertPatternGroupsToTasks=Zo;function Jo(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(gt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=Jo});var Zh=d(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.removeDuplicateSlashes=Br.transform=void 0;var nC=/(?!^)\/{2,}/g;function sC(t){return t.map(e=>Xh(e))}Br.transform=sC;function Xh(t){return t.replace(nC,"/")}Br.removeDuplicateSlashes=Xh});var Qh=d(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.read=void 0;function oC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Jh(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Qo(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Jh(r,s);return}Qo(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Qo(r,o)})})}_n.read=oC;function Jh(t,e){t(e)}function Qo(t,e){t(null,e)}});var ep=d(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.read=void 0;function uC(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}}Sn.read=uC});var tp=d(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var Cn=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:Cn.lstat,stat:Cn.stat,lstatSync:Cn.lstatSync,statSync:Cn.statSync};function aC(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Bt.FILE_SYSTEM_ADAPTER),t)}Bt.createFileSystemAdapter=aC});var rp=d(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var cC=tp(),eu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=cC.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}};tu.default=eu});var sr=d(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.statSync=Pt.stat=Pt.Settings=void 0;var ip=Qh(),lC=ep(),ru=rp();Pt.Settings=ru.default;function fC(t,e,r){if(typeof e=="function"){ip.read(t,iu(),e);return}ip.read(t,iu(e),r)}Pt.stat=fC;function hC(t,e){let r=iu(e);return lC.read(t,r)}Pt.statSync=hC;function iu(t={}){return t instanceof ru.default?t:new ru.default(t)}});var op=d((TT,sp)=>{var np;sp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(np||(np=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var ap=d((OT,up)=>{up.exports=dC;var pC=op();function dC(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(a){function c(){e&&e(a,r),e=null}s?pC(c):c()}function u(a,c,l){r[a]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(a){t[a](function(c,l){u(a,c,l)})}):t.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var nu=d(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var bn=process.versions.node.split(".");if(bn[0]===void 0||bn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var cp=Number.parseInt(bn[0],10),mC=Number.parseInt(bn[1],10),lp=10,gC=10,EC=cp>lp,DC=cp===lp&&mC>=gC;wn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=EC||DC});var fp=d(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.createDirentFromStats=void 0;var su=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 yC(t,e){return new su(t,e)}Fn.createDirentFromStats=yC});var ou=d(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.fs=void 0;var AC=fp();xn.fs=AC});var uu=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.joinPathSegments=void 0;function _C(t,e,r){return t.endsWith(r)?t+e:t+r+e}vn.joinPathSegments=_C});var Ep=d(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.readdir=Lt.readdirWithFileTypes=Lt.read=void 0;var SC=sr(),hp=ap(),CC=nu(),pp=ou(),dp=uu();function bC(t,e,r){if(!e.stats&&CC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){mp(t,e,r);return}gp(t,e,r)}Lt.read=bC;function mp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Rn(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:dp.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){au(r,s);return}let o=s.map(u=>wC(u,e));hp(o,(u,a)=>{if(u!==null){Rn(r,u);return}au(r,a)})})}Lt.readdirWithFileTypes=mp;function wC(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=pp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function gp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Rn(r,i);return}let s=n.map(o=>{let u=dp.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{SC.stat(u,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:pp.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),a(null,f)})}});hp(s,(o,u)=>{if(o!==null){Rn(r,o);return}au(r,u)})})}Lt.readdir=gp;function Rn(t,e){t(e)}function au(t,e){t(null,e)}});var Sp=d(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.readdir=It.readdirWithFileTypes=It.read=void 0;var FC=sr(),xC=nu(),Dp=ou(),yp=uu();function vC(t,e){return!e.stats&&xC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ap(t,e):_p(t,e)}It.read=vC;function Ap(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:yp.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Dp.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}It.readdirWithFileTypes=Ap;function _p(t,e){return e.fs.readdirSync(t).map(i=>{let n=yp.joinPathSegments(t,i,e.pathSegmentSeparator),s=FC.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Dp.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}It.readdir=_p});var Cp=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var Pr=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:Pr.lstat,stat:Pr.stat,lstatSync:Pr.lstatSync,statSync:Pr.statSync,readdir:Pr.readdir,readdirSync:Pr.readdirSync};function RC(t){return t===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),t)}Nt.createFileSystemAdapter=RC});var bp=d(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var TC=require("path"),OC=sr(),BC=Cp(),cu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=BC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,TC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new OC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};lu.default=cu});var Tn=d(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.Settings=kt.scandirSync=kt.scandir=void 0;var wp=Ep(),PC=Sp(),fu=bp();kt.Settings=fu.default;function LC(t,e,r){if(typeof e=="function"){wp.read(t,hu(),e);return}wp.read(t,hu(e),r)}kt.scandir=LC;function IC(t,e){let r=hu(e);return PC.read(t,r)}kt.scandirSync=IC;function hu(t={}){return t instanceof fu.default?t:new fu.default(t)}});var xp=d(($T,Fp)=>{"use strict";function NC(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}}Fp.exports=NC});var Rp=d((UT,pu)=>{"use strict";var kC=xp();function vp(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=kC(MC),n=null,s=null,o=0,u=null,a={push:E,drain:qe,saturated:qe,pause:l,paused:!1,concurrency:r,running:c,resume:g,idle:m,length:f,getQueue:h,unshift:S,empty:qe,kill:w,killAndDrain:k,error:re};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var L=n,q=0;L;)L=L.next,q++;return q}function h(){for(var L=n,q=[];L;)q.push(L.value),L=L.next;return q}function g(){if(a.paused){a.paused=!1;for(var L=0;L<a.concurrency;L++)o++,C()}}function m(){return o===0&&a.length()===0}function E(L,q){var O=i.get();O.context=t,O.release=C,O.value=L,O.callback=q||qe,O.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=O,s=O):(n=O,s=O,a.saturated()):(o++,e.call(t,O.value,O.worked))}function S(L,q){var O=i.get();O.context=t,O.release=C,O.value=L,O.callback=q||qe,o===a.concurrency||a.paused?n?(O.next=n,n=O):(n=O,s=O,a.saturated()):(o++,e.call(t,O.value,O.worked))}function C(L){L&&i.release(L);var q=n;q?a.paused?o--:(s===n&&(s=null),n=q.next,q.next=null,e.call(t,q.value,q.worked),s===null&&a.empty()):--o===0&&a.drain()}function w(){n=null,s=null,a.drain=qe}function k(){n=null,s=null,a.drain(),a.drain=qe}function re(L){u=L}}function qe(){}function MC(){this.value=null,this.callback=qe,this.next=null,this.release=qe,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=qe,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function qC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var n=vp(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=c,n;function u(l){var f=new Promise(function(h,g){s(l,function(m,E){if(m){g(m);return}h(E)})});return f.catch(qe),f}function a(l){var f=new Promise(function(h,g){o(l,function(m,E){if(m){g(m);return}h(E)})});return f.catch(qe),f}function c(){var l=n.drain,f=new Promise(function(h){n.drain=function(){l(),h()}});return f}}pu.exports=vp;pu.exports.promise=qC});var On=d(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.joinPathSegments=et.replacePathSegmentSeparator=et.isAppliedFilter=et.isFatalError=void 0;function HC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}et.isFatalError=HC;function $C(t,e){return t===null||t(e)}et.isAppliedFilter=$C;function UC(t,e){return t.split(/[/\\]/).join(e)}et.replacePathSegmentSeparator=UC;function jC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}et.joinPathSegments=jC});var gu=d(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var GC=On(),du=class{constructor(e,r){this._root=e,this._settings=r,this._root=GC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};mu.default=du});var yu=d(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var WC=require("events"),zC=Tn(),YC=Rp(),Bn=On(),KC=gu(),Eu=class extends KC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=zC.scandir,this._emitter=new WC.EventEmitter,this._queue=YC(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)}};Du.default=Eu});var Tp=d(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var VC=yu(),Au=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{XC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{ZC(e,this._storage)}),this._reader.read()}};_u.default=Au;function XC(t,e){t(e)}function ZC(t,e){t(null,e)}});var Op=d(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var JC=require("stream"),QC=yu(),Su=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new QC.default(this._root,this._settings),this._stream=new JC.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}};Cu.default=Su});var Bp=d(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var eb=Tn(),Pn=On(),tb=gu(),bu=class extends tb.default{constructor(){super(...arguments),this._scandir=eb.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(Pn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Pn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Pn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};wu.default=bu});var Pp=d(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var rb=Bp(),Fu=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new rb.default(this._root,this._settings)}read(){return this._reader.read()}};xu.default=Fu});var Lp=d(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var ib=require("path"),nb=Tn(),vu=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,ib.sep),this.fsScandirSettings=new nb.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}};Ru.default=vu});var In=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.Settings=tt.walkStream=tt.walkSync=tt.walk=void 0;var Ip=Tp(),sb=Op(),ob=Pp(),Tu=Lp();tt.Settings=Tu.default;function ub(t,e,r){if(typeof e=="function"){new Ip.default(t,Ln()).read(e);return}new Ip.default(t,Ln(e)).read(r)}tt.walk=ub;function ab(t,e){let r=Ln(e);return new ob.default(t,r).read()}tt.walkSync=ab;function cb(t,e){let r=Ln(e);return new sb.default(t,r).read()}tt.walkStream=cb;function Ln(t={}){return t instanceof Tu.default?t:new Tu.default(t)}});var Nn=d(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var lb=require("path"),fb=sr(),Np=mt(),Ou=class{constructor(e){this._settings=e,this._fsStatSettings=new fb.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return lb.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Np.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Np.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Bu.default=Ou});var Iu=d(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var hb=require("stream"),pb=sr(),db=In(),mb=Nn(),Pu=class extends mb.default{constructor(){super(...arguments),this._walkStream=db.walkStream,this._stat=pb.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new hb.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);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))})}};Lu.default=Pu});var kp=d(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var gb=In(),Eb=Nn(),Db=Iu(),Nu=class extends Eb.default{constructor(){super(...arguments),this._walkAsync=gb.walk,this._readerStream=new Db.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",u=>i.push(u)),n.once("end",()=>s(i))})}};ku.default=Nu});var Mp=d(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Lr=mt(),Mu=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Lr.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 Lr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Lr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Lr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Lr.array.splitWhen(e,r=>r.dynamic&&Lr.pattern.hasGlobStar(r.pattern))}};qu.default=Mu});var qp=d($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var yb=Mp(),Hu=class extends yb.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((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};$u.default=Hu});var Hp=d(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var kn=mt(),Ab=qp(),Uu=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 Ab.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(kn.pattern.isAffectDepthOfReadingPattern);return kn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=kn.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!kn.pattern.matchAny(e,r)}};ju.default=Uu});var $p=d(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var or=mt(),Gu=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=or.pattern.convertPatternsToRe(e,this._micromatchOptions),n=or.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=or.path.makeAbsolute(this._settings.cwd,e);return or.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=or.path.removeLeadingDotSegment(e),s=or.pattern.matchAny(n,r);return!s&&i?or.pattern.matchAny(n+"/",r):s}};Wu.default=Gu});var Up=d(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var _b=mt(),zu=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return _b.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Yu.default=zu});var Gp=d(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var jp=mt(),Ku=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=jp.path.makeAbsolute(this._settings.cwd,r),r=jp.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Vu.default=Ku});var Mn=d(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var Sb=require("path"),Cb=Hp(),bb=$p(),wb=Up(),Fb=Gp(),Xu=class{constructor(e){this._settings=e,this.errorFilter=new wb.default(this._settings),this.entryFilter=new bb.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Cb.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fb.default(this._settings)}_getRootDirectory(e){return Sb.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}}};Zu.default=Xu});var Wp=d(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var xb=kp(),vb=Mn(),Ju=class extends vb.default{constructor(){super(...arguments),this._reader=new xb.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)}};Qu.default=Ju});var zp=d(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var Rb=require("stream"),Tb=Iu(),Ob=Mn(),ea=class extends Ob.default{constructor(){super(...arguments),this._reader=new Tb.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new Rb.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)}};ta.default=ea});var Yp=d(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var Bb=sr(),Pb=In(),Lb=Nn(),ra=class extends Lb.default{constructor(){super(...arguments),this._walkSync=Pb.walkSync,this._statSync=Bb.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)}};ia.default=ra});var Kp=d(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var Ib=Yp(),Nb=Mn(),na=class extends Nb.default{constructor(){super(...arguments),this._reader=new Ib.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)}};sa.default=na});var Vp=d(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ir=require("fs"),kb=require("os"),Mb=Math.max(kb.cpus().length,1);Nr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ir.lstat,lstatSync:Ir.lstatSync,stat:Ir.stat,statSync:Ir.statSync,readdir:Ir.readdir,readdirSync:Ir.readdirSync};var oa=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,Mb),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({},Nr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Nr.default=oa});var Qp=d((pO,Jp)=>{"use strict";var Xp=Vh(),Zp=Zh(),qb=Wp(),Hb=zp(),$b=Kp(),ua=Vp(),ur=mt();async function aa(t,e){kr(t);let r=ca(t,qb.default,e),i=await Promise.all(r);return ur.array.flatten(i)}(function(t){function e(o,u){kr(o);let a=ca(o,$b.default,u);return ur.array.flatten(a)}t.sync=e;function r(o,u){kr(o);let a=ca(o,Hb.default,u);return ur.stream.merge(a)}t.stream=r;function i(o,u){kr(o);let a=Zp.transform([].concat(o)),c=new ua.default(u);return Xp.generate(a,c)}t.generateTasks=i;function n(o,u){kr(o);let a=new ua.default(u);return ur.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return kr(o),ur.path.escape(o)}t.escapePath=s})(aa||(aa={}));function ca(t,e,r){let i=Zp.transform([].concat(t)),n=new ua.default(r),s=Xp.generate(i,n),o=new e(n);return s.map(o.read,o)}function kr(t){if(![].concat(t).every(i=>ur.string.isString(i)&&!ur.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Jp.exports=aa});var pd=d((yO,hd)=>{hd.exports=fd;fd.sync=t1;var cd=require("fs");function e1(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 ld(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:e1(e,r)}function fd(t,e,r){cd.stat(t,function(i,n){r(i,i?!1:ld(n,t,e))})}function t1(t,e){return ld(cd.statSync(t),t,e)}});var Dd=d((AO,Ed)=>{Ed.exports=md;md.sync=r1;var dd=require("fs");function md(t,e,r){dd.stat(t,function(i,n){r(i,i?!1:gd(n,e))})}function r1(t,e){return gd(dd.statSync(t),e)}function gd(t,e){return t.isFile()&&i1(t,e)}function i1(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(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=u|a,f=r&c||r&a&&n===o||r&u&&i===s||r&l&&s===0;return f}});var Ad=d((SO,yd)=>{var _O=require("fs"),qn;process.platform==="win32"||global.TESTING_WINDOWS?qn=pd():qn=Dd();yd.exports=la;la.sync=n1;function la(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){la(t,e||{},function(s,o){s?n(s):i(o)})})}qn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function n1(t,e){try{return qn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var xd=d((CO,Fd)=>{var qr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",_d=require("path"),s1=qr?";":":",Sd=Ad(),Cd=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),bd=(t,e)=>{let r=e.colon||s1,i=t.match(/\//)||qr&&t.match(/\\/)?[""]:[...qr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=qr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=qr?n.split(r):[""];return qr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},wd=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=bd(t,e),o=[],u=c=>new Promise((l,f)=>{if(c===i.length)return e.all&&o.length?l(o):f(Cd(t));let h=i[c],g=/^".*"$/.test(h)?h.slice(1,-1):h,m=_d.join(g,t),E=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(a(E,c,0))}),a=(c,l,f)=>new Promise((h,g)=>{if(f===n.length)return h(u(l+1));let m=n[f];Sd(c+m,{pathExt:s},(E,S)=>{if(!E&&S)if(e.all)o.push(c+m);else return h(c+m);return h(a(c,l,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},o1=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=bd(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=_d.join(a,t),l=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<i.length;f++){let h=l+i[f];try{if(Sd.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Cd(t)};Fd.exports=wd;wd.sync=o1});var ha=d((bO,fa)=>{"use strict";var vd=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};fa.exports=vd;fa.exports.default=vd});var Bd=d((wO,Od)=>{"use strict";var Rd=require("path"),u1=xd(),a1=ha();function Td(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=u1.sync(t.command,{path:r[a1({env:r})],pathExt:e?Rd.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Rd.resolve(n?t.options.cwd:"",o)),o}function c1(t){return Td(t)||Td(t,!0)}Od.exports=c1});var Pd=d((FO,da)=>{"use strict";var pa=/([()\][%!^"`<>&|;, *?])/g;function l1(t){return t=t.replace(pa,"^$1"),t}function f1(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(pa,"^$1"),e&&(t=t.replace(pa,"^$1")),t}da.exports.command=l1;da.exports.argument=f1});var Id=d((xO,Ld)=>{"use strict";Ld.exports=/^#!(.*)/});var kd=d((vO,Nd)=>{"use strict";var h1=Id();Nd.exports=(t="")=>{let e=t.match(h1);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var qd=d((RO,Md)=>{"use strict";var ma=require("fs"),p1=kd();function d1(t){let r=Buffer.alloc(150),i;try{i=ma.openSync(t,"r"),ma.readSync(i,r,0,150,0),ma.closeSync(i)}catch{}return p1(r.toString())}Md.exports=d1});var jd=d((TO,Ud)=>{"use strict";var m1=require("path"),Hd=Bd(),$d=Pd(),g1=qd(),E1=process.platform==="win32",D1=/\.(?:com|exe)$/i,y1=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function A1(t){t.file=Hd(t);let e=t.file&&g1(t.file);return e?(t.args.unshift(t.file),t.command=e,Hd(t)):t.file}function _1(t){if(!E1)return t;let e=A1(t),r=!D1.test(e);if(t.options.forceShell||r){let i=y1.test(e);t.command=m1.normalize(t.command),t.command=$d.command(t.command),t.args=t.args.map(s=>$d.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function S1(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:_1(i)}Ud.exports=S1});var zd=d((OO,Wd)=>{"use strict";var ga=process.platform==="win32";function Ea(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 C1(t,e){if(!ga)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Gd(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Gd(t,e){return ga&&t===1&&!e.file?Ea(e.original,"spawn"):null}function b1(t,e){return ga&&t===1&&!e.file?Ea(e.original,"spawnSync"):null}Wd.exports={hookChildProcess:C1,verifyENOENT:Gd,verifyENOENTSync:b1,notFoundError:Ea}});var Vd=d((BO,Hr)=>{"use strict";var Yd=require("child_process"),Da=jd(),ya=zd();function Kd(t,e,r){let i=Da(t,e,r),n=Yd.spawn(i.command,i.args,i.options);return ya.hookChildProcess(n,i),n}function w1(t,e,r){let i=Da(t,e,r),n=Yd.spawnSync(i.command,i.args,i.options);return n.error=n.error||ya.verifyENOENTSync(n.status,i),n}Hr.exports=Kd;Hr.exports.spawn=Kd;Hr.exports.sync=w1;Hr.exports._parse=Da;Hr.exports._enoent=ya});var Zd=d((PO,Xd)=>{"use strict";Xd.exports=t=>{let e=typeof t=="string"?`
|
3
3
|
`:`
|
4
|
-
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var
|
5
|
-
${i.message}`:
|
6
|
-
`);return _?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=b,i.command=o,i.escapedCommand=u,i.exitCode=s,i.signal=n,i.signalDescription=h,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!a,i.isCanceled=c,i.killed=l&&!a,i};lm.exports=j1});var pm=m((HO,Sa)=>{"use strict";var jn=["stdin","stdout","stderr"],W1=t=>jn.some(e=>t[e]!==void 0),hm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return jn.map(i=>t[i]);if(W1(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${jn.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,jn.length);return Array.from({length:r},(i,n)=>e[n])};Sa.exports=hm;Sa.exports.node=t=>{let e=hm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var dm=m(($O,Wn)=>{Wn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Wn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ym=m((UO,Gr)=>{var X=global.process,nr=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"};nr(X)?(mm=require("assert"),$r=dm(),gm=/^win/i.test(X.platform),vi=require("events"),typeof vi!="function"&&(vi=vi.EventEmitter),X.__signal_exit_emitter__?ue=X.__signal_exit_emitter__:(ue=X.__signal_exit_emitter__=new vi,ue.count=0,ue.emitted={}),ue.infinite||(ue.setMaxListeners(1/0),ue.infinite=!0),Gr.exports=function(t,e){if(!nr(global.process))return function(){};mm.equal(typeof t,"function","a callback must be provided for exit handler"),Ur===!1&&Ca();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ue.removeListener(r,t),ue.listeners("exit").length===0&&ue.listeners("afterexit").length===0&&zn()};return ue.on(r,t),i},zn=function(){!Ur||!nr(global.process)||(Ur=!1,$r.forEach(function(e){try{X.removeListener(e,Yn[e])}catch{}}),X.emit=Kn,X.reallyExit=ba,ue.count-=1)},Gr.exports.unload=zn,sr=function(e,r,i){ue.emitted[e]||(ue.emitted[e]=!0,ue.emit(e,r,i))},Yn={},$r.forEach(function(t){Yn[t]=function(){if(nr(global.process)){var r=X.listeners(t);r.length===ue.count&&(zn(),sr("exit",null,t),sr("afterexit",null,t),gm&&t==="SIGHUP"&&(t="SIGINT"),X.kill(X.pid,t))}}}),Gr.exports.signals=function(){return $r},Ur=!1,Ca=function(){Ur||!nr(global.process)||(Ur=!0,ue.count+=1,$r=$r.filter(function(e){try{return X.on(e,Yn[e]),!0}catch{return!1}}),X.emit=Dm,X.reallyExit=Em)},Gr.exports.load=Ca,ba=X.reallyExit,Em=function(e){nr(global.process)&&(X.exitCode=e||0,sr("exit",X.exitCode,null),sr("afterexit",X.exitCode,null),ba.call(X,X.exitCode))},Kn=X.emit,Dm=function(e,r){if(e==="exit"&&nr(global.process)){r!==void 0&&(X.exitCode=r);var i=Kn.apply(this,arguments);return sr("exit",X.exitCode,null),sr("afterexit",X.exitCode,null),i}else return Kn.apply(this,arguments)}):Gr.exports=function(){return function(){}};var mm,$r,gm,vi,ue,zn,sr,Yn,Ur,Ca,ba,Em,Kn,Dm});var _m=m((GO,Am)=>{"use strict";var z1=require("os"),Y1=ym(),K1=1e3*5,V1=(t,e="SIGTERM",r={})=>{let i=t(e);return X1(t,e,r,i),i},X1=(t,e,r,i)=>{if(!Z1(e,r,i))return;let n=Q1(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},Z1=(t,{forceKillAfterTimeout:e},r)=>J1(t)&&e!==!1&&r,J1=t=>t===z1.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Q1=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return K1;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},ew=(t,e)=>{t.kill()&&(e.isCanceled=!0)},tw=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},rw=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{tw(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},iw=({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})`)},nw=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=Y1(()=>{t.kill()});return i.finally(()=>{n()})};Am.exports={spawnedKill:V1,spawnedCancel:ew,setupTimeout:rw,validateTimeout:iw,setExitHandler:nw}});var Cm=m((jO,Sm)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";Sm.exports=Je});var wm=m((WO,bm)=>{"use strict";var{PassThrough:sw}=require("stream");bm.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 sw({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Fm=m((zO,Ri)=>{"use strict";var{constants:ow}=require("buffer"),uw=require("stream"),{promisify:aw}=require("util"),cw=wm(),lw=aw(uw.pipeline),Vn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function wa(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=cw(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=ow.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await lw(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Vn)})}),i.getBufferedValue()}Ri.exports=wa;Ri.exports.buffer=(t,e)=>wa(t,{...e,encoding:"buffer"});Ri.exports.array=(t,e)=>wa(t,{...e,array:!0});Ri.exports.MaxBufferError=Vn});var vm=m((YO,xm)=>{"use strict";var{PassThrough:fw}=require("stream");xm.exports=function(){var t=[],e=new fw({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 Bm=m((KO,Om)=>{"use strict";var Tm=Cm(),Rm=Fm(),hw=vm(),pw=(t,e)=>{e===void 0||t.stdin===void 0||(Tm(e)?e.pipe(t.stdin):t.stdin.end(e))},dw=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=hw();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Fa=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Rm(t,{encoding:e,maxBuffer:i}):Rm.buffer(t,{maxBuffer:i})},mw=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=xa(t,{encoding:i,buffer:n,maxBuffer:s}),a=xa(e,{encoding:i,buffer:n,maxBuffer:s}),c=xa(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Fa(t,u),Fa(e,a),Fa(r,c)])}},gw=({input:t})=>{if(Tm(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Om.exports={handleInput:pw,makeAllStream:dw,getSpawnedResult:mw,validateInputSync:gw}});var Lm=m((VO,Pm)=>{"use strict";var Ew=(async()=>{})().constructor.prototype,Dw=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Ew,t)]),yw=(t,e)=>{for(let[r,i]of Dw){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},Aw=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)})});Pm.exports={mergePromise:yw,getSpawnedPromise:Aw}});var km=m((XO,Nm)=>{"use strict";var Im=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],_w=/^[\w.-]+$/,Sw=/"/g,Cw=t=>typeof t!="string"||_w.test(t)?t:`"${t.replace(Sw,'\\"')}"`,bw=(t,e)=>Im(t,e).join(" "),ww=(t,e)=>Im(t,e).map(r=>Cw(r)).join(" "),Fw=/ +/g,xw=t=>{let e=[];for(let r of t.trim().split(Fw)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Nm.exports={joinCommand:bw,getEscapedCommand:ww,parseCommand:xw}});var jm=m((ZO,jr)=>{"use strict";var vw=require("path"),va=require("child_process"),Rw=Kd(),Tw=Xd(),Ow=Qd(),Bw=im(),Xn=fm(),qm=pm(),{spawnedKill:Pw,spawnedCancel:Lw,setupTimeout:Iw,validateTimeout:Nw,setExitHandler:kw}=_m(),{handleInput:Mw,getSpawnedResult:qw,makeAllStream:Hw,validateInputSync:$w}=Bm(),{mergePromise:Mm,getSpawnedPromise:Uw}=Lm(),{joinCommand:Hm,parseCommand:$m,getEscapedCommand:Um}=km(),Gw=1e3*1e3*100,jw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?Ow.env({env:s,cwd:i,execPath:n}):s},Gm=(t,e,r={})=>{let i=Rw._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:Gw,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=jw(r),r.stdio=qm(r),process.platform==="win32"&&vw.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Ti=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Tw(e):e,Zn=(t,e,r)=>{let i=Gm(t,e,r),n=Hm(t,e),s=Um(t,e);Nw(i.options);let o;try{o=va.spawn(i.file,i.args,i.options)}catch(E){let g=new va.ChildProcess,D=Promise.reject(Xn({error:E,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Mm(g,D)}let u=Uw(o),a=Iw(o,i.options,u),c=kw(o,i.options,a),l={isCanceled:!1};o.kill=Pw.bind(null,o.kill.bind(o)),o.cancel=Lw.bind(null,o,l);let h=Bw(async()=>{let[{error:E,exitCode:g,signal:D,timedOut:_},b,F,M]=await qw(o,i.options,c),re=Ti(i.options,b),L=Ti(i.options,F),$=Ti(i.options,M);if(E||g!==0||D!==null){let P=Xn({error:E,exitCode:g,signal:D,stdout:re,stderr:L,all:$,command:n,escapedCommand:s,parsed:i,timedOut:_,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return P;throw P}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:L,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Mw(o,i.options.input),o.all=Hw(o,i.options),Mm(o,h)};jr.exports=Zn;jr.exports.sync=(t,e,r)=>{let i=Gm(t,e,r),n=Hm(t,e),s=Um(t,e);$w(i.options);let o;try{o=va.spawnSync(i.file,i.args,i.options)}catch(c){throw Xn({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Ti(i.options,o.stdout,o.error),a=Ti(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Xn({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};jr.exports.command=(t,e)=>{let[r,...i]=$m(t);return Zn(r,i,e)};jr.exports.commandSync=(t,e)=>{let[r,...i]=$m(t);return Zn.sync(r,i,e)};jr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=qm.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Zn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Wr=m((rB,Ym)=>{"use strict";var zm=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Ym.exports=t=>t?Object.keys(t).map(e=>[zm.has(e)?zm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var is=m((iB,r0)=>{"use strict";var Km=typeof process=="object"&&process?process:{stdout:null,stderr:null},Zw=require("events"),Vm=require("stream"),Xm=require("string_decoder").StringDecoder,dt=Symbol("EOF"),mt=Symbol("maybeEmitEnd"),It=Symbol("emittedEnd"),Jn=Symbol("emittingEnd"),Oi=Symbol("emittedError"),Qn=Symbol("closed"),Zm=Symbol("read"),es=Symbol("flush"),Jm=Symbol("flushChunk"),Ce=Symbol("encoding"),gt=Symbol("decoder"),ts=Symbol("flowing"),Bi=Symbol("paused"),zr=Symbol("resume"),te=Symbol("buffer"),Qe=Symbol("pipes"),ae=Symbol("bufferLength"),Ra=Symbol("bufferPush"),Ta=Symbol("bufferShift"),de=Symbol("objectMode"),me=Symbol("destroyed"),Oa=Symbol("emitData"),Qm=Symbol("emitEnd"),Ba=Symbol("emitEnd2"),Et=Symbol("async"),Pi=t=>Promise.resolve().then(t),e0=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Jw=e0&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Qw=e0&&Symbol.iterator||Symbol("iterator not implemented"),eF=t=>t==="end"||t==="finish"||t==="prefinish",tF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,rF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),rs=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()}},Pa=class extends rs{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)}};r0.exports=class t0 extends Vm{constructor(e){super(),this[ts]=!1,this[Bi]=!1,this[Qe]=[],this[te]=[],this[de]=e&&e.objectMode||!1,this[de]?this[Ce]=null:this[Ce]=e&&e.encoding||null,this[Ce]==="buffer"&&(this[Ce]=null),this[Et]=e&&!!e.async||!1,this[gt]=this[Ce]?new Xm(this[Ce]):null,this[dt]=!1,this[It]=!1,this[Jn]=!1,this[Qn]=!1,this[Oi]=null,this.writable=!0,this.readable=!0,this[ae]=0,this[me]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[te]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Qe]})}get bufferLength(){return this[ae]}get encoding(){return this[Ce]}set encoding(e){if(this[de])throw new Error("cannot set encoding in objectMode");if(this[Ce]&&e!==this[Ce]&&(this[gt]&&this[gt].lastNeed||this[ae]))throw new Error("cannot change encoding");this[Ce]!==e&&(this[gt]=e?new Xm(e):null,this[te].length&&(this[te]=this[te].map(r=>this[gt].write(r)))),this[Ce]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[de]}set objectMode(e){this[de]=this[de]||!!e}get async(){return this[Et]}set async(e){this[Et]=this[Et]||!!e}write(e,r,i){if(this[dt])throw new Error("write after end");if(this[me])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[Et]?Pi:s=>s();return!this[de]&&!Buffer.isBuffer(e)&&(rF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):tF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[de]?(this.flowing&&this[ae]!==0&&this[es](!0),this.flowing?this.emit("data",e):this[Ra](e),this[ae]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ce]&&!this[gt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ce]&&(e=this[gt].write(e)),this.flowing&&this[ae]!==0&&this[es](!0),this.flowing?this.emit("data",e):this[Ra](e),this[ae]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ae]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[me])return null;if(this[ae]===0||e===0||e>this[ae])return this[mt](),null;this[de]&&(e=null),this[te].length>1&&!this[de]&&(this.encoding?this[te]=[this[te].join("")]:this[te]=[Buffer.concat(this[te],this[ae])]);let r=this[Zm](e||null,this[te][0]);return this[mt](),r}[Zm](e,r){return e===r.length||e===null?this[Ta]():(this[te][0]=r.slice(e),r=r.slice(0,e),this[ae]-=e),this.emit("data",r),!this[te].length&&!this[dt]&&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[dt]=!0,this.writable=!1,(this.flowing||!this[Bi])&&this[mt](),this}[zr](){this[me]||(this[Bi]=!1,this[ts]=!0,this.emit("resume"),this[te].length?this[es]():this[dt]?this[mt]():this.emit("drain"))}resume(){return this[zr]()}pause(){this[ts]=!1,this[Bi]=!0}get destroyed(){return this[me]}get flowing(){return this[ts]}get paused(){return this[Bi]}[Ra](e){this[de]?this[ae]+=1:this[ae]+=e.length,this[te].push(e)}[Ta](){return this[te].length&&(this[de]?this[ae]-=1:this[ae]-=this[te][0].length),this[te].shift()}[es](e){do;while(this[Jm](this[Ta]()));!e&&!this[te].length&&!this[dt]&&this.emit("drain")}[Jm](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[me])return;let i=this[It];return r=r||{},e===Km.stdout||e===Km.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Qe].push(r.proxyErrors?new Pa(this,e,r):new rs(this,e,r)),this[Et]?Pi(()=>this[zr]()):this[zr]()),e}unpipe(e){let r=this[Qe].find(i=>i.dest===e);r&&(this[Qe].splice(this[Qe].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[Qe].length&&!this.flowing?this[zr]():e==="readable"&&this[ae]!==0?super.emit("readable"):eF(e)&&this[It]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Oi]&&(this[Et]?Pi(()=>r.call(this,this[Oi])):r.call(this,this[Oi])),i}get emittedEnd(){return this[It]}[mt](){!this[Jn]&&!this[It]&&!this[me]&&this[te].length===0&&this[dt]&&(this[Jn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Qn]&&this.emit("close"),this[Jn]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==me&&this[me])return;if(e==="data")return r?this[Et]?Pi(()=>this[Oa](r)):this[Oa](r):!1;if(e==="end")return this[Qm]();if(e==="close"){if(this[Qn]=!0,!this[It]&&!this[me])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Oi]=r;let s=super.emit("error",r);return this[mt](),s}else if(e==="resume"){let s=super.emit("resume");return this[mt](),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[mt](),n}[Oa](e){for(let i of this[Qe])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[mt](),r}[Qm](){this[It]||(this[It]=!0,this.readable=!1,this[Et]?Pi(()=>this[Ba]()):this[Ba]())}[Ba](){if(this[gt]){let r=this[gt].end();if(r){for(let i of this[Qe])i.dest.write(r);super.emit("data",r)}}for(let r of this[Qe])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[de]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[de]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[de]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[de]?Promise.reject(new Error("cannot concat in objectMode")):this[Ce]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(me,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Jw](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[dt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[dt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(me,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Qw](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[me]?(e?this.emit("error",e):this.emit(me),this):(this[me]=!0,this[te].length=0,this[ae]=0,typeof this.close=="function"&&!this[Qn]&&this.close(),e?this.emit("error",e):this.emit(me),this)}static isStream(e){return!!e&&(e instanceof t0||e instanceof Vm||e instanceof Zw&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var n0=m((nB,i0)=>{var iF=require("zlib").constants||{ZLIB_VERNUM:4736};i0.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},iF))});var qa=m((sB,p0)=>{"use strict";var s0=typeof process=="object"&&process?process:{stdout:null,stderr:null},nF=require("events"),o0=require("stream"),u0=require("string_decoder").StringDecoder,Dt=Symbol("EOF"),yt=Symbol("maybeEmitEnd"),Nt=Symbol("emittedEnd"),ns=Symbol("emittingEnd"),Li=Symbol("emittedError"),ss=Symbol("closed"),a0=Symbol("read"),os=Symbol("flush"),c0=Symbol("flushChunk"),be=Symbol("encoding"),At=Symbol("decoder"),us=Symbol("flowing"),Ii=Symbol("paused"),Yr=Symbol("resume"),ce=Symbol("bufferLength"),La=Symbol("bufferPush"),Ia=Symbol("bufferShift"),ge=Symbol("objectMode"),Ee=Symbol("destroyed"),Na=Symbol("emitData"),l0=Symbol("emitEnd"),ka=Symbol("emitEnd2"),_t=Symbol("async"),Ni=t=>Promise.resolve().then(t),f0=global._MP_NO_ITERATOR_SYMBOLS_!=="1",sF=f0&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),oF=f0&&Symbol.iterator||Symbol("iterator not implemented"),uF=t=>t==="end"||t==="finish"||t==="prefinish",aF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,cF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),as=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Yr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ma=class extends as{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};p0.exports=class h0 extends o0{constructor(e){super(),this[us]=!1,this[Ii]=!1,this.pipes=[],this.buffer=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[be]=null:this[be]=e&&e.encoding||null,this[be]==="buffer"&&(this[be]=null),this[_t]=e&&!!e.async||!1,this[At]=this[be]?new u0(this[be]):null,this[Dt]=!1,this[Nt]=!1,this[ns]=!1,this[ss]=!1,this[Li]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[Ee]=!1}get bufferLength(){return this[ce]}get encoding(){return this[be]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[be]&&e!==this[be]&&(this[At]&&this[At].lastNeed||this[ce]))throw new Error("cannot change encoding");this[be]!==e&&(this[At]=e?new u0(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[At].write(r)))),this[be]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[_t]}set async(e){this[_t]=this[_t]||!!e}write(e,r,i){if(this[Dt])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[_t]?Ni:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(cF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[La](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[be]&&!this[At].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[be]&&(e=this[At].write(e)),this.flowing&&this[ce]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[La](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ee])return null;if(this[ce]===0||e===0||e>this[ce])return this[yt](),null;this[ge]&&(e=null),this.buffer.length>1&&!this[ge]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ce])]);let r=this[a0](e||null,this.buffer[0]);return this[yt](),r}[a0](e,r){return e===r.length||e===null?this[Ia]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this.buffer.length&&!this[Dt]&&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[Dt]=!0,this.writable=!1,(this.flowing||!this[Ii])&&this[yt](),this}[Yr](){this[Ee]||(this[Ii]=!1,this[us]=!0,this.emit("resume"),this.buffer.length?this[os]():this[Dt]?this[yt]():this.emit("drain"))}resume(){return this[Yr]()}pause(){this[us]=!1,this[Ii]=!0}get destroyed(){return this[Ee]}get flowing(){return this[us]}get paused(){return this[Ii]}[La](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this.buffer.push(e)}[Ia](){return this.buffer.length&&(this[ge]?this[ce]-=1:this[ce]-=this.buffer[0].length),this.buffer.shift()}[os](e){do;while(this[c0](this[Ia]()));!e&&!this.buffer.length&&!this[Dt]&&this.emit("drain")}[c0](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[Nt];return r=r||{},e===s0.stdout||e===s0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Ma(this,e,r):new as(this,e,r)),this[_t]?Ni(()=>this[Yr]()):this[Yr]()),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[Yr]():e==="readable"&&this[ce]!==0?super.emit("readable"):uF(e)&&this[Nt]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Li]&&(this[_t]?Ni(()=>r.call(this,this[Li])):r.call(this,this[Li])),i}get emittedEnd(){return this[Nt]}[yt](){!this[ns]&&!this[Nt]&&!this[Ee]&&this.buffer.length===0&&this[Dt]&&(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!==Ee&&this[Ee])return;if(e==="data")return r?this[_t]?Ni(()=>this[Na](r)):this[Na](r):!1;if(e==="end")return this[l0]();if(e==="close"){if(this[ss]=!0,!this[Nt]&&!this[Ee])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Li]=r;let s=super.emit("error",r);return this[yt](),s}else if(e==="resume"){let s=super.emit("resume");return this[yt](),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[yt](),n}[Na](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[yt](),r}[l0](){this[Nt]||(this[Nt]=!0,this.readable=!1,this[_t]?Ni(()=>this[ka]()):this[ka]())}[ka](){if(this[At]){let r=this[At].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[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[be]?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())})}[sF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Dt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[Dt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ee,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[oF](){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[ce]=0,typeof this.close=="function"&&!this[ss]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof h0||e instanceof o0||e instanceof nF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var tc=m(Te=>{"use strict";var ja=require("assert"),kt=require("buffer").Buffer,g0=require("zlib"),or=Te.constants=n0(),lF=qa(),d0=kt.concat,ur=Symbol("_superWrite"),Vr=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"}},fF=Symbol("opts"),ki=Symbol("flushFlag"),m0=Symbol("finishFlushFlag"),ec=Symbol("fullFlushFlag"),W=Symbol("handle"),cs=Symbol("onError"),Kr=Symbol("sawError"),Ha=Symbol("level"),$a=Symbol("strategy"),Ua=Symbol("ended"),oB=Symbol("_defaultFullFlush"),ls=class extends lF{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Kr]=!1,this[Ua]=!1,this[fF]=e,this[ki]=e.flush,this[m0]=e.finishFlush;try{this[W]=new g0[r](e)}catch(i){throw new Vr(i)}this[cs]=i=>{this[Kr]||(this[Kr]=!0,this.close(),this.emit("error",i))},this[W].on("error",i=>this[cs](new Vr(i))),this.once("end",()=>this.close)}close(){this[W]&&(this[W].close(),this[W]=null,this.emit("close"))}reset(){if(!this[Kr])return ja(this[W],"zlib binding closed"),this[W].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[ec]),this.write(Object.assign(kt.alloc(0),{[ki]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[m0]),this[Ua]=!0,super.end(null,null,i)}get ended(){return this[Ua]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=kt.from(e,r)),this[Kr])return;ja(this[W],"zlib binding closed");let n=this[W]._handle,s=n.close;n.close=()=>{};let o=this[W].close;this[W].close=()=>{},kt.concat=c=>c;let u;try{let c=typeof e[ki]=="number"?e[ki]:this[ki];u=this[W]._processChunk(e,c),kt.concat=d0}catch(c){kt.concat=d0,this[cs](new Vr(c))}finally{this[W]&&(this[W]._handle=n,n.close=s,this[W].close=o,this[W].removeAllListeners("error"))}this[W]&&this[W].on("error",c=>this[cs](new Vr(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[ur](kt.from(u[0]));for(let c=1;c<u.length;c++)a=this[ur](u[c])}else a=this[ur](kt.from(u));return i&&i(),a}[ur](e){return super.write(e)}},St=class extends ls{constructor(e,r){e=e||{},e.flush=e.flush||or.Z_NO_FLUSH,e.finishFlush=e.finishFlush||or.Z_FINISH,super(e,r),this[ec]=or.Z_FULL_FLUSH,this[Ha]=e.level,this[$a]=e.strategy}params(e,r){if(!this[Kr]){if(!this[W])throw new Error("cannot switch params when binding is closed");if(!this[W].params)throw new Error("not supported in this implementation");if(this[Ha]!==e||this[$a]!==r){this.flush(or.Z_SYNC_FLUSH),ja(this[W],"zlib binding closed");let i=this[W].flush;this[W].flush=(n,s)=>{this.flush(n),s()};try{this[W].params(e,r)}finally{this[W].flush=i}this[W]&&(this[Ha]=e,this[$a]=r)}}}},Wa=class extends St{constructor(e){super(e,"Deflate")}},za=class extends St{constructor(e){super(e,"Inflate")}},Ga=Symbol("_portable"),Ya=class extends St{constructor(e){super(e,"Gzip"),this[Ga]=e&&!!e.portable}[ur](e){return this[Ga]?(this[Ga]=!1,e[9]=255,super[ur](e)):super[ur](e)}},Ka=class extends St{constructor(e){super(e,"Gunzip")}},Va=class extends St{constructor(e){super(e,"DeflateRaw")}},Xa=class extends St{constructor(e){super(e,"InflateRaw")}},Za=class extends St{constructor(e){super(e,"Unzip")}},fs=class extends ls{constructor(e,r){e=e||{},e.flush=e.flush||or.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||or.BROTLI_OPERATION_FINISH,super(e,r),this[ec]=or.BROTLI_OPERATION_FLUSH}},Ja=class extends fs{constructor(e){super(e,"BrotliCompress")}},Qa=class extends fs{constructor(e){super(e,"BrotliDecompress")}};Te.Deflate=Wa;Te.Inflate=za;Te.Gzip=Ya;Te.Gunzip=Ka;Te.DeflateRaw=Va;Te.InflateRaw=Xa;Te.Unzip=Za;typeof g0.BrotliCompress=="function"?(Te.BrotliCompress=Ja,Te.BrotliDecompress=Qa):Te.BrotliCompress=Te.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Xr=m((cB,E0)=>{var hF=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;E0.exports=hF!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var hs=m((fB,D0)=>{"use strict";var pF=is(),rc=Xr(),ic=Symbol("slurp");D0.exports=class extends pF{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=rc(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=rc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[ic](r),i&&this[ic](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))}[ic](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?rc(e[i]):e[i])}}});var nc=m(ps=>{"use strict";ps.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"]]);ps.code=new Map(Array.from(ps.name).map(t=>[t[1],t[0]]))});var S0=m((pB,_0)=>{"use strict";var dF=(t,e)=>{if(Number.isSafeInteger(t))t<0?gF(t,e):mF(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},mF=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},gF=(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]=y0(n):n===0?e[i-1]=0:(r=!0,e[i-1]=A0(n))}},EF=t=>{let e=t[0],r=e===128?yF(t.slice(1,t.length)):e===255?DF(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},DF=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=y0(s):s===0?o=s:(i=!0,o=A0(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},yF=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},y0=t=>(255^t)&255,A0=t=>(255^t)+1&255;_0.exports={encode:dF,parse:EF}});var Jr=m((dB,b0)=>{"use strict";var sc=nc(),Zr=require("path").posix,C0=S0(),oc=Symbol("slurp"),Oe=Symbol("type"),cc=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[Oe]="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=ar(e,r,100),this.mode=Mt(e,r+100,8),this.uid=Mt(e,r+108,8),this.gid=Mt(e,r+116,8),this.size=Mt(e,r+124,12),this.mtime=uc(e,r+136,12),this.cksum=Mt(e,r+148,12),this[oc](i),this[oc](n,!0),this[Oe]=ar(e,r+156,1),this[Oe]===""&&(this[Oe]="0"),this[Oe]==="0"&&this.path.slice(-1)==="/"&&(this[Oe]="5"),this[Oe]==="5"&&(this.size=0),this.linkpath=ar(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=ar(e,r+265,32),this.gname=ar(e,r+297,32),this.devmaj=Mt(e,r+329,8),this.devmin=Mt(e,r+337,8),e[r+475]!==0){let o=ar(e,r+345,155);this.path=o+"/"+this.path}else{let o=ar(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=uc(e,r+476,12),this.ctime=uc(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)}[oc](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=AF(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=cr(e,r,100,s)||this.needPax,this.needPax=qt(e,r+100,8,this.mode)||this.needPax,this.needPax=qt(e,r+108,8,this.uid)||this.needPax,this.needPax=qt(e,r+116,8,this.gid)||this.needPax,this.needPax=qt(e,r+124,12,this.size)||this.needPax,this.needPax=ac(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Oe].charCodeAt(0),this.needPax=cr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=cr(e,r+265,32,this.uname)||this.needPax,this.needPax=cr(e,r+297,32,this.gname)||this.needPax,this.needPax=qt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=qt(e,r+337,8,this.devmin)||this.needPax,this.needPax=cr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=cr(e,r+345,155,o)||this.needPax:(this.needPax=cr(e,r+345,130,o)||this.needPax,this.needPax=ac(e,r+476,12,this.atime)||this.needPax,this.needPax=ac(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,qt(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return sc.name.get(this[Oe])||this[Oe]}get typeKey(){return this[Oe]}set type(e){sc.code.has(e)?this[Oe]=sc.code.get(e):this[Oe]=e}},AF=(t,e)=>{let i=t,n="",s,o=Zr.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Zr.dirname(i),i=Zr.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=Zr.join(Zr.basename(n),i),n=Zr.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},ar=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),uc=(t,e,r)=>_F(Mt(t,e,r)),_F=t=>t===null?null:new Date(t*1e3),Mt=(t,e,r)=>t[e]&128?C0.parse(t.slice(e,e+r)):CF(t,e,r),SF=t=>isNaN(t)?null:t,CF=(t,e,r)=>SF(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),bF={12:8589934591,8:2097151},qt=(t,e,r,i)=>i===null?!1:i>bF[r]||i<0?(C0.encode(i,t.slice(e,e+r)),!0):(wF(t,e,r,i),!1),wF=(t,e,r,i)=>t.write(FF(i,r),e,r,"ascii"),FF=(t,e)=>xF(Math.floor(t).toString(8),e),xF=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",ac=(t,e,r,i)=>i===null?!1:qt(t,e,r,i.getTime()/1e3),vF=new Array(156).join("\0"),cr=(t,e,r,i)=>i===null?!1:(t.write(i+vF,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);b0.exports=cc});var ds=m((mB,w0)=>{"use strict";var RF=Jr(),TF=require("path"),Mi=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 RF({path:("PaxHeader/"+TF.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}};
|
8
|
-
`).reduce(PF,Object.create(null)),PF=(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};w0.exports=Mi});var Qr=m((gB,F0)=>{F0.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 ms=m((EB,x0)=>{"use strict";x0.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fc=m((yB,v0)=>{"use strict";var gs=["|","<",">","?",":"],lc=gs.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),LF=new Map(gs.map((t,e)=>[t,lc[e]])),IF=new Map(lc.map((t,e)=>[t,gs[e]]));v0.exports={encode:t=>gs.reduce((e,r)=>e.split(r).join(LF.get(r)),t),decode:t=>lc.reduce((e,r)=>e.split(r).join(IF.get(r)),t)}});var hc=m((AB,T0)=>{var{isAbsolute:NF,parse:R0}=require("path").win32;T0.exports=t=>{let e="",r=R0(t);for(;NF(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=R0(t)}return[e,t]}});var B0=m((_B,O0)=>{"use strict";O0.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 Sc=m((bB,z0)=>{"use strict";var q0=is(),H0=ds(),$0=Jr(),tt=require("fs"),P0=require("path"),et=Xr(),kF=Qr(),U0=(t,e)=>e?(t=et(t).replace(/^\.(\/|$)/,""),kF(e)+"/"+t):et(t),MF=16*1024*1024,L0=Symbol("process"),I0=Symbol("file"),N0=Symbol("directory"),dc=Symbol("symlink"),k0=Symbol("hardlink"),qi=Symbol("header"),Es=Symbol("read"),mc=Symbol("lstat"),Ds=Symbol("onlstat"),gc=Symbol("onread"),Ec=Symbol("onreadlink"),Dc=Symbol("openfile"),yc=Symbol("onopenfile"),Ht=Symbol("close"),ys=Symbol("mode"),Ac=Symbol("awaitDrain"),pc=Symbol("ondrain"),rt=Symbol("prefix"),M0=Symbol("hadError"),G0=ms(),qF=fc(),j0=hc(),W0=B0(),As=G0(class extends q0{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=et(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||MF,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=et(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?et(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]=j0(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=qF.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=et(r.absolute||P0.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[Ds](this.statCache.get(this.absolute)):this[mc]()}emit(e,...r){return e==="error"&&(this[M0]=!0),super.emit(e,...r)}[mc](){tt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ds](r)})}[Ds](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=$F(e),this.emit("stat",e),this[L0]()}[L0](){switch(this.type){case"File":return this[I0]();case"Directory":return this[N0]();case"SymbolicLink":return this[dc]();default:return this.end()}}[ys](e){return W0(e,this.type==="Directory",this.portable)}[rt](e){return U0(e,this.prefix)}[qi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new $0({path:this[rt](this.path),linkpath:this.type==="Link"?this[rt](this.linkpath):this.linkpath,mode:this[ys](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 H0({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[rt](this.path),linkpath:this.type==="Link"?this[rt](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)}[N0](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[qi](),this.end()}[dc](){tt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ec](r)})}[Ec](e){this.linkpath=et(e),this[qi](),this.end()}[k0](e){this.type="Link",this.linkpath=et(P0.relative(this.cwd,e)),this.stat.size=0,this[qi](),this.end()}[I0](){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[k0](r)}this.linkCache.set(e,this.absolute)}if(this[qi](),this.stat.size===0)return this.end();this[Dc]()}[Dc](){tt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[yc](r)})}[yc](e){if(this.fd=e,this[M0])return this[Ht]();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[Es]()}[Es](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;tt.read(e,r,i,n,s,(o,u)=>{if(o)return this[Ht](()=>this.emit("error",o));this[gc](u)})}[Ht](e){tt.close(this.fd,e)}[gc](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[Ht](()=>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[Ht](()=>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[pc]():this[Ac](()=>this[pc]())}[Ac](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)}[pc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Ht](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[Es]()}}),_c=class extends As{[mc](){this[Ds](tt.lstatSync(this.absolute))}[dc](){this[Ec](tt.readlinkSync(this.absolute))}[Dc](){this[yc](tt.openSync(this.absolute,"r"))}[Es](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=tt.readSync(r,i,n,s,o);this[gc](u),e=!1}finally{if(e)try{this[Ht](()=>{})}catch{}}}[Ac](e){e()}[Ht](e){tt.closeSync(this.fd),e()}},HF=G0(class extends q0{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=et(e.path),this.mode=this[ys](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=et(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=j0(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new $0({path:this[rt](this.path),linkpath:this.type==="Link"?this[rt](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 H0({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[rt](this.path),linkpath:this.type==="Link"?this[rt](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)}[rt](e){return U0(e,this.prefix)}[ys](e){return W0(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=_c;As.Tar=HF;var $F=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";z0.exports=As});var K0=m((wB,Y0)=>{"use strict";Y0.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Cc=m((FB,V0)=>{"use strict";V0.exports=q;q.Node=lr;q.create=q;function q(t){var e=this;if(e instanceof q||(e=new q),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}q.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};q.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++}};q.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++}};q.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)GF(this,arguments[t]);return this.length};q.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)jF(this,arguments[t]);return this.length};q.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}};q.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}};q.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};q.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};q.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};q.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};q.prototype.map=function(t,e){e=e||this;for(var r=new q,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};q.prototype.mapReverse=function(t,e){e=e||this;for(var r=new q,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};q.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};q.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};q.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};q.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};q.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 q;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};q.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 q;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};q.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=UF(this,n,r[i]);return s};q.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 UF(t,e,r){var i=e===t.head?new lr(r,null,e,t):new lr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function GF(t,e){t.tail=new lr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function jF(t,e){t.head=new lr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function lr(t,e,r,i){if(!(this instanceof lr))return new lr(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{K0()(q)}catch{}});var Rs=m((vB,rg)=>{"use strict";var xs=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}},WF=is(),zF=tc(),YF=hs(),Bc=Sc(),KF=Bc.Sync,VF=Bc.Tar,XF=Cc(),X0=Buffer.alloc(1024),Cs=Symbol("onStat"),_s=Symbol("ended"),it=Symbol("queue"),ei=Symbol("current"),fr=Symbol("process"),Ss=Symbol("processing"),Z0=Symbol("processJob"),nt=Symbol("jobs"),bc=Symbol("jobDone"),bs=Symbol("addFSEntry"),J0=Symbol("addTarEntry"),vc=Symbol("stat"),Rc=Symbol("readdir"),ws=Symbol("onreaddir"),Fs=Symbol("pipe"),Q0=Symbol("entry"),wc=Symbol("entryOpt"),Tc=Symbol("writeEntryClass"),tg=Symbol("write"),Fc=Symbol("ondrain"),vs=require("fs"),eg=require("path"),ZF=ms(),xc=Xr(),Pc=ZF(class extends WF{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=xc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Tc]=Bc,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 zF.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Fc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Fc]),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[it]=new XF,this[nt]=0,this.jobs=+e.jobs||4,this[Ss]=!1,this[_s]=!1}[tg](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[_s]=!0,this[fr](),this}write(e){if(this[_s])throw new Error("write after end");return e instanceof YF?this[J0](e):this[bs](e),this.flowing}[J0](e){let r=xc(eg.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new xs(e.path,r,!1);i.entry=new VF(e,this[wc](i)),i.entry.on("end",n=>this[bc](i)),this[nt]+=1,this[it].push(i)}this[fr]()}[bs](e){let r=xc(eg.resolve(this.cwd,e));this[it].push(new xs(e,r)),this[fr]()}[vc](e){e.pending=!0,this[nt]+=1;let r=this.follow?"stat":"lstat";vs[r](e.absolute,(i,n)=>{e.pending=!1,this[nt]-=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[fr]()}[Rc](e){e.pending=!0,this[nt]+=1,vs.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[nt]-=1,r)return this.emit("error",r);this[ws](e,i)})}[ws](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[fr]()}[fr](){if(!this[Ss]){this[Ss]=!0;for(let e=this[it].head;e!==null&&this[nt]<this.jobs;e=e.next)if(this[Z0](e.value),e.value.ignore){let r=e.next;this[it].removeNode(e),e.next=r}this[Ss]=!1,this[_s]&&!this[it].length&&this[nt]===0&&(this.zip?this.zip.end(X0):(super.write(X0),super.end()))}}get[ei](){return this[it]&&this[it].head&&this[it].head.value}[bc](e){this[it].shift(),this[nt]-=1,this[fr]()}[Z0](e){if(!e.pending){if(e.entry){e===this[ei]&&!e.piped&&this[Fs](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Cs](e,this.statCache.get(e.absolute)):this[vc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[ws](e,this.readdirCache.get(e.absolute)):this[Rc](e),!e.readdir))){if(e.entry=this[Q0](e),!e.entry){e.ignore=!0;return}e===this[ei]&&!e.piped&&this[Fs](e)}}}[wc](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}}[Q0](e){this[nt]+=1;try{return new this[Tc](e.path,this[wc](e)).on("end",()=>this[bc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Fc](){this[ei]&&this[ei].entry&&this[ei].entry.resume()}[Fs](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[bs](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()}}),Oc=class extends Pc{constructor(e){super(e),this[Tc]=KF}pause(){}resume(){}[vc](e){let r=this.follow?"statSync":"lstatSync";this[Cs](e,vs[r](e.absolute))}[Rc](e,r){this[ws](e,vs.readdirSync(e.absolute))}[Fs](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[bs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[tg](n)})}};Pc.Sync=Oc;rg.exports=Pc});var ai=m($i=>{"use strict";var JF=qa(),QF=require("events").EventEmitter,we=require("fs"),Nc=we.writev;if(!Nc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Nc=(r,i,n,s)=>{let o=(a,c)=>s(a,c,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var oi=Symbol("_autoClose"),Ge=Symbol("_close"),Hi=Symbol("_ended"),U=Symbol("_fd"),ig=Symbol("_finished"),Ut=Symbol("_flags"),Lc=Symbol("_flush"),kc=Symbol("_handleChunk"),Mc=Symbol("_makeBuf"),Ls=Symbol("_mode"),Ts=Symbol("_needDrain"),ni=Symbol("_onerror"),ui=Symbol("_onopen"),Ic=Symbol("_onread"),ri=Symbol("_onwrite"),Gt=Symbol("_open"),Ct=Symbol("_path"),hr=Symbol("_pos"),st=Symbol("_queue"),ii=Symbol("_read"),ng=Symbol("_readSize"),$t=Symbol("_reading"),Os=Symbol("_remain"),sg=Symbol("_size"),Bs=Symbol("_write"),ti=Symbol("_writing"),Ps=Symbol("_defaultFlag"),si=Symbol("_errored"),Is=class extends JF{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[si]=!1,this[U]=typeof r.fd=="number"?r.fd:null,this[Ct]=e,this[ng]=r.readSize||16*1024*1024,this[$t]=!1,this[sg]=typeof r.size=="number"?r.size:1/0,this[Os]=this[sg],this[oi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[U]=="number"?this[ii]():this[Gt]()}get fd(){return this[U]}get path(){return this[Ct]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Gt](){we.open(this[Ct],"r",(e,r)=>this[ui](e,r))}[ui](e,r){e?this[ni](e):(this[U]=r,this.emit("open",r),this[ii]())}[Mc](){return Buffer.allocUnsafe(Math.min(this[ng],this[Os]))}[ii](){if(!this[$t]){this[$t]=!0;let e=this[Mc]();if(e.length===0)return process.nextTick(()=>this[Ic](null,0,e));we.read(this[U],e,0,e.length,null,(r,i,n)=>this[Ic](r,i,n))}}[Ic](e,r,i){this[$t]=!1,e?this[ni](e):this[kc](r,i)&&this[ii]()}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ni](e){this[$t]=!0,this[Ge](),this.emit("error",e)}[kc](e,r){let i=!1;return this[Os]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Os]<=0)&&(i=!1,this[Ge](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[U]=="number"&&this[ii]();break;case"error":return this[si]?void 0:(this[si]=!0,super.emit(e,r));default:return super.emit(e,r)}}},qc=class extends Is{[Gt](){let e=!0;try{this[ui](null,we.openSync(this[Ct],"r")),e=!1}finally{e&&this[Ge]()}}[ii](){let e=!0;try{if(!this[$t]){this[$t]=!0;do{let r=this[Mc](),i=r.length===0?0:we.readSync(this[U],r,0,r.length,null);if(!this[kc](i,r))break}while(!0);this[$t]=!1}e=!1}finally{e&&this[Ge]()}}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.closeSync(e),this.emit("close")}}},Ns=class extends QF{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[si]=!1,this[ti]=!1,this[Hi]=!1,this[Ts]=!1,this[st]=[],this[Ct]=e,this[U]=typeof r.fd=="number"?r.fd:null,this[Ls]=r.mode===void 0?438:r.mode,this[hr]=typeof r.start=="number"?r.start:null,this[oi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[hr]!==null?"r+":"w";this[Ps]=r.flags===void 0,this[Ut]=this[Ps]?i:r.flags,this[U]===null&&this[Gt]()}emit(e,r){if(e==="error"){if(this[si])return;this[si]=!0}return super.emit(e,r)}get fd(){return this[U]}get path(){return this[Ct]}[ni](e){this[Ge](),this[ti]=!0,this.emit("error",e)}[Gt](){we.open(this[Ct],this[Ut],this[Ls],(e,r)=>this[ui](e,r))}[ui](e,r){this[Ps]&&this[Ut]==="r+"&&e&&e.code==="ENOENT"?(this[Ut]="w",this[Gt]()):e?this[ni](e):(this[U]=r,this.emit("open",r),this[Lc]())}end(e,r){return e&&this.write(e,r),this[Hi]=!0,!this[ti]&&!this[st].length&&typeof this[U]=="number"&&this[ri](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Hi]?(this.emit("error",new Error("write() after end()")),!1):this[U]===null||this[ti]||this[st].length?(this[st].push(e),this[Ts]=!0,!1):(this[ti]=!0,this[Bs](e),!0)}[Bs](e){we.write(this[U],e,0,e.length,this[hr],(r,i)=>this[ri](r,i))}[ri](e,r){e?this[ni](e):(this[hr]!==null&&(this[hr]+=r),this[st].length?this[Lc]():(this[ti]=!1,this[Hi]&&!this[ig]?(this[ig]=!0,this[Ge](),this.emit("finish")):this[Ts]&&(this[Ts]=!1,this.emit("drain"))))}[Lc](){if(this[st].length===0)this[Hi]&&this[ri](null,0);else if(this[st].length===1)this[Bs](this[st].pop());else{let e=this[st];this[st]=[],Nc(this[U],e,this[hr],(r,i)=>this[ri](r,i))}}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Hc=class extends Ns{[Gt](){let e;if(this[Ps]&&this[Ut]==="r+")try{e=we.openSync(this[Ct],this[Ut],this[Ls])}catch(r){if(r.code==="ENOENT")return this[Ut]="w",this[Gt]();throw r}else e=we.openSync(this[Ct],this[Ut],this[Ls]);this[ui](null,e)}[Ge](){if(this[oi]&&typeof this[U]=="number"){let e=this[U];this[U]=null,we.closeSync(e),this.emit("close")}}[Bs](e){let r=!0;try{this[ri](null,we.writeSync(this[U],e,0,e.length,this[hr])),r=!1}finally{if(r)try{this[Ge]()}catch{}}}};$i.ReadStream=Is;$i.ReadStreamSync=qc;$i.WriteStream=Ns;$i.WriteStreamSync=Hc});var Gs=m((OB,pg)=>{"use strict";var ex=ms(),tx=Jr(),rx=require("events"),ix=Cc(),nx=1024*1024,sx=hs(),og=ds(),ox=tc(),{nextTick:ux}=require("process"),$c=Buffer.from([31,139]),ke=Symbol("state"),pr=Symbol("writeEntry"),bt=Symbol("readEntry"),Uc=Symbol("nextEntry"),ug=Symbol("processEntry"),Me=Symbol("extendedHeader"),Ui=Symbol("globalExtendedHeader"),jt=Symbol("meta"),ag=Symbol("emitMeta"),K=Symbol("buffer"),wt=Symbol("queue"),dr=Symbol("ended"),cg=Symbol("emittedEnd"),mr=Symbol("emit"),Fe=Symbol("unzip"),ks=Symbol("consumeChunk"),Ms=Symbol("consumeChunkSub"),Gc=Symbol("consumeBody"),lg=Symbol("consumeMeta"),fg=Symbol("consumeHeader"),qs=Symbol("consuming"),jc=Symbol("bufferConcat"),Wc=Symbol("maybeEnd"),Gi=Symbol("writing"),Wt=Symbol("aborted"),Hs=Symbol("onDone"),gr=Symbol("sawValidEntry"),$s=Symbol("sawNullBlock"),Us=Symbol("sawEOF"),hg=Symbol("closeStream"),ax=t=>!0;pg.exports=ex(class extends rx{constructor(e){e=e||{},super(e),this.file=e.file||"",this[gr]=null,this.on(Hs,r=>{(this[ke]==="begin"||this[gr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Hs,e.ondone):this.on(Hs,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||nx,this.filter=typeof e.filter=="function"?e.filter:ax,this.writable=!0,this.readable=!1,this[wt]=new ix,this[K]=null,this[bt]=null,this[pr]=null,this[ke]="begin",this[jt]="",this[Me]=null,this[Ui]=null,this[dr]=!1,this[Fe]=null,this[Wt]=!1,this[$s]=!1,this[Us]=!1,this.on("end",()=>this[hg]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[fg](e,r){this[gr]===null&&(this[gr]=!1);let i;try{i=new tx(e,r,this[Me],this[Ui])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[$s]?(this[Us]=!0,this[ke]==="begin"&&(this[ke]="header"),this[mr]("eof")):(this[$s]=!0,this[mr]("nullBlock"));else if(this[$s]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[pr]=new sx(i,this[Me],this[Ui]);if(!this[gr])if(s.remain){let o=()=>{s.invalid||(this[gr]=!0)};s.on("end",o)}else this[gr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[mr]("ignoredEntry",s),this[ke]="ignore",s.resume()):s.size>0&&(this[jt]="",s.on("data",o=>this[jt]+=o),this[ke]="meta"):(this[Me]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[mr]("ignoredEntry",s),this[ke]=s.remain?"ignore":"header",s.resume()):(s.remain?this[ke]="body":(this[ke]="header",s.end()),this[bt]?this[wt].push(s):(this[wt].push(s),this[Uc]())))}}}[hg](){ux(()=>this.emit("close"))}[ug](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[bt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Uc]()),r=!1)):(this[bt]=null,r=!1),r}[Uc](){do;while(this[ug](this[wt].shift()));if(!this[wt].length){let e=this[bt];!e||e.flowing||e.size===e.remain?this[Gi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Gc](e,r){let i=this[pr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[ke]="header",this[pr]=null,i.end()),s.length}[lg](e,r){let i=this[pr],n=this[Gc](e,r);return this[pr]||this[ag](i),n}[mr](e,r,i){!this[wt].length&&!this[bt]?this.emit(e,r,i):this[wt].push([e,r,i])}[ag](e){switch(this[mr]("meta",this[jt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Me]=og.parse(this[jt],this[Me],!1);break;case"GlobalExtendedHeader":this[Ui]=og.parse(this[jt],this[Ui],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Me]=this[Me]||Object.create(null),this[Me].path=this[jt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Me]=this[Me]||Object.create(null),this[Me].linkpath=this[jt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Wt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Wt])return;if(this[Fe]===null&&e){if(this[K]&&(e=Buffer.concat([this[K],e]),this[K]=null),e.length<$c.length)return this[K]=e,!0;for(let i=0;this[Fe]===null&&i<$c.length;i++)e[i]!==$c[i]&&(this[Fe]=!1);if(this[Fe]===null){let i=this[dr];this[dr]=!1,this[Fe]=new ox.Unzip,this[Fe].on("data",s=>this[ks](s)),this[Fe].on("error",s=>this.abort(s)),this[Fe].on("end",s=>{this[dr]=!0,this[ks]()}),this[Gi]=!0;let n=this[Fe][i?"end":"write"](e);return this[Gi]=!1,n}}this[Gi]=!0,this[Fe]?this[Fe].write(e):this[ks](e),this[Gi]=!1;let r=this[wt].length?!1:this[bt]?this[bt].flowing:!0;return!r&&!this[wt].length&&this[bt].once("drain",i=>this.emit("drain")),r}[jc](e){e&&!this[Wt]&&(this[K]=this[K]?Buffer.concat([this[K],e]):e)}[Wc](){if(this[dr]&&!this[cg]&&!this[Wt]&&!this[qs]){this[cg]=!0;let e=this[pr];if(e&&e.blockRemain){let r=this[K]?this[K].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[K]&&e.write(this[K]),e.end()}this[mr](Hs)}}[ks](e){if(this[qs])this[jc](e);else if(!e&&!this[K])this[Wc]();else{if(this[qs]=!0,this[K]){this[jc](e);let r=this[K];this[K]=null,this[Ms](r)}else this[Ms](e);for(;this[K]&&this[K].length>=512&&!this[Wt]&&!this[Us];){let r=this[K];this[K]=null,this[Ms](r)}this[qs]=!1}(!this[K]||this[dr])&&this[Wc]()}[Ms](e){let r=0,i=e.length;for(;r+512<=i&&!this[Wt]&&!this[Us];)switch(this[ke]){case"begin":case"header":this[fg](e,r),r+=512;break;case"ignore":case"body":r+=this[Gc](e,r);break;case"meta":r+=this[lg](e,r);break;default:throw new Error("invalid state: "+this[ke])}r<i&&(this[K]?this[K]=Buffer.concat([e.slice(r),this[K]]):this[K]=e.slice(r))}end(e){this[Wt]||(this[Fe]?this[Fe].end(e):(this[dr]=!0,this.write(e)))}})});var js=m((BB,Eg)=>{"use strict";var cx=Wr(),mg=Gs(),ci=require("fs"),lx=ai(),dg=require("path"),zc=Qr();Eg.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=cx(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&&hx(i,e),i.noResume||fx(i),i.file&&i.sync?px(i):i.file?dx(i,r):gg(i)};var fx=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},hx=(t,e)=>{let r=new Map(e.map(s=>[zc(s),!0])),i=t.filter,n=(s,o)=>{let u=o||dg.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(dg.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(zc(s)):s=>n(zc(s))},px=t=>{let e=gg(t),r=t.file,i=!0,n;try{let s=ci.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(ci.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=ci.openSync(r,"r");u<s.size;){let c=ci.readSync(n,a,0,o,u);u+=c,e.write(a.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{ci.closeSync(n)}catch{}}},dx=(t,e)=>{let r=new mg(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),ci.stat(n,(a,c)=>{if(a)u(a);else{let l=new lx.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},gg=t=>new mg(t)});var Cg=m((PB,Sg)=>{"use strict";var mx=Wr(),Ws=Rs(),Dg=ai(),yg=js(),Ag=require("path");Sg.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=mx(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?gx(i,e):i.file?Ex(i,e,r):i.sync?Dx(i,e):yx(i,e)};var gx=(t,e)=>{let r=new Ws.Sync(t),i=new Dg.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),_g(r,e)},Ex=(t,e,r)=>{let i=new Ws(t),n=new Dg.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return Yc(i,e),r?s.then(r,r):s},_g=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?yg({file:Ag.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Yc=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return yg({file:Ag.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Yc(t,e));t.add(r)}t.end()},Dx=(t,e)=>{let r=new Ws.Sync(t);return _g(r,e),r},yx=(t,e)=>{let r=new Ws(t);return Yc(r,e),r}});var Kc=m((LB,Tg)=>{"use strict";var Ax=Wr(),bg=Rs(),Be=require("fs"),wg=ai(),Fg=js(),xg=require("path"),vg=Jr();Tg.exports=(t,e,r)=>{let i=Ax(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?_x(i,e):Cx(i,e,r)};var _x=(t,e)=>{let r=new bg.Sync(t),i=!0,n,s;try{try{n=Be.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Be.openSync(t.file,"w+");else throw a}let o=Be.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=Be.readSync(n,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new vg(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,Sx(t,r,s,n,e)}finally{if(i)try{Be.closeSync(n)}catch{}}},Sx=(t,e,r,i,n)=>{let s=new wg.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),bx(e,n)},Cx=(t,e,r)=>{e=Array.from(e);let i=new bg(t),n=(o,u,a)=>{let c=(g,D)=>{g?Be.close(o,_=>a(g)):a(null,D)},l=0;if(u===0)return c(null,0);let f=0,h=Buffer.alloc(512),E=(g,D)=>{if(g)return c(g);if(f+=D,f<512&&D)return Be.read(o,h,f,h.length-f,l+f,E);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let _=new vg(h);if(!_.cksumValid)return c(null,l);let b=512*Math.ceil(_.size/512);if(l+b+512>u||(l+=b+512,l>=u))return c(null,l);t.mtimeCache&&t.mtimeCache.set(_.path,_.mtime),f=0,Be.read(o,h,0,512,l,E)};Be.read(o,h,0,512,l,E)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",Be.open(t.file,a,c);if(l)return u(l);Be.fstat(f,(h,E)=>{if(h)return Be.close(f,()=>u(h));n(f,E.size,(g,D)=>{if(g)return u(g);let _=new wg.WriteStream(t.file,{fd:f,start:D});i.pipe(_),_.on("error",u),_.on("close",o),Rg(i,e)})})};Be.open(t.file,a,c)});return r?s.then(r,r):s},bx=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Fg({file:xg.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Rg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Fg({file:xg.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Rg(t,e));t.add(r)}t.end()}});var Bg=m((IB,Og)=>{"use strict";var wx=Wr(),Fx=Kc();Og.exports=(t,e,r)=>{let i=wx(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),xx(i),Fx(i,e,r)};var xx=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 Ig=m((NB,Lg)=>{var{promisify:Pg}=require("util"),zt=require("fs"),vx=t=>{if(!t)t={mode:511,fs:zt};else if(typeof t=="object")t={mode:511,fs:zt,...t};else if(typeof t=="number")t={mode:t,fs:zt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:zt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||zt.mkdir,t.mkdirAsync=Pg(t.mkdir),t.stat=t.stat||t.fs.stat||zt.stat,t.statAsync=Pg(t.stat),t.statSync=t.statSync||t.fs.statSync||zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||zt.mkdirSync,t};Lg.exports=vx});var kg=m((kB,Ng)=>{var Rx=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Tx,parse:Ox}=require("path"),Bx=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=Tx(t),Rx==="win32"){let e=/[*|"<>?:]/,{root:r}=Ox(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Ng.exports=Bx});var Ug=m((MB,$g)=>{var{dirname:Mg}=require("path"),qg=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?qg(t,Mg(e),e):void 0),Hg=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?Hg(t,Mg(e),e):void 0}};$g.exports={findMade:qg,findMadeSync:Hg}});var Zc=m((qB,jg)=>{var{dirname:Gg}=require("path"),Vc=(t,e,r)=>{e.recursive=!1;let i=Gg(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 Vc(i,e).then(s=>Vc(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})})},Xc=(t,e,r)=>{let i=Gg(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 Xc(t,e,Xc(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};jg.exports={mkdirpManual:Vc,mkdirpManualSync:Xc}});var Yg=m((HB,zg)=>{var{dirname:Wg}=require("path"),{findMade:Px,findMadeSync:Lx}=Ug(),{mkdirpManual:Ix,mkdirpManualSync:Nx}=Zc(),kx=(t,e)=>(e.recursive=!0,Wg(t)===t?e.mkdirAsync(t,e):Px(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return Ix(t,e);throw n}))),Mx=(t,e)=>{if(e.recursive=!0,Wg(t)===t)return e.mkdirSync(t,e);let i=Lx(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return Nx(t,e);throw n}};zg.exports={mkdirpNative:kx,mkdirpNativeSync:Mx}});var Zg=m(($B,Xg)=>{var Kg=require("fs"),qx=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Jc=qx.replace(/^v/,"").split("."),Vg=+Jc[0]>10||+Jc[0]==10&&+Jc[1]>=12,Hx=Vg?t=>t.mkdir===Kg.mkdir:()=>!1,$x=Vg?t=>t.mkdirSync===Kg.mkdirSync:()=>!1;Xg.exports={useNative:Hx,useNativeSync:$x}});var iE=m((UB,rE)=>{var li=Ig(),fi=kg(),{mkdirpNative:Jg,mkdirpNativeSync:Qg}=Yg(),{mkdirpManual:eE,mkdirpManualSync:tE}=Zc(),{useNative:Ux,useNativeSync:Gx}=Zg(),hi=(t,e)=>(t=fi(t),e=li(e),Ux(e)?Jg(t,e):eE(t,e)),jx=(t,e)=>(t=fi(t),e=li(e),Gx(e)?Qg(t,e):tE(t,e));hi.sync=jx;hi.native=(t,e)=>Jg(fi(t),li(e));hi.manual=(t,e)=>eE(fi(t),li(e));hi.nativeSync=(t,e)=>Qg(fi(t),li(e));hi.manualSync=(t,e)=>tE(fi(t),li(e));rE.exports=hi});var lE=m((GB,cE)=>{"use strict";var qe=require("fs"),Er=require("path"),Wx=qe.lchown?"lchown":"chown",zx=qe.lchownSync?"lchownSync":"chownSync",sE=qe.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nE=(t,e,r)=>{try{return qe[zx](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Yx=(t,e,r)=>{try{return qe.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Kx=sE?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):qe.chown(t,e,r,i)}:(t,e,r,i)=>i,Qc=sE?(t,e,r)=>{try{return nE(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;Yx(t,e,r)}}:(t,e,r)=>nE(t,e,r),Vx=process.version,oE=(t,e,r)=>qe.readdir(t,e,r),Xx=(t,e)=>qe.readdirSync(t,e);/^v4\./.test(Vx)&&(oE=(t,e,r)=>qe.readdir(t,r));var zs=(t,e,r,i)=>{qe[Wx](t,e,r,Kx(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},uE=(t,e,r,i,n)=>{if(typeof e=="string")return qe.lstat(Er.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,uE(t,o,r,i,n)});if(e.isDirectory())el(Er.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Er.resolve(t,e.name);zs(o,r,i,n)});else{let s=Er.resolve(t,e.name);zs(s,r,i,n)}},el=(t,e,r,i)=>{oE(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return zs(t,e,r,i);let o=s.length,u=null,a=c=>{if(!u){if(c)return i(u=c);if(--o===0)return zs(t,e,r,i)}};s.forEach(c=>uE(t,c,e,r,a))})},Zx=(t,e,r,i)=>{if(typeof e=="string")try{let n=qe.lstatSync(Er.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&aE(Er.resolve(t,e.name),r,i),Qc(Er.resolve(t,e.name),r,i)},aE=(t,e,r)=>{let i;try{i=Xx(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Qc(t,e,r);throw n}return i&&i.length&&i.forEach(n=>Zx(t,n,e,r)),Qc(t,e,r)};cE.exports=el;el.sync=aE});var dE=m((jB,tl)=>{"use strict";var fE=iE(),He=require("fs"),Ys=require("path"),hE=lE(),je=Xr(),Ks=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vs=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Xs=(t,e)=>t.get(je(e)),ji=(t,e,r)=>t.set(je(e),r),Jx=(t,e)=>{He.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Vs(t,r&&r.code||"ENOTDIR")),e(r)})};tl.exports=(t,e,r)=>{t=je(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=je(e.cwd),E=(_,b)=>{_?r(_):(ji(f,t,!0),b&&a?hE(b,o,u,F=>E(F)):s?He.chmod(t,n,r):r())};if(f&&Xs(f,t)===!0)return E();if(t===h)return Jx(t,E);if(c)return fE(t,{mode:n}).then(_=>E(null,_),E);let D=je(Ys.relative(h,t)).split("/");Zs(h,D,n,f,l,h,null,E)};var Zs=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),c=je(Ys.resolve(t+"/"+a));if(Xs(i,c))return Zs(c,e,r,i,n,s,o,u);He.mkdir(c,r,pE(c,e,r,i,n,s,o,u))},pE=(t,e,r,i,n,s,o,u)=>a=>{a?He.lstat(t,(c,l)=>{if(c)c.path=c.path&&je(c.path),u(c);else if(l.isDirectory())Zs(t,e,r,i,n,s,o,u);else if(n)He.unlink(t,f=>{if(f)return u(f);He.mkdir(t,r,pE(t,e,r,i,n,s,o,u))});else{if(l.isSymbolicLink())return u(new Ks(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Zs(t,e,r,i,n,s,o,u))},Qx=t=>{let e=!1,r="ENOTDIR";try{e=He.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Vs(t,r)}};tl.exports.sync=(t,e)=>{t=je(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,c=e.unlink,l=e.cache,f=je(e.cwd),h=_=>{ji(l,t,!0),_&&u&&hE.sync(_,s,o),n&&He.chmodSync(t,i)};if(l&&Xs(l,t)===!0)return h();if(t===f)return Qx(f),h();if(a)return h(fE.sync(t,i));let g=je(Ys.relative(f,t)).split("/"),D=null;for(let _=g.shift(),b=f;_&&(b+="/"+_);_=g.shift())if(b=je(Ys.resolve(b)),!Xs(l,b))try{He.mkdirSync(b,i),D=D||b,ji(l,b,!0)}catch{let M=He.lstatSync(b);if(M.isDirectory()){ji(l,b,!0);continue}else if(c){He.unlinkSync(b),He.mkdirSync(b,i),D=D||b,ji(l,b,!0);continue}else if(M.isSymbolicLink())return new Ks(b,b+"/"+g.join("/"))}return h(D)}});var il=m((WB,mE)=>{var rl=Object.create(null),{hasOwnProperty:ev}=Object.prototype;mE.exports=t=>(ev.call(rl,t)||(rl[t]=t.normalize("NFKD")),rl[t])});var yE=m((zB,DE)=>{var gE=require("assert"),tv=il(),rv=Qr(),{join:EE}=require("path"),iv=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,nv=iv==="win32";DE.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=EE(f[f.length-1],h)),f.push(h||"/"),f),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=n(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>u(c)),!0),u=c=>{if(!i.has(c))return!1;let{paths:l,dirs:f}=e.get(c),h=new Set;return l.forEach(E=>{let g=t.get(E);gE.equal(g[0],c),g.length===1?t.delete(E):(g.shift(),typeof g[0]=="function"?h.add(g[0]):g[0].forEach(D=>h.add(D)))}),f.forEach(E=>{let g=t.get(E);gE(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(E):g[0].size===1?(g.shift(),h.add(g[0])):g[0].delete(c)}),i.delete(c),h.forEach(E=>o(E)),!0};return{check:s,reserve:(c,l)=>{c=nv?["win32 parallelization disabled"]:c.map(h=>tv(rv(EE(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,E)=>h.concat(E)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let E=t.get(h);E?E.push(l):t.set(h,[l])}),f.forEach(h=>{let E=t.get(h);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var SE=m((YB,_E)=>{var sv=process.env.__FAKE_PLATFORM__||process.platform,ov=sv==="win32",uv=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:av,O_TRUNC:cv,O_WRONLY:lv,UV_FS_O_FILEMAP:AE=0}=uv.constants,fv=ov&&!!AE,hv=512*1024,pv=AE|cv|av|lv;_E.exports=fv?t=>t<hv?pv:"w":()=>"w"});var hl=m((KB,NE)=>{"use strict";var dv=require("assert"),mv=Gs(),H=require("fs"),gv=ai(),Ft=require("path"),PE=dE(),CE=fc(),Ev=yE(),Dv=hc(),Pe=Xr(),yv=Qr(),Av=il(),bE=Symbol("onEntry"),ol=Symbol("checkFs"),wE=Symbol("checkFs2"),eo=Symbol("pruneCache"),ul=Symbol("isReusable"),$e=Symbol("makeFs"),al=Symbol("file"),cl=Symbol("directory"),to=Symbol("link"),FE=Symbol("symlink"),xE=Symbol("hardlink"),vE=Symbol("unsupported"),RE=Symbol("checkPath"),Yt=Symbol("mkdir"),De=Symbol("onError"),Js=Symbol("pending"),TE=Symbol("pend"),pi=Symbol("unpend"),nl=Symbol("ended"),sl=Symbol("maybeClose"),ll=Symbol("skip"),Wi=Symbol("doChown"),zi=Symbol("uid"),Yi=Symbol("gid"),Ki=Symbol("checkedCwd"),LE=require("crypto"),IE=SE(),_v=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Vi=_v==="win32",Sv=(t,e)=>{if(!Vi)return H.unlink(t,e);let r=t+".DELETE."+LE.randomBytes(16).toString("hex");H.rename(t,r,i=>{if(i)return e(i);H.unlink(r,e)})},Cv=t=>{if(!Vi)return H.unlinkSync(t);let e=t+".DELETE."+LE.randomBytes(16).toString("hex");H.renameSync(t,e),H.unlinkSync(e)},OE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,BE=t=>Av(yv(Pe(t))).toLowerCase(),bv=(t,e)=>{e=BE(e);for(let r of t.keys()){let i=BE(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},wv=t=>{for(let e of t.keys())t.delete(e)},Xi=class extends mv{constructor(e){if(e||(e={}),e.ondone=r=>{this[nl]=!0,this[sl]()},super(e),this[Ki]=!1,this.reservations=Ev(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Js]=0,this[nl]=!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||Vi,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Pe(Ft.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[bE](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[sl](){this[nl]&&this[Js]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[RE](e){if(this.strip){let r=Pe(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Pe(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Pe(e.path),i=r.split("/");if(i.includes("..")||Vi&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=Dv(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Ft.isAbsolute(e.path)?e.absolute=Pe(Ft.resolve(e.path)):e.absolute=Pe(Ft.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:Pe(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}=Ft.win32.parse(e.absolute);e.absolute=r+CE.encode(e.absolute.slice(r.length));let{root:i}=Ft.win32.parse(e.path);e.path=i+CE.encode(e.path.slice(i.length))}return!0}[bE](e){if(!this[RE](e))return e.resume();switch(dv.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[ol](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[vE](e)}}[De](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[pi](),r.resume())}[Yt](e,r,i){PE(Pe(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)}[Wi](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[zi](e){return OE(this.uid,e.uid,this.processUid)}[Yi](e){return OE(this.gid,e.gid,this.processGid)}[al](e,r){let i=e.mode&4095||this.fmode,n=new gv.WriteStream(e.absolute,{flags:IE(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&H.close(n.fd,()=>{}),n.write=()=>!0,this[De](a,e),r()});let s=1,o=a=>{if(a){n.fd&&H.close(n.fd,()=>{}),this[De](a,e),r();return}--s===0&&H.close(n.fd,c=>{c?this[De](c,e):this[pi](),r()})};n.on("finish",a=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;H.futimes(l,f,h,E=>E?H.utimes(c,f,h,g=>o(g&&E)):o())}if(this[Wi](e)){s++;let f=this[zi](e),h=this[Yi](e);H.fchown(l,f,h,E=>E?H.chown(c,f,h,g=>o(g&&E)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[De](a,e),r()}),e.pipe(u)),u.pipe(n)}[cl](e,r){let i=e.mode&4095||this.dmode;this[Yt](e.absolute,i,n=>{if(n){this[De](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[pi](),e.resume())};e.mtime&&!this.noMtime&&(s++,H.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Wi](e)&&(s++,H.chown(e.absolute,this[zi](e),this[Yi](e),o)),o()})}[vE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[FE](e,r){this[to](e,e.linkpath,"symlink",r)}[xE](e,r){let i=Pe(Ft.resolve(this.cwd,e.linkpath));this[to](e,i,"link",r)}[TE](){this[Js]++}[pi](){this[Js]--,this[sl]()}[ll](e){this[pi](),e.resume()}[ul](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Vi}[ol](e){this[TE]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[wE](e,i))}[eo](e){e.type==="SymbolicLink"?wv(this.dirCache):e.type!=="Directory"&&bv(this.dirCache,e.absolute)}[wE](e,r){this[eo](e);let i=u=>{this[eo](e),r(u)},n=()=>{this[Yt](this.cwd,this.dmode,u=>{if(u){this[De](u,e),i();return}this[Ki]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=Pe(Ft.dirname(e.absolute));if(u!==this.cwd)return this[Yt](u,this.dmode,a=>{if(a){this[De](a,e),i();return}o()})}o()},o=()=>{H.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[ll](e),i();return}if(u||this[ul](e,a))return this[$e](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,l=f=>this[$e](f,e,i);return c?H.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return H.rmdir(e.absolute,c=>this[$e](c,e,i))}if(e.absolute===this.cwd)return this[$e](null,e,i);Sv(e.absolute,c=>this[$e](c,e,i))})};this[Ki]?s():n()}[$e](e,r,i){if(e){this[De](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[al](r,i);case"Link":return this[xE](r,i);case"SymbolicLink":return this[FE](r,i);case"Directory":case"GNUDumpDir":return this[cl](r,i)}}[to](e,r,i,n){H[i](r,e.absolute,s=>{s?this[De](s,e):(this[pi](),e.resume()),n()})}},Qs=t=>{try{return[null,t()]}catch(e){return[e,null]}},fl=class extends Xi{[$e](e,r){return super[$e](e,r,()=>{})}[ol](e){if(this[eo](e),!this[Ki]){let s=this[Yt](this.cwd,this.dmode);if(s)return this[De](s,e);this[Ki]=!0}if(e.absolute!==this.cwd){let s=Pe(Ft.dirname(e.absolute));if(s!==this.cwd){let o=this[Yt](s,this.dmode);if(o)return this[De](o,e)}}let[r,i]=Qs(()=>H.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[ll](e);if(r||this[ul](e,i))return this[$e](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Qs(()=>{H.chmodSync(e.absolute,e.mode)}):[];return this[$e](u,e)}let[s]=Qs(()=>H.rmdirSync(e.absolute));this[$e](s,e)}let[n]=e.absolute===this.cwd?[]:Qs(()=>Cv(e.absolute));this[$e](n,e)}[al](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{H.closeSync(s)}catch(c){a=c}(u||a)&&this[De](u||a,e),r()},s;try{s=H.openSync(e.absolute,IE(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[De](u,e)),e.pipe(o)),o.on("data",u=>{try{H.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{H.futimesSync(s,c,l)}catch(f){try{H.utimesSync(e.absolute,c,l)}catch{a=f}}}if(this[Wi](e)){let c=this[zi](e),l=this[Yi](e);try{H.fchownSync(s,c,l)}catch(f){try{H.chownSync(e.absolute,c,l)}catch{a=a||f}}}n(a)})}[cl](e,r){let i=e.mode&4095||this.dmode,n=this[Yt](e.absolute,i);if(n){this[De](n,e),r();return}if(e.mtime&&!this.noMtime)try{H.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Wi](e))try{H.chownSync(e.absolute,this[zi](e),this[Yi](e))}catch{}r(),e.resume()}[Yt](e,r){try{return PE.sync(Pe(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}}[to](e,r,i,n){try{H[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[De](s,e)}}};Xi.Sync=fl;NE.exports=Xi});var $E=m((VB,HE)=>{"use strict";var Fv=Wr(),ro=hl(),ME=require("fs"),qE=ai(),kE=require("path"),pl=Qr();HE.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=Fv(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&&xv(i,e),i.file&&i.sync?vv(i):i.file?Rv(i,r):i.sync?Tv(i):Ov(i)};var xv=(t,e)=>{let r=new Map(e.map(s=>[pl(s),!0])),i=t.filter,n=(s,o)=>{let u=o||kE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(kE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(pl(s)):s=>n(pl(s))},vv=t=>{let e=new ro.Sync(t),r=t.file,i=ME.statSync(r),n=t.maxReadSize||16*1024*1024;new qE.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},Rv=(t,e)=>{let r=new ro(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),ME.stat(n,(a,c)=>{if(a)u(a);else{let l=new qE.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},Tv=t=>new ro.Sync(t),Ov=t=>new ro(t)});var UE=m(oe=>{"use strict";oe.c=oe.create=Cg();oe.r=oe.replace=Kc();oe.t=oe.list=js();oe.u=oe.update=Bg();oe.x=oe.extract=$E();oe.Pack=Rs();oe.Unpack=hl();oe.Parse=Gs();oe.ReadEntry=hs();oe.WriteEntry=Sc();oe.Header=Jr();oe.Pax=ds();oe.types=nc()});var KE=m((e2,YE)=>{function Ue(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))}YE.exports=Ue;Ue.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ue.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ue.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};Ue.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)};Ue.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ue.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ue.prototype.start=Ue.prototype.try;Ue.prototype.errors=function(){return this._errors};Ue.prototype.attempts=function(){return this._attempts};Ue.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 VE=m(Dr=>{var Iv=KE();Dr.operation=function(t){var e=Dr.timeouts(t);return new Iv(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Dr.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};Dr.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};Dr.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(a){var c=Dr.operation(e),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(t,l)})}.bind(t,o),t[s].options=e}}});var ZE=m((r2,XE)=>{XE.exports=VE()});var QE=m((i2,JE)=>{var Nv=ZE();function kv(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Nv.operation(s);function u(l){n(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):n(o.mainError())}function c(l){var f;try{f=t(u,l)}catch(h){a(h,l);return}Promise.resolve(f).then(i).catch(function(E){a(E,l)})}o.attempt(c)}return new Promise(r)}JE.exports=kv});var Zv={};El(Zv,{default:()=>Xv,transformer:()=>iD});module.exports=lD(Zv);var gl=G(require("path")),Ji=require("fs-extra");var oo=G(require("chalk"));var hD=G(Cl());function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mi(t){return mi=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},mi(t)}function lo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fo(t,e){if(e&&(mi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lo(t)}function Xt(t){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xt(t)}function ct(t,e){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ct(t,e)}function ho(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&&ct(t,e)}function po(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function mo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yr(t,e,r){return mo()?yr=Reflect.construct.bind():yr=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),c=new a;return o&&ct(c,o.prototype),c},yr.apply(null,arguments)}function gi(t){var e=typeof Map=="function"?new Map:void 0;return gi=function(i){if(i===null||!po(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return yr(i,arguments,Xt(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ct(n,i)},gi(t)}var bl=G(require("find-up"));var pD=G(require("fs-extra")),TR=function(t){ho(e,t);function e(r){var i;return co(this,e),i=fo(this,Xt(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(gi(Error));var dD=G(require("fs")),mD=G(require("path"));var Vb=G(require("fs")),Xb=G(require("path"));function Hl(t){return typeof t=="undefined"||t===null}function DD(t){return typeof t=="object"&&t!==null}function yD(t){return Array.isArray(t)?t:Hl(t)?[]:[t]}function AD(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 _D(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function SD(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var CD=Hl,bD=DD,wD=yD,FD=_D,xD=SD,vD=AD,se={isNothing:CD,isObject:bD,toArray:wD,repeat:FD,isNegativeZero:xD,extend:vD};function $l(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
4
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var em=d((LO,Ri)=>{"use strict";var vi=require("path"),Jd=ha(),Qd=t=>{t={cwd:process.cwd(),path:process.env[Jd()],execPath:process.execPath,...t};let e,r=vi.resolve(t.cwd),i=[];for(;e!==r;)i.push(vi.join(r,"node_modules/.bin")),e=r,r=vi.resolve(r,"..");let n=vi.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(vi.delimiter)};Ri.exports=Qd;Ri.exports.default=Qd;Ri.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Jd({env:e});return t.path=e[r],e[r]=Ri.exports(t),e}});var rm=d((IO,Aa)=>{"use strict";var tm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Aa.exports=tm;Aa.exports.default=tm});var nm=d((NO,$n)=>{"use strict";var F1=rm(),Hn=new WeakMap,im=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(Hn.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 F1(s,t),Hn.set(s,i),s};$n.exports=im;$n.exports.default=im;$n.exports.callCount=t=>{if(!Hn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Hn.get(t)}});var sm=d(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.SIGNALS=void 0;var x1=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Un.SIGNALS=x1});var _a=d($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.SIGRTMAX=$r.getRealtimeSignals=void 0;var v1=function(){let t=um-om+1;return Array.from({length:t},R1)};$r.getRealtimeSignals=v1;var R1=function(t,e){return{name:`SIGRT${e+1}`,number:om+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},om=34,um=64;$r.SIGRTMAX=um});var am=d(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.getSignals=void 0;var T1=require("os"),O1=sm(),B1=_a(),P1=function(){let t=(0,B1.getRealtimeSignals)();return[...O1.SIGNALS,...t].map(L1)};jn.getSignals=P1;var L1=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=T1.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var lm=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.signalsByNumber=Ur.signalsByName=void 0;var I1=require("os"),cm=am(),N1=_a(),k1=function(){return(0,cm.getSignals)().reduce(M1,{})},M1=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}}},q1=k1();Ur.signalsByName=q1;var H1=function(){let t=(0,cm.getSignals)(),e=N1.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>$1(n,t));return Object.assign({},...r)},$1=function(t,e){let r=U1(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:u,standard:a}}},U1=function(t,e){let r=e.find(({name:i})=>I1.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},j1=H1();Ur.signalsByNumber=j1});var hm=d(($O,fm)=>{"use strict";var{signalsByName:G1}=lm(),W1=({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",z1=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let h=n===void 0?void 0:G1[n].description,g=i&&i.code,E=`Command ${W1({timedOut:a,timeout:f,errorCode:g,signal:n,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,S=Object.prototype.toString.call(i)==="[object Error]",C=S?`${E}
|
5
|
+
${i.message}`:E,w=[C,e,t].filter(Boolean).join(`
|
6
|
+
`);return S?(i.originalMessage=i.message,i.message=w):i=new Error(w),i.shortMessage=C,i.command=o,i.escapedCommand=u,i.exitCode=s,i.signal=n,i.signalDescription=h,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!a,i.isCanceled=c,i.killed=l&&!a,i};fm.exports=z1});var dm=d((UO,Sa)=>{"use strict";var Gn=["stdin","stdout","stderr"],Y1=t=>Gn.some(e=>t[e]!==void 0),pm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Gn.map(i=>t[i]);if(Y1(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Gn.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Gn.length);return Array.from({length:r},(i,n)=>e[n])};Sa.exports=pm;Sa.exports.node=t=>{let e=pm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var mm=d((jO,Wn)=>{Wn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Wn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Am=d((GO,Wr)=>{var Z=global.process,ar=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"};ar(Z)?(gm=require("assert"),jr=mm(),Em=/^win/i.test(Z.platform),Ti=require("events"),typeof Ti!="function"&&(Ti=Ti.EventEmitter),Z.__signal_exit_emitter__?ae=Z.__signal_exit_emitter__:(ae=Z.__signal_exit_emitter__=new Ti,ae.count=0,ae.emitted={}),ae.infinite||(ae.setMaxListeners(1/0),ae.infinite=!0),Wr.exports=function(t,e){if(!ar(global.process))return function(){};gm.equal(typeof t,"function","a callback must be provided for exit handler"),Gr===!1&&Ca();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ae.removeListener(r,t),ae.listeners("exit").length===0&&ae.listeners("afterexit").length===0&&zn()};return ae.on(r,t),i},zn=function(){!Gr||!ar(global.process)||(Gr=!1,jr.forEach(function(e){try{Z.removeListener(e,Yn[e])}catch{}}),Z.emit=Kn,Z.reallyExit=ba,ae.count-=1)},Wr.exports.unload=zn,cr=function(e,r,i){ae.emitted[e]||(ae.emitted[e]=!0,ae.emit(e,r,i))},Yn={},jr.forEach(function(t){Yn[t]=function(){if(ar(global.process)){var r=Z.listeners(t);r.length===ae.count&&(zn(),cr("exit",null,t),cr("afterexit",null,t),Em&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Wr.exports.signals=function(){return jr},Gr=!1,Ca=function(){Gr||!ar(global.process)||(Gr=!0,ae.count+=1,jr=jr.filter(function(e){try{return Z.on(e,Yn[e]),!0}catch{return!1}}),Z.emit=ym,Z.reallyExit=Dm)},Wr.exports.load=Ca,ba=Z.reallyExit,Dm=function(e){ar(global.process)&&(Z.exitCode=e||0,cr("exit",Z.exitCode,null),cr("afterexit",Z.exitCode,null),ba.call(Z,Z.exitCode))},Kn=Z.emit,ym=function(e,r){if(e==="exit"&&ar(global.process)){r!==void 0&&(Z.exitCode=r);var i=Kn.apply(this,arguments);return cr("exit",Z.exitCode,null),cr("afterexit",Z.exitCode,null),i}else return Kn.apply(this,arguments)}):Wr.exports=function(){return function(){}};var gm,jr,Em,Ti,ae,zn,cr,Yn,Gr,Ca,ba,Dm,Kn,ym});var Sm=d((WO,_m)=>{"use strict";var K1=require("os"),V1=Am(),X1=1e3*5,Z1=(t,e="SIGTERM",r={})=>{let i=t(e);return J1(t,e,r,i),i},J1=(t,e,r,i)=>{if(!Q1(e,r,i))return;let n=tw(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},Q1=(t,{forceKillAfterTimeout:e},r)=>ew(t)&&e!==!1&&r,ew=t=>t===K1.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",tw=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return X1;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},rw=(t,e)=>{t.kill()&&(e.isCanceled=!0)},iw=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},nw=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{iw(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},sw=({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})`)},ow=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=V1(()=>{t.kill()});return i.finally(()=>{n()})};_m.exports={spawnedKill:Z1,spawnedCancel:rw,setupTimeout:nw,validateTimeout:sw,setExitHandler:ow}});var bm=d((zO,Cm)=>{"use strict";var rt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";rt.writable=t=>rt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";rt.readable=t=>rt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";rt.duplex=t=>rt.writable(t)&&rt.readable(t);rt.transform=t=>rt.duplex(t)&&typeof t._transform=="function";Cm.exports=rt});var Fm=d((YO,wm)=>{"use strict";var{PassThrough:uw}=require("stream");wm.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 uw({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var xm=d((KO,Oi)=>{"use strict";var{constants:aw}=require("buffer"),cw=require("stream"),{promisify:lw}=require("util"),fw=Fm(),hw=lw(cw.pipeline),Vn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function wa(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=fw(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=aw.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await hw(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Vn)})}),i.getBufferedValue()}Oi.exports=wa;Oi.exports.buffer=(t,e)=>wa(t,{...e,encoding:"buffer"});Oi.exports.array=(t,e)=>wa(t,{...e,array:!0});Oi.exports.MaxBufferError=Vn});var Rm=d((VO,vm)=>{"use strict";var{PassThrough:pw}=require("stream");vm.exports=function(){var t=[],e=new pw({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 Pm=d((XO,Bm)=>{"use strict";var Om=bm(),Tm=xm(),dw=Rm(),mw=(t,e)=>{e===void 0||t.stdin===void 0||(Om(e)?e.pipe(t.stdin):t.stdin.end(e))},gw=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=dw();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Fa=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xa=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Tm(t,{encoding:e,maxBuffer:i}):Tm.buffer(t,{maxBuffer:i})},Ew=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=xa(t,{encoding:i,buffer:n,maxBuffer:s}),a=xa(e,{encoding:i,buffer:n,maxBuffer:s}),c=xa(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Fa(t,u),Fa(e,a),Fa(r,c)])}},Dw=({input:t})=>{if(Om(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Bm.exports={handleInput:mw,makeAllStream:gw,getSpawnedResult:Ew,validateInputSync:Dw}});var Im=d((ZO,Lm)=>{"use strict";var yw=(async()=>{})().constructor.prototype,Aw=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(yw,t)]),_w=(t,e)=>{for(let[r,i]of Aw){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},Sw=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)})});Lm.exports={mergePromise:_w,getSpawnedPromise:Sw}});var Mm=d((JO,km)=>{"use strict";var Nm=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Cw=/^[\w.-]+$/,bw=/"/g,ww=t=>typeof t!="string"||Cw.test(t)?t:`"${t.replace(bw,'\\"')}"`,Fw=(t,e)=>Nm(t,e).join(" "),xw=(t,e)=>Nm(t,e).map(r=>ww(r)).join(" "),vw=/ +/g,Rw=t=>{let e=[];for(let r of t.trim().split(vw)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};km.exports={joinCommand:Fw,getEscapedCommand:xw,parseCommand:Rw}});var Wm=d((QO,zr)=>{"use strict";var Tw=require("path"),va=require("child_process"),Ow=Vd(),Bw=Zd(),Pw=em(),Lw=nm(),Xn=hm(),Hm=dm(),{spawnedKill:Iw,spawnedCancel:Nw,setupTimeout:kw,validateTimeout:Mw,setExitHandler:qw}=Sm(),{handleInput:Hw,getSpawnedResult:$w,makeAllStream:Uw,validateInputSync:jw}=Pm(),{mergePromise:qm,getSpawnedPromise:Gw}=Im(),{joinCommand:$m,parseCommand:Um,getEscapedCommand:jm}=Mm(),Ww=1e3*1e3*100,zw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?Pw.env({env:s,cwd:i,execPath:n}):s},Gm=(t,e,r={})=>{let i=Ow._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:Ww,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=zw(r),r.stdio=Hm(r),process.platform==="win32"&&Tw.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Bi=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Bw(e):e,Zn=(t,e,r)=>{let i=Gm(t,e,r),n=$m(t,e),s=jm(t,e);Mw(i.options);let o;try{o=va.spawn(i.file,i.args,i.options)}catch(g){let m=new va.ChildProcess,E=Promise.reject(Xn({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return qm(m,E)}let u=Gw(o),a=kw(o,i.options,u),c=qw(o,i.options,a),l={isCanceled:!1};o.kill=Iw.bind(null,o.kill.bind(o)),o.cancel=Nw.bind(null,o,l);let h=Lw(async()=>{let[{error:g,exitCode:m,signal:E,timedOut:S},C,w,k]=await $w(o,i.options,c),re=Bi(i.options,C),L=Bi(i.options,w),q=Bi(i.options,k);if(g||m!==0||E!==null){let O=Xn({error:g,exitCode:m,signal:E,stdout:re,stderr:L,all:q,command:n,escapedCommand:s,parsed:i,timedOut:S,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return O;throw O}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:L,all:q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Hw(o,i.options.input),o.all=Uw(o,i.options),qm(o,h)};zr.exports=Zn;zr.exports.sync=(t,e,r)=>{let i=Gm(t,e,r),n=$m(t,e),s=jm(t,e);jw(i.options);let o;try{o=va.spawnSync(i.file,i.args,i.options)}catch(c){throw Xn({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Bi(i.options,o.stdout,o.error),a=Bi(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Xn({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};zr.exports.command=(t,e)=>{let[r,...i]=Um(t);return Zn(r,i,e)};zr.exports.commandSync=(t,e)=>{let[r,...i]=Um(t);return Zn.sync(r,i,e)};zr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Hm.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Zn(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Yr=d((nB,Km)=>{"use strict";var Ym=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Km.exports=t=>t?Object.keys(t).map(e=>[Ym.has(e)?Ym.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var is=d((sB,i0)=>{"use strict";var Vm=typeof process=="object"&&process?process:{stdout:null,stderr:null},Qw=require("events"),Xm=require("stream"),Zm=require("string_decoder").StringDecoder,Et=Symbol("EOF"),Dt=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),Jn=Symbol("emittingEnd"),Pi=Symbol("emittedError"),Qn=Symbol("closed"),Jm=Symbol("read"),es=Symbol("flush"),Qm=Symbol("flushChunk"),Fe=Symbol("encoding"),yt=Symbol("decoder"),ts=Symbol("flowing"),Li=Symbol("paused"),Kr=Symbol("resume"),ee=Symbol("buffer"),it=Symbol("pipes"),ce=Symbol("bufferLength"),Ra=Symbol("bufferPush"),Ta=Symbol("bufferShift"),ge=Symbol("objectMode"),Ee=Symbol("destroyed"),Oa=Symbol("emitData"),e0=Symbol("emitEnd"),Ba=Symbol("emitEnd2"),At=Symbol("async"),Ii=t=>Promise.resolve().then(t),t0=global._MP_NO_ITERATOR_SYMBOLS_!=="1",eF=t0&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),tF=t0&&Symbol.iterator||Symbol("iterator not implemented"),rF=t=>t==="end"||t==="finish"||t==="prefinish",iF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,nF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),rs=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()}},Pa=class extends rs{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)}};i0.exports=class r0 extends Xm{constructor(e){super(),this[ts]=!1,this[Li]=!1,this[it]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Fe]=null:this[Fe]=e&&e.encoding||null,this[Fe]==="buffer"&&(this[Fe]=null),this[At]=e&&!!e.async||!1,this[yt]=this[Fe]?new Zm(this[Fe]):null,this[Et]=!1,this[Ht]=!1,this[Jn]=!1,this[Qn]=!1,this[Pi]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[Ee]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[it]})}get bufferLength(){return this[ce]}get encoding(){return this[Fe]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Fe]&&e!==this[Fe]&&(this[yt]&&this[yt].lastNeed||this[ce]))throw new Error("cannot change encoding");this[Fe]!==e&&(this[yt]=e?new Zm(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[yt].write(r)))),this[Fe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[At]}set async(e){this[At]=this[At]||!!e}write(e,r,i){if(this[Et])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]?Ii:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&(nF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):iF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[es](!0),this.flowing?this.emit("data",e):this[Ra](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Fe]&&!this[yt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Fe]&&(e=this[yt].write(e)),this.flowing&&this[ce]!==0&&this[es](!0),this.flowing?this.emit("data",e):this[Ra](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ee])return null;if(this[ce]===0||e===0||e>this[ce])return this[Dt](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[ce])]);let r=this[Jm](e||null,this[ee][0]);return this[Dt](),r}[Jm](e,r){return e===r.length||e===null?this[Ta]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[ce]-=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[Li])&&this[Dt](),this}[Kr](){this[Ee]||(this[Li]=!1,this[ts]=!0,this.emit("resume"),this[ee].length?this[es]():this[Et]?this[Dt]():this.emit("drain"))}resume(){return this[Kr]()}pause(){this[ts]=!1,this[Li]=!0}get destroyed(){return this[Ee]}get flowing(){return this[ts]}get paused(){return this[Li]}[Ra](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this[ee].push(e)}[Ta](){return this[ee].length&&(this[ge]?this[ce]-=1:this[ce]-=this[ee][0].length),this[ee].shift()}[es](e){do;while(this[Qm](this[Ta]()));!e&&!this[ee].length&&!this[Et]&&this.emit("drain")}[Qm](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[Ht];return r=r||{},e===Vm.stdout||e===Vm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[it].push(r.proxyErrors?new Pa(this,e,r):new rs(this,e,r)),this[At]?Ii(()=>this[Kr]()):this[Kr]()),e}unpipe(e){let r=this[it].find(i=>i.dest===e);r&&(this[it].splice(this[it].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[it].length&&!this.flowing?this[Kr]():e==="readable"&&this[ce]!==0?super.emit("readable"):rF(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Pi]&&(this[At]?Ii(()=>r.call(this,this[Pi])):r.call(this,this[Pi])),i}get emittedEnd(){return this[Ht]}[Dt](){!this[Jn]&&!this[Ht]&&!this[Ee]&&this[ee].length===0&&this[Et]&&(this[Jn]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Qn]&&this.emit("close"),this[Jn]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[At]?Ii(()=>this[Oa](r)):this[Oa](r):!1;if(e==="end")return this[e0]();if(e==="close"){if(this[Qn]=!0,!this[Ht]&&!this[Ee])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Pi]=r;let s=super.emit("error",r);return this[Dt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Dt](),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[Dt](),n}[Oa](e){for(let i of this[it])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Dt](),r}[e0](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[At]?Ii(()=>this[Ba]()):this[Ba]())}[Ba](){if(this[yt]){let r=this[yt].end();if(r){for(let i of this[it])i.dest.write(r);super.emit("data",r)}}for(let r of this[it])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[Fe]?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())})}[eF](){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=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[Et]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ee,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[tF](){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[ee].length=0,this[ce]=0,typeof this.close=="function"&&!this[Qn]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof r0||e instanceof Xm||e instanceof Qw&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var s0=d((oB,n0)=>{var sF=require("zlib").constants||{ZLIB_VERNUM:4736};n0.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},sF))});var qa=d((uB,d0)=>{"use strict";var o0=typeof process=="object"&&process?process:{stdout:null,stderr:null},oF=require("events"),u0=require("stream"),a0=require("string_decoder").StringDecoder,_t=Symbol("EOF"),St=Symbol("maybeEmitEnd"),$t=Symbol("emittedEnd"),ns=Symbol("emittingEnd"),Ni=Symbol("emittedError"),ss=Symbol("closed"),c0=Symbol("read"),os=Symbol("flush"),l0=Symbol("flushChunk"),xe=Symbol("encoding"),Ct=Symbol("decoder"),us=Symbol("flowing"),ki=Symbol("paused"),Vr=Symbol("resume"),le=Symbol("bufferLength"),La=Symbol("bufferPush"),Ia=Symbol("bufferShift"),De=Symbol("objectMode"),ye=Symbol("destroyed"),Na=Symbol("emitData"),f0=Symbol("emitEnd"),ka=Symbol("emitEnd2"),bt=Symbol("async"),Mi=t=>Promise.resolve().then(t),h0=global._MP_NO_ITERATOR_SYMBOLS_!=="1",uF=h0&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),aF=h0&&Symbol.iterator||Symbol("iterator not implemented"),cF=t=>t==="end"||t==="finish"||t==="prefinish",lF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,fF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),as=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Vr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ma=class extends as{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};d0.exports=class p0 extends u0{constructor(e){super(),this[us]=!1,this[ki]=!1,this.pipes=[],this.buffer=[],this[De]=e&&e.objectMode||!1,this[De]?this[xe]=null:this[xe]=e&&e.encoding||null,this[xe]==="buffer"&&(this[xe]=null),this[bt]=e&&!!e.async||!1,this[Ct]=this[xe]?new a0(this[xe]):null,this[_t]=!1,this[$t]=!1,this[ns]=!1,this[ss]=!1,this[Ni]=null,this.writable=!0,this.readable=!0,this[le]=0,this[ye]=!1}get bufferLength(){return this[le]}get encoding(){return this[xe]}set encoding(e){if(this[De])throw new Error("cannot set encoding in objectMode");if(this[xe]&&e!==this[xe]&&(this[Ct]&&this[Ct].lastNeed||this[le]))throw new Error("cannot change encoding");this[xe]!==e&&(this[Ct]=e?new a0(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Ct].write(r)))),this[xe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[De]}set objectMode(e){this[De]=this[De]||!!e}get async(){return this[bt]}set async(e){this[bt]=this[bt]||!!e}write(e,r,i){if(this[_t])throw new Error("write after end");if(this[ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[bt]?Mi:s=>s();return!this[De]&&!Buffer.isBuffer(e)&&(fF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):lF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[De]?(this.flowing&&this[le]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[La](e),this[le]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[xe]&&!this[Ct].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[xe]&&(e=this[Ct].write(e)),this.flowing&&this[le]!==0&&this[os](!0),this.flowing?this.emit("data",e):this[La](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[De]&&(e=null),this.buffer.length>1&&!this[De]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[le])]);let r=this[c0](e||null,this.buffer[0]);return this[St](),r}[c0](e,r){return e===r.length||e===null?this[Ia]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[le]-=e),this.emit("data",r),!this.buffer.length&&!this[_t]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[_t]=!0,this.writable=!1,(this.flowing||!this[ki])&&this[St](),this}[Vr](){this[ye]||(this[ki]=!1,this[us]=!0,this.emit("resume"),this.buffer.length?this[os]():this[_t]?this[St]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[us]=!1,this[ki]=!0}get destroyed(){return this[ye]}get flowing(){return this[us]}get paused(){return this[ki]}[La](e){this[De]?this[le]+=1:this[le]+=e.length,this.buffer.push(e)}[Ia](){return this.buffer.length&&(this[De]?this[le]-=1:this[le]-=this.buffer[0].length),this.buffer.shift()}[os](e){do;while(this[l0](this[Ia]()));!e&&!this.buffer.length&&!this[_t]&&this.emit("drain")}[l0](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[$t];return r=r||{},e===o0.stdout||e===o0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Ma(this,e,r):new as(this,e,r)),this[bt]?Mi(()=>this[Vr]()):this[Vr]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Vr]():e==="readable"&&this[le]!==0?super.emit("readable"):cF(e)&&this[$t]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ni]&&(this[bt]?Mi(()=>r.call(this,this[Ni])):r.call(this,this[Ni])),i}get emittedEnd(){return this[$t]}[St](){!this[ns]&&!this[$t]&&!this[ye]&&this.buffer.length===0&&this[_t]&&(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[bt]?Mi(()=>this[Na](r)):this[Na](r):!1;if(e==="end")return this[f0]();if(e==="close"){if(this[ss]=!0,!this[$t]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ni]=r;let s=super.emit("error",r);return this[St](),s}else if(e==="resume"){let s=super.emit("resume");return this[St](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[St](),n}[Na](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[St](),r}[f0](){this[$t]||(this[$t]=!0,this.readable=!1,this[bt]?Mi(()=>this[ka]()):this[ka]())}[ka](){if(this[Ct]){let r=this[Ct].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[De]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[De]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[De]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[De]?Promise.reject(new Error("cannot concat in objectMode")):this[xe]?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())})}[uF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[_t])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[_t]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(ye,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[aF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ye]?(e?this.emit("error",e):this.emit(ye),this):(this[ye]=!0,this.buffer.length=0,this[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 p0||e instanceof u0||e instanceof oF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var tc=d(Be=>{"use strict";var Ga=require("assert"),Ut=require("buffer").Buffer,E0=require("zlib"),lr=Be.constants=s0(),hF=qa(),m0=Ut.concat,fr=Symbol("_superWrite"),Zr=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},pF=Symbol("opts"),qi=Symbol("flushFlag"),g0=Symbol("finishFlushFlag"),ec=Symbol("fullFlushFlag"),Y=Symbol("handle"),cs=Symbol("onError"),Xr=Symbol("sawError"),Ha=Symbol("level"),$a=Symbol("strategy"),Ua=Symbol("ended"),aB=Symbol("_defaultFullFlush"),ls=class extends hF{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Xr]=!1,this[Ua]=!1,this[pF]=e,this[qi]=e.flush,this[g0]=e.finishFlush;try{this[Y]=new E0[r](e)}catch(i){throw new Zr(i)}this[cs]=i=>{this[Xr]||(this[Xr]=!0,this.close(),this.emit("error",i))},this[Y].on("error",i=>this[cs](new Zr(i))),this.once("end",()=>this.close)}close(){this[Y]&&(this[Y].close(),this[Y]=null,this.emit("close"))}reset(){if(!this[Xr])return Ga(this[Y],"zlib binding closed"),this[Y].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[ec]),this.write(Object.assign(Ut.alloc(0),{[qi]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[g0]),this[Ua]=!0,super.end(null,null,i)}get ended(){return this[Ua]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=Ut.from(e,r)),this[Xr])return;Ga(this[Y],"zlib binding closed");let n=this[Y]._handle,s=n.close;n.close=()=>{};let o=this[Y].close;this[Y].close=()=>{},Ut.concat=c=>c;let u;try{let c=typeof e[qi]=="number"?e[qi]:this[qi];u=this[Y]._processChunk(e,c),Ut.concat=m0}catch(c){Ut.concat=m0,this[cs](new Zr(c))}finally{this[Y]&&(this[Y]._handle=n,n.close=s,this[Y].close=o,this[Y].removeAllListeners("error"))}this[Y]&&this[Y].on("error",c=>this[cs](new Zr(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[fr](Ut.from(u[0]));for(let c=1;c<u.length;c++)a=this[fr](u[c])}else a=this[fr](Ut.from(u));return i&&i(),a}[fr](e){return super.write(e)}},wt=class extends ls{constructor(e,r){e=e||{},e.flush=e.flush||lr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||lr.Z_FINISH,super(e,r),this[ec]=lr.Z_FULL_FLUSH,this[Ha]=e.level,this[$a]=e.strategy}params(e,r){if(!this[Xr]){if(!this[Y])throw new Error("cannot switch params when binding is closed");if(!this[Y].params)throw new Error("not supported in this implementation");if(this[Ha]!==e||this[$a]!==r){this.flush(lr.Z_SYNC_FLUSH),Ga(this[Y],"zlib binding closed");let i=this[Y].flush;this[Y].flush=(n,s)=>{this.flush(n),s()};try{this[Y].params(e,r)}finally{this[Y].flush=i}this[Y]&&(this[Ha]=e,this[$a]=r)}}}},Wa=class extends wt{constructor(e){super(e,"Deflate")}},za=class extends wt{constructor(e){super(e,"Inflate")}},ja=Symbol("_portable"),Ya=class extends wt{constructor(e){super(e,"Gzip"),this[ja]=e&&!!e.portable}[fr](e){return this[ja]?(this[ja]=!1,e[9]=255,super[fr](e)):super[fr](e)}},Ka=class extends wt{constructor(e){super(e,"Gunzip")}},Va=class extends wt{constructor(e){super(e,"DeflateRaw")}},Xa=class extends wt{constructor(e){super(e,"InflateRaw")}},Za=class extends wt{constructor(e){super(e,"Unzip")}},fs=class extends ls{constructor(e,r){e=e||{},e.flush=e.flush||lr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||lr.BROTLI_OPERATION_FINISH,super(e,r),this[ec]=lr.BROTLI_OPERATION_FLUSH}},Ja=class extends fs{constructor(e){super(e,"BrotliCompress")}},Qa=class extends fs{constructor(e){super(e,"BrotliDecompress")}};Be.Deflate=Wa;Be.Inflate=za;Be.Gzip=Ya;Be.Gunzip=Ka;Be.DeflateRaw=Va;Be.InflateRaw=Xa;Be.Unzip=Za;typeof E0.BrotliCompress=="function"?(Be.BrotliCompress=Ja,Be.BrotliDecompress=Qa):Be.BrotliCompress=Be.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Jr=d((fB,D0)=>{var dF=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;D0.exports=dF!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var hs=d((pB,y0)=>{"use strict";var mF=is(),rc=Jr(),ic=Symbol("slurp");y0.exports=class extends mF{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=rc(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=rc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[ic](r),i&&this[ic](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))}[ic](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?rc(e[i]):e[i])}}});var nc=d(ps=>{"use strict";ps.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"]]);ps.code=new Map(Array.from(ps.name).map(t=>[t[1],t[0]]))});var C0=d((mB,S0)=>{"use strict";var gF=(t,e)=>{if(Number.isSafeInteger(t))t<0?DF(t,e):EF(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},EF=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},DF=(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]=A0(n):n===0?e[i-1]=0:(r=!0,e[i-1]=_0(n))}},yF=t=>{let e=t[0],r=e===128?_F(t.slice(1,t.length)):e===255?AF(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},AF=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=A0(s):s===0?o=s:(i=!0,o=_0(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},_F=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},A0=t=>(255^t)&255,_0=t=>(255^t)+1&255;S0.exports={encode:gF,parse:yF}});var ei=d((gB,w0)=>{"use strict";var sc=nc(),Qr=require("path").posix,b0=C0(),oc=Symbol("slurp"),Pe=Symbol("type"),cc=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[Pe]="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=hr(e,r,100),this.mode=jt(e,r+100,8),this.uid=jt(e,r+108,8),this.gid=jt(e,r+116,8),this.size=jt(e,r+124,12),this.mtime=uc(e,r+136,12),this.cksum=jt(e,r+148,12),this[oc](i),this[oc](n,!0),this[Pe]=hr(e,r+156,1),this[Pe]===""&&(this[Pe]="0"),this[Pe]==="0"&&this.path.slice(-1)==="/"&&(this[Pe]="5"),this[Pe]==="5"&&(this.size=0),this.linkpath=hr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=hr(e,r+265,32),this.gname=hr(e,r+297,32),this.devmaj=jt(e,r+329,8),this.devmin=jt(e,r+337,8),e[r+475]!==0){let o=hr(e,r+345,155);this.path=o+"/"+this.path}else{let o=hr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=uc(e,r+476,12),this.ctime=uc(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)}[oc](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=SF(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=pr(e,r,100,s)||this.needPax,this.needPax=Gt(e,r+100,8,this.mode)||this.needPax,this.needPax=Gt(e,r+108,8,this.uid)||this.needPax,this.needPax=Gt(e,r+116,8,this.gid)||this.needPax,this.needPax=Gt(e,r+124,12,this.size)||this.needPax,this.needPax=ac(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Pe].charCodeAt(0),this.needPax=pr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=pr(e,r+265,32,this.uname)||this.needPax,this.needPax=pr(e,r+297,32,this.gname)||this.needPax,this.needPax=Gt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Gt(e,r+337,8,this.devmin)||this.needPax,this.needPax=pr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=pr(e,r+345,155,o)||this.needPax:(this.needPax=pr(e,r+345,130,o)||this.needPax,this.needPax=ac(e,r+476,12,this.atime)||this.needPax,this.needPax=ac(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,Gt(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return sc.name.get(this[Pe])||this[Pe]}get typeKey(){return this[Pe]}set type(e){sc.code.has(e)?this[Pe]=sc.code.get(e):this[Pe]=e}},SF=(t,e)=>{let i=t,n="",s,o=Qr.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Qr.dirname(i),i=Qr.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=Qr.join(Qr.basename(n),i),n=Qr.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},hr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),uc=(t,e,r)=>CF(jt(t,e,r)),CF=t=>t===null?null:new Date(t*1e3),jt=(t,e,r)=>t[e]&128?b0.parse(t.slice(e,e+r)):wF(t,e,r),bF=t=>isNaN(t)?null:t,wF=(t,e,r)=>bF(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),FF={12:8589934591,8:2097151},Gt=(t,e,r,i)=>i===null?!1:i>FF[r]||i<0?(b0.encode(i,t.slice(e,e+r)),!0):(xF(t,e,r,i),!1),xF=(t,e,r,i)=>t.write(vF(i,r),e,r,"ascii"),vF=(t,e)=>RF(Math.floor(t).toString(8),e),RF=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",ac=(t,e,r,i)=>i===null?!1:Gt(t,e,r,i.getTime()/1e3),TF=new Array(156).join("\0"),pr=(t,e,r,i)=>i===null?!1:(t.write(i+TF,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);w0.exports=cc});var ds=d((EB,F0)=>{"use strict";var OF=ei(),BF=require("path"),Hi=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new OF({path:("PaxHeader/"+BF.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
7
|
+
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Hi.parse=(t,e,r)=>new Hi(PF(LF(t),e),r);var PF=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,LF=t=>t.replace(/\n$/,"").split(`
|
8
|
+
`).reduce(IF,Object.create(null)),IF=(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};F0.exports=Hi});var ti=d((DB,x0)=>{x0.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 ms=d((yB,v0)=>{"use strict";v0.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fc=d((_B,R0)=>{"use strict";var gs=["|","<",">","?",":"],lc=gs.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),NF=new Map(gs.map((t,e)=>[t,lc[e]])),kF=new Map(lc.map((t,e)=>[t,gs[e]]));R0.exports={encode:t=>gs.reduce((e,r)=>e.split(r).join(NF.get(r)),t),decode:t=>lc.reduce((e,r)=>e.split(r).join(kF.get(r)),t)}});var hc=d((SB,O0)=>{var{isAbsolute:MF,parse:T0}=require("path").win32;O0.exports=t=>{let e="",r=T0(t);for(;MF(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=T0(t)}return[e,t]}});var P0=d((CB,B0)=>{"use strict";B0.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 Sc=d((FB,Y0)=>{"use strict";var H0=is(),$0=ds(),U0=ei(),st=require("fs"),L0=require("path"),nt=Jr(),qF=ti(),j0=(t,e)=>e?(t=nt(t).replace(/^\.(\/|$)/,""),qF(e)+"/"+t):nt(t),HF=16*1024*1024,I0=Symbol("process"),N0=Symbol("file"),k0=Symbol("directory"),dc=Symbol("symlink"),M0=Symbol("hardlink"),$i=Symbol("header"),Es=Symbol("read"),mc=Symbol("lstat"),Ds=Symbol("onlstat"),gc=Symbol("onread"),Ec=Symbol("onreadlink"),Dc=Symbol("openfile"),yc=Symbol("onopenfile"),Wt=Symbol("close"),ys=Symbol("mode"),Ac=Symbol("awaitDrain"),pc=Symbol("ondrain"),ot=Symbol("prefix"),q0=Symbol("hadError"),G0=ms(),$F=fc(),W0=hc(),z0=P0(),As=G0(class extends H0{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=nt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||HF,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=nt(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?nt(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]=W0(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=$F.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=nt(r.absolute||L0.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[Ds](this.statCache.get(this.absolute)):this[mc]()}emit(e,...r){return e==="error"&&(this[q0]=!0),super.emit(e,...r)}[mc](){st.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ds](r)})}[Ds](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=jF(e),this.emit("stat",e),this[I0]()}[I0](){switch(this.type){case"File":return this[N0]();case"Directory":return this[k0]();case"SymbolicLink":return this[dc]();default:return this.end()}}[ys](e){return z0(e,this.type==="Directory",this.portable)}[ot](e){return j0(e,this.prefix)}[$i](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new U0({path:this[ot](this.path),linkpath:this.type==="Link"?this[ot](this.linkpath):this.linkpath,mode:this[ys](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 $0({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[ot](this.path),linkpath:this.type==="Link"?this[ot](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)}[k0](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[$i](),this.end()}[dc](){st.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ec](r)})}[Ec](e){this.linkpath=nt(e),this[$i](),this.end()}[M0](e){this.type="Link",this.linkpath=nt(L0.relative(this.cwd,e)),this.stat.size=0,this[$i](),this.end()}[N0](){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[M0](r)}this.linkCache.set(e,this.absolute)}if(this[$i](),this.stat.size===0)return this.end();this[Dc]()}[Dc](){st.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[yc](r)})}[yc](e){if(this.fd=e,this[q0])return this[Wt]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Es]()}[Es](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;st.read(e,r,i,n,s,(o,u)=>{if(o)return this[Wt](()=>this.emit("error",o));this[gc](u)})}[Wt](e){st.close(this.fd,e)}[gc](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Wt](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Wt](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[pc]():this[Ac](()=>this[pc]())}[Ac](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)}[pc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Wt](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Es]()}}),_c=class extends As{[mc](){this[Ds](st.lstatSync(this.absolute))}[dc](){this[Ec](st.readlinkSync(this.absolute))}[Dc](){this[yc](st.openSync(this.absolute,"r"))}[Es](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=st.readSync(r,i,n,s,o);this[gc](u),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[Ac](e){e()}[Wt](e){st.closeSync(this.fd),e()}},UF=G0(class extends H0{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=nt(e.path),this.mode=this[ys](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=nt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=W0(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new U0({path:this[ot](this.path),linkpath:this.type==="Link"?this[ot](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 $0({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[ot](this.path),linkpath:this.type==="Link"?this[ot](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)}[ot](e){return j0(e,this.prefix)}[ys](e){return z0(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=_c;As.Tar=UF;var jF=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Y0.exports=As});var V0=d((xB,K0)=>{"use strict";K0.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Cc=d((vB,X0)=>{"use strict";X0.exports=H;H.Node=dr;H.create=H;function H(t){var e=this;if(e instanceof H||(e=new H),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}H.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};H.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};H.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};H.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)WF(this,arguments[t]);return this.length};H.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)zF(this,arguments[t]);return this.length};H.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};H.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};H.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};H.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};H.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};H.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};H.prototype.map=function(t,e){e=e||this;for(var r=new H,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};H.prototype.mapReverse=function(t,e){e=e||this;for(var r=new H,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};H.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};H.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};H.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};H.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};H.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new H;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};H.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new H;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};H.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=GF(this,n,r[i]);return s};H.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function GF(t,e,r){var i=e===t.head?new dr(r,null,e,t):new dr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function WF(t,e){t.tail=new dr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function zF(t,e){t.head=new dr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function dr(t,e,r,i){if(!(this instanceof dr))return new dr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{V0()(H)}catch{}});var Rs=d((TB,ig)=>{"use strict";var xs=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}},YF=is(),KF=tc(),VF=hs(),Bc=Sc(),XF=Bc.Sync,ZF=Bc.Tar,JF=Cc(),Z0=Buffer.alloc(1024),Cs=Symbol("onStat"),_s=Symbol("ended"),ut=Symbol("queue"),ri=Symbol("current"),mr=Symbol("process"),Ss=Symbol("processing"),J0=Symbol("processJob"),at=Symbol("jobs"),bc=Symbol("jobDone"),bs=Symbol("addFSEntry"),Q0=Symbol("addTarEntry"),vc=Symbol("stat"),Rc=Symbol("readdir"),ws=Symbol("onreaddir"),Fs=Symbol("pipe"),eg=Symbol("entry"),wc=Symbol("entryOpt"),Tc=Symbol("writeEntryClass"),rg=Symbol("write"),Fc=Symbol("ondrain"),vs=require("fs"),tg=require("path"),QF=ms(),xc=Jr(),Pc=QF(class extends YF{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=xc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Tc]=Bc,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 KF.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Fc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Fc]),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[ut]=new JF,this[at]=0,this.jobs=+e.jobs||4,this[Ss]=!1,this[_s]=!1}[rg](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[_s]=!0,this[mr](),this}write(e){if(this[_s])throw new Error("write after end");return e instanceof VF?this[Q0](e):this[bs](e),this.flowing}[Q0](e){let r=xc(tg.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new xs(e.path,r,!1);i.entry=new ZF(e,this[wc](i)),i.entry.on("end",n=>this[bc](i)),this[at]+=1,this[ut].push(i)}this[mr]()}[bs](e){let r=xc(tg.resolve(this.cwd,e));this[ut].push(new xs(e,r)),this[mr]()}[vc](e){e.pending=!0,this[at]+=1;let r=this.follow?"stat":"lstat";vs[r](e.absolute,(i,n)=>{e.pending=!1,this[at]-=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[mr]()}[Rc](e){e.pending=!0,this[at]+=1,vs.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[at]-=1,r)return this.emit("error",r);this[ws](e,i)})}[ws](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[mr]()}[mr](){if(!this[Ss]){this[Ss]=!0;for(let e=this[ut].head;e!==null&&this[at]<this.jobs;e=e.next)if(this[J0](e.value),e.value.ignore){let r=e.next;this[ut].removeNode(e),e.next=r}this[Ss]=!1,this[_s]&&!this[ut].length&&this[at]===0&&(this.zip?this.zip.end(Z0):(super.write(Z0),super.end()))}}get[ri](){return this[ut]&&this[ut].head&&this[ut].head.value}[bc](e){this[ut].shift(),this[at]-=1,this[mr]()}[J0](e){if(!e.pending){if(e.entry){e===this[ri]&&!e.piped&&this[Fs](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Cs](e,this.statCache.get(e.absolute)):this[vc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[ws](e,this.readdirCache.get(e.absolute)):this[Rc](e),!e.readdir))){if(e.entry=this[eg](e),!e.entry){e.ignore=!0;return}e===this[ri]&&!e.piped&&this[Fs](e)}}}[wc](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}}[eg](e){this[at]+=1;try{return new this[Tc](e.path,this[wc](e)).on("end",()=>this[bc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Fc](){this[ri]&&this[ri].entry&&this[ri].entry.resume()}[Fs](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[bs](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()}}),Oc=class extends Pc{constructor(e){super(e),this[Tc]=XF}pause(){}resume(){}[vc](e){let r=this.follow?"statSync":"lstatSync";this[Cs](e,vs[r](e.absolute))}[Rc](e,r){this[ws](e,vs.readdirSync(e.absolute))}[Fs](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[bs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[rg](n)})}};Pc.Sync=Oc;ig.exports=Pc});var li=d(ji=>{"use strict";var ex=qa(),tx=require("events").EventEmitter,ve=require("fs"),Nc=ve.writev;if(!Nc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Nc=(r,i,n,s)=>{let o=(a,c)=>s(a,c,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var ai=Symbol("_autoClose"),Ye=Symbol("_close"),Ui=Symbol("_ended"),j=Symbol("_fd"),ng=Symbol("_finished"),Yt=Symbol("_flags"),Lc=Symbol("_flush"),kc=Symbol("_handleChunk"),Mc=Symbol("_makeBuf"),Ls=Symbol("_mode"),Ts=Symbol("_needDrain"),oi=Symbol("_onerror"),ci=Symbol("_onopen"),Ic=Symbol("_onread"),ni=Symbol("_onwrite"),Kt=Symbol("_open"),Ft=Symbol("_path"),gr=Symbol("_pos"),ct=Symbol("_queue"),si=Symbol("_read"),sg=Symbol("_readSize"),zt=Symbol("_reading"),Os=Symbol("_remain"),og=Symbol("_size"),Bs=Symbol("_write"),ii=Symbol("_writing"),Ps=Symbol("_defaultFlag"),ui=Symbol("_errored"),Is=class extends ex{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[ui]=!1,this[j]=typeof r.fd=="number"?r.fd:null,this[Ft]=e,this[sg]=r.readSize||16*1024*1024,this[zt]=!1,this[og]=typeof r.size=="number"?r.size:1/0,this[Os]=this[og],this[ai]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[j]=="number"?this[si]():this[Kt]()}get fd(){return this[j]}get path(){return this[Ft]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){ve.open(this[Ft],"r",(e,r)=>this[ci](e,r))}[ci](e,r){e?this[oi](e):(this[j]=r,this.emit("open",r),this[si]())}[Mc](){return Buffer.allocUnsafe(Math.min(this[sg],this[Os]))}[si](){if(!this[zt]){this[zt]=!0;let e=this[Mc]();if(e.length===0)return process.nextTick(()=>this[Ic](null,0,e));ve.read(this[j],e,0,e.length,null,(r,i,n)=>this[Ic](r,i,n))}}[Ic](e,r,i){this[zt]=!1,e?this[oi](e):this[kc](r,i)&&this[si]()}[Ye](){if(this[ai]&&typeof this[j]=="number"){let e=this[j];this[j]=null,ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[oi](e){this[zt]=!0,this[Ye](),this.emit("error",e)}[kc](e,r){let i=!1;return this[Os]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Os]<=0)&&(i=!1,this[Ye](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[j]=="number"&&this[si]();break;case"error":return this[ui]?void 0:(this[ui]=!0,super.emit(e,r));default:return super.emit(e,r)}}},qc=class extends Is{[Kt](){let e=!0;try{this[ci](null,ve.openSync(this[Ft],"r")),e=!1}finally{e&&this[Ye]()}}[si](){let e=!0;try{if(!this[zt]){this[zt]=!0;do{let r=this[Mc](),i=r.length===0?0:ve.readSync(this[j],r,0,r.length,null);if(!this[kc](i,r))break}while(!0);this[zt]=!1}e=!1}finally{e&&this[Ye]()}}[Ye](){if(this[ai]&&typeof this[j]=="number"){let e=this[j];this[j]=null,ve.closeSync(e),this.emit("close")}}},Ns=class extends tx{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ui]=!1,this[ii]=!1,this[Ui]=!1,this[Ts]=!1,this[ct]=[],this[Ft]=e,this[j]=typeof r.fd=="number"?r.fd:null,this[Ls]=r.mode===void 0?438:r.mode,this[gr]=typeof r.start=="number"?r.start:null,this[ai]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[gr]!==null?"r+":"w";this[Ps]=r.flags===void 0,this[Yt]=this[Ps]?i:r.flags,this[j]===null&&this[Kt]()}emit(e,r){if(e==="error"){if(this[ui])return;this[ui]=!0}return super.emit(e,r)}get fd(){return this[j]}get path(){return this[Ft]}[oi](e){this[Ye](),this[ii]=!0,this.emit("error",e)}[Kt](){ve.open(this[Ft],this[Yt],this[Ls],(e,r)=>this[ci](e,r))}[ci](e,r){this[Ps]&&this[Yt]==="r+"&&e&&e.code==="ENOENT"?(this[Yt]="w",this[Kt]()):e?this[oi](e):(this[j]=r,this.emit("open",r),this[Lc]())}end(e,r){return e&&this.write(e,r),this[Ui]=!0,!this[ii]&&!this[ct].length&&typeof this[j]=="number"&&this[ni](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Ui]?(this.emit("error",new Error("write() after end()")),!1):this[j]===null||this[ii]||this[ct].length?(this[ct].push(e),this[Ts]=!0,!1):(this[ii]=!0,this[Bs](e),!0)}[Bs](e){ve.write(this[j],e,0,e.length,this[gr],(r,i)=>this[ni](r,i))}[ni](e,r){e?this[oi](e):(this[gr]!==null&&(this[gr]+=r),this[ct].length?this[Lc]():(this[ii]=!1,this[Ui]&&!this[ng]?(this[ng]=!0,this[Ye](),this.emit("finish")):this[Ts]&&(this[Ts]=!1,this.emit("drain"))))}[Lc](){if(this[ct].length===0)this[Ui]&&this[ni](null,0);else if(this[ct].length===1)this[Bs](this[ct].pop());else{let e=this[ct];this[ct]=[],Nc(this[j],e,this[gr],(r,i)=>this[ni](r,i))}}[Ye](){if(this[ai]&&typeof this[j]=="number"){let e=this[j];this[j]=null,ve.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Hc=class extends Ns{[Kt](){let e;if(this[Ps]&&this[Yt]==="r+")try{e=ve.openSync(this[Ft],this[Yt],this[Ls])}catch(r){if(r.code==="ENOENT")return this[Yt]="w",this[Kt]();throw r}else e=ve.openSync(this[Ft],this[Yt],this[Ls]);this[ci](null,e)}[Ye](){if(this[ai]&&typeof this[j]=="number"){let e=this[j];this[j]=null,ve.closeSync(e),this.emit("close")}}[Bs](e){let r=!0;try{this[ni](null,ve.writeSync(this[j],e,0,e.length,this[gr])),r=!1}finally{if(r)try{this[Ye]()}catch{}}}};ji.ReadStream=Is;ji.ReadStreamSync=qc;ji.WriteStream=Ns;ji.WriteStreamSync=Hc});var js=d((PB,dg)=>{"use strict";var rx=ms(),ix=ei(),nx=require("events"),sx=Cc(),ox=1024*1024,ux=hs(),ug=ds(),ax=tc(),{nextTick:cx}=require("process"),$c=Buffer.from([31,139]),$e=Symbol("state"),Er=Symbol("writeEntry"),xt=Symbol("readEntry"),Uc=Symbol("nextEntry"),ag=Symbol("processEntry"),Ue=Symbol("extendedHeader"),Gi=Symbol("globalExtendedHeader"),Vt=Symbol("meta"),cg=Symbol("emitMeta"),V=Symbol("buffer"),vt=Symbol("queue"),Dr=Symbol("ended"),lg=Symbol("emittedEnd"),yr=Symbol("emit"),Re=Symbol("unzip"),ks=Symbol("consumeChunk"),Ms=Symbol("consumeChunkSub"),jc=Symbol("consumeBody"),fg=Symbol("consumeMeta"),hg=Symbol("consumeHeader"),qs=Symbol("consuming"),Gc=Symbol("bufferConcat"),Wc=Symbol("maybeEnd"),Wi=Symbol("writing"),Xt=Symbol("aborted"),Hs=Symbol("onDone"),Ar=Symbol("sawValidEntry"),$s=Symbol("sawNullBlock"),Us=Symbol("sawEOF"),pg=Symbol("closeStream"),lx=t=>!0;dg.exports=rx(class extends nx{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Ar]=null,this.on(Hs,r=>{(this[$e]==="begin"||this[Ar]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Hs,e.ondone):this.on(Hs,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||ox,this.filter=typeof e.filter=="function"?e.filter:lx,this.writable=!0,this.readable=!1,this[vt]=new sx,this[V]=null,this[xt]=null,this[Er]=null,this[$e]="begin",this[Vt]="",this[Ue]=null,this[Gi]=null,this[Dr]=!1,this[Re]=null,this[Xt]=!1,this[$s]=!1,this[Us]=!1,this.on("end",()=>this[pg]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[hg](e,r){this[Ar]===null&&(this[Ar]=!1);let i;try{i=new ix(e,r,this[Ue],this[Gi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[$s]?(this[Us]=!0,this[$e]==="begin"&&(this[$e]="header"),this[yr]("eof")):(this[$s]=!0,this[yr]("nullBlock"));else if(this[$s]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Er]=new ux(i,this[Ue],this[Gi]);if(!this[Ar])if(s.remain){let o=()=>{s.invalid||(this[Ar]=!0)};s.on("end",o)}else this[Ar]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[yr]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Vt]="",s.on("data",o=>this[Vt]+=o),this[$e]="meta"):(this[Ue]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[yr]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[xt]?this[vt].push(s):(this[vt].push(s),this[Uc]())))}}}[pg](){cx(()=>this.emit("close"))}[ag](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[xt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Uc]()),r=!1)):(this[xt]=null,r=!1),r}[Uc](){do;while(this[ag](this[vt].shift()));if(!this[vt].length){let e=this[xt];!e||e.flowing||e.size===e.remain?this[Wi]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[jc](e,r){let i=this[Er],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[Er]=null,i.end()),s.length}[fg](e,r){let i=this[Er],n=this[jc](e,r);return this[Er]||this[cg](i),n}[yr](e,r,i){!this[vt].length&&!this[xt]?this.emit(e,r,i):this[vt].push([e,r,i])}[cg](e){switch(this[yr]("meta",this[Vt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ue]=ug.parse(this[Vt],this[Ue],!1);break;case"GlobalExtendedHeader":this[Gi]=ug.parse(this[Vt],this[Gi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ue]=this[Ue]||Object.create(null),this[Ue].path=this[Vt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ue]=this[Ue]||Object.create(null),this[Ue].linkpath=this[Vt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Xt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Xt])return;if(this[Re]===null&&e){if(this[V]&&(e=Buffer.concat([this[V],e]),this[V]=null),e.length<$c.length)return this[V]=e,!0;for(let i=0;this[Re]===null&&i<$c.length;i++)e[i]!==$c[i]&&(this[Re]=!1);if(this[Re]===null){let i=this[Dr];this[Dr]=!1,this[Re]=new ax.Unzip,this[Re].on("data",s=>this[ks](s)),this[Re].on("error",s=>this.abort(s)),this[Re].on("end",s=>{this[Dr]=!0,this[ks]()}),this[Wi]=!0;let n=this[Re][i?"end":"write"](e);return this[Wi]=!1,n}}this[Wi]=!0,this[Re]?this[Re].write(e):this[ks](e),this[Wi]=!1;let r=this[vt].length?!1:this[xt]?this[xt].flowing:!0;return!r&&!this[vt].length&&this[xt].once("drain",i=>this.emit("drain")),r}[Gc](e){e&&!this[Xt]&&(this[V]=this[V]?Buffer.concat([this[V],e]):e)}[Wc](){if(this[Dr]&&!this[lg]&&!this[Xt]&&!this[qs]){this[lg]=!0;let e=this[Er];if(e&&e.blockRemain){let r=this[V]?this[V].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[V]&&e.write(this[V]),e.end()}this[yr](Hs)}}[ks](e){if(this[qs])this[Gc](e);else if(!e&&!this[V])this[Wc]();else{if(this[qs]=!0,this[V]){this[Gc](e);let r=this[V];this[V]=null,this[Ms](r)}else this[Ms](e);for(;this[V]&&this[V].length>=512&&!this[Xt]&&!this[Us];){let r=this[V];this[V]=null,this[Ms](r)}this[qs]=!1}(!this[V]||this[Dr])&&this[Wc]()}[Ms](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[Us];)switch(this[$e]){case"begin":case"header":this[hg](e,r),r+=512;break;case"ignore":case"body":r+=this[jc](e,r);break;case"meta":r+=this[fg](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[V]?this[V]=Buffer.concat([e.slice(r),this[V]]):this[V]=e.slice(r))}end(e){this[Xt]||(this[Re]?this[Re].end(e):(this[Dr]=!0,this.write(e)))}})});var Gs=d((LB,Dg)=>{"use strict";var fx=Yr(),gg=js(),fi=require("fs"),hx=li(),mg=require("path"),zc=ti();Dg.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=fx(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&&dx(i,e),i.noResume||px(i),i.file&&i.sync?mx(i):i.file?gx(i,r):Eg(i)};var px=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},dx=(t,e)=>{let r=new Map(e.map(s=>[zc(s),!0])),i=t.filter,n=(s,o)=>{let u=o||mg.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(mg.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(zc(s)):s=>n(zc(s))},mx=t=>{let e=Eg(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 u=0,a=Buffer.allocUnsafe(o);for(n=fi.openSync(r,"r");u<s.size;){let c=fi.readSync(n,a,0,o,u);u+=c,e.write(a.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{fi.closeSync(n)}catch{}}},gx=(t,e)=>{let r=new gg(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),fi.stat(n,(a,c)=>{if(a)u(a);else{let l=new hx.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},Eg=t=>new gg(t)});var bg=d((IB,Cg)=>{"use strict";var Ex=Yr(),Ws=Rs(),yg=li(),Ag=Gs(),_g=require("path");Cg.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=Ex(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?Dx(i,e):i.file?yx(i,e,r):i.sync?Ax(i,e):_x(i,e)};var Dx=(t,e)=>{let r=new Ws.Sync(t),i=new yg.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Sg(r,e)},yx=(t,e,r)=>{let i=new Ws(t),n=new yg.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return Yc(i,e),r?s.then(r,r):s},Sg=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ag({file:_g.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Yc=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ag({file:_g.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Yc(t,e));t.add(r)}t.end()},Ax=(t,e)=>{let r=new Ws.Sync(t);return Sg(r,e),r},_x=(t,e)=>{let r=new Ws(t);return Yc(r,e),r}});var Kc=d((NB,Og)=>{"use strict";var Sx=Yr(),wg=Rs(),Le=require("fs"),Fg=li(),xg=Gs(),vg=require("path"),Rg=ei();Og.exports=(t,e,r)=>{let i=Sx(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?Cx(i,e):wx(i,e,r)};var Cx=(t,e)=>{let r=new wg.Sync(t),i=!0,n,s;try{try{n=Le.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Le.openSync(t.file,"w+");else throw a}let o=Le.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=Le.readSync(n,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new Rg(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,bx(t,r,s,n,e)}finally{if(i)try{Le.closeSync(n)}catch{}}},bx=(t,e,r,i,n)=>{let s=new Fg.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),Fx(e,n)},wx=(t,e,r)=>{e=Array.from(e);let i=new wg(t),n=(o,u,a)=>{let c=(m,E)=>{m?Le.close(o,S=>a(m)):a(null,E)},l=0;if(u===0)return c(null,0);let f=0,h=Buffer.alloc(512),g=(m,E)=>{if(m)return c(m);if(f+=E,f<512&&E)return Le.read(o,h,f,h.length-f,l+f,g);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let S=new Rg(h);if(!S.cksumValid)return c(null,l);let C=512*Math.ceil(S.size/512);if(l+C+512>u||(l+=C+512,l>=u))return c(null,l);t.mtimeCache&&t.mtimeCache.set(S.path,S.mtime),f=0,Le.read(o,h,0,512,l,g)};Le.read(o,h,0,512,l,g)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",Le.open(t.file,a,c);if(l)return u(l);Le.fstat(f,(h,g)=>{if(h)return Le.close(f,()=>u(h));n(f,g.size,(m,E)=>{if(m)return u(m);let S=new Fg.WriteStream(t.file,{fd:f,start:E});i.pipe(S),S.on("error",u),S.on("close",o),Tg(i,e)})})};Le.open(t.file,a,c)});return r?s.then(r,r):s},Fx=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?xg({file:vg.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Tg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return xg({file:vg.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Tg(t,e));t.add(r)}t.end()}});var Pg=d((kB,Bg)=>{"use strict";var xx=Yr(),vx=Kc();Bg.exports=(t,e,r)=>{let i=xx(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),Rx(i),vx(i,e,r)};var Rx=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 Ng=d((MB,Ig)=>{var{promisify:Lg}=require("util"),Zt=require("fs"),Tx=t=>{if(!t)t={mode:511,fs:Zt};else if(typeof t=="object")t={mode:511,fs:Zt,...t};else if(typeof t=="number")t={mode:t,fs:Zt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Zt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Zt.mkdir,t.mkdirAsync=Lg(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=Lg(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};Ig.exports=Tx});var Mg=d((qB,kg)=>{var Ox=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Bx,parse:Px}=require("path"),Lx=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=Bx(t),Ox==="win32"){let e=/[*|"<>?:]/,{root:r}=Px(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};kg.exports=Lx});var jg=d((HB,Ug)=>{var{dirname:qg}=require("path"),Hg=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Hg(t,qg(e),e):void 0),$g=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?$g(t,qg(e),e):void 0}};Ug.exports={findMade:Hg,findMadeSync:$g}});var Zc=d(($B,Wg)=>{var{dirname:Gg}=require("path"),Vc=(t,e,r)=>{e.recursive=!1;let i=Gg(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 Vc(i,e).then(s=>Vc(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})})},Xc=(t,e,r)=>{let i=Gg(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 Xc(t,e,Xc(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};Wg.exports={mkdirpManual:Vc,mkdirpManualSync:Xc}});var Kg=d((UB,Yg)=>{var{dirname:zg}=require("path"),{findMade:Ix,findMadeSync:Nx}=jg(),{mkdirpManual:kx,mkdirpManualSync:Mx}=Zc(),qx=(t,e)=>(e.recursive=!0,zg(t)===t?e.mkdirAsync(t,e):Ix(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return kx(t,e);throw n}))),Hx=(t,e)=>{if(e.recursive=!0,zg(t)===t)return e.mkdirSync(t,e);let i=Nx(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return Mx(t,e);throw n}};Yg.exports={mkdirpNative:qx,mkdirpNativeSync:Hx}});var Jg=d((jB,Zg)=>{var Vg=require("fs"),$x=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Jc=$x.replace(/^v/,"").split("."),Xg=+Jc[0]>10||+Jc[0]==10&&+Jc[1]>=12,Ux=Xg?t=>t.mkdir===Vg.mkdir:()=>!1,jx=Xg?t=>t.mkdirSync===Vg.mkdirSync:()=>!1;Zg.exports={useNative:Ux,useNativeSync:jx}});var nE=d((GB,iE)=>{var hi=Ng(),pi=Mg(),{mkdirpNative:Qg,mkdirpNativeSync:eE}=Kg(),{mkdirpManual:tE,mkdirpManualSync:rE}=Zc(),{useNative:Gx,useNativeSync:Wx}=Jg(),di=(t,e)=>(t=pi(t),e=hi(e),Gx(e)?Qg(t,e):tE(t,e)),zx=(t,e)=>(t=pi(t),e=hi(e),Wx(e)?eE(t,e):rE(t,e));di.sync=zx;di.native=(t,e)=>Qg(pi(t),hi(e));di.manual=(t,e)=>tE(pi(t),hi(e));di.nativeSync=(t,e)=>eE(pi(t),hi(e));di.manualSync=(t,e)=>rE(pi(t),hi(e));iE.exports=di});var fE=d((WB,lE)=>{"use strict";var je=require("fs"),_r=require("path"),Yx=je.lchown?"lchown":"chown",Kx=je.lchownSync?"lchownSync":"chownSync",oE=je.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),sE=(t,e,r)=>{try{return je[Kx](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Vx=(t,e,r)=>{try{return je.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Xx=oE?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):je.chown(t,e,r,i)}:(t,e,r,i)=>i,Qc=oE?(t,e,r)=>{try{return sE(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;Vx(t,e,r)}}:(t,e,r)=>sE(t,e,r),Zx=process.version,uE=(t,e,r)=>je.readdir(t,e,r),Jx=(t,e)=>je.readdirSync(t,e);/^v4\./.test(Zx)&&(uE=(t,e,r)=>je.readdir(t,r));var zs=(t,e,r,i)=>{je[Yx](t,e,r,Xx(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},aE=(t,e,r,i,n)=>{if(typeof e=="string")return je.lstat(_r.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,aE(t,o,r,i,n)});if(e.isDirectory())el(_r.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=_r.resolve(t,e.name);zs(o,r,i,n)});else{let s=_r.resolve(t,e.name);zs(s,r,i,n)}},el=(t,e,r,i)=>{uE(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return zs(t,e,r,i);let o=s.length,u=null,a=c=>{if(!u){if(c)return i(u=c);if(--o===0)return zs(t,e,r,i)}};s.forEach(c=>aE(t,c,e,r,a))})},Qx=(t,e,r,i)=>{if(typeof e=="string")try{let n=je.lstatSync(_r.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&cE(_r.resolve(t,e.name),r,i),Qc(_r.resolve(t,e.name),r,i)},cE=(t,e,r)=>{let i;try{i=Jx(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Qc(t,e,r);throw n}return i&&i.length&&i.forEach(n=>Qx(t,n,e,r)),Qc(t,e,r)};lE.exports=el;el.sync=cE});var mE=d((zB,tl)=>{"use strict";var hE=nE(),Ge=require("fs"),Ys=require("path"),pE=fE(),Ke=Jr(),Ks=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vs=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Xs=(t,e)=>t.get(Ke(e)),zi=(t,e,r)=>t.set(Ke(e),r),ev=(t,e)=>{Ge.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Vs(t,r&&r.code||"ENOTDIR")),e(r)})};tl.exports=(t,e,r)=>{t=Ke(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=Ke(e.cwd),g=(S,C)=>{S?r(S):(zi(f,t,!0),C&&a?pE(C,o,u,w=>g(w)):s?Ge.chmod(t,n,r):r())};if(f&&Xs(f,t)===!0)return g();if(t===h)return ev(t,g);if(c)return hE(t,{mode:n}).then(S=>g(null,S),g);let E=Ke(Ys.relative(h,t)).split("/");Zs(h,E,n,f,l,h,null,g)};var Zs=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),c=Ke(Ys.resolve(t+"/"+a));if(Xs(i,c))return Zs(c,e,r,i,n,s,o,u);Ge.mkdir(c,r,dE(c,e,r,i,n,s,o,u))},dE=(t,e,r,i,n,s,o,u)=>a=>{a?Ge.lstat(t,(c,l)=>{if(c)c.path=c.path&&Ke(c.path),u(c);else if(l.isDirectory())Zs(t,e,r,i,n,s,o,u);else if(n)Ge.unlink(t,f=>{if(f)return u(f);Ge.mkdir(t,r,dE(t,e,r,i,n,s,o,u))});else{if(l.isSymbolicLink())return u(new Ks(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Zs(t,e,r,i,n,s,o,u))},tv=t=>{let e=!1,r="ENOTDIR";try{e=Ge.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Vs(t,r)}};tl.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,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,c=e.unlink,l=e.cache,f=Ke(e.cwd),h=S=>{zi(l,t,!0),S&&u&&pE.sync(S,s,o),n&&Ge.chmodSync(t,i)};if(l&&Xs(l,t)===!0)return h();if(t===f)return tv(f),h();if(a)return h(hE.sync(t,i));let m=Ke(Ys.relative(f,t)).split("/"),E=null;for(let S=m.shift(),C=f;S&&(C+="/"+S);S=m.shift())if(C=Ke(Ys.resolve(C)),!Xs(l,C))try{Ge.mkdirSync(C,i),E=E||C,zi(l,C,!0)}catch{let k=Ge.lstatSync(C);if(k.isDirectory()){zi(l,C,!0);continue}else if(c){Ge.unlinkSync(C),Ge.mkdirSync(C,i),E=E||C,zi(l,C,!0);continue}else if(k.isSymbolicLink())return new Ks(C,C+"/"+m.join("/"))}return h(E)}});var il=d((YB,gE)=>{var rl=Object.create(null),{hasOwnProperty:rv}=Object.prototype;gE.exports=t=>(rv.call(rl,t)||(rl[t]=t.normalize("NFKD")),rl[t])});var AE=d((KB,yE)=>{var EE=require("assert"),iv=il(),nv=ti(),{join:DE}=require("path"),sv=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ov=sv==="win32";yE.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=DE(f[f.length-1],h)),f.push(h||"/"),f),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=n(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>u(c)),!0),u=c=>{if(!i.has(c))return!1;let{paths:l,dirs:f}=e.get(c),h=new Set;return l.forEach(g=>{let m=t.get(g);EE.equal(m[0],c),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?h.add(m[0]):m[0].forEach(E=>h.add(E)))}),f.forEach(g=>{let m=t.get(g);EE(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),h.add(m[0])):m[0].delete(c)}),i.delete(c),h.forEach(g=>o(g)),!0};return{check:s,reserve:(c,l)=>{c=ov?["win32 parallelization disabled"]:c.map(h=>iv(nv(DE(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,g)=>h.concat(g)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let g=t.get(h);g?g.push(l):t.set(h,[l])}),f.forEach(h=>{let g=t.get(h);g?g[g.length-1]instanceof Set?g[g.length-1].add(l):g.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var CE=d((VB,SE)=>{var uv=process.env.__FAKE_PLATFORM__||process.platform,av=uv==="win32",cv=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:lv,O_TRUNC:fv,O_WRONLY:hv,UV_FS_O_FILEMAP:_E=0}=cv.constants,pv=av&&!!_E,dv=512*1024,mv=_E|fv|lv|hv;SE.exports=pv?t=>t<dv?mv:"w":()=>"w"});var hl=d((XB,kE)=>{"use strict";var gv=require("assert"),Ev=js(),$=require("fs"),Dv=li(),Rt=require("path"),LE=mE(),bE=fc(),yv=AE(),Av=hc(),Ie=Jr(),_v=ti(),Sv=il(),wE=Symbol("onEntry"),ol=Symbol("checkFs"),FE=Symbol("checkFs2"),eo=Symbol("pruneCache"),ul=Symbol("isReusable"),We=Symbol("makeFs"),al=Symbol("file"),cl=Symbol("directory"),to=Symbol("link"),xE=Symbol("symlink"),vE=Symbol("hardlink"),RE=Symbol("unsupported"),TE=Symbol("checkPath"),Jt=Symbol("mkdir"),Ae=Symbol("onError"),Js=Symbol("pending"),OE=Symbol("pend"),mi=Symbol("unpend"),nl=Symbol("ended"),sl=Symbol("maybeClose"),ll=Symbol("skip"),Yi=Symbol("doChown"),Ki=Symbol("uid"),Vi=Symbol("gid"),Xi=Symbol("checkedCwd"),IE=require("crypto"),NE=CE(),Cv=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Zi=Cv==="win32",bv=(t,e)=>{if(!Zi)return $.unlink(t,e);let r=t+".DELETE."+IE.randomBytes(16).toString("hex");$.rename(t,r,i=>{if(i)return e(i);$.unlink(r,e)})},wv=t=>{if(!Zi)return $.unlinkSync(t);let e=t+".DELETE."+IE.randomBytes(16).toString("hex");$.renameSync(t,e),$.unlinkSync(e)},BE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,PE=t=>Sv(_v(Ie(t))).toLowerCase(),Fv=(t,e)=>{e=PE(e);for(let r of t.keys()){let i=PE(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},xv=t=>{for(let e of t.keys())t.delete(e)},Ji=class extends Ev{constructor(e){if(e||(e={}),e.ondone=r=>{this[nl]=!0,this[sl]()},super(e),this[Xi]=!1,this.reservations=yv(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Js]=0,this[nl]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Zi,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ie(Rt.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[wE](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[sl](){this[nl]&&this[Js]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[TE](e){if(this.strip){let r=Ie(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Ie(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ie(e.path),i=r.split("/");if(i.includes("..")||Zi&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=Av(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Rt.isAbsolute(e.path)?e.absolute=Ie(Rt.resolve(e.path)):e.absolute=Ie(Rt.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:Ie(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}=Rt.win32.parse(e.absolute);e.absolute=r+bE.encode(e.absolute.slice(r.length));let{root:i}=Rt.win32.parse(e.path);e.path=i+bE.encode(e.path.slice(i.length))}return!0}[wE](e){if(!this[TE](e))return e.resume();switch(gv.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[ol](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[RE](e)}}[Ae](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[mi](),r.resume())}[Jt](e,r,i){LE(Ie(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)}[Yi](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Ki](e){return BE(this.uid,e.uid,this.processUid)}[Vi](e){return BE(this.gid,e.gid,this.processGid)}[al](e,r){let i=e.mode&4095||this.fmode,n=new Dv.WriteStream(e.absolute,{flags:NE(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&$.close(n.fd,()=>{}),n.write=()=>!0,this[Ae](a,e),r()});let s=1,o=a=>{if(a){n.fd&&$.close(n.fd,()=>{}),this[Ae](a,e),r();return}--s===0&&$.close(n.fd,c=>{c?this[Ae](c,e):this[mi](),r()})};n.on("finish",a=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;$.futimes(l,f,h,g=>g?$.utimes(c,f,h,m=>o(m&&g)):o())}if(this[Yi](e)){s++;let f=this[Ki](e),h=this[Vi](e);$.fchown(l,f,h,g=>g?$.chown(c,f,h,m=>o(m&&g)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[Ae](a,e),r()}),e.pipe(u)),u.pipe(n)}[cl](e,r){let i=e.mode&4095||this.dmode;this[Jt](e.absolute,i,n=>{if(n){this[Ae](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[mi](),e.resume())};e.mtime&&!this.noMtime&&(s++,$.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Yi](e)&&(s++,$.chown(e.absolute,this[Ki](e),this[Vi](e),o)),o()})}[RE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[xE](e,r){this[to](e,e.linkpath,"symlink",r)}[vE](e,r){let i=Ie(Rt.resolve(this.cwd,e.linkpath));this[to](e,i,"link",r)}[OE](){this[Js]++}[mi](){this[Js]--,this[sl]()}[ll](e){this[mi](),e.resume()}[ul](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Zi}[ol](e){this[OE]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[FE](e,i))}[eo](e){e.type==="SymbolicLink"?xv(this.dirCache):e.type!=="Directory"&&Fv(this.dirCache,e.absolute)}[FE](e,r){this[eo](e);let i=u=>{this[eo](e),r(u)},n=()=>{this[Jt](this.cwd,this.dmode,u=>{if(u){this[Ae](u,e),i();return}this[Xi]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=Ie(Rt.dirname(e.absolute));if(u!==this.cwd)return this[Jt](u,this.dmode,a=>{if(a){this[Ae](a,e),i();return}o()})}o()},o=()=>{$.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[ll](e),i();return}if(u||this[ul](e,a))return this[We](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,l=f=>this[We](f,e,i);return c?$.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return $.rmdir(e.absolute,c=>this[We](c,e,i))}if(e.absolute===this.cwd)return this[We](null,e,i);bv(e.absolute,c=>this[We](c,e,i))})};this[Xi]?s():n()}[We](e,r,i){if(e){this[Ae](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[al](r,i);case"Link":return this[vE](r,i);case"SymbolicLink":return this[xE](r,i);case"Directory":case"GNUDumpDir":return this[cl](r,i)}}[to](e,r,i,n){$[i](r,e.absolute,s=>{s?this[Ae](s,e):(this[mi](),e.resume()),n()})}},Qs=t=>{try{return[null,t()]}catch(e){return[e,null]}},fl=class extends Ji{[We](e,r){return super[We](e,r,()=>{})}[ol](e){if(this[eo](e),!this[Xi]){let s=this[Jt](this.cwd,this.dmode);if(s)return this[Ae](s,e);this[Xi]=!0}if(e.absolute!==this.cwd){let s=Ie(Rt.dirname(e.absolute));if(s!==this.cwd){let o=this[Jt](s,this.dmode);if(o)return this[Ae](o,e)}}let[r,i]=Qs(()=>$.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[ll](e);if(r||this[ul](e,i))return this[We](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Qs(()=>{$.chmodSync(e.absolute,e.mode)}):[];return this[We](u,e)}let[s]=Qs(()=>$.rmdirSync(e.absolute));this[We](s,e)}let[n]=e.absolute===this.cwd?[]:Qs(()=>wv(e.absolute));this[We](n,e)}[al](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{$.closeSync(s)}catch(c){a=c}(u||a)&&this[Ae](u||a,e),r()},s;try{s=$.openSync(e.absolute,NE(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[Ae](u,e)),e.pipe(o)),o.on("data",u=>{try{$.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{$.futimesSync(s,c,l)}catch(f){try{$.utimesSync(e.absolute,c,l)}catch{a=f}}}if(this[Yi](e)){let c=this[Ki](e),l=this[Vi](e);try{$.fchownSync(s,c,l)}catch(f){try{$.chownSync(e.absolute,c,l)}catch{a=a||f}}}n(a)})}[cl](e,r){let i=e.mode&4095||this.dmode,n=this[Jt](e.absolute,i);if(n){this[Ae](n,e),r();return}if(e.mtime&&!this.noMtime)try{$.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Yi](e))try{$.chownSync(e.absolute,this[Ki](e),this[Vi](e))}catch{}r(),e.resume()}[Jt](e,r){try{return LE.sync(Ie(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}}[to](e,r,i,n){try{$[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ae](s,e)}}};Ji.Sync=fl;kE.exports=Ji});var UE=d((ZB,$E)=>{"use strict";var vv=Yr(),ro=hl(),qE=require("fs"),HE=li(),ME=require("path"),pl=ti();$E.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=vv(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&&Rv(i,e),i.file&&i.sync?Tv(i):i.file?Ov(i,r):i.sync?Bv(i):Pv(i)};var Rv=(t,e)=>{let r=new Map(e.map(s=>[pl(s),!0])),i=t.filter,n=(s,o)=>{let u=o||ME.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(ME.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(pl(s)):s=>n(pl(s))},Tv=t=>{let e=new ro.Sync(t),r=t.file,i=qE.statSync(r),n=t.maxReadSize||16*1024*1024;new HE.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},Ov=(t,e)=>{let r=new ro(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),qE.stat(n,(a,c)=>{if(a)u(a);else{let l=new HE.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},Bv=t=>new ro.Sync(t),Pv=t=>new ro(t)});var jE=d(ue=>{"use strict";ue.c=ue.create=bg();ue.r=ue.replace=Kc();ue.t=ue.list=Gs();ue.u=ue.update=Pg();ue.x=ue.extract=UE();ue.Pack=Rs();ue.Unpack=hl();ue.Parse=js();ue.ReadEntry=hs();ue.WriteEntry=Sc();ue.Header=ei();ue.Pax=ds();ue.types=nc()});var VE=d((r2,KE)=>{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))}KE.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 XE=d(Sr=>{var kv=VE();Sr.operation=function(t){var e=Sr.timeouts(t);return new kv(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Sr.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};Sr.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};Sr.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(a){var c=Sr.operation(e),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(t,l)})}.bind(t,o),t[s].options=e}}});var JE=d((n2,ZE)=>{ZE.exports=XE()});var eD=d((s2,QE)=>{var Mv=JE();function qv(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Mv.operation(s);function u(l){n(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):n(o.mainError())}function c(l){var f;try{f=t(u,l)}catch(h){a(h,l);return}Promise.resolve(f).then(i).catch(function(g){a(g,l)})}o.attempt(c)}return new Promise(r)}QE.exports=qv});var Qv={};El(Qv,{default:()=>Jv,transformer:()=>nD});module.exports=fD(Qv);var gl=G(require("path")),en=require("fs-extra");var oo=G(require("chalk"));var hD=G(bl());function co(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 lo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fo(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 lo(t)}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},er(t)}function ht(t,e){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ht(t,e)}function ho(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&&ht(t,e)}function po(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function mo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cr(t,e,r){return mo()?Cr=Reflect.construct.bind():Cr=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),c=new a;return o&&ht(c,o.prototype),c},Cr.apply(null,arguments)}function Di(t){var e=typeof Map=="function"?new Map:void 0;return Di=function(i){if(i===null||!po(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Cr(i,arguments,er(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ht(n,i)},Di(t)}var wl=G(require("find-up"));var pD=G(require("fs-extra")),BR=function(t){ho(e,t);function e(r){var i;return co(this,e),i=fo(this,er(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Di(Error));var dD=G(require("fs")),mD=G(require("path"));var Zb=G(require("fs")),Jb=G(require("path"));function $l(t){return typeof t=="undefined"||t===null}function DD(t){return typeof t=="object"&&t!==null}function yD(t){return Array.isArray(t)?t:$l(t)?[]:[t]}function AD(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 _D(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function SD(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var CD=$l,bD=DD,wD=yD,FD=_D,xD=SD,vD=AD,oe={isNothing:CD,isObject:bD,toArray:wD,repeat:FD,isNegativeZero:xD,extend:vD};function Ul(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
|
11
|
-
`+u;for(c=go(t.buffer,i[o],n[o],t.position,f),u+=
|
12
|
-
`,u+=
|
13
|
-
`,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)c=go(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),f),u+=
|
14
|
-
`;return u.replace(/\n$/,"")}var TD=RD,OD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],BD=["scalar","sequence","mapping"];function PD(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function LD(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(OD.indexOf(r)===-1)throw new
|
15
|
-
\r`;function Ey(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 Dy(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=bo,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function yy(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 Ay(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var _y=new
|
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 Uy(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var
|
17
|
-
`,e-1))}function
|
10
|
+
`+t.mark.snippet),i+" "+r):i}function Ai(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Ul(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ai.prototype=Object.create(Error.prototype);Ai.prototype.constructor=Ai;Ai.prototype.toString=function(e){return this.name+": "+Ul(this,e)};var Ce=Ai;function go(t,e,r,i,n){var s="",o="",u=Math.floor(n/2)-1;return i-e>u&&(s=" ... ",e=i-u+s.length),r-i>u&&(o=" ...",r=i+u-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Eo(t,e){return oe.repeat(" ",e-t.length)+t}function RD(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 u="",a,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)c=go(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),f),u=oe.repeat(" ",e.indent)+Eo((t.line-a+1).toString(),l)+" | "+c.str+`
|
11
|
+
`+u;for(c=go(t.buffer,i[o],n[o],t.position,f),u+=oe.repeat(" ",e.indent)+Eo((t.line+1).toString(),l)+" | "+c.str+`
|
12
|
+
`,u+=oe.repeat("-",e.indent+l+3+c.pos)+`^
|
13
|
+
`,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)c=go(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),f),u+=oe.repeat(" ",e.indent)+Eo((t.line+a+1).toString(),l)+" | "+c.str+`
|
14
|
+
`;return u.replace(/\n$/,"")}var TD=RD,OD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],BD=["scalar","sequence","mapping"];function PD(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function LD(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(OD.indexOf(r)===-1)throw new Ce('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=PD(e.styleAliases||null),BD.indexOf(this.kind)===-1)throw new Ce('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var he=LD;function Fl(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 ID(){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 yo(t){return this.extend(t)}yo.prototype.extend=function(e){var r=[],i=[];if(e instanceof he)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 Ce("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof he))throw new Ce("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ce("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 Ce("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 he))throw new Ce("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(yo.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Fl(n,"implicit"),n.compiledExplicit=Fl(n,"explicit"),n.compiledTypeMap=ID(n.compiledImplicit,n.compiledExplicit),n};var ND=yo,kD=new he("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),MD=new he("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),qD=new he("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),HD=new ND({explicit:[kD,MD,qD]});function $D(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function UD(){return null}function jD(t){return t===null}var GD=new he("tag:yaml.org,2002:null",{kind:"scalar",resolve:$D,construct:UD,predicate:jD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function WD(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 zD(t){return t==="true"||t==="True"||t==="TRUE"}function YD(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var KD=new he("tag:yaml.org,2002:bool",{kind:"scalar",resolve:WD,construct:zD,predicate:YD,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 VD(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function XD(t){return 48<=t&&t<=55}function ZD(t){return 48<=t&&t<=57}function JD(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(!VD(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!XD(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!ZD(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function QD(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 ey(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var ty=new he("tag:yaml.org,2002:int",{kind:"scalar",resolve:JD,construct:QD,predicate:ey,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"]}}),ry=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function iy(t){return!(t===null||!ry.test(t)||t[t.length-1]==="_")}function ny(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 sy=/^[-+]?[0-9]+e/;function oy(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),sy.test(r)?r.replace("e",".e"):r}function uy(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var ay=new he("tag:yaml.org,2002:float",{kind:"scalar",resolve:iy,construct:ny,predicate:uy,represent:oy,defaultStyle:"lowercase"}),cy=HD.extend({implicit:[GD,KD,ty,ay]}),ly=cy,jl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gl=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 fy(t){return t===null?!1:jl.exec(t)!==null||Gl.exec(t)!==null}function hy(t){var e,r,i,n,s,o,u,a=0,c=null,l,f,h;if(e=jl.exec(t),e===null&&(e=Gl.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],u=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(l=+e[10],f=+(e[11]||0),c=(l*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,i,n,s,o,u,a)),c&&h.setTime(h.getTime()-c),h}function py(t){return t.toISOString()}var dy=new he("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fy,construct:hy,instanceOf:Date,represent:py});function my(t){return t==="<<"||t===null}var gy=new he("tag:yaml.org,2002:merge",{kind:"scalar",resolve:my}),bo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
15
|
+
\r`;function Ey(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 Dy(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=bo,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function yy(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 Ay(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var _y=new he("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ey,construct:Dy,predicate:Ay,represent:yy}),Sy=Object.prototype.hasOwnProperty,Cy=Object.prototype.toString;function by(t){if(t===null)return!0;var e=[],r,i,n,s,o,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],o=!1,Cy.call(n)!=="[object Object]")return!1;for(s in n)if(Sy.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 wy(t){return t!==null?t:[]}var Fy=new he("tag:yaml.org,2002:omap",{kind:"sequence",resolve:by,construct:wy}),xy=Object.prototype.toString;function vy(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],xy.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Ry(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 Ty=new he("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:vy,construct:Ry}),Oy=Object.prototype.hasOwnProperty;function By(t){if(t===null)return!0;var e,r=t;for(e in r)if(Oy.call(r,e)&&r[e]!==null)return!1;return!0}function Py(t){return t!==null?t:{}}var Ly=new he("tag:yaml.org,2002:set",{kind:"mapping",resolve:By,construct:Py}),Wl=ly.extend({implicit:[dy,gy],explicit:[_y,Fy,Ty,Ly]}),Ot=Object.prototype.hasOwnProperty,sn=1,zl=2,Yl=3,on=4,Do=1,Iy=2,xl=3,Ny=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ky=/[\x85\u2028\u2029]/,My=/[,\[\]\{\}]/,Kl=/^(?:!|!!|![a-z\-]+!)$/i,Vl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vl(t){return Object.prototype.toString.call(t)}function Xe(t){return t===10||t===13}function rr(t){return t===9||t===32}function be(t){return t===9||t===32||t===10||t===13}function wr(t){return t===44||t===91||t===93||t===123||t===125}function qy(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Hy(t){return t===120?2:t===117?4:t===85?8:0}function $y(t){return 48<=t&&t<=57?t-48:-1}function Rl(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 Uy(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Xl=new Array(256),Zl=new Array(256);for(tr=0;tr<256;tr++)Xl[tr]=Rl(tr)?1:0,Zl[tr]=Rl(tr);var tr;function jy(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Wl,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 Jl(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=TD(r),new Ce(e,r)}function R(t,e){throw Jl(t,e)}function un(t,e){t.onWarning&&t.onWarning.call(null,Jl(t,e))}var Tl={YAML:function(e,r,i){var n,s,o;e.version!==null&&R(e,"duplication of %YAML directive"),i.length!==1&&R(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&R(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&R(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&un(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&R(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Kl.test(n)||R(e,"ill-formed tag handle (first argument) of the TAG directive"),Ot.call(e.tagMap,n)&&R(e,'there is a previously declared suffix for "'+n+'" tag handle'),Vl.test(s)||R(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{R(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Tt(t,e,r,i){var n,s,o,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,s=u.length;n<s;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||R(t,"expected valid JSON character");else Ny.test(u)&&R(t,"the stream contains non-printable characters");t.result+=u}}function Ol(t,e,r,i){var n,s,o,u;for(oe.isObject(r)||R(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,u=n.length;o<u;o+=1)s=n[o],Ot.call(e,s)||(e[s]=r[s],i[s]=!0)}function Fr(t,e,r,i,n,s,o,u,a){var c,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,l=n.length;c<l;c+=1)Array.isArray(n[c])&&R(t,"nested arrays are not supported inside keys"),typeof n=="object"&&vl(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&vl(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)Ol(t,e,s[c],r);else Ol(t,e,s,r);else!t.json&&!Ot.call(r,n)&&Ot.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||t.position,R(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 wo(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++):R(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function te(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;rr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Xe(n))for(wo(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&&un(t,"deficient indentation"),i}function ln(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||be(r)))}function Fo(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
|
17
|
+
`,e-1))}function Gy(t,e,r){var i,n,s,o,u,a,c,l,f=t.kind,h=t.result,g;if(g=t.input.charCodeAt(t.position),be(g)||wr(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),be(n)||r&&wr(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;g!==0;){if(g===58){if(n=t.input.charCodeAt(t.position+1),be(n)||r&&wr(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),be(i))break}else{if(t.position===t.lineStart&&ln(t)||r&&wr(g))break;if(Xe(g))if(a=t.line,c=t.lineStart,l=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){u=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=c,t.lineIndent=l;break}}u&&(Tt(t,s,o,!1),Fo(t,t.line-a),s=o=t.position,u=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Tt(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Wy(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(Tt(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 Xe(r)?(Tt(t,i,n,!0),Fo(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ln(t)?R(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);R(t,"unexpected end of the stream within a single quoted scalar")}function zy(t,e){var r,i,n,s,o,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return Tt(t,r,t.position,!0),t.position++,!0;if(u===92){if(Tt(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),Xe(u))te(t,!1,e);else if(u<256&&Xl[u])t.result+=Zl[u],t.position++;else if((o=Hy(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=qy(u))>=0?s=(s<<4)+o:R(t,"expected hexadecimal character");t.result+=Uy(s),t.position++}else R(t,"unknown escape sequence");r=i=t.position}else Xe(u)?(Tt(t,r,i,!0),Fo(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ln(t)?R(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}R(t,"unexpected end of the stream within a double quoted scalar")}function Yy(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,c,l,f,h,g,m=Object.create(null),E,S,C,w;if(w=t.input.charCodeAt(t.position),w===91)l=93,g=!1,u=[];else if(w===123)l=125,g=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),w=t.input.charCodeAt(++t.position);w!==0;){if(te(t,!0,e),w=t.input.charCodeAt(t.position),w===l)return t.position++,t.tag=o,t.anchor=a,t.kind=g?"mapping":"sequence",t.result=u,!0;r?w===44&&R(t,"expected the node content, but found ','"):R(t,"missed comma between flow collection entries"),S=E=C=null,f=h=!1,w===63&&(c=t.input.charCodeAt(t.position+1),be(c)&&(f=h=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,xr(t,e,sn,!1,!0),S=t.tag,E=t.result,te(t,!0,e),w=t.input.charCodeAt(t.position),(h||t.line===i)&&w===58&&(f=!0,w=t.input.charCodeAt(++t.position),te(t,!0,e),xr(t,e,sn,!1,!0),C=t.result),g?Fr(t,u,m,S,E,C,i,n,s):f?u.push(Fr(t,null,m,S,E,C,i,n,s)):u.push(E),te(t,!0,e),w=t.input.charCodeAt(t.position),w===44?(r=!0,w=t.input.charCodeAt(++t.position)):r=!1}R(t,"unexpected end of the stream within a flow collection")}function Ky(t,e){var r,i,n=Do,s=!1,o=!1,u=e,a=0,c=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Do===n?n=f===43?xl:Iy:R(t,"repeat of a chomping mode identifier");else if((l=$y(f))>=0)l===0?R(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?R(t,"repeat of an indentation width identifier"):(u=e+l-1,o=!0);else break;if(rr(f)){do f=t.input.charCodeAt(++t.position);while(rr(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Xe(f)&&f!==0)}for(;f!==0;){for(wo(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<u)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>u&&(u=t.lineIndent),Xe(f)){a++;continue}if(t.lineIndent<u){n===xl?t.result+=oe.repeat(`
|
18
18
|
`,s?1+a:a):n===Do&&s&&(t.result+=`
|
19
|
-
`);break}for(i?
|
20
|
-
`,s?1+a:a)):c?(c=!1,t.result+=
|
21
|
-
`,a+1)):a===0?s&&(t.result+=" "):t.result+=
|
22
|
-
`,a):t.result+=
|
23
|
-
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!
|
24
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new
|
19
|
+
`);break}for(i?rr(f)?(c=!0,t.result+=oe.repeat(`
|
20
|
+
`,s?1+a:a)):c?(c=!1,t.result+=oe.repeat(`
|
21
|
+
`,a+1)):a===0?s&&(t.result+=" "):t.result+=oe.repeat(`
|
22
|
+
`,a):t.result+=oe.repeat(`
|
23
|
+
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!Xe(f)&&f!==0;)f=t.input.charCodeAt(++t.position);Tt(t,r,t.position,!1)}return!0}function Bl(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,R(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!be(o))));){if(u=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,xr(t,e,Yl,!1,!0),s.push(t.result),te(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)R(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return u?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Vy(t,e,r){var i,n,s,o,u,a,c=t.tag,l=t.anchor,f={},h=Object.create(null),g=null,m=null,E=null,S=!1,C=!1,w;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),w=t.input.charCodeAt(t.position);w!==0;){if(!S&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,R(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(w===63||w===58)&&be(i))w===63?(S&&(Fr(t,f,h,g,m,null,o,u,a),g=m=E=null),C=!0,S=!0,n=!0):S?(S=!1,n=!0):R(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,w=i;else{if(o=t.line,u=t.lineStart,a=t.position,!xr(t,r,zl,!1,!0))break;if(t.line===s){for(w=t.input.charCodeAt(t.position);rr(w);)w=t.input.charCodeAt(++t.position);if(w===58)w=t.input.charCodeAt(++t.position),be(w)||R(t,"a whitespace character is expected after the key-value separator within a block mapping"),S&&(Fr(t,f,h,g,m,null,o,u,a),g=m=E=null),C=!0,S=!1,n=!1,g=t.tag,m=t.result;else if(C)R(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(C)R(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(S&&(o=t.line,u=t.lineStart,a=t.position),xr(t,e,on,!0,n)&&(S?m=t.result:E=t.result),S||(Fr(t,f,h,g,m,E,o,u,a),g=m=E=null),te(t,!0,-1),w=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&w!==0)R(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return S&&Fr(t,f,h,g,m,null,o,u,a),C&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=f),C}function Xy(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&&R(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)):R(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!be(o);)o===33&&(i?R(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Kl.test(n)||R(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),My.test(s)&&R(t,"tag suffix cannot contain flow indicator characters")}s&&!Vl.test(s)&&R(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{R(t,"tag name is malformed: "+s)}return r?t.tag=s:Ot.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:R(t,'undeclared tag handle "'+n+'"'),!0}function Zy(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&R(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!be(r)&&!wr(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&R(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Jy(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&&!be(i)&&!wr(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&R(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Ot.call(t.anchorMap,r)||R(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function xr(t,e,r,i,n){var s,o,u,a=1,c=!1,l=!1,f,h,g,m,E,S;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=on===r||Yl===r,i&&te(t,!0,-1)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;Xy(t)||Zy(t);)te(t,!0,-1)?(c=!0,u=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):u=!1;if(u&&(u=c||n),(a===1||on===r)&&(sn===r||zl===r?E=e:E=e+1,S=t.position-t.lineStart,a===1?u&&(Bl(t,S)||Vy(t,S,E))||Yy(t,E)?l=!0:(o&&Ky(t,E)||Wy(t,E)||zy(t,E)?l=!0:Jy(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&R(t,"alias node should not have any properties")):Gy(t,E,sn===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(l=u&&Bl(t,S))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&R(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(m=t.implicitTypes[f],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Ot.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],f=0,h=g.length;f<h;f+=1)if(t.tag.slice(0,g[f].tag.length)===g[f].tag){m=g[f];break}m||R(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&R(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):R(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function Qy(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&&!be(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&R(t,"directive name must not be less than one character in length");o!==0;){for(;rr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Xe(o));break}if(Xe(o))break;for(r=t.position;o!==0&&!be(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&wo(t),Ot.call(Tl,i)?Tl[i](t,i,n):un(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&&R(t,"directives end mark is expected"),xr(t,t.lineIndent-1,on,!1,!0),te(t,!0,-1),t.checkLineBreaks&&ky.test(t.input.slice(e,t.position))&&un(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ln(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,te(t,!0,-1));return}if(t.position<t.length-1)R(t,"end of the stream or a document separator is expected");else return}function Ql(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 jy(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,R(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;)Qy(r);return r.documents}function eA(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Ql(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function tA(t,e){var r=Ql(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ce("expected a single document in the stream, but found more")}}var rA=eA,iA=tA,ef={loadAll:rA,load:iA},tf=Object.prototype.toString,rf=Object.prototype.hasOwnProperty,xo=65279,nA=9,_i=10,sA=13,oA=32,uA=33,aA=34,Ao=35,cA=37,lA=38,fA=39,hA=42,nf=44,pA=45,an=58,dA=61,mA=62,gA=63,EA=64,sf=91,of=93,DA=96,uf=123,yA=124,af=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 AA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_A=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function SA(t,e){var r,i,n,s,o,u,a;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],u=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=t.compiledTypeMap.fallback[o],a&&rf.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function CA(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 Ce("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oe.repeat("0",i-e.length)+e}var bA=1,Si=2;function wA(t){this.schema=t.schema||Wl,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=SA(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==='"'?Si:bA,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 Pl(t,e){for(var r=oe.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
|
25
25
|
`,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
26
26
|
`&&(s+=r),s+=o;return s}function _o(t,e){return`
|
27
|
-
`+
|
27
|
+
`+oe.repeat(" ",t.indent*e)}function FA(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 cn(t){return t===oA||t===nA}function Ci(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==xo||65536<=t&&t<=1114111}function Ll(t){return Ci(t)&&t!==xo&&t!==sA&&t!==_i}function Il(t,e,r){var i=Ll(t),n=i&&!cn(t);return(r?i:i&&t!==nf&&t!==sf&&t!==of&&t!==uf&&t!==af)&&t!==Ao&&!(e===an&&!n)||Ll(e)&&!cn(e)&&t===Ao||e===an&&n}function xA(t){return Ci(t)&&t!==xo&&!cn(t)&&t!==pA&&t!==gA&&t!==an&&t!==nf&&t!==sf&&t!==of&&t!==uf&&t!==af&&t!==Ao&&t!==lA&&t!==hA&&t!==uA&&t!==yA&&t!==dA&&t!==mA&&t!==fA&&t!==aA&&t!==cA&&t!==EA&&t!==DA}function vA(t){return!cn(t)&&t!==an}function yi(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 cf(t){var e=/^\n* /;return e.test(t)}var lf=1,So=2,ff=3,hf=4,br=5;function RA(t,e,r,i,n,s,o,u){var a,c=0,l=null,f=!1,h=!1,g=i!==-1,m=-1,E=xA(yi(t,0))&&vA(yi(t,t.length-1));if(e||o)for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=yi(t,a),!Ci(c))return br;E=E&&Il(c,l,u),l=c}else{for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=yi(t,a),c===_i)f=!0,g&&(h=h||a-m-1>i&&t[m+1]!==" ",m=a);else if(!Ci(c))return br;E=E&&Il(c,l,u),l=c}h=h||g&&a-m-1>i&&t[m+1]!==" "}return!f&&!h?E&&!o&&!n(t)?lf:s===Si?br:So:r>9&&cf(t)?br:o?s===Si?br:So:h?hf:ff}function TA(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===Si?'""':"''";if(!t.noCompatMode&&(AA.indexOf(e)!==-1||_A.test(e)))return t.quotingType===Si?'"'+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),u=i||t.flowLevel>-1&&r>=t.flowLevel;function a(c){return FA(t,c)}switch(RA(e,u,t.indent,o,a,t.quotingType,t.forceQuotes&&!i,n)){case lf:return e;case So:return"'"+e.replace(/'/g,"''")+"'";case ff:return"|"+Nl(e,t.indent)+kl(Pl(e,s));case hf:return">"+Nl(e,t.indent)+kl(Pl(OA(e,o),s));case br:return'"'+BA(e)+'"';default:throw new Ce("impossible error: invalid scalar style")}}()}function Nl(t,e){var r=cf(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
|
31
|
+
`}function kl(t){return t[t.length-1]===`
|
32
32
|
`?t.slice(0,-1):t}function OA(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
33
|
-
`);return c=c!==-1?c:t.length,r.lastIndex=c,
|
33
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,Ml(t.slice(0,c),e)}(),n=t[0]===`
|
34
34
|
`||t[0]===" ",s,o;o=r.exec(t);){var u=o[1],a=o[2];s=a[0]===" ",i+=u+(!n&&!s&&a!==""?`
|
35
|
-
`:"")+
|
35
|
+
`:"")+Ml(a,e),n=s}return i}function Ml(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,u=0,a="";i=r.exec(t);)u=i.index,u-n>e&&(s=o>n?o:u,a+=`
|
36
36
|
`+t.slice(n,s),n=s+1),o=u;return a+=`
|
37
37
|
`,t.length-n>e&&o>n?a+=t.slice(n,o)+`
|
38
|
-
`+t.slice(o+1):a+=t.slice(n),a.slice(1)}function BA(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=
|
39
|
-
`:""}var MA=kA,qA={dump:MA};function vo(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
|
38
|
+
`+t.slice(o+1):a+=t.slice(n),a.slice(1)}function BA(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=yi(t,n),i=pe[r],!i&&Ci(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||CA(r);return e}function PA(t,e,r){var i="",n=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(pt(t,e,u,!1,!1)||typeof u=="undefined"&&pt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function ql(t,e,r,i){var n="",s=t.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(pt(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&pt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=_o(t,e)),t.dump&&_i===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function LA(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,u,a,c,l;for(o=0,u=s.length;o<u;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),a=s[o],c=r[a],t.replacer&&(c=t.replacer.call(r,a,c)),pt(t,e,a,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),pt(t,e,c,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function IA(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),u,a,c,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Ce("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)h="",(!i||n!=="")&&(h+=_o(t,e)),c=o[u],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),pt(t,e+1,c,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&_i===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=_o(t,e)),pt(t,e+1,l,!0,f)&&(t.dump&&_i===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function Hl(t,e,r){var i,n,s,o,u,a;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(u=n[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(a=t.styleMap[u.tag]||u.defaultStyle,tf.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(rf.call(u.represent,a))i=u.represent[a](e,a);else throw new Ce("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function pt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Hl(t,r,!1)||Hl(t,r,!0);var u=tf.call(t.dump),a=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=u==="[object Object]"||u==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(IA(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(LA(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?ql(t,e-1,t.dump,n):ql(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(PA(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&TA(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ce("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function NA(t,e){var r=[],i=[],n,s;for(Co(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Co(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)Co(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Co(t[i[n]],e,r)}function kA(t,e){e=e||{};var r=new wA(e);r.noRefs||NA(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),pt(r,0,i,!0,!0)?r.dump+`
|
39
|
+
`:""}var MA=kA,qA={dump:MA};function vo(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 $R=ef.load,UR=ef.loadAll,jR=qA.dump;var GR=vo("safeLoad","load"),WR=vo("safeLoadAll","loadAll"),zR=vo("safeDump","dump");var Qb=G(Qp());var He={};El(He,{bold:()=>Wb,dimmed:()=>Yb,error:()=>ad,grey:()=>Kb,info:()=>Gb,item:()=>Vb,log:()=>qt,turboBlue:()=>Mr,turboGradient:()=>jb,turboLoader:()=>od,turboRed:()=>nd,underline:()=>zb,warn:()=>ud,yellow:()=>sd});var Mt=G(require("chalk")),ed=G(require("ora")),td=G(require("gradient-string")),rd="#0099F7",id="#F11712",Ub="#FFFF00",jb=(0,td.default)(rd,id),Mr=Mt.default.hex(rd),nd=Mt.default.hex(id),sd=Mt.default.hex(Ub),od=t=>(0,ed.default)({text:t,spinner:{frames:[" ",Mr("> "),Mr(">> "),Mr(">>>")]}}),Gb=(...t)=>{qt(Mr.bold(">>>"),...t)},Wb=(...t)=>{qt(Mt.default.bold(...t))},zb=(...t)=>{qt(Mt.default.underline(...t))},Yb=(...t)=>{qt(Mt.default.dim(...t))},Kb=(...t)=>{qt(Mt.default.grey(...t))},Vb=(...t)=>{qt(Mr.bold(" \u2022"),...t)},qt=(...t)=>{console.log(...t)},ud=(...t)=>{console.error(sd.bold(">>>"),...t)},ad=(...t)=>{console.error(nd.bold(">>>"),...t)};var Yw=G(require("os")),Kw=G(Wm());var Vw=G(require("fs-extra"));var Xw=G(require("path")),Zw=G(require("fs-extra")),Jw=G(require("chalk"));var GE=require("stream"),WE=require("util"),Lv=require("path"),Iv=require("os"),zE=require("fs"),Nv=G(jE());var QB=(0,WE.promisify)(GE.Stream.pipeline);var YE=require("fs-extra");var zv=G(require("path")),Yv=G(eD()),Kv=G(require("chalk")),dl=require("fs-extra");var Ve=G(require("chalk")),gi=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(Ve.default.green(" MODIFIED "),...e,this.dry?Ve.default.dim("(dry run)"):"")}unchanged(...e){this._log(Ve.default.gray(" UNCHANGED "),...e,this.dry?Ve.default.dim("(dry run)"):"")}skipped(...e){this._log(Ve.default.yellow(" SKIPPED "),...e,this.dry?Ve.default.dim("(dry run)"):"")}error(...e){this._log(Ve.default.red(" ERROR "),...e,this.dry?Ve.default.dim("(dry run)"):"")}info(...e){this._log(Ve.default.bold(" INFO "),...e,this.dry?Ve.default.dim("(dry run)"):"")}};var tD=G(require("os")),ml=G(require("path"));var io=G(require("chalk")),so=require("diff"),Qt=require("fs-extra"),no=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{ml.default.extname(e.filePath)===".json"?this.before=(0,Qt.readJsonSync)(e.filePath):this.before=(0,Qt.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,so.diffJson)(this.before,e.after):this.changes=(0,so.diffLines)(this.before,e.after):this.changes=[]}fileName(){return ml.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Qt.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Qt.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(io.default.green(r.value)):r.removed?process.stdout.write(io.default.red(r.value)):process.stdout.write(io.default.dim(r.value))}),He.log(tD.default.EOL)):He.log(this.after)}};var Qi=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new gi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new no({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(oo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(oo.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(oo.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(He.log(),r.length>0){He.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),He.log()}}};function rD({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new gi(i),s=new Qi(i);return{log:n,runner:s}}var iD="create-turbo-config",Vv='Create the `turbo.json` file from an existing "turbo" key in `package.json`',Xv="1.1.0";function nD({root:t,options:e}){let{log:r,runner:i}=rD({transformer:iD,rootPath:t,options:e});r.info('Migrating "package.json" "turbo" key to "turbo.json" file...');let n=gl.default.join(t,"turbo.json"),s=gl.default.join(t,"package.json");if(!(0,en.existsSync)(s))return i.abortTransform({reason:`No package.json found at ${t}. Is the path correct?`});let o=(0,en.readJsonSync)(s),u=null;try{u=(0,en.readJsonSync)(n)}catch{u=null}let a=o,c=u;if(!u&&o.turbo){let{turbo:l,...f}=o;c=l,a=f}return i.modifyFile({filePath:n,after:c}),i.modifyFile({filePath:s,after:a}),i.finish()}var Zv={name:iD,description:Vv,introducedIn:Xv,transformer:nD},Jv=Zv;0&&(module.exports={transformer});
|
40
40
|
/*! Bundled license information:
|
41
41
|
|
42
42
|
@babel/runtime/helpers/regeneratorRuntime.js:
|