@sourcegraph/amp 0.0.1748851339-g31df22 → 0.0.1748877319-g69d2be

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 (52) hide show
  1. package/dist/amp.js +3 -2
  2. package/dist/amp.js.map +1 -1
  3. package/dist/client-CEMYqypS.js +35 -0
  4. package/dist/client-CEMYqypS.js.map +1 -0
  5. package/dist/{console-k3nh7b4U.js → console-Dz8kjLXq.js} +38668 -17361
  6. package/dist/console-Dz8kjLXq.js.map +1 -0
  7. package/dist/{create_file.node-Dxp9NAiW.js → create_file.node-Dkg9a9qS.js} +2 -2
  8. package/dist/{create_file.node-Dxp9NAiW.js.map → create_file.node-Dkg9a9qS.js.map} +1 -1
  9. package/dist/{edit_file.node-BlCpGVR-.js → edit_file.node-BzmJeIBM.js} +10 -10
  10. package/dist/{edit_file.node-BlCpGVR-.js.map → edit_file.node-BzmJeIBM.js.map} +1 -1
  11. package/dist/{executable-DTI1_xm7.js → executable-BfvtWYTF.js} +2 -2
  12. package/dist/{executable-DTI1_xm7.js.map → executable-BfvtWYTF.js.map} +1 -1
  13. package/dist/{files-DdjDm_B8.js → files-DLJqtzT7.js} +3 -3
  14. package/dist/{files-DdjDm_B8.js.map → files-DLJqtzT7.js.map} +1 -1
  15. package/dist/glob.node-D18uhtO0.js +137 -0
  16. package/dist/glob.node-D18uhtO0.js.map +1 -0
  17. package/dist/index-DDEnF9L5.js +922 -0
  18. package/dist/index-DDEnF9L5.js.map +1 -0
  19. package/dist/{list_directory.node-DDhJZGvT.js → list_directory.node-ldHqnCmb.js} +2 -2
  20. package/dist/{list_directory.node-DDhJZGvT.js.map → list_directory.node-ldHqnCmb.js.map} +1 -1
  21. package/dist/{load-profile-CWDhvBXX.js → load-profile-2hKEWJfV.js} +2 -2
  22. package/dist/{load-profile-CWDhvBXX.js.map → load-profile-2hKEWJfV.js.map} +1 -1
  23. package/dist/main-BnHTihL6.js +19700 -0
  24. package/dist/main-BnHTihL6.js.map +1 -0
  25. package/dist/{node-B1RLuGfG.js → node-BHe5RJPs.js} +41 -41
  26. package/dist/{node-B1RLuGfG.js.map → node-BHe5RJPs.js.map} +1 -1
  27. package/dist/{node-w5kFgl6-.js → node-BMzC1GPN.js} +47 -47
  28. package/dist/{node-w5kFgl6-.js.map → node-BMzC1GPN.js.map} +1 -1
  29. package/dist/node-BRxAOe2b.js +85 -0
  30. package/dist/node-BRxAOe2b.js.map +1 -0
  31. package/dist/{node-DGc3Eu0F.js → node-CUTKGt9Y.js} +3 -3
  32. package/dist/{node-DGc3Eu0F.js.map → node-CUTKGt9Y.js.map} +1 -1
  33. package/dist/{node-BZlRkYQw.js → node-CzSXw-Xz.js} +2 -2
  34. package/dist/{node-BZlRkYQw.js.map → node-CzSXw-Xz.js.map} +1 -1
  35. package/dist/{node-DuhaU87r.js → node-DcXu8fEU.js} +1090 -833
  36. package/dist/node-DcXu8fEU.js.map +1 -0
  37. package/dist/{read_file.node-CsATnmUF.js → read_file.node-6DnwIJAn.js} +2 -2
  38. package/dist/{read_file.node-CsATnmUF.js.map → read_file.node-6DnwIJAn.js.map} +1 -1
  39. package/dist/{stdio-Egb8ZIIg.js → stdio-B_076PGB.js} +29 -29
  40. package/dist/{stdio-Egb8ZIIg.js.map → stdio-B_076PGB.js.map} +1 -1
  41. package/dist/storybook.js +1 -1
  42. package/dist/{undo_edit.node-CHrrMPkn.js → undo_edit.node-WsSsWWo7.js} +10 -10
  43. package/dist/{undo_edit.node-CHrrMPkn.js.map → undo_edit.node-WsSsWWo7.js.map} +1 -1
  44. package/package.json +1 -1
  45. package/dist/console-k3nh7b4U.js.map +0 -1
  46. package/dist/glob.node-BnKeKl9M.js +0 -1051
  47. package/dist/glob.node-BnKeKl9M.js.map +0 -1
  48. package/dist/main-DuPQOPga.js +0 -40843
  49. package/dist/main-DuPQOPga.js.map +0 -1
  50. package/dist/node-3m0J6gBv.js +0 -72
  51. package/dist/node-3m0J6gBv.js.map +0 -1
  52. package/dist/node-DuhaU87r.js.map +0 -1
@@ -0,0 +1,922 @@
1
+ #!/usr/bin/env node
2
+ import { z as xt } from "./console-Dz8kjLXq.js";
3
+ var pt = {}, ft, Et;
4
+ function ct() {
5
+ if (Et) return ft;
6
+ Et = 1;
7
+ const A = "\\\\/", b = `[^${A}]`, y = "\\.", U = "\\+", P = "\\?", a = "\\/", u = "(?=.)", i = "[^/]", p = `(?:${a}|$)`, H = `(?:^|${a})`, c = `${y}{1,2}${p}`, C = `(?!${y})`, s = `(?!${H}${c})`, S = `(?!${y}{0,1}${p})`, $ = `(?!${c})`, m = `[^.${a}]`, x = `${i}*?`, X = {
8
+ DOT_LITERAL: y,
9
+ PLUS_LITERAL: U,
10
+ QMARK_LITERAL: P,
11
+ SLASH_LITERAL: a,
12
+ ONE_CHAR: u,
13
+ QMARK: i,
14
+ END_ANCHOR: p,
15
+ DOTS_SLASH: c,
16
+ NO_DOT: C,
17
+ NO_DOTS: s,
18
+ NO_DOT_SLASH: S,
19
+ NO_DOTS_SLASH: $,
20
+ QMARK_NO_DOT: m,
21
+ STAR: x,
22
+ START_ANCHOR: H,
23
+ SEP: "/"
24
+ }, d = {
25
+ ...X,
26
+ SLASH_LITERAL: `[${A}]`,
27
+ QMARK: b,
28
+ STAR: `${b}*?`,
29
+ DOTS_SLASH: `${y}{1,2}(?:[${A}]|$)`,
30
+ NO_DOT: `(?!${y})`,
31
+ NO_DOTS: `(?!(?:^|[${A}])${y}{1,2}(?:[${A}]|$))`,
32
+ NO_DOT_SLASH: `(?!${y}{0,1}(?:[${A}]|$))`,
33
+ NO_DOTS_SLASH: `(?!${y}{1,2}(?:[${A}]|$))`,
34
+ QMARK_NO_DOT: `[^.${A}]`,
35
+ START_ANCHOR: `(?:^|[${A}])`,
36
+ END_ANCHOR: `(?:[${A}]|$)`,
37
+ SEP: "\\"
38
+ }, B = {
39
+ alnum: "a-zA-Z0-9",
40
+ alpha: "a-zA-Z",
41
+ ascii: "\\x00-\\x7F",
42
+ blank: " \\t",
43
+ cntrl: "\\x00-\\x1F\\x7F",
44
+ digit: "0-9",
45
+ graph: "\\x21-\\x7E",
46
+ lower: "a-z",
47
+ print: "\\x20-\\x7E ",
48
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
49
+ space: " \\t\\r\\n\\v\\f",
50
+ upper: "A-Z",
51
+ word: "A-Za-z0-9_",
52
+ xdigit: "A-Fa-f0-9"
53
+ };
54
+ return ft = {
55
+ MAX_LENGTH: 1024 * 64,
56
+ POSIX_REGEX_SOURCE: B,
57
+ // regular expressions
58
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
59
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
60
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
61
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
62
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
63
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
64
+ // Replace globs with equivalent patterns to reduce parsing time.
65
+ REPLACEMENTS: {
66
+ "***": "*",
67
+ "**/**": "**",
68
+ "**/**/**": "**"
69
+ },
70
+ // Digits
71
+ CHAR_0: 48,
72
+ /* 0 */
73
+ CHAR_9: 57,
74
+ /* 9 */
75
+ // Alphabet chars.
76
+ CHAR_UPPERCASE_A: 65,
77
+ /* A */
78
+ CHAR_LOWERCASE_A: 97,
79
+ /* a */
80
+ CHAR_UPPERCASE_Z: 90,
81
+ /* Z */
82
+ CHAR_LOWERCASE_Z: 122,
83
+ /* z */
84
+ CHAR_LEFT_PARENTHESES: 40,
85
+ /* ( */
86
+ CHAR_RIGHT_PARENTHESES: 41,
87
+ /* ) */
88
+ CHAR_ASTERISK: 42,
89
+ /* * */
90
+ // Non-alphabetic chars.
91
+ CHAR_AMPERSAND: 38,
92
+ /* & */
93
+ CHAR_AT: 64,
94
+ /* @ */
95
+ CHAR_BACKWARD_SLASH: 92,
96
+ /* \ */
97
+ CHAR_CARRIAGE_RETURN: 13,
98
+ /* \r */
99
+ CHAR_CIRCUMFLEX_ACCENT: 94,
100
+ /* ^ */
101
+ CHAR_COLON: 58,
102
+ /* : */
103
+ CHAR_COMMA: 44,
104
+ /* , */
105
+ CHAR_DOT: 46,
106
+ /* . */
107
+ CHAR_DOUBLE_QUOTE: 34,
108
+ /* " */
109
+ CHAR_EQUAL: 61,
110
+ /* = */
111
+ CHAR_EXCLAMATION_MARK: 33,
112
+ /* ! */
113
+ CHAR_FORM_FEED: 12,
114
+ /* \f */
115
+ CHAR_FORWARD_SLASH: 47,
116
+ /* / */
117
+ CHAR_GRAVE_ACCENT: 96,
118
+ /* ` */
119
+ CHAR_HASH: 35,
120
+ /* # */
121
+ CHAR_HYPHEN_MINUS: 45,
122
+ /* - */
123
+ CHAR_LEFT_ANGLE_BRACKET: 60,
124
+ /* < */
125
+ CHAR_LEFT_CURLY_BRACE: 123,
126
+ /* { */
127
+ CHAR_LEFT_SQUARE_BRACKET: 91,
128
+ /* [ */
129
+ CHAR_LINE_FEED: 10,
130
+ /* \n */
131
+ CHAR_NO_BREAK_SPACE: 160,
132
+ /* \u00A0 */
133
+ CHAR_PERCENT: 37,
134
+ /* % */
135
+ CHAR_PLUS: 43,
136
+ /* + */
137
+ CHAR_QUESTION_MARK: 63,
138
+ /* ? */
139
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
140
+ /* > */
141
+ CHAR_RIGHT_CURLY_BRACE: 125,
142
+ /* } */
143
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
144
+ /* ] */
145
+ CHAR_SEMICOLON: 59,
146
+ /* ; */
147
+ CHAR_SINGLE_QUOTE: 39,
148
+ /* ' */
149
+ CHAR_SPACE: 32,
150
+ /* */
151
+ CHAR_TAB: 9,
152
+ /* \t */
153
+ CHAR_UNDERSCORE: 95,
154
+ /* _ */
155
+ CHAR_VERTICAL_LINE: 124,
156
+ /* | */
157
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
158
+ /* \uFEFF */
159
+ /**
160
+ * Create EXTGLOB_CHARS
161
+ */
162
+ extglobChars(h) {
163
+ return {
164
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${h.STAR})` },
165
+ "?": { type: "qmark", open: "(?:", close: ")?" },
166
+ "+": { type: "plus", open: "(?:", close: ")+" },
167
+ "*": { type: "star", open: "(?:", close: ")*" },
168
+ "@": { type: "at", open: "(?:", close: ")" }
169
+ };
170
+ },
171
+ /**
172
+ * Create GLOB_CHARS
173
+ */
174
+ globChars(h) {
175
+ return h === !0 ? d : X;
176
+ }
177
+ }, ft;
178
+ }
179
+ var gt;
180
+ function it() {
181
+ return gt || (gt = 1, function(A) {
182
+ const {
183
+ REGEX_BACKSLASH: b,
184
+ REGEX_REMOVE_BACKSLASH: y,
185
+ REGEX_SPECIAL_CHARS: U,
186
+ REGEX_SPECIAL_CHARS_GLOBAL: P
187
+ } = /* @__PURE__ */ ct();
188
+ A.isObject = (a) => a !== null && typeof a == "object" && !Array.isArray(a), A.hasRegexChars = (a) => U.test(a), A.isRegexChar = (a) => a.length === 1 && A.hasRegexChars(a), A.escapeRegex = (a) => a.replace(P, "\\$1"), A.toPosixSlashes = (a) => a.replace(b, "/"), A.isWindows = () => {
189
+ if (typeof navigator < "u" && navigator.platform) {
190
+ const a = navigator.platform.toLowerCase();
191
+ return a === "win32" || a === "windows";
192
+ }
193
+ return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
194
+ }, A.removeBackslashes = (a) => a.replace(y, (u) => u === "\\" ? "" : u), A.escapeLast = (a, u, i) => {
195
+ const p = a.lastIndexOf(u, i);
196
+ return p === -1 ? a : a[p - 1] === "\\" ? A.escapeLast(a, u, p - 1) : `${a.slice(0, p)}\\${a.slice(p)}`;
197
+ }, A.removePrefix = (a, u = {}) => {
198
+ let i = a;
199
+ return i.startsWith("./") && (i = i.slice(2), u.prefix = "./"), i;
200
+ }, A.wrapOutput = (a, u = {}, i = {}) => {
201
+ const p = i.contains ? "" : "^", H = i.contains ? "" : "$";
202
+ let c = `${p}(?:${a})${H}`;
203
+ return u.negated === !0 && (c = `(?:^(?!${c}).*$)`), c;
204
+ }, A.basename = (a, { windows: u } = {}) => {
205
+ const i = a.split(u ? /[\\/]/ : "/"), p = i[i.length - 1];
206
+ return p === "" ? i[i.length - 2] : p;
207
+ };
208
+ }(pt)), pt;
209
+ }
210
+ var At, Ct;
211
+ function yt() {
212
+ if (Ct) return At;
213
+ Ct = 1;
214
+ const A = /* @__PURE__ */ it(), {
215
+ CHAR_ASTERISK: b,
216
+ /* * */
217
+ CHAR_AT: y,
218
+ /* @ */
219
+ CHAR_BACKWARD_SLASH: U,
220
+ /* \ */
221
+ CHAR_COMMA: P,
222
+ /* , */
223
+ CHAR_DOT: a,
224
+ /* . */
225
+ CHAR_EXCLAMATION_MARK: u,
226
+ /* ! */
227
+ CHAR_FORWARD_SLASH: i,
228
+ /* / */
229
+ CHAR_LEFT_CURLY_BRACE: p,
230
+ /* { */
231
+ CHAR_LEFT_PARENTHESES: H,
232
+ /* ( */
233
+ CHAR_LEFT_SQUARE_BRACKET: c,
234
+ /* [ */
235
+ CHAR_PLUS: C,
236
+ /* + */
237
+ CHAR_QUESTION_MARK: s,
238
+ /* ? */
239
+ CHAR_RIGHT_CURLY_BRACE: S,
240
+ /* } */
241
+ CHAR_RIGHT_PARENTHESES: $,
242
+ /* ) */
243
+ CHAR_RIGHT_SQUARE_BRACKET: m
244
+ /* ] */
245
+ } = /* @__PURE__ */ ct(), x = (d) => d === i || d === U, w = (d) => {
246
+ d.isPrefix !== !0 && (d.depth = d.isGlobstar ? 1 / 0 : 1);
247
+ };
248
+ return At = (d, B) => {
249
+ const h = B || {}, V = d.length - 1, G = h.parts === !0 || h.scanToEnd === !0, W = [], O = [], rt = [];
250
+ let D = d, E = -1, v = 0, tt = 0, st = !1, Z = !1, L = !1, et = !1, q = !1, r = !1, N = !1, Y = !1, ot = !1, t = !1, e = 0, nt, l, _ = { value: "", depth: 0, isGlob: !1 };
251
+ const z = () => E >= V, J = () => D.charCodeAt(E + 1), M = () => (nt = l, D.charCodeAt(++E));
252
+ for (; E < V; ) {
253
+ l = M();
254
+ let F;
255
+ if (l === U) {
256
+ N = _.backslashes = !0, l = M(), l === p && (r = !0);
257
+ continue;
258
+ }
259
+ if (r === !0 || l === p) {
260
+ for (e++; z() !== !0 && (l = M()); ) {
261
+ if (l === U) {
262
+ N = _.backslashes = !0, M();
263
+ continue;
264
+ }
265
+ if (l === p) {
266
+ e++;
267
+ continue;
268
+ }
269
+ if (r !== !0 && l === a && (l = M()) === a) {
270
+ if (st = _.isBrace = !0, L = _.isGlob = !0, t = !0, G === !0)
271
+ continue;
272
+ break;
273
+ }
274
+ if (r !== !0 && l === P) {
275
+ if (st = _.isBrace = !0, L = _.isGlob = !0, t = !0, G === !0)
276
+ continue;
277
+ break;
278
+ }
279
+ if (l === S && (e--, e === 0)) {
280
+ r = !1, st = _.isBrace = !0, t = !0;
281
+ break;
282
+ }
283
+ }
284
+ if (G === !0)
285
+ continue;
286
+ break;
287
+ }
288
+ if (l === i) {
289
+ if (W.push(E), O.push(_), _ = { value: "", depth: 0, isGlob: !1 }, t === !0) continue;
290
+ if (nt === a && E === v + 1) {
291
+ v += 2;
292
+ continue;
293
+ }
294
+ tt = E + 1;
295
+ continue;
296
+ }
297
+ if (h.noext !== !0 && (l === C || l === y || l === b || l === s || l === u) === !0 && J() === H) {
298
+ if (L = _.isGlob = !0, et = _.isExtglob = !0, t = !0, l === u && E === v && (ot = !0), G === !0) {
299
+ for (; z() !== !0 && (l = M()); ) {
300
+ if (l === U) {
301
+ N = _.backslashes = !0, l = M();
302
+ continue;
303
+ }
304
+ if (l === $) {
305
+ L = _.isGlob = !0, t = !0;
306
+ break;
307
+ }
308
+ }
309
+ continue;
310
+ }
311
+ break;
312
+ }
313
+ if (l === b) {
314
+ if (nt === b && (q = _.isGlobstar = !0), L = _.isGlob = !0, t = !0, G === !0)
315
+ continue;
316
+ break;
317
+ }
318
+ if (l === s) {
319
+ if (L = _.isGlob = !0, t = !0, G === !0)
320
+ continue;
321
+ break;
322
+ }
323
+ if (l === c) {
324
+ for (; z() !== !0 && (F = M()); ) {
325
+ if (F === U) {
326
+ N = _.backslashes = !0, M();
327
+ continue;
328
+ }
329
+ if (F === m) {
330
+ Z = _.isBracket = !0, L = _.isGlob = !0, t = !0;
331
+ break;
332
+ }
333
+ }
334
+ if (G === !0)
335
+ continue;
336
+ break;
337
+ }
338
+ if (h.nonegate !== !0 && l === u && E === v) {
339
+ Y = _.negated = !0, v++;
340
+ continue;
341
+ }
342
+ if (h.noparen !== !0 && l === H) {
343
+ if (L = _.isGlob = !0, G === !0) {
344
+ for (; z() !== !0 && (l = M()); ) {
345
+ if (l === H) {
346
+ N = _.backslashes = !0, l = M();
347
+ continue;
348
+ }
349
+ if (l === $) {
350
+ t = !0;
351
+ break;
352
+ }
353
+ }
354
+ continue;
355
+ }
356
+ break;
357
+ }
358
+ if (L === !0) {
359
+ if (t = !0, G === !0)
360
+ continue;
361
+ break;
362
+ }
363
+ }
364
+ h.noext === !0 && (et = !1, L = !1);
365
+ let I = D, ut = "", j = "";
366
+ v > 0 && (ut = D.slice(0, v), D = D.slice(v), tt -= v), I && L === !0 && tt > 0 ? (I = D.slice(0, tt), j = D.slice(tt)) : L === !0 ? (I = "", j = D) : I = D, I && I !== "" && I !== "/" && I !== D && x(I.charCodeAt(I.length - 1)) && (I = I.slice(0, -1)), h.unescape === !0 && (j && (j = A.removeBackslashes(j)), I && N === !0 && (I = A.removeBackslashes(I)));
367
+ const f = {
368
+ prefix: ut,
369
+ input: d,
370
+ start: v,
371
+ base: I,
372
+ glob: j,
373
+ isBrace: st,
374
+ isBracket: Z,
375
+ isGlob: L,
376
+ isExtglob: et,
377
+ isGlobstar: q,
378
+ negated: Y,
379
+ negatedExtglob: ot
380
+ };
381
+ if (h.tokens === !0 && (f.maxDepth = 0, x(l) || O.push(_), f.tokens = O), h.parts === !0 || h.tokens === !0) {
382
+ let F;
383
+ for (let K = 0; K < W.length; K++) {
384
+ const o = F ? F + 1 : v, g = W[K], n = d.slice(o, g);
385
+ h.tokens && (K === 0 && v !== 0 ? (O[K].isPrefix = !0, O[K].value = ut) : O[K].value = n, w(O[K]), f.maxDepth += O[K].depth), (K !== 0 || n !== "") && rt.push(n), F = g;
386
+ }
387
+ if (F && F + 1 < d.length) {
388
+ const K = d.slice(F + 1);
389
+ rt.push(K), h.tokens && (O[O.length - 1].value = K, w(O[O.length - 1]), f.maxDepth += O[O.length - 1].depth);
390
+ }
391
+ f.slashes = W, f.parts = rt;
392
+ }
393
+ return f;
394
+ }, At;
395
+ }
396
+ var Rt, St;
397
+ function dt() {
398
+ if (St) return Rt;
399
+ St = 1;
400
+ const A = /* @__PURE__ */ ct(), b = /* @__PURE__ */ it(), {
401
+ MAX_LENGTH: y,
402
+ POSIX_REGEX_SOURCE: U,
403
+ REGEX_NON_SPECIAL_CHARS: P,
404
+ REGEX_SPECIAL_CHARS_BACKREF: a,
405
+ REPLACEMENTS: u
406
+ } = A, i = (c, C) => {
407
+ if (typeof C.expandRange == "function")
408
+ return C.expandRange(...c, C);
409
+ c.sort();
410
+ const s = `[${c.join("-")}]`;
411
+ try {
412
+ new RegExp(s);
413
+ } catch {
414
+ return c.map(($) => b.escapeRegex($)).join("..");
415
+ }
416
+ return s;
417
+ }, p = (c, C) => `Missing ${c}: "${C}" - use "\\\\${C}" to match literal characters`, H = (c, C) => {
418
+ if (typeof c != "string")
419
+ throw new TypeError("Expected a string");
420
+ c = u[c] || c;
421
+ const s = { ...C }, S = typeof s.maxLength == "number" ? Math.min(y, s.maxLength) : y;
422
+ let $ = c.length;
423
+ if ($ > S)
424
+ throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${S}`);
425
+ const m = { type: "bos", value: "", output: s.prepend || "" }, x = [m], w = s.capture ? "" : "?:", X = A.globChars(s.windows), d = A.extglobChars(X), {
426
+ DOT_LITERAL: B,
427
+ PLUS_LITERAL: h,
428
+ SLASH_LITERAL: V,
429
+ ONE_CHAR: G,
430
+ DOTS_SLASH: W,
431
+ NO_DOT: O,
432
+ NO_DOT_SLASH: rt,
433
+ NO_DOTS_SLASH: D,
434
+ QMARK: E,
435
+ QMARK_NO_DOT: v,
436
+ STAR: tt,
437
+ START_ANCHOR: st
438
+ } = X, Z = (o) => `(${w}(?:(?!${st}${o.dot ? W : B}).)*?)`, L = s.dot ? "" : O, et = s.dot ? E : v;
439
+ let q = s.bash === !0 ? Z(s) : tt;
440
+ s.capture && (q = `(${q})`), typeof s.noext == "boolean" && (s.noextglob = s.noext);
441
+ const r = {
442
+ input: c,
443
+ index: -1,
444
+ start: 0,
445
+ dot: s.dot === !0,
446
+ consumed: "",
447
+ output: "",
448
+ prefix: "",
449
+ backtrack: !1,
450
+ negated: !1,
451
+ brackets: 0,
452
+ braces: 0,
453
+ parens: 0,
454
+ quotes: 0,
455
+ globstar: !1,
456
+ tokens: x
457
+ };
458
+ c = b.removePrefix(c, r), $ = c.length;
459
+ const N = [], Y = [], ot = [];
460
+ let t = m, e;
461
+ const nt = () => r.index === $ - 1, l = r.peek = (o = 1) => c[r.index + o], _ = r.advance = () => c[++r.index] || "", z = () => c.slice(r.index + 1), J = (o = "", g = 0) => {
462
+ r.consumed += o, r.index += g;
463
+ }, M = (o) => {
464
+ r.output += o.output != null ? o.output : o.value, J(o.value);
465
+ }, I = () => {
466
+ let o = 1;
467
+ for (; l() === "!" && (l(2) !== "(" || l(3) === "?"); )
468
+ _(), r.start++, o++;
469
+ return o % 2 === 0 ? !1 : (r.negated = !0, r.start++, !0);
470
+ }, ut = (o) => {
471
+ r[o]++, ot.push(o);
472
+ }, j = (o) => {
473
+ r[o]--, ot.pop();
474
+ }, f = (o) => {
475
+ if (t.type === "globstar") {
476
+ const g = r.braces > 0 && (o.type === "comma" || o.type === "brace"), n = o.extglob === !0 || N.length && (o.type === "pipe" || o.type === "paren");
477
+ o.type !== "slash" && o.type !== "paren" && !g && !n && (r.output = r.output.slice(0, -t.output.length), t.type = "star", t.value = "*", t.output = q, r.output += t.output);
478
+ }
479
+ if (N.length && o.type !== "paren" && (N[N.length - 1].inner += o.value), (o.value || o.output) && M(o), t && t.type === "text" && o.type === "text") {
480
+ t.output = (t.output || t.value) + o.value, t.value += o.value;
481
+ return;
482
+ }
483
+ o.prev = t, x.push(o), t = o;
484
+ }, F = (o, g) => {
485
+ const n = { ...d[g], conditions: 1, inner: "" };
486
+ n.prev = t, n.parens = r.parens, n.output = r.output;
487
+ const R = (s.capture ? "(" : "") + n.open;
488
+ ut("parens"), f({ type: o, value: g, output: r.output ? "" : G }), f({ type: "paren", extglob: !0, value: _(), output: R }), N.push(n);
489
+ }, K = (o) => {
490
+ let g = o.close + (s.capture ? ")" : ""), n;
491
+ if (o.type === "negate") {
492
+ let R = q;
493
+ if (o.inner && o.inner.length > 1 && o.inner.includes("/") && (R = Z(s)), (R !== q || nt() || /^\)+$/.test(z())) && (g = o.close = `)$))${R}`), o.inner.includes("*") && (n = z()) && /^\.[^\\/.]+$/.test(n)) {
494
+ const T = H(n, { ...C, fastpaths: !1 }).output;
495
+ g = o.close = `)${T})${R})`;
496
+ }
497
+ o.prev.type === "bos" && (r.negatedExtglob = !0);
498
+ }
499
+ f({ type: "paren", extglob: !0, value: e, output: g }), j("parens");
500
+ };
501
+ if (s.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(c)) {
502
+ let o = !1, g = c.replace(a, (n, R, T, Q, k, lt) => Q === "\\" ? (o = !0, n) : Q === "?" ? R ? R + Q + (k ? E.repeat(k.length) : "") : lt === 0 ? et + (k ? E.repeat(k.length) : "") : E.repeat(T.length) : Q === "." ? B.repeat(T.length) : Q === "*" ? R ? R + Q + (k ? q : "") : q : R ? n : `\\${n}`);
503
+ return o === !0 && (s.unescape === !0 ? g = g.replace(/\\/g, "") : g = g.replace(/\\+/g, (n) => n.length % 2 === 0 ? "\\\\" : n ? "\\" : "")), g === c && s.contains === !0 ? (r.output = c, r) : (r.output = b.wrapOutput(g, r, C), r);
504
+ }
505
+ for (; !nt(); ) {
506
+ if (e = _(), e === "\0")
507
+ continue;
508
+ if (e === "\\") {
509
+ const n = l();
510
+ if (n === "/" && s.bash !== !0 || n === "." || n === ";")
511
+ continue;
512
+ if (!n) {
513
+ e += "\\", f({ type: "text", value: e });
514
+ continue;
515
+ }
516
+ const R = /^\\+/.exec(z());
517
+ let T = 0;
518
+ if (R && R[0].length > 2 && (T = R[0].length, r.index += T, T % 2 !== 0 && (e += "\\")), s.unescape === !0 ? e = _() : e += _(), r.brackets === 0) {
519
+ f({ type: "text", value: e });
520
+ continue;
521
+ }
522
+ }
523
+ if (r.brackets > 0 && (e !== "]" || t.value === "[" || t.value === "[^")) {
524
+ if (s.posix !== !1 && e === ":") {
525
+ const n = t.value.slice(1);
526
+ if (n.includes("[") && (t.posix = !0, n.includes(":"))) {
527
+ const R = t.value.lastIndexOf("["), T = t.value.slice(0, R), Q = t.value.slice(R + 2), k = U[Q];
528
+ if (k) {
529
+ t.value = T + k, r.backtrack = !0, _(), !m.output && x.indexOf(t) === 1 && (m.output = G);
530
+ continue;
531
+ }
532
+ }
533
+ }
534
+ (e === "[" && l() !== ":" || e === "-" && l() === "]") && (e = `\\${e}`), e === "]" && (t.value === "[" || t.value === "[^") && (e = `\\${e}`), s.posix === !0 && e === "!" && t.value === "[" && (e = "^"), t.value += e, M({ value: e });
535
+ continue;
536
+ }
537
+ if (r.quotes === 1 && e !== '"') {
538
+ e = b.escapeRegex(e), t.value += e, M({ value: e });
539
+ continue;
540
+ }
541
+ if (e === '"') {
542
+ r.quotes = r.quotes === 1 ? 0 : 1, s.keepQuotes === !0 && f({ type: "text", value: e });
543
+ continue;
544
+ }
545
+ if (e === "(") {
546
+ ut("parens"), f({ type: "paren", value: e });
547
+ continue;
548
+ }
549
+ if (e === ")") {
550
+ if (r.parens === 0 && s.strictBrackets === !0)
551
+ throw new SyntaxError(p("opening", "("));
552
+ const n = N[N.length - 1];
553
+ if (n && r.parens === n.parens + 1) {
554
+ K(N.pop());
555
+ continue;
556
+ }
557
+ f({ type: "paren", value: e, output: r.parens ? ")" : "\\)" }), j("parens");
558
+ continue;
559
+ }
560
+ if (e === "[") {
561
+ if (s.nobracket === !0 || !z().includes("]")) {
562
+ if (s.nobracket !== !0 && s.strictBrackets === !0)
563
+ throw new SyntaxError(p("closing", "]"));
564
+ e = `\\${e}`;
565
+ } else
566
+ ut("brackets");
567
+ f({ type: "bracket", value: e });
568
+ continue;
569
+ }
570
+ if (e === "]") {
571
+ if (s.nobracket === !0 || t && t.type === "bracket" && t.value.length === 1) {
572
+ f({ type: "text", value: e, output: `\\${e}` });
573
+ continue;
574
+ }
575
+ if (r.brackets === 0) {
576
+ if (s.strictBrackets === !0)
577
+ throw new SyntaxError(p("opening", "["));
578
+ f({ type: "text", value: e, output: `\\${e}` });
579
+ continue;
580
+ }
581
+ j("brackets");
582
+ const n = t.value.slice(1);
583
+ if (t.posix !== !0 && n[0] === "^" && !n.includes("/") && (e = `/${e}`), t.value += e, M({ value: e }), s.literalBrackets === !1 || b.hasRegexChars(n))
584
+ continue;
585
+ const R = b.escapeRegex(t.value);
586
+ if (r.output = r.output.slice(0, -t.value.length), s.literalBrackets === !0) {
587
+ r.output += R, t.value = R;
588
+ continue;
589
+ }
590
+ t.value = `(${w}${R}|${t.value})`, r.output += t.value;
591
+ continue;
592
+ }
593
+ if (e === "{" && s.nobrace !== !0) {
594
+ ut("braces");
595
+ const n = {
596
+ type: "brace",
597
+ value: e,
598
+ output: "(",
599
+ outputIndex: r.output.length,
600
+ tokensIndex: r.tokens.length
601
+ };
602
+ Y.push(n), f(n);
603
+ continue;
604
+ }
605
+ if (e === "}") {
606
+ const n = Y[Y.length - 1];
607
+ if (s.nobrace === !0 || !n) {
608
+ f({ type: "text", value: e, output: e });
609
+ continue;
610
+ }
611
+ let R = ")";
612
+ if (n.dots === !0) {
613
+ const T = x.slice(), Q = [];
614
+ for (let k = T.length - 1; k >= 0 && (x.pop(), T[k].type !== "brace"); k--)
615
+ T[k].type !== "dots" && Q.unshift(T[k].value);
616
+ R = i(Q, s), r.backtrack = !0;
617
+ }
618
+ if (n.comma !== !0 && n.dots !== !0) {
619
+ const T = r.output.slice(0, n.outputIndex), Q = r.tokens.slice(n.tokensIndex);
620
+ n.value = n.output = "\\{", e = R = "\\}", r.output = T;
621
+ for (const k of Q)
622
+ r.output += k.output || k.value;
623
+ }
624
+ f({ type: "brace", value: e, output: R }), j("braces"), Y.pop();
625
+ continue;
626
+ }
627
+ if (e === "|") {
628
+ N.length > 0 && N[N.length - 1].conditions++, f({ type: "text", value: e });
629
+ continue;
630
+ }
631
+ if (e === ",") {
632
+ let n = e;
633
+ const R = Y[Y.length - 1];
634
+ R && ot[ot.length - 1] === "braces" && (R.comma = !0, n = "|"), f({ type: "comma", value: e, output: n });
635
+ continue;
636
+ }
637
+ if (e === "/") {
638
+ if (t.type === "dot" && r.index === r.start + 1) {
639
+ r.start = r.index + 1, r.consumed = "", r.output = "", x.pop(), t = m;
640
+ continue;
641
+ }
642
+ f({ type: "slash", value: e, output: V });
643
+ continue;
644
+ }
645
+ if (e === ".") {
646
+ if (r.braces > 0 && t.type === "dot") {
647
+ t.value === "." && (t.output = B);
648
+ const n = Y[Y.length - 1];
649
+ t.type = "dots", t.output += e, t.value += e, n.dots = !0;
650
+ continue;
651
+ }
652
+ if (r.braces + r.parens === 0 && t.type !== "bos" && t.type !== "slash") {
653
+ f({ type: "text", value: e, output: B });
654
+ continue;
655
+ }
656
+ f({ type: "dot", value: e, output: B });
657
+ continue;
658
+ }
659
+ if (e === "?") {
660
+ if (!(t && t.value === "(") && s.noextglob !== !0 && l() === "(" && l(2) !== "?") {
661
+ F("qmark", e);
662
+ continue;
663
+ }
664
+ if (t && t.type === "paren") {
665
+ const R = l();
666
+ let T = e;
667
+ (t.value === "(" && !/[!=<:]/.test(R) || R === "<" && !/<([!=]|\w+>)/.test(z())) && (T = `\\${e}`), f({ type: "text", value: e, output: T });
668
+ continue;
669
+ }
670
+ if (s.dot !== !0 && (t.type === "slash" || t.type === "bos")) {
671
+ f({ type: "qmark", value: e, output: v });
672
+ continue;
673
+ }
674
+ f({ type: "qmark", value: e, output: E });
675
+ continue;
676
+ }
677
+ if (e === "!") {
678
+ if (s.noextglob !== !0 && l() === "(" && (l(2) !== "?" || !/[!=<:]/.test(l(3)))) {
679
+ F("negate", e);
680
+ continue;
681
+ }
682
+ if (s.nonegate !== !0 && r.index === 0) {
683
+ I();
684
+ continue;
685
+ }
686
+ }
687
+ if (e === "+") {
688
+ if (s.noextglob !== !0 && l() === "(" && l(2) !== "?") {
689
+ F("plus", e);
690
+ continue;
691
+ }
692
+ if (t && t.value === "(" || s.regex === !1) {
693
+ f({ type: "plus", value: e, output: h });
694
+ continue;
695
+ }
696
+ if (t && (t.type === "bracket" || t.type === "paren" || t.type === "brace") || r.parens > 0) {
697
+ f({ type: "plus", value: e });
698
+ continue;
699
+ }
700
+ f({ type: "plus", value: h });
701
+ continue;
702
+ }
703
+ if (e === "@") {
704
+ if (s.noextglob !== !0 && l() === "(" && l(2) !== "?") {
705
+ f({ type: "at", extglob: !0, value: e, output: "" });
706
+ continue;
707
+ }
708
+ f({ type: "text", value: e });
709
+ continue;
710
+ }
711
+ if (e !== "*") {
712
+ (e === "$" || e === "^") && (e = `\\${e}`);
713
+ const n = P.exec(z());
714
+ n && (e += n[0], r.index += n[0].length), f({ type: "text", value: e });
715
+ continue;
716
+ }
717
+ if (t && (t.type === "globstar" || t.star === !0)) {
718
+ t.type = "star", t.star = !0, t.value += e, t.output = q, r.backtrack = !0, r.globstar = !0, J(e);
719
+ continue;
720
+ }
721
+ let o = z();
722
+ if (s.noextglob !== !0 && /^\([^?]/.test(o)) {
723
+ F("star", e);
724
+ continue;
725
+ }
726
+ if (t.type === "star") {
727
+ if (s.noglobstar === !0) {
728
+ J(e);
729
+ continue;
730
+ }
731
+ const n = t.prev, R = n.prev, T = n.type === "slash" || n.type === "bos", Q = R && (R.type === "star" || R.type === "globstar");
732
+ if (s.bash === !0 && (!T || o[0] && o[0] !== "/")) {
733
+ f({ type: "star", value: e, output: "" });
734
+ continue;
735
+ }
736
+ const k = r.braces > 0 && (n.type === "comma" || n.type === "brace"), lt = N.length && (n.type === "pipe" || n.type === "paren");
737
+ if (!T && n.type !== "paren" && !k && !lt) {
738
+ f({ type: "star", value: e, output: "" });
739
+ continue;
740
+ }
741
+ for (; o.slice(0, 3) === "/**"; ) {
742
+ const at = c[r.index + 4];
743
+ if (at && at !== "/")
744
+ break;
745
+ o = o.slice(3), J("/**", 3);
746
+ }
747
+ if (n.type === "bos" && nt()) {
748
+ t.type = "globstar", t.value += e, t.output = Z(s), r.output = t.output, r.globstar = !0, J(e);
749
+ continue;
750
+ }
751
+ if (n.type === "slash" && n.prev.type !== "bos" && !Q && nt()) {
752
+ r.output = r.output.slice(0, -(n.output + t.output).length), n.output = `(?:${n.output}`, t.type = "globstar", t.output = Z(s) + (s.strictSlashes ? ")" : "|$)"), t.value += e, r.globstar = !0, r.output += n.output + t.output, J(e);
753
+ continue;
754
+ }
755
+ if (n.type === "slash" && n.prev.type !== "bos" && o[0] === "/") {
756
+ const at = o[1] !== void 0 ? "|$" : "";
757
+ r.output = r.output.slice(0, -(n.output + t.output).length), n.output = `(?:${n.output}`, t.type = "globstar", t.output = `${Z(s)}${V}|${V}${at})`, t.value += e, r.output += n.output + t.output, r.globstar = !0, J(e + _()), f({ type: "slash", value: "/", output: "" });
758
+ continue;
759
+ }
760
+ if (n.type === "bos" && o[0] === "/") {
761
+ t.type = "globstar", t.value += e, t.output = `(?:^|${V}|${Z(s)}${V})`, r.output = t.output, r.globstar = !0, J(e + _()), f({ type: "slash", value: "/", output: "" });
762
+ continue;
763
+ }
764
+ r.output = r.output.slice(0, -t.output.length), t.type = "globstar", t.output = Z(s), t.value += e, r.output += t.output, r.globstar = !0, J(e);
765
+ continue;
766
+ }
767
+ const g = { type: "star", value: e, output: q };
768
+ if (s.bash === !0) {
769
+ g.output = ".*?", (t.type === "bos" || t.type === "slash") && (g.output = L + g.output), f(g);
770
+ continue;
771
+ }
772
+ if (t && (t.type === "bracket" || t.type === "paren") && s.regex === !0) {
773
+ g.output = e, f(g);
774
+ continue;
775
+ }
776
+ (r.index === r.start || t.type === "slash" || t.type === "dot") && (t.type === "dot" ? (r.output += rt, t.output += rt) : s.dot === !0 ? (r.output += D, t.output += D) : (r.output += L, t.output += L), l() !== "*" && (r.output += G, t.output += G)), f(g);
777
+ }
778
+ for (; r.brackets > 0; ) {
779
+ if (s.strictBrackets === !0) throw new SyntaxError(p("closing", "]"));
780
+ r.output = b.escapeLast(r.output, "["), j("brackets");
781
+ }
782
+ for (; r.parens > 0; ) {
783
+ if (s.strictBrackets === !0) throw new SyntaxError(p("closing", ")"));
784
+ r.output = b.escapeLast(r.output, "("), j("parens");
785
+ }
786
+ for (; r.braces > 0; ) {
787
+ if (s.strictBrackets === !0) throw new SyntaxError(p("closing", "}"));
788
+ r.output = b.escapeLast(r.output, "{"), j("braces");
789
+ }
790
+ if (s.strictSlashes !== !0 && (t.type === "star" || t.type === "bracket") && f({ type: "maybe_slash", value: "", output: `${V}?` }), r.backtrack === !0) {
791
+ r.output = "";
792
+ for (const o of r.tokens)
793
+ r.output += o.output != null ? o.output : o.value, o.suffix && (r.output += o.suffix);
794
+ }
795
+ return r;
796
+ };
797
+ return H.fastpaths = (c, C) => {
798
+ const s = { ...C }, S = typeof s.maxLength == "number" ? Math.min(y, s.maxLength) : y, $ = c.length;
799
+ if ($ > S)
800
+ throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${S}`);
801
+ c = u[c] || c;
802
+ const {
803
+ DOT_LITERAL: m,
804
+ SLASH_LITERAL: x,
805
+ ONE_CHAR: w,
806
+ DOTS_SLASH: X,
807
+ NO_DOT: d,
808
+ NO_DOTS: B,
809
+ NO_DOTS_SLASH: h,
810
+ STAR: V,
811
+ START_ANCHOR: G
812
+ } = A.globChars(s.windows), W = s.dot ? B : d, O = s.dot ? h : d, rt = s.capture ? "" : "?:", D = { negated: !1, prefix: "" };
813
+ let E = s.bash === !0 ? ".*?" : V;
814
+ s.capture && (E = `(${E})`);
815
+ const v = (L) => L.noglobstar === !0 ? E : `(${rt}(?:(?!${G}${L.dot ? X : m}).)*?)`, tt = (L) => {
816
+ switch (L) {
817
+ case "*":
818
+ return `${W}${w}${E}`;
819
+ case ".*":
820
+ return `${m}${w}${E}`;
821
+ case "*.*":
822
+ return `${W}${E}${m}${w}${E}`;
823
+ case "*/*":
824
+ return `${W}${E}${x}${w}${O}${E}`;
825
+ case "**":
826
+ return W + v(s);
827
+ case "**/*":
828
+ return `(?:${W}${v(s)}${x})?${O}${w}${E}`;
829
+ case "**/*.*":
830
+ return `(?:${W}${v(s)}${x})?${O}${E}${m}${w}${E}`;
831
+ case "**/.*":
832
+ return `(?:${W}${v(s)}${x})?${m}${w}${E}`;
833
+ default: {
834
+ const et = /^(.*?)\.(\w+)$/.exec(L);
835
+ if (!et) return;
836
+ const q = tt(et[1]);
837
+ return q ? q + m + et[2] : void 0;
838
+ }
839
+ }
840
+ }, st = b.removePrefix(c, D);
841
+ let Z = tt(st);
842
+ return Z && s.strictSlashes !== !0 && (Z += `${x}?`), Z;
843
+ }, Rt = H, Rt;
844
+ }
845
+ var _t, bt;
846
+ function Ht() {
847
+ if (bt) return _t;
848
+ bt = 1;
849
+ const A = /* @__PURE__ */ yt(), b = /* @__PURE__ */ dt(), y = /* @__PURE__ */ it(), U = /* @__PURE__ */ ct(), P = (u) => u && typeof u == "object" && !Array.isArray(u), a = (u, i, p = !1) => {
850
+ if (Array.isArray(u)) {
851
+ const x = u.map((X) => a(X, i, p));
852
+ return (X) => {
853
+ for (const d of x) {
854
+ const B = d(X);
855
+ if (B) return B;
856
+ }
857
+ return !1;
858
+ };
859
+ }
860
+ const H = P(u) && u.tokens && u.input;
861
+ if (u === "" || typeof u != "string" && !H)
862
+ throw new TypeError("Expected pattern to be a non-empty string");
863
+ const c = i || {}, C = c.windows, s = H ? a.compileRe(u, i) : a.makeRe(u, i, !1, !0), S = s.state;
864
+ delete s.state;
865
+ let $ = () => !1;
866
+ if (c.ignore) {
867
+ const x = { ...i, ignore: null, onMatch: null, onResult: null };
868
+ $ = a(c.ignore, x, p);
869
+ }
870
+ const m = (x, w = !1) => {
871
+ const { isMatch: X, match: d, output: B } = a.test(x, s, i, { glob: u, posix: C }), h = { glob: u, state: S, regex: s, posix: C, input: x, output: B, match: d, isMatch: X };
872
+ return typeof c.onResult == "function" && c.onResult(h), X === !1 ? (h.isMatch = !1, w ? h : !1) : $(x) ? (typeof c.onIgnore == "function" && c.onIgnore(h), h.isMatch = !1, w ? h : !1) : (typeof c.onMatch == "function" && c.onMatch(h), w ? h : !0);
873
+ };
874
+ return p && (m.state = S), m;
875
+ };
876
+ return a.test = (u, i, p, { glob: H, posix: c } = {}) => {
877
+ if (typeof u != "string")
878
+ throw new TypeError("Expected input to be a string");
879
+ if (u === "")
880
+ return { isMatch: !1, output: "" };
881
+ const C = p || {}, s = C.format || (c ? y.toPosixSlashes : null);
882
+ let S = u === H, $ = S && s ? s(u) : u;
883
+ return S === !1 && ($ = s ? s(u) : u, S = $ === H), (S === !1 || C.capture === !0) && (C.matchBase === !0 || C.basename === !0 ? S = a.matchBase(u, i, p, c) : S = i.exec($)), { isMatch: !!S, match: S, output: $ };
884
+ }, a.matchBase = (u, i, p) => (i instanceof RegExp ? i : a.makeRe(i, p)).test(y.basename(u)), a.isMatch = (u, i, p) => a(i, p)(u), a.parse = (u, i) => Array.isArray(u) ? u.map((p) => a.parse(p, i)) : b(u, { ...i, fastpaths: !1 }), a.scan = (u, i) => A(u, i), a.compileRe = (u, i, p = !1, H = !1) => {
885
+ if (p === !0)
886
+ return u.output;
887
+ const c = i || {}, C = c.contains ? "" : "^", s = c.contains ? "" : "$";
888
+ let S = `${C}(?:${u.output})${s}`;
889
+ u && u.negated === !0 && (S = `^(?!${S}).*$`);
890
+ const $ = a.toRegex(S, i);
891
+ return H === !0 && ($.state = u), $;
892
+ }, a.makeRe = (u, i = {}, p = !1, H = !1) => {
893
+ if (!u || typeof u != "string")
894
+ throw new TypeError("Expected a non-empty string");
895
+ let c = { negated: !1, fastpaths: !0 };
896
+ return i.fastpaths !== !1 && (u[0] === "." || u[0] === "*") && (c.output = b.fastpaths(u, i)), c.output || (c = b(u, i)), a.compileRe(c, i, p, H);
897
+ }, a.toRegex = (u, i) => {
898
+ try {
899
+ const p = i || {};
900
+ return new RegExp(u, p.flags || (p.nocase ? "i" : ""));
901
+ } catch (p) {
902
+ if (i && i.debug === !0) throw p;
903
+ return /$^/;
904
+ }
905
+ }, a.constants = U, _t = a, _t;
906
+ }
907
+ var ht, $t;
908
+ function Lt() {
909
+ if ($t) return ht;
910
+ $t = 1;
911
+ const A = /* @__PURE__ */ Ht(), b = /* @__PURE__ */ it();
912
+ function y(U, P, a = !1) {
913
+ return P && (P.windows === null || P.windows === void 0) && (P = { ...P, windows: b.isWindows() }), A(U, P, a);
914
+ }
915
+ return Object.assign(y, A), ht = y, ht;
916
+ }
917
+ var Tt = /* @__PURE__ */ Lt();
918
+ const vt = /* @__PURE__ */ xt(Tt);
919
+ export {
920
+ vt as p
921
+ };
922
+ //# sourceMappingURL=index-DDEnF9L5.js.map