@rohal12/spindle-lsp 0.15.46 → 0.15.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -55,7 +55,7 @@ var VERSION;
55
55
  var init_version = __esm({
56
56
  "src/version.ts"() {
57
57
  "use strict";
58
- VERSION = false ? pkg.version : "0.15.46";
58
+ VERSION = false ? pkg.version : "0.15.47";
59
59
  }
60
60
  });
61
61
 
@@ -77,7 +77,7 @@ function Gs(r7) {
77
77
  return r7.replace(Ps, Ne).replace(zs, Pe).replace(Ls, oe).replace(js, ze).replace(Ws, Le);
78
78
  }
79
79
  function Hs(r7) {
80
- return r7.replace(Fs, "\\").replace(Ms, "{").replace(_s, "}").replace(Ds, ",").replace(Ns, ".");
80
+ return r7.replace(Ts, "\\").replace(Fs, "{").replace(_s, "}").replace(Ds, ",").replace(Ns, ".");
81
81
  }
82
82
  function ne(r7, t) {
83
83
  for (let e = 0; e < t.length; e++) r7.push(t[e]);
@@ -87,12 +87,12 @@ function qs(r7) {
87
87
  for (; ; ) {
88
88
  let s = se("{", "}", r7);
89
89
  if (!s) {
90
- let a = r7.split(",");
91
- return a[0] = e + a[0], ne(t, a), t;
90
+ let h = r7.split(",");
91
+ return h[0] = e + h[0], ne(t, h), t;
92
92
  }
93
- let { pre: i2, body: n, post: o } = s, h = i2.split(",");
94
- if (h[0] = e + h[0], h[h.length - 1] += "{" + n + "}", !o.length) return ne(t, h), t;
95
- e = h.pop(), ne(t, h), r7 = o;
93
+ let { pre: i2, body: n, post: o } = s, a = i2.split(",");
94
+ if (a[0] = e + a[0], a[a.length - 1] += "{" + n + "}", !o.length) return ne(t, a), t;
95
+ e = a.pop(), ne(t, a), r7 = o;
96
96
  }
97
97
  }
98
98
  function je(r7, t = {}) {
@@ -113,13 +113,13 @@ function Ys(r7, t) {
113
113
  return r7 >= t;
114
114
  }
115
115
  function lt(r7, t, e, s, i2, n) {
116
- let o = [], h = 0;
117
- for (let a = 0; a < r7.length; a++) for (let l = 0; l < e.length; l++) {
116
+ let o = [], a = 0;
117
+ for (let h = 0; h < r7.length; h++) for (let l = 0; l < e.length; l++) {
118
118
  if (o.length >= s) return o;
119
- let c = r7[a] + t + e[l];
119
+ let c = r7[h] + t + e[l];
120
120
  if (!(n && !c)) {
121
- if (h + c.length > i2) return o;
122
- o.push(c), h += c.length;
121
+ if (a + c.length > i2) return o;
122
+ o.push(c), a += c.length;
123
123
  }
124
124
  }
125
125
  return o;
@@ -127,17 +127,17 @@ function lt(r7, t, e, s, i2, n) {
127
127
  function Zs(r7, t, e, s) {
128
128
  let i2 = r7.split(/\.\./), n = [];
129
129
  if (i2[0] === void 0 || i2[1] === void 0) return n;
130
- let o = ie(i2[0]), h = ie(i2[1]), a = Math.max(i2[0].length, i2[1].length), l = i2.length === 3 && i2[2] !== void 0 ? Math.max(Math.abs(ie(i2[2])), 1) : 1, c = Vs;
131
- h < o && (l *= -1, c = Ys);
132
- let m = i2.some(Xs), d = 0;
133
- for (let g = o; c(g, h) && n.length < e; g += l) {
130
+ let o = ie(i2[0]), a = ie(i2[1]), h = Math.max(i2[0].length, i2[1].length), l = i2.length === 3 && i2[2] !== void 0 ? Math.max(Math.abs(ie(i2[2])), 1) : 1, c = Vs;
131
+ a < o && (l *= -1, c = Ys);
132
+ let p = i2.some(Xs), d = 0;
133
+ for (let g = o; c(g, a) && n.length < e; g += l) {
134
134
  let u;
135
135
  if (t) u = String.fromCharCode(g), u === "\\" && (u = "");
136
- else if (u = String(g), m) {
137
- let w = a - u.length;
136
+ else if (u = String(g), p) {
137
+ let w = h - u.length;
138
138
  if (w > 0) {
139
- let p = new Array(w + 1).join("0");
140
- g < 0 ? u = "-" + p + u.slice(1) : u = p + u;
139
+ let m = new Array(w + 1).join("0");
140
+ g < 0 ? u = "-" + m + u.slice(1) : u = m + u;
141
141
  }
142
142
  }
143
143
  if (d + u.length > s) break;
@@ -147,53 +147,53 @@ function Zs(r7, t, e, s) {
147
147
  }
148
148
  function re(r7, t, e, s, i2, n, o) {
149
149
  if (i2 > s) return [r7];
150
- let h = [""], a = 0, l = false, c = true;
150
+ let a = [""], h = 0, l = false, c = true;
151
151
  for (; ; ) {
152
152
  let f = se("{", "}", r7);
153
- if (!f) return lt(h, r7, [""], t, e, l);
154
- let m = f.pre;
155
- if (/\$$/.test(m)) {
156
- if (h = lt(h, m + "{" + f.body + "}", [""], t, e, l && !f.post.length), c = false, !f.post.length) break;
153
+ if (!f) return lt(a, r7, [""], t, e, l);
154
+ let p = f.pre;
155
+ if (/\$$/.test(p)) {
156
+ if (a = lt(a, p + "{" + f.body + "}", [""], t, e, l && !f.post.length), c = false, !f.post.length) break;
157
157
  r7 = f.post;
158
158
  continue;
159
159
  }
160
160
  let d = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(f.body), g = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(f.body), u = d || g, w = f.body.indexOf(",") >= 0;
161
161
  if (!u && !w) {
162
- if (a < n && f.post.match(/,(?!,).*\}/)) {
163
- a++, r7 = f.pre + "{" + f.body + oe + f.post, o = true;
162
+ if (h < n && f.post.match(/,(?!,).*\}/)) {
163
+ h++, r7 = f.pre + "{" + f.body + oe + f.post, o = true;
164
164
  continue;
165
165
  }
166
- return lt(h, m + "{" + f.body + "}" + f.post, [""], t, e, l);
166
+ return lt(a, p + "{" + f.body + "}" + f.post, [""], t, e, l);
167
167
  }
168
168
  c && (l = o && !u, c = false);
169
- let p;
170
- if (u) p = Zs(f.body, g, t, e);
169
+ let m;
170
+ if (u) m = Zs(f.body, g, t, e);
171
171
  else {
172
172
  let b = qs(f.body);
173
173
  if (b.length === 1 && b[0] !== void 0 && (b = re(b[0], t, e, s, i2 + 1, n, false).map(Ks), b.length === 1)) {
174
- if (h = lt(h, m + b[0], [""], t, e, l && !f.post.length), !f.post.length) break;
174
+ if (a = lt(a, p + b[0], [""], t, e, l && !f.post.length), !f.post.length) break;
175
175
  r7 = f.post;
176
176
  continue;
177
177
  }
178
- let v = l && !f.post.length && !m;
179
- for (let y = 0; v && y < h.length; y++) h[y] && (v = false);
180
- p = [];
178
+ let v = l && !f.post.length && !p;
179
+ for (let y = 0; v && y < a.length; y++) a[y] && (v = false);
180
+ m = [];
181
181
  let S = 0;
182
182
  t: for (let y = 0; y < b.length; y++) {
183
183
  let q = re(b[y], t, e, s, i2 + 1, n, false);
184
184
  for (let W = 0; W < q.length; W++) {
185
185
  let I = q[W];
186
186
  if (!(v && !I)) {
187
- if (p.length >= t || S + I.length > e) break t;
188
- p.push(I), S += I.length;
187
+ if (m.length >= t || S + I.length > e) break t;
188
+ m.push(I), S += I.length;
189
189
  }
190
190
  }
191
191
  }
192
192
  }
193
- if (h = lt(h, m, p, t, e, l && !f.post.length), !f.post.length) break;
193
+ if (a = lt(a, p, m, t, e, l && !f.post.length), !f.post.length) break;
194
194
  r7 = f.post;
195
195
  }
196
- return h;
196
+ return a;
197
197
  }
198
198
  function Jt(r7, t = {}) {
199
199
  return new j(r7, t).streamSync();
@@ -213,40 +213,40 @@ function Qt(r7, t = {}) {
213
213
  function Os(r7, t = {}) {
214
214
  return new j(r7, t).iterate();
215
215
  }
216
- var se, De, Ts, Ne, Pe, oe, ze, Le, Fs, Ms, _s, Ds, Ns, Ps, zs, Ls, js, Ws, $s, Bs, Is, Us, Js, ct, he, We, ae, Qs, J, ti, le, ue, ei, si, Ue, Ge, ii, ni, ce, He, $e, ft, qe, ri, fe, oi, hi, Ke, ai, Be, li, ci, Mt, Ie, ut, dt, K, st, M, Qe, Xe, fi, x, ui, U, di, ts, pi, Ve, es, mi, gi, de, Ye, X, Ze, ge, pe, Dt, me, _t, pt, Nt, we, Je, D, R, mt, yi, be, is, ss, Si, vi, V, ns, Pt, xi, wt, os, ki, Ci, Ai, G, H, Y, zt, bt, Lt, hs, jt, as, z, it, k, yt, nt, C, F, A, ye, Wt, O, E, Se, ve, ls, xe, $, Ee, $t, St, Q, _, vt, Ri, Oi, Ti, Fi, Bt, ke, Mi, _i, Z, Bi, Et, gs, qi, Ki, Xi, fs, Vi, Yi, Zi, Ji, P, ws, bs, B, ys, Ss, tt, vs, N, xt, Ae, us, kt, L, It, Gt, ds, Qi, Re, ps, Ct, ms, Ut, Ht, Te, xs, T, qt, Kt, Xt, rt, ot, At, Gn, Es, tn, en, sn, ht, nn, at, Fe, Rt, Me, Ot, Vt, Yt, rn, Zt, Tt, Ft, hn, j, _e, an, ln, cn, fn, un, Cs;
216
+ var se, De, Ms, Ne, Pe, oe, ze, Le, Ts, Fs, _s, Ds, Ns, Ps, zs, Ls, js, Ws, $s, Bs, Is, Us, Js, ct, he, We, ae, Qs, J, ti, le, ue, ei, si, Ue, Ge, ii, ni, ce, He, $e, ft, qe, ri, fe, oi, hi, Ke, ai, Be, li, ci, Ft, Ie, ut, dt, K, st, F, Qe, Xe, fi, x, ui, U, di, ts, pi, Ve, es, mi, gi, de, Ye, X, Ze, ge, pe, Dt, me, _t, pt, Nt, we, Je, D, R, mt, yi, be, is, ss, Si, vi, V, ns, Pt, xi, wt, os, ki, Ci, Ai, G, H, Y, zt, bt, Lt, hs, jt, as, z, it, k, yt, nt, C, T, A, ye, Wt, O, E, Se, ve, ls, xe, $, Ee, $t, St, Q, _, vt, Ri, Oi, Mi, Ti, Bt, ke, Fi, _i, Z, Bi, Et, gs, qi, Ki, Xi, fs, Vi, Yi, Zi, Ji, P, ws, bs, B, ys, Ss, tt, vs, N, xt, Ae, us, kt, L, It, Gt, ds, Qi, Re, ps, Ct, ms, Ut, Ht, Me, xs, M, qt, Kt, Xt, rt, ot, At, Gn, Es, tn, en, sn, ht, nn, at, Te, Rt, Fe, Ot, Vt, Yt, rn, Zt, Mt, Tt, hn, j, _e, an, ln, cn, fn, un, Cs;
217
217
  var init_index_min = __esm({
218
218
  "node_modules/glob/dist/esm/index.min.js"() {
219
219
  se = (r7, t, e) => {
220
- let s = r7 instanceof RegExp ? De(r7, e) : r7, i2 = t instanceof RegExp ? De(t, e) : t, n = s !== null && i2 != null && Ts(s, i2, e);
220
+ let s = r7 instanceof RegExp ? De(r7, e) : r7, i2 = t instanceof RegExp ? De(t, e) : t, n = s !== null && i2 != null && Ms(s, i2, e);
221
221
  return n && { start: n[0], end: n[1], pre: e.slice(0, n[0]), body: e.slice(n[0] + s.length, n[1]), post: e.slice(n[1] + i2.length) };
222
222
  };
223
223
  De = (r7, t) => {
224
224
  let e = t.match(r7);
225
225
  return e ? e[0] : null;
226
226
  };
227
- Ts = (r7, t, e) => {
228
- let s, i2, n, o, h, a = e.indexOf(r7), l = e.indexOf(t, a + 1), c = a;
229
- if (a >= 0 && l > 0) {
230
- if (r7 === t) return [a, l];
231
- for (s = [], n = e.length; c >= 0 && !h; ) {
232
- if (c === a) s.push(c), a = e.indexOf(r7, c + 1);
227
+ Ms = (r7, t, e) => {
228
+ let s, i2, n, o, a, h = e.indexOf(r7), l = e.indexOf(t, h + 1), c = h;
229
+ if (h >= 0 && l > 0) {
230
+ if (r7 === t) return [h, l];
231
+ for (s = [], n = e.length; c >= 0 && !a; ) {
232
+ if (c === h) s.push(c), h = e.indexOf(r7, c + 1);
233
233
  else if (s.length === 1) {
234
234
  let f = s.pop();
235
- f !== void 0 && (h = [f, l]);
235
+ f !== void 0 && (a = [f, l]);
236
236
  } else i2 = s.pop(), i2 !== void 0 && i2 < n && (n = i2, o = l), l = e.indexOf(t, c + 1);
237
- c = a < l && a >= 0 ? a : l;
237
+ c = h < l && h >= 0 ? h : l;
238
238
  }
239
- s.length && o !== void 0 && (h = [n, o]);
239
+ s.length && o !== void 0 && (a = [n, o]);
240
240
  }
241
- return h;
241
+ return a;
242
242
  };
243
243
  Ne = "\0SLASH" + Math.random() + "\0";
244
244
  Pe = "\0OPEN" + Math.random() + "\0";
245
245
  oe = "\0CLOSE" + Math.random() + "\0";
246
246
  ze = "\0COMMA" + Math.random() + "\0";
247
247
  Le = "\0PERIOD" + Math.random() + "\0";
248
- Fs = new RegExp(Ne, "g");
249
- Ms = new RegExp(Pe, "g");
248
+ Ts = new RegExp(Ne, "g");
249
+ Fs = new RegExp(Pe, "g");
250
250
  _s = new RegExp(oe, "g");
251
251
  Ds = new RegExp(ze, "g");
252
252
  Ns = new RegExp(Le, "g");
@@ -259,57 +259,57 @@ var init_index_min = __esm({
259
259
  Bs = 4e6;
260
260
  Is = 1e3;
261
261
  Us = 1e3;
262
- Js = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}"], "[:alpha:]": ["\\p{L}\\p{Nl}"], "[:ascii:]": ["\\x00-\\x7f"], "[:blank:]": ["\\p{Zs}\\t"], "[:cntrl:]": ["\\p{Cc}"], "[:digit:]": ["\\p{Nd}"], "[:graph:]": ["\\p{Z}\\p{C}", true], "[:lower:]": ["\\p{Ll}"], "[:print:]": ["\\p{C}"], "[:punct:]": ["\\p{P}"], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f"], "[:upper:]": ["\\p{Lu}"], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"], "[:xdigit:]": ["A-Fa-f0-9"] };
262
+ Js = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}"], "[:alpha:]": ["\\p{L}\\p{Nl}"], "[:ascii:]": ["\\x00-\\x7f"], "[:blank:]": ["\\p{Zs}\\t"], "[:cntrl:]": ["\\p{Cc}"], "[:digit:]": ["\\p{Nd}"], "[:graph:]": ["\\p{Z}\\p{C}", true], "[:lower:]": ["\\p{Ll}"], "[:print:]": ["\\p{C}", true], "[:punct:]": ["\\p{P}\\p{S}"], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f"], "[:upper:]": ["\\p{Lu}"], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"], "[:xdigit:]": ["A-Fa-f0-9"] };
263
263
  ct = (r7) => r7.replace(/[[\]\\-]/g, "\\$&");
264
264
  he = /$./;
265
265
  We = (r7, t, e = false, s) => {
266
- let i2 = (p) => {
267
- let b = s ? p.normalize(s) : p;
268
- return [...b].length === 1 ? b : p;
266
+ let i2 = (m) => {
267
+ let b = s ? m.normalize(s) : m;
268
+ return [...b].length === 1 ? b : m;
269
269
  }, n = t;
270
270
  if (r7.charAt(n) !== "[") throw new Error("not in a brace expression");
271
- let o = [], h = [], a = n + 1, l = false, c = false, f = false, m = n, d = "";
272
- t: for (; a < r7.length; ) {
273
- let p = String.fromCodePoint(r7.codePointAt(a));
274
- if ((p === "!" || p === "^") && a === n + 1) {
275
- f = true, a++;
271
+ let o = [], a = [], h = n + 1, l = false, c = false, f = false, p = n, d = "";
272
+ t: for (; h < r7.length; ) {
273
+ let m = String.fromCodePoint(r7.codePointAt(h));
274
+ if ((m === "!" || m === "^") && h === n + 1) {
275
+ f = true, h++;
276
276
  continue;
277
277
  }
278
- if (p === "]" && l && !c) {
279
- m = a + 1;
278
+ if (m === "]" && l && !c) {
279
+ p = h + 1;
280
280
  break;
281
281
  }
282
- if (l = true, p === "\\" && !c) {
283
- c = true, a++;
282
+ if (l = true, m === "\\" && !c) {
283
+ c = true, h++;
284
284
  continue;
285
285
  }
286
- if (p === "[" && !c) {
287
- for (let [v, [S, y]] of Object.entries(Js)) if (r7.startsWith(v, a)) {
286
+ if (m === "[" && !c) {
287
+ for (let [v, [S, y]] of Object.entries(Js)) if (r7.startsWith(v, h)) {
288
288
  if (d) return [he, r7.length - n];
289
- a += v.length, y ? h.push(S) : o.push(S);
289
+ h += v.length, y ? a.push(S) : o.push(S);
290
290
  continue t;
291
291
  }
292
292
  }
293
293
  c = false;
294
- let b = i2(p);
294
+ let b = i2(m);
295
295
  if (d) {
296
- b.codePointAt(0) > d.codePointAt(0) ? o.push(ct(d) + "-" + ct(b)) : b === d && o.push(ct(b)), d = "", a += p.length;
296
+ b.codePointAt(0) > d.codePointAt(0) ? o.push(ct(d) + "-" + ct(b)) : b === d && o.push(ct(b)), d = "", h += m.length;
297
297
  continue;
298
298
  }
299
- if (r7.startsWith("-]", a + p.length)) {
300
- o.push(ct(b + "-")), a += p.length + 1;
299
+ if (r7.startsWith("-]", h + m.length)) {
300
+ o.push(ct(b + "-")), h += m.length + 1;
301
301
  continue;
302
302
  }
303
- if (r7.startsWith("-", a + p.length)) {
304
- d = b, a += p.length + 1;
303
+ if (r7.startsWith("-", h + m.length)) {
304
+ d = b, h += m.length + 1;
305
305
  continue;
306
306
  }
307
- o.push(ct(b)), a += p.length;
307
+ o.push(ct(b)), h += m.length;
308
308
  }
309
- if (m < a) return [he, 0];
310
- if (!o.length && !h.length) return [he, r7.length - n];
311
- let g = "[" + (f ? "^" : "") + o.join("") + "]", u = "[" + (f ? "" : "^") + h.join("") + "]", w = "^" + (o.length && h.length ? "(" + g + "|" + u + ")" : o.length ? g : u);
312
- return [new RegExp(w, e ? "iu" : "u"), m - n];
309
+ if (p < h) return [he, 0];
310
+ if (!o.length && !a.length) return [he, r7.length - n];
311
+ let g = "[" + (f ? "^" : "") + o.join("") + "]", u = "[" + (f ? "" : "^") + a.join("") + "]", w = "^" + (o.length && a.length ? "(" + g + "|" + u + ")" : o.length ? g : u);
312
+ return [new RegExp(w, e ? "iu" : "u"), p - n];
313
313
  };
314
314
  ae = { t: "match", id: 0 };
315
315
  Qs = "!?+*@";
@@ -329,14 +329,14 @@ var init_index_min = __esm({
329
329
  for (let n = 0; n < r7.length; ) {
330
330
  let o = String.fromCodePoint(r7.codePointAt(n));
331
331
  if (o === "\\") {
332
- let h = r7.codePointAt(n + 1), a = h === void 0 ? o : String.fromCodePoint(h);
333
- i2.push(J(a)), n += 1 + a.length;
332
+ let a = r7.codePointAt(n + 1), h = a === void 0 ? o : String.fromCodePoint(a);
333
+ i2.push(J(h)), n += 1 + h.length;
334
334
  continue;
335
335
  }
336
336
  if (o === "[") {
337
- let [h, a] = We(r7, n, t, s);
338
- if (a) {
339
- i2.push({ t: "class", re: h }), n += a;
337
+ let [a, h] = We(r7, n, t, s);
338
+ if (h) {
339
+ i2.push({ t: "class", re: a }), n += h;
340
340
  continue;
341
341
  }
342
342
  }
@@ -356,12 +356,12 @@ var init_index_min = __esm({
356
356
  };
357
357
  Ue = (r7, t, e, s, i2) => {
358
358
  let n = [], o = [n];
359
- for (let h = e; h < s; h++) {
360
- let a = r7[h], l = t.get(h);
361
- if (a.t === "open" && l !== void 0) {
362
- let c = Ue(r7, t, h + 1, l, false);
363
- n.push({ t: "ext", type: a.type, alts: c }), h = l;
364
- } else a.t === "bar" && !i2 ? o.push(n = []) : a.t === "open" ? n.push(J(a.type), J("(")) : a.t === "bar" ? n.push(J("|")) : a.t === "close" ? n.push(J(")")) : n.push(a);
359
+ for (let a = e; a < s; a++) {
360
+ let h = r7[a], l = t.get(a);
361
+ if (h.t === "open" && l !== void 0) {
362
+ let c = Ue(r7, t, a + 1, l, false);
363
+ n.push({ t: "ext", type: h.type, alts: c }), a = l;
364
+ } else h.t === "bar" && !i2 ? o.push(n = []) : h.t === "open" ? n.push(J(h.type), J("(")) : h.t === "bar" ? n.push(J("|")) : h.t === "close" ? n.push(J(")")) : n.push(h);
365
365
  }
366
366
  return o;
367
367
  };
@@ -380,28 +380,28 @@ var init_index_min = __esm({
380
380
  return i2(), e;
381
381
  };
382
382
  ii = (r7, t) => {
383
- let e = 1, s = (h) => ({ t: "split", id: e++, out: h }), i2 = (h, a) => h.reduceRight((l, c) => n(c, l), a), n = (h, a) => {
384
- switch (h.t) {
383
+ let e = 1, s = (a) => ({ t: "split", id: e++, out: a }), i2 = (a, h) => a.reduceRight((l, c) => n(c, l), h), n = (a, h) => {
384
+ switch (a.t) {
385
385
  case "lit":
386
- let m = t ? le(h.ch) : void 0;
387
- return { t: "lit", id: e++, ch: h.ch, re: m, next: a };
386
+ let p = t ? le(a.ch) : void 0;
387
+ return { t: "lit", id: e++, ch: a.ch, re: p, next: h };
388
388
  case "any":
389
389
  case "star":
390
- return { t: h.t, id: e++, next: a };
390
+ return { t: a.t, id: e++, next: h };
391
391
  case "class":
392
- return { t: "class", id: e++, re: h.re, next: a };
392
+ return { t: "class", id: e++, re: a.re, next: h };
393
393
  }
394
- let l = (m) => h.alts.map((d) => i2(d, m));
395
- switch (h.type) {
394
+ let l = (p) => a.alts.map((d) => i2(d, p));
395
+ switch (a.type) {
396
396
  case "@":
397
- return s(l(a));
397
+ return s(l(h));
398
398
  case "?":
399
- return s([a, ...l(a)]);
399
+ return s([h, ...l(h)]);
400
400
  case "!":
401
- return { t: "neg", id: e++, sub: s(l(ae)), next: a };
401
+ return { t: "neg", id: e++, sub: s(l(ae)), next: h };
402
402
  }
403
403
  let c = s([]), f = s(l(c));
404
- return c.out.push(a, f), h.type === "*" ? c : f;
404
+ return c.out.push(h, f), a.type === "*" ? c : f;
405
405
  };
406
406
  return [i2(r7, ae), e];
407
407
  };
@@ -409,22 +409,22 @@ var init_index_min = __esm({
409
409
  let t = [], e = /* @__PURE__ */ new Set(), s = (n) => n.t === "match" ? "match" : String(n.id), i2 = (n, o) => {
410
410
  if (n.t === "match" || e.has(n)) return;
411
411
  e.add(n);
412
- let h = (a) => t.push(`${o}${n.id}: ${a}`);
412
+ let a = (h) => t.push(`${o}${n.id}: ${h}`);
413
413
  switch (n.t) {
414
414
  case "split":
415
- h(`split -> ${n.out.map(s).join(", ")}`);
416
- for (let a of n.out) i2(a, o);
415
+ a(`split -> ${n.out.map(s).join(", ")}`);
416
+ for (let h of n.out) i2(h, o);
417
417
  return;
418
418
  case "neg":
419
- return h(`!(${s(n.sub)}) -> ${s(n.next)}`), i2(n.sub, o + " "), i2(n.next, o);
419
+ return a(`!(${s(n.sub)}) -> ${s(n.next)}`), i2(n.sub, o + " "), i2(n.next, o);
420
420
  case "lit":
421
- h(`${JSON.stringify(n.ch)} -> ${s(n.next)}`);
421
+ a(`${JSON.stringify(n.ch)} -> ${s(n.next)}`);
422
422
  break;
423
423
  case "class":
424
- h(`${n.re} -> ${s(n.next)}`);
424
+ a(`${n.re} -> ${s(n.next)}`);
425
425
  break;
426
426
  default:
427
- h(`${n.t === "any" ? "?" : "*"} -> ${s(n.next)}`);
427
+ a(`${n.t === "any" ? "?" : "*"} -> ${s(n.next)}`);
428
428
  }
429
429
  i2(n.next, o);
430
430
  };
@@ -515,8 +515,8 @@ var init_index_min = __esm({
515
515
  this.addRun(n, o, s + 1, i2);
516
516
  continue;
517
517
  }
518
- let h = this.step(o.state, e, s, false);
519
- this.addRun(n, { t: "run", neg: o.neg, state: h }, s + 1, i2);
518
+ let a = this.step(o.state, e, s, false);
519
+ this.addRun(n, { t: "run", neg: o.neg, state: a }, s + 1, i2);
520
520
  }
521
521
  return this.done(n);
522
522
  }
@@ -578,20 +578,20 @@ var init_index_min = __esm({
578
578
  return t;
579
579
  };
580
580
  hi = (r7, t, e, s) => {
581
- let i2 = 0, n = e, o = -1, h = 0;
581
+ let i2 = 0, n = e, o = -1, a = 0;
582
582
  for (; n < s; ) {
583
- let a = r7[i2];
584
- if (a?.t === "star") {
585
- o = i2++, h = n;
583
+ let h = r7[i2];
584
+ if (h?.t === "star") {
585
+ o = i2++, a = n;
586
586
  continue;
587
587
  }
588
588
  let l = t[n];
589
- if (a && (a.t === "any" || a.t === "lit" && ue(a, l) || a.t === "class" && a.re.test(l))) {
589
+ if (h && (h.t === "any" || h.t === "lit" && ue(h, l) || h.t === "class" && h.re.test(l))) {
590
590
  i2++, n++;
591
591
  continue;
592
592
  }
593
593
  if (o === -1) return false;
594
- i2 = o + 1, n = ++h;
594
+ i2 = o + 1, n = ++a;
595
595
  }
596
596
  for (; r7[i2]?.t === "star"; ) i2++;
597
597
  return i2 === r7.length;
@@ -617,7 +617,7 @@ var init_index_min = __esm({
617
617
  };
618
618
  li = /[/\ud800-\udfff]/;
619
619
  ci = /[\ud800-\udfff]/;
620
- Mt = (r7) => ci.test(r7) ? [...r7] : r7;
620
+ Ft = (r7) => ci.test(r7) ? [...r7] : r7;
621
621
  Ie = (r7) => {
622
622
  if (r7.includes("/")) throw new Error("can only match a single path portion, got: " + r7);
623
623
  };
@@ -646,25 +646,25 @@ var init_index_min = __esm({
646
646
  this.pattern = t, this.options = e;
647
647
  let { nocase: s = false, noext: i2 = false, normalize: n } = e;
648
648
  this.#f = n === true ? "NFC" : n || void 0;
649
- let o = /^[?*+@]\(\)$/.test(t), h = ei(t, s, i2 || o, this.#f), [a] = Ue(h, si(h), 0, h.length, true);
650
- this.#f && (a = Ge(a, this.#f));
651
- let [l, c] = ii(a, s);
652
- if (this.#t = l, this.#i = c, a.every((f) => f.t === "lit")) this.#r = a.map((f) => f.ch).join(""), s && (this.#d = le(this.#r));
649
+ let o = /^[?*+@]\(\)$/.test(t), a = ei(t, s, i2 || o, this.#f), [h] = Ue(a, si(a), 0, a.length, true);
650
+ this.#f && (h = Ge(h, this.#f));
651
+ let [l, c] = ii(h, s);
652
+ if (this.#t = l, this.#i = c, h.every((f) => f.t === "lit")) this.#r = h.map((f) => f.ch).join(""), s && (this.#d = le(this.#r));
653
653
  else {
654
654
  let f = (g) => g.t !== "lit" ? void 0 : s ? { ch: g.ch, re: le(g.ch) } : { ch: g.ch };
655
- for (let g of a) {
655
+ for (let g of h) {
656
656
  let u = f(g);
657
657
  if (!u) break;
658
658
  this.#a.push(u);
659
659
  }
660
- for (let g = a.length - 1; g >= 0; g--) {
661
- let u = f(a[g]);
660
+ for (let g = h.length - 1; g >= 0; g--) {
661
+ let u = f(h[g]);
662
662
  if (!u) break;
663
663
  this.#l.unshift(u);
664
664
  }
665
665
  this.#x = !!(this.#a.length || this.#l.length), s || (this.#n = this.#a.map((g) => g.ch).join(""), this.#w = this.#l.map((g) => g.ch).join("")), this.#c = oi(this.#t)?.slice(this.#a.length, -this.#l.length || void 0), this.#p = !!this.#c?.every((g) => g.t === "star" || g.t === "any");
666
- let [m, d] = Ke(a);
667
- this.#h = m, this.#m = d;
666
+ let [p, d] = Ke(h);
667
+ this.#h = p, this.#m = d;
668
668
  }
669
669
  }
670
670
  test(t) {
@@ -679,14 +679,14 @@ var init_index_min = __esm({
679
679
  if (e === void 0) {
680
680
  let c = t.length, f = c + 1 >> 1;
681
681
  if (c < s || f > i2) return false;
682
- (f < s || c > i2) && (e = Mt(t));
682
+ (f < s || c > i2) && (e = Ft(t));
683
683
  }
684
684
  if (e !== void 0 && (e.length < s || e.length > i2)) return false;
685
685
  let n = this.#a.length;
686
686
  if (this.#x) if (this.#n !== void 0 && this.#w !== void 0) {
687
687
  if (!t.startsWith(this.#n) || !t.endsWith(this.#w)) return false;
688
688
  } else {
689
- e ??= Mt(t);
689
+ e ??= Ft(t);
690
690
  let c = e.length - this.#l.length;
691
691
  if (!Be(this.#a, e, 0) || !Be(this.#l, e, c)) return false;
692
692
  }
@@ -694,26 +694,26 @@ var init_index_min = __esm({
694
694
  if (this.#c) {
695
695
  if (t === "." || t === ".." || o && !n) return false;
696
696
  if (this.#p) return true;
697
- e ??= Mt(t);
697
+ e ??= Ft(t);
698
698
  let c = e.length - this.#l.length;
699
699
  return hi(this.#c, e, n, c);
700
700
  }
701
- if (e ??= Mt(t), t === "." || t === "..") {
701
+ if (e ??= Ft(t), t === "." || t === "..") {
702
702
  this.#e ??= $e(this.#i);
703
703
  let c = this.#o ??= new ft(true, false, this.#e), f = c.state();
704
704
  c.add(f, this.#t, 0, true);
705
- let m = c.done(f);
706
- for (let d = 0; d < e.length; d++) m = c.step(m, e[d], d, true);
707
- return m.match;
705
+ let p = c.done(f);
706
+ for (let d = 0; d < e.length; d++) p = c.step(p, e[d], d, true);
707
+ return p.match;
708
708
  }
709
709
  this.#e ??= $e(this.#i);
710
- let h = this.#b ??= new fe(this.#t, this.#e), a = h.start(o), l = e === t;
710
+ let a = this.#b ??= new fe(this.#t, this.#e), h = a.start(o), l = e === t;
711
711
  for (let c = 0; c < e.length; c++) {
712
- if (a.dead) return false;
712
+ if (h.dead) return false;
713
713
  let f = l ? t.charCodeAt(c) : e[c].charCodeAt(0);
714
- a = a.ascii?.[f] ?? h.next(a, e[c]);
714
+ h = h.ascii?.[f] ?? a.next(h, e[c]);
715
715
  }
716
- return a.match;
716
+ return h.match;
717
717
  }
718
718
  toString() {
719
719
  return ni(this.#t);
@@ -725,19 +725,19 @@ var init_index_min = __esm({
725
725
  };
726
726
  K = (r7, { windowsPathsNoEscape: t = false, magicalBraces: e = false } = {}) => e ? t ? r7.replace(/[?*()[\]{}]/g, "[$&]") : r7.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? r7.replace(/[?*()[\]]/g, "[$&]") : r7.replace(/[?*()[\]\\]/g, "\\$&");
727
727
  st = (r7, { windowsPathsNoEscape: t = false, magicalBraces: e = true } = {}) => e ? t ? r7.replace(/\[([^/\\])\]/g, "$1") : r7.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1") : t ? r7.replace(/\[([^/\\{}])\]/g, "$1") : r7.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
728
- M = (r7, t, e = {}) => (dt(t), !e.nocomment && t.charAt(0) === "#" ? false : new D(t, e).match(r7));
728
+ F = (r7, t, e = {}) => (dt(t), !e.nocomment && t.charAt(0) === "#" ? false : new D(t, e).match(r7));
729
729
  Qe = typeof process == "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
730
730
  Xe = { win32: { sep: "\\" }, posix: { sep: "/" } };
731
731
  fi = Qe === "win32" ? Xe.win32.sep : Xe.posix.sep;
732
- M.sep = fi;
732
+ F.sep = fi;
733
733
  x = /* @__PURE__ */ Symbol("globstar **");
734
- M.GLOBSTAR = x;
735
- ui = (r7, t = {}) => (e) => M(e, r7, t);
736
- M.filter = ui;
734
+ F.GLOBSTAR = x;
735
+ ui = (r7, t = {}) => (e) => F(e, r7, t);
736
+ F.filter = ui;
737
737
  U = (r7, t = {}) => Object.assign({}, r7, t);
738
738
  di = (r7) => {
739
- if (!r7 || typeof r7 != "object" || !Object.keys(r7).length) return M;
740
- let t = M;
739
+ if (!r7 || typeof r7 != "object" || !Object.keys(r7).length) return F;
740
+ let t = F;
741
741
  return Object.assign((s, i2, n = {}) => t(s, i2, U(r7, n)), { Minimatch: class extends t.Minimatch {
742
742
  constructor(i2, n = {}) {
743
743
  super(i2, U(r7, n));
@@ -747,14 +747,14 @@ var init_index_min = __esm({
747
747
  }
748
748
  }, unescape: (s, i2 = {}) => t.unescape(s, U(r7, i2)), escape: (s, i2 = {}) => t.escape(s, U(r7, i2)), filter: (s, i2 = {}) => t.filter(s, U(r7, i2)), defaults: (s) => t.defaults(U(r7, s)), braceExpand: (s, i2 = {}) => t.braceExpand(s, U(r7, i2)), match: (s, i2, n = {}) => t.match(s, i2, U(r7, n)), sep: t.sep, GLOBSTAR: x });
749
749
  };
750
- M.defaults = di;
750
+ F.defaults = di;
751
751
  ts = (r7, t = {}) => (dt(r7), t.nobrace || !/\{(?:(?!\{).)*\}/.test(r7) ? [r7] : je(r7, { max: t.braceExpandMax }));
752
- M.braceExpand = ts;
752
+ F.braceExpand = ts;
753
753
  pi = (r7, t, e = {}) => {
754
754
  let s = new D(t, e);
755
755
  return r7 = r7.filter((i2) => s.match(i2)), s.options.nonull && !r7.length && r7.push(t), r7;
756
756
  };
757
- M.match = pi;
757
+ F.match = pi;
758
758
  Ve = /[?*]|[+@!]\(.*?\)|\[|\]/;
759
759
  es = (r7, t) => {
760
760
  let e = t + 1;
@@ -824,8 +824,8 @@ var init_index_min = __esm({
824
824
  for (let n = t; n < e; ) {
825
825
  if (r7.charCodeAt(n) === 46) {
826
826
  if (!s) return true;
827
- let h = r7.charCodeAt(n + 1) === 46 ? n + 2 : n + 1;
828
- if (h >= e || Nt(r7.charCodeAt(h), i2)) return true;
827
+ let a = r7.charCodeAt(n + 1) === 46 ? n + 2 : n + 1;
828
+ if (a >= e || Nt(r7.charCodeAt(a), i2)) return true;
829
829
  }
830
830
  let o = we(r7, n, i2);
831
831
  if (o === -1) return false;
@@ -874,16 +874,16 @@ var init_index_min = __esm({
874
874
  let i2 = e.normalize;
875
875
  this.#o = i2 === true ? "NFC" : i2 || void 0, this.make();
876
876
  let n = this.set.map((o) => this.#a(o));
877
- this.#c = this.set.map((o, h) => this.#t && o.length - 1 > n[h]), this.#r = this.set.map((o, h) => {
878
- let a = this.#c[h] ? o.length - 1 : o.length, l = o.slice(n[h] + 1, a).filter((c) => typeof c == "string" && !!c);
877
+ this.#c = this.set.map((o, a) => this.#t && o.length - 1 > n[a]), this.#r = this.set.map((o, a) => {
878
+ let h = this.#c[a] ? o.length - 1 : o.length, l = o.slice(n[a] + 1, h).filter((c) => typeof c == "string" && !!c);
879
879
  return [...new Set(l)];
880
- }), this.#i = this.#r.some((o) => o.length), this.#d = this.set.map((o, h) => {
881
- let [a, l, c] = o;
882
- if (this.#c[h] && o.length === 2 && a === x && l !== x) return "tail";
883
- if (this.#c[h] && e.matchBase && o.length === 1 && a !== x && a !== "") return "base";
884
- if (!(!this.#t || n[h] !== -1)) {
885
- if (o.length === 3 && a === x && c === x && l !== x && l !== "" && this.maxGlobstarRecursion > 0) return "mid";
886
- if (o.length === 2 && l === x && a !== x && a !== "") return "head";
880
+ }), this.#i = this.#r.some((o) => o.length), this.#d = this.set.map((o, a) => {
881
+ let [h, l, c] = o;
882
+ if (this.#c[a] && o.length === 2 && h === x && l !== x) return "tail";
883
+ if (this.#c[a] && e.matchBase && o.length === 1 && h !== x && h !== "") return "base";
884
+ if (!(!this.#t || n[a] !== -1)) {
885
+ if (o.length === 3 && h === x && c === x && l !== x && l !== "" && this.maxGlobstarRecursion > 0) return "mid";
886
+ if (o.length === 2 && l === x && h !== x && h !== "") return "head";
887
887
  }
888
888
  });
889
889
  }
@@ -915,13 +915,13 @@ var init_index_min = __esm({
915
915
  this.parseNegate(), this.globSet = [...new Set(this.braceExpand())];
916
916
  let s = this.globSet.map((n) => this.#S(n));
917
917
  this.globParts = this.preprocess(s);
918
- let i2 = this.globParts.map((n, o, h) => {
918
+ let i2 = this.globParts.map((n, o, a) => {
919
919
  if (this.isWindows && this.windowsNoMagicRoot) {
920
- let a = n[2] === "?" && Dt(n[3]) ? 6 : 4, l = n[0] === "" && n[1] === "" && (n[2] === "?" || !Ve.test(n[2])) && n.slice(3, a).every((f) => !Ve.test(f)), c = /^[a-z]:/i.test(n[0]);
921
- if (l) return [...n.slice(0, a).map((f) => this.#m(f)), ...n.slice(a).map((f) => this.parse(f))];
920
+ let h = n[2] === "?" && Dt(n[3]) ? 6 : 4, l = n[0] === "" && n[1] === "" && (n[2] === "?" || !Ve.test(n[2])) && n.slice(3, h).every((f) => !Ve.test(f)), c = /^[a-z]:/i.test(n[0]);
921
+ if (l) return [...n.slice(0, h).map((f) => this.#m(f)), ...n.slice(h).map((f) => this.parse(f))];
922
922
  if (c) return [this.#m(n[0]), ...n.slice(1).map((f) => this.parse(f))];
923
923
  }
924
- return n.map((a) => this.parse(a));
924
+ return n.map((h) => this.parse(h));
925
925
  });
926
926
  if (this.set = i2.filter((n) => n.indexOf(false) === -1), this.isWindows) for (let n = 0; n < this.set.length; n++) {
927
927
  let o = this.set[n];
@@ -936,21 +936,21 @@ var init_index_min = __esm({
936
936
  let e = Math.max(0, ...this.set.map((s) => s.length));
937
937
  for (let s = 0; s < e; s++) {
938
938
  let i2 = /* @__PURE__ */ new Map();
939
- this.set.forEach((o, h) => {
940
- if (!(o[s] instanceof ut) || !gi(this.globParts[h][s])) return;
941
- let a = [...this.globParts[h]];
942
- a[s] = "";
943
- let l = `${o.length}/${a.join("/")}`, c = i2.get(l);
944
- c ? c.push(h) : i2.set(l, [h]);
939
+ this.set.forEach((o, a) => {
940
+ if (!(o[s] instanceof ut) || !gi(this.globParts[a][s])) return;
941
+ let h = [...this.globParts[a]];
942
+ h[s] = "";
943
+ let l = `${o.length}/${h.join("/")}`, c = i2.get(l);
944
+ c ? c.push(a) : i2.set(l, [a]);
945
945
  });
946
946
  let n = /* @__PURE__ */ new Set();
947
947
  for (let o of i2.values()) {
948
948
  if (o.length < 2) continue;
949
- let [h, ...a] = o, c = `@(${o.map((f) => this.globParts[f][s]).join("|")})`;
950
- this.globParts[h][s] = c, this.set[h][s] = this.parse(c);
951
- for (let f of a) n.add(f);
949
+ let [a, ...h] = o, c = `@(${o.map((f) => this.globParts[f][s]).join("|")})`;
950
+ this.globParts[a][s] = c, this.set[a][s] = this.parse(c);
951
+ for (let f of h) n.add(f);
952
952
  }
953
- n.size && (t = true, this.set = this.set.filter((o, h) => !n.has(h)), this.globParts = this.globParts.filter((o, h) => !n.has(h)));
953
+ n.size && (t = true, this.set = this.set.filter((o, a) => !n.has(a)), this.globParts = this.globParts.filter((o, a) => !n.has(a)));
954
954
  }
955
955
  }
956
956
  }
@@ -980,34 +980,34 @@ var init_index_min = __esm({
980
980
  });
981
981
  }
982
982
  #l(t) {
983
- let e = !this.isWindows || !t.includes("\\") ? "/" : t.includes("/") ? "both" : "\\", s = this.#t ? 0 : -1, i2 = "", n = 0, o, h = 0, a = !!this.options.dot;
983
+ let e = !this.isWindows || !t.includes("\\") ? "/" : t.includes("/") ? "both" : "\\", s = this.#t ? 0 : -1, i2 = "", n = 0, o, a = 0, h = !!this.options.dot;
984
984
  t: for (let l = 0; l < this.set.length; l++) {
985
- let c = this.set[l], f = c[c.length - 1], m = s !== -1 && this.#c[l] && f !== x;
986
- if (m && s === 0) {
985
+ let c = this.set[l], f = c[c.length - 1], p = s !== -1 && this.#c[l] && f !== x;
986
+ if (p && s === 0) {
987
987
  let u = Je(t, t.length, e);
988
988
  if (n = u + 1, i2 = t.slice(n), i2 === "" && u >= 0) {
989
- let p = u;
990
- for (; p > 0 && Nt(t.charCodeAt(p - 1), e); ) p--;
991
- h = p === 0 ? 0 : Je(t, p - 1, e) + 1, o = t.slice(h, p);
989
+ let m = u;
990
+ for (; m > 0 && Nt(t.charCodeAt(m - 1), e); ) m--;
991
+ a = m === 0 ? 0 : Je(t, m - 1, e) + 1, o = t.slice(a, m);
992
992
  }
993
993
  let w = this.#e && (ge(i2) || i2 === "" && o !== void 0 && ge(o));
994
- s = w ? -1 : 1, m = !w;
994
+ s = w ? -1 : 1, p = !w;
995
995
  }
996
996
  let d = -1;
997
- if (m && typeof f == "string" && (d = Ze(f, i2, n, o, h), d === -1)) continue;
997
+ if (p && typeof f == "string" && (d = Ze(f, i2, n, o, a), d === -1)) continue;
998
998
  if (this.#i) {
999
999
  for (let u of this.#r[l]) if (!t.includes(u)) continue t;
1000
1000
  }
1001
- if (m && typeof f == "object" && (d = Ze(f, i2, n, o, h), d === -1)) continue;
1001
+ if (p && typeof f == "object" && (d = Ze(f, i2, n, o, a), d === -1)) continue;
1002
1002
  let g = this.#d[l];
1003
- if (g === "base" && m) return "yes";
1004
- if (g === "tail" && m) {
1003
+ if (g === "base" && p) return "yes";
1004
+ if (g === "tail" && p) {
1005
1005
  if (this.#e && pt(t, 0, d, true, e)) return "maybe";
1006
- if (!pt(t, 0, d, a, e)) return "yes";
1006
+ if (!pt(t, 0, d, h, e)) return "yes";
1007
1007
  continue;
1008
1008
  }
1009
1009
  if (g === "mid" || g === "head") {
1010
- let u = this.#w(t, c, g === "head", a, e);
1010
+ let u = this.#w(t, c, g === "head", h, e);
1011
1011
  if (u !== "no") return u;
1012
1012
  continue;
1013
1013
  }
@@ -1019,35 +1019,35 @@ var init_index_min = __esm({
1019
1019
  let i2 = !!this.options.dot, n = t.length;
1020
1020
  if (s === "head") {
1021
1021
  if (n < 2 || !X(e[0], t[0])) return false;
1022
- for (let h = 1; h < n; h++) if (!_t(t[h], i2)) return false;
1022
+ for (let a = 1; a < n; a++) if (!_t(t[a], i2)) return false;
1023
1023
  return true;
1024
1024
  }
1025
1025
  let o = e[1];
1026
1026
  if (s === "tail") {
1027
- let h = n - 1;
1028
- if (!X(o, t[h]) && (t[h] !== "" || n === 1 || !X(o, t[--h]))) return false;
1029
- for (let a = 0; a < h; a++) if (!_t(t[a], i2)) return false;
1027
+ let a = n - 1;
1028
+ if (!X(o, t[a]) && (t[a] !== "" || n === 1 || !X(o, t[--a]))) return false;
1029
+ for (let h = 0; h < a; h++) if (!_t(t[h], i2)) return false;
1030
1030
  return true;
1031
1031
  }
1032
- for (let h = 0; h < n; h++) {
1033
- if (X(o, t[h]) && h + 1 < n) {
1034
- let a = h + 1;
1035
- for (; a < n && _t(t[a], i2); ) a++;
1036
- if (a === n) return true;
1032
+ for (let a = 0; a < n; a++) {
1033
+ if (X(o, t[a]) && a + 1 < n) {
1034
+ let h = a + 1;
1035
+ for (; h < n && _t(t[h], i2); ) h++;
1036
+ if (h === n) return true;
1037
1037
  }
1038
- if (!_t(t[h], i2)) return false;
1038
+ if (!_t(t[a], i2)) return false;
1039
1039
  }
1040
1040
  return false;
1041
1041
  }
1042
1042
  #w(t, e, s, i2, n) {
1043
1043
  if (this.#e && pt(t, 0, t.length, true, n)) return "maybe";
1044
- let o = e[s ? 0 : 1], h = 0;
1045
- for (let a = we(t, h, n); a !== -1; a = we(t, h, n)) {
1046
- let l = a + 1;
1044
+ let o = e[s ? 0 : 1], a = 0;
1045
+ for (let h = we(t, a, n); h !== -1; h = we(t, a, n)) {
1046
+ let l = h + 1;
1047
1047
  for (; l < t.length && Nt(t.charCodeAt(l), n); ) l++;
1048
- if ((typeof o == "string" ? a - h === o.length && t.startsWith(o, h) : a > h && o.testUnchecked(t.slice(h, a))) && !pt(t, l, t.length, i2, n)) return "yes";
1049
- if (s || pt(t, h, l, i2, n)) return "no";
1050
- h = l;
1048
+ if ((typeof o == "string" ? h - a === o.length && t.startsWith(o, a) : h > a && o.testUnchecked(t.slice(a, h))) && !pt(t, l, t.length, i2, n)) return "yes";
1049
+ if (s || pt(t, a, l, i2, n)) return "no";
1050
+ a = l;
1051
1051
  }
1052
1052
  return "no";
1053
1053
  }
@@ -1064,8 +1064,8 @@ var init_index_min = __esm({
1064
1064
  do {
1065
1065
  if (s = false, !this.preserveMultipleSlashes) {
1066
1066
  for (let o = 1; o < e.length - 1; o++) {
1067
- let h = e[o];
1068
- o === 1 && h === "" && e[0] === "" || (h === "." || h === "") && (s = true, e.splice(o, 1), o--);
1067
+ let a = e[o];
1068
+ o === 1 && a === "" && e[0] === "" || (a === "." || a === "") && (s = true, e.splice(o, 1), o--);
1069
1069
  }
1070
1070
  e[0] === "." && e.length === 2 && (e[1] === "." || e[1] === "") && (s = true, e.pop());
1071
1071
  }
@@ -1078,42 +1078,43 @@ var init_index_min = __esm({
1078
1078
  return e.length === 0 ? [""] : e;
1079
1079
  }
1080
1080
  firstPhasePreProcess(t) {
1081
- let e = false;
1081
+ let { braceExpandMax: e = 1e5 } = this.options, s = false;
1082
1082
  do {
1083
- e = false;
1084
- for (let s of t) {
1085
- let i2 = -1;
1086
- for (; (i2 = s.indexOf("**", i2 + 1)) !== -1; ) {
1087
- let h = i2;
1088
- for (; s[h + 1] === "**"; ) h++;
1089
- h > i2 && s.splice(i2 + 1, h - i2);
1090
- let a = s[i2 + 1], l = s[i2 + 2], c = s[i2 + 3];
1091
- if (a !== ".." || !l || l === "." || l === ".." || !c || c === "." || c === "..") continue;
1092
- e = true, s.splice(i2, 1);
1093
- let f = s.slice(0);
1094
- f[i2] = "**", t.push(f), i2--;
1083
+ s = false;
1084
+ for (let i2 of t) {
1085
+ let n = -1;
1086
+ for (; (n = i2.indexOf("**", n + 1)) !== -1; ) {
1087
+ let h = n;
1088
+ for (; i2[h + 1] === "**"; ) h++;
1089
+ h > n && i2.splice(n + 1, h - n);
1090
+ let l = i2[n + 1], c = i2[n + 2], f = i2[n + 3];
1091
+ if (l !== ".." || !c || c === "." || c === ".." || !f || f === "." || f === ".." || t.length >= e) continue;
1092
+ s = true, i2.splice(n, 1);
1093
+ let p = i2.slice(0);
1094
+ p[n] = "**", t.push(p), n--;
1095
1095
  }
1096
1096
  if (!this.preserveMultipleSlashes) {
1097
- for (let h = 1; h < s.length - 1; h++) {
1098
- let a = s[h];
1099
- h === 1 && a === "" && s[0] === "" || (a === "." || a === "") && (e = true, s.splice(h, 1), h--);
1097
+ for (let h = 1; h < i2.length - 1; h++) {
1098
+ let l = i2[h];
1099
+ h === 1 && l === "" && i2[0] === "" || (l === "." || l === "") && (s = true, i2.splice(h, 1), h--);
1100
1100
  }
1101
- s[0] === "." && s.length === 2 && (s[1] === "." || s[1] === "") && (e = true, s.pop());
1101
+ i2[0] === "." && i2.length === 2 && (i2[1] === "." || i2[1] === "") && (s = true, i2.pop());
1102
1102
  }
1103
- let n = this.#a(s) + 1, o = n;
1104
- for (; (o = s.indexOf("..", o + 1)) !== -1; ) {
1105
- let h = s[o - 1];
1103
+ let o = this.#a(i2) + 1, a = o;
1104
+ for (; (a = i2.indexOf("..", a + 1)) !== -1; ) {
1105
+ let h = i2[a - 1];
1106
1106
  if (h && h !== "." && h !== ".." && h !== "**") {
1107
- e = true;
1108
- let l = o === 1 && s[o + 1] === "**" ? ["."] : [];
1109
- s.splice(o - 1, 2, ...l), s.length === 0 && s.push(""), o = Math.max(o - 2, n);
1107
+ s = true;
1108
+ let c = a === 1 && i2[a + 1] === "**" ? ["."] : [];
1109
+ i2.splice(a - 1, 2, ...c), i2.length === 0 && i2.push(""), a = Math.max(a - 2, o);
1110
1110
  }
1111
1111
  }
1112
1112
  }
1113
- } while (e);
1113
+ } while (s);
1114
1114
  return t;
1115
1115
  }
1116
1116
  secondPhasePreProcess(t) {
1117
+ if (t.length > 1e3) return t;
1117
1118
  for (let e = 0; e < t.length - 1; e++) for (let s = e + 1; s < t.length; s++) {
1118
1119
  let i2 = this.partsMatch(t[e], t[s], !this.preserveMultipleSlashes);
1119
1120
  if (i2) {
@@ -1124,16 +1125,16 @@ var init_index_min = __esm({
1124
1125
  return t.filter((e) => e.length);
1125
1126
  }
1126
1127
  partsMatch(t, e, s = false) {
1127
- let i2 = 0, n = 0, o = [], h = "";
1128
- for (; i2 < t.length && n < e.length; ) if (t[i2] === e[n]) o.push(h === "b" ? e[n] : t[i2]), i2++, n++;
1128
+ let i2 = 0, n = 0, o = [], a = "";
1129
+ for (; i2 < t.length && n < e.length; ) if (t[i2] === e[n]) o.push(a === "b" ? e[n] : t[i2]), i2++, n++;
1129
1130
  else if (s && t[i2] === "**" && e[n] === t[i2 + 1]) o.push(t[i2]), i2++;
1130
1131
  else if (s && e[n] === "**" && t[i2] === e[n + 1]) o.push(e[n]), n++;
1131
1132
  else if (t[i2] === "*" && e[n] && (this.options.dot || !e[n].startsWith(".")) && e[n] !== "**") {
1132
- if (h === "b") return false;
1133
- h = "a", o.push(t[i2]), i2++, n++;
1133
+ if (a === "b") return false;
1134
+ a = "a", o.push(t[i2]), i2++, n++;
1134
1135
  } else if (e[n] === "*" && t[i2] && (this.options.dot || !t[i2].startsWith(".")) && t[i2] !== "**") {
1135
- if (h === "a") return false;
1136
- h = "b", o.push(e[n]), i2++, n++;
1136
+ if (a === "a") return false;
1137
+ a = "b", o.push(e[n]), i2++, n++;
1137
1138
  } else return false;
1138
1139
  return t.length === e.length && o;
1139
1140
  }
@@ -1144,12 +1145,12 @@ var init_index_min = __esm({
1144
1145
  s && (this.pattern = t.slice(s)), this.negate = e;
1145
1146
  }
1146
1147
  #v(t, e, s, i2) {
1147
- let n = 0, o = 0, h = this.isWindows ? me(e) : -1, a = h === -1 ? -1 : me(s);
1148
- if (a !== -1) {
1149
- let l = s[a], c = s[a + 1];
1150
- typeof l != "string" || typeof c != "string" ? (n = h, o = a) : e[h].toLowerCase() === l.toLowerCase() && e[h + 1].toLowerCase() === c.toLowerCase() && (n = h + 2, o = a + 2);
1148
+ let n = 0, o = 0, a = this.isWindows ? me(e) : -1, h = a === -1 ? -1 : me(s);
1149
+ if (h !== -1) {
1150
+ let l = s[h], c = s[h + 1];
1151
+ typeof l != "string" || typeof c != "string" ? (n = a, o = h) : e[a].toLowerCase() === l.toLowerCase() && e[a + 1].toLowerCase() === c.toLowerCase() && (n = a + 2, o = h + 2);
1151
1152
  } else if (this.isWindows) {
1152
- let l = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), c = !l && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), f = typeof s[0] == "string" && /^[a-z]:$/i.test(s[0]), m = !f && s[0] === "" && s[1] === "" && s[2] === "?" && typeof s[3] == "string" && /^[a-z]:$/i.test(s[3]), d = c ? 3 : l ? 0 : void 0, g = m ? 3 : f ? 0 : void 0;
1153
+ let l = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), c = !l && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), f = typeof s[0] == "string" && /^[a-z]:$/i.test(s[0]), p = !f && s[0] === "" && s[1] === "" && s[2] === "?" && typeof s[3] == "string" && /^[a-z]:$/i.test(s[3]), d = c ? 3 : l ? 0 : void 0, g = p ? 3 : f ? 0 : void 0;
1153
1154
  if (typeof d == "number" && typeof g == "number") {
1154
1155
  let [u, w] = [t[d], s[g]];
1155
1156
  u.toLowerCase() === w.toLowerCase() && (o = g + 1, n = d + 1);
@@ -1158,26 +1159,26 @@ var init_index_min = __esm({
1158
1159
  return t = e, s.includes(x) ? this.#y(t, s, i2, n, o) : this.#g(t, s, i2, n, o);
1159
1160
  }
1160
1161
  #y(t, e, s, i2, n) {
1161
- let { head: o, body: h, tail: a, segments: l } = this.#E(e, s, n);
1162
+ let { head: o, body: a, tail: h, segments: l } = this.#E(e, s, n);
1162
1163
  if (o.length) {
1163
1164
  let f = i2 + o.length;
1164
1165
  if (!this.#g(t, o, s, i2, 0, f)) return false;
1165
1166
  i2 += o.length, n += o.length;
1166
1167
  }
1167
1168
  let c = 0;
1168
- if (a.length) {
1169
- if (a.length + i2 > t.length) return false;
1170
- let f = t.length - a.length;
1171
- if (this.#g(t, a, s, f, 0)) c = a.length;
1169
+ if (h.length) {
1170
+ if (h.length + i2 > t.length) return false;
1171
+ let f = t.length - h.length;
1172
+ if (this.#g(t, h, s, f, 0)) c = h.length;
1172
1173
  else {
1173
- if (t[t.length - 1] !== "" || i2 + a.length === t.length || (f--, !this.#g(t, a, s, f, 0))) return false;
1174
- c = a.length + 1;
1174
+ if (t[t.length - 1] !== "" || i2 + h.length === t.length || (f--, !this.#g(t, h, s, f, 0))) return false;
1175
+ c = h.length + 1;
1175
1176
  }
1176
1177
  }
1177
- if (!h.length) {
1178
+ if (!a.length) {
1178
1179
  let f = !!c;
1179
- for (let m = i2; m < t.length - c; m++) {
1180
- let d = String(t[m]);
1180
+ for (let p = i2; p < t.length - c; p++) {
1181
+ let d = String(t[p]);
1181
1182
  if (f = true, d === "." || d === ".." || !this.options.dot && d.startsWith(".")) return false;
1182
1183
  }
1183
1184
  return s || f;
@@ -1189,32 +1190,32 @@ var init_index_min = __esm({
1189
1190
  i2 || (i2 = [], this.#h.set(t, i2));
1190
1191
  let n = s * 2 + (e ? 1 : 0), o = i2[n];
1191
1192
  if (o) return o;
1192
- let h = t.indexOf(x, s), a = t.lastIndexOf(x), l = t.slice(s, h), c = t.slice(h + 1, e ? void 0 : a), f = e ? [] : t.slice(a + 1), m = [[[], 0]], d = m[0], g = 0, u = [0];
1193
- for (let p of c) p === x ? (u.push(g), d = [[], 0], m.push(d)) : (d[0].push(p), g++);
1194
- m.forEach((p, b) => {
1195
- p[1] = g - u[b];
1193
+ let a = t.indexOf(x, s), h = t.lastIndexOf(x), l = t.slice(s, a), c = t.slice(a + 1, e ? void 0 : h), f = e ? [] : t.slice(h + 1), p = [[[], 0]], d = p[0], g = 0, u = [0];
1194
+ for (let m of c) m === x ? (u.push(g), d = [[], 0], p.push(d)) : (d[0].push(m), g++);
1195
+ p.forEach((m, b) => {
1196
+ m[1] = g - u[b];
1196
1197
  });
1197
- let w = { head: l, body: c, tail: f, segments: m };
1198
+ let w = { head: l, body: c, tail: f, segments: p };
1198
1199
  return i2[n] = w, w;
1199
1200
  }
1200
- #k(t, e, s, i2, n, o, h, a, l) {
1201
+ #k(t, e, s, i2, n, o, a, h, l) {
1201
1202
  let c = e[n];
1202
1203
  if (!c) {
1203
1204
  if (o) return i2 >= s || i2 === s - 1 && t[i2] === "";
1204
1205
  for (let g = i2; g < s; g++) {
1205
- a = true;
1206
+ h = true;
1206
1207
  let u = t[g];
1207
1208
  if (u === "." || u === ".." || !this.options.dot && u.startsWith(".")) return false;
1208
1209
  }
1209
- return a;
1210
+ return h;
1210
1211
  }
1211
- let [f, m] = c, d = o ? s : s - m;
1212
+ let [f, p] = c, d = o ? s : s - p;
1212
1213
  for (; i2 <= d; ) {
1213
1214
  let g = n * (t.length + 1) + i2;
1214
1215
  if (l.has(g)) return false;
1215
- if (l.add(g), this.#g(t, f, o, i2, 0, i2 + f.length) && h < this.maxGlobstarRecursion) {
1216
- let p = this.#k(t, e, s, i2 + f.length, n + 1, o, h + 1, a, l);
1217
- if (p !== false) return p;
1216
+ if (l.add(g), this.#g(t, f, o, i2, 0, i2 + f.length) && a < this.maxGlobstarRecursion) {
1217
+ let m = this.#k(t, e, s, i2 + f.length, n + 1, o, a + 1, h, l);
1218
+ if (m !== false) return m;
1218
1219
  }
1219
1220
  if (i2 === d) break;
1220
1221
  let w = t[i2];
@@ -1224,14 +1225,14 @@ var init_index_min = __esm({
1224
1225
  return o || null;
1225
1226
  }
1226
1227
  #g(t, e, s, i2, n, o = t.length) {
1227
- let h, a, l, c;
1228
- for (h = i2, a = n, c = Math.min(o, t.length), l = e.length; h < c && a < l; h++, a++) {
1229
- let f = e[a], m = t[h];
1230
- if (f === false || f === x || !X(f, m)) return false;
1231
- }
1232
- if (h === c && a === l) return true;
1233
- if (h === c) return s;
1234
- if (a === l) return h === c - 1 && t[h] === "";
1228
+ let a, h, l, c;
1229
+ for (a = i2, h = n, c = Math.min(o, t.length), l = e.length; a < c && h < l; a++, h++) {
1230
+ let f = e[h], p = t[a];
1231
+ if (f === false || f === x || !X(f, p)) return false;
1232
+ }
1233
+ if (a === c && h === l) return true;
1234
+ if (a === c) return s;
1235
+ if (h === l) return a === c - 1 && t[a] === "";
1235
1236
  throw new Error("wtf?");
1236
1237
  }
1237
1238
  braceExpand() {
@@ -1242,10 +1243,10 @@ var init_index_min = __esm({
1242
1243
  let e = this.options;
1243
1244
  if (t === "**") return x;
1244
1245
  if (t === "") return "";
1245
- let { nocase: s, nocaseMagicOnly: i2, noext: n = false, dot: o, normalize: h } = e, a = mi(t, n);
1246
- if (a !== void 0 && !(s && !i2 && t.toUpperCase() !== t.toLowerCase())) return this.#m(a);
1246
+ let { nocase: s, nocaseMagicOnly: i2, noext: n = false, dot: o, normalize: a } = e, h = mi(t, n);
1247
+ if (h !== void 0 && !(s && !i2 && t.toUpperCase() !== t.toLowerCase())) return this.#m(h);
1247
1248
  let l = this.#p.get(t);
1248
- return l || (l = new ut(t, { nocase: s, noext: n, dot: o, normalize: h }), this.#p.set(t, l)), l;
1249
+ return l || (l = new ut(t, { nocase: s, noext: n, dot: o, normalize: a }), this.#p.set(t, l)), l;
1249
1250
  }
1250
1251
  #S(t) {
1251
1252
  return this.preserveMultipleSlashes ? t.split("/") : this.isWindows && /^\/\/[^/]+/.test(t) ? ["", ...t.split(/\/+/)] : t.split(/\/+/);
@@ -1264,21 +1265,21 @@ var init_index_min = __esm({
1264
1265
  }
1265
1266
  i2 = this.#b(t);
1266
1267
  }
1267
- let n = i2.parts, o = this.#e ? i2.resolved ??= this.#f(n) : n, h = this.set, a = n[n.length - 1];
1268
- if (!a) for (let l = n.length - 2; !a && l >= 0; l--) a = n[l];
1269
- for (let l = 0; l < h.length; l++) {
1270
- let c = h[l], f = e ? void 0 : this.#d[l];
1271
- if (f === "base" ? X(c[0], a) : f ? this.#n(o, c, f) : s.matchBase && c.length === 1 ? this.#v([a], [a], c, e) : this.#v(n, o, c, e)) return s.flipNegate ? true : !this.negate;
1268
+ let n = i2.parts, o = this.#e ? i2.resolved ??= this.#f(n) : n, a = this.set, h = n[n.length - 1];
1269
+ if (!h) for (let l = n.length - 2; !h && l >= 0; l--) h = n[l];
1270
+ for (let l = 0; l < a.length; l++) {
1271
+ let c = a[l], f = e ? void 0 : this.#d[l];
1272
+ if (f === "base" ? X(c[0], h) : f ? this.#n(o, c, f) : s.matchBase && c.length === 1 ? this.#v([h], [h], c, e) : this.#v(n, o, c, e)) return s.flipNegate ? true : !this.negate;
1272
1273
  }
1273
1274
  return s.flipNegate ? false : this.negate;
1274
1275
  }
1275
1276
  static defaults(t) {
1276
- return M.defaults(t).Minimatch;
1277
+ return F.defaults(t).Minimatch;
1277
1278
  }
1278
1279
  };
1279
- M.Minimatch = D;
1280
- M.escape = K;
1281
- M.unescape = st;
1280
+ F.Minimatch = D;
1281
+ F.escape = K;
1282
+ F.unescape = st;
1282
1283
  R = bi("lru-cache:metrics");
1283
1284
  mt = wi("lru-cache");
1284
1285
  yi = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
@@ -1364,13 +1365,13 @@ var init_index_min = __esm({
1364
1365
  #C;
1365
1366
  #O;
1366
1367
  #s;
1367
- #M;
1368
+ #F;
1368
1369
  static unsafeExposeInternals(t) {
1369
1370
  return { starts: t.#k, ttls: t.#g, autopurgeTimers: t.#S, sizes: t.#E, keyMap: t.#a, keyList: t.#l, valList: t.#n, next: t.#w, prev: t.#x, get head() {
1370
1371
  return t.#b;
1371
1372
  }, get tail() {
1372
1373
  return t.#f;
1373
- }, free: t.#v, isBackgroundFetch: (e) => t.#u(e), backgroundFetch: (e, s, i2, n) => t.#L(e, s, i2, n), moveToTail: (e) => t.#X(e), indexes: (e) => t.#T(e), rindexes: (e) => t.#F(e), isStale: (e) => t.#A(e) };
1374
+ }, free: t.#v, isBackgroundFetch: (e) => t.#u(e), backgroundFetch: (e, s, i2, n) => t.#L(e, s, i2, n), moveToTail: (e) => t.#X(e), indexes: (e) => t.#M(e), rindexes: (e) => t.#T(e), isStale: (e) => t.#A(e) };
1374
1375
  }
1375
1376
  get max() {
1376
1377
  return this.#t;
@@ -1400,7 +1401,7 @@ var init_index_min = __esm({
1400
1401
  return this.#r;
1401
1402
  }
1402
1403
  constructor(t) {
1403
- let { max: e = 0, ttl: s, ttlResolution: i2 = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: m, noUpdateTTL: d, maxSize: g = 0, maxEntrySize: u = 0, sizeCalculation: w, fetchMethod: p, memoMethod: b, noDeleteOnFetchRejection: v, noDeleteOnStaleGet: S, allowStaleOnFetchRejection: y, allowStaleOnFetchAbort: q, ignoreFetchAbort: W, backgroundFetchSize: I = 1, perf: et } = t;
1404
+ let { max: e = 0, ttl: s, ttlResolution: i2 = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: h, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: d, maxSize: g = 0, maxEntrySize: u = 0, sizeCalculation: w, fetchMethod: m, memoMethod: b, noDeleteOnFetchRejection: v, noDeleteOnStaleGet: S, allowStaleOnFetchRejection: y, allowStaleOnFetchAbort: q, ignoreFetchAbort: W, backgroundFetchSize: I = 1, perf: et } = t;
1404
1405
  if (this.backgroundFetchSize = I, et !== void 0 && typeof et?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1405
1406
  if (this.#p = et ?? yi, e !== 0 && !V(e)) throw new TypeError("max option must be a nonnegative integer");
1406
1407
  let te = e ? ns(e) : Array;
@@ -1410,13 +1411,13 @@ var init_index_min = __esm({
1410
1411
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
1411
1412
  }
1412
1413
  if (b !== void 0 && typeof b != "function") throw new TypeError("memoMethod must be a function if defined");
1413
- if (this.#c = b, p !== void 0 && typeof p != "function") throw new TypeError("fetchMethod must be a function if specified");
1414
- if (this.#d = p, this.#O = !!p, this.#a = /* @__PURE__ */ new Map(), this.#l = Array.from({ length: e }).fill(void 0), this.#n = Array.from({ length: e }).fill(void 0), this.#w = new te(e), this.#x = new te(e), this.#b = 0, this.#f = 0, this.#v = xi.create(e), this.#h = 0, this.#m = 0, typeof l == "function" && (this.#e = l), typeof c == "function" && (this.#o = c), typeof f == "function" ? (this.#r = f, this.#y = []) : (this.#r = void 0, this.#y = void 0), this.#C = !!this.#e, this.#M = !!this.#o, this.#s = !!this.#r, this.noDisposeOnSet = !!m, this.noUpdateTTL = !!d, this.noDeleteOnFetchRejection = !!v, this.allowStaleOnFetchRejection = !!y, this.allowStaleOnFetchAbort = !!q, this.ignoreFetchAbort = !!W, this.maxEntrySize !== 0) {
1414
+ if (this.#c = b, m !== void 0 && typeof m != "function") throw new TypeError("fetchMethod must be a function if specified");
1415
+ if (this.#d = m, this.#O = !!m, this.#a = /* @__PURE__ */ new Map(), this.#l = Array.from({ length: e }).fill(void 0), this.#n = Array.from({ length: e }).fill(void 0), this.#w = new te(e), this.#x = new te(e), this.#b = 0, this.#f = 0, this.#v = xi.create(e), this.#h = 0, this.#m = 0, typeof l == "function" && (this.#e = l), typeof c == "function" && (this.#o = c), typeof f == "function" ? (this.#r = f, this.#y = []) : (this.#r = void 0, this.#y = void 0), this.#C = !!this.#e, this.#F = !!this.#o, this.#s = !!this.#r, this.noDisposeOnSet = !!p, this.noUpdateTTL = !!d, this.noDeleteOnFetchRejection = !!v, this.allowStaleOnFetchRejection = !!y, this.allowStaleOnFetchAbort = !!q, this.ignoreFetchAbort = !!W, this.maxEntrySize !== 0) {
1415
1416
  if (this.#i !== 0 && !V(this.#i)) throw new TypeError("maxSize must be a positive integer if specified");
1416
1417
  if (!V(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1417
1418
  this.#G();
1418
1419
  }
1419
- if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!S, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!h, this.ttlResolution = V(i2) || i2 === 0 ? i2 : 1, this.ttlAutopurge = !!n, this.ttl = s || 0, this.ttl) {
1420
+ if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!S, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!a, this.ttlResolution = V(i2) || i2 === 0 ? i2 : 1, this.ttlAutopurge = !!n, this.ttl = s || 0, this.ttl) {
1420
1421
  if (!V(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1421
1422
  this.#_();
1422
1423
  }
@@ -1433,50 +1434,50 @@ var init_index_min = __esm({
1433
1434
  let t = new Pt(this.#t), e = new Pt(this.#t);
1434
1435
  this.#g = t, this.#k = e;
1435
1436
  let s = this.ttlAutopurge ? Array.from({ length: this.#t }) : void 0;
1436
- this.#S = s, this.#W = (a, l, c = this.#p.now()) => {
1437
- e[a] = l !== 0 ? c : 0, t[a] = l, i2(a, l);
1438
- }, this.#R = (a) => {
1439
- e[a] = t[a] !== 0 ? this.#p.now() : 0, i2(a, t[a]);
1437
+ this.#S = s, this.#W = (h, l, c = this.#p.now()) => {
1438
+ e[h] = l !== 0 ? c : 0, t[h] = l, i2(h, l);
1439
+ }, this.#R = (h) => {
1440
+ e[h] = t[h] !== 0 ? this.#p.now() : 0, i2(h, t[h]);
1440
1441
  };
1441
- let i2 = this.ttlAutopurge ? (a, l) => {
1442
- if (s?.[a] && (clearTimeout(s[a]), s[a] = void 0), l && l !== 0 && s) {
1442
+ let i2 = this.ttlAutopurge ? (h, l) => {
1443
+ if (s?.[h] && (clearTimeout(s[h]), s[h] = void 0), l && l !== 0 && s) {
1443
1444
  let c = setTimeout(() => {
1444
- this.#A(a) ? (this.#j(this.#l[a], "expire"), s[a] = void 0) : i2(a, h(a));
1445
+ this.#A(h) ? (this.#j(this.#l[h], "expire"), s[h] = void 0) : i2(h, a(h));
1445
1446
  }, l + 1);
1446
- c.unref && c.unref(), s[a] = c;
1447
+ c.unref && c.unref(), s[h] = c;
1447
1448
  }
1448
1449
  } : () => {
1449
1450
  };
1450
- this.#D = (a, l) => {
1451
+ this.#D = (h, l) => {
1451
1452
  if (t[l]) {
1452
1453
  let c = t[l], f = e[l];
1453
1454
  if (!c || !f) return;
1454
- a.ttl = c, a.start = f, a.now = n || o();
1455
- let m = a.now - f;
1456
- a.remainingTTL = c - m;
1455
+ h.ttl = c, h.start = f, h.now = n || o();
1456
+ let p = h.now - f;
1457
+ h.remainingTTL = c - p;
1457
1458
  }
1458
1459
  };
1459
1460
  let n = 0, o = () => {
1460
- let a = this.#p.now();
1461
+ let h = this.#p.now();
1461
1462
  if (this.ttlResolution > 0) {
1462
- n = a;
1463
+ n = h;
1463
1464
  let l = setTimeout(() => n = 0, this.ttlResolution);
1464
1465
  l.unref && l.unref();
1465
1466
  }
1466
- return a;
1467
+ return h;
1467
1468
  };
1468
- this.getRemainingTTL = (a) => {
1469
- let l = this.#a.get(a);
1470
- return l === void 0 ? 0 : h(l);
1469
+ this.getRemainingTTL = (h) => {
1470
+ let l = this.#a.get(h);
1471
+ return l === void 0 ? 0 : a(l);
1471
1472
  };
1472
- let h = (a) => {
1473
- let l = t[a], c = e[a];
1473
+ let a = (h) => {
1474
+ let l = t[h], c = e[h];
1474
1475
  if (!l || !c) return 1 / 0;
1475
1476
  let f = (n || o()) - c;
1476
1477
  return l - f;
1477
1478
  };
1478
- this.#A = (a) => {
1479
- let l = e[a], c = t[a];
1479
+ this.#A = (h) => {
1480
+ let l = e[h], c = t[h];
1480
1481
  return !!c && !!l && (n || o()) - l > c;
1481
1482
  };
1482
1483
  }
@@ -1516,64 +1517,64 @@ var init_index_min = __esm({
1516
1517
  if (s || i2) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
1517
1518
  return 0;
1518
1519
  };
1519
- *#T({ allowStale: t = this.allowStale } = {}) {
1520
+ *#M({ allowStale: t = this.allowStale } = {}) {
1520
1521
  if (this.#h) for (let e = this.#f; this.#B(e) && ((t || !this.#A(e)) && (yield e), e !== this.#b); ) e = this.#x[e];
1521
1522
  }
1522
- *#F({ allowStale: t = this.allowStale } = {}) {
1523
+ *#T({ allowStale: t = this.allowStale } = {}) {
1523
1524
  if (this.#h) for (let e = this.#b; this.#B(e) && ((t || !this.#A(e)) && (yield e), e !== this.#f); ) e = this.#w[e];
1524
1525
  }
1525
1526
  #B(t) {
1526
1527
  return t !== void 0 && this.#a.get(this.#l[t]) === t;
1527
1528
  }
1528
1529
  *entries() {
1529
- for (let t of this.#T()) this.#n[t] !== void 0 && this.#l[t] !== void 0 && !this.#u(this.#n[t]) && (yield [this.#l[t], this.#n[t]]);
1530
+ for (let t of this.#M()) this.#n[t] !== void 0 && this.#l[t] !== void 0 && !this.#u(this.#n[t]) && (yield [this.#l[t], this.#n[t]]);
1530
1531
  }
1531
1532
  *rentries() {
1532
- for (let t of this.#F()) this.#n[t] !== void 0 && this.#l[t] !== void 0 && !this.#u(this.#n[t]) && (yield [this.#l[t], this.#n[t]]);
1533
+ for (let t of this.#T()) this.#n[t] !== void 0 && this.#l[t] !== void 0 && !this.#u(this.#n[t]) && (yield [this.#l[t], this.#n[t]]);
1533
1534
  }
1534
1535
  *keys() {
1535
- for (let t of this.#T()) {
1536
+ for (let t of this.#M()) {
1536
1537
  let e = this.#l[t];
1537
1538
  e !== void 0 && !this.#u(this.#n[t]) && (yield e);
1538
1539
  }
1539
1540
  }
1540
1541
  *rkeys() {
1541
- for (let t of this.#F()) {
1542
+ for (let t of this.#T()) {
1542
1543
  let e = this.#l[t];
1543
1544
  e !== void 0 && !this.#u(this.#n[t]) && (yield e);
1544
1545
  }
1545
1546
  }
1546
1547
  *values() {
1547
- for (let t of this.#T()) this.#n[t] !== void 0 && !this.#u(this.#n[t]) && (yield this.#n[t]);
1548
+ for (let t of this.#M()) this.#n[t] !== void 0 && !this.#u(this.#n[t]) && (yield this.#n[t]);
1548
1549
  }
1549
1550
  *rvalues() {
1550
- for (let t of this.#F()) this.#n[t] !== void 0 && !this.#u(this.#n[t]) && (yield this.#n[t]);
1551
+ for (let t of this.#T()) this.#n[t] !== void 0 && !this.#u(this.#n[t]) && (yield this.#n[t]);
1551
1552
  }
1552
1553
  [Symbol.iterator]() {
1553
1554
  return this.entries();
1554
1555
  }
1555
1556
  [Symbol.toStringTag] = "LRUCache";
1556
1557
  find(t, e = {}) {
1557
- for (let s of this.#T()) {
1558
+ for (let s of this.#M()) {
1558
1559
  let i2 = this.#n[s], n = this.#u(i2) ? i2.__staleWhileFetching : i2;
1559
1560
  if (n !== void 0 && t(n, this.#l[s], this)) return this.#K(this.#l[s], e);
1560
1561
  }
1561
1562
  }
1562
1563
  forEach(t, e = this) {
1563
- for (let s of this.#T()) {
1564
+ for (let s of this.#M()) {
1564
1565
  let i2 = this.#n[s], n = this.#u(i2) ? i2.__staleWhileFetching : i2;
1565
1566
  n !== void 0 && t.call(e, n, this.#l[s], this);
1566
1567
  }
1567
1568
  }
1568
1569
  rforEach(t, e = this) {
1569
- for (let s of this.#F()) {
1570
+ for (let s of this.#T()) {
1570
1571
  let i2 = this.#n[s], n = this.#u(i2) ? i2.__staleWhileFetching : i2;
1571
1572
  n !== void 0 && t.call(e, n, this.#l[s], this);
1572
1573
  }
1573
1574
  }
1574
1575
  purgeStale() {
1575
1576
  let t = false;
1576
- for (let e of this.#F({ allowStale: true })) this.#A(e) && (this.#j(this.#l[e], "expire"), t = true);
1577
+ for (let e of this.#T({ allowStale: true })) this.#A(e) && (this.#j(this.#l[e], "expire"), t = true);
1577
1578
  return t;
1578
1579
  }
1579
1580
  info(t) {
@@ -1583,24 +1584,24 @@ var init_index_min = __esm({
1583
1584
  if (i2 === void 0) return;
1584
1585
  let n = { value: i2 };
1585
1586
  if (this.#g && this.#k) {
1586
- let o = this.#g[e], h = this.#k[e];
1587
- if (o && h) {
1588
- let a = o - (this.#p.now() - h);
1589
- n.ttl = a, n.start = Date.now();
1587
+ let o = this.#g[e], a = this.#k[e];
1588
+ if (o && a) {
1589
+ let h = o - (this.#p.now() - a);
1590
+ n.ttl = h, n.start = Date.now();
1590
1591
  }
1591
1592
  }
1592
1593
  return this.#E && (n.size = this.#E[e]), n;
1593
1594
  }
1594
1595
  dump() {
1595
1596
  let t = [];
1596
- for (let e of this.#T({ allowStale: true })) {
1597
+ for (let e of this.#M({ allowStale: true })) {
1597
1598
  let s = this.#l[e], i2 = this.#n[e], n = this.#u(i2) ? i2.__staleWhileFetching : i2;
1598
1599
  if (n === void 0 || s === void 0) continue;
1599
1600
  let o = { value: n };
1600
1601
  if (this.#g && this.#k) {
1601
1602
  o.ttl = this.#g[e];
1602
- let h = this.#p.now() - this.#k[e];
1603
- o.start = Math.floor(Date.now() - h);
1603
+ let a = this.#p.now() - this.#k[e];
1604
+ o.start = Math.floor(Date.now() - a);
1604
1605
  }
1605
1606
  this.#E && (o.size = this.#E[e]), t.unshift([s, o]);
1606
1607
  }
@@ -1623,30 +1624,30 @@ var init_index_min = __esm({
1623
1624
  return i2 && R.hasSubscribers && R.publish(i2), n;
1624
1625
  }
1625
1626
  #z(t, e, s, i2) {
1626
- let { ttl: n = this.ttl, start: o, noDisposeOnSet: h = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: l } = s, c = this.#u(e);
1627
+ let { ttl: n = this.ttl, start: o, noDisposeOnSet: a = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: l } = s, c = this.#u(e);
1627
1628
  if (e === void 0) return l && (l.set = "deleted"), this.delete(t), this;
1628
1629
  let { noUpdateTTL: f = this.noUpdateTTL } = s;
1629
1630
  l && !c && (l.value = e);
1630
- let m = this.#$(t, e, s.size || 0, a, l);
1631
- if (this.maxEntrySize && m > this.maxEntrySize) return this.#j(t, "set"), l && (l.set = "miss", l.maxEntrySizeExceeded = true), this;
1631
+ let p = this.#$(t, e, s.size || 0, h, l);
1632
+ if (this.maxEntrySize && p > this.maxEntrySize) return this.#j(t, "set"), l && (l.set = "miss", l.maxEntrySizeExceeded = true), this;
1632
1633
  let d = this.#h === 0 ? void 0 : this.#a.get(t);
1633
- if (d === void 0) d = this.#h === 0 ? this.#f : this.#v.length !== 0 ? this.#v.pop() : this.#h === this.#t ? this.#U(false) : this.#h, this.#l[d] = t, this.#n[d] = e, this.#a.set(t, d), this.#w[this.#f] = d, this.#x[d] = this.#f, this.#f = d, this.#h++, this.#N(d, m, l), l && (l.set = "add"), f = false, this.#M && !c && this.#o?.(e, t, "add");
1634
+ if (d === void 0) d = this.#h === 0 ? this.#f : this.#v.length !== 0 ? this.#v.pop() : this.#h === this.#t ? this.#U(false) : this.#h, this.#l[d] = t, this.#n[d] = e, this.#a.set(t, d), this.#w[this.#f] = d, this.#x[d] = this.#f, this.#f = d, this.#h++, this.#N(d, p, l), l && (l.set = "add"), f = false, this.#F && !c && this.#o?.(e, t, "add");
1634
1635
  else {
1635
1636
  this.#X(d);
1636
1637
  let g = this.#n[d];
1637
1638
  if (e !== g) {
1638
- if (!h) if (this.#u(g)) {
1639
+ if (!a) if (this.#u(g)) {
1639
1640
  g !== i2 && g.__abortController.abort(new Error("replaced"));
1640
1641
  let { __staleWhileFetching: u } = g;
1641
1642
  u !== void 0 && u !== e && (this.#C && this.#e?.(u, t, "set"), this.#s && this.#y?.push([u, t, "set"]));
1642
1643
  } else this.#C && this.#e?.(g, t, "set"), this.#s && this.#y?.push([g, t, "set"]);
1643
- if (this.#P(d), this.#N(d, m, l), this.#n[d] = e, !c) {
1644
+ if (this.#P(d), this.#N(d, p, l), this.#n[d] = e, !c) {
1644
1645
  let u = g && this.#u(g) ? g.__staleWhileFetching : g, w = u === void 0 ? "add" : e !== u ? "replace" : "update";
1645
- l && (l.set = w, u !== void 0 && (l.oldValue = u)), this.#M && this.onInsert?.(e, t, w);
1646
+ l && (l.set = w, u !== void 0 && (l.oldValue = u)), this.#F && this.onInsert?.(e, t, w);
1646
1647
  }
1647
- } else c || (l && (l.set = "update"), this.#M && this.onInsert?.(e, t, "update"));
1648
+ } else c || (l && (l.set = "update"), this.#F && this.onInsert?.(e, t, "update"));
1648
1649
  }
1649
- if (n !== 0 && !this.#g && this.#_(), this.#g && (f || this.#W(d, n, o), l && this.#D(l, d)), !h && this.#s && this.#y) {
1650
+ if (n !== 0 && !this.#g && this.#_(), this.#g && (f || this.#W(d, n, o), l && this.#D(l, d)), !a && this.#s && this.#y) {
1650
1651
  let g = this.#y, u;
1651
1652
  for (; u = g?.shift(); ) this.#r?.(...u);
1652
1653
  }
@@ -1701,32 +1702,32 @@ var init_index_min = __esm({
1701
1702
  s && (s.peek = n === void 0 ? "miss" : "stale");
1702
1703
  return;
1703
1704
  }
1704
- let o = this.#n[n], h = this.#u(o) ? o.__staleWhileFetching : o;
1705
- return s && (h !== void 0 ? (s.peek = "hit", s.value = h) : s.peek = "miss"), h;
1705
+ let o = this.#n[n], a = this.#u(o) ? o.__staleWhileFetching : o;
1706
+ return s && (a !== void 0 ? (s.peek = "hit", s.value = a) : s.peek = "miss"), a;
1706
1707
  }
1707
1708
  #L(t, e, s, i2) {
1708
1709
  let n = e === void 0 ? void 0 : this.#n[e];
1709
1710
  if (this.#u(n)) return n;
1710
- let o = new AbortController(), { signal: h } = s;
1711
- h?.addEventListener("abort", () => o.abort(h.reason), { signal: o.signal });
1712
- let a = { signal: o.signal, options: s, context: i2 }, l = (u, w = false) => {
1713
- let { aborted: p } = o.signal, b = s.ignoreFetchAbort && u !== void 0, v = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && u !== void 0);
1714
- if (s.status && (p && !w ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, b && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), p && !b && !w) return f(o.signal.reason, v);
1711
+ let o = new AbortController(), { signal: a } = s;
1712
+ a?.addEventListener("abort", () => o.abort(a.reason), { signal: o.signal });
1713
+ let h = { signal: o.signal, options: s, context: i2 }, l = (u, w = false) => {
1714
+ let { aborted: m } = o.signal, b = s.ignoreFetchAbort && u !== void 0, v = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && u !== void 0);
1715
+ if (s.status && (m && !w ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, b && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), m && !b && !w) return f(o.signal.reason, v);
1715
1716
  let S = d, y = this.#n[e];
1716
- return (y === d || y === void 0 && b && w) && (u === void 0 ? S.__staleWhileFetching !== void 0 ? this.#n[e] = S.__staleWhileFetching : this.#j(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.#z(t, u, a.options, S))), u;
1717
+ return (y === d || y === void 0 && b && w) && (u === void 0 ? S.__staleWhileFetching !== void 0 ? this.#n[e] = S.__staleWhileFetching : this.#j(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.#z(t, u, h.options, S))), u;
1717
1718
  }, c = (u) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = u), f(u, false)), f = (u, w) => {
1718
- let { aborted: p } = o.signal, b = p && s.allowStaleOnFetchAbort, v = b || s.allowStaleOnFetchRejection, S = v || s.noDeleteOnFetchRejection, y = d;
1719
+ let { aborted: m } = o.signal, b = m && s.allowStaleOnFetchAbort, v = b || s.allowStaleOnFetchRejection, S = v || s.noDeleteOnFetchRejection, y = d;
1719
1720
  if (this.#n[e] === d && (!S || !w && y.__staleWhileFetching === void 0 ? this.#j(t, "fetch") : b || (this.#n[e] = y.__staleWhileFetching)), v) return s.status && y.__staleWhileFetching !== void 0 && (s.status.returnedStale = true), y.__staleWhileFetching;
1720
1721
  if (y.__returned === y) throw u;
1721
- }, m = (u, w) => {
1722
- let p = this.#d?.(t, n, a);
1722
+ }, p = (u, w) => {
1723
+ let m = this.#d?.(t, n, h);
1723
1724
  o.signal.addEventListener("abort", () => {
1724
1725
  (!s.ignoreFetchAbort || s.allowStaleOnFetchAbort) && (u(void 0), s.allowStaleOnFetchAbort && (u = (b) => l(b, true)));
1725
- }), p && p instanceof Promise ? p.then((b) => u(b === void 0 ? void 0 : b), w) : p !== void 0 && u(p);
1726
+ }), m && m instanceof Promise ? m.then((b) => u(b === void 0 ? void 0 : b), w) : m !== void 0 && u(m);
1726
1727
  };
1727
1728
  s.status && (s.status.fetchDispatched = true);
1728
- let d = new Promise(m).then(l, c), g = Object.assign(d, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
1729
- return e === void 0 ? (this.#z(t, g, { ...a.options, status: void 0 }), e = this.#a.get(t)) : this.#n[e] = g, g;
1729
+ let d = new Promise(p).then(l, c), g = Object.assign(d, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
1730
+ return e === void 0 ? (this.#z(t, g, { ...h.options, status: void 0 }), e = this.#a.get(t)) : this.#n[e] = g, g;
1730
1731
  }
1731
1732
  #u(t) {
1732
1733
  if (!this.#O) return false;
@@ -1741,23 +1742,23 @@ var init_index_min = __esm({
1741
1742
  })), n;
1742
1743
  }
1743
1744
  async #q(t, e = {}) {
1744
- let { allowStale: s = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: m = this.allowStaleOnFetchRejection, ignoreFetchAbort: d = this.ignoreFetchAbort, allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort, context: u, forceRefresh: w = false, status: p, signal: b } = e;
1745
- if (p && (p.op = "fetch", p.key = t, w && (p.forceRefresh = true), p.cache = this), !this.#O) return p && (p.fetch = "get"), this.#K(t, { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: n, status: p });
1746
- let v = { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: m, allowStaleOnFetchAbort: g, ignoreFetchAbort: d, status: p, signal: b }, S = this.#a.get(t);
1745
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: a = this.noDisposeOnSet, size: h = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection, ignoreFetchAbort: d = this.ignoreFetchAbort, allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort, context: u, forceRefresh: w = false, status: m, signal: b } = e;
1746
+ if (m && (m.op = "fetch", m.key = t, w && (m.forceRefresh = true), m.cache = this), !this.#O) return m && (m.fetch = "get"), this.#K(t, { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: n, status: m });
1747
+ let v = { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: a, size: h, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: g, ignoreFetchAbort: d, status: m, signal: b }, S = this.#a.get(t);
1747
1748
  if (S === void 0) {
1748
- p && (p.fetch = "miss");
1749
+ m && (m.fetch = "miss");
1749
1750
  let y = this.#L(t, S, v, u);
1750
1751
  return y.__returned = y;
1751
1752
  } else {
1752
1753
  let y = this.#n[S];
1753
1754
  if (this.#u(y)) {
1754
1755
  let et = s && y.__staleWhileFetching !== void 0;
1755
- return p && (p.fetch = "inflight", et && (p.returnedStale = true)), et ? y.__staleWhileFetching : y.__returned = y;
1756
+ return m && (m.fetch = "inflight", et && (m.returnedStale = true)), et ? y.__staleWhileFetching : y.__returned = y;
1756
1757
  }
1757
1758
  let q = this.#A(S);
1758
- if (!w && !q) return p && (p.fetch = "hit"), this.#X(S), i2 && this.#R(S), p && this.#D(p, S), y;
1759
+ if (!w && !q) return m && (m.fetch = "hit"), this.#X(S), i2 && this.#R(S), m && this.#D(m, S), y;
1759
1760
  let W = this.#L(t, S, v, u), I = W.__staleWhileFetching !== void 0 && s;
1760
- return p && (p.fetch = q ? "stale" : "refresh", I && q && (p.returnedStale = true)), I ? W.__staleWhileFetching : W.__returned = W;
1761
+ return m && (m.fetch = q ? "stale" : "refresh", I && q && (m.returnedStale = true)), I ? W.__staleWhileFetching : W.__returned = W;
1761
1762
  }
1762
1763
  }
1763
1764
  forceFetch(t, e = {}) {
@@ -1781,12 +1782,12 @@ var init_index_min = __esm({
1781
1782
  #J(t, e = {}) {
1782
1783
  let s = this.#c;
1783
1784
  if (!s) throw new Error("no memoMethod provided to constructor");
1784
- let { context: i2, status: n, forceRefresh: o, ...h } = e;
1785
+ let { context: i2, status: n, forceRefresh: o, ...a } = e;
1785
1786
  n && o && (n.forceRefresh = true);
1786
- let a = this.#K(t, h), l = o || a === void 0;
1787
- if (n && (n.memo = l ? "miss" : "hit", l || (n.value = a)), !l) return a;
1788
- let c = s(t, a, { options: h, context: i2 });
1789
- return n && (n.value = c), this.#z(t, c, h), c;
1787
+ let h = this.#K(t, a), l = o || h === void 0;
1788
+ if (n && (n.memo = l ? "miss" : "hit", l || (n.value = h)), !l) return h;
1789
+ let c = s(t, h, { options: a, context: i2 });
1790
+ return n && (n.value = c), this.#z(t, c, a), c;
1790
1791
  }
1791
1792
  get(t, e = {}) {
1792
1793
  let { status: s = R.hasSubscribers ? {} : void 0 } = e;
@@ -1795,13 +1796,13 @@ var init_index_min = __esm({
1795
1796
  return s && (i2 !== void 0 && (s.value = i2), R.hasSubscribers && R.publish(s)), i2;
1796
1797
  }
1797
1798
  #K(t, e = {}) {
1798
- let { allowStale: s = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = e, h = this.#a.get(t);
1799
- if (h === void 0) {
1799
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = e, a = this.#a.get(t);
1800
+ if (a === void 0) {
1800
1801
  o && (o.get = "miss");
1801
1802
  return;
1802
1803
  }
1803
- let a = this.#n[h], l = this.#u(a);
1804
- return o && this.#D(o, h), this.#A(h) ? l ? (o && (o.get = "stale-fetching"), s && a.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), a.__staleWhileFetching) : void 0) : (n || this.#j(t, "expire"), o && (o.get = "stale"), s ? (o && (o.returnedStale = true), a) : void 0) : (o && (o.get = l ? "fetching" : "hit"), this.#X(h), i2 && this.#R(h), l ? a.__staleWhileFetching : a);
1804
+ let h = this.#n[a], l = this.#u(h);
1805
+ return o && this.#D(o, a), this.#A(a) ? l ? (o && (o.get = "stale-fetching"), s && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#j(t, "expire"), o && (o.get = "stale"), s ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = l ? "fetching" : "hit"), this.#X(a), i2 && this.#R(a), l ? h.__staleWhileFetching : h);
1805
1806
  }
1806
1807
  #Y(t, e) {
1807
1808
  this.#x[e] = t, this.#w[t] = e;
@@ -1826,8 +1827,8 @@ var init_index_min = __esm({
1826
1827
  else {
1827
1828
  let o = this.#x[i2];
1828
1829
  this.#w[o] = this.#w[i2];
1829
- let h = this.#w[i2];
1830
- this.#x[h] = this.#x[i2];
1830
+ let a = this.#w[i2];
1831
+ this.#x[a] = this.#x[i2];
1831
1832
  }
1832
1833
  this.#h--, this.#v.push(i2);
1833
1834
  }
@@ -1842,7 +1843,7 @@ var init_index_min = __esm({
1842
1843
  return this.#Z("delete");
1843
1844
  }
1844
1845
  #Z(t) {
1845
- for (let e of this.#F({ allowStale: true })) {
1846
+ for (let e of this.#T({ allowStale: true })) {
1846
1847
  let s = this.#n[e];
1847
1848
  if (this.#u(s)) s.__abortController.abort(new Error("deleted"));
1848
1849
  else {
@@ -1880,7 +1881,7 @@ var init_index_min = __esm({
1880
1881
  yt = /* @__PURE__ */ Symbol("paused");
1881
1882
  nt = /* @__PURE__ */ Symbol("resume");
1882
1883
  C = /* @__PURE__ */ Symbol("buffer");
1883
- F = /* @__PURE__ */ Symbol("pipes");
1884
+ T = /* @__PURE__ */ Symbol("pipes");
1884
1885
  A = /* @__PURE__ */ Symbol("bufferLength");
1885
1886
  ye = /* @__PURE__ */ Symbol("bufferPush");
1886
1887
  Wt = /* @__PURE__ */ Symbol("bufferShift");
@@ -1899,8 +1900,8 @@ var init_index_min = __esm({
1899
1900
  vt = (r7) => Promise.resolve().then(r7);
1900
1901
  Ri = (r7) => r7();
1901
1902
  Oi = (r7) => r7 === "end" || r7 === "finish" || r7 === "prefinish";
1902
- Ti = (r7) => r7 instanceof ArrayBuffer || !!r7 && typeof r7 == "object" && r7.constructor && r7.constructor.name === "ArrayBuffer" && r7.byteLength >= 0;
1903
- Fi = (r7) => !Buffer.isBuffer(r7) && ArrayBuffer.isView(r7);
1903
+ Mi = (r7) => r7 instanceof ArrayBuffer || !!r7 && typeof r7 == "object" && r7.constructor && r7.constructor.name === "ArrayBuffer" && r7.byteLength >= 0;
1904
+ Ti = (r7) => !Buffer.isBuffer(r7) && ArrayBuffer.isView(r7);
1904
1905
  Bt = class {
1905
1906
  src;
1906
1907
  dest;
@@ -1926,12 +1927,12 @@ var init_index_min = __esm({
1926
1927
  super(t, e, s), this.proxyErrors = (i2) => this.dest.emit("error", i2), t.on("error", this.proxyErrors);
1927
1928
  }
1928
1929
  };
1929
- Mi = (r7) => !!r7.objectMode;
1930
+ Fi = (r7) => !!r7.objectMode;
1930
1931
  _i = (r7) => !r7.objectMode && !!r7.encoding && r7.encoding !== "buffer";
1931
1932
  Z = class extends Ce {
1932
1933
  [k] = false;
1933
1934
  [yt] = false;
1934
- [F] = [];
1935
+ [T] = [];
1935
1936
  [C] = [];
1936
1937
  [O];
1937
1938
  [z];
@@ -1953,7 +1954,7 @@ var init_index_min = __esm({
1953
1954
  constructor(...t) {
1954
1955
  let e = t[0] || {};
1955
1956
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
1956
- Mi(e) ? (this[O] = true, this[z] = null) : _i(e) ? (this[z] = e.encoding, this[O] = false) : (this[O] = false, this[z] = null), this[$] = !!e.async, this[it] = this[z] ? new Ei(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[F] });
1957
+ Fi(e) ? (this[O] = true, this[z] = null) : _i(e) ? (this[z] = e.encoding, this[O] = false) : (this[O] = false, this[z] = null), this[$] = !!e.async, this[it] = this[z] ? new Ei(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[T] });
1957
1958
  let { signal: s } = e;
1958
1959
  s && (this[St] = s, s.aborted ? this[Ee]() : s.addEventListener("abort", () => this[Ee]()));
1959
1960
  }
@@ -1996,8 +1997,8 @@ var init_index_min = __esm({
1996
1997
  typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
1997
1998
  let i2 = this[$] ? vt : Ri;
1998
1999
  if (!this[O] && !Buffer.isBuffer(t)) {
1999
- if (Fi(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
2000
- else if (Ti(t)) t = Buffer.from(t);
2000
+ if (Ti(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
2001
+ else if (Mi(t)) t = Buffer.from(t);
2001
2002
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
2002
2003
  }
2003
2004
  return this[O] ? (this[k] && this[A] !== 0 && this[jt](true), this[k] ? this.emit("data", t) : this[ye](t), this[A] !== 0 && this.emit("readable"), s && i2(s), this[k]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[it]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[it].write(t)), this[k] && this[A] !== 0 && this[jt](true), this[k] ? this.emit("data", t) : this[ye](t), this[A] !== 0 && this.emit("readable"), s && i2(s), this[k]) : (this[A] !== 0 && this.emit("readable"), s && i2(s), this[k]);
@@ -2021,7 +2022,7 @@ var init_index_min = __esm({
2021
2022
  return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = true, this.writable = false, (this[k] || !this[yt]) && this[H](), this;
2022
2023
  }
2023
2024
  [nt]() {
2024
- this[E] || (!this[Q] && !this[F].length && (this[_] = true), this[yt] = false, this[k] = true, this.emit("resume"), this[C].length ? this[jt]() : this[G] ? this[H]() : this.emit("drain"));
2025
+ this[E] || (!this[Q] && !this[T].length && (this[_] = true), this[yt] = false, this[k] = true, this.emit("resume"), this[C].length ? this[jt]() : this[G] ? this[H]() : this.emit("drain"));
2025
2026
  }
2026
2027
  resume() {
2027
2028
  return this[nt]();
@@ -2057,18 +2058,18 @@ var init_index_min = __esm({
2057
2058
  if (this[E]) return t;
2058
2059
  this[_] = false;
2059
2060
  let s = this[Y];
2060
- return e = e || {}, t === os.stdout || t === os.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F].push(e.proxyErrors ? new ke(this, t, e) : new Bt(this, t, e)), this[$] ? vt(() => this[nt]()) : this[nt]()), t;
2061
+ return e = e || {}, t === os.stdout || t === os.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[T].push(e.proxyErrors ? new ke(this, t, e) : new Bt(this, t, e)), this[$] ? vt(() => this[nt]()) : this[nt]()), t;
2061
2062
  }
2062
2063
  unpipe(t) {
2063
- let e = this[F].find((s) => s.dest === t);
2064
- e && (this[F].length === 1 ? (this[k] && this[Q] === 0 && (this[k] = false), this[F] = []) : this[F].splice(this[F].indexOf(e), 1), e.unpipe());
2064
+ let e = this[T].find((s) => s.dest === t);
2065
+ e && (this[T].length === 1 ? (this[k] && this[Q] === 0 && (this[k] = false), this[T] = []) : this[T].splice(this[T].indexOf(e), 1), e.unpipe());
2065
2066
  }
2066
2067
  addListener(t, e) {
2067
2068
  return this.on(t, e);
2068
2069
  }
2069
2070
  on(t, e) {
2070
2071
  let s = super.on(t, e);
2071
- if (t === "data") this[_] = false, this[Q]++, !this[F].length && !this[k] && this[nt]();
2072
+ if (t === "data") this[_] = false, this[Q]++, !this[T].length && !this[k] && this[nt]();
2072
2073
  else if (t === "readable" && this[A] !== 0) super.emit("readable");
2073
2074
  else if (Oi(t) && this[Y]) super.emit(t), this.removeAllListeners(t);
2074
2075
  else if (t === "error" && this[bt]) {
@@ -2082,11 +2083,11 @@ var init_index_min = __esm({
2082
2083
  }
2083
2084
  off(t, e) {
2084
2085
  let s = super.off(t, e);
2085
- return t === "data" && (this[Q] = this.listeners("data").length, this[Q] === 0 && !this[_] && !this[F].length && (this[k] = false)), s;
2086
+ return t === "data" && (this[Q] = this.listeners("data").length, this[Q] === 0 && !this[_] && !this[T].length && (this[k] = false)), s;
2086
2087
  }
2087
2088
  removeAllListeners(t) {
2088
2089
  let e = super.removeAllListeners(t);
2089
- return (t === "data" || t === void 0) && (this[Q] = 0, !this[_] && !this[F].length && (this[k] = false)), e;
2090
+ return (t === "data" || t === void 0) && (this[Q] = 0, !this[_] && !this[T].length && (this[k] = false)), e;
2090
2091
  }
2091
2092
  get emittedEnd() {
2092
2093
  return this[Y];
@@ -2118,7 +2119,7 @@ var init_index_min = __esm({
2118
2119
  return this[H](), i2;
2119
2120
  }
2120
2121
  [ve](t) {
2121
- for (let s of this[F]) s.dest.write(t) === false && this.pause();
2122
+ for (let s of this[T]) s.dest.write(t) === false && this.pause();
2122
2123
  let e = this[_] ? false : super.emit("data", t);
2123
2124
  return this[H](), e;
2124
2125
  }
@@ -2129,11 +2130,11 @@ var init_index_min = __esm({
2129
2130
  if (this[it]) {
2130
2131
  let e = this[it].end();
2131
2132
  if (e) {
2132
- for (let s of this[F]) s.dest.write(e);
2133
+ for (let s of this[T]) s.dest.write(e);
2133
2134
  this[_] || super.emit("data", e);
2134
2135
  }
2135
2136
  }
2136
- for (let e of this[F]) e.end();
2137
+ for (let e of this[T]) e.end();
2137
2138
  let t = super.emit("end");
2138
2139
  return this.removeAllListeners("end"), t;
2139
2140
  }
@@ -2163,15 +2164,15 @@ var init_index_min = __esm({
2163
2164
  let i2 = this.read();
2164
2165
  if (i2 !== null) return Promise.resolve({ done: false, value: i2 });
2165
2166
  if (this[G]) return e();
2166
- let n, o, h = (f) => {
2167
- this.off("data", a), this.off("end", l), this.off(E, c), e(), o(f);
2168
- }, a = (f) => {
2169
- this.off("error", h), this.off("end", l), this.off(E, c), this.pause(), n({ value: f, done: !!this[G] });
2167
+ let n, o, a = (f) => {
2168
+ this.off("data", h), this.off("end", l), this.off(E, c), e(), o(f);
2169
+ }, h = (f) => {
2170
+ this.off("error", a), this.off("end", l), this.off(E, c), this.pause(), n({ value: f, done: !!this[G] });
2170
2171
  }, l = () => {
2171
- this.off("error", h), this.off("data", a), this.off(E, c), e(), n({ done: true, value: void 0 });
2172
- }, c = () => h(new Error("stream destroyed"));
2173
- return new Promise((f, m) => {
2174
- o = m, n = f, this.once(E, c), this.once("error", h), this.once("end", l), this.once("data", a);
2172
+ this.off("error", a), this.off("data", h), this.off(E, c), e(), n({ done: true, value: void 0 });
2173
+ }, c = () => a(new Error("stream destroyed"));
2174
+ return new Promise((f, p) => {
2175
+ o = p, n = f, this.once(E, c), this.once("error", a), this.once("end", l), this.once("data", h);
2175
2176
  });
2176
2177
  }, throw: e, return: e, [Symbol.asyncIterator]() {
2177
2178
  return this;
@@ -2249,13 +2250,13 @@ var init_index_min = __esm({
2249
2250
  super({ max: 256 });
2250
2251
  }
2251
2252
  };
2252
- Te = class extends wt {
2253
+ Me = class extends wt {
2253
2254
  constructor(t = 16 * 1024) {
2254
2255
  super({ maxSize: t, sizeCalculation: (e) => e.length + 1 });
2255
2256
  }
2256
2257
  };
2257
2258
  xs = /* @__PURE__ */ Symbol("PathScurry setAsCwd");
2258
- T = class {
2259
+ M = class {
2259
2260
  name;
2260
2261
  root;
2261
2262
  roots;
@@ -2342,7 +2343,7 @@ var init_index_min = __esm({
2342
2343
  #C;
2343
2344
  #O;
2344
2345
  #s;
2345
- #M;
2346
+ #F;
2346
2347
  #_;
2347
2348
  #R;
2348
2349
  get parentPath() {
@@ -2351,8 +2352,8 @@ var init_index_min = __esm({
2351
2352
  get path() {
2352
2353
  return this.parentPath;
2353
2354
  }
2354
- constructor(t, e = P, s, i2, n, o, h) {
2355
- this.name = t, this.#E = n ? Ut(t) : Ct(t), this.#s = e & Qi, this.nocase = n, this.roots = i2, this.root = s || this, this.#M = o, this.#g = h.fullpath, this.#C = h.relative, this.#O = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = gs(h.fs);
2355
+ constructor(t, e = P, s, i2, n, o, a) {
2356
+ this.name = t, this.#E = n ? Ut(t) : Ct(t), this.#s = e & Qi, this.nocase = n, this.roots = i2, this.root = s || this, this.#F = o, this.#g = a.fullpath, this.#C = a.relative, this.#O = a.relativePosix, this.parent = a.parent, this.parent ? this.#t = this.parent.#t : this.#t = gs(a.fs);
2356
2357
  }
2357
2358
  get fs() {
2358
2359
  return this.#t;
@@ -2361,7 +2362,7 @@ var init_index_min = __esm({
2361
2362
  return this.#k !== void 0 ? this.#k : this.parent ? this.#k = this.parent.depth() + 1 : this.#k = 0;
2362
2363
  }
2363
2364
  childrenCache() {
2364
- return this.#M;
2365
+ return this.#F;
2365
2366
  }
2366
2367
  resolve(t) {
2367
2368
  if (!t) return this;
@@ -2374,18 +2375,18 @@ var init_index_min = __esm({
2374
2375
  return e;
2375
2376
  }
2376
2377
  children() {
2377
- let t = this.#M.get(this);
2378
+ let t = this.#F.get(this);
2378
2379
  if (t) return t;
2379
2380
  let e = Object.assign([], { provisional: 0 });
2380
- return this.#M.set(this, e), this.#s &= ~Ae, e;
2381
+ return this.#F.set(this, e), this.#s &= ~Ae, e;
2381
2382
  }
2382
2383
  child(t, e) {
2383
2384
  if (t === "" || t === ".") return this;
2384
2385
  if (t === "..") return this.parent || this;
2385
2386
  let s = this.children(), i2 = this.nocase ? Ut(t) : Ct(t);
2386
- for (let a of s) if (a.#E === i2) return a;
2387
- let n = this.parent ? this.sep : "", o = this.#g ? this.#g + n + t : void 0, h = this.newChild(t, P, { ...e, parent: this, fullpath: o });
2388
- return this.canReaddir() || (h.#s |= L), s.push(h), h;
2387
+ for (let h of s) if (h.#E === i2) return h;
2388
+ let n = this.parent ? this.sep : "", o = this.#g ? this.#g + n + t : void 0, a = this.newChild(t, P, { ...e, parent: this, fullpath: o });
2389
+ return this.canReaddir() || (a.#s |= L), s.push(a), a;
2389
2390
  }
2390
2391
  relative() {
2391
2392
  if (this.isCWD) return "";
@@ -2486,7 +2487,7 @@ var init_index_min = __esm({
2486
2487
  let e = await this.#t.promises.readlink(this.fullpath()), s = (await this.parent.realpath())?.resolve(e);
2487
2488
  if (s) return this.#_ = s;
2488
2489
  } catch (e) {
2489
- this.#F(e.code);
2490
+ this.#T(e.code);
2490
2491
  return;
2491
2492
  }
2492
2493
  }
@@ -2497,7 +2498,7 @@ var init_index_min = __esm({
2497
2498
  let e = this.#t.readlinkSync(this.fullpath()), s = this.parent.realpathSync()?.resolve(e);
2498
2499
  if (s) return this.#_ = s;
2499
2500
  } catch (e) {
2500
- this.#F(e.code);
2501
+ this.#T(e.code);
2501
2502
  return;
2502
2503
  }
2503
2504
  }
@@ -2527,10 +2528,10 @@ var init_index_min = __esm({
2527
2528
  #$(t = "") {
2528
2529
  t === "ENOTDIR" || t === "EPERM" ? this.#N() : t === "ENOENT" ? this.#A() : this.children().provisional = 0;
2529
2530
  }
2530
- #T(t = "") {
2531
+ #M(t = "") {
2531
2532
  t === "ENOTDIR" ? this.parent.#N() : t === "ENOENT" && this.#A();
2532
2533
  }
2533
- #F(t = "") {
2534
+ #T(t = "") {
2534
2535
  let e = this.#s;
2535
2536
  e |= It, t === "ENOENT" && (e |= L), (t === "EINVAL" || t === "UNKNOWN") && (e &= xt), this.#s = e, t === "ENOTDIR" && this.parent && this.parent.#N();
2536
2537
  }
@@ -2555,19 +2556,19 @@ var init_index_min = __esm({
2555
2556
  if ((this.#s & L) === 0) try {
2556
2557
  return this.#H(await this.#t.promises.lstat(this.fullpath())), this;
2557
2558
  } catch (t) {
2558
- this.#T(t.code);
2559
+ this.#M(t.code);
2559
2560
  }
2560
2561
  }
2561
2562
  lstatSync() {
2562
2563
  if ((this.#s & L) === 0) try {
2563
2564
  return this.#H(this.#t.lstatSync(this.fullpath())), this;
2564
2565
  } catch (t) {
2565
- this.#T(t.code);
2566
+ this.#M(t.code);
2566
2567
  }
2567
2568
  }
2568
2569
  #H(t) {
2569
- let { atime: e, atimeMs: s, birthtime: i2, birthtimeMs: n, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: c, gid: f, ino: m, mode: d, mtime: g, mtimeMs: u, nlink: w, rdev: p, size: b, uid: v } = t;
2570
- this.#b = e, this.#l = s, this.#y = i2, this.#x = n, this.#p = o, this.#a = h, this.#v = a, this.#w = l, this.#i = c, this.#d = f, this.#h = m, this.#e = d, this.#f = g, this.#n = u, this.#o = w, this.#c = p, this.#m = b, this.#r = v;
2570
+ let { atime: e, atimeMs: s, birthtime: i2, birthtimeMs: n, blksize: o, blocks: a, ctime: h, ctimeMs: l, dev: c, gid: f, ino: p, mode: d, mtime: g, mtimeMs: u, nlink: w, rdev: m, size: b, uid: v } = t;
2571
+ this.#b = e, this.#l = s, this.#y = i2, this.#x = n, this.#p = o, this.#a = a, this.#v = h, this.#w = l, this.#i = c, this.#d = f, this.#h = p, this.#e = d, this.#f = g, this.#n = u, this.#o = w, this.#c = m, this.#m = b, this.#r = v;
2571
2572
  let S = Re(t);
2572
2573
  this.#s = this.#s & xt | S | us, S !== P && S !== B && S !== tt && (this.#s |= kt);
2573
2574
  }
@@ -2595,7 +2596,7 @@ var init_index_min = __esm({
2595
2596
  this.#t.readdir(i2, { withFileTypes: true }, (n, o) => {
2596
2597
  if (n) this.#$(n.code), s.provisional = 0;
2597
2598
  else {
2598
- for (let h of o) this.#B(h, s);
2599
+ for (let a of o) this.#B(a, s);
2599
2600
  this.#W(s);
2600
2601
  }
2601
2602
  this.#q(s.slice(0, s.provisional));
@@ -2669,11 +2670,11 @@ var init_index_min = __esm({
2669
2670
  for (i2 = t; i2 && i2.parent && !e.has(i2); ) i2.#C = void 0, i2.#O = void 0, i2 = i2.parent;
2670
2671
  }
2671
2672
  };
2672
- qt = class r extends T {
2673
+ qt = class r extends M {
2673
2674
  sep = "\\";
2674
2675
  splitSep = Ji;
2675
- constructor(t, e = P, s, i2, n, o, h) {
2676
- super(t, e, s, i2, n, o, h);
2676
+ constructor(t, e = P, s, i2, n, o, a) {
2677
+ super(t, e, s, i2, n, o, a);
2677
2678
  }
2678
2679
  newChild(t, e = P, s = {}) {
2679
2680
  return new r(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
@@ -2690,11 +2691,11 @@ var init_index_min = __esm({
2690
2691
  return fs(t.toUpperCase()) === e;
2691
2692
  }
2692
2693
  };
2693
- Kt = class r2 extends T {
2694
+ Kt = class r2 extends M {
2694
2695
  splitSep = "/";
2695
2696
  sep = "/";
2696
- constructor(t, e = P, s, i2, n, o, h) {
2697
- super(t, e, s, i2, n, o, h);
2697
+ constructor(t, e = P, s, i2, n, o, a) {
2698
+ super(t, e, s, i2, n, o, a);
2698
2699
  }
2699
2700
  getRootString(t) {
2700
2701
  return t.startsWith("/") ? "/" : "";
@@ -2718,15 +2719,15 @@ var init_index_min = __esm({
2718
2719
  #o;
2719
2720
  constructor(t = process.cwd(), e, s, { nocase: i2, childrenCacheSize: n = 16 * 1024, fs: o = Et } = {}) {
2720
2721
  this.#o = gs(o), (t instanceof URL || t.startsWith("file://")) && (t = Ni(t));
2721
- let h = e.resolve(t);
2722
- this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Ht(), this.#i = new Ht(), this.#e = new Te(n);
2723
- let a = h.substring(this.rootPath.length).split(s);
2724
- if (a.length === 1 && !a[0] && a.pop(), i2 === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
2722
+ let a = e.resolve(t);
2723
+ this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(a), this.#t = new Ht(), this.#i = new Ht(), this.#e = new Me(n);
2724
+ let h = a.substring(this.rootPath.length).split(s);
2725
+ if (h.length === 1 && !h[0] && h.pop(), i2 === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
2725
2726
  this.nocase = i2, this.root = this.newRoot(this.#o), this.roots[this.rootPath] = this.root;
2726
- let l = this.root, c = a.length - 1, f = e.sep, m = this.rootPath, d = false;
2727
- for (let g of a) {
2727
+ let l = this.root, c = h.length - 1, f = e.sep, p = this.rootPath, d = false;
2728
+ for (let g of h) {
2728
2729
  let u = c--;
2729
- l = l.child(g, { relative: new Array(u).fill("..").join(f), relativePosix: new Array(u).fill("..").join("/"), fullpath: m += (d ? "" : f) + g }), d = true;
2730
+ l = l.child(g, { relative: new Array(u).fill("..").join(f), relativePosix: new Array(u).fill("..").join("/"), fullpath: p += (d ? "" : f) + g }), d = true;
2730
2731
  }
2731
2732
  this.cwd = l;
2732
2733
  }
@@ -2771,7 +2772,7 @@ var init_index_min = __esm({
2771
2772
  return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
2772
2773
  }
2773
2774
  async readdir(t = this.cwd, e = { withFileTypes: true }) {
2774
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2775
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2775
2776
  let { withFileTypes: s } = e;
2776
2777
  if (t.canReaddir()) {
2777
2778
  let i2 = await t.readdir();
@@ -2779,7 +2780,7 @@ var init_index_min = __esm({
2779
2780
  } else return [];
2780
2781
  }
2781
2782
  readdirSync(t = this.cwd, e = { withFileTypes: true }) {
2782
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2783
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2783
2784
  let { withFileTypes: s = true } = e;
2784
2785
  return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i2) => i2.name) : [];
2785
2786
  }
@@ -2790,82 +2791,82 @@ var init_index_min = __esm({
2790
2791
  return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
2791
2792
  }
2792
2793
  async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: false }) {
2793
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t.withFileTypes, t = this.cwd);
2794
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t.withFileTypes, t = this.cwd);
2794
2795
  let s = await t.readlink();
2795
2796
  return e ? s : s?.fullpath();
2796
2797
  }
2797
2798
  readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: false }) {
2798
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t.withFileTypes, t = this.cwd);
2799
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t.withFileTypes, t = this.cwd);
2799
2800
  let s = t.readlinkSync();
2800
2801
  return e ? s : s?.fullpath();
2801
2802
  }
2802
2803
  async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: false }) {
2803
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t.withFileTypes, t = this.cwd);
2804
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t.withFileTypes, t = this.cwd);
2804
2805
  let s = await t.realpath();
2805
2806
  return e ? s : s?.fullpath();
2806
2807
  }
2807
2808
  realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: false }) {
2808
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t.withFileTypes, t = this.cwd);
2809
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t.withFileTypes, t = this.cwd);
2809
2810
  let s = t.realpathSync();
2810
2811
  return e ? s : s?.fullpath();
2811
2812
  }
2812
2813
  async walk(t = this.cwd, e = {}) {
2813
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2814
- let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, h = [];
2815
- (!n || n(t)) && h.push(s ? t : t.fullpath());
2816
- let a = /* @__PURE__ */ new Set(), l = (f, m) => {
2817
- a.add(f), f.readdirCB((d, g) => {
2818
- if (d) return m(d);
2814
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2815
+ let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, a = [];
2816
+ (!n || n(t)) && a.push(s ? t : t.fullpath());
2817
+ let h = /* @__PURE__ */ new Set(), l = (f, p) => {
2818
+ h.add(f), f.readdirCB((d, g) => {
2819
+ if (d) return p(d);
2819
2820
  let u = g.length;
2820
- if (!u) return m();
2821
+ if (!u) return p();
2821
2822
  let w = () => {
2822
- --u === 0 && m();
2823
+ --u === 0 && p();
2823
2824
  };
2824
- for (let p of g) (!n || n(p)) && h.push(s ? p : p.fullpath()), i2 && p.isSymbolicLink() ? p.realpath().then((b) => b?.isUnknown() ? b.lstat() : b).then((b) => b?.shouldWalk(a, o) ? l(b, w) : w()) : p.shouldWalk(a, o) ? l(p, w) : w();
2825
+ for (let m of g) (!n || n(m)) && a.push(s ? m : m.fullpath()), i2 && m.isSymbolicLink() ? m.realpath().then((b) => b?.isUnknown() ? b.lstat() : b).then((b) => b?.shouldWalk(h, o) ? l(b, w) : w()) : m.shouldWalk(h, o) ? l(m, w) : w();
2825
2826
  }, true);
2826
2827
  }, c = t;
2827
- return new Promise((f, m) => {
2828
+ return new Promise((f, p) => {
2828
2829
  l(c, (d) => {
2829
- if (d) return m(d);
2830
- f(h);
2830
+ if (d) return p(d);
2831
+ f(a);
2831
2832
  });
2832
2833
  });
2833
2834
  }
2834
2835
  walkSync(t = this.cwd, e = {}) {
2835
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2836
- let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, h = [];
2837
- (!n || n(t)) && h.push(s ? t : t.fullpath());
2838
- let a = /* @__PURE__ */ new Set([t]);
2839
- for (let l of a) {
2836
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2837
+ let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, a = [];
2838
+ (!n || n(t)) && a.push(s ? t : t.fullpath());
2839
+ let h = /* @__PURE__ */ new Set([t]);
2840
+ for (let l of h) {
2840
2841
  let c = l.readdirSync();
2841
2842
  for (let f of c) {
2842
- (!n || n(f)) && h.push(s ? f : f.fullpath());
2843
- let m = f;
2843
+ (!n || n(f)) && a.push(s ? f : f.fullpath());
2844
+ let p = f;
2844
2845
  if (f.isSymbolicLink()) {
2845
- if (!(i2 && (m = f.realpathSync()))) continue;
2846
- m.isUnknown() && m.lstatSync();
2846
+ if (!(i2 && (p = f.realpathSync()))) continue;
2847
+ p.isUnknown() && p.lstatSync();
2847
2848
  }
2848
- m.shouldWalk(a, o) && a.add(m);
2849
+ p.shouldWalk(h, o) && h.add(p);
2849
2850
  }
2850
2851
  }
2851
- return h;
2852
+ return a;
2852
2853
  }
2853
2854
  [Symbol.asyncIterator]() {
2854
2855
  return this.iterate();
2855
2856
  }
2856
2857
  iterate(t = this.cwd, e = {}) {
2857
- return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
2858
+ return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
2858
2859
  }
2859
2860
  [Symbol.iterator]() {
2860
2861
  return this.iterateSync();
2861
2862
  }
2862
2863
  *iterateSync(t = this.cwd, e = {}) {
2863
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2864
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2864
2865
  let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e;
2865
2866
  (!n || n(t)) && (yield s ? t : t.fullpath());
2866
- let h = /* @__PURE__ */ new Set([t]);
2867
- for (let a of h) {
2868
- let l = a.readdirSync();
2867
+ let a = /* @__PURE__ */ new Set([t]);
2868
+ for (let h of a) {
2869
+ let l = h.readdirSync();
2869
2870
  for (let c of l) {
2870
2871
  (!n || n(c)) && (yield s ? c : c.fullpath());
2871
2872
  let f = c;
@@ -2873,61 +2874,61 @@ var init_index_min = __esm({
2873
2874
  if (!(i2 && (f = c.realpathSync()))) continue;
2874
2875
  f.isUnknown() && f.lstatSync();
2875
2876
  }
2876
- f.shouldWalk(h, o) && h.add(f);
2877
+ f.shouldWalk(a, o) && a.add(f);
2877
2878
  }
2878
2879
  }
2879
2880
  }
2880
2881
  stream(t = this.cwd, e = {}) {
2881
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2882
- let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, h = new Z({ objectMode: true });
2883
- (!n || n(t)) && h.write(s ? t : t.fullpath());
2884
- let a = /* @__PURE__ */ new Set(), l = [t], c = 0, f = () => {
2885
- let m = false;
2886
- for (; !m; ) {
2882
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2883
+ let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, a = new Z({ objectMode: true });
2884
+ (!n || n(t)) && a.write(s ? t : t.fullpath());
2885
+ let h = /* @__PURE__ */ new Set(), l = [t], c = 0, f = () => {
2886
+ let p = false;
2887
+ for (; !p; ) {
2887
2888
  let d = l.shift();
2888
2889
  if (!d) {
2889
- c === 0 && h.end();
2890
+ c === 0 && a.end();
2890
2891
  return;
2891
2892
  }
2892
- c++, a.add(d);
2893
- let g = (w, p, b = false) => {
2894
- if (w) return h.emit("error", w);
2893
+ c++, h.add(d);
2894
+ let g = (w, m, b = false) => {
2895
+ if (w) return a.emit("error", w);
2895
2896
  if (i2 && !b) {
2896
2897
  let v = [];
2897
- for (let S of p) S.isSymbolicLink() && v.push(S.realpath().then((y) => y?.isUnknown() ? y.lstat() : y));
2898
+ for (let S of m) S.isSymbolicLink() && v.push(S.realpath().then((y) => y?.isUnknown() ? y.lstat() : y));
2898
2899
  if (v.length) {
2899
- Promise.all(v).then(() => g(null, p, true));
2900
+ Promise.all(v).then(() => g(null, m, true));
2900
2901
  return;
2901
2902
  }
2902
2903
  }
2903
- for (let v of p) v && (!n || n(v)) && (h.write(s ? v : v.fullpath()) || (m = true));
2904
+ for (let v of m) v && (!n || n(v)) && (a.write(s ? v : v.fullpath()) || (p = true));
2904
2905
  c--;
2905
- for (let v of p) {
2906
+ for (let v of m) {
2906
2907
  let S = v.realpathCached() || v;
2907
- S.shouldWalk(a, o) && l.push(S);
2908
+ S.shouldWalk(h, o) && l.push(S);
2908
2909
  }
2909
- m && !h.flowing ? h.once("drain", f) : u || f();
2910
+ p && !a.flowing ? a.once("drain", f) : u || f();
2910
2911
  }, u = true;
2911
2912
  d.readdirCB(g, true), u = false;
2912
2913
  }
2913
2914
  };
2914
- return f(), h;
2915
+ return f(), a;
2915
2916
  }
2916
2917
  streamSync(t = this.cwd, e = {}) {
2917
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof T || (e = t, t = this.cwd);
2918
- let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, h = new Z({ objectMode: true }), a = /* @__PURE__ */ new Set();
2919
- (!n || n(t)) && h.write(s ? t : t.fullpath());
2918
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof M || (e = t, t = this.cwd);
2919
+ let { withFileTypes: s = true, follow: i2 = false, filter: n, walkFilter: o } = e, a = new Z({ objectMode: true }), h = /* @__PURE__ */ new Set();
2920
+ (!n || n(t)) && a.write(s ? t : t.fullpath());
2920
2921
  let l = [t], c = 0, f = () => {
2921
- let m = false;
2922
- for (; !m; ) {
2922
+ let p = false;
2923
+ for (; !p; ) {
2923
2924
  let d = l.shift();
2924
2925
  if (!d) {
2925
- c === 0 && h.end();
2926
+ c === 0 && a.end();
2926
2927
  return;
2927
2928
  }
2928
- c++, a.add(d);
2929
+ c++, h.add(d);
2929
2930
  let g = d.readdirSync();
2930
- for (let u of g) (!n || n(u)) && (h.write(s ? u : u.fullpath()) || (m = true));
2931
+ for (let u of g) (!n || n(u)) && (a.write(s ? u : u.fullpath()) || (p = true));
2931
2932
  c--;
2932
2933
  for (let u of g) {
2933
2934
  let w = u;
@@ -2935,12 +2936,12 @@ var init_index_min = __esm({
2935
2936
  if (!(i2 && (w = u.realpathSync()))) continue;
2936
2937
  w.isUnknown() && w.lstatSync();
2937
2938
  }
2938
- w.shouldWalk(a, o) && l.push(w);
2939
+ w.shouldWalk(h, o) && l.push(w);
2939
2940
  }
2940
2941
  }
2941
- m && !h.flowing && h.once("drain", f);
2942
+ p && !a.flowing && a.once("drain", f);
2942
2943
  };
2943
- return f(), h;
2944
+ return f(), a;
2944
2945
  }
2945
2946
  chdir(t = this.cwd) {
2946
2947
  let e = this.cwd;
@@ -3010,15 +3011,15 @@ var init_index_min = __esm({
3010
3011
  if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
3011
3012
  if (this.#t = t, this.#i = e, this.#e = s, this.#o = i2, this.#e === 0) {
3012
3013
  if (this.isUNC()) {
3013
- let n = this.#a() ? 6 : 4, o = this.#t.slice(0, n), h = this.#i.slice(0, n), a = this.#t.slice(n), l = this.#i.slice(n);
3014
- a[0] === "" && (a.shift(), l.shift());
3015
- let c = [...o, ""].join("/"), f = [...h, ""].join("/");
3016
- this.#t = [c, ...a], this.#i = [f, ...l], this.length = this.#t.length;
3014
+ let n = this.#a() ? 6 : 4, o = this.#t.slice(0, n), a = this.#i.slice(0, n), h = this.#t.slice(n), l = this.#i.slice(n);
3015
+ h[0] === "" && (h.shift(), l.shift());
3016
+ let c = [...o, ""].join("/"), f = [...a, ""].join("/");
3017
+ this.#t = [c, ...h], this.#i = [f, ...l], this.length = this.#t.length;
3017
3018
  } else if (this.isDrive() || this.isAbsolute()) {
3018
- let [n, ...o] = this.#t, [h, ...a] = this.#i;
3019
- o[0] === "" && (o.shift(), a.shift());
3020
- let l = `${n}/`, c = `${h}/`;
3021
- this.#t = [l, ...o], this.#i = [c, ...a], this.length = this.#t.length;
3019
+ let [n, ...o] = this.#t, [a, ...h] = this.#i;
3020
+ o[0] === "" && (o.shift(), h.shift());
3021
+ let l = `${n}/`, c = `${a}/`;
3022
+ this.#t = [l, ...o], this.#i = [c, ...h], this.length = this.#t.length;
3022
3023
  }
3023
3024
  }
3024
3025
  }
@@ -3082,10 +3083,10 @@ var init_index_min = __esm({
3082
3083
  platform;
3083
3084
  mmopts;
3084
3085
  slashRoot;
3085
- constructor(t, { nobrace: e, nocase: s, noext: i2, noglobstar: n, normalize: o, platform: h = nn, root: a, windowsPathsNoEscape: l, allowWindowsEscape: c }, f) {
3086
- this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = h, l = !!l || c === false, this.mmopts = { dot: true, nobrace: e, nocase: s, noext: i2, noglobstar: n, normalize: o, optimizationLevel: 2, platform: h, nocomment: true, nonegate: true, windowsPathsNoEscape: l };
3087
- let m = f?.resolve(a ?? "/").fullpath() ?? "/";
3088
- this.slashRoot = K(m.replace(/\\/g, "/").replace(/\/$/, ""), { windowsPathsNoEscape: l });
3086
+ constructor(t, { nobrace: e, nocase: s, noext: i2, noglobstar: n, normalize: o, platform: a = nn, root: h, windowsPathsNoEscape: l, allowWindowsEscape: c }, f) {
3087
+ this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = a, l = !!l || c === false, this.mmopts = { dot: true, nobrace: e, nocase: s, noext: i2, noglobstar: n, normalize: o, optimizationLevel: 2, platform: a, nocomment: true, nonegate: true, windowsPathsNoEscape: l };
3088
+ let p = f?.resolve(h ?? "/").fullpath() ?? "/";
3089
+ this.slashRoot = K(p.replace(/\\/g, "/").replace(/\/$/, ""), { windowsPathsNoEscape: l });
3089
3090
  for (let d of t) this.add(d);
3090
3091
  }
3091
3092
  add(t) {
@@ -3094,8 +3095,8 @@ var init_index_min = __esm({
3094
3095
  let i2 = e.set[s], n = e.globParts[s];
3095
3096
  if (!i2 || !n) throw new Error("invalid pattern object");
3096
3097
  for (; i2[0] === "." && n[0] === "."; ) i2.shift(), n.shift();
3097
- let o = new ht(i2, n, 0, this.platform), h = o.root() === "/" ? `${this.slashRoot}/${o.rest()?.globString() ?? ""}` : o.globString(), a = new D(h, this.mmopts), l = n[n.length - 1] === "**", c = o.isAbsolute();
3098
- c ? this.absolute.push(a) : this.relative.push(a), l && (c ? this.absoluteChildren.push(a) : this.relativeChildren.push(a));
3098
+ let o = new ht(i2, n, 0, this.platform), a = o.root() === "/" ? `${this.slashRoot}/${o.rest()?.globString() ?? ""}` : o.globString(), h = new D(a, this.mmopts), l = n[n.length - 1] === "**", c = o.isAbsolute();
3099
+ c ? this.absolute.push(h) : this.relative.push(h), l && (c ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
3099
3100
  }
3100
3101
  }
3101
3102
  ignored(t) {
@@ -3111,7 +3112,7 @@ var init_index_min = __esm({
3111
3112
  return false;
3112
3113
  }
3113
3114
  };
3114
- Fe = class r4 {
3115
+ Te = class r4 {
3115
3116
  parent;
3116
3117
  store;
3117
3118
  constructor(t) {
@@ -3141,7 +3142,7 @@ var init_index_min = __esm({
3141
3142
  this.store.set(t, n === void 0 ? i2 : i2 & n);
3142
3143
  }
3143
3144
  };
3144
- Me = class {
3145
+ Fe = class {
3145
3146
  store = /* @__PURE__ */ new Map();
3146
3147
  add(t, e) {
3147
3148
  if (!t.canReaddir()) return;
@@ -3163,20 +3164,20 @@ var init_index_min = __esm({
3163
3164
  Ot = class r6 {
3164
3165
  hasWalkedCache;
3165
3166
  matches = new Rt();
3166
- subwalks = new Me();
3167
+ subwalks = new Fe();
3167
3168
  patterns;
3168
3169
  follow;
3169
3170
  dot;
3170
3171
  opts;
3171
3172
  constructor(t, e) {
3172
- this.opts = t, this.follow = !!t.follow, this.dot = !!t.dot, this.hasWalkedCache = e ? e.copy() : new Fe();
3173
+ this.opts = t, this.follow = !!t.follow, this.dot = !!t.dot, this.hasWalkedCache = e ? e.copy() : new Te();
3173
3174
  }
3174
3175
  processPatterns(t, e) {
3175
3176
  this.patterns = e;
3176
3177
  let s = e.map((i2) => [t, i2]);
3177
3178
  for (let [i2, n] of s) {
3178
3179
  this.hasWalkedCache.storeWalked(i2, n);
3179
- let o = n.root(), h = n.isAbsolute() && this.opts.absolute !== false;
3180
+ let o = n.root(), a = n.isAbsolute() && this.opts.absolute !== false;
3180
3181
  if (o) {
3181
3182
  i2 = i2.resolve(o === "/" && this.opts.root !== void 0 ? this.opts.root : o);
3182
3183
  let f = n.rest();
@@ -3187,25 +3188,25 @@ var init_index_min = __esm({
3187
3188
  }
3188
3189
  }
3189
3190
  if (i2.isENOENT()) continue;
3190
- let a, l, c = false;
3191
- for (; typeof (a = n.pattern()) == "string" && (l = n.rest()); ) i2 = i2.resolve(a), n = l, c = true;
3192
- if (a = n.pattern(), l = n.rest(), c) {
3191
+ let h, l, c = false;
3192
+ for (; typeof (h = n.pattern()) == "string" && (l = n.rest()); ) i2 = i2.resolve(h), n = l, c = true;
3193
+ if (h = n.pattern(), l = n.rest(), c) {
3193
3194
  if (this.hasWalkedCache.hasWalked(i2, n)) continue;
3194
3195
  this.hasWalkedCache.storeWalked(i2, n);
3195
3196
  }
3196
- if (typeof a == "string") {
3197
- let f = a === ".." || a === "" || a === ".";
3198
- this.matches.add(i2.resolve(a), h, f);
3197
+ if (typeof h == "string") {
3198
+ let f = h === ".." || h === "" || h === ".";
3199
+ this.matches.add(i2.resolve(h), a, f);
3199
3200
  continue;
3200
- } else if (a === x) {
3201
+ } else if (h === x) {
3201
3202
  (!i2.isSymbolicLink() || this.follow || n.checkFollowGlobstar()) && this.subwalks.add(i2, n);
3202
- let f = l?.pattern(), m = l?.rest();
3203
- if (!l || (f === "" || f === ".") && !m) this.matches.add(i2, h, f === "" || f === ".");
3203
+ let f = l?.pattern(), p = l?.rest();
3204
+ if (!l || (f === "" || f === ".") && !p) this.matches.add(i2, a, f === "" || f === ".");
3204
3205
  else if (f === "..") {
3205
3206
  let d = i2.parent || i2;
3206
- m ? this.hasWalkedCache.hasWalked(d, m) || this.subwalks.add(d, m) : this.matches.add(d, h, true);
3207
+ p ? this.hasWalkedCache.hasWalked(d, p) || this.subwalks.add(d, p) : this.matches.add(d, a, true);
3207
3208
  }
3208
- } else typeof a == "object" && this.subwalks.add(i2, n);
3209
+ } else typeof h == "object" && this.subwalks.add(i2, n);
3209
3210
  }
3210
3211
  return this;
3211
3212
  }
@@ -3218,8 +3219,8 @@ var init_index_min = __esm({
3218
3219
  filterEntries(t, e) {
3219
3220
  let s = this.subwalks.get(t), i2 = this.child();
3220
3221
  for (let n of e) for (let o of s) {
3221
- let h = o.isAbsolute(), a = o.pattern(), l = o.rest();
3222
- a === x ? i2.testGlobstar(n, o, l, h) : typeof a == "object" ? i2.testMatcher(n, a, l, h) : i2.testString(n, a, l, h);
3222
+ let a = o.isAbsolute(), h = o.pattern(), l = o.rest();
3223
+ h === x ? i2.testGlobstar(n, o, l, a) : typeof h == "object" ? i2.testMatcher(n, h, l, a) : i2.testString(n, h, l, a);
3223
3224
  }
3224
3225
  return i2;
3225
3226
  }
@@ -3291,8 +3292,8 @@ var init_index_min = __esm({
3291
3292
  } else i2 = t;
3292
3293
  let o = i2.isUnknown() || this.opts.stat ? await i2.lstat() : i2;
3293
3294
  if (this.opts.follow && this.opts.nodir && o?.isSymbolicLink()) {
3294
- let h = await o.realpath();
3295
- h && (h.isUnknown() || this.opts.stat) && await h.lstat();
3295
+ let a = await o.realpath();
3296
+ a && (a.isUnknown() || this.opts.stat) && await a.lstat();
3296
3297
  }
3297
3298
  return this.matchCheckTest(o, e);
3298
3299
  }
@@ -3308,8 +3309,8 @@ var init_index_min = __esm({
3308
3309
  } else i2 = t;
3309
3310
  let o = i2.isUnknown() || this.opts.stat ? i2.lstatSync() : i2;
3310
3311
  if (this.opts.follow && this.opts.nodir && o?.isSymbolicLink()) {
3311
- let h = o.realpathSync();
3312
- h && (h?.isUnknown() || this.opts.stat) && h.lstatSync();
3312
+ let a = o.realpathSync();
3313
+ a && (a?.isUnknown() || this.opts.stat) && a.lstatSync();
3313
3314
  }
3314
3315
  return this.matchCheckTest(o, e);
3315
3316
  }
@@ -3355,22 +3356,22 @@ var init_index_min = __esm({
3355
3356
  let n = 1, o = () => {
3356
3357
  --n === 0 && i2();
3357
3358
  };
3358
- for (let [h, a] of s.matches.store) this.#o(h) || (n++, this.match(h, !!(a & Vt), !!(a & Yt)).then(() => o()));
3359
- for (let h of s.subwalkTargets()) {
3360
- if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3359
+ for (let [a, h] of s.matches.store) this.#o(a) || (n++, this.match(a, !!(h & Vt), !!(h & Yt)).then(() => o()));
3360
+ for (let a of s.subwalkTargets()) {
3361
+ if (this.maxDepth !== 1 / 0 && a.depth() >= this.maxDepth) continue;
3361
3362
  n++;
3362
- let a = h.readdirCached();
3363
- h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, c) => this.walkCB3(h, c, s, o), true);
3363
+ let h = a.readdirCached();
3364
+ a.calledReaddir() ? this.walkCB3(a, h, s, o) : a.readdirCB((l, c) => this.walkCB3(a, c, s, o), true);
3364
3365
  }
3365
3366
  o();
3366
3367
  }
3367
3368
  walkCB3(t, e, s, i2) {
3368
- let n = s.filterEntries(t, e), o = 1, h = () => {
3369
+ let n = s.filterEntries(t, e), o = 1, a = () => {
3369
3370
  --o === 0 && i2();
3370
3371
  };
3371
- for (let [a, l] of n.matches.store) this.#o(a) || (o++, this.match(a, !!(l & Vt), !!(l & Yt)).then(() => h()));
3372
- for (let [a, l] of n.subwalks.entries()) o++, this.walkCB2(a, l, n.child(), h);
3373
- h();
3372
+ for (let [h, l] of n.matches.store) this.#o(h) || (o++, this.match(h, !!(l & Vt), !!(l & Yt)).then(() => a()));
3373
+ for (let [h, l] of n.subwalks.entries()) o++, this.walkCB2(h, l, n.child(), a);
3374
+ a();
3374
3375
  }
3375
3376
  walkCBSync(t, e, s) {
3376
3377
  if (this.signal?.aborted) return s();
@@ -3386,25 +3387,25 @@ var init_index_min = __esm({
3386
3387
  let n = 1, o = () => {
3387
3388
  --n === 0 && i2();
3388
3389
  };
3389
- for (let [h, a] of s.matches.store) this.#o(h) || this.matchSync(h, !!(a & Vt), !!(a & Yt));
3390
- for (let h of s.subwalkTargets()) {
3391
- if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3390
+ for (let [a, h] of s.matches.store) this.#o(a) || this.matchSync(a, !!(h & Vt), !!(h & Yt));
3391
+ for (let a of s.subwalkTargets()) {
3392
+ if (this.maxDepth !== 1 / 0 && a.depth() >= this.maxDepth) continue;
3392
3393
  n++;
3393
- let a = h.readdirSync();
3394
- this.walkCB3Sync(h, a, s, o);
3394
+ let h = a.readdirSync();
3395
+ this.walkCB3Sync(a, h, s, o);
3395
3396
  }
3396
3397
  o();
3397
3398
  }
3398
3399
  walkCB3Sync(t, e, s, i2) {
3399
- let n = s.filterEntries(t, e), o = 1, h = () => {
3400
+ let n = s.filterEntries(t, e), o = 1, a = () => {
3400
3401
  --o === 0 && i2();
3401
3402
  };
3402
- for (let [a, l] of n.matches.store) this.#o(a) || this.matchSync(a, !!(l & Vt), !!(l & Yt));
3403
- for (let [a, l] of n.subwalks.entries()) o++, this.walkCB2Sync(a, l, n.child(), h);
3404
- h();
3403
+ for (let [h, l] of n.matches.store) this.#o(h) || this.matchSync(h, !!(l & Vt), !!(l & Yt));
3404
+ for (let [h, l] of n.subwalks.entries()) o++, this.walkCB2Sync(h, l, n.child(), a);
3405
+ a();
3405
3406
  }
3406
3407
  };
3407
- Tt = class extends Zt {
3408
+ Mt = class extends Zt {
3408
3409
  matches = [];
3409
3410
  constructor(t, e, s) {
3410
3411
  super(t, e, s);
@@ -3427,7 +3428,7 @@ var init_index_min = __esm({
3427
3428
  }), this.matches;
3428
3429
  }
3429
3430
  };
3430
- Ft = class extends Zt {
3431
+ Tt = class extends Zt {
3431
3432
  results;
3432
3433
  constructor(t, e, s) {
3433
3434
  super(t, e, s), this.results = new Z({ signal: this.signal, objectMode: true }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
@@ -3489,24 +3490,24 @@ var init_index_min = __esm({
3489
3490
  this.scurry = new l(this.cwd, { nocase: e.nocase, fs: e.fs });
3490
3491
  }
3491
3492
  this.nocase = this.scurry.nocase;
3492
- let i2 = this.platform === "darwin" || this.platform === "win32", n = { braceExpandMax: 1e4, ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: i2, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape }, o = this.pattern.map((l) => new D(l, n)), [h, a] = o.reduce((l, c) => (l[0].push(...c.set), l[1].push(...c.globParts), l), [[], []]);
3493
- this.patterns = h.map((l, c) => {
3494
- let f = a[c];
3493
+ let i2 = this.platform === "darwin" || this.platform === "win32", n = { braceExpandMax: 1e4, ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: i2, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape }, o = this.pattern.map((l) => new D(l, n)), [a, h] = o.reduce((l, c) => (l[0].push(...c.set), l[1].push(...c.globParts), l), [[], []]);
3494
+ this.patterns = a.map((l, c) => {
3495
+ let f = h[c];
3495
3496
  if (!f) throw new Error("invalid pattern object");
3496
3497
  return new ht(l, f, 0, this.platform);
3497
3498
  });
3498
3499
  }
3499
3500
  async walk() {
3500
- return await new Tt(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walk();
3501
+ return await new Mt(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walk();
3501
3502
  }
3502
3503
  walkSync() {
3503
- return new Tt(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walkSync();
3504
+ return new Mt(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walkSync();
3504
3505
  }
3505
3506
  stream() {
3506
- return new Ft(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).stream();
3507
+ return new Tt(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).stream();
3507
3508
  }
3508
3509
  streamSync() {
3509
- return new Ft(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).streamSync();
3510
+ return new Tt(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).streamSync();
3510
3511
  }
3511
3512
  iterateSync() {
3512
3513
  return this.streamSync()[Symbol.iterator]();
@@ -3817,8 +3818,8 @@ var require_directives = __commonJS({
3817
3818
  if (parts.length < 2)
3818
3819
  return false;
3819
3820
  }
3820
- const [handle, prefix] = parts;
3821
- this.tags[handle] = prefix;
3821
+ const [handle, prefix2] = parts;
3822
+ this.tags[handle] = prefix2;
3822
3823
  return true;
3823
3824
  }
3824
3825
  case "%YAML": {
@@ -3868,10 +3869,10 @@ var require_directives = __commonJS({
3868
3869
  const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/s);
3869
3870
  if (!suffix)
3870
3871
  onError(`The ${source} tag has no suffix`);
3871
- const prefix = this.tags[handle];
3872
- if (prefix) {
3872
+ const prefix2 = this.tags[handle];
3873
+ if (prefix2) {
3873
3874
  try {
3874
- return prefix + decodeURIComponent(suffix);
3875
+ return prefix2 + decodeURIComponent(suffix);
3875
3876
  } catch (error62) {
3876
3877
  onError(String(error62));
3877
3878
  return null;
@@ -3887,9 +3888,9 @@ var require_directives = __commonJS({
3887
3888
  * taking into account current tag prefixes and defaults.
3888
3889
  */
3889
3890
  tagString(tag) {
3890
- for (const [handle, prefix] of Object.entries(this.tags)) {
3891
- if (tag.startsWith(prefix))
3892
- return handle + escapeTagName(tag.substring(prefix.length));
3891
+ for (const [handle, prefix2] of Object.entries(this.tags)) {
3892
+ if (tag.startsWith(prefix2))
3893
+ return handle + escapeTagName(tag.substring(prefix2.length));
3893
3894
  }
3894
3895
  return tag[0] === "!" ? tag : `!<${tag}>`;
3895
3896
  }
@@ -3906,11 +3907,11 @@ var require_directives = __commonJS({
3906
3907
  tagNames = Object.keys(tags);
3907
3908
  } else
3908
3909
  tagNames = [];
3909
- for (const [handle, prefix] of tagEntries) {
3910
- if (handle === "!!" && prefix === "tag:yaml.org,2002:")
3910
+ for (const [handle, prefix2] of tagEntries) {
3911
+ if (handle === "!!" && prefix2 === "tag:yaml.org,2002:")
3911
3912
  continue;
3912
- if (!doc || tagNames.some((tn2) => tn2.startsWith(prefix)))
3913
- lines.push(`%TAG ${handle} ${prefix}`);
3913
+ if (!doc || tagNames.some((tn2) => tn2.startsWith(prefix2)))
3914
+ lines.push(`%TAG ${handle} ${prefix2}`);
3914
3915
  }
3915
3916
  return lines.join("\n");
3916
3917
  }
@@ -3945,14 +3946,14 @@ var require_anchors = __commonJS({
3945
3946
  });
3946
3947
  return anchors;
3947
3948
  }
3948
- function findNewAnchor(prefix, exclude) {
3949
+ function findNewAnchor(prefix2, exclude) {
3949
3950
  for (let i2 = 1; true; ++i2) {
3950
- const name = `${prefix}${i2}`;
3951
+ const name = `${prefix2}${i2}`;
3951
3952
  if (!exclude.has(name))
3952
3953
  return name;
3953
3954
  }
3954
3955
  }
3955
- function createNodeAnchors(doc, prefix) {
3956
+ function createNodeAnchors(doc, prefix2) {
3956
3957
  const aliasObjects = [];
3957
3958
  const sourceObjects = /* @__PURE__ */ new Map();
3958
3959
  let prevAnchors = null;
@@ -3960,7 +3961,7 @@ var require_anchors = __commonJS({
3960
3961
  onAnchor: (source) => {
3961
3962
  aliasObjects.push(source);
3962
3963
  prevAnchors ?? (prevAnchors = anchorNames(doc));
3963
- const anchor2 = findNewAnchor(prefix, prevAnchors);
3964
+ const anchor2 = findNewAnchor(prefix2, prevAnchors);
3964
3965
  prevAnchors.add(anchor2);
3965
3966
  return anchor2;
3966
3967
  },
@@ -5953,10 +5954,10 @@ var require_int = __commonJS({
5953
5954
  var stringifyNumber = require_stringifyNumber();
5954
5955
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
5955
5956
  var intResolve = (str, offset2, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset2), radix);
5956
- function intStringify(node2, radix, prefix) {
5957
+ function intStringify(node2, radix, prefix2) {
5957
5958
  const { value } = node2;
5958
5959
  if (intIdentify(value) && value >= 0)
5959
- return prefix + value.toString(radix);
5960
+ return prefix2 + value.toString(radix);
5960
5961
  return stringifyNumber.stringifyNumber(node2);
5961
5962
  }
5962
5963
  var intOct = {
@@ -6418,11 +6419,11 @@ var require_int2 = __commonJS({
6418
6419
  const n = parseInt(str, radix);
6419
6420
  return sign === "-" ? -1 * n : n;
6420
6421
  }
6421
- function intStringify(node2, radix, prefix) {
6422
+ function intStringify(node2, radix, prefix2) {
6422
6423
  const { value } = node2;
6423
6424
  if (intIdentify(value)) {
6424
6425
  const str = value.toString(radix);
6425
- return value < 0 ? "-" + prefix + str.substr(1) : prefix + str;
6426
+ return value < 0 ? "-" + prefix2 + str.substr(1) : prefix2 + str;
6426
6427
  }
6427
6428
  return stringifyNumber.stringifyNumber(node2);
6428
6429
  }
@@ -11174,9 +11175,9 @@ function parseLink(inner, at3, indexOf) {
11174
11175
  function selectorsOf(parts) {
11175
11176
  const classes = [];
11176
11177
  let id = "";
11177
- for (const [prefix, name] of parts) {
11178
+ for (const [prefix2, name] of parts) {
11178
11179
  if (!name) continue;
11179
- if (prefix === ".") classes.push(name);
11180
+ if (prefix2 === ".") classes.push(name);
11180
11181
  else id = name;
11181
11182
  }
11182
11183
  return withSelectors({}, {
@@ -11693,8 +11694,8 @@ function peg$parse(input2, options) {
11693
11694
  end
11694
11695
  };
11695
11696
  }
11696
- function peg$f40(prefix, name) {
11697
- return [prefix, name];
11697
+ function peg$f40(prefix2, name) {
11698
+ return [prefix2, name];
11698
11699
  }
11699
11700
  function peg$f41(ss2, s, sigil, nameStart, name) {
11700
11701
  const variable = lexeme("variable", location(), {
@@ -16145,12 +16146,12 @@ function scanMarkupTolerant(source, options = {}, completion = false) {
16145
16146
  const { line, column } = position(at3);
16146
16147
  errors.push(new MarkupError(result2.reason, at3, line, column, result2.code, base + result2.end));
16147
16148
  let cut = result2.offset;
16148
- let prefix = attempt(rest.slice(0, cut), base);
16149
- while (!Array.isArray(prefix)) {
16150
- cut = prefix.offset;
16151
- prefix = attempt(rest.slice(0, cut), base);
16149
+ let prefix2 = attempt(rest.slice(0, cut), base);
16150
+ while (!Array.isArray(prefix2)) {
16151
+ cut = prefix2.offset;
16152
+ prefix2 = attempt(rest.slice(0, cut), base);
16152
16153
  }
16153
- for (const token of prefix) tokens2.push(token);
16154
+ for (const token of prefix2) tokens2.push(token);
16154
16155
  damage.push(base + cut);
16155
16156
  if (cut < rest.length) {
16156
16157
  const start = base + cut;
@@ -17095,10 +17096,10 @@ function readCompletion(source, cursor, macros, full, sourceLength = source.leng
17095
17096
  const codeContext = (code, goal, map2, containers) => {
17096
17097
  let position = 0;
17097
17098
  while (position < code.length && map2(position) < cursor) position++;
17098
- const prefix = code.slice(0, position);
17099
- const probe = prefix.length + 1;
17099
+ const prefix2 = code.slice(0, position);
17100
+ const probe = prefix2.length + 1;
17100
17101
  let executable = false;
17101
- lexJs(prefix + " __spindle_cursor__", {
17102
+ lexJs(prefix2 + " __spindle_cursor__", {
17102
17103
  code(_ch, at3) {
17103
17104
  if (at3 >= probe) executable = true;
17104
17105
  },
@@ -17584,9 +17585,9 @@ function shapeSchema(shape) {
17584
17585
  };
17585
17586
  }
17586
17587
  function initializerSyntaxError(expr) {
17587
- const prefix = "return (";
17588
+ const prefix2 = "return (";
17588
17589
  try {
17589
- parse$1(prefix + expr + "\n)", {
17590
+ parse$1(prefix2 + expr + "\n)", {
17590
17591
  ecmaVersion: "latest",
17591
17592
  allowReturnOutsideFunction: true
17592
17593
  });
@@ -18154,14 +18155,14 @@ function factorySpace(effects, ok, type, max) {
18154
18155
  function start(code) {
18155
18156
  if (markdownSpace(code)) {
18156
18157
  effects.enter(type);
18157
- return prefix(code);
18158
+ return prefix2(code);
18158
18159
  }
18159
18160
  return ok(code);
18160
18161
  }
18161
- function prefix(code) {
18162
+ function prefix2(code) {
18162
18163
  if (markdownSpace(code) && size++ < limit) {
18163
18164
  effects.consume(code);
18164
- return prefix;
18165
+ return prefix2;
18165
18166
  }
18166
18167
  effects.exit(type);
18167
18168
  return ok(code);
@@ -18173,15 +18174,15 @@ function factorySpaceMinMax(effects, ok, nok, type, min, max) {
18173
18174
  function start(code) {
18174
18175
  if (max > 0 && markdownSpace(code)) {
18175
18176
  effects.enter(type);
18176
- return prefix(code);
18177
+ return prefix2(code);
18177
18178
  }
18178
18179
  return after(code);
18179
18180
  }
18180
- function prefix(code) {
18181
+ function prefix2(code) {
18181
18182
  if (markdownSpace(code) && size < max) {
18182
18183
  effects.consume(code);
18183
18184
  size++;
18184
- return prefix;
18185
+ return prefix2;
18185
18186
  }
18186
18187
  effects.exit(type);
18187
18188
  return after(code);
@@ -32876,9 +32877,9 @@ function parsePassageHeader(rawLine, lineNumber) {
32876
32877
  const line = withoutCr(rawLine);
32877
32878
  const bomLength = /^\uFEFF*/.exec(line)[0].length;
32878
32879
  const escaped = line.replace(/\\./g, "ec");
32879
- const prefix = new RegExp("^::\\p{White_Space}*", "u").exec(escaped.slice(bomLength));
32880
- if (!prefix) return null;
32881
- const nameStart = bomLength + prefix[0].length;
32880
+ const prefix2 = new RegExp("^::\\p{White_Space}*", "u").exec(escaped.slice(bomLength));
32881
+ if (!prefix2) return null;
32882
+ const nameStart = bomLength + prefix2[0].length;
32882
32883
  const delimiter = /[\[\]{}]/g;
32883
32884
  delimiter.lastIndex = nameStart;
32884
32885
  const first = delimiter.exec(escaped);
@@ -37429,6 +37430,66 @@ var init_esm2 = __esm({
37429
37430
  }
37430
37431
  });
37431
37432
 
37433
+ // node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js
37434
+ var digit, prefix, fixed, nonneg, numericRange;
37435
+ var init_numeric_range = __esm({
37436
+ "node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js"() {
37437
+ digit = (a, b) => a === b ? { t: "lit", ch: String(a) } : { t: "class", re: new RegExp(`^[${a}-${b}]$`) };
37438
+ prefix = (d, alts) => alts.map((s) => [digit(d, d), ...s]);
37439
+ fixed = (a, b) => {
37440
+ if (!a)
37441
+ return [[]];
37442
+ let lo = +a[0];
37443
+ let hi2 = +b[0];
37444
+ const ra = a.slice(1);
37445
+ const rb = b.slice(1);
37446
+ if (lo === hi2)
37447
+ return prefix(lo, fixed(ra, rb));
37448
+ const zeros = "0".repeat(ra.length);
37449
+ const nines = "9".repeat(ra.length);
37450
+ const out = [];
37451
+ if (ra !== zeros)
37452
+ out.push(...prefix(lo++, fixed(ra, nines)));
37453
+ const last2 = rb === nines ? [] : prefix(hi2--, fixed(zeros, rb));
37454
+ if (lo <= hi2) {
37455
+ out.push([digit(lo, hi2), ...Array.from(ra, () => digit(0, 9))]);
37456
+ }
37457
+ out.push(...last2);
37458
+ return out;
37459
+ };
37460
+ nonneg = (a, b, width) => {
37461
+ if (width) {
37462
+ return fixed(String(a).padStart(width, "0"), String(b).padStart(width, "0"));
37463
+ }
37464
+ const out = [];
37465
+ for (let len = String(a).length; len <= String(b).length; len++) {
37466
+ const lo = Math.max(a, len === 1 ? 0 : 10 ** (len - 1));
37467
+ const hi2 = Math.min(b, 10 ** len - 1);
37468
+ out.push(...fixed(String(lo), String(hi2)));
37469
+ }
37470
+ return out;
37471
+ };
37472
+ numericRange = (loStr, hiStr) => {
37473
+ let lo = Number(loStr);
37474
+ let hi2 = Number(hiStr);
37475
+ if (!Number.isSafeInteger(lo) || !Number.isSafeInteger(hi2))
37476
+ return;
37477
+ if (lo > hi2)
37478
+ [lo, hi2] = [hi2, lo];
37479
+ const padded = /^-?0\d/.test(loStr) || /^-?0\d/.test(hiStr);
37480
+ const width = padded ? Math.max(loStr.length, hiStr.length) : 0;
37481
+ const out = [];
37482
+ if (lo < 0) {
37483
+ const neg = nonneg(Math.max(-hi2, 1), -lo, width && width - 1);
37484
+ out.push(...neg.map((s) => [{ t: "lit", ch: "-" }, ...s]));
37485
+ }
37486
+ if (hi2 >= 0)
37487
+ out.push(...nonneg(Math.max(lo, 0), hi2, width));
37488
+ return out;
37489
+ };
37490
+ }
37491
+ });
37492
+
37432
37493
  // node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js
37433
37494
  var posixClasses, braceEscape, noMatch, parseClass;
37434
37495
  var init_parse_class = __esm({
@@ -37545,6 +37606,7 @@ var init_parse_class = __esm({
37545
37606
  var MATCH, extTypes, lit, reEscape, newFoldRe, foldCache, foldRe, litMatch, tokenize, pair, build, normalize, compile, show, State, sameState, marks, Sim, stateKey, DFA_BUDGET, Dfa, linear, testLinear, lengths, itemLengths, hasAffix, slashOrSurrogate, surrogate, codePoints, noSlash, Matcher;
37546
37607
  var init_esm3 = __esm({
37547
37608
  "node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js"() {
37609
+ init_numeric_range();
37548
37610
  init_parse_class();
37549
37611
  MATCH = { t: "match", id: 0 };
37550
37612
  extTypes = "!?+*@";
@@ -37574,10 +37636,24 @@ var init_esm3 = __esm({
37574
37636
  ascii[code] ||= l.re.test(c) ? 1 : 2;
37575
37637
  return ascii[code] === 1;
37576
37638
  };
37577
- tokenize = (p, nocase, noext, form) => {
37639
+ tokenize = (p, nocase, noext, form, mark) => {
37578
37640
  const toks = [];
37579
37641
  for (let i2 = 0; i2 < p.length; ) {
37580
37642
  const c = String.fromCodePoint(p.codePointAt(i2));
37643
+ if (mark) {
37644
+ const m = c === "\\" && p.startsWith(mark, i2 + 1) ? 1 : 0;
37645
+ if (m || c === mark) {
37646
+ const start = i2 + m + mark.length;
37647
+ const end = p.indexOf(mark, start);
37648
+ const r7 = /^(-?\d+)\.\.(-?\d+)$/.exec(p.slice(start, end));
37649
+ const alts = end !== -1 && r7 && numericRange(r7[1], r7[2]);
37650
+ if (alts) {
37651
+ toks.push({ t: "ext", type: "@", alts });
37652
+ i2 = end + mark.length;
37653
+ continue;
37654
+ }
37655
+ }
37656
+ }
37581
37657
  if (c === "\\") {
37582
37658
  const e = p.codePointAt(i2 + 1);
37583
37659
  const ch = e === void 0 ? c : String.fromCodePoint(e);
@@ -38072,7 +38148,7 @@ var init_esm3 = __esm({
38072
38148
  const { nocase = false, noext = false, normalize: n } = options;
38073
38149
  this.#form = n === true ? "NFC" : n || void 0;
38074
38150
  const literal4 = /^[?*+@]\(\)$/.test(pattern);
38075
- const toks = tokenize(pattern, nocase, noext || literal4, this.#form);
38151
+ const toks = tokenize(pattern, nocase, noext || literal4, this.#form, options.rangeMark);
38076
38152
  let [items] = build(toks, pair(toks), 0, toks.length, true);
38077
38153
  if (this.#form)
38078
38154
  items = normalize(items, this.#form);
@@ -38149,7 +38225,7 @@ var init_esm3 = __esm({
38149
38225
  if (chars !== void 0 && (chars.length < min || chars.length > max)) {
38150
38226
  return false;
38151
38227
  }
38152
- const prefix = this.#prefix.length;
38228
+ const prefix2 = this.#prefix.length;
38153
38229
  if (this.#affix) {
38154
38230
  if (this.#prefixStr !== void 0 && this.#suffixStr !== void 0) {
38155
38231
  if (!s.startsWith(this.#prefixStr) || !s.endsWith(this.#suffixStr)) {
@@ -38167,13 +38243,13 @@ var init_esm3 = __esm({
38167
38243
  if (this.#linear) {
38168
38244
  if (s === "." || s === "..")
38169
38245
  return false;
38170
- if (dotStart && !prefix)
38246
+ if (dotStart && !prefix2)
38171
38247
  return false;
38172
38248
  if (this.#wild)
38173
38249
  return true;
38174
38250
  chars ??= codePoints(s);
38175
38251
  const end = chars.length - this.#suffix.length;
38176
- return testLinear(this.#linear, chars, prefix, end);
38252
+ return testLinear(this.#linear, chars, prefix2, end);
38177
38253
  }
38178
38254
  chars ??= codePoints(s);
38179
38255
  if (s === "." || s === "..") {
@@ -38250,7 +38326,7 @@ var init_unescape = __esm({
38250
38326
  });
38251
38327
 
38252
38328
  // node_modules/minimatch/dist/esm/index.js
38253
- var minimatch, defaultPlatform, path, sep3, GLOBSTAR, filter, ext, defaults, braceExpand, match, globMagic, classEnd, literal2, extSafe, lastSplit, lastChecked, portionMatch, endIndex, isDots, isDrive, isLongUNC, uncHost, walkable, dotPortion, isSep, nextSep, lastSep, Minimatch;
38329
+ var minimatch, cache, cacheMax, cachedMinimatch, defaultPlatform, path, sep3, GLOBSTAR, filter, ext, defaults, braceExpand, RANGE_MIN, rangeRe, match, globMagic, classEnd, literal2, extSafe, lastSplit, lastChecked, portionMatch, endIndex, isDots, isDrive, isLongUNC, uncHost, walkable, dotPortion, isSep, nextSep, lastSep, PENDING, Minimatch;
38254
38330
  var init_esm4 = __esm({
38255
38331
  "node_modules/minimatch/dist/esm/index.js"() {
38256
38332
  init_esm2();
@@ -38265,7 +38341,23 @@ var init_esm4 = __esm({
38265
38341
  if (!options.nocomment && pattern.charAt(0) === "#") {
38266
38342
  return false;
38267
38343
  }
38268
- return new Minimatch(pattern, options).match(p);
38344
+ return cachedMinimatch(pattern, options).match(p);
38345
+ };
38346
+ cache = /* @__PURE__ */ new Map();
38347
+ cacheMax = 256;
38348
+ cachedMinimatch = (pattern, options) => {
38349
+ const key = pattern + "\0" + JSON.stringify(options);
38350
+ let mm = cache.get(key);
38351
+ if (mm) {
38352
+ cache.delete(key);
38353
+ } else {
38354
+ mm = new Minimatch(pattern, { ...options });
38355
+ if (cache.size >= cacheMax) {
38356
+ cache.delete(cache.keys().next().value);
38357
+ }
38358
+ }
38359
+ cache.set(key, mm);
38360
+ return mm;
38269
38361
  };
38270
38362
  defaultPlatform = typeof process === "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
38271
38363
  path = {
@@ -38313,6 +38405,8 @@ var init_esm4 = __esm({
38313
38405
  return expand2(pattern, { max: options.braceExpandMax });
38314
38406
  };
38315
38407
  minimatch.braceExpand = braceExpand;
38408
+ RANGE_MIN = 100;
38409
+ rangeRe = /(?<![\\$])\{(-?\d+)\.\.(-?\d+)\}/g;
38316
38410
  match = (list3, pattern, options = {}) => {
38317
38411
  const mm = new Minimatch(pattern, options);
38318
38412
  list3 = list3.filter((f) => mm.match(f));
@@ -38436,6 +38530,7 @@ var init_esm4 = __esm({
38436
38530
  return s === -1 ? b : b === -1 ? s : Math.min(s, b);
38437
38531
  };
38438
38532
  lastSep = (f, from, sep4) => sep4 !== "both" ? f.lastIndexOf(sep4, from) : Math.max(f.lastIndexOf("/", from), f.lastIndexOf("\\", from));
38533
+ PENDING = {};
38439
38534
  Minimatch = class {
38440
38535
  options;
38441
38536
  set;
@@ -38471,6 +38566,10 @@ var init_esm4 = __esm({
38471
38566
  // brace expansion can make the same portion in many rows, so they
38472
38567
  // share one Matcher, and the states that it caches
38473
38568
  #matchers = /* @__PURE__ */ new Map();
38569
+ // parse() returns PENDING in place of a Matcher
38570
+ #pending = false;
38571
+ // the char that marks numeric ranges in globSet, if any
38572
+ #rangeMark;
38474
38573
  // the GlobstarParts of each pattern row, by start index and partial
38475
38574
  #globstarParts = /* @__PURE__ */ new WeakMap();
38476
38575
  constructor(pattern, options = {}) {
@@ -38574,9 +38673,10 @@ var init_esm4 = __esm({
38574
38673
  return;
38575
38674
  }
38576
38675
  this.parseNegate();
38577
- this.globSet = [...new Set(this.braceExpand())];
38676
+ this.globSet = [...new Set(this.#expandBraces())];
38578
38677
  const rawGlobParts = this.globSet.map((s) => this.#slashSplit(s));
38579
38678
  this.globParts = this.preprocess(rawGlobParts);
38679
+ this.#pending = true;
38580
38680
  let set2 = this.globParts.map((s, _2, __) => {
38581
38681
  if (this.isWindows && this.windowsNoMagicRoot) {
38582
38682
  const n = s[2] === "?" && isLongUNC(s[3]) ? 6 : 4;
@@ -38609,6 +38709,14 @@ var init_esm4 = __esm({
38609
38709
  }
38610
38710
  if (!options.noext)
38611
38711
  this.mergeRows();
38712
+ this.#pending = false;
38713
+ this.set.forEach((row, i2) => {
38714
+ for (let k2 = 0; k2 < row.length; k2++) {
38715
+ if (row[k2] === PENDING) {
38716
+ row[k2] = this.parse(this.globParts[i2][k2]);
38717
+ }
38718
+ }
38719
+ });
38612
38720
  }
38613
38721
  // Merge rows that only differ in one portion, where each of them
38614
38722
  // is a Matcher, into one row that matches any of them with
@@ -38622,7 +38730,7 @@ var init_esm4 = __esm({
38622
38730
  for (let k2 = 0; k2 < len; k2++) {
38623
38731
  const groups = /* @__PURE__ */ new Map();
38624
38732
  this.set.forEach((row, i2) => {
38625
- if (!(row[k2] instanceof Matcher) || !extSafe(this.globParts[i2][k2])) {
38733
+ if (!(row[k2] instanceof Matcher || row[k2] === PENDING) || !extSafe(this.globParts[i2][k2])) {
38626
38734
  return;
38627
38735
  }
38628
38736
  const parts = [...this.globParts[i2]];
@@ -38951,6 +39059,8 @@ var init_esm4 = __esm({
38951
39059
  // this WOULD be allowed if ** did follow symlinks, or * didn't
38952
39060
  firstPhasePreProcess(globParts) {
38953
39061
  const { braceExpandMax = 1e5 } = this.options;
39062
+ let splitCells = 0;
39063
+ const maxSplitCells = 1e6;
38954
39064
  let didSomething = false;
38955
39065
  do {
38956
39066
  didSomething = false;
@@ -38969,13 +39079,18 @@ var init_esm4 = __esm({
38969
39079
  const p2 = parts[gs2 + 3];
38970
39080
  if (next !== "..")
38971
39081
  continue;
38972
- if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === ".." || globParts.length >= braceExpandMax) {
39082
+ if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
38973
39083
  continue;
38974
39084
  }
39085
+ const addedCells = parts.length - 1;
39086
+ if (globParts.length >= braceExpandMax || splitCells + addedCells > maxSplitCells) {
39087
+ throw new RangeError(`optimizationLevel 2: too many patterns from '**/..'`);
39088
+ }
38975
39089
  didSomething = true;
38976
39090
  parts.splice(gs2, 1);
38977
39091
  const other = parts.slice(0);
38978
39092
  other[gs2] = "**";
39093
+ splitCells += addedCells;
38979
39094
  globParts.push(other);
38980
39095
  gs2--;
38981
39096
  }
@@ -39014,62 +39129,53 @@ var init_esm4 = __esm({
39014
39129
  return globParts;
39015
39130
  }
39016
39131
  // second phase: multi-pattern dedupes
39017
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
39018
39132
  // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
39019
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
39020
- //
39021
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
39022
- // ^-- not valid because ** doens't follow symlinks
39133
+ // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
39023
39134
  secondPhasePreProcess(globParts) {
39024
- if (globParts.length > 1e3)
39025
- return globParts;
39026
- for (let i2 = 0; i2 < globParts.length - 1; i2++) {
39027
- for (let j2 = i2 + 1; j2 < globParts.length; j2++) {
39028
- const matched = this.partsMatch(globParts[i2], globParts[j2], !this.preserveMultipleSlashes);
39029
- if (matched) {
39030
- globParts[i2] = [];
39031
- globParts[j2] = matched;
39032
- break;
39135
+ const keys = /* @__PURE__ */ new Set();
39136
+ const rows = globParts.filter((parts) => {
39137
+ const key = parts.join("/");
39138
+ if (keys.has(key))
39139
+ return false;
39140
+ keys.add(key);
39141
+ return true;
39142
+ });
39143
+ const stars = /* @__PURE__ */ new Map();
39144
+ for (const parts of rows) {
39145
+ const s = [];
39146
+ for (let i2 = 0; i2 < parts.length; i2++) {
39147
+ if (parts[i2] === "*")
39148
+ s.push(i2);
39149
+ }
39150
+ if (s.length)
39151
+ stars.set(s.join(","), s);
39152
+ }
39153
+ if (!stars.size || rows.length * stars.size > 1e5)
39154
+ return rows;
39155
+ const { dot } = this.options;
39156
+ return rows.filter((parts) => {
39157
+ for (const s of stars.values()) {
39158
+ if (s[s.length - 1] >= parts.length)
39159
+ continue;
39160
+ const c = [...parts];
39161
+ let ok = true;
39162
+ let changed = false;
39163
+ for (const i2 of s) {
39164
+ const p = parts[i2];
39165
+ if (p === "*")
39166
+ continue;
39167
+ if (!p || p === "**" || !dot && p.startsWith(".")) {
39168
+ ok = false;
39169
+ break;
39170
+ }
39171
+ c[i2] = "*";
39172
+ changed = true;
39033
39173
  }
39034
- }
39035
- }
39036
- return globParts.filter((gs2) => gs2.length);
39037
- }
39038
- partsMatch(a, b, emptyGSMatch = false) {
39039
- let ai2 = 0;
39040
- let bi2 = 0;
39041
- let result2 = [];
39042
- let which = "";
39043
- while (ai2 < a.length && bi2 < b.length) {
39044
- if (a[ai2] === b[bi2]) {
39045
- result2.push(which === "b" ? b[bi2] : a[ai2]);
39046
- ai2++;
39047
- bi2++;
39048
- } else if (emptyGSMatch && a[ai2] === "**" && b[bi2] === a[ai2 + 1]) {
39049
- result2.push(a[ai2]);
39050
- ai2++;
39051
- } else if (emptyGSMatch && b[bi2] === "**" && a[ai2] === b[bi2 + 1]) {
39052
- result2.push(b[bi2]);
39053
- bi2++;
39054
- } else if (a[ai2] === "*" && b[bi2] && (this.options.dot || !b[bi2].startsWith(".")) && b[bi2] !== "**") {
39055
- if (which === "b")
39056
- return false;
39057
- which = "a";
39058
- result2.push(a[ai2]);
39059
- ai2++;
39060
- bi2++;
39061
- } else if (b[bi2] === "*" && a[ai2] && (this.options.dot || !a[ai2].startsWith(".")) && a[ai2] !== "**") {
39062
- if (which === "a")
39174
+ if (ok && changed && keys.has(c.join("/")))
39063
39175
  return false;
39064
- which = "b";
39065
- result2.push(b[bi2]);
39066
- ai2++;
39067
- bi2++;
39068
- } else {
39069
- return false;
39070
39176
  }
39071
- }
39072
- return a.length === b.length && result2;
39177
+ return true;
39178
+ });
39073
39179
  }
39074
39180
  parseNegate() {
39075
39181
  if (this.nonegate)
@@ -39279,6 +39385,44 @@ var init_esm4 = __esm({
39279
39385
  braceExpand() {
39280
39386
  return braceExpand(this.pattern, this.options);
39281
39387
  }
39388
+ // Expand braces, except numeric ranges such as {0..999} with at
39389
+ // least RANGE_MIN values. Each of those stays in its pattern as
39390
+ // `<mark>0..999<mark>`, for the Matcher to test. If a range might
39391
+ // be inside a [...] class, expand all of them instead.
39392
+ #expandBraces() {
39393
+ const { pattern } = this;
39394
+ if (this.options.nobrace)
39395
+ return this.braceExpand();
39396
+ let code = 57344;
39397
+ while (pattern.includes(String.fromCharCode(code))) {
39398
+ if (++code > 63743)
39399
+ return this.braceExpand();
39400
+ }
39401
+ const mark = String.fromCharCode(code);
39402
+ let found = false;
39403
+ const marked = pattern.replace(rangeRe, (m, lo, hi2) => {
39404
+ const a = Number(lo);
39405
+ const b = Number(hi2);
39406
+ if (!Number.isSafeInteger(a) || !Number.isSafeInteger(b) || Math.abs(a - b) + 1 < RANGE_MIN) {
39407
+ return m;
39408
+ }
39409
+ found = true;
39410
+ return `${mark}${lo}..${hi2}${mark}`;
39411
+ });
39412
+ if (!found)
39413
+ return this.braceExpand();
39414
+ const set2 = braceExpand(marked, this.options);
39415
+ for (const p of set2) {
39416
+ for (const portion of p.split("/")) {
39417
+ const c = portion.indexOf("[");
39418
+ if (c !== -1 && c < portion.lastIndexOf(mark)) {
39419
+ return this.braceExpand();
39420
+ }
39421
+ }
39422
+ }
39423
+ this.#rangeMark = mark;
39424
+ return set2;
39425
+ }
39282
39426
  parse(pattern) {
39283
39427
  assertValidPattern(pattern);
39284
39428
  const options = this.options;
@@ -39287,13 +39431,22 @@ var init_esm4 = __esm({
39287
39431
  if (pattern === "")
39288
39432
  return "";
39289
39433
  const { nocase, nocaseMagicOnly, noext = false, dot, normalize: normalize2 } = options;
39290
- const lit2 = literal2(pattern, noext);
39434
+ const rangeMark = this.#rangeMark;
39435
+ const lit2 = rangeMark && pattern.includes(rangeMark) ? void 0 : literal2(pattern, noext);
39291
39436
  if (lit2 !== void 0 && !(nocase && !nocaseMagicOnly && pattern.toUpperCase() !== pattern.toLowerCase())) {
39292
39437
  return this.#norm(lit2);
39293
39438
  }
39439
+ if (this.#pending)
39440
+ return PENDING;
39294
39441
  let m = this.#matchers.get(pattern);
39295
39442
  if (!m) {
39296
- m = new Matcher(pattern, { nocase, noext, dot, normalize: normalize2 });
39443
+ m = new Matcher(pattern, {
39444
+ nocase,
39445
+ noext,
39446
+ dot,
39447
+ normalize: normalize2,
39448
+ ...rangeMark && { rangeMark }
39449
+ });
39297
39450
  this.#matchers.set(pattern, m);
39298
39451
  }
39299
39452
  return m;
@@ -45762,11 +45915,11 @@ function isValidCIDRv6(value) {
45762
45915
  const parts = value.split("/");
45763
45916
  if (parts.length !== 2)
45764
45917
  return false;
45765
- const [address, prefix] = parts;
45766
- if (!prefix)
45918
+ const [address, prefix2] = parts;
45919
+ if (!prefix2)
45767
45920
  return false;
45768
- const prefixNum = Number(prefix);
45769
- if (`${prefixNum}` !== prefix)
45921
+ const prefixNum = Number(prefix2);
45922
+ if (`${prefixNum}` !== prefix2)
45770
45923
  return false;
45771
45924
  if (prefixNum < 0 || prefixNum > 128)
45772
45925
  return false;
@@ -56993,8 +57146,8 @@ function generateStringFormatCheck(doc, ctx, def, accessor, needsValue = true) {
56993
57146
  doc.write(`if (!${accessor}.includes(${esc(def.includes)})) return INVALID;`);
56994
57147
  break;
56995
57148
  case "starts_with": {
56996
- const prefix = def.prefix;
56997
- doc.write(`if (${accessor}.slice(0, ${prefix.length}) !== ${esc(prefix)}) return INVALID;`);
57149
+ const prefix2 = def.prefix;
57150
+ doc.write(`if (${accessor}.slice(0, ${prefix2.length}) !== ${esc(prefix2)}) return INVALID;`);
56998
57151
  break;
56999
57152
  }
57000
57153
  case "ends_with": {
@@ -57738,8 +57891,8 @@ function generateDiscriminatedUnionCheck(doc, ctx, def, accessor) {
57738
57891
  claimed.add(value);
57739
57892
  }
57740
57893
  const conditions = Array.from(values, (value) => literalEquality(ctx, discVar, value));
57741
- const prefix = firstBranch ? "if" : "else if";
57742
- doc.write(`${prefix} (${conditions.join(" || ")}) {`);
57894
+ const prefix2 = firstBranch ? "if" : "else if";
57895
+ doc.write(`${prefix2} (${conditions.join(" || ")}) {`);
57743
57896
  doc.indented((d) => {
57744
57897
  const branchOutput = generateCheck(d, ctx, option, accessor);
57745
57898
  d.write(`${outputVar} = ${branchOutput};`);
@@ -58740,12 +58893,12 @@ function _includes(includes, params) {
58740
58893
  });
58741
58894
  }
58742
58895
  // @__NO_SIDE_EFFECTS__
58743
- function _startsWith(prefix, params) {
58896
+ function _startsWith(prefix2, params) {
58744
58897
  return new $ZodCheckStartsWith({
58745
58898
  check: "string_format",
58746
58899
  format: "starts_with",
58747
58900
  ...normalizeParams(params),
58748
- prefix
58901
+ prefix: prefix2
58749
58902
  });
58750
58903
  }
58751
58904
  // @__NO_SIDE_EFFECTS__
@@ -60999,21 +61152,21 @@ function visit(schema, fnOrHandlers) {
60999
61152
  const h = fnOrHandlers[node2._zod.def.type];
61000
61153
  return h ? h(node2, rewritten) : node2;
61001
61154
  };
61002
- const cache = /* @__PURE__ */ new Map();
61155
+ const cache2 = /* @__PURE__ */ new Map();
61003
61156
  function run2(s) {
61004
- const cached2 = cache.get(s);
61157
+ const cached2 = cache2.get(s);
61005
61158
  if (cached2 === RESOLVING) {
61006
61159
  return new $ZodLazy({
61007
61160
  type: "lazy",
61008
- getter: () => cache.get(s)
61161
+ getter: () => cache2.get(s)
61009
61162
  });
61010
61163
  }
61011
61164
  if (cached2 !== void 0)
61012
61165
  return cached2;
61013
- cache.set(s, RESOLVING);
61166
+ cache2.set(s, RESOLVING);
61014
61167
  const inner = mapInner(s);
61015
61168
  const mapped = fn2(inner, inner !== s);
61016
- cache.set(s, mapped);
61169
+ cache2.set(s, mapped);
61017
61170
  return mapped;
61018
61171
  }
61019
61172
  function mapInner(s) {
@@ -68654,26 +68807,26 @@ var require_scope = __commonJS({
68654
68807
  toName(nameOrPrefix) {
68655
68808
  return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix);
68656
68809
  }
68657
- name(prefix) {
68658
- return new code_1.Name(this._newName(prefix));
68810
+ name(prefix2) {
68811
+ return new code_1.Name(this._newName(prefix2));
68659
68812
  }
68660
- _newName(prefix) {
68661
- const ng = this._names[prefix] || this._nameGroup(prefix);
68662
- return `${prefix}${ng.index++}`;
68813
+ _newName(prefix2) {
68814
+ const ng = this._names[prefix2] || this._nameGroup(prefix2);
68815
+ return `${prefix2}${ng.index++}`;
68663
68816
  }
68664
- _nameGroup(prefix) {
68817
+ _nameGroup(prefix2) {
68665
68818
  var _a3, _b;
68666
- if (((_b = (_a3 = this._parent) === null || _a3 === void 0 ? void 0 : _a3._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || this._prefixes && !this._prefixes.has(prefix)) {
68667
- throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`);
68819
+ if (((_b = (_a3 = this._parent) === null || _a3 === void 0 ? void 0 : _a3._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix2)) || this._prefixes && !this._prefixes.has(prefix2)) {
68820
+ throw new Error(`CodeGen: prefix "${prefix2}" is not allowed in this scope`);
68668
68821
  }
68669
- return this._names[prefix] = { prefix, index: 0 };
68822
+ return this._names[prefix2] = { prefix: prefix2, index: 0 };
68670
68823
  }
68671
68824
  };
68672
68825
  exports.Scope = Scope3;
68673
68826
  var ValueScopeName = class extends code_1.Name {
68674
- constructor(prefix, nameStr) {
68827
+ constructor(prefix2, nameStr) {
68675
68828
  super(nameStr);
68676
- this.prefix = prefix;
68829
+ this.prefix = prefix2;
68677
68830
  }
68678
68831
  setValue(value, { property, itemIndex }) {
68679
68832
  this.value = value;
@@ -68692,33 +68845,33 @@ var require_scope = __commonJS({
68692
68845
  get() {
68693
68846
  return this._scope;
68694
68847
  }
68695
- name(prefix) {
68696
- return new ValueScopeName(prefix, this._newName(prefix));
68848
+ name(prefix2) {
68849
+ return new ValueScopeName(prefix2, this._newName(prefix2));
68697
68850
  }
68698
68851
  value(nameOrPrefix, value) {
68699
68852
  var _a3;
68700
68853
  if (value.ref === void 0)
68701
68854
  throw new Error("CodeGen: ref must be passed in value");
68702
68855
  const name = this.toName(nameOrPrefix);
68703
- const { prefix } = name;
68856
+ const { prefix: prefix2 } = name;
68704
68857
  const valueKey = (_a3 = value.key) !== null && _a3 !== void 0 ? _a3 : value.ref;
68705
- let vs2 = this._values[prefix];
68858
+ let vs2 = this._values[prefix2];
68706
68859
  if (vs2) {
68707
68860
  const _name = vs2.get(valueKey);
68708
68861
  if (_name)
68709
68862
  return _name;
68710
68863
  } else {
68711
- vs2 = this._values[prefix] = /* @__PURE__ */ new Map();
68864
+ vs2 = this._values[prefix2] = /* @__PURE__ */ new Map();
68712
68865
  }
68713
68866
  vs2.set(valueKey, name);
68714
- const s = this._scope[prefix] || (this._scope[prefix] = []);
68867
+ const s = this._scope[prefix2] || (this._scope[prefix2] = []);
68715
68868
  const itemIndex = s.length;
68716
68869
  s[itemIndex] = value.ref;
68717
- name.setValue(value, { property: prefix, itemIndex });
68870
+ name.setValue(value, { property: prefix2, itemIndex });
68718
68871
  return name;
68719
68872
  }
68720
- getValue(prefix, keyOrRef) {
68721
- const vs2 = this._values[prefix];
68873
+ getValue(prefix2, keyOrRef) {
68874
+ const vs2 = this._values[prefix2];
68722
68875
  if (!vs2)
68723
68876
  return;
68724
68877
  return vs2.get(keyOrRef);
@@ -68739,11 +68892,11 @@ var require_scope = __commonJS({
68739
68892
  }
68740
68893
  _reduceValues(values, valueCode, usedValues = {}, getCode) {
68741
68894
  let code = code_1.nil;
68742
- for (const prefix in values) {
68743
- const vs2 = values[prefix];
68895
+ for (const prefix2 in values) {
68896
+ const vs2 = values[prefix2];
68744
68897
  if (!vs2)
68745
68898
  continue;
68746
- const nameSet = usedValues[prefix] = usedValues[prefix] || /* @__PURE__ */ new Map();
68899
+ const nameSet = usedValues[prefix2] = usedValues[prefix2] || /* @__PURE__ */ new Map();
68747
68900
  vs2.forEach((name) => {
68748
68901
  if (nameSet.has(name))
68749
68902
  return;
@@ -69176,12 +69329,12 @@ var require_codegen = __commonJS({
69176
69329
  return this._root.render(this.opts);
69177
69330
  }
69178
69331
  // returns unique name in the internal scope
69179
- name(prefix) {
69180
- return this._scope.name(prefix);
69332
+ name(prefix2) {
69333
+ return this._scope.name(prefix2);
69181
69334
  }
69182
69335
  // reserves unique name in the external scope
69183
- scopeName(prefix) {
69184
- return this._extScope.name(prefix);
69336
+ scopeName(prefix2) {
69337
+ return this._extScope.name(prefix2);
69185
69338
  }
69186
69339
  // reserves unique name in the external scope and assigns value to it
69187
69340
  scopeValue(prefixOrName, value) {
@@ -69190,8 +69343,8 @@ var require_codegen = __commonJS({
69190
69343
  vs2.add(name);
69191
69344
  return name;
69192
69345
  }
69193
- getScopeValue(prefix, keyOrRef) {
69194
- return this._extScope.getValue(prefix, keyOrRef);
69346
+ getScopeValue(prefix2, keyOrRef) {
69347
+ return this._extScope.getValue(prefix2, keyOrRef);
69195
69348
  }
69196
69349
  // return code that assigns values in the external scope to the names that are used internally
69197
69350
  // (same names that were returned by gen.scopeName or gen.scopeValue)
@@ -86999,15 +87152,15 @@ var require_files = __commonJS({
86999
87152
  }
87000
87153
  return void 0;
87001
87154
  }
87002
- const prefix = stdout.trim();
87155
+ const prefix2 = stdout.trim();
87003
87156
  if (tracer) {
87004
- tracer(`'npm config get prefix' value is: ${prefix}`);
87157
+ tracer(`'npm config get prefix' value is: ${prefix2}`);
87005
87158
  }
87006
- if (prefix.length > 0) {
87159
+ if (prefix2.length > 0) {
87007
87160
  if (isWindows()) {
87008
- return path2.join(prefix, "node_modules");
87161
+ return path2.join(prefix2, "node_modules");
87009
87162
  } else {
87010
- return path2.join(prefix, "lib", "node_modules");
87163
+ return path2.join(prefix2, "lib", "node_modules");
87011
87164
  }
87012
87165
  }
87013
87166
  return void 0;
@@ -90052,8 +90205,8 @@ function addMacroToYamlConfig(text3, macroName) {
90052
90205
  if (doc.contents !== null && !(0, import_yaml3.isMap)(doc.contents)) return null;
90053
90206
  const path2 = macrosPath(doc.toJS());
90054
90207
  for (let depth = 1; depth <= path2.length; depth++) {
90055
- const prefix = path2.slice(0, depth);
90056
- const node2 = doc.getIn(prefix, true);
90208
+ const prefix2 = path2.slice(0, depth);
90209
+ const node2 = doc.getIn(prefix2, true);
90057
90210
  if ((0, import_yaml3.isAlias)(node2)) {
90058
90211
  let value = node2.toJS(doc);
90059
90212
  if (depth < path2.length && (0, import_yaml3.isMap)(node2.resolve(doc))) {
@@ -90063,7 +90216,7 @@ function addMacroToYamlConfig(text3, macroName) {
90063
90216
  value = { ...value, [key]: { ...child } };
90064
90217
  }
90065
90218
  }
90066
- doc.setIn(prefix, doc.createNode(value));
90219
+ doc.setIn(prefix2, doc.createNode(value));
90067
90220
  }
90068
90221
  }
90069
90222
  const parent = path2.length > 1 ? doc.getIn(path2.slice(0, -1), true) : doc.contents;
@@ -90122,16 +90275,16 @@ function offsetToPosition2(text3, offset2) {
90122
90275
  }
90123
90276
  function minimalEdit(oldText, newText) {
90124
90277
  const max = Math.min(oldText.length, newText.length);
90125
- let prefix = 0;
90126
- while (prefix < max && oldText[prefix] === newText[prefix]) prefix++;
90278
+ let prefix2 = 0;
90279
+ while (prefix2 < max && oldText[prefix2] === newText[prefix2]) prefix2++;
90127
90280
  let suffix = 0;
90128
- while (suffix < max - prefix && oldText[oldText.length - 1 - suffix] === newText[newText.length - 1 - suffix]) suffix++;
90281
+ while (suffix < max - prefix2 && oldText[oldText.length - 1 - suffix] === newText[newText.length - 1 - suffix]) suffix++;
90129
90282
  return {
90130
90283
  range: {
90131
- start: offsetToPosition2(oldText, prefix),
90284
+ start: offsetToPosition2(oldText, prefix2),
90132
90285
  end: offsetToPosition2(oldText, oldText.length - suffix)
90133
90286
  },
90134
- newText: newText.slice(prefix, newText.length - suffix)
90287
+ newText: newText.slice(prefix2, newText.length - suffix)
90135
90288
  };
90136
90289
  }
90137
90290
  function insertLinesAt(text3, line, body, eol) {