@visulima/vis 1.0.0-alpha.19 → 1.0.0-alpha.20

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +164 -0
  2. package/LICENSE.md +187 -779
  3. package/README.md +1 -1
  4. package/dist/config/index.d.ts +535 -121
  5. package/dist/config/index.js +1 -1
  6. package/dist/packem_chunks/bin.js +380 -286
  7. package/dist/packem_chunks/config.js +15 -14
  8. package/dist/packem_chunks/doctor-probe.js +2 -2
  9. package/dist/packem_chunks/fix.js +9 -9
  10. package/dist/packem_chunks/handler.js +1 -1
  11. package/dist/packem_chunks/handler10.js +1 -2
  12. package/dist/packem_chunks/handler11.js +5 -1
  13. package/dist/packem_chunks/handler12.js +1 -5
  14. package/dist/packem_chunks/handler13.js +27 -1
  15. package/dist/packem_chunks/handler14.js +5 -20
  16. package/dist/packem_chunks/handler15.js +1 -1
  17. package/dist/packem_chunks/handler16.js +1 -1
  18. package/dist/packem_chunks/handler17.js +1 -1
  19. package/dist/packem_chunks/handler18.js +1 -1
  20. package/dist/packem_chunks/handler19.js +1 -5
  21. package/dist/packem_chunks/handler20.js +5 -2
  22. package/dist/packem_chunks/handler21.js +2 -18
  23. package/dist/packem_chunks/handler22.js +2 -1
  24. package/dist/packem_chunks/handler23.js +18 -1
  25. package/dist/packem_chunks/handler24.js +1 -5
  26. package/dist/packem_chunks/handler25.js +1 -1
  27. package/dist/packem_chunks/handler26.js +5 -3
  28. package/dist/packem_chunks/handler27.js +1 -1
  29. package/dist/packem_chunks/handler28.js +3 -1
  30. package/dist/packem_chunks/handler29.js +1 -7
  31. package/dist/packem_chunks/handler3.js +3 -3
  32. package/dist/packem_chunks/handler30.js +6 -22
  33. package/dist/packem_chunks/handler31.js +33 -3
  34. package/dist/packem_chunks/handler32.js +3 -1
  35. package/dist/packem_chunks/handler33.js +1 -2
  36. package/dist/packem_chunks/handler34.js +25 -24
  37. package/dist/packem_chunks/handler35.js +3 -3
  38. package/dist/packem_chunks/handler36.js +6 -21
  39. package/dist/packem_chunks/handler37.js +22 -428
  40. package/dist/packem_chunks/handler38.js +428 -6
  41. package/dist/packem_chunks/handler39.js +6 -5
  42. package/dist/packem_chunks/handler4.js +8 -2
  43. package/dist/packem_chunks/handler40.js +24 -10
  44. package/dist/packem_chunks/handler41.js +10 -24
  45. package/dist/packem_chunks/handler42.js +1 -1
  46. package/dist/packem_chunks/handler43.js +6 -6
  47. package/dist/packem_chunks/handler44.js +13 -13
  48. package/dist/packem_chunks/handler45.js +213 -3
  49. package/dist/packem_chunks/handler46.js +3 -27
  50. package/dist/packem_chunks/handler47.js +21 -161
  51. package/dist/packem_chunks/handler48.js +166 -33
  52. package/dist/packem_chunks/handler49.js +34 -0
  53. package/dist/packem_chunks/handler5.js +1 -8
  54. package/dist/packem_chunks/handler6.js +1 -1
  55. package/dist/packem_chunks/handler7.js +1 -1
  56. package/dist/packem_chunks/handler8.js +1 -1
  57. package/dist/packem_chunks/handler9.js +2 -1
  58. package/dist/packem_chunks/heal-accept.js +2 -2
  59. package/dist/packem_chunks/heal.js +1 -1
  60. package/dist/packem_chunks/help-command.js +16 -16
  61. package/dist/packem_chunks/index.js +6 -6
  62. package/dist/packem_chunks/keys-refresh.js +4 -0
  63. package/dist/packem_chunks/list.js +3 -0
  64. package/dist/packem_chunks/loader.js +1 -1
  65. package/dist/packem_chunks/prune.js +3 -0
  66. package/dist/packem_chunks/run.js +1 -0
  67. package/dist/packem_chunks/status.js +2 -0
  68. package/dist/packem_chunks/sync.js +2 -0
  69. package/dist/packem_chunks/sync2.js +2 -0
  70. package/dist/packem_chunks/tripwire.js +2 -0
  71. package/dist/packem_shared/advisories-DsynpacV.js +1 -0
  72. package/dist/packem_shared/{ai-analysis-C_GpXikx.js → ai-analysis-uYuTIIXi.js} +1 -1
  73. package/dist/packem_shared/{ai-cache-DrCLD4gc.js → ai-cache-DuwHYx2O.js} +1 -1
  74. package/dist/packem_shared/{ai-fix-CWOz12Om.js → ai-fix-DzrA-dVz.js} +4 -4
  75. package/dist/packem_shared/applyDefaults-BOVDw1jD.js +1 -0
  76. package/dist/packem_shared/build-scripts-DsWMSWDs.js +1 -0
  77. package/dist/packem_shared/{cache-directory-C_U1qsIw.js → cache-directory-DQak1Vjc.js} +1 -1
  78. package/dist/packem_shared/cyclonedx-CiHXuG8M.js +4 -0
  79. package/dist/packem_shared/dependency-scan-DC3nAFHS.js +1 -0
  80. package/dist/packem_shared/{docker-B4s1fjiN.js → docker-B-CIN_nj.js} +19 -19
  81. package/dist/packem_shared/{failure-log-CSC6KfcO.js → failure-log-C3LEMmkq.js} +1 -1
  82. package/dist/packem_shared/{flakiness-DUtrm-wS.js → flakiness-Dq6K4ymq.js} +1 -1
  83. package/dist/packem_shared/glob-MHJQjR39-CQ2GC0b_.js +1 -0
  84. package/dist/packem_shared/{lifecycle-CgK8pcfa.js → lifecycle-Dv3nAtoD.js} +2 -2
  85. package/dist/packem_shared/{lockfile-i-qvq_k8.js → lockfile-C5DYMHVq.js} +1 -1
  86. package/dist/packem_shared/manifests-B0fMp872.js +1 -0
  87. package/dist/packem_shared/min-release-age-BFozFonQ.js +34 -0
  88. package/dist/packem_shared/native-config-sync-Dvi1g2nQ.js +21 -0
  89. package/dist/packem_shared/registry-keys-CewRFW0e.js +1 -0
  90. package/dist/packem_shared/resolve-explicit-CC4Kifk5.js +5 -0
  91. package/dist/packem_shared/{run-summary-utils-CJv75pla.js → run-summary-utils-BaBGP3bo.js} +1 -1
  92. package/dist/packem_shared/{runtime-check-CBU6W8qG.js → runtime-check-BusAwPb2.js} +1 -1
  93. package/dist/packem_shared/scan-progress-CMynp3eA.js +2 -0
  94. package/dist/packem_shared/signatures-5ZdjJ2Pu.js +2 -0
  95. package/dist/packem_shared/{toolchain-B7dckBQ1.js → toolchain-Cc3cwyLP.js} +3 -3
  96. package/dist/packem_shared/typosquats-BCeR-sLf.js +1 -0
  97. package/dist/packem_shared/verify-07kUNTuP.js +1 -0
  98. package/dist/packem_shared/{vis-update-app-D0uL3eO5.js → vis-update-app-CFrlJ3mW.js} +1 -1
  99. package/index.d.ts +358 -0
  100. package/index.js +56 -53
  101. package/package.json +14 -13
  102. package/schemas/vis-config.schema.json +595 -100
  103. package/dist/packem_shared/applyDefaults-DLY94gWA.js +0 -1
  104. package/dist/packem_shared/dependency-scan-YdgNVvoz.js +0 -2
  105. package/dist/packem_shared/readTomlSync-1fKo0R52-DtxWULlF.js +0 -109
  106. package/dist/packem_shared/typosquats-B3A38-qx.js +0 -1
  107. package/dist/packem_shared/verify-WDStBFvK.js +0 -1
@@ -1,18 +1,19 @@
1
- var Yo=Object.defineProperty;var x=(e,t)=>Yo(e,"name",{value:t,configurable:!0});import{createRequire as Qo}from"node:module";import{createJiti as Kn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const es=Qo(import.meta.url),hr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,on=x(e=>{if(typeof hr<"u"&&hr.versions&&hr.versions.node){const[t,o]=hr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return hr.getBuiltinModule(e)}return es(e)},"__cjs_getBuiltinModule"),{createHash:Jn}=on("node:crypto"),{readdirSync:Hn,readFileSync:ts,copyFileSync:rs,unlinkSync:ns}=on("node:fs"),{createRequire:Me}=on("node:module");var os=Object.defineProperty,He=x((e,t)=>os(e,"name",{value:t,configurable:!0}),"K$3"),ss=Object.defineProperty,W=He((e,t)=>ss(e,"name",{value:t,configurable:!0}),"E");const is=Me(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xn=W(e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,o]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ue.getBuiltinModule(e)}return is(e)},"__cjs_getBuiltinModule"),{existsSync:qe}=Xn("node:fs"),{env:Ze,cwd:Yn}=Ue,{createRequire:Ke}=Xn("node:module"),Qn=0,Ve=2,eo=Symbol("findUpStop");var as=Object.defineProperty,cs=W((e,t)=>as(e,"name",{value:t,configurable:!0}),"t$4"),ls=Object.defineProperty,us=cs((e,t)=>ls(e,"name",{value:t,configurable:!0}),"t"),fs=Object.defineProperty,ps=us((e,t)=>fs(e,"name",{value:t,configurable:!0}),"n");const sn=ps(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ds=Object.defineProperty,gs=W((e,t)=>ds(e,"name",{value:t,configurable:!0}),"i$4"),hs=Object.defineProperty,ms=gs((e,t)=>hs(e,"name",{value:t,configurable:!0}),"r"),bs=Object.defineProperty,ys=ms((e,t)=>bs(e,"name",{value:t,configurable:!0}),"i");const jn=ys(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var $s=Object.defineProperty,vs=W((e,t)=>$s(e,"name",{value:t,configurable:!0}),"i$3"),xs=Object.defineProperty,to=vs((e,t)=>xs(e,"name",{value:t,configurable:!0}),"s");const ws=Ke(import.meta.url),mr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,js=to(e=>{if(typeof mr<"u"&&mr.versions&&mr.versions.node){const[t,o]=mr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return mr.getBuiltinModule(e)}return ws(e)},"__cjs_getBuiltinModule"),{lstatSync:On,mkdirSync:Os}=js("node:fs");var Ps=Object.defineProperty,ks=to((e,t)=>Ps(e,"name",{value:t,configurable:!0}),"o");const Es=ks(e=>{sn(e);try{const t=On(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(jn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Os(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=On(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(jn(o))}'`,{cause:t})}},"ensureDirSync");var As=Object.defineProperty,b=W((e,t)=>As(e,"name",{value:t,configurable:!0}),"s$6");let Pn=b(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,p=b((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),m=b((r,n,s,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of c(n))!u.call(r,i)&&i!==s&&t(r,i,{get:b(()=>n[i],"get"),enumerable:!(a=o(n,i))||a.enumerable});return r},"ae"),h=b(r=>m(t({},"__esModule",{value:!0}),r),"oe"),j={};p(j,{zeptomatch:b(()=>Ee,"zeptomatch")});var E=b(r=>{const n=new Set,s=[r];for(let a=0;a<s.length;a++){const i=s[a];if(n.has(i))continue;n.add(i);const{children:l}=i;if(l?.length)for(let f=0,g=l.length;f<g;f++)s.push(l[f])}return Array.from(n)},"M"),P=b(r=>{let n="";const s=E(r);for(let a=0,i=s.length;a<i;a++){const l=s[a];if(!l.regex)continue;const f=l.regex.flags;if(n||(n=f),n!==f)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${f}"`)}return n},"se"),O=b((r,n,s)=>{const a=s.get(r);if(a!==void 0)return a;const i=r.partial??n;let l="";if(r.regex&&(l+=i?"(?:$|":"",l+=r.regex.source),r.children?.length){const f=T(r.children.map(g=>O(g,n,s)).filter(Boolean));if(f?.length){const g=r.children.some(U=>!U.regex||!(U.partial??n)),w=f.length>1||i&&(!l.length||g);l+=w?i?"(?:$|":"(?:":"",l+=f.join("|"),l+=w?")":""}}return r.regex&&(l+=i?")":""),s.set(r,l),l},"O"),B=b((r,n)=>{const s=new Map,a=E(r);for(let i=a.length-1;i>=0;i--){const l=O(a[i],n,s);if(!(i>0))return l}return""},"ie"),T=b(r=>Array.from(new Set(r)),"ue"),k=b((r,n,s)=>k.compile(r,s).test(n),"R");k.compile=(r,n)=>{const s=n?.partial??!1,a=B(r,s),i=P(r);return new RegExp(`^(?:${a})$`,i)};var G=k,X=b((r,n)=>{const s=G.compile(r,n),a=`${s.source.slice(0,-1)}[\\\\/]?$`,i=s.flags;return new RegExp(a,i)},"le"),se=X,Ce=b(r=>{const n=r.map(a=>a.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Be=Ce,Q=b(r=>Array.isArray(r),"j"),I=b(r=>typeof r=="function","_"),Ne=b(r=>r.length===0,"he"),Ie=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=b(r=>typeof r=="number","de"),Qe=b(r=>typeof r=="object"&&r!==null,"xe"),et=b(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=b(r=>typeof r=="string","A"),z=b(r=>r===void 0,"f"),nt=b(r=>{const n=new Map;return s=>{const a=n.get(s);if(a!==void 0)return a;const i=r(s);return n.set(s,i),i}},"ye"),pe=b((r,n,s={})=>{const a={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},i=M(n)(a),l=Math.max(a.index,a.indexBacktrackMax);if(i&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=b((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=b((r,n)=>{const s={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const i=a.charCodeAt(0);s[i]=!0}return a=>{const i=a.input;let l=a.index,f=l;for(;f<i.length&&i.charCodeAt(f)in s;)f+=1;if(f>l){if(!z(n)&&!a.options.silent){const g=i.slice(l,f),w=I(n)?n(g,i,`${l}`):n;z(w)||a.output.push(w)}a.index=f}return!0}},"we"),st=b((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,a=r.flags.replace(/y|$/,"y"),i=new RegExp(s,a);return tt(r)&&I(n)&&!Ie(n)?it(i,n):at(i,n)}},"$e"),it=b((r,n)=>s=>{const a=s.index,i=s.input;r.lastIndex=a;const l=r.exec(i);if(l){const f=r.lastIndex;if(!s.options.silent){const g=n(...l,i,`${a}`);z(g)||s.output.push(g)}return s.index=f,!0}else return!1},"Ee"),at=b((r,n)=>s=>{const a=s.index,i=s.input;if(r.lastIndex=a,r.test(i)){const l=r.lastIndex;if(!z(n)&&!s.options.silent){const f=I(n)?n(i.slice(a,l),i,`${a}`):n;z(f)||s.output.push(f)}return s.index=l,!0}else return!1},"Ce"),de=b((r,n)=>s=>{const a=s.index,i=s.input;if(i.startsWith(r,a)){if(!z(n)&&!s.options.silent){const l=I(n)?n(r,i,`${a}`):n;z(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=b((r,n,s,a)=>{const i=M(r),l=n>1;return re(te(he(f=>{let g=0;for(;g<s;){const w=f.index;if(!i(f)||(g+=1,f.index===w))break}return g>=n},l),a))},"k"),ge=b((r,n)=>ee(r,0,1,n),"L"),J=b((r,n)=>ee(r,0,1/0,n),"$"),ct=b((r,n)=>ee(r,1,1/0,n),"Re"),R=b((r,n)=>{const s=r.map(M);return re(te(he(a=>{for(let i=0,l=s.length;i<l;i++)if(!s[i](a))return!1;return!0}),n))},"x"),A=b((r,n)=>{const s=r.map(M);return re(te(a=>{for(let i=0,l=s.length;i<l;i++)if(s[i](a))return!0;return!1},n))},"p"),he=b((r,n=!0,s=!1)=>{const a=M(r);return n?i=>{const l=i.index,f=i.output.length,g=a(i);return!g&&!s&&(i.indexBacktrackMax=Math.max(i.indexBacktrackMax,i.index)),(!g||s)&&(i.index=l,i.output.length!==f&&(i.output.length=f)),g}:a},"q"),te=b((r,n)=>{const s=M(r);return n?a=>{if(a.options.silent)return s(a);const i=a.output.length;if(s(a)){const l=a.output.splice(i,1/0),f=n(l);return z(f)||a.output.push(f),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=M(n),a=r+=1;return i=>{var l;if(i.options.memoization===!1)return s(i);const f=i.index,g=(l=i.cache)[a]||(l[a]={indexMax:-1,queue:[]}),w=g.queue;if(f<=g.indexMax){const q=g.store||(g.store=new Map);if(w.length){for(let F=0,pr=w.length;F<pr;F+=2){const dr=w[F*2],gr=w[F*2+1];q.set(dr,gr)}w.length=0}const S=q.get(f);if(S===!1)return!1;if(Ye(S))return i.index=S,!0;if(S)return i.index=S.index,S.output?.length&&i.output.push(...S.output),!0}const U=i.output.length,fr=s(i);if(g.indexMax=Math.max(g.indexMax,f),fr){const q=i.index,S=i.output.length;if(S>U){const F=i.output.slice(U,S);w.push(f,{index:q,output:F})}else w.push(f,q);return!0}else return w.push(f,!1),!1}}})(),me=b(r=>{let n;return s=>(n||(n=M(r())),n(s))},"G"),M=nt(r=>{if(I(r))return Ne(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return R(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),C=b(r=>r,"d"),lt=b(r=>typeof r=="string","ke"),ut=b(r=>{const n=new WeakMap,s=new WeakMap;return(a,i)=>{const l=i?.partial?s:n,f=l.get(a);if(f!==void 0)return f;const g=r(a,i);return l.set(a,g),g}},"Be"),ft=b(r=>{const n={},s={};return(a,i)=>{const l=i?.partial?s:n;return l[a]??(l[a]=r(a,i))}},"Pe"),pt=d(/\\./,C),dt=d(/./,C),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=J(A([pt,gt,ht,mt,dt])),yt=bt,$t=b(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=b(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=b(r=>{let n=0;for(let s=0,a=r.length;s<a;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=b((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=b((r,n,s)=>ne(r,n).map(a=>String(a).padStart(s,"0")),"qe"),$e=b((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=b(r=>({children:r}),"y"),D=(()=>{const r=b((n,s,a)=>{if(a.has(n))return;a.add(n);const{children:i}=n;if(!i.length)i.push(s);else for(let l=0,f=i.length;l<f;l++)r(i[l],s,a)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const a=new Set,i=n[s-1],l=n[s];r(i,l,a)}return n[0]}})(),_=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),Pt=d(/[\\\/]/,_),kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),zt=d(/\/(\*\*\/)+/,()=>L([D([_(),y(".+?"),_()]),_()])),Mt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),_()])])),_t=d(/\/(\*\*)$/,()=>L([D([_(),y(".*?")]),y("$")])),Tt=d(/\*\*/,()=>y(".*?")),ve=A([zt,Mt,_t,Tt]),Ct=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),_()])),Bt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([Ct,Bt]),we=d("?",()=>y("[^\\\\/]")),Nt=d("[",C),It=d("]",C),Rt=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,C),Ft=d(/\\./,C),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),Ut=d(/[^$.*+?^(){}[\]\|\\\/]+/,C),qt=A([Ft,Wt,Lt,Dt,Ut]),je=R([Nt,ge(Rt),J(qt),It],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Jt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Ht=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Kt=A([Gt,Jt,Ht]),Oe=R([Zt,Kt,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,_),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>ke),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),Pe=A([ir,sr]),ke=R([Xt,ge(R([Pe,J(R([Qt,Pe]))])),Yt],L),ar=J(A([St,ve,xe,we,je,Oe,ke,jt,Ot,Pt,kt]),D),cr=ar,lr=b(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=b((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,a)=>se(ur(vt(s)),a)),n=ut((s,a)=>Be(s.map(i=>r(i,a))));return(s,a)=>lt(s)?r(s,a):n(s,a)})();var Ee=oe;return h(j)})();return e.default||e},"_lazyMatch"),Kr;const Ss=b((e,t)=>(Kr||(Kr=Pn(),Pn=null),Kr(e,t)),"zeptomatch"),zs=/^[A-Z]:\//i,ie=b((e="")=>e&&e.replaceAll("\\","/").replace(zs,t=>t.toUpperCase()),"normalizeWindowsPath"),Ms=/^[/\\]{2}/,_s=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ro=/^[A-Z]:$/i,kn=/^\/([A-Z]:)?$/i,Ts=/.(\.[^./]+)$/,Cs=/^[/\\]|^[a-z]:[/\\]/i,Bs=/\/$/,Ns=b(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),no=b((e,t)=>{let o="",c=0,u=-1,p=0,m;for(let h=0;h<=e.length;++h){if(h<e.length)m=e[h];else{if(m==="/")break;m="/"}if(m==="/"){if(!(u===h-1||p===1))if(p===2){if(o.length<2||c!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const j=o.lastIndexOf("/");j===-1?(o="",c=0):(o=o.slice(0,j),c=o.length-1-o.lastIndexOf("/")),u=h,p=0;continue}else if(o.length>0){o="",c=0,u=h,p=0;continue}}t&&(o+=o.length>0?"/..":"..",c=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),c=h-u-1;u=h,p=0}else m==="."&&p!==-1?++p:p=-1}return o},"normalizeString"),Re=b(e=>_s.test(e),"isAbsolute"),oo=b(function(e){if(e.length===0)return".";e=ie(e);const t=Ms.exec(e),o=Re(e),c=e.at(-1)==="/";return e=no(e,!o),e.length===0?o?"/":c?"./":".":(c&&(e+="/"),ro.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Re(e)?`/${e}`:e)},"normalize"),so=b((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const c=t.at(-1)==="/",u=o[0]==="/";c&&u?t+=o.slice(1):t+=c||u?o:`/${o}`}else t+=o;return oo(t)},"join"),le=b(function(...e){e=e.map(c=>ie(c));let t="",o=!1;for(let c=e.length-1;c>=-1&&!o;c--){const u=c>=0?e[c]:Ns();!u||u.length===0||(t=`${u}/${t}`,o=Re(u))}return t=no(t,!o),o&&!Re(t)?`/${t}`:t.length>0?t:"."},"resolve");b(function(e){return ie(e)},"toNamespacedPath");const io=b(function(e){return Ts.exec(ie(e))?.[1]??""},"extname");b(function(e,t){const o=le(e).replace(kn,"$1").split("/"),c=le(t).replace(kn,"$1").split("/");if(c[0][1]===":"&&o[0][1]===":"&&o[0]!==c[0])return c.join("/");const u=[...o];for(const p of u){if(c[0]!==p)break;o.shift(),c.shift()}return[...o.map(()=>".."),...c].join("/")},"relative");const an=b(e=>{const t=ie(e).replace(Bs,"").split("/").slice(0,-1);return t.length===1&&ro.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Re(e)?"/":".")},"dirname");b(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ie(e.root?le(...t):t.join("/"))},"format");const Is=b((e,t)=>{const o=ie(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),ao=b(function(e){const t=Cs.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Is(e),c=io(o);return{base:o,dir:an(e),ext:c,name:o.slice(0,o.length-c.length),root:t}},"parse");b((e,t)=>Ss(t,oo(e)),"matchesGlob");var Rs=Object.defineProperty,Y=W((e,t)=>Rs(e,"name",{value:t,configurable:!0}),"i$2");const Ds=Ke(import.meta.url),br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fs=Y(e=>{if(typeof br<"u"&&br.versions&&br.versions.node){const[t,o]=br.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return br.getBuiltinModule(e)}return Ds(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Ws}=Fs("node:url");function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(Rr,"dn$1");He(Rr,"Nr");W(Rr,"w$1");Y(Rr,"getDefaultExportFromCjs");var En,An;function Dr(){return An||(An=1,En=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),En}x(Dr,"gn$1");He(Dr,"Dr");W(Dr,"y$2");Y(Dr,"requireBinaryExtensions");var Ls=Dr();const Us=Rr(Ls),qs=new Set(Us),Zs=new Set(["/","\\",void 0]),Sn=Symbol.for("pathe:normalizedAlias"),Vs=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Gs=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Br=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),co=Y(e=>{if(e[Sn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[c])=>Gs(o,c)));for(const o in t)for(const c in t)c===o||o.startsWith(c)||t[o].startsWith(c)&&Zs.has(t[o][c.length])&&(t[o]=t[c]+t[o].slice(c.length));return Object.defineProperty(t,Sn,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=ie(e),t=co(t);for(const[o,c]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Br(o)?o.slice(0,-1):o;if(Br(e[u.length]))return so(c,e.slice(o.length))}return e},"resolveAlias");Y(e=>Vs.exec(e)?.[2],"filename");Y((e,t)=>{e=ie(e),t=co(t);for(const[o,c]of Object.entries(t).toReversed()){if(!e.startsWith(c))continue;const u=Br(c)?c.slice(0,-1):c;if(Br(e[u.length]))return so(o,e.slice(c.length))}return e},"reverseResolveAlias");const Js=/^(?:\.?\.[/\\]|\.\.\B)/,Hs=/^(?:msys|cygwin)$/;Y(e=>Js.test(e)||e==="..","isRelative");Y(e=>qs.has(io(e).slice(1).toLowerCase()),"isBinaryPath");const Ge=Y(e=>ie(e instanceof URL?Ws(e):e),"toPath");Y(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Hs.test(e)},"isWindows");var Ks=Object.defineProperty,Xs=W((e,t)=>Ks(e,"name",{value:t,configurable:!0}),"p"),Ys=Object.defineProperty,lo=Xs((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"a");const Qs=Ke(import.meta.url),yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,uo=lo(e=>{if(typeof yr<"u"&&yr.versions&&yr.versions.node){const[t,o]=yr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return yr.getBuiltinModule(e)}return Qs(e)},"__cjs_getBuiltinModule"),{stat:ei,lstat:ti}=uo("node:fs/promises"),{fileURLToPath:ri}=uo("node:url");var ni=Object.defineProperty,zn=lo((e,t)=>ni(e,"name",{value:t,configurable:!0}),"n");const oi=zn(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const o=t.cwd?Ge(t.cwd):process.cwd();let c=le(o);const{root:u}=ao(c),p=Ge(t.stopAt??u),m=le(c,p),h=t.type??"file",j=zn(async function(P){return typeof e=="function"?[await e(P)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const E=t.allowSymlinks?ei:ti;for(;c&&c!==m&&c!==u;){const P=await j(c);for(let O of P){if(O===eo)return;if(O===void 0)continue;Buffer.isBuffer(O)?O=O.toString():O instanceof URL&&(O=ri(O));const B=Re(O)?O:le(c,O);try{const T=await E(B);if(h==="file"&&T.isFile()||h==="directory"&&T.isDirectory())return B}catch{}}c=an(c)}},"findUp");var si=Object.defineProperty,ii=W((e,t)=>si(e,"name",{value:t,configurable:!0}),"u$3"),ai=Object.defineProperty,fo=ii((e,t)=>ai(e,"name",{value:t,configurable:!0}),"i");const ci=Ke(import.meta.url),$r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,po=fo(e=>{if(typeof $r<"u"&&$r.versions&&$r.versions.node){const[t,o]=$r.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return $r.getBuiltinModule(e)}return ci(e)},"__cjs_getBuiltinModule"),{statSync:li,lstatSync:ui}=po("node:fs"),{fileURLToPath:fi}=po("node:url");var pi=Object.defineProperty,Mn=fo((e,t)=>pi(e,"name",{value:t,configurable:!0}),"o");const di=Mn((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const o=t.cwd?Ge(t.cwd):process.cwd();let c=le(o);const{root:u}=ao(c),p=Ge(t.stopAt??u),m=le(c,p),h=t.type??"file",j=Mn(function(P){return typeof e=="function"?[e(P)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const E=t.allowSymlinks?li:ui;for(;c&&c!==m&&c!==u;){for(let P of j(c)){if(P===eo)return;if(P===void 0)continue;Buffer.isBuffer(P)?P=P.toString():P instanceof URL&&(P=fi(P));const O=Re(P)?P:le(c,P);try{const B=E(O);if(h==="file"&&B.isFile()||h==="directory"&&B.isDirectory())return O}catch{}}c=an(c)}},"findUpSync");var gi=Object.defineProperty,go=W((e,t)=>gi(e,"name",{value:t,configurable:!0}),"t$2"),hi=Object.defineProperty,cn=go((e,t)=>hi(e,"name",{value:t,configurable:!0}),"s");const mi=Ke(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,bi=cn(e=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[t,o]=vr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return vr.getBuiltinModule(e)}return mi(e)},"__cjs_getBuiltinModule"),{access:yi}=bi("node:fs/promises");var $i=Object.defineProperty,vi=cn((e,t)=>$i(e,"name",{value:t,configurable:!0}),"o");async function Se(e,t=Qn){sn(e),e=Ge(e);try{return await yi(e,t),!0}catch{return!1}}x(Se,"Q$3");He(Se,"se");W(Se,"i$1");go(Se,"d");cn(Se,"m");vi(Se,"isAccessible");var xi=Object.defineProperty,ho=W((e,t)=>xi(e,"name",{value:t,configurable:!0}),"t$1"),wi=Object.defineProperty,ln=ho((e,t)=>wi(e,"name",{value:t,configurable:!0}),"t");const ji=Ke(import.meta.url),xr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Oi=ln(e=>{if(typeof xr<"u"&&xr.versions&&xr.versions.node){const[t,o]=xr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xr.getBuiltinModule(e)}return ji(e)},"__cjs_getBuiltinModule"),{accessSync:Pi}=Oi("node:fs");var ki=Object.defineProperty,Ei=ln((e,t)=>ki(e,"name",{value:t,configurable:!0}),"o");function ze(e,t=Qn){sn(e),e=Ge(e);try{return Pi(e,t),!0}catch{return!1}}x(ze,"ee$1");He(ze,"ie");W(ze,"i");ho(ze,"d");ln(ze,"m");Ei(ze,"isAccessibleSync");var Ai=Object.defineProperty,mo=W((e,t)=>Ai(e,"name",{value:t,configurable:!0}),"o"),Si=Object.defineProperty,bo=mo((e,t)=>Si(e,"name",{value:t,configurable:!0}),"o"),zi=Object.defineProperty,Mi=bo((e,t)=>zi(e,"name",{value:t,configurable:!0}),"o");let yo=class extends Error{static{x(this,"Jn")}static{He(this,"Xr")}static{W(this,"s")}static{mo(this,"u")}static{bo(this,"n")}static{Mi(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var _i=Object.defineProperty,Ti=W((e,t)=>_i(e,"name",{value:t,configurable:!0}),"$e"),Ci=Object.defineProperty,un=Ti((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"W"),Bi=Object.defineProperty,$=un((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"u$1");let _n=$(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,p=$((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),m=$((r,n,s,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of c(n))!u.call(r,i)&&i!==s&&t(r,i,{get:$(()=>n[i],"get"),enumerable:!(a=o(n,i))||a.enumerable});return r},"ae"),h=$(r=>m(t({},"__esModule",{value:!0}),r),"oe"),j={};p(j,{zeptomatch:$(()=>Ee,"zeptomatch")});var E=$(r=>{const n=new Set,s=[r];for(let a=0;a<s.length;a++){const i=s[a];if(n.has(i))continue;n.add(i);const{children:l}=i;if(l?.length)for(let f=0,g=l.length;f<g;f++)s.push(l[f])}return Array.from(n)},"M"),P=$(r=>{let n="";const s=E(r);for(let a=0,i=s.length;a<i;a++){const l=s[a];if(!l.regex)continue;const f=l.regex.flags;if(n||(n=f),n!==f)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${f}"`)}return n},"se"),O=$((r,n,s)=>{const a=s.get(r);if(a!==void 0)return a;const i=r.partial??n;let l="";if(r.regex&&(l+=i?"(?:$|":"",l+=r.regex.source),r.children?.length){const f=T(r.children.map(g=>O(g,n,s)).filter(Boolean));if(f?.length){const g=r.children.some(U=>!U.regex||!(U.partial??n)),w=f.length>1||i&&(!l.length||g);l+=w?i?"(?:$|":"(?:":"",l+=f.join("|"),l+=w?")":""}}return r.regex&&(l+=i?")":""),s.set(r,l),l},"O"),B=$((r,n)=>{const s=new Map,a=E(r);for(let i=a.length-1;i>=0;i--){const l=O(a[i],n,s);if(!(i>0))return l}return""},"ie"),T=$(r=>Array.from(new Set(r)),"ue"),k=$((r,n,s)=>k.compile(r,s).test(n),"R");k.compile=(r,n)=>{const s=n?.partial??!1,a=B(r,s),i=P(r);return new RegExp(`^(?:${a})$`,i)};var G=k,X=$((r,n)=>{const s=G.compile(r,n),a=`${s.source.slice(0,-1)}[\\\\/]?$`,i=s.flags;return new RegExp(a,i)},"le"),se=X,Ce=$(r=>{const n=r.map(a=>a.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Be=Ce,Q=$(r=>Array.isArray(r),"j"),I=$(r=>typeof r=="function","_"),Ne=$(r=>r.length===0,"he"),Ie=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=$(r=>typeof r=="number","de"),Qe=$(r=>typeof r=="object"&&r!==null,"xe"),et=$(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=$(r=>typeof r=="string","A"),z=$(r=>r===void 0,"f"),nt=$(r=>{const n=new Map;return s=>{const a=n.get(s);if(a!==void 0)return a;const i=r(s);return n.set(s,i),i}},"ye"),pe=$((r,n,s={})=>{const a={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},i=M(n)(a),l=Math.max(a.index,a.indexBacktrackMax);if(i&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=$((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=$((r,n)=>{const s={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const i=a.charCodeAt(0);s[i]=!0}return a=>{const i=a.input;let l=a.index,f=l;for(;f<i.length&&i.charCodeAt(f)in s;)f+=1;if(f>l){if(!z(n)&&!a.options.silent){const g=i.slice(l,f),w=I(n)?n(g,i,`${l}`):n;z(w)||a.output.push(w)}a.index=f}return!0}},"we"),st=$((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,a=r.flags.replace(/y|$/,"y"),i=new RegExp(s,a);return tt(r)&&I(n)&&!Ie(n)?it(i,n):at(i,n)}},"$e"),it=$((r,n)=>s=>{const a=s.index,i=s.input;r.lastIndex=a;const l=r.exec(i);if(l){const f=r.lastIndex;if(!s.options.silent){const g=n(...l,i,`${a}`);z(g)||s.output.push(g)}return s.index=f,!0}else return!1},"Ee"),at=$((r,n)=>s=>{const a=s.index,i=s.input;if(r.lastIndex=a,r.test(i)){const l=r.lastIndex;if(!z(n)&&!s.options.silent){const f=I(n)?n(i.slice(a,l),i,`${a}`):n;z(f)||s.output.push(f)}return s.index=l,!0}else return!1},"Ce"),de=$((r,n)=>s=>{const a=s.index,i=s.input;if(i.startsWith(r,a)){if(!z(n)&&!s.options.silent){const l=I(n)?n(r,i,`${a}`):n;z(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=$((r,n,s,a)=>{const i=M(r),l=n>1;return re(te(he(f=>{let g=0;for(;g<s;){const w=f.index;if(!i(f)||(g+=1,f.index===w))break}return g>=n},l),a))},"k"),ge=$((r,n)=>ee(r,0,1,n),"L"),J=$((r,n)=>ee(r,0,1/0,n),"$"),ct=$((r,n)=>ee(r,1,1/0,n),"Re"),R=$((r,n)=>{const s=r.map(M);return re(te(he(a=>{for(let i=0,l=s.length;i<l;i++)if(!s[i](a))return!1;return!0}),n))},"x"),A=$((r,n)=>{const s=r.map(M);return re(te(a=>{for(let i=0,l=s.length;i<l;i++)if(s[i](a))return!0;return!1},n))},"p"),he=$((r,n=!0,s=!1)=>{const a=M(r);return n?i=>{const l=i.index,f=i.output.length,g=a(i);return!g&&!s&&(i.indexBacktrackMax=Math.max(i.indexBacktrackMax,i.index)),(!g||s)&&(i.index=l,i.output.length!==f&&(i.output.length=f)),g}:a},"q"),te=$((r,n)=>{const s=M(r);return n?a=>{if(a.options.silent)return s(a);const i=a.output.length;if(s(a)){const l=a.output.splice(i,1/0),f=n(l);return z(f)||a.output.push(f),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=M(n),a=r+=1;return i=>{var l;if(i.options.memoization===!1)return s(i);const f=i.index,g=(l=i.cache)[a]||(l[a]={indexMax:-1,queue:[]}),w=g.queue;if(f<=g.indexMax){const q=g.store||(g.store=new Map);if(w.length){for(let F=0,pr=w.length;F<pr;F+=2){const dr=w[F*2],gr=w[F*2+1];q.set(dr,gr)}w.length=0}const S=q.get(f);if(S===!1)return!1;if(Ye(S))return i.index=S,!0;if(S)return i.index=S.index,S.output?.length&&i.output.push(...S.output),!0}const U=i.output.length,fr=s(i);if(g.indexMax=Math.max(g.indexMax,f),fr){const q=i.index,S=i.output.length;if(S>U){const F=i.output.slice(U,S);w.push(f,{index:q,output:F})}else w.push(f,q);return!0}else return w.push(f,!1),!1}}})(),me=$(r=>{let n;return s=>(n||(n=M(r())),n(s))},"G"),M=nt(r=>{if(I(r))return Ne(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return R(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),C=$(r=>r,"d"),lt=$(r=>typeof r=="string","ke"),ut=$(r=>{const n=new WeakMap,s=new WeakMap;return(a,i)=>{const l=i?.partial?s:n,f=l.get(a);if(f!==void 0)return f;const g=r(a,i);return l.set(a,g),g}},"Be"),ft=$(r=>{const n={},s={};return(a,i)=>{const l=i?.partial?s:n;return l[a]??(l[a]=r(a,i))}},"Pe"),pt=d(/\\./,C),dt=d(/./,C),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=J(A([pt,gt,ht,mt,dt])),yt=bt,$t=$(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=$(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=$(r=>{let n=0;for(let s=0,a=r.length;s<a;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=$((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=$((r,n,s)=>ne(r,n).map(a=>String(a).padStart(s,"0")),"qe"),$e=$((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=$(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=$(r=>({children:r}),"y"),D=(()=>{const r=$((n,s,a)=>{if(a.has(n))return;a.add(n);const{children:i}=n;if(!i.length)i.push(s);else for(let l=0,f=i.length;l<f;l++)r(i[l],s,a)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const a=new Set,i=n[s-1],l=n[s];r(i,l,a)}return n[0]}})(),_=$(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),Pt=d(/[\\\/]/,_),kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),zt=d(/\/(\*\*\/)+/,()=>L([D([_(),y(".+?"),_()]),_()])),Mt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),_()])])),_t=d(/\/(\*\*)$/,()=>L([D([_(),y(".*?")]),y("$")])),Tt=d(/\*\*/,()=>y(".*?")),ve=A([zt,Mt,_t,Tt]),Ct=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),_()])),Bt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([Ct,Bt]),we=d("?",()=>y("[^\\\\/]")),Nt=d("[",C),It=d("]",C),Rt=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,C),Ft=d(/\\./,C),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),Ut=d(/[^$.*+?^(){}[\]\|\\\/]+/,C),qt=A([Ft,Wt,Lt,Dt,Ut]),je=R([Nt,ge(Rt),J(qt),It],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Jt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Ht=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Kt=A([Gt,Jt,Ht]),Oe=R([Zt,Kt,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,_),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>ke),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),Pe=A([ir,sr]),ke=R([Xt,ge(R([Pe,J(R([Qt,Pe]))])),Yt],L),ar=J(A([St,ve,xe,we,je,Oe,ke,jt,Ot,Pt,kt]),D),cr=ar,lr=$(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=$((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,a)=>se(ur(vt(s)),a)),n=ut((s,a)=>Be(s.map(i=>r(i,a))));return(s,a)=>lt(s)?r(s,a):n(s,a)})();var Ee=oe;return h(j)})();return e.default||e},"_lazyMatch"),Xr;const Ni=$((e,t)=>(Xr||(Xr=_n(),_n=null),Xr(e,t)),"default");var Ii=Object.defineProperty,Ri=un((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"t$1");const Di=/^[A-Z]:\//i,Fe=Ri((e="")=>e&&e.replaceAll("\\","/").replace(Di,t=>t.toUpperCase()),"normalizeWindowsPath");var Fi=Object.defineProperty,H=un((e,t)=>Fi(e,"name",{value:t,configurable:!0}),"r");const Wi=/^[/\\]{2}/,Li=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,$o=/^[A-Z]:$/i,Tn=/^\/([A-Z]:)?$/i,Ui=/.(\.[^./]+)$/,qi=/^[/\\]|^[a-z]:[/\\]/i,Zi=/\/$/,Vi=H(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),vo=H((e,t)=>{let o="",c=0,u=-1,p=0,m;for(let h=0;h<=e.length;++h){if(h<e.length)m=e[h];else{if(m==="/")break;m="/"}if(m==="/"){if(!(u===h-1||p===1))if(p===2){if(o.length<2||c!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const j=o.lastIndexOf("/");j===-1?(o="",c=0):(o=o.slice(0,j),c=o.length-1-o.lastIndexOf("/")),u=h,p=0;continue}else if(o.length>0){o="",c=0,u=h,p=0;continue}}t&&(o+=o.length>0?"/..":"..",c=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),c=h-u-1;u=h,p=0}else m==="."&&p!==-1?++p:p=-1}return o},"normalizeString"),Ar=H(e=>Li.test(e),"isAbsolute"),xo=H(function(e){if(e.length===0)return".";e=Fe(e);const t=Wi.exec(e),o=Ar(e),c=e.at(-1)==="/";return e=vo(e,!o),e.length===0?o?"/":c?"./":".":(c&&(e+="/"),$o.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ar(e)?`/${e}`:e)},"normalize"),Ae=H((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const c=t.at(-1)==="/",u=o[0]==="/";c&&u?t+=o.slice(1):t+=c||u?o:`/${o}`}else t+=o;return xo(t)},"join"),en=H(function(...e){e=e.map(c=>Fe(c));let t="",o=!1;for(let c=e.length-1;c>=-1&&!o;c--){const u=c>=0?e[c]:Vi();!u||u.length===0||(t=`${u}/${t}`,o=Ar(u))}return t=vo(t,!o),o&&!Ar(t)?`/${t}`:t.length>0?t:"."},"resolve");H(function(e){return Fe(e)},"toNamespacedPath");const Gi=H(function(e){return Ui.exec(Fe(e))?.[1]??""},"extname");H(function(e,t){const o=en(e).replace(Tn,"$1").split("/"),c=en(t).replace(Tn,"$1").split("/");if(c[0][1]===":"&&o[0][1]===":"&&o[0]!==c[0])return c.join("/");const u=[...o];for(const p of u){if(c[0]!==p)break;o.shift(),c.shift()}return[...o.map(()=>".."),...c].join("/")},"relative");const fn=H(e=>{const t=Fe(e).replace(Zi,"").split("/").slice(0,-1);return t.length===1&&$o.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ar(e)?"/":".")},"dirname");H(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return Fe(e.root?en(...t):t.join("/"))},"format");const Ji=H((e,t)=>{const o=Fe(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename");H(function(e){const t=qi.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Ji(e),c=Gi(o);return{base:o,dir:fn(e),ext:c,name:o.slice(0,o.length-c.length),root:t}},"parse");H((e,t)=>Ni(t,xo(e)),"matchesGlob");var Hi=Object.defineProperty,pn=W((e,t)=>Hi(e,"name",{value:t,configurable:!0}),"u");const Nr=pn((e,t)=>(t?.create&&Es(e),e),"useDirectory");pn(async(e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Nr(Ae(Ze.CACHE_DIR,e),t);const o=await oi("package.json",{cwd:t?.cwd??Yn(),type:"file"});if(!o){if(t?.throwError)throw new yo("No such file or directory found.");return}const c=Ae(fn(o),"node_modules"),u=Ae(c,".cache"),p=Ae(u,e);if(!(qe(p)&&!await Se(p,Ve))&&!(qe(u)&&!await Se(u,Ve))&&!(qe(c)&&!await Se(c,Ve)))return Nr(p,t)},"findCacheDirectory");const Ki=pn((e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Nr(Ae(Ze.CACHE_DIR,e),t);const o=di("package.json",{cwd:t?.cwd??Yn(),type:"file"});if(!o){if(t?.throwError)throw new yo("No such file or directory found.");return}const c=Ae(fn(o),"node_modules"),u=Ae(c,".cache"),p=Ae(u,e);if(!(qe(p)&&!ze(p,Ve))&&!(qe(u)&&!ze(u,Ve))&&!(qe(c)&&!ze(c,Ve)))return Nr(p,t)},"findCacheDirectorySync"),wo=Ki,tn=0,jo=4,Eu=Symbol("findUpStop"),Au=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var Xi=Object.defineProperty,Yi=x((e,t)=>Xi(e,"name",{value:t,configurable:!0}),"t$a"),Qi=Object.defineProperty,ea=Yi((e,t)=>Qi(e,"name",{value:t,configurable:!0}),"t"),ta=Object.defineProperty,ra=ea((e,t)=>ta(e,"name",{value:t,configurable:!0}),"n");const Fr=ra(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var na=Object.defineProperty,oa=x((e,t)=>na(e,"name",{value:t,configurable:!0}),"i$9"),sa=Object.defineProperty,ia=oa((e,t)=>sa(e,"name",{value:t,configurable:!0}),"r"),aa=Object.defineProperty,ca=ia((e,t)=>aa(e,"name",{value:t,configurable:!0}),"i");const Cn=ca(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var la=Object.defineProperty,ua=x((e,t)=>la(e,"name",{value:t,configurable:!0}),"i$8"),fa=Object.defineProperty,Oo=ua((e,t)=>fa(e,"name",{value:t,configurable:!0}),"s");const pa=Me(import.meta.url),wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,da=Oo(e=>{if(typeof wr<"u"&&wr.versions&&wr.versions.node){const[t,o]=wr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return wr.getBuiltinModule(e)}return pa(e)},"__cjs_getBuiltinModule"),{lstatSync:Bn,mkdirSync:ga}=da("node:fs");var ha=Object.defineProperty,ma=Oo((e,t)=>ha(e,"name",{value:t,configurable:!0}),"o");const Wr=ma(e=>{Fr(e);try{const t=Bn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Cn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{ga(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Bn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Cn(o))}'`,{cause:t})}},"ensureDirSync");var ba=Object.defineProperty,ya=x((e,t)=>ba(e,"name",{value:t,configurable:!0}),"$e"),$a=Object.defineProperty,dn=ya((e,t)=>$a(e,"name",{value:t,configurable:!0}),"W"),va=Object.defineProperty,v=dn((e,t)=>va(e,"name",{value:t,configurable:!0}),"u$1");let Nn=v(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,p=v((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),m=v((r,n,s,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of c(n))!u.call(r,i)&&i!==s&&t(r,i,{get:v(()=>n[i],"get"),enumerable:!(a=o(n,i))||a.enumerable});return r},"ae"),h=v(r=>m(t({},"__esModule",{value:!0}),r),"oe"),j={};p(j,{zeptomatch:v(()=>Ee,"zeptomatch")});var E=v(r=>{const n=new Set,s=[r];for(let a=0;a<s.length;a++){const i=s[a];if(n.has(i))continue;n.add(i);const{children:l}=i;if(l?.length)for(let f=0,g=l.length;f<g;f++)s.push(l[f])}return Array.from(n)},"M"),P=v(r=>{let n="";const s=E(r);for(let a=0,i=s.length;a<i;a++){const l=s[a];if(!l.regex)continue;const f=l.regex.flags;if(n||(n=f),n!==f)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${f}"`)}return n},"se"),O=v((r,n,s)=>{const a=s.get(r);if(a!==void 0)return a;const i=r.partial??n;let l="";if(r.regex&&(l+=i?"(?:$|":"",l+=r.regex.source),r.children?.length){const f=T(r.children.map(g=>O(g,n,s)).filter(Boolean));if(f?.length){const g=r.children.some(U=>!U.regex||!(U.partial??n)),w=f.length>1||i&&(!l.length||g);l+=w?i?"(?:$|":"(?:":"",l+=f.join("|"),l+=w?")":""}}return r.regex&&(l+=i?")":""),s.set(r,l),l},"O"),B=v((r,n)=>{const s=new Map,a=E(r);for(let i=a.length-1;i>=0;i--){const l=O(a[i],n,s);if(!(i>0))return l}return""},"ie"),T=v(r=>Array.from(new Set(r)),"ue"),k=v((r,n,s)=>k.compile(r,s).test(n),"R");k.compile=(r,n)=>{const s=n?.partial??!1,a=B(r,s),i=P(r);return new RegExp(`^(?:${a})$`,i)};var G=k,X=v((r,n)=>{const s=G.compile(r,n),a=`${s.source.slice(0,-1)}[\\\\/]?$`,i=s.flags;return new RegExp(a,i)},"le"),se=X,Ce=v(r=>{const n=r.map(a=>a.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Be=Ce,Q=v(r=>Array.isArray(r),"j"),I=v(r=>typeof r=="function","_"),Ne=v(r=>r.length===0,"he"),Ie=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=v(r=>typeof r=="number","de"),Qe=v(r=>typeof r=="object"&&r!==null,"xe"),et=v(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=v(r=>typeof r=="string","A"),z=v(r=>r===void 0,"f"),nt=v(r=>{const n=new Map;return s=>{const a=n.get(s);if(a!==void 0)return a;const i=r(s);return n.set(s,i),i}},"ye"),pe=v((r,n,s={})=>{const a={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},i=M(n)(a),l=Math.max(a.index,a.indexBacktrackMax);if(i&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=v((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=v((r,n)=>{const s={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const i=a.charCodeAt(0);s[i]=!0}return a=>{const i=a.input;let l=a.index,f=l;for(;f<i.length&&i.charCodeAt(f)in s;)f+=1;if(f>l){if(!z(n)&&!a.options.silent){const g=i.slice(l,f),w=I(n)?n(g,i,`${l}`):n;z(w)||a.output.push(w)}a.index=f}return!0}},"we"),st=v((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,a=r.flags.replace(/y|$/,"y"),i=new RegExp(s,a);return tt(r)&&I(n)&&!Ie(n)?it(i,n):at(i,n)}},"$e"),it=v((r,n)=>s=>{const a=s.index,i=s.input;r.lastIndex=a;const l=r.exec(i);if(l){const f=r.lastIndex;if(!s.options.silent){const g=n(...l,i,`${a}`);z(g)||s.output.push(g)}return s.index=f,!0}else return!1},"Ee"),at=v((r,n)=>s=>{const a=s.index,i=s.input;if(r.lastIndex=a,r.test(i)){const l=r.lastIndex;if(!z(n)&&!s.options.silent){const f=I(n)?n(i.slice(a,l),i,`${a}`):n;z(f)||s.output.push(f)}return s.index=l,!0}else return!1},"Ce"),de=v((r,n)=>s=>{const a=s.index,i=s.input;if(i.startsWith(r,a)){if(!z(n)&&!s.options.silent){const l=I(n)?n(r,i,`${a}`):n;z(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=v((r,n,s,a)=>{const i=M(r),l=n>1;return re(te(he(f=>{let g=0;for(;g<s;){const w=f.index;if(!i(f)||(g+=1,f.index===w))break}return g>=n},l),a))},"k"),ge=v((r,n)=>ee(r,0,1,n),"L"),J=v((r,n)=>ee(r,0,1/0,n),"$"),ct=v((r,n)=>ee(r,1,1/0,n),"Re"),R=v((r,n)=>{const s=r.map(M);return re(te(he(a=>{for(let i=0,l=s.length;i<l;i++)if(!s[i](a))return!1;return!0}),n))},"x"),A=v((r,n)=>{const s=r.map(M);return re(te(a=>{for(let i=0,l=s.length;i<l;i++)if(s[i](a))return!0;return!1},n))},"p"),he=v((r,n=!0,s=!1)=>{const a=M(r);return n?i=>{const l=i.index,f=i.output.length,g=a(i);return!g&&!s&&(i.indexBacktrackMax=Math.max(i.indexBacktrackMax,i.index)),(!g||s)&&(i.index=l,i.output.length!==f&&(i.output.length=f)),g}:a},"q"),te=v((r,n)=>{const s=M(r);return n?a=>{if(a.options.silent)return s(a);const i=a.output.length;if(s(a)){const l=a.output.splice(i,1/0),f=n(l);return z(f)||a.output.push(f),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=M(n),a=r+=1;return i=>{var l;if(i.options.memoization===!1)return s(i);const f=i.index,g=(l=i.cache)[a]||(l[a]={indexMax:-1,queue:[]}),w=g.queue;if(f<=g.indexMax){const q=g.store||(g.store=new Map);if(w.length){for(let F=0,pr=w.length;F<pr;F+=2){const dr=w[F*2],gr=w[F*2+1];q.set(dr,gr)}w.length=0}const S=q.get(f);if(S===!1)return!1;if(Ye(S))return i.index=S,!0;if(S)return i.index=S.index,S.output?.length&&i.output.push(...S.output),!0}const U=i.output.length,fr=s(i);if(g.indexMax=Math.max(g.indexMax,f),fr){const q=i.index,S=i.output.length;if(S>U){const F=i.output.slice(U,S);w.push(f,{index:q,output:F})}else w.push(f,q);return!0}else return w.push(f,!1),!1}}})(),me=v(r=>{let n;return s=>(n||(n=M(r())),n(s))},"G"),M=nt(r=>{if(I(r))return Ne(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return R(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),C=v(r=>r,"d"),lt=v(r=>typeof r=="string","ke"),ut=v(r=>{const n=new WeakMap,s=new WeakMap;return(a,i)=>{const l=i?.partial?s:n,f=l.get(a);if(f!==void 0)return f;const g=r(a,i);return l.set(a,g),g}},"Be"),ft=v(r=>{const n={},s={};return(a,i)=>{const l=i?.partial?s:n;return l[a]??(l[a]=r(a,i))}},"Pe"),pt=d(/\\./,C),dt=d(/./,C),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=J(A([pt,gt,ht,mt,dt])),yt=bt,$t=v(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=v(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=v(r=>{let n=0;for(let s=0,a=r.length;s<a;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=v((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=v((r,n,s)=>ne(r,n).map(a=>String(a).padStart(s,"0")),"qe"),$e=v((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=v(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=v(r=>({children:r}),"y"),D=(()=>{const r=v((n,s,a)=>{if(a.has(n))return;a.add(n);const{children:i}=n;if(!i.length)i.push(s);else for(let l=0,f=i.length;l<f;l++)r(i[l],s,a)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const a=new Set,i=n[s-1],l=n[s];r(i,l,a)}return n[0]}})(),_=v(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),Pt=d(/[\\\/]/,_),kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),zt=d(/\/(\*\*\/)+/,()=>L([D([_(),y(".+?"),_()]),_()])),Mt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),_()])])),_t=d(/\/(\*\*)$/,()=>L([D([_(),y(".*?")]),y("$")])),Tt=d(/\*\*/,()=>y(".*?")),ve=A([zt,Mt,_t,Tt]),Ct=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),_()])),Bt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([Ct,Bt]),we=d("?",()=>y("[^\\\\/]")),Nt=d("[",C),It=d("]",C),Rt=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,C),Ft=d(/\\./,C),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),Ut=d(/[^$.*+?^(){}[\]\|\\\/]+/,C),qt=A([Ft,Wt,Lt,Dt,Ut]),je=R([Nt,ge(Rt),J(qt),It],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Jt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Ht=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Kt=A([Gt,Jt,Ht]),Oe=R([Zt,Kt,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,_),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>ke),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),Pe=A([ir,sr]),ke=R([Xt,ge(R([Pe,J(R([Qt,Pe]))])),Yt],L),ar=J(A([St,ve,xe,we,je,Oe,ke,jt,Ot,Pt,kt]),D),cr=ar,lr=v(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=v((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,a)=>se(ur(vt(s)),a)),n=ut((s,a)=>Be(s.map(i=>r(i,a))));return(s,a)=>lt(s)?r(s,a):n(s,a)})();var Ee=oe;return h(j)})();return e.default||e},"_lazyMatch"),Yr;const xa=v((e,t)=>(Yr||(Yr=Nn(),Nn=null),Yr(e,t)),"default");var wa=Object.defineProperty,ja=dn((e,t)=>wa(e,"name",{value:t,configurable:!0}),"t$1");const Oa=/^[A-Z]:\//i,ae=ja((e="")=>e&&e.replaceAll("\\","/").replace(Oa,t=>t.toUpperCase()),"normalizeWindowsPath");var Pa=Object.defineProperty,K=dn((e,t)=>Pa(e,"name",{value:t,configurable:!0}),"r");const ka=/^[/\\]{2}/,Ea=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Po=/^[A-Z]:$/i,In=/^\/([A-Z]:)?$/i,Aa=/.(\.[^./]+)$/,Sa=/^[/\\]|^[a-z]:[/\\]/i,za=/\/$/,Ma=/^win/i,_a=K(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Su="/",zu=Ma.test(globalThis.process?.platform??"")?";":":",ko=K((e,t)=>{let o="",c=0,u=-1,p=0,m;for(let h=0;h<=e.length;++h){if(h<e.length)m=e[h];else{if(m==="/")break;m="/"}if(m==="/"){if(!(u===h-1||p===1))if(p===2){if(o.length<2||c!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const j=o.lastIndexOf("/");j===-1?(o="",c=0):(o=o.slice(0,j),c=o.length-1-o.lastIndexOf("/")),u=h,p=0;continue}else if(o.length>0){o="",c=0,u=h,p=0;continue}}t&&(o+=o.length>0?"/..":"..",c=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),c=h-u-1;u=h,p=0}else m==="."&&p!==-1?++p:p=-1}return o},"normalizeString"),De=K(e=>Ea.test(e),"isAbsolute"),Eo=K(function(e){if(e.length===0)return".";e=ae(e);const t=ka.exec(e),o=De(e),c=e.at(-1)==="/";return e=ko(e,!o),e.length===0?o?"/":c?"./":".":(c&&(e+="/"),Po.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!De(e)?`/${e}`:e)},"normalize"),Z=K((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const c=t.at(-1)==="/",u=o[0]==="/";c&&u?t+=o.slice(1):t+=c||u?o:`/${o}`}else t+=o;return Eo(t)},"join"),rn=K(function(...e){e=e.map(c=>ae(c));let t="",o=!1;for(let c=e.length-1;c>=-1&&!o;c--){const u=c>=0?e[c]:_a();!u||u.length===0||(t=`${u}/${t}`,o=De(u))}return t=ko(t,!o),o&&!De(t)?`/${t}`:t.length>0?t:"."},"resolve");K(function(e){return ae(e)},"toNamespacedPath");const Ao=K(function(e){return Aa.exec(ae(e))?.[1]??""},"extname"),Mu=K(function(e,t){const o=rn(e).replace(In,"$1").split("/"),c=rn(t).replace(In,"$1").split("/");if(c[0][1]===":"&&o[0][1]===":"&&o[0]!==c[0])return c.join("/");const u=[...o];for(const p of u){if(c[0]!==p)break;o.shift(),c.shift()}return[...o.map(()=>".."),...c].join("/")},"relative"),Xe=K(e=>{const t=ae(e).replace(za,"").split("/").slice(0,-1);return t.length===1&&Po.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(De(e)?"/":".")},"dirname");K(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ae(e.root?rn(...t):t.join("/"))},"format");const Ta=K((e,t)=>{const o=ae(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),_u=K(function(e){const t=Sa.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Ta(e),c=Ao(o);return{base:o,dir:Xe(e),ext:c,name:o.slice(0,o.length-c.length),root:t}},"parse");K((e,t)=>xa(t,Eo(e)),"matchesGlob");var Ca=Object.defineProperty,We=x((e,t)=>Ca(e,"name",{value:t,configurable:!0}),"n$5"),Ba=Object.defineProperty,ue=We((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"a");const Na=Me(import.meta.url),jr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ia=ue(e=>{if(typeof jr<"u"&&jr.versions&&jr.versions.node){const[t,o]=jr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return jr.getBuiltinModule(e)}return Na(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Ra}=Ia("node:url");var Da=Object.defineProperty,Je=ue((e,t)=>Da(e,"name",{value:t,configurable:!0}),"t$1");function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(Lr,"m$4");We(Lr,"d");ue(Lr,"getDefaultExportFromCjs");Je(Lr,"getDefaultExportFromCjs");function gn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(gn,"h$2");We(gn,"O");ue(gn,"getDefaultExportFromNamespaceIfPresent");Je(gn,"getDefaultExportFromNamespaceIfPresent");function hn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}x(hn,"x$3");We(hn,"P");ue(hn,"getDefaultExportFromNamespaceIfNotNamed");Je(hn,"getDefaultExportFromNamespaceIfNotNamed");function mn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=Je(ue(We(x(function c(){var u=!1;try{u=this instanceof c}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a"),"s"),"a"),"a");o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(c){var u=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(o,c,u.get?u:{enumerable:!0,get:Je(function(){return e[c]},"get")})}),o}x(mn,"y$3");We(mn,"_");ue(mn,"getAugmentedNamespace");Je(mn,"getAugmentedNamespace");var Rn,Dn;function bn(){return Dn||(Dn=1,Rn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Rn}x(bn,"w$2");We(bn,"k");ue(bn,"requireBinaryExtensions");var Fa=bn();const Wa=Lr(Fa);var La=Object.defineProperty,ce=ue((e,t)=>La(e,"name",{value:t,configurable:!0}),"r");const Ua=new Set(Wa),qa=new Set(["/","\\",void 0]),Fn=Symbol.for("pathe:normalizedAlias"),Za=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Va=ce((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Ir=ce((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),So=ce(e=>{if(e[Fn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[c])=>Va(o,c)));for(const o in t)for(const c in t)c===o||o.startsWith(c)||t[o].startsWith(c)&&qa.has(t[o][c.length])&&(t[o]=t[c]+t[o].slice(c.length));return Object.defineProperty(t,Fn,{enumerable:!1,value:!0}),t},"normalizeAliases");ce((e,t)=>{e=ae(e),t=So(t);for(const[o,c]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Ir(o)?o.slice(0,-1):o;if(Ir(e[u.length]))return Z(c,e.slice(o.length))}return e},"resolveAlias");ce(e=>Za.exec(e)?.[2],"filename");ce((e,t)=>{e=ae(e),t=So(t);for(const[o,c]of Object.entries(t).toReversed()){if(!e.startsWith(c))continue;const u=Ir(c)?c.slice(0,-1):c;if(Ir(e[u.length]))return Z(o,e.slice(c.length))}return e},"reverseResolveAlias");const Ga=/^(?:\.?\.[/\\]|\.\.\B)/,Ja=/^(?:msys|cygwin)$/;ce(e=>Ga.test(e)||e==="..","isRelative");ce(e=>Ua.has(Ao(e).slice(1).toLowerCase()),"isBinaryPath");const Ur=ce(e=>ae(e instanceof URL?Ra(e):e),"toPath");ce(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Ja.test(e)},"isWindows");var Ha=Object.defineProperty,zo=x((e,t)=>Ha(e,"name",{value:t,configurable:!0}),"t$8"),Ka=Object.defineProperty,yn=zo((e,t)=>Ka(e,"name",{value:t,configurable:!0}),"t");const Xa=Me(import.meta.url),Or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ya=yn(e=>{if(typeof Or<"u"&&Or.versions&&Or.versions.node){const[t,o]=Or.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Or.getBuiltinModule(e)}return Xa(e)},"__cjs_getBuiltinModule"),{accessSync:Qa}=Ya("node:fs");var ec=Object.defineProperty,tc=yn((e,t)=>ec(e,"name",{value:t,configurable:!0}),"o");function V(e,t=tn){Fr(e),e=Ur(e);try{return Qa(e,t),!0}catch{return!1}}x(V,"i$6");zo(V,"d");yn(V,"m");tc(V,"isAccessibleSync");var rc=Object.defineProperty,Mo=x((e,t)=>rc(e,"name",{value:t,configurable:!0}),"t$7"),nc=Object.defineProperty,_o=Mo((e,t)=>nc(e,"name",{value:t,configurable:!0}),"t"),oc=Object.defineProperty,sc=_o((e,t)=>oc(e,"name",{value:t,configurable:!0}),"o");let Wn=class extends Error{static{x(this,"c")}static{Mo(this,"i")}static{_o(this,"n")}static{sc(this,"PermissionError")}constructor(t){super(`EPERM: Operation not permitted, ${t}`)}get code(){return"EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}};var ic=Object.defineProperty,ac=x((e,t)=>ic(e,"name",{value:t,configurable:!0}),"a$5"),cc=Object.defineProperty,To=ac((e,t)=>cc(e,"name",{value:t,configurable:!0}),"i");const lc=Me(import.meta.url),Pr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Co=To(e=>{if(typeof Pr<"u"&&Pr.versions&&Pr.versions.node){const[t,o]=Pr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pr.getBuiltinModule(e)}return lc(e)},"__cjs_getBuiltinModule"),{readFileSync:uc}=Co("node:fs"),{unzipSync:fc,brotliDecompressSync:pc}=Co("node:zlib");var dc=Object.defineProperty,Bo=To((e,t)=>dc(e,"name",{value:t,configurable:!0}),"r");const gc={brotli:pc,gzip:fc,none:Bo(e=>e,"none")},hc=Bo((e,t)=>{if(Fr(e),e=Ur(e),!V(e))throw new Wn(`unable to read the non-accessible file: ${e}`);if(!V(e,jo))throw new Wn(`invalid access to read file at: ${e}`);const{buffer:o,compression:c,encoding:u,flag:p}=t??{},m=uc(e,p?{encoding:u,flag:p}:{encoding:u}),h=gc[c??"none"],j=h(m);return o?j:j.toString()},"readFileSync");var mc=Object.defineProperty,bc=x((e,t)=>mc(e,"name",{value:t,configurable:!0}),"x$2"),yc=Object.defineProperty,No=bc((e,t)=>yc(e,"name",{value:t,configurable:!0}),"$"),$c=Object.defineProperty,vc=No((e,t)=>$c(e,"name",{value:t,configurable:!0}),"A"),xc=Object.defineProperty,$n=vc((e,t)=>xc(e,"name",{value:t,configurable:!0}),"$"),wc=Object.defineProperty,jc=$n((e,t)=>wc(e,"name",{value:t,configurable:!0}),"r$1");const Oc=jc(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
- `),"normalizeLF"),Pc=globalThis.process??Object.create(null),Ln={versions:{}},Un=new Proxy(Pc,{get(e,t){if(t in e)return e[t];if(t in Ln)return Ln[t]}});var kc=Object.defineProperty,Ec=$n((e,t)=>kc(e,"name",{value:t,configurable:!0}),"b");const Ac=Ec((e,t,o,c)=>{const u={column:0,line:-1,...e.start},p={...u,...e.end},m=u.line,h=u.column,j=p.line,E=p.column;let P=Math.max(m-(o+1),0),O=Math.min(t.length,j+c);m===-1&&(P=0),j===-1&&(O=t.length);const B=j-m,T={};if(B)for(let k=0;k<=B;k++){const G=k+m;if(!h)T[G]=!0;else if(k===0){const X=t[G-1]?.length;T[G]=[h,(X??0)-h+1]}else if(k===B)T[G]=[0,E];else{const X=t[G-k]?.length;T[G]=[0,X]}}else h===E?T[m]=h?[h,0]:!0:T[m]=[h,(E??0)-(h??0)];return{end:O,markerLines:T,start:P}},"getMarkerLines");var Sc=Object.defineProperty,Cr=$n((e,t)=>Sc(e,"name",{value:t,configurable:!0}),"t");const zc=Un.platform==="win32"&&!Un.env?.WT_SESSION?">":"❯",Mc=Cr((e,t,o)=>{const c={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...o,color:{gutter:Cr(k=>k,"gutter"),marker:Cr(k=>k,"marker"),message:Cr(k=>k,"message"),...o?.color}},u=typeof t.start.column=="number";let p=Oc(e).split(`
3
- `);typeof c.tabWidth=="number"&&(p=p.map(k=>k.replaceAll(" "," ".repeat(c.tabWidth))));const{end:m,markerLines:h,start:j}=Ac(t,p,c.linesAbove,c.linesBelow),E=String(m).length,{gutter:P,marker:O,message:B}=c.color;let T=p.slice(j,m).map((k,G)=>{const X=j+1+G,se=h[X],Ce=` ${String(X)}`.slice(-E),Be=!h[X+1],Q=` ${Ce}${c.showGutter?" |":""}`;if(se){let I="";if(Array.isArray(se)){const Ne=k.replaceAll(/[^\t]/g," ").slice(0,Math.max(se[0]-1,0)),Ie=se[1]||1;I=[`
4
- `,c.prefix+P(Q.replaceAll(/\d/g," "))," ",Ne,O("^").repeat(Ie)].join(""),Be&&c.message&&(I+=` ${B(c.message)}`)}return[c.prefix+O(zc),P(Q),k.length>0?` ${k}`:"",I].join("")}return`${c.prefix} ${P(Q)}${k.length>0?` ${k}`:""}`}).join(`
5
- `);return c.message&&!u&&(T=`${c.prefix+" ".repeat(E+1)+c.message}
6
- ${T}`),T},"codeFrame");var _c=Object.defineProperty,Tc=No((e,t)=>_c(e,"name",{value:t,configurable:!0}),"s"),Cc=Object.defineProperty,Bc=Tc((e,t)=>Cc(e,"name",{value:t,configurable:!0}),"o"),Nc=Object.defineProperty,vn=Bc((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"l");const qn=vn((e,t)=>{let o=0,c=t.length-2;for(;o<c;){const u=o+(c-o>>1);if(e<t[u])c=u-1;else if(e>=t[u+1])o=u+1;else{o=u;break}}return o},"binarySearch"),Ic=/\n|\r(?!\n)/,Rc=vn(e=>e.split(Ic).reduce((t,o)=>(t.push(t.at(-1)+o.length+1),t),[0]),"getLineStartIndexes"),Dc=vn((e,t,o)=>{const c=o?.skipChecks??!1;if(!c&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!c&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const p=Rc(e),m=qn(t,p);return{column:t-p[m]+1,line:m+1}}const u=qn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var Fc=Object.defineProperty,Io=x((e,t)=>Fc(e,"name",{value:t,configurable:!0}),"t$6"),Wc=Object.defineProperty,Ro=Io((e,t)=>Wc(e,"name",{value:t,configurable:!0}),"t"),Lc=Object.defineProperty,Uc=Ro((e,t)=>Lc(e,"name",{value:t,configurable:!0}),"i");let qc=class extends Error{static{x(this,"m")}static{Io(this,"m")}static{Ro(this,"t")}static{Uc(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
1
+ var ts=Object.defineProperty;var $=(e,t)=>ts(e,"name",{value:t,configurable:!0});import{createRequire as rs}from"node:module";import{createJiti as Yn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const ns=rs(import.meta.url),hr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cn=$(e=>{if(typeof hr<"u"&&hr.versions&&hr.versions.node){const[t,o]=hr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return hr.getBuiltinModule(e)}return ns(e)},"__cjs_getBuiltinModule"),{createHash:Hn}=cn("node:crypto"),{readdirSync:Xn,readFileSync:os,copyFileSync:ss,unlinkSync:is}=cn("node:fs"),{createRequire:ze}=cn("node:module");var as=Object.defineProperty,Je=$((e,t)=>as(e,"name",{value:t,configurable:!0}),"K$3"),cs=Object.defineProperty,W=Je((e,t)=>cs(e,"name",{value:t,configurable:!0}),"E");const ls=ze(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qn=W(e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,o]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return qe.getBuiltinModule(e)}return ls(e)},"__cjs_getBuiltinModule"),{existsSync:Ue}=Qn("node:fs"),{env:Ze,cwd:eo}=qe,{createRequire:He}=Qn("node:module"),to=0,Ve=2,ro=Symbol("findUpStop");var us=Object.defineProperty,fs=W((e,t)=>us(e,"name",{value:t,configurable:!0}),"t$4"),ps=Object.defineProperty,ds=fs((e,t)=>ps(e,"name",{value:t,configurable:!0}),"t"),gs=Object.defineProperty,hs=ds((e,t)=>gs(e,"name",{value:t,configurable:!0}),"n");const ln=hs(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ms=Object.defineProperty,bs=W((e,t)=>ms(e,"name",{value:t,configurable:!0}),"i$4"),ys=Object.defineProperty,$s=bs((e,t)=>ys(e,"name",{value:t,configurable:!0}),"r"),vs=Object.defineProperty,xs=$s((e,t)=>vs(e,"name",{value:t,configurable:!0}),"i");const kn=xs(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var ws=Object.defineProperty,js=W((e,t)=>ws(e,"name",{value:t,configurable:!0}),"i$3"),Os=Object.defineProperty,no=js((e,t)=>Os(e,"name",{value:t,configurable:!0}),"s");const ks=He(import.meta.url),mr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ps=no(e=>{if(typeof mr<"u"&&mr.versions&&mr.versions.node){const[t,o]=mr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return mr.getBuiltinModule(e)}return ks(e)},"__cjs_getBuiltinModule"),{lstatSync:Pn,mkdirSync:Es}=Ps("node:fs");var As=Object.defineProperty,Ss=no((e,t)=>As(e,"name",{value:t,configurable:!0}),"o");const Ts=Ss(e=>{ln(e);try{const t=Pn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(kn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Es(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Pn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(kn(o))}'`,{cause:t})}},"ensureDirSync");var zs=Object.defineProperty,b=W((e,t)=>zs(e,"name",{value:t,configurable:!0}),"s$6");let En=b(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=b((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=b((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:b(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=b(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:b(()=>Ee,"zeptomatch")});var P=b(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=b(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=b((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=b((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=b(r=>Array.from(new Set(r)),"ue"),E=b((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=b((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=b(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),Re=b(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=b(r=>typeof r=="number","de"),Qe=b(r=>typeof r=="object"&&r!==null,"xe"),et=b(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=b(r=>typeof r=="string","A"),T=b(r=>r===void 0,"f"),nt=b(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=b((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=b((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=b((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=b((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=b((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=b((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=b((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=b((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=b((r,n)=>ee(r,0,1,n),"L"),K=b((r,n)=>ee(r,0,1/0,n),"$"),ct=b((r,n)=>ee(r,1,1/0,n),"Re"),I=b((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=b((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=b((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=b((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=b(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=b(r=>r,"d"),lt=b(r=>typeof r=="string","ke"),ut=b(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=b(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=b(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=b(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=b(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=b((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=b((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=b((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=b(r=>({children:r}),"y"),D=(()=>{const r=b((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=b(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=b((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),Yr;const Ms=b((e,t)=>(Yr||(Yr=En(),En=null),Yr(e,t)),"zeptomatch"),Cs=/^[A-Z]:\//i,ie=b((e="")=>e&&e.replaceAll("\\","/").replace(Cs,t=>t.toUpperCase()),"normalizeWindowsPath"),_s=/^[/\\]{2}/,Ns=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,oo=/^[A-Z]:$/i,An=/^\/([A-Z]:)?$/i,Rs=/.(\.[^./]+)$/,Bs=/^[/\\]|^[a-z]:[/\\]/i,Is=/\/$/,Ds=b(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),so=b((e,t)=>{let o="",i=0,u=-1,f=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),Ie=b(e=>Ns.test(e),"isAbsolute"),io=b(function(e){if(e.length===0)return".";e=ie(e);const t=_s.exec(e),o=Ie(e),i=e.at(-1)==="/";return e=so(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),oo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ie(e)?`/${e}`:e)},"normalize"),ao=b((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return io(t)},"join"),le=b(function(...e){e=e.map(i=>ie(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Ds();!u||u.length===0||(t=`${u}/${t}`,o=Ie(u))}return t=so(t,!o),o&&!Ie(t)?`/${t}`:t.length>0?t:"."},"resolve");b(function(e){return ie(e)},"toNamespacedPath");const co=b(function(e){return Rs.exec(ie(e))?.[1]??""},"extname");b(function(e,t){const o=le(e).replace(An,"$1").split("/"),i=le(t).replace(An,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative");const un=b(e=>{const t=ie(e).replace(Is,"").split("/").slice(0,-1);return t.length===1&&oo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ie(e)?"/":".")},"dirname");b(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ie(e.root?le(...t):t.join("/"))},"format");const Fs=b((e,t)=>{const o=ie(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),lo=b(function(e){const t=Bs.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Fs(e),i=co(o);return{base:o,dir:un(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");b((e,t)=>Ms(t,io(e)),"matchesGlob");var Ws=Object.defineProperty,Y=W((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"i$2");const Ls=He(import.meta.url),br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qs=Y(e=>{if(typeof br<"u"&&br.versions&&br.versions.node){const[t,o]=br.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return br.getBuiltinModule(e)}return Ls(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Us}=qs("node:url");function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(Ir,"dn$1");Je(Ir,"Nr");W(Ir,"w$1");Y(Ir,"getDefaultExportFromCjs");var Sn,Tn;function Dr(){return Tn||(Tn=1,Sn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Sn}$(Dr,"gn$1");Je(Dr,"Dr");W(Dr,"y$2");Y(Dr,"requireBinaryExtensions");var Zs=Dr();const Vs=Ir(Zs),Gs=new Set(Vs),Ks=new Set(["/","\\",void 0]),zn=Symbol.for("pathe:normalizedAlias"),Js=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Hs=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Nr=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),uo=Y(e=>{if(e[zn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[i])=>Hs(o,i)));for(const o in t)for(const i in t)i===o||o.startsWith(i)||t[o].startsWith(i)&&Ks.has(t[o][i.length])&&(t[o]=t[i]+t[o].slice(i.length));return Object.defineProperty(t,zn,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=ie(e),t=uo(t);for(const[o,i]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Nr(o)?o.slice(0,-1):o;if(Nr(e[u.length]))return ao(i,e.slice(o.length))}return e},"resolveAlias");Y(e=>Js.exec(e)?.[2],"filename");Y((e,t)=>{e=ie(e),t=uo(t);for(const[o,i]of Object.entries(t).toReversed()){if(!e.startsWith(i))continue;const u=Nr(i)?i.slice(0,-1):i;if(Nr(e[u.length]))return ao(o,e.slice(i.length))}return e},"reverseResolveAlias");const Xs=/^(?:\.?\.[/\\]|\.\.\B)/,Ys=/^(?:msys|cygwin)$/;Y(e=>Xs.test(e)||e==="..","isRelative");Y(e=>Gs.has(co(e).slice(1).toLowerCase()),"isBinaryPath");const Ge=Y(e=>ie(e instanceof URL?Us(e):e),"toPath");Y(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Ys.test(e)},"isWindows");var Qs=Object.defineProperty,ei=W((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"p"),ti=Object.defineProperty,fo=ei((e,t)=>ti(e,"name",{value:t,configurable:!0}),"a");const ri=He(import.meta.url),yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,po=fo(e=>{if(typeof yr<"u"&&yr.versions&&yr.versions.node){const[t,o]=yr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return yr.getBuiltinModule(e)}return ri(e)},"__cjs_getBuiltinModule"),{stat:ni,lstat:oi}=po("node:fs/promises"),{fileURLToPath:si}=po("node:url");var ii=Object.defineProperty,Mn=fo((e,t)=>ii(e,"name",{value:t,configurable:!0}),"n");const ai=Mn(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const o=t.cwd?Ge(t.cwd):process.cwd();let i=le(o);const{root:u}=lo(i),f=Ge(t.stopAt??u),g=le(i,f),h=t.type??"file",w=Mn(async function(k){return typeof e=="function"?[await e(k)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const P=t.allowSymlinks?ni:oi;for(;i&&i!==g&&i!==u;){const k=await w(i);for(let O of k){if(O===ro)return;if(O===void 0)continue;Buffer.isBuffer(O)?O=O.toString():O instanceof URL&&(O=si(O));const N=Ie(O)?O:le(i,O);try{const C=await P(N);if(h==="file"&&C.isFile()||h==="directory"&&C.isDirectory())return N}catch{}}i=un(i)}},"findUp");var ci=Object.defineProperty,li=W((e,t)=>ci(e,"name",{value:t,configurable:!0}),"u$3"),ui=Object.defineProperty,go=li((e,t)=>ui(e,"name",{value:t,configurable:!0}),"i");const fi=He(import.meta.url),$r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ho=go(e=>{if(typeof $r<"u"&&$r.versions&&$r.versions.node){const[t,o]=$r.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return $r.getBuiltinModule(e)}return fi(e)},"__cjs_getBuiltinModule"),{statSync:pi,lstatSync:di}=ho("node:fs"),{fileURLToPath:gi}=ho("node:url");var hi=Object.defineProperty,Cn=go((e,t)=>hi(e,"name",{value:t,configurable:!0}),"o");const mi=Cn((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const o=t.cwd?Ge(t.cwd):process.cwd();let i=le(o);const{root:u}=lo(i),f=Ge(t.stopAt??u),g=le(i,f),h=t.type??"file",w=Cn(function(k){return typeof e=="function"?[e(k)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const P=t.allowSymlinks?pi:di;for(;i&&i!==g&&i!==u;){for(let k of w(i)){if(k===ro)return;if(k===void 0)continue;Buffer.isBuffer(k)?k=k.toString():k instanceof URL&&(k=gi(k));const O=Ie(k)?k:le(i,k);try{const N=P(O);if(h==="file"&&N.isFile()||h==="directory"&&N.isDirectory())return O}catch{}}i=un(i)}},"findUpSync");var bi=Object.defineProperty,mo=W((e,t)=>bi(e,"name",{value:t,configurable:!0}),"t$2"),yi=Object.defineProperty,fn=mo((e,t)=>yi(e,"name",{value:t,configurable:!0}),"s");const $i=He(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vi=fn(e=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[t,o]=vr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return vr.getBuiltinModule(e)}return $i(e)},"__cjs_getBuiltinModule"),{access:xi}=vi("node:fs/promises");var wi=Object.defineProperty,ji=fn((e,t)=>wi(e,"name",{value:t,configurable:!0}),"o");async function Se(e,t=to){ln(e),e=Ge(e);try{return await xi(e,t),!0}catch{return!1}}$(Se,"Q$3");Je(Se,"se");W(Se,"i$1");mo(Se,"d");fn(Se,"m");ji(Se,"isAccessible");var Oi=Object.defineProperty,bo=W((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"t$1"),ki=Object.defineProperty,pn=bo((e,t)=>ki(e,"name",{value:t,configurable:!0}),"t");const Pi=He(import.meta.url),xr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ei=pn(e=>{if(typeof xr<"u"&&xr.versions&&xr.versions.node){const[t,o]=xr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xr.getBuiltinModule(e)}return Pi(e)},"__cjs_getBuiltinModule"),{accessSync:Ai}=Ei("node:fs");var Si=Object.defineProperty,Ti=pn((e,t)=>Si(e,"name",{value:t,configurable:!0}),"o");function Te(e,t=to){ln(e),e=Ge(e);try{return Ai(e,t),!0}catch{return!1}}$(Te,"ee$1");Je(Te,"ie");W(Te,"i");bo(Te,"d");pn(Te,"m");Ti(Te,"isAccessibleSync");var zi=Object.defineProperty,yo=W((e,t)=>zi(e,"name",{value:t,configurable:!0}),"o"),Mi=Object.defineProperty,$o=yo((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"o"),Ci=Object.defineProperty,_i=$o((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"o");let vo=class extends Error{static{$(this,"Jn")}static{Je(this,"Xr")}static{W(this,"s")}static{yo(this,"u")}static{$o(this,"n")}static{_i(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var Ni=Object.defineProperty,Ri=W((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"$e"),Bi=Object.defineProperty,dn=Ri((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"W"),Ii=Object.defineProperty,v=dn((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"u$1");let _n=v(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=v((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=v((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:v(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=v(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:v(()=>Ee,"zeptomatch")});var P=v(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=v(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=v((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=v((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=v(r=>Array.from(new Set(r)),"ue"),E=v((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=v((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=v(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=v(r=>Array.isArray(r),"j"),B=v(r=>typeof r=="function","_"),Re=v(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=v(r=>typeof r=="number","de"),Qe=v(r=>typeof r=="object"&&r!==null,"xe"),et=v(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=v(r=>typeof r=="string","A"),T=v(r=>r===void 0,"f"),nt=v(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=v((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=v((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=v((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=v((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=v((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=v((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=v((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=v((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=v((r,n)=>ee(r,0,1,n),"L"),K=v((r,n)=>ee(r,0,1/0,n),"$"),ct=v((r,n)=>ee(r,1,1/0,n),"Re"),I=v((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=v((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=v((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=v((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=v(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=v(r=>r,"d"),lt=v(r=>typeof r=="string","ke"),ut=v(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=v(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=v(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=v(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=v(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=v((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=v((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=v((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=v(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=v(r=>({children:r}),"y"),D=(()=>{const r=v((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=v(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=v(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=v((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),Qr;const Di=v((e,t)=>(Qr||(Qr=_n(),_n=null),Qr(e,t)),"default");var Fi=Object.defineProperty,Wi=dn((e,t)=>Fi(e,"name",{value:t,configurable:!0}),"t$1");const Li=/^[A-Z]:\//i,Fe=Wi((e="")=>e&&e.replaceAll("\\","/").replace(Li,t=>t.toUpperCase()),"normalizeWindowsPath");var qi=Object.defineProperty,J=dn((e,t)=>qi(e,"name",{value:t,configurable:!0}),"r");const Ui=/^[/\\]{2}/,Zi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,xo=/^[A-Z]:$/i,Nn=/^\/([A-Z]:)?$/i,Vi=/.(\.[^./]+)$/,Gi=/^[/\\]|^[a-z]:[/\\]/i,Ki=/\/$/,Ji=J(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),wo=J((e,t)=>{let o="",i=0,u=-1,f=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),Ar=J(e=>Zi.test(e),"isAbsolute"),jo=J(function(e){if(e.length===0)return".";e=Fe(e);const t=Ui.exec(e),o=Ar(e),i=e.at(-1)==="/";return e=wo(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),xo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ar(e)?`/${e}`:e)},"normalize"),Ae=J((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return jo(t)},"join"),nn=J(function(...e){e=e.map(i=>Fe(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Ji();!u||u.length===0||(t=`${u}/${t}`,o=Ar(u))}return t=wo(t,!o),o&&!Ar(t)?`/${t}`:t.length>0?t:"."},"resolve");J(function(e){return Fe(e)},"toNamespacedPath");const Hi=J(function(e){return Vi.exec(Fe(e))?.[1]??""},"extname");J(function(e,t){const o=nn(e).replace(Nn,"$1").split("/"),i=nn(t).replace(Nn,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative");const gn=J(e=>{const t=Fe(e).replace(Ki,"").split("/").slice(0,-1);return t.length===1&&xo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ar(e)?"/":".")},"dirname");J(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return Fe(e.root?nn(...t):t.join("/"))},"format");const Xi=J((e,t)=>{const o=Fe(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename");J(function(e){const t=Gi.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Xi(e),i=Hi(o);return{base:o,dir:gn(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");J((e,t)=>Di(t,jo(e)),"matchesGlob");var Yi=Object.defineProperty,hn=W((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"u");const Rr=hn((e,t)=>(t?.create&&Ts(e),e),"useDirectory");hn(async(e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Rr(Ae(Ze.CACHE_DIR,e),t);const o=await ai("package.json",{cwd:t?.cwd??eo(),type:"file"});if(!o){if(t?.throwError)throw new vo("No such file or directory found.");return}const i=Ae(gn(o),"node_modules"),u=Ae(i,".cache"),f=Ae(u,e);if(!(Ue(f)&&!await Se(f,Ve))&&!(Ue(u)&&!await Se(u,Ve))&&!(Ue(i)&&!await Se(i,Ve)))return Rr(f,t)},"findCacheDirectory");const Qi=hn((e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Rr(Ae(Ze.CACHE_DIR,e),t);const o=mi("package.json",{cwd:t?.cwd??eo(),type:"file"});if(!o){if(t?.throwError)throw new vo("No such file or directory found.");return}const i=Ae(gn(o),"node_modules"),u=Ae(i,".cache"),f=Ae(u,e);if(!(Ue(f)&&!Te(f,Ve))&&!(Ue(u)&&!Te(u,Ve))&&!(Ue(i)&&!Te(i,Ve)))return Rr(f,t)},"findCacheDirectorySync"),Oo=Qi,on=0,ko=4,Ru=Symbol("findUpStop"),Bu=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var ea=Object.defineProperty,ta=$((e,t)=>ea(e,"name",{value:t,configurable:!0}),"t$a"),ra=Object.defineProperty,na=ta((e,t)=>ra(e,"name",{value:t,configurable:!0}),"t"),oa=Object.defineProperty,sa=na((e,t)=>oa(e,"name",{value:t,configurable:!0}),"n");const Fr=sa(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ia=Object.defineProperty,aa=$((e,t)=>ia(e,"name",{value:t,configurable:!0}),"i$a"),ca=Object.defineProperty,la=aa((e,t)=>ca(e,"name",{value:t,configurable:!0}),"r"),ua=Object.defineProperty,fa=la((e,t)=>ua(e,"name",{value:t,configurable:!0}),"i");const Rn=fa(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var pa=Object.defineProperty,da=$((e,t)=>pa(e,"name",{value:t,configurable:!0}),"i$9"),ga=Object.defineProperty,Po=da((e,t)=>ga(e,"name",{value:t,configurable:!0}),"s");const ha=ze(import.meta.url),wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ma=Po(e=>{if(typeof wr<"u"&&wr.versions&&wr.versions.node){const[t,o]=wr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return wr.getBuiltinModule(e)}return ha(e)},"__cjs_getBuiltinModule"),{lstatSync:Bn,mkdirSync:ba}=ma("node:fs");var ya=Object.defineProperty,$a=Po((e,t)=>ya(e,"name",{value:t,configurable:!0}),"o");const Wr=$a(e=>{Fr(e);try{const t=Bn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Rn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{ba(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Bn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Rn(o))}'`,{cause:t})}},"ensureDirSync");var va=Object.defineProperty,xa=$((e,t)=>va(e,"name",{value:t,configurable:!0}),"$e"),wa=Object.defineProperty,mn=xa((e,t)=>wa(e,"name",{value:t,configurable:!0}),"W"),ja=Object.defineProperty,x=mn((e,t)=>ja(e,"name",{value:t,configurable:!0}),"u$1");let In=x(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=x((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=x((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:x(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=x(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:x(()=>Ee,"zeptomatch")});var P=x(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=x(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=x((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=x((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=x(r=>Array.from(new Set(r)),"ue"),E=x((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=x((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=x(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=x(r=>Array.isArray(r),"j"),B=x(r=>typeof r=="function","_"),Re=x(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=x(r=>typeof r=="number","de"),Qe=x(r=>typeof r=="object"&&r!==null,"xe"),et=x(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=x(r=>typeof r=="string","A"),T=x(r=>r===void 0,"f"),nt=x(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=x((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=x((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=x((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=x((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=x((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=x((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=x((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=x((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=x((r,n)=>ee(r,0,1,n),"L"),K=x((r,n)=>ee(r,0,1/0,n),"$"),ct=x((r,n)=>ee(r,1,1/0,n),"Re"),I=x((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=x((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=x((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=x((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=x(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=x(r=>r,"d"),lt=x(r=>typeof r=="string","ke"),ut=x(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=x(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=x(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=x(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=x(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=x((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=x((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=x((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=x(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=x(r=>({children:r}),"y"),D=(()=>{const r=x((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=x(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=x(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=x((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),en;const Oa=x((e,t)=>(en||(en=In(),In=null),en(e,t)),"default");var ka=Object.defineProperty,Pa=mn((e,t)=>ka(e,"name",{value:t,configurable:!0}),"t$1");const Ea=/^[A-Z]:\//i,ae=Pa((e="")=>e&&e.replaceAll("\\","/").replace(Ea,t=>t.toUpperCase()),"normalizeWindowsPath");var Aa=Object.defineProperty,H=mn((e,t)=>Aa(e,"name",{value:t,configurable:!0}),"r");const Sa=/^[/\\]{2}/,Ta=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Eo=/^[A-Z]:$/i,Dn=/^\/([A-Z]:)?$/i,za=/.(\.[^./]+)$/,Ma=/^[/\\]|^[a-z]:[/\\]/i,Ca=/\/$/,_a=/^win/i,Na=H(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Iu="/",Du=_a.test(globalThis.process?.platform??"")?";":":",Ao=H((e,t)=>{let o="",i=0,u=-1,f=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),De=H(e=>Ta.test(e),"isAbsolute"),So=H(function(e){if(e.length===0)return".";e=ae(e);const t=Sa.exec(e),o=De(e),i=e.at(-1)==="/";return e=Ao(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),Eo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!De(e)?`/${e}`:e)},"normalize"),Z=H((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return So(t)},"join"),sn=H(function(...e){e=e.map(i=>ae(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Na();!u||u.length===0||(t=`${u}/${t}`,o=De(u))}return t=Ao(t,!o),o&&!De(t)?`/${t}`:t.length>0?t:"."},"resolve");H(function(e){return ae(e)},"toNamespacedPath");const To=H(function(e){return za.exec(ae(e))?.[1]??""},"extname"),Fu=H(function(e,t){const o=sn(e).replace(Dn,"$1").split("/"),i=sn(t).replace(Dn,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative"),Xe=H(e=>{const t=ae(e).replace(Ca,"").split("/").slice(0,-1);return t.length===1&&Eo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(De(e)?"/":".")},"dirname");H(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ae(e.root?sn(...t):t.join("/"))},"format");const Ra=H((e,t)=>{const o=ae(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),Wu=H(function(e){const t=Ma.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Ra(e),i=To(o);return{base:o,dir:Xe(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");H((e,t)=>Oa(t,So(e)),"matchesGlob");var Ba=Object.defineProperty,We=$((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"n$5"),Ia=Object.defineProperty,ue=We((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"a");const Da=ze(import.meta.url),jr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fa=ue(e=>{if(typeof jr<"u"&&jr.versions&&jr.versions.node){const[t,o]=jr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return jr.getBuiltinModule(e)}return Da(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Wa}=Fa("node:url");var La=Object.defineProperty,Ke=ue((e,t)=>La(e,"name",{value:t,configurable:!0}),"t$1");function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(Lr,"m$4");We(Lr,"d");ue(Lr,"getDefaultExportFromCjs");Ke(Lr,"getDefaultExportFromCjs");function bn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(bn,"h$3");We(bn,"O");ue(bn,"getDefaultExportFromNamespaceIfPresent");Ke(bn,"getDefaultExportFromNamespaceIfPresent");function yn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}$(yn,"x$3");We(yn,"P");ue(yn,"getDefaultExportFromNamespaceIfNotNamed");Ke(yn,"getDefaultExportFromNamespaceIfNotNamed");function $n(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=Ke(ue(We($(function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a"),"s"),"a"),"a");o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var u=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,u.get?u:{enumerable:!0,get:Ke(function(){return e[i]},"get")})}),o}$($n,"y$4");We($n,"_");ue($n,"getAugmentedNamespace");Ke($n,"getAugmentedNamespace");var Fn,Wn;function vn(){return Wn||(Wn=1,Fn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Fn}$(vn,"w$3");We(vn,"k");ue(vn,"requireBinaryExtensions");var qa=vn();const Ua=Lr(qa);var Za=Object.defineProperty,ce=ue((e,t)=>Za(e,"name",{value:t,configurable:!0}),"r");const Va=new Set(Ua),Ga=new Set(["/","\\",void 0]),Ln=Symbol.for("pathe:normalizedAlias"),Ka=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Ja=ce((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Br=ce((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),zo=ce(e=>{if(e[Ln])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[i])=>Ja(o,i)));for(const o in t)for(const i in t)i===o||o.startsWith(i)||t[o].startsWith(i)&&Ga.has(t[o][i.length])&&(t[o]=t[i]+t[o].slice(i.length));return Object.defineProperty(t,Ln,{enumerable:!1,value:!0}),t},"normalizeAliases");ce((e,t)=>{e=ae(e),t=zo(t);for(const[o,i]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Br(o)?o.slice(0,-1):o;if(Br(e[u.length]))return Z(i,e.slice(o.length))}return e},"resolveAlias");ce(e=>Ka.exec(e)?.[2],"filename");ce((e,t)=>{e=ae(e),t=zo(t);for(const[o,i]of Object.entries(t).toReversed()){if(!e.startsWith(i))continue;const u=Br(i)?i.slice(0,-1):i;if(Br(e[u.length]))return Z(o,e.slice(i.length))}return e},"reverseResolveAlias");const Ha=/^(?:\.?\.[/\\]|\.\.\B)/,Xa=/^(?:msys|cygwin)$/;ce(e=>Ha.test(e)||e==="..","isRelative");ce(e=>Va.has(To(e).slice(1).toLowerCase()),"isBinaryPath");const qr=ce(e=>ae(e instanceof URL?Wa(e):e),"toPath");ce(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Xa.test(e)},"isWindows");var Ya=Object.defineProperty,Mo=$((e,t)=>Ya(e,"name",{value:t,configurable:!0}),"t$8"),Qa=Object.defineProperty,xn=Mo((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"t");const ec=ze(import.meta.url),Or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tc=xn(e=>{if(typeof Or<"u"&&Or.versions&&Or.versions.node){const[t,o]=Or.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Or.getBuiltinModule(e)}return ec(e)},"__cjs_getBuiltinModule"),{accessSync:rc}=tc("node:fs");var nc=Object.defineProperty,oc=xn((e,t)=>nc(e,"name",{value:t,configurable:!0}),"o");function V(e,t=on){Fr(e),e=qr(e);try{return rc(e,t),!0}catch{return!1}}$(V,"i$7");Mo(V,"d");xn(V,"m");oc(V,"isAccessibleSync");var sc=Object.defineProperty,Co=$((e,t)=>sc(e,"name",{value:t,configurable:!0}),"t$7"),ic=Object.defineProperty,_o=Co((e,t)=>ic(e,"name",{value:t,configurable:!0}),"t"),ac=Object.defineProperty,cc=_o((e,t)=>ac(e,"name",{value:t,configurable:!0}),"o");let qn=class extends Error{static{$(this,"c")}static{Co(this,"i")}static{_o(this,"n")}static{cc(this,"PermissionError")}constructor(t){super(`EPERM: Operation not permitted, ${t}`)}get code(){return"EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}};var lc=Object.defineProperty,uc=$((e,t)=>lc(e,"name",{value:t,configurable:!0}),"a$5"),fc=Object.defineProperty,No=uc((e,t)=>fc(e,"name",{value:t,configurable:!0}),"i");const pc=ze(import.meta.url),kr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=No(e=>{if(typeof kr<"u"&&kr.versions&&kr.versions.node){const[t,o]=kr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return kr.getBuiltinModule(e)}return pc(e)},"__cjs_getBuiltinModule"),{readFileSync:dc}=Ro("node:fs"),{unzipSync:gc,brotliDecompressSync:hc}=Ro("node:zlib");var mc=Object.defineProperty,Bo=No((e,t)=>mc(e,"name",{value:t,configurable:!0}),"r");const bc={brotli:hc,gzip:gc,none:Bo(e=>e,"none")},yc=Bo((e,t)=>{if(Fr(e),e=qr(e),!V(e))throw new qn(`unable to read the non-accessible file: ${e}`);if(!V(e,ko))throw new qn(`invalid access to read file at: ${e}`);const{buffer:o,compression:i,encoding:u,flag:f}=t??{},g=dc(e,f?{encoding:u,flag:f}:{encoding:u}),h=bc[i??"none"],w=h(g);return o?w:w.toString()},"readFileSync");var $c=Object.defineProperty,vc=$((e,t)=>$c(e,"name",{value:t,configurable:!0}),"x$2"),xc=Object.defineProperty,Io=vc((e,t)=>xc(e,"name",{value:t,configurable:!0}),"$"),wc=Object.defineProperty,jc=Io((e,t)=>wc(e,"name",{value:t,configurable:!0}),"A"),Oc=Object.defineProperty,wn=jc((e,t)=>Oc(e,"name",{value:t,configurable:!0}),"$"),kc=Object.defineProperty,Pc=wn((e,t)=>kc(e,"name",{value:t,configurable:!0}),"r$1");const Ec=Pc(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),Ac=globalThis.process??Object.create(null),Un={versions:{}},Zn=new Proxy(Ac,{get(e,t){if(t in e)return e[t];if(t in Un)return Un[t]}});var Sc=Object.defineProperty,Tc=wn((e,t)=>Sc(e,"name",{value:t,configurable:!0}),"b");const zc=Tc((e,t,o,i)=>{const u={column:0,line:-1,...e.start},f={...u,...e.end},g=u.line,h=u.column,w=f.line,P=f.column;let k=Math.max(g-(o+1),0),O=Math.min(t.length,w+i);g===-1&&(k=0),w===-1&&(O=t.length);const N=w-g,C={};if(N)for(let E=0;E<=N;E++){const G=E+g;if(!h)C[G]=!0;else if(E===0){const X=t[G-1]?.length;C[G]=[h,(X??0)-h+1]}else if(E===N)C[G]=[0,P];else{const X=t[G-E]?.length;C[G]=[0,X]}}else h===P?C[g]=h?[h,0]:!0:C[g]=[h,(P??0)-(h??0)];return{end:O,markerLines:C,start:k}},"getMarkerLines");var Mc=Object.defineProperty,_r=wn((e,t)=>Mc(e,"name",{value:t,configurable:!0}),"t");const Cc=Zn.platform==="win32"&&!Zn.env?.WT_SESSION?">":"❯",_c=_r((e,t,o)=>{const i={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...o,color:{gutter:_r(E=>E,"gutter"),marker:_r(E=>E,"marker"),message:_r(E=>E,"message"),...o?.color}},u=typeof t.start.column=="number";let f=Ec(e).split(`
3
+ `);typeof i.tabWidth=="number"&&(f=f.map(E=>E.replaceAll(" "," ".repeat(i.tabWidth))));const{end:g,markerLines:h,start:w}=zc(t,f,i.linesAbove,i.linesBelow),P=String(g).length,{gutter:k,marker:O,message:N}=i.color;let C=f.slice(w,g).map((E,G)=>{const X=w+1+G,se=h[X],_e=` ${String(X)}`.slice(-P),Ne=!h[X+1],Q=` ${_e}${i.showGutter?" |":""}`;if(se){let B="";if(Array.isArray(se)){const Re=E.replaceAll(/[^\t]/g," ").slice(0,Math.max(se[0]-1,0)),Be=se[1]||1;B=[`
4
+ `,i.prefix+k(Q.replaceAll(/\d/g," "))," ",Re,O("^").repeat(Be)].join(""),Ne&&i.message&&(B+=` ${N(i.message)}`)}return[i.prefix+O(Cc),k(Q),E.length>0?` ${E}`:"",B].join("")}return`${i.prefix} ${k(Q)}${E.length>0?` ${E}`:""}`}).join(`
5
+ `);return i.message&&!u&&(C=`${i.prefix+" ".repeat(P+1)+i.message}
6
+ ${C}`),C},"codeFrame");var Nc=Object.defineProperty,Rc=Io((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"s"),Bc=Object.defineProperty,Ic=Rc((e,t)=>Bc(e,"name",{value:t,configurable:!0}),"o"),Dc=Object.defineProperty,jn=Ic((e,t)=>Dc(e,"name",{value:t,configurable:!0}),"l");const Vn=jn((e,t)=>{let o=0,i=t.length-2;for(;o<i;){const u=o+(i-o>>1);if(e<t[u])i=u-1;else if(e>=t[u+1])o=u+1;else{o=u;break}}return o},"binarySearch"),Fc=/\n|\r(?!\n)/,Wc=jn(e=>e.split(Fc).reduce((t,o)=>(t.push(t.at(-1)+o.length+1),t),[0]),"getLineStartIndexes"),Lc=jn((e,t,o)=>{const i=o?.skipChecks??!1;if(!i&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!i&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const f=Wc(e),g=Vn(t,f);return{column:t-f[g]+1,line:g+1}}const u=Vn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var qc=Object.defineProperty,Do=$((e,t)=>qc(e,"name",{value:t,configurable:!0}),"t$6"),Uc=Object.defineProperty,Fo=Do((e,t)=>Uc(e,"name",{value:t,configurable:!0}),"t"),Zc=Object.defineProperty,Vc=Fo((e,t)=>Zc(e,"name",{value:t,configurable:!0}),"i");let Gc=class extends Error{static{$(this,"m")}static{Do(this,"m")}static{Fo(this,"t")}static{Vc(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
7
7
 
8
8
  ${this.codeFrame}
9
- `:""}`}set message(t){this.#e=t}};var Zc=Object.defineProperty,Do=x((e,t)=>Zc(e,"name",{value:t,configurable:!0}),"u$3"),Vc=Object.defineProperty,Fo=Do((e,t)=>Vc(e,"name",{value:t,configurable:!0}),"s"),Gc=Object.defineProperty,Mr=Fo((e,t)=>Gc(e,"name",{value:t,configurable:!0}),"a");const Jc=Mr(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Hc=Mr((e,t,o)=>Mc(e,{start:t},{tabWidth:!1,...o}),"generateCodeFrame"),Kc=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Xc=Mr((e,t)=>{const o=Kc.exec(t);if(!o)return;const[,c,u,p]=o;if(u&&p)return{column:Number(p),line:Number(u)};let m=Number(c);return m===e.length&&(m=e.length-1),Dc(e,m)},"getErrorLocation"),Yc=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Qc=Mr(e=>e.replace(Yc,(t,o,c)=>`"${c}"(${Jc(c)})`),"addCodePointToUnexpectedToken");function qr(e,t,o,c){typeof t=="string"&&(typeof o=="object"&&(c=o),o=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(h){u=h.message}let p;e?(p=Xc(e,u),u=Qc(u)):u+=" while parsing empty string";const m=new qc(u);throw m.fileName=o,p&&(m.codeFrame=Hc(e,p,c)),m}x(qr,"d$3");Do(qr,"w");Fo(qr,"E");Mr(qr,"parseJson");var el=Object.defineProperty,Wo=x((e,t)=>el(e,"name",{value:t,configurable:!0}),"t$5"),tl=Object.defineProperty,Lo=Wo((e,t)=>tl(e,"name",{value:t,configurable:!0}),"t"),rl=Object.defineProperty,nl=Lo((e,t)=>rl(e,"name",{value:t,configurable:!0}),"r");function _r(e,t,o){typeof t=="object"&&(o=t,t=void 0);const c=hc(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(c);const{beforeParse:p,color:m}=o??{};return typeof p=="function"&&(u=p(u)),qr(u,t,Ur(e),{color:m})}x(_r,"n$3");Wo(_r,"s");Lo(_r,"J");nl(_r,"readJsonSync");var ol=Object.defineProperty,sl=x((e,t)=>ol(e,"name",{value:t,configurable:!0}),"a$3"),il=Object.defineProperty,al=sl((e,t)=>il(e,"name",{value:t,configurable:!0}),"t"),cl=Object.defineProperty,ll=al((e,t)=>cl(e,"name",{value:t,configurable:!0}),"e");const ul=ll(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var fl=Object.defineProperty,pl=x((e,t)=>fl(e,"name",{value:t,configurable:!0}),"t$3"),dl=Object.defineProperty,gl=pl((e,t)=>dl(e,"name",{value:t,configurable:!0}),"r"),hl=Object.defineProperty,ml=gl((e,t)=>hl(e,"name",{value:t,configurable:!0}),"f");const bl=new TextEncoder,yl=ml(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return bl.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var $l=Object.defineProperty,vl=x((e,t)=>$l(e,"name",{value:t,configurable:!0}),"m"),xl=Object.defineProperty,Uo=vl((e,t)=>xl(e,"name",{value:t,configurable:!0}),"s");const wl=Me(import.meta.url),kr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,jl=Uo(e=>{if(typeof kr<"u"&&kr.versions&&kr.versions.node){const[t,o]=kr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return kr.getBuiltinModule(e)}return wl(e)},"__cjs_getBuiltinModule"),{mkdirSync:Ol,writeFileSync:Pl,statSync:kl,renameSync:Zn,chownSync:El,chmodSync:Al,unlinkSync:Sl}=jl("node:fs");var zl=Object.defineProperty,Ml=Uo((e,t)=>zl(e,"name",{value:t,configurable:!0}),"f");const _l=Ml((e,t,o)=>{o={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...o},Fr(e),ul(t),e=Ur(e);const c=`${e}.tmp`;try{const u=V(e,tn);if(!u&&o.recursive){const m=Xe(e);V(m,tn)||Ol(m,{recursive:!0})}let p;if(Pl(c,yl(t),{encoding:o.encoding,flag:o.flag}),u&&!o.overwrite&&(p=kl(e),o.chown??={gid:p.gid,uid:p.uid},Zn(e,`${e}.bak`)),o.chown)try{El(c,o.chown.uid,o.chown.gid)}catch{}Al(c,p&&!o.mode?p.mode:o.mode??438),Zn(c,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{V(c)&&Sl(`${e}.tmp`)}},"writeFileSync");var Tl=Object.defineProperty,_e=x((e,t)=>Tl(e,"name",{value:t,configurable:!0}),"i$1"),Cl=Object.defineProperty,Te=_e((e,t)=>Cl(e,"name",{value:t,configurable:!0}),"s"),Bl=Object.defineProperty,Le=Te((e,t)=>Bl(e,"name",{value:t,configurable:!0}),"i");const Nl=/^(?:( )+|\t+)/,Tr="space";function Sr(e,t,o){return e&&t===Tr&&o===1}x(Sr,"d$1");_e(Sr,"g");Te(Sr,"I");Le(Sr,"shouldIgnoreSingleSpace");function zr(e,t){const o=new Map;let c=0,u,p;for(const m of e.split(/\n/g)){if(!m)continue;const h=m.match(Nl);if(h===null)c=0,u="";else{const j=h[0].length,E=h[1]?Tr:"tab";if(Sr(t,E,j))continue;E!==u&&(c=0),u=E;let P=1,O=0;const B=j-c;if(c=j,B===0)P=0,O=1;else{const k=Math.abs(B);if(Sr(t,E,k))continue;p=Zr(E,k)}const T=o.get(p);o.set(p,T===void 0?[1,0]:[T[0]+P,T[1]+O])}}return o}x(zr,"p$1");_e(zr,"y");Te(zr,"h");Le(zr,"makeIndentsMap");function Zr(e,t){return(e===Tr?"s":"t")+String(t)}x(Zr,"b$2");_e(Zr,"v");Te(Zr,"m");Le(Zr,"encodeIndentsKey");function Vr(e){const t=e[0]==="s"?Tr:"tab",o=Number(e.slice(1));return{type:t,amount:o}}x(Vr,"v");_e(Vr,"M");Te(Vr,"_");Le(Vr,"decodeIndentsKey");function Gr(e){let t,o=0,c=0;for(const[u,[p,m]]of e)(p>o||p===o&&m>c)&&(o=p,c=m,t=u);return t}x(Gr,"I$1");_e(Gr,"S");Te(Gr,"k");Le(Gr,"getMostUsedKey");function Jr(e,t){return(e===Tr?" ":" ").repeat(t)}x(Jr,"h");_e(Jr,"k");Te(Jr,"D");Le(Jr,"makeIndentString");function Hr(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=zr(e,!0);t.size===0&&(t=zr(e,!1));const o=Gr(t);let c,u=0,p="";return o!==void 0&&({type:c,amount:u}=Vr(o),p=Jr(c,u)),{amount:u,type:c,indent:p}}x(Hr,"M$1");_e(Hr,"x");Te(Hr,"C");Le(Hr,"detectIndent");var Il=Object.defineProperty,Rl=x((e,t)=>Il(e,"name",{value:t,configurable:!0}),"a$1"),Dl=Object.defineProperty,qo=Rl((e,t)=>Dl(e,"name",{value:t,configurable:!0}),"i");const Fl=Me(import.meta.url),Er=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wl=qo(e=>{if(typeof Er<"u"&&Er.versions&&Er.versions.node){const[t,o]=Er.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Er.getBuiltinModule(e)}return Fl(e)},"__cjs_getBuiltinModule"),{readFileSync:Ll}=Wl("node:fs");var Ul=Object.defineProperty,ql=qo((e,t)=>Ul(e,"name",{value:t,configurable:!0}),"r");const Zo=ql((e,t,o={})=>{const{detectIndent:c,indent:u,replacer:p,stringify:m=JSON.stringify,...h}={indent:" ",...o};let j=u,E=`
10
- `;if(V(e,jo))try{const O=Ll(e,"utf8");if(c){const{indent:B}=Hr(O);j=B}E=O.endsWith(`
9
+ `:""}`}set message(t){this.#e=t}};var Kc=Object.defineProperty,Wo=$((e,t)=>Kc(e,"name",{value:t,configurable:!0}),"u$3"),Jc=Object.defineProperty,Lo=Wo((e,t)=>Jc(e,"name",{value:t,configurable:!0}),"s"),Hc=Object.defineProperty,zr=Lo((e,t)=>Hc(e,"name",{value:t,configurable:!0}),"a");const Xc=zr(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Yc=zr((e,t,o)=>_c(e,{start:t},{tabWidth:!1,...o}),"generateCodeFrame"),Qc=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,el=zr((e,t)=>{const o=Qc.exec(t);if(!o)return;const[,i,u,f]=o;if(u&&f)return{column:Number(f),line:Number(u)};let g=Number(i);return g===e.length&&(g=e.length-1),Lc(e,g)},"getErrorLocation"),tl=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,rl=zr(e=>e.replace(tl,(t,o,i)=>`"${i}"(${Xc(i)})`),"addCodePointToUnexpectedToken");function Ur(e,t,o,i){typeof t=="string"&&(typeof o=="object"&&(i=o),o=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(h){u=h.message}let f;e?(f=el(e,u),u=rl(u)):u+=" while parsing empty string";const g=new Gc(u);throw g.fileName=o,f&&(g.codeFrame=Yc(e,f,i)),g}$(Ur,"d$5");Wo(Ur,"w");Lo(Ur,"E");zr(Ur,"parseJson");var nl=Object.defineProperty,qo=$((e,t)=>nl(e,"name",{value:t,configurable:!0}),"t$5"),ol=Object.defineProperty,Uo=qo((e,t)=>ol(e,"name",{value:t,configurable:!0}),"t"),sl=Object.defineProperty,il=Uo((e,t)=>sl(e,"name",{value:t,configurable:!0}),"r");function Mr(e,t,o){typeof t=="object"&&(o=t,t=void 0);const i=yc(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(i);const{beforeParse:f,color:g}=o??{};return typeof f=="function"&&(u=f(u)),Ur(u,t,qr(e),{color:g})}$(Mr,"n$3");qo(Mr,"s");Uo(Mr,"J");il(Mr,"readJsonSync");var al=Object.defineProperty,cl=$((e,t)=>al(e,"name",{value:t,configurable:!0}),"a$3"),ll=Object.defineProperty,ul=cl((e,t)=>ll(e,"name",{value:t,configurable:!0}),"t"),fl=Object.defineProperty,pl=ul((e,t)=>fl(e,"name",{value:t,configurable:!0}),"e");const dl=pl(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var gl=Object.defineProperty,hl=$((e,t)=>gl(e,"name",{value:t,configurable:!0}),"t$3"),ml=Object.defineProperty,bl=hl((e,t)=>ml(e,"name",{value:t,configurable:!0}),"r"),yl=Object.defineProperty,$l=bl((e,t)=>yl(e,"name",{value:t,configurable:!0}),"f");const vl=new TextEncoder,xl=$l(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return vl.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var wl=Object.defineProperty,jl=$((e,t)=>wl(e,"name",{value:t,configurable:!0}),"m"),Ol=Object.defineProperty,Zo=jl((e,t)=>Ol(e,"name",{value:t,configurable:!0}),"s");const kl=ze(import.meta.url),Pr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pl=Zo(e=>{if(typeof Pr<"u"&&Pr.versions&&Pr.versions.node){const[t,o]=Pr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pr.getBuiltinModule(e)}return kl(e)},"__cjs_getBuiltinModule"),{mkdirSync:El,writeFileSync:Al,statSync:Sl,renameSync:Gn,chownSync:Tl,chmodSync:zl,unlinkSync:Ml}=Pl("node:fs");var Cl=Object.defineProperty,_l=Zo((e,t)=>Cl(e,"name",{value:t,configurable:!0}),"f");const Nl=_l((e,t,o)=>{o={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...o},Fr(e),dl(t),e=qr(e);const i=`${e}.tmp`;try{const u=V(e,on);if(!u&&o.recursive){const g=Xe(e);V(g,on)||El(g,{recursive:!0})}let f;if(Al(i,xl(t),{encoding:o.encoding,flag:o.flag}),u&&!o.overwrite&&(f=Sl(e),o.chown??={gid:f.gid,uid:f.uid},Gn(e,`${e}.bak`)),o.chown)try{Tl(i,o.chown.uid,o.chown.gid)}catch{}zl(i,f&&!o.mode?f.mode:o.mode??438),Gn(i,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{V(i)&&Ml(`${e}.tmp`)}},"writeFileSync");var Rl=Object.defineProperty,Me=$((e,t)=>Rl(e,"name",{value:t,configurable:!0}),"i$2"),Bl=Object.defineProperty,Ce=Me((e,t)=>Bl(e,"name",{value:t,configurable:!0}),"s"),Il=Object.defineProperty,Le=Ce((e,t)=>Il(e,"name",{value:t,configurable:!0}),"i");const Dl=/^(?:( )+|\t+)/,Cr="space";function Sr(e,t,o){return e&&t===Cr&&o===1}$(Sr,"d$3");Me(Sr,"g");Ce(Sr,"I");Le(Sr,"shouldIgnoreSingleSpace");function Tr(e,t){const o=new Map;let i=0,u,f;for(const g of e.split(/\n/g)){if(!g)continue;const h=g.match(Dl);if(h===null)i=0,u="";else{const w=h[0].length,P=h[1]?Cr:"tab";if(Sr(t,P,w))continue;P!==u&&(i=0),u=P;let k=1,O=0;const N=w-i;if(i=w,N===0)k=0,O=1;else{const E=Math.abs(N);if(Sr(t,P,E))continue;f=Zr(P,E)}const C=o.get(f);o.set(f,C===void 0?[1,0]:[C[0]+k,C[1]+O])}}return o}$(Tr,"p");Me(Tr,"y");Ce(Tr,"h");Le(Tr,"makeIndentsMap");function Zr(e,t){return(e===Cr?"s":"t")+String(t)}$(Zr,"b$1");Me(Zr,"v");Ce(Zr,"m");Le(Zr,"encodeIndentsKey");function Vr(e){const t=e[0]==="s"?Cr:"tab",o=Number(e.slice(1));return{type:t,amount:o}}$(Vr,"v");Me(Vr,"M");Ce(Vr,"_");Le(Vr,"decodeIndentsKey");function Gr(e){let t,o=0,i=0;for(const[u,[f,g]]of e)(f>o||f===o&&g>i)&&(o=f,i=g,t=u);return t}$(Gr,"I");Me(Gr,"S");Ce(Gr,"k");Le(Gr,"getMostUsedKey");function Kr(e,t){return(e===Cr?" ":" ").repeat(t)}$(Kr,"h$1");Me(Kr,"k");Ce(Kr,"D");Le(Kr,"makeIndentString");function Jr(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Tr(e,!0);t.size===0&&(t=Tr(e,!1));const o=Gr(t);let i,u=0,f="";return o!==void 0&&({type:i,amount:u}=Vr(o),f=Kr(i,u)),{amount:u,type:i,indent:f}}$(Jr,"M");Me(Jr,"x");Ce(Jr,"C");Le(Jr,"detectIndent");var Fl=Object.defineProperty,Wl=$((e,t)=>Fl(e,"name",{value:t,configurable:!0}),"a$1"),Ll=Object.defineProperty,Vo=Wl((e,t)=>Ll(e,"name",{value:t,configurable:!0}),"i");const ql=ze(import.meta.url),Er=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ul=Vo(e=>{if(typeof Er<"u"&&Er.versions&&Er.versions.node){const[t,o]=Er.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Er.getBuiltinModule(e)}return ql(e)},"__cjs_getBuiltinModule"),{readFileSync:Zl}=Ul("node:fs");var Vl=Object.defineProperty,Gl=Vo((e,t)=>Vl(e,"name",{value:t,configurable:!0}),"r");const Go=Gl((e,t,o={})=>{const{detectIndent:i,indent:u,replacer:f,stringify:g=JSON.stringify,...h}={indent:" ",...o};let w=u,P=`
10
+ `;if(V(e,ko))try{const O=Zl(e,"utf8");if(i){const{indent:N}=Jr(O);w=N}P=O.endsWith(`
11
11
  `)?`
12
- `:""}catch(O){if(O.code!=="ENOENT")throw O}const P=m(t,p,j);_l(e,`${P}${E}`,h)},"writeJsonSync");var Zl=Object.defineProperty,Vl=x((e,t)=>Zl(e,"name",{value:t,configurable:!0}),"s");class xn extends Error{static{x(this,"VisConfigError")}static{Vl(this,"VisConfigError")}chain;constructor(t,o,c){super(t,c),this.name=this.constructor.name,this.chain=o}}var Gl=Object.defineProperty,Jl=x((e,t)=>Gl(e,"name",{value:t,configurable:!0}),"e");class Hl extends xn{static{x(this,"VisConfigCycleError")}static{Jl(this,"VisConfigCycleError")}constructor(t,o){const c=[...o,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${c}`,o)}}var Kl=Object.defineProperty,Xl=x((e,t)=>Kl(e,"name",{value:t,configurable:!0}),"t$1");class Vn extends xn{static{x(this,"VisConfigLoadError")}static{Xl(this,"VisConfigLoadError")}constructor(t,o,c){const u=c instanceof Error?c.message:String(c),p=o.length>0?`
13
- Chain: ${o.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${p}`,o,{cause:c})}}var Yl=Object.defineProperty,Vo=x((e,t)=>Yl(e,"name",{value:t,configurable:!0}),"t");const Ql=Vo(e=>e.join(" → "),"formatChain");class Qr extends xn{static{x(this,"VisConfigNotFoundError")}static{Vo(this,"VisConfigNotFoundError")}constructor(t,o,c){const u=o.length>0?o[o.length-1]:"<unknown>",p=c.length>0?`
12
+ `:""}catch(O){if(O.code!=="ENOENT")throw O}const k=g(t,f,w);Nl(e,`${k}${P}`,h)},"writeJsonSync");var Kl=Object.defineProperty,Jl=$((e,t)=>Kl(e,"name",{value:t,configurable:!0}),"s$1");class Hr extends Error{static{$(this,"VisConfigError")}static{Jl(this,"VisConfigError")}chain;constructor(t,o,i){super(t,i),this.name=this.constructor.name,this.chain=o}}var Hl=Object.defineProperty,Xl=$((e,t)=>Hl(e,"name",{value:t,configurable:!0}),"e");class Yl extends Hr{static{$(this,"VisConfigCycleError")}static{Xl(this,"VisConfigCycleError")}constructor(t,o){const i=[...o,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${i}`,o)}}var Ql=Object.defineProperty,eu=$((e,t)=>Ql(e,"name",{value:t,configurable:!0}),"s");class Ko extends Hr{static{$(this,"VisConfigDeprecatedKeyError")}static{eu(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,o,i){const u=[`${t} uses removed keys.`,""];for(const f of i){const g=f.location?` (at ${f.location})`:"";u.push(` • ${f.name}${g} → renamed to \`${f.renamedTo}\``);for(const h of f.children??[])u.push(` ↳ ${h.name} → renamed to \`${h.renamedTo}\``)}u.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(u.join(`
13
+ `),o),this.filePath=t,this.removedKeys=i}}var tu=Object.defineProperty,ru=$((e,t)=>tu(e,"name",{value:t,configurable:!0}),"t$1");class Kn extends Hr{static{$(this,"VisConfigLoadError")}static{ru(this,"VisConfigLoadError")}constructor(t,o,i){const u=i instanceof Error?i.message:String(i),f=o.length>0?`
14
+ Chain: ${o.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${f}`,o,{cause:i})}}var nu=Object.defineProperty,Jo=$((e,t)=>nu(e,"name",{value:t,configurable:!0}),"t");const ou=Jo(e=>e.join(" → "),"formatChain");class tn extends Hr{static{$(this,"VisConfigNotFoundError")}static{Jo(this,"VisConfigNotFoundError")}constructor(t,o,i){const u=o.length>0?o[o.length-1]:"<unknown>",f=i.length>0?`
14
15
  Tried:
15
- ${c.join(`
16
- `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${p}
17
- Chain: ${Ql(o)}`,o)}}var eu=Object.defineProperty,Go=x((e,t)=>eu(e,"name",{value:t,configurable:!0}),"i");const Gn="@inherit",tu=["aliases","dependsOn","inputs","outputs"],ru=Go((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Gn))return[...t];const o=[];for(const c of t){if(c===Gn){e!==void 0&&o.push(...e);continue}o.push(c)}return o},"mergeArrayWithInherit"),nu=Go((e,t)=>{const o={...e,...t};for(const c of tu){const u=e?.[c],p=t?.[c],m=ru(u,p);m===void 0?delete o[c]:o[c]=m}return o},"mergeTargetWithInherit");var ou=Object.defineProperty,N=x((e,t)=>ou(e,"name",{value:t,configurable:!0}),"r");const Jo=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],su=new Set(Jo),Ho=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],iu=new Set(Ho),au={blockExoticSubdeps:!0,strictDepBuilds:!0,trustPolicy:"no-downgrade",trustPolicyIgnoreAfter:43200},cu=N(e=>({...au,...e}),"mergeSecurityDefaults"),nn=N(e=>({...e,security:cu(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),lu=N(e=>{let t;try{t=Hn(e)}catch{return}const o=new Set(t.filter(c=>su.has(c)));for(const c of Jo)if(o.has(c))return Z(e,c)},"findVisConfigFile"),uu=N(e=>{let t;try{t=Hn(e)}catch{return}const o=new Set(t.filter(c=>iu.has(c)));for(const c of Ho)if(o.has(c))return Z(e,c)},"findVisTaskConfigFile"),wn=N(e=>Jn("sha256").update(ts(e)).digest("hex"),"hashFileContents"),fu=N(e=>{const t=Jn("sha256"),o=[...e].sort();for(const c of o)t.update(c),t.update(":"),t.update(wn(c)),t.update(`
18
- `);return t.digest("hex")},"hashConfigChain"),pu=N(e=>{const t=Z(e,"node_modules");if(V(t)){const c=Z(t,".cache","vis");return Wr(c),Z(c,"vis-config-cache.json")}const o=wo("vis",{create:!0,cwd:e});return o?Z(o,"vis-config-cache.json"):void 0},"getConfigCachePath"),du=N((e,t)=>{if(V(e))try{const o=_r(e);if(o.hash===t)return o.config}catch{}},"readConfigCache"),gu=N((e,t,o)=>{try{Wr(Xe(e)),Zo(e,{config:o,hash:t})}catch{}},"writeConfigCache"),hu=N(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),mu=N((e,t,o)=>{if(De(e))throw new Qr(e,[...o,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const c=[];if(e.startsWith("./")||e.startsWith("../")){const u=Xe(t),p=Z(u,e);if(c.push(p),V(p))return p;throw new Qr(e,[...o,t],c)}try{return Me(t).resolve(e)}catch{throw c.push(`require.resolve("${e}") from ${t}`),new Qr(e,[...o,t],c)}},"resolveExtendsSpecifier"),Ko=N(async(e,t,o)=>{const c=wn(t),u=t.slice(t.lastIndexOf(".")),p=Z(Xe(t),`.vis-config-tmp-${c}${u}`);rs(t,p);let m;try{m=await e.import(p,{default:!0,try:!0})??{}}catch(h){throw new Vn(t,o,h)}finally{try{ns(p)}catch{}}try{return(typeof m=="function"?await m()??{}:m)??{}}catch(h){throw new Vn(t,o,h)}},"loadRawConfig"),bu=N((e,t)=>{const o={...e,...t};if(e.targetDefaults||t.targetDefaults){const c=new Set([...Object.keys(e.targetDefaults??{}),...Object.keys(t.targetDefaults??{})]),u={};for(const p of c)u[p]=nu(e.targetDefaults?.[p],t.targetDefaults?.[p]);o.targetDefaults=u}return(e.taskDefaults||t.taskDefaults)&&(o.taskDefaults=[...e.taskDefaults??[],...t.taskDefaults??[]]),(e.fileGroups||t.fileGroups)&&(o.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(o.taskGroups={...e.taskGroups,...t.taskGroups}),(e.security||t.security)&&(o.security={...e.security,...t.security}),(e.update||t.update)&&(o.update={...e.update,...t.update}),(e.taskRunnerOptions||t.taskRunnerOptions)&&(o.taskRunnerOptions={...e.taskRunnerOptions,...t.taskRunnerOptions}),delete o.extends,o},"mergeVisConfigs"),Xo=N(async(e,t,o,c,u,p)=>{if(c.has(t))throw new Hl(t,o);if(!u.has(t)){c.add(t);try{const m=await Ko(e,t,o),h=hu(m.extends);for(const j of h){const E=mu(j,t,o);await Xo(e,E,[...o,t],c,u,p)}u.set(t,m),p.push(t)}finally{c.delete(t)}}},"resolveConfigChain"),Bu=N(async(e,t)=>{let o;if(t?.explicitConfigPath){const O=De(t.explicitConfigPath)?t.explicitConfigPath:Z(e,t.explicitConfigPath);if(!V(O))throw new Error(`Cannot find config file at ${O}`);o=O}else o=lu(e);if(!o)return nn({});const c=Kn(e,{fsCache:!1,moduleCache:!1}),u=new Set,p=new Map,m=[];await Xo(c,o,[],u,p,m);const h=fu(m),j=pu(e);if(j){const O=du(j,h);if(O)return O}let E={};for(const O of m)E=bu(E,p.get(O));const P=nn(E);return j&&gu(j,h,P),P},"loadVisConfig"),yu=N(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),$u=N((e,t)=>{const o=Z(e,"node_modules"),c=yu(t);if(V(o)){const p=Z(o,".cache","vis","task-configs");return Wr(p),Z(p,`${c}.json`)}const u=wo("vis",{create:!0,cwd:e});return u?Z(u,"task-configs",`${c}.json`):void 0},"getVisTaskCachePath"),vu=N((e,t)=>{if(V(e))try{const o=_r(e);if(o.hash===t)return o.config}catch{}},"readVisTaskCache"),xu=N((e,t,o)=>{try{Wr(Xe(e)),Zo(e,{config:o,hash:t})}catch{}},"writeVisTaskCache"),Nu=N(async(e,t,o)=>{const c=uu(t);if(!c)return;const u=wn(c),p=$u(e,o);if(p){const j=vu(p,u);if(j)return j}const m=Kn(t,{fsCache:!1,moduleCache:!1}),h=await Ko(m,c,[]);return p&&xu(p,u,h),h},"loadVisTaskConfig"),Iu=N(e=>e,"defineTaskConfig"),Ru=N(e=>nn(e),"defineConfig");export{hc as $,nu as A,_l as B,rn as C,wo as D,uu as I,Xe as K,Eo as L,Z as M,au as O,Ta as Q,Ur as U,Bu as X,tn as _,V as a,De as b,zu as c,_u as d,Nu as e,Fr as f,Cn as g,Wr as h,Iu as i,lu as j,Ho as k,nn as l,Eu as m,_r as n,Au as o,Jo as p,Wn as q,Ru as r,jo as s,qr as t,ul as u,yl as v,Zo as w,Hr as x,Su as y,Mu as z};
16
+ ${i.join(`
17
+ `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${f}
18
+ Chain: ${ou(o)}`,o)}}var su=Object.defineProperty,Ho=$((e,t)=>su(e,"name",{value:t,configurable:!0}),"i$1");const Jn="@inherit",iu=["aliases","dependsOn","inputs","outputs"],au=Ho((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Jn))return[...t];const o=[];for(const i of t){if(i===Jn){e!==void 0&&o.push(...e);continue}o.push(i)}return o},"mergeArrayWithInherit"),cu=Ho((e,t)=>{const o={...e,...t};for(const i of iu){const u=e?.[i],f=t?.[i],g=au(u,f);g===void 0?delete o[i]:o[i]=g}return o},"mergeTargetWithInherit");var lu=Object.defineProperty,Xr=$((e,t)=>lu(e,"name",{value:t,configurable:!0}),"o");const uu=Xr(e=>{const t=[];if(Object.hasOwn(e,"targetDefaults")&&t.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(e,"taskRunnerOptions")&&t.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(e,"taskDefaults")){const{taskDefaults:o}=e,i=[];if(Array.isArray(o))for(const[u,f]of o.entries())f&&typeof f=="object"&&(Object.hasOwn(f,"scope")&&i.push({location:`taskDefaults[${u}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(f,"targets")&&i.push({location:`taskDefaults[${u}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:i.length>0?i:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[o,i]of e.scopedTasks.entries())i&&typeof i=="object"&&(Object.hasOwn(i,"scope")&&t.push({location:`scopedTasks[${o}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(i,"targets")&&t.push({location:`scopedTasks[${o}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),fu=Xr(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),pu=Xr((e,t,o)=>{if(!o||typeof o!="object")return;const i=uu(o);if(i.length>0)throw new Ko(e,t,i)},"assertNoDeprecatedConfigKeys"),du=Xr((e,t,o)=>{if(!o||typeof o!="object")return;const i=fu(o);if(i.length>0)throw new Ko(e,t,i)},"assertNoDeprecatedTaskKeys");var gu=Object.defineProperty,R=$((e,t)=>gu(e,"name",{value:t,configurable:!0}),"r");const Xo=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],hu=new Set(Xo),Yo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],mu=new Set(Yo),Uu=2880,rn={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},bu=R(e=>{if(!e)return{...rn};const t=rn.policies??{},o=e.policies??{},i={...t,...o};for(const u of Object.keys(t)){const f=t[u],g=o[u];f!==void 0&&g!==void 0&&(i[u]={...f,...g})}return{...rn,...e,policies:i}},"mergeSecurityDefaults"),an=R(e=>({...e,security:bu(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),yu=R(e=>{let t;try{t=Xn(e)}catch{return}const o=new Set(t.filter(i=>hu.has(i)));for(const i of Xo)if(o.has(i))return Z(e,i)},"findVisConfigFile"),$u=R(e=>{let t;try{t=Xn(e)}catch{return}const o=new Set(t.filter(i=>mu.has(i)));for(const i of Yo)if(o.has(i))return Z(e,i)},"findVisTaskConfigFile"),On=R(e=>Hn("sha256").update(os(e)).digest("hex"),"hashFileContents"),vu=R(e=>{const t=Hn("sha256"),o=[...e].sort();for(const i of o)t.update(i),t.update(":"),t.update(On(i)),t.update(`
19
+ `);return t.digest("hex")},"hashConfigChain"),xu=R(e=>{const t=Z(e,"node_modules");if(V(t)){const i=Z(t,".cache","vis");return Wr(i),Z(i,"vis-config-cache.json")}const o=Oo("vis",{create:!0,cwd:e});return o?Z(o,"vis-config-cache.json"):void 0},"getConfigCachePath"),wu=R((e,t)=>{if(V(e))try{const o=Mr(e);if(o.hash===t)return o.config}catch{}},"readConfigCache"),ju=R((e,t,o)=>{try{Wr(Xe(e)),Go(e,{config:o,hash:t})}catch{}},"writeConfigCache"),Ou=R(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),ku=R((e,t,o)=>{if(De(e))throw new tn(e,[...o,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const i=[];if(e.startsWith("./")||e.startsWith("../")){const u=Xe(t),f=Z(u,e);if(i.push(f),V(f))return f;throw new tn(e,[...o,t],i)}try{return ze(t).resolve(e)}catch{throw i.push(`require.resolve("${e}") from ${t}`),new tn(e,[...o,t],i)}},"resolveExtendsSpecifier"),Qo=R(async(e,t,o)=>{const i=On(t),u=t.slice(t.lastIndexOf(".")),f=Z(Xe(t),`.vis-config-tmp-${i}${u}`);ss(t,f);let g;try{g=await e.import(f,{default:!0,try:!0})??{}}catch(h){throw new Kn(t,o,h)}finally{try{is(f)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new Kn(t,o,h)}},"loadRawConfig"),Pu=R((e,t)=>{const o={...e,...t};if(e.tasks||t.tasks){const i=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),u={};for(const f of i)u[f]=cu(e.tasks?.[f],t.tasks?.[f]);o.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(o.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(o.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(o.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const i=e.security?.policies??{},u=t.security?.policies??{},f={...i,...u};for(const g of Object.keys(i)){const h=i[g],w=u[g];h!==void 0&&w!==void 0&&(f[g]={...h,...w})}o.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:f}}return(e.update||t.update)&&(o.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(o.taskRunner={...e.taskRunner,...t.taskRunner}),delete o.extends,o},"mergeVisConfigs"),es=R(async(e,t,o,i,u,f)=>{if(i.has(t))throw new Yl(t,o);if(!u.has(t)){i.add(t);try{const g=await Qo(e,t,o);pu(t,o,g);const h=Ou(g.extends);for(const w of h){const P=ku(w,t,o);await es(e,P,[...o,t],i,u,f)}u.set(t,g),f.push(t)}finally{i.delete(t)}}},"resolveConfigChain"),Zu=R(async(e,t)=>{let o;if(t?.explicitConfigPath){const O=De(t.explicitConfigPath)?t.explicitConfigPath:Z(e,t.explicitConfigPath);if(!V(O))throw new Error(`Cannot find config file at ${O}`);o=O}else o=yu(e);if(!o)return an({});const i=Yn(e,{fsCache:!1,moduleCache:!1}),u=new Set,f=new Map,g=[];await es(i,o,[],u,f,g);const h=vu(g),w=xu(e);if(w){const O=wu(w,h);if(O)return O}let P={};for(const O of g)P=Pu(P,f.get(O));const k=an(P);return w&&ju(w,h,k),k},"loadVisConfig"),Eu=R(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),Au=R((e,t)=>{const o=Z(e,"node_modules"),i=Eu(t);if(V(o)){const f=Z(o,".cache","vis","task-configs");return Wr(f),Z(f,`${i}.json`)}const u=Oo("vis",{create:!0,cwd:e});return u?Z(u,"task-configs",`${i}.json`):void 0},"getVisTaskCachePath"),Su=R((e,t)=>{if(V(e))try{const o=Mr(e);if(o.hash===t)return o.config}catch{}},"readVisTaskCache"),Tu=R((e,t,o)=>{try{Wr(Xe(e)),Go(e,{config:o,hash:t})}catch{}},"writeVisTaskCache"),Vu=R(async(e,t,o)=>{const i=$u(t);if(!i)return;const u=On(i),f=Au(e,o);if(f){const P=Su(f,u);if(P)return P}const g=Yn(t,{fsCache:!1,moduleCache:!1}),h=await Qo(g,i,[]);du(i,[],h);const w=h;return f&&Tu(f,u,w),w},"loadVisTaskConfig"),Gu=R(e=>e,"defineTaskConfig"),Ku=R(e=>an(e),"defineConfig");export{yc as $,Jr as A,Nl as B,sn as C,cu as D,$u as G,Uu as H,Oo as K,So as L,Z as M,De as O,Ra as Q,qr as U,Yo as V,on as _,Gu as a,Wr as b,Ku as c,Du as d,Zu as e,Iu as f,Xe as g,Xo as h,V as i,yu as j,Wu as k,rn as l,Fr as m,Mr as n,Rn as o,Bu as p,Ru as q,Vu as r,qn as s,ko as t,Ur as u,dl as v,Go as w,xl as x,an as y,Fu as z};
@@ -1,2 +1,2 @@
1
- var h=Object.defineProperty;var p=(e,t)=>h(e,"name",{value:t,configurable:!0});import{c as d,d as l,j as g,E as n,q as b,e as m,p as f}from"./bin.js";import{ReapiRemoteCache as k,resolveTurboEnvCompat as $}from"@visulima/task-runner";var w=Object.defineProperty,s=p((e,t)=>w(e,"name",{value:t,configurable:!0}),"s");const y=s((e,t)=>t==="http"||t==="reapi"?t:e.startsWith("grpc://")||e.startsWith("grpcs://")?"reapi":"http","inferBackend"),S=s(async(e,t)=>{const o=Date.now(),a=new AbortController,r=setTimeout(()=>{a.abort()},t);try{const i=await fetch(e,{method:"HEAD",signal:a.signal});return{backend:"http",durationMs:Date.now()-o,httpStatus:i.status,ok:!0,url:e}}catch(i){return{backend:"http",durationMs:Date.now()-o,error:i instanceof Error?i.message:String(i),ok:!1,url:e}}finally{clearTimeout(r)}},"probeHttp"),C=s(async(e,t)=>{const o=Date.now(),a=new k({...e,timeout:t});try{return{backend:"reapi",capabilities:await a.probeCapabilities(),durationMs:Date.now()-o,ok:!0,url:e.url}}catch(r){return{backend:"reapi",durationMs:Date.now()-o,error:r instanceof Error?r.message:String(r),ok:!1,url:e.url}}finally{try{await a.close()}catch{}}},"probeReapi"),D=s(e=>{const t=[],o=e.ok?d("OK"):l("FAIL");if(t.push(`${g("Remote cache")} ${o}`),t.push(` ${n("URL:")} ${b(e.url)}`),t.push(` ${n("Backend:")} ${e.backend}`),t.push(` ${n("Latency:")} ${String(e.durationMs)}ms`),e.httpStatus!==void 0&&t.push(` ${n("Status:")} ${String(e.httpStatus)}`),e.capabilities){const a=e.capabilities.digestFunctions.length>0?e.capabilities.digestFunctions.join(", "):m("(none advertised)");t.push(` ${n("Digests:")} ${a}`),t.push(` ${n("Batch:")} ${String(e.capabilities.maxBatchTotalSizeBytes)} bytes`)}return e.error&&t.push(` ${n("Error:")} ${l(e.error)}`),t.join(`
2
- `)},"formatTable"),x=s(async({logger:e,options:t,visConfig:o})=>{const a=$((o??{}).taskRunnerOptions?.remoteCache),r=t.url??a?.url,i=t.format??"table",u=t.timeout??5e3;if(!r){f.error("No remote cache configured. Set taskRunnerOptions.remoteCache.url in vis.config.ts, pass --url=..., or export TURBO_API."),process.exitCode=1;return}const c=y(r,t.backend)==="reapi"?await C({...a??{url:r},backend:"reapi",url:r},u):await S(r,u);i==="json"?e.log(JSON.stringify(c,null,2)):e.log(D(c)),c.ok||(process.exitCode=1)},"cacheDoctorExecute");export{x as cacheDoctorExecute};
1
+ var h=Object.defineProperty;var p=(e,t)=>h(e,"name",{value:t,configurable:!0});import{I as g,a as l,j as b,E as n,q as d,e as m,p as f}from"./bin.js";import{ReapiRemoteCache as k,resolveTurboEnvCompat as $}from"@visulima/task-runner";var w=Object.defineProperty,s=p((e,t)=>w(e,"name",{value:t,configurable:!0}),"s");const y=s((e,t)=>t==="http"||t==="reapi"?t:e.startsWith("grpc://")||e.startsWith("grpcs://")?"reapi":"http","inferBackend"),S=s(async(e,t)=>{const o=Date.now(),a=new AbortController,r=setTimeout(()=>{a.abort()},t);try{const i=await fetch(e,{method:"HEAD",signal:a.signal});return{backend:"http",durationMs:Date.now()-o,httpStatus:i.status,ok:!0,url:e}}catch(i){return{backend:"http",durationMs:Date.now()-o,error:i instanceof Error?i.message:String(i),ok:!1,url:e}}finally{clearTimeout(r)}},"probeHttp"),C=s(async(e,t)=>{const o=Date.now(),a=new k({...e,timeout:t});try{return{backend:"reapi",capabilities:await a.probeCapabilities(),durationMs:Date.now()-o,ok:!0,url:e.url}}catch(r){return{backend:"reapi",durationMs:Date.now()-o,error:r instanceof Error?r.message:String(r),ok:!1,url:e.url}}finally{try{await a.close()}catch{}}},"probeReapi"),D=s(e=>{const t=[],o=e.ok?g("OK"):l("FAIL");if(t.push(`${b("Remote cache")} ${o}`),t.push(` ${n("URL:")} ${d(e.url)}`),t.push(` ${n("Backend:")} ${e.backend}`),t.push(` ${n("Latency:")} ${String(e.durationMs)}ms`),e.httpStatus!==void 0&&t.push(` ${n("Status:")} ${String(e.httpStatus)}`),e.capabilities){const a=e.capabilities.digestFunctions.length>0?e.capabilities.digestFunctions.join(", "):m("(none advertised)");t.push(` ${n("Digests:")} ${a}`),t.push(` ${n("Batch:")} ${String(e.capabilities.maxBatchTotalSizeBytes)} bytes`)}return e.error&&t.push(` ${n("Error:")} ${l(e.error)}`),t.join(`
2
+ `)},"formatTable"),x=s(async({logger:e,options:t,visConfig:o})=>{const a=$((o??{}).taskRunner?.remoteCache),r=t.url??a?.url,i=t.format??"table",u=t.timeout??5e3;if(!r){f.error("No remote cache configured. Set taskRunner.remoteCache.url in vis.config.ts, pass --url=..., or export TURBO_API."),process.exitCode=1;return}const c=y(r,t.backend)==="reapi"?await C({...a??{url:r},backend:"reapi",url:r},u):await S(r,u);i==="json"?e.log(JSON.stringify(c,null,2)):e.log(D(c)),c.ok||(process.exitCode=1)},"cacheDoctorExecute");export{x as cacheDoctorExecute};