@vltpkg/cli-js 1.0.0-rc.27 → 1.0.0-rc.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/access-6HRR4HXE.js +293 -0
  2. package/{bugs-CS34LDPD.js → bugs-2CAZQ32S.js} +19 -22
  3. package/{build-XHEFAWMN.js → build-OAWTNBMS.js} +10 -13
  4. package/{cache-LII2V5IM.js → cache-ZR7VPPVQ.js} +14 -15
  5. package/cache-unzip-src-unzip.js +606 -575
  6. package/chunk-2FIRKA7R.js +73 -0
  7. package/{chunk-D27QPHKI.js → chunk-2V4AQPBR.js} +67 -20
  8. package/{chunk-JQHMLTO5.js → chunk-3MWZTKGK.js} +419 -328
  9. package/chunk-5TSPKXO4.js +116 -0
  10. package/{chunk-DJBBJDHI.js → chunk-7RZL7BZI.js} +159 -74
  11. package/{chunk-LAG2R3YJ.js → chunk-BW6C3YUV.js} +6 -6
  12. package/{chunk-DYL7AFY7.js → chunk-CPM47YUH.js} +5 -3
  13. package/{chunk-5E5GX4G6.js → chunk-FBTBHRPG.js} +1 -1
  14. package/{chunk-AZLX27EM.js → chunk-FXDRM4ZO.js} +296 -258
  15. package/{chunk-6YTJVEK2.js → chunk-HAG4VBEA.js} +11 -11
  16. package/{chunk-INXSTZAX.js → chunk-HAGUS4HI.js} +21 -21
  17. package/{chunk-FI5TUER7.js → chunk-HQ4US6G3.js} +681 -687
  18. package/chunk-IEISSXS4.js +711 -0
  19. package/{chunk-TRXTSZFT.js → chunk-IYO5QKUW.js} +1 -1
  20. package/{chunk-XSUIV5NF.js → chunk-M7HPHM7B.js} +14 -12
  21. package/{chunk-BIUCOMBH.js → chunk-MAIQR5GM.js} +5 -5
  22. package/{chunk-TDTJOKF2.js → chunk-NLFBANVO.js} +8 -1
  23. package/{chunk-QWWYZ3TT.js → chunk-OUUIOZ2I.js} +1 -1
  24. package/{chunk-XWF3GJKE.js → chunk-Q3DNNTPG.js} +27 -1
  25. package/{chunk-VCSVHRCS.js → chunk-R44FR7BY.js} +1269 -590
  26. package/{chunk-P2HZ4ISK.js → chunk-RK2PISOZ.js} +54 -6
  27. package/{chunk-QDGZZ5FZ.js → chunk-TYV4N3S3.js} +6 -692
  28. package/{chunk-LKFTVDWS.js → chunk-VPKJNCKL.js} +26 -13
  29. package/{chunk-VTZZIXYW.js → chunk-VRIS5HAW.js} +3 -3
  30. package/{chunk-S5I2UOBT.js → chunk-WX2DCAG2.js} +7 -7
  31. package/{chunk-YR47M5L7.js → chunk-XYCCQT7N.js} +34 -39
  32. package/{chunk-D7U7KDEM.js → chunk-YCQTLBWF.js} +1 -1
  33. package/{chunk-SR66HWMM.js → chunk-ZINDEKAU.js} +144 -93
  34. package/{chunk-DJBVQKBB.js → chunk-ZS2RCG25.js} +5 -5
  35. package/{ci-EEXNEPKP.js → ci-TOJJVHI4.js} +13 -16
  36. package/cli-package.json +2 -1
  37. package/{config-4ZFJD5AY.js → config-DVAPEE5D.js} +12 -14
  38. package/{config-6MUU2TRJ.js → config-GOV4E2KK.js} +26 -26
  39. package/{create-DEKJKPYX.js → create-CDFZFVHL.js} +24 -26
  40. package/deprecate-WROL4AHK.js +176 -0
  41. package/{devtools-NOLON5YL.js → devtools-TPMVKPB5.js} +80 -77
  42. package/dist-tag-WZXXWXMB.js +204 -0
  43. package/{docs-5EKPZANX.js → docs-YCOZFMZG.js} +19 -22
  44. package/{exec-I4YPE6YW.js → exec-V4K5KJMZ.js} +24 -26
  45. package/{exec-cache-XEWPABLK.js → exec-cache-FHCGIY6J.js} +21 -23
  46. package/{exec-local-OQXG2VPW.js → exec-local-YU6PF7HM.js} +19 -21
  47. package/{help-OG655SE5.js → help-DADL3NOX.js} +4 -5
  48. package/{init-LJH2YTBM.js → init-XNMWYATA.js} +10 -8
  49. package/{install-KP2FGWOR.js → install-FEGZHZRR.js} +28 -17
  50. package/{list-ACZ3ZSIZ.js → list-JWAIDRFZ.js} +19 -21
  51. package/{login-VFTRKZE2.js → login-52SA2DSI.js} +6 -9
  52. package/{logout-Z4AVG64D.js → logout-5YYHNV5W.js} +6 -9
  53. package/{pack-GPJNX7RP.js → pack-B7QZHMYP.js} +14 -17
  54. package/package.json +1 -1
  55. package/{ping-B2YS4SR3.js → ping-PRGDYDRI.js} +6 -9
  56. package/{pkg-WUYJDFSH.js → pkg-UEIQIVVD.js} +15 -19
  57. package/profile-46FKVQEL.js +129 -0
  58. package/{publish-WTMGC4ET.js → publish-HBYHOSKH.js} +17 -20
  59. package/{query-UCM35VVC.js → query-UJ2LXHJ5.js} +19 -21
  60. package/registry-client-package.json +1 -1
  61. package/registry-client-src-revalidate.js +1157 -1032
  62. package/{repo-MZCPTQZU.js → repo-I6X66PHD.js} +19 -22
  63. package/{reporter-XRZ37LFK.js → reporter-NUXJTV4G.js} +2 -3
  64. package/{run-CAX4Z2SC.js → run-4VSEFXVM.js} +19 -21
  65. package/{run-exec-SM42FE7W.js → run-exec-5JVZDUZD.js} +19 -21
  66. package/security-archive-src-update-expired.js +8 -7
  67. package/{src-SDJWTPCU.js → src-GIDTI3OJ.js} +20 -22
  68. package/token-YK6L74PA.js +206 -0
  69. package/{uninstall-YYPPXM2O.js → uninstall-UBUZBV7E.js} +14 -17
  70. package/unpublish-ZHJEKT7A.js +224 -0
  71. package/{update-YFUTH33A.js → update-WO4BHJF4.js} +13 -16
  72. package/{version-SK256WED.js → version-RLESYHML.js} +13 -16
  73. package/{view-CBYGJ76J.js → view-UA5HXFXG.js} +16 -17
  74. package/vlr.js +1 -1
  75. package/vlrx.js +1 -1
  76. package/vlt.js +1 -1
  77. package/vlx.js +1 -1
  78. package/vlxl.js +1 -1
  79. package/{whoami-ZT4ZEN2C.js → whoami-7H3FPR2O.js} +6 -9
  80. package/chunk-52LBC3AX.js +0 -75
  81. package/chunk-BGQCUUCA.js +0 -667
  82. package/chunk-E74WGW5C.js +0 -49
  83. package/chunk-JLJKOF75.js +0 -40
  84. package/chunk-YP4YNE5Y.js +0 -68
  85. package/token-YCURCCNR.js +0 -103
@@ -13,79 +13,55 @@ import {
13
13
  error
14
14
  } from "./chunk-WZWDS3W4.js";
15
15
 
16
- // ../../node_modules/.vlt/~npm~lru-cache@11.2.7/node_modules/lru-cache/dist/esm/index.min.js
17
- var x = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
18
- var I = /* @__PURE__ */ new Set();
19
- var R = typeof process == "object" && process ? process : {};
20
- var U = (c3, t, e, i2) => {
21
- typeof R.emitWarning == "function" ? R.emitWarning(c3, t, e, i2) : console.error(`[${e}] ${t}: ${c3}`);
22
- };
23
- var C = globalThis.AbortController;
24
- var D = globalThis.AbortSignal;
25
- if (typeof C > "u") {
26
- D = class {
27
- onabort;
28
- _onabort = [];
29
- reason;
30
- aborted = false;
31
- addEventListener(i2, s) {
32
- this._onabort.push(s);
33
- }
34
- }, C = class {
35
- constructor() {
36
- t();
37
- }
38
- signal = new D();
39
- abort(i2) {
40
- if (!this.signal.aborted) {
41
- this.signal.reason = i2, this.signal.aborted = true;
42
- for (let s of this.signal._onabort) s(i2);
43
- this.signal.onabort?.(i2);
44
- }
45
- }
46
- };
47
- let c3 = R.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
48
- c3 && (c3 = false, U("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
49
- };
50
- }
51
- var G = (c3) => !I.has(c3);
52
- var y = (c3) => c3 && c3 === Math.floor(c3) && c3 > 0 && isFinite(c3);
53
- var M = (c3) => y(c3) ? c3 <= Math.pow(2, 8) ? Uint8Array : c3 <= Math.pow(2, 16) ? Uint16Array : c3 <= Math.pow(2, 32) ? Uint32Array : c3 <= Number.MAX_SAFE_INTEGER ? z : null : null;
54
- var z = class extends Array {
55
- constructor(t) {
56
- super(t), this.fill(0);
16
+ // ../../node_modules/.vlt/~npm~lru-cache@11.3.5/node_modules/lru-cache/dist/esm/node/index.min.js
17
+ import { tracingChannel as j, channel as I } from "node:diagnostics_channel";
18
+ var S = I("lru-cache:metrics");
19
+ var W = j("lru-cache");
20
+ var D = () => S.hasSubscribers || W.hasSubscribers;
21
+ var G = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
22
+ var M = /* @__PURE__ */ new Set();
23
+ var C = typeof process == "object" && process ? process : {};
24
+ var P = (u4, e, t, i2) => {
25
+ typeof C.emitWarning == "function" ? C.emitWarning(u4, e, t, i2) : console.error(`[${t}] ${e}: ${u4}`);
26
+ };
27
+ var H = (u4) => !M.has(u4);
28
+ var F = (u4) => !!u4 && u4 === Math.floor(u4) && u4 > 0 && isFinite(u4);
29
+ var U = (u4) => F(u4) ? u4 <= Math.pow(2, 8) ? Uint8Array : u4 <= Math.pow(2, 16) ? Uint16Array : u4 <= Math.pow(2, 32) ? Uint32Array : u4 <= Number.MAX_SAFE_INTEGER ? O : null : null;
30
+ var O = class extends Array {
31
+ constructor(e) {
32
+ super(e), this.fill(0);
57
33
  }
58
34
  };
59
- var W = class c {
35
+ var R = class u {
60
36
  heap;
61
37
  length;
62
38
  static #o = false;
63
- static create(t) {
64
- let e = M(t);
65
- if (!e) return [];
66
- c.#o = true;
67
- let i2 = new c(t, e);
68
- return c.#o = false, i2;
39
+ static create(e) {
40
+ let t = U(e);
41
+ if (!t) return [];
42
+ u.#o = true;
43
+ let i2 = new u(e, t);
44
+ return u.#o = false, i2;
69
45
  }
70
- constructor(t, e) {
71
- if (!c.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
72
- this.heap = new e(t), this.length = 0;
46
+ constructor(e, t) {
47
+ if (!u.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
48
+ this.heap = new t(e), this.length = 0;
73
49
  }
74
- push(t) {
75
- this.heap[this.length++] = t;
50
+ push(e) {
51
+ this.heap[this.length++] = e;
76
52
  }
77
53
  pop() {
78
54
  return this.heap[--this.length];
79
55
  }
80
56
  };
81
- var L = class c2 {
57
+ var L = class u2 {
82
58
  #o;
83
- #c;
59
+ #u;
84
60
  #w;
85
- #C;
61
+ #D;
86
62
  #S;
87
- #L;
88
- #I;
63
+ #M;
64
+ #U;
89
65
  #m;
90
66
  get perf() {
91
67
  return this.#m;
@@ -106,429 +82,484 @@ var L = class c2 {
106
82
  allowStaleOnFetchRejection;
107
83
  ignoreFetchAbort;
108
84
  #n;
109
- #_;
85
+ #b;
110
86
  #s;
111
87
  #i;
112
88
  #t;
113
89
  #a;
114
- #u;
90
+ #c;
115
91
  #l;
116
92
  #h;
117
- #b;
118
- #r;
119
93
  #y;
120
- #A;
94
+ #r;
95
+ #_;
96
+ #F;
121
97
  #d;
122
98
  #g;
123
99
  #T;
124
- #v;
100
+ #W;
125
101
  #f;
126
- #U;
127
- static unsafeExposeInternals(t) {
128
- return { starts: t.#A, ttls: t.#d, autopurgeTimers: t.#g, sizes: t.#y, keyMap: t.#s, keyList: t.#i, valList: t.#t, next: t.#a, prev: t.#u, get head() {
129
- return t.#l;
102
+ #j;
103
+ static unsafeExposeInternals(e) {
104
+ return { starts: e.#F, ttls: e.#d, autopurgeTimers: e.#g, sizes: e.#_, keyMap: e.#s, keyList: e.#i, valList: e.#t, next: e.#a, prev: e.#c, get head() {
105
+ return e.#l;
130
106
  }, get tail() {
131
- return t.#h;
132
- }, free: t.#b, isBackgroundFetch: (e) => t.#e(e), backgroundFetch: (e, i2, s, n7) => t.#G(e, i2, s, n7), moveToTail: (e) => t.#D(e), indexes: (e) => t.#F(e), rindexes: (e) => t.#O(e), isStale: (e) => t.#p(e) };
107
+ return e.#h;
108
+ }, free: e.#y, isBackgroundFetch: (t) => e.#e(t), backgroundFetch: (t, i2, s, n7) => e.#P(t, i2, s, n7), moveToTail: (t) => e.#L(t), indexes: (t) => e.#A(t), rindexes: (t) => e.#z(t), isStale: (t) => e.#p(t) };
133
109
  }
134
110
  get max() {
135
111
  return this.#o;
136
112
  }
137
113
  get maxSize() {
138
- return this.#c;
114
+ return this.#u;
139
115
  }
140
116
  get calculatedSize() {
141
- return this.#_;
117
+ return this.#b;
142
118
  }
143
119
  get size() {
144
120
  return this.#n;
145
121
  }
146
122
  get fetchMethod() {
147
- return this.#L;
123
+ return this.#M;
148
124
  }
149
125
  get memoMethod() {
150
- return this.#I;
126
+ return this.#U;
151
127
  }
152
128
  get dispose() {
153
129
  return this.#w;
154
130
  }
155
131
  get onInsert() {
156
- return this.#C;
132
+ return this.#D;
157
133
  }
158
134
  get disposeAfter() {
159
135
  return this.#S;
160
136
  }
161
- constructor(t) {
162
- let { max: e = 0, ttl: i2, ttlResolution: s = 1, ttlAutopurge: n7, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: r, dispose: a2, onInsert: w2, disposeAfter: f, noDisposeOnSet: d2, noUpdateTTL: g2, maxSize: A3 = 0, maxEntrySize: p = 0, sizeCalculation: _3, fetchMethod: l, memoMethod: S2, noDeleteOnFetchRejection: b, noDeleteOnStaleGet: m2, allowStaleOnFetchRejection: u2, allowStaleOnFetchAbort: T3, ignoreFetchAbort: F3, perf: v3 } = t;
163
- if (v3 !== void 0 && typeof v3?.now != "function") throw new TypeError("perf option must have a now() method if specified");
164
- if (this.#m = v3 ?? x, e !== 0 && !y(e)) throw new TypeError("max option must be a nonnegative integer");
165
- let O2 = e ? M(e) : Array;
166
- if (!O2) throw new Error("invalid max value: " + e);
167
- if (this.#o = e, this.#c = A3, this.maxEntrySize = p || this.#c, this.sizeCalculation = _3, this.sizeCalculation) {
168
- if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
137
+ constructor(e) {
138
+ let { max: t = 0, ttl: i2, ttlResolution: s = 1, ttlAutopurge: n7, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: g2, noUpdateTTL: p, maxSize: T3 = 0, maxEntrySize: w2 = 0, sizeCalculation: y2, fetchMethod: a2, memoMethod: m2, noDeleteOnFetchRejection: _3, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: d2, allowStaleOnFetchAbort: A3, ignoreFetchAbort: z, perf: x2 } = e;
139
+ if (x2 !== void 0 && typeof x2?.now != "function") throw new TypeError("perf option must have a now() method if specified");
140
+ if (this.#m = x2 ?? G, t !== 0 && !F(t)) throw new TypeError("max option must be a nonnegative integer");
141
+ let v3 = t ? U(t) : Array;
142
+ if (!v3) throw new Error("invalid max value: " + t);
143
+ if (this.#o = t, this.#u = T3, this.maxEntrySize = w2 || this.#u, this.sizeCalculation = y2, this.sizeCalculation) {
144
+ if (!this.#u && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
169
145
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
170
146
  }
171
- if (S2 !== void 0 && typeof S2 != "function") throw new TypeError("memoMethod must be a function if defined");
172
- if (this.#I = S2, l !== void 0 && typeof l != "function") throw new TypeError("fetchMethod must be a function if specified");
173
- if (this.#L = l, this.#v = !!l, this.#s = /* @__PURE__ */ new Map(), this.#i = new Array(e).fill(void 0), this.#t = new Array(e).fill(void 0), this.#a = new O2(e), this.#u = new O2(e), this.#l = 0, this.#h = 0, this.#b = W.create(e), this.#n = 0, this.#_ = 0, typeof a2 == "function" && (this.#w = a2), typeof w2 == "function" && (this.#C = w2), typeof f == "function" ? (this.#S = f, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#w, this.#U = !!this.#C, this.#f = !!this.#S, this.noDisposeOnSet = !!d2, this.noUpdateTTL = !!g2, this.noDeleteOnFetchRejection = !!b, this.allowStaleOnFetchRejection = !!u2, this.allowStaleOnFetchAbort = !!T3, this.ignoreFetchAbort = !!F3, this.maxEntrySize !== 0) {
174
- if (this.#c !== 0 && !y(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
175
- if (!y(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
176
- this.#B();
147
+ if (m2 !== void 0 && typeof m2 != "function") throw new TypeError("memoMethod must be a function if defined");
148
+ if (this.#U = m2, a2 !== void 0 && typeof a2 != "function") throw new TypeError("fetchMethod must be a function if specified");
149
+ if (this.#M = a2, this.#W = !!a2, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t }).fill(void 0), this.#t = Array.from({ length: t }).fill(void 0), this.#a = new v3(t), this.#c = new v3(t), this.#l = 0, this.#h = 0, this.#y = R.create(t), this.#n = 0, this.#b = 0, typeof l == "function" && (this.#w = l), typeof c == "function" && (this.#D = c), typeof f == "function" ? (this.#S = f, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#w, this.#j = !!this.#D, this.#f = !!this.#S, this.noDisposeOnSet = !!g2, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!_3, this.allowStaleOnFetchRejection = !!d2, this.allowStaleOnFetchAbort = !!A3, this.ignoreFetchAbort = !!z, this.maxEntrySize !== 0) {
150
+ if (this.#u !== 0 && !F(this.#u)) throw new TypeError("maxSize must be a positive integer if specified");
151
+ if (!F(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
152
+ this.#X();
177
153
  }
178
- if (this.allowStale = !!r, this.noDeleteOnStaleGet = !!m2, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!h, this.ttlResolution = y(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n7, this.ttl = i2 || 0, this.ttl) {
179
- if (!y(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
180
- this.#j();
154
+ if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!r, this.ttlResolution = F(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n7, this.ttl = i2 || 0, this.ttl) {
155
+ if (!F(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
156
+ this.#H();
181
157
  }
182
- if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
183
- if (!this.ttlAutopurge && !this.#o && !this.#c) {
158
+ if (this.#o === 0 && this.ttl === 0 && this.#u === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
159
+ if (!this.ttlAutopurge && !this.#o && !this.#u) {
184
160
  let E = "LRU_CACHE_UNBOUNDED";
185
- G(E) && (I.add(E), U("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, c2));
161
+ H(E) && (M.add(E), P("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, u2));
186
162
  }
187
163
  }
188
- getRemainingTTL(t) {
189
- return this.#s.has(t) ? 1 / 0 : 0;
190
- }
191
- #j() {
192
- let t = new z(this.#o), e = new z(this.#o);
193
- this.#d = t, this.#A = e;
194
- let i2 = this.ttlAutopurge ? new Array(this.#o) : void 0;
195
- this.#g = i2, this.#N = (h, r, a2 = this.#m.now()) => {
196
- e[h] = r !== 0 ? a2 : 0, t[h] = r, s(h, r);
197
- }, this.#R = (h) => {
198
- e[h] = t[h] !== 0 ? this.#m.now() : 0, s(h, t[h]);
164
+ getRemainingTTL(e) {
165
+ return this.#s.has(e) ? 1 / 0 : 0;
166
+ }
167
+ #H() {
168
+ let e = new O(this.#o), t = new O(this.#o);
169
+ this.#d = e, this.#F = t;
170
+ let i2 = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
171
+ this.#g = i2, this.#N = (r, h, l = this.#m.now()) => {
172
+ t[r] = h !== 0 ? l : 0, e[r] = h, s(r, h);
173
+ }, this.#x = (r) => {
174
+ t[r] = e[r] !== 0 ? this.#m.now() : 0, s(r, e[r]);
199
175
  };
200
- let s = this.ttlAutopurge ? (h, r) => {
201
- if (i2?.[h] && (clearTimeout(i2[h]), i2[h] = void 0), r && r !== 0 && i2) {
202
- let a2 = setTimeout(() => {
203
- this.#p(h) && this.#E(this.#i[h], "expire");
204
- }, r + 1);
205
- a2.unref && a2.unref(), i2[h] = a2;
176
+ let s = this.ttlAutopurge ? (r, h) => {
177
+ if (i2?.[r] && (clearTimeout(i2[r]), i2[r] = void 0), h && h !== 0 && i2) {
178
+ let l = setTimeout(() => {
179
+ this.#p(r) && this.#v(this.#i[r], "expire");
180
+ }, h + 1);
181
+ l.unref && l.unref(), i2[r] = l;
206
182
  }
207
183
  } : () => {
208
184
  };
209
- this.#z = (h, r) => {
210
- if (t[r]) {
211
- let a2 = t[r], w2 = e[r];
212
- if (!a2 || !w2) return;
213
- h.ttl = a2, h.start = w2, h.now = n7 || o();
214
- let f = h.now - w2;
215
- h.remainingTTL = a2 - f;
185
+ this.#E = (r, h) => {
186
+ if (e[h]) {
187
+ let l = e[h], c = t[h];
188
+ if (!l || !c) return;
189
+ r.ttl = l, r.start = c, r.now = n7 || o();
190
+ let f = r.now - c;
191
+ r.remainingTTL = l - f;
216
192
  }
217
193
  };
218
194
  let n7 = 0, o = () => {
219
- let h = this.#m.now();
195
+ let r = this.#m.now();
220
196
  if (this.ttlResolution > 0) {
221
- n7 = h;
222
- let r = setTimeout(() => n7 = 0, this.ttlResolution);
223
- r.unref && r.unref();
197
+ n7 = r;
198
+ let h = setTimeout(() => n7 = 0, this.ttlResolution);
199
+ h.unref && h.unref();
224
200
  }
225
- return h;
201
+ return r;
226
202
  };
227
- this.getRemainingTTL = (h) => {
228
- let r = this.#s.get(h);
229
- if (r === void 0) return 0;
230
- let a2 = t[r], w2 = e[r];
231
- if (!a2 || !w2) return 1 / 0;
232
- let f = (n7 || o()) - w2;
233
- return a2 - f;
234
- }, this.#p = (h) => {
235
- let r = e[h], a2 = t[h];
236
- return !!a2 && !!r && (n7 || o()) - r > a2;
203
+ this.getRemainingTTL = (r) => {
204
+ let h = this.#s.get(r);
205
+ if (h === void 0) return 0;
206
+ let l = e[h], c = t[h];
207
+ if (!l || !c) return 1 / 0;
208
+ let f = (n7 || o()) - c;
209
+ return l - f;
210
+ }, this.#p = (r) => {
211
+ let h = t[r], l = e[r];
212
+ return !!l && !!h && (n7 || o()) - h > l;
237
213
  };
238
214
  }
239
- #R = () => {
215
+ #x = () => {
240
216
  };
241
- #z = () => {
217
+ #E = () => {
242
218
  };
243
219
  #N = () => {
244
220
  };
245
221
  #p = () => false;
246
- #B() {
247
- let t = new z(this.#o);
248
- this.#_ = 0, this.#y = t, this.#W = (e) => {
249
- this.#_ -= t[e], t[e] = 0;
250
- }, this.#P = (e, i2, s, n7) => {
222
+ #X() {
223
+ let e = new O(this.#o);
224
+ this.#b = 0, this.#_ = e, this.#R = (t) => {
225
+ this.#b -= e[t], e[t] = 0;
226
+ }, this.#k = (t, i2, s, n7) => {
251
227
  if (this.#e(i2)) return 0;
252
- if (!y(s)) if (n7) {
228
+ if (!F(s)) if (n7) {
253
229
  if (typeof n7 != "function") throw new TypeError("sizeCalculation must be a function");
254
- if (s = n7(i2, e), !y(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
230
+ if (s = n7(i2, t), !F(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
255
231
  } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
256
232
  return s;
257
- }, this.#M = (e, i2, s) => {
258
- if (t[e] = i2, this.#c) {
259
- let n7 = this.#c - t[e];
260
- for (; this.#_ > n7; ) this.#x(true);
233
+ }, this.#I = (t, i2, s) => {
234
+ if (e[t] = i2, this.#u) {
235
+ let n7 = this.#u - e[t];
236
+ for (; this.#b > n7; ) this.#G(true);
261
237
  }
262
- this.#_ += t[e], s && (s.entrySize = i2, s.totalCalculatedSize = this.#_);
238
+ this.#b += e[t], s && (s.entrySize = i2, s.totalCalculatedSize = this.#b);
263
239
  };
264
240
  }
265
- #W = (t) => {
241
+ #R = (e) => {
266
242
  };
267
- #M = (t, e, i2) => {
243
+ #I = (e, t, i2) => {
268
244
  };
269
- #P = (t, e, i2, s) => {
245
+ #k = (e, t, i2, s) => {
270
246
  if (i2 || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
271
247
  return 0;
272
248
  };
273
- *#F({ allowStale: t = this.allowStale } = {}) {
274
- if (this.#n) for (let e = this.#h; !(!this.#H(e) || ((t || !this.#p(e)) && (yield e), e === this.#l)); ) e = this.#u[e];
249
+ *#A({ allowStale: e = this.allowStale } = {}) {
250
+ if (this.#n) for (let t = this.#h; this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#l); ) t = this.#c[t];
275
251
  }
276
- *#O({ allowStale: t = this.allowStale } = {}) {
277
- if (this.#n) for (let e = this.#l; !(!this.#H(e) || ((t || !this.#p(e)) && (yield e), e === this.#h)); ) e = this.#a[e];
252
+ *#z({ allowStale: e = this.allowStale } = {}) {
253
+ if (this.#n) for (let t = this.#l; this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#h); ) t = this.#a[t];
278
254
  }
279
- #H(t) {
280
- return t !== void 0 && this.#s.get(this.#i[t]) === t;
255
+ #V(e) {
256
+ return e !== void 0 && this.#s.get(this.#i[e]) === e;
281
257
  }
282
258
  *entries() {
283
- for (let t of this.#F()) this.#t[t] !== void 0 && this.#i[t] !== void 0 && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
259
+ for (let e of this.#A()) this.#t[e] !== void 0 && this.#i[e] !== void 0 && !this.#e(this.#t[e]) && (yield [this.#i[e], this.#t[e]]);
284
260
  }
285
261
  *rentries() {
286
- for (let t of this.#O()) this.#t[t] !== void 0 && this.#i[t] !== void 0 && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
262
+ for (let e of this.#z()) this.#t[e] !== void 0 && this.#i[e] !== void 0 && !this.#e(this.#t[e]) && (yield [this.#i[e], this.#t[e]]);
287
263
  }
288
264
  *keys() {
289
- for (let t of this.#F()) {
290
- let e = this.#i[t];
291
- e !== void 0 && !this.#e(this.#t[t]) && (yield e);
265
+ for (let e of this.#A()) {
266
+ let t = this.#i[e];
267
+ t !== void 0 && !this.#e(this.#t[e]) && (yield t);
292
268
  }
293
269
  }
294
270
  *rkeys() {
295
- for (let t of this.#O()) {
296
- let e = this.#i[t];
297
- e !== void 0 && !this.#e(this.#t[t]) && (yield e);
271
+ for (let e of this.#z()) {
272
+ let t = this.#i[e];
273
+ t !== void 0 && !this.#e(this.#t[e]) && (yield t);
298
274
  }
299
275
  }
300
276
  *values() {
301
- for (let t of this.#F()) this.#t[t] !== void 0 && !this.#e(this.#t[t]) && (yield this.#t[t]);
277
+ for (let e of this.#A()) this.#t[e] !== void 0 && !this.#e(this.#t[e]) && (yield this.#t[e]);
302
278
  }
303
279
  *rvalues() {
304
- for (let t of this.#O()) this.#t[t] !== void 0 && !this.#e(this.#t[t]) && (yield this.#t[t]);
280
+ for (let e of this.#z()) this.#t[e] !== void 0 && !this.#e(this.#t[e]) && (yield this.#t[e]);
305
281
  }
306
282
  [Symbol.iterator]() {
307
283
  return this.entries();
308
284
  }
309
285
  [Symbol.toStringTag] = "LRUCache";
310
- find(t, e = {}) {
311
- for (let i2 of this.#F()) {
286
+ find(e, t = {}) {
287
+ for (let i2 of this.#A()) {
312
288
  let s = this.#t[i2], n7 = this.#e(s) ? s.__staleWhileFetching : s;
313
- if (n7 !== void 0 && t(n7, this.#i[i2], this)) return this.get(this.#i[i2], e);
289
+ if (n7 !== void 0 && e(n7, this.#i[i2], this)) return this.#C(this.#i[i2], t);
314
290
  }
315
291
  }
316
- forEach(t, e = this) {
317
- for (let i2 of this.#F()) {
292
+ forEach(e, t = this) {
293
+ for (let i2 of this.#A()) {
318
294
  let s = this.#t[i2], n7 = this.#e(s) ? s.__staleWhileFetching : s;
319
- n7 !== void 0 && t.call(e, n7, this.#i[i2], this);
295
+ n7 !== void 0 && e.call(t, n7, this.#i[i2], this);
320
296
  }
321
297
  }
322
- rforEach(t, e = this) {
323
- for (let i2 of this.#O()) {
298
+ rforEach(e, t = this) {
299
+ for (let i2 of this.#z()) {
324
300
  let s = this.#t[i2], n7 = this.#e(s) ? s.__staleWhileFetching : s;
325
- n7 !== void 0 && t.call(e, n7, this.#i[i2], this);
301
+ n7 !== void 0 && e.call(t, n7, this.#i[i2], this);
326
302
  }
327
303
  }
328
304
  purgeStale() {
329
- let t = false;
330
- for (let e of this.#O({ allowStale: true })) this.#p(e) && (this.#E(this.#i[e], "expire"), t = true);
331
- return t;
305
+ let e = false;
306
+ for (let t of this.#z({ allowStale: true })) this.#p(t) && (this.#v(this.#i[t], "expire"), e = true);
307
+ return e;
332
308
  }
333
- info(t) {
334
- let e = this.#s.get(t);
335
- if (e === void 0) return;
336
- let i2 = this.#t[e], s = this.#e(i2) ? i2.__staleWhileFetching : i2;
309
+ info(e) {
310
+ let t = this.#s.get(e);
311
+ if (t === void 0) return;
312
+ let i2 = this.#t[t], s = this.#e(i2) ? i2.__staleWhileFetching : i2;
337
313
  if (s === void 0) return;
338
314
  let n7 = { value: s };
339
- if (this.#d && this.#A) {
340
- let o = this.#d[e], h = this.#A[e];
341
- if (o && h) {
342
- let r = o - (this.#m.now() - h);
343
- n7.ttl = r, n7.start = Date.now();
315
+ if (this.#d && this.#F) {
316
+ let o = this.#d[t], r = this.#F[t];
317
+ if (o && r) {
318
+ let h = o - (this.#m.now() - r);
319
+ n7.ttl = h, n7.start = Date.now();
344
320
  }
345
321
  }
346
- return this.#y && (n7.size = this.#y[e]), n7;
322
+ return this.#_ && (n7.size = this.#_[t]), n7;
347
323
  }
348
324
  dump() {
349
- let t = [];
350
- for (let e of this.#F({ allowStale: true })) {
351
- let i2 = this.#i[e], s = this.#t[e], n7 = this.#e(s) ? s.__staleWhileFetching : s;
325
+ let e = [];
326
+ for (let t of this.#A({ allowStale: true })) {
327
+ let i2 = this.#i[t], s = this.#t[t], n7 = this.#e(s) ? s.__staleWhileFetching : s;
352
328
  if (n7 === void 0 || i2 === void 0) continue;
353
329
  let o = { value: n7 };
354
- if (this.#d && this.#A) {
355
- o.ttl = this.#d[e];
356
- let h = this.#m.now() - this.#A[e];
357
- o.start = Math.floor(Date.now() - h);
330
+ if (this.#d && this.#F) {
331
+ o.ttl = this.#d[t];
332
+ let r = this.#m.now() - this.#F[t];
333
+ o.start = Math.floor(Date.now() - r);
358
334
  }
359
- this.#y && (o.size = this.#y[e]), t.unshift([i2, o]);
335
+ this.#_ && (o.size = this.#_[t]), e.unshift([i2, o]);
360
336
  }
361
- return t;
337
+ return e;
362
338
  }
363
- load(t) {
339
+ load(e) {
364
340
  this.clear();
365
- for (let [e, i2] of t) {
341
+ for (let [t, i2] of e) {
366
342
  if (i2.start) {
367
343
  let s = Date.now() - i2.start;
368
344
  i2.start = this.#m.now() - s;
369
345
  }
370
- this.set(e, i2.value, i2);
346
+ this.#O(t, i2.value, i2);
371
347
  }
372
348
  }
373
- set(t, e, i2 = {}) {
374
- if (e === void 0) return this.delete(t), this;
375
- let { ttl: s = this.ttl, start: n7, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: r } = i2, { noUpdateTTL: a2 = this.noUpdateTTL } = i2, w2 = this.#P(t, e, i2.size || 0, h);
376
- if (this.maxEntrySize && w2 > this.maxEntrySize) return r && (r.set = "miss", r.maxEntrySizeExceeded = true), this.#E(t, "set"), this;
377
- let f = this.#n === 0 ? void 0 : this.#s.get(t);
378
- if (f === void 0) f = this.#n === 0 ? this.#h : this.#b.length !== 0 ? this.#b.pop() : this.#n === this.#o ? this.#x(false) : this.#n, this.#i[f] = t, this.#t[f] = e, this.#s.set(t, f), this.#a[this.#h] = f, this.#u[f] = this.#h, this.#h = f, this.#n++, this.#M(f, w2, r), r && (r.set = "add"), a2 = false, this.#U && this.#C?.(e, t, "add");
349
+ set(e, t, i2 = {}) {
350
+ let { status: s = S.hasSubscribers ? {} : void 0 } = i2;
351
+ i2.status = s, s && (s.op = "set", s.key = e, t !== void 0 && (s.value = t));
352
+ let n7 = this.#O(e, t, i2);
353
+ return s && S.hasSubscribers && S.publish(s), n7;
354
+ }
355
+ #O(e, t, i2 = {}) {
356
+ let { ttl: s = this.ttl, start: n7, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i2;
357
+ if (t === void 0) return h && (h.set = "deleted"), this.delete(e), this;
358
+ let { noUpdateTTL: l = this.noUpdateTTL } = i2;
359
+ h && !this.#e(t) && (h.value = t);
360
+ let c = this.#k(e, t, i2.size || 0, r, h);
361
+ if (this.maxEntrySize && c > this.maxEntrySize) return this.#v(e, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
362
+ let f = this.#n === 0 ? void 0 : this.#s.get(e);
363
+ if (f === void 0) f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = e, this.#t[f] = t, this.#s.set(e, f), this.#a[this.#h] = f, this.#c[f] = this.#h, this.#h = f, this.#n++, this.#I(f, c, h), h && (h.set = "add"), l = false, this.#j && this.#D?.(t, e, "add");
379
364
  else {
380
- this.#D(f);
381
- let d2 = this.#t[f];
382
- if (e !== d2) {
383
- if (this.#v && this.#e(d2)) {
384
- d2.__abortController.abort(new Error("replaced"));
385
- let { __staleWhileFetching: g2 } = d2;
386
- g2 !== void 0 && !o && (this.#T && this.#w?.(g2, t, "set"), this.#f && this.#r?.push([g2, t, "set"]));
387
- } else o || (this.#T && this.#w?.(d2, t, "set"), this.#f && this.#r?.push([d2, t, "set"]));
388
- if (this.#W(f), this.#M(f, w2, r), this.#t[f] = e, r) {
389
- r.set = "replace";
390
- let g2 = d2 && this.#e(d2) ? d2.__staleWhileFetching : d2;
391
- g2 !== void 0 && (r.oldValue = g2);
365
+ this.#L(f);
366
+ let g2 = this.#t[f];
367
+ if (t !== g2) {
368
+ if (this.#W && this.#e(g2)) {
369
+ g2.__abortController.abort(new Error("replaced"));
370
+ let { __staleWhileFetching: p } = g2;
371
+ p !== void 0 && !o && (this.#T && this.#w?.(p, e, "set"), this.#f && this.#r?.push([p, e, "set"]));
372
+ } else o || (this.#T && this.#w?.(g2, e, "set"), this.#f && this.#r?.push([g2, e, "set"]));
373
+ if (this.#R(f), this.#I(f, c, h), this.#t[f] = t, h) {
374
+ h.set = "replace";
375
+ let p = g2 && this.#e(g2) ? g2.__staleWhileFetching : g2;
376
+ p !== void 0 && (h.oldValue = p);
392
377
  }
393
- } else r && (r.set = "update");
394
- this.#U && this.onInsert?.(e, t, e === d2 ? "update" : "replace");
378
+ } else h && (h.set = "update");
379
+ this.#j && this.onInsert?.(t, e, t === g2 ? "update" : "replace");
395
380
  }
396
- if (s !== 0 && !this.#d && this.#j(), this.#d && (a2 || this.#N(f, s, n7), r && this.#z(r, f)), !o && this.#f && this.#r) {
397
- let d2 = this.#r, g2;
398
- for (; g2 = d2?.shift(); ) this.#S?.(...g2);
381
+ if (s !== 0 && !this.#d && this.#H(), this.#d && (l || this.#N(f, s, n7), h && this.#E(h, f)), !o && this.#f && this.#r) {
382
+ let g2 = this.#r, p;
383
+ for (; p = g2?.shift(); ) this.#S?.(...p);
399
384
  }
400
385
  return this;
401
386
  }
402
387
  pop() {
403
388
  try {
404
389
  for (; this.#n; ) {
405
- let t = this.#t[this.#l];
406
- if (this.#x(true), this.#e(t)) {
407
- if (t.__staleWhileFetching) return t.__staleWhileFetching;
408
- } else if (t !== void 0) return t;
390
+ let e = this.#t[this.#l];
391
+ if (this.#G(true), this.#e(e)) {
392
+ if (e.__staleWhileFetching) return e.__staleWhileFetching;
393
+ } else if (e !== void 0) return e;
409
394
  }
410
395
  } finally {
411
396
  if (this.#f && this.#r) {
412
- let t = this.#r, e;
413
- for (; e = t?.shift(); ) this.#S?.(...e);
397
+ let e = this.#r, t;
398
+ for (; t = e?.shift(); ) this.#S?.(...t);
414
399
  }
415
400
  }
416
401
  }
417
- #x(t) {
418
- let e = this.#l, i2 = this.#i[e], s = this.#t[e];
419
- return this.#v && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#w?.(s, i2, "evict"), this.#f && this.#r?.push([s, i2, "evict"])), this.#W(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = void 0), t && (this.#i[e] = void 0, this.#t[e] = void 0, this.#b.push(e)), this.#n === 1 ? (this.#l = this.#h = 0, this.#b.length = 0) : this.#l = this.#a[e], this.#s.delete(i2), this.#n--, e;
402
+ #G(e) {
403
+ let t = this.#l, i2 = this.#i[t], s = this.#t[t];
404
+ return this.#W && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#w?.(s, i2, "evict"), this.#f && this.#r?.push([s, i2, "evict"])), this.#R(t), this.#g?.[t] && (clearTimeout(this.#g[t]), this.#g[t] = void 0), e && (this.#i[t] = void 0, this.#t[t] = void 0, this.#y.push(t)), this.#n === 1 ? (this.#l = this.#h = 0, this.#y.length = 0) : this.#l = this.#a[t], this.#s.delete(i2), this.#n--, t;
420
405
  }
421
- has(t, e = {}) {
422
- let { updateAgeOnHas: i2 = this.updateAgeOnHas, status: s } = e, n7 = this.#s.get(t);
406
+ has(e, t = {}) {
407
+ let { status: i2 = S.hasSubscribers ? {} : void 0 } = t;
408
+ t.status = i2, i2 && (i2.op = "has", i2.key = e);
409
+ let s = this.#Y(e, t);
410
+ return S.hasSubscribers && S.publish(i2), s;
411
+ }
412
+ #Y(e, t = {}) {
413
+ let { updateAgeOnHas: i2 = this.updateAgeOnHas, status: s } = t, n7 = this.#s.get(e);
423
414
  if (n7 !== void 0) {
424
415
  let o = this.#t[n7];
425
416
  if (this.#e(o) && o.__staleWhileFetching === void 0) return false;
426
- if (this.#p(n7)) s && (s.has = "stale", this.#z(s, n7));
427
- else return i2 && this.#R(n7), s && (s.has = "hit", this.#z(s, n7)), true;
417
+ if (this.#p(n7)) s && (s.has = "stale", this.#E(s, n7));
418
+ else return i2 && this.#x(n7), s && (s.has = "hit", this.#E(s, n7)), true;
428
419
  } else s && (s.has = "miss");
429
420
  return false;
430
421
  }
431
- peek(t, e = {}) {
432
- let { allowStale: i2 = this.allowStale } = e, s = this.#s.get(t);
433
- if (s === void 0 || !i2 && this.#p(s)) return;
434
- let n7 = this.#t[s];
435
- return this.#e(n7) ? n7.__staleWhileFetching : n7;
422
+ peek(e, t = {}) {
423
+ let { status: i2 = D() ? {} : void 0 } = t;
424
+ i2 && (i2.op = "peek", i2.key = e), t.status = i2;
425
+ let s = this.#J(e, t);
426
+ return S.hasSubscribers && S.publish(i2), s;
436
427
  }
437
- #G(t, e, i2, s) {
438
- let n7 = e === void 0 ? void 0 : this.#t[e];
428
+ #J(e, t) {
429
+ let { status: i2, allowStale: s = this.allowStale } = t, n7 = this.#s.get(e);
430
+ if (n7 === void 0 || !s && this.#p(n7)) {
431
+ i2 && (i2.peek = n7 === void 0 ? "miss" : "stale");
432
+ return;
433
+ }
434
+ let o = this.#t[n7], r = this.#e(o) ? o.__staleWhileFetching : o;
435
+ return i2 && (r !== void 0 ? (i2.peek = "hit", i2.value = r) : i2.peek = "miss"), r;
436
+ }
437
+ #P(e, t, i2, s) {
438
+ let n7 = t === void 0 ? void 0 : this.#t[t];
439
439
  if (this.#e(n7)) return n7;
440
- let o = new C(), { signal: h } = i2;
441
- h?.addEventListener("abort", () => o.abort(h.reason), { signal: o.signal });
442
- let r = { signal: o.signal, options: i2, context: s }, a2 = (p, _3 = false) => {
443
- let { aborted: l } = o.signal, S2 = i2.ignoreFetchAbort && p !== void 0, b = i2.ignoreFetchAbort || !!(i2.allowStaleOnFetchAbort && p !== void 0);
444
- if (i2.status && (l && !_3 ? (i2.status.fetchAborted = true, i2.status.fetchError = o.signal.reason, S2 && (i2.status.fetchAbortIgnored = true)) : i2.status.fetchResolved = true), l && !S2 && !_3) return f(o.signal.reason, b);
445
- let m2 = g2, u2 = this.#t[e];
446
- return (u2 === g2 || S2 && _3 && u2 === void 0) && (p === void 0 ? m2.__staleWhileFetching !== void 0 ? this.#t[e] = m2.__staleWhileFetching : this.#E(t, "fetch") : (i2.status && (i2.status.fetchUpdated = true), this.set(t, p, r.options))), p;
447
- }, w2 = (p) => (i2.status && (i2.status.fetchRejected = true, i2.status.fetchError = p), f(p, false)), f = (p, _3) => {
448
- let { aborted: l } = o.signal, S2 = l && i2.allowStaleOnFetchAbort, b = S2 || i2.allowStaleOnFetchRejection, m2 = b || i2.noDeleteOnFetchRejection, u2 = g2;
449
- if (this.#t[e] === g2 && (!m2 || !_3 && u2.__staleWhileFetching === void 0 ? this.#E(t, "fetch") : S2 || (this.#t[e] = u2.__staleWhileFetching)), b) return i2.status && u2.__staleWhileFetching !== void 0 && (i2.status.returnedStale = true), u2.__staleWhileFetching;
450
- if (u2.__returned === u2) throw p;
451
- }, d2 = (p, _3) => {
452
- let l = this.#L?.(t, n7, r);
453
- l && l instanceof Promise && l.then((S2) => p(S2 === void 0 ? void 0 : S2), _3), o.signal.addEventListener("abort", () => {
454
- (!i2.ignoreFetchAbort || i2.allowStaleOnFetchAbort) && (p(void 0), i2.allowStaleOnFetchAbort && (p = (S2) => a2(S2, true)));
440
+ let o = new AbortController(), { signal: r } = i2;
441
+ r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
442
+ let h = { signal: o.signal, options: i2, context: s }, l = (w2, y2 = false) => {
443
+ let { aborted: a2 } = o.signal, m2 = i2.ignoreFetchAbort && w2 !== void 0, _3 = i2.ignoreFetchAbort || !!(i2.allowStaleOnFetchAbort && w2 !== void 0);
444
+ if (i2.status && (a2 && !y2 ? (i2.status.fetchAborted = true, i2.status.fetchError = o.signal.reason, m2 && (i2.status.fetchAbortIgnored = true)) : i2.status.fetchResolved = true), a2 && !m2 && !y2) return f(o.signal.reason, _3);
445
+ let b = p, d2 = this.#t[t];
446
+ return (d2 === p || d2 === void 0 && m2 && y2) && (w2 === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t] = b.__staleWhileFetching : this.#v(e, "fetch") : (i2.status && (i2.status.fetchUpdated = true), this.#O(e, w2, h.options))), w2;
447
+ }, c = (w2) => (i2.status && (i2.status.fetchRejected = true, i2.status.fetchError = w2), f(w2, false)), f = (w2, y2) => {
448
+ let { aborted: a2 } = o.signal, m2 = a2 && i2.allowStaleOnFetchAbort, _3 = m2 || i2.allowStaleOnFetchRejection, b = _3 || i2.noDeleteOnFetchRejection, d2 = p;
449
+ if (this.#t[t] === p && (!b || !y2 && d2.__staleWhileFetching === void 0 ? this.#v(e, "fetch") : m2 || (this.#t[t] = d2.__staleWhileFetching)), _3) return i2.status && d2.__staleWhileFetching !== void 0 && (i2.status.returnedStale = true), d2.__staleWhileFetching;
450
+ if (d2.__returned === d2) throw w2;
451
+ }, g2 = (w2, y2) => {
452
+ let a2 = this.#M?.(e, n7, h);
453
+ a2 && a2 instanceof Promise && a2.then((m2) => w2(m2 === void 0 ? void 0 : m2), y2), o.signal.addEventListener("abort", () => {
454
+ (!i2.ignoreFetchAbort || i2.allowStaleOnFetchAbort) && (w2(void 0), i2.allowStaleOnFetchAbort && (w2 = (m2) => l(m2, true)));
455
455
  });
456
456
  };
457
457
  i2.status && (i2.status.fetchDispatched = true);
458
- let g2 = new Promise(d2).then(a2, w2), A3 = Object.assign(g2, { __abortController: o, __staleWhileFetching: n7, __returned: void 0 });
459
- return e === void 0 ? (this.set(t, A3, { ...r.options, status: void 0 }), e = this.#s.get(t)) : this.#t[e] = A3, A3;
460
- }
461
- #e(t) {
462
- if (!this.#v) return false;
463
- let e = t;
464
- return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof C;
465
- }
466
- async fetch(t, e = {}) {
467
- let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n7 = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: r = 0, sizeCalculation: a2 = this.sizeCalculation, noUpdateTTL: w2 = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: g2 = this.ignoreFetchAbort, allowStaleOnFetchAbort: A3 = this.allowStaleOnFetchAbort, context: p, forceRefresh: _3 = false, status: l, signal: S2 } = e;
468
- if (!this.#v) return l && (l.fetch = "get"), this.get(t, { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n7, status: l });
469
- let b = { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n7, ttl: o, noDisposeOnSet: h, size: r, sizeCalculation: a2, noUpdateTTL: w2, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: d2, allowStaleOnFetchAbort: A3, ignoreFetchAbort: g2, status: l, signal: S2 }, m2 = this.#s.get(t);
470
- if (m2 === void 0) {
471
- l && (l.fetch = "miss");
472
- let u2 = this.#G(t, m2, b, p);
473
- return u2.__returned = u2;
458
+ let p = new Promise(g2).then(l, c), T3 = Object.assign(p, { __abortController: o, __staleWhileFetching: n7, __returned: void 0 });
459
+ return t === void 0 ? (this.#O(e, T3, { ...h.options, status: void 0 }), t = this.#s.get(e)) : this.#t[t] = T3, T3;
460
+ }
461
+ #e(e) {
462
+ if (!this.#W) return false;
463
+ let t = e;
464
+ return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof AbortController;
465
+ }
466
+ fetch(e, t = {}) {
467
+ let i2 = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t;
468
+ t.status = s, s && t.context && (s.context = t.context);
469
+ let n7 = this.#B(e, t);
470
+ return s && D() && i2 && (s.trace = true, W.tracePromise(() => n7, s).catch(() => {
471
+ })), n7;
472
+ }
473
+ async #B(e, t = {}) {
474
+ let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n7 = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: g2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: p = this.ignoreFetchAbort, allowStaleOnFetchAbort: T3 = this.allowStaleOnFetchAbort, context: w2, forceRefresh: y2 = false, status: a2, signal: m2 } = t;
475
+ if (a2 && (a2.op = "fetch", a2.key = e, y2 && (a2.forceRefresh = true)), !this.#W) return a2 && (a2.fetch = "get"), this.#C(e, { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n7, status: a2 });
476
+ let _3 = { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n7, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: g2, allowStaleOnFetchAbort: T3, ignoreFetchAbort: p, status: a2, signal: m2 }, b = this.#s.get(e);
477
+ if (b === void 0) {
478
+ a2 && (a2.fetch = "miss");
479
+ let d2 = this.#P(e, b, _3, w2);
480
+ return d2.__returned = d2;
474
481
  } else {
475
- let u2 = this.#t[m2];
476
- if (this.#e(u2)) {
477
- let E = i2 && u2.__staleWhileFetching !== void 0;
478
- return l && (l.fetch = "inflight", E && (l.returnedStale = true)), E ? u2.__staleWhileFetching : u2.__returned = u2;
482
+ let d2 = this.#t[b];
483
+ if (this.#e(d2)) {
484
+ let E = i2 && d2.__staleWhileFetching !== void 0;
485
+ return a2 && (a2.fetch = "inflight", E && (a2.returnedStale = true)), E ? d2.__staleWhileFetching : d2.__returned = d2;
479
486
  }
480
- let T3 = this.#p(m2);
481
- if (!_3 && !T3) return l && (l.fetch = "hit"), this.#D(m2), s && this.#R(m2), l && this.#z(l, m2), u2;
482
- let F3 = this.#G(t, m2, b, p), O2 = F3.__staleWhileFetching !== void 0 && i2;
483
- return l && (l.fetch = T3 ? "stale" : "refresh", O2 && T3 && (l.returnedStale = true)), O2 ? F3.__staleWhileFetching : F3.__returned = F3;
487
+ let A3 = this.#p(b);
488
+ if (!y2 && !A3) return a2 && (a2.fetch = "hit"), this.#L(b), s && this.#x(b), a2 && this.#E(a2, b), d2;
489
+ let z = this.#P(e, b, _3, w2), v3 = z.__staleWhileFetching !== void 0 && i2;
490
+ return a2 && (a2.fetch = A3 ? "stale" : "refresh", v3 && A3 && (a2.returnedStale = true)), v3 ? z.__staleWhileFetching : z.__returned = z;
484
491
  }
485
492
  }
486
- async forceFetch(t, e = {}) {
487
- let i2 = await this.fetch(t, e);
493
+ forceFetch(e, t = {}) {
494
+ let i2 = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t;
495
+ t.status = s, s && t.context && (s.context = t.context);
496
+ let n7 = this.#K(e, t);
497
+ return s && D() && i2 && (s.trace = true, W.tracePromise(() => n7, s).catch(() => {
498
+ })), n7;
499
+ }
500
+ async #K(e, t = {}) {
501
+ let i2 = await this.#B(e, t);
488
502
  if (i2 === void 0) throw new Error("fetch() returned undefined");
489
503
  return i2;
490
504
  }
491
- memo(t, e = {}) {
492
- let i2 = this.#I;
505
+ memo(e, t = {}) {
506
+ let { status: i2 = S.hasSubscribers ? {} : void 0 } = t;
507
+ t.status = i2, i2 && (i2.op = "memo", i2.key = e, t.context && (i2.context = t.context));
508
+ let s = this.#Q(e, t);
509
+ return i2 && (i2.value = s), S.hasSubscribers && S.publish(i2), s;
510
+ }
511
+ #Q(e, t = {}) {
512
+ let i2 = this.#U;
493
513
  if (!i2) throw new Error("no memoMethod provided to constructor");
494
- let { context: s, forceRefresh: n7, ...o } = e, h = this.get(t, o);
495
- if (!n7 && h !== void 0) return h;
496
- let r = i2(t, h, { options: o, context: s });
497
- return this.set(t, r, o), r;
514
+ let { context: s, status: n7, forceRefresh: o, ...r } = t;
515
+ n7 && o && (n7.forceRefresh = true);
516
+ let h = this.#C(e, r), l = o || h === void 0;
517
+ if (n7 && (n7.memo = l ? "miss" : "hit", l || (n7.value = h)), !l) return h;
518
+ let c = i2(e, h, { options: r, context: s });
519
+ return n7 && (n7.value = c), this.#O(e, c, r), c;
520
+ }
521
+ get(e, t = {}) {
522
+ let { status: i2 = S.hasSubscribers ? {} : void 0 } = t;
523
+ t.status = i2, i2 && (i2.op = "get", i2.key = e);
524
+ let s = this.#C(e, t);
525
+ return i2 && (s !== void 0 && (i2.value = s), S.hasSubscribers && S.publish(i2)), s;
526
+ }
527
+ #C(e, t = {}) {
528
+ let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n7 = this.noDeleteOnStaleGet, status: o } = t, r = this.#s.get(e);
529
+ if (r === void 0) {
530
+ o && (o.get = "miss");
531
+ return;
532
+ }
533
+ let h = this.#t[r], l = this.#e(h);
534
+ return o && this.#E(o, r), this.#p(r) ? l ? (o && (o.get = "stale-fetching"), i2 && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n7 || this.#v(e, "expire"), o && (o.get = "stale"), i2 ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = l ? "fetching" : "hit"), this.#L(r), s && this.#x(r), l ? h.__staleWhileFetching : h);
498
535
  }
499
- get(t, e = {}) {
500
- let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n7 = this.noDeleteOnStaleGet, status: o } = e, h = this.#s.get(t);
501
- if (h !== void 0) {
502
- let r = this.#t[h], a2 = this.#e(r);
503
- return o && this.#z(o, h), this.#p(h) ? (o && (o.get = "stale"), a2 ? (o && i2 && r.__staleWhileFetching !== void 0 && (o.returnedStale = true), i2 ? r.__staleWhileFetching : void 0) : (n7 || this.#E(t, "expire"), o && i2 && (o.returnedStale = true), i2 ? r : void 0)) : (o && (o.get = "hit"), a2 ? r.__staleWhileFetching : (this.#D(h), s && this.#R(h), r));
504
- } else o && (o.get = "miss");
536
+ #$(e, t) {
537
+ this.#c[t] = e, this.#a[e] = t;
505
538
  }
506
- #k(t, e) {
507
- this.#u[e] = t, this.#a[t] = e;
539
+ #L(e) {
540
+ e !== this.#h && (e === this.#l ? this.#l = this.#a[e] : this.#$(this.#c[e], this.#a[e]), this.#$(this.#h, e), this.#h = e);
508
541
  }
509
- #D(t) {
510
- t !== this.#h && (t === this.#l ? this.#l = this.#a[t] : this.#k(this.#u[t], this.#a[t]), this.#k(this.#h, t), this.#h = t);
542
+ delete(e) {
543
+ return this.#v(e, "delete");
511
544
  }
512
- delete(t) {
513
- return this.#E(t, "delete");
514
- }
515
- #E(t, e) {
545
+ #v(e, t) {
546
+ S.hasSubscribers && S.publish({ op: "delete", delete: t, key: e });
516
547
  let i2 = false;
517
548
  if (this.#n !== 0) {
518
- let s = this.#s.get(t);
519
- if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i2 = true, this.#n === 1) this.#V(e);
549
+ let s = this.#s.get(e);
550
+ if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i2 = true, this.#n === 1) this.#q(t);
520
551
  else {
521
- this.#W(s);
552
+ this.#R(s);
522
553
  let n7 = this.#t[s];
523
- if (this.#e(n7) ? n7.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#w?.(n7, t, e), this.#f && this.#r?.push([n7, t, e])), this.#s.delete(t), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
554
+ if (this.#e(n7) ? n7.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#w?.(n7, e, t), this.#f && this.#r?.push([n7, e, t])), this.#s.delete(e), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#c[s];
524
555
  else if (s === this.#l) this.#l = this.#a[s];
525
556
  else {
526
- let o = this.#u[s];
557
+ let o = this.#c[s];
527
558
  this.#a[o] = this.#a[s];
528
- let h = this.#a[s];
529
- this.#u[h] = this.#u[s];
559
+ let r = this.#a[s];
560
+ this.#c[r] = this.#c[s];
530
561
  }
531
- this.#n--, this.#b.push(s);
562
+ this.#n--, this.#y.push(s);
532
563
  }
533
564
  }
534
565
  if (this.#f && this.#r?.length) {
@@ -538,25 +569,25 @@ var L = class c2 {
538
569
  return i2;
539
570
  }
540
571
  clear() {
541
- return this.#V("delete");
572
+ return this.#q("delete");
542
573
  }
543
- #V(t) {
544
- for (let e of this.#O({ allowStale: true })) {
545
- let i2 = this.#t[e];
574
+ #q(e) {
575
+ for (let t of this.#z({ allowStale: true })) {
576
+ let i2 = this.#t[t];
546
577
  if (this.#e(i2)) i2.__abortController.abort(new Error("deleted"));
547
578
  else {
548
- let s = this.#i[e];
549
- this.#T && this.#w?.(i2, s, t), this.#f && this.#r?.push([i2, s, t]);
579
+ let s = this.#i[t];
580
+ this.#T && this.#w?.(i2, s, e), this.#f && this.#r?.push([i2, s, e]);
550
581
  }
551
582
  }
552
- if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#A) {
553
- this.#d.fill(0), this.#A.fill(0);
554
- for (let e of this.#g ?? []) e !== void 0 && clearTimeout(e);
583
+ if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
584
+ this.#d.fill(0), this.#F.fill(0);
585
+ for (let t of this.#g ?? []) t !== void 0 && clearTimeout(t);
555
586
  this.#g?.fill(void 0);
556
587
  }
557
- if (this.#y && this.#y.fill(0), this.#l = 0, this.#h = 0, this.#b.length = 0, this.#_ = 0, this.#n = 0, this.#f && this.#r) {
558
- let e = this.#r, i2;
559
- for (; i2 = e?.shift(); ) this.#S?.(...i2);
588
+ if (this.#_ && this.#_.fill(0), this.#l = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
589
+ let t = this.#r, i2;
590
+ for (; i2 = t?.shift(); ) this.#S?.(...i2);
560
591
  }
561
592
  }
562
593
  };
@@ -610,7 +641,7 @@ var SpawnPromise = class extends Promise {
610
641
  Object.assign(errorResult, extra);
611
642
  rej(error("command failed", errorResult));
612
643
  };
613
- const resolve = (status, signal) => {
644
+ const resolve6 = (status, signal) => {
614
645
  const stdio = stdioResult(stdout, stderr, opts);
615
646
  const successResult = {
616
647
  command,
@@ -625,13 +656,13 @@ var SpawnPromise = class extends Promise {
625
656
  res(successResult);
626
657
  };
627
658
  proc.on("error", reject);
628
- proc.stdout?.on("data", (c3) => stdout.push(c3)).on("error", reject);
629
- proc.stderr?.on("data", (c3) => stderr.push(c3)).on("error", reject);
659
+ proc.stdout?.on("data", (c) => stdout.push(c)).on("error", reject);
660
+ proc.stderr?.on("data", (c) => stderr.push(c)).on("error", reject);
630
661
  proc.on("close", (status, signal) => {
631
662
  if ((status || signal) && !opts.acceptFail) {
632
663
  reject(void 0, status, signal);
633
664
  } else {
634
- resolve(status, signal);
665
+ resolve6(status, signal);
635
666
  }
636
667
  });
637
668
  });
@@ -645,20 +676,20 @@ function promiseSpawn(command, args, opts = {}, extra = {}) {
645
676
 
646
677
  // ../../node_modules/.vlt/~npm~isexe@3.1.5/node_modules/isexe/dist/esm/index.min.js
647
678
  import { statSync as w } from "node:fs";
648
- import { stat as S } from "node:fs/promises";
679
+ import { stat as S2 } from "node:fs/promises";
649
680
  import { statSync as k } from "node:fs";
650
681
  import { stat as I2 } from "node:fs/promises";
651
682
  import { delimiter as _ } from "node:path";
652
- var y2 = Object.defineProperty;
653
- var u = (t, r) => {
654
- for (var e in r) y2(t, e, { get: r[e], enumerable: true });
683
+ var y = Object.defineProperty;
684
+ var u3 = (t, r) => {
685
+ for (var e in r) y(t, e, { get: r[e], enumerable: true });
655
686
  };
656
687
  var i = {};
657
- u(i, { isexe: () => C2, sync: () => A });
688
+ u3(i, { isexe: () => C2, sync: () => A });
658
689
  var C2 = async (t, r = {}) => {
659
690
  let { ignoreErrors: e = false } = r;
660
691
  try {
661
- return d(await S(t), r);
692
+ return d(await S2(t), r);
662
693
  } catch (s) {
663
694
  let o = s;
664
695
  if (e || o.code === "EACCES") return false;
@@ -679,12 +710,12 @@ var d = (t, r) => t.isFile() && T(t, r);
679
710
  var T = (t, r) => {
680
711
  let e = r.uid ?? process.getuid?.(), s = r.groups ?? process.getgroups?.() ?? [], o = r.gid ?? process.getgid?.() ?? s[0];
681
712
  if (e === void 0 || o === void 0) throw new Error("cannot get uid or gid");
682
- let c3 = /* @__PURE__ */ new Set([o, ...s]), n7 = t.mode, l = t.uid, E = t.gid, f = parseInt("100", 8), p = parseInt("010", 8), x3 = parseInt("001", 8), h = f | p;
683
- return !!(n7 & x3 || n7 & p && c3.has(E) || n7 & f && l === e || n7 & h && e === 0);
713
+ let c = /* @__PURE__ */ new Set([o, ...s]), n7 = t.mode, l = t.uid, E = t.gid, f = parseInt("100", 8), p = parseInt("010", 8), x2 = parseInt("001", 8), h = f | p;
714
+ return !!(n7 & x2 || n7 & p && c.has(E) || n7 & f && l === e || n7 & h && e === 0);
684
715
  };
685
716
  var a = {};
686
- u(a, { isexe: () => F, sync: () => L2 });
687
- var F = async (t, r = {}) => {
717
+ u3(a, { isexe: () => F2, sync: () => L2 });
718
+ var F2 = async (t, r = {}) => {
688
719
  let { ignoreErrors: e = false } = r;
689
720
  try {
690
721
  return m(await I2(t), t, r);
@@ -704,16 +735,16 @@ var L2 = (t, r = {}) => {
704
735
  throw o;
705
736
  }
706
737
  };
707
- var P = (t, r) => {
738
+ var P2 = (t, r) => {
708
739
  let { pathExt: e = process.env.PATHEXT || "" } = r, s = e.split(_);
709
740
  if (s.indexOf("") !== -1) return true;
710
741
  for (let o of s) {
711
- let c3 = o.toLowerCase(), n7 = t.substring(t.length - c3.length).toLowerCase();
712
- if (c3 && n7 === c3) return true;
742
+ let c = o.toLowerCase(), n7 = t.substring(t.length - c.length).toLowerCase();
743
+ if (c && n7 === c) return true;
713
744
  }
714
745
  return false;
715
746
  };
716
- var m = (t, r, e) => t.isFile() && P(r, e);
747
+ var m = (t, r, e) => t.isFile() && P2(r, e);
717
748
  var v = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
718
749
  var g = v === "win32" ? a : i;
719
750
  var R2 = g.isexe;
@@ -828,16 +859,16 @@ var ce = (n7, t) => {
828
859
  return e ? e[0] : null;
829
860
  };
830
861
  var ss = (n7, t, e) => {
831
- let s, i2, r, o, h, a2 = e.indexOf(n7), l = e.indexOf(t, a2 + 1), u2 = a2;
862
+ let s, i2, r, o, h, a2 = e.indexOf(n7), l = e.indexOf(t, a2 + 1), u4 = a2;
832
863
  if (a2 >= 0 && l > 0) {
833
864
  if (n7 === t) return [a2, l];
834
- for (s = [], r = e.length; u2 >= 0 && !h; ) {
835
- if (u2 === a2) s.push(u2), a2 = e.indexOf(n7, u2 + 1);
865
+ for (s = [], r = e.length; u4 >= 0 && !h; ) {
866
+ if (u4 === a2) s.push(u4), a2 = e.indexOf(n7, u4 + 1);
836
867
  else if (s.length === 1) {
837
- let c3 = s.pop();
838
- c3 !== void 0 && (h = [c3, l]);
839
- } else i2 = s.pop(), i2 !== void 0 && i2 < r && (r = i2, o = l), l = e.indexOf(t, u2 + 1);
840
- u2 = a2 < l && a2 >= 0 ? a2 : l;
868
+ let c = s.pop();
869
+ c !== void 0 && (h = [c, l]);
870
+ } else i2 = s.pop(), i2 !== void 0 && i2 < r && (r = i2, o = l), l = e.indexOf(t, u4 + 1);
871
+ u4 = a2 < l && a2 >= 0 ? a2 : l;
841
872
  }
842
873
  s.length && o !== void 0 && (h = [r, o]);
843
874
  }
@@ -903,32 +934,32 @@ function ht(n7, t, e) {
903
934
  s.push(a2);
904
935
  }
905
936
  else {
906
- let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i2.body), a2 = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i2.body), l = h || a2, u2 = i2.body.indexOf(",") >= 0;
907
- if (!l && !u2) return i2.post.match(/,(?!,).*\}/) ? (n7 = i2.pre + "{" + i2.body + qt + i2.post, ht(n7, t, true)) : [n7];
908
- let c3;
909
- if (l) c3 = i2.body.split(/\.\./);
910
- else if (c3 = me(i2.body), c3.length === 1 && c3[0] !== void 0 && (c3 = ht(c3[0], t, false).map(gs), c3.length === 1)) return o.map((f) => i2.pre + c3[0] + f);
937
+ let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i2.body), a2 = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i2.body), l = h || a2, u4 = i2.body.indexOf(",") >= 0;
938
+ if (!l && !u4) return i2.post.match(/,(?!,).*\}/) ? (n7 = i2.pre + "{" + i2.body + qt + i2.post, ht(n7, t, true)) : [n7];
939
+ let c;
940
+ if (l) c = i2.body.split(/\.\./);
941
+ else if (c = me(i2.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, false).map(gs), c.length === 1)) return o.map((f) => i2.pre + c[0] + f);
911
942
  let d2;
912
- if (l && c3[0] !== void 0 && c3[1] !== void 0) {
913
- let f = Ht(c3[0]), m2 = Ht(c3[1]), p = Math.max(c3[0].length, c3[1].length), w2 = c3.length === 3 && c3[2] !== void 0 ? Math.abs(Ht(c3[2])) : 1, g2 = ys;
943
+ if (l && c[0] !== void 0 && c[1] !== void 0) {
944
+ let f = Ht(c[0]), m2 = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w2 = c.length === 3 && c[2] !== void 0 ? Math.abs(Ht(c[2])) : 1, g2 = ys;
914
945
  m2 < f && (w2 *= -1, g2 = bs);
915
- let E = c3.some(ws);
946
+ let E = c.some(ws);
916
947
  d2 = [];
917
- for (let y3 = f; g2(y3, m2); y3 += w2) {
948
+ for (let y2 = f; g2(y2, m2); y2 += w2) {
918
949
  let b;
919
- if (a2) b = String.fromCharCode(y3), b === "\\" && (b = "");
920
- else if (b = String(y3), E) {
921
- let z2 = p - b.length;
922
- if (z2 > 0) {
923
- let $ = new Array(z2 + 1).join("0");
924
- y3 < 0 ? b = "-" + $ + b.slice(1) : b = $ + b;
950
+ if (a2) b = String.fromCharCode(y2), b === "\\" && (b = "");
951
+ else if (b = String(y2), E) {
952
+ let z = p - b.length;
953
+ if (z > 0) {
954
+ let $ = new Array(z + 1).join("0");
955
+ y2 < 0 ? b = "-" + $ + b.slice(1) : b = $ + b;
925
956
  }
926
957
  }
927
958
  d2.push(b);
928
959
  }
929
960
  } else {
930
961
  d2 = [];
931
- for (let f = 0; f < c3.length; f++) d2.push.apply(d2, ht(c3[f], t, false));
962
+ for (let f = 0; f < c.length; f++) d2.push.apply(d2, ht(c[f], t, false));
932
963
  }
933
964
  for (let f = 0; f < d2.length; f++) for (let m2 = 0; m2 < o.length && s.length < t; m2++) {
934
965
  let p = r + d2[f] + o[m2];
@@ -948,7 +979,7 @@ var we = (n7) => n7.join("");
948
979
  var ye = (n7, t) => {
949
980
  let e = t;
950
981
  if (n7.charAt(e) !== "[") throw new Error("not in a brace expression");
951
- let s = [], i2 = [], r = e + 1, o = false, h = false, a2 = false, l = false, u2 = e, c3 = "";
982
+ let s = [], i2 = [], r = e + 1, o = false, h = false, a2 = false, l = false, u4 = e, c = "";
952
983
  t: for (; r < n7.length; ) {
953
984
  let p = n7.charAt(r);
954
985
  if ((p === "!" || p === "^") && r === e + 1) {
@@ -956,7 +987,7 @@ var ye = (n7, t) => {
956
987
  continue;
957
988
  }
958
989
  if (p === "]" && o && !a2) {
959
- u2 = r + 1;
990
+ u4 = r + 1;
960
991
  break;
961
992
  }
962
993
  if (o = true, p === "\\" && !a2) {
@@ -964,14 +995,14 @@ var ye = (n7, t) => {
964
995
  continue;
965
996
  }
966
997
  if (p === "[" && !a2) {
967
- for (let [w2, [g2, S2, E]] of Object.entries(Ss)) if (n7.startsWith(w2, r)) {
968
- if (c3) return ["$.", false, n7.length - e, true];
969
- r += w2.length, E ? i2.push(g2) : s.push(g2), h = h || S2;
998
+ for (let [w2, [g2, S3, E]] of Object.entries(Ss)) if (n7.startsWith(w2, r)) {
999
+ if (c) return ["$.", false, n7.length - e, true];
1000
+ r += w2.length, E ? i2.push(g2) : s.push(g2), h = h || S3;
970
1001
  continue t;
971
1002
  }
972
1003
  }
973
- if (a2 = false, c3) {
974
- p > c3 ? s.push(lt(c3) + "-" + lt(p)) : p === c3 && s.push(lt(p)), c3 = "", r++;
1004
+ if (a2 = false, c) {
1005
+ p > c ? s.push(lt(c) + "-" + lt(p)) : p === c && s.push(lt(p)), c = "", r++;
975
1006
  continue;
976
1007
  }
977
1008
  if (n7.startsWith("-]", r + 1)) {
@@ -979,19 +1010,19 @@ var ye = (n7, t) => {
979
1010
  continue;
980
1011
  }
981
1012
  if (n7.startsWith("-", r + 1)) {
982
- c3 = p, r += 2;
1013
+ c = p, r += 2;
983
1014
  continue;
984
1015
  }
985
1016
  s.push(lt(p)), r++;
986
1017
  }
987
- if (u2 < r) return ["", false, 0, false];
1018
+ if (u4 < r) return ["", false, 0, false];
988
1019
  if (!s.length && !i2.length) return ["$.", false, n7.length - e, true];
989
1020
  if (i2.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) {
990
1021
  let p = s[0].length === 2 ? s[0].slice(-1) : s[0];
991
- return [Es(p), false, u2 - e, false];
1022
+ return [Es(p), false, u4 - e, false];
992
1023
  }
993
1024
  let d2 = "[" + (l ? "^" : "") + we(s) + "]", f = "[" + (l ? "" : "^") + we(i2) + "]";
994
- return [s.length && i2.length ? "(" + d2 + "|" + f + ")" : s.length ? d2 : f, h, u2 - e, true];
1025
+ return [s.length && i2.length ? "(" + d2 + "|" + f + ")" : s.length ? d2 : f, h, u4 - e, true];
995
1026
  };
996
1027
  var W2 = (n7, { windowsPathsNoEscape: t = false, magicalBraces: e = true } = {}) => e ? t ? n7.replace(/\[([^\/\\])\]/g, "$1") : n7.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n7.replace(/\[([^\/\\{}])\]/g, "$1") : n7.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
997
1028
  var xs = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
@@ -1110,7 +1141,7 @@ var Q = class n {
1110
1141
  }
1111
1142
  return e.push(m2), f;
1112
1143
  }
1113
- let l = s + 1, u2 = new n(null, e), c3 = [], d2 = "";
1144
+ let l = s + 1, u4 = new n(null, e), c = [], d2 = "";
1114
1145
  for (; l < t.length; ) {
1115
1146
  let f = t.charAt(l++);
1116
1147
  if (r || f === "\\") {
@@ -1125,16 +1156,16 @@ var Q = class n {
1125
1156
  continue;
1126
1157
  }
1127
1158
  if (be(f) && t.charAt(l) === "(") {
1128
- u2.push(d2), d2 = "";
1129
- let m2 = new n(f, u2);
1130
- u2.push(m2), l = n.#i(t, m2, l, i2);
1159
+ u4.push(d2), d2 = "";
1160
+ let m2 = new n(f, u4);
1161
+ u4.push(m2), l = n.#i(t, m2, l, i2);
1131
1162
  continue;
1132
1163
  }
1133
1164
  if (f === "|") {
1134
- u2.push(d2), d2 = "", c3.push(u2), u2 = new n(null, e);
1165
+ u4.push(d2), d2 = "", c.push(u4), u4 = new n(null, e);
1135
1166
  continue;
1136
1167
  }
1137
- if (f === ")") return d2 === "" && e.#r.length === 0 && (e.#f = true), u2.push(d2), d2 = "", e.push(...c3, u2), l;
1168
+ if (f === ")") return d2 === "" && e.#r.length === 0 && (e.#f = true), u4.push(d2), d2 = "", e.push(...c, u4), l;
1138
1169
  d2 += f;
1139
1170
  }
1140
1171
  return e.type = null, e.#s = void 0, e.#r = [t.substring(s - 1)], l;
@@ -1159,13 +1190,13 @@ var Q = class n {
1159
1190
  let a2 = this.isStart() && this.isEnd() && !this.#r.some((f) => typeof f != "string"), l = this.#r.map((f) => {
1160
1191
  let [m2, p, w2, g2] = typeof f == "string" ? n.#E(f, this.#s, a2) : f.toRegExpSource(t);
1161
1192
  return this.#s = this.#s || w2, this.#n = this.#n || g2, m2;
1162
- }).join(""), u2 = "";
1193
+ }).join(""), u4 = "";
1163
1194
  if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && Ts.has(this.#r[0]))) {
1164
1195
  let m2 = Cs, p = e && m2.has(l.charAt(0)) || l.startsWith("\\.") && m2.has(l.charAt(2)) || l.startsWith("\\.\\.") && m2.has(l.charAt(4)), w2 = !e && !t && m2.has(l.charAt(0));
1165
- u2 = p ? vs : w2 ? Ct : "";
1196
+ u4 = p ? vs : w2 ? Ct : "";
1166
1197
  }
1167
- let c3 = "";
1168
- return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c3 = "(?:$|\\/)"), [u2 + l + c3, W2(l), this.#s = !!this.#s, this.#n];
1198
+ let c = "";
1199
+ return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [u4 + l + c, W2(l), this.#s = !!this.#s, this.#n];
1169
1200
  }
1170
1201
  let s = this.type === "*" || this.type === "+", i2 = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
1171
1202
  if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
@@ -1207,9 +1238,9 @@ var Q = class n {
1207
1238
  continue;
1208
1239
  }
1209
1240
  if (l === "[") {
1210
- let [u2, c3, d2, f] = ye(t, a2);
1241
+ let [u4, c, d2, f] = ye(t, a2);
1211
1242
  if (d2) {
1212
- r += u2, o = o || c3, a2 += d2 - 1, e = e || f;
1243
+ r += u4, o = o || c, a2 += d2 - 1, e = e || f;
1213
1244
  continue;
1214
1245
  }
1215
1246
  }
@@ -1223,7 +1254,7 @@ var Q = class n {
1223
1254
  }
1224
1255
  };
1225
1256
  var tt = (n7, { windowsPathsNoEscape: t = false, magicalBraces: e = false } = {}) => e ? t ? n7.replace(/[?*()[\]{}]/g, "[$&]") : n7.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n7.replace(/[?*()[\]]/g, "[$&]") : n7.replace(/[?*()[\]\\]/g, "\\$&");
1226
- var O = (n7, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? false : new D2(t, e).match(n7));
1257
+ var O2 = (n7, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? false : new D2(t, e).match(n7));
1227
1258
  var Rs = /^\*+([^+@!?\*\[\(]*)$/;
1228
1259
  var Os = (n7) => (t) => !t.startsWith(".") && t.endsWith(n7);
1229
1260
  var Fs = (n7) => (t) => t.endsWith(n7);
@@ -1265,19 +1296,19 @@ var Te = ([n7]) => {
1265
1296
  var Ae = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
1266
1297
  var xe = { win32: { sep: "\\" }, posix: { sep: "/" } };
1267
1298
  var qs = Ae === "win32" ? xe.win32.sep : xe.posix.sep;
1268
- O.sep = qs;
1299
+ O2.sep = qs;
1269
1300
  var A2 = /* @__PURE__ */ Symbol("globstar **");
1270
- O.GLOBSTAR = A2;
1301
+ O2.GLOBSTAR = A2;
1271
1302
  var Ks = "[^/]";
1272
1303
  var Vs = Ks + "*?";
1273
1304
  var Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1274
1305
  var Xs = "(?:(?!(?:\\/|^)\\.).)*?";
1275
- var Js = (n7, t = {}) => (e) => O(e, n7, t);
1276
- O.filter = Js;
1306
+ var Js = (n7, t = {}) => (e) => O2(e, n7, t);
1307
+ O2.filter = Js;
1277
1308
  var N = (n7, t = {}) => Object.assign({}, n7, t);
1278
1309
  var Zs = (n7) => {
1279
- if (!n7 || typeof n7 != "object" || !Object.keys(n7).length) return O;
1280
- let t = O;
1310
+ if (!n7 || typeof n7 != "object" || !Object.keys(n7).length) return O2;
1311
+ let t = O2;
1281
1312
  return Object.assign((s, i2, r = {}) => t(s, i2, N(n7, r)), { Minimatch: class extends t.Minimatch {
1282
1313
  constructor(i2, r = {}) {
1283
1314
  super(i2, N(n7, r));
@@ -1294,16 +1325,16 @@ var Zs = (n7) => {
1294
1325
  }
1295
1326
  }, unescape: (s, i2 = {}) => t.unescape(s, N(n7, i2)), escape: (s, i2 = {}) => t.escape(s, N(n7, i2)), filter: (s, i2 = {}) => t.filter(s, N(n7, i2)), defaults: (s) => t.defaults(N(n7, s)), makeRe: (s, i2 = {}) => t.makeRe(s, N(n7, i2)), braceExpand: (s, i2 = {}) => t.braceExpand(s, N(n7, i2)), match: (s, i2, r = {}) => t.match(s, i2, N(n7, r)), sep: t.sep, GLOBSTAR: A2 });
1296
1327
  };
1297
- O.defaults = Zs;
1328
+ O2.defaults = Zs;
1298
1329
  var ke = (n7, t = {}) => (at(n7), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n7) ? [n7] : ge(n7, { max: t.braceExpandMax }));
1299
- O.braceExpand = ke;
1330
+ O2.braceExpand = ke;
1300
1331
  var Qs = (n7, t = {}) => new D2(n7, t).makeRe();
1301
- O.makeRe = Qs;
1332
+ O2.makeRe = Qs;
1302
1333
  var ti = (n7, t, e = {}) => {
1303
1334
  let s = new D2(t, e);
1304
1335
  return n7 = n7.filter((i2) => s.match(i2)), s.options.nonull && !n7.length && n7.push(t), n7;
1305
1336
  };
1306
- O.match = ti;
1337
+ O2.match = ti;
1307
1338
  var ve = /[?*]|[+@!]\(.*?\)|\[|\]/;
1308
1339
  var ei = (n7) => n7.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1309
1340
  var D2 = class {
@@ -1352,8 +1383,8 @@ var D2 = class {
1352
1383
  let i2 = this.globParts.map((r, o, h) => {
1353
1384
  if (this.isWindows && this.windowsNoMagicRoot) {
1354
1385
  let a2 = r[0] === "" && r[1] === "" && (r[2] === "?" || !ve.test(r[2])) && !ve.test(r[3]), l = /^[a-z]:/i.test(r[0]);
1355
- if (a2) return [...r.slice(0, 4), ...r.slice(4).map((u2) => this.parse(u2))];
1356
- if (l) return [r[0], ...r.slice(1).map((u2) => this.parse(u2))];
1386
+ if (a2) return [...r.slice(0, 4), ...r.slice(4).map((u4) => this.parse(u4))];
1387
+ if (l) return [r[0], ...r.slice(1).map((u4) => this.parse(u4))];
1357
1388
  }
1358
1389
  return r.map((a2) => this.parse(a2));
1359
1390
  });
@@ -1417,8 +1448,8 @@ var D2 = class {
1417
1448
  let h = s[i2 + 1], a2 = s[i2 + 2], l = s[i2 + 3];
1418
1449
  if (h !== ".." || !a2 || a2 === "." || a2 === ".." || !l || l === "." || l === "..") continue;
1419
1450
  e = true, s.splice(i2, 1);
1420
- let u2 = s.slice(0);
1421
- u2[i2] = "**", t.push(u2), i2--;
1451
+ let u4 = s.slice(0);
1452
+ u4[i2] = "**", t.push(u4), i2--;
1422
1453
  }
1423
1454
  if (!this.preserveMultipleSlashes) {
1424
1455
  for (let o = 1; o < s.length - 1; o++) {
@@ -1473,20 +1504,20 @@ var D2 = class {
1473
1504
  matchOne(t, e, s = false) {
1474
1505
  let i2 = this.options;
1475
1506
  if (this.isWindows) {
1476
- let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), w2 = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), g2 = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), S2 = !g2 && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]), E = w2 ? 3 : p ? 0 : void 0, y3 = S2 ? 3 : g2 ? 0 : void 0;
1477
- if (typeof E == "number" && typeof y3 == "number") {
1478
- let [b, z2] = [t[E], e[y3]];
1479
- b.toLowerCase() === z2.toLowerCase() && (e[y3] = b, y3 > E ? e = e.slice(y3) : E > y3 && (t = t.slice(E)));
1507
+ let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), w2 = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), g2 = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), S3 = !g2 && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]), E = w2 ? 3 : p ? 0 : void 0, y2 = S3 ? 3 : g2 ? 0 : void 0;
1508
+ if (typeof E == "number" && typeof y2 == "number") {
1509
+ let [b, z] = [t[E], e[y2]];
1510
+ b.toLowerCase() === z.toLowerCase() && (e[y2] = b, y2 > E ? e = e.slice(y2) : E > y2 && (t = t.slice(E)));
1480
1511
  }
1481
1512
  }
1482
1513
  let { optimizationLevel: r = 1 } = this.options;
1483
1514
  r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, { file: t, pattern: e }), this.debug("matchOne", t.length, e.length);
1484
1515
  for (var o = 0, h = 0, a2 = t.length, l = e.length; o < a2 && h < l; o++, h++) {
1485
1516
  this.debug("matchOne loop");
1486
- var u2 = e[h], c3 = t[o];
1487
- if (this.debug(e, u2, c3), u2 === false) return false;
1488
- if (u2 === A2) {
1489
- this.debug("GLOBSTAR", [e, u2, c3]);
1517
+ var u4 = e[h], c = t[o];
1518
+ if (this.debug(e, u4, c), u4 === false) return false;
1519
+ if (u4 === A2) {
1520
+ this.debug("GLOBSTAR", [e, u4, c]);
1490
1521
  var d2 = o, f = h + 1;
1491
1522
  if (f === l) {
1492
1523
  for (this.debug("** at the end"); o < a2; o++) if (t[o] === "." || t[o] === ".." || !i2.dot && t[o].charAt(0) === ".") return false;
@@ -1506,7 +1537,7 @@ globstar while`, t, d2, e, f, m2), this.matchOne(t.slice(d2), e.slice(f), s)) re
1506
1537
  >>> no match, partial?`, t, d2, e, f), d2 === a2));
1507
1538
  }
1508
1539
  let p;
1509
- if (typeof u2 == "string" ? (p = c3 === u2, this.debug("string match", u2, c3, p)) : (p = u2.test(c3), this.debug("pattern match", u2, c3, p)), !p) return false;
1540
+ if (typeof u4 == "string" ? (p = c === u4, this.debug("string match", u4, c, p)) : (p = u4.test(c), this.debug("pattern match", u4, c, p)), !p) return false;
1510
1541
  }
1511
1542
  if (o === a2 && h === l) return true;
1512
1543
  if (o === a2) return s;
@@ -1531,21 +1562,21 @@ globstar while`, t, d2, e, f, m2), this.matchOne(t.slice(d2), e.slice(f), s)) re
1531
1562
  let t = this.set;
1532
1563
  if (!t.length) return this.regexp = false, this.regexp;
1533
1564
  let e = this.options, s = e.noglobstar ? Vs : e.dot ? Ys : Xs, i2 = new Set(e.nocase ? ["i"] : []), r = t.map((a2) => {
1534
- let l = a2.map((c3) => {
1535
- if (c3 instanceof RegExp) for (let d2 of c3.flags.split("")) i2.add(d2);
1536
- return typeof c3 == "string" ? ei(c3) : c3 === A2 ? A2 : c3._src;
1565
+ let l = a2.map((c) => {
1566
+ if (c instanceof RegExp) for (let d2 of c.flags.split("")) i2.add(d2);
1567
+ return typeof c == "string" ? ei(c) : c === A2 ? A2 : c._src;
1537
1568
  });
1538
- l.forEach((c3, d2) => {
1569
+ l.forEach((c, d2) => {
1539
1570
  let f = l[d2 + 1], m2 = l[d2 - 1];
1540
- c3 !== A2 || m2 === A2 || (m2 === void 0 ? f !== void 0 && f !== A2 ? l[d2 + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d2] = s : f === void 0 ? l[d2 - 1] = m2 + "(?:\\/|\\/" + s + ")?" : f !== A2 && (l[d2 - 1] = m2 + "(?:\\/|\\/" + s + "\\/)" + f, l[d2 + 1] = A2));
1571
+ c !== A2 || m2 === A2 || (m2 === void 0 ? f !== void 0 && f !== A2 ? l[d2 + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d2] = s : f === void 0 ? l[d2 - 1] = m2 + "(?:\\/|\\/" + s + ")?" : f !== A2 && (l[d2 - 1] = m2 + "(?:\\/|\\/" + s + "\\/)" + f, l[d2 + 1] = A2));
1541
1572
  });
1542
- let u2 = l.filter((c3) => c3 !== A2);
1543
- if (this.partial && u2.length >= 1) {
1544
- let c3 = [];
1545
- for (let d2 = 1; d2 <= u2.length; d2++) c3.push(u2.slice(0, d2).join("/"));
1546
- return "(?:" + c3.join("|") + ")";
1573
+ let u4 = l.filter((c) => c !== A2);
1574
+ if (this.partial && u4.length >= 1) {
1575
+ let c = [];
1576
+ for (let d2 = 1; d2 <= u4.length; d2++) c.push(u4.slice(0, d2).join("/"));
1577
+ return "(?:" + c.join("|") + ")";
1547
1578
  }
1548
- return u2.join("/");
1579
+ return u4.join("/");
1549
1580
  }).join("|"), [o, h] = t.length > 1 ? ["(?:", ")"] : ["", ""];
1550
1581
  r = "^" + o + r + h + "$", this.partial && (r = "^(?:\\/|" + o + r.slice(1, -1) + h + ")$"), this.negate && (r = "^(?!" + r + ").+$");
1551
1582
  try {
@@ -1577,13 +1608,13 @@ globstar while`, t, d2, e, f, m2), this.matchOne(t.slice(d2), e.slice(f), s)) re
1577
1608
  return s.flipNegate ? false : this.negate;
1578
1609
  }
1579
1610
  static defaults(t) {
1580
- return O.defaults(t).Minimatch;
1611
+ return O2.defaults(t).Minimatch;
1581
1612
  }
1582
1613
  };
1583
- O.AST = Q;
1584
- O.Minimatch = D2;
1585
- O.escape = tt;
1586
- O.unescape = W2;
1614
+ O2.AST = Q;
1615
+ O2.Minimatch = D2;
1616
+ O2.escape = tt;
1617
+ O2.unescape = W2;
1587
1618
  var si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1588
1619
  var Oe = /* @__PURE__ */ new Set();
1589
1620
  var Vt = typeof process == "object" && process ? process : {};
@@ -1729,7 +1760,7 @@ var ft = class Me {
1729
1760
  return this.#o;
1730
1761
  }
1731
1762
  constructor(t) {
1732
- let { max: e = 0, ttl: s, ttlResolution: i2 = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a2, dispose: l, onInsert: u2, disposeAfter: c3, noDisposeOnSet: d2, noUpdateTTL: f, maxSize: m2 = 0, maxEntrySize: p = 0, sizeCalculation: w2, fetchMethod: g2, memoMethod: S2, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y3, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z2, ignoreFetchAbort: $, perf: J } = t;
1763
+ let { max: e = 0, ttl: s, ttlResolution: i2 = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a2, dispose: l, onInsert: u4, disposeAfter: c, noDisposeOnSet: d2, noUpdateTTL: f, maxSize: m2 = 0, maxEntrySize: p = 0, sizeCalculation: w2, fetchMethod: g2, memoMethod: S3, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y2, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
1733
1764
  if (J !== void 0 && typeof J?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1734
1765
  if (this.#c = J ?? si, e !== 0 && !q(e)) throw new TypeError("max option must be a nonnegative integer");
1735
1766
  let Z = e ? De(e) : Array;
@@ -1738,14 +1769,14 @@ var ft = class Me {
1738
1769
  if (!this.#s && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1739
1770
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
1740
1771
  }
1741
- if (S2 !== void 0 && typeof S2 != "function") throw new TypeError("memoMethod must be a function if defined");
1742
- if (this.#w = S2, g2 !== void 0 && typeof g2 != "function") throw new TypeError("fetchMethod must be a function if specified");
1743
- if (this.#S = g2, this.#A = !!g2, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u2 == "function" && (this.#r = u2), typeof c3 == "function" ? (this.#o = c3, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d2, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z2, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
1772
+ if (S3 !== void 0 && typeof S3 != "function") throw new TypeError("memoMethod must be a function if defined");
1773
+ if (this.#w = S3, g2 !== void 0 && typeof g2 != "function") throw new TypeError("fetchMethod must be a function if specified");
1774
+ if (this.#S = g2, this.#A = !!g2, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u4 == "function" && (this.#r = u4), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d2, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
1744
1775
  if (this.#s !== 0 && !q(this.#s)) throw new TypeError("maxSize must be a positive integer if specified");
1745
1776
  if (!q(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1746
1777
  this.#G();
1747
1778
  }
1748
- if (this.allowStale = !!a2, this.noDeleteOnStaleGet = !!y3, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!h, this.ttlResolution = q(i2) || i2 === 0 ? i2 : 1, this.ttlAutopurge = !!r, this.ttl = s || 0, this.ttl) {
1779
+ if (this.allowStale = !!a2, this.noDeleteOnStaleGet = !!y2, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!h, this.ttlResolution = q(i2) || i2 === 0 ? i2 : 1, this.ttlAutopurge = !!r, this.ttl = s || 0, this.ttl) {
1749
1780
  if (!q(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1750
1781
  this.#M();
1751
1782
  }
@@ -1776,8 +1807,8 @@ var ft = class Me {
1776
1807
  let a2 = t[h], l = e[h];
1777
1808
  if (!a2 || !l) return;
1778
1809
  o.ttl = a2, o.start = l, o.now = i2 || r();
1779
- let u2 = o.now - l;
1780
- o.remainingTTL = a2 - u2;
1810
+ let u4 = o.now - l;
1811
+ o.remainingTTL = a2 - u4;
1781
1812
  }
1782
1813
  };
1783
1814
  let i2 = 0, r = () => {
@@ -1794,8 +1825,8 @@ var ft = class Me {
1794
1825
  if (h === void 0) return 0;
1795
1826
  let a2 = t[h], l = e[h];
1796
1827
  if (!a2 || !l) return 1 / 0;
1797
- let u2 = (i2 || r()) - l;
1798
- return a2 - u2;
1828
+ let u4 = (i2 || r()) - l;
1829
+ return a2 - u4;
1799
1830
  }, this.#v = (o) => {
1800
1831
  let h = e[o], a2 = t[o];
1801
1832
  return !!a2 && !!h && (i2 || r()) - h > a2;
@@ -1937,20 +1968,20 @@ var ft = class Me {
1937
1968
  }
1938
1969
  set(t, e, s = {}) {
1939
1970
  if (e === void 0) return this.delete(t), this;
1940
- let { ttl: i2 = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a2 } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u2 = this.#I(t, e, s.size || 0, h);
1941
- if (this.maxEntrySize && u2 > this.maxEntrySize) return a2 && (a2.set = "miss", a2.maxEntrySizeExceeded = true), this.#O(t, "set"), this;
1942
- let c3 = this.#h === 0 ? void 0 : this.#f.get(t);
1943
- if (c3 === void 0) c3 = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c3] = t, this.#i[c3] = e, this.#f.set(t, c3), this.#d[this.#p] = c3, this.#E[c3] = this.#p, this.#p = c3, this.#h++, this.#L(c3, u2, a2), a2 && (a2.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
1971
+ let { ttl: i2 = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a2 } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u4 = this.#I(t, e, s.size || 0, h);
1972
+ if (this.maxEntrySize && u4 > this.maxEntrySize) return a2 && (a2.set = "miss", a2.maxEntrySizeExceeded = true), this.#O(t, "set"), this;
1973
+ let c = this.#h === 0 ? void 0 : this.#f.get(t);
1974
+ if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, u4, a2), a2 && (a2.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
1944
1975
  else {
1945
- this.#W(c3);
1946
- let d2 = this.#i[c3];
1976
+ this.#W(c);
1977
+ let d2 = this.#i[c];
1947
1978
  if (e !== d2) {
1948
1979
  if (this.#A && this.#l(d2)) {
1949
1980
  d2.__abortController.abort(new Error("replaced"));
1950
1981
  let { __staleWhileFetching: f } = d2;
1951
1982
  f !== void 0 && !o && (this.#x && this.#n?.(f, t, "set"), this.#e && this.#m?.push([f, t, "set"]));
1952
1983
  } else o || (this.#x && this.#n?.(d2, t, "set"), this.#e && this.#m?.push([d2, t, "set"]));
1953
- if (this.#P(c3), this.#L(c3, u2, a2), this.#i[c3] = e, a2) {
1984
+ if (this.#P(c), this.#L(c, u4, a2), this.#i[c] = e, a2) {
1954
1985
  a2.set = "replace";
1955
1986
  let f = d2 && this.#l(d2) ? d2.__staleWhileFetching : d2;
1956
1987
  f !== void 0 && (a2.oldValue = f);
@@ -1958,7 +1989,7 @@ var ft = class Me {
1958
1989
  } else a2 && (a2.set = "update");
1959
1990
  this.#_ && this.onInsert?.(e, t, e === d2 ? "update" : "replace");
1960
1991
  }
1961
- if (i2 !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c3, i2, r), a2 && this.#N(a2, c3)), !o && this.#e && this.#m) {
1992
+ if (i2 !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c, i2, r), a2 && this.#N(a2, c)), !o && this.#e && this.#m) {
1962
1993
  let d2 = this.#m, f;
1963
1994
  for (; f = d2?.shift(); ) this.#o?.(...f);
1964
1995
  }
@@ -2005,22 +2036,22 @@ var ft = class Me {
2005
2036
  let o = new At(), { signal: h } = s;
2006
2037
  h?.addEventListener("abort", () => o.abort(h.reason), { signal: o.signal });
2007
2038
  let a2 = { signal: o.signal, options: s, context: i2 }, l = (p, w2 = false) => {
2008
- let { aborted: g2 } = o.signal, S2 = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
2009
- if (s.status && (g2 && !w2 ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, S2 && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), g2 && !S2 && !w2) return c3(o.signal.reason, E);
2010
- let y3 = f, b = this.#i[e];
2011
- return (b === f || S2 && w2 && b === void 0) && (p === void 0 ? y3.__staleWhileFetching !== void 0 ? this.#i[e] = y3.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a2.options))), p;
2012
- }, u2 = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c3(p, false)), c3 = (p, w2) => {
2013
- let { aborted: g2 } = o.signal, S2 = g2 && s.allowStaleOnFetchAbort, E = S2 || s.allowStaleOnFetchRejection, y3 = E || s.noDeleteOnFetchRejection, b = f;
2014
- if (this.#i[e] === f && (!y3 || !w2 && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S2 || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = true), b.__staleWhileFetching;
2039
+ let { aborted: g2 } = o.signal, S3 = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
2040
+ if (s.status && (g2 && !w2 ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, S3 && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), g2 && !S3 && !w2) return c(o.signal.reason, E);
2041
+ let y2 = f, b = this.#i[e];
2042
+ return (b === f || S3 && w2 && b === void 0) && (p === void 0 ? y2.__staleWhileFetching !== void 0 ? this.#i[e] = y2.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a2.options))), p;
2043
+ }, u4 = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c(p, false)), c = (p, w2) => {
2044
+ let { aborted: g2 } = o.signal, S3 = g2 && s.allowStaleOnFetchAbort, E = S3 || s.allowStaleOnFetchRejection, y2 = E || s.noDeleteOnFetchRejection, b = f;
2045
+ if (this.#i[e] === f && (!y2 || !w2 && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S3 || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = true), b.__staleWhileFetching;
2015
2046
  if (b.__returned === b) throw p;
2016
2047
  }, d2 = (p, w2) => {
2017
2048
  let g2 = this.#S?.(t, r, a2);
2018
- g2 && g2 instanceof Promise && g2.then((S2) => p(S2 === void 0 ? void 0 : S2), w2), o.signal.addEventListener("abort", () => {
2019
- (!s.ignoreFetchAbort || s.allowStaleOnFetchAbort) && (p(void 0), s.allowStaleOnFetchAbort && (p = (S2) => l(S2, true)));
2049
+ g2 && g2 instanceof Promise && g2.then((S3) => p(S3 === void 0 ? void 0 : S3), w2), o.signal.addEventListener("abort", () => {
2050
+ (!s.ignoreFetchAbort || s.allowStaleOnFetchAbort) && (p(void 0), s.allowStaleOnFetchAbort && (p = (S3) => l(S3, true)));
2020
2051
  });
2021
2052
  };
2022
2053
  s.status && (s.status.fetchDispatched = true);
2023
- let f = new Promise(d2).then(l, u2), m2 = Object.assign(f, { __abortController: o, __staleWhileFetching: r, __returned: void 0 });
2054
+ let f = new Promise(d2).then(l, u4), m2 = Object.assign(f, { __abortController: o, __staleWhileFetching: r, __returned: void 0 });
2024
2055
  return e === void 0 ? (this.set(t, m2, { ...a2.options, status: void 0 }), e = this.#f.get(t)) : this.#i[e] = m2, m2;
2025
2056
  }
2026
2057
  #l(t) {
@@ -2029,23 +2060,23 @@ var ft = class Me {
2029
2060
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof At;
2030
2061
  }
2031
2062
  async fetch(t, e = {}) {
2032
- let { allowStale: s = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a2 = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u2 = this.noUpdateTTL, noDeleteOnFetchRejection: c3 = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m2 = this.allowStaleOnFetchAbort, context: p, forceRefresh: w2 = false, status: g2, signal: S2 } = e;
2063
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a2 = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u4 = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m2 = this.allowStaleOnFetchAbort, context: p, forceRefresh: w2 = false, status: g2, signal: S3 } = e;
2033
2064
  if (!this.#A) return g2 && (g2.fetch = "get"), this.get(t, { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: r, status: g2 });
2034
- let E = { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a2, sizeCalculation: l, noUpdateTTL: u2, noDeleteOnFetchRejection: c3, allowStaleOnFetchRejection: d2, allowStaleOnFetchAbort: m2, ignoreFetchAbort: f, status: g2, signal: S2 }, y3 = this.#f.get(t);
2035
- if (y3 === void 0) {
2065
+ let E = { allowStale: s, updateAgeOnGet: i2, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a2, sizeCalculation: l, noUpdateTTL: u4, noDeleteOnFetchRejection: c, allowStaleOnFetchRejection: d2, allowStaleOnFetchAbort: m2, ignoreFetchAbort: f, status: g2, signal: S3 }, y2 = this.#f.get(t);
2066
+ if (y2 === void 0) {
2036
2067
  g2 && (g2.fetch = "miss");
2037
- let b = this.#U(t, y3, E, p);
2068
+ let b = this.#U(t, y2, E, p);
2038
2069
  return b.__returned = b;
2039
2070
  } else {
2040
- let b = this.#i[y3];
2071
+ let b = this.#i[y2];
2041
2072
  if (this.#l(b)) {
2042
2073
  let Z = s && b.__staleWhileFetching !== void 0;
2043
2074
  return g2 && (g2.fetch = "inflight", Z && (g2.returnedStale = true)), Z ? b.__staleWhileFetching : b.__returned = b;
2044
2075
  }
2045
- let z2 = this.#v(y3);
2046
- if (!w2 && !z2) return g2 && (g2.fetch = "hit"), this.#W(y3), i2 && this.#k(y3), g2 && this.#N(g2, y3), b;
2047
- let $ = this.#U(t, y3, E, p), J = $.__staleWhileFetching !== void 0 && s;
2048
- return g2 && (g2.fetch = z2 ? "stale" : "refresh", J && z2 && (g2.returnedStale = true)), J ? $.__staleWhileFetching : $.__returned = $;
2076
+ let z = this.#v(y2);
2077
+ if (!w2 && !z) return g2 && (g2.fetch = "hit"), this.#W(y2), i2 && this.#k(y2), g2 && this.#N(g2, y2), b;
2078
+ let $ = this.#U(t, y2, E, p), J = $.__staleWhileFetching !== void 0 && s;
2079
+ return g2 && (g2.fetch = z ? "stale" : "refresh", J && z && (g2.returnedStale = true)), J ? $.__staleWhileFetching : $.__returned = $;
2049
2080
  }
2050
2081
  }
2051
2082
  async forceFetch(t, e = {}) {
@@ -2130,7 +2161,7 @@ var oi = (n7) => !!n7 && typeof n7 == "object" && (n7 instanceof V || n7 instanc
2130
2161
  var hi = (n7) => !!n7 && typeof n7 == "object" && n7 instanceof ee && typeof n7.pipe == "function" && n7.pipe !== Pe.Writable.prototype.pipe;
2131
2162
  var ai = (n7) => !!n7 && typeof n7 == "object" && n7 instanceof ee && typeof n7.write == "function" && typeof n7.end == "function";
2132
2163
  var G2 = /* @__PURE__ */ Symbol("EOF");
2133
- var H = /* @__PURE__ */ Symbol("maybeEmitEnd");
2164
+ var H2 = /* @__PURE__ */ Symbol("maybeEmitEnd");
2134
2165
  var K = /* @__PURE__ */ Symbol("emittedEnd");
2135
2166
  var kt = /* @__PURE__ */ Symbol("emittingEnd");
2136
2167
  var ut = /* @__PURE__ */ Symbol("emittedError");
@@ -2138,18 +2169,18 @@ var Rt = /* @__PURE__ */ Symbol("closed");
2138
2169
  var _e = /* @__PURE__ */ Symbol("read");
2139
2170
  var Ot = /* @__PURE__ */ Symbol("flush");
2140
2171
  var Le = /* @__PURE__ */ Symbol("flushChunk");
2141
- var P2 = /* @__PURE__ */ Symbol("encoding");
2172
+ var P3 = /* @__PURE__ */ Symbol("encoding");
2142
2173
  var et = /* @__PURE__ */ Symbol("decoder");
2143
2174
  var v2 = /* @__PURE__ */ Symbol("flowing");
2144
2175
  var dt = /* @__PURE__ */ Symbol("paused");
2145
2176
  var st = /* @__PURE__ */ Symbol("resume");
2146
2177
  var C3 = /* @__PURE__ */ Symbol("buffer");
2147
- var F2 = /* @__PURE__ */ Symbol("pipes");
2178
+ var F3 = /* @__PURE__ */ Symbol("pipes");
2148
2179
  var T2 = /* @__PURE__ */ Symbol("bufferLength");
2149
2180
  var Yt = /* @__PURE__ */ Symbol("bufferPush");
2150
2181
  var Ft = /* @__PURE__ */ Symbol("bufferShift");
2151
2182
  var k2 = /* @__PURE__ */ Symbol("objectMode");
2152
- var x2 = /* @__PURE__ */ Symbol("destroyed");
2183
+ var x = /* @__PURE__ */ Symbol("destroyed");
2153
2184
  var Xt = /* @__PURE__ */ Symbol("error");
2154
2185
  var Jt = /* @__PURE__ */ Symbol("emitData");
2155
2186
  var We = /* @__PURE__ */ Symbol("emitEnd");
@@ -2195,10 +2226,10 @@ var pi = (n7) => !n7.objectMode && !!n7.encoding && n7.encoding !== "buffer";
2195
2226
  var V = class extends ee {
2196
2227
  [v2] = false;
2197
2228
  [dt] = false;
2198
- [F2] = [];
2229
+ [F3] = [];
2199
2230
  [C3] = [];
2200
2231
  [k2];
2201
- [P2];
2232
+ [P3];
2202
2233
  [B];
2203
2234
  [et];
2204
2235
  [G2] = false;
@@ -2207,7 +2238,7 @@ var V = class extends ee {
2207
2238
  [Rt] = false;
2208
2239
  [ut] = null;
2209
2240
  [T2] = 0;
2210
- [x2] = false;
2241
+ [x] = false;
2211
2242
  [pt];
2212
2243
  [Dt] = false;
2213
2244
  [Y] = 0;
@@ -2217,7 +2248,7 @@ var V = class extends ee {
2217
2248
  constructor(...t) {
2218
2249
  let e = t[0] || {};
2219
2250
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
2220
- di(e) ? (this[k2] = true, this[P2] = null) : pi(e) ? (this[P2] = e.encoding, this[k2] = false) : (this[k2] = false, this[P2] = null), this[B] = !!e.async, this[et] = this[P2] ? new ni(this[P2]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[C3] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[F2] });
2251
+ di(e) ? (this[k2] = true, this[P3] = null) : pi(e) ? (this[P3] = e.encoding, this[k2] = false) : (this[k2] = false, this[P3] = null), this[B] = !!e.async, this[et] = this[P3] ? new ni(this[P3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[C3] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[F3] });
2221
2252
  let { signal: s } = e;
2222
2253
  s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
2223
2254
  }
@@ -2225,7 +2256,7 @@ var V = class extends ee {
2225
2256
  return this[T2];
2226
2257
  }
2227
2258
  get encoding() {
2228
- return this[P2];
2259
+ return this[P3];
2229
2260
  }
2230
2261
  set encoding(t) {
2231
2262
  throw new Error("Encoding must be set at instantiation time");
@@ -2256,7 +2287,7 @@ var V = class extends ee {
2256
2287
  write(t, e, s) {
2257
2288
  if (this[Dt]) return false;
2258
2289
  if (this[G2]) throw new Error("write after end");
2259
- if (this[x2]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
2290
+ if (this[x]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
2260
2291
  typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
2261
2292
  let i2 = this[B] ? mt : li;
2262
2293
  if (!this[k2] && !Buffer.isBuffer(t)) {
@@ -2264,14 +2295,14 @@ var V = class extends ee {
2264
2295
  else if (fi(t)) t = Buffer.from(t);
2265
2296
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
2266
2297
  }
2267
- return this[k2] ? (this[v2] && this[T2] !== 0 && this[Ot](true), this[v2] ? this.emit("data", t) : this[Yt](t), this[T2] !== 0 && this.emit("readable"), s && i2(s), this[v2]) : t.length ? (typeof t == "string" && !(e === this[P2] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P2] && (t = this[et].write(t)), this[v2] && this[T2] !== 0 && this[Ot](true), this[v2] ? this.emit("data", t) : this[Yt](t), this[T2] !== 0 && this.emit("readable"), s && i2(s), this[v2]) : (this[T2] !== 0 && this.emit("readable"), s && i2(s), this[v2]);
2298
+ return this[k2] ? (this[v2] && this[T2] !== 0 && this[Ot](true), this[v2] ? this.emit("data", t) : this[Yt](t), this[T2] !== 0 && this.emit("readable"), s && i2(s), this[v2]) : t.length ? (typeof t == "string" && !(e === this[P3] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P3] && (t = this[et].write(t)), this[v2] && this[T2] !== 0 && this[Ot](true), this[v2] ? this.emit("data", t) : this[Yt](t), this[T2] !== 0 && this.emit("readable"), s && i2(s), this[v2]) : (this[T2] !== 0 && this.emit("readable"), s && i2(s), this[v2]);
2268
2299
  }
2269
2300
  read(t) {
2270
- if (this[x2]) return null;
2271
- if (this[M2] = false, this[T2] === 0 || t === 0 || t && t > this[T2]) return this[H](), null;
2272
- this[k2] && (t = null), this[C3].length > 1 && !this[k2] && (this[C3] = [this[P2] ? this[C3].join("") : Buffer.concat(this[C3], this[T2])]);
2301
+ if (this[x]) return null;
2302
+ if (this[M2] = false, this[T2] === 0 || t === 0 || t && t > this[T2]) return this[H2](), null;
2303
+ this[k2] && (t = null), this[C3].length > 1 && !this[k2] && (this[C3] = [this[P3] ? this[C3].join("") : Buffer.concat(this[C3], this[T2])]);
2273
2304
  let e = this[_e](t || null, this[C3][0]);
2274
- return this[H](), e;
2305
+ return this[H2](), e;
2275
2306
  }
2276
2307
  [_e](t, e) {
2277
2308
  if (this[k2]) this[Ft]();
@@ -2282,10 +2313,10 @@ var V = class extends ee {
2282
2313
  return this.emit("data", e), !this[C3].length && !this[G2] && this.emit("drain"), e;
2283
2314
  }
2284
2315
  end(t, e, s) {
2285
- 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[G2] = true, this.writable = false, (this[v2] || !this[dt]) && this[H](), this;
2316
+ 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[G2] = true, this.writable = false, (this[v2] || !this[dt]) && this[H2](), this;
2286
2317
  }
2287
2318
  [st]() {
2288
- this[x2] || (!this[Y] && !this[F2].length && (this[M2] = true), this[dt] = false, this[v2] = true, this.emit("resume"), this[C3].length ? this[Ot]() : this[G2] ? this[H]() : this.emit("drain"));
2319
+ this[x] || (!this[Y] && !this[F3].length && (this[M2] = true), this[dt] = false, this[v2] = true, this.emit("resume"), this[C3].length ? this[Ot]() : this[G2] ? this[H2]() : this.emit("drain"));
2289
2320
  }
2290
2321
  resume() {
2291
2322
  return this[st]();
@@ -2294,7 +2325,7 @@ var V = class extends ee {
2294
2325
  this[v2] = false, this[dt] = true, this[M2] = false;
2295
2326
  }
2296
2327
  get destroyed() {
2297
- return this[x2];
2328
+ return this[x];
2298
2329
  }
2299
2330
  get flowing() {
2300
2331
  return this[v2];
@@ -2318,21 +2349,21 @@ var V = class extends ee {
2318
2349
  return this.emit("data", t), this[v2];
2319
2350
  }
2320
2351
  pipe(t, e) {
2321
- if (this[x2]) return t;
2352
+ if (this[x]) return t;
2322
2353
  this[M2] = false;
2323
2354
  let s = this[K];
2324
- return e = e || {}, t === Ne.stdout || t === Ne.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F2].push(e.proxyErrors ? new te(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
2355
+ return e = e || {}, t === Ne.stdout || t === Ne.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F3].push(e.proxyErrors ? new te(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
2325
2356
  }
2326
2357
  unpipe(t) {
2327
- let e = this[F2].find((s) => s.dest === t);
2328
- e && (this[F2].length === 1 ? (this[v2] && this[Y] === 0 && (this[v2] = false), this[F2] = []) : this[F2].splice(this[F2].indexOf(e), 1), e.unpipe());
2358
+ let e = this[F3].find((s) => s.dest === t);
2359
+ e && (this[F3].length === 1 ? (this[v2] && this[Y] === 0 && (this[v2] = false), this[F3] = []) : this[F3].splice(this[F3].indexOf(e), 1), e.unpipe());
2329
2360
  }
2330
2361
  addListener(t, e) {
2331
2362
  return this.on(t, e);
2332
2363
  }
2333
2364
  on(t, e) {
2334
2365
  let s = super.on(t, e);
2335
- if (t === "data") this[M2] = false, this[Y]++, !this[F2].length && !this[v2] && this[st]();
2366
+ if (t === "data") this[M2] = false, this[Y]++, !this[F3].length && !this[v2] && this[st]();
2336
2367
  else if (t === "readable" && this[T2] !== 0) super.emit("readable");
2337
2368
  else if (ci(t) && this[K]) super.emit(t), this.removeAllListeners(t);
2338
2369
  else if (t === "error" && this[ut]) {
@@ -2346,45 +2377,45 @@ var V = class extends ee {
2346
2377
  }
2347
2378
  off(t, e) {
2348
2379
  let s = super.off(t, e);
2349
- return t === "data" && (this[Y] = this.listeners("data").length, this[Y] === 0 && !this[M2] && !this[F2].length && (this[v2] = false)), s;
2380
+ return t === "data" && (this[Y] = this.listeners("data").length, this[Y] === 0 && !this[M2] && !this[F3].length && (this[v2] = false)), s;
2350
2381
  }
2351
2382
  removeAllListeners(t) {
2352
2383
  let e = super.removeAllListeners(t);
2353
- return (t === "data" || t === void 0) && (this[Y] = 0, !this[M2] && !this[F2].length && (this[v2] = false)), e;
2384
+ return (t === "data" || t === void 0) && (this[Y] = 0, !this[M2] && !this[F3].length && (this[v2] = false)), e;
2354
2385
  }
2355
2386
  get emittedEnd() {
2356
2387
  return this[K];
2357
2388
  }
2358
- [H]() {
2359
- !this[kt] && !this[K] && !this[x2] && this[C3].length === 0 && this[G2] && (this[kt] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = false);
2389
+ [H2]() {
2390
+ !this[kt] && !this[K] && !this[x] && this[C3].length === 0 && this[G2] && (this[kt] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = false);
2360
2391
  }
2361
2392
  emit(t, ...e) {
2362
2393
  let s = e[0];
2363
- if (t !== "error" && t !== "close" && t !== x2 && this[x2]) return false;
2394
+ if (t !== "error" && t !== "close" && t !== x && this[x]) return false;
2364
2395
  if (t === "data") return !this[k2] && !s ? false : this[B] ? (mt(() => this[Jt](s)), true) : this[Jt](s);
2365
2396
  if (t === "end") return this[We]();
2366
2397
  if (t === "close") {
2367
- if (this[Rt] = true, !this[K] && !this[x2]) return false;
2398
+ if (this[Rt] = true, !this[K] && !this[x]) return false;
2368
2399
  let r = super.emit("close");
2369
2400
  return this.removeAllListeners("close"), r;
2370
2401
  } else if (t === "error") {
2371
2402
  this[ut] = s, super.emit(Xt, s);
2372
2403
  let r = !this[pt] || this.listeners("error").length ? super.emit("error", s) : false;
2373
- return this[H](), r;
2404
+ return this[H2](), r;
2374
2405
  } else if (t === "resume") {
2375
2406
  let r = super.emit("resume");
2376
- return this[H](), r;
2407
+ return this[H2](), r;
2377
2408
  } else if (t === "finish" || t === "prefinish") {
2378
2409
  let r = super.emit(t);
2379
2410
  return this.removeAllListeners(t), r;
2380
2411
  }
2381
2412
  let i2 = super.emit(t, ...e);
2382
- return this[H](), i2;
2413
+ return this[H2](), i2;
2383
2414
  }
2384
2415
  [Jt](t) {
2385
- for (let s of this[F2]) s.dest.write(t) === false && this.pause();
2416
+ for (let s of this[F3]) s.dest.write(t) === false && this.pause();
2386
2417
  let e = this[M2] ? false : super.emit("data", t);
2387
- return this[H](), e;
2418
+ return this[H2](), e;
2388
2419
  }
2389
2420
  [We]() {
2390
2421
  return this[K] ? false : (this[K] = true, this.readable = false, this[B] ? (mt(() => this[Zt]()), true) : this[Zt]());
@@ -2393,11 +2424,11 @@ var V = class extends ee {
2393
2424
  if (this[et]) {
2394
2425
  let e = this[et].end();
2395
2426
  if (e) {
2396
- for (let s of this[F2]) s.dest.write(e);
2427
+ for (let s of this[F3]) s.dest.write(e);
2397
2428
  this[M2] || super.emit("data", e);
2398
2429
  }
2399
2430
  }
2400
- for (let e of this[F2]) e.end();
2431
+ for (let e of this[F3]) e.end();
2401
2432
  let t = super.emit("end");
2402
2433
  return this.removeAllListeners("end"), t;
2403
2434
  }
@@ -2412,11 +2443,11 @@ var V = class extends ee {
2412
2443
  async concat() {
2413
2444
  if (this[k2]) throw new Error("cannot concat in objectMode");
2414
2445
  let t = await this.collect();
2415
- return this[P2] ? t.join("") : Buffer.concat(t, t.dataLength);
2446
+ return this[P3] ? t.join("") : Buffer.concat(t, t.dataLength);
2416
2447
  }
2417
2448
  async promise() {
2418
2449
  return new Promise((t, e) => {
2419
- this.on(x2, () => e(new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
2450
+ this.on(x, () => e(new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
2420
2451
  });
2421
2452
  }
2422
2453
  [Symbol.asyncIterator]() {
@@ -2427,15 +2458,15 @@ var V = class extends ee {
2427
2458
  let i2 = this.read();
2428
2459
  if (i2 !== null) return Promise.resolve({ done: false, value: i2 });
2429
2460
  if (this[G2]) return e();
2430
- let r, o, h = (c3) => {
2431
- this.off("data", a2), this.off("end", l), this.off(x2, u2), e(), o(c3);
2432
- }, a2 = (c3) => {
2433
- this.off("error", h), this.off("end", l), this.off(x2, u2), this.pause(), r({ value: c3, done: !!this[G2] });
2461
+ let r, o, h = (c) => {
2462
+ this.off("data", a2), this.off("end", l), this.off(x, u4), e(), o(c);
2463
+ }, a2 = (c) => {
2464
+ this.off("error", h), this.off("end", l), this.off(x, u4), this.pause(), r({ value: c, done: !!this[G2] });
2434
2465
  }, l = () => {
2435
- this.off("error", h), this.off("data", a2), this.off(x2, u2), e(), r({ done: true, value: void 0 });
2436
- }, u2 = () => h(new Error("stream destroyed"));
2437
- return new Promise((c3, d2) => {
2438
- o = d2, r = c3, this.once(x2, u2), this.once("error", h), this.once("end", l), this.once("data", a2);
2466
+ this.off("error", h), this.off("data", a2), this.off(x, u4), e(), r({ done: true, value: void 0 });
2467
+ }, u4 = () => h(new Error("stream destroyed"));
2468
+ return new Promise((c, d2) => {
2469
+ o = d2, r = c, this.once(x, u4), this.once("error", h), this.once("end", l), this.once("data", a2);
2439
2470
  });
2440
2471
  }, throw: e, return: e, [Symbol.asyncIterator]() {
2441
2472
  return this;
@@ -2444,21 +2475,21 @@ var V = class extends ee {
2444
2475
  }
2445
2476
  [Symbol.iterator]() {
2446
2477
  this[M2] = false;
2447
- let t = false, e = () => (this.pause(), this.off(Xt, e), this.off(x2, e), this.off("end", e), t = true, { done: true, value: void 0 }), s = () => {
2478
+ let t = false, e = () => (this.pause(), this.off(Xt, e), this.off(x, e), this.off("end", e), t = true, { done: true, value: void 0 }), s = () => {
2448
2479
  if (t) return e();
2449
2480
  let i2 = this.read();
2450
2481
  return i2 === null ? e() : { done: false, value: i2 };
2451
2482
  };
2452
- return this.once("end", e), this.once(Xt, e), this.once(x2, e), { next: s, throw: e, return: e, [Symbol.iterator]() {
2483
+ return this.once("end", e), this.once(Xt, e), this.once(x, e), { next: s, throw: e, return: e, [Symbol.iterator]() {
2453
2484
  return this;
2454
2485
  }, [Symbol.dispose]: () => {
2455
2486
  } };
2456
2487
  }
2457
2488
  destroy(t) {
2458
- if (this[x2]) return t ? this.emit("error", t) : this.emit(x2), this;
2459
- this[x2] = true, this[M2] = true, this[C3].length = 0, this[T2] = 0;
2489
+ if (this[x]) return t ? this.emit("error", t) : this.emit(x), this;
2490
+ this[x] = true, this[M2] = true, this[C3].length = 0, this[T2] = 0;
2460
2491
  let e = this;
2461
- return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x2), this;
2492
+ return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x), this;
2462
2493
  }
2463
2494
  static get isStream() {
2464
2495
  return oi;
@@ -2483,10 +2514,10 @@ var gt = ~_2;
2483
2514
  var se = 16;
2484
2515
  var je = 32;
2485
2516
  var yt = 64;
2486
- var j = 128;
2517
+ var j2 = 128;
2487
2518
  var Nt = 256;
2488
2519
  var Lt = 512;
2489
- var Ie = yt | j | Lt;
2520
+ var Ie = yt | j2 | Lt;
2490
2521
  var Fi = 1023;
2491
2522
  var ie = (n7) => n7.isFile() ? Ke : n7.isDirectory() ? U3 : n7.isSymbolicLink() ? X : n7.isCharacterDevice() ? He : n7.isBlockDevice() ? qe : n7.isSocket() ? Ve : n7.isFIFO() ? Ge : L3;
2492
2523
  var ze = new ft({ max: 2 ** 12 });
@@ -2641,7 +2672,7 @@ var R3 = class {
2641
2672
  let s = this.children(), i2 = this.nocase ? _t(t) : bt(t);
2642
2673
  for (let a2 of s) if (a2.#C === i2) return a2;
2643
2674
  let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L3, { ...e, parent: this, fullpath: o });
2644
- return this.canReaddir() || (h.#e |= j), s.push(h), h;
2675
+ return this.canReaddir() || (h.#e |= j2), s.push(h), h;
2645
2676
  }
2646
2677
  relative() {
2647
2678
  if (this.isCWD) return "";
@@ -2724,13 +2755,13 @@ var R3 = class {
2724
2755
  if (this.#M) return true;
2725
2756
  if (!this.parent) return false;
2726
2757
  let t = this.#e & _2;
2727
- return !(t !== L3 && t !== X || this.#e & Nt || this.#e & j);
2758
+ return !(t !== L3 && t !== X || this.#e & Nt || this.#e & j2);
2728
2759
  }
2729
2760
  calledReaddir() {
2730
2761
  return !!(this.#e & se);
2731
2762
  }
2732
2763
  isENOENT() {
2733
- return !!(this.#e & j);
2764
+ return !!(this.#e & j2);
2734
2765
  }
2735
2766
  isNamed(t) {
2736
2767
  return this.nocase ? this.#C === _t(t) : this.#C === bt(t);
@@ -2765,7 +2796,7 @@ var R3 = class {
2765
2796
  }
2766
2797
  }
2767
2798
  #v() {
2768
- this.#e & j || (this.#e = (this.#e | j) & gt, this.#G());
2799
+ this.#e & j2 || (this.#e = (this.#e | j2) & gt, this.#G());
2769
2800
  }
2770
2801
  #G() {
2771
2802
  let t = this.children();
@@ -2788,7 +2819,7 @@ var R3 = class {
2788
2819
  }
2789
2820
  #D(t = "") {
2790
2821
  let e = this.#e;
2791
- e |= Nt, t === "ENOENT" && (e |= j), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
2822
+ e |= Nt, t === "ENOENT" && (e |= j2), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
2792
2823
  }
2793
2824
  #z(t, e) {
2794
2825
  return this.#U(t, e) || this.#B(t, e);
@@ -2808,24 +2839,24 @@ var R3 = class {
2808
2839
  return e.#e = e.#e & gt | ie(t), r !== t.name && (e.name = t.name), s !== i2.provisional && (s === i2.length - 1 ? i2.pop() : i2.splice(s, 1), i2.unshift(e)), i2.provisional++, e;
2809
2840
  }
2810
2841
  async lstat() {
2811
- if ((this.#e & j) === 0) try {
2842
+ if ((this.#e & j2) === 0) try {
2812
2843
  return this.#$(await this.#t.promises.lstat(this.fullpath())), this;
2813
2844
  } catch (t) {
2814
2845
  this.#F(t.code);
2815
2846
  }
2816
2847
  }
2817
2848
  lstatSync() {
2818
- if ((this.#e & j) === 0) try {
2849
+ if ((this.#e & j2) === 0) try {
2819
2850
  return this.#$(this.#t.lstatSync(this.fullpath())), this;
2820
2851
  } catch (t) {
2821
2852
  this.#F(t.code);
2822
2853
  }
2823
2854
  }
2824
2855
  #$(t) {
2825
- let { atime: e, atimeMs: s, birthtime: i2, birthtimeMs: r, blksize: o, blocks: h, ctime: a2, ctimeMs: l, dev: u2, gid: c3, ino: d2, mode: f, mtime: m2, mtimeMs: p, nlink: w2, rdev: g2, size: S2, uid: E } = t;
2826
- this.#b = e, this.#a = s, this.#m = i2, this.#E = r, this.#c = o, this.#f = h, this.#R = a2, this.#d = l, this.#s = u2, this.#S = c3, this.#h = d2, this.#n = f, this.#p = m2, this.#i = p, this.#r = w2, this.#w = g2, this.#u = S2, this.#o = E;
2827
- let y3 = ie(t);
2828
- this.#e = this.#e & gt | y3 | je, y3 !== L3 && y3 !== U3 && y3 !== X && (this.#e |= yt);
2856
+ let { atime: e, atimeMs: s, birthtime: i2, birthtimeMs: r, blksize: o, blocks: h, ctime: a2, ctimeMs: l, dev: u4, gid: c, ino: d2, mode: f, mtime: m2, mtimeMs: p, nlink: w2, rdev: g2, size: S3, uid: E } = t;
2857
+ this.#b = e, this.#a = s, this.#m = i2, this.#E = r, this.#c = o, this.#f = h, this.#R = a2, this.#d = l, this.#s = u4, this.#S = c, this.#h = d2, this.#n = f, this.#p = m2, this.#i = p, this.#r = w2, this.#w = g2, this.#u = S3, this.#o = E;
2858
+ let y2 = ie(t);
2859
+ this.#e = this.#e & gt | y2 | je, y2 !== L3 && y2 !== U3 && y2 !== X && (this.#e |= yt);
2829
2860
  }
2830
2861
  #W = [];
2831
2862
  #O = false;
@@ -2901,7 +2932,7 @@ var R3 = class {
2901
2932
  }
2902
2933
  async realpath() {
2903
2934
  if (this.#k) return this.#k;
2904
- if (!((Lt | Nt | j) & this.#e)) try {
2935
+ if (!((Lt | Nt | j2) & this.#e)) try {
2905
2936
  let t = await this.#t.promises.realpath(this.fullpath());
2906
2937
  return this.#k = this.resolve(t);
2907
2938
  } catch {
@@ -2910,7 +2941,7 @@ var R3 = class {
2910
2941
  }
2911
2942
  realpathSync() {
2912
2943
  if (this.#k) return this.#k;
2913
- if (!((Lt | Nt | j) & this.#e)) try {
2944
+ if (!((Lt | Nt | j2) & this.#e)) try {
2914
2945
  let t = this.#t.realpathSync(this.fullpath());
2915
2946
  return this.#k = this.resolve(t);
2916
2947
  } catch {
@@ -2979,10 +3010,10 @@ var It = class {
2979
3010
  let a2 = h.substring(this.rootPath.length).split(s);
2980
3011
  if (a2.length === 1 && !a2[0] && a2.pop(), i2 === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
2981
3012
  this.nocase = i2, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
2982
- let l = this.root, u2 = a2.length - 1, c3 = e.sep, d2 = this.rootPath, f = false;
3013
+ let l = this.root, u4 = a2.length - 1, c = e.sep, d2 = this.rootPath, f = false;
2983
3014
  for (let m2 of a2) {
2984
- let p = u2--;
2985
- l = l.child(m2, { relative: new Array(p).fill("..").join(c3), relativePosix: new Array(p).fill("..").join("/"), fullpath: d2 += (f ? "" : c3) + m2 }), f = true;
3015
+ let p = u4--;
3016
+ l = l.child(m2, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d2 += (f ? "" : c) + m2 }), f = true;
2986
3017
  }
2987
3018
  this.cwd = l;
2988
3019
  }
@@ -3069,21 +3100,21 @@ var It = class {
3069
3100
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R3 || (e = t, t = this.cwd);
3070
3101
  let { withFileTypes: s = true, follow: i2 = false, filter: r, walkFilter: o } = e, h = [];
3071
3102
  (!r || r(t)) && h.push(s ? t : t.fullpath());
3072
- let a2 = /* @__PURE__ */ new Set(), l = (c3, d2) => {
3073
- a2.add(c3), c3.readdirCB((f, m2) => {
3103
+ let a2 = /* @__PURE__ */ new Set(), l = (c, d2) => {
3104
+ a2.add(c), c.readdirCB((f, m2) => {
3074
3105
  if (f) return d2(f);
3075
3106
  let p = m2.length;
3076
3107
  if (!p) return d2();
3077
3108
  let w2 = () => {
3078
3109
  --p === 0 && d2();
3079
3110
  };
3080
- for (let g2 of m2) (!r || r(g2)) && h.push(s ? g2 : g2.fullpath()), i2 && g2.isSymbolicLink() ? g2.realpath().then((S2) => S2?.isUnknown() ? S2.lstat() : S2).then((S2) => S2?.shouldWalk(a2, o) ? l(S2, w2) : w2()) : g2.shouldWalk(a2, o) ? l(g2, w2) : w2();
3111
+ for (let g2 of m2) (!r || r(g2)) && h.push(s ? g2 : g2.fullpath()), i2 && g2.isSymbolicLink() ? g2.realpath().then((S3) => S3?.isUnknown() ? S3.lstat() : S3).then((S3) => S3?.shouldWalk(a2, o) ? l(S3, w2) : w2()) : g2.shouldWalk(a2, o) ? l(g2, w2) : w2();
3081
3112
  }, true);
3082
- }, u2 = t;
3083
- return new Promise((c3, d2) => {
3084
- l(u2, (f) => {
3113
+ }, u4 = t;
3114
+ return new Promise((c, d2) => {
3115
+ l(u4, (f) => {
3085
3116
  if (f) return d2(f);
3086
- c3(h);
3117
+ c(h);
3087
3118
  });
3088
3119
  });
3089
3120
  }
@@ -3093,12 +3124,12 @@ var It = class {
3093
3124
  (!r || r(t)) && h.push(s ? t : t.fullpath());
3094
3125
  let a2 = /* @__PURE__ */ new Set([t]);
3095
3126
  for (let l of a2) {
3096
- let u2 = l.readdirSync();
3097
- for (let c3 of u2) {
3098
- (!r || r(c3)) && h.push(s ? c3 : c3.fullpath());
3099
- let d2 = c3;
3100
- if (c3.isSymbolicLink()) {
3101
- if (!(i2 && (d2 = c3.realpathSync()))) continue;
3127
+ let u4 = l.readdirSync();
3128
+ for (let c of u4) {
3129
+ (!r || r(c)) && h.push(s ? c : c.fullpath());
3130
+ let d2 = c;
3131
+ if (c.isSymbolicLink()) {
3132
+ if (!(i2 && (d2 = c.realpathSync()))) continue;
3102
3133
  d2.isUnknown() && d2.lstatSync();
3103
3134
  }
3104
3135
  d2.shouldWalk(a2, o) && a2.add(d2);
@@ -3122,14 +3153,14 @@ var It = class {
3122
3153
  let h = /* @__PURE__ */ new Set([t]);
3123
3154
  for (let a2 of h) {
3124
3155
  let l = a2.readdirSync();
3125
- for (let u2 of l) {
3126
- (!r || r(u2)) && (yield s ? u2 : u2.fullpath());
3127
- let c3 = u2;
3128
- if (u2.isSymbolicLink()) {
3129
- if (!(i2 && (c3 = u2.realpathSync()))) continue;
3130
- c3.isUnknown() && c3.lstatSync();
3156
+ for (let u4 of l) {
3157
+ (!r || r(u4)) && (yield s ? u4 : u4.fullpath());
3158
+ let c = u4;
3159
+ if (u4.isSymbolicLink()) {
3160
+ if (!(i2 && (c = u4.realpathSync()))) continue;
3161
+ c.isUnknown() && c.lstatSync();
3131
3162
  }
3132
- c3.shouldWalk(h, o) && h.add(c3);
3163
+ c.shouldWalk(h, o) && h.add(c);
3133
3164
  }
3134
3165
  }
3135
3166
  }
@@ -3137,54 +3168,54 @@ var It = class {
3137
3168
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R3 || (e = t, t = this.cwd);
3138
3169
  let { withFileTypes: s = true, follow: i2 = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true });
3139
3170
  (!r || r(t)) && h.write(s ? t : t.fullpath());
3140
- let a2 = /* @__PURE__ */ new Set(), l = [t], u2 = 0, c3 = () => {
3171
+ let a2 = /* @__PURE__ */ new Set(), l = [t], u4 = 0, c = () => {
3141
3172
  let d2 = false;
3142
3173
  for (; !d2; ) {
3143
3174
  let f = l.shift();
3144
3175
  if (!f) {
3145
- u2 === 0 && h.end();
3176
+ u4 === 0 && h.end();
3146
3177
  return;
3147
3178
  }
3148
- u2++, a2.add(f);
3149
- let m2 = (w2, g2, S2 = false) => {
3179
+ u4++, a2.add(f);
3180
+ let m2 = (w2, g2, S3 = false) => {
3150
3181
  if (w2) return h.emit("error", w2);
3151
- if (i2 && !S2) {
3182
+ if (i2 && !S3) {
3152
3183
  let E = [];
3153
- for (let y3 of g2) y3.isSymbolicLink() && E.push(y3.realpath().then((b) => b?.isUnknown() ? b.lstat() : b));
3184
+ for (let y2 of g2) y2.isSymbolicLink() && E.push(y2.realpath().then((b) => b?.isUnknown() ? b.lstat() : b));
3154
3185
  if (E.length) {
3155
3186
  Promise.all(E).then(() => m2(null, g2, true));
3156
3187
  return;
3157
3188
  }
3158
3189
  }
3159
3190
  for (let E of g2) E && (!r || r(E)) && (h.write(s ? E : E.fullpath()) || (d2 = true));
3160
- u2--;
3191
+ u4--;
3161
3192
  for (let E of g2) {
3162
- let y3 = E.realpathCached() || E;
3163
- y3.shouldWalk(a2, o) && l.push(y3);
3193
+ let y2 = E.realpathCached() || E;
3194
+ y2.shouldWalk(a2, o) && l.push(y2);
3164
3195
  }
3165
- d2 && !h.flowing ? h.once("drain", c3) : p || c3();
3196
+ d2 && !h.flowing ? h.once("drain", c) : p || c();
3166
3197
  }, p = true;
3167
3198
  f.readdirCB(m2, true), p = false;
3168
3199
  }
3169
3200
  };
3170
- return c3(), h;
3201
+ return c(), h;
3171
3202
  }
3172
3203
  streamSync(t = this.cwd, e = {}) {
3173
3204
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R3 || (e = t, t = this.cwd);
3174
3205
  let { withFileTypes: s = true, follow: i2 = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true }), a2 = /* @__PURE__ */ new Set();
3175
3206
  (!r || r(t)) && h.write(s ? t : t.fullpath());
3176
- let l = [t], u2 = 0, c3 = () => {
3207
+ let l = [t], u4 = 0, c = () => {
3177
3208
  let d2 = false;
3178
3209
  for (; !d2; ) {
3179
3210
  let f = l.shift();
3180
3211
  if (!f) {
3181
- u2 === 0 && h.end();
3212
+ u4 === 0 && h.end();
3182
3213
  return;
3183
3214
  }
3184
- u2++, a2.add(f);
3215
+ u4++, a2.add(f);
3185
3216
  let m2 = f.readdirSync();
3186
3217
  for (let p of m2) (!r || r(p)) && (h.write(s ? p : p.fullpath()) || (d2 = true));
3187
- u2--;
3218
+ u4--;
3188
3219
  for (let p of m2) {
3189
3220
  let w2 = p;
3190
3221
  if (p.isSymbolicLink()) {
@@ -3194,9 +3225,9 @@ var It = class {
3194
3225
  w2.shouldWalk(a2, o) && l.push(w2);
3195
3226
  }
3196
3227
  }
3197
- d2 && !h.flowing && h.once("drain", c3);
3228
+ d2 && !h.flowing && h.once("drain", c);
3198
3229
  };
3199
- return c3(), h;
3230
+ return c(), h;
3200
3231
  }
3201
3232
  chdir(t = this.cwd) {
3202
3233
  let e = this.cwd;
@@ -3266,15 +3297,15 @@ var nt = class n4 {
3266
3297
  if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
3267
3298
  if (this.#t = t, this.#s = e, this.#n = s, this.#r = i2, this.#n === 0) {
3268
3299
  if (this.isUNC()) {
3269
- let [r, o, h, a2, ...l] = this.#t, [u2, c3, d2, f, ...m2] = this.#s;
3300
+ let [r, o, h, a2, ...l] = this.#t, [u4, c, d2, f, ...m2] = this.#s;
3270
3301
  l[0] === "" && (l.shift(), m2.shift());
3271
- let p = [r, o, h, a2, ""].join("/"), w2 = [u2, c3, d2, f, ""].join("/");
3302
+ let p = [r, o, h, a2, ""].join("/"), w2 = [u4, c, d2, f, ""].join("/");
3272
3303
  this.#t = [p, ...l], this.#s = [w2, ...m2], this.length = this.#t.length;
3273
3304
  } else if (this.isDrive() || this.isAbsolute()) {
3274
3305
  let [r, ...o] = this.#t, [h, ...a2] = this.#s;
3275
3306
  o[0] === "" && (o.shift(), a2.shift());
3276
- let l = r + "/", u2 = h + "/";
3277
- this.#t = [l, ...o], this.#s = [u2, ...a2], this.length = this.#t.length;
3307
+ let l = r + "/", u4 = h + "/";
3308
+ this.#t = [l, ...o], this.#s = [u4, ...a2], this.length = this.#t.length;
3278
3309
  }
3279
3310
  }
3280
3311
  }
@@ -3424,29 +3455,29 @@ var Et = class n6 {
3424
3455
  let o = r.root(), h = r.isAbsolute() && this.opts.absolute !== false;
3425
3456
  if (o) {
3426
3457
  i2 = i2.resolve(o === "/" && this.opts.root !== void 0 ? this.opts.root : o);
3427
- let c3 = r.rest();
3428
- if (c3) r = c3;
3458
+ let c = r.rest();
3459
+ if (c) r = c;
3429
3460
  else {
3430
3461
  this.matches.add(i2, true, false);
3431
3462
  continue;
3432
3463
  }
3433
3464
  }
3434
3465
  if (i2.isENOENT()) continue;
3435
- let a2, l, u2 = false;
3436
- for (; typeof (a2 = r.pattern()) == "string" && (l = r.rest()); ) i2 = i2.resolve(a2), r = l, u2 = true;
3437
- if (a2 = r.pattern(), l = r.rest(), u2) {
3466
+ let a2, l, u4 = false;
3467
+ for (; typeof (a2 = r.pattern()) == "string" && (l = r.rest()); ) i2 = i2.resolve(a2), r = l, u4 = true;
3468
+ if (a2 = r.pattern(), l = r.rest(), u4) {
3438
3469
  if (this.hasWalkedCache.hasWalked(i2, r)) continue;
3439
3470
  this.hasWalkedCache.storeWalked(i2, r);
3440
3471
  }
3441
3472
  if (typeof a2 == "string") {
3442
- let c3 = a2 === ".." || a2 === "" || a2 === ".";
3443
- this.matches.add(i2.resolve(a2), h, c3);
3473
+ let c = a2 === ".." || a2 === "" || a2 === ".";
3474
+ this.matches.add(i2.resolve(a2), h, c);
3444
3475
  continue;
3445
3476
  } else if (a2 === A2) {
3446
3477
  (!i2.isSymbolicLink() || this.follow || r.checkFollowGlobstar()) && this.subwalks.add(i2, r);
3447
- let c3 = l?.pattern(), d2 = l?.rest();
3448
- if (!l || (c3 === "" || c3 === ".") && !d2) this.matches.add(i2, h, c3 === "" || c3 === ".");
3449
- else if (c3 === "..") {
3478
+ let c = l?.pattern(), d2 = l?.rest();
3479
+ if (!l || (c === "" || c === ".") && !d2) this.matches.add(i2, h, c === "" || c === ".");
3480
+ else if (c === "..") {
3450
3481
  let f = i2.parent || i2;
3451
3482
  d2 ? this.hasWalkedCache.hasWalked(f, d2) || this.subwalks.add(f, d2) : this.matches.add(f, h, true);
3452
3483
  }
@@ -3601,7 +3632,7 @@ var zt = class {
3601
3632
  if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3602
3633
  r++;
3603
3634
  let a2 = h.readdirCached();
3604
- h.calledReaddir() ? this.walkCB3(h, a2, s, o) : h.readdirCB((l, u2) => this.walkCB3(h, u2, s, o), true);
3635
+ h.calledReaddir() ? this.walkCB3(h, a2, s, o) : h.readdirCB((l, u4) => this.walkCB3(h, u4, s, o), true);
3605
3636
  }
3606
3637
  o();
3607
3638
  }
@@ -3732,9 +3763,9 @@ var I3 = class {
3732
3763
  this.nocase = this.scurry.nocase;
3733
3764
  let s = this.platform === "darwin" || this.platform === "win32", i2 = { braceExpandMax: 1e4, ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, r = this.pattern.map((a2) => new D2(a2, i2)), [o, h] = r.reduce((a2, l) => (a2[0].push(...l.set), a2[1].push(...l.globParts), a2), [[], []]);
3734
3765
  this.patterns = o.map((a2, l) => {
3735
- let u2 = h[l];
3736
- if (!u2) throw new Error("invalid pattern object");
3737
- return new nt(a2, u2, 0, this.platform);
3766
+ let u4 = h[l];
3767
+ if (!u4) throw new Error("invalid pattern object");
3768
+ return new nt(a2, u4, 0, this.platform);
3738
3769
  });
3739
3770
  }
3740
3771
  async walk() {
@@ -3793,11 +3824,659 @@ var Ui = Object.assign(ts, { stream: Bt, iterate: Ut });
3793
3824
  var Ze = Object.assign(Je, { glob: Je, globSync: ts, sync: Ui, globStream: Qe, stream: Ii, globStreamSync: Bt, streamSync: ji, globIterate: es, iterate: Bi, globIterateSync: Ut, iterateSync: zi, Glob: I3, hasMagic: le, escape: tt, unescape: W2 });
3794
3825
  Ze.glob = Ze;
3795
3826
 
3827
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/opt-arg.js
3828
+ var typeOrUndef = (val, t) => typeof val === "undefined" || typeof val === t;
3829
+ var isRimrafOptions = (o) => !!o && typeof o === "object" && typeOrUndef(o.preserveRoot, "boolean") && typeOrUndef(o.tmp, "string") && typeOrUndef(o.maxRetries, "number") && typeOrUndef(o.retryDelay, "number") && typeOrUndef(o.backoff, "number") && typeOrUndef(o.maxBackoff, "number") && (typeOrUndef(o.glob, "boolean") || o.glob && typeof o.glob === "object") && typeOrUndef(o.filter, "function");
3830
+ var assertRimrafOptions = (o) => {
3831
+ if (!isRimrafOptions(o)) {
3832
+ throw new Error("invalid rimraf options");
3833
+ }
3834
+ };
3835
+ var optArgT = (opt) => {
3836
+ assertRimrafOptions(opt);
3837
+ const { glob, ...options } = opt;
3838
+ if (!glob) {
3839
+ return options;
3840
+ }
3841
+ const globOpt = glob === true ? opt.signal ? { signal: opt.signal } : {} : opt.signal ? {
3842
+ signal: opt.signal,
3843
+ ...glob
3844
+ } : glob;
3845
+ return {
3846
+ ...options,
3847
+ glob: {
3848
+ ...globOpt,
3849
+ // always get absolute paths from glob, to ensure
3850
+ // that we are referencing the correct thing.
3851
+ absolute: true,
3852
+ withFileTypes: false
3853
+ }
3854
+ };
3855
+ };
3856
+ var optArg = (opt = {}) => optArgT(opt);
3857
+ var optArgSync = (opt = {}) => optArgT(opt);
3858
+
3859
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/path-arg.js
3860
+ import { parse, resolve } from "node:path";
3861
+ import { inspect } from "node:util";
3862
+ var pathArg = (path, opt = {}) => {
3863
+ const type = typeof path;
3864
+ if (type !== "string") {
3865
+ const ctor = path && type === "object" && path.constructor;
3866
+ const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? inspect(path) : `type ${type} ${path}`;
3867
+ const msg = `The "path" argument must be of type string. Received ${received}`;
3868
+ throw Object.assign(new TypeError(msg), {
3869
+ path,
3870
+ code: "ERR_INVALID_ARG_TYPE"
3871
+ });
3872
+ }
3873
+ if (/\0/.test(path)) {
3874
+ const msg = "path must be a string without null bytes";
3875
+ throw Object.assign(new TypeError(msg), {
3876
+ path,
3877
+ code: "ERR_INVALID_ARG_VALUE"
3878
+ });
3879
+ }
3880
+ path = resolve(path);
3881
+ const { root } = parse(path);
3882
+ if (path === root && opt.preserveRoot !== false) {
3883
+ const msg = "refusing to remove root directory without preserveRoot:false";
3884
+ throw Object.assign(new Error(msg), {
3885
+ path,
3886
+ code: "ERR_PRESERVE_ROOT"
3887
+ });
3888
+ }
3889
+ if (process.platform === "win32") {
3890
+ const badWinChars = /[*|"<>?:]/;
3891
+ const { root: root2 } = parse(path);
3892
+ if (badWinChars.test(path.substring(root2.length))) {
3893
+ throw Object.assign(new Error("Illegal characters in path."), {
3894
+ path,
3895
+ code: "EINVAL"
3896
+ });
3897
+ }
3898
+ }
3899
+ return path;
3900
+ };
3901
+ var path_arg_default = pathArg;
3902
+
3903
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/fs.js
3904
+ import { readdirSync as rdSync } from "node:fs";
3905
+ import fsPromises from "node:fs/promises";
3906
+ import { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync, unlinkSync } from "node:fs";
3907
+ var readdirSync = (path) => rdSync(path, { withFileTypes: true });
3908
+ var promises = {
3909
+ chmod: fsPromises.chmod,
3910
+ mkdir: fsPromises.mkdir,
3911
+ readdir: (path) => fsPromises.readdir(path, { withFileTypes: true }),
3912
+ rename: fsPromises.rename,
3913
+ rm: fsPromises.rm,
3914
+ rmdir: fsPromises.rmdir,
3915
+ stat: fsPromises.stat,
3916
+ lstat: fsPromises.lstat,
3917
+ unlink: fsPromises.unlink
3918
+ };
3919
+
3920
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-posix.js
3921
+ import { parse as parse2, resolve as resolve2 } from "node:path";
3922
+
3923
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/readdir-or-error.js
3924
+ var { readdir } = promises;
3925
+ var readdirOrError = (path) => readdir(path).catch((er) => er);
3926
+ var readdirOrErrorSync = (path) => {
3927
+ try {
3928
+ return readdirSync(path);
3929
+ } catch (er) {
3930
+ return er;
3931
+ }
3932
+ };
3933
+
3934
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/error.js
3935
+ var isRecord = (o) => !!o && typeof o === "object";
3936
+ var hasString = (o, key) => key in o && typeof o[key] === "string";
3937
+ var isFsError = (o) => isRecord(o) && hasString(o, "code") && hasString(o, "path");
3938
+ var errorCode = (er) => isRecord(er) && hasString(er, "code") ? er.code : null;
3939
+
3940
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/ignore-enoent.js
3941
+ var ignoreENOENT = async (p, rethrow) => p.catch((er) => {
3942
+ if (errorCode(er) === "ENOENT") {
3943
+ return;
3944
+ }
3945
+ throw rethrow ?? er;
3946
+ });
3947
+ var ignoreENOENTSync = (fn, rethrow) => {
3948
+ try {
3949
+ return fn();
3950
+ } catch (er) {
3951
+ if (errorCode(er) === "ENOENT") {
3952
+ return;
3953
+ }
3954
+ throw rethrow ?? er;
3955
+ }
3956
+ };
3957
+
3958
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-posix.js
3959
+ var { lstat, rmdir, unlink } = promises;
3960
+ var rimrafPosix = async (path, opt) => {
3961
+ opt?.signal?.throwIfAborted();
3962
+ return await ignoreENOENT(lstat(path).then((stat2) => rimrafPosixDir(path, opt, stat2))) ?? true;
3963
+ };
3964
+ var rimrafPosixSync = (path, opt) => {
3965
+ opt?.signal?.throwIfAborted();
3966
+ return ignoreENOENTSync(() => rimrafPosixDirSync(path, opt, lstatSync(path))) ?? true;
3967
+ };
3968
+ var rimrafPosixDir = async (path, opt, ent) => {
3969
+ opt?.signal?.throwIfAborted();
3970
+ const entries = ent.isDirectory() ? await readdirOrError(path) : null;
3971
+ if (!Array.isArray(entries)) {
3972
+ if (entries) {
3973
+ if (errorCode(entries) === "ENOENT") {
3974
+ return true;
3975
+ }
3976
+ if (errorCode(entries) !== "ENOTDIR") {
3977
+ throw entries;
3978
+ }
3979
+ }
3980
+ if (opt.filter && !await opt.filter(path, ent)) {
3981
+ return false;
3982
+ }
3983
+ await ignoreENOENT(unlink(path));
3984
+ return true;
3985
+ }
3986
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(resolve2(path, ent2.name), opt, ent2)))).every((v3) => v3 === true);
3987
+ if (!removedAll) {
3988
+ return false;
3989
+ }
3990
+ if (opt.preserveRoot === false && path === parse2(path).root) {
3991
+ return false;
3992
+ }
3993
+ if (opt.filter && !await opt.filter(path, ent)) {
3994
+ return false;
3995
+ }
3996
+ await ignoreENOENT(rmdir(path));
3997
+ return true;
3998
+ };
3999
+ var rimrafPosixDirSync = (path, opt, ent) => {
4000
+ opt?.signal?.throwIfAborted();
4001
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path) : null;
4002
+ if (!Array.isArray(entries)) {
4003
+ if (entries) {
4004
+ if (errorCode(entries) === "ENOENT") {
4005
+ return true;
4006
+ }
4007
+ if (errorCode(entries) !== "ENOTDIR") {
4008
+ throw entries;
4009
+ }
4010
+ }
4011
+ if (opt.filter && !opt.filter(path, ent)) {
4012
+ return false;
4013
+ }
4014
+ ignoreENOENTSync(() => unlinkSync(path));
4015
+ return true;
4016
+ }
4017
+ let removedAll = true;
4018
+ for (const ent2 of entries) {
4019
+ const p = resolve2(path, ent2.name);
4020
+ removedAll = rimrafPosixDirSync(p, opt, ent2) && removedAll;
4021
+ }
4022
+ if (opt.preserveRoot === false && path === parse2(path).root) {
4023
+ return false;
4024
+ }
4025
+ if (!removedAll) {
4026
+ return false;
4027
+ }
4028
+ if (opt.filter && !opt.filter(path, ent)) {
4029
+ return false;
4030
+ }
4031
+ ignoreENOENTSync(() => rmdirSync(path));
4032
+ return true;
4033
+ };
4034
+
4035
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-windows.js
4036
+ import { parse as parse5, resolve as resolve5 } from "node:path";
4037
+
4038
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/fix-eperm.js
4039
+ var { chmod } = promises;
4040
+ var fixEPERM = (fn) => async (path) => {
4041
+ try {
4042
+ return void await ignoreENOENT(fn(path));
4043
+ } catch (er) {
4044
+ if (errorCode(er) === "EPERM") {
4045
+ if (!await ignoreENOENT(chmod(path, 438).then(() => true), er)) {
4046
+ return;
4047
+ }
4048
+ return void await fn(path);
4049
+ }
4050
+ throw er;
4051
+ }
4052
+ };
4053
+ var fixEPERMSync = (fn) => (path) => {
4054
+ try {
4055
+ return void ignoreENOENTSync(() => fn(path));
4056
+ } catch (er) {
4057
+ if (errorCode(er) === "EPERM") {
4058
+ if (!ignoreENOENTSync(() => (chmodSync(path, 438), true), er)) {
4059
+ return;
4060
+ }
4061
+ return void fn(path);
4062
+ }
4063
+ throw er;
4064
+ }
4065
+ };
4066
+
4067
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/retry-busy.js
4068
+ import { setTimeout as setTimeout2 } from "node:timers/promises";
4069
+ var MAXBACKOFF = 200;
4070
+ var RATE = 1.2;
4071
+ var MAXRETRIES = 10;
4072
+ var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]);
4073
+ var retryBusy = (fn) => {
4074
+ const method = async (path, opt, backoff = 1, total = 0) => {
4075
+ const mbo = opt.maxBackoff || MAXBACKOFF;
4076
+ const rate = opt.backoff || RATE;
4077
+ const max = opt.maxRetries || MAXRETRIES;
4078
+ let retries = 0;
4079
+ while (true) {
4080
+ try {
4081
+ return await fn(path);
4082
+ } catch (er) {
4083
+ if (isFsError(er) && er.path === path && codes.has(er.code)) {
4084
+ backoff = Math.ceil(backoff * rate);
4085
+ total = backoff + total;
4086
+ if (total < mbo) {
4087
+ await setTimeout2(backoff);
4088
+ return method(path, opt, backoff, total);
4089
+ }
4090
+ if (retries < max) {
4091
+ retries++;
4092
+ continue;
4093
+ }
4094
+ }
4095
+ throw er;
4096
+ }
4097
+ }
4098
+ };
4099
+ return method;
4100
+ };
4101
+ var retryBusySync = (fn) => {
4102
+ const method = (path, opt) => {
4103
+ const max = opt.maxRetries || MAXRETRIES;
4104
+ let retries = 0;
4105
+ while (true) {
4106
+ try {
4107
+ return fn(path);
4108
+ } catch (er) {
4109
+ if (isFsError(er) && er.path === path && codes.has(er.code) && retries < max) {
4110
+ retries++;
4111
+ continue;
4112
+ }
4113
+ throw er;
4114
+ }
4115
+ }
4116
+ };
4117
+ return method;
4118
+ };
4119
+
4120
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-move-remove.js
4121
+ import { basename, parse as parse4, resolve as resolve4 } from "node:path";
4122
+
4123
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/default-tmp.js
4124
+ import { tmpdir } from "node:os";
4125
+ import { parse as parse3, resolve as resolve3 } from "node:path";
4126
+ var { stat } = promises;
4127
+ var isDirSync = (path) => {
4128
+ try {
4129
+ return statSync(path).isDirectory();
4130
+ } catch {
4131
+ return false;
4132
+ }
4133
+ };
4134
+ var isDir = (path) => stat(path).then((st2) => st2.isDirectory(), () => false);
4135
+ var win32DefaultTmp = async (path) => {
4136
+ const { root } = parse3(path);
4137
+ const tmp = tmpdir();
4138
+ const { root: tmpRoot } = parse3(tmp);
4139
+ if (root.toLowerCase() === tmpRoot.toLowerCase()) {
4140
+ return tmp;
4141
+ }
4142
+ const driveTmp = resolve3(root, "/temp");
4143
+ if (await isDir(driveTmp)) {
4144
+ return driveTmp;
4145
+ }
4146
+ return root;
4147
+ };
4148
+ var win32DefaultTmpSync = (path) => {
4149
+ const { root } = parse3(path);
4150
+ const tmp = tmpdir();
4151
+ const { root: tmpRoot } = parse3(tmp);
4152
+ if (root.toLowerCase() === tmpRoot.toLowerCase()) {
4153
+ return tmp;
4154
+ }
4155
+ const driveTmp = resolve3(root, "/temp");
4156
+ if (isDirSync(driveTmp)) {
4157
+ return driveTmp;
4158
+ }
4159
+ return root;
4160
+ };
4161
+ var posixDefaultTmp = async () => tmpdir();
4162
+ var posixDefaultTmpSync = () => tmpdir();
4163
+ var defaultTmp = process.platform === "win32" ? win32DefaultTmp : posixDefaultTmp;
4164
+ var defaultTmpSync = process.platform === "win32" ? win32DefaultTmpSync : posixDefaultTmpSync;
4165
+
4166
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-move-remove.js
4167
+ var { lstat: lstat2, rename, unlink: unlink2, rmdir: rmdir2 } = promises;
4168
+ var uniqueFilename = (path) => `.${basename(path)}.${Math.random()}`;
4169
+ var unlinkFixEPERM = fixEPERM(unlink2);
4170
+ var unlinkFixEPERMSync = fixEPERMSync(unlinkSync);
4171
+ var rimrafMoveRemove = async (path, opt) => {
4172
+ opt?.signal?.throwIfAborted();
4173
+ return await ignoreENOENT(lstat2(path).then((stat2) => rimrafMoveRemoveDir(path, opt, stat2))) ?? true;
4174
+ };
4175
+ var rimrafMoveRemoveDir = async (path, opt, ent) => {
4176
+ opt?.signal?.throwIfAborted();
4177
+ if (!opt.tmp) {
4178
+ return rimrafMoveRemoveDir(path, { ...opt, tmp: await defaultTmp(path) }, ent);
4179
+ }
4180
+ if (path === opt.tmp && parse4(path).root !== path) {
4181
+ throw new Error("cannot delete temp directory used for deletion");
4182
+ }
4183
+ const entries = ent.isDirectory() ? await readdirOrError(path) : null;
4184
+ if (!Array.isArray(entries)) {
4185
+ if (entries) {
4186
+ if (errorCode(entries) === "ENOENT") {
4187
+ return true;
4188
+ }
4189
+ if (errorCode(entries) !== "ENOTDIR") {
4190
+ throw entries;
4191
+ }
4192
+ }
4193
+ if (opt.filter && !await opt.filter(path, ent)) {
4194
+ return false;
4195
+ }
4196
+ await ignoreENOENT(tmpUnlink(path, opt.tmp, unlinkFixEPERM));
4197
+ return true;
4198
+ }
4199
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(resolve4(path, ent2.name), opt, ent2)))).every((v3) => v3 === true);
4200
+ if (!removedAll) {
4201
+ return false;
4202
+ }
4203
+ if (opt.preserveRoot === false && path === parse4(path).root) {
4204
+ return false;
4205
+ }
4206
+ if (opt.filter && !await opt.filter(path, ent)) {
4207
+ return false;
4208
+ }
4209
+ await ignoreENOENT(tmpUnlink(path, opt.tmp, rmdir2));
4210
+ return true;
4211
+ };
4212
+ var tmpUnlink = async (path, tmp, rm2) => {
4213
+ const tmpFile = resolve4(tmp, uniqueFilename(path));
4214
+ await rename(path, tmpFile);
4215
+ return await rm2(tmpFile);
4216
+ };
4217
+ var rimrafMoveRemoveSync = (path, opt) => {
4218
+ opt?.signal?.throwIfAborted();
4219
+ return ignoreENOENTSync(() => rimrafMoveRemoveDirSync(path, opt, lstatSync(path))) ?? true;
4220
+ };
4221
+ var rimrafMoveRemoveDirSync = (path, opt, ent) => {
4222
+ opt?.signal?.throwIfAborted();
4223
+ if (!opt.tmp) {
4224
+ return rimrafMoveRemoveDirSync(path, { ...opt, tmp: defaultTmpSync(path) }, ent);
4225
+ }
4226
+ const tmp = opt.tmp;
4227
+ if (path === opt.tmp && parse4(path).root !== path) {
4228
+ throw new Error("cannot delete temp directory used for deletion");
4229
+ }
4230
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path) : null;
4231
+ if (!Array.isArray(entries)) {
4232
+ if (entries) {
4233
+ if (errorCode(entries) === "ENOENT") {
4234
+ return true;
4235
+ }
4236
+ if (errorCode(entries) !== "ENOTDIR") {
4237
+ throw entries;
4238
+ }
4239
+ }
4240
+ if (opt.filter && !opt.filter(path, ent)) {
4241
+ return false;
4242
+ }
4243
+ ignoreENOENTSync(() => tmpUnlinkSync(path, tmp, unlinkFixEPERMSync));
4244
+ return true;
4245
+ }
4246
+ let removedAll = true;
4247
+ for (const ent2 of entries) {
4248
+ const p = resolve4(path, ent2.name);
4249
+ removedAll = rimrafMoveRemoveDirSync(p, opt, ent2) && removedAll;
4250
+ }
4251
+ if (!removedAll) {
4252
+ return false;
4253
+ }
4254
+ if (opt.preserveRoot === false && path === parse4(path).root) {
4255
+ return false;
4256
+ }
4257
+ if (opt.filter && !opt.filter(path, ent)) {
4258
+ return false;
4259
+ }
4260
+ ignoreENOENTSync(() => tmpUnlinkSync(path, tmp, rmdirSync));
4261
+ return true;
4262
+ };
4263
+ var tmpUnlinkSync = (path, tmp, rmSync2) => {
4264
+ const tmpFile = resolve4(tmp, uniqueFilename(path));
4265
+ renameSync(path, tmpFile);
4266
+ return rmSync2(tmpFile);
4267
+ };
4268
+
4269
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-windows.js
4270
+ var { unlink: unlink3, rmdir: rmdir3, lstat: lstat3 } = promises;
4271
+ var rimrafWindowsFile = retryBusy(fixEPERM(unlink3));
4272
+ var rimrafWindowsFileSync = retryBusySync(fixEPERMSync(unlinkSync));
4273
+ var rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir3));
4274
+ var rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(rmdirSync));
4275
+ var rimrafWindowsDirMoveRemoveFallback = async (path, { filter, ...opt }) => {
4276
+ opt?.signal?.throwIfAborted();
4277
+ try {
4278
+ await rimrafWindowsDirRetry(path, opt);
4279
+ return true;
4280
+ } catch (er) {
4281
+ if (errorCode(er) === "ENOTEMPTY") {
4282
+ return rimrafMoveRemove(path, opt);
4283
+ }
4284
+ throw er;
4285
+ }
4286
+ };
4287
+ var rimrafWindowsDirMoveRemoveFallbackSync = (path, { filter, ...opt }) => {
4288
+ opt?.signal?.throwIfAborted();
4289
+ try {
4290
+ rimrafWindowsDirRetrySync(path, opt);
4291
+ return true;
4292
+ } catch (er) {
4293
+ if (errorCode(er) === "ENOTEMPTY") {
4294
+ return rimrafMoveRemoveSync(path, opt);
4295
+ }
4296
+ throw er;
4297
+ }
4298
+ };
4299
+ var START = /* @__PURE__ */ Symbol("start");
4300
+ var CHILD = /* @__PURE__ */ Symbol("child");
4301
+ var FINISH = /* @__PURE__ */ Symbol("finish");
4302
+ var rimrafWindows = async (path, opt) => {
4303
+ opt?.signal?.throwIfAborted();
4304
+ return await ignoreENOENT(lstat3(path).then((stat2) => rimrafWindowsDir(path, opt, stat2, START))) ?? true;
4305
+ };
4306
+ var rimrafWindowsSync = (path, opt) => {
4307
+ opt?.signal?.throwIfAborted();
4308
+ return ignoreENOENTSync(() => rimrafWindowsDirSync(path, opt, lstatSync(path), START)) ?? true;
4309
+ };
4310
+ var rimrafWindowsDir = async (path, opt, ent, state = START) => {
4311
+ opt?.signal?.throwIfAborted();
4312
+ const entries = ent.isDirectory() ? await readdirOrError(path) : null;
4313
+ if (!Array.isArray(entries)) {
4314
+ if (entries) {
4315
+ if (errorCode(entries) === "ENOENT") {
4316
+ return true;
4317
+ }
4318
+ if (errorCode(entries) !== "ENOTDIR") {
4319
+ throw entries;
4320
+ }
4321
+ }
4322
+ if (opt.filter && !await opt.filter(path, ent)) {
4323
+ return false;
4324
+ }
4325
+ await ignoreENOENT(rimrafWindowsFile(path, opt));
4326
+ return true;
4327
+ }
4328
+ const s = state === START ? CHILD : state;
4329
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(resolve5(path, ent2.name), opt, ent2, s)))).every((v3) => v3 === true);
4330
+ if (state === START) {
4331
+ return rimrafWindowsDir(path, opt, ent, FINISH);
4332
+ } else if (state === FINISH) {
4333
+ if (opt.preserveRoot === false && path === parse5(path).root) {
4334
+ return false;
4335
+ }
4336
+ if (!removedAll) {
4337
+ return false;
4338
+ }
4339
+ if (opt.filter && !await opt.filter(path, ent)) {
4340
+ return false;
4341
+ }
4342
+ await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path, opt));
4343
+ }
4344
+ return true;
4345
+ };
4346
+ var rimrafWindowsDirSync = (path, opt, ent, state = START) => {
4347
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path) : null;
4348
+ if (!Array.isArray(entries)) {
4349
+ if (entries) {
4350
+ if (errorCode(entries) === "ENOENT") {
4351
+ return true;
4352
+ }
4353
+ if (errorCode(entries) !== "ENOTDIR") {
4354
+ throw entries;
4355
+ }
4356
+ }
4357
+ if (opt.filter && !opt.filter(path, ent)) {
4358
+ return false;
4359
+ }
4360
+ ignoreENOENTSync(() => rimrafWindowsFileSync(path, opt));
4361
+ return true;
4362
+ }
4363
+ let removedAll = true;
4364
+ for (const ent2 of entries) {
4365
+ const s = state === START ? CHILD : state;
4366
+ const p = resolve5(path, ent2.name);
4367
+ removedAll = rimrafWindowsDirSync(p, opt, ent2, s) && removedAll;
4368
+ }
4369
+ if (state === START) {
4370
+ return rimrafWindowsDirSync(path, opt, ent, FINISH);
4371
+ } else if (state === FINISH) {
4372
+ if (opt.preserveRoot === false && path === parse5(path).root) {
4373
+ return false;
4374
+ }
4375
+ if (!removedAll) {
4376
+ return false;
4377
+ }
4378
+ if (opt.filter && !opt.filter(path, ent)) {
4379
+ return false;
4380
+ }
4381
+ ignoreENOENTSync(() => rimrafWindowsDirMoveRemoveFallbackSync(path, opt));
4382
+ }
4383
+ return true;
4384
+ };
4385
+
4386
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-manual.js
4387
+ var rimrafManual = process.platform === "win32" ? rimrafWindows : rimrafPosix;
4388
+ var rimrafManualSync = process.platform === "win32" ? rimrafWindowsSync : rimrafPosixSync;
4389
+
4390
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/rimraf-native.js
4391
+ var { rm } = promises;
4392
+ var rimrafNative = async (path, opt) => {
4393
+ await rm(path, {
4394
+ ...opt,
4395
+ force: true,
4396
+ recursive: true
4397
+ });
4398
+ return true;
4399
+ };
4400
+ var rimrafNativeSync = (path, opt) => {
4401
+ rmSync(path, {
4402
+ ...opt,
4403
+ force: true,
4404
+ recursive: true
4405
+ });
4406
+ return true;
4407
+ };
4408
+
4409
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/use-native.js
4410
+ var [major = 0, minor = 0] = process.version.replace(/^v/, "").split(".").map((v3) => parseInt(v3, 10));
4411
+ var hasNative = major > 14 || major === 14 && minor >= 14;
4412
+ var useNative = !hasNative || process.platform === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
4413
+ var useNativeSync = !hasNative || process.platform === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
4414
+
4415
+ // ../../node_modules/.vlt/~npm~rimraf@6.1.3/node_modules/rimraf/dist/esm/index.js
4416
+ var wrap = (fn) => async (path, opt) => {
4417
+ const options = optArg(opt);
4418
+ if (options.glob) {
4419
+ path = await Ze(path, options.glob);
4420
+ }
4421
+ if (Array.isArray(path)) {
4422
+ return !!(await Promise.all(path.map((p) => fn(path_arg_default(p, options), options)))).reduce((a2, b) => a2 && b, true);
4423
+ } else {
4424
+ return !!await fn(path_arg_default(path, options), options);
4425
+ }
4426
+ };
4427
+ var wrapSync = (fn) => (path, opt) => {
4428
+ const options = optArgSync(opt);
4429
+ if (options.glob) {
4430
+ path = ts(path, options.glob);
4431
+ }
4432
+ if (Array.isArray(path)) {
4433
+ return !!path.map((p) => fn(path_arg_default(p, options), options)).reduce((a2, b) => a2 && b, true);
4434
+ } else {
4435
+ return !!fn(path_arg_default(path, options), options);
4436
+ }
4437
+ };
4438
+ var nativeSync = wrapSync(rimrafNativeSync);
4439
+ var native = Object.assign(wrap(rimrafNative), {
4440
+ sync: nativeSync
4441
+ });
4442
+ var manualSync = wrapSync(rimrafManualSync);
4443
+ var manual = Object.assign(wrap(rimrafManual), {
4444
+ sync: manualSync
4445
+ });
4446
+ var windowsSync = wrapSync(rimrafWindowsSync);
4447
+ var windows = Object.assign(wrap(rimrafWindows), {
4448
+ sync: windowsSync
4449
+ });
4450
+ var posixSync = wrapSync(rimrafPosixSync);
4451
+ var posix = Object.assign(wrap(rimrafPosix), { sync: posixSync });
4452
+ var moveRemoveSync = wrapSync(rimrafMoveRemoveSync);
4453
+ var moveRemove = Object.assign(wrap(rimrafMoveRemove), {
4454
+ sync: moveRemoveSync
4455
+ });
4456
+ var rimrafSync = wrapSync((path, opt) => useNativeSync(opt) ? rimrafNativeSync(path, opt) : rimrafManualSync(path, opt));
4457
+ var rimraf_ = wrap((path, opt) => useNative(opt) ? rimrafNative(path, opt) : rimrafManual(path, opt));
4458
+ var rimraf = Object.assign(rimraf_, {
4459
+ rimraf: rimraf_,
4460
+ sync: rimrafSync,
4461
+ rimrafSync,
4462
+ manual,
4463
+ manualSync,
4464
+ native,
4465
+ nativeSync,
4466
+ posix,
4467
+ posixSync,
4468
+ windows,
4469
+ windowsSync,
4470
+ moveRemove,
4471
+ moveRemoveSync
4472
+ });
4473
+ rimraf.rimraf = rimraf;
4474
+
3796
4475
  export {
3797
4476
  L,
3798
4477
  promiseSpawn,
3799
4478
  which,
3800
4479
  whichSync,
3801
4480
  ts,
3802
- Ze
4481
+ rimraf
3803
4482
  };