@holistics/cli-core 0.6.11 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands.js +6 -3
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -83,7 +83,7 @@ __p += '`;if(L1)G0+=`' +
|
|
|
83
83
|
function print() { __p += __j.call(arguments, '') }
|
|
84
84
|
`:`;
|
|
85
85
|
`)+G0+`return __p
|
|
86
|
-
}`;var V1=pF(function(){return A1(m,f0+"return "+G0).apply(x,T)});if(V1.source=G0,Zz(V1))throw V1;return V1}function Ao(K){return u1(K).toLowerCase()}function Eo(K){return u1(K).toUpperCase()}function fo(K,V,B){if(K=u1(K),K&&(B||V===x))return sM(K);if(!K||!(V=D4(V)))return K;var F=G8(K),P=G8(V),m=nM(F,P),T=aM(F,P)+1;return z5(F,m,T).join("")}function ko(K,V,B){if(K=u1(K),K&&(B||V===x))return K.slice(0,tM(K)+1);if(!K||!(V=D4(V)))return K;var F=G8(K),P=aM(F,G8(V))+1;return z5(F,0,P).join("")}function co(K,V,B){if(K=u1(K),K&&(B||V===x))return K.replace(H9,"");if(!K||!(V=D4(V)))return K;var F=G8(K),P=nM(F,G8(V));return z5(F,P).join("")}function bo(K,V){var B=C,F=I;if(H2(V)){var P="separator"in V?V.separator:P;B="length"in V?K1(V.length):B,F="omission"in V?D4(V.omission):F}K=u1(K);var m=K.length;if(M9(K)){var T=G8(K);m=T.length}if(B>=m)return K;var c=B-D9(F);if(c<1)return F;var n=T?z5(T,0,c).join(""):K.slice(0,c);if(P===x)return n+F;if(T)c+=n.length-c;if(Jz(P)){if(K.slice(c).search(P)){var Y0,K0=n;if(!P.global)P=FK(P.source,u1(MM.exec(P))+"g");P.lastIndex=0;while(Y0=P.exec(K0))var G0=Y0.index;n=n.slice(0,G0===x?c:G0)}}else if(K.indexOf(D4(P),c)!=c){var R0=n.lastIndexOf(P);if(R0>-1)n=n.slice(0,R0)}return n+F}function po(K){return K=u1(K),K&&J7.test(K)?K.replace(AQ,Uh):K}var yo=L9(function(K,V,B){return K+(B?" ":"")+V.toUpperCase()}),qz=yD("toUpperCase");function bF(K,V,B){if(K=u1(K),V=B?x:V,V===x)return zh(K)?Dh(K):xh(K);return K.match(V)||[]}var pF=H1(function(K,V){try{return B4(K,x,V)}catch(B){return Zz(B)?B:new Q1(B)}}),uo=_6(function(K,V){return k4(V,function(B){B=u8(B),w6(K,B,eK(K[B],K))}),K});function ho(K){var V=K==null?0:K.length,B=d0();return K=!V?[]:W2(K,function(F){if(typeof F[1]!="function")throw new c4(X);return[B(F[0]),F[1]]}),H1(function(F){var P=-1;while(++P<V){var m=K[P];if(B4(m[0],this,F))return B4(m[1],this,F)}})}function go(K){return Ug(p4(K,W))}function $z(K){return function(){return K}}function io(K,V){return K==null||K!==K?V:K}var lo=hD(),oo=hD(!0);function a3(K){return K}function Yz(K){return FD(typeof K=="function"?K:p4(K,W))}function so(K){return wD(p4(K,W))}function no(K,V){return PD(K,p4(V,W))}var ao=H1(function(K,V){return function(B){return KZ(B,K,V)}}),ro=H1(function(K,V){return function(B){return KZ(K,B,V)}});function Kz(K,V,B){var F=n2(V),P=VX(V,F);if(B==null&&!(H2(V)&&(P.length||!F.length)))B=V,V=K,K=this,P=VX(V,n2(V));var m=!(H2(B)&&("chain"in B))||!!B.chain,T=j6(K);return k4(P,function(c){var n=V[c];if(K[c]=n,T)K.prototype[c]=function(){var Y0=this.__chain__;if(m||Y0){var K0=K(this.__wrapped__),G0=K0.__actions__=o3(this.__actions__);return G0.push({func:n,args:arguments,thisArg:K}),K0.__chain__=Y0,K0}return n.apply(K,J5([this.value()],arguments))}}),K}function to(){if(s2._===this)s2._=Lh;return this}function zz(){}function eo(K){return K=K1(K),H1(function(V){return _D(V,K)})}var xs=yK(W2),Zs=yK(gM),Js=yK(VK);function yF(K){return oK(K)?GK(u8(K)):Tg(K)}function Qs(K){return function(V){return K==null?x:K7(K,V)}}var Xs=iD(),qs=iD(!0);function Wz(){return[]}function Vz(){return!1}function $s(){return{}}function Ys(){return""}function Ks(){return!0}function zs(K,V){if(K=K1(K),K<1||K>o)return[];var B=i0,F=P3(K,i0);V=d0(V),K-=i0;var P=BK(F,V);while(++B<K)V(B);return P}function Ws(K){if(X1(K))return W2(K,u8);return F4(K)?[K]:o3($F(u1(K)))}function Vs(K){var V=++Ph;return u1(K)+V}var Gs=DX(function(K,V){return K+V},0),Hs=uK("ceil"),Us=DX(function(K,V){return K/V},1),Bs=uK("floor");function Ms(K){return K&&K.length?WX(K,a3,mK):x}function Ds(K,V){return K&&K.length?WX(K,d0(V,2),mK):x}function Fs(K){return lM(K,a3)}function Ns(K,V){return lM(K,d0(V,2))}function ws(K){return K&&K.length?WX(K,a3,IK):x}function Ps(K,V){return K&&K.length?WX(K,d0(V,2),IK):x}var _s=DX(function(K,V){return K*V},1),Ls=uK("round"),js=DX(function(K,V){return K-V},0);function Cs(K){return K&&K.length?UK(K,a3):0}function ms(K,V){return K&&K.length?UK(K,d0(V,2)):0}if(j.after=od,j.ary=DF,j.assign=El,j.assignIn=TF,j.assignInWith=IX,j.assignWith=fl,j.at=kl,j.before=FF,j.bind=eK,j.bindAll=uo,j.bindKey=NF,j.castArray=ql,j.chain=UF,j.chunk=Ui,j.compact=Bi,j.concat=Mi,j.cond=ho,j.conforms=go,j.constant=$z,j.countBy=jd,j.create=cl,j.curry=wF,j.curryRight=PF,j.debounce=_F,j.defaults=bl,j.defaultsDeep=pl,j.defer=sd,j.delay=nd,j.difference=Di,j.differenceBy=Fi,j.differenceWith=Ni,j.drop=wi,j.dropRight=Pi,j.dropRightWhile=_i,j.dropWhile=Li,j.fill=ji,j.filter=md,j.flatMap=Rd,j.flatMapDeep=Id,j.flatMapDepth=Td,j.flatten=WF,j.flattenDeep=Ci,j.flattenDepth=mi,j.flip=ad,j.flow=lo,j.flowRight=oo,j.fromPairs=Oi,j.functions=ll,j.functionsIn=ol,j.groupBy=vd,j.initial=Ri,j.intersection=Ii,j.intersectionBy=Ti,j.intersectionWith=vi,j.invert=nl,j.invertBy=al,j.invokeMap=Ed,j.iteratee=Yz,j.keyBy=fd,j.keys=n2,j.keysIn=n3,j.map=jX,j.mapKeys=tl,j.mapValues=el,j.matches=so,j.matchesProperty=no,j.memoize=mX,j.merge=xo,j.mergeWith=vF,j.method=ao,j.methodOf=ro,j.mixin=Kz,j.negate=OX,j.nthArg=eo,j.omit=Zo,j.omitBy=Jo,j.once=rd,j.orderBy=kd,j.over=xs,j.overArgs=td,j.overEvery=Zs,j.overSome=Js,j.partial=xz,j.partialRight=LF,j.partition=cd,j.pick=Qo,j.pickBy=AF,j.property=yF,j.propertyOf=Qs,j.pull=ki,j.pullAll=GF,j.pullAllBy=ci,j.pullAllWith=bi,j.pullAt=pi,j.range=Xs,j.rangeRight=qs,j.rearg=ed,j.reject=yd,j.remove=yi,j.rest=xl,j.reverse=rK,j.sampleSize=hd,j.set=qo,j.setWith=$o,j.shuffle=gd,j.slice=ui,j.sortBy=ld,j.sortedUniq=si,j.sortedUniqBy=ni,j.split=Ro,j.spread=Zl,j.tail=ai,j.take=ri,j.takeRight=ti,j.takeRightWhile=ei,j.takeWhile=xd,j.tap=Bd,j.throttle=Jl,j.thru=LX,j.toArray=SF,j.toPairs=EF,j.toPairsIn=fF,j.toPath=Ws,j.toPlainObject=IF,j.transform=Yo,j.unary=Ql,j.union=Zd,j.unionBy=Jd,j.unionWith=Qd,j.uniq=Xd,j.uniqBy=qd,j.uniqWith=$d,j.unset=Ko,j.unzip=tK,j.unzipWith=HF,j.update=zo,j.updateWith=Wo,j.values=m9,j.valuesIn=Vo,j.without=Yd,j.words=bF,j.wrap=Xl,j.xor=Kd,j.xorBy=zd,j.xorWith=Wd,j.zip=Vd,j.zipObject=Gd,j.zipObjectDeep=Hd,j.zipWith=Ud,j.entries=EF,j.entriesIn=fF,j.extend=TF,j.extendWith=IX,Kz(j,j),j.add=Gs,j.attempt=pF,j.camelCase=Bo,j.capitalize=kF,j.ceil=Hs,j.clamp=Go,j.clone=$l,j.cloneDeep=Kl,j.cloneDeepWith=zl,j.cloneWith=Yl,j.conformsTo=Wl,j.deburr=cF,j.defaultTo=io,j.divide=Us,j.endsWith=Mo,j.eq=U8,j.escape=Do,j.escapeRegExp=Fo,j.every=Cd,j.find=Od,j.findIndex=KF,j.findKey=yl,j.findLast=Sd,j.findLastIndex=zF,j.findLastKey=ul,j.floor=Bs,j.forEach=BF,j.forEachRight=MF,j.forIn=hl,j.forInRight=gl,j.forOwn=il,j.forOwnRight=dl,j.get=Qz,j.gt=Vl,j.gte=Gl,j.has=sl,j.hasIn=Xz,j.head=VF,j.identity=a3,j.includes=Ad,j.indexOf=Si,j.inRange=Ho,j.invoke=rl,j.isArguments=V7,j.isArray=X1,j.isArrayBuffer=Hl,j.isArrayLike=s3,j.isArrayLikeObject=j2,j.isBoolean=Ul,j.isBuffer=W5,j.isDate=Bl,j.isElement=Ml,j.isEmpty=Dl,j.isEqual=Fl,j.isEqualWith=Nl,j.isError=Zz,j.isFinite=wl,j.isFunction=j6,j.isInteger=jF,j.isLength=SX,j.isMap=CF,j.isMatch=Pl,j.isMatchWith=_l,j.isNaN=Ll,j.isNative=jl,j.isNil=ml,j.isNull=Cl,j.isNumber=mF,j.isObject=H2,j.isObjectLike=N2,j.isPlainObject=UZ,j.isRegExp=Jz,j.isSafeInteger=Ol,j.isSet=OF,j.isString=RX,j.isSymbol=F4,j.isTypedArray=C9,j.isUndefined=Sl,j.isWeakMap=Rl,j.isWeakSet=Il,j.join=Ai,j.kebabCase=No,j.last=u4,j.lastIndexOf=Ei,j.lowerCase=wo,j.lowerFirst=Po,j.lt=Tl,j.lte=vl,j.max=Ms,j.maxBy=Ds,j.mean=Fs,j.meanBy=Ns,j.min=ws,j.minBy=Ps,j.stubArray=Wz,j.stubFalse=Vz,j.stubObject=$s,j.stubString=Ys,j.stubTrue=Ks,j.multiply=_s,j.nth=fi,j.noConflict=to,j.noop=zz,j.now=CX,j.pad=_o,j.padEnd=Lo,j.padStart=jo,j.parseInt=Co,j.random=Uo,j.reduce=bd,j.reduceRight=pd,j.repeat=mo,j.replace=Oo,j.result=Xo,j.round=Ls,j.runInContext=i,j.sample=ud,j.size=id,j.snakeCase=So,j.some=dd,j.sortedIndex=hi,j.sortedIndexBy=gi,j.sortedIndexOf=ii,j.sortedLastIndex=di,j.sortedLastIndexBy=li,j.sortedLastIndexOf=oi,j.startCase=Io,j.startsWith=To,j.subtract=js,j.sum=Cs,j.sumBy=ms,j.template=vo,j.times=zs,j.toFinite=C6,j.toInteger=K1,j.toLength=RF,j.toLower=Ao,j.toNumber=h4,j.toSafeInteger=Al,j.toString=u1,j.toUpper=Eo,j.trim=fo,j.trimEnd=ko,j.trimStart=co,j.truncate=bo,j.unescape=po,j.uniqueId=Vs,j.upperCase=yo,j.upperFirst=qz,j.each=BF,j.eachRight=MF,j.first=VF,Kz(j,function(){var K={};return p8(j,function(V,B){if(!y1.call(j.prototype,B))K[B]=V}),K}(),{chain:!1}),j.VERSION=Z,k4(["bind","bindKey","curry","curryRight","partial","partialRight"],function(K){j[K].placeholder=j}),k4(["drop","take"],function(K,V){N1.prototype[K]=function(B){B=B===x?1:g2(K1(B),0);var F=this.__filtered__&&!V?new N1(this):this.clone();if(F.__filtered__)F.__takeCount__=P3(B,F.__takeCount__);else F.__views__.push({size:P3(B,i0),type:K+(F.__dir__<0?"Right":"")});return F},N1.prototype[K+"Right"]=function(B){return this.reverse()[K](B).reverse()}}),k4(["filter","map","takeWhile"],function(K,V){var B=V+1,F=B==V0||B==s;N1.prototype[K]=function(P){var m=this.clone();return m.__iteratees__.push({iteratee:d0(P,3),type:B}),m.__filtered__=m.__filtered__||F,m}}),k4(["head","last"],function(K,V){var B="take"+(V?"Right":"");N1.prototype[K]=function(){return this[B](1).value()[0]}}),k4(["initial","tail"],function(K,V){var B="drop"+(V?"":"Right");N1.prototype[K]=function(){return this.__filtered__?new N1(this):this[B](1)}}),N1.prototype.compact=function(){return this.filter(a3)},N1.prototype.find=function(K){return this.filter(K).head()},N1.prototype.findLast=function(K){return this.reverse().find(K)},N1.prototype.invokeMap=H1(function(K,V){if(typeof K=="function")return new N1(this);return this.map(function(B){return KZ(B,K,V)})}),N1.prototype.reject=function(K){return this.filter(OX(d0(K)))},N1.prototype.slice=function(K,V){K=K1(K);var B=this;if(B.__filtered__&&(K>0||V<0))return new N1(B);if(K<0)B=B.takeRight(-K);else if(K)B=B.drop(K);if(V!==x)V=K1(V),B=V<0?B.dropRight(-V):B.take(V-K);return B},N1.prototype.takeRightWhile=function(K){return this.reverse().takeWhile(K).reverse()},N1.prototype.toArray=function(){return this.take(i0)},p8(N1.prototype,function(K,V){var B=/^(?:filter|find|map|reject)|While$/.test(V),F=/^(?:head|last)$/.test(V),P=j[F?"take"+(V=="last"?"Right":""):V],m=F||/^find/.test(V);if(!P)return;j.prototype[V]=function(){var T=this.__wrapped__,c=F?[1]:arguments,n=T instanceof N1,Y0=c[0],K0=n||X1(T),G0=function(D1){var L1=P.apply(j,J5([D1],c));return F&&R0?L1[0]:L1};if(K0&&B&&typeof Y0=="function"&&Y0.length!=1)n=K0=!1;var R0=this.__chain__,f0=!!this.__actions__.length,l0=m&&!R0,V1=n&&!f0;if(!m&&K0){T=V1?T:new N1(this);var o0=K.apply(T,c);return o0.__actions__.push({func:LX,args:[G0],thisArg:x}),new b4(o0,R0)}if(l0&&V1)return K.apply(this,c);return o0=this.thru(G0),l0?F?o0.value()[0]:o0.value():o0}}),k4(["pop","push","shift","sort","splice","unshift"],function(K){var V=nQ[K],B=/^(?:push|sort|unshift)$/.test(K)?"tap":"thru",F=/^(?:pop|shift)$/.test(K);j.prototype[K]=function(){var P=arguments;if(F&&!this.__chain__){var m=this.value();return V.apply(X1(m)?m:[],P)}return this[B](function(T){return V.apply(X1(T)?T:[],P)})}}),p8(N1.prototype,function(K,V){var B=j[V];if(B){var F=B.name+"";if(!y1.call(w9,F))w9[F]=[];w9[F].push({name:V,func:B})}}),w9[MX(x,N).name]=[{name:"wrapper",func:x}],N1.prototype.clone=ph,N1.prototype.reverse=yh,N1.prototype.value=uh,j.prototype.at=Md,j.prototype.chain=Dd,j.prototype.commit=Fd,j.prototype.next=Nd,j.prototype.plant=Pd,j.prototype.reverse=_d,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=Ld,j.prototype.first=j.prototype.head,ZZ)j.prototype[ZZ]=wd;return j},X5=Fh();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)s2._=X5,define(function(){return X5});else if(Q7)(Q7.exports=X5)._=X5,YK._=X5;else s2._=X5}).call(QQ)});var gF="0.6.11";var KN=G7(YN(),1),{program:YT0,createCommand:KT0,createArgument:zT0,createOption:WT0,CommanderError:VT0,InvalidArgumentError:GT0,InvalidOptionArgumentError:HT0,Command:g4,Argument:UT0,Option:BT0,Help:MT0}=KN.default;import V40 from"fs";var Pz=(x,Z,J)=>{let Q=x instanceof RegExp?zN(x,J):x,X=Z instanceof RegExp?zN(Z,J):Z,q=Q!==null&&X!=null&&Ln(Q,X,J);return q&&{start:q[0],end:q[1],pre:J.slice(0,q[0]),body:J.slice(q[0]+Q.length,q[1]),post:J.slice(q[1]+X.length)}},zN=(x,Z)=>{let J=Z.match(x);return J?J[0]:null},Ln=(x,Z,J)=>{let Q,X,q,$=void 0,Y,z=J.indexOf(x),W=J.indexOf(Z,z+1),G=z;if(z>=0&&W>0){if(x===Z)return[z,W];Q=[],q=J.length;while(G>=0&&!Y){if(G===z)Q.push(G),z=J.indexOf(x,G+1);else if(Q.length===1){let H=Q.pop();if(H!==void 0)Y=[H,W]}else{if(X=Q.pop(),X!==void 0&&X<q)q=X,$=W;W=J.indexOf(Z,G+1)}G=z<W&&z>=0?z:W}if(Q.length&&$!==void 0)Y=[q,$]}return Y};var WN="\x00SLASH"+Math.random()+"\x00",VN="\x00OPEN"+Math.random()+"\x00",Lz="\x00CLOSE"+Math.random()+"\x00",GN="\x00COMMA"+Math.random()+"\x00",HN="\x00PERIOD"+Math.random()+"\x00",jn=new RegExp(WN,"g"),Cn=new RegExp(VN,"g"),mn=new RegExp(Lz,"g"),On=new RegExp(GN,"g"),Sn=new RegExp(HN,"g"),Rn=/\\\\/g,In=/\\{/g,Tn=/\\}/g,vn=/\\,/g,An=/\\./g;function _z(x){return!isNaN(x)?parseInt(x,10):x.charCodeAt(0)}function En(x){return x.replace(Rn,WN).replace(In,VN).replace(Tn,Lz).replace(vn,GN).replace(An,HN)}function fn(x){return x.replace(jn,"\\").replace(Cn,"{").replace(mn,"}").replace(On,",").replace(Sn,".")}function UN(x){if(!x)return[""];let Z=[],J=Pz("{","}",x);if(!J)return x.split(",");let{pre:Q,body:X,post:q}=J,$=Q.split(",");$[$.length-1]+="{"+X+"}";let Y=UN(q);if(q.length)$[$.length-1]+=Y.shift(),$.push.apply($,Y);return Z.push.apply(Z,$),Z}function BN(x){if(!x)return[];if(x.slice(0,2)==="{}")x="\\{\\}"+x.slice(2);return MZ(En(x),!0).map(fn)}function kn(x){return"{"+x+"}"}function cn(x){return/^-?0\d/.test(x)}function bn(x,Z){return x<=Z}function pn(x,Z){return x>=Z}function MZ(x,Z){let J=[],Q=Pz("{","}",x);if(!Q)return[x];let X=Q.pre,q=Q.post.length?MZ(Q.post,!1):[""];if(/\$$/.test(Q.pre))for(let $=0;$<q.length;$++){let Y=X+"{"+Q.body+"}"+q[$];J.push(Y)}else{let $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(Q.body),Y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(Q.body),z=$||Y,W=Q.body.indexOf(",")>=0;if(!z&&!W){if(Q.post.match(/,(?!,).*\}/))return x=Q.pre+"{"+Q.body+Lz+Q.post,MZ(x);return[x]}let G;if(z)G=Q.body.split(/\.\./);else if(G=UN(Q.body),G.length===1&&G[0]!==void 0){if(G=MZ(G[0],!1).map(kn),G.length===1)return q.map((U)=>Q.pre+G[0]+U)}let H;if(z&&G[0]!==void 0&&G[1]!==void 0){let U=_z(G[0]),M=_z(G[1]),D=Math.max(G[0].length,G[1].length),N=G.length===3&&G[2]!==void 0?Math.abs(_z(G[2])):1,_=bn;if(M<U)N*=-1,_=pn;let O=G.some(cn);H=[];for(let v=U;_(v,M);v+=N){let y;if(Y){if(y=String.fromCharCode(v),y==="\\")y=""}else if(y=String(v),O){let h=D-y.length;if(h>0){let r=new Array(h+1).join("0");if(v<0)y="-"+r+y.slice(1);else y=r+y}}H.push(y)}}else{H=[];for(let U=0;U<G.length;U++)H.push.apply(H,MZ(G[U],!1))}for(let U=0;U<H.length;U++)for(let M=0;M<q.length;M++){let D=X+H[U]+q[M];if(!Z||z||D)J.push(D)}}return J}var DZ=(x)=>{if(typeof x!=="string")throw new TypeError("invalid pattern");if(x.length>65536)throw new TypeError("pattern is too long")};var yn={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},FZ=(x)=>x.replace(/[[\]\\-]/g,"\\$&"),un=(x)=>x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),MN=(x)=>x.join(""),DN=(x,Z)=>{let J=Z;if(x.charAt(J)!=="[")throw new Error("not in a brace expression");let Q=[],X=[],q=J+1,$=!1,Y=!1,z=!1,W=!1,G=J,H="";x:while(q<x.length){let N=x.charAt(q);if((N==="!"||N==="^")&&q===J+1){W=!0,q++;continue}if(N==="]"&&$&&!z){G=q+1;break}if($=!0,N==="\\"){if(!z){z=!0,q++;continue}}if(N==="["&&!z){for(let[_,[L,O,v]]of Object.entries(yn))if(x.startsWith(_,q)){if(H)return["$.",!1,x.length-J,!0];if(q+=_.length,v)X.push(L);else Q.push(L);Y=Y||O;continue x}}if(z=!1,H){if(N>H)Q.push(FZ(H)+"-"+FZ(N));else if(N===H)Q.push(FZ(N));H="",q++;continue}if(x.startsWith("-]",q+1)){Q.push(FZ(N+"-")),q+=2;continue}if(x.startsWith("-",q+1)){H=N,q+=2;continue}Q.push(FZ(N)),q++}if(G<q)return["",!1,0,!1];if(!Q.length&&!X.length)return["$.",!1,x.length-J,!0];if(X.length===0&&Q.length===1&&/^\\?.$/.test(Q[0])&&!W){let N=Q[0].length===2?Q[0].slice(-1):Q[0];return[un(N),!1,G-J,!1]}let U="["+(W?"^":"")+MN(Q)+"]",M="["+(W?"":"^")+MN(X)+"]";return[Q.length&&X.length?"("+U+"|"+M+")":Q.length?U:M,Y,G-J,!0]};var D8=(x,{windowsPathsNoEscape:Z=!1,magicalBraces:J=!0}={})=>{if(J)return Z?x.replace(/\[([^\/\\])\]/g,"$1"):x.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");return Z?x.replace(/\[([^\/\\{}])\]/g,"$1"):x.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1")};var hn=new Set(["!","?","+","*","@"]),FN=(x)=>hn.has(x),gn="(?!(?:^|/)\\.\\.?(?:$|/))",AX="(?!\\.)",dn=new Set(["[","."]),ln=new Set(["..","."]),on=new Set("().*{}+?[]^$\\!"),sn=(x)=>x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jz="[^/]",NN=jz+"*?",wN=jz+"+?";class z3{type;#x;#J;#q=!1;#X=[];#$;#w;#D;#W=!1;#Y;#G;#V=!1;constructor(x,Z,J={}){if(this.type=x,x)this.#J=!0;if(this.#$=Z,this.#x=this.#$?this.#$.#x:this,this.#Y=this.#x===this?J:this.#x.#Y,this.#D=this.#x===this?[]:this.#x.#D,x==="!"&&!this.#x.#W)this.#D.push(this);this.#w=this.#$?this.#$.#X.length:0}get hasMagic(){if(this.#J!==void 0)return this.#J;for(let x of this.#X){if(typeof x==="string")continue;if(x.type||x.hasMagic)return this.#J=!0}return this.#J}toString(){if(this.#G!==void 0)return this.#G;if(!this.type)return this.#G=this.#X.map((x)=>String(x)).join("");else return this.#G=this.type+"("+this.#X.map((x)=>String(x)).join("|")+")"}#K(){if(this!==this.#x)throw new Error("should only call on root");if(this.#W)return this;this.toString(),this.#W=!0;let x;while(x=this.#D.pop()){if(x.type!=="!")continue;let Z=x,J=Z.#$;while(J){for(let Q=Z.#w+1;!J.type&&Q<J.#X.length;Q++)for(let X of x.#X){if(typeof X==="string")throw new Error("string part in extglob AST??");X.copyIn(J.#X[Q])}Z=J,J=Z.#$}}return this}push(...x){for(let Z of x){if(Z==="")continue;if(typeof Z!=="string"&&!(Z instanceof z3&&Z.#$===this))throw new Error("invalid part: "+Z);this.#X.push(Z)}}toJSON(){let x=this.type===null?this.#X.slice().map((Z)=>typeof Z==="string"?Z:Z.toJSON()):[this.type,...this.#X.map((Z)=>Z.toJSON())];if(this.isStart()&&!this.type)x.unshift([]);if(this.isEnd()&&(this===this.#x||this.#x.#W&&this.#$?.type==="!"))x.push({});return x}isStart(){if(this.#x===this)return!0;if(!this.#$?.isStart())return!1;if(this.#w===0)return!0;let x=this.#$;for(let Z=0;Z<this.#w;Z++){let J=x.#X[Z];if(!(J instanceof z3&&J.type==="!"))return!1}return!0}isEnd(){if(this.#x===this)return!0;if(this.#$?.type==="!")return!0;if(!this.#$?.isEnd())return!1;if(!this.type)return this.#$?.isEnd();let x=this.#$?this.#$.#X.length:0;return this.#w===x-1}copyIn(x){if(typeof x==="string")this.push(x);else this.push(x.clone(this))}clone(x){let Z=new z3(this.type,x);for(let J of this.#X)Z.copyIn(J);return Z}static#Q(x,Z,J,Q){let X=!1,q=!1,$=-1,Y=!1;if(Z.type===null){let U=J,M="";while(U<x.length){let D=x.charAt(U++);if(X||D==="\\"){X=!X,M+=D;continue}if(q){if(U===$+1){if(D==="^"||D==="!")Y=!0}else if(D==="]"&&!(U===$+2&&Y))q=!1;M+=D;continue}else if(D==="["){q=!0,$=U,Y=!1,M+=D;continue}if(!Q.noext&&FN(D)&&x.charAt(U)==="("){Z.push(M),M="";let N=new z3(D,Z);U=z3.#Q(x,N,U,Q),Z.push(N);continue}M+=D}return Z.push(M),U}let z=J+1,W=new z3(null,Z),G=[],H="";while(z<x.length){let U=x.charAt(z++);if(X||U==="\\"){X=!X,H+=U;continue}if(q){if(z===$+1){if(U==="^"||U==="!")Y=!0}else if(U==="]"&&!(z===$+2&&Y))q=!1;H+=U;continue}else if(U==="["){q=!0,$=z,Y=!1,H+=U;continue}if(FN(U)&&x.charAt(z)==="("){W.push(H),H="";let M=new z3(U,W);W.push(M),z=z3.#Q(x,M,z,Q);continue}if(U==="|"){W.push(H),H="",G.push(W),W=new z3(null,Z);continue}if(U===")"){if(H===""&&Z.#X.length===0)Z.#V=!0;return W.push(H),H="",Z.push(...G,W),z}H+=U}return Z.type=null,Z.#J=void 0,Z.#X=[x.substring(J-1)],z}static fromGlob(x,Z={}){let J=new z3(null,void 0,Z);return z3.#Q(x,J,0,Z),J}toMMPattern(){if(this!==this.#x)return this.#x.toMMPattern();let x=this.toString(),[Z,J,Q,X]=this.toRegExpSource();if(!(Q||this.#J||this.#Y.nocase&&!this.#Y.nocaseMagicOnly&&x.toUpperCase()!==x.toLowerCase()))return J;let $=(this.#Y.nocase?"i":"")+(X?"u":"");return Object.assign(new RegExp(`^${Z}$`,$),{_src:Z,_glob:x})}get options(){return this.#Y}toRegExpSource(x){let Z=x??!!this.#Y.dot;if(this.#x===this)this.#K();if(!this.type){let Y=this.isStart()&&this.isEnd()&&!this.#X.some((U)=>typeof U!=="string"),z=this.#X.map((U)=>{let[M,D,N,_]=typeof U==="string"?z3.#P(U,this.#J,Y):U.toRegExpSource(x);return this.#J=this.#J||N,this.#q=this.#q||_,M}).join(""),W="";if(this.isStart()){if(typeof this.#X[0]==="string"){if(!(this.#X.length===1&&ln.has(this.#X[0]))){let M=dn,D=Z&&M.has(z.charAt(0))||z.startsWith("\\.")&&M.has(z.charAt(2))||z.startsWith("\\.\\.")&&M.has(z.charAt(4)),N=!Z&&!x&&M.has(z.charAt(0));W=D?gn:N?AX:""}}}let G="";if(this.isEnd()&&this.#x.#W&&this.#$?.type==="!")G="(?:$|\\/)";return[W+z+G,D8(z),this.#J=!!this.#J,this.#q]}let J=this.type==="*"||this.type==="+",Q=this.type==="!"?"(?:(?!(?:":"(?:",X=this.#H(Z);if(this.isStart()&&this.isEnd()&&!X&&this.type!=="!"){let Y=this.toString();return this.#X=[Y],this.type=null,this.#J=void 0,[Y,D8(this.toString()),!1,!1]}let q=!J||x||Z||!AX?"":this.#H(!0);if(q===X)q="";if(q)X=`(?:${X})(?:${q})*?`;let $="";if(this.type==="!"&&this.#V)$=(this.isStart()&&!Z?AX:"")+wN;else{let Y=this.type==="!"?"))"+(this.isStart()&&!Z&&!x?AX:"")+NN+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&q?")":this.type==="*"&&q?")?":`)${this.type}`;$=Q+X+Y}return[$,D8(X),this.#J=!!this.#J,this.#q]}#H(x){return this.#X.map((Z)=>{if(typeof Z==="string")throw new Error("string type in extglob ast??");let[J,Q,X,q]=Z.toRegExpSource(x);return this.#q=this.#q||q,J}).filter((Z)=>!(this.isStart()&&this.isEnd())||!!Z).join("|")}static#P(x,Z,J=!1){let Q=!1,X="",q=!1;for(let $=0;$<x.length;$++){let Y=x.charAt($);if(Q){Q=!1,X+=(on.has(Y)?"\\":"")+Y;continue}if(Y==="\\"){if($===x.length-1)X+="\\\\";else Q=!0;continue}if(Y==="["){let[z,W,G,H]=DN(x,$);if(G){X+=z,q=q||W,$+=G-1,Z=Z||H;continue}}if(Y==="*"){X+=J&&x==="*"?wN:NN,Z=!0;continue}if(Y==="?"){X+=jz,Z=!0;continue}X+=sn(Y)}return[X,D8(x),!!Z,q]}}var O9=(x,{windowsPathsNoEscape:Z=!1,magicalBraces:J=!1}={})=>{if(J)return Z?x.replace(/[?*()[\]{}]/g,"[$&]"):x.replace(/[?*()[\]\\{}]/g,"\\$&");return Z?x.replace(/[?*()[\]]/g,"[$&]"):x.replace(/[?*()[\]\\]/g,"\\$&")};var c3=(x,Z,J={})=>{if(DZ(Z),!J.nocomment&&Z.charAt(0)==="#")return!1;return new d4(Z,J).match(x)},nn=/^\*+([^+@!?\*\[\(]*)$/,an=(x)=>(Z)=>!Z.startsWith(".")&&Z.endsWith(x),rn=(x)=>(Z)=>Z.endsWith(x),tn=(x)=>{return x=x.toLowerCase(),(Z)=>!Z.startsWith(".")&&Z.toLowerCase().endsWith(x)},en=(x)=>{return x=x.toLowerCase(),(Z)=>Z.toLowerCase().endsWith(x)},xa=/^\*+\.\*+$/,Za=(x)=>!x.startsWith(".")&&x.includes("."),Ja=(x)=>x!=="."&&x!==".."&&x.includes("."),Qa=/^\.\*+$/,Xa=(x)=>x!=="."&&x!==".."&&x.startsWith("."),qa=/^\*+$/,$a=(x)=>x.length!==0&&!x.startsWith("."),Ya=(x)=>x.length!==0&&x!=="."&&x!=="..",Ka=/^\?+([^+@!?\*\[\(]*)?$/,za=([x,Z=""])=>{let J=LN([x]);if(!Z)return J;return Z=Z.toLowerCase(),(Q)=>J(Q)&&Q.toLowerCase().endsWith(Z)},Wa=([x,Z=""])=>{let J=jN([x]);if(!Z)return J;return Z=Z.toLowerCase(),(Q)=>J(Q)&&Q.toLowerCase().endsWith(Z)},Va=([x,Z=""])=>{let J=jN([x]);return!Z?J:(Q)=>J(Q)&&Q.endsWith(Z)},Ga=([x,Z=""])=>{let J=LN([x]);return!Z?J:(Q)=>J(Q)&&Q.endsWith(Z)},LN=([x])=>{let Z=x.length;return(J)=>J.length===Z&&!J.startsWith(".")},jN=([x])=>{let Z=x.length;return(J)=>J.length===Z&&J!=="."&&J!==".."},CN=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",PN={win32:{sep:"\\"},posix:{sep:"/"}},Ha=CN==="win32"?PN.win32.sep:PN.posix.sep;c3.sep=Ha;var W3=Symbol("globstar **");c3.GLOBSTAR=W3;var Ua="[^/]",Ba=Ua+"*?",Ma="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Da="(?:(?!(?:\\/|^)\\.).)*?",Fa=(x,Z={})=>(J)=>c3(J,x,Z);c3.filter=Fa;var i4=(x,Z={})=>Object.assign({},x,Z),Na=(x)=>{if(!x||typeof x!=="object"||!Object.keys(x).length)return c3;let Z=c3;return Object.assign((Q,X,q={})=>Z(Q,X,i4(x,q)),{Minimatch:class Q extends Z.Minimatch{constructor(X,q={}){super(X,i4(x,q))}static defaults(X){return Z.defaults(i4(x,X)).Minimatch}},AST:class Q extends Z.AST{constructor(X,q,$={}){super(X,q,i4(x,$))}static fromGlob(X,q={}){return Z.AST.fromGlob(X,i4(x,q))}},unescape:(Q,X={})=>Z.unescape(Q,i4(x,X)),escape:(Q,X={})=>Z.escape(Q,i4(x,X)),filter:(Q,X={})=>Z.filter(Q,i4(x,X)),defaults:(Q)=>Z.defaults(i4(x,Q)),makeRe:(Q,X={})=>Z.makeRe(Q,i4(x,X)),braceExpand:(Q,X={})=>Z.braceExpand(Q,i4(x,X)),match:(Q,X,q={})=>Z.match(Q,X,i4(x,q)),sep:Z.sep,GLOBSTAR:W3})};c3.defaults=Na;var mN=(x,Z={})=>{if(DZ(x),Z.nobrace||!/\{(?:(?!\{).)*\}/.test(x))return[x];return BN(x)};c3.braceExpand=mN;var wa=(x,Z={})=>new d4(x,Z).makeRe();c3.makeRe=wa;var Pa=(x,Z,J={})=>{let Q=new d4(Z,J);if(x=x.filter((X)=>Q.match(X)),Q.options.nonull&&!x.length)x.push(Z);return x};c3.match=Pa;var _N=/[?*]|[+@!]\(.*?\)|\[|\]/,_a=(x)=>x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class d4{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(x,Z={}){if(DZ(x),Z=Z||{},this.options=Z,this.pattern=x,this.platform=Z.platform||CN,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!Z.windowsPathsNoEscape||Z.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!Z.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!Z.nonegate,this.comment=!1,this.empty=!1,this.partial=!!Z.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=Z.windowsNoMagicRoot!==void 0?Z.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let x of this.set)for(let Z of x)if(typeof Z!=="string")return!0;return!1}debug(...x){}make(){let x=this.pattern,Z=this.options;if(!Z.nocomment&&x.charAt(0)==="#"){this.comment=!0;return}if(!x){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],Z.debug)this.debug=(...X)=>console.error(...X);this.debug(this.pattern,this.globSet);let J=this.globSet.map((X)=>this.slashSplit(X));this.globParts=this.preprocess(J),this.debug(this.pattern,this.globParts);let Q=this.globParts.map((X,q,$)=>{if(this.isWindows&&this.windowsNoMagicRoot){let Y=X[0]===""&&X[1]===""&&(X[2]==="?"||!_N.test(X[2]))&&!_N.test(X[3]),z=/^[a-z]:/i.test(X[0]);if(Y)return[...X.slice(0,4),...X.slice(4).map((W)=>this.parse(W))];else if(z)return[X[0],...X.slice(1).map((W)=>this.parse(W))]}return X.map((Y)=>this.parse(Y))});if(this.debug(this.pattern,Q),this.set=Q.filter((X)=>X.indexOf(!1)===-1),this.isWindows)for(let X=0;X<this.set.length;X++){let q=this.set[X];if(q[0]===""&&q[1]===""&&this.globParts[X][2]==="?"&&typeof q[3]==="string"&&/^[a-z]:$/i.test(q[3]))q[2]="?"}this.debug(this.pattern,this.set)}preprocess(x){if(this.options.noglobstar){for(let J=0;J<x.length;J++)for(let Q=0;Q<x[J].length;Q++)if(x[J][Q]==="**")x[J][Q]="*"}let{optimizationLevel:Z=1}=this.options;if(Z>=2)x=this.firstPhasePreProcess(x),x=this.secondPhasePreProcess(x);else if(Z>=1)x=this.levelOneOptimize(x);else x=this.adjascentGlobstarOptimize(x);return x}adjascentGlobstarOptimize(x){return x.map((Z)=>{let J=-1;while((J=Z.indexOf("**",J+1))!==-1){let Q=J;while(Z[Q+1]==="**")Q++;if(Q!==J)Z.splice(J,Q-J)}return Z})}levelOneOptimize(x){return x.map((Z)=>{return Z=Z.reduce((J,Q)=>{let X=J[J.length-1];if(Q==="**"&&X==="**")return J;if(Q===".."){if(X&&X!==".."&&X!=="."&&X!=="**")return J.pop(),J}return J.push(Q),J},[]),Z.length===0?[""]:Z})}levelTwoFileOptimize(x){if(!Array.isArray(x))x=this.slashSplit(x);let Z=!1;do{if(Z=!1,!this.preserveMultipleSlashes){for(let Q=1;Q<x.length-1;Q++){let X=x[Q];if(Q===1&&X===""&&x[0]==="")continue;if(X==="."||X==="")Z=!0,x.splice(Q,1),Q--}if(x[0]==="."&&x.length===2&&(x[1]==="."||x[1]===""))Z=!0,x.pop()}let J=0;while((J=x.indexOf("..",J+1))!==-1){let Q=x[J-1];if(Q&&Q!=="."&&Q!==".."&&Q!=="**")Z=!0,x.splice(J-1,2),J-=2}}while(Z);return x.length===0?[""]:x}firstPhasePreProcess(x){let Z=!1;do{Z=!1;for(let J of x){let Q=-1;while((Q=J.indexOf("**",Q+1))!==-1){let q=Q;while(J[q+1]==="**")q++;if(q>Q)J.splice(Q+1,q-Q);let $=J[Q+1],Y=J[Q+2],z=J[Q+3];if($!=="..")continue;if(!Y||Y==="."||Y===".."||!z||z==="."||z==="..")continue;Z=!0,J.splice(Q,1);let W=J.slice(0);W[Q]="**",x.push(W),Q--}if(!this.preserveMultipleSlashes){for(let q=1;q<J.length-1;q++){let $=J[q];if(q===1&&$===""&&J[0]==="")continue;if($==="."||$==="")Z=!0,J.splice(q,1),q--}if(J[0]==="."&&J.length===2&&(J[1]==="."||J[1]===""))Z=!0,J.pop()}let X=0;while((X=J.indexOf("..",X+1))!==-1){let q=J[X-1];if(q&&q!=="."&&q!==".."&&q!=="**"){Z=!0;let Y=X===1&&J[X+1]==="**"?["."]:[];if(J.splice(X-1,2,...Y),J.length===0)J.push("");X-=2}}}}while(Z);return x}secondPhasePreProcess(x){for(let Z=0;Z<x.length-1;Z++)for(let J=Z+1;J<x.length;J++){let Q=this.partsMatch(x[Z],x[J],!this.preserveMultipleSlashes);if(Q){x[Z]=[],x[J]=Q;break}}return x.filter((Z)=>Z.length)}partsMatch(x,Z,J=!1){let Q=0,X=0,q=[],$="";while(Q<x.length&&X<Z.length)if(x[Q]===Z[X])q.push($==="b"?Z[X]:x[Q]),Q++,X++;else if(J&&x[Q]==="**"&&Z[X]===x[Q+1])q.push(x[Q]),Q++;else if(J&&Z[X]==="**"&&x[Q]===Z[X+1])q.push(Z[X]),X++;else if(x[Q]==="*"&&Z[X]&&(this.options.dot||!Z[X].startsWith("."))&&Z[X]!=="**"){if($==="b")return!1;$="a",q.push(x[Q]),Q++,X++}else if(Z[X]==="*"&&x[Q]&&(this.options.dot||!x[Q].startsWith("."))&&x[Q]!=="**"){if($==="a")return!1;$="b",q.push(Z[X]),Q++,X++}else return!1;return x.length===Z.length&&q}parseNegate(){if(this.nonegate)return;let x=this.pattern,Z=!1,J=0;for(let Q=0;Q<x.length&&x.charAt(Q)==="!";Q++)Z=!Z,J++;if(J)this.pattern=x.slice(J);this.negate=Z}matchOne(x,Z,J=!1){let Q=this.options;if(this.isWindows){let D=typeof x[0]==="string"&&/^[a-z]:$/i.test(x[0]),N=!D&&x[0]===""&&x[1]===""&&x[2]==="?"&&/^[a-z]:$/i.test(x[3]),_=typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0]),L=!_&&Z[0]===""&&Z[1]===""&&Z[2]==="?"&&typeof Z[3]==="string"&&/^[a-z]:$/i.test(Z[3]),O=N?3:D?0:void 0,v=L?3:_?0:void 0;if(typeof O==="number"&&typeof v==="number"){let[y,h]=[x[O],Z[v]];if(y.toLowerCase()===h.toLowerCase()){if(Z[v]=y,v>O)Z=Z.slice(v);else if(O>v)x=x.slice(O)}}}let{optimizationLevel:X=1}=this.options;if(X>=2)x=this.levelTwoFileOptimize(x);this.debug("matchOne",this,{file:x,pattern:Z}),this.debug("matchOne",x.length,Z.length);for(var q=0,$=0,Y=x.length,z=Z.length;q<Y&&$<z;q++,$++){this.debug("matchOne loop");var W=Z[$],G=x[q];if(this.debug(Z,W,G),W===!1)return!1;if(W===W3){this.debug("GLOBSTAR",[Z,W,G]);var H=q,U=$+1;if(U===z){this.debug("** at the end");for(;q<Y;q++)if(x[q]==="."||x[q]===".."||!Q.dot&&x[q].charAt(0)===".")return!1;return!0}while(H<Y){var M=x[H];if(this.debug(`
|
|
86
|
+
}`;var V1=pF(function(){return A1(m,f0+"return "+G0).apply(x,T)});if(V1.source=G0,Zz(V1))throw V1;return V1}function Ao(K){return u1(K).toLowerCase()}function Eo(K){return u1(K).toUpperCase()}function fo(K,V,B){if(K=u1(K),K&&(B||V===x))return sM(K);if(!K||!(V=D4(V)))return K;var F=G8(K),P=G8(V),m=nM(F,P),T=aM(F,P)+1;return z5(F,m,T).join("")}function ko(K,V,B){if(K=u1(K),K&&(B||V===x))return K.slice(0,tM(K)+1);if(!K||!(V=D4(V)))return K;var F=G8(K),P=aM(F,G8(V))+1;return z5(F,0,P).join("")}function co(K,V,B){if(K=u1(K),K&&(B||V===x))return K.replace(H9,"");if(!K||!(V=D4(V)))return K;var F=G8(K),P=nM(F,G8(V));return z5(F,P).join("")}function bo(K,V){var B=C,F=I;if(H2(V)){var P="separator"in V?V.separator:P;B="length"in V?K1(V.length):B,F="omission"in V?D4(V.omission):F}K=u1(K);var m=K.length;if(M9(K)){var T=G8(K);m=T.length}if(B>=m)return K;var c=B-D9(F);if(c<1)return F;var n=T?z5(T,0,c).join(""):K.slice(0,c);if(P===x)return n+F;if(T)c+=n.length-c;if(Jz(P)){if(K.slice(c).search(P)){var Y0,K0=n;if(!P.global)P=FK(P.source,u1(MM.exec(P))+"g");P.lastIndex=0;while(Y0=P.exec(K0))var G0=Y0.index;n=n.slice(0,G0===x?c:G0)}}else if(K.indexOf(D4(P),c)!=c){var R0=n.lastIndexOf(P);if(R0>-1)n=n.slice(0,R0)}return n+F}function po(K){return K=u1(K),K&&J7.test(K)?K.replace(AQ,Uh):K}var yo=L9(function(K,V,B){return K+(B?" ":"")+V.toUpperCase()}),qz=yD("toUpperCase");function bF(K,V,B){if(K=u1(K),V=B?x:V,V===x)return zh(K)?Dh(K):xh(K);return K.match(V)||[]}var pF=H1(function(K,V){try{return B4(K,x,V)}catch(B){return Zz(B)?B:new Q1(B)}}),uo=_6(function(K,V){return k4(V,function(B){B=u8(B),w6(K,B,eK(K[B],K))}),K});function ho(K){var V=K==null?0:K.length,B=d0();return K=!V?[]:W2(K,function(F){if(typeof F[1]!="function")throw new c4(X);return[B(F[0]),F[1]]}),H1(function(F){var P=-1;while(++P<V){var m=K[P];if(B4(m[0],this,F))return B4(m[1],this,F)}})}function go(K){return Ug(p4(K,W))}function $z(K){return function(){return K}}function io(K,V){return K==null||K!==K?V:K}var lo=hD(),oo=hD(!0);function a3(K){return K}function Yz(K){return FD(typeof K=="function"?K:p4(K,W))}function so(K){return wD(p4(K,W))}function no(K,V){return PD(K,p4(V,W))}var ao=H1(function(K,V){return function(B){return KZ(B,K,V)}}),ro=H1(function(K,V){return function(B){return KZ(K,B,V)}});function Kz(K,V,B){var F=n2(V),P=VX(V,F);if(B==null&&!(H2(V)&&(P.length||!F.length)))B=V,V=K,K=this,P=VX(V,n2(V));var m=!(H2(B)&&("chain"in B))||!!B.chain,T=j6(K);return k4(P,function(c){var n=V[c];if(K[c]=n,T)K.prototype[c]=function(){var Y0=this.__chain__;if(m||Y0){var K0=K(this.__wrapped__),G0=K0.__actions__=o3(this.__actions__);return G0.push({func:n,args:arguments,thisArg:K}),K0.__chain__=Y0,K0}return n.apply(K,J5([this.value()],arguments))}}),K}function to(){if(s2._===this)s2._=Lh;return this}function zz(){}function eo(K){return K=K1(K),H1(function(V){return _D(V,K)})}var xs=yK(W2),Zs=yK(gM),Js=yK(VK);function yF(K){return oK(K)?GK(u8(K)):Tg(K)}function Qs(K){return function(V){return K==null?x:K7(K,V)}}var Xs=iD(),qs=iD(!0);function Wz(){return[]}function Vz(){return!1}function $s(){return{}}function Ys(){return""}function Ks(){return!0}function zs(K,V){if(K=K1(K),K<1||K>o)return[];var B=i0,F=P3(K,i0);V=d0(V),K-=i0;var P=BK(F,V);while(++B<K)V(B);return P}function Ws(K){if(X1(K))return W2(K,u8);return F4(K)?[K]:o3($F(u1(K)))}function Vs(K){var V=++Ph;return u1(K)+V}var Gs=DX(function(K,V){return K+V},0),Hs=uK("ceil"),Us=DX(function(K,V){return K/V},1),Bs=uK("floor");function Ms(K){return K&&K.length?WX(K,a3,mK):x}function Ds(K,V){return K&&K.length?WX(K,d0(V,2),mK):x}function Fs(K){return lM(K,a3)}function Ns(K,V){return lM(K,d0(V,2))}function ws(K){return K&&K.length?WX(K,a3,IK):x}function Ps(K,V){return K&&K.length?WX(K,d0(V,2),IK):x}var _s=DX(function(K,V){return K*V},1),Ls=uK("round"),js=DX(function(K,V){return K-V},0);function Cs(K){return K&&K.length?UK(K,a3):0}function ms(K,V){return K&&K.length?UK(K,d0(V,2)):0}if(j.after=od,j.ary=DF,j.assign=El,j.assignIn=TF,j.assignInWith=IX,j.assignWith=fl,j.at=kl,j.before=FF,j.bind=eK,j.bindAll=uo,j.bindKey=NF,j.castArray=ql,j.chain=UF,j.chunk=Ui,j.compact=Bi,j.concat=Mi,j.cond=ho,j.conforms=go,j.constant=$z,j.countBy=jd,j.create=cl,j.curry=wF,j.curryRight=PF,j.debounce=_F,j.defaults=bl,j.defaultsDeep=pl,j.defer=sd,j.delay=nd,j.difference=Di,j.differenceBy=Fi,j.differenceWith=Ni,j.drop=wi,j.dropRight=Pi,j.dropRightWhile=_i,j.dropWhile=Li,j.fill=ji,j.filter=md,j.flatMap=Rd,j.flatMapDeep=Id,j.flatMapDepth=Td,j.flatten=WF,j.flattenDeep=Ci,j.flattenDepth=mi,j.flip=ad,j.flow=lo,j.flowRight=oo,j.fromPairs=Oi,j.functions=ll,j.functionsIn=ol,j.groupBy=vd,j.initial=Ri,j.intersection=Ii,j.intersectionBy=Ti,j.intersectionWith=vi,j.invert=nl,j.invertBy=al,j.invokeMap=Ed,j.iteratee=Yz,j.keyBy=fd,j.keys=n2,j.keysIn=n3,j.map=jX,j.mapKeys=tl,j.mapValues=el,j.matches=so,j.matchesProperty=no,j.memoize=mX,j.merge=xo,j.mergeWith=vF,j.method=ao,j.methodOf=ro,j.mixin=Kz,j.negate=OX,j.nthArg=eo,j.omit=Zo,j.omitBy=Jo,j.once=rd,j.orderBy=kd,j.over=xs,j.overArgs=td,j.overEvery=Zs,j.overSome=Js,j.partial=xz,j.partialRight=LF,j.partition=cd,j.pick=Qo,j.pickBy=AF,j.property=yF,j.propertyOf=Qs,j.pull=ki,j.pullAll=GF,j.pullAllBy=ci,j.pullAllWith=bi,j.pullAt=pi,j.range=Xs,j.rangeRight=qs,j.rearg=ed,j.reject=yd,j.remove=yi,j.rest=xl,j.reverse=rK,j.sampleSize=hd,j.set=qo,j.setWith=$o,j.shuffle=gd,j.slice=ui,j.sortBy=ld,j.sortedUniq=si,j.sortedUniqBy=ni,j.split=Ro,j.spread=Zl,j.tail=ai,j.take=ri,j.takeRight=ti,j.takeRightWhile=ei,j.takeWhile=xd,j.tap=Bd,j.throttle=Jl,j.thru=LX,j.toArray=SF,j.toPairs=EF,j.toPairsIn=fF,j.toPath=Ws,j.toPlainObject=IF,j.transform=Yo,j.unary=Ql,j.union=Zd,j.unionBy=Jd,j.unionWith=Qd,j.uniq=Xd,j.uniqBy=qd,j.uniqWith=$d,j.unset=Ko,j.unzip=tK,j.unzipWith=HF,j.update=zo,j.updateWith=Wo,j.values=m9,j.valuesIn=Vo,j.without=Yd,j.words=bF,j.wrap=Xl,j.xor=Kd,j.xorBy=zd,j.xorWith=Wd,j.zip=Vd,j.zipObject=Gd,j.zipObjectDeep=Hd,j.zipWith=Ud,j.entries=EF,j.entriesIn=fF,j.extend=TF,j.extendWith=IX,Kz(j,j),j.add=Gs,j.attempt=pF,j.camelCase=Bo,j.capitalize=kF,j.ceil=Hs,j.clamp=Go,j.clone=$l,j.cloneDeep=Kl,j.cloneDeepWith=zl,j.cloneWith=Yl,j.conformsTo=Wl,j.deburr=cF,j.defaultTo=io,j.divide=Us,j.endsWith=Mo,j.eq=U8,j.escape=Do,j.escapeRegExp=Fo,j.every=Cd,j.find=Od,j.findIndex=KF,j.findKey=yl,j.findLast=Sd,j.findLastIndex=zF,j.findLastKey=ul,j.floor=Bs,j.forEach=BF,j.forEachRight=MF,j.forIn=hl,j.forInRight=gl,j.forOwn=il,j.forOwnRight=dl,j.get=Qz,j.gt=Vl,j.gte=Gl,j.has=sl,j.hasIn=Xz,j.head=VF,j.identity=a3,j.includes=Ad,j.indexOf=Si,j.inRange=Ho,j.invoke=rl,j.isArguments=V7,j.isArray=X1,j.isArrayBuffer=Hl,j.isArrayLike=s3,j.isArrayLikeObject=j2,j.isBoolean=Ul,j.isBuffer=W5,j.isDate=Bl,j.isElement=Ml,j.isEmpty=Dl,j.isEqual=Fl,j.isEqualWith=Nl,j.isError=Zz,j.isFinite=wl,j.isFunction=j6,j.isInteger=jF,j.isLength=SX,j.isMap=CF,j.isMatch=Pl,j.isMatchWith=_l,j.isNaN=Ll,j.isNative=jl,j.isNil=ml,j.isNull=Cl,j.isNumber=mF,j.isObject=H2,j.isObjectLike=N2,j.isPlainObject=UZ,j.isRegExp=Jz,j.isSafeInteger=Ol,j.isSet=OF,j.isString=RX,j.isSymbol=F4,j.isTypedArray=C9,j.isUndefined=Sl,j.isWeakMap=Rl,j.isWeakSet=Il,j.join=Ai,j.kebabCase=No,j.last=u4,j.lastIndexOf=Ei,j.lowerCase=wo,j.lowerFirst=Po,j.lt=Tl,j.lte=vl,j.max=Ms,j.maxBy=Ds,j.mean=Fs,j.meanBy=Ns,j.min=ws,j.minBy=Ps,j.stubArray=Wz,j.stubFalse=Vz,j.stubObject=$s,j.stubString=Ys,j.stubTrue=Ks,j.multiply=_s,j.nth=fi,j.noConflict=to,j.noop=zz,j.now=CX,j.pad=_o,j.padEnd=Lo,j.padStart=jo,j.parseInt=Co,j.random=Uo,j.reduce=bd,j.reduceRight=pd,j.repeat=mo,j.replace=Oo,j.result=Xo,j.round=Ls,j.runInContext=i,j.sample=ud,j.size=id,j.snakeCase=So,j.some=dd,j.sortedIndex=hi,j.sortedIndexBy=gi,j.sortedIndexOf=ii,j.sortedLastIndex=di,j.sortedLastIndexBy=li,j.sortedLastIndexOf=oi,j.startCase=Io,j.startsWith=To,j.subtract=js,j.sum=Cs,j.sumBy=ms,j.template=vo,j.times=zs,j.toFinite=C6,j.toInteger=K1,j.toLength=RF,j.toLower=Ao,j.toNumber=h4,j.toSafeInteger=Al,j.toString=u1,j.toUpper=Eo,j.trim=fo,j.trimEnd=ko,j.trimStart=co,j.truncate=bo,j.unescape=po,j.uniqueId=Vs,j.upperCase=yo,j.upperFirst=qz,j.each=BF,j.eachRight=MF,j.first=VF,Kz(j,function(){var K={};return p8(j,function(V,B){if(!y1.call(j.prototype,B))K[B]=V}),K}(),{chain:!1}),j.VERSION=Z,k4(["bind","bindKey","curry","curryRight","partial","partialRight"],function(K){j[K].placeholder=j}),k4(["drop","take"],function(K,V){N1.prototype[K]=function(B){B=B===x?1:g2(K1(B),0);var F=this.__filtered__&&!V?new N1(this):this.clone();if(F.__filtered__)F.__takeCount__=P3(B,F.__takeCount__);else F.__views__.push({size:P3(B,i0),type:K+(F.__dir__<0?"Right":"")});return F},N1.prototype[K+"Right"]=function(B){return this.reverse()[K](B).reverse()}}),k4(["filter","map","takeWhile"],function(K,V){var B=V+1,F=B==V0||B==s;N1.prototype[K]=function(P){var m=this.clone();return m.__iteratees__.push({iteratee:d0(P,3),type:B}),m.__filtered__=m.__filtered__||F,m}}),k4(["head","last"],function(K,V){var B="take"+(V?"Right":"");N1.prototype[K]=function(){return this[B](1).value()[0]}}),k4(["initial","tail"],function(K,V){var B="drop"+(V?"":"Right");N1.prototype[K]=function(){return this.__filtered__?new N1(this):this[B](1)}}),N1.prototype.compact=function(){return this.filter(a3)},N1.prototype.find=function(K){return this.filter(K).head()},N1.prototype.findLast=function(K){return this.reverse().find(K)},N1.prototype.invokeMap=H1(function(K,V){if(typeof K=="function")return new N1(this);return this.map(function(B){return KZ(B,K,V)})}),N1.prototype.reject=function(K){return this.filter(OX(d0(K)))},N1.prototype.slice=function(K,V){K=K1(K);var B=this;if(B.__filtered__&&(K>0||V<0))return new N1(B);if(K<0)B=B.takeRight(-K);else if(K)B=B.drop(K);if(V!==x)V=K1(V),B=V<0?B.dropRight(-V):B.take(V-K);return B},N1.prototype.takeRightWhile=function(K){return this.reverse().takeWhile(K).reverse()},N1.prototype.toArray=function(){return this.take(i0)},p8(N1.prototype,function(K,V){var B=/^(?:filter|find|map|reject)|While$/.test(V),F=/^(?:head|last)$/.test(V),P=j[F?"take"+(V=="last"?"Right":""):V],m=F||/^find/.test(V);if(!P)return;j.prototype[V]=function(){var T=this.__wrapped__,c=F?[1]:arguments,n=T instanceof N1,Y0=c[0],K0=n||X1(T),G0=function(D1){var L1=P.apply(j,J5([D1],c));return F&&R0?L1[0]:L1};if(K0&&B&&typeof Y0=="function"&&Y0.length!=1)n=K0=!1;var R0=this.__chain__,f0=!!this.__actions__.length,l0=m&&!R0,V1=n&&!f0;if(!m&&K0){T=V1?T:new N1(this);var o0=K.apply(T,c);return o0.__actions__.push({func:LX,args:[G0],thisArg:x}),new b4(o0,R0)}if(l0&&V1)return K.apply(this,c);return o0=this.thru(G0),l0?F?o0.value()[0]:o0.value():o0}}),k4(["pop","push","shift","sort","splice","unshift"],function(K){var V=nQ[K],B=/^(?:push|sort|unshift)$/.test(K)?"tap":"thru",F=/^(?:pop|shift)$/.test(K);j.prototype[K]=function(){var P=arguments;if(F&&!this.__chain__){var m=this.value();return V.apply(X1(m)?m:[],P)}return this[B](function(T){return V.apply(X1(T)?T:[],P)})}}),p8(N1.prototype,function(K,V){var B=j[V];if(B){var F=B.name+"";if(!y1.call(w9,F))w9[F]=[];w9[F].push({name:V,func:B})}}),w9[MX(x,N).name]=[{name:"wrapper",func:x}],N1.prototype.clone=ph,N1.prototype.reverse=yh,N1.prototype.value=uh,j.prototype.at=Md,j.prototype.chain=Dd,j.prototype.commit=Fd,j.prototype.next=Nd,j.prototype.plant=Pd,j.prototype.reverse=_d,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=Ld,j.prototype.first=j.prototype.head,ZZ)j.prototype[ZZ]=wd;return j},X5=Fh();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)s2._=X5,define(function(){return X5});else if(Q7)(Q7.exports=X5)._=X5,YK._=X5;else s2._=X5}).call(QQ)});var gF="0.6.12";var KN=G7(YN(),1),{program:YT0,createCommand:KT0,createArgument:zT0,createOption:WT0,CommanderError:VT0,InvalidArgumentError:GT0,InvalidOptionArgumentError:HT0,Command:g4,Argument:UT0,Option:BT0,Help:MT0}=KN.default;import V40 from"fs";var Pz=(x,Z,J)=>{let Q=x instanceof RegExp?zN(x,J):x,X=Z instanceof RegExp?zN(Z,J):Z,q=Q!==null&&X!=null&&Ln(Q,X,J);return q&&{start:q[0],end:q[1],pre:J.slice(0,q[0]),body:J.slice(q[0]+Q.length,q[1]),post:J.slice(q[1]+X.length)}},zN=(x,Z)=>{let J=Z.match(x);return J?J[0]:null},Ln=(x,Z,J)=>{let Q,X,q,$=void 0,Y,z=J.indexOf(x),W=J.indexOf(Z,z+1),G=z;if(z>=0&&W>0){if(x===Z)return[z,W];Q=[],q=J.length;while(G>=0&&!Y){if(G===z)Q.push(G),z=J.indexOf(x,G+1);else if(Q.length===1){let H=Q.pop();if(H!==void 0)Y=[H,W]}else{if(X=Q.pop(),X!==void 0&&X<q)q=X,$=W;W=J.indexOf(Z,G+1)}G=z<W&&z>=0?z:W}if(Q.length&&$!==void 0)Y=[q,$]}return Y};var WN="\x00SLASH"+Math.random()+"\x00",VN="\x00OPEN"+Math.random()+"\x00",Lz="\x00CLOSE"+Math.random()+"\x00",GN="\x00COMMA"+Math.random()+"\x00",HN="\x00PERIOD"+Math.random()+"\x00",jn=new RegExp(WN,"g"),Cn=new RegExp(VN,"g"),mn=new RegExp(Lz,"g"),On=new RegExp(GN,"g"),Sn=new RegExp(HN,"g"),Rn=/\\\\/g,In=/\\{/g,Tn=/\\}/g,vn=/\\,/g,An=/\\./g;function _z(x){return!isNaN(x)?parseInt(x,10):x.charCodeAt(0)}function En(x){return x.replace(Rn,WN).replace(In,VN).replace(Tn,Lz).replace(vn,GN).replace(An,HN)}function fn(x){return x.replace(jn,"\\").replace(Cn,"{").replace(mn,"}").replace(On,",").replace(Sn,".")}function UN(x){if(!x)return[""];let Z=[],J=Pz("{","}",x);if(!J)return x.split(",");let{pre:Q,body:X,post:q}=J,$=Q.split(",");$[$.length-1]+="{"+X+"}";let Y=UN(q);if(q.length)$[$.length-1]+=Y.shift(),$.push.apply($,Y);return Z.push.apply(Z,$),Z}function BN(x){if(!x)return[];if(x.slice(0,2)==="{}")x="\\{\\}"+x.slice(2);return MZ(En(x),!0).map(fn)}function kn(x){return"{"+x+"}"}function cn(x){return/^-?0\d/.test(x)}function bn(x,Z){return x<=Z}function pn(x,Z){return x>=Z}function MZ(x,Z){let J=[],Q=Pz("{","}",x);if(!Q)return[x];let X=Q.pre,q=Q.post.length?MZ(Q.post,!1):[""];if(/\$$/.test(Q.pre))for(let $=0;$<q.length;$++){let Y=X+"{"+Q.body+"}"+q[$];J.push(Y)}else{let $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(Q.body),Y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(Q.body),z=$||Y,W=Q.body.indexOf(",")>=0;if(!z&&!W){if(Q.post.match(/,(?!,).*\}/))return x=Q.pre+"{"+Q.body+Lz+Q.post,MZ(x);return[x]}let G;if(z)G=Q.body.split(/\.\./);else if(G=UN(Q.body),G.length===1&&G[0]!==void 0){if(G=MZ(G[0],!1).map(kn),G.length===1)return q.map((U)=>Q.pre+G[0]+U)}let H;if(z&&G[0]!==void 0&&G[1]!==void 0){let U=_z(G[0]),M=_z(G[1]),D=Math.max(G[0].length,G[1].length),N=G.length===3&&G[2]!==void 0?Math.abs(_z(G[2])):1,_=bn;if(M<U)N*=-1,_=pn;let O=G.some(cn);H=[];for(let v=U;_(v,M);v+=N){let y;if(Y){if(y=String.fromCharCode(v),y==="\\")y=""}else if(y=String(v),O){let h=D-y.length;if(h>0){let r=new Array(h+1).join("0");if(v<0)y="-"+r+y.slice(1);else y=r+y}}H.push(y)}}else{H=[];for(let U=0;U<G.length;U++)H.push.apply(H,MZ(G[U],!1))}for(let U=0;U<H.length;U++)for(let M=0;M<q.length;M++){let D=X+H[U]+q[M];if(!Z||z||D)J.push(D)}}return J}var DZ=(x)=>{if(typeof x!=="string")throw new TypeError("invalid pattern");if(x.length>65536)throw new TypeError("pattern is too long")};var yn={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},FZ=(x)=>x.replace(/[[\]\\-]/g,"\\$&"),un=(x)=>x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),MN=(x)=>x.join(""),DN=(x,Z)=>{let J=Z;if(x.charAt(J)!=="[")throw new Error("not in a brace expression");let Q=[],X=[],q=J+1,$=!1,Y=!1,z=!1,W=!1,G=J,H="";x:while(q<x.length){let N=x.charAt(q);if((N==="!"||N==="^")&&q===J+1){W=!0,q++;continue}if(N==="]"&&$&&!z){G=q+1;break}if($=!0,N==="\\"){if(!z){z=!0,q++;continue}}if(N==="["&&!z){for(let[_,[L,O,v]]of Object.entries(yn))if(x.startsWith(_,q)){if(H)return["$.",!1,x.length-J,!0];if(q+=_.length,v)X.push(L);else Q.push(L);Y=Y||O;continue x}}if(z=!1,H){if(N>H)Q.push(FZ(H)+"-"+FZ(N));else if(N===H)Q.push(FZ(N));H="",q++;continue}if(x.startsWith("-]",q+1)){Q.push(FZ(N+"-")),q+=2;continue}if(x.startsWith("-",q+1)){H=N,q+=2;continue}Q.push(FZ(N)),q++}if(G<q)return["",!1,0,!1];if(!Q.length&&!X.length)return["$.",!1,x.length-J,!0];if(X.length===0&&Q.length===1&&/^\\?.$/.test(Q[0])&&!W){let N=Q[0].length===2?Q[0].slice(-1):Q[0];return[un(N),!1,G-J,!1]}let U="["+(W?"^":"")+MN(Q)+"]",M="["+(W?"":"^")+MN(X)+"]";return[Q.length&&X.length?"("+U+"|"+M+")":Q.length?U:M,Y,G-J,!0]};var D8=(x,{windowsPathsNoEscape:Z=!1,magicalBraces:J=!0}={})=>{if(J)return Z?x.replace(/\[([^\/\\])\]/g,"$1"):x.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");return Z?x.replace(/\[([^\/\\{}])\]/g,"$1"):x.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1")};var hn=new Set(["!","?","+","*","@"]),FN=(x)=>hn.has(x),gn="(?!(?:^|/)\\.\\.?(?:$|/))",AX="(?!\\.)",dn=new Set(["[","."]),ln=new Set(["..","."]),on=new Set("().*{}+?[]^$\\!"),sn=(x)=>x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jz="[^/]",NN=jz+"*?",wN=jz+"+?";class z3{type;#x;#J;#q=!1;#X=[];#$;#w;#D;#W=!1;#Y;#G;#V=!1;constructor(x,Z,J={}){if(this.type=x,x)this.#J=!0;if(this.#$=Z,this.#x=this.#$?this.#$.#x:this,this.#Y=this.#x===this?J:this.#x.#Y,this.#D=this.#x===this?[]:this.#x.#D,x==="!"&&!this.#x.#W)this.#D.push(this);this.#w=this.#$?this.#$.#X.length:0}get hasMagic(){if(this.#J!==void 0)return this.#J;for(let x of this.#X){if(typeof x==="string")continue;if(x.type||x.hasMagic)return this.#J=!0}return this.#J}toString(){if(this.#G!==void 0)return this.#G;if(!this.type)return this.#G=this.#X.map((x)=>String(x)).join("");else return this.#G=this.type+"("+this.#X.map((x)=>String(x)).join("|")+")"}#K(){if(this!==this.#x)throw new Error("should only call on root");if(this.#W)return this;this.toString(),this.#W=!0;let x;while(x=this.#D.pop()){if(x.type!=="!")continue;let Z=x,J=Z.#$;while(J){for(let Q=Z.#w+1;!J.type&&Q<J.#X.length;Q++)for(let X of x.#X){if(typeof X==="string")throw new Error("string part in extglob AST??");X.copyIn(J.#X[Q])}Z=J,J=Z.#$}}return this}push(...x){for(let Z of x){if(Z==="")continue;if(typeof Z!=="string"&&!(Z instanceof z3&&Z.#$===this))throw new Error("invalid part: "+Z);this.#X.push(Z)}}toJSON(){let x=this.type===null?this.#X.slice().map((Z)=>typeof Z==="string"?Z:Z.toJSON()):[this.type,...this.#X.map((Z)=>Z.toJSON())];if(this.isStart()&&!this.type)x.unshift([]);if(this.isEnd()&&(this===this.#x||this.#x.#W&&this.#$?.type==="!"))x.push({});return x}isStart(){if(this.#x===this)return!0;if(!this.#$?.isStart())return!1;if(this.#w===0)return!0;let x=this.#$;for(let Z=0;Z<this.#w;Z++){let J=x.#X[Z];if(!(J instanceof z3&&J.type==="!"))return!1}return!0}isEnd(){if(this.#x===this)return!0;if(this.#$?.type==="!")return!0;if(!this.#$?.isEnd())return!1;if(!this.type)return this.#$?.isEnd();let x=this.#$?this.#$.#X.length:0;return this.#w===x-1}copyIn(x){if(typeof x==="string")this.push(x);else this.push(x.clone(this))}clone(x){let Z=new z3(this.type,x);for(let J of this.#X)Z.copyIn(J);return Z}static#Q(x,Z,J,Q){let X=!1,q=!1,$=-1,Y=!1;if(Z.type===null){let U=J,M="";while(U<x.length){let D=x.charAt(U++);if(X||D==="\\"){X=!X,M+=D;continue}if(q){if(U===$+1){if(D==="^"||D==="!")Y=!0}else if(D==="]"&&!(U===$+2&&Y))q=!1;M+=D;continue}else if(D==="["){q=!0,$=U,Y=!1,M+=D;continue}if(!Q.noext&&FN(D)&&x.charAt(U)==="("){Z.push(M),M="";let N=new z3(D,Z);U=z3.#Q(x,N,U,Q),Z.push(N);continue}M+=D}return Z.push(M),U}let z=J+1,W=new z3(null,Z),G=[],H="";while(z<x.length){let U=x.charAt(z++);if(X||U==="\\"){X=!X,H+=U;continue}if(q){if(z===$+1){if(U==="^"||U==="!")Y=!0}else if(U==="]"&&!(z===$+2&&Y))q=!1;H+=U;continue}else if(U==="["){q=!0,$=z,Y=!1,H+=U;continue}if(FN(U)&&x.charAt(z)==="("){W.push(H),H="";let M=new z3(U,W);W.push(M),z=z3.#Q(x,M,z,Q);continue}if(U==="|"){W.push(H),H="",G.push(W),W=new z3(null,Z);continue}if(U===")"){if(H===""&&Z.#X.length===0)Z.#V=!0;return W.push(H),H="",Z.push(...G,W),z}H+=U}return Z.type=null,Z.#J=void 0,Z.#X=[x.substring(J-1)],z}static fromGlob(x,Z={}){let J=new z3(null,void 0,Z);return z3.#Q(x,J,0,Z),J}toMMPattern(){if(this!==this.#x)return this.#x.toMMPattern();let x=this.toString(),[Z,J,Q,X]=this.toRegExpSource();if(!(Q||this.#J||this.#Y.nocase&&!this.#Y.nocaseMagicOnly&&x.toUpperCase()!==x.toLowerCase()))return J;let $=(this.#Y.nocase?"i":"")+(X?"u":"");return Object.assign(new RegExp(`^${Z}$`,$),{_src:Z,_glob:x})}get options(){return this.#Y}toRegExpSource(x){let Z=x??!!this.#Y.dot;if(this.#x===this)this.#K();if(!this.type){let Y=this.isStart()&&this.isEnd()&&!this.#X.some((U)=>typeof U!=="string"),z=this.#X.map((U)=>{let[M,D,N,_]=typeof U==="string"?z3.#P(U,this.#J,Y):U.toRegExpSource(x);return this.#J=this.#J||N,this.#q=this.#q||_,M}).join(""),W="";if(this.isStart()){if(typeof this.#X[0]==="string"){if(!(this.#X.length===1&&ln.has(this.#X[0]))){let M=dn,D=Z&&M.has(z.charAt(0))||z.startsWith("\\.")&&M.has(z.charAt(2))||z.startsWith("\\.\\.")&&M.has(z.charAt(4)),N=!Z&&!x&&M.has(z.charAt(0));W=D?gn:N?AX:""}}}let G="";if(this.isEnd()&&this.#x.#W&&this.#$?.type==="!")G="(?:$|\\/)";return[W+z+G,D8(z),this.#J=!!this.#J,this.#q]}let J=this.type==="*"||this.type==="+",Q=this.type==="!"?"(?:(?!(?:":"(?:",X=this.#H(Z);if(this.isStart()&&this.isEnd()&&!X&&this.type!=="!"){let Y=this.toString();return this.#X=[Y],this.type=null,this.#J=void 0,[Y,D8(this.toString()),!1,!1]}let q=!J||x||Z||!AX?"":this.#H(!0);if(q===X)q="";if(q)X=`(?:${X})(?:${q})*?`;let $="";if(this.type==="!"&&this.#V)$=(this.isStart()&&!Z?AX:"")+wN;else{let Y=this.type==="!"?"))"+(this.isStart()&&!Z&&!x?AX:"")+NN+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&q?")":this.type==="*"&&q?")?":`)${this.type}`;$=Q+X+Y}return[$,D8(X),this.#J=!!this.#J,this.#q]}#H(x){return this.#X.map((Z)=>{if(typeof Z==="string")throw new Error("string type in extglob ast??");let[J,Q,X,q]=Z.toRegExpSource(x);return this.#q=this.#q||q,J}).filter((Z)=>!(this.isStart()&&this.isEnd())||!!Z).join("|")}static#P(x,Z,J=!1){let Q=!1,X="",q=!1;for(let $=0;$<x.length;$++){let Y=x.charAt($);if(Q){Q=!1,X+=(on.has(Y)?"\\":"")+Y;continue}if(Y==="\\"){if($===x.length-1)X+="\\\\";else Q=!0;continue}if(Y==="["){let[z,W,G,H]=DN(x,$);if(G){X+=z,q=q||W,$+=G-1,Z=Z||H;continue}}if(Y==="*"){X+=J&&x==="*"?wN:NN,Z=!0;continue}if(Y==="?"){X+=jz,Z=!0;continue}X+=sn(Y)}return[X,D8(x),!!Z,q]}}var O9=(x,{windowsPathsNoEscape:Z=!1,magicalBraces:J=!1}={})=>{if(J)return Z?x.replace(/[?*()[\]{}]/g,"[$&]"):x.replace(/[?*()[\]\\{}]/g,"\\$&");return Z?x.replace(/[?*()[\]]/g,"[$&]"):x.replace(/[?*()[\]\\]/g,"\\$&")};var c3=(x,Z,J={})=>{if(DZ(Z),!J.nocomment&&Z.charAt(0)==="#")return!1;return new d4(Z,J).match(x)},nn=/^\*+([^+@!?\*\[\(]*)$/,an=(x)=>(Z)=>!Z.startsWith(".")&&Z.endsWith(x),rn=(x)=>(Z)=>Z.endsWith(x),tn=(x)=>{return x=x.toLowerCase(),(Z)=>!Z.startsWith(".")&&Z.toLowerCase().endsWith(x)},en=(x)=>{return x=x.toLowerCase(),(Z)=>Z.toLowerCase().endsWith(x)},xa=/^\*+\.\*+$/,Za=(x)=>!x.startsWith(".")&&x.includes("."),Ja=(x)=>x!=="."&&x!==".."&&x.includes("."),Qa=/^\.\*+$/,Xa=(x)=>x!=="."&&x!==".."&&x.startsWith("."),qa=/^\*+$/,$a=(x)=>x.length!==0&&!x.startsWith("."),Ya=(x)=>x.length!==0&&x!=="."&&x!=="..",Ka=/^\?+([^+@!?\*\[\(]*)?$/,za=([x,Z=""])=>{let J=LN([x]);if(!Z)return J;return Z=Z.toLowerCase(),(Q)=>J(Q)&&Q.toLowerCase().endsWith(Z)},Wa=([x,Z=""])=>{let J=jN([x]);if(!Z)return J;return Z=Z.toLowerCase(),(Q)=>J(Q)&&Q.toLowerCase().endsWith(Z)},Va=([x,Z=""])=>{let J=jN([x]);return!Z?J:(Q)=>J(Q)&&Q.endsWith(Z)},Ga=([x,Z=""])=>{let J=LN([x]);return!Z?J:(Q)=>J(Q)&&Q.endsWith(Z)},LN=([x])=>{let Z=x.length;return(J)=>J.length===Z&&!J.startsWith(".")},jN=([x])=>{let Z=x.length;return(J)=>J.length===Z&&J!=="."&&J!==".."},CN=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",PN={win32:{sep:"\\"},posix:{sep:"/"}},Ha=CN==="win32"?PN.win32.sep:PN.posix.sep;c3.sep=Ha;var W3=Symbol("globstar **");c3.GLOBSTAR=W3;var Ua="[^/]",Ba=Ua+"*?",Ma="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Da="(?:(?!(?:\\/|^)\\.).)*?",Fa=(x,Z={})=>(J)=>c3(J,x,Z);c3.filter=Fa;var i4=(x,Z={})=>Object.assign({},x,Z),Na=(x)=>{if(!x||typeof x!=="object"||!Object.keys(x).length)return c3;let Z=c3;return Object.assign((Q,X,q={})=>Z(Q,X,i4(x,q)),{Minimatch:class Q extends Z.Minimatch{constructor(X,q={}){super(X,i4(x,q))}static defaults(X){return Z.defaults(i4(x,X)).Minimatch}},AST:class Q extends Z.AST{constructor(X,q,$={}){super(X,q,i4(x,$))}static fromGlob(X,q={}){return Z.AST.fromGlob(X,i4(x,q))}},unescape:(Q,X={})=>Z.unescape(Q,i4(x,X)),escape:(Q,X={})=>Z.escape(Q,i4(x,X)),filter:(Q,X={})=>Z.filter(Q,i4(x,X)),defaults:(Q)=>Z.defaults(i4(x,Q)),makeRe:(Q,X={})=>Z.makeRe(Q,i4(x,X)),braceExpand:(Q,X={})=>Z.braceExpand(Q,i4(x,X)),match:(Q,X,q={})=>Z.match(Q,X,i4(x,q)),sep:Z.sep,GLOBSTAR:W3})};c3.defaults=Na;var mN=(x,Z={})=>{if(DZ(x),Z.nobrace||!/\{(?:(?!\{).)*\}/.test(x))return[x];return BN(x)};c3.braceExpand=mN;var wa=(x,Z={})=>new d4(x,Z).makeRe();c3.makeRe=wa;var Pa=(x,Z,J={})=>{let Q=new d4(Z,J);if(x=x.filter((X)=>Q.match(X)),Q.options.nonull&&!x.length)x.push(Z);return x};c3.match=Pa;var _N=/[?*]|[+@!]\(.*?\)|\[|\]/,_a=(x)=>x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class d4{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(x,Z={}){if(DZ(x),Z=Z||{},this.options=Z,this.pattern=x,this.platform=Z.platform||CN,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!Z.windowsPathsNoEscape||Z.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!Z.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!Z.nonegate,this.comment=!1,this.empty=!1,this.partial=!!Z.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=Z.windowsNoMagicRoot!==void 0?Z.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let x of this.set)for(let Z of x)if(typeof Z!=="string")return!0;return!1}debug(...x){}make(){let x=this.pattern,Z=this.options;if(!Z.nocomment&&x.charAt(0)==="#"){this.comment=!0;return}if(!x){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],Z.debug)this.debug=(...X)=>console.error(...X);this.debug(this.pattern,this.globSet);let J=this.globSet.map((X)=>this.slashSplit(X));this.globParts=this.preprocess(J),this.debug(this.pattern,this.globParts);let Q=this.globParts.map((X,q,$)=>{if(this.isWindows&&this.windowsNoMagicRoot){let Y=X[0]===""&&X[1]===""&&(X[2]==="?"||!_N.test(X[2]))&&!_N.test(X[3]),z=/^[a-z]:/i.test(X[0]);if(Y)return[...X.slice(0,4),...X.slice(4).map((W)=>this.parse(W))];else if(z)return[X[0],...X.slice(1).map((W)=>this.parse(W))]}return X.map((Y)=>this.parse(Y))});if(this.debug(this.pattern,Q),this.set=Q.filter((X)=>X.indexOf(!1)===-1),this.isWindows)for(let X=0;X<this.set.length;X++){let q=this.set[X];if(q[0]===""&&q[1]===""&&this.globParts[X][2]==="?"&&typeof q[3]==="string"&&/^[a-z]:$/i.test(q[3]))q[2]="?"}this.debug(this.pattern,this.set)}preprocess(x){if(this.options.noglobstar){for(let J=0;J<x.length;J++)for(let Q=0;Q<x[J].length;Q++)if(x[J][Q]==="**")x[J][Q]="*"}let{optimizationLevel:Z=1}=this.options;if(Z>=2)x=this.firstPhasePreProcess(x),x=this.secondPhasePreProcess(x);else if(Z>=1)x=this.levelOneOptimize(x);else x=this.adjascentGlobstarOptimize(x);return x}adjascentGlobstarOptimize(x){return x.map((Z)=>{let J=-1;while((J=Z.indexOf("**",J+1))!==-1){let Q=J;while(Z[Q+1]==="**")Q++;if(Q!==J)Z.splice(J,Q-J)}return Z})}levelOneOptimize(x){return x.map((Z)=>{return Z=Z.reduce((J,Q)=>{let X=J[J.length-1];if(Q==="**"&&X==="**")return J;if(Q===".."){if(X&&X!==".."&&X!=="."&&X!=="**")return J.pop(),J}return J.push(Q),J},[]),Z.length===0?[""]:Z})}levelTwoFileOptimize(x){if(!Array.isArray(x))x=this.slashSplit(x);let Z=!1;do{if(Z=!1,!this.preserveMultipleSlashes){for(let Q=1;Q<x.length-1;Q++){let X=x[Q];if(Q===1&&X===""&&x[0]==="")continue;if(X==="."||X==="")Z=!0,x.splice(Q,1),Q--}if(x[0]==="."&&x.length===2&&(x[1]==="."||x[1]===""))Z=!0,x.pop()}let J=0;while((J=x.indexOf("..",J+1))!==-1){let Q=x[J-1];if(Q&&Q!=="."&&Q!==".."&&Q!=="**")Z=!0,x.splice(J-1,2),J-=2}}while(Z);return x.length===0?[""]:x}firstPhasePreProcess(x){let Z=!1;do{Z=!1;for(let J of x){let Q=-1;while((Q=J.indexOf("**",Q+1))!==-1){let q=Q;while(J[q+1]==="**")q++;if(q>Q)J.splice(Q+1,q-Q);let $=J[Q+1],Y=J[Q+2],z=J[Q+3];if($!=="..")continue;if(!Y||Y==="."||Y===".."||!z||z==="."||z==="..")continue;Z=!0,J.splice(Q,1);let W=J.slice(0);W[Q]="**",x.push(W),Q--}if(!this.preserveMultipleSlashes){for(let q=1;q<J.length-1;q++){let $=J[q];if(q===1&&$===""&&J[0]==="")continue;if($==="."||$==="")Z=!0,J.splice(q,1),q--}if(J[0]==="."&&J.length===2&&(J[1]==="."||J[1]===""))Z=!0,J.pop()}let X=0;while((X=J.indexOf("..",X+1))!==-1){let q=J[X-1];if(q&&q!=="."&&q!==".."&&q!=="**"){Z=!0;let Y=X===1&&J[X+1]==="**"?["."]:[];if(J.splice(X-1,2,...Y),J.length===0)J.push("");X-=2}}}}while(Z);return x}secondPhasePreProcess(x){for(let Z=0;Z<x.length-1;Z++)for(let J=Z+1;J<x.length;J++){let Q=this.partsMatch(x[Z],x[J],!this.preserveMultipleSlashes);if(Q){x[Z]=[],x[J]=Q;break}}return x.filter((Z)=>Z.length)}partsMatch(x,Z,J=!1){let Q=0,X=0,q=[],$="";while(Q<x.length&&X<Z.length)if(x[Q]===Z[X])q.push($==="b"?Z[X]:x[Q]),Q++,X++;else if(J&&x[Q]==="**"&&Z[X]===x[Q+1])q.push(x[Q]),Q++;else if(J&&Z[X]==="**"&&x[Q]===Z[X+1])q.push(Z[X]),X++;else if(x[Q]==="*"&&Z[X]&&(this.options.dot||!Z[X].startsWith("."))&&Z[X]!=="**"){if($==="b")return!1;$="a",q.push(x[Q]),Q++,X++}else if(Z[X]==="*"&&x[Q]&&(this.options.dot||!x[Q].startsWith("."))&&x[Q]!=="**"){if($==="a")return!1;$="b",q.push(Z[X]),Q++,X++}else return!1;return x.length===Z.length&&q}parseNegate(){if(this.nonegate)return;let x=this.pattern,Z=!1,J=0;for(let Q=0;Q<x.length&&x.charAt(Q)==="!";Q++)Z=!Z,J++;if(J)this.pattern=x.slice(J);this.negate=Z}matchOne(x,Z,J=!1){let Q=this.options;if(this.isWindows){let D=typeof x[0]==="string"&&/^[a-z]:$/i.test(x[0]),N=!D&&x[0]===""&&x[1]===""&&x[2]==="?"&&/^[a-z]:$/i.test(x[3]),_=typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0]),L=!_&&Z[0]===""&&Z[1]===""&&Z[2]==="?"&&typeof Z[3]==="string"&&/^[a-z]:$/i.test(Z[3]),O=N?3:D?0:void 0,v=L?3:_?0:void 0;if(typeof O==="number"&&typeof v==="number"){let[y,h]=[x[O],Z[v]];if(y.toLowerCase()===h.toLowerCase()){if(Z[v]=y,v>O)Z=Z.slice(v);else if(O>v)x=x.slice(O)}}}let{optimizationLevel:X=1}=this.options;if(X>=2)x=this.levelTwoFileOptimize(x);this.debug("matchOne",this,{file:x,pattern:Z}),this.debug("matchOne",x.length,Z.length);for(var q=0,$=0,Y=x.length,z=Z.length;q<Y&&$<z;q++,$++){this.debug("matchOne loop");var W=Z[$],G=x[q];if(this.debug(Z,W,G),W===!1)return!1;if(W===W3){this.debug("GLOBSTAR",[Z,W,G]);var H=q,U=$+1;if(U===z){this.debug("** at the end");for(;q<Y;q++)if(x[q]==="."||x[q]===".."||!Q.dot&&x[q].charAt(0)===".")return!1;return!0}while(H<Y){var M=x[H];if(this.debug(`
|
|
87
87
|
globstar while`,x,H,Z,U,M),this.matchOne(x.slice(H),Z.slice(U),J))return this.debug("globstar found match!",H,Y,M),!0;else{if(M==="."||M===".."||!Q.dot&&M.charAt(0)==="."){this.debug("dot detected!",x,H,Z,U);break}this.debug("globstar swallow a segment, and continue"),H++}}if(J){if(this.debug(`
|
|
88
88
|
>>> no match, partial?`,x,H,Z,U),H===Y)return!0}return!1}let D;if(typeof W==="string")D=G===W,this.debug("string match",W,G,D);else D=W.test(G),this.debug("pattern match",W,G,D);if(!D)return!1}if(q===Y&&$===z)return!0;else if(q===Y)return J;else if($===z)return q===Y-1&&x[q]==="";else throw new Error("wtf?")}braceExpand(){return mN(this.pattern,this.options)}parse(x){DZ(x);let Z=this.options;if(x==="**")return W3;if(x==="")return"";let J,Q=null;if(J=x.match(qa))Q=Z.dot?Ya:$a;else if(J=x.match(nn))Q=(Z.nocase?Z.dot?en:tn:Z.dot?rn:an)(J[1]);else if(J=x.match(Ka))Q=(Z.nocase?Z.dot?Wa:za:Z.dot?Va:Ga)(J);else if(J=x.match(xa))Q=Z.dot?Ja:Za;else if(J=x.match(Qa))Q=Xa;let X=z3.fromGlob(x,this.options).toMMPattern();if(Q&&typeof X==="object")Reflect.defineProperty(X,"test",{value:Q});return X}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let x=this.set;if(!x.length)return this.regexp=!1,this.regexp;let Z=this.options,J=Z.noglobstar?Ba:Z.dot?Ma:Da,Q=new Set(Z.nocase?["i"]:[]),X=x.map((Y)=>{let z=Y.map((G)=>{if(G instanceof RegExp)for(let H of G.flags.split(""))Q.add(H);return typeof G==="string"?_a(G):G===W3?W3:G._src});z.forEach((G,H)=>{let U=z[H+1],M=z[H-1];if(G!==W3||M===W3)return;if(M===void 0)if(U!==void 0&&U!==W3)z[H+1]="(?:\\/|"+J+"\\/)?"+U;else z[H]=J;else if(U===void 0)z[H-1]=M+"(?:\\/|\\/"+J+")?";else if(U!==W3)z[H-1]=M+"(?:\\/|\\/"+J+"\\/)"+U,z[H+1]=W3});let W=z.filter((G)=>G!==W3);if(this.partial&&W.length>=1){let G=[];for(let H=1;H<=W.length;H++)G.push(W.slice(0,H).join("/"));return"(?:"+G.join("|")+")"}return W.join("/")}).join("|"),[q,$]=x.length>1?["(?:",")"]:["",""];if(X="^"+q+X+$+"$",this.partial)X="^(?:\\/|"+q+X.slice(1,-1)+$+")$";if(this.negate)X="^(?!"+X+").+$";try{this.regexp=new RegExp(X,[...Q].join(""))}catch(Y){this.regexp=!1}return this.regexp}slashSplit(x){if(this.preserveMultipleSlashes)return x.split("/");else if(this.isWindows&&/^\/\/[^\/]+/.test(x))return["",...x.split(/\/+/)];else return x.split(/\/+/)}match(x,Z=this.partial){if(this.debug("match",x,this.pattern),this.comment)return!1;if(this.empty)return x==="";if(x==="/"&&Z)return!0;let J=this.options;if(this.isWindows)x=x.split("\\").join("/");let Q=this.slashSplit(x);this.debug(this.pattern,"split",Q);let X=this.set;this.debug(this.pattern,"set",X);let q=Q[Q.length-1];if(!q)for(let $=Q.length-2;!q&&$>=0;$--)q=Q[$];for(let $=0;$<X.length;$++){let Y=X[$],z=Q;if(J.matchBase&&Y.length===1)z=[q];if(this.matchOne(z,Y,Z)){if(J.flipNegate)return!0;return!this.negate}}if(J.flipNegate)return!1;return this.negate}static defaults(x){return c3.defaults(x).Minimatch}}c3.AST=z3;c3.Minimatch=d4;c3.escape=O9;c3.unescape=D8;import{fileURLToPath as Zr}from"node:url";var La=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,SN=new Set,Cz=typeof process==="object"&&!!process?process:{},RN=(x,Z,J,Q)=>{typeof Cz.emitWarning==="function"?Cz.emitWarning(x,Z,J,Q):console.error(`[${J}] ${Z}: ${x}`)},EX=globalThis.AbortController,ON=globalThis.AbortSignal;if(typeof EX==="undefined"){ON=class J{onabort;_onabort=[];reason;aborted=!1;addEventListener(Q,X){this._onabort.push(X)}},EX=class J{constructor(){Z()}signal=new ON;abort(Q){if(this.signal.aborted)return;this.signal.reason=Q,this.signal.aborted=!0;for(let X of this.signal._onabort)X(Q);this.signal.onabort?.(Q)}};let x=Cz.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Z=()=>{if(!x)return;x=!1,RN("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Z)}}var ja=(x)=>!SN.has(x),cT0=Symbol("type"),V5=(x)=>x&&x===Math.floor(x)&&x>0&&isFinite(x),IN=(x)=>!V5(x)?null:x<=Math.pow(2,8)?Uint8Array:x<=Math.pow(2,16)?Uint16Array:x<=Math.pow(2,32)?Uint32Array:x<=Number.MAX_SAFE_INTEGER?NZ:null;class NZ extends Array{constructor(x){super(x);this.fill(0)}}class S9{heap;length;static#x=!1;static create(x){let Z=IN(x);if(!Z)return[];S9.#x=!0;let J=new S9(x,Z);return S9.#x=!1,J}constructor(x,Z){if(!S9.#x)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Z(x),this.length=0}push(x){this.heap[this.length++]=x}pop(){return this.heap[--this.length]}}class H7{#x;#J;#q;#X;#$;#w;#D;#W;get perf(){return this.#W}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Y;#G;#V;#K;#Q;#H;#P;#N;#U;#S;#B;#j;#C;#M;#F;#_;#m;#Z;#E;static unsafeExposeInternals(x){return{starts:x.#C,ttls:x.#M,autopurgeTimers:x.#F,sizes:x.#j,keyMap:x.#V,keyList:x.#K,valList:x.#Q,next:x.#H,prev:x.#P,get head(){return x.#N},get tail(){return x.#U},free:x.#S,isBackgroundFetch:(Z)=>x.#z(Z),backgroundFetch:(Z,J,Q,X)=>x.#h(Z,J,Q,X),moveToTail:(Z)=>x.#k(Z),indexes:(Z)=>x.#I(Z),rindexes:(Z)=>x.#T(Z),isStale:(Z)=>x.#L(Z)}}get max(){return this.#x}get maxSize(){return this.#J}get calculatedSize(){return this.#G}get size(){return this.#Y}get fetchMethod(){return this.#w}get memoMethod(){return this.#D}get dispose(){return this.#q}get onInsert(){return this.#X}get disposeAfter(){return this.#$}constructor(x){let{max:Z=0,ttl:J,ttlResolution:Q=1,ttlAutopurge:X,updateAgeOnGet:q,updateAgeOnHas:$,allowStale:Y,dispose:z,onInsert:W,disposeAfter:G,noDisposeOnSet:H,noUpdateTTL:U,maxSize:M=0,maxEntrySize:D=0,sizeCalculation:N,fetchMethod:_,memoMethod:L,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:h,ignoreFetchAbort:r,perf:e}=x;if(e!==void 0){if(typeof e?.now!=="function")throw new TypeError("perf option must have a now() method if specified")}if(this.#W=e??La,Z!==0&&!V5(Z))throw new TypeError("max option must be a nonnegative integer");let C=Z?IN(Z):Array;if(!C)throw new Error("invalid max value: "+Z);if(this.#x=Z,this.#J=M,this.maxEntrySize=D||this.#J,this.sizeCalculation=N,this.sizeCalculation){if(!this.#J&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw new TypeError("sizeCalculation set to non-function")}if(L!==void 0&&typeof L!=="function")throw new TypeError("memoMethod must be a function if defined");if(this.#D=L,_!==void 0&&typeof _!=="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=_,this.#m=!!_,this.#V=new Map,this.#K=new Array(Z).fill(void 0),this.#Q=new Array(Z).fill(void 0),this.#H=new C(Z),this.#P=new C(Z),this.#N=0,this.#U=0,this.#S=S9.create(Z),this.#Y=0,this.#G=0,typeof z==="function")this.#q=z;if(typeof W==="function")this.#X=W;if(typeof G==="function")this.#$=G,this.#B=[];else this.#$=void 0,this.#B=void 0;if(this.#_=!!this.#q,this.#E=!!this.#X,this.#Z=!!this.#$,this.noDisposeOnSet=!!H,this.noUpdateTTL=!!U,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!h,this.ignoreFetchAbort=!!r,this.maxEntrySize!==0){if(this.#J!==0){if(!V5(this.#J))throw new TypeError("maxSize must be a positive integer if specified")}if(!V5(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#i()}if(this.allowStale=!!Y,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!q,this.updateAgeOnHas=!!$,this.ttlResolution=V5(Q)||Q===0?Q:1,this.ttlAutopurge=!!X,this.ttl=J||0,this.ttl){if(!V5(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#v()}if(this.#x===0&&this.ttl===0&&this.#J===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#x&&!this.#J){if(ja("LRU_CACHE_UNBOUNDED"))SN.add("LRU_CACHE_UNBOUNDED"),RN("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",H7)}}getRemainingTTL(x){return this.#V.has(x)?1/0:0}#v(){let x=new NZ(this.#x),Z=new NZ(this.#x);this.#M=x,this.#C=Z;let J=this.ttlAutopurge?new Array(this.#x):void 0;this.#F=J,this.#b=(q,$,Y=this.#W.now())=>{if(Z[q]=$!==0?Y:0,x[q]=$,J?.[q])clearTimeout(J[q]),J[q]=void 0;if($!==0&&J){let z=setTimeout(()=>{if(this.#L(q))this.#R(this.#K[q],"expire")},$+1);if(z.unref)z.unref();J[q]=z}},this.#O=(q)=>{Z[q]=x[q]!==0?this.#W.now():0},this.#A=(q,$)=>{if(x[$]){let Y=x[$],z=Z[$];if(!Y||!z)return;q.ttl=Y,q.start=z,q.now=Q||X();let W=q.now-z;q.remainingTTL=Y-W}};let Q=0,X=()=>{let q=this.#W.now();if(this.ttlResolution>0){Q=q;let $=setTimeout(()=>Q=0,this.ttlResolution);if($.unref)$.unref()}return q};this.getRemainingTTL=(q)=>{let $=this.#V.get(q);if($===void 0)return 0;let Y=x[$],z=Z[$];if(!Y||!z)return 1/0;let W=(Q||X())-z;return Y-W},this.#L=(q)=>{let $=Z[q],Y=x[q];return!!Y&&!!$&&(Q||X())-$>Y}}#O=()=>{};#A=()=>{};#b=()=>{};#L=()=>!1;#i(){let x=new NZ(this.#x);this.#G=0,this.#j=x,this.#c=(Z)=>{this.#G-=x[Z],x[Z]=0},this.#p=(Z,J,Q,X)=>{if(this.#z(J))return 0;if(!V5(Q))if(X){if(typeof X!=="function")throw new TypeError("sizeCalculation must be a function");if(Q=X(J,Z),!V5(Q))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Q},this.#f=(Z,J,Q)=>{if(x[Z]=J,this.#J){let X=this.#J-x[Z];while(this.#G>X)this.#u(!0)}if(this.#G+=x[Z],Q)Q.entrySize=J,Q.totalCalculatedSize=this.#G}}#c=(x)=>{};#f=(x,Z,J)=>{};#p=(x,Z,J,Q)=>{if(J||Q)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#I({allowStale:x=this.allowStale}={}){if(this.#Y)for(let Z=this.#U;;){if(!this.#y(Z))break;if(x||!this.#L(Z))yield Z;if(Z===this.#N)break;else Z=this.#P[Z]}}*#T({allowStale:x=this.allowStale}={}){if(this.#Y)for(let Z=this.#N;;){if(!this.#y(Z))break;if(x||!this.#L(Z))yield Z;if(Z===this.#U)break;else Z=this.#H[Z]}}#y(x){return x!==void 0&&this.#V.get(this.#K[x])===x}*entries(){for(let x of this.#I())if(this.#Q[x]!==void 0&&this.#K[x]!==void 0&&!this.#z(this.#Q[x]))yield[this.#K[x],this.#Q[x]]}*rentries(){for(let x of this.#T())if(this.#Q[x]!==void 0&&this.#K[x]!==void 0&&!this.#z(this.#Q[x]))yield[this.#K[x],this.#Q[x]]}*keys(){for(let x of this.#I()){let Z=this.#K[x];if(Z!==void 0&&!this.#z(this.#Q[x]))yield Z}}*rkeys(){for(let x of this.#T()){let Z=this.#K[x];if(Z!==void 0&&!this.#z(this.#Q[x]))yield Z}}*values(){for(let x of this.#I())if(this.#Q[x]!==void 0&&!this.#z(this.#Q[x]))yield this.#Q[x]}*rvalues(){for(let x of this.#T())if(this.#Q[x]!==void 0&&!this.#z(this.#Q[x]))yield this.#Q[x]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(x,Z={}){for(let J of this.#I()){let Q=this.#Q[J],X=this.#z(Q)?Q.__staleWhileFetching:Q;if(X===void 0)continue;if(x(X,this.#K[J],this))return this.get(this.#K[J],Z)}}forEach(x,Z=this){for(let J of this.#I()){let Q=this.#Q[J],X=this.#z(Q)?Q.__staleWhileFetching:Q;if(X===void 0)continue;x.call(Z,X,this.#K[J],this)}}rforEach(x,Z=this){for(let J of this.#T()){let Q=this.#Q[J],X=this.#z(Q)?Q.__staleWhileFetching:Q;if(X===void 0)continue;x.call(Z,X,this.#K[J],this)}}purgeStale(){let x=!1;for(let Z of this.#T({allowStale:!0}))if(this.#L(Z))this.#R(this.#K[Z],"expire"),x=!0;return x}info(x){let Z=this.#V.get(x);if(Z===void 0)return;let J=this.#Q[Z],Q=this.#z(J)?J.__staleWhileFetching:J;if(Q===void 0)return;let X={value:Q};if(this.#M&&this.#C){let q=this.#M[Z],$=this.#C[Z];if(q&&$){let Y=q-(this.#W.now()-$);X.ttl=Y,X.start=Date.now()}}if(this.#j)X.size=this.#j[Z];return X}dump(){let x=[];for(let Z of this.#I({allowStale:!0})){let J=this.#K[Z],Q=this.#Q[Z],X=this.#z(Q)?Q.__staleWhileFetching:Q;if(X===void 0||J===void 0)continue;let q={value:X};if(this.#M&&this.#C){q.ttl=this.#M[Z];let $=this.#W.now()-this.#C[Z];q.start=Math.floor(Date.now()-$)}if(this.#j)q.size=this.#j[Z];x.unshift([J,q])}return x}load(x){this.clear();for(let[Z,J]of x){if(J.start){let Q=Date.now()-J.start;J.start=this.#W.now()-Q}this.set(Z,J.value,J)}}set(x,Z,J={}){if(Z===void 0)return this.delete(x),this;let{ttl:Q=this.ttl,start:X,noDisposeOnSet:q=this.noDisposeOnSet,sizeCalculation:$=this.sizeCalculation,status:Y}=J,{noUpdateTTL:z=this.noUpdateTTL}=J,W=this.#p(x,Z,J.size||0,$);if(this.maxEntrySize&&W>this.maxEntrySize){if(Y)Y.set="miss",Y.maxEntrySizeExceeded=!0;return this.#R(x,"set"),this}let G=this.#Y===0?void 0:this.#V.get(x);if(G===void 0){if(G=this.#Y===0?this.#U:this.#S.length!==0?this.#S.pop():this.#Y===this.#x?this.#u(!1):this.#Y,this.#K[G]=x,this.#Q[G]=Z,this.#V.set(x,G),this.#H[this.#U]=G,this.#P[G]=this.#U,this.#U=G,this.#Y++,this.#f(G,W,Y),Y)Y.set="add";if(z=!1,this.#E)this.#X?.(Z,x,"add")}else{this.#k(G);let H=this.#Q[G];if(Z!==H){if(this.#m&&this.#z(H)){H.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:U}=H;if(U!==void 0&&!q){if(this.#_)this.#q?.(U,x,"set");if(this.#Z)this.#B?.push([U,x,"set"])}}else if(!q){if(this.#_)this.#q?.(H,x,"set");if(this.#Z)this.#B?.push([H,x,"set"])}if(this.#c(G),this.#f(G,W,Y),this.#Q[G]=Z,Y){Y.set="replace";let U=H&&this.#z(H)?H.__staleWhileFetching:H;if(U!==void 0)Y.oldValue=U}}else if(Y)Y.set="update";if(this.#E)this.onInsert?.(Z,x,Z===H?"update":"replace")}if(Q!==0&&!this.#M)this.#v();if(this.#M){if(!z)this.#b(G,Q,X);if(Y)this.#A(Y,G)}if(!q&&this.#Z&&this.#B){let H=this.#B,U;while(U=H?.shift())this.#$?.(...U)}return this}pop(){try{while(this.#Y){let x=this.#Q[this.#N];if(this.#u(!0),this.#z(x)){if(x.__staleWhileFetching)return x.__staleWhileFetching}else if(x!==void 0)return x}}finally{if(this.#Z&&this.#B){let x=this.#B,Z;while(Z=x?.shift())this.#$?.(...Z)}}}#u(x){let Z=this.#N,J=this.#K[Z],Q=this.#Q[Z];if(this.#m&&this.#z(Q))Q.__abortController.abort(new Error("evicted"));else if(this.#_||this.#Z){if(this.#_)this.#q?.(Q,J,"evict");if(this.#Z)this.#B?.push([Q,J,"evict"])}if(this.#c(Z),this.#F?.[Z])clearTimeout(this.#F[Z]),this.#F[Z]=void 0;if(x)this.#K[Z]=void 0,this.#Q[Z]=void 0,this.#S.push(Z);if(this.#Y===1)this.#N=this.#U=0,this.#S.length=0;else this.#N=this.#H[Z];return this.#V.delete(J),this.#Y--,Z}has(x,Z={}){let{updateAgeOnHas:J=this.updateAgeOnHas,status:Q}=Z,X=this.#V.get(x);if(X!==void 0){let q=this.#Q[X];if(this.#z(q)&&q.__staleWhileFetching===void 0)return!1;if(!this.#L(X)){if(J)this.#O(X);if(Q)Q.has="hit",this.#A(Q,X);return!0}else if(Q)Q.has="stale",this.#A(Q,X)}else if(Q)Q.has="miss";return!1}peek(x,Z={}){let{allowStale:J=this.allowStale}=Z,Q=this.#V.get(x);if(Q===void 0||!J&&this.#L(Q))return;let X=this.#Q[Q];return this.#z(X)?X.__staleWhileFetching:X}#h(x,Z,J,Q){let X=Z===void 0?void 0:this.#Q[Z];if(this.#z(X))return X;let q=new EX,{signal:$}=J;$?.addEventListener("abort",()=>q.abort($.reason),{signal:q.signal});let Y={signal:q.signal,options:J,context:Q},z=(D,N=!1)=>{let{aborted:_}=q.signal,L=J.ignoreFetchAbort&&D!==void 0;if(J.status)if(_&&!N){if(J.status.fetchAborted=!0,J.status.fetchError=q.signal.reason,L)J.status.fetchAbortIgnored=!0}else J.status.fetchResolved=!0;if(_&&!L&&!N)return G(q.signal.reason);let O=U,v=this.#Q[Z];if(v===U||L&&N&&v===void 0)if(D===void 0)if(O.__staleWhileFetching!==void 0)this.#Q[Z]=O.__staleWhileFetching;else this.#R(x,"fetch");else{if(J.status)J.status.fetchUpdated=!0;this.set(x,D,Y.options)}return D},W=(D)=>{if(J.status)J.status.fetchRejected=!0,J.status.fetchError=D;return G(D)},G=(D)=>{let{aborted:N}=q.signal,_=N&&J.allowStaleOnFetchAbort,L=_||J.allowStaleOnFetchRejection,O=L||J.noDeleteOnFetchRejection,v=U;if(this.#Q[Z]===U){if(!O||v.__staleWhileFetching===void 0)this.#R(x,"fetch");else if(!_)this.#Q[Z]=v.__staleWhileFetching}if(L){if(J.status&&v.__staleWhileFetching!==void 0)J.status.returnedStale=!0;return v.__staleWhileFetching}else if(v.__returned===v)throw D},H=(D,N)=>{let _=this.#w?.(x,X,Y);if(_&&_ instanceof Promise)_.then((L)=>D(L===void 0?void 0:L),N);q.signal.addEventListener("abort",()=>{if(!J.ignoreFetchAbort||J.allowStaleOnFetchAbort){if(D(void 0),J.allowStaleOnFetchAbort)D=(L)=>z(L,!0)}})};if(J.status)J.status.fetchDispatched=!0;let U=new Promise(H).then(z,W),M=Object.assign(U,{__abortController:q,__staleWhileFetching:X,__returned:void 0});if(Z===void 0)this.set(x,M,{...Y.options,status:void 0}),Z=this.#V.get(x);else this.#Q[Z]=M;return M}#z(x){if(!this.#m)return!1;let Z=x;return!!Z&&Z instanceof Promise&&Z.hasOwnProperty("__staleWhileFetching")&&Z.__abortController instanceof EX}async fetch(x,Z={}){let{allowStale:J=this.allowStale,updateAgeOnGet:Q=this.updateAgeOnGet,noDeleteOnStaleGet:X=this.noDeleteOnStaleGet,ttl:q=this.ttl,noDisposeOnSet:$=this.noDisposeOnSet,size:Y=0,sizeCalculation:z=this.sizeCalculation,noUpdateTTL:W=this.noUpdateTTL,noDeleteOnFetchRejection:G=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:H=this.allowStaleOnFetchRejection,ignoreFetchAbort:U=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:D,forceRefresh:N=!1,status:_,signal:L}=Z;if(!this.#m){if(_)_.fetch="get";return this.get(x,{allowStale:J,updateAgeOnGet:Q,noDeleteOnStaleGet:X,status:_})}let O={allowStale:J,updateAgeOnGet:Q,noDeleteOnStaleGet:X,ttl:q,noDisposeOnSet:$,size:Y,sizeCalculation:z,noUpdateTTL:W,noDeleteOnFetchRejection:G,allowStaleOnFetchRejection:H,allowStaleOnFetchAbort:M,ignoreFetchAbort:U,status:_,signal:L},v=this.#V.get(x);if(v===void 0){if(_)_.fetch="miss";let y=this.#h(x,v,O,D);return y.__returned=y}else{let y=this.#Q[v];if(this.#z(y)){let I=J&&y.__staleWhileFetching!==void 0;if(_){if(_.fetch="inflight",I)_.returnedStale=!0}return I?y.__staleWhileFetching:y.__returned=y}let h=this.#L(v);if(!N&&!h){if(_)_.fetch="hit";if(this.#k(v),Q)this.#O(v);if(_)this.#A(_,v);return y}let r=this.#h(x,v,O,D),C=r.__staleWhileFetching!==void 0&&J;if(_){if(_.fetch=h?"stale":"refresh",C&&h)_.returnedStale=!0}return C?r.__staleWhileFetching:r.__returned=r}}async forceFetch(x,Z={}){let J=await this.fetch(x,Z);if(J===void 0)throw new Error("fetch() returned undefined");return J}memo(x,Z={}){let J=this.#D;if(!J)throw new Error("no memoMethod provided to constructor");let{context:Q,forceRefresh:X,...q}=Z,$=this.get(x,q);if(!X&&$!==void 0)return $;let Y=J(x,$,{options:q,context:Q});return this.set(x,Y,q),Y}get(x,Z={}){let{allowStale:J=this.allowStale,updateAgeOnGet:Q=this.updateAgeOnGet,noDeleteOnStaleGet:X=this.noDeleteOnStaleGet,status:q}=Z,$=this.#V.get(x);if($!==void 0){let Y=this.#Q[$],z=this.#z(Y);if(q)this.#A(q,$);if(this.#L($)){if(q)q.get="stale";if(!z){if(!X)this.#R(x,"expire");if(q&&J)q.returnedStale=!0;return J?Y:void 0}else{if(q&&J&&Y.__staleWhileFetching!==void 0)q.returnedStale=!0;return J?Y.__staleWhileFetching:void 0}}else{if(q)q.get="hit";if(z)return Y.__staleWhileFetching;if(this.#k($),Q)this.#O($);return Y}}else if(q)q.get="miss"}#g(x,Z){this.#P[Z]=x,this.#H[x]=Z}#k(x){if(x!==this.#U){if(x===this.#N)this.#N=this.#H[x];else this.#g(this.#P[x],this.#H[x]);this.#g(this.#U,x),this.#U=x}}delete(x){return this.#R(x,"delete")}#R(x,Z){let J=!1;if(this.#Y!==0){let Q=this.#V.get(x);if(Q!==void 0){if(this.#F?.[Q])clearTimeout(this.#F?.[Q]),this.#F[Q]=void 0;if(J=!0,this.#Y===1)this.#d(Z);else{this.#c(Q);let X=this.#Q[Q];if(this.#z(X))X.__abortController.abort(new Error("deleted"));else if(this.#_||this.#Z){if(this.#_)this.#q?.(X,x,Z);if(this.#Z)this.#B?.push([X,x,Z])}if(this.#V.delete(x),this.#K[Q]=void 0,this.#Q[Q]=void 0,Q===this.#U)this.#U=this.#P[Q];else if(Q===this.#N)this.#N=this.#H[Q];else{let q=this.#P[Q];this.#H[q]=this.#H[Q];let $=this.#H[Q];this.#P[$]=this.#P[Q]}this.#Y--,this.#S.push(Q)}}}if(this.#Z&&this.#B?.length){let Q=this.#B,X;while(X=Q?.shift())this.#$?.(...X)}return J}clear(){return this.#d("delete")}#d(x){for(let Z of this.#T({allowStale:!0})){let J=this.#Q[Z];if(this.#z(J))J.__abortController.abort(new Error("deleted"));else{let Q=this.#K[Z];if(this.#_)this.#q?.(J,Q,x);if(this.#Z)this.#B?.push([J,Q,x])}}if(this.#V.clear(),this.#Q.fill(void 0),this.#K.fill(void 0),this.#M&&this.#C){this.#M.fill(0),this.#C.fill(0);for(let Z of this.#F??[])if(Z!==void 0)clearTimeout(Z);this.#F?.fill(void 0)}if(this.#j)this.#j.fill(0);if(this.#N=0,this.#U=0,this.#S.length=0,this.#G=0,this.#Y=0,this.#Z&&this.#B){let Z=this.#B,J;while(J=Z?.shift())this.#$?.(...J)}}}import{posix as fa,win32 as fz}from"node:path";import{fileURLToPath as ka}from"node:url";import{lstatSync as ca,readdir as ba,readdirSync as pa,readlinkSync as ya,realpathSync as ua}from"fs";import*as ha from"node:fs";import{lstat as ia,readdir as da,readlink as la,realpath as oa}from"node:fs/promises";import{EventEmitter as Tz}from"node:events";import fN from"node:stream";import{StringDecoder as Ca}from"node:string_decoder";var TN=typeof process==="object"&&process?process:{stdout:null,stderr:null},ma=(x)=>!!x&&typeof x==="object"&&(x instanceof B7||x instanceof fN||Oa(x)||Sa(x)),Oa=(x)=>!!x&&typeof x==="object"&&x instanceof Tz&&typeof x.pipe==="function"&&x.pipe!==fN.Writable.prototype.pipe,Sa=(x)=>!!x&&typeof x==="object"&&x instanceof Tz&&typeof x.write==="function"&&typeof x.end==="function",S6=Symbol("EOF"),R6=Symbol("maybeEmitEnd"),G5=Symbol("emittedEnd"),fX=Symbol("emittingEnd"),wZ=Symbol("emittedError"),kX=Symbol("closed"),vN=Symbol("read"),cX=Symbol("flush"),AN=Symbol("flushChunk"),F8=Symbol("encoding"),R9=Symbol("decoder"),a2=Symbol("flowing"),PZ=Symbol("paused"),I9=Symbol("resume"),r2=Symbol("buffer"),b3=Symbol("pipes"),t2=Symbol("bufferLength"),mz=Symbol("bufferPush"),bX=Symbol("bufferShift"),L3=Symbol("objectMode"),m2=Symbol("destroyed"),Oz=Symbol("error"),Sz=Symbol("emitData"),EN=Symbol("emitEnd"),Rz=Symbol("emitEnd2"),h8=Symbol("async"),Iz=Symbol("abort"),pX=Symbol("aborted"),_Z=Symbol("signal"),U7=Symbol("dataListeners"),_4=Symbol("discarded"),LZ=(x)=>Promise.resolve().then(x),Ra=(x)=>x(),Ia=(x)=>x==="end"||x==="finish"||x==="prefinish",Ta=(x)=>x instanceof ArrayBuffer||!!x&&typeof x==="object"&&x.constructor&&x.constructor.name==="ArrayBuffer"&&x.byteLength>=0,va=(x)=>!Buffer.isBuffer(x)&&ArrayBuffer.isView(x);class vz{src;dest;opts;ondrain;constructor(x,Z,J){this.src=x,this.dest=Z,this.opts=J,this.ondrain=()=>x[I9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(x){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class kN extends vz{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(x,Z,J){super(x,Z,J);this.proxyErrors=(Q)=>Z.emit("error",Q),x.on("error",this.proxyErrors)}}var Aa=(x)=>!!x.objectMode,Ea=(x)=>!x.objectMode&&!!x.encoding&&x.encoding!=="buffer";class B7 extends Tz{[a2]=!1;[PZ]=!1;[b3]=[];[r2]=[];[L3];[F8];[h8];[R9];[S6]=!1;[G5]=!1;[fX]=!1;[kX]=!1;[wZ]=null;[t2]=0;[m2]=!1;[_Z];[pX]=!1;[U7]=0;[_4]=!1;writable=!0;readable=!0;constructor(...x){let Z=x[0]||{};super();if(Z.objectMode&&typeof Z.encoding==="string")throw new TypeError("Encoding and objectMode may not be used together");if(Aa(Z))this[L3]=!0,this[F8]=null;else if(Ea(Z))this[F8]=Z.encoding,this[L3]=!1;else this[L3]=!1,this[F8]=null;if(this[h8]=!!Z.async,this[R9]=this[F8]?new Ca(this[F8]):null,Z&&Z.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[r2]});if(Z&&Z.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[b3]});let{signal:J}=Z;if(J)if(this[_Z]=J,J.aborted)this[Iz]();else J.addEventListener("abort",()=>this[Iz]())}get bufferLength(){return this[t2]}get encoding(){return this[F8]}set encoding(x){throw new Error("Encoding must be set at instantiation time")}setEncoding(x){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[L3]}set objectMode(x){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[h8]}set["async"](x){this[h8]=this[h8]||!!x}[Iz](){this[pX]=!0,this.emit("abort",this[_Z]?.reason),this.destroy(this[_Z]?.reason)}get aborted(){return this[pX]}set aborted(x){}write(x,Z,J){if(this[pX])return!1;if(this[S6])throw new Error("write after end");if(this[m2])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof Z==="function")J=Z,Z="utf8";if(!Z)Z="utf8";let Q=this[h8]?LZ:Ra;if(!this[L3]&&!Buffer.isBuffer(x)){if(va(x))x=Buffer.from(x.buffer,x.byteOffset,x.byteLength);else if(Ta(x))x=Buffer.from(x);else if(typeof x!=="string")throw new Error("Non-contiguous data written to non-objectMode stream")}if(this[L3]){if(this[a2]&&this[t2]!==0)this[cX](!0);if(this[a2])this.emit("data",x);else this[mz](x);if(this[t2]!==0)this.emit("readable");if(J)Q(J);return this[a2]}if(!x.length){if(this[t2]!==0)this.emit("readable");if(J)Q(J);return this[a2]}if(typeof x==="string"&&!(Z===this[F8]&&!this[R9]?.lastNeed))x=Buffer.from(x,Z);if(Buffer.isBuffer(x)&&this[F8])x=this[R9].write(x);if(this[a2]&&this[t2]!==0)this[cX](!0);if(this[a2])this.emit("data",x);else this[mz](x);if(this[t2]!==0)this.emit("readable");if(J)Q(J);return this[a2]}read(x){if(this[m2])return null;if(this[_4]=!1,this[t2]===0||x===0||x&&x>this[t2])return this[R6](),null;if(this[L3])x=null;if(this[r2].length>1&&!this[L3])this[r2]=[this[F8]?this[r2].join(""):Buffer.concat(this[r2],this[t2])];let Z=this[vN](x||null,this[r2][0]);return this[R6](),Z}[vN](x,Z){if(this[L3])this[bX]();else{let J=Z;if(x===J.length||x===null)this[bX]();else if(typeof J==="string")this[r2][0]=J.slice(x),Z=J.slice(0,x),this[t2]-=x;else this[r2][0]=J.subarray(x),Z=J.subarray(0,x),this[t2]-=x}if(this.emit("data",Z),!this[r2].length&&!this[S6])this.emit("drain");return Z}end(x,Z,J){if(typeof x==="function")J=x,x=void 0;if(typeof Z==="function")J=Z,Z="utf8";if(x!==void 0)this.write(x,Z);if(J)this.once("end",J);if(this[S6]=!0,this.writable=!1,this[a2]||!this[PZ])this[R6]();return this}[I9](){if(this[m2])return;if(!this[U7]&&!this[b3].length)this[_4]=!0;if(this[PZ]=!1,this[a2]=!0,this.emit("resume"),this[r2].length)this[cX]();else if(this[S6])this[R6]();else this.emit("drain")}resume(){return this[I9]()}pause(){this[a2]=!1,this[PZ]=!0,this[_4]=!1}get destroyed(){return this[m2]}get flowing(){return this[a2]}get paused(){return this[PZ]}[mz](x){if(this[L3])this[t2]+=1;else this[t2]+=x.length;this[r2].push(x)}[bX](){if(this[L3])this[t2]-=1;else this[t2]-=this[r2][0].length;return this[r2].shift()}[cX](x=!1){do;while(this[AN](this[bX]())&&this[r2].length);if(!x&&!this[r2].length&&!this[S6])this.emit("drain")}[AN](x){return this.emit("data",x),this[a2]}pipe(x,Z){if(this[m2])return x;this[_4]=!1;let J=this[G5];if(Z=Z||{},x===TN.stdout||x===TN.stderr)Z.end=!1;else Z.end=Z.end!==!1;if(Z.proxyErrors=!!Z.proxyErrors,J){if(Z.end)x.end()}else if(this[b3].push(!Z.proxyErrors?new vz(this,x,Z):new kN(this,x,Z)),this[h8])LZ(()=>this[I9]());else this[I9]();return x}unpipe(x){let Z=this[b3].find((J)=>J.dest===x);if(Z){if(this[b3].length===1){if(this[a2]&&this[U7]===0)this[a2]=!1;this[b3]=[]}else this[b3].splice(this[b3].indexOf(Z),1);Z.unpipe()}}addListener(x,Z){return this.on(x,Z)}on(x,Z){let J=super.on(x,Z);if(x==="data"){if(this[_4]=!1,this[U7]++,!this[b3].length&&!this[a2])this[I9]()}else if(x==="readable"&&this[t2]!==0)super.emit("readable");else if(Ia(x)&&this[G5])super.emit(x),this.removeAllListeners(x);else if(x==="error"&&this[wZ]){let Q=Z;if(this[h8])LZ(()=>Q.call(this,this[wZ]));else Q.call(this,this[wZ])}return J}removeListener(x,Z){return this.off(x,Z)}off(x,Z){let J=super.off(x,Z);if(x==="data"){if(this[U7]=this.listeners("data").length,this[U7]===0&&!this[_4]&&!this[b3].length)this[a2]=!1}return J}removeAllListeners(x){let Z=super.removeAllListeners(x);if(x==="data"||x===void 0){if(this[U7]=0,!this[_4]&&!this[b3].length)this[a2]=!1}return Z}get emittedEnd(){return this[G5]}[R6](){if(!this[fX]&&!this[G5]&&!this[m2]&&this[r2].length===0&&this[S6]){if(this[fX]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[kX])this.emit("close");this[fX]=!1}}emit(x,...Z){let J=Z[0];if(x!=="error"&&x!=="close"&&x!==m2&&this[m2])return!1;else if(x==="data")return!this[L3]&&!J?!1:this[h8]?(LZ(()=>this[Sz](J)),!0):this[Sz](J);else if(x==="end")return this[EN]();else if(x==="close"){if(this[kX]=!0,!this[G5]&&!this[m2])return!1;let X=super.emit("close");return this.removeAllListeners("close"),X}else if(x==="error"){this[wZ]=J,super.emit(Oz,J);let X=!this[_Z]||this.listeners("error").length?super.emit("error",J):!1;return this[R6](),X}else if(x==="resume"){let X=super.emit("resume");return this[R6](),X}else if(x==="finish"||x==="prefinish"){let X=super.emit(x);return this.removeAllListeners(x),X}let Q=super.emit(x,...Z);return this[R6](),Q}[Sz](x){for(let J of this[b3])if(J.dest.write(x)===!1)this.pause();let Z=this[_4]?!1:super.emit("data",x);return this[R6](),Z}[EN](){if(this[G5])return!1;return this[G5]=!0,this.readable=!1,this[h8]?(LZ(()=>this[Rz]()),!0):this[Rz]()}[Rz](){if(this[R9]){let Z=this[R9].end();if(Z){for(let J of this[b3])J.dest.write(Z);if(!this[_4])super.emit("data",Z)}}for(let Z of this[b3])Z.end();let x=super.emit("end");return this.removeAllListeners("end"),x}async collect(){let x=Object.assign([],{dataLength:0});if(!this[L3])x.dataLength=0;let Z=this.promise();return this.on("data",(J)=>{if(x.push(J),!this[L3])x.dataLength+=J.length}),await Z,x}async concat(){if(this[L3])throw new Error("cannot concat in objectMode");let x=await this.collect();return this[F8]?x.join(""):Buffer.concat(x,x.dataLength)}async promise(){return new Promise((x,Z)=>{this.on(m2,()=>Z(new Error("stream destroyed"))),this.on("error",(J)=>Z(J)),this.on("end",()=>x())})}[Symbol.asyncIterator](){this[_4]=!1;let x=!1,Z=async()=>{return this.pause(),x=!0,{value:void 0,done:!0}};return{next:()=>{if(x)return Z();let Q=this.read();if(Q!==null)return Promise.resolve({done:!1,value:Q});if(this[S6])return Z();let X,q,$=(G)=>{this.off("data",Y),this.off("end",z),this.off(m2,W),Z(),q(G)},Y=(G)=>{this.off("error",$),this.off("end",z),this.off(m2,W),this.pause(),X({value:G,done:!!this[S6]})},z=()=>{this.off("error",$),this.off("data",Y),this.off(m2,W),Z(),X({done:!0,value:void 0})},W=()=>$(new Error("stream destroyed"));return new Promise((G,H)=>{q=H,X=G,this.once(m2,W),this.once("error",$),this.once("end",z),this.once("data",Y)})},throw:Z,return:Z,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[_4]=!1;let x=!1,Z=()=>{return this.pause(),this.off(Oz,Z),this.off(m2,Z),this.off("end",Z),x=!0,{done:!0,value:void 0}},J=()=>{if(x)return Z();let Q=this.read();return Q===null?Z():{done:!1,value:Q}};return this.once("end",Z),this.once(Oz,Z),this.once(m2,Z),{next:J,throw:Z,return:Z,[Symbol.iterator](){return this}}}destroy(x){if(this[m2]){if(x)this.emit("error",x);else this.emit(m2);return this}this[m2]=!0,this[_4]=!0,this[r2].length=0,this[t2]=0;let Z=this;if(typeof Z.close==="function"&&!this[kX])Z.close();if(x)this.emit("error",x);else this.emit(m2);return this}static get isStream(){return ma}}var ga=ua.native,CZ={lstatSync:ca,readdir:ba,readdirSync:pa,readlinkSync:ya,realpathSync:ga,promises:{lstat:ia,readdir:da,readlink:la,realpath:oa}},uN=(x)=>!x||x===CZ||x===ha?CZ:{...CZ,...x,promises:{...CZ.promises,...x.promises||{}}},hN=/^\\\\\?\\([a-z]:)\\?$/i,sa=(x)=>x.replace(/\//g,"\\").replace(hN,"$1\\"),na=/[\\\/]/,o4=0,gN=1,iN=2,g8=4,dN=6,lN=8,M7=10,oN=12,l4=15,jZ=~l4,Az=16,cN=32,mZ=64,N8=128,yX=256,hX=512,bN=mZ|N8|hX,aa=1023,Ez=(x)=>x.isFile()?lN:x.isDirectory()?g8:x.isSymbolicLink()?M7:x.isCharacterDevice()?iN:x.isBlockDevice()?dN:x.isSocket()?oN:x.isFIFO()?gN:o4,pN=new H7({max:4096}),OZ=(x)=>{let Z=pN.get(x);if(Z)return Z;let J=x.normalize("NFKD");return pN.set(x,J),J},yN=new H7({max:4096}),uX=(x)=>{let Z=yN.get(x);if(Z)return Z;let J=OZ(x.toLowerCase());return yN.set(x,J),J};class kz extends H7{constructor(){super({max:256})}}class sN extends H7{constructor(x=16384){super({maxSize:x,sizeCalculation:(Z)=>Z.length+1})}}var nN=Symbol("PathScurry setAsCwd");class p3{name;root;roots;parent;nocase;isCWD=!1;#x;#J;get dev(){return this.#J}#q;get mode(){return this.#q}#X;get nlink(){return this.#X}#$;get uid(){return this.#$}#w;get gid(){return this.#w}#D;get rdev(){return this.#D}#W;get blksize(){return this.#W}#Y;get ino(){return this.#Y}#G;get size(){return this.#G}#V;get blocks(){return this.#V}#K;get atimeMs(){return this.#K}#Q;get mtimeMs(){return this.#Q}#H;get ctimeMs(){return this.#H}#P;get birthtimeMs(){return this.#P}#N;get atime(){return this.#N}#U;get mtime(){return this.#U}#S;get ctime(){return this.#S}#B;get birthtime(){return this.#B}#j;#C;#M;#F;#_;#m;#Z;#E;#v;#O;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(x,Z=o4,J,Q,X,q,$){if(this.name=x,this.#j=X?uX(x):OZ(x),this.#Z=Z&aa,this.nocase=X,this.roots=Q,this.root=J||this,this.#E=q,this.#M=$.fullpath,this.#_=$.relative,this.#m=$.relativePosix,this.parent=$.parent,this.parent)this.#x=this.parent.#x;else this.#x=uN($.fs)}depth(){if(this.#C!==void 0)return this.#C;if(!this.parent)return this.#C=0;return this.#C=this.parent.depth()+1}childrenCache(){return this.#E}resolve(x){if(!x)return this;let Z=this.getRootString(x),Q=x.substring(Z.length).split(this.splitSep);return Z?this.getRoot(Z).#A(Q):this.#A(Q)}#A(x){let Z=this;for(let J of x)Z=Z.child(J);return Z}children(){let x=this.#E.get(this);if(x)return x;let Z=Object.assign([],{provisional:0});return this.#E.set(this,Z),this.#Z&=~Az,Z}child(x,Z){if(x===""||x===".")return this;if(x==="..")return this.parent||this;let J=this.children(),Q=this.nocase?uX(x):OZ(x);for(let Y of J)if(Y.#j===Q)return Y;let X=this.parent?this.sep:"",q=this.#M?this.#M+X+x:void 0,$=this.newChild(x,o4,{...Z,parent:this,fullpath:q});if(!this.canReaddir())$.#Z|=N8;return J.push($),$}relative(){if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let x=this.name,Z=this.parent;if(!Z)return this.#_=this.name;let J=Z.relative();return J+(!J||!Z.parent?"":this.sep)+x}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#m!==void 0)return this.#m;let x=this.name,Z=this.parent;if(!Z)return this.#m=this.fullpathPosix();let J=Z.relativePosix();return J+(!J||!Z.parent?"":"/")+x}fullpath(){if(this.#M!==void 0)return this.#M;let x=this.name,Z=this.parent;if(!Z)return this.#M=this.name;let Q=Z.fullpath()+(!Z.parent?"":this.sep)+x;return this.#M=Q}fullpathPosix(){if(this.#F!==void 0)return this.#F;if(this.sep==="/")return this.#F=this.fullpath();if(!this.parent){let Q=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(Q))return this.#F=`//?/${Q}`;else return this.#F=Q}let x=this.parent,Z=x.fullpathPosix(),J=Z+(!Z||!x.parent?"":"/")+this.name;return this.#F=J}isUnknown(){return(this.#Z&l4)===o4}isType(x){return this[`is${x}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Z&l4)===lN}isDirectory(){return(this.#Z&l4)===g8}isCharacterDevice(){return(this.#Z&l4)===iN}isBlockDevice(){return(this.#Z&l4)===dN}isFIFO(){return(this.#Z&l4)===gN}isSocket(){return(this.#Z&l4)===oN}isSymbolicLink(){return(this.#Z&M7)===M7}lstatCached(){return this.#Z&cN?this:void 0}readlinkCached(){return this.#v}realpathCached(){return this.#O}readdirCached(){let x=this.children();return x.slice(0,x.provisional)}canReadlink(){if(this.#v)return!0;if(!this.parent)return!1;let x=this.#Z&l4;return!(x!==o4&&x!==M7||this.#Z&yX||this.#Z&N8)}calledReaddir(){return!!(this.#Z&Az)}isENOENT(){return!!(this.#Z&N8)}isNamed(x){return!this.nocase?this.#j===OZ(x):this.#j===uX(x)}async readlink(){let x=this.#v;if(x)return x;if(!this.canReadlink())return;if(!this.parent)return;try{let Z=await this.#x.promises.readlink(this.fullpath()),J=(await this.parent.realpath())?.resolve(Z);if(J)return this.#v=J}catch(Z){this.#T(Z.code);return}}readlinkSync(){let x=this.#v;if(x)return x;if(!this.canReadlink())return;if(!this.parent)return;try{let Z=this.#x.readlinkSync(this.fullpath()),J=this.parent.realpathSync()?.resolve(Z);if(J)return this.#v=J}catch(Z){this.#T(Z.code);return}}#b(x){this.#Z|=Az;for(let Z=x.provisional;Z<x.length;Z++){let J=x[Z];if(J)J.#L()}}#L(){if(this.#Z&N8)return;this.#Z=(this.#Z|N8)&jZ,this.#i()}#i(){let x=this.children();x.provisional=0;for(let Z of x)Z.#L()}#c(){this.#Z|=hX,this.#f()}#f(){if(this.#Z&mZ)return;let x=this.#Z;if((x&l4)===g8)x&=jZ;this.#Z=x|mZ,this.#i()}#p(x=""){if(x==="ENOTDIR"||x==="EPERM")this.#f();else if(x==="ENOENT")this.#L();else this.children().provisional=0}#I(x=""){if(x==="ENOTDIR")this.parent.#f();else if(x==="ENOENT")this.#L()}#T(x=""){let Z=this.#Z;if(Z|=yX,x==="ENOENT")Z|=N8;if(x==="EINVAL"||x==="UNKNOWN")Z&=jZ;if(this.#Z=Z,x==="ENOTDIR"&&this.parent)this.parent.#f()}#y(x,Z){return this.#h(x,Z)||this.#u(x,Z)}#u(x,Z){let J=Ez(x),Q=this.newChild(x.name,J,{parent:this}),X=Q.#Z&l4;if(X!==g8&&X!==M7&&X!==o4)Q.#Z|=mZ;return Z.unshift(Q),Z.provisional++,Q}#h(x,Z){for(let J=Z.provisional;J<Z.length;J++){let Q=Z[J];if((this.nocase?uX(x.name):OZ(x.name))!==Q.#j)continue;return this.#z(x,Q,J,Z)}}#z(x,Z,J,Q){let X=Z.name;if(Z.#Z=Z.#Z&jZ|Ez(x),X!==x.name)Z.name=x.name;if(J!==Q.provisional){if(J===Q.length-1)Q.pop();else Q.splice(J,1);Q.unshift(Z)}return Q.provisional++,Z}async lstat(){if((this.#Z&N8)===0)try{return this.#g(await this.#x.promises.lstat(this.fullpath())),this}catch(x){this.#I(x.code)}}lstatSync(){if((this.#Z&N8)===0)try{return this.#g(this.#x.lstatSync(this.fullpath())),this}catch(x){this.#I(x.code)}}#g(x){let{atime:Z,atimeMs:J,birthtime:Q,birthtimeMs:X,blksize:q,blocks:$,ctime:Y,ctimeMs:z,dev:W,gid:G,ino:H,mode:U,mtime:M,mtimeMs:D,nlink:N,rdev:_,size:L,uid:O}=x;this.#N=Z,this.#K=J,this.#B=Q,this.#P=X,this.#W=q,this.#V=$,this.#S=Y,this.#H=z,this.#J=W,this.#w=G,this.#Y=H,this.#q=U,this.#U=M,this.#Q=D,this.#X=N,this.#D=_,this.#G=L,this.#$=O;let v=Ez(x);if(this.#Z=this.#Z&jZ|v|cN,v!==o4&&v!==g8&&v!==M7)this.#Z|=mZ}#k=[];#R=!1;#d(x){this.#R=!1;let Z=this.#k.slice();this.#k.length=0,Z.forEach((J)=>J(null,x))}readdirCB(x,Z=!1){if(!this.canReaddir()){if(Z)x(null,[]);else queueMicrotask(()=>x(null,[]));return}let J=this.children();if(this.calledReaddir()){let X=J.slice(0,J.provisional);if(Z)x(null,X);else queueMicrotask(()=>x(null,X));return}if(this.#k.push(x),this.#R)return;this.#R=!0;let Q=this.fullpath();this.#x.readdir(Q,{withFileTypes:!0},(X,q)=>{if(X)this.#p(X.code),J.provisional=0;else{for(let $ of q)this.#y($,J);this.#b(J)}this.#d(J.slice(0,J.provisional));return})}#l;async readdir(){if(!this.canReaddir())return[];let x=this.children();if(this.calledReaddir())return x.slice(0,x.provisional);let Z=this.fullpath();if(this.#l)await this.#l;else{let J=()=>{};this.#l=new Promise((Q)=>J=Q);try{for(let Q of await this.#x.promises.readdir(Z,{withFileTypes:!0}))this.#y(Q,x);this.#b(x)}catch(Q){this.#p(Q.code),x.provisional=0}this.#l=void 0,J()}return x.slice(0,x.provisional)}readdirSync(){if(!this.canReaddir())return[];let x=this.children();if(this.calledReaddir())return x.slice(0,x.provisional);let Z=this.fullpath();try{for(let J of this.#x.readdirSync(Z,{withFileTypes:!0}))this.#y(J,x);this.#b(x)}catch(J){this.#p(J.code),x.provisional=0}return x.slice(0,x.provisional)}canReaddir(){if(this.#Z&bN)return!1;let x=l4&this.#Z;if(!(x===o4||x===g8||x===M7))return!1;return!0}shouldWalk(x,Z){return(this.#Z&g8)===g8&&!(this.#Z&bN)&&!x.has(this)&&(!Z||Z(this))}async realpath(){if(this.#O)return this.#O;if((hX|yX|N8)&this.#Z)return;try{let x=await this.#x.promises.realpath(this.fullpath());return this.#O=this.resolve(x)}catch(x){this.#c()}}realpathSync(){if(this.#O)return this.#O;if((hX|yX|N8)&this.#Z)return;try{let x=this.#x.realpathSync(this.fullpath());return this.#O=this.resolve(x)}catch(x){this.#c()}}[nN](x){if(x===this)return;x.isCWD=!1,this.isCWD=!0;let Z=new Set([]),J=[],Q=this;while(Q&&Q.parent)Z.add(Q),Q.#_=J.join(this.sep),Q.#m=J.join("/"),Q=Q.parent,J.push("..");Q=x;while(Q&&Q.parent&&!Z.has(Q))Q.#_=void 0,Q.#m=void 0,Q=Q.parent}}class gX extends p3{sep="\\";splitSep=na;constructor(x,Z=o4,J,Q,X,q,$){super(x,Z,J,Q,X,q,$)}newChild(x,Z=o4,J={}){return new gX(x,Z,this.root,this.roots,this.nocase,this.childrenCache(),J)}getRootString(x){return fz.parse(x).root}getRoot(x){if(x=sa(x.toUpperCase()),x===this.root.name)return this.root;for(let[Z,J]of Object.entries(this.roots))if(this.sameRoot(x,Z))return this.roots[x]=J;return this.roots[x]=new SZ(x,this).root}sameRoot(x,Z=this.root.name){return x=x.toUpperCase().replace(/\//g,"\\").replace(hN,"$1\\"),x===Z}}class iX extends p3{splitSep="/";sep="/";constructor(x,Z=o4,J,Q,X,q,$){super(x,Z,J,Q,X,q,$)}getRootString(x){return x.startsWith("/")?"/":""}getRoot(x){return this.root}newChild(x,Z=o4,J={}){return new iX(x,Z,this.root,this.roots,this.nocase,this.childrenCache(),J)}}class cz{root;rootPath;roots;cwd;#x;#J;#q;nocase;#X;constructor(x=process.cwd(),Z,J,{nocase:Q,childrenCacheSize:X=16384,fs:q=CZ}={}){if(this.#X=uN(q),x instanceof URL||x.startsWith("file://"))x=ka(x);let $=Z.resolve(x);this.roots=Object.create(null),this.rootPath=this.parseRootPath($),this.#x=new kz,this.#J=new kz,this.#q=new sN(X);let Y=$.substring(this.rootPath.length).split(J);if(Y.length===1&&!Y[0])Y.pop();if(Q===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=Q,this.root=this.newRoot(this.#X),this.roots[this.rootPath]=this.root;let z=this.root,W=Y.length-1,G=Z.sep,H=this.rootPath,U=!1;for(let M of Y){let D=W--;z=z.child(M,{relative:new Array(D).fill("..").join(G),relativePosix:new Array(D).fill("..").join("/"),fullpath:H+=(U?"":G)+M}),U=!0}this.cwd=z}depth(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return x.depth()}childrenCache(){return this.#q}resolve(...x){let Z="";for(let X=x.length-1;X>=0;X--){let q=x[X];if(!q||q===".")continue;if(Z=Z?`${q}/${Z}`:q,this.isAbsolute(q))break}let J=this.#x.get(Z);if(J!==void 0)return J;let Q=this.cwd.resolve(Z).fullpath();return this.#x.set(Z,Q),Q}resolvePosix(...x){let Z="";for(let X=x.length-1;X>=0;X--){let q=x[X];if(!q||q===".")continue;if(Z=Z?`${q}/${Z}`:q,this.isAbsolute(q))break}let J=this.#J.get(Z);if(J!==void 0)return J;let Q=this.cwd.resolve(Z).fullpathPosix();return this.#J.set(Z,Q),Q}relative(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return x.relative()}relativePosix(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return x.relativePosix()}basename(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return x.name}dirname(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return(x.parent||x).fullpath()}async readdir(x=this.cwd,Z={withFileTypes:!0}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J}=Z;if(!x.canReaddir())return[];else{let Q=await x.readdir();return J?Q:Q.map((X)=>X.name)}}readdirSync(x=this.cwd,Z={withFileTypes:!0}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J=!0}=Z;if(!x.canReaddir())return[];else if(J)return x.readdirSync();else return x.readdirSync().map((Q)=>Q.name)}async lstat(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return x.lstat()}lstatSync(x=this.cwd){if(typeof x==="string")x=this.cwd.resolve(x);return x.lstatSync()}async readlink(x=this.cwd,{withFileTypes:Z}={withFileTypes:!1}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x.withFileTypes,x=this.cwd;let J=await x.readlink();return Z?J:J?.fullpath()}readlinkSync(x=this.cwd,{withFileTypes:Z}={withFileTypes:!1}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x.withFileTypes,x=this.cwd;let J=x.readlinkSync();return Z?J:J?.fullpath()}async realpath(x=this.cwd,{withFileTypes:Z}={withFileTypes:!1}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x.withFileTypes,x=this.cwd;let J=await x.realpath();return Z?J:J?.fullpath()}realpathSync(x=this.cwd,{withFileTypes:Z}={withFileTypes:!1}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x.withFileTypes,x=this.cwd;let J=x.realpathSync();return Z?J:J?.fullpath()}async walk(x=this.cwd,Z={}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J=!0,follow:Q=!1,filter:X,walkFilter:q}=Z,$=[];if(!X||X(x))$.push(J?x:x.fullpath());let Y=new Set,z=(G,H)=>{Y.add(G),G.readdirCB((U,M)=>{if(U)return H(U);let D=M.length;if(!D)return H();let N=()=>{if(--D===0)H()};for(let _ of M){if(!X||X(_))$.push(J?_:_.fullpath());if(Q&&_.isSymbolicLink())_.realpath().then((L)=>L?.isUnknown()?L.lstat():L).then((L)=>L?.shouldWalk(Y,q)?z(L,N):N());else if(_.shouldWalk(Y,q))z(_,N);else N()}},!0)},W=x;return new Promise((G,H)=>{z(W,(U)=>{if(U)return H(U);G($)})})}walkSync(x=this.cwd,Z={}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J=!0,follow:Q=!1,filter:X,walkFilter:q}=Z,$=[];if(!X||X(x))$.push(J?x:x.fullpath());let Y=new Set([x]);for(let z of Y){let W=z.readdirSync();for(let G of W){if(!X||X(G))$.push(J?G:G.fullpath());let H=G;if(G.isSymbolicLink()){if(!(Q&&(H=G.realpathSync())))continue;if(H.isUnknown())H.lstatSync()}if(H.shouldWalk(Y,q))Y.add(H)}}return $}[Symbol.asyncIterator](){return this.iterate()}iterate(x=this.cwd,Z={}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;return this.stream(x,Z)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(x=this.cwd,Z={}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J=!0,follow:Q=!1,filter:X,walkFilter:q}=Z;if(!X||X(x))yield J?x:x.fullpath();let $=new Set([x]);for(let Y of $){let z=Y.readdirSync();for(let W of z){if(!X||X(W))yield J?W:W.fullpath();let G=W;if(W.isSymbolicLink()){if(!(Q&&(G=W.realpathSync())))continue;if(G.isUnknown())G.lstatSync()}if(G.shouldWalk($,q))$.add(G)}}}stream(x=this.cwd,Z={}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J=!0,follow:Q=!1,filter:X,walkFilter:q}=Z,$=new B7({objectMode:!0});if(!X||X(x))$.write(J?x:x.fullpath());let Y=new Set,z=[x],W=0,G=()=>{let H=!1;while(!H){let U=z.shift();if(!U){if(W===0)$.end();return}W++,Y.add(U);let M=(N,_,L=!1)=>{if(N)return $.emit("error",N);if(Q&&!L){let O=[];for(let v of _)if(v.isSymbolicLink())O.push(v.realpath().then((y)=>y?.isUnknown()?y.lstat():y));if(O.length){Promise.all(O).then(()=>M(null,_,!0));return}}for(let O of _)if(O&&(!X||X(O))){if(!$.write(J?O:O.fullpath()))H=!0}W--;for(let O of _){let v=O.realpathCached()||O;if(v.shouldWalk(Y,q))z.push(v)}if(H&&!$.flowing)$.once("drain",G);else if(!D)G()},D=!0;U.readdirCB(M,!0),D=!1}};return G(),$}streamSync(x=this.cwd,Z={}){if(typeof x==="string")x=this.cwd.resolve(x);else if(!(x instanceof p3))Z=x,x=this.cwd;let{withFileTypes:J=!0,follow:Q=!1,filter:X,walkFilter:q}=Z,$=new B7({objectMode:!0}),Y=new Set;if(!X||X(x))$.write(J?x:x.fullpath());let z=[x],W=0,G=()=>{let H=!1;while(!H){let U=z.shift();if(!U){if(W===0)$.end();return}W++,Y.add(U);let M=U.readdirSync();for(let D of M)if(!X||X(D)){if(!$.write(J?D:D.fullpath()))H=!0}W--;for(let D of M){let N=D;if(D.isSymbolicLink()){if(!(Q&&(N=D.realpathSync())))continue;if(N.isUnknown())N.lstatSync()}if(N.shouldWalk(Y,q))z.push(N)}}if(H&&!$.flowing)$.once("drain",G)};return G(),$}chdir(x=this.cwd){let Z=this.cwd;this.cwd=typeof x==="string"?this.cwd.resolve(x):x,this.cwd[nN](Z)}}class SZ extends cz{sep="\\";constructor(x=process.cwd(),Z={}){let{nocase:J=!0}=Z;super(x,fz,"\\",{...Z,nocase:J});this.nocase=J;for(let Q=this.cwd;Q;Q=Q.parent)Q.nocase=this.nocase}parseRootPath(x){return fz.parse(x).root.toUpperCase()}newRoot(x){return new gX(this.rootPath,g8,void 0,this.roots,this.nocase,this.childrenCache(),{fs:x})}isAbsolute(x){return x.startsWith("/")||x.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(x)}}class RZ extends cz{sep="/";constructor(x=process.cwd(),Z={}){let{nocase:J=!1}=Z;super(x,fa,"/",{...Z,nocase:J});this.nocase=J}parseRootPath(x){return"/"}newRoot(x){return new iX(this.rootPath,g8,void 0,this.roots,this.nocase,this.childrenCache(),{fs:x})}isAbsolute(x){return x.startsWith("/")}}class dX extends RZ{constructor(x=process.cwd(),Z={}){let{nocase:J=!0}=Z;super(x,{...Z,nocase:J})}}var nT0=process.platform==="win32"?gX:iX,aN=process.platform==="win32"?SZ:process.platform==="darwin"?dX:RZ;var ra=(x)=>x.length>=1,ta=(x)=>x.length>=1;class T9{#x;#J;#q;length;#X;#$;#w;#D;#W;#Y;#G=!0;constructor(x,Z,J,Q){if(!ra(x))throw new TypeError("empty pattern list");if(!ta(Z))throw new TypeError("empty glob list");if(Z.length!==x.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=x.length,J<0||J>=this.length)throw new TypeError("index out of range");if(this.#x=x,this.#J=Z,this.#q=J,this.#X=Q,this.#q===0){if(this.isUNC()){let[X,q,$,Y,...z]=this.#x,[W,G,H,U,...M]=this.#J;if(z[0]==="")z.shift(),M.shift();let D=[X,q,$,Y,""].join("/"),N=[W,G,H,U,""].join("/");this.#x=[D,...z],this.#J=[N,...M],this.length=this.#x.length}else if(this.isDrive()||this.isAbsolute()){let[X,...q]=this.#x,[$,...Y]=this.#J;if(q[0]==="")q.shift(),Y.shift();let z=X+"/",W=$+"/";this.#x=[z,...q],this.#J=[W,...Y],this.length=this.#x.length}}}pattern(){return this.#x[this.#q]}isString(){return typeof this.#x[this.#q]==="string"}isGlobstar(){return this.#x[this.#q]===W3}isRegExp(){return this.#x[this.#q]instanceof RegExp}globString(){return this.#w=this.#w||(this.#q===0?this.isAbsolute()?this.#J[0]+this.#J.slice(1).join("/"):this.#J.join("/"):this.#J.slice(this.#q).join("/"))}hasMore(){return this.length>this.#q+1}rest(){if(this.#$!==void 0)return this.#$;if(!this.hasMore())return this.#$=null;return this.#$=new T9(this.#x,this.#J,this.#q+1,this.#X),this.#$.#Y=this.#Y,this.#$.#W=this.#W,this.#$.#D=this.#D,this.#$}isUNC(){let x=this.#x;return this.#W!==void 0?this.#W:this.#W=this.#X==="win32"&&this.#q===0&&x[0]===""&&x[1]===""&&typeof x[2]==="string"&&!!x[2]&&typeof x[3]==="string"&&!!x[3]}isDrive(){let x=this.#x;return this.#D!==void 0?this.#D:this.#D=this.#X==="win32"&&this.#q===0&&this.length>1&&typeof x[0]==="string"&&/^[a-z]:$/i.test(x[0])}isAbsolute(){let x=this.#x;return this.#Y!==void 0?this.#Y:this.#Y=x[0]===""&&x.length>1||this.isDrive()||this.isUNC()}root(){let x=this.#x[0];return typeof x==="string"&&this.isAbsolute()&&this.#q===0?x:""}checkFollowGlobstar(){return!(this.#q===0||!this.isGlobstar()||!this.#G)}markFollowGlobstar(){if(this.#q===0||!this.isGlobstar()||!this.#G)return!1;return this.#G=!1,!0}}var ea=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class IZ{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(x,{nobrace:Z,nocase:J,noext:Q,noglobstar:X,platform:q=ea}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=q,this.mmopts={dot:!0,nobrace:Z,nocase:J,noext:Q,noglobstar:X,optimizationLevel:2,platform:q,nocomment:!0,nonegate:!0};for(let $ of x)this.add($)}add(x){let Z=new d4(x,this.mmopts);for(let J=0;J<Z.set.length;J++){let Q=Z.set[J],X=Z.globParts[J];if(!Q||!X)throw new Error("invalid pattern object");while(Q[0]==="."&&X[0]===".")Q.shift(),X.shift();let q=new T9(Q,X,0,this.platform),$=new d4(q.globString(),this.mmopts),Y=X[X.length-1]==="**",z=q.isAbsolute();if(z)this.absolute.push($);else this.relative.push($);if(Y)if(z)this.absoluteChildren.push($);else this.relativeChildren.push($)}}ignored(x){let Z=x.fullpath(),J=`${Z}/`,Q=x.relative()||".",X=`${Q}/`;for(let q of this.relative)if(q.match(Q)||q.match(X))return!0;for(let q of this.absolute)if(q.match(Z)||q.match(J))return!0;return!1}childrenIgnored(x){let Z=x.fullpath()+"/",J=(x.relative()||".")+"/";for(let Q of this.relativeChildren)if(Q.match(J))return!0;for(let Q of this.absoluteChildren)if(Q.match(Z))return!0;return!1}}class bz{store;constructor(x=new Map){this.store=x}copy(){return new bz(new Map(this.store))}hasWalked(x,Z){return this.store.get(x.fullpath())?.has(Z.globString())}storeWalked(x,Z){let J=x.fullpath(),Q=this.store.get(J);if(Q)Q.add(Z.globString());else this.store.set(J,new Set([Z.globString()]))}}class rN{store=new Map;add(x,Z,J){let Q=(Z?2:0)|(J?1:0),X=this.store.get(x);this.store.set(x,X===void 0?Q:Q&X)}entries(){return[...this.store.entries()].map(([x,Z])=>[x,!!(Z&2),!!(Z&1)])}}class tN{store=new Map;add(x,Z){if(!x.canReaddir())return;let J=this.store.get(x);if(J){if(!J.find((Q)=>Q.globString()===Z.globString()))J.push(Z)}else this.store.set(x,[Z])}get(x){let Z=this.store.get(x);if(!Z)throw new Error("attempting to walk unknown path");return Z}entries(){return this.keys().map((x)=>[x,this.store.get(x)])}keys(){return[...this.store.keys()].filter((x)=>x.canReaddir())}}class TZ{hasWalkedCache;matches=new rN;subwalks=new tN;patterns;follow;dot;opts;constructor(x,Z){this.opts=x,this.follow=!!x.follow,this.dot=!!x.dot,this.hasWalkedCache=Z?Z.copy():new bz}processPatterns(x,Z){this.patterns=Z;let J=Z.map((Q)=>[x,Q]);for(let[Q,X]of J){this.hasWalkedCache.storeWalked(Q,X);let q=X.root(),$=X.isAbsolute()&&this.opts.absolute!==!1;if(q){Q=Q.resolve(q==="/"&&this.opts.root!==void 0?this.opts.root:q);let G=X.rest();if(!G){this.matches.add(Q,!0,!1);continue}else X=G}if(Q.isENOENT())continue;let Y,z,W=!1;while(typeof(Y=X.pattern())==="string"&&(z=X.rest()))Q=Q.resolve(Y),X=z,W=!0;if(Y=X.pattern(),z=X.rest(),W){if(this.hasWalkedCache.hasWalked(Q,X))continue;this.hasWalkedCache.storeWalked(Q,X)}if(typeof Y==="string"){let G=Y===".."||Y===""||Y===".";this.matches.add(Q.resolve(Y),$,G);continue}else if(Y===W3){if(!Q.isSymbolicLink()||this.follow||X.checkFollowGlobstar())this.subwalks.add(Q,X);let G=z?.pattern(),H=z?.rest();if(!z||(G===""||G===".")&&!H)this.matches.add(Q,$,G===""||G===".");else if(G===".."){let U=Q.parent||Q;if(!H)this.matches.add(U,$,!0);else if(!this.hasWalkedCache.hasWalked(U,H))this.subwalks.add(U,H)}}else if(Y instanceof RegExp)this.subwalks.add(Q,X)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new TZ(this.opts,this.hasWalkedCache)}filterEntries(x,Z){let J=this.subwalks.get(x),Q=this.child();for(let X of Z)for(let q of J){let $=q.isAbsolute(),Y=q.pattern(),z=q.rest();if(Y===W3)Q.testGlobstar(X,q,z,$);else if(Y instanceof RegExp)Q.testRegExp(X,Y,z,$);else Q.testString(X,Y,z,$)}return Q}testGlobstar(x,Z,J,Q){if(this.dot||!x.name.startsWith(".")){if(!Z.hasMore())this.matches.add(x,Q,!1);if(x.canReaddir()){if(this.follow||!x.isSymbolicLink())this.subwalks.add(x,Z);else if(x.isSymbolicLink()){if(J&&Z.checkFollowGlobstar())this.subwalks.add(x,J);else if(Z.markFollowGlobstar())this.subwalks.add(x,Z)}}}if(J){let X=J.pattern();if(typeof X==="string"&&X!==".."&&X!==""&&X!==".")this.testString(x,X,J.rest(),Q);else if(X===".."){let q=x.parent||x;this.subwalks.add(q,J)}else if(X instanceof RegExp)this.testRegExp(x,X,J.rest(),Q)}}testRegExp(x,Z,J,Q){if(!Z.test(x.name))return;if(!J)this.matches.add(x,Q,!1);else this.subwalks.add(x,J)}testString(x,Z,J,Q){if(!x.isNamed(Z))return;if(!J)this.matches.add(x,Q,!1);else this.subwalks.add(x,J)}}var xr=(x,Z)=>typeof x==="string"?new IZ([x],Z):Array.isArray(x)?new IZ(x,Z):x;class pz{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#x=[];#J;#q;signal;maxDepth;includeChildMatches;constructor(x,Z,J){if(this.patterns=x,this.path=Z,this.opts=J,this.#q=!J.posix&&J.platform==="win32"?"\\":"/",this.includeChildMatches=J.includeChildMatches!==!1,J.ignore||!this.includeChildMatches){if(this.#J=xr(J.ignore??[],J),!this.includeChildMatches&&typeof this.#J.add!=="function")throw new Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=J.maxDepth||1/0,J.signal)this.signal=J.signal,this.signal.addEventListener("abort",()=>{this.#x.length=0})}#X(x){return this.seen.has(x)||!!this.#J?.ignored?.(x)}#$(x){return!!this.#J?.childrenIgnored?.(x)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let x=void 0;while(!this.paused&&(x=this.#x.shift()))x()}onResume(x){if(this.signal?.aborted)return;if(!this.paused)x();else this.#x.push(x)}async matchCheck(x,Z){if(Z&&this.opts.nodir)return;let J;if(this.opts.realpath){if(J=x.realpathCached()||await x.realpath(),!J)return;x=J}let X=x.isUnknown()||this.opts.stat?await x.lstat():x;if(this.opts.follow&&this.opts.nodir&&X?.isSymbolicLink()){let q=await X.realpath();if(q&&(q.isUnknown()||this.opts.stat))await q.lstat()}return this.matchCheckTest(X,Z)}matchCheckTest(x,Z){return x&&(this.maxDepth===1/0||x.depth()<=this.maxDepth)&&(!Z||x.canReaddir())&&(!this.opts.nodir||!x.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!x.isSymbolicLink()||!x.realpathCached()?.isDirectory())&&!this.#X(x)?x:void 0}matchCheckSync(x,Z){if(Z&&this.opts.nodir)return;let J;if(this.opts.realpath){if(J=x.realpathCached()||x.realpathSync(),!J)return;x=J}let X=x.isUnknown()||this.opts.stat?x.lstatSync():x;if(this.opts.follow&&this.opts.nodir&&X?.isSymbolicLink()){let q=X.realpathSync();if(q&&(q?.isUnknown()||this.opts.stat))q.lstatSync()}return this.matchCheckTest(X,Z)}matchFinish(x,Z){if(this.#X(x))return;if(!this.includeChildMatches&&this.#J?.add){let X=`${x.relativePosix()}/**`;this.#J.add(X)}let J=this.opts.absolute===void 0?Z:this.opts.absolute;this.seen.add(x);let Q=this.opts.mark&&x.isDirectory()?this.#q:"";if(this.opts.withFileTypes)this.matchEmit(x);else if(J){let X=this.opts.posix?x.fullpathPosix():x.fullpath();this.matchEmit(X+Q)}else{let X=this.opts.posix?x.relativePosix():x.relative(),q=this.opts.dotRelative&&!X.startsWith(".."+this.#q)?"."+this.#q:"";this.matchEmit(!X?"."+Q:q+X+Q)}}async match(x,Z,J){let Q=await this.matchCheck(x,J);if(Q)this.matchFinish(Q,Z)}matchSync(x,Z,J){let Q=this.matchCheckSync(x,J);if(Q)this.matchFinish(Q,Z)}walkCB(x,Z,J){if(this.signal?.aborted)J();this.walkCB2(x,Z,new TZ(this.opts),J)}walkCB2(x,Z,J,Q){if(this.#$(x))return Q();if(this.signal?.aborted)Q();if(this.paused){this.onResume(()=>this.walkCB2(x,Z,J,Q));return}J.processPatterns(x,Z);let X=1,q=()=>{if(--X===0)Q()};for(let[$,Y,z]of J.matches.entries()){if(this.#X($))continue;X++,this.match($,Y,z).then(()=>q())}for(let $ of J.subwalkTargets()){if(this.maxDepth!==1/0&&$.depth()>=this.maxDepth)continue;X++;let Y=$.readdirCached();if($.calledReaddir())this.walkCB3($,Y,J,q);else $.readdirCB((z,W)=>this.walkCB3($,W,J,q),!0)}q()}walkCB3(x,Z,J,Q){J=J.filterEntries(x,Z);let X=1,q=()=>{if(--X===0)Q()};for(let[$,Y,z]of J.matches.entries()){if(this.#X($))continue;X++,this.match($,Y,z).then(()=>q())}for(let[$,Y]of J.subwalks.entries())X++,this.walkCB2($,Y,J.child(),q);q()}walkCBSync(x,Z,J){if(this.signal?.aborted)J();this.walkCB2Sync(x,Z,new TZ(this.opts),J)}walkCB2Sync(x,Z,J,Q){if(this.#$(x))return Q();if(this.signal?.aborted)Q();if(this.paused){this.onResume(()=>this.walkCB2Sync(x,Z,J,Q));return}J.processPatterns(x,Z);let X=1,q=()=>{if(--X===0)Q()};for(let[$,Y,z]of J.matches.entries()){if(this.#X($))continue;this.matchSync($,Y,z)}for(let $ of J.subwalkTargets()){if(this.maxDepth!==1/0&&$.depth()>=this.maxDepth)continue;X++;let Y=$.readdirSync();this.walkCB3Sync($,Y,J,q)}q()}walkCB3Sync(x,Z,J,Q){J=J.filterEntries(x,Z);let X=1,q=()=>{if(--X===0)Q()};for(let[$,Y,z]of J.matches.entries()){if(this.#X($))continue;this.matchSync($,Y,z)}for(let[$,Y]of J.subwalks.entries())X++,this.walkCB2Sync($,Y,J.child(),q);q()}}class lX extends pz{matches=new Set;constructor(x,Z,J){super(x,Z,J)}matchEmit(x){this.matches.add(x)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((x,Z)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)Z(this.signal.reason);else x(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}class oX extends pz{results;constructor(x,Z,J){super(x,Z,J);this.results=new B7({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(x){if(this.results.write(x),!this.results.flowing)this.pause()}stream(){let x=this.path;if(x.isUnknown())x.lstat().then(()=>{this.walkCB(x,this.patterns,()=>this.results.end())});else this.walkCB(x,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}var Jr=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class i8{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(x,Z){if(!Z)throw new TypeError("glob options required");if(this.withFileTypes=!!Z.withFileTypes,this.signal=Z.signal,this.follow=!!Z.follow,this.dot=!!Z.dot,this.dotRelative=!!Z.dotRelative,this.nodir=!!Z.nodir,this.mark=!!Z.mark,!Z.cwd)this.cwd="";else if(Z.cwd instanceof URL||Z.cwd.startsWith("file://"))Z.cwd=Zr(Z.cwd);if(this.cwd=Z.cwd||"",this.root=Z.root,this.magicalBraces=!!Z.magicalBraces,this.nobrace=!!Z.nobrace,this.noext=!!Z.noext,this.realpath=!!Z.realpath,this.absolute=Z.absolute,this.includeChildMatches=Z.includeChildMatches!==!1,this.noglobstar=!!Z.noglobstar,this.matchBase=!!Z.matchBase,this.maxDepth=typeof Z.maxDepth==="number"?Z.maxDepth:1/0,this.stat=!!Z.stat,this.ignore=Z.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof x==="string")x=[x];if(this.windowsPathsNoEscape=!!Z.windowsPathsNoEscape||Z.allowWindowsEscape===!1,this.windowsPathsNoEscape)x=x.map((Y)=>Y.replace(/\\/g,"/"));if(this.matchBase){if(Z.noglobstar)throw new TypeError("base matching requires globstar");x=x.map((Y)=>Y.includes("/")?Y:`./**/${Y}`)}if(this.pattern=x,this.platform=Z.platform||Jr,this.opts={...Z,platform:this.platform},Z.scurry){if(this.scurry=Z.scurry,Z.nocase!==void 0&&Z.nocase!==Z.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let Y=Z.platform==="win32"?SZ:Z.platform==="darwin"?dX:Z.platform?RZ:aN;this.scurry=new Y(this.cwd,{nocase:Z.nocase,fs:Z.fs})}this.nocase=this.scurry.nocase;let J=this.platform==="darwin"||this.platform==="win32",Q={...Z,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:J,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},X=this.pattern.map((Y)=>new d4(Y,Q)),[q,$]=X.reduce((Y,z)=>{return Y[0].push(...z.set),Y[1].push(...z.globParts),Y},[[],[]]);this.patterns=q.map((Y,z)=>{let W=$[z];if(!W)throw new Error("invalid pattern object");return new T9(Y,W,0,this.platform)})}async walk(){return[...await new lX(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new lX(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new oX(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new oX(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}var yz=(x,Z={})=>{if(!Array.isArray(x))x=[x];for(let J of x)if(new d4(J,Z).hasMagic())return!0;return!1};function nX(x,Z={}){return new i8(x,Z).streamSync()}function xw(x,Z={}){return new i8(x,Z).stream()}function Zw(x,Z={}){return new i8(x,Z).walkSync()}async function eN(x,Z={}){return new i8(x,Z).walk()}function aX(x,Z={}){return new i8(x,Z).iterateSync()}function Jw(x,Z={}){return new i8(x,Z).iterate()}var Qr=nX,Xr=Object.assign(xw,{sync:nX}),qr=aX,$r=Object.assign(Jw,{sync:aX}),Yr=Object.assign(Zw,{stream:nX,iterate:aX}),sX=Object.assign(eN,{glob:eN,globSync:Zw,sync:Yr,globStream:xw,stream:Xr,globStreamSync:nX,streamSync:Qr,globIterate:Jw,iterate:$r,globIterateSync:aX,iterateSync:qr,Glob:i8,hasMagic:yz,escape:O9,unescape:D8});sX.glob=sX;var bj=G7(zW(),1);import Y40 from"fs";import K40 from"path";function kZ(x,Z){return function J(){return x.apply(Z,arguments)}}var{toString:at}=Object.prototype,{getPrototypeOf:VW}=Object,{iterator:Kq,toStringTag:Y_}=Symbol,zq=((x)=>(Z)=>{let J=at.call(Z);return x[J]||(x[J]=J.slice(8,-1).toLowerCase())})(Object.create(null)),P8=(x)=>{return x=x.toLowerCase(),(Z)=>zq(Z)===x},Wq=(x)=>(Z)=>typeof Z===x,{isArray:c9}=Array,k9=Wq("undefined");function cZ(x){return x!==null&&!k9(x)&&x.constructor!==null&&!k9(x.constructor)&&r3(x.constructor.isBuffer)&&x.constructor.isBuffer(x)}var K_=P8("ArrayBuffer");function rt(x){let Z;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)Z=ArrayBuffer.isView(x);else Z=x&&x.buffer&&K_(x.buffer);return Z}var tt=Wq("string"),r3=Wq("function"),z_=Wq("number"),bZ=(x)=>x!==null&&typeof x==="object",et=(x)=>x===!0||x===!1,Yq=(x)=>{if(zq(x)!=="object")return!1;let Z=VW(x);return(Z===null||Z===Object.prototype||Object.getPrototypeOf(Z)===null)&&!(Y_ in x)&&!(Kq in x)},xe=(x)=>{if(!bZ(x)||cZ(x))return!1;try{return Object.keys(x).length===0&&Object.getPrototypeOf(x)===Object.prototype}catch(Z){return!1}},Ze=P8("Date"),Je=P8("File"),Qe=P8("Blob"),Xe=P8("FileList"),qe=(x)=>bZ(x)&&r3(x.pipe),$e=(x)=>{let Z;return x&&(typeof FormData==="function"&&x instanceof FormData||r3(x.append)&&((Z=zq(x))==="formdata"||Z==="object"&&r3(x.toString)&&x.toString()==="[object FormData]"))},Ye=P8("URLSearchParams"),[Ke,ze,We,Ve]=["ReadableStream","Request","Response","Headers"].map(P8),Ge=(x)=>x.trim?x.trim():x.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pZ(x,Z,{allOwnKeys:J=!1}={}){if(x===null||typeof x==="undefined")return;let Q,X;if(typeof x!=="object")x=[x];if(c9(x))for(Q=0,X=x.length;Q<X;Q++)Z.call(null,x[Q],Q,x);else{if(cZ(x))return;let q=J?Object.getOwnPropertyNames(x):Object.keys(x),$=q.length,Y;for(Q=0;Q<$;Q++)Y=q[Q],Z.call(null,x[Y],Y,x)}}function W_(x,Z){if(cZ(x))return null;Z=Z.toLowerCase();let J=Object.keys(x),Q=J.length,X;while(Q-- >0)if(X=J[Q],Z===X.toLowerCase())return X;return null}var F7=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),V_=(x)=>!k9(x)&&x!==F7;function WW(){let{caseless:x,skipUndefined:Z}=V_(this)&&this||{},J={},Q=(X,q)=>{if(q==="__proto__"||q==="constructor"||q==="prototype")return;let $=x&&W_(J,q)||q;if(Yq(J[$])&&Yq(X))J[$]=WW(J[$],X);else if(Yq(X))J[$]=WW({},X);else if(c9(X))J[$]=X.slice();else if(!Z||!k9(X))J[$]=X};for(let X=0,q=arguments.length;X<q;X++)arguments[X]&&pZ(arguments[X],Q);return J}var He=(x,Z,J,{allOwnKeys:Q}={})=>{return pZ(Z,(X,q)=>{if(J&&r3(X))Object.defineProperty(x,q,{value:kZ(X,J),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(x,q,{value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),x},Ue=(x)=>{if(x.charCodeAt(0)===65279)x=x.slice(1);return x},Be=(x,Z,J,Q)=>{x.prototype=Object.create(Z.prototype,Q),Object.defineProperty(x.prototype,"constructor",{value:x,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(x,"super",{value:Z.prototype}),J&&Object.assign(x.prototype,J)},Me=(x,Z,J,Q)=>{let X,q,$,Y={};if(Z=Z||{},x==null)return Z;do{X=Object.getOwnPropertyNames(x),q=X.length;while(q-- >0)if($=X[q],(!Q||Q($,x,Z))&&!Y[$])Z[$]=x[$],Y[$]=!0;x=J!==!1&&VW(x)}while(x&&(!J||J(x,Z))&&x!==Object.prototype);return Z},De=(x,Z,J)=>{if(x=String(x),J===void 0||J>x.length)J=x.length;J-=Z.length;let Q=x.indexOf(Z,J);return Q!==-1&&Q===J},Fe=(x)=>{if(!x)return null;if(c9(x))return x;let Z=x.length;if(!z_(Z))return null;let J=new Array(Z);while(Z-- >0)J[Z]=x[Z];return J},Ne=((x)=>{return(Z)=>{return x&&Z instanceof x}})(typeof Uint8Array!=="undefined"&&VW(Uint8Array)),we=(x,Z)=>{let Q=(x&&x[Kq]).call(x),X;while((X=Q.next())&&!X.done){let q=X.value;Z.call(x,q[0],q[1])}},Pe=(x,Z)=>{let J,Q=[];while((J=x.exec(Z))!==null)Q.push(J);return Q},_e=P8("HTMLFormElement"),Le=(x)=>{return x.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function Z(J,Q,X){return Q.toUpperCase()+X})},$_=(({hasOwnProperty:x})=>(Z,J)=>x.call(Z,J))(Object.prototype),je=P8("RegExp"),G_=(x,Z)=>{let J=Object.getOwnPropertyDescriptors(x),Q={};pZ(J,(X,q)=>{let $;if(($=Z(X,q,x))!==!1)Q[q]=$||X}),Object.defineProperties(x,Q)},Ce=(x)=>{G_(x,(Z,J)=>{if(r3(x)&&["arguments","caller","callee"].indexOf(J)!==-1)return!1;let Q=x[J];if(!r3(Q))return;if(Z.enumerable=!1,"writable"in Z){Z.writable=!1;return}if(!Z.set)Z.set=()=>{throw Error("Can not rewrite read-only method '"+J+"'")}})},me=(x,Z)=>{let J={},Q=(X)=>{X.forEach((q)=>{J[q]=!0})};return c9(x)?Q(x):Q(String(x).split(Z)),J},Oe=()=>{},Se=(x,Z)=>{return x!=null&&Number.isFinite(x=+x)?x:Z};function Re(x){return!!(x&&r3(x.append)&&x[Y_]==="FormData"&&x[Kq])}var Ie=(x)=>{let Z=new Array(10),J=(Q,X)=>{if(bZ(Q)){if(Z.indexOf(Q)>=0)return;if(cZ(Q))return Q;if(!("toJSON"in Q)){Z[X]=Q;let q=c9(Q)?[]:{};return pZ(Q,($,Y)=>{let z=J($,X+1);!k9(z)&&(q[Y]=z)}),Z[X]=void 0,q}}return Q};return J(x,0)},Te=P8("AsyncFunction"),ve=(x)=>x&&(bZ(x)||r3(x))&&r3(x.then)&&r3(x.catch),H_=((x,Z)=>{if(x)return setImmediate;return Z?((J,Q)=>{return F7.addEventListener("message",({source:X,data:q})=>{if(X===F7&&q===J)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),F7.postMessage(J,"*")}})(`axios@${Math.random()}`,[]):(J)=>setTimeout(J)})(typeof setImmediate==="function",r3(F7.postMessage)),Ae=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(F7):typeof process!=="undefined"&&process.nextTick||H_,Ee=(x)=>x!=null&&r3(x[Kq]),p={isArray:c9,isArrayBuffer:K_,isBuffer:cZ,isFormData:$e,isArrayBufferView:rt,isString:tt,isNumber:z_,isBoolean:et,isObject:bZ,isPlainObject:Yq,isEmptyObject:xe,isReadableStream:Ke,isRequest:ze,isResponse:We,isHeaders:Ve,isUndefined:k9,isDate:Ze,isFile:Je,isBlob:Qe,isRegExp:je,isFunction:r3,isStream:qe,isURLSearchParams:Ye,isTypedArray:Ne,isFileList:Xe,forEach:pZ,merge:WW,extend:He,trim:Ge,stripBOM:Ue,inherits:Be,toFlatObject:Me,kindOf:zq,kindOfTest:P8,endsWith:De,toArray:Fe,forEachEntry:we,matchAll:Pe,isHTMLForm:_e,hasOwnProperty:$_,hasOwnProp:$_,reduceDescriptors:G_,freezeMethods:Ce,toObjectSet:me,toCamelCase:Le,noop:Oe,toFiniteNumber:Se,findKey:W_,global:F7,isContextDefined:V_,isSpecCompliantForm:Re,toJSONObject:Ie,isAsyncFn:Te,isThenable:ve,setImmediate:H_,asap:Ae,isIterable:Ee};class y3 extends Error{static from(x,Z,J,Q,X,q){let $=new y3(x.message,Z||x.code,J,Q,X);return $.cause=x,$.name=x.name,q&&Object.assign($,q),$}constructor(x,Z,J,Q,X){super(x);if(this.name="AxiosError",this.isAxiosError=!0,Z&&(this.code=Z),J&&(this.config=J),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}}y3.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y3.ERR_BAD_OPTION="ERR_BAD_OPTION";y3.ECONNABORTED="ECONNABORTED";y3.ETIMEDOUT="ETIMEDOUT";y3.ERR_NETWORK="ERR_NETWORK";y3.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y3.ERR_DEPRECATED="ERR_DEPRECATED";y3.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y3.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y3.ERR_CANCELED="ERR_CANCELED";y3.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y3.ERR_INVALID_URL="ERR_INVALID_URL";var O0=y3;var U_=G7(zW(),1),Vq=U_.default;function GW(x){return p.isPlainObject(x)||p.isArray(x)}function M_(x){return p.endsWith(x,"[]")?x.slice(0,-2):x}function B_(x,Z,J){if(!x)return Z;return x.concat(Z).map(function Q(X,q){return X=M_(X),!J&&q?"["+X+"]":X}).join(J?".":"")}function fe(x){return p.isArray(x)&&!x.some(GW)}var ke=p.toFlatObject(p,{},null,function x(Z){return/^is[A-Z]/.test(Z)});function ce(x,Z,J){if(!p.isObject(x))throw new TypeError("target must be an object");Z=Z||new(Vq||FormData),J=p.toFlatObject(J,{metaTokens:!0,dots:!1,indexes:!1},!1,function D(N,_){return!p.isUndefined(_[N])});let Q=J.metaTokens,X=J.visitor||G,q=J.dots,$=J.indexes,z=(J.Blob||typeof Blob!=="undefined"&&Blob)&&p.isSpecCompliantForm(Z);if(!p.isFunction(X))throw new TypeError("visitor must be a function");function W(D){if(D===null)return"";if(p.isDate(D))return D.toISOString();if(p.isBoolean(D))return D.toString();if(!z&&p.isBlob(D))throw new O0("Blob is not supported. Use a Buffer instead.");if(p.isArrayBuffer(D)||p.isTypedArray(D))return z&&typeof Blob==="function"?new Blob([D]):Buffer.from(D);return D}function G(D,N,_){let L=D;if(D&&!_&&typeof D==="object"){if(p.endsWith(N,"{}"))N=Q?N:N.slice(0,-2),D=JSON.stringify(D);else if(p.isArray(D)&&fe(D)||(p.isFileList(D)||p.endsWith(N,"[]"))&&(L=p.toArray(D)))return N=M_(N),L.forEach(function O(v,y){!(p.isUndefined(v)||v===null)&&Z.append($===!0?B_([N],y,q):$===null?N:N+"[]",W(v))}),!1}if(GW(D))return!0;return Z.append(B_(_,N,q),W(D)),!1}let H=[],U=Object.assign(ke,{defaultVisitor:G,convertValue:W,isVisitable:GW});function M(D,N){if(p.isUndefined(D))return;if(H.indexOf(D)!==-1)throw Error("Circular reference detected in "+N.join("."));H.push(D),p.forEach(D,function _(L,O){if((!(p.isUndefined(L)||L===null)&&X.call(Z,L,p.isString(O)?O.trim():O,N,U))===!0)M(L,N?N.concat(O):[O])}),H.pop()}if(!p.isObject(x))throw new TypeError("data must be an object");return M(x),Z}var U5=ce;function D_(x){let Z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(x).replace(/[!'()~]|%20|%00/g,function J(Q){return Z[Q]})}function F_(x,Z){this._pairs=[],x&&U5(x,this,Z)}var N_=F_.prototype;N_.append=function x(Z,J){this._pairs.push([Z,J])};N_.toString=function x(Z){let J=Z?function(Q){return Z.call(this,Q,D_)}:D_;return this._pairs.map(function Q(X){return J(X[0])+"="+J(X[1])},"").join("&")};var w_=F_;function be(x){return encodeURIComponent(x).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N7(x,Z,J){if(!Z)return x;let Q=J&&J.encode||be,X=p.isFunction(J)?{serialize:J}:J,q=X&&X.serialize,$;if(q)$=q(Z,X);else $=p.isURLSearchParams(Z)?Z.toString():new w_(Z,X).toString(Q);if($){let Y=x.indexOf("#");if(Y!==-1)x=x.slice(0,Y);x+=(x.indexOf("?")===-1?"?":"&")+$}return x}class P_{constructor(){this.handlers=[]}use(x,Z,J){return this.handlers.push({fulfilled:x,rejected:Z,synchronous:J?J.synchronous:!1,runWhen:J?J.runWhen:null}),this.handlers.length-1}eject(x){if(this.handlers[x])this.handlers[x]=null}clear(){if(this.handlers)this.handlers=[]}forEach(x){p.forEach(this.handlers,function Z(J){if(J!==null)x(J)})}}var HW=P_;var B5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};import ye from"crypto";import pe from"url";var __=pe.URLSearchParams;var UW="abcdefghijklmnopqrstuvwxyz",L_="0123456789",j_={DIGIT:L_,ALPHA:UW,ALPHA_DIGIT:UW+UW.toUpperCase()+L_},ue=(x=16,Z=j_.ALPHA_DIGIT)=>{let J="",{length:Q}=Z,X=new Uint32Array(x);ye.randomFillSync(X);for(let q=0;q<x;q++)J+=Z[X[q]%Q];return J},C_={isNode:!0,classes:{URLSearchParams:__,FormData:Vq,Blob:typeof Blob!=="undefined"&&Blob||null},ALPHABET:j_,generateString:ue,protocols:["http","https","file","data"]};var DW={};hF(DW,{origin:()=>ie,navigator:()=>BW,hasStandardBrowserWebWorkerEnv:()=>ge,hasStandardBrowserEnv:()=>he,hasBrowserEnv:()=>MW});var MW=typeof window!=="undefined"&&typeof document!=="undefined",BW=typeof navigator==="object"&&navigator||void 0,he=MW&&(!BW||["ReactNative","NativeScript","NS"].indexOf(BW.product)<0),ge=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),ie=MW&&window.location.href||"http://localhost";var T1={...DW,...C_};function FW(x,Z){return U5(x,new T1.classes.URLSearchParams,{visitor:function(J,Q,X,q){if(T1.isNode&&p.isBuffer(J))return this.append(Q,J.toString("base64")),!1;return q.defaultVisitor.apply(this,arguments)},...Z})}function de(x){return p.matchAll(/\w+|\[(\w*)]/g,x).map((Z)=>{return Z[0]==="[]"?"":Z[1]||Z[0]})}function le(x){let Z={},J=Object.keys(x),Q,X=J.length,q;for(Q=0;Q<X;Q++)q=J[Q],Z[q]=x[q];return Z}function oe(x){function Z(J,Q,X,q){let $=J[q++];if($==="__proto__")return!0;let Y=Number.isFinite(+$),z=q>=J.length;if($=!$&&p.isArray(X)?X.length:$,z){if(p.hasOwnProp(X,$))X[$]=[X[$],Q];else X[$]=Q;return!Y}if(!X[$]||!p.isObject(X[$]))X[$]=[];if(Z(J,Q,X[$],q)&&p.isArray(X[$]))X[$]=le(X[$]);return!Y}if(p.isFormData(x)&&p.isFunction(x.entries)){let J={};return p.forEachEntry(x,(Q,X)=>{Z(de(Q),X,J,0)}),J}return null}var Gq=oe;function se(x,Z,J){if(p.isString(x))try{return(Z||JSON.parse)(x),p.trim(x)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(J||JSON.stringify)(x)}var NW={transitional:B5,adapter:["xhr","http","fetch"],transformRequest:[function x(Z,J){let Q=J.getContentType()||"",X=Q.indexOf("application/json")>-1,q=p.isObject(Z);if(q&&p.isHTMLForm(Z))Z=new FormData(Z);if(p.isFormData(Z))return X?JSON.stringify(Gq(Z)):Z;if(p.isArrayBuffer(Z)||p.isBuffer(Z)||p.isStream(Z)||p.isFile(Z)||p.isBlob(Z)||p.isReadableStream(Z))return Z;if(p.isArrayBufferView(Z))return Z.buffer;if(p.isURLSearchParams(Z))return J.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Z.toString();let Y;if(q){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return FW(Z,this.formSerializer).toString();if((Y=p.isFileList(Z))||Q.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return U5(Y?{"files[]":Z}:Z,z&&new z,this.formSerializer)}}if(q||X)return J.setContentType("application/json",!1),se(Z);return Z}],transformResponse:[function x(Z){let J=this.transitional||NW.transitional,Q=J&&J.forcedJSONParsing,X=this.responseType==="json";if(p.isResponse(Z)||p.isReadableStream(Z))return Z;if(Z&&p.isString(Z)&&(Q&&!this.responseType||X)){let $=!(J&&J.silentJSONParsing)&&X;try{return JSON.parse(Z,this.parseReviver)}catch(Y){if($){if(Y.name==="SyntaxError")throw O0.from(Y,O0.ERR_BAD_RESPONSE,this,null,this.response);throw Y}}}return Z}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T1.classes.FormData,Blob:T1.classes.Blob},validateStatus:function x(Z){return Z>=200&&Z<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],(x)=>{NW.headers[x]={}});var b9=NW;var ne=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),m_=(x)=>{let Z={},J,Q,X;return x&&x.split(`
|
|
89
89
|
`).forEach(function q($){if(X=$.indexOf(":"),J=$.substring(0,X).trim().toLowerCase(),Q=$.substring(X+1).trim(),!J||Z[J]&&ne[J])return;if(J==="set-cookie")if(Z[J])Z[J].push(Q);else Z[J]=[Q];else Z[J]=Z[J]?Z[J]+", "+Q:Q}),Z};var O_=Symbol("internals");function yZ(x){return x&&String(x).trim().toLowerCase()}function Hq(x){if(x===!1||x==null)return x;return p.isArray(x)?x.map(Hq):String(x)}function ae(x){let Z=Object.create(null),J=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=J.exec(x))Z[Q[1]]=Q[2];return Z}var re=(x)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(x.trim());function wW(x,Z,J,Q,X){if(p.isFunction(Q))return Q.call(this,Z,J);if(X)Z=J;if(!p.isString(Z))return;if(p.isString(Q))return Z.indexOf(Q)!==-1;if(p.isRegExp(Q))return Q.test(Z)}function te(x){return x.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Z,J,Q)=>{return J.toUpperCase()+Q})}function ee(x,Z){let J=p.toCamelCase(" "+Z);["get","set","has"].forEach((Q)=>{Object.defineProperty(x,Q+J,{value:function(X,q,$){return this[Q].call(this,Z,X,q,$)},configurable:!0})})}class uZ{constructor(x){x&&this.set(x)}set(x,Z,J){let Q=this;function X($,Y,z){let W=yZ(Y);if(!W)throw new Error("header name must be a non-empty string");let G=p.findKey(Q,W);if(!G||Q[G]===void 0||z===!0||z===void 0&&Q[G]!==!1)Q[G||Y]=Hq($)}let q=($,Y)=>p.forEach($,(z,W)=>X(z,W,Y));if(p.isPlainObject(x)||x instanceof this.constructor)q(x,Z);else if(p.isString(x)&&(x=x.trim())&&!re(x))q(m_(x),Z);else if(p.isObject(x)&&p.isIterable(x)){let $={},Y,z;for(let W of x){if(!p.isArray(W))throw TypeError("Object iterator must return a key-value pair");$[z=W[0]]=(Y=$[z])?p.isArray(Y)?[...Y,W[1]]:[Y,W[1]]:W[1]}q($,Z)}else x!=null&&X(Z,x,J);return this}get(x,Z){if(x=yZ(x),x){let J=p.findKey(this,x);if(J){let Q=this[J];if(!Z)return Q;if(Z===!0)return ae(Q);if(p.isFunction(Z))return Z.call(this,Q,J);if(p.isRegExp(Z))return Z.exec(Q);throw new TypeError("parser must be boolean|regexp|function")}}}has(x,Z){if(x=yZ(x),x){let J=p.findKey(this,x);return!!(J&&this[J]!==void 0&&(!Z||wW(this,this[J],J,Z)))}return!1}delete(x,Z){let J=this,Q=!1;function X(q){if(q=yZ(q),q){let $=p.findKey(J,q);if($&&(!Z||wW(J,J[$],$,Z)))delete J[$],Q=!0}}if(p.isArray(x))x.forEach(X);else X(x);return Q}clear(x){let Z=Object.keys(this),J=Z.length,Q=!1;while(J--){let X=Z[J];if(!x||wW(this,this[X],X,x,!0))delete this[X],Q=!0}return Q}normalize(x){let Z=this,J={};return p.forEach(this,(Q,X)=>{let q=p.findKey(J,X);if(q){Z[q]=Hq(Q),delete Z[X];return}let $=x?te(X):String(X).trim();if($!==X)delete Z[X];Z[$]=Hq(Q),J[$]=!0}),this}concat(...x){return this.constructor.concat(this,...x)}toJSON(x){let Z=Object.create(null);return p.forEach(this,(J,Q)=>{J!=null&&J!==!1&&(Z[Q]=x&&p.isArray(J)?J.join(", "):J)}),Z}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([x,Z])=>x+": "+Z).join(`
|
|
@@ -1722,9 +1722,12 @@ Type TemplateParamMetadata = GeneralParamMetadata | StringParamMetadata | Number
|
|
|
1722
1722
|
Type TemplateFuncMetadata {
|
|
1723
1723
|
param (elem_name_as: 'uname', body_as: 'def', multiple: true, unique_elem_name: true): TemplateParamMetadata
|
|
1724
1724
|
}
|
|
1725
|
-
`,"skill.aml":`Type
|
|
1725
|
+
`,"skill.aml":`Type SkillActivation = 'never' | 'always' | 'auto'
|
|
1726
|
+
|
|
1727
|
+
Type Skill (elem_name_as: 'name') {
|
|
1726
1728
|
label (optional): String
|
|
1727
|
-
|
|
1729
|
+
activation (default: 'auto'): SkillActivation | Slot[String]
|
|
1730
|
+
activation_toggleable_by_user (default: true): Boolean | Slot[Boolean]
|
|
1728
1731
|
description: String | Heredoc[Any] | Slot[String] | Slot[Heredoc[Any]]
|
|
1729
1732
|
content: Heredoc[Any] | Slot[Heredoc[Any]]
|
|
1730
1733
|
}`,"schedule.aml":`Type Schedule {
|