monocart-coverage-reports 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- var B=(i,t,e)=>{let s=i instanceof RegExp?ft(i,e):i,n=t instanceof RegExp?ft(t,e):t,r=s!==null&&n!=null&&zt(s,n,e);return r&&{start:r[0],end:r[1],pre:e.slice(0,r[0]),body:e.slice(r[0]+s.length,r[1]),post:e.slice(r[1]+n.length)}},ft=(i,t)=>{let e=t.match(i);return e?e[0]:null},zt=(i,t,e)=>{let s,n,r,o,l,c=e.indexOf(i),a=e.indexOf(t,c+1),h=c;if(c>=0&&a>0){if(i===t)return[c,a];for(s=[],r=e.length;h>=0&&!l;){if(h===c)s.push(h),c=e.indexOf(i,h+1);else if(s.length===1){let u=s.pop();u!==void 0&&(l=[u,a])}else n=s.pop(),n!==void 0&&n<r&&(r=n,o=a),a=e.indexOf(t,h+1);h=c<a&&c>=0?c:a}s.length&&o!==void 0&&(l=[r,o])}return l};var pt="\0SLASH"+Math.random()+"\0",dt="\0OPEN"+Math.random()+"\0",X="\0CLOSE"+Math.random()+"\0",gt="\0COMMA"+Math.random()+"\0",mt="\0PERIOD"+Math.random()+"\0",Dt=new RegExp(pt,"g"),Wt=new RegExp(dt,"g"),Gt=new RegExp(X,"g"),Ut=new RegExp(gt,"g"),Bt=new RegExp(mt,"g"),Yt=/\\\\/g,qt=/\\{/g,Vt=/\\}/g,Xt=/\\,/g,Ht=/\\\./g,Zt=1e5,Kt=4e6,Qt=1e3,Jt=1e3;function Y(i){return isNaN(i)?i.charCodeAt(0):parseInt(i,10)}function te(i){return i.replace(Yt,pt).replace(qt,dt).replace(Vt,X).replace(Xt,gt).replace(Ht,mt)}function ee(i){return i.replace(Dt,"\\").replace(Wt,"{").replace(Gt,"}").replace(Ut,",").replace(Bt,".")}function q(i,t){for(let e=0;e<t.length;e++)i.push(t[e])}function se(i){let t=[],e="";for(;;){let s=B("{","}",i);if(!s){let c=i.split(",");return c[0]=e+c[0],q(t,c),t}let{pre:n,body:r,post:o}=s,l=n.split(",");if(l[0]=e+l[0],l[l.length-1]+="{"+r+"}",!o.length)return q(t,l),t;e=l.pop(),q(t,l),i=o}}function wt(i,t={}){if(!i)return[];let{max:e=Zt,maxLength:s=Kt,maxDepth:n=Qt,maxRewrites:r=Jt}=t;return i.slice(0,2)==="{}"&&(i="\\{\\}"+i.slice(2)),V(te(i),e,s,n,0,r,!0).map(ee)}function ne(i){return"{"+i+"}"}function ie(i){return/^-?0\d/.test(i)}function re(i,t){return i<=t}function oe(i,t){return i>=t}function T(i,t,e,s,n,r){let o=[],l=0;for(let c=0;c<i.length;c++)for(let a=0;a<e.length;a++){if(o.length>=s)return o;let h=i[c]+t+e[a];if(!(r&&!h)){if(l+h.length>n)return o;o.push(h),l+=h.length}}return o}function ce(i,t,e,s){let n=i.split(/\.\./),r=[];if(n[0]===void 0||n[1]===void 0)return r;let o=Y(n[0]),l=Y(n[1]),c=Math.max(n[0].length,n[1].length),a=n.length===3&&n[2]!==void 0?Math.max(Math.abs(Y(n[2])),1):1,h=re;l<o&&(a*=-1,h=oe);let p=n.some(ie),g=0;for(let f=o;h(f,l)&&r.length<e;f+=a){let d;if(t)d=String.fromCharCode(f),d==="\\"&&(d="");else if(d=String(f),p){let S=c-d.length;if(S>0){let m=new Array(S+1).join("0");f<0?d="-"+m+d.slice(1):d=m+d}}if(g+d.length>s)break;r.push(d),g+=d.length}return r}function V(i,t,e,s,n,r,o){if(n>s)return[i];let l=[""],c=0,a=!1,h=!0;for(;;){let u=B("{","}",i);if(!u)return T(l,i,[""],t,e,a);let p=u.pre;if(/\$$/.test(p)){if(l=T(l,p+"{"+u.body+"}",[""],t,e,a&&!u.post.length),h=!1,!u.post.length)break;i=u.post;continue}let g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(u.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(u.body),d=g||f,S=u.body.indexOf(",")>=0;if(!d&&!S){if(c<r&&u.post.match(/,(?!,).*\}/)){c++,i=u.pre+"{"+u.body+X+u.post,o=!0;continue}return T(l,p+"{"+u.body+"}"+u.post,[""],t,e,a)}h&&(a=o&&!d,h=!1);let m;if(d)m=ce(u.body,f,t,e);else{let y=se(u.body);if(y.length===1&&y[0]!==void 0&&(y=V(y[0],t,e,s,n+1,r,!1).map(ne),y.length===1)){if(l=T(l,p+y[0],[""],t,e,a&&!u.post.length),!u.post.length)break;i=u.post;continue}let A=a&&!u.post.length&&!p;for(let O=0;A&&O<l.length;O++)l[O]&&(A=!1);m=[];let P=0;t:for(let O=0;O<y.length;O++){let ut=V(y[O],t,e,s,n+1,r,!1);for(let U=0;U<ut.length;U++){let L=ut[U];if(!(A&&!L)){if(m.length>=t||P+L.length>e)break t;m.push(L),P+=L.length}}}}if(l=T(l,p,m,t,e,a&&!u.post.length),!u.post.length)break;i=u.post}return l}var le={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},v=i=>i.replace(/[[\]\\-]/g,"\\$&"),H=/$./,yt=(i,t,e=!1,s)=>{let n=m=>{let y=s?m.normalize(s):m;return[...y].length===1?y:m},r=t;if(i.charAt(r)!=="[")throw new Error("not in a brace expression");let o=[],l=[],c=r+1,a=!1,h=!1,u=!1,p=r,g="";t:for(;c<i.length;){let m=String.fromCodePoint(i.codePointAt(c));if((m==="!"||m==="^")&&c===r+1){u=!0,c++;continue}if(m==="]"&&a&&!h){p=c+1;break}if(a=!0,m==="\\"&&!h){h=!0,c++;continue}if(m==="["&&!h){for(let[A,[P,O]]of Object.entries(le))if(i.startsWith(A,c)){if(g)return[H,i.length-r];c+=A.length,O?l.push(P):o.push(P);continue t}}h=!1;let y=n(m);if(g){y.codePointAt(0)>g.codePointAt(0)?o.push(v(g)+"-"+v(y)):y===g&&o.push(v(y)),g="",c+=m.length;continue}if(i.startsWith("-]",c+m.length)){o.push(v(y+"-")),c+=m.length+1;continue}if(i.startsWith("-",c+m.length)){g=y,c+=m.length+1;continue}o.push(v(y)),c+=m.length}if(p<c)return[H,0];if(!o.length&&!l.length)return[H,i.length-r];let f="["+(u?"^":"")+o.join("")+"]",d="["+(u?"":"^")+l.join("")+"]",S="^"+(o.length&&l.length?"("+f+"|"+d+")":o.length?f:d);return[new RegExp(S,e?"iu":"u"),p-r]};var Z={t:"match",id:0},ae="!?+*@",R=i=>({t:"lit",ch:i}),he=i=>i.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),K=i=>new RegExp(`^${he(i)}$`,"iu"),tt=(i,t)=>{if(t===i.ch)return!0;if(!i.re)return!1;let e=t.charCodeAt(0);if(e>=128)return i.re.test(t);let s=i.ascii??=new Uint8Array(128);return s[e]||=i.re.test(t)?1:2,s[e]===1},ue=(i,t,e,s)=>{let n=[];for(let r=0;r<i.length;){let o=String.fromCodePoint(i.codePointAt(r));if(o==="\\"){let l=i.codePointAt(r+1),c=l===void 0?o:String.fromCodePoint(l);n.push(R(c)),r+=1+c.length;continue}if(o==="["){let[l,c]=yt(i,r,t,s);if(c){n.push({t:"class",re:l}),r+=c;continue}}if(!e&&ae.includes(o)&&i[r+1]==="("){n.push({t:"open",type:o}),r+=2;continue}n.push(!e&&o==="|"?{t:"bar"}:!e&&o===")"?{t:"close"}:o==="*"?{t:"star"}:o==="?"?{t:"any"}:R(o)),r+=o.length}return n},fe=i=>{let t=new Map,e=[];return i.forEach((s,n)=>{s.t==="open"?e.push(n):s.t==="close"&&e.length&&t.set(e.pop(),n)}),t},Et=(i,t,e,s,n)=>{let r=[],o=[r];for(let l=e;l<s;l++){let c=i[l],a=t.get(l);if(c.t==="open"&&a!==void 0){let h=Et(i,t,l+1,a,!1);r.push({t:"ext",type:c.type,alts:h}),l=a}else c.t==="bar"&&!n?o.push(r=[]):c.t==="open"?r.push(R(c.type),R("(")):c.t==="bar"?r.push(R("|")):c.t==="close"?r.push(R(")")):r.push(c)}return o},Ot=(i,t)=>{let e=[],s="",n=()=>{for(let r of s.normalize(t))e.push(R(r));s=""};for(let r of i){if(r.t==="lit"){s+=r.ch;continue}n(),e.push(r.t==="ext"?{...r,alts:r.alts.map(o=>Ot(o,t))}:r)}return n(),e},pe=(i,t)=>{let e=1,s=l=>({t:"split",id:e++,out:l}),n=(l,c)=>l.reduceRight((a,h)=>r(h,a),c),r=(l,c)=>{switch(l.t){case"lit":let p=t?K(l.ch):void 0;return{t:"lit",id:e++,ch:l.ch,re:p,next:c};case"any":case"star":return{t:l.t,id:e++,next:c};case"class":return{t:"class",id:e++,re:l.re,next:c}}let a=p=>l.alts.map(g=>n(g,p));switch(l.type){case"@":return s(a(c));case"?":return s([c,...a(c)]);case"!":return{t:"neg",id:e++,sub:s(a(Z)),next:c}}let h=s([]),u=s(a(h));return h.out.push(c,u),l.type==="*"?h:u};return[n(i,Z),e]},de=i=>{let t=[],e=new Set,s=r=>r.t==="match"?"match":String(r.id),n=(r,o)=>{if(r.t==="match"||e.has(r))return;e.add(r);let l=c=>t.push(`${o}${r.id}: ${c}`);switch(r.t){case"split":l(`split -> ${r.out.map(s).join(", ")}`);for(let c of r.out)n(c,o);return;case"neg":return l(`!(${s(r.sub)}) -> ${s(r.next)}`),n(r.sub,o+" "),n(r.next,o);case"lit":l(`${JSON.stringify(r.ch)} -> ${s(r.next)}`);break;case"class":l(`${r.re} -> ${s(r.next)}`);break;default:l(`${r.t==="any"?"?":"*"} -> ${s(r.next)}`)}n(r.next,o)};return n(i,""),[`start -> ${s(i)}`,...t].join(`
3
- `)},Q=class{gen;threads=[];match=!1;runs=[];ids=[];constructor(t){this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},Mt=(i,t)=>i.ids.length!==t.ids.length||i.runs.length!==t.runs.length||i.ids.some((e,s)=>e!==t.ids[s])?!1:i.runs.every(e=>t.runs.some(s=>s.neg===e.neg&&Mt(s.state,e.state))),xt=i=>({has:new Float64Array(i),seen:new Float64Array(i),gen:0}),_=class{dots;dotStart;#t;constructor(t,e,s){this.dots=t,this.dotStart=e,this.#t=s}state(){return new Q(++this.#t.gen)}done(t){return t.ids=t.threads.map(e=>e.id).sort((e,s)=>e-s),t.match&&t.ids.unshift(Z.id),t}#n(t,e){let{seen:s}=this.#t;return s[e.id]===t.gen?!1:(s[e.id]=t.gen,!0)}#e(t,e){let{has:s}=this.#t;return s[e.id]===t.gen?!1:(s[e.id]=t.gen,t.threads.push(e),!0)}restricted(t,e){return e&&(this.dots||this.dotStart&&t===0)}add(t,e,s,n){switch(e.t){case"split":if(!this.#n(t,e))return;for(let o of e.out)this.add(t,o,s,n);return;case"neg":if(!this.#n(t,e))return;let r=this.state();return this.add(r,e.sub,s,!1),this.done(r),this.addRun(t,{t:"run",neg:e,state:r},s,n);case"star":if(this.restricted(s,n))return;this.#e(t,e)&&this.add(t,e.next,s,n);return;case"match":t.match=!0;return;default:this.#e(t,e)}}addRun(t,e,s,n){for(let r of t.runs)if(r.neg===e.neg&&Mt(r.state,e.state))return;t.runs.push(e),e.state.match||this.add(t,e.neg.next,s,n)}step(t,e,s,n){let r=this.state();for(let o of t.threads)switch(o.t){case"lit":tt(o,e)&&this.add(r,o.next,s+1,n);break;case"any":this.restricted(s,n)||this.add(r,o.next,s+1,n);break;case"class":!this.restricted(s,n)&&o.re.test(e)&&this.add(r,o.next,s+1,n);break;case"star":this.restricted(s,n)||this.add(r,o,s+1,n)}if(!this.restricted(s,n))for(let o of t.runs){if(o.state.dead){this.addRun(r,o,s+1,n);continue}let l=this.step(o.state,e,s,!1);this.addRun(r,{t:"run",neg:o.neg,state:l},s+1,n)}return this.done(r)}},Ct=i=>{let t=i.ids.join();if(!i.runs.length)return t;let e=i.runs.map(s=>`${s.neg.id}(${Ct(s.state)})`);return`${t}|${e.sort().join("|")}`},ge=1<<18,J=class{#t;#n=new Map;#e=0;#r;#i;#o;#s;constructor(t,e){this.#t=t,this.#o=new _(!1,!1,e),this.#s=new _(!1,!0,e)}#u(t){return{state:t,match:t.match,dead:t.dead,next:new Map}}#a(t){let e=Ct(t),s=this.#n.get(e);if(s)return s;this.#e>ge&&this.#f();let n=this.#u(t);return this.#n.set(e,n),this.#e+=e.length+1,n}#f(){this.#n.clear(),this.#e=0,this.#r=void 0,this.#i=void 0}start(t){if(t){if(this.#i)return this.#i;let s=this.#s.state();return this.#s.add(s,this.#t,0,!0),this.#i=this.#u(this.#s.done(s))}if(this.#r)return this.#r;let e=this.#o.state();return this.#o.add(e,this.#t,0,!0),this.#r=this.#a(this.#o.done(e))}next(t,e){let s=e.charCodeAt(0),n=s<128?void 0:t.next.get(e);if(n)return n;let r=t===this.#i?this.#a(this.#s.step(t.state,e,0,!0)):this.#a(this.#o.step(t.state,e,1,!0));return s<128?(t.ascii||(t.ascii=new Array(128),this.#e+=128),t.ascii[s]=r):t.next.set(e,r),this.#e++,r}},me=i=>{let t=[];for(let e=i;e.t!=="match";e=e.next){if(e.t==="split"||e.t==="neg")return;t.push(e)}return t},we=(i,t,e,s)=>{let n=0,r=e,o=-1,l=0;for(;r<s;){let c=i[n];if(c?.t==="star"){o=n++,l=r;continue}let a=t[r];if(c&&(c.t==="any"||c.t==="lit"&&tt(c,a)||c.t==="class"&&c.re.test(a))){n++,r++;continue}if(o===-1)return!1;n=o+1,r=++l}for(;i[n]?.t==="star";)n++;return n===i.length},Rt=i=>{let t=0,e=0;for(let s of i){let[n,r]=ye(s);t+=n,e+=r}return[t,e]},ye=i=>{if(i.t==="star")return[0,1/0];if(i.t!=="ext")return[1,1];if(i.type==="!")return[0,1/0];let t=i.alts.map(Rt),e=Math.min(...t.map(r=>r[0])),s=Math.max(...t.map(r=>r[1])),n=s===0?0:1/0;return i.type==="@"?[e,s]:i.type==="?"?[0,s]:i.type==="*"?[0,n]:[e,n]},St=(i,t,e)=>{for(let s=0;s<i.length;s++)if(!tt(i[s],t[e+s]))return!1;return!0},xe=/[/\ud800-\udfff]/,Se=/[\ud800-\udfff]/,j=i=>Se.test(i)?[...i]:i,bt=i=>{if(i.includes("/"))throw new Error("can only match a single path portion, got: "+i)},$=class{pattern;options;#t;#n;#e;#r;#i;#o;#s;#u=!1;#a=0;#f=1/0;#c=[];#h=[];#d;#g;#w=!1;#y;#l;constructor(t,e={}){if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=e;let{nocase:s=!1,noext:n=!1,normalize:r}=e;this.#l=r===!0?"NFC":r||void 0;let o=/^[?*+@]\(\)$/.test(t),l=ue(t,s,n||o,this.#l),[c]=Et(l,fe(l),0,l.length,!0);this.#l&&(c=Ot(c,this.#l));let[a,h]=pe(c,s);if(this.#t=a,this.#n=h,c.every(u=>u.t==="lit"))this.#i=c.map(u=>u.ch).join(""),s&&(this.#o=K(this.#i));else{let u=f=>f.t!=="lit"?void 0:s?{ch:f.ch,re:K(f.ch)}:{ch:f.ch};for(let f of c){let d=u(f);if(!d)break;this.#c.push(d)}for(let f=c.length-1;f>=0;f--){let d=u(c[f]);if(!d)break;this.#h.unshift(d)}this.#w=!!(this.#c.length||this.#h.length),s||(this.#d=this.#c.map(f=>f.ch).join(""),this.#g=this.#h.map(f=>f.ch).join("")),this.#s=me(this.#t)?.slice(this.#c.length,-this.#h.length||void 0),this.#u=!!this.#s?.every(f=>f.t==="star"||f.t==="any");let[p,g]=Rt(c);this.#a=p,this.#f=g}}test(t){return this.#l?(bt(t),this.#p(t.normalize(this.#l))):xe.test(t)?(bt(t),this.#p(t,[...t])):this.#p(t,t)}testUnchecked(t){return this.#p(this.#l?t.normalize(this.#l):t)}#p(t,e){if(this.#i!==void 0)return this.#o?this.#o.test(t):t===this.#i;let s=this.#a,n=this.#f;if(e===void 0){let h=t.length,u=h+1>>1;if(h<s||u>n)return!1;(u<s||h>n)&&(e=j(t))}if(e!==void 0&&(e.length<s||e.length>n))return!1;let r=this.#c.length;if(this.#w)if(this.#d!==void 0&&this.#g!==void 0){if(!t.startsWith(this.#d)||!t.endsWith(this.#g))return!1}else{e??=j(t);let h=e.length-this.#h.length;if(!St(this.#c,e,0)||!St(this.#h,e,h))return!1}let o=!this.options.dot&&t.startsWith(".");if(this.#s){if(t==="."||t===".."||o&&!r)return!1;if(this.#u)return!0;e??=j(t);let h=e.length-this.#h.length;return we(this.#s,e,r,h)}if(e??=j(t),t==="."||t===".."){this.#e??=xt(this.#n);let h=this.#r??=new _(!0,!1,this.#e),u=h.state();h.add(u,this.#t,0,!0);let p=h.done(u);for(let g=0;g<e.length;g++)p=h.step(p,e[g],g,!0);return p.match}this.#e??=xt(this.#n);let l=this.#y??=new J(this.#t,this.#e),c=l.start(o),a=e===t;for(let h=0;h<e.length;h++){if(c.dead)return!1;let u=a?t.charCodeAt(h):e[h].charCodeAt(0);c=c.ascii?.[u]??l.next(c,e[h])}return c.match}toString(){return de(this.#t)}};var k=i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>65536)throw new TypeError("pattern is too long")};var et=(i,{windowsPathsNoEscape:t=!1,magicalBraces:e=!1}={})=>e?t?i.replace(/[?*()[\]{}]/g,"[$&]"):i.replace(/[?*()[\]\\{}]/g,"\\$&"):t?i.replace(/[?*()[\]]/g,"[$&]"):i.replace(/[?*()[\]\\]/g,"\\$&");var st=(i,{windowsPathsNoEscape:t=!1,magicalBraces:e=!0}={})=>e?t?i.replace(/\[([^/\\])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?i.replace(/\[([^/\\{}])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var b=(i,t,e={})=>(k(t),!e.nocomment&&t.charAt(0)==="#"?!1:new N(t,e).match(i)),_t=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",At={win32:{sep:"\\"},posix:{sep:"/"}},be=_t==="win32"?At.win32.sep:At.posix.sep;b.sep=be;var x=Symbol("globstar **");b.GLOBSTAR=x;var Ee=(i,t={})=>e=>b(e,i,t);b.filter=Ee;var M=(i,t={})=>Object.assign({},i,t),Oe=i=>{if(!i||typeof i!="object"||!Object.keys(i).length)return b;let t=b;return Object.assign((s,n,r={})=>t(s,n,M(i,r)),{Minimatch:class extends t.Minimatch{constructor(n,r={}){super(n,M(i,r))}static defaults(n){return t.defaults(M(i,n)).Minimatch}},unescape:(s,n={})=>t.unescape(s,M(i,n)),escape:(s,n={})=>t.escape(s,M(i,n)),filter:(s,n={})=>t.filter(s,M(i,n)),defaults:s=>t.defaults(M(i,s)),braceExpand:(s,n={})=>t.braceExpand(s,M(i,n)),match:(s,n,r={})=>t.match(s,n,M(i,r)),sep:t.sep,GLOBSTAR:x})};b.defaults=Oe;var $t=(i,t={})=>(k(i),t.nobrace||!/\{(?:(?!\{).)*\}/.test(i)?[i]:wt(i,{max:t.braceExpandMax}));b.braceExpand=$t;var Me=(i,t,e={})=>{let s=new N(t,e);return i=i.filter(n=>s.match(n)),s.options.nonull&&!i.length&&i.push(t),i};b.match=Me;var Nt=/[?*]|[+@!]\(.*?\)|\[|\]/,kt=(i,t)=>{let e=t+1;(i.charAt(e)==="!"||i.charAt(e)==="^")&&e++;let s=!1;for(;e<i.length;e++){let n=i.charAt(e);if(n==="]"&&s)return e;s=!0,n==="\\"&&e++}return-1},Ce=(i,t)=>{if(!t&&(i==="+()"||i==="@()"))return i;let e="";for(let s=0;s<i.length;s++){let n=i.charAt(s);if(n==="\\")e+=i.charAt(++s)||n;else{if(n==="*"||n==="?")return;if(n==="["){let r=kt(i,s);if(r===-1){e+=n;continue}let o=i.slice(s+1,r);if(o.startsWith("\\")&&(o=o.slice(1)),[...o].length!==1||"!^".includes(i.charAt(s+1)))return;e+=o,s=r}else{if(!t&&"+@!".includes(n)&&i.charAt(s+1)==="("&&i.includes(")",s+2))return;e+=n}}}return e},Re=i=>{if(/^[?*+@]\(\)$/.test(i)||i.includes("[:"))return!1;let t=0;for(let e=0;e<i.length;e++){let s=i.charAt(e);if(s==="\\"){if(++e===i.length)return!1}else if(s==="["){let n=kt(i,e);n!==-1&&(e=n)}else if("+@!?*".includes(s)&&i.charAt(e+1)==="(")t++,e++;else if(s===")"){if(!t--)return!1}else if(s==="|"&&!t)return!1}return!t},nt,Pt,C=(i,t)=>typeof i=="string"?t===i:t!==""&&i.testUnchecked(t),Tt=(i,t,e,s,n)=>C(i,t)?e:s!==void 0&&C(i,s)?n:-1,ot=i=>i==="."||i==="..",it=i=>typeof i=="string"&&/^[a-z]:$/i.test(i),D=i=>typeof i=="string"&&/^unc$/i.test(i),rt=i=>{if(i[0]!==""||i[1]!=="")return-1;let t=i[2]!=="?"?2:D(i[3])?4:-1,e=i[t],s=i[t+1];return t!==-1&&e!==void 0&&e!==""&&e!==x&&s!==void 0&&s!==""&&s!==x?t:-1},z=(i,t)=>!ot(i)&&(t||!i.startsWith(".")),I=(i,t,e,s,n)=>{for(let r=t;r<e;){if(i.charCodeAt(r)===46){if(!s)return!0;let l=i.charCodeAt(r+1)===46?r+2:r+1;if(l>=e||W(i.charCodeAt(l),n))return!0}let o=ct(i,r,n);if(o===-1)return!1;for(r=o+1;r<e&&W(i.charCodeAt(r),n);)r++}return!1},W=(i,t)=>t==="/"?i===47:t==="\\"?i===92:i===47||i===92,ct=(i,t,e)=>{if(e!=="both")return i.indexOf(e,t);let s=i.indexOf("/",t),n=i.indexOf("\\",t);return s===-1?n:n===-1?s:Math.min(s,n)},vt=(i,t,e)=>e!=="both"?i.lastIndexOf(e,t):Math.max(i.lastIndexOf("/",t),i.lastIndexOf("\\",t)),N=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;#t;#n;#e;#r;#i=[];#o=[];#s=[];#u=new Map;#a=new WeakMap;constructor(t,e={}){k(t),e=e||{},this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion??200,this.pattern=t,this.platform=e.platform||_t,this.isWindows=this.platform==="win32";let s="allowWindowsEscape";this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e[s]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.#t=!this.preserveMultipleSlashes,this.#e=(e.optimizationLevel??1)>=2;let n=e.normalize;this.#r=n===!0?"NFC":n||void 0,this.make();let r=this.set.map(o=>this.#c(o));this.#s=this.set.map((o,l)=>this.#t&&o.length-1>r[l]),this.#i=this.set.map((o,l)=>{let c=this.#s[l]?o.length-1:o.length,a=o.slice(r[l]+1,c).filter(h=>typeof h=="string"&&!!h);return[...new Set(a)]}),this.#n=this.#i.some(o=>o.length),this.#o=this.set.map((o,l)=>{let[c,a,h]=o;if(this.#s[l]&&o.length===2&&c===x&&a!==x)return"tail";if(this.#s[l]&&e.matchBase&&o.length===1&&c!==x&&c!=="")return"base";if(!(!this.#t||r[l]!==-1)){if(o.length===3&&c===x&&h===x&&a!==x&&a!==""&&this.maxGlobstarRecursion>0)return"mid";if(o.length===2&&a===x&&c!==x&&c!=="")return"head"}})}#f(t){return this.#r?t.normalize(this.#r):t}#c(t){if(!this.isWindows)return-1;if(it(t[0]))return 0;if(t[0]===""&&t[1]===""&&t[2]==="?"&&it(t[3]))return 3;let s=rt(t);return s===-1?-1:s+1}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let e of t)if(typeof e!="string")return!0;return!1}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let s=this.globSet.map(r=>this.#S(r));this.globParts=this.preprocess(s);let n=this.globParts.map((r,o,l)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&D(r[3])?6:4,a=r[0]===""&&r[1]===""&&(r[2]==="?"||!Nt.test(r[2]))&&r.slice(3,c).every(u=>!Nt.test(u)),h=/^[a-z]:/i.test(r[0]);if(a)return[...r.slice(0,c).map(u=>this.#f(u)),...r.slice(c).map(u=>this.parse(u))];if(h)return[this.#f(r[0]),...r.slice(1).map(u=>this.parse(u))]}return r.map(c=>this.parse(c))});if(this.set=n.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let o=this.set[r];o[0]===""&&o[1]===""&&this.globParts[r][2]==="?"&&(it(o[3])||D(this.globParts[r][3]))&&(D(this.globParts[r][3])&&(o[3]="UNC"),o[2]="?")}e.noext||this.mergeRows()}mergeRows(){let t=!0;for(;t;){t=!1;let e=Math.max(0,...this.set.map(s=>s.length));for(let s=0;s<e;s++){let n=new Map;this.set.forEach((o,l)=>{if(!(o[s]instanceof $)||!Re(this.globParts[l][s]))return;let c=[...this.globParts[l]];c[s]="";let a=`${o.length}/${c.join("/")}`,h=n.get(a);h?h.push(l):n.set(a,[l])});let r=new Set;for(let o of n.values()){if(o.length<2)continue;let[l,...c]=o,h=`@(${o.map(u=>this.globParts[u][s]).join("|")})`;this.globParts[l][s]=h,this.set[l][s]=this.parse(h);for(let u of c)r.add(u)}r.size&&(t=!0,this.set=this.set.filter((o,l)=>!r.has(l)),this.globParts=this.globParts.filter((o,l)=>!r.has(l)))}}}preprocess(t){if(this.options.noglobstar)for(let s of t)for(let n=0;n<s.length;n++)s[n]==="**"&&(s[n]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):e>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let n=s;for(;e[n+1]==="**";)n++;n!==s&&e.splice(s,n-s)}return e})}levelOneOptimize(t){return t.map(e=>{let s=this.#c(e)+1;return e=e.reduce((n,r)=>{let o=n[n.length-1];return r==="**"&&o==="**"?n:r===".."&&n.length>s&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(r),n)},[]),e.length===0?[""]:e})}#h(t){let e=!this.isWindows||!t.includes("\\")?"/":t.includes("/")?"both":"\\",s=this.#t?0:-1,n="",r=0,o,l=0,c=!!this.options.dot;t:for(let a=0;a<this.set.length;a++){let h=this.set[a],u=h[h.length-1],p=s!==-1&&this.#s[a]&&u!==x;if(p&&s===0){let d=vt(t,t.length,e);if(r=d+1,n=t.slice(r),n===""&&d>=0){let m=d;for(;m>0&&W(t.charCodeAt(m-1),e);)m--;l=m===0?0:vt(t,m-1,e)+1,o=t.slice(l,m)}let S=this.#e&&(ot(n)||n===""&&o!==void 0&&ot(o));s=S?-1:1,p=!S}let g=-1;if(p&&typeof u=="string"&&(g=Tt(u,n,r,o,l),g===-1))continue;if(this.#n){for(let d of this.#i[a])if(!t.includes(d))continue t}if(p&&typeof u=="object"&&(g=Tt(u,n,r,o,l),g===-1))continue;let f=this.#o[a];if(f==="base"&&p)return"yes";if(f==="tail"&&p){if(this.#e&&I(t,0,g,!0,e))return"maybe";if(!I(t,0,g,c,e))return"yes";continue}if(f==="mid"||f==="head"){let d=this.#g(t,h,f==="head",c,e);if(d!=="no")return d;continue}return"maybe"}return"no"}#d(t,e,s){let n=!!this.options.dot,r=t.length;if(s==="head"){if(r<2||!C(e[0],t[0]))return!1;for(let l=1;l<r;l++)if(!z(t[l],n))return!1;return!0}let o=e[1];if(s==="tail"){let l=r-1;if(!C(o,t[l])&&(t[l]!==""||r===1||!C(o,t[--l])))return!1;for(let c=0;c<l;c++)if(!z(t[c],n))return!1;return!0}for(let l=0;l<r;l++){if(C(o,t[l])&&l+1<r){let c=l+1;for(;c<r&&z(t[c],n);)c++;if(c===r)return!0}if(!z(t[l],n))return!1}return!1}#g(t,e,s,n,r){if(this.#e&&I(t,0,t.length,!0,r))return"maybe";let o=e[s?0:1],l=0;for(let c=ct(t,l,r);c!==-1;c=ct(t,l,r)){let a=c+1;for(;a<t.length&&W(t.charCodeAt(a),r);)a++;if((typeof o=="string"?c-l===o.length&&t.startsWith(o,l):c>l&&o.testUnchecked(t.slice(l,c)))&&!I(t,a,t.length,n,r))return"yes";if(s||I(t,l,a,n,r))return"no";l=a}return"no"}#w(t){let e=nt;return e?.f===t&&e.isWindows===this.isWindows&&e.preserveMultipleSlashes===this.preserveMultipleSlashes&&e.normalize===this.#r?e:void 0}#y(t){let{isWindows:e,preserveMultipleSlashes:s}=this,n=this.#S(e?t.split("\\").join("/"):t),r=this.#r;return r&&(n=n.map(o=>o.normalize(r))),nt={f:t,isWindows:e,preserveMultipleSlashes:s,normalize:r,parts:n},nt}#l(t){let e=[...t],s=!1;do{if(s=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){let l=e[o];o===1&&l===""&&e[0]===""||(l==="."||l==="")&&(s=!0,e.splice(o,1),o--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(s=!0,e.pop())}let n=this.#c(e)+1,r=n;for(;(r=e.indexOf("..",r+1))!==-1;){let o=e[r-1];o&&o!=="."&&o!==".."&&o!=="**"&&(s=!0,e.splice(r-1,2),r=Math.max(r-2,n))}}while(s);return e.length===0?[""]:e}firstPhasePreProcess(t){let{braceExpandMax:e=1e5}=this.options,s=!1;do{s=!1;for(let n of t){let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let c=r;for(;n[c+1]==="**";)c++;c>r&&n.splice(r+1,c-r);let a=n[r+1],h=n[r+2],u=n[r+3];if(a!==".."||!h||h==="."||h===".."||!u||u==="."||u===".."||t.length>=e)continue;s=!0,n.splice(r,1);let p=n.slice(0);p[r]="**",t.push(p),r--}if(!this.preserveMultipleSlashes){for(let c=1;c<n.length-1;c++){let a=n[c];c===1&&a===""&&n[0]===""||(a==="."||a==="")&&(s=!0,n.splice(c,1),c--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(s=!0,n.pop())}let o=this.#c(n)+1,l=o;for(;(l=n.indexOf("..",l+1))!==-1;){let c=n[l-1];if(c&&c!=="."&&c!==".."&&c!=="**"){s=!0;let h=l===1&&n[l+1]==="**"?["."]:[];n.splice(l-1,2,...h),n.length===0&&n.push(""),l=Math.max(l-2,o)}}}}while(s);return t}secondPhasePreProcess(t){if(t.length>1e3)return t;for(let e=0;e<t.length-1;e++)for(let s=e+1;s<t.length;s++){let n=this.partsMatch(t[e],t[s],!this.preserveMultipleSlashes);if(n){t[e]=[],t[s]=n;break}}return t.filter(e=>e.length)}partsMatch(t,e,s=!1){let n=0,r=0,o=[],l="";for(;n<t.length&&r<e.length;)if(t[n]===e[r])o.push(l==="b"?e[r]:t[n]),n++,r++;else if(s&&t[n]==="**"&&e[r]===t[n+1])o.push(t[n]),n++;else if(s&&e[r]==="**"&&t[n]===e[r+1])o.push(e[r]),r++;else if(t[n]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(l==="b")return!1;l="a",o.push(t[n]),n++,r++}else if(e[r]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(l==="a")return!1;l="b",o.push(e[r]),n++,r++}else return!1;return t.length===e.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,s=0;for(let n=0;n<t.length&&t.charAt(n)==="!";n++)e=!e,s++;s&&(this.pattern=t.slice(s)),this.negate=e}#p(t,e,s,n){let r=0,o=0,l=this.isWindows?rt(e):-1,c=l===-1?-1:rt(s);if(c!==-1){let a=s[c],h=s[c+1];typeof a!="string"||typeof h!="string"?(r=l,o=c):e[l].toLowerCase()===a.toLowerCase()&&e[l+1].toLowerCase()===h.toLowerCase()&&(r=l+2,o=c+2)}else if(this.isWindows){let a=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),h=!a&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),u=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),p=!u&&s[0]===""&&s[1]===""&&s[2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3]),g=h?3:a?0:void 0,f=p?3:u?0:void 0;if(typeof g=="number"&&typeof f=="number"){let[d,S]=[t[g],s[f]];d.toLowerCase()===S.toLowerCase()&&(o=f+1,r=g+1)}}return t=e,s.includes(x)?this.#b(t,s,n,r,o):this.#m(t,s,n,r,o)}#b(t,e,s,n,r){let{head:o,body:l,tail:c,segments:a}=this.#E(e,s,r);if(o.length){let u=n+o.length;if(!this.#m(t,o,s,n,0,u))return!1;n+=o.length,r+=o.length}let h=0;if(c.length){if(c.length+n>t.length)return!1;let u=t.length-c.length;if(this.#m(t,c,s,u,0))h=c.length;else{if(t[t.length-1]!==""||n+c.length===t.length||(u--,!this.#m(t,c,s,u,0)))return!1;h=c.length+1}}if(!l.length){let u=!!h;for(let p=n;p<t.length-h;p++){let g=String(t[p]);if(u=!0,g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return s||u}return!!this.#x(t,a,t.length-h,n,0,s,0,!!h,new Set)}#E(t,e,s){let n=this.#a.get(t);n||(n=[],this.#a.set(t,n));let r=s*2+(e?1:0),o=n[r];if(o)return o;let l=t.indexOf(x,s),c=t.lastIndexOf(x),a=t.slice(s,l),h=t.slice(l+1,e?void 0:c),u=e?[]:t.slice(c+1),p=[[[],0]],g=p[0],f=0,d=[0];for(let m of h)m===x?(d.push(f),g=[[],0],p.push(g)):(g[0].push(m),f++);p.forEach((m,y)=>{m[1]=f-d[y]});let S={head:a,body:h,tail:u,segments:p};return n[r]=S,S}#x(t,e,s,n,r,o,l,c,a){let h=e[r];if(!h){if(o)return n>=s||n===s-1&&t[n]==="";for(let f=n;f<s;f++){c=!0;let d=t[f];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return c}let[u,p]=h,g=o?s:s-p;for(;n<=g;){let f=r*(t.length+1)+n;if(a.has(f))return!1;if(a.add(f),this.#m(t,u,o,n,0,n+u.length)&&l<this.maxGlobstarRecursion){let m=this.#x(t,e,s,n+u.length,r+1,o,l+1,c,a);if(m!==!1)return m}if(n===g)break;let S=t[n];if(S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1;n++}return o||null}#m(t,e,s,n,r,o=t.length){let l,c,a,h;for(l=n,c=r,h=Math.min(o,t.length),a=e.length;l<h&&c<a;l++,c++){let u=e[c],p=t[l];if(u===!1||u===x||!C(u,p))return!1}if(l===h&&c===a)return!0;if(l===h)return s;if(c===a)return l===h-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return $t(this.pattern,this.options)}parse(t){k(t);let e=this.options;if(t==="**")return x;if(t==="")return"";let{nocase:s,nocaseMagicOnly:n,noext:r=!1,dot:o,normalize:l}=e,c=Ce(t,r);if(c!==void 0&&!(s&&!n&&t.toUpperCase()!==t.toLowerCase()))return this.#f(c);let a=this.#u.get(t);return a||(a=new $(t,{nocase:s,noext:r,dot:o,normalize:l}),this.#u.set(t,a)),a}#S(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;let s=this.options,n=this.#w(t);if(!n){if(!e&&!this.#r&&(this.#t||this.#n)&&Pt!==t){Pt=t;let a=this.#h(t);if(a==="no")return s.flipNegate?!1:this.negate;if(a==="yes")return s.flipNegate?!0:!this.negate}n=this.#y(t)}let r=n.parts,o=this.#e?n.resolved??=this.#l(r):r,l=this.set,c=r[r.length-1];if(!c)for(let a=r.length-2;!c&&a>=0;a--)c=r[a];for(let a=0;a<l.length;a++){let h=l[a],u=e?void 0:this.#o[a];if(u==="base"?C(h[0],c):u?this.#d(o,h,u):s.matchBase&&h.length===1?this.#p([c],[c],h,e):this.#p(r,o,h,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(t){return b.defaults(t).Minimatch}};b.Minimatch=N;b.escape=et;b.unescape=st;import F from"node:path";import Ae from"node:process";import Ne from"node:path";import It,{promises as ws}from"node:fs";import{fileURLToPath as Pe}from"node:url";var Ft={directory:"isDirectory",file:"isFile"};function Te(i){if(!(i==="both"||Object.hasOwn(Ft,i)))throw new Error(`Invalid type specified: ${i}`)}var ve=(i,t)=>i==="both"?t.isFile()||t.isDirectory():t[Ft[i]](),_e=i=>i instanceof URL?Pe(i):i;function lt(i,{cwd:t=Ae.cwd(),type:e="file",allowSymlinks:s=!0}={}){Te(e),t=_e(t);let n=s?It.statSync:It.lstatSync;for(let r of i)try{let o=n(Ne.resolve(t,r),{throwIfNoEntry:!1});if(!o)continue;if(ve(e,o))return r}catch{}}import{promisify as $e}from"node:util";import{execFile as ke,execFileSync as Os}from"node:child_process";import{fileURLToPath as Ie}from"node:url";var Cs=$e(ke);function at(i){return i instanceof URL?Ie(i):i}var Rs=10*1024*1024;var Fe=Symbol("findUpStop");function Le(i,t={}){let e=F.resolve(at(t.cwd)??""),{root:s}=F.parse(e),n=F.resolve(e,at(t.stopAt)??s),r=t.limit??Number.POSITIVE_INFINITY,o=[i].flat(),l=a=>{if(typeof i!="function")return lt(o,a);let h=i(a.cwd);return typeof h=="string"?lt([h],a):h},c=[];for(;;){let a=l({...t,cwd:e});if(a===Fe||(a&&c.push(F.resolve(e,a)),e===n||c.length>=r))break;e=F.dirname(e)}return c}function je(i,t={}){return Le(i,{...t,limit:1})[0]}import ht from"node:process";import ze from"node:os";import Lt from"node:tty";function E(i,t=globalThis.Deno?globalThis.Deno.args:ht.argv){let e=i.startsWith("-")?"":i.length===1?"-":"--",s=t.indexOf(e+i),n=t.indexOf("--");return s!==-1&&(n===-1||s<n)}var{env:w}=ht,G;E("no-color")||E("no-colors")||E("color=false")||E("color=never")?G=0:(E("color")||E("colors")||E("color=true")||E("color=always"))&&(G=1);function De(){if(!("FORCE_COLOR"in w))return;if(w.FORCE_COLOR==="true")return 1;if(w.FORCE_COLOR==="false")return 0;if(w.FORCE_COLOR.length===0)return 1;if(!/^\d+$/v.test(w.FORCE_COLOR))return;let i=Math.min(Number(w.FORCE_COLOR),3);if([0,1,2,3].includes(i))return i}function We(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function Ge(i,{streamIsTTY:t,sniffFlags:e=!0}={}){let s=De();s!==void 0&&(G=s);let n=e?G:s;if(n===0)return 0;if(e){if(E("color=16m")||E("color=full")||E("color=truecolor"))return 3;if(E("color=256"))return 2}if(n!==void 0&&/^\d+$/v.test(w.FORCE_COLOR))return n;if("TF_BUILD"in w&&"AGENT_NAME"in w)return 1;if(i&&!t&&n===void 0)return 0;let r=n||0;if(w.TERM==="dumb")return r;if(ht.platform==="win32"){let o=ze.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in w)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>Object.hasOwn(w,o))?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>Object.hasOwn(w,o))||w.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in w)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/v.test(w.TEAMCITY_VERSION)?1:0;if(w.COLORTERM==="truecolor"||w.TERM==="xterm-kitty"||w.TERM==="xterm-ghostty"||w.TERM==="wezterm")return 3;if("TERM_PROGRAM"in w){let o=Number((w.TERM_PROGRAM_VERSION||"").split(".",1)[0]);switch(w.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(?:color)?$/iv.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/iv.test(w.TERM)||"COLORTERM"in w?1:r}function jt(i,t={}){let e=Ge(i,{streamIsTTY:i&&i.isTTY,...t});return We(e)}var Ue={stdout:jt({isTTY:Lt.isatty(1)}),stderr:jt({isTTY:Lt.isatty(2)})},Be=Ue;export{N as Minimatch,je as findUpSync,b as minimatch,Be as supportsColor};
2
+ var V=(n,t,e)=>{let s=n instanceof RegExp?yt(n,e):n,i=t instanceof RegExp?yt(t,e):t,r=s!==null&&i!=null&&Xt(s,i,e);return r&&{start:r[0],end:r[1],pre:e.slice(0,r[0]),body:e.slice(r[0]+s.length,r[1]),post:e.slice(r[1]+i.length)}},yt=(n,t)=>{let e=t.match(n);return e?e[0]:null},Xt=(n,t,e)=>{let s,i,r,o,c,a=e.indexOf(n),l=e.indexOf(t,a+1),h=a;if(a>=0&&l>0){if(n===t)return[a,l];for(s=[],r=e.length;h>=0&&!c;){if(h===a)s.push(h),a=e.indexOf(n,h+1);else if(s.length===1){let f=s.pop();f!==void 0&&(c=[f,l])}else i=s.pop(),i!==void 0&&i<r&&(r=i,o=l),l=e.indexOf(t,h+1);h=a<l&&a>=0?a:l}s.length&&o!==void 0&&(c=[r,o])}return c};var xt="\0SLASH"+Math.random()+"\0",bt="\0OPEN"+Math.random()+"\0",J="\0CLOSE"+Math.random()+"\0",St="\0COMMA"+Math.random()+"\0",Mt="\0PERIOD"+Math.random()+"\0",Ht=new RegExp(xt,"g"),Zt=new RegExp(bt,"g"),Jt=new RegExp(J,"g"),Kt=new RegExp(St,"g"),Qt=new RegExp(Mt,"g"),te=/\\\\/g,ee=/\\{/g,se=/\\}/g,ne=/\\,/g,re=/\\\./g,ie=1e5,oe=4e6,ce=1e3,ae=1e3;function X(n){return isNaN(n)?n.charCodeAt(0):parseInt(n,10)}function le(n){return n.replace(te,xt).replace(ee,bt).replace(se,J).replace(ne,St).replace(re,Mt)}function he(n){return n.replace(Ht,"\\").replace(Zt,"{").replace(Jt,"}").replace(Kt,",").replace(Qt,".")}function H(n,t){for(let e=0;e<t.length;e++)n.push(t[e])}function fe(n){let t=[],e="";for(;;){let s=V("{","}",n);if(!s){let a=n.split(",");return a[0]=e+a[0],H(t,a),t}let{pre:i,body:r,post:o}=s,c=i.split(",");if(c[0]=e+c[0],c[c.length-1]+="{"+r+"}",!o.length)return H(t,c),t;e=c.pop(),H(t,c),n=o}}function Et(n,t={}){if(!n)return[];let{max:e=ie,maxLength:s=oe,maxDepth:i=ce,maxRewrites:r=ae}=t;return n.slice(0,2)==="{}"&&(n="\\{\\}"+n.slice(2)),Z(le(n),e,s,i,0,r,!0).map(he)}function ue(n){return"{"+n+"}"}function de(n){return/^-?0\d/.test(n)}function pe(n,t){return n<=t}function ge(n,t){return n>=t}function T(n,t,e,s,i,r){let o=[],c=0;for(let a=0;a<n.length;a++)for(let l=0;l<e.length;l++){if(o.length>=s)return o;let h=n[a]+t+e[l];if(!(r&&!h)){if(c+h.length>i)return o;o.push(h),c+=h.length}}return o}function me(n,t,e,s){let i=n.split(/\.\./),r=[];if(i[0]===void 0||i[1]===void 0)return r;let o=X(i[0]),c=X(i[1]),a=Math.max(i[0].length,i[1].length),l=i.length===3&&i[2]!==void 0?Math.max(Math.abs(X(i[2])),1):1,h=pe;c<o&&(l*=-1,h=ge);let u=i.some(de),p=0;for(let d=o;h(d,c)&&r.length<e;d+=l){let g;if(t)g=String.fromCharCode(d),g==="\\"&&(g="");else if(g=String(d),u){let b=a-g.length;if(b>0){let m=new Array(b+1).join("0");d<0?g="-"+m+g.slice(1):g=m+g}}if(p+g.length>s)break;r.push(g),p+=g.length}return r}function Z(n,t,e,s,i,r,o){if(i>s)return[n];let c=[""],a=0,l=!1,h=!0;for(;;){let f=V("{","}",n);if(!f)return T(c,n,[""],t,e,l);let u=f.pre;if(/\$$/.test(u)){if(c=T(c,u+"{"+f.body+"}",[""],t,e,l&&!f.post.length),h=!1,!f.post.length)break;n=f.post;continue}let p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(f.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(f.body),g=p||d,b=f.body.indexOf(",")>=0;if(!g&&!b){if(a<r&&f.post.match(/,(?!,).*\}/)){a++,n=f.pre+"{"+f.body+J+f.post,o=!0;continue}return T(c,u+"{"+f.body+"}"+f.post,[""],t,e,l)}h&&(l=o&&!g,h=!1);let m;if(g)m=me(f.body,d,t,e);else{let y=fe(f.body);if(y.length===1&&y[0]!==void 0&&(y=Z(y[0],t,e,s,i+1,r,!1).map(ue),y.length===1)){if(c=T(c,u+y[0],[""],t,e,l&&!f.post.length),!f.post.length)break;n=f.post;continue}let P=l&&!f.post.length&&!u;for(let E=0;P&&E<c.length;E++)c[E]&&(P=!1);m=[];let v=0;t:for(let E=0;E<y.length;E++){let wt=Z(y[E],t,e,s,i+1,r,!1);for(let q=0;q<wt.length;q++){let j=wt[q];if(!(P&&!j)){if(m.length>=t||v+j.length>e)break t;m.push(j),v+=j.length}}}}if(c=T(c,u,m,t,e,l&&!f.post.length),!f.post.length)break;n=f.post}return c}var Q=(n,t)=>n===t?{t:"lit",ch:String(n)}:{t:"class",re:new RegExp(`^[${n}-${t}]$`)},K=(n,t)=>t.map(e=>[Q(n,n),...e]),_=(n,t)=>{if(!n)return[[]];let e=+n[0],s=+t[0],i=n.slice(1),r=t.slice(1);if(e===s)return K(e,_(i,r));let o="0".repeat(i.length),c="9".repeat(i.length),a=[];i!==o&&a.push(...K(e++,_(i,c)));let l=r===c?[]:K(s--,_(o,r));return e<=s&&a.push([Q(e,s),...Array.from(i,()=>Q(0,9))]),a.push(...l),a},Ot=(n,t,e)=>{if(e)return _(String(n).padStart(e,"0"),String(t).padStart(e,"0"));let s=[];for(let i=String(n).length;i<=String(t).length;i++){let r=Math.max(n,i===1?0:10**(i-1)),o=Math.min(t,10**i-1);s.push(..._(String(r),String(o)))}return s},Ct=(n,t)=>{let e=Number(n),s=Number(t);if(!Number.isSafeInteger(e)||!Number.isSafeInteger(s))return;e>s&&([e,s]=[s,e]);let r=/^-?0\d/.test(n)||/^-?0\d/.test(t)?Math.max(n.length,t.length):0,o=[];if(e<0){let c=Ot(Math.max(-s,1),-e,r&&r-1);o.push(...c.map(a=>[{t:"lit",ch:"-"},...a]))}return s>=0&&o.push(...Ot(Math.max(e,0),s,r)),o};var we={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},$=n=>n.replace(/[[\]\\-]/g,"\\$&"),tt=/$./,Nt=(n,t,e=!1,s)=>{let i=m=>{let y=s?m.normalize(s):m;return[...y].length===1?y:m},r=t;if(n.charAt(r)!=="[")throw new Error("not in a brace expression");let o=[],c=[],a=r+1,l=!1,h=!1,f=!1,u=r,p="";t:for(;a<n.length;){let m=String.fromCodePoint(n.codePointAt(a));if((m==="!"||m==="^")&&a===r+1){f=!0,a++;continue}if(m==="]"&&l&&!h){u=a+1;break}if(l=!0,m==="\\"&&!h){h=!0,a++;continue}if(m==="["&&!h){for(let[P,[v,E]]of Object.entries(we))if(n.startsWith(P,a)){if(p)return[tt,n.length-r];a+=P.length,E?c.push(v):o.push(v);continue t}}h=!1;let y=i(m);if(p){y.codePointAt(0)>p.codePointAt(0)?o.push($(p)+"-"+$(y)):y===p&&o.push($(y)),p="",a+=m.length;continue}if(n.startsWith("-]",a+m.length)){o.push($(y+"-")),a+=m.length+1;continue}if(n.startsWith("-",a+m.length)){p=y,a+=m.length+1;continue}o.push($(y)),a+=m.length}if(u<a)return[tt,0];if(!o.length&&!c.length)return[tt,n.length-r];let d="["+(f?"^":"")+o.join("")+"]",g="["+(f?"":"^")+c.join("")+"]",b="^"+(o.length&&c.length?"("+d+"|"+g+")":o.length?d:g);return[new RegExp(b,e?"iu":"u"),u-r]};var et={t:"match",id:0},ye="!?+*@",N=n=>({t:"lit",ch:n}),xe=n=>n.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),vt=n=>new RegExp(`^${xe(n)}$`,"iu"),D=new Map,Tt=n=>{let t=D.get(n);return t||(t=vt(n),D.size>=1e3&&D.clear(),D.set(n,t)),t},rt=(n,t)=>{if(t===n.ch)return!0;if(!n.re)return!1;let e=t.charCodeAt(0);if(e>=128)return n.re.test(t);let s=n.ascii??=new Uint8Array(128);return s[e]||=n.re.test(t)?1:2,s[e]===1},be=(n,t,e,s,i)=>{let r=[];for(let o=0;o<n.length;){let c=String.fromCodePoint(n.codePointAt(o));if(i){let a=c==="\\"&&n.startsWith(i,o+1)?1:0;if(a||c===i){let l=o+a+i.length,h=n.indexOf(i,l),f=/^(-?\d+)\.\.(-?\d+)$/.exec(n.slice(l,h)),u=h!==-1&&f&&Ct(f[1],f[2]);if(u){r.push({t:"ext",type:"@",alts:u}),o=h+i.length;continue}}}if(c==="\\"){let a=n.codePointAt(o+1),l=a===void 0?c:String.fromCodePoint(a);r.push(N(l)),o+=1+l.length;continue}if(c==="["){let[a,l]=Nt(n,o,t,s);if(l){r.push({t:"class",re:a}),o+=l;continue}}if(!e&&ye.includes(c)&&n[o+1]==="("){r.push({t:"open",type:c}),o+=2;continue}r.push(!e&&c==="|"?{t:"bar"}:!e&&c===")"?{t:"close"}:c==="*"?{t:"star"}:c==="?"?{t:"any"}:N(c)),o+=c.length}return r},Se=n=>{let t=new Map,e=[];return n.forEach((s,i)=>{s.t==="open"?e.push(i):s.t==="close"&&e.length&&t.set(e.pop(),i)}),t},_t=(n,t,e,s,i)=>{let r=[],o=[r];for(let c=e;c<s;c++){let a=n[c],l=t.get(c);if(a.t==="open"&&l!==void 0){let h=_t(n,t,c+1,l,!1);r.push({t:"ext",type:a.type,alts:h}),c=l}else a.t==="bar"&&!i?o.push(r=[]):a.t==="open"?r.push(N(a.type),N("(")):a.t==="bar"?r.push(N("|")):a.t==="close"?r.push(N(")")):r.push(a)}return o},$t=(n,t)=>{let e=[],s="",i=()=>{for(let r of s.normalize(t))e.push(N(r));s=""};for(let r of n){if(r.t==="lit"){s+=r.ch;continue}i(),e.push(r.t==="ext"?{...r,alts:r.alts.map(o=>$t(o,t))}:r)}return i(),e},Me=(n,t)=>{let e=1,s=c=>({t:"split",id:e++,out:c}),i=(c,a)=>c.reduceRight((l,h)=>r(h,l),a),r=(c,a)=>{switch(c.t){case"lit":let u=t?Tt(c.ch):void 0;return{t:"lit",id:e++,ch:c.ch,re:u,next:a};case"any":case"star":return{t:c.t,id:e++,next:a};case"class":return{t:"class",id:e++,re:c.re,next:a}}let l=u=>c.alts.map(p=>i(p,u));switch(c.type){case"@":return s(l(a));case"?":return s([a,...l(a)]);case"!":return{t:"neg",id:e++,sub:s(l(et)),next:a}}let h=s([]),f=s(l(h));return h.out.push(a,f),c.type==="*"?h:f};return[i(n,et),e]},Ee=n=>{let t=[],e=new Set,s=r=>r.t==="match"?"match":String(r.id),i=(r,o)=>{if(r.t==="match"||e.has(r))return;e.add(r);let c=a=>t.push(`${o}${r.id}: ${a}`);switch(r.t){case"split":c(`split -> ${r.out.map(s).join(", ")}`);for(let a of r.out)i(a,o);return;case"neg":return c(`!(${s(r.sub)}) -> ${s(r.next)}`),i(r.sub,o+" "),i(r.next,o);case"lit":c(`${JSON.stringify(r.ch)} -> ${s(r.next)}`);break;case"class":c(`${r.re} -> ${s(r.next)}`);break;default:c(`${r.t==="any"?"?":"*"} -> ${s(r.next)}`)}i(r.next,o)};return i(n,""),[`start -> ${s(n)}`,...t].join(`
3
+ `)},st=class{gen;threads=[];match=!1;runs=[];ids=[];constructor(t){this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},kt=(n,t)=>n.ids.length!==t.ids.length||n.runs.length!==t.runs.length||n.ids.some((e,s)=>e!==t.ids[s])?!1:n.runs.every(e=>t.runs.some(s=>s.neg===e.neg&&kt(s.state,e.state))),Pt=n=>({has:new Float64Array(n),seen:new Float64Array(n),gen:0}),k=class{dots;dotStart;#t;constructor(t,e,s){this.dots=t,this.dotStart=e,this.#t=s}state(){return new st(++this.#t.gen)}done(t){return t.ids=t.threads.map(e=>e.id).sort((e,s)=>e-s),t.match&&t.ids.unshift(et.id),t}#s(t,e){let{seen:s}=this.#t;return s[e.id]===t.gen?!1:(s[e.id]=t.gen,!0)}#e(t,e){let{has:s}=this.#t;return s[e.id]===t.gen?!1:(s[e.id]=t.gen,t.threads.push(e),!0)}restricted(t,e){return e&&(this.dots||this.dotStart&&t===0)}add(t,e,s,i){switch(e.t){case"split":if(!this.#s(t,e))return;for(let o of e.out)this.add(t,o,s,i);return;case"neg":if(!this.#s(t,e))return;let r=this.state();return this.add(r,e.sub,s,!1),this.done(r),this.addRun(t,{t:"run",neg:e,state:r},s,i);case"star":if(this.restricted(s,i))return;this.#e(t,e)&&this.add(t,e.next,s,i);return;case"match":t.match=!0;return;default:this.#e(t,e)}}addRun(t,e,s,i){for(let r of t.runs)if(r.neg===e.neg&&kt(r.state,e.state))return;t.runs.push(e),e.state.match||this.add(t,e.neg.next,s,i)}step(t,e,s,i){let r=this.state();for(let o of t.threads)switch(o.t){case"lit":rt(o,e)&&this.add(r,o.next,s+1,i);break;case"any":this.restricted(s,i)||this.add(r,o.next,s+1,i);break;case"class":!this.restricted(s,i)&&o.re.test(e)&&this.add(r,o.next,s+1,i);break;case"star":this.restricted(s,i)||this.add(r,o,s+1,i)}if(!this.restricted(s,i))for(let o of t.runs){if(o.state.dead){this.addRun(r,o,s+1,i);continue}let c=this.step(o.state,e,s,!1);this.addRun(r,{t:"run",neg:o.neg,state:c},s+1,i)}return this.done(r)}},It=n=>{let t=n.ids.join();if(!n.runs.length)return t;let e=n.runs.map(s=>`${s.neg.id}(${It(s.state)})`);return`${t}|${e.sort().join("|")}`},Oe=1<<18,nt=class{#t;#s=new Map;#e=0;#r;#n;#o;#i;constructor(t,e){this.#t=t,this.#o=new k(!1,!1,e),this.#i=new k(!1,!0,e)}#a(t){return{state:t,match:t.match,dead:t.dead,next:new Map}}#l(t){let e=It(t),s=this.#s.get(e);if(s)return s;this.#e>Oe&&this.#u();let i=this.#a(t);return this.#s.set(e,i),this.#e+=e.length+1,i}#u(){this.#s.clear(),this.#e=0,this.#r=void 0,this.#n=void 0}start(t){if(t){if(this.#n)return this.#n;let s=this.#i.state();return this.#i.add(s,this.#t,0,!0),this.#n=this.#a(this.#i.done(s))}if(this.#r)return this.#r;let e=this.#o.state();return this.#o.add(e,this.#t,0,!0),this.#r=this.#l(this.#o.done(e))}next(t,e){let s=e.charCodeAt(0),i=s<128?void 0:t.next.get(e);if(i)return i;let r=t===this.#n?this.#l(this.#i.step(t.state,e,0,!0)):this.#l(this.#o.step(t.state,e,1,!0));return s<128?(t.ascii||(t.ascii=new Array(128),this.#e+=128),t.ascii[s]=r):t.next.set(e,r),this.#e++,r}},Ce=n=>{let t=[];for(let e=n;e.t!=="match";e=e.next){if(e.t==="split"||e.t==="neg")return;t.push(e)}return t},Ne=(n,t,e,s)=>{let i=0,r=e,o=-1,c=0;for(;r<s;){let a=n[i];if(a?.t==="star"){o=i++,c=r;continue}let l=t[r];if(a&&(a.t==="any"||a.t==="lit"&&rt(a,l)||a.t==="class"&&a.re.test(l))){i++,r++;continue}if(o===-1)return!1;i=o+1,r=++c}for(;n[i]?.t==="star";)i++;return i===n.length},Ft=n=>{let t=0,e=0;for(let s of n){let[i,r]=Pe(s);t+=i,e+=r}return[t,e]},Pe=n=>{if(n.t==="star")return[0,1/0];if(n.t!=="ext")return[1,1];if(n.type==="!")return[0,1/0];let t=n.alts.map(Ft),e=Math.min(...t.map(r=>r[0])),s=Math.max(...t.map(r=>r[1])),i=s===0?0:1/0;return n.type==="@"?[e,s]:n.type==="?"?[0,s]:n.type==="*"?[0,i]:[e,i]},Rt=(n,t,e)=>{for(let s=0;s<n.length;s++)if(!rt(n[s],t[e+s]))return!1;return!0},Re=/[/\ud800-\udfff]/,Ae=/[\ud800-\udfff]/,G=n=>Ae.test(n)?[...n]:n,At=n=>{if(n.includes("/"))throw new Error("can only match a single path portion, got: "+n)},I=class{pattern;options;#t;#s;#e;#r;#n;#o=!1;#i;#a;#l=!1;#u=0;#p=1/0;#h=[];#c=[];#g;#m;#y=!1;#x;#f;constructor(t,e={}){if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=e;let{nocase:s=!1,noext:i=!1,normalize:r}=e;this.#f=r===!0?"NFC":r||void 0;let o=/^[?*+@]\(\)$/.test(t),c=be(t,s,i||o,this.#f,e.rangeMark),[a]=_t(c,Se(c),0,c.length,!0);this.#f&&(a=$t(a,this.#f));let[l,h]=Me(a,s);if(this.#t=l,this.#s=h,a.every(f=>f.t==="lit"))this.#n=a.map(f=>f.ch).join(""),this.#o=s;else{let f=d=>d.t!=="lit"?void 0:s?{ch:d.ch,re:Tt(d.ch)}:{ch:d.ch};for(let d of a){let g=f(d);if(!g)break;this.#h.push(g)}for(let d=a.length-1;d>=0;d--){let g=f(a[d]);if(!g)break;this.#c.unshift(g)}this.#y=!!(this.#h.length||this.#c.length),s||(this.#g=this.#h.map(d=>d.ch).join(""),this.#m=this.#c.map(d=>d.ch).join("")),this.#a=Ce(this.#t)?.slice(this.#h.length,-this.#c.length||void 0),this.#l=!!this.#a?.every(d=>d.t==="star"||d.t==="any");let[u,p]=Ft(a);this.#u=u,this.#p=p}}test(t){return this.#f?(At(t),this.#d(t.normalize(this.#f))):Re.test(t)?(At(t),this.#d(t,[...t])):this.#d(t,t)}testUnchecked(t){return this.#d(this.#f?t.normalize(this.#f):t)}#d(t,e){if(this.#n!==void 0)return this.#o?(this.#i??=vt(this.#n)).test(t):t===this.#n;let s=this.#u,i=this.#p;if(e===void 0){let h=t.length,f=h+1>>1;if(h<s||f>i)return!1;(f<s||h>i)&&(e=G(t))}if(e!==void 0&&(e.length<s||e.length>i))return!1;let r=this.#h.length;if(this.#y)if(this.#g!==void 0&&this.#m!==void 0){if(!t.startsWith(this.#g)||!t.endsWith(this.#m))return!1}else{e??=G(t);let h=e.length-this.#c.length;if(!Rt(this.#h,e,0)||!Rt(this.#c,e,h))return!1}let o=!this.options.dot&&t.startsWith(".");if(this.#a){if(t==="."||t===".."||o&&!r)return!1;if(this.#l)return!0;e??=G(t);let h=e.length-this.#c.length;return Ne(this.#a,e,r,h)}if(e??=G(t),t==="."||t===".."){this.#e??=Pt(this.#s);let h=this.#r??=new k(!0,!1,this.#e),f=h.state();h.add(f,this.#t,0,!0);let u=h.done(f);for(let p=0;p<e.length;p++)u=h.step(u,e[p],p,!0);return u.match}this.#e??=Pt(this.#s);let c=this.#x??=new nt(this.#t,this.#e),a=c.start(o),l=e===t;for(let h=0;h<e.length;h++){if(a.dead)return!1;let f=l?t.charCodeAt(h):e[h].charCodeAt(0);a=a.ascii?.[f]??c.next(a,e[h])}return a.match}toString(){return Ee(this.#t)}};var F=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var it=(n,{windowsPathsNoEscape:t=!1,magicalBraces:e=!1}={})=>e?t?n.replace(/[?*()[\]{}]/g,"[$&]"):n.replace(/[?*()[\]\\{}]/g,"\\$&"):t?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var ot=(n,{windowsPathsNoEscape:t=!1,magicalBraces:e=!0}={})=>e?t?n.replace(/\[([^/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?n.replace(/\[([^/\\{}])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var S=(n,t,e={})=>(F(t),!e.nocomment&&t.charAt(0)==="#"?!1:Te(t,e).match(n)),R=new Map,ve=256,Te=(n,t)=>{let e=n+"\0"+JSON.stringify(t),s=R.get(e);return s?R.delete(e):(s=new A(n,{...t}),R.size>=ve&&R.delete(R.keys().next().value)),R.set(e,s),s},Wt=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",zt={win32:{sep:"\\"},posix:{sep:"/"}},_e=Wt==="win32"?zt.win32.sep:zt.posix.sep;S.sep=_e;var x=Symbol("globstar **");S.GLOBSTAR=x;var $e=(n,t={})=>e=>S(e,n,t);S.filter=$e;var O=(n,t={})=>Object.assign({},n,t),ke=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return S;let t=S;return Object.assign((s,i,r={})=>t(s,i,O(n,r)),{Minimatch:class extends t.Minimatch{constructor(i,r={}){super(i,O(n,r))}static defaults(i){return t.defaults(O(n,i)).Minimatch}},unescape:(s,i={})=>t.unescape(s,O(n,i)),escape:(s,i={})=>t.escape(s,O(n,i)),filter:(s,i={})=>t.filter(s,O(n,i)),defaults:s=>t.defaults(O(n,s)),braceExpand:(s,i={})=>t.braceExpand(s,O(n,i)),match:(s,i,r={})=>t.match(s,i,O(n,r)),sep:t.sep,GLOBSTAR:x})};S.defaults=ke;var ft=(n,t={})=>(F(n),t.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:Et(n,{max:t.braceExpandMax}));S.braceExpand=ft;var Ie=100,Fe=/(?<![\\$])\{(-?\d+)\.\.(-?\d+)\}/g,ze=(n,t,e={})=>{let s=new A(t,e);return n=n.filter(i=>s.match(i)),s.options.nonull&&!n.length&&n.push(t),n};S.match=ze;var Lt=/[?*]|[+@!]\(.*?\)|\[|\]/,Ut=(n,t)=>{let e=t+1;(n.charAt(e)==="!"||n.charAt(e)==="^")&&e++;let s=!1;for(;e<n.length;e++){let i=n.charAt(e);if(i==="]"&&s)return e;s=!0,i==="\\"&&e++}return-1},Le=(n,t)=>{if(!t&&(n==="+()"||n==="@()"))return n;let e="";for(let s=0;s<n.length;s++){let i=n.charAt(s);if(i==="\\")e+=n.charAt(++s)||i;else{if(i==="*"||i==="?")return;if(i==="["){let r=Ut(n,s);if(r===-1){e+=i;continue}let o=n.slice(s+1,r);if(o.startsWith("\\")&&(o=o.slice(1)),[...o].length!==1||"!^".includes(n.charAt(s+1)))return;e+=o,s=r}else{if(!t&&"+@!".includes(i)&&n.charAt(s+1)==="("&&n.includes(")",s+2))return;e+=i}}}return e},je=n=>{if(/^[?*+@]\(\)$/.test(n)||n.includes("[:"))return!1;let t=0;for(let e=0;e<n.length;e++){let s=n.charAt(e);if(s==="\\"){if(++e===n.length)return!1}else if(s==="["){let i=Ut(n,e);i!==-1&&(e=i)}else if("+@!?*".includes(s)&&n.charAt(e+1)==="(")t++,e++;else if(s===")"){if(!t--)return!1}else if(s==="|"&&!t)return!1}return!t},ct,jt,C=(n,t)=>typeof n=="string"?t===n:t!==""&&n.testUnchecked(t),Dt=(n,t,e,s,i)=>C(n,t)?e:s!==void 0&&C(n,s)?i:-1,ut=n=>n==="."||n==="..",at=n=>typeof n=="string"&&/^[a-z]:$/i.test(n),U=n=>typeof n=="string"&&/^unc$/i.test(n),lt=n=>{if(n[0]!==""||n[1]!=="")return-1;let t=n[2]!=="?"?2:U(n[3])?4:-1,e=n[t],s=n[t+1];return t!==-1&&e!==void 0&&e!==""&&e!==x&&s!==void 0&&s!==""&&s!==x?t:-1},W=(n,t)=>!ut(n)&&(t||!n.startsWith(".")),z=(n,t,e,s,i)=>{for(let r=t;r<e;){if(n.charCodeAt(r)===46){if(!s)return!0;let c=n.charCodeAt(r+1)===46?r+2:r+1;if(c>=e||B(n.charCodeAt(c),i))return!0}let o=dt(n,r,i);if(o===-1)return!1;for(r=o+1;r<e&&B(n.charCodeAt(r),i);)r++}return!1},B=(n,t)=>t==="/"?n===47:t==="\\"?n===92:n===47||n===92,dt=(n,t,e)=>{if(e!=="both")return n.indexOf(e,t);let s=n.indexOf("/",t),i=n.indexOf("\\",t);return s===-1?i:i===-1?s:Math.min(s,i)},Gt=(n,t,e)=>e!=="both"?n.lastIndexOf(e,t):Math.max(n.lastIndexOf("/",t),n.lastIndexOf("\\",t)),ht={},A=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;#t;#s;#e;#r;#n=[];#o=[];#i=[];#a=new Map;#l=!1;#u;#p=new WeakMap;constructor(t,e={}){F(t),e=e||{},this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion??200,this.pattern=t,this.platform=e.platform||Wt,this.isWindows=this.platform==="win32";let s="allowWindowsEscape";this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e[s]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.#t=!this.preserveMultipleSlashes,this.#e=(e.optimizationLevel??1)>=2;let i=e.normalize;this.#r=i===!0?"NFC":i||void 0,this.make();let r=this.set.map(o=>this.#c(o));this.#i=this.set.map((o,c)=>this.#t&&o.length-1>r[c]),this.#n=this.set.map((o,c)=>{let a=this.#i[c]?o.length-1:o.length,l=o.slice(r[c]+1,a).filter(h=>typeof h=="string"&&!!h);return[...new Set(l)]}),this.#s=this.#n.some(o=>o.length),this.#o=this.set.map((o,c)=>{let[a,l,h]=o;if(this.#i[c]&&o.length===2&&a===x&&l!==x)return"tail";if(this.#i[c]&&e.matchBase&&o.length===1&&a!==x&&a!=="")return"base";if(!(!this.#t||r[c]!==-1)){if(o.length===3&&a===x&&h===x&&l!==x&&l!==""&&this.maxGlobstarRecursion>0)return"mid";if(o.length===2&&l===x&&a!==x&&a!=="")return"head"}})}#h(t){return this.#r?t.normalize(this.#r):t}#c(t){if(!this.isWindows)return-1;if(at(t[0]))return 0;if(t[0]===""&&t[1]===""&&t[2]==="?"&&at(t[3]))return 3;let s=lt(t);return s===-1?-1:s+1}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let e of t)if(typeof e!="string")return!0;return!1}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.#C())];let s=this.globSet.map(r=>this.#M(r));this.globParts=this.preprocess(s),this.#l=!0;let i=this.globParts.map((r,o,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let a=r[2]==="?"&&U(r[3])?6:4,l=r[0]===""&&r[1]===""&&(r[2]==="?"||!Lt.test(r[2]))&&r.slice(3,a).every(f=>!Lt.test(f)),h=/^[a-z]:/i.test(r[0]);if(l)return[...r.slice(0,a).map(f=>this.#h(f)),...r.slice(a).map(f=>this.parse(f))];if(h)return[this.#h(r[0]),...r.slice(1).map(f=>this.parse(f))]}return r.map(a=>this.parse(a))});if(this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let o=this.set[r];o[0]===""&&o[1]===""&&this.globParts[r][2]==="?"&&(at(o[3])||U(this.globParts[r][3]))&&(U(this.globParts[r][3])&&(o[3]="UNC"),o[2]="?")}e.noext||this.mergeRows(),this.#l=!1,this.set.forEach((r,o)=>{for(let c=0;c<r.length;c++)r[c]===ht&&(r[c]=this.parse(this.globParts[o][c]))})}mergeRows(){let t=!0;for(;t;){t=!1;let e=Math.max(0,...this.set.map(s=>s.length));for(let s=0;s<e;s++){let i=new Map;this.set.forEach((o,c)=>{if(!(o[s]instanceof I||o[s]===ht)||!je(this.globParts[c][s]))return;let a=[...this.globParts[c]];a[s]="";let l=`${o.length}/${a.join("/")}`,h=i.get(l);h?h.push(c):i.set(l,[c])});let r=new Set;for(let o of i.values()){if(o.length<2)continue;let[c,...a]=o,h=`@(${o.map(f=>this.globParts[f][s]).join("|")})`;this.globParts[c][s]=h,this.set[c][s]=this.parse(h);for(let f of a)r.add(f)}r.size&&(t=!0,this.set=this.set.filter((o,c)=>!r.has(c)),this.globParts=this.globParts.filter((o,c)=>!r.has(c)))}}}preprocess(t){if(this.options.noglobstar)for(let s of t)for(let i=0;i<s.length;i++)s[i]==="**"&&(s[i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):e>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let i=s;for(;e[i+1]==="**";)i++;i!==s&&e.splice(s,i-s)}return e})}levelOneOptimize(t){return t.map(e=>{let s=this.#c(e)+1;return e=e.reduce((i,r)=>{let o=i[i.length-1];return r==="**"&&o==="**"?i:r===".."&&i.length>s&&o&&o!==".."&&o!=="."&&o!=="**"?(i.pop(),i):(i.push(r),i)},[]),e.length===0?[""]:e})}#g(t){let e=!this.isWindows||!t.includes("\\")?"/":t.includes("/")?"both":"\\",s=this.#t?0:-1,i="",r=0,o,c=0,a=!!this.options.dot;t:for(let l=0;l<this.set.length;l++){let h=this.set[l],f=h[h.length-1],u=s!==-1&&this.#i[l]&&f!==x;if(u&&s===0){let g=Gt(t,t.length,e);if(r=g+1,i=t.slice(r),i===""&&g>=0){let m=g;for(;m>0&&B(t.charCodeAt(m-1),e);)m--;c=m===0?0:Gt(t,m-1,e)+1,o=t.slice(c,m)}let b=this.#e&&(ut(i)||i===""&&o!==void 0&&ut(o));s=b?-1:1,u=!b}let p=-1;if(u&&typeof f=="string"&&(p=Dt(f,i,r,o,c),p===-1))continue;if(this.#s){for(let g of this.#n[l])if(!t.includes(g))continue t}if(u&&typeof f=="object"&&(p=Dt(f,i,r,o,c),p===-1))continue;let d=this.#o[l];if(d==="base"&&u)return"yes";if(d==="tail"&&u){if(this.#e&&z(t,0,p,!0,e))return"maybe";if(!z(t,0,p,a,e))return"yes";continue}if(d==="mid"||d==="head"){let g=this.#y(t,h,d==="head",a,e);if(g!=="no")return g;continue}return"maybe"}return"no"}#m(t,e,s){let i=!!this.options.dot,r=t.length;if(s==="head"){if(r<2||!C(e[0],t[0]))return!1;for(let c=1;c<r;c++)if(!W(t[c],i))return!1;return!0}let o=e[1];if(s==="tail"){let c=r-1;if(!C(o,t[c])&&(t[c]!==""||r===1||!C(o,t[--c])))return!1;for(let a=0;a<c;a++)if(!W(t[a],i))return!1;return!0}for(let c=0;c<r;c++){if(C(o,t[c])&&c+1<r){let a=c+1;for(;a<r&&W(t[a],i);)a++;if(a===r)return!0}if(!W(t[c],i))return!1}return!1}#y(t,e,s,i,r){if(this.#e&&z(t,0,t.length,!0,r))return"maybe";let o=e[s?0:1],c=0;for(let a=dt(t,c,r);a!==-1;a=dt(t,c,r)){let l=a+1;for(;l<t.length&&B(t.charCodeAt(l),r);)l++;if((typeof o=="string"?a-c===o.length&&t.startsWith(o,c):a>c&&o.testUnchecked(t.slice(c,a)))&&!z(t,l,t.length,i,r))return"yes";if(s||z(t,c,l,i,r))return"no";c=l}return"no"}#x(t){let e=ct;return e?.f===t&&e.isWindows===this.isWindows&&e.preserveMultipleSlashes===this.preserveMultipleSlashes&&e.normalize===this.#r?e:void 0}#f(t){let{isWindows:e,preserveMultipleSlashes:s}=this,i=this.#M(e?t.split("\\").join("/"):t),r=this.#r;return r&&(i=i.map(o=>o.normalize(r))),ct={f:t,isWindows:e,preserveMultipleSlashes:s,normalize:r,parts:i},ct}#d(t){let e=[...t],s=!1;do{if(s=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){let c=e[o];o===1&&c===""&&e[0]===""||(c==="."||c==="")&&(s=!0,e.splice(o,1),o--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(s=!0,e.pop())}let i=this.#c(e)+1,r=i;for(;(r=e.indexOf("..",r+1))!==-1;){let o=e[r-1];o&&o!=="."&&o!==".."&&o!=="**"&&(s=!0,e.splice(r-1,2),r=Math.max(r-2,i))}}while(s);return e.length===0?[""]:e}firstPhasePreProcess(t){let{braceExpandMax:e=1e5}=this.options,s=0,i=1e6,r=!1;do{r=!1;for(let o of t){let c=-1;for(;(c=o.indexOf("**",c+1))!==-1;){let h=c;for(;o[h+1]==="**";)h++;h>c&&o.splice(c+1,h-c);let f=o[c+1],u=o[c+2],p=o[c+3];if(f!==".."||!u||u==="."||u===".."||!p||p==="."||p==="..")continue;let d=o.length-1;if(t.length>=e||s+d>i)throw new RangeError("optimizationLevel 2: too many patterns from '**/..'");r=!0,o.splice(c,1);let g=o.slice(0);g[c]="**",s+=d,t.push(g),c--}if(!this.preserveMultipleSlashes){for(let h=1;h<o.length-1;h++){let f=o[h];h===1&&f===""&&o[0]===""||(f==="."||f==="")&&(r=!0,o.splice(h,1),h--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(r=!0,o.pop())}let a=this.#c(o)+1,l=a;for(;(l=o.indexOf("..",l+1))!==-1;){let h=o[l-1];if(h&&h!=="."&&h!==".."&&h!=="**"){r=!0;let u=l===1&&o[l+1]==="**"?["."]:[];o.splice(l-1,2,...u),o.length===0&&o.push(""),l=Math.max(l-2,a)}}}}while(r);return t}secondPhasePreProcess(t){let e=new Set,s=t.filter(o=>{let c=o.join("/");return e.has(c)?!1:(e.add(c),!0)}),i=new Map;for(let o of s){let c=[];for(let a=0;a<o.length;a++)o[a]==="*"&&c.push(a);c.length&&i.set(c.join(","),c)}if(!i.size||s.length*i.size>1e5)return s;let{dot:r}=this.options;return s.filter(o=>{for(let c of i.values()){if(c[c.length-1]>=o.length)continue;let a=[...o],l=!0,h=!1;for(let f of c){let u=o[f];if(u!=="*"){if(!u||u==="**"||!r&&u.startsWith(".")){l=!1;break}a[f]="*",h=!0}}if(l&&h&&e.has(a.join("/")))return!1}return!0})}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,s=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=t.slice(s)),this.negate=e}#b(t,e,s,i){let r=0,o=0,c=this.isWindows?lt(e):-1,a=c===-1?-1:lt(s);if(a!==-1){let l=s[a],h=s[a+1];typeof l!="string"||typeof h!="string"?(r=c,o=a):e[c].toLowerCase()===l.toLowerCase()&&e[c+1].toLowerCase()===h.toLowerCase()&&(r=c+2,o=a+2)}else if(this.isWindows){let l=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),h=!l&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),u=!f&&s[0]===""&&s[1]===""&&s[2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3]),p=h?3:l?0:void 0,d=u?3:f?0:void 0;if(typeof p=="number"&&typeof d=="number"){let[g,b]=[t[p],s[d]];g.toLowerCase()===b.toLowerCase()&&(o=d+1,r=p+1)}}return t=e,s.includes(x)?this.#E(t,s,i,r,o):this.#w(t,s,i,r,o)}#E(t,e,s,i,r){let{head:o,body:c,tail:a,segments:l}=this.#O(e,s,r);if(o.length){let f=i+o.length;if(!this.#w(t,o,s,i,0,f))return!1;i+=o.length,r+=o.length}let h=0;if(a.length){if(a.length+i>t.length)return!1;let f=t.length-a.length;if(this.#w(t,a,s,f,0))h=a.length;else{if(t[t.length-1]!==""||i+a.length===t.length||(f--,!this.#w(t,a,s,f,0)))return!1;h=a.length+1}}if(!c.length){let f=!!h;for(let u=i;u<t.length-h;u++){let p=String(t[u]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.startsWith("."))return!1}return s||f}return!!this.#S(t,l,t.length-h,i,0,s,0,!!h,new Set)}#O(t,e,s){let i=this.#p.get(t);i||(i=[],this.#p.set(t,i));let r=s*2+(e?1:0),o=i[r];if(o)return o;let c=t.indexOf(x,s),a=t.lastIndexOf(x),l=t.slice(s,c),h=t.slice(c+1,e?void 0:a),f=e?[]:t.slice(a+1),u=[[[],0]],p=u[0],d=0,g=[0];for(let m of h)m===x?(g.push(d),p=[[],0],u.push(p)):(p[0].push(m),d++);u.forEach((m,y)=>{m[1]=d-g[y]});let b={head:l,body:h,tail:f,segments:u};return i[r]=b,b}#S(t,e,s,i,r,o,c,a,l){let h=e[r];if(!h){if(o)return i>=s||i===s-1&&t[i]==="";for(let d=i;d<s;d++){a=!0;let g=t[d];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return a}let[f,u]=h,p=o?s:s-u;for(;i<=p;){let d=r*(t.length+1)+i;if(l.has(d))return!1;if(l.add(d),this.#w(t,f,o,i,0,i+f.length)&&c<this.maxGlobstarRecursion){let m=this.#S(t,e,s,i+f.length,r+1,o,c+1,a,l);if(m!==!1)return m}if(i===p)break;let b=t[i];if(b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1;i++}return o||null}#w(t,e,s,i,r,o=t.length){let c,a,l,h;for(c=i,a=r,h=Math.min(o,t.length),l=e.length;c<h&&a<l;c++,a++){let f=e[a],u=t[c];if(f===!1||f===x||!C(f,u))return!1}if(c===h&&a===l)return!0;if(c===h)return s;if(a===l)return c===h-1&&t[c]==="";throw new Error("wtf?")}braceExpand(){return ft(this.pattern,this.options)}#C(){let{pattern:t}=this;if(this.options.nobrace)return this.braceExpand();let e=57344;for(;t.includes(String.fromCharCode(e));)if(++e>63743)return this.braceExpand();let s=String.fromCharCode(e),i=!1,r=t.replace(Fe,(c,a,l)=>{let h=Number(a),f=Number(l);return!Number.isSafeInteger(h)||!Number.isSafeInteger(f)||Math.abs(h-f)+1<Ie?c:(i=!0,`${s}${a}..${l}${s}`)});if(!i)return this.braceExpand();let o=ft(r,this.options);for(let c of o)for(let a of c.split("/")){let l=a.indexOf("[");if(l!==-1&&l<a.lastIndexOf(s))return this.braceExpand()}return this.#u=s,o}parse(t){F(t);let e=this.options;if(t==="**")return x;if(t==="")return"";let{nocase:s,nocaseMagicOnly:i,noext:r=!1,dot:o,normalize:c}=e,a=this.#u,l=a&&t.includes(a)?void 0:Le(t,r);if(l!==void 0&&!(s&&!i&&t.toUpperCase()!==t.toLowerCase()))return this.#h(l);if(this.#l)return ht;let h=this.#a.get(t);return h||(h=new I(t,{nocase:s,noext:r,dot:o,normalize:c,...a&&{rangeMark:a}}),this.#a.set(t,h)),h}#M(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;let s=this.options,i=this.#x(t);if(!i){if(!e&&!this.#r&&(this.#t||this.#s)&&jt!==t){jt=t;let l=this.#g(t);if(l==="no")return s.flipNegate?!1:this.negate;if(l==="yes")return s.flipNegate?!0:!this.negate}i=this.#f(t)}let r=i.parts,o=this.#e?i.resolved??=this.#d(r):r,c=this.set,a=r[r.length-1];if(!a)for(let l=r.length-2;!a&&l>=0;l--)a=r[l];for(let l=0;l<c.length;l++){let h=c[l],f=e?void 0:this.#o[l];if(f==="base"?C(h[0],a):f?this.#m(o,h,f):s.matchBase&&h.length===1?this.#b([a],[a],h,e):this.#b(r,o,h,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(t){return S.defaults(t).Minimatch}};S.Minimatch=A;S.escape=it;S.unescape=ot;import L from"node:path";import De from"node:process";import Ge from"node:path";import Bt,{promises as _s}from"node:fs";import{fileURLToPath as We}from"node:url";var Yt={directory:"isDirectory",file:"isFile"};function Ue(n){if(!(n==="both"||Object.hasOwn(Yt,n)))throw new Error(`Invalid type specified: ${n}`)}var Be=(n,t)=>n==="both"?t.isFile()||t.isDirectory():t[Yt[n]](),Ye=n=>n instanceof URL?We(n):n;function pt(n,{cwd:t=De.cwd(),type:e="file",allowSymlinks:s=!0}={}){Ue(e),t=Ye(t);let i=s?Bt.statSync:Bt.lstatSync;for(let r of n)try{let o=i(Ge.resolve(t,r),{throwIfNoEntry:!1});if(!o)continue;if(Be(e,o))return r}catch{}}import{promisify as qe}from"node:util";import{execFile as Ve,execFileSync as Ls}from"node:child_process";import{fileURLToPath as Xe}from"node:url";var Ds=qe(Ve);function gt(n){return n instanceof URL?Xe(n):n}var Gs=10*1024*1024;var He=Symbol("findUpStop");function Ze(n,t={}){let e=L.resolve(gt(t.cwd)??""),{root:s}=L.parse(e),i=L.resolve(e,gt(t.stopAt)??s),r=t.limit??Number.POSITIVE_INFINITY,o=[n].flat(),c=l=>{if(typeof n!="function")return pt(o,l);let h=n(l.cwd);return typeof h=="string"?pt([h],l):h},a=[];for(;;){let l=c({...t,cwd:e});if(l===He||(l&&a.push(L.resolve(e,l)),e===i||a.length>=r))break;e=L.dirname(e)}return a}function Je(n,t={}){return Ze(n,{...t,limit:1})[0]}import mt from"node:process";import Ke from"node:os";import qt from"node:tty";function M(n,t=globalThis.Deno?globalThis.Deno.args:mt.argv){let e=n.startsWith("-")?"":n.length===1?"-":"--",s=t.indexOf(e+n),i=t.indexOf("--");return s!==-1&&(i===-1||s<i)}var{env:w}=mt,Y;M("no-color")||M("no-colors")||M("color=false")||M("color=never")?Y=0:(M("color")||M("colors")||M("color=true")||M("color=always"))&&(Y=1);function Qe(){if(!("FORCE_COLOR"in w))return;if(w.FORCE_COLOR==="true")return 1;if(w.FORCE_COLOR==="false")return 0;if(w.FORCE_COLOR.length===0)return 1;if(!/^\d+$/v.test(w.FORCE_COLOR))return;let n=Math.min(Number(w.FORCE_COLOR),3);if([0,1,2,3].includes(n))return n}function ts(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function es(n,{streamIsTTY:t,sniffFlags:e=!0}={}){let s=Qe();s!==void 0&&(Y=s);let i=e?Y:s;if(i===0)return 0;if(e){if(M("color=16m")||M("color=full")||M("color=truecolor"))return 3;if(M("color=256"))return 2}if(i!==void 0&&/^\d+$/v.test(w.FORCE_COLOR))return i;if("TF_BUILD"in w&&"AGENT_NAME"in w)return 1;if(n&&!t&&i===void 0)return 0;let r=i||0;if(w.TERM==="dumb")return r;if(mt.platform==="win32"){let o=Ke.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in w)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>Object.hasOwn(w,o))?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>Object.hasOwn(w,o))||w.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in w)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/v.test(w.TEAMCITY_VERSION)?1:0;if(w.COLORTERM==="truecolor"||w.TERM==="xterm-kitty"||w.TERM==="xterm-ghostty"||w.TERM==="wezterm")return 3;if("TERM_PROGRAM"in w){let o=Number((w.TERM_PROGRAM_VERSION||"").split(".",1)[0]);switch(w.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(?:color)?$/iv.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/iv.test(w.TERM)||"COLORTERM"in w?1:r}function Vt(n,t={}){let e=es(n,{streamIsTTY:n&&n.isTTY,...t});return ts(e)}var ss={stdout:Vt({isTTY:qt.isatty(1)}),stderr:Vt({isTTY:qt.isatty(2)})},ns=ss;export{A as Minimatch,Je as findUpSync,S as minimatch,ns as supportsColor};
@@ -4,13 +4,13 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
4
4
 
5
5
  The following inlined npm packages have license or notice files included below.
6
6
 
7
- - @isaacs/nonrecursive-glob-match@1.0.2
7
+ - @isaacs/nonrecursive-glob-match@1.1.0
8
8
  - balanced-match@4.0.4 (https://github.com/juliangruber/balanced-match)
9
9
  - brace-expansion@5.0.12 (https://github.com/juliangruber/brace-expansion)
10
10
  - diff-sequences@29.6.3 (https://github.com/jestjs/jest)
11
11
  - find-up@8.0.0 (https://github.com/sindresorhus/find-up)
12
12
  - locate-path@8.0.0 (https://github.com/sindresorhus/locate-path)
13
- - minimatch@11.0.2 (https://github.com/isaacs/minimatch)
13
+ - minimatch@11.0.5 (https://github.com/isaacs/minimatch)
14
14
  - nanoid@3.3.20 (https://github.com/ai/nanoid)
15
15
  - picocolors@1.1.1 (https://github.com/alexeyraspopov/picocolors)
16
16
  - postcss@8.5.32 (https://github.com/postcss/postcss)
@@ -18,7 +18,7 @@ The following inlined npm packages have license or notice files included below.
18
18
  - supports-color@11.0.0 (https://github.com/chalk/supports-color)
19
19
  - unicorn-magic@0.3.0 (https://github.com/sindresorhus/unicorn-magic)
20
20
 
21
- %% @isaacs/nonrecursive-glob-match@1.0.2 NOTICES AND INFORMATION BEGIN HERE
21
+ %% @isaacs/nonrecursive-glob-match@1.1.0 NOTICES AND INFORMATION BEGIN HERE
22
22
  =========================================
23
23
  # Blue Oak Model License
24
24
 
@@ -76,7 +76,7 @@ without any warranty or condition, and no contributor
76
76
  will be liable to anyone for any damages related to this
77
77
  software or this license, under any kind of legal claim.***
78
78
  =========================================
79
- END OF @isaacs/nonrecursive-glob-match@1.0.2 NOTICES AND INFORMATION
79
+ END OF @isaacs/nonrecursive-glob-match@1.1.0 NOTICES AND INFORMATION
80
80
  %% balanced-match@4.0.4 NOTICES AND INFORMATION BEGIN HERE
81
81
  =========================================
82
82
  (MIT)
@@ -182,7 +182,7 @@ The above copyright notice and this permission notice shall be included in all c
182
182
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
183
183
  =========================================
184
184
  END OF locate-path@8.0.0 NOTICES AND INFORMATION
185
- %% minimatch@11.0.2 NOTICES AND INFORMATION BEGIN HERE
185
+ %% minimatch@11.0.5 NOTICES AND INFORMATION BEGIN HERE
186
186
  =========================================
187
187
  # Blue Oak Model License
188
188
 
@@ -240,7 +240,7 @@ without any warranty or condition, and no contributor
240
240
  will be liable to anyone for any damages related to this
241
241
  software or this license, under any kind of legal claim._**
242
242
  =========================================
243
- END OF minimatch@11.0.2 NOTICES AND INFORMATION
243
+ END OF minimatch@11.0.5 NOTICES AND INFORMATION
244
244
  %% nanoid@3.3.20 NOTICES AND INFORMATION BEGIN HERE
245
245
  =========================================
246
246
  The MIT License (MIT)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-coverage-reports",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -83,7 +83,7 @@
83
83
  "acorn": "^8.19.0",
84
84
  "acorn-loose": "^8.5.2",
85
85
  "acorn-walk": "^8.3.5",
86
- "commander": "^15.0.0",
86
+ "commander": "^15.1.0",
87
87
  "console-grid": "^2.2.4",
88
88
  "convert-source-map": "^2.0.0",
89
89
  "eight-colors": "^1.3.3",
@@ -94,7 +94,7 @@
94
94
  "lz-utils": "^2.1.1",
95
95
  "monocart-locator": "^1.0.6",
96
96
  "node-stream-zip": "^1.16.0",
97
- "ws": "^8.22.0",
97
+ "ws": "^8.22.1",
98
98
  "yazl": "^3.3.1"
99
99
  },
100
100
  "devDependencies": {
@@ -103,8 +103,8 @@
103
103
  "@jsdevtools/coverage-istanbul-loader": "^3.0.5",
104
104
  "@rollup/plugin-commonjs": "^29.0.3",
105
105
  "@rollup/plugin-typescript": "^12.3.1",
106
- "@swc/core": "^1.16.20",
107
- "@types/node": "^26.6.5",
106
+ "@swc/core": "^1.16.22",
107
+ "@types/node": "^26.6.6",
108
108
  "@vitejs/plugin-vue": "^6.0.10",
109
109
  "async-tick": "^1.0.2",
110
110
  "axios": "^1.21.0",
@@ -114,34 +114,34 @@
114
114
  "diff-sequences": "^29.6.3",
115
115
  "eight-colors": "^1.3.3",
116
116
  "esbuild": "^0.28.2",
117
- "eslint": "^10.13.0",
117
+ "eslint": "^10.14.0",
118
118
  "eslint-config-plus": "^2.1.0",
119
119
  "eslint-plugin-html": "^8.2.1",
120
120
  "eslint-plugin-vue": "^10.12.0",
121
121
  "find-up": "^8.0.0",
122
- "koa": "^3.2.1",
122
+ "koa": "^3.3.0",
123
123
  "koa-static-resolver": "^1.1.0",
124
- "minimatch": "^11.0.2",
124
+ "minimatch": "^11.0.5",
125
125
  "monocart-code-viewer": "^1.2.0",
126
126
  "monocart-formatter": "^3.0.1",
127
127
  "open": "^11.0.4",
128
- "playwright": "^1.64.1",
128
+ "playwright": "^1.65.0",
129
129
  "postcss": "^8.5.32",
130
130
  "puppeteer": "^25.16.0",
131
- "rollup": "^4.65.1",
132
- "rollup-plugin-visualizer": "^7.1.1",
133
- "sass": "^1.106.1",
134
- "stylelint": "^17.16.0",
131
+ "rollup": "^4.68.0",
132
+ "rollup-plugin-visualizer": "^7.1.2",
133
+ "sass": "^1.108.1",
134
+ "stylelint": "^18.0.0",
135
135
  "stylelint-config-plus": "^1.2.0",
136
136
  "supports-color": "^11.0.0",
137
137
  "swc-loader": "^0.2.7",
138
138
  "ts-loader": "^9.6.2",
139
- "tslib": "^2.8.1",
139
+ "tslib": "^2.9.1",
140
140
  "tsx": "^4.23.15",
141
141
  "turbogrid": "^3.4.2",
142
142
  "typescript": "^6.0.3",
143
- "vine-ui": "^4.2.0",
144
- "vite": "^8.3.5",
143
+ "vine-ui": "^4.2.1",
144
+ "vite": "^8.3.6",
145
145
  "vite-plugin-css-injected-by-js": "^5.0.3",
146
146
  "webpack": "^5.112.2"
147
147
  },