@turbo/codemod 2.0.0-canary.0 → 2.0.0-canary.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +15 -15
- package/dist/transforms/add-package-names.js +1 -1
- package/dist/transforms/clean-globs.js +16 -16
- package/dist/transforms/migrate-dot-env.js +106 -0
- package/dist/transforms/migrate-env-var-dependencies.js +13 -13
- package/dist/transforms/rename-output-mode.js +1 -1
- package/dist/transforms/rename-pipeline.js +106 -0
- package/dist/transforms/set-default-outputs.js +6 -6
- package/dist/transforms/stabilize-env-mode.js +1 -1
- package/dist/transforms/stabilize-ui.js +93 -0
- package/dist/transforms/transform-env-literals-to-wildcards.js +23 -23
- package/package.json +6 -6
@@ -1,11 +1,11 @@
|
|
1
|
-
"use strict";var gy=Object.create;var Cn=Object.defineProperty;var Ey=Object.getOwnPropertyDescriptor;var Dy=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,Ay=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nf=(t,e)=>{for(var r in e)Cn(t,r,{get:e[r],enumerable:!0})},sf=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Dy(e))!Ay.call(t,n)&&n!==r&&Cn(t,n,{get:()=>e[n],enumerable:!(i=Ey(e,n))||i.enumerable});return t};var K=(t,e,r)=>(r=t!=null?gy(yy(t)):{},sf(e||!t||!t.__esModule?Cn(r,"default",{value:t,enumerable:!0}):r,t)),_y=t=>sf(Cn({},"__esModule",{value:!0}),t);var of=m((yT,At)=>{function Io(t){return At.exports=Io=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},At.exports.__esModule=!0,At.exports.default=At.exports,Io(t)}At.exports=Io,At.exports.__esModule=!0,At.exports.default=At.exports});var cf=m((AT,_t)=>{var uf=of().default;function af(){"use strict";_t.exports=af=function(){return e},_t.exports.__esModule=!0,_t.exports.default=_t.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,_){p[b]=_.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(p,b,_){return Object.defineProperty(p,b,{value:_,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(_,T,P){return _[T]=P}}function l(p,b,_,T){var P=b&&b.prototype instanceof y?b:y,R=Object.create(P.prototype),Z=new We(T||[]);return n(R,"_invoke",{value:le(p,_,Z)}),R}function f(p,b,_){try{return{type:"normal",arg:p.call(b,_)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var h="suspendedStart",E="suspendedYield",g="executing",d="completed",D={};function y(){}function w(){}function B(){}var q={};c(q,o,function(){return this});var v=Object.getPrototypeOf,$=v&&v(v(A([])));$&&$!==r&&i.call($,o)&&(q=$);var L=B.prototype=y.prototype=Object.create(q);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(_){return this._invoke(b,_)})})}function j(p,b){function _(P,R,Z,ye){var fe=f(p[P],p,R);if(fe.type!=="throw"){var Re=fe.arg,N=Re.value;return N&&uf(N)=="object"&&i.call(N,"__await")?b.resolve(N.__await).then(function(ze){_("next",ze,Z,ye)},function(ze){_("throw",ze,Z,ye)}):b.resolve(N).then(function(ze){Re.value=ze,Z(Re)},function(ze){return _("throw",ze,Z,ye)})}ye(fe.arg)}var T;n(this,"_invoke",{value:function(R,Z){function ye(){return new b(function(fe,Re){_(R,Z,fe,Re)})}return T=T?T.then(ye,ye):ye()}})}function le(p,b,_){var T=h;return function(P,R){if(T===g)throw new Error("Generator is already running");if(T===d){if(P==="throw")throw R;return{value:t,done:!0}}for(_.method=P,_.arg=R;;){var Z=_.delegate;if(Z){var ye=C(Z,_);if(ye){if(ye===D)continue;return ye}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(T===h)throw T=d,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);T=g;var fe=f(p,b,_);if(fe.type==="normal"){if(T=_.done?d:E,fe.arg===D)continue;return{value:fe.arg,done:_.done}}fe.type==="throw"&&(T=d,_.method="throw",_.arg=fe.arg)}}}function C(p,b){var _=b.method,T=p.iterator[_];if(T===t)return b.delegate=null,_==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,C(p,b),b.method==="throw")||_!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+_+"' method")),D;var P=f(T,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,D;var R=P.arg;return R?R.done?(b[p.resultName]=R.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,D):R:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,D)}function X(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function Y(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function We(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(X,this),this.reset(!0)}function A(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var _=-1,T=function P(){for(;++_<p.length;)if(i.call(p,_))return P.value=p[_],P.done=!1,P;return P.value=t,P.done=!0,P};return T.next=T}}throw new TypeError(uf(p)+" is not iterable")}return w.prototype=B,n(L,"constructor",{value:B,configurable:!0}),n(B,"constructor",{value:w,configurable:!0}),w.displayName=c(B,a,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===w||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,B):(p.__proto__=B,c(p,a,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(j.prototype),c(j.prototype,u,function(){return this}),e.AsyncIterator=j,e.async=function(p,b,_,T,P){P===void 0&&(P=Promise);var R=new j(l(p,b,_,T),P);return e.isGeneratorFunction(b)?R:R.next().then(function(Z){return Z.done?Z.value:R.next()})},I(L),c(L,a,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),_=[];for(var T in b)_.push(T);return _.reverse(),function P(){for(;_.length;){var R=_.pop();if(R in b)return P.value=R,P.done=!1,P}return P.done=!0,P}},e.values=A,We.prototype={constructor:We,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Y),!b)for(var _ in this)_.charAt(0)==="t"&&i.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var _=this;function T(Re,N){return Z.type="throw",Z.arg=b,_.next=Re,N&&(_.method="next",_.arg=t),!!N}for(var P=this.tryEntries.length-1;P>=0;--P){var R=this.tryEntries[P],Z=R.completion;if(R.tryLoc==="root")return T("end");if(R.tryLoc<=this.prev){var ye=i.call(R,"catchLoc"),fe=i.call(R,"finallyLoc");if(ye&&fe){if(this.prev<R.catchLoc)return T(R.catchLoc,!0);if(this.prev<R.finallyLoc)return T(R.finallyLoc)}else if(ye){if(this.prev<R.catchLoc)return T(R.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return T(R.finallyLoc)}}}},abrupt:function(b,_){for(var T=this.tryEntries.length-1;T>=0;--T){var P=this.tryEntries[T];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var R=P;break}}R&&(b==="break"||b==="continue")&&R.tryLoc<=_&&_<=R.finallyLoc&&(R=null);var Z=R?R.completion:{};return Z.type=b,Z.arg=_,R?(this.method="next",this.next=R.finallyLoc,D):this.complete(Z)},complete:function(b,_){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&_&&(this.next=_),D},finish:function(b){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.finallyLoc===b)return this.complete(T.completion,T.afterLoc),Y(T),D}},catch:function(b){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.tryLoc===b){var P=T.completion;if(P.type==="throw"){var R=P.arg;Y(T)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(b,_,T){return this.delegate={iterator:A(b),resultName:_,nextLoc:T},this.method==="next"&&(this.arg=t),D}},e}_t.exports=af,_t.exports.__esModule=!0,_t.exports.default=_t.exports});var ff=m((_T,lf)=>{var bn=cf()();lf.exports=bn;try{regeneratorRuntime=bn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=bn:Function("r","regeneratorRuntime = r")(bn)}});var yh=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.splitWhen=Wr.flatten=void 0;function oS(t){return t.reduce((e,r)=>[].concat(e,r),[])}Wr.flatten=oS;function uS(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Wr.splitWhen=uS});var Ah=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.isEnoentCodeError=void 0;function aS(t){return t.code==="ENOENT"}kn.isEnoentCodeError=aS});var _h=m(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.createDirentFromStats=void 0;var pu=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 cS(t,e){return new pu(t,e)}Mn.createDirentFromStats=cS});var Sh=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.removeLeadingDotSegment=ut.escape=ut.makeAbsolute=ut.unixify=void 0;var lS=require("path"),fS=2,hS=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function pS(t){return t.replace(/\\/g,"/")}ut.unixify=pS;function dS(t,e){return lS.resolve(t,e)}ut.makeAbsolute=dS;function mS(t){return t.replace(hS,"\\$2")}ut.escape=mS;function gS(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(fS)}return t}ut.removeLeadingDotSegment=gS});var bh=m((aO,Ch)=>{Ch.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 xh=m((cO,Fh)=>{var ES=bh(),wh={"{":"}","(":")","[":"]"},DS=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=wh[u];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},yS=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=wh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Fh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ES(e))return!0;var i=DS;return r&&r.strict===!1&&(i=yS),i(e)}});var Rh=m((lO,vh)=>{"use strict";var AS=xh(),_S=require("path").posix.dirname,SS=require("os").platform()==="win32",du="/",CS=/\\/g,bS=/[\{\[].*[\}\]]$/,wS=/(^|[^\\])([\{\[]|\([^\)]+$)/,FS=/\\([\!\*\?\|\[\]\(\)\{\}])/g;vh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&SS&&e.indexOf(du)<0&&(e=e.replace(CS,du)),bS.test(e)&&(e+=du),e+="a";do e=_S(e);while(AS(e)||wS.test(e));return e.replace(FS,"$1")}});var qn=m(Ye=>{"use strict";Ye.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ye.find=(t,e)=>t.nodes.find(r=>r.type===e);Ye.exceedsLimit=(t,e,r=1,i)=>i===!1||!Ye.isInteger(t)||!Ye.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Ye.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)};Ye.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Ye.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;Ye.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ye.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Ye.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 Hn=m((hO,Oh)=>{"use strict";var Th=qn();Oh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Th.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&Th.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 Ph=m((pO,Bh)=>{"use strict";Bh.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Uh=m((dO,$h)=>{"use strict";var Lh=Ph(),yr=(t,e,r)=>{if(Lh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Lh(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(yr.cache.hasOwnProperty(a))return yr.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=Hh(t)||Hh(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=Ih(d,Math.abs(c),h,i),c=h.a=0}return l>=0&&(E=Ih(c,l,h,i)),h.negatives=g,h.positives=E,h.result=xS(g,E,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&E.length+g.length>1&&(h.result=`(?:${h.result})`),yr.cache[a]=h,h.result};function xS(t,e,r){let i=mu(t,e,"-",!1,r)||[],n=mu(e,t,"",!1,r)||[],s=mu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function vS(t,e){let r=1,i=1,n=kh(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=kh(t,r);for(n=Mh(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Mh(e+1,i)-1;return s=[...s],s.sort(OS),s}function RS(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=TS(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+=BS(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ih(t,e,r,i){let n=vS(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let c=n[a],l=RS(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+qh(u.count),o=c+1;continue}r.isPadded&&(f=PS(c,r,i)),l.string=f+l.pattern+qh(l.count),s.push(l),o=c+1,u=l}return s}function mu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Nh(e,"string",u)&&s.push(r+u),i&&Nh(e,"string",u)&&s.push(r+u)}return s}function TS(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function OS(t,e){return t>e?1:e>t?-1:0}function Nh(t,e,r){return t.some(i=>i[e]===r)}function kh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Mh(t,e){return t-t%Math.pow(10,e)}function qh(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function BS(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Hh(t){return/^-?(0+)\d/.test(t)}function PS(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}}`}}yr.cache={};yr.clearCache=()=>yr.cache={};$h.exports=yr});var Du=m((mO,Xh)=>{"use strict";var LS=require("util"),Wh=Uh(),Gh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),IS=t=>e=>t===!0?Number(e):String(e),gu=t=>typeof t=="number"||typeof t=="string"&&t!=="",ji=t=>Number.isInteger(+t),Eu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},NS=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,kS=(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},jh=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},MS=(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},zh=(t,e,r,i)=>{if(r)return Wh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Yh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Wh(t,e,r)},Kh=(...t)=>new RangeError("Invalid range arguments: "+LS.inspect(...t)),Vh=(t,e,r)=>{if(r.strictRanges===!0)throw Kh([t,e]);return[]},qS=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},HS=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Kh([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=Eu(u)||Eu(a)||Eu(c),f=l?Math.max(u.length,a.length,c.length):0,h=l===!1&&NS(t,e,i)===!1,E=i.transform||IS(h);if(i.toRegex&&r===1)return zh(jh(t,f),jh(e,f),!0,i);let g={negatives:[],positives:[]},d=w=>g[w<0?"negatives":"positives"].push(Math.abs(w)),D=[],y=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?d(n):D.push(kS(E(n,y),f,h)),n=o?n-r:n+r,y++;return i.toRegex===!0?r>1?MS(g,i):Yh(D,null,{wrap:!1,...i}):D},$S=(t,e,r=1,i={})=>{if(!ji(t)&&t.length>1||!ji(e)&&e.length>1)return Vh(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 zh(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?Yh(l,null,{wrap:!1,options:i}):l},$n=(t,e,r,i={})=>{if(e==null&&gu(t))return[t];if(!gu(t)||!gu(e))return Vh(t,e,i);if(typeof r=="function")return $n(t,e,1,{transform:r});if(Gh(r))return $n(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,ji(r)?ji(t)&&ji(e)?HS(t,e,r,n):$S(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Gh(r)?qS(r,n):$n(t,e,1,r)};Xh.exports=$n});var Qh=m((gO,Jh)=>{"use strict";var US=Du(),Zh=qn(),GS=(t,e={})=>{let r=(i,n={})=>{let s=Zh.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=Zh.reduce(i.nodes),f=US(...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)};Jh.exports=GS});var rp=m((EO,tp)=>{"use strict";var jS=Du(),ep=Hn(),zr=qn(),Ar=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ar(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ar(n,s,r):n+s);return zr.flatten(i)},WS=(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(Ar(u.pop(),ep(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Ar(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=zr.reduce(n.nodes);if(zr.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=jS(...f,e);h.length===0&&(h=ep(n,e)),u.push(Ar(u.pop(),h)),n.nodes=[];return}let a=zr.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(Ar(u.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(Ar(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return zr.flatten(i(t))};tp.exports=WS});var np=m((DO,ip)=>{"use strict";ip.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 cp=m((yO,ap)=>{"use strict";var zS=Hn(),{MAX_LENGTH:sp,CHAR_BACKSLASH:yu,CHAR_BACKTICK:YS,CHAR_COMMA:KS,CHAR_DOT:VS,CHAR_LEFT_PARENTHESES:XS,CHAR_RIGHT_PARENTHESES:ZS,CHAR_LEFT_CURLY_BRACE:JS,CHAR_RIGHT_CURLY_BRACE:QS,CHAR_LEFT_SQUARE_BRACKET:op,CHAR_RIGHT_SQUARE_BRACKET:up,CHAR_DOUBLE_QUOTE:eC,CHAR_SINGLE_QUOTE:tC,CHAR_NO_BREAK_SPACE:rC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:iC}=np(),nC=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(sp,r.maxLength):sp;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=D=>{if(D.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&D.type==="text"){u.value+=D.value;return}return o.nodes.push(D),D.parent=o,D.prev=u,u=D,D};for(d({type:"bos"});l<c;)if(o=s[s.length-1],h=g(),!(h===iC||h===rC)){if(h===yu){d({type:"text",value:(e.keepEscaping?h:"")+g()});continue}if(h===up){d({type:"text",value:"\\"+h});continue}if(h===op){a++;let D=!0,y;for(;l<c&&(y=g());){if(h+=y,y===op){a++;continue}if(y===yu){h+=g();continue}if(y===up&&(a--,a===0))break}d({type:"text",value:h});continue}if(h===XS){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===ZS){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===eC||h===tC||h===YS){let D=h,y;for(e.keepQuotes!==!0&&(h="");l<c&&(y=g());){if(y===yu){h+=y+g();continue}if(y===D){e.keepQuotes===!0&&(h+=y);break}h+=y}d({type:"text",value:h});continue}if(h===JS){f++;let y={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(y),s.push(o),d({type:"open",value:h});continue}if(h===QS){if(o.type!=="brace"){d({type:"text",value:h});continue}let D="close";o=s.pop(),o.close=!0,d({type:D,value:h}),f--,o=s[s.length-1];continue}if(h===KS&&f>0){if(o.ranges>0){o.ranges=0;let D=o.nodes.shift();o.nodes=[D,{type:"text",value:zS(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===VS&&f>0&&o.commas===0){let D=o.nodes;if(f===0||D.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"){D.pop();let y=D[D.length-1];y.value+=u.value+h,u=y,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(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let D=s[s.length-1],y=D.nodes.indexOf(o);D.nodes.splice(y,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};ap.exports=nC});var hp=m((AO,fp)=>{"use strict";var lp=Hn(),sC=Qh(),oC=rp(),uC=cp(),qe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=qe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(qe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};qe.parse=(t,e={})=>uC(t,e);qe.stringify=(t,e={})=>lp(typeof t=="string"?qe.parse(t,e):t,e);qe.compile=(t,e={})=>(typeof t=="string"&&(t=qe.parse(t,e)),sC(t,e));qe.expand=(t,e={})=>{typeof t=="string"&&(t=qe.parse(t,e));let r=oC(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};qe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?qe.compile(t,e):qe.expand(t,e);fp.exports=qe});var Wi=m((_O,Ep)=>{"use strict";var aC=require("path"),at="\\\\/",pp=`[^${at}]`,xt="\\.",cC="\\+",lC="\\?",Un="\\/",fC="(?=.)",dp="[^/]",Au=`(?:${Un}|$)`,mp=`(?:^|${Un})`,_u=`${xt}{1,2}${Au}`,hC=`(?!${xt})`,pC=`(?!${mp}${_u})`,dC=`(?!${xt}{0,1}${Au})`,mC=`(?!${_u})`,gC=`[^.${Un}]`,EC=`${dp}*?`,gp={DOT_LITERAL:xt,PLUS_LITERAL:cC,QMARK_LITERAL:lC,SLASH_LITERAL:Un,ONE_CHAR:fC,QMARK:dp,END_ANCHOR:Au,DOTS_SLASH:_u,NO_DOT:hC,NO_DOTS:pC,NO_DOT_SLASH:dC,NO_DOTS_SLASH:mC,QMARK_NO_DOT:gC,STAR:EC,START_ANCHOR:mp},DC={...gp,SLASH_LITERAL:`[${at}]`,QMARK:pp,STAR:`${pp}*?`,DOTS_SLASH:`${xt}{1,2}(?:[${at}]|$)`,NO_DOT:`(?!${xt})`,NO_DOTS:`(?!(?:^|[${at}])${xt}{1,2}(?:[${at}]|$))`,NO_DOT_SLASH:`(?!${xt}{0,1}(?:[${at}]|$))`,NO_DOTS_SLASH:`(?!${xt}{1,2}(?:[${at}]|$))`,QMARK_NO_DOT:`[^.${at}]`,START_ANCHOR:`(?:^|[${at}])`,END_ANCHOR:`(?:[${at}]|$)`},yC={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"};Ep.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:yC,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:aC.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?DC:gp}}});var zi=m(Le=>{"use strict";var AC=require("path"),_C=process.platform==="win32",{REGEX_BACKSLASH:SC,REGEX_REMOVE_BACKSLASH:CC,REGEX_SPECIAL_CHARS:bC,REGEX_SPECIAL_CHARS_GLOBAL:wC}=Wi();Le.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Le.hasRegexChars=t=>bC.test(t);Le.isRegexChar=t=>t.length===1&&Le.hasRegexChars(t);Le.escapeRegex=t=>t.replace(wC,"\\$1");Le.toPosixSlashes=t=>t.replace(SC,"/");Le.removeBackslashes=t=>t.replace(CC,e=>e==="\\"?"":e);Le.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Le.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:_C===!0||AC.sep==="\\";Le.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Le.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Le.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Le.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var wp=m((CO,bp)=>{"use strict";var Dp=zi(),{CHAR_ASTERISK:Su,CHAR_AT:FC,CHAR_BACKWARD_SLASH:Yi,CHAR_COMMA:xC,CHAR_DOT:Cu,CHAR_EXCLAMATION_MARK:bu,CHAR_FORWARD_SLASH:Cp,CHAR_LEFT_CURLY_BRACE:wu,CHAR_LEFT_PARENTHESES:Fu,CHAR_LEFT_SQUARE_BRACKET:vC,CHAR_PLUS:RC,CHAR_QUESTION_MARK:yp,CHAR_RIGHT_CURLY_BRACE:TC,CHAR_RIGHT_PARENTHESES:Ap,CHAR_RIGHT_SQUARE_BRACKET:OC}=Wi(),_p=t=>t===Cp||t===Yi,Sp=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},BC=(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,D=!1,y=!1,w=!1,B=!1,q=!1,v=!1,$=0,L,I,j={value:"",depth:0,isGlob:!1},le=()=>c>=i,C=()=>a.charCodeAt(c+1),X=()=>(L=I,a.charCodeAt(++c));for(;c<i;){I=X();let b;if(I===Yi){w=j.backslashes=!0,I=X(),I===wu&&(y=!0);continue}if(y===!0||I===wu){for($++;le()!==!0&&(I=X());){if(I===Yi){w=j.backslashes=!0,X();continue}if(I===wu){$++;continue}if(y!==!0&&I===Cu&&(I=X())===Cu){if(h=j.isBrace=!0,g=j.isGlob=!0,v=!0,n===!0)continue;break}if(y!==!0&&I===xC){if(h=j.isBrace=!0,g=j.isGlob=!0,v=!0,n===!0)continue;break}if(I===TC&&($--,$===0)){y=!1,h=j.isBrace=!0,v=!0;break}}if(n===!0)continue;break}if(I===Cp){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},v===!0)continue;if(L===Cu&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(I===RC||I===FC||I===Su||I===yp||I===bu)===!0&&C()===Fu){if(g=j.isGlob=!0,d=j.isExtglob=!0,v=!0,I===bu&&c===l&&(q=!0),n===!0){for(;le()!==!0&&(I=X());){if(I===Yi){w=j.backslashes=!0,I=X();continue}if(I===Ap){g=j.isGlob=!0,v=!0;break}}continue}break}if(I===Su){if(L===Su&&(D=j.isGlobstar=!0),g=j.isGlob=!0,v=!0,n===!0)continue;break}if(I===yp){if(g=j.isGlob=!0,v=!0,n===!0)continue;break}if(I===vC){for(;le()!==!0&&(b=X());){if(b===Yi){w=j.backslashes=!0,X();continue}if(b===OC){E=j.isBracket=!0,g=j.isGlob=!0,v=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===bu&&c===l){B=j.negated=!0,l++;continue}if(r.noparen!==!0&&I===Fu){if(g=j.isGlob=!0,n===!0){for(;le()!==!0&&(I=X());){if(I===Fu){w=j.backslashes=!0,I=X();continue}if(I===Ap){v=!0;break}}continue}break}if(g===!0){if(v=!0,n===!0)continue;break}}r.noext===!0&&(d=!1,g=!1);let Y=a,We="",A="";l>0&&(We=a.slice(0,l),a=a.slice(l),f-=l),Y&&g===!0&&f>0?(Y=a.slice(0,f),A=a.slice(f)):g===!0?(Y="",A=a):Y=a,Y&&Y!==""&&Y!=="/"&&Y!==a&&_p(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),r.unescape===!0&&(A&&(A=Dp.removeBackslashes(A)),Y&&w===!0&&(Y=Dp.removeBackslashes(Y)));let p={prefix:We,input:t,start:l,base:Y,glob:A,isBrace:h,isBracket:E,isGlob:g,isExtglob:d,isGlobstar:D,negated:B,negatedExtglob:q};if(r.tokens===!0&&(p.maxDepth=0,_p(I)||o.push(j),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let _=0;_<s.length;_++){let T=b?b+1:l,P=s[_],R=t.slice(T,P);r.tokens&&(_===0&&l!==0?(o[_].isPrefix=!0,o[_].value=We):o[_].value=R,Sp(o[_]),p.maxDepth+=o[_].depth),(_!==0||R!=="")&&u.push(R),b=P}if(b&&b+1<t.length){let _=t.slice(b+1);u.push(_),r.tokens&&(o[o.length-1].value=_,Sp(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=u}return p};bp.exports=BC});var vp=m((bO,xp)=>{"use strict";var Gn=Wi(),He=zi(),{MAX_LENGTH:jn,POSIX_REGEX_SOURCE:PC,REGEX_NON_SPECIAL_CHARS:LC,REGEX_SPECIAL_CHARS_BACKREF:IC,REPLACEMENTS:Fp}=Gn,NC=(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=>He.escapeRegex(n)).join("..")}return r},Yr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,xu=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Fp[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(jn,r.maxLength):jn,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=He.isWindows(e),c=Gn.globChars(a),l=Gn.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:d,NO_DOT:D,NO_DOT_SLASH:y,NO_DOTS_SLASH:w,QMARK:B,QMARK_NO_DOT:q,STAR:v,START_ANCHOR:$}=c,L=x=>`(${u}(?:(?!${$}${x.dot?d:f}).)*?)`,I=r.dot?"":D,j=r.dot?B:q,le=r.bash===!0?L(r):v;r.capture&&(le=`(${le})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={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=He.removePrefix(t,C),n=t.length;let X=[],Y=[],We=[],A=s,p,b=()=>C.index===n-1,_=C.peek=(x=1)=>t[C.index+x],T=C.advance=()=>t[++C.index]||"",P=()=>t.slice(C.index+1),R=(x="",Q=0)=>{C.consumed+=x,C.index+=Q},Z=x=>{C.output+=x.output!=null?x.output:x.value,R(x.value)},ye=()=>{let x=1;for(;_()==="!"&&(_(2)!=="("||_(3)==="?");)T(),C.start++,x++;return x%2===0?!1:(C.negated=!0,C.start++,!0)},fe=x=>{C[x]++,We.push(x)},Re=x=>{C[x]--,We.pop()},N=x=>{if(A.type==="globstar"){let Q=C.braces>0&&(x.type==="comma"||x.type==="brace"),F=x.extglob===!0||X.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!Q&&!F&&(C.output=C.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=le,C.output+=A.output)}if(X.length&&x.type!=="paren"&&(X[X.length-1].inner+=x.value),(x.value||x.output)&&Z(x),A&&A.type==="text"&&x.type==="text"){A.value+=x.value,A.output=(A.output||"")+x.value;return}x.prev=A,o.push(x),A=x},ze=(x,Q)=>{let F={...l[Q],conditions:1,inner:""};F.prev=A,F.parens=C.parens,F.output=C.output;let U=(r.capture?"(":"")+F.open;fe("parens"),N({type:x,value:Q,output:C.output?"":g}),N({type:"paren",extglob:!0,value:T(),output:U}),X.push(F)},my=x=>{let Q=x.close+(r.capture?")":""),F;if(x.type==="negate"){let U=le;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(U=L(r)),(U!==le||b()||/^\)+$/.test(P()))&&(Q=x.close=`)$))${U}`),x.inner.includes("*")&&(F=P())&&/^\.[^\\/.]+$/.test(F)){let se=xu(F,{...e,fastpaths:!1}).output;Q=x.close=`)${se})${U})`}x.prev.type==="bos"&&(C.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:p,output:Q}),Re("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let x=!1,Q=t.replace(IC,(F,U,se,Te,he,Lo)=>Te==="\\"?(x=!0,F):Te==="?"?U?U+Te+(he?B.repeat(he.length):""):Lo===0?j+(he?B.repeat(he.length):""):B.repeat(se.length):Te==="."?f.repeat(se.length):Te==="*"?U?U+Te+(he?le:""):le:U?F:`\\${F}`);return x===!0&&(r.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),Q===t&&r.contains===!0?(C.output=t,C):(C.output=He.wrapOutput(Q,C,e),C)}for(;!b();){if(p=T(),p==="\0")continue;if(p==="\\"){let F=_();if(F==="/"&&r.bash!==!0||F==="."||F===";")continue;if(!F){p+="\\",N({type:"text",value:p});continue}let U=/^\\+/.exec(P()),se=0;if(U&&U[0].length>2&&(se=U[0].length,C.index+=se,se%2!==0&&(p+="\\")),r.unescape===!0?p=T():p+=T(),C.brackets===0){N({type:"text",value:p});continue}}if(C.brackets>0&&(p!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&p===":"){let F=A.value.slice(1);if(F.includes("[")&&(A.posix=!0,F.includes(":"))){let U=A.value.lastIndexOf("["),se=A.value.slice(0,U),Te=A.value.slice(U+2),he=PC[Te];if(he){A.value=se+he,C.backtrack=!0,T(),!s.output&&o.indexOf(A)===1&&(s.output=g);continue}}}(p==="["&&_()!==":"||p==="-"&&_()==="]")&&(p=`\\${p}`),p==="]"&&(A.value==="["||A.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&A.value==="["&&(p="^"),A.value+=p,Z({value:p});continue}if(C.quotes===1&&p!=='"'){p=He.escapeRegex(p),A.value+=p,Z({value:p});continue}if(p==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&N({type:"text",value:p});continue}if(p==="("){fe("parens"),N({type:"paren",value:p});continue}if(p===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Yr("opening","("));let F=X[X.length-1];if(F&&C.parens===F.parens+1){my(X.pop());continue}N({type:"paren",value:p,output:C.parens?")":"\\)"}),Re("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));p=`\\${p}`}else fe("brackets");N({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){N({type:"text",value:p,output:`\\${p}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Yr("opening","["));N({type:"text",value:p,output:`\\${p}`});continue}Re("brackets");let F=A.value.slice(1);if(A.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(p=`/${p}`),A.value+=p,Z({value:p}),r.literalBrackets===!1||He.hasRegexChars(F))continue;let U=He.escapeRegex(A.value);if(C.output=C.output.slice(0,-A.value.length),r.literalBrackets===!0){C.output+=U,A.value=U;continue}A.value=`(${u}${U}|${A.value})`,C.output+=A.value;continue}if(p==="{"&&r.nobrace!==!0){fe("braces");let F={type:"brace",value:p,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};Y.push(F),N(F);continue}if(p==="}"){let F=Y[Y.length-1];if(r.nobrace===!0||!F){N({type:"text",value:p,output:p});continue}let U=")";if(F.dots===!0){let se=o.slice(),Te=[];for(let he=se.length-1;he>=0&&(o.pop(),se[he].type!=="brace");he--)se[he].type!=="dots"&&Te.unshift(se[he].value);U=NC(Te,r),C.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let se=C.output.slice(0,F.outputIndex),Te=C.tokens.slice(F.tokensIndex);F.value=F.output="\\{",p=U="\\}",C.output=se;for(let he of Te)C.output+=he.output||he.value}N({type:"brace",value:p,output:U}),Re("braces"),Y.pop();continue}if(p==="|"){X.length>0&&X[X.length-1].conditions++,N({type:"text",value:p});continue}if(p===","){let F=p,U=Y[Y.length-1];U&&We[We.length-1]==="braces"&&(U.comma=!0,F="|"),N({type:"comma",value:p,output:F});continue}if(p==="/"){if(A.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),A=s;continue}N({type:"slash",value:p,output:E});continue}if(p==="."){if(C.braces>0&&A.type==="dot"){A.value==="."&&(A.output=f);let F=Y[Y.length-1];A.type="dots",A.output+=p,A.value+=p,F.dots=!0;continue}if(C.braces+C.parens===0&&A.type!=="bos"&&A.type!=="slash"){N({type:"text",value:p,output:f});continue}N({type:"dot",value:p,output:f});continue}if(p==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&_()==="("&&_(2)!=="?"){ze("qmark",p);continue}if(A&&A.type==="paren"){let U=_(),se=p;if(U==="<"&&!He.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(U)||U==="<"&&!/<([!=]|\w+>)/.test(P()))&&(se=`\\${p}`),N({type:"text",value:p,output:se});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){N({type:"qmark",value:p,output:q});continue}N({type:"qmark",value:p,output:B});continue}if(p==="!"){if(r.noextglob!==!0&&_()==="("&&(_(2)!=="?"||!/[!=<:]/.test(_(3)))){ze("negate",p);continue}if(r.nonegate!==!0&&C.index===0){ye();continue}}if(p==="+"){if(r.noextglob!==!0&&_()==="("&&_(2)!=="?"){ze("plus",p);continue}if(A&&A.value==="("||r.regex===!1){N({type:"plus",value:p,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||C.parens>0){N({type:"plus",value:p});continue}N({type:"plus",value:h});continue}if(p==="@"){if(r.noextglob!==!0&&_()==="("&&_(2)!=="?"){N({type:"at",extglob:!0,value:p,output:""});continue}N({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let F=LC.exec(P());F&&(p+=F[0],C.index+=F[0].length),N({type:"text",value:p});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=p,A.output=le,C.backtrack=!0,C.globstar=!0,R(p);continue}let x=P();if(r.noextglob!==!0&&/^\([^?]/.test(x)){ze("star",p);continue}if(A.type==="star"){if(r.noglobstar===!0){R(p);continue}let F=A.prev,U=F.prev,se=F.type==="slash"||F.type==="bos",Te=U&&(U.type==="star"||U.type==="globstar");if(r.bash===!0&&(!se||x[0]&&x[0]!=="/")){N({type:"star",value:p,output:""});continue}let he=C.braces>0&&(F.type==="comma"||F.type==="brace"),Lo=X.length&&(F.type==="pipe"||F.type==="paren");if(!se&&F.type!=="paren"&&!he&&!Lo){N({type:"star",value:p,output:""});continue}for(;x.slice(0,3)==="/**";){let Sn=t[C.index+4];if(Sn&&Sn!=="/")break;x=x.slice(3),R("/**",3)}if(F.type==="bos"&&b()){A.type="globstar",A.value+=p,A.output=L(r),C.output=A.output,C.globstar=!0,R(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!Te&&b()){C.output=C.output.slice(0,-(F.output+A.output).length),F.output=`(?:${F.output}`,A.type="globstar",A.output=L(r)+(r.strictSlashes?")":"|$)"),A.value+=p,C.globstar=!0,C.output+=F.output+A.output,R(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&x[0]==="/"){let Sn=x[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(F.output+A.output).length),F.output=`(?:${F.output}`,A.type="globstar",A.output=`${L(r)}${E}|${E}${Sn})`,A.value+=p,C.output+=F.output+A.output,C.globstar=!0,R(p+T()),N({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&x[0]==="/"){A.type="globstar",A.value+=p,A.output=`(?:^|${E}|${L(r)}${E})`,C.output=A.output,C.globstar=!0,R(p+T()),N({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-A.output.length),A.type="globstar",A.output=L(r),A.value+=p,C.output+=A.output,C.globstar=!0,R(p);continue}let Q={type:"star",value:p,output:le};if(r.bash===!0){Q.output=".*?",(A.type==="bos"||A.type==="slash")&&(Q.output=I+Q.output),N(Q);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){Q.output=p,N(Q);continue}(C.index===C.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(C.output+=y,A.output+=y):r.dot===!0?(C.output+=w,A.output+=w):(C.output+=I,A.output+=I),_()!=="*"&&(C.output+=g,A.output+=g)),N(Q)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));C.output=He.escapeLast(C.output,"["),Re("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing",")"));C.output=He.escapeLast(C.output,"("),Re("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing","}"));C.output=He.escapeLast(C.output,"{"),Re("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${E}?`}),C.backtrack===!0){C.output="";for(let x of C.tokens)C.output+=x.output!=null?x.output:x.value,x.suffix&&(C.output+=x.suffix)}return C};xu.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(jn,r.maxLength):jn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Fp[t]||t;let s=He.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}=Gn.globChars(s),d=r.dot?f:l,D=r.dot?h:l,y=r.capture?"":"?:",w={negated:!1,prefix:""},B=r.bash===!0?".*?":E;r.capture&&(B=`(${B})`);let q=I=>I.noglobstar===!0?B:`(${y}(?:(?!${g}${I.dot?c:o}).)*?)`,v=I=>{switch(I){case"*":return`${d}${a}${B}`;case".*":return`${o}${a}${B}`;case"*.*":return`${d}${B}${o}${a}${B}`;case"*/*":return`${d}${B}${u}${a}${D}${B}`;case"**":return d+q(r);case"**/*":return`(?:${d}${q(r)}${u})?${D}${a}${B}`;case"**/*.*":return`(?:${d}${q(r)}${u})?${D}${B}${o}${a}${B}`;case"**/.*":return`(?:${d}${q(r)}${u})?${o}${a}${B}`;default:{let j=/^(.*?)\.(\w+)$/.exec(I);if(!j)return;let le=v(j[1]);return le?le+o+j[2]:void 0}}},$=He.removePrefix(t,w),L=v($);return L&&r.strictSlashes!==!0&&(L+=`${u}?`),L};xp.exports=xu});var Tp=m((wO,Rp)=>{"use strict";var kC=require("path"),MC=wp(),vu=vp(),Ru=zi(),qC=Wi(),HC=t=>t&&typeof t=="object"&&!Array.isArray(t),ue=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>ue(h,e,r));return h=>{for(let E of l){let g=E(h);if(g)return g}return!1}}let i=HC(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=Ru.isWindows(e),o=i?ue.compileRe(t,e):ue.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=ue(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:E,output:g}=ue.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};ue.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?Ru.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=ue.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};ue.matchBase=(t,e,r,i=Ru.isWindows(r))=>(e instanceof RegExp?e:ue.makeRe(e,r)).test(kC.basename(t));ue.isMatch=(t,e,r)=>ue(e,r)(t);ue.parse=(t,e)=>Array.isArray(t)?t.map(r=>ue.parse(r,e)):vu(t,{...e,fastpaths:!1});ue.scan=(t,e)=>MC(t,e);ue.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=ue.toRegex(u,e);return i===!0&&(a.state=t),a};ue.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=vu.fastpaths(t,e)),n.output||(n=vu(t,e)),ue.compileRe(n,e,r,i)};ue.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/$^/}};ue.constants=qC;Rp.exports=ue});var Bp=m((FO,Op)=>{"use strict";Op.exports=Tp()});var kp=m((xO,Np)=>{"use strict";var Lp=require("util"),Ip=hp(),ct=Bp(),Tu=zi(),Pp=t=>t===""||t==="./",ie=(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=ct(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};ie.match=ie;ie.matcher=(t,e)=>ct(t,e);ie.isMatch=(t,e,r)=>ct(e,r)(t);ie.any=ie.isMatch;ie.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(ie(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ie.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Lp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ie.contains(t,i,r));if(typeof e=="string"){if(Pp(t)||Pp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ie.isMatch(t,e,{...r,contains:!0})};ie.matchKeys=(t,e,r)=>{if(!Tu.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ie(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ie.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ct(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ie.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ct(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ie.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Lp.inspect(t)}"`);return[].concat(e).every(i=>ct(i,r)(t))};ie.capture=(t,e,r)=>{let i=Tu.isWindows(r),s=ct.makeRe(String(t),{...r,capture:!0}).exec(i?Tu.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ie.makeRe=(...t)=>ct.makeRe(...t);ie.scan=(...t)=>ct.scan(...t);ie.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Ip(String(i),e))r.push(ct.parse(n,e));return r};ie.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Ip(t,e)};ie.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ie.braces(t,{...e,expand:!0})};Np.exports=ie});var Wp=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.matchAny=k.convertPatternsToRe=k.makeRe=k.getPatternParts=k.expandBraceExpansion=k.expandPatternsWithBraceExpansion=k.isAffectDepthOfReadingPattern=k.endsWithSlashGlobStar=k.hasGlobStar=k.getBaseDirectory=k.isPatternRelatedToParentDirectory=k.getPatternsOutsideCurrentDirectory=k.getPatternsInsideCurrentDirectory=k.getPositivePatterns=k.getNegativePatterns=k.isPositivePattern=k.isNegativePattern=k.convertToNegativePattern=k.convertToPositivePattern=k.isDynamicPattern=k.isStaticPattern=void 0;var $C=require("path"),UC=Rh(),Ou=kp(),Mp="**",GC="\\",jC=/[*?]|^!/,WC=/\[[^[]*]/,zC=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YC=/[!*+?@]\([^(]*\)/,KC=/,|\.\./;function qp(t,e={}){return!Hp(t,e)}k.isStaticPattern=qp;function Hp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(GC)||jC.test(t)||WC.test(t)||zC.test(t)||e.extglob!==!1&&YC.test(t)||e.braceExpansion!==!1&&VC(t))}k.isDynamicPattern=Hp;function VC(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 KC.test(i)}function XC(t){return Wn(t)?t.slice(1):t}k.convertToPositivePattern=XC;function ZC(t){return"!"+t}k.convertToNegativePattern=ZC;function Wn(t){return t.startsWith("!")&&t[1]!=="("}k.isNegativePattern=Wn;function $p(t){return!Wn(t)}k.isPositivePattern=$p;function JC(t){return t.filter(Wn)}k.getNegativePatterns=JC;function QC(t){return t.filter($p)}k.getPositivePatterns=QC;function eb(t){return t.filter(e=>!Bu(e))}k.getPatternsInsideCurrentDirectory=eb;function tb(t){return t.filter(Bu)}k.getPatternsOutsideCurrentDirectory=tb;function Bu(t){return t.startsWith("..")||t.startsWith("./..")}k.isPatternRelatedToParentDirectory=Bu;function rb(t){return UC(t,{flipBackslashes:!1})}k.getBaseDirectory=rb;function ib(t){return t.includes(Mp)}k.hasGlobStar=ib;function Up(t){return t.endsWith("/"+Mp)}k.endsWithSlashGlobStar=Up;function nb(t){let e=$C.basename(t);return Up(t)||qp(e)}k.isAffectDepthOfReadingPattern=nb;function sb(t){return t.reduce((e,r)=>e.concat(Gp(r)),[])}k.expandPatternsWithBraceExpansion=sb;function Gp(t){return Ou.braces(t,{expand:!0,nodupes:!0})}k.expandBraceExpansion=Gp;function ob(t,e){let{parts:r}=Ou.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}k.getPatternParts=ob;function jp(t,e){return Ou.makeRe(t,e)}k.makeRe=jp;function ub(t,e){return t.map(r=>jp(r,e))}k.convertPatternsToRe=ub;function ab(t,e){return e.some(r=>r.test(t))}k.matchAny=ab});var Vp=m((RO,Kp)=>{"use strict";var cb=require("stream"),zp=cb.PassThrough,lb=Array.prototype.slice;Kp.exports=fb;function fb(){let t=[],e=lb.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=zp(i);function u(){for(let l=0,f=arguments.length;l<f;l++)t.push(Yp(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",D),h()}function D(y){o.emit("error",y)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",d),g.on("end",d),s&&g.on("error",D),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 Yp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Yp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(zp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Zp=m(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.merge=void 0;var hb=Vp();function pb(t){let e=hb(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Xp(t)),e.once("end",()=>Xp(t)),e}zn.merge=pb;function Xp(t){t.forEach(e=>e.emit("close"))}});var Jp=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.isEmpty=Kr.isString=void 0;function db(t){return typeof t=="string"}Kr.isString=db;function mb(t){return t===""}Kr.isEmpty=mb});var vt=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.string=Se.stream=Se.pattern=Se.path=Se.fs=Se.errno=Se.array=void 0;var gb=yh();Se.array=gb;var Eb=Ah();Se.errno=Eb;var Db=_h();Se.fs=Db;var yb=Sh();Se.path=yb;var Ab=Wp();Se.pattern=Ab;var _b=Zp();Se.stream=_b;var Sb=Jp();Se.string=Sb});var td=m(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.convertPatternGroupToTask=Ce.convertPatternGroupsToTasks=Ce.groupPatternsByBaseDirectory=Ce.getNegativePatternsAsPositive=Ce.getPositivePatterns=Ce.convertPatternsToTasks=Ce.generate=void 0;var Rt=vt();function Cb(t,e){let r=Qp(t),i=ed(t,e.ignore),n=r.filter(a=>Rt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Rt.pattern.isDynamicPattern(a,e)),o=Pu(n,i,!1),u=Pu(s,i,!0);return o.concat(u)}Ce.generate=Cb;function Pu(t,e,r){let i=[],n=Rt.pattern.getPatternsOutsideCurrentDirectory(t),s=Rt.pattern.getPatternsInsideCurrentDirectory(t),o=Lu(n),u=Lu(s);return i.push(...Iu(o,e,r)),"."in u?i.push(Nu(".",s,e,r)):i.push(...Iu(u,e,r)),i}Ce.convertPatternsToTasks=Pu;function Qp(t){return Rt.pattern.getPositivePatterns(t)}Ce.getPositivePatterns=Qp;function ed(t,e){return Rt.pattern.getNegativePatterns(t).concat(e).map(Rt.pattern.convertToPositivePattern)}Ce.getNegativePatternsAsPositive=ed;function Lu(t){let e={};return t.reduce((r,i)=>{let n=Rt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Ce.groupPatternsByBaseDirectory=Lu;function Iu(t,e,r){return Object.keys(t).map(i=>Nu(i,t[i],e,r))}Ce.convertPatternGroupsToTasks=Iu;function Nu(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Rt.pattern.convertToNegativePattern))}}Ce.convertPatternGroupToTask=Nu});var id=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.removeDuplicateSlashes=Vr.transform=void 0;var bb=/(?!^)\/{2,}/g;function wb(t){return t.map(e=>rd(e))}Vr.transform=wb;function rd(t){return t.replace(bb,"/")}Vr.removeDuplicateSlashes=rd});var sd=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.read=void 0;function Fb(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){nd(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ku(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){nd(r,s);return}ku(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ku(r,o)})})}Yn.read=Fb;function nd(t,e){t(e)}function ku(t,e){t(null,e)}});var od=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.read=void 0;function xb(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}}Kn.read=xb});var ud=m(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.createFileSystemAdapter=zt.FILE_SYSTEM_ADAPTER=void 0;var Vn=require("fs");zt.FILE_SYSTEM_ADAPTER={lstat:Vn.lstat,stat:Vn.stat,lstatSync:Vn.lstatSync,statSync:Vn.statSync};function vb(t){return t===void 0?zt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},zt.FILE_SYSTEM_ADAPTER),t)}zt.createFileSystemAdapter=vb});var ad=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Rb=ud(),Mu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Rb.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}};qu.default=Mu});var _r=m(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.statSync=Yt.stat=Yt.Settings=void 0;var cd=sd(),Tb=od(),Hu=ad();Yt.Settings=Hu.default;function Ob(t,e,r){if(typeof e=="function"){cd.read(t,$u(),e);return}cd.read(t,$u(e),r)}Yt.stat=Ob;function Bb(t,e){let r=$u(e);return Tb.read(t,r)}Yt.statSync=Bb;function $u(t={}){return t instanceof Hu.default?t:new Hu.default(t)}});var hd=m((HO,fd)=>{var ld;fd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(ld||(ld=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var dd=m(($O,pd)=>{pd.exports=Lb;var Pb=hd();function Lb(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?Pb(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 Uu=m(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Xn=process.versions.node.split(".");if(Xn[0]===void 0||Xn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var md=Number.parseInt(Xn[0],10),Ib=Number.parseInt(Xn[1],10),gd=10,Nb=10,kb=md>gd,Mb=md===gd&&Ib>=Nb;Zn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=kb||Mb});var Ed=m(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.createDirentFromStats=void 0;var Gu=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 qb(t,e){return new Gu(t,e)}Jn.createDirentFromStats=qb});var ju=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.fs=void 0;var Hb=Ed();Qn.fs=Hb});var Wu=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.joinPathSegments=void 0;function $b(t,e,r){return t.endsWith(r)?t+e:t+r+e}es.joinPathSegments=$b});var Cd=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.readdir=Kt.readdirWithFileTypes=Kt.read=void 0;var Ub=_r(),Dd=dd(),Gb=Uu(),yd=ju(),Ad=Wu();function jb(t,e,r){if(!e.stats&&Gb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){_d(t,e,r);return}Sd(t,e,r)}Kt.read=jb;function _d(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){ts(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:Ad.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){zu(r,s);return}let o=s.map(u=>Wb(u,e));Dd(o,(u,a)=>{if(u!==null){ts(r,u);return}zu(r,a)})})}Kt.readdirWithFileTypes=_d;function Wb(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=yd.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Sd(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ts(r,i);return}let s=n.map(o=>{let u=Ad.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{Ub.stat(u,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:yd.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),a(null,f)})}});Dd(s,(o,u)=>{if(o!==null){ts(r,o);return}zu(r,u)})})}Kt.readdir=Sd;function ts(t,e){t(e)}function zu(t,e){t(null,e)}});var vd=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.readdir=Vt.readdirWithFileTypes=Vt.read=void 0;var zb=_r(),Yb=Uu(),bd=ju(),wd=Wu();function Kb(t,e){return!e.stats&&Yb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Fd(t,e):xd(t,e)}Vt.read=Kb;function Fd(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:wd.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=bd.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Vt.readdirWithFileTypes=Fd;function xd(t,e){return e.fs.readdirSync(t).map(i=>{let n=wd.joinPathSegments(t,i,e.pathSegmentSeparator),s=zb.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:bd.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Vt.readdir=xd});var Rd=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.createFileSystemAdapter=Xt.FILE_SYSTEM_ADAPTER=void 0;var Xr=require("fs");Xt.FILE_SYSTEM_ADAPTER={lstat:Xr.lstat,stat:Xr.stat,lstatSync:Xr.lstatSync,statSync:Xr.statSync,readdir:Xr.readdir,readdirSync:Xr.readdirSync};function Vb(t){return t===void 0?Xt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Xt.FILE_SYSTEM_ADAPTER),t)}Xt.createFileSystemAdapter=Vb});var Td=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Xb=require("path"),Zb=_r(),Jb=Rd(),Yu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Jb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Xb.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Zb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ku.default=Yu});var rs=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.Settings=Zt.scandirSync=Zt.scandir=void 0;var Od=Cd(),Qb=vd(),Vu=Td();Zt.Settings=Vu.default;function e1(t,e,r){if(typeof e=="function"){Od.read(t,Xu(),e);return}Od.read(t,Xu(e),r)}Zt.scandir=e1;function t1(t,e){let r=Xu(e);return Qb.read(t,r)}Zt.scandirSync=t1;function Xu(t={}){return t instanceof Vu.default?t:new Vu.default(t)}});var Pd=m((ZO,Bd)=>{"use strict";function r1(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}}Bd.exports=r1});var Id=m((JO,Zu)=>{"use strict";var i1=Pd();function Ld(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=i1(n1),n=null,s=null,o=0,u=null,a={push:d,drain:Ke,saturated:Ke,pause:l,paused:!1,concurrency:r,running:c,resume:E,idle:g,length:f,getQueue:h,unshift:D,empty:Ke,kill:w,killAndDrain:B,error:q};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var v=n,$=0;v;)v=v.next,$++;return $}function h(){for(var v=n,$=[];v;)$.push(v.value),v=v.next;return $}function E(){if(a.paused){a.paused=!1;for(var v=0;v<a.concurrency;v++)o++,y()}}function g(){return o===0&&a.length()===0}function d(v,$){var L=i.get();L.context=t,L.release=y,L.value=v,L.callback=$||Ke,L.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=L,s=L):(n=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function D(v,$){var L=i.get();L.context=t,L.release=y,L.value=v,L.callback=$||Ke,o===a.concurrency||a.paused?n?(L.next=n,n=L):(n=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function y(v){v&&i.release(v);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 w(){n=null,s=null,a.drain=Ke}function B(){n=null,s=null,a.drain(),a.drain=Ke}function q(v){u=v}}function Ke(){}function n1(){this.value=null,this.callback=Ke,this.next=null,this.release=Ke,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=Ke,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function s1(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=Ld(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(Ke),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(Ke),f}function c(){var l=n.drain,f=new Promise(function(h){n.drain=function(){l(),h()}});return f}}Zu.exports=Ld;Zu.exports.promise=s1});var is=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.joinPathSegments=lt.replacePathSegmentSeparator=lt.isAppliedFilter=lt.isFatalError=void 0;function o1(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}lt.isFatalError=o1;function u1(t,e){return t===null||t(e)}lt.isAppliedFilter=u1;function a1(t,e){return t.split(/[/\\]/).join(e)}lt.replacePathSegmentSeparator=a1;function c1(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}lt.joinPathSegments=c1});var ea=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var l1=is(),Ju=class{constructor(e,r){this._root=e,this._settings=r,this._root=l1.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Qu.default=Ju});var ia=m(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});var f1=require("events"),h1=rs(),p1=Id(),ns=is(),d1=ea(),ta=class extends d1.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=h1.scandir,this._emitter=new f1.EventEmitter,this._queue=p1(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||!ns.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=ns.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ns.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ns.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ra.default=ta});var Nd=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var m1=ia(),na=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new m1.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{g1(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{E1(e,this._storage)}),this._reader.read()}};sa.default=na;function g1(t,e){t(e)}function E1(t,e){t(null,e)}});var kd=m(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var D1=require("stream"),y1=ia(),oa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new y1.default(this._root,this._settings),this._stream=new D1.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}};ua.default=oa});var Md=m(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});var A1=rs(),ss=is(),_1=ea(),aa=class extends _1.default{constructor(){super(...arguments),this._scandir=A1.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(ss.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=ss.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ss.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&ss.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};ca.default=aa});var qd=m(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var S1=Md(),la=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new S1.default(this._root,this._settings)}read(){return this._reader.read()}};fa.default=la});var Hd=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var C1=require("path"),b1=rs(),ha=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,C1.sep),this.fsScandirSettings=new b1.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}};pa.default=ha});var us=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.Settings=ft.walkStream=ft.walkSync=ft.walk=void 0;var $d=Nd(),w1=kd(),F1=qd(),da=Hd();ft.Settings=da.default;function x1(t,e,r){if(typeof e=="function"){new $d.default(t,os()).read(e);return}new $d.default(t,os(e)).read(r)}ft.walk=x1;function v1(t,e){let r=os(e);return new F1.default(t,r).read()}ft.walkSync=v1;function R1(t,e){let r=os(e);return new w1.default(t,r).read()}ft.walkStream=R1;function os(t={}){return t instanceof da.default?t:new da.default(t)}});var as=m(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var T1=require("path"),O1=_r(),Ud=vt(),ma=class{constructor(e){this._settings=e,this._fsStatSettings=new O1.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return T1.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Ud.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Ud.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ga.default=ma});var ya=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var B1=require("stream"),P1=_r(),L1=us(),I1=as(),Ea=class extends I1.default{constructor(){super(...arguments),this._walkStream=L1.walkStream,this._stat=P1.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new B1.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))})}};Da.default=Ea});var Gd=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var N1=us(),k1=as(),M1=ya(),Aa=class extends k1.default{constructor(){super(...arguments),this._walkAsync=N1.walk,this._readerStream=new M1.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))})}};_a.default=Aa});var jd=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Zr=vt(),Sa=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zr.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 Zr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Zr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Zr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Zr.array.splitWhen(e,r=>r.dynamic&&Zr.pattern.hasGlobStar(r.pattern))}};Ca.default=Sa});var Wd=m(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var q1=jd(),ba=class extends q1.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}};wa.default=ba});var zd=m(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var cs=vt(),H1=Wd(),Fa=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 H1.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(cs.pattern.isAffectDepthOfReadingPattern);return cs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=cs.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!cs.pattern.matchAny(e,r)}};xa.default=Fa});var Yd=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Sr=vt(),va=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Sr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Sr.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=Sr.path.makeAbsolute(this._settings.cwd,e);return Sr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Sr.path.removeLeadingDotSegment(e),s=Sr.pattern.matchAny(n,r);return!s&&i?Sr.pattern.matchAny(n+"/",r):s}};Ra.default=va});var Kd=m(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var $1=vt(),Ta=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return $1.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Oa.default=Ta});var Xd=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Vd=vt(),Ba=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Vd.path.makeAbsolute(this._settings.cwd,r),r=Vd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Pa.default=Ba});var ls=m(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var U1=require("path"),G1=zd(),j1=Yd(),W1=Kd(),z1=Xd(),La=class{constructor(e){this._settings=e,this.errorFilter=new W1.default(this._settings),this.entryFilter=new j1.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new G1.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new z1.default(this._settings)}_getRootDirectory(e){return U1.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}}};Ia.default=La});var Zd=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Y1=Gd(),K1=ls(),Na=class extends K1.default{constructor(){super(...arguments),this._reader=new Y1.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)}};ka.default=Na});var Jd=m(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var V1=require("stream"),X1=ya(),Z1=ls(),Ma=class extends Z1.default{constructor(){super(...arguments),this._reader=new X1.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new V1.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)}};qa.default=Ma});var Qd=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var J1=_r(),Q1=us(),ew=as(),Ha=class extends ew.default{constructor(){super(...arguments),this._walkSync=Q1.walkSync,this._statSync=J1.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)}};$a.default=Ha});var em=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var tw=Qd(),rw=ls(),Ua=class extends rw.default{constructor(){super(...arguments),this._reader=new tw.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)}};Ga.default=Ua});var tm=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Jr=require("fs"),iw=require("os"),nw=Math.max(iw.cpus().length,1);Qr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Jr.lstat,lstatSync:Jr.lstatSync,stat:Jr.stat,statSync:Jr.statSync,readdir:Jr.readdir,readdirSync:Jr.readdirSync};var ja=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,nw),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({},Qr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Qr.default=ja});var sm=m((CB,nm)=>{"use strict";var rm=td(),im=id(),sw=Zd(),ow=Jd(),uw=em(),Wa=tm(),Cr=vt();async function za(t,e){ei(t);let r=Ya(t,sw.default,e),i=await Promise.all(r);return Cr.array.flatten(i)}(function(t){function e(o,u){ei(o);let a=Ya(o,uw.default,u);return Cr.array.flatten(a)}t.sync=e;function r(o,u){ei(o);let a=Ya(o,ow.default,u);return Cr.stream.merge(a)}t.stream=r;function i(o,u){ei(o);let a=im.transform([].concat(o)),c=new Wa.default(u);return rm.generate(a,c)}t.generateTasks=i;function n(o,u){ei(o);let a=new Wa.default(u);return Cr.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return ei(o),Cr.path.escape(o)}t.escapePath=s})(za||(za={}));function Ya(t,e,r){let i=im.transform([].concat(t)),n=new Wa.default(r),s=rm.generate(i,n),o=new e(n);return s.map(o.read,o)}function ei(t){if(![].concat(t).every(i=>Cr.string.isString(i)&&!Cr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}nm.exports=za});var ym=m((vB,Dm)=>{Dm.exports=Em;Em.sync=yw;var mm=require("fs");function Dw(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 gm(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Dw(e,r)}function Em(t,e,r){mm.stat(t,function(i,n){r(i,i?!1:gm(n,t,e))})}function yw(t,e){return gm(mm.statSync(t),t,e)}});var bm=m((RB,Cm)=>{Cm.exports=_m;_m.sync=Aw;var Am=require("fs");function _m(t,e,r){Am.stat(t,function(i,n){r(i,i?!1:Sm(n,e))})}function Aw(t,e){return Sm(Am.statSync(t),e)}function Sm(t,e){return t.isFile()&&_w(t,e)}function _w(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 Fm=m((OB,wm)=>{var TB=require("fs"),fs;process.platform==="win32"||global.TESTING_WINDOWS?fs=ym():fs=bm();wm.exports=Za;Za.sync=Sw;function Za(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){Za(t,e||{},function(s,o){s?n(s):i(o)})})}fs(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function Sw(t,e){try{return fs.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Pm=m((BB,Bm)=>{var ri=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xm=require("path"),Cw=ri?";":":",vm=Fm(),Rm=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Tm=(t,e)=>{let r=e.colon||Cw,i=t.match(/\//)||ri&&t.match(/\\/)?[""]:[...ri?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ri?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ri?n.split(r):[""];return ri&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Om=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Tm(t,e),o=[],u=c=>new Promise((l,f)=>{if(c===i.length)return e.all&&o.length?l(o):f(Rm(t));let h=i[c],E=/^".*"$/.test(h)?h.slice(1,-1):h,g=xm.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];vm(c+g,{pathExt:s},(d,D)=>{if(!d&&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)},bw=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Tm(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=xm.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(vm.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 Rm(t)};Bm.exports=Om;Om.sync=bw});var Qa=m((PB,Ja)=>{"use strict";var Lm=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Ja.exports=Lm;Ja.exports.default=Lm});var Mm=m((LB,km)=>{"use strict";var Im=require("path"),ww=Pm(),Fw=Qa();function Nm(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=ww.sync(t.command,{path:r[Fw({env:r})],pathExt:e?Im.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Im.resolve(n?t.options.cwd:"",o)),o}function xw(t){return Nm(t)||Nm(t,!0)}km.exports=xw});var qm=m((IB,tc)=>{"use strict";var ec=/([()\][%!^"`<>&|;, *?])/g;function vw(t){return t=t.replace(ec,"^$1"),t}function Rw(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(ec,"^$1"),e&&(t=t.replace(ec,"^$1")),t}tc.exports.command=vw;tc.exports.argument=Rw});var $m=m((NB,Hm)=>{"use strict";Hm.exports=/^#!(.*)/});var Gm=m((kB,Um)=>{"use strict";var Tw=$m();Um.exports=(t="")=>{let e=t.match(Tw);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Wm=m((MB,jm)=>{"use strict";var rc=require("fs"),Ow=Gm();function Bw(t){let r=Buffer.alloc(150),i;try{i=rc.openSync(t,"r"),rc.readSync(i,r,0,150,0),rc.closeSync(i)}catch{}return Ow(r.toString())}jm.exports=Bw});var Vm=m((qB,Km)=>{"use strict";var Pw=require("path"),zm=Mm(),Ym=qm(),Lw=Wm(),Iw=process.platform==="win32",Nw=/\.(?:com|exe)$/i,kw=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Mw(t){t.file=zm(t);let e=t.file&&Lw(t.file);return e?(t.args.unshift(t.file),t.command=e,zm(t)):t.file}function qw(t){if(!Iw)return t;let e=Mw(t),r=!Nw.test(e);if(t.options.forceShell||r){let i=kw.test(e);t.command=Pw.normalize(t.command),t.command=Ym.command(t.command),t.args=t.args.map(s=>Ym.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 Hw(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:qw(i)}Km.exports=Hw});var Jm=m((HB,Zm)=>{"use strict";var ic=process.platform==="win32";function nc(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 $w(t,e){if(!ic)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Xm(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Xm(t,e){return ic&&t===1&&!e.file?nc(e.original,"spawn"):null}function Uw(t,e){return ic&&t===1&&!e.file?nc(e.original,"spawnSync"):null}Zm.exports={hookChildProcess:$w,verifyENOENT:Xm,verifyENOENTSync:Uw,notFoundError:nc}});var t0=m(($B,ii)=>{"use strict";var Qm=require("child_process"),sc=Vm(),oc=Jm();function e0(t,e,r){let i=sc(t,e,r),n=Qm.spawn(i.command,i.args,i.options);return oc.hookChildProcess(n,i),n}function Gw(t,e,r){let i=sc(t,e,r),n=Qm.spawnSync(i.command,i.args,i.options);return n.error=n.error||oc.verifyENOENTSync(n.status,i),n}ii.exports=e0;ii.exports.spawn=e0;ii.exports.sync=Gw;ii.exports._parse=sc;ii.exports._enoent=oc});var i0=m((UB,r0)=>{"use strict";r0.exports=t=>{let e=typeof t=="string"?`
|
1
|
+
"use strict";var gy=Object.create;var Cn=Object.defineProperty;var Ey=Object.getOwnPropertyDescriptor;var Dy=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,Ay=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nf=(t,e)=>{for(var r in e)Cn(t,r,{get:e[r],enumerable:!0})},sf=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Dy(e))!Ay.call(t,n)&&n!==r&&Cn(t,n,{get:()=>e[n],enumerable:!(i=Ey(e,n))||i.enumerable});return t};var K=(t,e,r)=>(r=t!=null?gy(yy(t)):{},sf(e||!t||!t.__esModule?Cn(r,"default",{value:t,enumerable:!0}):r,t)),_y=t=>sf(Cn({},"__esModule",{value:!0}),t);var of=m((yT,At)=>{function Io(t){return At.exports=Io=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},At.exports.__esModule=!0,At.exports.default=At.exports,Io(t)}At.exports=Io,At.exports.__esModule=!0,At.exports.default=At.exports});var cf=m((AT,_t)=>{var uf=of().default;function af(){"use strict";_t.exports=af=function(){return e},_t.exports.__esModule=!0,_t.exports.default=_t.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,_){p[b]=_.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(p,b,_){return Object.defineProperty(p,b,{value:_,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(_,T,P){return _[T]=P}}function l(p,b,_,T){var P=b&&b.prototype instanceof y?b:y,R=Object.create(P.prototype),Z=new We(T||[]);return n(R,"_invoke",{value:le(p,_,Z)}),R}function f(p,b,_){try{return{type:"normal",arg:p.call(b,_)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var h="suspendedStart",E="suspendedYield",g="executing",d="completed",D={};function y(){}function w(){}function B(){}var q={};c(q,o,function(){return this});var v=Object.getPrototypeOf,$=v&&v(v(A([])));$&&$!==r&&i.call($,o)&&(q=$);var L=B.prototype=y.prototype=Object.create(q);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(_){return this._invoke(b,_)})})}function j(p,b){function _(P,R,Z,ye){var fe=f(p[P],p,R);if(fe.type!=="throw"){var Re=fe.arg,N=Re.value;return N&&uf(N)=="object"&&i.call(N,"__await")?b.resolve(N.__await).then(function(ze){_("next",ze,Z,ye)},function(ze){_("throw",ze,Z,ye)}):b.resolve(N).then(function(ze){Re.value=ze,Z(Re)},function(ze){return _("throw",ze,Z,ye)})}ye(fe.arg)}var T;n(this,"_invoke",{value:function(R,Z){function ye(){return new b(function(fe,Re){_(R,Z,fe,Re)})}return T=T?T.then(ye,ye):ye()}})}function le(p,b,_){var T=h;return function(P,R){if(T===g)throw new Error("Generator is already running");if(T===d){if(P==="throw")throw R;return{value:t,done:!0}}for(_.method=P,_.arg=R;;){var Z=_.delegate;if(Z){var ye=C(Z,_);if(ye){if(ye===D)continue;return ye}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(T===h)throw T=d,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);T=g;var fe=f(p,b,_);if(fe.type==="normal"){if(T=_.done?d:E,fe.arg===D)continue;return{value:fe.arg,done:_.done}}fe.type==="throw"&&(T=d,_.method="throw",_.arg=fe.arg)}}}function C(p,b){var _=b.method,T=p.iterator[_];if(T===t)return b.delegate=null,_==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,C(p,b),b.method==="throw")||_!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+_+"' method")),D;var P=f(T,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,D;var R=P.arg;return R?R.done?(b[p.resultName]=R.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,D):R:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,D)}function X(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function Y(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function We(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(X,this),this.reset(!0)}function A(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var _=-1,T=function P(){for(;++_<p.length;)if(i.call(p,_))return P.value=p[_],P.done=!1,P;return P.value=t,P.done=!0,P};return T.next=T}}throw new TypeError(uf(p)+" is not iterable")}return w.prototype=B,n(L,"constructor",{value:B,configurable:!0}),n(B,"constructor",{value:w,configurable:!0}),w.displayName=c(B,a,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===w||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,B):(p.__proto__=B,c(p,a,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(j.prototype),c(j.prototype,u,function(){return this}),e.AsyncIterator=j,e.async=function(p,b,_,T,P){P===void 0&&(P=Promise);var R=new j(l(p,b,_,T),P);return e.isGeneratorFunction(b)?R:R.next().then(function(Z){return Z.done?Z.value:R.next()})},I(L),c(L,a,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),_=[];for(var T in b)_.push(T);return _.reverse(),function P(){for(;_.length;){var R=_.pop();if(R in b)return P.value=R,P.done=!1,P}return P.done=!0,P}},e.values=A,We.prototype={constructor:We,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Y),!b)for(var _ in this)_.charAt(0)==="t"&&i.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var _=this;function T(Re,N){return Z.type="throw",Z.arg=b,_.next=Re,N&&(_.method="next",_.arg=t),!!N}for(var P=this.tryEntries.length-1;P>=0;--P){var R=this.tryEntries[P],Z=R.completion;if(R.tryLoc==="root")return T("end");if(R.tryLoc<=this.prev){var ye=i.call(R,"catchLoc"),fe=i.call(R,"finallyLoc");if(ye&&fe){if(this.prev<R.catchLoc)return T(R.catchLoc,!0);if(this.prev<R.finallyLoc)return T(R.finallyLoc)}else if(ye){if(this.prev<R.catchLoc)return T(R.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return T(R.finallyLoc)}}}},abrupt:function(b,_){for(var T=this.tryEntries.length-1;T>=0;--T){var P=this.tryEntries[T];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var R=P;break}}R&&(b==="break"||b==="continue")&&R.tryLoc<=_&&_<=R.finallyLoc&&(R=null);var Z=R?R.completion:{};return Z.type=b,Z.arg=_,R?(this.method="next",this.next=R.finallyLoc,D):this.complete(Z)},complete:function(b,_){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&_&&(this.next=_),D},finish:function(b){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.finallyLoc===b)return this.complete(T.completion,T.afterLoc),Y(T),D}},catch:function(b){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.tryLoc===b){var P=T.completion;if(P.type==="throw"){var R=P.arg;Y(T)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(b,_,T){return this.delegate={iterator:A(b),resultName:_,nextLoc:T},this.method==="next"&&(this.arg=t),D}},e}_t.exports=af,_t.exports.__esModule=!0,_t.exports.default=_t.exports});var ff=m((_T,lf)=>{var bn=cf()();lf.exports=bn;try{regeneratorRuntime=bn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=bn:Function("r","regeneratorRuntime = r")(bn)}});var yh=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.splitWhen=Wr.flatten=void 0;function oS(t){return t.reduce((e,r)=>[].concat(e,r),[])}Wr.flatten=oS;function uS(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Wr.splitWhen=uS});var Ah=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.isEnoentCodeError=void 0;function aS(t){return t.code==="ENOENT"}kn.isEnoentCodeError=aS});var _h=m(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.createDirentFromStats=void 0;var pu=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 cS(t,e){return new pu(t,e)}Mn.createDirentFromStats=cS});var Sh=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.removeLeadingDotSegment=ut.escape=ut.makeAbsolute=ut.unixify=void 0;var lS=require("path"),fS=2,hS=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function pS(t){return t.replace(/\\/g,"/")}ut.unixify=pS;function dS(t,e){return lS.resolve(t,e)}ut.makeAbsolute=dS;function mS(t){return t.replace(hS,"\\$2")}ut.escape=mS;function gS(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(fS)}return t}ut.removeLeadingDotSegment=gS});var bh=m((aO,Ch)=>{Ch.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 xh=m((cO,Fh)=>{var ES=bh(),wh={"{":"}","(":")","[":"]"},DS=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=wh[u];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},yS=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=wh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Fh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ES(e))return!0;var i=DS;return r&&r.strict===!1&&(i=yS),i(e)}});var Rh=m((lO,vh)=>{"use strict";var AS=xh(),_S=require("path").posix.dirname,SS=require("os").platform()==="win32",du="/",CS=/\\/g,bS=/[\{\[].*[\}\]]$/,wS=/(^|[^\\])([\{\[]|\([^\)]+$)/,FS=/\\([\!\*\?\|\[\]\(\)\{\}])/g;vh.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&SS&&e.indexOf(du)<0&&(e=e.replace(CS,du)),bS.test(e)&&(e+=du),e+="a";do e=_S(e);while(AS(e)||wS.test(e));return e.replace(FS,"$1")}});var qn=m(Ye=>{"use strict";Ye.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ye.find=(t,e)=>t.nodes.find(r=>r.type===e);Ye.exceedsLimit=(t,e,r=1,i)=>i===!1||!Ye.isInteger(t)||!Ye.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Ye.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)};Ye.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Ye.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;Ye.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ye.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Ye.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 Hn=m((hO,Oh)=>{"use strict";var Th=qn();Oh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Th.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&Th.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 Ph=m((pO,Bh)=>{"use strict";Bh.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Uh=m((dO,$h)=>{"use strict";var Lh=Ph(),yr=(t,e,r)=>{if(Lh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Lh(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(yr.cache.hasOwnProperty(a))return yr.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=Hh(t)||Hh(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=Ih(d,Math.abs(c),h,i),c=h.a=0}return l>=0&&(E=Ih(c,l,h,i)),h.negatives=g,h.positives=E,h.result=xS(g,E,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&E.length+g.length>1&&(h.result=`(?:${h.result})`),yr.cache[a]=h,h.result};function xS(t,e,r){let i=mu(t,e,"-",!1,r)||[],n=mu(e,t,"",!1,r)||[],s=mu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function vS(t,e){let r=1,i=1,n=kh(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=kh(t,r);for(n=Mh(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Mh(e+1,i)-1;return s=[...s],s.sort(OS),s}function RS(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=TS(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+=BS(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ih(t,e,r,i){let n=vS(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let c=n[a],l=RS(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+qh(u.count),o=c+1;continue}r.isPadded&&(f=PS(c,r,i)),l.string=f+l.pattern+qh(l.count),s.push(l),o=c+1,u=l}return s}function mu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Nh(e,"string",u)&&s.push(r+u),i&&Nh(e,"string",u)&&s.push(r+u)}return s}function TS(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function OS(t,e){return t>e?1:e>t?-1:0}function Nh(t,e,r){return t.some(i=>i[e]===r)}function kh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Mh(t,e){return t-t%Math.pow(10,e)}function qh(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function BS(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Hh(t){return/^-?(0+)\d/.test(t)}function PS(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}}`}}yr.cache={};yr.clearCache=()=>yr.cache={};$h.exports=yr});var Du=m((mO,Xh)=>{"use strict";var LS=require("util"),Wh=Uh(),Gh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),IS=t=>e=>t===!0?Number(e):String(e),gu=t=>typeof t=="number"||typeof t=="string"&&t!=="",ji=t=>Number.isInteger(+t),Eu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},NS=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,kS=(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},jh=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},MS=(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},zh=(t,e,r,i)=>{if(r)return Wh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Yh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Wh(t,e,r)},Kh=(...t)=>new RangeError("Invalid range arguments: "+LS.inspect(...t)),Vh=(t,e,r)=>{if(r.strictRanges===!0)throw Kh([t,e]);return[]},qS=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},HS=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Kh([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=Eu(u)||Eu(a)||Eu(c),f=l?Math.max(u.length,a.length,c.length):0,h=l===!1&&NS(t,e,i)===!1,E=i.transform||IS(h);if(i.toRegex&&r===1)return zh(jh(t,f),jh(e,f),!0,i);let g={negatives:[],positives:[]},d=w=>g[w<0?"negatives":"positives"].push(Math.abs(w)),D=[],y=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?d(n):D.push(kS(E(n,y),f,h)),n=o?n-r:n+r,y++;return i.toRegex===!0?r>1?MS(g,i):Yh(D,null,{wrap:!1,...i}):D},$S=(t,e,r=1,i={})=>{if(!ji(t)&&t.length>1||!ji(e)&&e.length>1)return Vh(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 zh(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?Yh(l,null,{wrap:!1,options:i}):l},$n=(t,e,r,i={})=>{if(e==null&&gu(t))return[t];if(!gu(t)||!gu(e))return Vh(t,e,i);if(typeof r=="function")return $n(t,e,1,{transform:r});if(Gh(r))return $n(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,ji(r)?ji(t)&&ji(e)?HS(t,e,r,n):$S(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Gh(r)?qS(r,n):$n(t,e,1,r)};Xh.exports=$n});var Jh=m((gO,Qh)=>{"use strict";var US=Du(),Zh=qn(),GS=(t,e={})=>{let r=(i,n={})=>{let s=Zh.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=Zh.reduce(i.nodes),f=US(...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)};Qh.exports=GS});var rp=m((EO,tp)=>{"use strict";var jS=Du(),ep=Hn(),zr=qn(),Ar=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ar(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ar(n,s,r):n+s);return zr.flatten(i)},WS=(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(Ar(u.pop(),ep(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Ar(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=zr.reduce(n.nodes);if(zr.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=jS(...f,e);h.length===0&&(h=ep(n,e)),u.push(Ar(u.pop(),h)),n.nodes=[];return}let a=zr.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(Ar(u.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(Ar(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return zr.flatten(i(t))};tp.exports=WS});var np=m((DO,ip)=>{"use strict";ip.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 cp=m((yO,ap)=>{"use strict";var zS=Hn(),{MAX_LENGTH:sp,CHAR_BACKSLASH:yu,CHAR_BACKTICK:YS,CHAR_COMMA:KS,CHAR_DOT:VS,CHAR_LEFT_PARENTHESES:XS,CHAR_RIGHT_PARENTHESES:ZS,CHAR_LEFT_CURLY_BRACE:QS,CHAR_RIGHT_CURLY_BRACE:JS,CHAR_LEFT_SQUARE_BRACKET:op,CHAR_RIGHT_SQUARE_BRACKET:up,CHAR_DOUBLE_QUOTE:eC,CHAR_SINGLE_QUOTE:tC,CHAR_NO_BREAK_SPACE:rC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:iC}=np(),nC=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(sp,r.maxLength):sp;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=D=>{if(D.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&D.type==="text"){u.value+=D.value;return}return o.nodes.push(D),D.parent=o,D.prev=u,u=D,D};for(d({type:"bos"});l<c;)if(o=s[s.length-1],h=g(),!(h===iC||h===rC)){if(h===yu){d({type:"text",value:(e.keepEscaping?h:"")+g()});continue}if(h===up){d({type:"text",value:"\\"+h});continue}if(h===op){a++;let D=!0,y;for(;l<c&&(y=g());){if(h+=y,y===op){a++;continue}if(y===yu){h+=g();continue}if(y===up&&(a--,a===0))break}d({type:"text",value:h});continue}if(h===XS){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===ZS){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===eC||h===tC||h===YS){let D=h,y;for(e.keepQuotes!==!0&&(h="");l<c&&(y=g());){if(y===yu){h+=y+g();continue}if(y===D){e.keepQuotes===!0&&(h+=y);break}h+=y}d({type:"text",value:h});continue}if(h===QS){f++;let y={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(y),s.push(o),d({type:"open",value:h});continue}if(h===JS){if(o.type!=="brace"){d({type:"text",value:h});continue}let D="close";o=s.pop(),o.close=!0,d({type:D,value:h}),f--,o=s[s.length-1];continue}if(h===KS&&f>0){if(o.ranges>0){o.ranges=0;let D=o.nodes.shift();o.nodes=[D,{type:"text",value:zS(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===VS&&f>0&&o.commas===0){let D=o.nodes;if(f===0||D.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"){D.pop();let y=D[D.length-1];y.value+=u.value+h,u=y,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(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let D=s[s.length-1],y=D.nodes.indexOf(o);D.nodes.splice(y,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};ap.exports=nC});var hp=m((AO,fp)=>{"use strict";var lp=Hn(),sC=Jh(),oC=rp(),uC=cp(),qe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=qe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(qe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};qe.parse=(t,e={})=>uC(t,e);qe.stringify=(t,e={})=>lp(typeof t=="string"?qe.parse(t,e):t,e);qe.compile=(t,e={})=>(typeof t=="string"&&(t=qe.parse(t,e)),sC(t,e));qe.expand=(t,e={})=>{typeof t=="string"&&(t=qe.parse(t,e));let r=oC(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};qe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?qe.compile(t,e):qe.expand(t,e);fp.exports=qe});var Wi=m((_O,Ep)=>{"use strict";var aC=require("path"),at="\\\\/",pp=`[^${at}]`,xt="\\.",cC="\\+",lC="\\?",Un="\\/",fC="(?=.)",dp="[^/]",Au=`(?:${Un}|$)`,mp=`(?:^|${Un})`,_u=`${xt}{1,2}${Au}`,hC=`(?!${xt})`,pC=`(?!${mp}${_u})`,dC=`(?!${xt}{0,1}${Au})`,mC=`(?!${_u})`,gC=`[^.${Un}]`,EC=`${dp}*?`,gp={DOT_LITERAL:xt,PLUS_LITERAL:cC,QMARK_LITERAL:lC,SLASH_LITERAL:Un,ONE_CHAR:fC,QMARK:dp,END_ANCHOR:Au,DOTS_SLASH:_u,NO_DOT:hC,NO_DOTS:pC,NO_DOT_SLASH:dC,NO_DOTS_SLASH:mC,QMARK_NO_DOT:gC,STAR:EC,START_ANCHOR:mp},DC={...gp,SLASH_LITERAL:`[${at}]`,QMARK:pp,STAR:`${pp}*?`,DOTS_SLASH:`${xt}{1,2}(?:[${at}]|$)`,NO_DOT:`(?!${xt})`,NO_DOTS:`(?!(?:^|[${at}])${xt}{1,2}(?:[${at}]|$))`,NO_DOT_SLASH:`(?!${xt}{0,1}(?:[${at}]|$))`,NO_DOTS_SLASH:`(?!${xt}{1,2}(?:[${at}]|$))`,QMARK_NO_DOT:`[^.${at}]`,START_ANCHOR:`(?:^|[${at}])`,END_ANCHOR:`(?:[${at}]|$)`},yC={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"};Ep.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:yC,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:aC.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?DC:gp}}});var zi=m(Le=>{"use strict";var AC=require("path"),_C=process.platform==="win32",{REGEX_BACKSLASH:SC,REGEX_REMOVE_BACKSLASH:CC,REGEX_SPECIAL_CHARS:bC,REGEX_SPECIAL_CHARS_GLOBAL:wC}=Wi();Le.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Le.hasRegexChars=t=>bC.test(t);Le.isRegexChar=t=>t.length===1&&Le.hasRegexChars(t);Le.escapeRegex=t=>t.replace(wC,"\\$1");Le.toPosixSlashes=t=>t.replace(SC,"/");Le.removeBackslashes=t=>t.replace(CC,e=>e==="\\"?"":e);Le.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Le.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:_C===!0||AC.sep==="\\";Le.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Le.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Le.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Le.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var wp=m((CO,bp)=>{"use strict";var Dp=zi(),{CHAR_ASTERISK:Su,CHAR_AT:FC,CHAR_BACKWARD_SLASH:Yi,CHAR_COMMA:xC,CHAR_DOT:Cu,CHAR_EXCLAMATION_MARK:bu,CHAR_FORWARD_SLASH:Cp,CHAR_LEFT_CURLY_BRACE:wu,CHAR_LEFT_PARENTHESES:Fu,CHAR_LEFT_SQUARE_BRACKET:vC,CHAR_PLUS:RC,CHAR_QUESTION_MARK:yp,CHAR_RIGHT_CURLY_BRACE:TC,CHAR_RIGHT_PARENTHESES:Ap,CHAR_RIGHT_SQUARE_BRACKET:OC}=Wi(),_p=t=>t===Cp||t===Yi,Sp=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},BC=(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,D=!1,y=!1,w=!1,B=!1,q=!1,v=!1,$=0,L,I,j={value:"",depth:0,isGlob:!1},le=()=>c>=i,C=()=>a.charCodeAt(c+1),X=()=>(L=I,a.charCodeAt(++c));for(;c<i;){I=X();let b;if(I===Yi){w=j.backslashes=!0,I=X(),I===wu&&(y=!0);continue}if(y===!0||I===wu){for($++;le()!==!0&&(I=X());){if(I===Yi){w=j.backslashes=!0,X();continue}if(I===wu){$++;continue}if(y!==!0&&I===Cu&&(I=X())===Cu){if(h=j.isBrace=!0,g=j.isGlob=!0,v=!0,n===!0)continue;break}if(y!==!0&&I===xC){if(h=j.isBrace=!0,g=j.isGlob=!0,v=!0,n===!0)continue;break}if(I===TC&&($--,$===0)){y=!1,h=j.isBrace=!0,v=!0;break}}if(n===!0)continue;break}if(I===Cp){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},v===!0)continue;if(L===Cu&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(I===RC||I===FC||I===Su||I===yp||I===bu)===!0&&C()===Fu){if(g=j.isGlob=!0,d=j.isExtglob=!0,v=!0,I===bu&&c===l&&(q=!0),n===!0){for(;le()!==!0&&(I=X());){if(I===Yi){w=j.backslashes=!0,I=X();continue}if(I===Ap){g=j.isGlob=!0,v=!0;break}}continue}break}if(I===Su){if(L===Su&&(D=j.isGlobstar=!0),g=j.isGlob=!0,v=!0,n===!0)continue;break}if(I===yp){if(g=j.isGlob=!0,v=!0,n===!0)continue;break}if(I===vC){for(;le()!==!0&&(b=X());){if(b===Yi){w=j.backslashes=!0,X();continue}if(b===OC){E=j.isBracket=!0,g=j.isGlob=!0,v=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===bu&&c===l){B=j.negated=!0,l++;continue}if(r.noparen!==!0&&I===Fu){if(g=j.isGlob=!0,n===!0){for(;le()!==!0&&(I=X());){if(I===Fu){w=j.backslashes=!0,I=X();continue}if(I===Ap){v=!0;break}}continue}break}if(g===!0){if(v=!0,n===!0)continue;break}}r.noext===!0&&(d=!1,g=!1);let Y=a,We="",A="";l>0&&(We=a.slice(0,l),a=a.slice(l),f-=l),Y&&g===!0&&f>0?(Y=a.slice(0,f),A=a.slice(f)):g===!0?(Y="",A=a):Y=a,Y&&Y!==""&&Y!=="/"&&Y!==a&&_p(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),r.unescape===!0&&(A&&(A=Dp.removeBackslashes(A)),Y&&w===!0&&(Y=Dp.removeBackslashes(Y)));let p={prefix:We,input:t,start:l,base:Y,glob:A,isBrace:h,isBracket:E,isGlob:g,isExtglob:d,isGlobstar:D,negated:B,negatedExtglob:q};if(r.tokens===!0&&(p.maxDepth=0,_p(I)||o.push(j),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let _=0;_<s.length;_++){let T=b?b+1:l,P=s[_],R=t.slice(T,P);r.tokens&&(_===0&&l!==0?(o[_].isPrefix=!0,o[_].value=We):o[_].value=R,Sp(o[_]),p.maxDepth+=o[_].depth),(_!==0||R!=="")&&u.push(R),b=P}if(b&&b+1<t.length){let _=t.slice(b+1);u.push(_),r.tokens&&(o[o.length-1].value=_,Sp(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=u}return p};bp.exports=BC});var vp=m((bO,xp)=>{"use strict";var Gn=Wi(),He=zi(),{MAX_LENGTH:jn,POSIX_REGEX_SOURCE:PC,REGEX_NON_SPECIAL_CHARS:LC,REGEX_SPECIAL_CHARS_BACKREF:IC,REPLACEMENTS:Fp}=Gn,NC=(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=>He.escapeRegex(n)).join("..")}return r},Yr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,xu=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Fp[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(jn,r.maxLength):jn,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=He.isWindows(e),c=Gn.globChars(a),l=Gn.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:d,NO_DOT:D,NO_DOT_SLASH:y,NO_DOTS_SLASH:w,QMARK:B,QMARK_NO_DOT:q,STAR:v,START_ANCHOR:$}=c,L=x=>`(${u}(?:(?!${$}${x.dot?d:f}).)*?)`,I=r.dot?"":D,j=r.dot?B:q,le=r.bash===!0?L(r):v;r.capture&&(le=`(${le})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={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=He.removePrefix(t,C),n=t.length;let X=[],Y=[],We=[],A=s,p,b=()=>C.index===n-1,_=C.peek=(x=1)=>t[C.index+x],T=C.advance=()=>t[++C.index]||"",P=()=>t.slice(C.index+1),R=(x="",J=0)=>{C.consumed+=x,C.index+=J},Z=x=>{C.output+=x.output!=null?x.output:x.value,R(x.value)},ye=()=>{let x=1;for(;_()==="!"&&(_(2)!=="("||_(3)==="?");)T(),C.start++,x++;return x%2===0?!1:(C.negated=!0,C.start++,!0)},fe=x=>{C[x]++,We.push(x)},Re=x=>{C[x]--,We.pop()},N=x=>{if(A.type==="globstar"){let J=C.braces>0&&(x.type==="comma"||x.type==="brace"),F=x.extglob===!0||X.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!J&&!F&&(C.output=C.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=le,C.output+=A.output)}if(X.length&&x.type!=="paren"&&(X[X.length-1].inner+=x.value),(x.value||x.output)&&Z(x),A&&A.type==="text"&&x.type==="text"){A.value+=x.value,A.output=(A.output||"")+x.value;return}x.prev=A,o.push(x),A=x},ze=(x,J)=>{let F={...l[J],conditions:1,inner:""};F.prev=A,F.parens=C.parens,F.output=C.output;let U=(r.capture?"(":"")+F.open;fe("parens"),N({type:x,value:J,output:C.output?"":g}),N({type:"paren",extglob:!0,value:T(),output:U}),X.push(F)},my=x=>{let J=x.close+(r.capture?")":""),F;if(x.type==="negate"){let U=le;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(U=L(r)),(U!==le||b()||/^\)+$/.test(P()))&&(J=x.close=`)$))${U}`),x.inner.includes("*")&&(F=P())&&/^\.[^\\/.]+$/.test(F)){let se=xu(F,{...e,fastpaths:!1}).output;J=x.close=`)${se})${U})`}x.prev.type==="bos"&&(C.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:p,output:J}),Re("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let x=!1,J=t.replace(IC,(F,U,se,Te,he,Lo)=>Te==="\\"?(x=!0,F):Te==="?"?U?U+Te+(he?B.repeat(he.length):""):Lo===0?j+(he?B.repeat(he.length):""):B.repeat(se.length):Te==="."?f.repeat(se.length):Te==="*"?U?U+Te+(he?le:""):le:U?F:`\\${F}`);return x===!0&&(r.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),J===t&&r.contains===!0?(C.output=t,C):(C.output=He.wrapOutput(J,C,e),C)}for(;!b();){if(p=T(),p==="\0")continue;if(p==="\\"){let F=_();if(F==="/"&&r.bash!==!0||F==="."||F===";")continue;if(!F){p+="\\",N({type:"text",value:p});continue}let U=/^\\+/.exec(P()),se=0;if(U&&U[0].length>2&&(se=U[0].length,C.index+=se,se%2!==0&&(p+="\\")),r.unescape===!0?p=T():p+=T(),C.brackets===0){N({type:"text",value:p});continue}}if(C.brackets>0&&(p!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&p===":"){let F=A.value.slice(1);if(F.includes("[")&&(A.posix=!0,F.includes(":"))){let U=A.value.lastIndexOf("["),se=A.value.slice(0,U),Te=A.value.slice(U+2),he=PC[Te];if(he){A.value=se+he,C.backtrack=!0,T(),!s.output&&o.indexOf(A)===1&&(s.output=g);continue}}}(p==="["&&_()!==":"||p==="-"&&_()==="]")&&(p=`\\${p}`),p==="]"&&(A.value==="["||A.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&A.value==="["&&(p="^"),A.value+=p,Z({value:p});continue}if(C.quotes===1&&p!=='"'){p=He.escapeRegex(p),A.value+=p,Z({value:p});continue}if(p==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&N({type:"text",value:p});continue}if(p==="("){fe("parens"),N({type:"paren",value:p});continue}if(p===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Yr("opening","("));let F=X[X.length-1];if(F&&C.parens===F.parens+1){my(X.pop());continue}N({type:"paren",value:p,output:C.parens?")":"\\)"}),Re("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));p=`\\${p}`}else fe("brackets");N({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){N({type:"text",value:p,output:`\\${p}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Yr("opening","["));N({type:"text",value:p,output:`\\${p}`});continue}Re("brackets");let F=A.value.slice(1);if(A.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(p=`/${p}`),A.value+=p,Z({value:p}),r.literalBrackets===!1||He.hasRegexChars(F))continue;let U=He.escapeRegex(A.value);if(C.output=C.output.slice(0,-A.value.length),r.literalBrackets===!0){C.output+=U,A.value=U;continue}A.value=`(${u}${U}|${A.value})`,C.output+=A.value;continue}if(p==="{"&&r.nobrace!==!0){fe("braces");let F={type:"brace",value:p,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};Y.push(F),N(F);continue}if(p==="}"){let F=Y[Y.length-1];if(r.nobrace===!0||!F){N({type:"text",value:p,output:p});continue}let U=")";if(F.dots===!0){let se=o.slice(),Te=[];for(let he=se.length-1;he>=0&&(o.pop(),se[he].type!=="brace");he--)se[he].type!=="dots"&&Te.unshift(se[he].value);U=NC(Te,r),C.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let se=C.output.slice(0,F.outputIndex),Te=C.tokens.slice(F.tokensIndex);F.value=F.output="\\{",p=U="\\}",C.output=se;for(let he of Te)C.output+=he.output||he.value}N({type:"brace",value:p,output:U}),Re("braces"),Y.pop();continue}if(p==="|"){X.length>0&&X[X.length-1].conditions++,N({type:"text",value:p});continue}if(p===","){let F=p,U=Y[Y.length-1];U&&We[We.length-1]==="braces"&&(U.comma=!0,F="|"),N({type:"comma",value:p,output:F});continue}if(p==="/"){if(A.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),A=s;continue}N({type:"slash",value:p,output:E});continue}if(p==="."){if(C.braces>0&&A.type==="dot"){A.value==="."&&(A.output=f);let F=Y[Y.length-1];A.type="dots",A.output+=p,A.value+=p,F.dots=!0;continue}if(C.braces+C.parens===0&&A.type!=="bos"&&A.type!=="slash"){N({type:"text",value:p,output:f});continue}N({type:"dot",value:p,output:f});continue}if(p==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&_()==="("&&_(2)!=="?"){ze("qmark",p);continue}if(A&&A.type==="paren"){let U=_(),se=p;if(U==="<"&&!He.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(U)||U==="<"&&!/<([!=]|\w+>)/.test(P()))&&(se=`\\${p}`),N({type:"text",value:p,output:se});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){N({type:"qmark",value:p,output:q});continue}N({type:"qmark",value:p,output:B});continue}if(p==="!"){if(r.noextglob!==!0&&_()==="("&&(_(2)!=="?"||!/[!=<:]/.test(_(3)))){ze("negate",p);continue}if(r.nonegate!==!0&&C.index===0){ye();continue}}if(p==="+"){if(r.noextglob!==!0&&_()==="("&&_(2)!=="?"){ze("plus",p);continue}if(A&&A.value==="("||r.regex===!1){N({type:"plus",value:p,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||C.parens>0){N({type:"plus",value:p});continue}N({type:"plus",value:h});continue}if(p==="@"){if(r.noextglob!==!0&&_()==="("&&_(2)!=="?"){N({type:"at",extglob:!0,value:p,output:""});continue}N({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let F=LC.exec(P());F&&(p+=F[0],C.index+=F[0].length),N({type:"text",value:p});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=p,A.output=le,C.backtrack=!0,C.globstar=!0,R(p);continue}let x=P();if(r.noextglob!==!0&&/^\([^?]/.test(x)){ze("star",p);continue}if(A.type==="star"){if(r.noglobstar===!0){R(p);continue}let F=A.prev,U=F.prev,se=F.type==="slash"||F.type==="bos",Te=U&&(U.type==="star"||U.type==="globstar");if(r.bash===!0&&(!se||x[0]&&x[0]!=="/")){N({type:"star",value:p,output:""});continue}let he=C.braces>0&&(F.type==="comma"||F.type==="brace"),Lo=X.length&&(F.type==="pipe"||F.type==="paren");if(!se&&F.type!=="paren"&&!he&&!Lo){N({type:"star",value:p,output:""});continue}for(;x.slice(0,3)==="/**";){let Sn=t[C.index+4];if(Sn&&Sn!=="/")break;x=x.slice(3),R("/**",3)}if(F.type==="bos"&&b()){A.type="globstar",A.value+=p,A.output=L(r),C.output=A.output,C.globstar=!0,R(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!Te&&b()){C.output=C.output.slice(0,-(F.output+A.output).length),F.output=`(?:${F.output}`,A.type="globstar",A.output=L(r)+(r.strictSlashes?")":"|$)"),A.value+=p,C.globstar=!0,C.output+=F.output+A.output,R(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&x[0]==="/"){let Sn=x[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(F.output+A.output).length),F.output=`(?:${F.output}`,A.type="globstar",A.output=`${L(r)}${E}|${E}${Sn})`,A.value+=p,C.output+=F.output+A.output,C.globstar=!0,R(p+T()),N({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&x[0]==="/"){A.type="globstar",A.value+=p,A.output=`(?:^|${E}|${L(r)}${E})`,C.output=A.output,C.globstar=!0,R(p+T()),N({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-A.output.length),A.type="globstar",A.output=L(r),A.value+=p,C.output+=A.output,C.globstar=!0,R(p);continue}let J={type:"star",value:p,output:le};if(r.bash===!0){J.output=".*?",(A.type==="bos"||A.type==="slash")&&(J.output=I+J.output),N(J);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){J.output=p,N(J);continue}(C.index===C.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(C.output+=y,A.output+=y):r.dot===!0?(C.output+=w,A.output+=w):(C.output+=I,A.output+=I),_()!=="*"&&(C.output+=g,A.output+=g)),N(J)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));C.output=He.escapeLast(C.output,"["),Re("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing",")"));C.output=He.escapeLast(C.output,"("),Re("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing","}"));C.output=He.escapeLast(C.output,"{"),Re("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${E}?`}),C.backtrack===!0){C.output="";for(let x of C.tokens)C.output+=x.output!=null?x.output:x.value,x.suffix&&(C.output+=x.suffix)}return C};xu.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(jn,r.maxLength):jn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Fp[t]||t;let s=He.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}=Gn.globChars(s),d=r.dot?f:l,D=r.dot?h:l,y=r.capture?"":"?:",w={negated:!1,prefix:""},B=r.bash===!0?".*?":E;r.capture&&(B=`(${B})`);let q=I=>I.noglobstar===!0?B:`(${y}(?:(?!${g}${I.dot?c:o}).)*?)`,v=I=>{switch(I){case"*":return`${d}${a}${B}`;case".*":return`${o}${a}${B}`;case"*.*":return`${d}${B}${o}${a}${B}`;case"*/*":return`${d}${B}${u}${a}${D}${B}`;case"**":return d+q(r);case"**/*":return`(?:${d}${q(r)}${u})?${D}${a}${B}`;case"**/*.*":return`(?:${d}${q(r)}${u})?${D}${B}${o}${a}${B}`;case"**/.*":return`(?:${d}${q(r)}${u})?${o}${a}${B}`;default:{let j=/^(.*?)\.(\w+)$/.exec(I);if(!j)return;let le=v(j[1]);return le?le+o+j[2]:void 0}}},$=He.removePrefix(t,w),L=v($);return L&&r.strictSlashes!==!0&&(L+=`${u}?`),L};xp.exports=xu});var Tp=m((wO,Rp)=>{"use strict";var kC=require("path"),MC=wp(),vu=vp(),Ru=zi(),qC=Wi(),HC=t=>t&&typeof t=="object"&&!Array.isArray(t),ue=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>ue(h,e,r));return h=>{for(let E of l){let g=E(h);if(g)return g}return!1}}let i=HC(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=Ru.isWindows(e),o=i?ue.compileRe(t,e):ue.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=ue(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:E,output:g}=ue.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};ue.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?Ru.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=ue.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};ue.matchBase=(t,e,r,i=Ru.isWindows(r))=>(e instanceof RegExp?e:ue.makeRe(e,r)).test(kC.basename(t));ue.isMatch=(t,e,r)=>ue(e,r)(t);ue.parse=(t,e)=>Array.isArray(t)?t.map(r=>ue.parse(r,e)):vu(t,{...e,fastpaths:!1});ue.scan=(t,e)=>MC(t,e);ue.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=ue.toRegex(u,e);return i===!0&&(a.state=t),a};ue.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=vu.fastpaths(t,e)),n.output||(n=vu(t,e)),ue.compileRe(n,e,r,i)};ue.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/$^/}};ue.constants=qC;Rp.exports=ue});var Bp=m((FO,Op)=>{"use strict";Op.exports=Tp()});var kp=m((xO,Np)=>{"use strict";var Lp=require("util"),Ip=hp(),ct=Bp(),Tu=zi(),Pp=t=>t===""||t==="./",ie=(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=ct(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};ie.match=ie;ie.matcher=(t,e)=>ct(t,e);ie.isMatch=(t,e,r)=>ct(e,r)(t);ie.any=ie.isMatch;ie.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(ie(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ie.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Lp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ie.contains(t,i,r));if(typeof e=="string"){if(Pp(t)||Pp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ie.isMatch(t,e,{...r,contains:!0})};ie.matchKeys=(t,e,r)=>{if(!Tu.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ie(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ie.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ct(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ie.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ct(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ie.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Lp.inspect(t)}"`);return[].concat(e).every(i=>ct(i,r)(t))};ie.capture=(t,e,r)=>{let i=Tu.isWindows(r),s=ct.makeRe(String(t),{...r,capture:!0}).exec(i?Tu.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ie.makeRe=(...t)=>ct.makeRe(...t);ie.scan=(...t)=>ct.scan(...t);ie.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Ip(String(i),e))r.push(ct.parse(n,e));return r};ie.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Ip(t,e)};ie.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ie.braces(t,{...e,expand:!0})};Np.exports=ie});var Wp=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.matchAny=k.convertPatternsToRe=k.makeRe=k.getPatternParts=k.expandBraceExpansion=k.expandPatternsWithBraceExpansion=k.isAffectDepthOfReadingPattern=k.endsWithSlashGlobStar=k.hasGlobStar=k.getBaseDirectory=k.isPatternRelatedToParentDirectory=k.getPatternsOutsideCurrentDirectory=k.getPatternsInsideCurrentDirectory=k.getPositivePatterns=k.getNegativePatterns=k.isPositivePattern=k.isNegativePattern=k.convertToNegativePattern=k.convertToPositivePattern=k.isDynamicPattern=k.isStaticPattern=void 0;var $C=require("path"),UC=Rh(),Ou=kp(),Mp="**",GC="\\",jC=/[*?]|^!/,WC=/\[[^[]*]/,zC=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,YC=/[!*+?@]\([^(]*\)/,KC=/,|\.\./;function qp(t,e={}){return!Hp(t,e)}k.isStaticPattern=qp;function Hp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(GC)||jC.test(t)||WC.test(t)||zC.test(t)||e.extglob!==!1&&YC.test(t)||e.braceExpansion!==!1&&VC(t))}k.isDynamicPattern=Hp;function VC(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 KC.test(i)}function XC(t){return Wn(t)?t.slice(1):t}k.convertToPositivePattern=XC;function ZC(t){return"!"+t}k.convertToNegativePattern=ZC;function Wn(t){return t.startsWith("!")&&t[1]!=="("}k.isNegativePattern=Wn;function $p(t){return!Wn(t)}k.isPositivePattern=$p;function QC(t){return t.filter(Wn)}k.getNegativePatterns=QC;function JC(t){return t.filter($p)}k.getPositivePatterns=JC;function eb(t){return t.filter(e=>!Bu(e))}k.getPatternsInsideCurrentDirectory=eb;function tb(t){return t.filter(Bu)}k.getPatternsOutsideCurrentDirectory=tb;function Bu(t){return t.startsWith("..")||t.startsWith("./..")}k.isPatternRelatedToParentDirectory=Bu;function rb(t){return UC(t,{flipBackslashes:!1})}k.getBaseDirectory=rb;function ib(t){return t.includes(Mp)}k.hasGlobStar=ib;function Up(t){return t.endsWith("/"+Mp)}k.endsWithSlashGlobStar=Up;function nb(t){let e=$C.basename(t);return Up(t)||qp(e)}k.isAffectDepthOfReadingPattern=nb;function sb(t){return t.reduce((e,r)=>e.concat(Gp(r)),[])}k.expandPatternsWithBraceExpansion=sb;function Gp(t){return Ou.braces(t,{expand:!0,nodupes:!0})}k.expandBraceExpansion=Gp;function ob(t,e){let{parts:r}=Ou.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}k.getPatternParts=ob;function jp(t,e){return Ou.makeRe(t,e)}k.makeRe=jp;function ub(t,e){return t.map(r=>jp(r,e))}k.convertPatternsToRe=ub;function ab(t,e){return e.some(r=>r.test(t))}k.matchAny=ab});var Vp=m((RO,Kp)=>{"use strict";var cb=require("stream"),zp=cb.PassThrough,lb=Array.prototype.slice;Kp.exports=fb;function fb(){let t=[],e=lb.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=zp(i);function u(){for(let l=0,f=arguments.length;l<f;l++)t.push(Yp(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",D),h()}function D(y){o.emit("error",y)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",d),g.on("end",d),s&&g.on("error",D),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 Yp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Yp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(zp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Zp=m(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.merge=void 0;var hb=Vp();function pb(t){let e=hb(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Xp(t)),e.once("end",()=>Xp(t)),e}zn.merge=pb;function Xp(t){t.forEach(e=>e.emit("close"))}});var Qp=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.isEmpty=Kr.isString=void 0;function db(t){return typeof t=="string"}Kr.isString=db;function mb(t){return t===""}Kr.isEmpty=mb});var vt=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.string=Se.stream=Se.pattern=Se.path=Se.fs=Se.errno=Se.array=void 0;var gb=yh();Se.array=gb;var Eb=Ah();Se.errno=Eb;var Db=_h();Se.fs=Db;var yb=Sh();Se.path=yb;var Ab=Wp();Se.pattern=Ab;var _b=Zp();Se.stream=_b;var Sb=Qp();Se.string=Sb});var td=m(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.convertPatternGroupToTask=Ce.convertPatternGroupsToTasks=Ce.groupPatternsByBaseDirectory=Ce.getNegativePatternsAsPositive=Ce.getPositivePatterns=Ce.convertPatternsToTasks=Ce.generate=void 0;var Rt=vt();function Cb(t,e){let r=Jp(t),i=ed(t,e.ignore),n=r.filter(a=>Rt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Rt.pattern.isDynamicPattern(a,e)),o=Pu(n,i,!1),u=Pu(s,i,!0);return o.concat(u)}Ce.generate=Cb;function Pu(t,e,r){let i=[],n=Rt.pattern.getPatternsOutsideCurrentDirectory(t),s=Rt.pattern.getPatternsInsideCurrentDirectory(t),o=Lu(n),u=Lu(s);return i.push(...Iu(o,e,r)),"."in u?i.push(Nu(".",s,e,r)):i.push(...Iu(u,e,r)),i}Ce.convertPatternsToTasks=Pu;function Jp(t){return Rt.pattern.getPositivePatterns(t)}Ce.getPositivePatterns=Jp;function ed(t,e){return Rt.pattern.getNegativePatterns(t).concat(e).map(Rt.pattern.convertToPositivePattern)}Ce.getNegativePatternsAsPositive=ed;function Lu(t){let e={};return t.reduce((r,i)=>{let n=Rt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Ce.groupPatternsByBaseDirectory=Lu;function Iu(t,e,r){return Object.keys(t).map(i=>Nu(i,t[i],e,r))}Ce.convertPatternGroupsToTasks=Iu;function Nu(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Rt.pattern.convertToNegativePattern))}}Ce.convertPatternGroupToTask=Nu});var id=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.removeDuplicateSlashes=Vr.transform=void 0;var bb=/(?!^)\/{2,}/g;function wb(t){return t.map(e=>rd(e))}Vr.transform=wb;function rd(t){return t.replace(bb,"/")}Vr.removeDuplicateSlashes=rd});var sd=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.read=void 0;function Fb(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){nd(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ku(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){nd(r,s);return}ku(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ku(r,o)})})}Yn.read=Fb;function nd(t,e){t(e)}function ku(t,e){t(null,e)}});var od=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.read=void 0;function xb(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}}Kn.read=xb});var ud=m(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.createFileSystemAdapter=zt.FILE_SYSTEM_ADAPTER=void 0;var Vn=require("fs");zt.FILE_SYSTEM_ADAPTER={lstat:Vn.lstat,stat:Vn.stat,lstatSync:Vn.lstatSync,statSync:Vn.statSync};function vb(t){return t===void 0?zt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},zt.FILE_SYSTEM_ADAPTER),t)}zt.createFileSystemAdapter=vb});var ad=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Rb=ud(),Mu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Rb.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}};qu.default=Mu});var _r=m(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.statSync=Yt.stat=Yt.Settings=void 0;var cd=sd(),Tb=od(),Hu=ad();Yt.Settings=Hu.default;function Ob(t,e,r){if(typeof e=="function"){cd.read(t,$u(),e);return}cd.read(t,$u(e),r)}Yt.stat=Ob;function Bb(t,e){let r=$u(e);return Tb.read(t,r)}Yt.statSync=Bb;function $u(t={}){return t instanceof Hu.default?t:new Hu.default(t)}});var hd=m((HO,fd)=>{var ld;fd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(ld||(ld=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var dd=m(($O,pd)=>{pd.exports=Lb;var Pb=hd();function Lb(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?Pb(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 Uu=m(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Xn=process.versions.node.split(".");if(Xn[0]===void 0||Xn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var md=Number.parseInt(Xn[0],10),Ib=Number.parseInt(Xn[1],10),gd=10,Nb=10,kb=md>gd,Mb=md===gd&&Ib>=Nb;Zn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=kb||Mb});var Ed=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.createDirentFromStats=void 0;var Gu=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 qb(t,e){return new Gu(t,e)}Qn.createDirentFromStats=qb});var ju=m(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.fs=void 0;var Hb=Ed();Jn.fs=Hb});var Wu=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.joinPathSegments=void 0;function $b(t,e,r){return t.endsWith(r)?t+e:t+r+e}es.joinPathSegments=$b});var Cd=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.readdir=Kt.readdirWithFileTypes=Kt.read=void 0;var Ub=_r(),Dd=dd(),Gb=Uu(),yd=ju(),Ad=Wu();function jb(t,e,r){if(!e.stats&&Gb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){_d(t,e,r);return}Sd(t,e,r)}Kt.read=jb;function _d(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){ts(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:Ad.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){zu(r,s);return}let o=s.map(u=>Wb(u,e));Dd(o,(u,a)=>{if(u!==null){ts(r,u);return}zu(r,a)})})}Kt.readdirWithFileTypes=_d;function Wb(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=yd.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Sd(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ts(r,i);return}let s=n.map(o=>{let u=Ad.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{Ub.stat(u,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:yd.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),a(null,f)})}});Dd(s,(o,u)=>{if(o!==null){ts(r,o);return}zu(r,u)})})}Kt.readdir=Sd;function ts(t,e){t(e)}function zu(t,e){t(null,e)}});var vd=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.readdir=Vt.readdirWithFileTypes=Vt.read=void 0;var zb=_r(),Yb=Uu(),bd=ju(),wd=Wu();function Kb(t,e){return!e.stats&&Yb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Fd(t,e):xd(t,e)}Vt.read=Kb;function Fd(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:wd.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=bd.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Vt.readdirWithFileTypes=Fd;function xd(t,e){return e.fs.readdirSync(t).map(i=>{let n=wd.joinPathSegments(t,i,e.pathSegmentSeparator),s=zb.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:bd.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Vt.readdir=xd});var Rd=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.createFileSystemAdapter=Xt.FILE_SYSTEM_ADAPTER=void 0;var Xr=require("fs");Xt.FILE_SYSTEM_ADAPTER={lstat:Xr.lstat,stat:Xr.stat,lstatSync:Xr.lstatSync,statSync:Xr.statSync,readdir:Xr.readdir,readdirSync:Xr.readdirSync};function Vb(t){return t===void 0?Xt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Xt.FILE_SYSTEM_ADAPTER),t)}Xt.createFileSystemAdapter=Vb});var Td=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Xb=require("path"),Zb=_r(),Qb=Rd(),Yu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Qb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Xb.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Zb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ku.default=Yu});var rs=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.Settings=Zt.scandirSync=Zt.scandir=void 0;var Od=Cd(),Jb=vd(),Vu=Td();Zt.Settings=Vu.default;function e1(t,e,r){if(typeof e=="function"){Od.read(t,Xu(),e);return}Od.read(t,Xu(e),r)}Zt.scandir=e1;function t1(t,e){let r=Xu(e);return Jb.read(t,r)}Zt.scandirSync=t1;function Xu(t={}){return t instanceof Vu.default?t:new Vu.default(t)}});var Pd=m((ZO,Bd)=>{"use strict";function r1(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}}Bd.exports=r1});var Id=m((QO,Zu)=>{"use strict";var i1=Pd();function Ld(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=i1(n1),n=null,s=null,o=0,u=null,a={push:d,drain:Ke,saturated:Ke,pause:l,paused:!1,concurrency:r,running:c,resume:E,idle:g,length:f,getQueue:h,unshift:D,empty:Ke,kill:w,killAndDrain:B,error:q};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var v=n,$=0;v;)v=v.next,$++;return $}function h(){for(var v=n,$=[];v;)$.push(v.value),v=v.next;return $}function E(){if(a.paused){a.paused=!1;for(var v=0;v<a.concurrency;v++)o++,y()}}function g(){return o===0&&a.length()===0}function d(v,$){var L=i.get();L.context=t,L.release=y,L.value=v,L.callback=$||Ke,L.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=L,s=L):(n=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function D(v,$){var L=i.get();L.context=t,L.release=y,L.value=v,L.callback=$||Ke,o===a.concurrency||a.paused?n?(L.next=n,n=L):(n=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function y(v){v&&i.release(v);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 w(){n=null,s=null,a.drain=Ke}function B(){n=null,s=null,a.drain(),a.drain=Ke}function q(v){u=v}}function Ke(){}function n1(){this.value=null,this.callback=Ke,this.next=null,this.release=Ke,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=Ke,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function s1(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=Ld(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(Ke),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(Ke),f}function c(){var l=n.drain,f=new Promise(function(h){n.drain=function(){l(),h()}});return f}}Zu.exports=Ld;Zu.exports.promise=s1});var is=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.joinPathSegments=lt.replacePathSegmentSeparator=lt.isAppliedFilter=lt.isFatalError=void 0;function o1(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}lt.isFatalError=o1;function u1(t,e){return t===null||t(e)}lt.isAppliedFilter=u1;function a1(t,e){return t.split(/[/\\]/).join(e)}lt.replacePathSegmentSeparator=a1;function c1(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}lt.joinPathSegments=c1});var ea=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var l1=is(),Qu=class{constructor(e,r){this._root=e,this._settings=r,this._root=l1.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ju.default=Qu});var ia=m(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});var f1=require("events"),h1=rs(),p1=Id(),ns=is(),d1=ea(),ta=class extends d1.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=h1.scandir,this._emitter=new f1.EventEmitter,this._queue=p1(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||!ns.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=ns.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ns.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ns.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ra.default=ta});var Nd=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var m1=ia(),na=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new m1.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{g1(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{E1(e,this._storage)}),this._reader.read()}};sa.default=na;function g1(t,e){t(e)}function E1(t,e){t(null,e)}});var kd=m(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var D1=require("stream"),y1=ia(),oa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new y1.default(this._root,this._settings),this._stream=new D1.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}};ua.default=oa});var Md=m(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});var A1=rs(),ss=is(),_1=ea(),aa=class extends _1.default{constructor(){super(...arguments),this._scandir=A1.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(ss.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=ss.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ss.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&ss.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};ca.default=aa});var qd=m(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var S1=Md(),la=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new S1.default(this._root,this._settings)}read(){return this._reader.read()}};fa.default=la});var Hd=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var C1=require("path"),b1=rs(),ha=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,C1.sep),this.fsScandirSettings=new b1.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}};pa.default=ha});var us=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.Settings=ft.walkStream=ft.walkSync=ft.walk=void 0;var $d=Nd(),w1=kd(),F1=qd(),da=Hd();ft.Settings=da.default;function x1(t,e,r){if(typeof e=="function"){new $d.default(t,os()).read(e);return}new $d.default(t,os(e)).read(r)}ft.walk=x1;function v1(t,e){let r=os(e);return new F1.default(t,r).read()}ft.walkSync=v1;function R1(t,e){let r=os(e);return new w1.default(t,r).read()}ft.walkStream=R1;function os(t={}){return t instanceof da.default?t:new da.default(t)}});var as=m(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var T1=require("path"),O1=_r(),Ud=vt(),ma=class{constructor(e){this._settings=e,this._fsStatSettings=new O1.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return T1.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Ud.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Ud.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ga.default=ma});var ya=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var B1=require("stream"),P1=_r(),L1=us(),I1=as(),Ea=class extends I1.default{constructor(){super(...arguments),this._walkStream=L1.walkStream,this._stat=P1.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new B1.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))})}};Da.default=Ea});var Gd=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var N1=us(),k1=as(),M1=ya(),Aa=class extends k1.default{constructor(){super(...arguments),this._walkAsync=N1.walk,this._readerStream=new M1.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))})}};_a.default=Aa});var jd=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Zr=vt(),Sa=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zr.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 Zr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Zr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Zr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Zr.array.splitWhen(e,r=>r.dynamic&&Zr.pattern.hasGlobStar(r.pattern))}};Ca.default=Sa});var Wd=m(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var q1=jd(),ba=class extends q1.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}};wa.default=ba});var zd=m(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var cs=vt(),H1=Wd(),Fa=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 H1.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(cs.pattern.isAffectDepthOfReadingPattern);return cs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=cs.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!cs.pattern.matchAny(e,r)}};xa.default=Fa});var Yd=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Sr=vt(),va=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Sr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Sr.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=Sr.path.makeAbsolute(this._settings.cwd,e);return Sr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Sr.path.removeLeadingDotSegment(e),s=Sr.pattern.matchAny(n,r);return!s&&i?Sr.pattern.matchAny(n+"/",r):s}};Ra.default=va});var Kd=m(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var $1=vt(),Ta=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return $1.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Oa.default=Ta});var Xd=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Vd=vt(),Ba=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Vd.path.makeAbsolute(this._settings.cwd,r),r=Vd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Pa.default=Ba});var ls=m(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var U1=require("path"),G1=zd(),j1=Yd(),W1=Kd(),z1=Xd(),La=class{constructor(e){this._settings=e,this.errorFilter=new W1.default(this._settings),this.entryFilter=new j1.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new G1.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new z1.default(this._settings)}_getRootDirectory(e){return U1.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}}};Ia.default=La});var Zd=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Y1=Gd(),K1=ls(),Na=class extends K1.default{constructor(){super(...arguments),this._reader=new Y1.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)}};ka.default=Na});var Qd=m(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var V1=require("stream"),X1=ya(),Z1=ls(),Ma=class extends Z1.default{constructor(){super(...arguments),this._reader=new X1.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new V1.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)}};qa.default=Ma});var Jd=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Q1=_r(),J1=us(),ew=as(),Ha=class extends ew.default{constructor(){super(...arguments),this._walkSync=J1.walkSync,this._statSync=Q1.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)}};$a.default=Ha});var em=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var tw=Jd(),rw=ls(),Ua=class extends rw.default{constructor(){super(...arguments),this._reader=new tw.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)}};Ga.default=Ua});var tm=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Qr=require("fs"),iw=require("os"),nw=Math.max(iw.cpus().length,1);Jr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Qr.lstat,lstatSync:Qr.lstatSync,stat:Qr.stat,statSync:Qr.statSync,readdir:Qr.readdir,readdirSync:Qr.readdirSync};var ja=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,nw),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({},Jr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Jr.default=ja});var sm=m((CB,nm)=>{"use strict";var rm=td(),im=id(),sw=Zd(),ow=Qd(),uw=em(),Wa=tm(),Cr=vt();async function za(t,e){ei(t);let r=Ya(t,sw.default,e),i=await Promise.all(r);return Cr.array.flatten(i)}(function(t){function e(o,u){ei(o);let a=Ya(o,uw.default,u);return Cr.array.flatten(a)}t.sync=e;function r(o,u){ei(o);let a=Ya(o,ow.default,u);return Cr.stream.merge(a)}t.stream=r;function i(o,u){ei(o);let a=im.transform([].concat(o)),c=new Wa.default(u);return rm.generate(a,c)}t.generateTasks=i;function n(o,u){ei(o);let a=new Wa.default(u);return Cr.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return ei(o),Cr.path.escape(o)}t.escapePath=s})(za||(za={}));function Ya(t,e,r){let i=im.transform([].concat(t)),n=new Wa.default(r),s=rm.generate(i,n),o=new e(n);return s.map(o.read,o)}function ei(t){if(![].concat(t).every(i=>Cr.string.isString(i)&&!Cr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}nm.exports=za});var ym=m((vB,Dm)=>{Dm.exports=Em;Em.sync=yw;var mm=require("fs");function Dw(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 gm(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Dw(e,r)}function Em(t,e,r){mm.stat(t,function(i,n){r(i,i?!1:gm(n,t,e))})}function yw(t,e){return gm(mm.statSync(t),t,e)}});var bm=m((RB,Cm)=>{Cm.exports=_m;_m.sync=Aw;var Am=require("fs");function _m(t,e,r){Am.stat(t,function(i,n){r(i,i?!1:Sm(n,e))})}function Aw(t,e){return Sm(Am.statSync(t),e)}function Sm(t,e){return t.isFile()&&_w(t,e)}function _w(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 Fm=m((OB,wm)=>{var TB=require("fs"),fs;process.platform==="win32"||global.TESTING_WINDOWS?fs=ym():fs=bm();wm.exports=Za;Za.sync=Sw;function Za(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){Za(t,e||{},function(s,o){s?n(s):i(o)})})}fs(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function Sw(t,e){try{return fs.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Pm=m((BB,Bm)=>{var ri=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xm=require("path"),Cw=ri?";":":",vm=Fm(),Rm=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Tm=(t,e)=>{let r=e.colon||Cw,i=t.match(/\//)||ri&&t.match(/\\/)?[""]:[...ri?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ri?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ri?n.split(r):[""];return ri&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Om=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Tm(t,e),o=[],u=c=>new Promise((l,f)=>{if(c===i.length)return e.all&&o.length?l(o):f(Rm(t));let h=i[c],E=/^".*"$/.test(h)?h.slice(1,-1):h,g=xm.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];vm(c+g,{pathExt:s},(d,D)=>{if(!d&&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)},bw=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Tm(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=xm.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(vm.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 Rm(t)};Bm.exports=Om;Om.sync=bw});var Ja=m((PB,Qa)=>{"use strict";var Lm=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Qa.exports=Lm;Qa.exports.default=Lm});var Mm=m((LB,km)=>{"use strict";var Im=require("path"),ww=Pm(),Fw=Ja();function Nm(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=ww.sync(t.command,{path:r[Fw({env:r})],pathExt:e?Im.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Im.resolve(n?t.options.cwd:"",o)),o}function xw(t){return Nm(t)||Nm(t,!0)}km.exports=xw});var qm=m((IB,tc)=>{"use strict";var ec=/([()\][%!^"`<>&|;, *?])/g;function vw(t){return t=t.replace(ec,"^$1"),t}function Rw(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(ec,"^$1"),e&&(t=t.replace(ec,"^$1")),t}tc.exports.command=vw;tc.exports.argument=Rw});var $m=m((NB,Hm)=>{"use strict";Hm.exports=/^#!(.*)/});var Gm=m((kB,Um)=>{"use strict";var Tw=$m();Um.exports=(t="")=>{let e=t.match(Tw);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Wm=m((MB,jm)=>{"use strict";var rc=require("fs"),Ow=Gm();function Bw(t){let r=Buffer.alloc(150),i;try{i=rc.openSync(t,"r"),rc.readSync(i,r,0,150,0),rc.closeSync(i)}catch{}return Ow(r.toString())}jm.exports=Bw});var Vm=m((qB,Km)=>{"use strict";var Pw=require("path"),zm=Mm(),Ym=qm(),Lw=Wm(),Iw=process.platform==="win32",Nw=/\.(?:com|exe)$/i,kw=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Mw(t){t.file=zm(t);let e=t.file&&Lw(t.file);return e?(t.args.unshift(t.file),t.command=e,zm(t)):t.file}function qw(t){if(!Iw)return t;let e=Mw(t),r=!Nw.test(e);if(t.options.forceShell||r){let i=kw.test(e);t.command=Pw.normalize(t.command),t.command=Ym.command(t.command),t.args=t.args.map(s=>Ym.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 Hw(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:qw(i)}Km.exports=Hw});var Qm=m((HB,Zm)=>{"use strict";var ic=process.platform==="win32";function nc(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 $w(t,e){if(!ic)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Xm(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Xm(t,e){return ic&&t===1&&!e.file?nc(e.original,"spawn"):null}function Uw(t,e){return ic&&t===1&&!e.file?nc(e.original,"spawnSync"):null}Zm.exports={hookChildProcess:$w,verifyENOENT:Xm,verifyENOENTSync:Uw,notFoundError:nc}});var t0=m(($B,ii)=>{"use strict";var Jm=require("child_process"),sc=Vm(),oc=Qm();function e0(t,e,r){let i=sc(t,e,r),n=Jm.spawn(i.command,i.args,i.options);return oc.hookChildProcess(n,i),n}function Gw(t,e,r){let i=sc(t,e,r),n=Jm.spawnSync(i.command,i.args,i.options);return n.error=n.error||oc.verifyENOENTSync(n.status,i),n}ii.exports=e0;ii.exports.spawn=e0;ii.exports.sync=Gw;ii.exports._parse=sc;ii.exports._enoent=oc});var i0=m((UB,r0)=>{"use strict";r0.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 o0=m((GB,Xi)=>{"use strict";var Vi=require("path"),n0=
|
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 o0=m((GB,Xi)=>{"use strict";var Vi=require("path"),n0=Ja(),s0=t=>{t={cwd:process.cwd(),path:process.env[n0()],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)};Xi.exports=s0;Xi.exports.default=s0;Xi.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=n0({env:e});return t.path=e[r],e[r]=Xi.exports(t),e}});var a0=m((jB,uc)=>{"use strict";var u0=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};uc.exports=u0;uc.exports.default=u0});var l0=m((WB,ps)=>{"use strict";var jw=a0(),hs=new WeakMap,c0=(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(hs.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 jw(s,t),hs.set(s,i),s};ps.exports=c0;ps.exports.default=c0;ps.exports.callCount=t=>{if(!hs.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return hs.get(t)}});var f0=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.SIGNALS=void 0;var Ww=[{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"}];ds.SIGNALS=Ww});var ac=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.SIGRTMAX=ni.getRealtimeSignals=void 0;var zw=function(){let t=p0-h0+1;return Array.from({length:t},Yw)};ni.getRealtimeSignals=zw;var Yw=function(t,e){return{name:`SIGRT${e+1}`,number:h0+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},h0=34,p0=64;ni.SIGRTMAX=p0});var d0=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.getSignals=void 0;var Kw=require("os"),Vw=f0(),Xw=ac(),Zw=function(){let t=(0,Xw.getRealtimeSignals)();return[...Vw.SIGNALS,...t].map(Qw)};ms.getSignals=Zw;var Qw=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=Kw.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var g0=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.signalsByNumber=si.signalsByName=void 0;var Jw=require("os"),m0=d0(),eF=ac(),tF=function(){return(0,m0.getSignals)().reduce(rF,{})},rF=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}}},iF=tF();si.signalsByName=iF;var nF=function(){let t=(0,m0.getSignals)(),e=eF.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>sF(n,t));return Object.assign({},...r)},sF=function(t,e){let r=oF(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}}},oF=function(t,e){let r=e.find(({name:i})=>Jw.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},uF=nF();si.signalsByNumber=uF});var D0=m((XB,E0)=>{"use strict";var{signalsByName:aF}=g0(),cF=({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",lF=({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:aF[n].description,E=i&&i.code,d=`Command ${cF({timedOut:a,timeout:f,errorCode:E,signal:n,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,D=Object.prototype.toString.call(i)==="[object Error]",y=D?`${d}
|
5
5
|
${i.message}`:d,w=[y,e,t].filter(Boolean).join(`
|
6
|
-
`);return D?(i.originalMessage=i.message,i.message=w):i=new Error(w),i.shortMessage=y,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};E0.exports=lF});var A0=m((ZB,cc)=>{"use strict";var gs=["stdin","stdout","stderr"],fF=t=>gs.some(e=>t[e]!==void 0),y0=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return gs.map(i=>t[i]);if(fF(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${gs.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,gs.length);return Array.from({length:r},(i,n)=>e[n])};cc.exports=y0;cc.exports.node=t=>{let e=y0(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var _0=m((JB,Es)=>{Es.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Es.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Es.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var F0=m((QB,ai)=>{var ne=global.process,wr=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"};wr(ne)?(S0=require("assert"),oi=_0(),C0=/^win/i.test(ne.platform),Zi=require("events"),typeof Zi!="function"&&(Zi=Zi.EventEmitter),ne.__signal_exit_emitter__?ge=ne.__signal_exit_emitter__:(ge=ne.__signal_exit_emitter__=new Zi,ge.count=0,ge.emitted={}),ge.infinite||(ge.setMaxListeners(1/0),ge.infinite=!0),ai.exports=function(t,e){if(!wr(global.process))return function(){};S0.equal(typeof t,"function","a callback must be provided for exit handler"),ui===!1&&lc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ge.removeListener(r,t),ge.listeners("exit").length===0&&ge.listeners("afterexit").length===0&&Ds()};return ge.on(r,t),i},Ds=function(){!ui||!wr(global.process)||(ui=!1,oi.forEach(function(e){try{ne.removeListener(e,ys[e])}catch{}}),ne.emit=As,ne.reallyExit=fc,ge.count-=1)},ai.exports.unload=Ds,Fr=function(e,r,i){ge.emitted[e]||(ge.emitted[e]=!0,ge.emit(e,r,i))},ys={},oi.forEach(function(t){ys[t]=function(){if(wr(global.process)){var r=ne.listeners(t);r.length===ge.count&&(Ds(),Fr("exit",null,t),Fr("afterexit",null,t),C0&&t==="SIGHUP"&&(t="SIGINT"),ne.kill(ne.pid,t))}}}),ai.exports.signals=function(){return oi},ui=!1,lc=function(){ui||!wr(global.process)||(ui=!0,ge.count+=1,oi=oi.filter(function(e){try{return ne.on(e,ys[e]),!0}catch{return!1}}),ne.emit=w0,ne.reallyExit=b0)},ai.exports.load=lc,fc=ne.reallyExit,b0=function(e){wr(global.process)&&(ne.exitCode=e||0,Fr("exit",ne.exitCode,null),Fr("afterexit",ne.exitCode,null),fc.call(ne,ne.exitCode))},As=ne.emit,w0=function(e,r){if(e==="exit"&&wr(global.process)){r!==void 0&&(ne.exitCode=r);var i=As.apply(this,arguments);return Fr("exit",ne.exitCode,null),Fr("afterexit",ne.exitCode,null),i}else return As.apply(this,arguments)}):ai.exports=function(){return function(){}};var S0,oi,C0,Zi,ge,Ds,Fr,ys,ui,lc,fc,b0,As,w0});var v0=m((e2,x0)=>{"use strict";var hF=require("os"),pF=F0(),dF=1e3*5,mF=(t,e="SIGTERM",r={})=>{let i=t(e);return gF(t,e,r,i),i},gF=(t,e,r,i)=>{if(!EF(e,r,i))return;let n=yF(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},EF=(t,{forceKillAfterTimeout:e},r)=>DF(t)&&e!==!1&&r,DF=t=>t===hF.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yF=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dF;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},AF=(t,e)=>{t.kill()&&(e.isCanceled=!0)},_F=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},SF=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{_F(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},CF=({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})`)},bF=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=pF(()=>{t.kill()});return i.finally(()=>{n()})};x0.exports={spawnedKill:mF,spawnedCancel:AF,setupTimeout:SF,validateTimeout:CF,setExitHandler:bF}});var T0=m((t2,R0)=>{"use strict";var ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ht.writable=t=>ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ht.readable=t=>ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ht.duplex=t=>ht.writable(t)&&ht.readable(t);ht.transform=t=>ht.duplex(t)&&typeof t._transform=="function";R0.exports=ht});var B0=m((r2,O0)=>{"use strict";var{PassThrough:wF}=require("stream");O0.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 wF({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 P0=m((i2,Ji)=>{"use strict";var{constants:FF}=require("buffer"),xF=require("stream"),{promisify:vF}=require("util"),RF=B0(),TF=vF(xF.pipeline),_s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function hc(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=RF(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=FF.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await TF(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new _s)})}),i.getBufferedValue()}Ji.exports=hc;Ji.exports.buffer=(t,e)=>hc(t,{...e,encoding:"buffer"});Ji.exports.array=(t,e)=>hc(t,{...e,array:!0});Ji.exports.MaxBufferError=_s});var I0=m((n2,L0)=>{"use strict";var{PassThrough:OF}=require("stream");L0.exports=function(){var t=[],e=new OF({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 q0=m((s2,M0)=>{"use strict";var k0=T0(),N0=P0(),BF=I0(),PF=(t,e)=>{e===void 0||t.stdin===void 0||(k0(e)?e.pipe(t.stdin):t.stdin.end(e))},LF=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=BF();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},pc=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},dc=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?N0(t,{encoding:e,maxBuffer:i}):N0.buffer(t,{maxBuffer:i})},IF=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=dc(t,{encoding:i,buffer:n,maxBuffer:s}),a=dc(e,{encoding:i,buffer:n,maxBuffer:s}),c=dc(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},pc(t,u),pc(e,a),pc(r,c)])}},NF=({input:t})=>{if(k0(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};M0.exports={handleInput:PF,makeAllStream:LF,getSpawnedResult:IF,validateInputSync:NF}});var $0=m((o2,H0)=>{"use strict";var kF=(async()=>{})().constructor.prototype,MF=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(kF,t)]),qF=(t,e)=>{for(let[r,i]of MF){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},HF=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)})});H0.exports={mergePromise:qF,getSpawnedPromise:HF}});var j0=m((u2,G0)=>{"use strict";var U0=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],$F=/^[\w.-]+$/,UF=/"/g,GF=t=>typeof t!="string"||$F.test(t)?t:`"${t.replace(UF,'\\"')}"`,jF=(t,e)=>U0(t,e).join(" "),WF=(t,e)=>U0(t,e).map(r=>GF(r)).join(" "),zF=/ +/g,YF=t=>{let e=[];for(let r of t.trim().split(zF)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};G0.exports={joinCommand:jF,getEscapedCommand:WF,parseCommand:YF}});var Z0=m((a2,ci)=>{"use strict";var KF=require("path"),mc=require("child_process"),VF=t0(),XF=i0(),ZF=o0(),JF=l0(),Ss=D0(),z0=A0(),{spawnedKill:QF,spawnedCancel:ex,setupTimeout:tx,validateTimeout:rx,setExitHandler:ix}=v0(),{handleInput:nx,getSpawnedResult:sx,makeAllStream:ox,validateInputSync:ux}=q0(),{mergePromise:W0,getSpawnedPromise:ax}=$0(),{joinCommand:Y0,parseCommand:K0,getEscapedCommand:V0}=j0(),cx=1e3*1e3*100,lx=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?ZF.env({env:s,cwd:i,execPath:n}):s},X0=(t,e,r={})=>{let i=VF._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:cx,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=lx(r),r.stdio=z0(r),process.platform==="win32"&&KF.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Qi=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?XF(e):e,Cs=(t,e,r)=>{let i=X0(t,e,r),n=Y0(t,e),s=V0(t,e);rx(i.options);let o;try{o=mc.spawn(i.file,i.args,i.options)}catch(E){let g=new mc.ChildProcess,d=Promise.reject(Ss({error:E,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return W0(g,d)}let u=ax(o),a=tx(o,i.options,u),c=ix(o,i.options,a),l={isCanceled:!1};o.kill=QF.bind(null,o.kill.bind(o)),o.cancel=ex.bind(null,o,l);let h=JF(async()=>{let[{error:E,exitCode:g,signal:d,timedOut:D},y,w,B]=await sx(o,i.options,c),q=Qi(i.options,y),v=Qi(i.options,w),$=Qi(i.options,B);if(E||g!==0||d!==null){let L=Ss({error:E,exitCode:g,signal:d,stdout:q,stderr:v,all:$,command:n,escapedCommand:s,parsed:i,timedOut:D,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:q,stderr:v,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nx(o,i.options.input),o.all=ox(o,i.options),W0(o,h)};ci.exports=Cs;ci.exports.sync=(t,e,r)=>{let i=X0(t,e,r),n=Y0(t,e),s=V0(t,e);ux(i.options);let o;try{o=mc.spawnSync(i.file,i.args,i.options)}catch(c){throw Ss({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Qi(i.options,o.stdout,o.error),a=Qi(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Ss({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}};ci.exports.command=(t,e)=>{let[r,...i]=K0(t);return Cs(r,i,e)};ci.exports.commandSync=(t,e)=>{let[r,...i]=K0(t);return Cs.sync(r,i,e)};ci.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=z0.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Cs(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var li=m((p2,eg)=>{"use strict";var Q0=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"]]);eg.exports=t=>t?Object.keys(t).map(e=>[Q0.has(e)?Q0.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Rs=m((d2,cg)=>{"use strict";var tg=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ex=require("events"),rg=require("stream"),ig=require("string_decoder").StringDecoder,Tt=Symbol("EOF"),Ot=Symbol("maybeEmitEnd"),er=Symbol("emittedEnd"),bs=Symbol("emittingEnd"),en=Symbol("emittedError"),ws=Symbol("closed"),ng=Symbol("read"),Fs=Symbol("flush"),sg=Symbol("flushChunk"),Ie=Symbol("encoding"),Bt=Symbol("decoder"),xs=Symbol("flowing"),tn=Symbol("paused"),fi=Symbol("resume"),ae=Symbol("buffer"),pt=Symbol("pipes"),Ee=Symbol("bufferLength"),gc=Symbol("bufferPush"),Ec=Symbol("bufferShift"),be=Symbol("objectMode"),we=Symbol("destroyed"),Dc=Symbol("emitData"),og=Symbol("emitEnd"),yc=Symbol("emitEnd2"),Pt=Symbol("async"),rn=t=>Promise.resolve().then(t),ug=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Dx=ug&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),yx=ug&&Symbol.iterator||Symbol("iterator not implemented"),Ax=t=>t==="end"||t==="finish"||t==="prefinish",_x=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Sx=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),vs=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[fi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ac=class extends vs{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)}};cg.exports=class ag extends rg{constructor(e){super(),this[xs]=!1,this[tn]=!1,this[pt]=[],this[ae]=[],this[be]=e&&e.objectMode||!1,this[be]?this[Ie]=null:this[Ie]=e&&e.encoding||null,this[Ie]==="buffer"&&(this[Ie]=null),this[Pt]=e&&!!e.async||!1,this[Bt]=this[Ie]?new ig(this[Ie]):null,this[Tt]=!1,this[er]=!1,this[bs]=!1,this[ws]=!1,this[en]=null,this.writable=!0,this.readable=!0,this[Ee]=0,this[we]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ae]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[pt]})}get bufferLength(){return this[Ee]}get encoding(){return this[Ie]}set encoding(e){if(this[be])throw new Error("cannot set encoding in objectMode");if(this[Ie]&&e!==this[Ie]&&(this[Bt]&&this[Bt].lastNeed||this[Ee]))throw new Error("cannot change encoding");this[Ie]!==e&&(this[Bt]=e?new ig(e):null,this[ae].length&&(this[ae]=this[ae].map(r=>this[Bt].write(r)))),this[Ie]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[be]}set objectMode(e){this[be]=this[be]||!!e}get async(){return this[Pt]}set async(e){this[Pt]=this[Pt]||!!e}write(e,r,i){if(this[Tt])throw new Error("write after end");if(this[we])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[Pt]?rn:s=>s();return!this[be]&&!Buffer.isBuffer(e)&&(Sx(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):_x(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[be]?(this.flowing&&this[Ee]!==0&&this[Fs](!0),this.flowing?this.emit("data",e):this[gc](e),this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ie]&&!this[Bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ie]&&(e=this[Bt].write(e)),this.flowing&&this[Ee]!==0&&this[Fs](!0),this.flowing?this.emit("data",e):this[gc](e),this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[we])return null;if(this[Ee]===0||e===0||e>this[Ee])return this[Ot](),null;this[be]&&(e=null),this[ae].length>1&&!this[be]&&(this.encoding?this[ae]=[this[ae].join("")]:this[ae]=[Buffer.concat(this[ae],this[Ee])]);let r=this[ng](e||null,this[ae][0]);return this[Ot](),r}[ng](e,r){return e===r.length||e===null?this[Ec]():(this[ae][0]=r.slice(e),r=r.slice(0,e),this[Ee]-=e),this.emit("data",r),!this[ae].length&&!this[Tt]&&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[Tt]=!0,this.writable=!1,(this.flowing||!this[tn])&&this[Ot](),this}[fi](){this[we]||(this[tn]=!1,this[xs]=!0,this.emit("resume"),this[ae].length?this[Fs]():this[Tt]?this[Ot]():this.emit("drain"))}resume(){return this[fi]()}pause(){this[xs]=!1,this[tn]=!0}get destroyed(){return this[we]}get flowing(){return this[xs]}get paused(){return this[tn]}[gc](e){this[be]?this[Ee]+=1:this[Ee]+=e.length,this[ae].push(e)}[Ec](){return this[ae].length&&(this[be]?this[Ee]-=1:this[Ee]-=this[ae][0].length),this[ae].shift()}[Fs](e){do;while(this[sg](this[Ec]()));!e&&!this[ae].length&&!this[Tt]&&this.emit("drain")}[sg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[we])return;let i=this[er];return r=r||{},e===tg.stdout||e===tg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[pt].push(r.proxyErrors?new Ac(this,e,r):new vs(this,e,r)),this[Pt]?rn(()=>this[fi]()):this[fi]()),e}unpipe(e){let r=this[pt].find(i=>i.dest===e);r&&(this[pt].splice(this[pt].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[pt].length&&!this.flowing?this[fi]():e==="readable"&&this[Ee]!==0?super.emit("readable"):Ax(e)&&this[er]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[en]&&(this[Pt]?rn(()=>r.call(this,this[en])):r.call(this,this[en])),i}get emittedEnd(){return this[er]}[Ot](){!this[bs]&&!this[er]&&!this[we]&&this[ae].length===0&&this[Tt]&&(this[bs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ws]&&this.emit("close"),this[bs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==we&&this[we])return;if(e==="data")return r?this[Pt]?rn(()=>this[Dc](r)):this[Dc](r):!1;if(e==="end")return this[og]();if(e==="close"){if(this[ws]=!0,!this[er]&&!this[we])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[en]=r;let s=super.emit("error",r);return this[Ot](),s}else if(e==="resume"){let s=super.emit("resume");return this[Ot](),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[Ot](),n}[Dc](e){for(let i of this[pt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ot](),r}[og](){this[er]||(this[er]=!0,this.readable=!1,this[Pt]?rn(()=>this[yc]()):this[yc]())}[yc](){if(this[Bt]){let r=this[Bt].end();if(r){for(let i of this[pt])i.dest.write(r);super.emit("data",r)}}for(let r of this[pt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ie]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(we,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Dx](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Tt])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[Tt]})},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(we,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[yx](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[we]?(e?this.emit("error",e):this.emit(we),this):(this[we]=!0,this[ae].length=0,this[Ee]=0,typeof this.close=="function"&&!this[ws]&&this.close(),e?this.emit("error",e):this.emit(we),this)}static isStream(e){return!!e&&(e instanceof ag||e instanceof rg||e instanceof Ex&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var fg=m((m2,lg)=>{var Cx=require("zlib").constants||{ZLIB_VERNUM:4736};lg.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},Cx))});var Fc=m((g2,Ag)=>{"use strict";var hg=typeof process=="object"&&process?process:{stdout:null,stderr:null},bx=require("events"),pg=require("stream"),dg=require("string_decoder").StringDecoder,Lt=Symbol("EOF"),It=Symbol("maybeEmitEnd"),tr=Symbol("emittedEnd"),Ts=Symbol("emittingEnd"),nn=Symbol("emittedError"),Os=Symbol("closed"),mg=Symbol("read"),Bs=Symbol("flush"),gg=Symbol("flushChunk"),Ne=Symbol("encoding"),Nt=Symbol("decoder"),Ps=Symbol("flowing"),sn=Symbol("paused"),hi=Symbol("resume"),De=Symbol("bufferLength"),_c=Symbol("bufferPush"),Sc=Symbol("bufferShift"),Fe=Symbol("objectMode"),xe=Symbol("destroyed"),Cc=Symbol("emitData"),Eg=Symbol("emitEnd"),bc=Symbol("emitEnd2"),kt=Symbol("async"),on=t=>Promise.resolve().then(t),Dg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",wx=Dg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Fx=Dg&&Symbol.iterator||Symbol("iterator not implemented"),xx=t=>t==="end"||t==="finish"||t==="prefinish",vx=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Rx=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ls=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[hi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},wc=class extends Ls{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Ag.exports=class yg extends pg{constructor(e){super(),this[Ps]=!1,this[sn]=!1,this.pipes=[],this.buffer=[],this[Fe]=e&&e.objectMode||!1,this[Fe]?this[Ne]=null:this[Ne]=e&&e.encoding||null,this[Ne]==="buffer"&&(this[Ne]=null),this[kt]=e&&!!e.async||!1,this[Nt]=this[Ne]?new dg(this[Ne]):null,this[Lt]=!1,this[tr]=!1,this[Ts]=!1,this[Os]=!1,this[nn]=null,this.writable=!0,this.readable=!0,this[De]=0,this[xe]=!1}get bufferLength(){return this[De]}get encoding(){return this[Ne]}set encoding(e){if(this[Fe])throw new Error("cannot set encoding in objectMode");if(this[Ne]&&e!==this[Ne]&&(this[Nt]&&this[Nt].lastNeed||this[De]))throw new Error("cannot change encoding");this[Ne]!==e&&(this[Nt]=e?new dg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Nt].write(r)))),this[Ne]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Fe]}set objectMode(e){this[Fe]=this[Fe]||!!e}get async(){return this[kt]}set async(e){this[kt]=this[kt]||!!e}write(e,r,i){if(this[Lt])throw new Error("write after end");if(this[xe])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[kt]?on:s=>s();return!this[Fe]&&!Buffer.isBuffer(e)&&(Rx(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):vx(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Fe]?(this.flowing&&this[De]!==0&&this[Bs](!0),this.flowing?this.emit("data",e):this[_c](e),this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ne]&&!this[Nt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ne]&&(e=this[Nt].write(e)),this.flowing&&this[De]!==0&&this[Bs](!0),this.flowing?this.emit("data",e):this[_c](e),this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[xe])return null;if(this[De]===0||e===0||e>this[De])return this[It](),null;this[Fe]&&(e=null),this.buffer.length>1&&!this[Fe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[De])]);let r=this[mg](e||null,this.buffer[0]);return this[It](),r}[mg](e,r){return e===r.length||e===null?this[Sc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[De]-=e),this.emit("data",r),!this.buffer.length&&!this[Lt]&&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[Lt]=!0,this.writable=!1,(this.flowing||!this[sn])&&this[It](),this}[hi](){this[xe]||(this[sn]=!1,this[Ps]=!0,this.emit("resume"),this.buffer.length?this[Bs]():this[Lt]?this[It]():this.emit("drain"))}resume(){return this[hi]()}pause(){this[Ps]=!1,this[sn]=!0}get destroyed(){return this[xe]}get flowing(){return this[Ps]}get paused(){return this[sn]}[_c](e){this[Fe]?this[De]+=1:this[De]+=e.length,this.buffer.push(e)}[Sc](){return this.buffer.length&&(this[Fe]?this[De]-=1:this[De]-=this.buffer[0].length),this.buffer.shift()}[Bs](e){do;while(this[gg](this[Sc]()));!e&&!this.buffer.length&&!this[Lt]&&this.emit("drain")}[gg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[xe])return;let i=this[tr];return r=r||{},e===hg.stdout||e===hg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new wc(this,e,r):new Ls(this,e,r)),this[kt]?on(()=>this[hi]()):this[hi]()),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[hi]():e==="readable"&&this[De]!==0?super.emit("readable"):xx(e)&&this[tr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[nn]&&(this[kt]?on(()=>r.call(this,this[nn])):r.call(this,this[nn])),i}get emittedEnd(){return this[tr]}[It](){!this[Ts]&&!this[tr]&&!this[xe]&&this.buffer.length===0&&this[Lt]&&(this[Ts]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Os]&&this.emit("close"),this[Ts]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return;if(e==="data")return r?this[kt]?on(()=>this[Cc](r)):this[Cc](r):!1;if(e==="end")return this[Eg]();if(e==="close"){if(this[Os]=!0,!this[tr]&&!this[xe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[nn]=r;let s=super.emit("error",r);return this[It](),s}else if(e==="resume"){let s=super.emit("resume");return this[It](),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[It](),n}[Cc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[It](),r}[Eg](){this[tr]||(this[tr]=!0,this.readable=!1,this[kt]?on(()=>this[bc]()):this[bc]())}[bc](){if(this[Nt]){let r=this[Nt].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[Fe]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Fe]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this[Ne]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[wx](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Lt])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[Lt]})},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(xe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Fx](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[xe]?(e?this.emit("error",e):this.emit(xe),this):(this[xe]=!0,this.buffer.length=0,this[De]=0,typeof this.close=="function"&&!this[Os]&&this.close(),e?this.emit("error",e):this.emit(xe),this)}static isStream(e){return!!e&&(e instanceof yg||e instanceof pg||e instanceof bx&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Uc=m($e=>{"use strict";var Oc=require("assert"),rr=require("buffer").Buffer,Cg=require("zlib"),xr=$e.constants=fg(),Tx=Fc(),_g=rr.concat,vr=Symbol("_superWrite"),di=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"}},Ox=Symbol("opts"),un=Symbol("flushFlag"),Sg=Symbol("finishFlushFlag"),$c=Symbol("fullFlushFlag"),J=Symbol("handle"),Is=Symbol("onError"),pi=Symbol("sawError"),xc=Symbol("level"),vc=Symbol("strategy"),Rc=Symbol("ended"),E2=Symbol("_defaultFullFlush"),Ns=class extends Tx{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[pi]=!1,this[Rc]=!1,this[Ox]=e,this[un]=e.flush,this[Sg]=e.finishFlush;try{this[J]=new Cg[r](e)}catch(i){throw new di(i)}this[Is]=i=>{this[pi]||(this[pi]=!0,this.close(),this.emit("error",i))},this[J].on("error",i=>this[Is](new di(i))),this.once("end",()=>this.close)}close(){this[J]&&(this[J].close(),this[J]=null,this.emit("close"))}reset(){if(!this[pi])return Oc(this[J],"zlib binding closed"),this[J].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[$c]),this.write(Object.assign(rr.alloc(0),{[un]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Sg]),this[Rc]=!0,super.end(null,null,i)}get ended(){return this[Rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=rr.from(e,r)),this[pi])return;Oc(this[J],"zlib binding closed");let n=this[J]._handle,s=n.close;n.close=()=>{};let o=this[J].close;this[J].close=()=>{},rr.concat=c=>c;let u;try{let c=typeof e[un]=="number"?e[un]:this[un];u=this[J]._processChunk(e,c),rr.concat=_g}catch(c){rr.concat=_g,this[Is](new di(c))}finally{this[J]&&(this[J]._handle=n,n.close=s,this[J].close=o,this[J].removeAllListeners("error"))}this[J]&&this[J].on("error",c=>this[Is](new di(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[vr](rr.from(u[0]));for(let c=1;c<u.length;c++)a=this[vr](u[c])}else a=this[vr](rr.from(u));return i&&i(),a}[vr](e){return super.write(e)}},Mt=class extends Ns{constructor(e,r){e=e||{},e.flush=e.flush||xr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||xr.Z_FINISH,super(e,r),this[$c]=xr.Z_FULL_FLUSH,this[xc]=e.level,this[vc]=e.strategy}params(e,r){if(!this[pi]){if(!this[J])throw new Error("cannot switch params when binding is closed");if(!this[J].params)throw new Error("not supported in this implementation");if(this[xc]!==e||this[vc]!==r){this.flush(xr.Z_SYNC_FLUSH),Oc(this[J],"zlib binding closed");let i=this[J].flush;this[J].flush=(n,s)=>{this.flush(n),s()};try{this[J].params(e,r)}finally{this[J].flush=i}this[J]&&(this[xc]=e,this[vc]=r)}}}},Bc=class extends Mt{constructor(e){super(e,"Deflate")}},Pc=class extends Mt{constructor(e){super(e,"Inflate")}},Tc=Symbol("_portable"),Lc=class extends Mt{constructor(e){super(e,"Gzip"),this[Tc]=e&&!!e.portable}[vr](e){return this[Tc]?(this[Tc]=!1,e[9]=255,super[vr](e)):super[vr](e)}},Ic=class extends Mt{constructor(e){super(e,"Gunzip")}},Nc=class extends Mt{constructor(e){super(e,"DeflateRaw")}},kc=class extends Mt{constructor(e){super(e,"InflateRaw")}},Mc=class extends Mt{constructor(e){super(e,"Unzip")}},ks=class extends Ns{constructor(e,r){e=e||{},e.flush=e.flush||xr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||xr.BROTLI_OPERATION_FINISH,super(e,r),this[$c]=xr.BROTLI_OPERATION_FLUSH}},qc=class extends ks{constructor(e){super(e,"BrotliCompress")}},Hc=class extends ks{constructor(e){super(e,"BrotliDecompress")}};$e.Deflate=Bc;$e.Inflate=Pc;$e.Gzip=Lc;$e.Gunzip=Ic;$e.DeflateRaw=Nc;$e.InflateRaw=kc;$e.Unzip=Mc;typeof Cg.BrotliCompress=="function"?($e.BrotliCompress=qc,$e.BrotliDecompress=Hc):$e.BrotliCompress=$e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var mi=m((A2,bg)=>{var Bx=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;bg.exports=Bx!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Ms=m((S2,wg)=>{"use strict";var Px=Rs(),Gc=mi(),jc=Symbol("slurp");wg.exports=class extends Px{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Gc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Gc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[jc](r),i&&this[jc](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))}[jc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Gc(e[i]):e[i])}}});var Wc=m(qs=>{"use strict";qs.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"]]);qs.code=new Map(Array.from(qs.name).map(t=>[t[1],t[0]]))});var Rg=m((b2,vg)=>{"use strict";var Lx=(t,e)=>{if(Number.isSafeInteger(t))t<0?Nx(t,e):Ix(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Ix=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},Nx=(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]=Fg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=xg(n))}},kx=t=>{let e=t[0],r=e===128?qx(t.slice(1,t.length)):e===255?Mx(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},Mx=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Fg(s):s===0?o=s:(i=!0,o=xg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},qx=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},Fg=t=>(255^t)&255,xg=t=>(255^t)+1&255;vg.exports={encode:Lx,parse:kx}});var Ei=m((w2,Og)=>{"use strict";var zc=Wc(),gi=require("path").posix,Tg=Rg(),Yc=Symbol("slurp"),Ue=Symbol("type"),Xc=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[Ue]="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=Rr(e,r,100),this.mode=ir(e,r+100,8),this.uid=ir(e,r+108,8),this.gid=ir(e,r+116,8),this.size=ir(e,r+124,12),this.mtime=Kc(e,r+136,12),this.cksum=ir(e,r+148,12),this[Yc](i),this[Yc](n,!0),this[Ue]=Rr(e,r+156,1),this[Ue]===""&&(this[Ue]="0"),this[Ue]==="0"&&this.path.slice(-1)==="/"&&(this[Ue]="5"),this[Ue]==="5"&&(this.size=0),this.linkpath=Rr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Rr(e,r+265,32),this.gname=Rr(e,r+297,32),this.devmaj=ir(e,r+329,8),this.devmin=ir(e,r+337,8),e[r+475]!==0){let o=Rr(e,r+345,155);this.path=o+"/"+this.path}else{let o=Rr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Kc(e,r+476,12),this.ctime=Kc(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)}[Yc](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=Hx(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Tr(e,r,100,s)||this.needPax,this.needPax=nr(e,r+100,8,this.mode)||this.needPax,this.needPax=nr(e,r+108,8,this.uid)||this.needPax,this.needPax=nr(e,r+116,8,this.gid)||this.needPax,this.needPax=nr(e,r+124,12,this.size)||this.needPax,this.needPax=Vc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Ue].charCodeAt(0),this.needPax=Tr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Tr(e,r+265,32,this.uname)||this.needPax,this.needPax=Tr(e,r+297,32,this.gname)||this.needPax,this.needPax=nr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=nr(e,r+337,8,this.devmin)||this.needPax,this.needPax=Tr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Tr(e,r+345,155,o)||this.needPax:(this.needPax=Tr(e,r+345,130,o)||this.needPax,this.needPax=Vc(e,r+476,12,this.atime)||this.needPax,this.needPax=Vc(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,nr(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 zc.name.get(this[Ue])||this[Ue]}get typeKey(){return this[Ue]}set type(e){zc.code.has(e)?this[Ue]=zc.code.get(e):this[Ue]=e}},Hx=(t,e)=>{let i=t,n="",s,o=gi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=gi.dirname(i),i=gi.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=gi.join(gi.basename(n),i),n=gi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Rr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Kc=(t,e,r)=>$x(ir(t,e,r)),$x=t=>t===null?null:new Date(t*1e3),ir=(t,e,r)=>t[e]&128?Tg.parse(t.slice(e,e+r)):Gx(t,e,r),Ux=t=>isNaN(t)?null:t,Gx=(t,e,r)=>Ux(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),jx={12:8589934591,8:2097151},nr=(t,e,r,i)=>i===null?!1:i>jx[r]||i<0?(Tg.encode(i,t.slice(e,e+r)),!0):(Wx(t,e,r,i),!1),Wx=(t,e,r,i)=>t.write(zx(i,r),e,r,"ascii"),zx=(t,e)=>Yx(Math.floor(t).toString(8),e),Yx=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Vc=(t,e,r,i)=>i===null?!1:nr(t,e,r,i.getTime()/1e3),Kx=new Array(156).join("\0"),Tr=(t,e,r,i)=>i===null?!1:(t.write(i+Kx,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Og.exports=Xc});var Hs=m((F2,Bg)=>{"use strict";var Vx=Ei(),Xx=require("path"),an=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 Vx({path:("PaxHeader/"+Xx.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}};an.parse=(t,e,r)=>new an(Zx(
|
8
|
-
`).reduce(Qx,Object.create(null)),Qx=(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};Bg.exports=an});var Di=m((x2,Pg)=>{Pg.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 $s=m((v2,Lg)=>{"use strict";Lg.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 Jc=m((T2,Ig)=>{"use strict";var Us=["|","<",">","?",":"],Zc=Us.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),ev=new Map(Us.map((t,e)=>[t,Zc[e]])),tv=new Map(Zc.map((t,e)=>[t,Us[e]]));Ig.exports={encode:t=>Us.reduce((e,r)=>e.split(r).join(ev.get(r)),t),decode:t=>Zc.reduce((e,r)=>e.split(r).join(tv.get(r)),t)}});var Qc=m((O2,kg)=>{var{isAbsolute:rv,parse:Ng}=require("path").win32;kg.exports=t=>{let e="",r=Ng(t);for(;rv(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Ng(t)}return[e,t]}});var qg=m((B2,Mg)=>{"use strict";Mg.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 cl=m((I2,Qg)=>{"use strict";var zg=Rs(),Yg=Hs(),Kg=Ei(),mt=require("fs"),Hg=require("path"),dt=mi(),iv=Di(),Vg=(t,e)=>e?(t=dt(t).replace(/^\.(\/|$)/,""),iv(e)+"/"+t):dt(t),nv=16*1024*1024,$g=Symbol("process"),Ug=Symbol("file"),Gg=Symbol("directory"),tl=Symbol("symlink"),jg=Symbol("hardlink"),cn=Symbol("header"),Gs=Symbol("read"),rl=Symbol("lstat"),js=Symbol("onlstat"),il=Symbol("onread"),nl=Symbol("onreadlink"),sl=Symbol("openfile"),ol=Symbol("onopenfile"),sr=Symbol("close"),Ws=Symbol("mode"),ul=Symbol("awaitDrain"),el=Symbol("ondrain"),gt=Symbol("prefix"),Wg=Symbol("hadError"),Xg=$s(),sv=Jc(),Zg=Qc(),Jg=qg(),zs=Xg(class extends zg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=dt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||nv,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=dt(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?dt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Zg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=sv.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=dt(r.absolute||Hg.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[js](this.statCache.get(this.absolute)):this[rl]()}emit(e,...r){return e==="error"&&(this[Wg]=!0),super.emit(e,...r)}[rl](){mt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[js](r)})}[js](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=uv(e),this.emit("stat",e),this[$g]()}[$g](){switch(this.type){case"File":return this[Ug]();case"Directory":return this[Gg]();case"SymbolicLink":return this[tl]();default:return this.end()}}[Ws](e){return Jg(e,this.type==="Directory",this.portable)}[gt](e){return Vg(e,this.prefix)}[cn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Kg({path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](this.linkpath):this.linkpath,mode:this[Ws](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Yg({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[gt](this.path),linkpath:this.type==="Link"?this[gt](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)}[Gg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[cn](),this.end()}[tl](){mt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[nl](r)})}[nl](e){this.linkpath=dt(e),this[cn](),this.end()}[jg](e){this.type="Link",this.linkpath=dt(Hg.relative(this.cwd,e)),this.stat.size=0,this[cn](),this.end()}[Ug](){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[jg](r)}this.linkCache.set(e,this.absolute)}if(this[cn](),this.stat.size===0)return this.end();this[sl]()}[sl](){mt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[ol](r)})}[ol](e){if(this.fd=e,this[Wg])return this[sr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Gs]()}[Gs](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;mt.read(e,r,i,n,s,(o,u)=>{if(o)return this[sr](()=>this.emit("error",o));this[il](u)})}[sr](e){mt.close(this.fd,e)}[il](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[sr](()=>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[sr](()=>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[el]():this[ul](()=>this[el]())}[ul](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)}[el](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[sr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Gs]()}}),al=class extends zs{[rl](){this[js](mt.lstatSync(this.absolute))}[tl](){this[nl](mt.readlinkSync(this.absolute))}[sl](){this[ol](mt.openSync(this.absolute,"r"))}[Gs](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=mt.readSync(r,i,n,s,o);this[il](u),e=!1}finally{if(e)try{this[sr](()=>{})}catch{}}}[ul](e){e()}[sr](e){mt.closeSync(this.fd),e()}},ov=Xg(class extends zg{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=dt(e.path),this.mode=this[Ws](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=dt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Zg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Kg({path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](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 Yg({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[gt](this.path),linkpath:this.type==="Link"?this[gt](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)}[gt](e){return Vg(e,this.prefix)}[Ws](e){return Jg(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()}});zs.Sync=al;zs.Tar=ov;var uv=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Qg.exports=zs});var tE=m((N2,eE)=>{"use strict";eE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ll=m((k2,rE)=>{"use strict";rE.exports=W;W.Node=Or;W.create=W;function W(t){var e=this;if(e instanceof W||(e=new W),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}W.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};W.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++}};W.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++}};W.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)cv(this,arguments[t]);return this.length};W.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)lv(this,arguments[t]);return this.length};W.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}};W.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}};W.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};W.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};W.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};W.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};W.prototype.map=function(t,e){e=e||this;for(var r=new W,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};W.prototype.mapReverse=function(t,e){e=e||this;for(var r=new W,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};W.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};W.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};W.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};W.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};W.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 W;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};W.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 W;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};W.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=av(this,n,r[i]);return s};W.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 av(t,e,r){var i=e===t.head?new Or(r,null,e,t):new Or(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function cv(t,e){t.tail=new Or(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function lv(t,e){t.head=new Or(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function Or(t,e,r,i){if(!(this instanceof Or))return new Or(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{tE()(W)}catch{}});var to=m((q2,cE)=>{"use strict";var Qs=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}},fv=Rs(),hv=Uc(),pv=Ms(),yl=cl(),dv=yl.Sync,mv=yl.Tar,gv=ll(),iE=Buffer.alloc(1024),Vs=Symbol("onStat"),Ys=Symbol("ended"),Et=Symbol("queue"),yi=Symbol("current"),Br=Symbol("process"),Ks=Symbol("processing"),nE=Symbol("processJob"),Dt=Symbol("jobs"),fl=Symbol("jobDone"),Xs=Symbol("addFSEntry"),sE=Symbol("addTarEntry"),ml=Symbol("stat"),gl=Symbol("readdir"),Zs=Symbol("onreaddir"),Js=Symbol("pipe"),oE=Symbol("entry"),hl=Symbol("entryOpt"),El=Symbol("writeEntryClass"),aE=Symbol("write"),pl=Symbol("ondrain"),eo=require("fs"),uE=require("path"),Ev=$s(),dl=mi(),Al=Ev(class extends fv{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=dl(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[El]=yl,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 hv.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[pl]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[pl]),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[Et]=new gv,this[Dt]=0,this.jobs=+e.jobs||4,this[Ks]=!1,this[Ys]=!1}[aE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Ys]=!0,this[Br](),this}write(e){if(this[Ys])throw new Error("write after end");return e instanceof pv?this[sE](e):this[Xs](e),this.flowing}[sE](e){let r=dl(uE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Qs(e.path,r,!1);i.entry=new mv(e,this[hl](i)),i.entry.on("end",n=>this[fl](i)),this[Dt]+=1,this[Et].push(i)}this[Br]()}[Xs](e){let r=dl(uE.resolve(this.cwd,e));this[Et].push(new Qs(e,r)),this[Br]()}[ml](e){e.pending=!0,this[Dt]+=1;let r=this.follow?"stat":"lstat";eo[r](e.absolute,(i,n)=>{e.pending=!1,this[Dt]-=1,i?this.emit("error",i):this[Vs](e,n)})}[Vs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Br]()}[gl](e){e.pending=!0,this[Dt]+=1,eo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Dt]-=1,r)return this.emit("error",r);this[Zs](e,i)})}[Zs](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Br]()}[Br](){if(!this[Ks]){this[Ks]=!0;for(let e=this[Et].head;e!==null&&this[Dt]<this.jobs;e=e.next)if(this[nE](e.value),e.value.ignore){let r=e.next;this[Et].removeNode(e),e.next=r}this[Ks]=!1,this[Ys]&&!this[Et].length&&this[Dt]===0&&(this.zip?this.zip.end(iE):(super.write(iE),super.end()))}}get[yi](){return this[Et]&&this[Et].head&&this[Et].head.value}[fl](e){this[Et].shift(),this[Dt]-=1,this[Br]()}[nE](e){if(!e.pending){if(e.entry){e===this[yi]&&!e.piped&&this[Js](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Vs](e,this.statCache.get(e.absolute)):this[ml](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Zs](e,this.readdirCache.get(e.absolute)):this[gl](e),!e.readdir))){if(e.entry=this[oE](e),!e.entry){e.ignore=!0;return}e===this[yi]&&!e.piped&&this[Js](e)}}}[hl](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}}[oE](e){this[Dt]+=1;try{return new this[El](e.path,this[hl](e)).on("end",()=>this[fl](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[pl](){this[yi]&&this[yi].entry&&this[yi].entry.resume()}[Js](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Xs](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Dl=class extends Al{constructor(e){super(e),this[El]=dv}pause(){}resume(){}[ml](e){let r=this.follow?"statSync":"lstatSync";this[Vs](e,eo[r](e.absolute))}[gl](e,r){this[Zs](e,eo.readdirSync(e.absolute))}[Js](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Xs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[aE](n)})}};Al.Sync=Dl;cE.exports=Al});var xi=m(fn=>{"use strict";var Dv=Fc(),yv=require("events").EventEmitter,ke=require("fs"),Cl=ke.writev;if(!Cl){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Cl=(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 wi=Symbol("_autoClose"),it=Symbol("_close"),ln=Symbol("_ended"),V=Symbol("_fd"),lE=Symbol("_finished"),ur=Symbol("_flags"),_l=Symbol("_flush"),bl=Symbol("_handleChunk"),wl=Symbol("_makeBuf"),oo=Symbol("_mode"),ro=Symbol("_needDrain"),Ci=Symbol("_onerror"),Fi=Symbol("_onopen"),Sl=Symbol("_onread"),_i=Symbol("_onwrite"),ar=Symbol("_open"),qt=Symbol("_path"),Pr=Symbol("_pos"),yt=Symbol("_queue"),Si=Symbol("_read"),fE=Symbol("_readSize"),or=Symbol("_reading"),io=Symbol("_remain"),hE=Symbol("_size"),no=Symbol("_write"),Ai=Symbol("_writing"),so=Symbol("_defaultFlag"),bi=Symbol("_errored"),uo=class extends Dv{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[bi]=!1,this[V]=typeof r.fd=="number"?r.fd:null,this[qt]=e,this[fE]=r.readSize||16*1024*1024,this[or]=!1,this[hE]=typeof r.size=="number"?r.size:1/0,this[io]=this[hE],this[wi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[V]=="number"?this[Si]():this[ar]()}get fd(){return this[V]}get path(){return this[qt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ar](){ke.open(this[qt],"r",(e,r)=>this[Fi](e,r))}[Fi](e,r){e?this[Ci](e):(this[V]=r,this.emit("open",r),this[Si]())}[wl](){return Buffer.allocUnsafe(Math.min(this[fE],this[io]))}[Si](){if(!this[or]){this[or]=!0;let e=this[wl]();if(e.length===0)return process.nextTick(()=>this[Sl](null,0,e));ke.read(this[V],e,0,e.length,null,(r,i,n)=>this[Sl](r,i,n))}}[Sl](e,r,i){this[or]=!1,e?this[Ci](e):this[bl](r,i)&&this[Si]()}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ci](e){this[or]=!0,this[it](),this.emit("error",e)}[bl](e,r){let i=!1;return this[io]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[io]<=0)&&(i=!1,this[it](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[V]=="number"&&this[Si]();break;case"error":return this[bi]?void 0:(this[bi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Fl=class extends uo{[ar](){let e=!0;try{this[Fi](null,ke.openSync(this[qt],"r")),e=!1}finally{e&&this[it]()}}[Si](){let e=!0;try{if(!this[or]){this[or]=!0;do{let r=this[wl](),i=r.length===0?0:ke.readSync(this[V],r,0,r.length,null);if(!this[bl](i,r))break}while(!0);this[or]=!1}e=!1}finally{e&&this[it]()}}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.closeSync(e),this.emit("close")}}},ao=class extends yv{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[bi]=!1,this[Ai]=!1,this[ln]=!1,this[ro]=!1,this[yt]=[],this[qt]=e,this[V]=typeof r.fd=="number"?r.fd:null,this[oo]=r.mode===void 0?438:r.mode,this[Pr]=typeof r.start=="number"?r.start:null,this[wi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Pr]!==null?"r+":"w";this[so]=r.flags===void 0,this[ur]=this[so]?i:r.flags,this[V]===null&&this[ar]()}emit(e,r){if(e==="error"){if(this[bi])return;this[bi]=!0}return super.emit(e,r)}get fd(){return this[V]}get path(){return this[qt]}[Ci](e){this[it](),this[Ai]=!0,this.emit("error",e)}[ar](){ke.open(this[qt],this[ur],this[oo],(e,r)=>this[Fi](e,r))}[Fi](e,r){this[so]&&this[ur]==="r+"&&e&&e.code==="ENOENT"?(this[ur]="w",this[ar]()):e?this[Ci](e):(this[V]=r,this.emit("open",r),this[_l]())}end(e,r){return e&&this.write(e,r),this[ln]=!0,!this[Ai]&&!this[yt].length&&typeof this[V]=="number"&&this[_i](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ln]?(this.emit("error",new Error("write() after end()")),!1):this[V]===null||this[Ai]||this[yt].length?(this[yt].push(e),this[ro]=!0,!1):(this[Ai]=!0,this[no](e),!0)}[no](e){ke.write(this[V],e,0,e.length,this[Pr],(r,i)=>this[_i](r,i))}[_i](e,r){e?this[Ci](e):(this[Pr]!==null&&(this[Pr]+=r),this[yt].length?this[_l]():(this[Ai]=!1,this[ln]&&!this[lE]?(this[lE]=!0,this[it](),this.emit("finish")):this[ro]&&(this[ro]=!1,this.emit("drain"))))}[_l](){if(this[yt].length===0)this[ln]&&this[_i](null,0);else if(this[yt].length===1)this[no](this[yt].pop());else{let e=this[yt];this[yt]=[],Cl(this[V],e,this[Pr],(r,i)=>this[_i](r,i))}}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},xl=class extends ao{[ar](){let e;if(this[so]&&this[ur]==="r+")try{e=ke.openSync(this[qt],this[ur],this[oo])}catch(r){if(r.code==="ENOENT")return this[ur]="w",this[ar]();throw r}else e=ke.openSync(this[qt],this[ur],this[oo]);this[Fi](null,e)}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.closeSync(e),this.emit("close")}}[no](e){let r=!0;try{this[_i](null,ke.writeSync(this[V],e,0,e.length,this[Pr])),r=!1}finally{if(r)try{this[it]()}catch{}}}};fn.ReadStream=uo;fn.ReadStreamSync=Fl;fn.WriteStream=ao;fn.WriteStreamSync=xl});var go=m((U2,AE)=>{"use strict";var Av=$s(),_v=Ei(),Sv=require("events"),Cv=ll(),bv=1024*1024,wv=Ms(),pE=Hs(),Fv=Uc(),{nextTick:xv}=require("process"),vl=Buffer.from([31,139]),Xe=Symbol("state"),Lr=Symbol("writeEntry"),Ht=Symbol("readEntry"),Rl=Symbol("nextEntry"),dE=Symbol("processEntry"),Ze=Symbol("extendedHeader"),hn=Symbol("globalExtendedHeader"),cr=Symbol("meta"),mE=Symbol("emitMeta"),re=Symbol("buffer"),$t=Symbol("queue"),Ir=Symbol("ended"),gE=Symbol("emittedEnd"),Nr=Symbol("emit"),Me=Symbol("unzip"),co=Symbol("consumeChunk"),lo=Symbol("consumeChunkSub"),Tl=Symbol("consumeBody"),EE=Symbol("consumeMeta"),DE=Symbol("consumeHeader"),fo=Symbol("consuming"),Ol=Symbol("bufferConcat"),Bl=Symbol("maybeEnd"),pn=Symbol("writing"),lr=Symbol("aborted"),ho=Symbol("onDone"),kr=Symbol("sawValidEntry"),po=Symbol("sawNullBlock"),mo=Symbol("sawEOF"),yE=Symbol("closeStream"),vv=t=>!0;AE.exports=Av(class extends Sv{constructor(e){e=e||{},super(e),this.file=e.file||"",this[kr]=null,this.on(ho,r=>{(this[Xe]==="begin"||this[kr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ho,e.ondone):this.on(ho,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||bv,this.filter=typeof e.filter=="function"?e.filter:vv,this.writable=!0,this.readable=!1,this[$t]=new Cv,this[re]=null,this[Ht]=null,this[Lr]=null,this[Xe]="begin",this[cr]="",this[Ze]=null,this[hn]=null,this[Ir]=!1,this[Me]=null,this[lr]=!1,this[po]=!1,this[mo]=!1,this.on("end",()=>this[yE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[DE](e,r){this[kr]===null&&(this[kr]=!1);let i;try{i=new _v(e,r,this[Ze],this[hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[po]?(this[mo]=!0,this[Xe]==="begin"&&(this[Xe]="header"),this[Nr]("eof")):(this[po]=!0,this[Nr]("nullBlock"));else if(this[po]=!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[Lr]=new wv(i,this[Ze],this[hn]);if(!this[kr])if(s.remain){let o=()=>{s.invalid||(this[kr]=!0)};s.on("end",o)}else this[kr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Nr]("ignoredEntry",s),this[Xe]="ignore",s.resume()):s.size>0&&(this[cr]="",s.on("data",o=>this[cr]+=o),this[Xe]="meta"):(this[Ze]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Nr]("ignoredEntry",s),this[Xe]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Xe]="body":(this[Xe]="header",s.end()),this[Ht]?this[$t].push(s):(this[$t].push(s),this[Rl]())))}}}[yE](){xv(()=>this.emit("close"))}[dE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ht]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Rl]()),r=!1)):(this[Ht]=null,r=!1),r}[Rl](){do;while(this[dE](this[$t].shift()));if(!this[$t].length){let e=this[Ht];!e||e.flowing||e.size===e.remain?this[pn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Tl](e,r){let i=this[Lr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Xe]="header",this[Lr]=null,i.end()),s.length}[EE](e,r){let i=this[Lr],n=this[Tl](e,r);return this[Lr]||this[mE](i),n}[Nr](e,r,i){!this[$t].length&&!this[Ht]?this.emit(e,r,i):this[$t].push([e,r,i])}[mE](e){switch(this[Nr]("meta",this[cr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ze]=pE.parse(this[cr],this[Ze],!1);break;case"GlobalExtendedHeader":this[hn]=pE.parse(this[cr],this[hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ze]=this[Ze]||Object.create(null),this[Ze].path=this[cr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ze]=this[Ze]||Object.create(null),this[Ze].linkpath=this[cr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[lr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[lr])return;if(this[Me]===null&&e){if(this[re]&&(e=Buffer.concat([this[re],e]),this[re]=null),e.length<vl.length)return this[re]=e,!0;for(let i=0;this[Me]===null&&i<vl.length;i++)e[i]!==vl[i]&&(this[Me]=!1);if(this[Me]===null){let i=this[Ir];this[Ir]=!1,this[Me]=new Fv.Unzip,this[Me].on("data",s=>this[co](s)),this[Me].on("error",s=>this.abort(s)),this[Me].on("end",s=>{this[Ir]=!0,this[co]()}),this[pn]=!0;let n=this[Me][i?"end":"write"](e);return this[pn]=!1,n}}this[pn]=!0,this[Me]?this[Me].write(e):this[co](e),this[pn]=!1;let r=this[$t].length?!1:this[Ht]?this[Ht].flowing:!0;return!r&&!this[$t].length&&this[Ht].once("drain",i=>this.emit("drain")),r}[Ol](e){e&&!this[lr]&&(this[re]=this[re]?Buffer.concat([this[re],e]):e)}[Bl](){if(this[Ir]&&!this[gE]&&!this[lr]&&!this[fo]){this[gE]=!0;let e=this[Lr];if(e&&e.blockRemain){let r=this[re]?this[re].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[re]&&e.write(this[re]),e.end()}this[Nr](ho)}}[co](e){if(this[fo])this[Ol](e);else if(!e&&!this[re])this[Bl]();else{if(this[fo]=!0,this[re]){this[Ol](e);let r=this[re];this[re]=null,this[lo](r)}else this[lo](e);for(;this[re]&&this[re].length>=512&&!this[lr]&&!this[mo];){let r=this[re];this[re]=null,this[lo](r)}this[fo]=!1}(!this[re]||this[Ir])&&this[Bl]()}[lo](e){let r=0,i=e.length;for(;r+512<=i&&!this[lr]&&!this[mo];)switch(this[Xe]){case"begin":case"header":this[DE](e,r),r+=512;break;case"ignore":case"body":r+=this[Tl](e,r);break;case"meta":r+=this[EE](e,r);break;default:throw new Error("invalid state: "+this[Xe])}r<i&&(this[re]?this[re]=Buffer.concat([e.slice(r),this[re]]):this[re]=e.slice(r))}end(e){this[lr]||(this[Me]?this[Me].end(e):(this[Ir]=!0,this.write(e)))}})});var Eo=m((G2,bE)=>{"use strict";var Rv=li(),SE=go(),vi=require("fs"),Tv=xi(),_E=require("path"),Pl=Di();bE.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=Rv(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&&Bv(i,e),i.noResume||Ov(i),i.file&&i.sync?Pv(i):i.file?Lv(i,r):CE(i)};var Ov=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},Bv=(t,e)=>{let r=new Map(e.map(s=>[Pl(s),!0])),i=t.filter,n=(s,o)=>{let u=o||_E.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(_E.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Pl(s)):s=>n(Pl(s))},Pv=t=>{let e=CE(t),r=t.file,i=!0,n;try{let s=vi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(vi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=vi.openSync(r,"r");u<s.size;){let c=vi.readSync(n,a,0,o,u);u+=c,e.write(a.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{vi.closeSync(n)}catch{}}},Lv=(t,e)=>{let r=new SE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),vi.stat(n,(a,c)=>{if(a)u(a);else{let l=new Tv.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},CE=t=>new SE(t)});var TE=m((j2,RE)=>{"use strict";var Iv=li(),Do=to(),wE=xi(),FE=Eo(),xE=require("path");RE.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=Iv(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?Nv(i,e):i.file?kv(i,e,r):i.sync?Mv(i,e):qv(i,e)};var Nv=(t,e)=>{let r=new Do.Sync(t),i=new wE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),vE(r,e)},kv=(t,e,r)=>{let i=new Do(t),n=new wE.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 Ll(i,e),r?s.then(r,r):s},vE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?FE({file:xE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ll=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return FE({file:xE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ll(t,e));t.add(r)}t.end()},Mv=(t,e)=>{let r=new Do.Sync(t);return vE(r,e),r},qv=(t,e)=>{let r=new Do(t);return Ll(r,e),r}});var Il=m((W2,kE)=>{"use strict";var Hv=li(),OE=to(),Ge=require("fs"),BE=xi(),PE=Eo(),LE=require("path"),IE=Ei();kE.exports=(t,e,r)=>{let i=Hv(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?$v(i,e):Gv(i,e,r)};var $v=(t,e)=>{let r=new OE.Sync(t),i=!0,n,s;try{try{n=Ge.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Ge.openSync(t.file,"w+");else throw a}let o=Ge.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=Ge.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 IE(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,Uv(t,r,s,n,e)}finally{if(i)try{Ge.closeSync(n)}catch{}}},Uv=(t,e,r,i,n)=>{let s=new BE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),jv(e,n)},Gv=(t,e,r)=>{e=Array.from(e);let i=new OE(t),n=(o,u,a)=>{let c=(g,d)=>{g?Ge.close(o,D=>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 Ge.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 D=new IE(h);if(!D.cksumValid)return c(null,l);let y=512*Math.ceil(D.size/512);if(l+y+512>u||(l+=y+512,l>=u))return c(null,l);t.mtimeCache&&t.mtimeCache.set(D.path,D.mtime),f=0,Ge.read(o,h,0,512,l,E)};Ge.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+",Ge.open(t.file,a,c);if(l)return u(l);Ge.fstat(f,(h,E)=>{if(h)return Ge.close(f,()=>u(h));n(f,E.size,(g,d)=>{if(g)return u(g);let D=new BE.WriteStream(t.file,{fd:f,start:d});i.pipe(D),D.on("error",u),D.on("close",o),NE(i,e)})})};Ge.open(t.file,a,c)});return r?s.then(r,r):s},jv=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?PE({file:LE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},NE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return PE({file:LE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>NE(t,e));t.add(r)}t.end()}});var qE=m((z2,ME)=>{"use strict";var Wv=li(),zv=Il();ME.exports=(t,e,r)=>{let i=Wv(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),Yv(i),zv(i,e,r)};var Yv=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 UE=m((Y2,$E)=>{var{promisify:HE}=require("util"),fr=require("fs"),Kv=t=>{if(!t)t={mode:511,fs:fr};else if(typeof t=="object")t={mode:511,fs:fr,...t};else if(typeof t=="number")t={mode:t,fs:fr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:fr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||fr.mkdir,t.mkdirAsync=HE(t.mkdir),t.stat=t.stat||t.fs.stat||fr.stat,t.statAsync=HE(t.stat),t.statSync=t.statSync||t.fs.statSync||fr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||fr.mkdirSync,t};$E.exports=Kv});var jE=m((K2,GE)=>{var Vv=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Xv,parse:Zv}=require("path"),Jv=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=Xv(t),Vv==="win32"){let e=/[*|"<>?:]/,{root:r}=Zv(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};GE.exports=Jv});var VE=m((V2,KE)=>{var{dirname:WE}=require("path"),zE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?zE(t,WE(e),e):void 0),YE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?YE(t,WE(e),e):void 0}};KE.exports={findMade:zE,findMadeSync:YE}});var Ml=m((X2,ZE)=>{var{dirname:XE}=require("path"),Nl=(t,e,r)=>{e.recursive=!1;let i=XE(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 Nl(i,e).then(s=>Nl(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})})},kl=(t,e,r)=>{let i=XE(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 kl(t,e,kl(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};ZE.exports={mkdirpManual:Nl,mkdirpManualSync:kl}});var eD=m((Z2,QE)=>{var{dirname:JE}=require("path"),{findMade:Qv,findMadeSync:eR}=VE(),{mkdirpManual:tR,mkdirpManualSync:rR}=Ml(),iR=(t,e)=>(e.recursive=!0,JE(t)===t?e.mkdirAsync(t,e):Qv(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return tR(t,e);throw n}))),nR=(t,e)=>{if(e.recursive=!0,JE(t)===t)return e.mkdirSync(t,e);let i=eR(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return rR(t,e);throw n}};QE.exports={mkdirpNative:iR,mkdirpNativeSync:nR}});var nD=m((J2,iD)=>{var tD=require("fs"),sR=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ql=sR.replace(/^v/,"").split("."),rD=+ql[0]>10||+ql[0]==10&&+ql[1]>=12,oR=rD?t=>t.mkdir===tD.mkdir:()=>!1,uR=rD?t=>t.mkdirSync===tD.mkdirSync:()=>!1;iD.exports={useNative:oR,useNativeSync:uR}});var lD=m((Q2,cD)=>{var Ri=UE(),Ti=jE(),{mkdirpNative:sD,mkdirpNativeSync:oD}=eD(),{mkdirpManual:uD,mkdirpManualSync:aD}=Ml(),{useNative:aR,useNativeSync:cR}=nD(),Oi=(t,e)=>(t=Ti(t),e=Ri(e),aR(e)?sD(t,e):uD(t,e)),lR=(t,e)=>(t=Ti(t),e=Ri(e),cR(e)?oD(t,e):aD(t,e));Oi.sync=lR;Oi.native=(t,e)=>sD(Ti(t),Ri(e));Oi.manual=(t,e)=>uD(Ti(t),Ri(e));Oi.nativeSync=(t,e)=>oD(Ti(t),Ri(e));Oi.manualSync=(t,e)=>aD(Ti(t),Ri(e));cD.exports=Oi});var ED=m((eP,gD)=>{"use strict";var Je=require("fs"),Mr=require("path"),fR=Je.lchown?"lchown":"chown",hR=Je.lchownSync?"lchownSync":"chownSync",hD=Je.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),fD=(t,e,r)=>{try{return Je[hR](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},pR=(t,e,r)=>{try{return Je.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},dR=hD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Je.chown(t,e,r,i)}:(t,e,r,i)=>i,Hl=hD?(t,e,r)=>{try{return fD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;pR(t,e,r)}}:(t,e,r)=>fD(t,e,r),mR=process.version,pD=(t,e,r)=>Je.readdir(t,e,r),gR=(t,e)=>Je.readdirSync(t,e);/^v4\./.test(mR)&&(pD=(t,e,r)=>Je.readdir(t,r));var yo=(t,e,r,i)=>{Je[fR](t,e,r,dR(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},dD=(t,e,r,i,n)=>{if(typeof e=="string")return Je.lstat(Mr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,dD(t,o,r,i,n)});if(e.isDirectory())$l(Mr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Mr.resolve(t,e.name);yo(o,r,i,n)});else{let s=Mr.resolve(t,e.name);yo(s,r,i,n)}},$l=(t,e,r,i)=>{pD(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 yo(t,e,r,i);let o=s.length,u=null,a=c=>{if(!u){if(c)return i(u=c);if(--o===0)return yo(t,e,r,i)}};s.forEach(c=>dD(t,c,e,r,a))})},ER=(t,e,r,i)=>{if(typeof e=="string")try{let n=Je.lstatSync(Mr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&mD(Mr.resolve(t,e.name),r,i),Hl(Mr.resolve(t,e.name),r,i)},mD=(t,e,r)=>{let i;try{i=gR(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Hl(t,e,r);throw n}return i&&i.length&&i.forEach(n=>ER(t,n,e,r)),Hl(t,e,r)};gD.exports=$l;$l.sync=mD});var _D=m((tP,Ul)=>{"use strict";var DD=lD(),Qe=require("fs"),Ao=require("path"),yD=ED(),nt=mi(),_o=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},So=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Co=(t,e)=>t.get(nt(e)),dn=(t,e,r)=>t.set(nt(e),r),DR=(t,e)=>{Qe.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new So(t,r&&r.code||"ENOTDIR")),e(r)})};Ul.exports=(t,e,r)=>{t=nt(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=nt(e.cwd),E=(D,y)=>{D?r(D):(dn(f,t,!0),y&&a?yD(y,o,u,w=>E(w)):s?Qe.chmod(t,n,r):r())};if(f&&Co(f,t)===!0)return E();if(t===h)return DR(t,E);if(c)return DD(t,{mode:n}).then(D=>E(null,D),E);let d=nt(Ao.relative(h,t)).split("/");bo(h,d,n,f,l,h,null,E)};var bo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),c=nt(Ao.resolve(t+"/"+a));if(Co(i,c))return bo(c,e,r,i,n,s,o,u);Qe.mkdir(c,r,AD(c,e,r,i,n,s,o,u))},AD=(t,e,r,i,n,s,o,u)=>a=>{a?Qe.lstat(t,(c,l)=>{if(c)c.path=c.path&&nt(c.path),u(c);else if(l.isDirectory())bo(t,e,r,i,n,s,o,u);else if(n)Qe.unlink(t,f=>{if(f)return u(f);Qe.mkdir(t,r,AD(t,e,r,i,n,s,o,u))});else{if(l.isSymbolicLink())return u(new _o(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,bo(t,e,r,i,n,s,o,u))},yR=t=>{let e=!1,r="ENOTDIR";try{e=Qe.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new So(t,r)}};Ul.exports.sync=(t,e)=>{t=nt(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=nt(e.cwd),h=D=>{dn(l,t,!0),D&&u&&yD.sync(D,s,o),n&&Qe.chmodSync(t,i)};if(l&&Co(l,t)===!0)return h();if(t===f)return yR(f),h();if(a)return h(DD.sync(t,i));let g=nt(Ao.relative(f,t)).split("/"),d=null;for(let D=g.shift(),y=f;D&&(y+="/"+D);D=g.shift())if(y=nt(Ao.resolve(y)),!Co(l,y))try{Qe.mkdirSync(y,i),d=d||y,dn(l,y,!0)}catch{let B=Qe.lstatSync(y);if(B.isDirectory()){dn(l,y,!0);continue}else if(c){Qe.unlinkSync(y),Qe.mkdirSync(y,i),d=d||y,dn(l,y,!0);continue}else if(B.isSymbolicLink())return new _o(y,y+"/"+g.join("/"))}return h(d)}});var jl=m((rP,SD)=>{var Gl=Object.create(null),{hasOwnProperty:AR}=Object.prototype;SD.exports=t=>(AR.call(Gl,t)||(Gl[t]=t.normalize("NFKD")),Gl[t])});var FD=m((iP,wD)=>{var CD=require("assert"),_R=jl(),SR=Di(),{join:bD}=require("path"),CR=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,bR=CR==="win32";wD.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=bD(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);CD.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);CD(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=bR?["win32 parallelization disabled"]:c.map(h=>_R(SR(bD(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 RD=m((nP,vD)=>{var wR=process.env.__FAKE_PLATFORM__||process.platform,FR=wR==="win32",xR=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:vR,O_TRUNC:RR,O_WRONLY:TR,UV_FS_O_FILEMAP:xD=0}=xR.constants,OR=FR&&!!xD,BR=512*1024,PR=xD|RR|vR|TR;vD.exports=OR?t=>t<BR?PR:"w":()=>"w"});var Ql=m((sP,GD)=>{"use strict";var LR=require("assert"),IR=go(),z=require("fs"),NR=xi(),Ut=require("path"),HD=_D(),TD=Jc(),kR=FD(),MR=Qc(),je=mi(),qR=Di(),HR=jl(),OD=Symbol("onEntry"),Yl=Symbol("checkFs"),BD=Symbol("checkFs2"),xo=Symbol("pruneCache"),Kl=Symbol("isReusable"),et=Symbol("makeFs"),Vl=Symbol("file"),Xl=Symbol("directory"),vo=Symbol("link"),PD=Symbol("symlink"),LD=Symbol("hardlink"),ID=Symbol("unsupported"),ND=Symbol("checkPath"),hr=Symbol("mkdir"),ve=Symbol("onError"),wo=Symbol("pending"),kD=Symbol("pend"),Bi=Symbol("unpend"),Wl=Symbol("ended"),zl=Symbol("maybeClose"),Zl=Symbol("skip"),mn=Symbol("doChown"),gn=Symbol("uid"),En=Symbol("gid"),Dn=Symbol("checkedCwd"),$D=require("crypto"),UD=RD(),$R=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,yn=$R==="win32",UR=(t,e)=>{if(!yn)return z.unlink(t,e);let r=t+".DELETE."+$D.randomBytes(16).toString("hex");z.rename(t,r,i=>{if(i)return e(i);z.unlink(r,e)})},GR=t=>{if(!yn)return z.unlinkSync(t);let e=t+".DELETE."+$D.randomBytes(16).toString("hex");z.renameSync(t,e),z.unlinkSync(e)},MD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,qD=t=>HR(qR(je(t))).toLowerCase(),jR=(t,e)=>{e=qD(e);for(let r of t.keys()){let i=qD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},WR=t=>{for(let e of t.keys())t.delete(e)},An=class extends IR{constructor(e){if(e||(e={}),e.ondone=r=>{this[Wl]=!0,this[zl]()},super(e),this[Dn]=!1,this.reservations=kR(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[wo]=0,this[Wl]=!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||yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=je(Ut.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[OD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[zl](){this[Wl]&&this[wo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[ND](e){if(this.strip){let r=je(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=je(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=je(e.path),i=r.split("/");if(i.includes("..")||yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=MR(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Ut.isAbsolute(e.path)?e.absolute=je(Ut.resolve(e.path)):e.absolute=je(Ut.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:je(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}=Ut.win32.parse(e.absolute);e.absolute=r+TD.encode(e.absolute.slice(r.length));let{root:i}=Ut.win32.parse(e.path);e.path=i+TD.encode(e.path.slice(i.length))}return!0}[OD](e){if(!this[ND](e))return e.resume();switch(LR.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[Yl](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[ID](e)}}[ve](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Bi](),r.resume())}[hr](e,r,i){HD(je(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)}[mn](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}[gn](e){return MD(this.uid,e.uid,this.processUid)}[En](e){return MD(this.gid,e.gid,this.processGid)}[Vl](e,r){let i=e.mode&4095||this.fmode,n=new NR.WriteStream(e.absolute,{flags:UD(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&z.close(n.fd,()=>{}),n.write=()=>!0,this[ve](a,e),r()});let s=1,o=a=>{if(a){n.fd&&z.close(n.fd,()=>{}),this[ve](a,e),r();return}--s===0&&z.close(n.fd,c=>{c?this[ve](c,e):this[Bi](),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;z.futimes(l,f,h,E=>E?z.utimes(c,f,h,g=>o(g&&E)):o())}if(this[mn](e)){s++;let f=this[gn](e),h=this[En](e);z.fchown(l,f,h,E=>E?z.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[ve](a,e),r()}),e.pipe(u)),u.pipe(n)}[Xl](e,r){let i=e.mode&4095||this.dmode;this[hr](e.absolute,i,n=>{if(n){this[ve](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Bi](),e.resume())};e.mtime&&!this.noMtime&&(s++,z.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[mn](e)&&(s++,z.chown(e.absolute,this[gn](e),this[En](e),o)),o()})}[ID](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[PD](e,r){this[vo](e,e.linkpath,"symlink",r)}[LD](e,r){let i=je(Ut.resolve(this.cwd,e.linkpath));this[vo](e,i,"link",r)}[kD](){this[wo]++}[Bi](){this[wo]--,this[zl]()}[Zl](e){this[Bi](),e.resume()}[Kl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!yn}[Yl](e){this[kD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[BD](e,i))}[xo](e){e.type==="SymbolicLink"?WR(this.dirCache):e.type!=="Directory"&&jR(this.dirCache,e.absolute)}[BD](e,r){this[xo](e);let i=u=>{this[xo](e),r(u)},n=()=>{this[hr](this.cwd,this.dmode,u=>{if(u){this[ve](u,e),i();return}this[Dn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=je(Ut.dirname(e.absolute));if(u!==this.cwd)return this[hr](u,this.dmode,a=>{if(a){this[ve](a,e),i();return}o()})}o()},o=()=>{z.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[Zl](e),i();return}if(u||this[Kl](e,a))return this[et](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,l=f=>this[et](f,e,i);return c?z.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return z.rmdir(e.absolute,c=>this[et](c,e,i))}if(e.absolute===this.cwd)return this[et](null,e,i);UR(e.absolute,c=>this[et](c,e,i))})};this[Dn]?s():n()}[et](e,r,i){if(e){this[ve](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Vl](r,i);case"Link":return this[LD](r,i);case"SymbolicLink":return this[PD](r,i);case"Directory":case"GNUDumpDir":return this[Xl](r,i)}}[vo](e,r,i,n){z[i](r,e.absolute,s=>{s?this[ve](s,e):(this[Bi](),e.resume()),n()})}},Fo=t=>{try{return[null,t()]}catch(e){return[e,null]}},Jl=class extends An{[et](e,r){return super[et](e,r,()=>{})}[Yl](e){if(this[xo](e),!this[Dn]){let s=this[hr](this.cwd,this.dmode);if(s)return this[ve](s,e);this[Dn]=!0}if(e.absolute!==this.cwd){let s=je(Ut.dirname(e.absolute));if(s!==this.cwd){let o=this[hr](s,this.dmode);if(o)return this[ve](o,e)}}let[r,i]=Fo(()=>z.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Zl](e);if(r||this[Kl](e,i))return this[et](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Fo(()=>{z.chmodSync(e.absolute,e.mode)}):[];return this[et](u,e)}let[s]=Fo(()=>z.rmdirSync(e.absolute));this[et](s,e)}let[n]=e.absolute===this.cwd?[]:Fo(()=>GR(e.absolute));this[et](n,e)}[Vl](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{z.closeSync(s)}catch(c){a=c}(u||a)&&this[ve](u||a,e),r()},s;try{s=z.openSync(e.absolute,UD(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[ve](u,e)),e.pipe(o)),o.on("data",u=>{try{z.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{z.futimesSync(s,c,l)}catch(f){try{z.utimesSync(e.absolute,c,l)}catch{a=f}}}if(this[mn](e)){let c=this[gn](e),l=this[En](e);try{z.fchownSync(s,c,l)}catch(f){try{z.chownSync(e.absolute,c,l)}catch{a=a||f}}}n(a)})}[Xl](e,r){let i=e.mode&4095||this.dmode,n=this[hr](e.absolute,i);if(n){this[ve](n,e),r();return}if(e.mtime&&!this.noMtime)try{z.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[mn](e))try{z.chownSync(e.absolute,this[gn](e),this[En](e))}catch{}r(),e.resume()}[hr](e,r){try{return HD.sync(je(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}}[vo](e,r,i,n){try{z[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[ve](s,e)}}};An.Sync=Jl;GD.exports=An});var KD=m((oP,YD)=>{"use strict";var zR=li(),Ro=Ql(),WD=require("fs"),zD=xi(),jD=require("path"),ef=Di();YD.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=zR(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&&YR(i,e),i.file&&i.sync?KR(i):i.file?VR(i,r):i.sync?XR(i):ZR(i)};var YR=(t,e)=>{let r=new Map(e.map(s=>[ef(s),!0])),i=t.filter,n=(s,o)=>{let u=o||jD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(jD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(ef(s)):s=>n(ef(s))},KR=t=>{let e=new Ro.Sync(t),r=t.file,i=WD.statSync(r),n=t.maxReadSize||16*1024*1024;new zD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},VR=(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),WD.stat(n,(a,c)=>{if(a)u(a);else{let l=new zD.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},XR=t=>new Ro.Sync(t),ZR=t=>new Ro(t)});var VD=m(de=>{"use strict";de.c=de.create=TE();de.r=de.replace=Il();de.t=de.list=Eo();de.u=de.update=qE();de.x=de.extract=KD();de.Pack=to();de.Unpack=Ql();de.Parse=go();de.ReadEntry=Ms();de.WriteEntry=cl();de.Header=Ei();de.Pax=Hs();de.types=Wc()});var ty=m((fP,ey)=>{function tt(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))}ey.exports=tt;tt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};tt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};tt.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};tt.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)};tt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};tt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};tt.prototype.start=tt.prototype.try;tt.prototype.errors=function(){return this._errors};tt.prototype.attempts=function(){return this._attempts};tt.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 ry=m(qr=>{var tT=ty();qr.operation=function(t){var e=qr.timeouts(t);return new tT(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};qr.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};qr.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};qr.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=qr.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 ny=m((pP,iy)=>{iy.exports=ry()});var oy=m((dP,sy)=>{var rT=ny();function iT(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=rT.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)}sy.exports=iT});var ET={};nf(ET,{default:()=>gT,fixGlobPattern:()=>dy,transformer:()=>py});module.exports=_y(ET);var ly=K(require("path")),fy=require("fs-extra");var Sy=K(ff());function No(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Li(t){return Li=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},Li(t)}function ko(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mo(t,e){if(e&&(Li(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ko(t)}function dr(t){return dr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dr(t)}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},St(t,e)}function qo(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&&St(t,e)}function Ho(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $o(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hr(t,e,r){return $o()?Hr=Reflect.construct.bind():Hr=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),c=new a;return o&&St(c,o.prototype),c},Hr.apply(null,arguments)}function Ii(t){var e=typeof Map=="function"?new Map:void 0;return Ii=function(i){if(i===null||!Ho(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 Hr(i,arguments,dr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),St(n,i)},Ii(t)}var Uo=K(require("find-up")),wn=K(require("path")),Fn=K(require("fs-extra")),Cy=function(t){qo(e,t);function e(r){var i;return No(this,e),i=Mo(this,dr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Ii(Error));function by(t,e){try{var r=Fn.default.readJsonSync(wn.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function wy(t){try{var e=Fn.default.readJsonSync(wn.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function Fy(t){var e=Fn.default.existsSync(wn.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function hf(t){var e={current:void 0},r=(0,Uo.sync)(function(i){return[wy(i),by(i,e),Fy(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new Cy(t);return r===void 0?e.current:r}var xy=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,vy=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Ry=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Go={Space_Separator:xy,ID_Start:vy,ID_Continue:Ry},oe={isSpaceSeparator(t){return typeof t=="string"&&Go.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Go.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Go.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Wo,Oe,bt,vn,Gt,rt,me,Ko,ki,Ty=function(e,r){Wo=String(e),Oe="start",bt=[],vn=0,Gt=1,rt=0,me=void 0,Ko=void 0,ki=void 0;do me=Oy(),Ly[Oe]();while(me.type!=="eof");return typeof r=="function"?zo({"":ki},"",r):ki};function zo(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let s=String(n),o=zo(i,s,r);o===void 0?delete i[s]:Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let s=zo(i,n,r);s===void 0?delete i[n]:Object.defineProperty(i,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var H,M,Ni,Ct,G;function Oy(){for(H="default",M="",Ni=!1,Ct=1;;){G=wt();let t=df[H]();if(t)return t}}function wt(){if(Wo[vn])return String.fromCodePoint(Wo.codePointAt(vn))}function S(){let t=wt();return t===`
|
6
|
+
`);return D?(i.originalMessage=i.message,i.message=w):i=new Error(w),i.shortMessage=y,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};E0.exports=lF});var A0=m((ZB,cc)=>{"use strict";var gs=["stdin","stdout","stderr"],fF=t=>gs.some(e=>t[e]!==void 0),y0=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return gs.map(i=>t[i]);if(fF(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${gs.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,gs.length);return Array.from({length:r},(i,n)=>e[n])};cc.exports=y0;cc.exports.node=t=>{let e=y0(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var _0=m((QB,Es)=>{Es.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Es.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Es.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var F0=m((JB,ai)=>{var ne=global.process,wr=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"};wr(ne)?(S0=require("assert"),oi=_0(),C0=/^win/i.test(ne.platform),Zi=require("events"),typeof Zi!="function"&&(Zi=Zi.EventEmitter),ne.__signal_exit_emitter__?ge=ne.__signal_exit_emitter__:(ge=ne.__signal_exit_emitter__=new Zi,ge.count=0,ge.emitted={}),ge.infinite||(ge.setMaxListeners(1/0),ge.infinite=!0),ai.exports=function(t,e){if(!wr(global.process))return function(){};S0.equal(typeof t,"function","a callback must be provided for exit handler"),ui===!1&&lc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ge.removeListener(r,t),ge.listeners("exit").length===0&&ge.listeners("afterexit").length===0&&Ds()};return ge.on(r,t),i},Ds=function(){!ui||!wr(global.process)||(ui=!1,oi.forEach(function(e){try{ne.removeListener(e,ys[e])}catch{}}),ne.emit=As,ne.reallyExit=fc,ge.count-=1)},ai.exports.unload=Ds,Fr=function(e,r,i){ge.emitted[e]||(ge.emitted[e]=!0,ge.emit(e,r,i))},ys={},oi.forEach(function(t){ys[t]=function(){if(wr(global.process)){var r=ne.listeners(t);r.length===ge.count&&(Ds(),Fr("exit",null,t),Fr("afterexit",null,t),C0&&t==="SIGHUP"&&(t="SIGINT"),ne.kill(ne.pid,t))}}}),ai.exports.signals=function(){return oi},ui=!1,lc=function(){ui||!wr(global.process)||(ui=!0,ge.count+=1,oi=oi.filter(function(e){try{return ne.on(e,ys[e]),!0}catch{return!1}}),ne.emit=w0,ne.reallyExit=b0)},ai.exports.load=lc,fc=ne.reallyExit,b0=function(e){wr(global.process)&&(ne.exitCode=e||0,Fr("exit",ne.exitCode,null),Fr("afterexit",ne.exitCode,null),fc.call(ne,ne.exitCode))},As=ne.emit,w0=function(e,r){if(e==="exit"&&wr(global.process)){r!==void 0&&(ne.exitCode=r);var i=As.apply(this,arguments);return Fr("exit",ne.exitCode,null),Fr("afterexit",ne.exitCode,null),i}else return As.apply(this,arguments)}):ai.exports=function(){return function(){}};var S0,oi,C0,Zi,ge,Ds,Fr,ys,ui,lc,fc,b0,As,w0});var v0=m((e2,x0)=>{"use strict";var hF=require("os"),pF=F0(),dF=1e3*5,mF=(t,e="SIGTERM",r={})=>{let i=t(e);return gF(t,e,r,i),i},gF=(t,e,r,i)=>{if(!EF(e,r,i))return;let n=yF(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},EF=(t,{forceKillAfterTimeout:e},r)=>DF(t)&&e!==!1&&r,DF=t=>t===hF.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yF=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dF;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},AF=(t,e)=>{t.kill()&&(e.isCanceled=!0)},_F=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},SF=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{_F(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},CF=({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})`)},bF=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=pF(()=>{t.kill()});return i.finally(()=>{n()})};x0.exports={spawnedKill:mF,spawnedCancel:AF,setupTimeout:SF,validateTimeout:CF,setExitHandler:bF}});var T0=m((t2,R0)=>{"use strict";var ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ht.writable=t=>ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ht.readable=t=>ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ht.duplex=t=>ht.writable(t)&&ht.readable(t);ht.transform=t=>ht.duplex(t)&&typeof t._transform=="function";R0.exports=ht});var B0=m((r2,O0)=>{"use strict";var{PassThrough:wF}=require("stream");O0.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 wF({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 P0=m((i2,Qi)=>{"use strict";var{constants:FF}=require("buffer"),xF=require("stream"),{promisify:vF}=require("util"),RF=B0(),TF=vF(xF.pipeline),_s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function hc(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=RF(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=FF.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await TF(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new _s)})}),i.getBufferedValue()}Qi.exports=hc;Qi.exports.buffer=(t,e)=>hc(t,{...e,encoding:"buffer"});Qi.exports.array=(t,e)=>hc(t,{...e,array:!0});Qi.exports.MaxBufferError=_s});var I0=m((n2,L0)=>{"use strict";var{PassThrough:OF}=require("stream");L0.exports=function(){var t=[],e=new OF({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 q0=m((s2,M0)=>{"use strict";var k0=T0(),N0=P0(),BF=I0(),PF=(t,e)=>{e===void 0||t.stdin===void 0||(k0(e)?e.pipe(t.stdin):t.stdin.end(e))},LF=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=BF();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},pc=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},dc=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?N0(t,{encoding:e,maxBuffer:i}):N0.buffer(t,{maxBuffer:i})},IF=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=dc(t,{encoding:i,buffer:n,maxBuffer:s}),a=dc(e,{encoding:i,buffer:n,maxBuffer:s}),c=dc(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},pc(t,u),pc(e,a),pc(r,c)])}},NF=({input:t})=>{if(k0(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};M0.exports={handleInput:PF,makeAllStream:LF,getSpawnedResult:IF,validateInputSync:NF}});var $0=m((o2,H0)=>{"use strict";var kF=(async()=>{})().constructor.prototype,MF=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(kF,t)]),qF=(t,e)=>{for(let[r,i]of MF){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},HF=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)})});H0.exports={mergePromise:qF,getSpawnedPromise:HF}});var j0=m((u2,G0)=>{"use strict";var U0=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],$F=/^[\w.-]+$/,UF=/"/g,GF=t=>typeof t!="string"||$F.test(t)?t:`"${t.replace(UF,'\\"')}"`,jF=(t,e)=>U0(t,e).join(" "),WF=(t,e)=>U0(t,e).map(r=>GF(r)).join(" "),zF=/ +/g,YF=t=>{let e=[];for(let r of t.trim().split(zF)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};G0.exports={joinCommand:jF,getEscapedCommand:WF,parseCommand:YF}});var Z0=m((a2,ci)=>{"use strict";var KF=require("path"),mc=require("child_process"),VF=t0(),XF=i0(),ZF=o0(),QF=l0(),Ss=D0(),z0=A0(),{spawnedKill:JF,spawnedCancel:ex,setupTimeout:tx,validateTimeout:rx,setExitHandler:ix}=v0(),{handleInput:nx,getSpawnedResult:sx,makeAllStream:ox,validateInputSync:ux}=q0(),{mergePromise:W0,getSpawnedPromise:ax}=$0(),{joinCommand:Y0,parseCommand:K0,getEscapedCommand:V0}=j0(),cx=1e3*1e3*100,lx=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?ZF.env({env:s,cwd:i,execPath:n}):s},X0=(t,e,r={})=>{let i=VF._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:cx,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=lx(r),r.stdio=z0(r),process.platform==="win32"&&KF.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Ji=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?XF(e):e,Cs=(t,e,r)=>{let i=X0(t,e,r),n=Y0(t,e),s=V0(t,e);rx(i.options);let o;try{o=mc.spawn(i.file,i.args,i.options)}catch(E){let g=new mc.ChildProcess,d=Promise.reject(Ss({error:E,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return W0(g,d)}let u=ax(o),a=tx(o,i.options,u),c=ix(o,i.options,a),l={isCanceled:!1};o.kill=JF.bind(null,o.kill.bind(o)),o.cancel=ex.bind(null,o,l);let h=QF(async()=>{let[{error:E,exitCode:g,signal:d,timedOut:D},y,w,B]=await sx(o,i.options,c),q=Ji(i.options,y),v=Ji(i.options,w),$=Ji(i.options,B);if(E||g!==0||d!==null){let L=Ss({error:E,exitCode:g,signal:d,stdout:q,stderr:v,all:$,command:n,escapedCommand:s,parsed:i,timedOut:D,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:q,stderr:v,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nx(o,i.options.input),o.all=ox(o,i.options),W0(o,h)};ci.exports=Cs;ci.exports.sync=(t,e,r)=>{let i=X0(t,e,r),n=Y0(t,e),s=V0(t,e);ux(i.options);let o;try{o=mc.spawnSync(i.file,i.args,i.options)}catch(c){throw Ss({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Ji(i.options,o.stdout,o.error),a=Ji(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Ss({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}};ci.exports.command=(t,e)=>{let[r,...i]=K0(t);return Cs(r,i,e)};ci.exports.commandSync=(t,e)=>{let[r,...i]=K0(t);return Cs.sync(r,i,e)};ci.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=z0.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Cs(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var li=m((p2,eg)=>{"use strict";var J0=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"]]);eg.exports=t=>t?Object.keys(t).map(e=>[J0.has(e)?J0.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Rs=m((d2,cg)=>{"use strict";var tg=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ex=require("events"),rg=require("stream"),ig=require("string_decoder").StringDecoder,Tt=Symbol("EOF"),Ot=Symbol("maybeEmitEnd"),er=Symbol("emittedEnd"),bs=Symbol("emittingEnd"),en=Symbol("emittedError"),ws=Symbol("closed"),ng=Symbol("read"),Fs=Symbol("flush"),sg=Symbol("flushChunk"),Ie=Symbol("encoding"),Bt=Symbol("decoder"),xs=Symbol("flowing"),tn=Symbol("paused"),fi=Symbol("resume"),ae=Symbol("buffer"),pt=Symbol("pipes"),Ee=Symbol("bufferLength"),gc=Symbol("bufferPush"),Ec=Symbol("bufferShift"),be=Symbol("objectMode"),we=Symbol("destroyed"),Dc=Symbol("emitData"),og=Symbol("emitEnd"),yc=Symbol("emitEnd2"),Pt=Symbol("async"),rn=t=>Promise.resolve().then(t),ug=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Dx=ug&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),yx=ug&&Symbol.iterator||Symbol("iterator not implemented"),Ax=t=>t==="end"||t==="finish"||t==="prefinish",_x=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Sx=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),vs=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[fi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ac=class extends vs{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)}};cg.exports=class ag extends rg{constructor(e){super(),this[xs]=!1,this[tn]=!1,this[pt]=[],this[ae]=[],this[be]=e&&e.objectMode||!1,this[be]?this[Ie]=null:this[Ie]=e&&e.encoding||null,this[Ie]==="buffer"&&(this[Ie]=null),this[Pt]=e&&!!e.async||!1,this[Bt]=this[Ie]?new ig(this[Ie]):null,this[Tt]=!1,this[er]=!1,this[bs]=!1,this[ws]=!1,this[en]=null,this.writable=!0,this.readable=!0,this[Ee]=0,this[we]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ae]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[pt]})}get bufferLength(){return this[Ee]}get encoding(){return this[Ie]}set encoding(e){if(this[be])throw new Error("cannot set encoding in objectMode");if(this[Ie]&&e!==this[Ie]&&(this[Bt]&&this[Bt].lastNeed||this[Ee]))throw new Error("cannot change encoding");this[Ie]!==e&&(this[Bt]=e?new ig(e):null,this[ae].length&&(this[ae]=this[ae].map(r=>this[Bt].write(r)))),this[Ie]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[be]}set objectMode(e){this[be]=this[be]||!!e}get async(){return this[Pt]}set async(e){this[Pt]=this[Pt]||!!e}write(e,r,i){if(this[Tt])throw new Error("write after end");if(this[we])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[Pt]?rn:s=>s();return!this[be]&&!Buffer.isBuffer(e)&&(Sx(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):_x(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[be]?(this.flowing&&this[Ee]!==0&&this[Fs](!0),this.flowing?this.emit("data",e):this[gc](e),this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ie]&&!this[Bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ie]&&(e=this[Bt].write(e)),this.flowing&&this[Ee]!==0&&this[Fs](!0),this.flowing?this.emit("data",e):this[gc](e),this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[we])return null;if(this[Ee]===0||e===0||e>this[Ee])return this[Ot](),null;this[be]&&(e=null),this[ae].length>1&&!this[be]&&(this.encoding?this[ae]=[this[ae].join("")]:this[ae]=[Buffer.concat(this[ae],this[Ee])]);let r=this[ng](e||null,this[ae][0]);return this[Ot](),r}[ng](e,r){return e===r.length||e===null?this[Ec]():(this[ae][0]=r.slice(e),r=r.slice(0,e),this[Ee]-=e),this.emit("data",r),!this[ae].length&&!this[Tt]&&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[Tt]=!0,this.writable=!1,(this.flowing||!this[tn])&&this[Ot](),this}[fi](){this[we]||(this[tn]=!1,this[xs]=!0,this.emit("resume"),this[ae].length?this[Fs]():this[Tt]?this[Ot]():this.emit("drain"))}resume(){return this[fi]()}pause(){this[xs]=!1,this[tn]=!0}get destroyed(){return this[we]}get flowing(){return this[xs]}get paused(){return this[tn]}[gc](e){this[be]?this[Ee]+=1:this[Ee]+=e.length,this[ae].push(e)}[Ec](){return this[ae].length&&(this[be]?this[Ee]-=1:this[Ee]-=this[ae][0].length),this[ae].shift()}[Fs](e){do;while(this[sg](this[Ec]()));!e&&!this[ae].length&&!this[Tt]&&this.emit("drain")}[sg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[we])return;let i=this[er];return r=r||{},e===tg.stdout||e===tg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[pt].push(r.proxyErrors?new Ac(this,e,r):new vs(this,e,r)),this[Pt]?rn(()=>this[fi]()):this[fi]()),e}unpipe(e){let r=this[pt].find(i=>i.dest===e);r&&(this[pt].splice(this[pt].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[pt].length&&!this.flowing?this[fi]():e==="readable"&&this[Ee]!==0?super.emit("readable"):Ax(e)&&this[er]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[en]&&(this[Pt]?rn(()=>r.call(this,this[en])):r.call(this,this[en])),i}get emittedEnd(){return this[er]}[Ot](){!this[bs]&&!this[er]&&!this[we]&&this[ae].length===0&&this[Tt]&&(this[bs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ws]&&this.emit("close"),this[bs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==we&&this[we])return;if(e==="data")return r?this[Pt]?rn(()=>this[Dc](r)):this[Dc](r):!1;if(e==="end")return this[og]();if(e==="close"){if(this[ws]=!0,!this[er]&&!this[we])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[en]=r;let s=super.emit("error",r);return this[Ot](),s}else if(e==="resume"){let s=super.emit("resume");return this[Ot](),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[Ot](),n}[Dc](e){for(let i of this[pt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ot](),r}[og](){this[er]||(this[er]=!0,this.readable=!1,this[Pt]?rn(()=>this[yc]()):this[yc]())}[yc](){if(this[Bt]){let r=this[Bt].end();if(r){for(let i of this[pt])i.dest.write(r);super.emit("data",r)}}for(let r of this[pt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ie]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(we,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Dx](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Tt])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[Tt]})},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(we,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[yx](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[we]?(e?this.emit("error",e):this.emit(we),this):(this[we]=!0,this[ae].length=0,this[Ee]=0,typeof this.close=="function"&&!this[ws]&&this.close(),e?this.emit("error",e):this.emit(we),this)}static isStream(e){return!!e&&(e instanceof ag||e instanceof rg||e instanceof Ex&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var fg=m((m2,lg)=>{var Cx=require("zlib").constants||{ZLIB_VERNUM:4736};lg.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},Cx))});var Fc=m((g2,Ag)=>{"use strict";var hg=typeof process=="object"&&process?process:{stdout:null,stderr:null},bx=require("events"),pg=require("stream"),dg=require("string_decoder").StringDecoder,Lt=Symbol("EOF"),It=Symbol("maybeEmitEnd"),tr=Symbol("emittedEnd"),Ts=Symbol("emittingEnd"),nn=Symbol("emittedError"),Os=Symbol("closed"),mg=Symbol("read"),Bs=Symbol("flush"),gg=Symbol("flushChunk"),Ne=Symbol("encoding"),Nt=Symbol("decoder"),Ps=Symbol("flowing"),sn=Symbol("paused"),hi=Symbol("resume"),De=Symbol("bufferLength"),_c=Symbol("bufferPush"),Sc=Symbol("bufferShift"),Fe=Symbol("objectMode"),xe=Symbol("destroyed"),Cc=Symbol("emitData"),Eg=Symbol("emitEnd"),bc=Symbol("emitEnd2"),kt=Symbol("async"),on=t=>Promise.resolve().then(t),Dg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",wx=Dg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Fx=Dg&&Symbol.iterator||Symbol("iterator not implemented"),xx=t=>t==="end"||t==="finish"||t==="prefinish",vx=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Rx=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ls=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[hi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},wc=class extends Ls{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Ag.exports=class yg extends pg{constructor(e){super(),this[Ps]=!1,this[sn]=!1,this.pipes=[],this.buffer=[],this[Fe]=e&&e.objectMode||!1,this[Fe]?this[Ne]=null:this[Ne]=e&&e.encoding||null,this[Ne]==="buffer"&&(this[Ne]=null),this[kt]=e&&!!e.async||!1,this[Nt]=this[Ne]?new dg(this[Ne]):null,this[Lt]=!1,this[tr]=!1,this[Ts]=!1,this[Os]=!1,this[nn]=null,this.writable=!0,this.readable=!0,this[De]=0,this[xe]=!1}get bufferLength(){return this[De]}get encoding(){return this[Ne]}set encoding(e){if(this[Fe])throw new Error("cannot set encoding in objectMode");if(this[Ne]&&e!==this[Ne]&&(this[Nt]&&this[Nt].lastNeed||this[De]))throw new Error("cannot change encoding");this[Ne]!==e&&(this[Nt]=e?new dg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Nt].write(r)))),this[Ne]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Fe]}set objectMode(e){this[Fe]=this[Fe]||!!e}get async(){return this[kt]}set async(e){this[kt]=this[kt]||!!e}write(e,r,i){if(this[Lt])throw new Error("write after end");if(this[xe])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[kt]?on:s=>s();return!this[Fe]&&!Buffer.isBuffer(e)&&(Rx(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):vx(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Fe]?(this.flowing&&this[De]!==0&&this[Bs](!0),this.flowing?this.emit("data",e):this[_c](e),this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ne]&&!this[Nt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ne]&&(e=this[Nt].write(e)),this.flowing&&this[De]!==0&&this[Bs](!0),this.flowing?this.emit("data",e):this[_c](e),this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[xe])return null;if(this[De]===0||e===0||e>this[De])return this[It](),null;this[Fe]&&(e=null),this.buffer.length>1&&!this[Fe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[De])]);let r=this[mg](e||null,this.buffer[0]);return this[It](),r}[mg](e,r){return e===r.length||e===null?this[Sc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[De]-=e),this.emit("data",r),!this.buffer.length&&!this[Lt]&&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[Lt]=!0,this.writable=!1,(this.flowing||!this[sn])&&this[It](),this}[hi](){this[xe]||(this[sn]=!1,this[Ps]=!0,this.emit("resume"),this.buffer.length?this[Bs]():this[Lt]?this[It]():this.emit("drain"))}resume(){return this[hi]()}pause(){this[Ps]=!1,this[sn]=!0}get destroyed(){return this[xe]}get flowing(){return this[Ps]}get paused(){return this[sn]}[_c](e){this[Fe]?this[De]+=1:this[De]+=e.length,this.buffer.push(e)}[Sc](){return this.buffer.length&&(this[Fe]?this[De]-=1:this[De]-=this.buffer[0].length),this.buffer.shift()}[Bs](e){do;while(this[gg](this[Sc]()));!e&&!this.buffer.length&&!this[Lt]&&this.emit("drain")}[gg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[xe])return;let i=this[tr];return r=r||{},e===hg.stdout||e===hg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new wc(this,e,r):new Ls(this,e,r)),this[kt]?on(()=>this[hi]()):this[hi]()),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[hi]():e==="readable"&&this[De]!==0?super.emit("readable"):xx(e)&&this[tr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[nn]&&(this[kt]?on(()=>r.call(this,this[nn])):r.call(this,this[nn])),i}get emittedEnd(){return this[tr]}[It](){!this[Ts]&&!this[tr]&&!this[xe]&&this.buffer.length===0&&this[Lt]&&(this[Ts]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Os]&&this.emit("close"),this[Ts]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return;if(e==="data")return r?this[kt]?on(()=>this[Cc](r)):this[Cc](r):!1;if(e==="end")return this[Eg]();if(e==="close"){if(this[Os]=!0,!this[tr]&&!this[xe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[nn]=r;let s=super.emit("error",r);return this[It](),s}else if(e==="resume"){let s=super.emit("resume");return this[It](),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[It](),n}[Cc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[It](),r}[Eg](){this[tr]||(this[tr]=!0,this.readable=!1,this[kt]?on(()=>this[bc]()):this[bc]())}[bc](){if(this[Nt]){let r=this[Nt].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[Fe]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Fe]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this[Ne]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[wx](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Lt])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[Lt]})},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(xe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Fx](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[xe]?(e?this.emit("error",e):this.emit(xe),this):(this[xe]=!0,this.buffer.length=0,this[De]=0,typeof this.close=="function"&&!this[Os]&&this.close(),e?this.emit("error",e):this.emit(xe),this)}static isStream(e){return!!e&&(e instanceof yg||e instanceof pg||e instanceof bx&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Uc=m($e=>{"use strict";var Oc=require("assert"),rr=require("buffer").Buffer,Cg=require("zlib"),xr=$e.constants=fg(),Tx=Fc(),_g=rr.concat,vr=Symbol("_superWrite"),di=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"}},Ox=Symbol("opts"),un=Symbol("flushFlag"),Sg=Symbol("finishFlushFlag"),$c=Symbol("fullFlushFlag"),Q=Symbol("handle"),Is=Symbol("onError"),pi=Symbol("sawError"),xc=Symbol("level"),vc=Symbol("strategy"),Rc=Symbol("ended"),E2=Symbol("_defaultFullFlush"),Ns=class extends Tx{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[pi]=!1,this[Rc]=!1,this[Ox]=e,this[un]=e.flush,this[Sg]=e.finishFlush;try{this[Q]=new Cg[r](e)}catch(i){throw new di(i)}this[Is]=i=>{this[pi]||(this[pi]=!0,this.close(),this.emit("error",i))},this[Q].on("error",i=>this[Is](new di(i))),this.once("end",()=>this.close)}close(){this[Q]&&(this[Q].close(),this[Q]=null,this.emit("close"))}reset(){if(!this[pi])return Oc(this[Q],"zlib binding closed"),this[Q].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[$c]),this.write(Object.assign(rr.alloc(0),{[un]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Sg]),this[Rc]=!0,super.end(null,null,i)}get ended(){return this[Rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=rr.from(e,r)),this[pi])return;Oc(this[Q],"zlib binding closed");let n=this[Q]._handle,s=n.close;n.close=()=>{};let o=this[Q].close;this[Q].close=()=>{},rr.concat=c=>c;let u;try{let c=typeof e[un]=="number"?e[un]:this[un];u=this[Q]._processChunk(e,c),rr.concat=_g}catch(c){rr.concat=_g,this[Is](new di(c))}finally{this[Q]&&(this[Q]._handle=n,n.close=s,this[Q].close=o,this[Q].removeAllListeners("error"))}this[Q]&&this[Q].on("error",c=>this[Is](new di(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[vr](rr.from(u[0]));for(let c=1;c<u.length;c++)a=this[vr](u[c])}else a=this[vr](rr.from(u));return i&&i(),a}[vr](e){return super.write(e)}},Mt=class extends Ns{constructor(e,r){e=e||{},e.flush=e.flush||xr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||xr.Z_FINISH,super(e,r),this[$c]=xr.Z_FULL_FLUSH,this[xc]=e.level,this[vc]=e.strategy}params(e,r){if(!this[pi]){if(!this[Q])throw new Error("cannot switch params when binding is closed");if(!this[Q].params)throw new Error("not supported in this implementation");if(this[xc]!==e||this[vc]!==r){this.flush(xr.Z_SYNC_FLUSH),Oc(this[Q],"zlib binding closed");let i=this[Q].flush;this[Q].flush=(n,s)=>{this.flush(n),s()};try{this[Q].params(e,r)}finally{this[Q].flush=i}this[Q]&&(this[xc]=e,this[vc]=r)}}}},Bc=class extends Mt{constructor(e){super(e,"Deflate")}},Pc=class extends Mt{constructor(e){super(e,"Inflate")}},Tc=Symbol("_portable"),Lc=class extends Mt{constructor(e){super(e,"Gzip"),this[Tc]=e&&!!e.portable}[vr](e){return this[Tc]?(this[Tc]=!1,e[9]=255,super[vr](e)):super[vr](e)}},Ic=class extends Mt{constructor(e){super(e,"Gunzip")}},Nc=class extends Mt{constructor(e){super(e,"DeflateRaw")}},kc=class extends Mt{constructor(e){super(e,"InflateRaw")}},Mc=class extends Mt{constructor(e){super(e,"Unzip")}},ks=class extends Ns{constructor(e,r){e=e||{},e.flush=e.flush||xr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||xr.BROTLI_OPERATION_FINISH,super(e,r),this[$c]=xr.BROTLI_OPERATION_FLUSH}},qc=class extends ks{constructor(e){super(e,"BrotliCompress")}},Hc=class extends ks{constructor(e){super(e,"BrotliDecompress")}};$e.Deflate=Bc;$e.Inflate=Pc;$e.Gzip=Lc;$e.Gunzip=Ic;$e.DeflateRaw=Nc;$e.InflateRaw=kc;$e.Unzip=Mc;typeof Cg.BrotliCompress=="function"?($e.BrotliCompress=qc,$e.BrotliDecompress=Hc):$e.BrotliCompress=$e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var mi=m((A2,bg)=>{var Bx=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;bg.exports=Bx!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Ms=m((S2,wg)=>{"use strict";var Px=Rs(),Gc=mi(),jc=Symbol("slurp");wg.exports=class extends Px{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Gc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Gc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[jc](r),i&&this[jc](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))}[jc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Gc(e[i]):e[i])}}});var Wc=m(qs=>{"use strict";qs.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"]]);qs.code=new Map(Array.from(qs.name).map(t=>[t[1],t[0]]))});var Rg=m((b2,vg)=>{"use strict";var Lx=(t,e)=>{if(Number.isSafeInteger(t))t<0?Nx(t,e):Ix(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Ix=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},Nx=(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]=Fg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=xg(n))}},kx=t=>{let e=t[0],r=e===128?qx(t.slice(1,t.length)):e===255?Mx(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},Mx=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Fg(s):s===0?o=s:(i=!0,o=xg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},qx=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},Fg=t=>(255^t)&255,xg=t=>(255^t)+1&255;vg.exports={encode:Lx,parse:kx}});var Ei=m((w2,Og)=>{"use strict";var zc=Wc(),gi=require("path").posix,Tg=Rg(),Yc=Symbol("slurp"),Ue=Symbol("type"),Xc=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[Ue]="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=Rr(e,r,100),this.mode=ir(e,r+100,8),this.uid=ir(e,r+108,8),this.gid=ir(e,r+116,8),this.size=ir(e,r+124,12),this.mtime=Kc(e,r+136,12),this.cksum=ir(e,r+148,12),this[Yc](i),this[Yc](n,!0),this[Ue]=Rr(e,r+156,1),this[Ue]===""&&(this[Ue]="0"),this[Ue]==="0"&&this.path.slice(-1)==="/"&&(this[Ue]="5"),this[Ue]==="5"&&(this.size=0),this.linkpath=Rr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Rr(e,r+265,32),this.gname=Rr(e,r+297,32),this.devmaj=ir(e,r+329,8),this.devmin=ir(e,r+337,8),e[r+475]!==0){let o=Rr(e,r+345,155);this.path=o+"/"+this.path}else{let o=Rr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Kc(e,r+476,12),this.ctime=Kc(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)}[Yc](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=Hx(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Tr(e,r,100,s)||this.needPax,this.needPax=nr(e,r+100,8,this.mode)||this.needPax,this.needPax=nr(e,r+108,8,this.uid)||this.needPax,this.needPax=nr(e,r+116,8,this.gid)||this.needPax,this.needPax=nr(e,r+124,12,this.size)||this.needPax,this.needPax=Vc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Ue].charCodeAt(0),this.needPax=Tr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Tr(e,r+265,32,this.uname)||this.needPax,this.needPax=Tr(e,r+297,32,this.gname)||this.needPax,this.needPax=nr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=nr(e,r+337,8,this.devmin)||this.needPax,this.needPax=Tr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Tr(e,r+345,155,o)||this.needPax:(this.needPax=Tr(e,r+345,130,o)||this.needPax,this.needPax=Vc(e,r+476,12,this.atime)||this.needPax,this.needPax=Vc(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,nr(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 zc.name.get(this[Ue])||this[Ue]}get typeKey(){return this[Ue]}set type(e){zc.code.has(e)?this[Ue]=zc.code.get(e):this[Ue]=e}},Hx=(t,e)=>{let i=t,n="",s,o=gi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=gi.dirname(i),i=gi.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=gi.join(gi.basename(n),i),n=gi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Rr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Kc=(t,e,r)=>$x(ir(t,e,r)),$x=t=>t===null?null:new Date(t*1e3),ir=(t,e,r)=>t[e]&128?Tg.parse(t.slice(e,e+r)):Gx(t,e,r),Ux=t=>isNaN(t)?null:t,Gx=(t,e,r)=>Ux(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),jx={12:8589934591,8:2097151},nr=(t,e,r,i)=>i===null?!1:i>jx[r]||i<0?(Tg.encode(i,t.slice(e,e+r)),!0):(Wx(t,e,r,i),!1),Wx=(t,e,r,i)=>t.write(zx(i,r),e,r,"ascii"),zx=(t,e)=>Yx(Math.floor(t).toString(8),e),Yx=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Vc=(t,e,r,i)=>i===null?!1:nr(t,e,r,i.getTime()/1e3),Kx=new Array(156).join("\0"),Tr=(t,e,r,i)=>i===null?!1:(t.write(i+Kx,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Og.exports=Xc});var Hs=m((F2,Bg)=>{"use strict";var Vx=Ei(),Xx=require("path"),an=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 Vx({path:("PaxHeader/"+Xx.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}};an.parse=(t,e,r)=>new an(Zx(Qx(t),e),r);var Zx=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,Qx=t=>t.replace(/\n$/,"").split(`
|
8
|
+
`).reduce(Jx,Object.create(null)),Jx=(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};Bg.exports=an});var Di=m((x2,Pg)=>{Pg.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 $s=m((v2,Lg)=>{"use strict";Lg.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 Qc=m((T2,Ig)=>{"use strict";var Us=["|","<",">","?",":"],Zc=Us.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),ev=new Map(Us.map((t,e)=>[t,Zc[e]])),tv=new Map(Zc.map((t,e)=>[t,Us[e]]));Ig.exports={encode:t=>Us.reduce((e,r)=>e.split(r).join(ev.get(r)),t),decode:t=>Zc.reduce((e,r)=>e.split(r).join(tv.get(r)),t)}});var Jc=m((O2,kg)=>{var{isAbsolute:rv,parse:Ng}=require("path").win32;kg.exports=t=>{let e="",r=Ng(t);for(;rv(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Ng(t)}return[e,t]}});var qg=m((B2,Mg)=>{"use strict";Mg.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 cl=m((I2,Jg)=>{"use strict";var zg=Rs(),Yg=Hs(),Kg=Ei(),mt=require("fs"),Hg=require("path"),dt=mi(),iv=Di(),Vg=(t,e)=>e?(t=dt(t).replace(/^\.(\/|$)/,""),iv(e)+"/"+t):dt(t),nv=16*1024*1024,$g=Symbol("process"),Ug=Symbol("file"),Gg=Symbol("directory"),tl=Symbol("symlink"),jg=Symbol("hardlink"),cn=Symbol("header"),Gs=Symbol("read"),rl=Symbol("lstat"),js=Symbol("onlstat"),il=Symbol("onread"),nl=Symbol("onreadlink"),sl=Symbol("openfile"),ol=Symbol("onopenfile"),sr=Symbol("close"),Ws=Symbol("mode"),ul=Symbol("awaitDrain"),el=Symbol("ondrain"),gt=Symbol("prefix"),Wg=Symbol("hadError"),Xg=$s(),sv=Qc(),Zg=Jc(),Qg=qg(),zs=Xg(class extends zg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=dt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||nv,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=dt(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?dt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Zg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=sv.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=dt(r.absolute||Hg.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[js](this.statCache.get(this.absolute)):this[rl]()}emit(e,...r){return e==="error"&&(this[Wg]=!0),super.emit(e,...r)}[rl](){mt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[js](r)})}[js](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=uv(e),this.emit("stat",e),this[$g]()}[$g](){switch(this.type){case"File":return this[Ug]();case"Directory":return this[Gg]();case"SymbolicLink":return this[tl]();default:return this.end()}}[Ws](e){return Qg(e,this.type==="Directory",this.portable)}[gt](e){return Vg(e,this.prefix)}[cn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Kg({path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](this.linkpath):this.linkpath,mode:this[Ws](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Yg({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[gt](this.path),linkpath:this.type==="Link"?this[gt](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)}[Gg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[cn](),this.end()}[tl](){mt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[nl](r)})}[nl](e){this.linkpath=dt(e),this[cn](),this.end()}[jg](e){this.type="Link",this.linkpath=dt(Hg.relative(this.cwd,e)),this.stat.size=0,this[cn](),this.end()}[Ug](){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[jg](r)}this.linkCache.set(e,this.absolute)}if(this[cn](),this.stat.size===0)return this.end();this[sl]()}[sl](){mt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[ol](r)})}[ol](e){if(this.fd=e,this[Wg])return this[sr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Gs]()}[Gs](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;mt.read(e,r,i,n,s,(o,u)=>{if(o)return this[sr](()=>this.emit("error",o));this[il](u)})}[sr](e){mt.close(this.fd,e)}[il](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[sr](()=>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[sr](()=>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[el]():this[ul](()=>this[el]())}[ul](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)}[el](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[sr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Gs]()}}),al=class extends zs{[rl](){this[js](mt.lstatSync(this.absolute))}[tl](){this[nl](mt.readlinkSync(this.absolute))}[sl](){this[ol](mt.openSync(this.absolute,"r"))}[Gs](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=mt.readSync(r,i,n,s,o);this[il](u),e=!1}finally{if(e)try{this[sr](()=>{})}catch{}}}[ul](e){e()}[sr](e){mt.closeSync(this.fd),e()}},ov=Xg(class extends zg{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=dt(e.path),this.mode=this[Ws](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=dt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Zg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Kg({path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](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 Yg({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[gt](this.path),linkpath:this.type==="Link"?this[gt](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)}[gt](e){return Vg(e,this.prefix)}[Ws](e){return Qg(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()}});zs.Sync=al;zs.Tar=ov;var uv=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Jg.exports=zs});var tE=m((N2,eE)=>{"use strict";eE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ll=m((k2,rE)=>{"use strict";rE.exports=W;W.Node=Or;W.create=W;function W(t){var e=this;if(e instanceof W||(e=new W),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}W.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};W.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++}};W.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++}};W.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)cv(this,arguments[t]);return this.length};W.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)lv(this,arguments[t]);return this.length};W.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}};W.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}};W.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};W.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};W.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};W.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};W.prototype.map=function(t,e){e=e||this;for(var r=new W,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};W.prototype.mapReverse=function(t,e){e=e||this;for(var r=new W,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};W.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};W.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};W.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};W.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};W.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 W;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};W.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 W;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};W.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=av(this,n,r[i]);return s};W.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 av(t,e,r){var i=e===t.head?new Or(r,null,e,t):new Or(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function cv(t,e){t.tail=new Or(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function lv(t,e){t.head=new Or(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function Or(t,e,r,i){if(!(this instanceof Or))return new Or(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{tE()(W)}catch{}});var to=m((q2,cE)=>{"use strict";var Js=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}},fv=Rs(),hv=Uc(),pv=Ms(),yl=cl(),dv=yl.Sync,mv=yl.Tar,gv=ll(),iE=Buffer.alloc(1024),Vs=Symbol("onStat"),Ys=Symbol("ended"),Et=Symbol("queue"),yi=Symbol("current"),Br=Symbol("process"),Ks=Symbol("processing"),nE=Symbol("processJob"),Dt=Symbol("jobs"),fl=Symbol("jobDone"),Xs=Symbol("addFSEntry"),sE=Symbol("addTarEntry"),ml=Symbol("stat"),gl=Symbol("readdir"),Zs=Symbol("onreaddir"),Qs=Symbol("pipe"),oE=Symbol("entry"),hl=Symbol("entryOpt"),El=Symbol("writeEntryClass"),aE=Symbol("write"),pl=Symbol("ondrain"),eo=require("fs"),uE=require("path"),Ev=$s(),dl=mi(),Al=Ev(class extends fv{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=dl(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[El]=yl,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 hv.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[pl]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[pl]),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[Et]=new gv,this[Dt]=0,this.jobs=+e.jobs||4,this[Ks]=!1,this[Ys]=!1}[aE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Ys]=!0,this[Br](),this}write(e){if(this[Ys])throw new Error("write after end");return e instanceof pv?this[sE](e):this[Xs](e),this.flowing}[sE](e){let r=dl(uE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Js(e.path,r,!1);i.entry=new mv(e,this[hl](i)),i.entry.on("end",n=>this[fl](i)),this[Dt]+=1,this[Et].push(i)}this[Br]()}[Xs](e){let r=dl(uE.resolve(this.cwd,e));this[Et].push(new Js(e,r)),this[Br]()}[ml](e){e.pending=!0,this[Dt]+=1;let r=this.follow?"stat":"lstat";eo[r](e.absolute,(i,n)=>{e.pending=!1,this[Dt]-=1,i?this.emit("error",i):this[Vs](e,n)})}[Vs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Br]()}[gl](e){e.pending=!0,this[Dt]+=1,eo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Dt]-=1,r)return this.emit("error",r);this[Zs](e,i)})}[Zs](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Br]()}[Br](){if(!this[Ks]){this[Ks]=!0;for(let e=this[Et].head;e!==null&&this[Dt]<this.jobs;e=e.next)if(this[nE](e.value),e.value.ignore){let r=e.next;this[Et].removeNode(e),e.next=r}this[Ks]=!1,this[Ys]&&!this[Et].length&&this[Dt]===0&&(this.zip?this.zip.end(iE):(super.write(iE),super.end()))}}get[yi](){return this[Et]&&this[Et].head&&this[Et].head.value}[fl](e){this[Et].shift(),this[Dt]-=1,this[Br]()}[nE](e){if(!e.pending){if(e.entry){e===this[yi]&&!e.piped&&this[Qs](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Vs](e,this.statCache.get(e.absolute)):this[ml](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Zs](e,this.readdirCache.get(e.absolute)):this[gl](e),!e.readdir))){if(e.entry=this[oE](e),!e.entry){e.ignore=!0;return}e===this[yi]&&!e.piped&&this[Qs](e)}}}[hl](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}}[oE](e){this[Dt]+=1;try{return new this[El](e.path,this[hl](e)).on("end",()=>this[fl](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[pl](){this[yi]&&this[yi].entry&&this[yi].entry.resume()}[Qs](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Xs](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Dl=class extends Al{constructor(e){super(e),this[El]=dv}pause(){}resume(){}[ml](e){let r=this.follow?"statSync":"lstatSync";this[Vs](e,eo[r](e.absolute))}[gl](e,r){this[Zs](e,eo.readdirSync(e.absolute))}[Qs](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Xs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[aE](n)})}};Al.Sync=Dl;cE.exports=Al});var xi=m(fn=>{"use strict";var Dv=Fc(),yv=require("events").EventEmitter,ke=require("fs"),Cl=ke.writev;if(!Cl){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Cl=(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 wi=Symbol("_autoClose"),it=Symbol("_close"),ln=Symbol("_ended"),V=Symbol("_fd"),lE=Symbol("_finished"),ur=Symbol("_flags"),_l=Symbol("_flush"),bl=Symbol("_handleChunk"),wl=Symbol("_makeBuf"),oo=Symbol("_mode"),ro=Symbol("_needDrain"),Ci=Symbol("_onerror"),Fi=Symbol("_onopen"),Sl=Symbol("_onread"),_i=Symbol("_onwrite"),ar=Symbol("_open"),qt=Symbol("_path"),Pr=Symbol("_pos"),yt=Symbol("_queue"),Si=Symbol("_read"),fE=Symbol("_readSize"),or=Symbol("_reading"),io=Symbol("_remain"),hE=Symbol("_size"),no=Symbol("_write"),Ai=Symbol("_writing"),so=Symbol("_defaultFlag"),bi=Symbol("_errored"),uo=class extends Dv{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[bi]=!1,this[V]=typeof r.fd=="number"?r.fd:null,this[qt]=e,this[fE]=r.readSize||16*1024*1024,this[or]=!1,this[hE]=typeof r.size=="number"?r.size:1/0,this[io]=this[hE],this[wi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[V]=="number"?this[Si]():this[ar]()}get fd(){return this[V]}get path(){return this[qt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ar](){ke.open(this[qt],"r",(e,r)=>this[Fi](e,r))}[Fi](e,r){e?this[Ci](e):(this[V]=r,this.emit("open",r),this[Si]())}[wl](){return Buffer.allocUnsafe(Math.min(this[fE],this[io]))}[Si](){if(!this[or]){this[or]=!0;let e=this[wl]();if(e.length===0)return process.nextTick(()=>this[Sl](null,0,e));ke.read(this[V],e,0,e.length,null,(r,i,n)=>this[Sl](r,i,n))}}[Sl](e,r,i){this[or]=!1,e?this[Ci](e):this[bl](r,i)&&this[Si]()}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ci](e){this[or]=!0,this[it](),this.emit("error",e)}[bl](e,r){let i=!1;return this[io]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[io]<=0)&&(i=!1,this[it](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[V]=="number"&&this[Si]();break;case"error":return this[bi]?void 0:(this[bi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Fl=class extends uo{[ar](){let e=!0;try{this[Fi](null,ke.openSync(this[qt],"r")),e=!1}finally{e&&this[it]()}}[Si](){let e=!0;try{if(!this[or]){this[or]=!0;do{let r=this[wl](),i=r.length===0?0:ke.readSync(this[V],r,0,r.length,null);if(!this[bl](i,r))break}while(!0);this[or]=!1}e=!1}finally{e&&this[it]()}}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.closeSync(e),this.emit("close")}}},ao=class extends yv{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[bi]=!1,this[Ai]=!1,this[ln]=!1,this[ro]=!1,this[yt]=[],this[qt]=e,this[V]=typeof r.fd=="number"?r.fd:null,this[oo]=r.mode===void 0?438:r.mode,this[Pr]=typeof r.start=="number"?r.start:null,this[wi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Pr]!==null?"r+":"w";this[so]=r.flags===void 0,this[ur]=this[so]?i:r.flags,this[V]===null&&this[ar]()}emit(e,r){if(e==="error"){if(this[bi])return;this[bi]=!0}return super.emit(e,r)}get fd(){return this[V]}get path(){return this[qt]}[Ci](e){this[it](),this[Ai]=!0,this.emit("error",e)}[ar](){ke.open(this[qt],this[ur],this[oo],(e,r)=>this[Fi](e,r))}[Fi](e,r){this[so]&&this[ur]==="r+"&&e&&e.code==="ENOENT"?(this[ur]="w",this[ar]()):e?this[Ci](e):(this[V]=r,this.emit("open",r),this[_l]())}end(e,r){return e&&this.write(e,r),this[ln]=!0,!this[Ai]&&!this[yt].length&&typeof this[V]=="number"&&this[_i](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ln]?(this.emit("error",new Error("write() after end()")),!1):this[V]===null||this[Ai]||this[yt].length?(this[yt].push(e),this[ro]=!0,!1):(this[Ai]=!0,this[no](e),!0)}[no](e){ke.write(this[V],e,0,e.length,this[Pr],(r,i)=>this[_i](r,i))}[_i](e,r){e?this[Ci](e):(this[Pr]!==null&&(this[Pr]+=r),this[yt].length?this[_l]():(this[Ai]=!1,this[ln]&&!this[lE]?(this[lE]=!0,this[it](),this.emit("finish")):this[ro]&&(this[ro]=!1,this.emit("drain"))))}[_l](){if(this[yt].length===0)this[ln]&&this[_i](null,0);else if(this[yt].length===1)this[no](this[yt].pop());else{let e=this[yt];this[yt]=[],Cl(this[V],e,this[Pr],(r,i)=>this[_i](r,i))}}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},xl=class extends ao{[ar](){let e;if(this[so]&&this[ur]==="r+")try{e=ke.openSync(this[qt],this[ur],this[oo])}catch(r){if(r.code==="ENOENT")return this[ur]="w",this[ar]();throw r}else e=ke.openSync(this[qt],this[ur],this[oo]);this[Fi](null,e)}[it](){if(this[wi]&&typeof this[V]=="number"){let e=this[V];this[V]=null,ke.closeSync(e),this.emit("close")}}[no](e){let r=!0;try{this[_i](null,ke.writeSync(this[V],e,0,e.length,this[Pr])),r=!1}finally{if(r)try{this[it]()}catch{}}}};fn.ReadStream=uo;fn.ReadStreamSync=Fl;fn.WriteStream=ao;fn.WriteStreamSync=xl});var go=m((U2,AE)=>{"use strict";var Av=$s(),_v=Ei(),Sv=require("events"),Cv=ll(),bv=1024*1024,wv=Ms(),pE=Hs(),Fv=Uc(),{nextTick:xv}=require("process"),vl=Buffer.from([31,139]),Xe=Symbol("state"),Lr=Symbol("writeEntry"),Ht=Symbol("readEntry"),Rl=Symbol("nextEntry"),dE=Symbol("processEntry"),Ze=Symbol("extendedHeader"),hn=Symbol("globalExtendedHeader"),cr=Symbol("meta"),mE=Symbol("emitMeta"),re=Symbol("buffer"),$t=Symbol("queue"),Ir=Symbol("ended"),gE=Symbol("emittedEnd"),Nr=Symbol("emit"),Me=Symbol("unzip"),co=Symbol("consumeChunk"),lo=Symbol("consumeChunkSub"),Tl=Symbol("consumeBody"),EE=Symbol("consumeMeta"),DE=Symbol("consumeHeader"),fo=Symbol("consuming"),Ol=Symbol("bufferConcat"),Bl=Symbol("maybeEnd"),pn=Symbol("writing"),lr=Symbol("aborted"),ho=Symbol("onDone"),kr=Symbol("sawValidEntry"),po=Symbol("sawNullBlock"),mo=Symbol("sawEOF"),yE=Symbol("closeStream"),vv=t=>!0;AE.exports=Av(class extends Sv{constructor(e){e=e||{},super(e),this.file=e.file||"",this[kr]=null,this.on(ho,r=>{(this[Xe]==="begin"||this[kr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ho,e.ondone):this.on(ho,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||bv,this.filter=typeof e.filter=="function"?e.filter:vv,this.writable=!0,this.readable=!1,this[$t]=new Cv,this[re]=null,this[Ht]=null,this[Lr]=null,this[Xe]="begin",this[cr]="",this[Ze]=null,this[hn]=null,this[Ir]=!1,this[Me]=null,this[lr]=!1,this[po]=!1,this[mo]=!1,this.on("end",()=>this[yE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[DE](e,r){this[kr]===null&&(this[kr]=!1);let i;try{i=new _v(e,r,this[Ze],this[hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[po]?(this[mo]=!0,this[Xe]==="begin"&&(this[Xe]="header"),this[Nr]("eof")):(this[po]=!0,this[Nr]("nullBlock"));else if(this[po]=!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[Lr]=new wv(i,this[Ze],this[hn]);if(!this[kr])if(s.remain){let o=()=>{s.invalid||(this[kr]=!0)};s.on("end",o)}else this[kr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Nr]("ignoredEntry",s),this[Xe]="ignore",s.resume()):s.size>0&&(this[cr]="",s.on("data",o=>this[cr]+=o),this[Xe]="meta"):(this[Ze]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Nr]("ignoredEntry",s),this[Xe]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Xe]="body":(this[Xe]="header",s.end()),this[Ht]?this[$t].push(s):(this[$t].push(s),this[Rl]())))}}}[yE](){xv(()=>this.emit("close"))}[dE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ht]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Rl]()),r=!1)):(this[Ht]=null,r=!1),r}[Rl](){do;while(this[dE](this[$t].shift()));if(!this[$t].length){let e=this[Ht];!e||e.flowing||e.size===e.remain?this[pn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Tl](e,r){let i=this[Lr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Xe]="header",this[Lr]=null,i.end()),s.length}[EE](e,r){let i=this[Lr],n=this[Tl](e,r);return this[Lr]||this[mE](i),n}[Nr](e,r,i){!this[$t].length&&!this[Ht]?this.emit(e,r,i):this[$t].push([e,r,i])}[mE](e){switch(this[Nr]("meta",this[cr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ze]=pE.parse(this[cr],this[Ze],!1);break;case"GlobalExtendedHeader":this[hn]=pE.parse(this[cr],this[hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ze]=this[Ze]||Object.create(null),this[Ze].path=this[cr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ze]=this[Ze]||Object.create(null),this[Ze].linkpath=this[cr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[lr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[lr])return;if(this[Me]===null&&e){if(this[re]&&(e=Buffer.concat([this[re],e]),this[re]=null),e.length<vl.length)return this[re]=e,!0;for(let i=0;this[Me]===null&&i<vl.length;i++)e[i]!==vl[i]&&(this[Me]=!1);if(this[Me]===null){let i=this[Ir];this[Ir]=!1,this[Me]=new Fv.Unzip,this[Me].on("data",s=>this[co](s)),this[Me].on("error",s=>this.abort(s)),this[Me].on("end",s=>{this[Ir]=!0,this[co]()}),this[pn]=!0;let n=this[Me][i?"end":"write"](e);return this[pn]=!1,n}}this[pn]=!0,this[Me]?this[Me].write(e):this[co](e),this[pn]=!1;let r=this[$t].length?!1:this[Ht]?this[Ht].flowing:!0;return!r&&!this[$t].length&&this[Ht].once("drain",i=>this.emit("drain")),r}[Ol](e){e&&!this[lr]&&(this[re]=this[re]?Buffer.concat([this[re],e]):e)}[Bl](){if(this[Ir]&&!this[gE]&&!this[lr]&&!this[fo]){this[gE]=!0;let e=this[Lr];if(e&&e.blockRemain){let r=this[re]?this[re].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[re]&&e.write(this[re]),e.end()}this[Nr](ho)}}[co](e){if(this[fo])this[Ol](e);else if(!e&&!this[re])this[Bl]();else{if(this[fo]=!0,this[re]){this[Ol](e);let r=this[re];this[re]=null,this[lo](r)}else this[lo](e);for(;this[re]&&this[re].length>=512&&!this[lr]&&!this[mo];){let r=this[re];this[re]=null,this[lo](r)}this[fo]=!1}(!this[re]||this[Ir])&&this[Bl]()}[lo](e){let r=0,i=e.length;for(;r+512<=i&&!this[lr]&&!this[mo];)switch(this[Xe]){case"begin":case"header":this[DE](e,r),r+=512;break;case"ignore":case"body":r+=this[Tl](e,r);break;case"meta":r+=this[EE](e,r);break;default:throw new Error("invalid state: "+this[Xe])}r<i&&(this[re]?this[re]=Buffer.concat([e.slice(r),this[re]]):this[re]=e.slice(r))}end(e){this[lr]||(this[Me]?this[Me].end(e):(this[Ir]=!0,this.write(e)))}})});var Eo=m((G2,bE)=>{"use strict";var Rv=li(),SE=go(),vi=require("fs"),Tv=xi(),_E=require("path"),Pl=Di();bE.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=Rv(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&&Bv(i,e),i.noResume||Ov(i),i.file&&i.sync?Pv(i):i.file?Lv(i,r):CE(i)};var Ov=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},Bv=(t,e)=>{let r=new Map(e.map(s=>[Pl(s),!0])),i=t.filter,n=(s,o)=>{let u=o||_E.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(_E.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Pl(s)):s=>n(Pl(s))},Pv=t=>{let e=CE(t),r=t.file,i=!0,n;try{let s=vi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(vi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=vi.openSync(r,"r");u<s.size;){let c=vi.readSync(n,a,0,o,u);u+=c,e.write(a.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{vi.closeSync(n)}catch{}}},Lv=(t,e)=>{let r=new SE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),vi.stat(n,(a,c)=>{if(a)u(a);else{let l=new Tv.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},CE=t=>new SE(t)});var TE=m((j2,RE)=>{"use strict";var Iv=li(),Do=to(),wE=xi(),FE=Eo(),xE=require("path");RE.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=Iv(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?Nv(i,e):i.file?kv(i,e,r):i.sync?Mv(i,e):qv(i,e)};var Nv=(t,e)=>{let r=new Do.Sync(t),i=new wE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),vE(r,e)},kv=(t,e,r)=>{let i=new Do(t),n=new wE.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 Ll(i,e),r?s.then(r,r):s},vE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?FE({file:xE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ll=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return FE({file:xE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ll(t,e));t.add(r)}t.end()},Mv=(t,e)=>{let r=new Do.Sync(t);return vE(r,e),r},qv=(t,e)=>{let r=new Do(t);return Ll(r,e),r}});var Il=m((W2,kE)=>{"use strict";var Hv=li(),OE=to(),Ge=require("fs"),BE=xi(),PE=Eo(),LE=require("path"),IE=Ei();kE.exports=(t,e,r)=>{let i=Hv(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?$v(i,e):Gv(i,e,r)};var $v=(t,e)=>{let r=new OE.Sync(t),i=!0,n,s;try{try{n=Ge.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Ge.openSync(t.file,"w+");else throw a}let o=Ge.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=Ge.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 IE(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,Uv(t,r,s,n,e)}finally{if(i)try{Ge.closeSync(n)}catch{}}},Uv=(t,e,r,i,n)=>{let s=new BE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),jv(e,n)},Gv=(t,e,r)=>{e=Array.from(e);let i=new OE(t),n=(o,u,a)=>{let c=(g,d)=>{g?Ge.close(o,D=>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 Ge.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 D=new IE(h);if(!D.cksumValid)return c(null,l);let y=512*Math.ceil(D.size/512);if(l+y+512>u||(l+=y+512,l>=u))return c(null,l);t.mtimeCache&&t.mtimeCache.set(D.path,D.mtime),f=0,Ge.read(o,h,0,512,l,E)};Ge.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+",Ge.open(t.file,a,c);if(l)return u(l);Ge.fstat(f,(h,E)=>{if(h)return Ge.close(f,()=>u(h));n(f,E.size,(g,d)=>{if(g)return u(g);let D=new BE.WriteStream(t.file,{fd:f,start:d});i.pipe(D),D.on("error",u),D.on("close",o),NE(i,e)})})};Ge.open(t.file,a,c)});return r?s.then(r,r):s},jv=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?PE({file:LE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},NE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return PE({file:LE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>NE(t,e));t.add(r)}t.end()}});var qE=m((z2,ME)=>{"use strict";var Wv=li(),zv=Il();ME.exports=(t,e,r)=>{let i=Wv(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),Yv(i),zv(i,e,r)};var Yv=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 UE=m((Y2,$E)=>{var{promisify:HE}=require("util"),fr=require("fs"),Kv=t=>{if(!t)t={mode:511,fs:fr};else if(typeof t=="object")t={mode:511,fs:fr,...t};else if(typeof t=="number")t={mode:t,fs:fr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:fr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||fr.mkdir,t.mkdirAsync=HE(t.mkdir),t.stat=t.stat||t.fs.stat||fr.stat,t.statAsync=HE(t.stat),t.statSync=t.statSync||t.fs.statSync||fr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||fr.mkdirSync,t};$E.exports=Kv});var jE=m((K2,GE)=>{var Vv=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Xv,parse:Zv}=require("path"),Qv=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=Xv(t),Vv==="win32"){let e=/[*|"<>?:]/,{root:r}=Zv(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};GE.exports=Qv});var VE=m((V2,KE)=>{var{dirname:WE}=require("path"),zE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?zE(t,WE(e),e):void 0),YE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?YE(t,WE(e),e):void 0}};KE.exports={findMade:zE,findMadeSync:YE}});var Ml=m((X2,ZE)=>{var{dirname:XE}=require("path"),Nl=(t,e,r)=>{e.recursive=!1;let i=XE(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 Nl(i,e).then(s=>Nl(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})})},kl=(t,e,r)=>{let i=XE(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 kl(t,e,kl(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};ZE.exports={mkdirpManual:Nl,mkdirpManualSync:kl}});var eD=m((Z2,JE)=>{var{dirname:QE}=require("path"),{findMade:Jv,findMadeSync:eR}=VE(),{mkdirpManual:tR,mkdirpManualSync:rR}=Ml(),iR=(t,e)=>(e.recursive=!0,QE(t)===t?e.mkdirAsync(t,e):Jv(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return tR(t,e);throw n}))),nR=(t,e)=>{if(e.recursive=!0,QE(t)===t)return e.mkdirSync(t,e);let i=eR(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return rR(t,e);throw n}};JE.exports={mkdirpNative:iR,mkdirpNativeSync:nR}});var nD=m((Q2,iD)=>{var tD=require("fs"),sR=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ql=sR.replace(/^v/,"").split("."),rD=+ql[0]>10||+ql[0]==10&&+ql[1]>=12,oR=rD?t=>t.mkdir===tD.mkdir:()=>!1,uR=rD?t=>t.mkdirSync===tD.mkdirSync:()=>!1;iD.exports={useNative:oR,useNativeSync:uR}});var lD=m((J2,cD)=>{var Ri=UE(),Ti=jE(),{mkdirpNative:sD,mkdirpNativeSync:oD}=eD(),{mkdirpManual:uD,mkdirpManualSync:aD}=Ml(),{useNative:aR,useNativeSync:cR}=nD(),Oi=(t,e)=>(t=Ti(t),e=Ri(e),aR(e)?sD(t,e):uD(t,e)),lR=(t,e)=>(t=Ti(t),e=Ri(e),cR(e)?oD(t,e):aD(t,e));Oi.sync=lR;Oi.native=(t,e)=>sD(Ti(t),Ri(e));Oi.manual=(t,e)=>uD(Ti(t),Ri(e));Oi.nativeSync=(t,e)=>oD(Ti(t),Ri(e));Oi.manualSync=(t,e)=>aD(Ti(t),Ri(e));cD.exports=Oi});var ED=m((eP,gD)=>{"use strict";var Qe=require("fs"),Mr=require("path"),fR=Qe.lchown?"lchown":"chown",hR=Qe.lchownSync?"lchownSync":"chownSync",hD=Qe.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),fD=(t,e,r)=>{try{return Qe[hR](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},pR=(t,e,r)=>{try{return Qe.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},dR=hD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Qe.chown(t,e,r,i)}:(t,e,r,i)=>i,Hl=hD?(t,e,r)=>{try{return fD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;pR(t,e,r)}}:(t,e,r)=>fD(t,e,r),mR=process.version,pD=(t,e,r)=>Qe.readdir(t,e,r),gR=(t,e)=>Qe.readdirSync(t,e);/^v4\./.test(mR)&&(pD=(t,e,r)=>Qe.readdir(t,r));var yo=(t,e,r,i)=>{Qe[fR](t,e,r,dR(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},dD=(t,e,r,i,n)=>{if(typeof e=="string")return Qe.lstat(Mr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,dD(t,o,r,i,n)});if(e.isDirectory())$l(Mr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Mr.resolve(t,e.name);yo(o,r,i,n)});else{let s=Mr.resolve(t,e.name);yo(s,r,i,n)}},$l=(t,e,r,i)=>{pD(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 yo(t,e,r,i);let o=s.length,u=null,a=c=>{if(!u){if(c)return i(u=c);if(--o===0)return yo(t,e,r,i)}};s.forEach(c=>dD(t,c,e,r,a))})},ER=(t,e,r,i)=>{if(typeof e=="string")try{let n=Qe.lstatSync(Mr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&mD(Mr.resolve(t,e.name),r,i),Hl(Mr.resolve(t,e.name),r,i)},mD=(t,e,r)=>{let i;try{i=gR(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Hl(t,e,r);throw n}return i&&i.length&&i.forEach(n=>ER(t,n,e,r)),Hl(t,e,r)};gD.exports=$l;$l.sync=mD});var _D=m((tP,Ul)=>{"use strict";var DD=lD(),Je=require("fs"),Ao=require("path"),yD=ED(),nt=mi(),_o=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},So=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Co=(t,e)=>t.get(nt(e)),dn=(t,e,r)=>t.set(nt(e),r),DR=(t,e)=>{Je.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new So(t,r&&r.code||"ENOTDIR")),e(r)})};Ul.exports=(t,e,r)=>{t=nt(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=nt(e.cwd),E=(D,y)=>{D?r(D):(dn(f,t,!0),y&&a?yD(y,o,u,w=>E(w)):s?Je.chmod(t,n,r):r())};if(f&&Co(f,t)===!0)return E();if(t===h)return DR(t,E);if(c)return DD(t,{mode:n}).then(D=>E(null,D),E);let d=nt(Ao.relative(h,t)).split("/");bo(h,d,n,f,l,h,null,E)};var bo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),c=nt(Ao.resolve(t+"/"+a));if(Co(i,c))return bo(c,e,r,i,n,s,o,u);Je.mkdir(c,r,AD(c,e,r,i,n,s,o,u))},AD=(t,e,r,i,n,s,o,u)=>a=>{a?Je.lstat(t,(c,l)=>{if(c)c.path=c.path&&nt(c.path),u(c);else if(l.isDirectory())bo(t,e,r,i,n,s,o,u);else if(n)Je.unlink(t,f=>{if(f)return u(f);Je.mkdir(t,r,AD(t,e,r,i,n,s,o,u))});else{if(l.isSymbolicLink())return u(new _o(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,bo(t,e,r,i,n,s,o,u))},yR=t=>{let e=!1,r="ENOTDIR";try{e=Je.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new So(t,r)}};Ul.exports.sync=(t,e)=>{t=nt(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=nt(e.cwd),h=D=>{dn(l,t,!0),D&&u&&yD.sync(D,s,o),n&&Je.chmodSync(t,i)};if(l&&Co(l,t)===!0)return h();if(t===f)return yR(f),h();if(a)return h(DD.sync(t,i));let g=nt(Ao.relative(f,t)).split("/"),d=null;for(let D=g.shift(),y=f;D&&(y+="/"+D);D=g.shift())if(y=nt(Ao.resolve(y)),!Co(l,y))try{Je.mkdirSync(y,i),d=d||y,dn(l,y,!0)}catch{let B=Je.lstatSync(y);if(B.isDirectory()){dn(l,y,!0);continue}else if(c){Je.unlinkSync(y),Je.mkdirSync(y,i),d=d||y,dn(l,y,!0);continue}else if(B.isSymbolicLink())return new _o(y,y+"/"+g.join("/"))}return h(d)}});var jl=m((rP,SD)=>{var Gl=Object.create(null),{hasOwnProperty:AR}=Object.prototype;SD.exports=t=>(AR.call(Gl,t)||(Gl[t]=t.normalize("NFKD")),Gl[t])});var FD=m((iP,wD)=>{var CD=require("assert"),_R=jl(),SR=Di(),{join:bD}=require("path"),CR=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,bR=CR==="win32";wD.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=bD(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);CD.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);CD(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=bR?["win32 parallelization disabled"]:c.map(h=>_R(SR(bD(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 RD=m((nP,vD)=>{var wR=process.env.__FAKE_PLATFORM__||process.platform,FR=wR==="win32",xR=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:vR,O_TRUNC:RR,O_WRONLY:TR,UV_FS_O_FILEMAP:xD=0}=xR.constants,OR=FR&&!!xD,BR=512*1024,PR=xD|RR|vR|TR;vD.exports=OR?t=>t<BR?PR:"w":()=>"w"});var Jl=m((sP,GD)=>{"use strict";var LR=require("assert"),IR=go(),z=require("fs"),NR=xi(),Ut=require("path"),HD=_D(),TD=Qc(),kR=FD(),MR=Jc(),je=mi(),qR=Di(),HR=jl(),OD=Symbol("onEntry"),Yl=Symbol("checkFs"),BD=Symbol("checkFs2"),xo=Symbol("pruneCache"),Kl=Symbol("isReusable"),et=Symbol("makeFs"),Vl=Symbol("file"),Xl=Symbol("directory"),vo=Symbol("link"),PD=Symbol("symlink"),LD=Symbol("hardlink"),ID=Symbol("unsupported"),ND=Symbol("checkPath"),hr=Symbol("mkdir"),ve=Symbol("onError"),wo=Symbol("pending"),kD=Symbol("pend"),Bi=Symbol("unpend"),Wl=Symbol("ended"),zl=Symbol("maybeClose"),Zl=Symbol("skip"),mn=Symbol("doChown"),gn=Symbol("uid"),En=Symbol("gid"),Dn=Symbol("checkedCwd"),$D=require("crypto"),UD=RD(),$R=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,yn=$R==="win32",UR=(t,e)=>{if(!yn)return z.unlink(t,e);let r=t+".DELETE."+$D.randomBytes(16).toString("hex");z.rename(t,r,i=>{if(i)return e(i);z.unlink(r,e)})},GR=t=>{if(!yn)return z.unlinkSync(t);let e=t+".DELETE."+$D.randomBytes(16).toString("hex");z.renameSync(t,e),z.unlinkSync(e)},MD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,qD=t=>HR(qR(je(t))).toLowerCase(),jR=(t,e)=>{e=qD(e);for(let r of t.keys()){let i=qD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},WR=t=>{for(let e of t.keys())t.delete(e)},An=class extends IR{constructor(e){if(e||(e={}),e.ondone=r=>{this[Wl]=!0,this[zl]()},super(e),this[Dn]=!1,this.reservations=kR(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[wo]=0,this[Wl]=!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||yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=je(Ut.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[OD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[zl](){this[Wl]&&this[wo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[ND](e){if(this.strip){let r=je(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=je(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=je(e.path),i=r.split("/");if(i.includes("..")||yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=MR(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Ut.isAbsolute(e.path)?e.absolute=je(Ut.resolve(e.path)):e.absolute=je(Ut.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:je(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}=Ut.win32.parse(e.absolute);e.absolute=r+TD.encode(e.absolute.slice(r.length));let{root:i}=Ut.win32.parse(e.path);e.path=i+TD.encode(e.path.slice(i.length))}return!0}[OD](e){if(!this[ND](e))return e.resume();switch(LR.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[Yl](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[ID](e)}}[ve](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Bi](),r.resume())}[hr](e,r,i){HD(je(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)}[mn](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}[gn](e){return MD(this.uid,e.uid,this.processUid)}[En](e){return MD(this.gid,e.gid,this.processGid)}[Vl](e,r){let i=e.mode&4095||this.fmode,n=new NR.WriteStream(e.absolute,{flags:UD(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&z.close(n.fd,()=>{}),n.write=()=>!0,this[ve](a,e),r()});let s=1,o=a=>{if(a){n.fd&&z.close(n.fd,()=>{}),this[ve](a,e),r();return}--s===0&&z.close(n.fd,c=>{c?this[ve](c,e):this[Bi](),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;z.futimes(l,f,h,E=>E?z.utimes(c,f,h,g=>o(g&&E)):o())}if(this[mn](e)){s++;let f=this[gn](e),h=this[En](e);z.fchown(l,f,h,E=>E?z.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[ve](a,e),r()}),e.pipe(u)),u.pipe(n)}[Xl](e,r){let i=e.mode&4095||this.dmode;this[hr](e.absolute,i,n=>{if(n){this[ve](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Bi](),e.resume())};e.mtime&&!this.noMtime&&(s++,z.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[mn](e)&&(s++,z.chown(e.absolute,this[gn](e),this[En](e),o)),o()})}[ID](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[PD](e,r){this[vo](e,e.linkpath,"symlink",r)}[LD](e,r){let i=je(Ut.resolve(this.cwd,e.linkpath));this[vo](e,i,"link",r)}[kD](){this[wo]++}[Bi](){this[wo]--,this[zl]()}[Zl](e){this[Bi](),e.resume()}[Kl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!yn}[Yl](e){this[kD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[BD](e,i))}[xo](e){e.type==="SymbolicLink"?WR(this.dirCache):e.type!=="Directory"&&jR(this.dirCache,e.absolute)}[BD](e,r){this[xo](e);let i=u=>{this[xo](e),r(u)},n=()=>{this[hr](this.cwd,this.dmode,u=>{if(u){this[ve](u,e),i();return}this[Dn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=je(Ut.dirname(e.absolute));if(u!==this.cwd)return this[hr](u,this.dmode,a=>{if(a){this[ve](a,e),i();return}o()})}o()},o=()=>{z.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[Zl](e),i();return}if(u||this[Kl](e,a))return this[et](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,l=f=>this[et](f,e,i);return c?z.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return z.rmdir(e.absolute,c=>this[et](c,e,i))}if(e.absolute===this.cwd)return this[et](null,e,i);UR(e.absolute,c=>this[et](c,e,i))})};this[Dn]?s():n()}[et](e,r,i){if(e){this[ve](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Vl](r,i);case"Link":return this[LD](r,i);case"SymbolicLink":return this[PD](r,i);case"Directory":case"GNUDumpDir":return this[Xl](r,i)}}[vo](e,r,i,n){z[i](r,e.absolute,s=>{s?this[ve](s,e):(this[Bi](),e.resume()),n()})}},Fo=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ql=class extends An{[et](e,r){return super[et](e,r,()=>{})}[Yl](e){if(this[xo](e),!this[Dn]){let s=this[hr](this.cwd,this.dmode);if(s)return this[ve](s,e);this[Dn]=!0}if(e.absolute!==this.cwd){let s=je(Ut.dirname(e.absolute));if(s!==this.cwd){let o=this[hr](s,this.dmode);if(o)return this[ve](o,e)}}let[r,i]=Fo(()=>z.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Zl](e);if(r||this[Kl](e,i))return this[et](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Fo(()=>{z.chmodSync(e.absolute,e.mode)}):[];return this[et](u,e)}let[s]=Fo(()=>z.rmdirSync(e.absolute));this[et](s,e)}let[n]=e.absolute===this.cwd?[]:Fo(()=>GR(e.absolute));this[et](n,e)}[Vl](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{z.closeSync(s)}catch(c){a=c}(u||a)&&this[ve](u||a,e),r()},s;try{s=z.openSync(e.absolute,UD(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[ve](u,e)),e.pipe(o)),o.on("data",u=>{try{z.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{z.futimesSync(s,c,l)}catch(f){try{z.utimesSync(e.absolute,c,l)}catch{a=f}}}if(this[mn](e)){let c=this[gn](e),l=this[En](e);try{z.fchownSync(s,c,l)}catch(f){try{z.chownSync(e.absolute,c,l)}catch{a=a||f}}}n(a)})}[Xl](e,r){let i=e.mode&4095||this.dmode,n=this[hr](e.absolute,i);if(n){this[ve](n,e),r();return}if(e.mtime&&!this.noMtime)try{z.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[mn](e))try{z.chownSync(e.absolute,this[gn](e),this[En](e))}catch{}r(),e.resume()}[hr](e,r){try{return HD.sync(je(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}}[vo](e,r,i,n){try{z[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[ve](s,e)}}};An.Sync=Ql;GD.exports=An});var KD=m((oP,YD)=>{"use strict";var zR=li(),Ro=Jl(),WD=require("fs"),zD=xi(),jD=require("path"),ef=Di();YD.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=zR(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&&YR(i,e),i.file&&i.sync?KR(i):i.file?VR(i,r):i.sync?XR(i):ZR(i)};var YR=(t,e)=>{let r=new Map(e.map(s=>[ef(s),!0])),i=t.filter,n=(s,o)=>{let u=o||jD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(jD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(ef(s)):s=>n(ef(s))},KR=t=>{let e=new Ro.Sync(t),r=t.file,i=WD.statSync(r),n=t.maxReadSize||16*1024*1024;new zD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},VR=(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),WD.stat(n,(a,c)=>{if(a)u(a);else{let l=new zD.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},XR=t=>new Ro.Sync(t),ZR=t=>new Ro(t)});var VD=m(de=>{"use strict";de.c=de.create=TE();de.r=de.replace=Il();de.t=de.list=Eo();de.u=de.update=qE();de.x=de.extract=KD();de.Pack=to();de.Unpack=Jl();de.Parse=go();de.ReadEntry=Ms();de.WriteEntry=cl();de.Header=Ei();de.Pax=Hs();de.types=Wc()});var ty=m((fP,ey)=>{function tt(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))}ey.exports=tt;tt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};tt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};tt.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};tt.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)};tt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};tt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};tt.prototype.start=tt.prototype.try;tt.prototype.errors=function(){return this._errors};tt.prototype.attempts=function(){return this._attempts};tt.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 ry=m(qr=>{var tT=ty();qr.operation=function(t){var e=qr.timeouts(t);return new tT(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};qr.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};qr.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};qr.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=qr.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 ny=m((pP,iy)=>{iy.exports=ry()});var oy=m((dP,sy)=>{var rT=ny();function iT(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=rT.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)}sy.exports=iT});var ET={};nf(ET,{default:()=>gT,fixGlobPattern:()=>dy,transformer:()=>py});module.exports=_y(ET);var ly=K(require("path")),fy=require("fs-extra");var Sy=K(ff());function No(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Li(t){return Li=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},Li(t)}function ko(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mo(t,e){if(e&&(Li(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ko(t)}function dr(t){return dr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dr(t)}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},St(t,e)}function qo(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&&St(t,e)}function Ho(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $o(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hr(t,e,r){return $o()?Hr=Reflect.construct.bind():Hr=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),c=new a;return o&&St(c,o.prototype),c},Hr.apply(null,arguments)}function Ii(t){var e=typeof Map=="function"?new Map:void 0;return Ii=function(i){if(i===null||!Ho(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 Hr(i,arguments,dr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),St(n,i)},Ii(t)}var Uo=K(require("find-up")),wn=K(require("path")),Fn=K(require("fs-extra")),Cy=function(t){qo(e,t);function e(r){var i;return No(this,e),i=Mo(this,dr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Ii(Error));function by(t,e){try{var r=Fn.default.readJsonSync(wn.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function wy(t){try{var e=Fn.default.readJsonSync(wn.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function Fy(t){var e=Fn.default.existsSync(wn.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function hf(t){var e={current:void 0},r=(0,Uo.sync)(function(i){return[wy(i),by(i,e),Fy(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new Cy(t);return r===void 0?e.current:r}var xy=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,vy=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Ry=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Go={Space_Separator:xy,ID_Start:vy,ID_Continue:Ry},oe={isSpaceSeparator(t){return typeof t=="string"&&Go.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Go.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Go.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Wo,Oe,bt,vn,Gt,rt,me,Ko,ki,Ty=function(e,r){Wo=String(e),Oe="start",bt=[],vn=0,Gt=1,rt=0,me=void 0,Ko=void 0,ki=void 0;do me=Oy(),Ly[Oe]();while(me.type!=="eof");return typeof r=="function"?zo({"":ki},"",r):ki};function zo(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let s=String(n),o=zo(i,s,r);o===void 0?delete i[s]:Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let s=zo(i,n,r);s===void 0?delete i[n]:Object.defineProperty(i,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var H,M,Ni,Ct,G;function Oy(){for(H="default",M="",Ni=!1,Ct=1;;){G=wt();let t=df[H]();if(t)return t}}function wt(){if(Wo[vn])return String.fromCodePoint(Wo.codePointAt(vn))}function S(){let t=wt();return t===`
|
9
9
|
`?(Gt++,rt=0):t?rt+=t.length:rt++,t&&(vn+=t.length),t}var df={default(){switch(G){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
10
10
|
`:case"\r":case"\u2028":case"\u2029":S();return;case"/":S(),H="comment";return;case void 0:return S(),ee("eof")}if(oe.isSpaceSeparator(G)){S();return}return df[Oe]()},comment(){switch(G){case"*":S(),H="multiLineComment";return;case"/":S(),H="singleLineComment";return}throw te(S())},multiLineComment(){switch(G){case"*":S(),H="multiLineCommentAsterisk";return;case void 0:throw te(S())}S()},multiLineCommentAsterisk(){switch(G){case"*":S();return;case"/":S(),H="default";return;case void 0:throw te(S())}S(),H="multiLineComment"},singleLineComment(){switch(G){case`
|
11
11
|
`:case"\r":case"\u2028":case"\u2029":S(),H="default";return;case void 0:return S(),ee("eof")}S()},value(){switch(G){case"{":case"[":return ee("punctuator",S());case"n":return S(),mr("ull"),ee("null",null);case"t":return S(),mr("rue"),ee("boolean",!0);case"f":return S(),mr("alse"),ee("boolean",!1);case"-":case"+":S()==="-"&&(Ct=-1),H="sign";return;case".":M=S(),H="decimalPointLeading";return;case"0":M=S(),H="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":M=S(),H="decimalInteger";return;case"I":return S(),mr("nfinity"),ee("numeric",1/0);case"N":return S(),mr("aN"),ee("numeric",NaN);case'"':case"'":Ni=S()==='"',M="",H="string";return}throw te(S())},identifierNameStartEscape(){if(G!=="u")throw te(S());S();let t=Yo();switch(t){case"$":case"_":break;default:if(!oe.isIdStartChar(t))throw pf();break}M+=t,H="identifierName"},identifierName(){switch(G){case"$":case"_":case"\u200C":case"\u200D":M+=S();return;case"\\":S(),H="identifierNameEscape";return}if(oe.isIdContinueChar(G)){M+=S();return}return ee("identifier",M)},identifierNameEscape(){if(G!=="u")throw te(S());S();let t=Yo();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!oe.isIdContinueChar(t))throw pf();break}M+=t,H="identifierName"},sign(){switch(G){case".":M=S(),H="decimalPointLeading";return;case"0":M=S(),H="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":M=S(),H="decimalInteger";return;case"I":return S(),mr("nfinity"),ee("numeric",Ct*(1/0));case"N":return S(),mr("aN"),ee("numeric",NaN)}throw te(S())},zero(){switch(G){case".":M+=S(),H="decimalPoint";return;case"e":case"E":M+=S(),H="decimalExponent";return;case"x":case"X":M+=S(),H="hexadecimal";return}return ee("numeric",Ct*0)},decimalInteger(){switch(G){case".":M+=S(),H="decimalPoint";return;case"e":case"E":M+=S(),H="decimalExponent";return}if(oe.isDigit(G)){M+=S();return}return ee("numeric",Ct*Number(M))},decimalPointLeading(){if(oe.isDigit(G)){M+=S(),H="decimalFraction";return}throw te(S())},decimalPoint(){switch(G){case"e":case"E":M+=S(),H="decimalExponent";return}if(oe.isDigit(G)){M+=S(),H="decimalFraction";return}return ee("numeric",Ct*Number(M))},decimalFraction(){switch(G){case"e":case"E":M+=S(),H="decimalExponent";return}if(oe.isDigit(G)){M+=S();return}return ee("numeric",Ct*Number(M))},decimalExponent(){switch(G){case"+":case"-":M+=S(),H="decimalExponentSign";return}if(oe.isDigit(G)){M+=S(),H="decimalExponentInteger";return}throw te(S())},decimalExponentSign(){if(oe.isDigit(G)){M+=S(),H="decimalExponentInteger";return}throw te(S())},decimalExponentInteger(){if(oe.isDigit(G)){M+=S();return}return ee("numeric",Ct*Number(M))},hexadecimal(){if(oe.isHexDigit(G)){M+=S(),H="hexadecimalInteger";return}throw te(S())},hexadecimalInteger(){if(oe.isHexDigit(G)){M+=S();return}return ee("numeric",Ct*Number(M))},string(){switch(G){case"\\":S(),M+=By();return;case'"':if(Ni)return S(),ee("string",M);M+=S();return;case"'":if(!Ni)return S(),ee("string",M);M+=S();return;case`
|
@@ -18,22 +18,22 @@ ${i.message}`:d,w=[y,e,t].filter(Boolean).join(`
|
|
18
18
|
`+D+"}"}}return n.pop(),s=D,B}function E(d){if(d.length===0)return f(d,!0);let D=String.fromCodePoint(d.codePointAt(0));if(!oe.isIdStartChar(D))return f(d,!0);for(let y=D.length;y<d.length;y++)if(!oe.isIdContinueChar(String.fromCodePoint(d.codePointAt(y))))return f(d,!0);return d}function g(d){if(n.indexOf(d)>=0)throw TypeError("Converting circular structure to JSON5");n.push(d);let D=s;s=s+a;let y=[];for(let B=0;B<d.length;B++){let q=l(String(B),d);y.push(q!==void 0?q:"null")}let w;if(y.length===0)w="[]";else if(a==="")w="["+y.join(",")+"]";else{let B=`,
|
19
19
|
`+s,q=y.join(B);w=`[
|
20
20
|
`+s+q+`,
|
21
|
-
`+D+"]"}return n.pop(),s=D,w}},ky={parse:Ty,stringify:Ny},My=ky,Tn=My;var Vo=K(require("fs")),Mi=K(require("path"));function Xo({target:t,cwd:e,contentCheck:r}){let i=Mi.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=Vo.default.readFileSync(Mi.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(Vo.default.existsSync(Mi.default.join(s,t))){n=!0;break}s=Mi.default.dirname(s)}return n?s:null}function qy(t){let e=Tn.parse(t);return!(e&&"extends"in e)}var Zo={};function
|
21
|
+
`+D+"]"}return n.pop(),s=D,w}},ky={parse:Ty,stringify:Ny},My=ky,Tn=My;var Vo=K(require("fs")),Mi=K(require("path"));function Xo({target:t,cwd:e,contentCheck:r}){let i=Mi.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=Vo.default.readFileSync(Mi.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(Vo.default.existsSync(Mi.default.join(s,t))){n=!0;break}s=Mi.default.dirname(s)}return n?s:null}function qy(t){let e=Tn.parse(t);return!(e&&"extends"in e)}var Zo={};function Qo(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&Zo[i])return Zo[i];let n=Xo({target:"turbo.json",cwd:i,contentCheck:qy});if(!n)try{if(n=hf(i),!n)return null}catch{return null}return r&&(Zo[i]=n),n}var Ki=K(require("fs")),br=K(require("path"));function Of(t){return typeof t=="undefined"||t===null}function Hy(t){return typeof t=="object"&&t!==null}function $y(t){return Array.isArray(t)?t:Of(t)?[]:[t]}function Uy(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 Gy(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function jy(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Wy=Of,zy=Hy,Yy=$y,Ky=Gy,Vy=jy,Xy=Uy,pe={isNothing:Wy,isObject:zy,toArray:Yy,repeat:Ky,isNegativeZero:Vy,extend:Xy};function Bf(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+=`
|
22
22
|
|
23
|
-
`+t.mark.snippet),i+" "+r):i}function Hi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Bf(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Hi.prototype=Object.create(Error.prototype);Hi.prototype.constructor=Hi;Hi.prototype.toString=function(e){return this.name+": "+Bf(this,e)};var Be=Hi;function
|
24
|
-
`+u;for(c=
|
23
|
+
`+t.mark.snippet),i+" "+r):i}function Hi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Bf(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Hi.prototype=Object.create(Error.prototype);Hi.prototype.constructor=Hi;Hi.prototype.toString=function(e){return this.name+": "+Bf(this,e)};var Be=Hi;function Jo(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 eu(t,e){return pe.repeat(" ",e-t.length)+t}function Zy(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=Jo(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),f),u=pe.repeat(" ",e.indent)+eu((t.line-a+1).toString(),l)+" | "+c.str+`
|
24
|
+
`+u;for(c=Jo(t.buffer,i[o],n[o],t.position,f),u+=pe.repeat(" ",e.indent)+eu((t.line+1).toString(),l)+" | "+c.str+`
|
25
25
|
`,u+=pe.repeat("-",e.indent+l+3+c.pos)+`^
|
26
|
-
`,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)c=
|
27
|
-
`;return u.replace(/\n$/,"")}var
|
28
|
-
\r`;function FA(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=uu;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 xA(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=uu,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 vA(t){var e="",r=0,i,n,s=t.length,o=uu;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 RA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Kf=new Ae("tag:yaml.org,2002:binary",{kind:"scalar",resolve:FA,construct:xA,predicate:RA,represent:vA}),TA=Object.prototype.hasOwnProperty,OA=Object.prototype.toString;function BA(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,OA.call(n)!=="[object Object]")return!1;for(s in n)if(TA.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 PA(t){return t!==null?t:[]}var Vf=new Ae("tag:yaml.org,2002:omap",{kind:"sequence",resolve:BA,construct:PA}),LA=Object.prototype.toString;function IA(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],LA.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function NA(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 Xf=new Ae("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:IA,construct:NA}),kA=Object.prototype.hasOwnProperty;function MA(t){if(t===null)return!0;var e,r=t;for(e in r)if(kA.call(r,e)&&r[e]!==null)return!1;return!0}function qA(t){return t!==null?t:{}}var Zf=new Ae("tag:yaml.org,2002:set",{kind:"mapping",resolve:MA,construct:qA}),au=Gf.extend({implicit:[zf,Yf],explicit:[Kf,Vf,Xf,Zf]}),Wt=Object.prototype.hasOwnProperty,On=1,
|
29
|
-
`: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 YA(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var rh=new Array(256),ih=new Array(256);for(Er=0;Er<256;Er++)rh[Er]=yf(Er)?1:0,ih[Er]=yf(Er);var Er;function KA(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||au,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 nh(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=
|
30
|
-
`,e-1))}function VA(t,e,r){var i,n,s,o,u,a,c,l,f=t.kind,h=t.result,E;if(E=t.input.charCodeAt(t.position),Pe(E)||Ur(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96||(E===63||E===45)&&(n=t.input.charCodeAt(t.position+1),Pe(n)||r&&Ur(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;E!==0;){if(E===58){if(n=t.input.charCodeAt(t.position+1),Pe(n)||r&&Ur(n))break}else if(E===35){if(i=t.input.charCodeAt(t.position-1),Pe(i))break}else{if(t.position===t.lineStart&&Nn(t)||r&&Ur(E))break;if(ot(E))if(a=t.line,c=t.lineStart,l=t.lineIndent,ce(t,!1,-1),t.lineIndent>=e){u=!0,E=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=c,t.lineIndent=l;break}}u&&(jt(t,s,o,!1),lu(t,t.line-a),s=o=t.position,u=!1),Dr(E)||(o=t.position+1),E=t.input.charCodeAt(++t.position)}return jt(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function XA(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(jt(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 ot(r)?(jt(t,i,n,!0),lu(t,ce(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Nn(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function ZA(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 jt(t,r,t.position,!0),t.position++,!0;if(u===92){if(jt(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),ot(u))ce(t,!1,e);else if(u<256&&rh[u])t.result+=ih[u],t.position++;else if((o=WA(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=jA(u))>=0?s=(s<<4)+o:O(t,"expected hexadecimal character");t.result+=YA(s),t.position++}else O(t,"unknown escape sequence");r=i=t.position}else ot(u)?(jt(t,r,i,!0),lu(t,ce(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Nn(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function
|
26
|
+
`,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)c=Jo(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),f),u+=pe.repeat(" ",e.indent)+eu((t.line+a+1).toString(),l)+" | "+c.str+`
|
27
|
+
`;return u.replace(/\n$/,"")}var Qy=Zy,Jy=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],eA=["scalar","sequence","mapping"];function tA(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function rA(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Jy.indexOf(r)===-1)throw new Be('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=tA(e.styleAliases||null),eA.indexOf(this.kind)===-1)throw new Be('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Ae=rA;function gf(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 iA(){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 ru(t){return this.extend(t)}ru.prototype.extend=function(e){var r=[],i=[];if(e instanceof Ae)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 Be("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Ae))throw new Be("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Be("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 Be("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 Ae))throw new Be("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ru.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=gf(n,"implicit"),n.compiledExplicit=gf(n,"explicit"),n.compiledTypeMap=iA(n.compiledImplicit,n.compiledExplicit),n};var Pf=ru,Lf=new Ae("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),If=new Ae("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Nf=new Ae("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),kf=new Pf({explicit:[Lf,If,Nf]});function nA(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function sA(){return null}function oA(t){return t===null}var Mf=new Ae("tag:yaml.org,2002:null",{kind:"scalar",resolve:nA,construct:sA,predicate:oA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function uA(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 aA(t){return t==="true"||t==="True"||t==="TRUE"}function cA(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var qf=new Ae("tag:yaml.org,2002:bool",{kind:"scalar",resolve:uA,construct:aA,predicate:cA,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 lA(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function fA(t){return 48<=t&&t<=55}function hA(t){return 48<=t&&t<=57}function pA(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(!lA(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!fA(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!hA(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function dA(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 mA(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!pe.isNegativeZero(t)}var Hf=new Ae("tag:yaml.org,2002:int",{kind:"scalar",resolve:pA,construct:dA,predicate:mA,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"]}}),gA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function EA(t){return!(t===null||!gA.test(t)||t[t.length-1]==="_")}function DA(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 yA=/^[-+]?[0-9]+e/;function AA(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(pe.isNegativeZero(t))return"-0.0";return r=t.toString(10),yA.test(r)?r.replace("e",".e"):r}function _A(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||pe.isNegativeZero(t))}var $f=new Ae("tag:yaml.org,2002:float",{kind:"scalar",resolve:EA,construct:DA,predicate:_A,represent:AA,defaultStyle:"lowercase"}),Uf=kf.extend({implicit:[Mf,qf,Hf,$f]}),Gf=Uf,jf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Wf=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 SA(t){return t===null?!1:jf.exec(t)!==null||Wf.exec(t)!==null}function CA(t){var e,r,i,n,s,o,u,a=0,c=null,l,f,h;if(e=jf.exec(t),e===null&&(e=Wf.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 bA(t){return t.toISOString()}var zf=new Ae("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:SA,construct:CA,instanceOf:Date,represent:bA});function wA(t){return t==="<<"||t===null}var Yf=new Ae("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wA}),uu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
28
|
+
\r`;function FA(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=uu;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 xA(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=uu,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 vA(t){var e="",r=0,i,n,s=t.length,o=uu;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 RA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Kf=new Ae("tag:yaml.org,2002:binary",{kind:"scalar",resolve:FA,construct:xA,predicate:RA,represent:vA}),TA=Object.prototype.hasOwnProperty,OA=Object.prototype.toString;function BA(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,OA.call(n)!=="[object Object]")return!1;for(s in n)if(TA.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 PA(t){return t!==null?t:[]}var Vf=new Ae("tag:yaml.org,2002:omap",{kind:"sequence",resolve:BA,construct:PA}),LA=Object.prototype.toString;function IA(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],LA.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function NA(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 Xf=new Ae("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:IA,construct:NA}),kA=Object.prototype.hasOwnProperty;function MA(t){if(t===null)return!0;var e,r=t;for(e in r)if(kA.call(r,e)&&r[e]!==null)return!1;return!0}function qA(t){return t!==null?t:{}}var Zf=new Ae("tag:yaml.org,2002:set",{kind:"mapping",resolve:MA,construct:qA}),au=Gf.extend({implicit:[zf,Yf],explicit:[Kf,Vf,Xf,Zf]}),Wt=Object.prototype.hasOwnProperty,On=1,Qf=2,Jf=3,Bn=4,tu=1,HA=2,Ef=3,$A=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,UA=/[\x85\u2028\u2029]/,GA=/[,\[\]\{\}]/,eh=/^(?:!|!!|![a-z\-]+!)$/i,th=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Df(t){return Object.prototype.toString.call(t)}function ot(t){return t===10||t===13}function Dr(t){return t===9||t===32}function Pe(t){return t===9||t===32||t===10||t===13}function Ur(t){return t===44||t===91||t===93||t===123||t===125}function jA(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function WA(t){return t===120?2:t===117?4:t===85?8:0}function zA(t){return 48<=t&&t<=57?t-48:-1}function yf(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
29
|
+
`: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 YA(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var rh=new Array(256),ih=new Array(256);for(Er=0;Er<256;Er++)rh[Er]=yf(Er)?1:0,ih[Er]=yf(Er);var Er;function KA(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||au,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 nh(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=Qy(r),new Be(e,r)}function O(t,e){throw nh(t,e)}function Pn(t,e){t.onWarning&&t.onWarning.call(null,nh(t,e))}var Af={YAML:function(e,r,i){var n,s,o;e.version!==null&&O(e,"duplication of %YAML directive"),i.length!==1&&O(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&O(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&O(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Pn(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&O(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],eh.test(n)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),Wt.call(e.tagMap,n)&&O(e,'there is a previously declared suffix for "'+n+'" tag handle'),th.test(s)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{O(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function jt(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||O(t,"expected valid JSON character");else $A.test(u)&&O(t,"the stream contains non-printable characters");t.result+=u}}function _f(t,e,r,i){var n,s,o,u;for(pe.isObject(r)||O(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],Wt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Gr(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])&&O(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Df(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Df(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)_f(t,e,s[c],r);else _f(t,e,s,r);else!t.json&&!Wt.call(r,n)&&Wt.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||t.position,O(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 cu(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++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ce(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Dr(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(ot(n))for(cu(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&&Pn(t,"deficient indentation"),i}function Nn(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||Pe(r)))}function lu(t,e){e===1?t.result+=" ":e>1&&(t.result+=pe.repeat(`
|
30
|
+
`,e-1))}function VA(t,e,r){var i,n,s,o,u,a,c,l,f=t.kind,h=t.result,E;if(E=t.input.charCodeAt(t.position),Pe(E)||Ur(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96||(E===63||E===45)&&(n=t.input.charCodeAt(t.position+1),Pe(n)||r&&Ur(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;E!==0;){if(E===58){if(n=t.input.charCodeAt(t.position+1),Pe(n)||r&&Ur(n))break}else if(E===35){if(i=t.input.charCodeAt(t.position-1),Pe(i))break}else{if(t.position===t.lineStart&&Nn(t)||r&&Ur(E))break;if(ot(E))if(a=t.line,c=t.lineStart,l=t.lineIndent,ce(t,!1,-1),t.lineIndent>=e){u=!0,E=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=c,t.lineIndent=l;break}}u&&(jt(t,s,o,!1),lu(t,t.line-a),s=o=t.position,u=!1),Dr(E)||(o=t.position+1),E=t.input.charCodeAt(++t.position)}return jt(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function XA(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(jt(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 ot(r)?(jt(t,i,n,!0),lu(t,ce(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Nn(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function ZA(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 jt(t,r,t.position,!0),t.position++,!0;if(u===92){if(jt(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),ot(u))ce(t,!1,e);else if(u<256&&rh[u])t.result+=ih[u],t.position++;else if((o=WA(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=jA(u))>=0?s=(s<<4)+o:O(t,"expected hexadecimal character");t.result+=YA(s),t.position++}else O(t,"unknown escape sequence");r=i=t.position}else ot(u)?(jt(t,r,i,!0),lu(t,ce(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Nn(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function QA(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,c,l,f,h,E,g=Object.create(null),d,D,y,w;if(w=t.input.charCodeAt(t.position),w===91)l=93,E=!1,u=[];else if(w===123)l=125,E=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),w=t.input.charCodeAt(++t.position);w!==0;){if(ce(t,!0,e),w=t.input.charCodeAt(t.position),w===l)return t.position++,t.tag=o,t.anchor=a,t.kind=E?"mapping":"sequence",t.result=u,!0;r?w===44&&O(t,"expected the node content, but found ','"):O(t,"missed comma between flow collection entries"),D=d=y=null,f=h=!1,w===63&&(c=t.input.charCodeAt(t.position+1),Pe(c)&&(f=h=!0,t.position++,ce(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,jr(t,e,On,!1,!0),D=t.tag,d=t.result,ce(t,!0,e),w=t.input.charCodeAt(t.position),(h||t.line===i)&&w===58&&(f=!0,w=t.input.charCodeAt(++t.position),ce(t,!0,e),jr(t,e,On,!1,!0),y=t.result),E?Gr(t,u,g,D,d,y,i,n,s):f?u.push(Gr(t,null,g,D,d,y,i,n,s)):u.push(d),ce(t,!0,e),w=t.input.charCodeAt(t.position),w===44?(r=!0,w=t.input.charCodeAt(++t.position)):r=!1}O(t,"unexpected end of the stream within a flow collection")}function JA(t,e){var r,i,n=tu,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)tu===n?n=f===43?Ef:HA:O(t,"repeat of a chomping mode identifier");else if((l=zA(f))>=0)l===0?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?O(t,"repeat of an indentation width identifier"):(u=e+l-1,o=!0);else break;if(Dr(f)){do f=t.input.charCodeAt(++t.position);while(Dr(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ot(f)&&f!==0)}for(;f!==0;){for(cu(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),ot(f)){a++;continue}if(t.lineIndent<u){n===Ef?t.result+=pe.repeat(`
|
31
31
|
`,s?1+a:a):n===tu&&s&&(t.result+=`
|
32
32
|
`);break}for(i?Dr(f)?(c=!0,t.result+=pe.repeat(`
|
33
33
|
`,s?1+a:a)):c?(c=!1,t.result+=pe.repeat(`
|
34
34
|
`,a+1)):a===0?s&&(t.result+=" "):t.result+=pe.repeat(`
|
35
35
|
`,a):t.result+=pe.repeat(`
|
36
|
-
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!ot(f)&&f!==0;)f=t.input.charCodeAt(++t.position);jt(t,r,t.position,!1)}return!0}function Sf(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,O(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!Pe(o))));){if(u=!0,t.position++,ce(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,jr(t,e,
|
36
|
+
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!ot(f)&&f!==0;)f=t.input.charCodeAt(++t.position);jt(t,r,t.position,!1)}return!0}function Sf(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,O(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!Pe(o))));){if(u=!0,t.position++,ce(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,jr(t,e,Jf,!1,!0),s.push(t.result),ce(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)O(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 e_(t,e,r){var i,n,s,o,u,a,c=t.tag,l=t.anchor,f={},h=Object.create(null),E=null,g=null,d=null,D=!1,y=!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(!D&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(w===63||w===58)&&Pe(i))w===63?(D&&(Gr(t,f,h,E,g,null,o,u,a),E=g=d=null),y=!0,D=!0,n=!0):D?(D=!1,n=!0):O(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,!jr(t,r,Qf,!1,!0))break;if(t.line===s){for(w=t.input.charCodeAt(t.position);Dr(w);)w=t.input.charCodeAt(++t.position);if(w===58)w=t.input.charCodeAt(++t.position),Pe(w)||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(Gr(t,f,h,E,g,null,o,u,a),E=g=d=null),y=!0,D=!1,n=!1,E=t.tag,g=t.result;else if(y)O(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(y)O(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)&&(D&&(o=t.line,u=t.lineStart,a=t.position),jr(t,e,Bn,!0,n)&&(D?g=t.result:d=t.result),D||(Gr(t,f,h,E,g,d,o,u,a),E=g=d=null),ce(t,!0,-1),w=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&w!==0)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return D&&Gr(t,f,h,E,g,null,o,u,a),y&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=f),y}function t_(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&&O(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)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Pe(o);)o===33&&(i?O(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),eh.test(n)||O(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),GA.test(s)&&O(t,"tag suffix cannot contain flow indicator characters")}s&&!th.test(s)&&O(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{O(t,"tag name is malformed: "+s)}return r?t.tag=s:Wt.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:O(t,'undeclared tag handle "'+n+'"'),!0}function r_(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&O(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Pe(r)&&!Ur(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function i_(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&&!Pe(i)&&!Ur(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Wt.call(t.anchorMap,r)||O(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ce(t,!0,-1),!0}function jr(t,e,r,i,n){var s,o,u,a=1,c=!1,l=!1,f,h,E,g,d,D;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=Bn===r||Jf===r,i&&ce(t,!0,-1)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;t_(t)||r_(t);)ce(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||Bn===r)&&(On===r||Qf===r?d=e:d=e+1,D=t.position-t.lineStart,a===1?u&&(Sf(t,D)||e_(t,D,d))||QA(t,d)?l=!0:(o&&JA(t,d)||XA(t,d)||ZA(t,d)?l=!0:i_(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&O(t,"alias node should not have any properties")):VA(t,d,On===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(l=u&&Sf(t,D))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(g=t.implicitTypes[f],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Wt.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,E=t.typeMap.multi[t.kind||"fallback"],f=0,h=E.length;f<h;f+=1)if(t.tag.slice(0,E[f].tag.length)===E[f].tag){g=E[f];break}g||O(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):O(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 n_(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&&(ce(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&&!Pe(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&O(t,"directive name must not be less than one character in length");o!==0;){for(;Dr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!ot(o));break}if(ot(o))break;for(r=t.position;o!==0&&!Pe(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&cu(t),Wt.call(Af,i)?Af[i](t,i,n):Pn(t,'unknown document directive "'+i+'"')}if(ce(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,ce(t,!0,-1)):s&&O(t,"directives end mark is expected"),jr(t,t.lineIndent-1,Bn,!1,!0),ce(t,!0,-1),t.checkLineBreaks&&UA.test(t.input.slice(e,t.position))&&Pn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Nn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,ce(t,!0,-1));return}if(t.position<t.length-1)O(t,"end of the stream or a document separator is expected");else return}function sh(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
37
37
|
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new KA(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,O(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;)n_(r);return r.documents}function s_(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=sh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function o_(t,e){var r=sh(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Be("expected a single document in the stream, but found more")}}var u_=s_,a_=o_,oh={loadAll:u_,load:a_},uh=Object.prototype.toString,ah=Object.prototype.hasOwnProperty,fu=65279,c_=9,$i=10,l_=13,f_=32,h_=33,p_=34,iu=35,d_=37,m_=38,g_=39,E_=42,ch=44,D_=45,Ln=58,y_=61,A_=62,__=63,S_=64,lh=91,fh=93,C_=96,hh=123,b_=124,ph=125,_e={};_e[0]="\\0";_e[7]="\\a";_e[8]="\\b";_e[9]="\\t";_e[10]="\\n";_e[11]="\\v";_e[12]="\\f";_e[13]="\\r";_e[27]="\\e";_e[34]='\\"';_e[92]="\\\\";_e[133]="\\N";_e[160]="\\_";_e[8232]="\\L";_e[8233]="\\P";var w_=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],F_=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function x_(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&&ah.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function v_(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 Be("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+pe.repeat("0",i-e.length)+e}var R_=1,Ui=2;function T_(t){this.schema=t.schema||au,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=pe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=x_(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==='"'?Ui:R_,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 Cf(t,e){for(var r=pe.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
|
38
38
|
`,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
39
39
|
`&&(s+=r),s+=o;return s}function nu(t,e){return`
|
@@ -49,7 +49,7 @@ ${i.message}`:d,w=[y,e,t].filter(Boolean).join(`
|
|
49
49
|
`+t.slice(n,s),n=s+1),o=u;return a+=`
|
50
50
|
`,t.length-n>e&&o>n?a+=t.slice(n,o)+`
|
51
51
|
`+t.slice(o+1):a+=t.slice(n),a.slice(1)}function k_(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=qi(t,n),i=_e[r],!i&&Gi(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||v_(r);return e}function M_(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)),(Ft(t,e,u,!1,!1)||typeof u=="undefined"&&Ft(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Rf(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)),(Ft(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&Ft(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=nu(t,e)),t.dump&&$i===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function q_(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)),Ft(t,e,a,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ft(t,e,c,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function H_(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 Be("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)h="",(!i||n!=="")&&(h+=nu(t,e)),c=o[u],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Ft(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+=nu(t,e)),Ft(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 Tf(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,uh.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(ah.call(u.represent,a))i=u.represent[a](e,a);else throw new Be("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function Ft(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Tf(t,r,!1)||Tf(t,r,!0);var u=uh.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?(H_(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(q_(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?Rf(t,e-1,t.dump,n):Rf(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(M_(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&I_(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Be("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 $_(t,e){var r=[],i=[],n,s;for(ou(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function ou(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)ou(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)ou(t[i[n]],e,r)}function U_(t,e){e=e||{};var r=new T_(e);r.noRefs||$_(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Ft(r,0,i,!0,!0)?r.dump+`
|
52
|
-
`:""}var G_=U_,j_={dump:G_};function hu(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 W_=Ae,z_=Pf,Y_=kf,K_=Uf,V_=Gf,X_=au,Z_=oh.load,
|
52
|
+
`:""}var G_=U_,j_={dump:G_};function hu(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 W_=Ae,z_=Pf,Y_=kf,K_=Uf,V_=Gf,X_=au,Z_=oh.load,Q_=oh.loadAll,J_=j_.dump,eS=Be,tS={binary:Kf,float:$f,map:Nf,null:Mf,pairs:Xf,set:Zf,timestamp:zf,bool:qf,int:Hf,merge:Yf,omap:Vf,seq:If,str:Lf},rS=hu("safeLoad","load"),iS=hu("safeLoadAll","loadAll"),nS=hu("safeDump","dump"),sS={Type:W_,Schema:z_,FAILSAFE_SCHEMA:Y_,JSON_SCHEMA:K_,CORE_SCHEMA:V_,DEFAULT_SCHEMA:X_,load:Z_,loadAll:Q_,dump:J_,YAMLException:eS,types:tS,safeLoad:rS,safeLoadAll:iS,safeDump:nS},Dh=sS;var dm=K(sm());var Ve={};nf(Ve,{bold:()=>fw,dimmed:()=>pw,error:()=>pm,grey:()=>dw,info:()=>lw,item:()=>mw,log:()=>Jt,turboBlue:()=>ti,turboGradient:()=>cw,turboLoader:()=>hm,turboRed:()=>lm,underline:()=>hw,warn:()=>Ka,yellow:()=>fm});var Qt=K(require("chalk")),om=K(require("ora")),um=K(require("gradient-string")),am="#0099F7",cm="#F11712",aw="#FFFF00",cw=(0,um.default)(am,cm),ti=Qt.default.hex(am),lm=Qt.default.hex(cm),fm=Qt.default.hex(aw),hm=t=>(0,om.default)({text:t,spinner:{frames:[" ",ti("> "),ti(">> "),ti(">>>")]}}),lw=(...t)=>{Jt(ti.bold(">>>"),...t)},fw=(...t)=>{Jt(Qt.default.bold(...t))},hw=(...t)=>{Jt(Qt.default.underline(...t))},pw=(...t)=>{Jt(Qt.default.dim(...t))},dw=(...t)=>{Jt(Qt.default.grey(...t))},mw=(...t)=>{Jt(ti.bold(" \u2022"),...t)},Jt=(...t)=>{console.log(...t)},Ka=(...t)=>{console.error(fm.bold(">>>"),...t)},pm=(...t)=>{console.error(lm.bold(">>>"),...t)};var gw="turbo.json";var Va={};function Ew(t){try{if(Ki.default.existsSync(br.default.join(t,"pnpm-workspace.yaml")))return Dh.load(Ki.default.readFileSync(br.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Ki.default.readFileSync(br.default.join(t,"package.json"),"utf8"));if(e.workspaces){if("packages"in e.workspaces)return e.workspaces.packages||[];if(Array.isArray(e.workspaces))return e.workspaces}return[]}catch{return[]}}function Xa(t,e){var s;let r=Qo(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in Va)return Va[t];if(r){let u=Ew(r).map(c=>`${c}/turbo.json`);(0,dm.sync)([gw,...u],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(c=>br.default.join(r,c)).forEach(c=>{try{let l=Ki.default.readFileSync(c,"utf8"),f=Tn.parse(l),h=br.default.dirname(c)===r;if(h){if("extends"in f)return}else if(!("extends"in f))return;i.push({config:f,turboConfigPath:c,workspacePath:br.default.dirname(c),isRootConfig:h})}catch(l){Ka(l)}})}return n&&t&&(Va[t]=i),i}var fx=K(require("os")),hx=K(Z0());var px=K(require("fs-extra"));var dx=K(require("path")),mx=K(require("fs-extra")),gx=K(require("chalk"));var XD=require("stream"),ZD=require("util"),QR=require("path"),JR=require("os"),QD=require("fs"),eT=K(VD());var aP=(0,ZD.promisify)(XD.Stream.pipeline);var JD=require("fs-extra");var lT=K(require("path")),fT=K(oy()),hT=K(require("chalk")),tf=require("fs-extra");var Po=K(require("chalk"));var st=K(require("chalk")),Pi=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(st.default.green(" MODIFIED "),...e,this.dry?st.default.dim("(dry run)"):"")}unchanged(...e){this._log(st.default.gray(" UNCHANGED "),...e,this.dry?st.default.dim("(dry run)"):"")}skipped(...e){this._log(st.default.yellow(" SKIPPED "),...e,this.dry?st.default.dim("(dry run)"):"")}error(...e){this._log(st.default.red(" ERROR "),...e,this.dry?st.default.dim("(dry run)"):"")}info(...e){this._log(st.default.bold(" INFO "),...e,this.dry?st.default.dim("(dry run)"):"")}};var uy=K(require("os")),rf=K(require("path"));var To=K(require("chalk")),Bo=require("diff"),pr=require("fs-extra"),Oo=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{rf.default.extname(e.filePath)===".json"?this.before=(0,pr.readJsonSync)(e.filePath):this.before=(0,pr.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,Bo.diffJson)(this.before,e.after):this.changes=(0,Bo.diffLines)(this.before,e.after):this.changes=[]}fileName(){return rf.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,pr.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,pr.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(To.default.green(r.value)):r.removed?process.stdout.write(To.default.red(r.value)):process.stdout.write(To.default.dim(r.value))}),Ve.log(uy.default.EOL)):Ve.log(this.after)}};var _n=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Pi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new Oo({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(Po.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(Po.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(Po.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(Ve.log(),r.length>0){Ve.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),Ve.log()}}};function ay({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Pi(i),s=new _n(i);return{log:n,runner:s}}var hy="clean-globs",pT="Automatically clean up invalid globs from your 'turbo.json' file",dT="1.11.0";function py({root:t,options:e}){let{runner:r}=ay({transformer:hy,rootPath:t,options:e}),i=ly.default.join(t,"turbo.json"),n=(0,fy.readJsonSync)(i);return r.modifyFile({filePath:i,after:cy(n)}),Xa(t).forEach(o=>{let{config:u,turboConfigPath:a}=o;"pipeline"in u&&r.modifyFile({filePath:a,after:cy(u)})}),r.finish()}function cy(t){var r,i;let e=n=>dy(n);for(let[n,s]of Object.entries(t.pipeline))s.inputs=(r=s.inputs)==null?void 0:r.map(e),s.outputs=(i=s.outputs)==null?void 0:i.map(e);return t}function dy(t){let e=t,r=e.replace(/\*\*\/\*\*/g,"**");for(;r!==e;)e=r,r=e.replace(/\*\*\/\*\*/g,"**");return r=e.replace(/(\*\*)([^*/]+)/g,"$1/*$2"),r!==e&&(e=r),r=e.replace(/([^*/]+)(\*\*)/g,"$1*/$2"),r!==e&&(e=r),e}var mT={name:hy,description:pT,introducedIn:dT,transformer:py},gT=mT;0&&(module.exports={fixGlobPattern,transformer});
|
53
53
|
/*! Bundled license information:
|
54
54
|
|
55
55
|
@babel/runtime/helpers/regeneratorRuntime.js:
|