@instockng/storefront-ui 1.0.66 → 1.0.67

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 (267) hide show
  1. package/dist/components/ProductAddOns.d.ts.map +1 -1
  2. package/dist/index10.mjs +49 -44
  3. package/dist/index100.mjs +52 -41
  4. package/dist/index101.mjs +6 -2
  5. package/dist/index102.mjs +4 -27
  6. package/dist/index103.mjs +176 -15
  7. package/dist/index104.mjs +53 -215
  8. package/dist/index105.mjs +69 -180
  9. package/dist/index106.mjs +2 -22
  10. package/dist/index107.mjs +34 -23
  11. package/dist/index108.mjs +42 -32
  12. package/dist/index109.mjs +2 -156
  13. package/dist/index110.mjs +21 -18
  14. package/dist/index111.mjs +11 -24
  15. package/dist/index112.mjs +206 -75
  16. package/dist/index113.mjs +176 -33
  17. package/dist/index114.mjs +17 -140
  18. package/dist/index115.mjs +17 -49
  19. package/dist/index116.mjs +27 -17
  20. package/dist/index117.mjs +150 -21
  21. package/dist/index118.mjs +13 -16
  22. package/dist/index119.mjs +24 -18
  23. package/dist/index120.mjs +77 -14
  24. package/dist/index121.mjs +31 -15
  25. package/dist/index122.mjs +140 -16
  26. package/dist/index123.mjs +51 -60
  27. package/dist/index124.mjs +17 -12
  28. package/dist/index125.mjs +19 -31
  29. package/dist/index126.mjs +16 -17
  30. package/dist/index127.mjs +17 -26
  31. package/dist/index128.mjs +14 -20
  32. package/dist/index129.mjs +14 -11
  33. package/dist/index13.mjs +1 -1
  34. package/dist/index130.mjs +14 -14
  35. package/dist/index131.mjs +58 -40
  36. package/dist/index132.mjs +11 -16
  37. package/dist/index133.mjs +33 -262
  38. package/dist/index134.mjs +17 -63
  39. package/dist/index135.mjs +31 -5
  40. package/dist/index136.mjs +27 -2
  41. package/dist/index137.mjs +19 -2
  42. package/dist/index138.mjs +14 -26
  43. package/dist/index139.mjs +47 -2
  44. package/dist/index140.mjs +23 -2
  45. package/dist/index141.mjs +268 -2
  46. package/dist/index142.mjs +69 -20
  47. package/dist/index143.mjs +7 -55
  48. package/dist/index144.mjs +2 -29
  49. package/dist/index145.mjs +2 -7
  50. package/dist/index146.mjs +2 -52
  51. package/dist/index147.mjs +33 -6
  52. package/dist/index148.mjs +2 -12
  53. package/dist/index149.mjs +19 -9
  54. package/dist/index15.mjs +4 -4
  55. package/dist/index150.mjs +16 -30
  56. package/dist/index151.mjs +64 -4
  57. package/dist/index152.mjs +2 -70
  58. package/dist/index153.mjs +2 -167
  59. package/dist/index155.mjs +2 -2
  60. package/dist/index156.mjs +134 -2
  61. package/dist/index157.mjs +16 -12
  62. package/dist/index158.mjs +26 -20
  63. package/dist/index159.mjs +2 -38
  64. package/dist/index16.mjs +2 -2
  65. package/dist/index160.mjs +35 -13
  66. package/dist/index161.mjs +42 -13
  67. package/dist/index162.mjs +21 -2
  68. package/dist/index163.mjs +54 -18
  69. package/dist/index164.mjs +28 -45
  70. package/dist/index165.mjs +7 -2
  71. package/dist/index166.mjs +50 -28
  72. package/dist/index167.mjs +6 -18
  73. package/dist/index168.mjs +12 -2
  74. package/dist/index169.mjs +7 -2
  75. package/dist/index170.mjs +28 -2
  76. package/dist/index171.mjs +2 -2
  77. package/dist/index172.mjs +67 -69
  78. package/dist/index173.mjs +167 -2
  79. package/dist/index174.mjs +2 -53
  80. package/dist/index175.mjs +2 -2
  81. package/dist/index176.mjs +2 -36
  82. package/dist/index177.mjs +13 -147
  83. package/dist/index178.mjs +32 -2
  84. package/dist/index179.mjs +38 -2
  85. package/dist/index18.mjs +1 -1
  86. package/dist/index180.mjs +11 -12
  87. package/dist/index181.mjs +18 -2
  88. package/dist/index182.mjs +2 -2
  89. package/dist/index183.mjs +13 -19
  90. package/dist/index184.mjs +46 -2
  91. package/dist/index185.mjs +2 -2
  92. package/dist/index186.mjs +26 -20
  93. package/dist/index187.mjs +10 -15
  94. package/dist/index188.mjs +2 -2
  95. package/dist/index189.mjs +2 -2
  96. package/dist/index19.mjs +1 -1
  97. package/dist/index190.mjs +2 -2
  98. package/dist/index191.mjs +2 -23
  99. package/dist/index192.mjs +72 -2
  100. package/dist/index193.mjs +2 -23
  101. package/dist/index194.mjs +53 -2
  102. package/dist/index196.mjs +36 -2
  103. package/dist/index197.mjs +146 -17
  104. package/dist/index198.mjs +2 -2
  105. package/dist/index199.mjs +2 -23
  106. package/dist/index200.mjs +19 -2
  107. package/dist/index202.mjs +2 -2
  108. package/dist/index203.mjs +26 -2
  109. package/dist/index204.mjs +2 -2
  110. package/dist/index205.mjs +2 -2
  111. package/dist/index206.mjs +24 -2
  112. package/dist/index207.mjs +23 -2
  113. package/dist/index208.mjs +2 -127
  114. package/dist/index210.mjs +2 -74
  115. package/dist/index211.mjs +20 -71
  116. package/dist/index212.mjs +2 -2
  117. package/dist/index213.mjs +23 -2
  118. package/dist/index217.mjs +23 -2
  119. package/dist/index218.mjs +2 -2
  120. package/dist/index219.mjs +23 -2
  121. package/dist/index22.mjs +2 -2
  122. package/dist/index220.mjs +2 -2
  123. package/dist/index221.mjs +2 -37
  124. package/dist/index222.mjs +2 -2
  125. package/dist/index223.mjs +2 -2
  126. package/dist/index224.mjs +2 -2
  127. package/dist/index225.mjs +2 -2
  128. package/dist/index226.mjs +2 -2
  129. package/dist/index227.mjs +2 -244
  130. package/dist/index228.mjs +127 -2
  131. package/dist/index229.mjs +2 -33
  132. package/dist/index230.mjs +72 -63
  133. package/dist/index231.mjs +71 -22
  134. package/dist/index232.mjs +2 -2
  135. package/dist/index233.mjs +640 -100
  136. package/dist/index234.mjs +2 -2
  137. package/dist/index235.mjs +2 -2
  138. package/dist/index236.mjs +43 -2
  139. package/dist/index237.mjs +20 -2
  140. package/dist/index238.mjs +19 -2
  141. package/dist/index239.mjs +2 -2
  142. package/dist/index240.mjs +2 -4
  143. package/dist/index241.mjs +1 -1
  144. package/dist/index242.mjs +3 -3
  145. package/dist/index245.mjs +13 -2
  146. package/dist/index246.mjs +7 -2
  147. package/dist/index247.mjs +12 -13
  148. package/dist/index248.mjs +5 -7
  149. package/dist/index249.mjs +33 -12
  150. package/dist/index25.mjs +2 -2
  151. package/dist/index250.mjs +31 -5
  152. package/dist/index251.mjs +27 -32
  153. package/dist/index252.mjs +58 -28
  154. package/dist/index253.mjs +2 -28
  155. package/dist/index254.mjs +2 -61
  156. package/dist/index255.mjs +2 -2
  157. package/dist/index256.mjs +2 -18
  158. package/dist/index257.mjs +2 -47
  159. package/dist/index258.mjs +2 -2
  160. package/dist/index259.mjs +108 -2
  161. package/dist/index26.mjs +1 -1
  162. package/dist/index260.mjs +2 -2
  163. package/dist/index262.mjs +2 -91
  164. package/dist/index264.mjs +37 -2
  165. package/dist/index265.mjs +2 -3
  166. package/dist/index266.mjs +2 -2
  167. package/dist/index267.mjs +2 -2
  168. package/dist/index268.mjs +243 -16
  169. package/dist/index269.mjs +2 -13
  170. package/dist/index270.mjs +33 -6
  171. package/dist/index271.mjs +64 -29
  172. package/dist/index272.mjs +25 -2
  173. package/dist/index274.mjs +2 -2
  174. package/dist/index275.mjs +5 -0
  175. package/dist/index276.mjs +5 -0
  176. package/dist/index277.mjs +5 -0
  177. package/dist/index278.mjs +5 -0
  178. package/dist/index279.mjs +5 -0
  179. package/dist/index280.mjs +5 -0
  180. package/dist/index281.mjs +7 -0
  181. package/dist/index282.mjs +5 -0
  182. package/dist/index283.mjs +5 -0
  183. package/dist/index284.mjs +5 -0
  184. package/dist/index285.mjs +5 -0
  185. package/dist/index286.mjs +5 -0
  186. package/dist/index287.mjs +5 -0
  187. package/dist/index288.mjs +6 -0
  188. package/dist/index289.mjs +5 -0
  189. package/dist/index290.mjs +5 -0
  190. package/dist/index291.mjs +20 -0
  191. package/dist/index292.mjs +16 -0
  192. package/dist/index293.mjs +9 -0
  193. package/dist/index294.mjs +33 -0
  194. package/dist/index295.mjs +5 -0
  195. package/dist/index296.mjs +5 -0
  196. package/dist/index297.mjs +21 -0
  197. package/dist/index298.mjs +50 -0
  198. package/dist/index299.mjs +5 -0
  199. package/dist/index300.mjs +5 -0
  200. package/dist/index301.mjs +5 -0
  201. package/dist/index302.mjs +5 -0
  202. package/dist/index303.mjs +94 -0
  203. package/dist/index304.mjs +5 -0
  204. package/dist/index305.mjs +5 -0
  205. package/dist/index306.mjs +5 -0
  206. package/dist/index307.mjs +5 -0
  207. package/dist/index34.mjs +11 -11
  208. package/dist/index40.mjs +2 -2
  209. package/dist/index42.mjs +2 -2
  210. package/dist/index43.mjs +6 -32
  211. package/dist/index44.mjs +32 -7
  212. package/dist/index45.mjs +6 -1432
  213. package/dist/index46.mjs +1432 -69
  214. package/dist/index47.mjs +70 -2
  215. package/dist/index48.mjs +2 -60
  216. package/dist/index49.mjs +57 -48
  217. package/dist/index50.mjs +51 -33
  218. package/dist/index51.mjs +33 -15
  219. package/dist/index52.mjs +12 -2260
  220. package/dist/index53.mjs +2263 -36
  221. package/dist/index54.mjs +36 -44
  222. package/dist/index55.mjs +44 -99
  223. package/dist/index56.mjs +99 -113
  224. package/dist/index57.mjs +82 -50
  225. package/dist/index58.mjs +53 -79
  226. package/dist/index59.mjs +75 -63
  227. package/dist/index60.mjs +71 -57
  228. package/dist/index61.mjs +57 -55
  229. package/dist/index62.mjs +75 -15
  230. package/dist/index63.mjs +13 -14
  231. package/dist/index64.mjs +16 -59
  232. package/dist/index65.mjs +43 -105
  233. package/dist/index66.mjs +89 -93
  234. package/dist/index67.mjs +128 -23
  235. package/dist/index68.mjs +23 -2
  236. package/dist/index69.mjs +21 -150
  237. package/dist/index70.mjs +2 -23
  238. package/dist/index71.mjs +37 -74
  239. package/dist/index72.mjs +2 -15
  240. package/dist/index73.mjs +148 -58
  241. package/dist/index75.mjs +75 -2
  242. package/dist/index76.mjs +15 -6
  243. package/dist/index77.mjs +57 -1128
  244. package/dist/index78.mjs +5 -19
  245. package/dist/index79.mjs +352 -51
  246. package/dist/index80.mjs +216 -30
  247. package/dist/index81.mjs +59 -2
  248. package/dist/index82.mjs +2 -235
  249. package/dist/index83.mjs +2 -6
  250. package/dist/index84.mjs +2 -134
  251. package/dist/index85.mjs +1134 -67
  252. package/dist/index86.mjs +19 -86
  253. package/dist/index87.mjs +54 -28
  254. package/dist/index88.mjs +32 -8
  255. package/dist/index89.mjs +229 -69
  256. package/dist/index90.mjs +5 -3
  257. package/dist/index91.mjs +134 -2
  258. package/dist/index92.mjs +64 -79
  259. package/dist/index93.mjs +84 -51
  260. package/dist/index94.mjs +28 -5
  261. package/dist/index95.mjs +8 -4
  262. package/dist/index96.mjs +69 -173
  263. package/dist/index97.mjs +4 -53
  264. package/dist/index98.mjs +2 -69
  265. package/dist/index99.mjs +80 -31
  266. package/package.json +1 -1
  267. package/src/components/ProductAddOns.tsx +8 -3
package/dist/index233.mjs CHANGED
@@ -1,111 +1,651 @@
1
1
  'use client';
2
- import { __exports as m } from "./index263.mjs";
3
- var p;
4
- function S() {
5
- return p ? m : (p = 1, function(d) {
6
- Object.defineProperty(d, "__esModule", {
7
- value: !0
8
- });
9
- function g(o, e) {
10
- for (var r in e) Object.defineProperty(o, r, {
11
- enumerable: !0,
12
- get: e[r]
13
- });
14
- }
15
- g(d, {
16
- getSortedRouteObjects: function() {
17
- return w;
18
- },
19
- getSortedRoutes: function() {
20
- return f;
21
- }
22
- });
23
- class h {
24
- insert(e) {
25
- this._insert(e.split("/").filter(Boolean), [], !1);
26
- }
27
- smoosh() {
28
- return this._smoosh();
29
- }
30
- _smoosh(e) {
31
- e === void 0 && (e = "/");
32
- const r = [
33
- ...this.children.keys()
34
- ].sort();
35
- this.slugName !== null && r.splice(r.indexOf("[]"), 1), this.restSlugName !== null && r.splice(r.indexOf("[...]"), 1), this.optionalRestSlugName !== null && r.splice(r.indexOf("[[...]]"), 1);
36
- const n = r.map((s) => this.children.get(s)._smoosh("" + e + s + "/")).reduce((s, t) => [
37
- ...s,
38
- ...t
39
- ], []);
40
- if (this.slugName !== null && n.push(...this.children.get("[]")._smoosh(e + "[" + this.slugName + "]/")), !this.placeholder) {
41
- const s = e === "/" ? "/" : e.slice(0, -1);
42
- if (this.optionalRestSlugName != null)
43
- throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + s + '" and "' + s + "[[..." + this.optionalRestSlugName + ']]").');
44
- n.unshift(s);
2
+ import { __module as Rt } from "./index284.mjs";
3
+ var _t;
4
+ function bt() {
5
+ return _t ? Rt.exports : (_t = 1, (() => {
6
+ var ht = { 170: (F, h, O) => {
7
+ const b = O(510), H = () => {
8
+ if (typeof navigator < "u" && navigator.platform) {
9
+ const k = navigator.platform.toLowerCase();
10
+ return k === "win32" || k === "windows";
45
11
  }
46
- return this.restSlugName !== null && n.push(...this.children.get("[...]")._smoosh(e + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && n.push(...this.children.get("[[...]]")._smoosh(e + "[[..." + this.optionalRestSlugName + "]]/")), n;
12
+ return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
13
+ };
14
+ function D(k, f, p = !1) {
15
+ return f && (f.windows === null || f.windows === void 0) && (f = { ...f, windows: H() }), b(k, f, p);
47
16
  }
48
- _insert(e, r, n) {
49
- if (e.length === 0) {
50
- this.placeholder = !1;
51
- return;
17
+ Object.assign(D, b), F.exports = D;
18
+ }, 154: (F) => {
19
+ const h = "\\\\/", O = `[^${h}]`, b = "\\.", H = "\\+", D = "\\?", k = "\\/", f = "(?=.)", p = "[^/]", s = `(?:${k}|$)`, c = `(?:^|${k})`, A = `${b}{1,2}${s}`, v = `(?!${b})`, a = `(?!${c}${A})`, y = `(?!${b}{0,1}${s})`, u = `(?!${A})`, C = `[^.${k}]`, d = `${p}*?`, x = { DOT_LITERAL: b, PLUS_LITERAL: H, QMARK_LITERAL: D, SLASH_LITERAL: k, ONE_CHAR: f, QMARK: p, END_ANCHOR: s, DOTS_SLASH: A, NO_DOT: v, NO_DOTS: a, NO_DOT_SLASH: y, NO_DOTS_SLASH: u, QMARK_NO_DOT: C, STAR: d, START_ANCHOR: c, SEP: "/" }, m = { ...x, SLASH_LITERAL: `[${h}]`, QMARK: O, STAR: `${O}*?`, DOTS_SLASH: `${b}{1,2}(?:[${h}]|$)`, NO_DOT: `(?!${b})`, NO_DOTS: `(?!(?:^|[${h}])${b}{1,2}(?:[${h}]|$))`, NO_DOT_SLASH: `(?!${b}{0,1}(?:[${h}]|$))`, NO_DOTS_SLASH: `(?!${b}{1,2}(?:[${h}]|$))`, QMARK_NO_DOT: `[^.${h}]`, START_ANCHOR: `(?:^|[${h}])`, END_ANCHOR: `(?:[${h}]|$)`, SEP: "\\" }, Q = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
20
+ F.exports = { MAX_LENGTH: 65536, POSIX_REGEX_SOURCE: Q, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, extglobChars($) {
21
+ return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${$.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
22
+ }, globChars($) {
23
+ return $ === !0 ? m : x;
24
+ } };
25
+ }, 697: (F, h, O) => {
26
+ const b = O(154), H = O(96), { MAX_LENGTH: D, POSIX_REGEX_SOURCE: k, REGEX_NON_SPECIAL_CHARS: f, REGEX_SPECIAL_CHARS_BACKREF: p, REPLACEMENTS: s } = b, c = (a, y) => {
27
+ if (typeof y.expandRange == "function")
28
+ return y.expandRange(...a, y);
29
+ a.sort();
30
+ const u = `[${a.join("-")}]`;
31
+ try {
32
+ new RegExp(u);
33
+ } catch {
34
+ return a.map((d) => H.escapeRegex(d)).join("..");
52
35
  }
53
- if (n)
54
- throw new Error("Catch-all must be the last part of the URL.");
55
- let s = e[0];
56
- if (s.startsWith("[") && s.endsWith("]")) {
57
- let l = function(u, a) {
58
- if (u !== null && u !== a)
59
- throw new Error("You cannot use different slug names for the same dynamic path ('" + u + "' !== '" + a + "').");
60
- r.forEach((c) => {
61
- if (c === a)
62
- throw new Error('You cannot have the same slug name "' + a + '" repeat within a single dynamic path');
63
- if (c.replace(/\W/g, "") === s.replace(/\W/g, ""))
64
- throw new Error('You cannot have the slug names "' + c + '" and "' + a + '" differ only by non-word symbols within a single dynamic path');
65
- }), r.push(a);
66
- }, t = s.slice(1, -1), i = !1;
67
- if (t.startsWith("[") && t.endsWith("]") && (t = t.slice(1, -1), i = !0), t.startsWith("…"))
68
- throw new Error("Detected a three-dot character ('…') at ('" + t + "'). Did you mean ('...')?");
69
- if (t.startsWith("...") && (t = t.substring(3), n = !0), t.startsWith("[") || t.endsWith("]"))
70
- throw new Error("Segment names may not start or end with extra brackets ('" + t + "').");
71
- if (t.startsWith("."))
72
- throw new Error("Segment names may not start with erroneous periods ('" + t + "').");
73
- if (n)
74
- if (i) {
75
- if (this.restSlugName != null)
76
- throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + e[0] + '" ).');
77
- l(this.optionalRestSlugName, t), this.optionalRestSlugName = t, s = "[[...]]";
78
- } else {
79
- if (this.optionalRestSlugName != null)
80
- throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + e[0] + '").');
81
- l(this.restSlugName, t), this.restSlugName = t, s = "[...]";
82
- }
83
- else {
84
- if (i)
85
- throw new Error('Optional route parameters are not yet supported ("' + e[0] + '").');
86
- l(this.slugName, t), this.slugName = t, s = "[]";
36
+ return u;
37
+ }, A = (a, y) => `Missing ${a}: "${y}" - use "\\\\${y}" to match literal characters`, v = (a, y) => {
38
+ if (typeof a != "string")
39
+ throw new TypeError("Expected a string");
40
+ a = s[a] || a;
41
+ const u = { ...y }, C = typeof u.maxLength == "number" ? Math.min(D, u.maxLength) : D;
42
+ let d = a.length;
43
+ if (d > C)
44
+ throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${C}`);
45
+ const G = { type: "bos", value: "", output: u.prepend || "" }, x = [G], m = u.capture ? "" : "?:", Q = b.globChars(u.windows), $ = b.extglobChars(Q), { DOT_LITERAL: Z, PLUS_LITERAL: S, SLASH_LITERAL: tt, ONE_CHAR: P, DOTS_SLASH: Y, NO_DOT: w, NO_DOT_SLASH: st, NO_DOTS_SLASH: K, QMARK: E, QMARK_NO_DOT: N, STAR: ut, START_ANCHOR: rt } = Q, z = (r) => `(${m}(?:(?!${rt}${r.dot ? Y : Z}).)*?)`, L = u.dot ? "" : w, ot = u.dot ? E : N;
46
+ let q = u.bash === !0 ? z(u) : ut;
47
+ u.capture && (q = `(${q})`), typeof u.noext == "boolean" && (u.noextglob = u.noext);
48
+ const n = { input: a, index: -1, start: 0, dot: u.dot === !0, consumed: "", output: "", prefix: "", backtrack: !1, negated: !1, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: !1, tokens: x };
49
+ a = H.removePrefix(a, n), d = a.length;
50
+ const I = [], et = [], ct = [];
51
+ let t = G, e;
52
+ const at = () => n.index === d - 1, i = n.peek = (r = 1) => a[n.index + r], _ = n.advance = () => a[++n.index] || "", J = () => a.slice(n.index + 1), nt = (r = "", g = 0) => {
53
+ n.consumed += r, n.index += g;
54
+ }, U = (r) => {
55
+ n.output += r.output != null ? r.output : r.value, nt(r.value);
56
+ }, M = () => {
57
+ let r = 1;
58
+ for (; i() === "!" && (i(2) !== "(" || i(3) === "?"); )
59
+ _(), n.start++, r++;
60
+ return r % 2 === 0 ? !1 : (n.negated = !0, n.start++, !0);
61
+ }, it = (r) => {
62
+ n[r]++, ct.push(r);
63
+ }, V = (r) => {
64
+ n[r]--, ct.pop();
65
+ }, l = (r) => {
66
+ if (t.type === "globstar") {
67
+ const g = n.braces > 0 && (r.type === "comma" || r.type === "brace"), o = r.extglob === !0 || I.length && (r.type === "pipe" || r.type === "paren");
68
+ r.type !== "slash" && r.type !== "paren" && !g && !o && (n.output = n.output.slice(0, -t.output.length), t.type = "star", t.value = "*", t.output = q, n.output += t.output);
69
+ }
70
+ if (I.length && r.type !== "paren" && (I[I.length - 1].inner += r.value), (r.value || r.output) && U(r), t && t.type === "text" && r.type === "text") {
71
+ t.output = (t.output || t.value) + r.value, t.value += r.value;
72
+ return;
73
+ }
74
+ r.prev = t, x.push(r), t = r;
75
+ }, W = (r, g) => {
76
+ const o = { ...$[g], conditions: 1, inner: "" };
77
+ o.prev = t, o.parens = n.parens, o.output = n.output;
78
+ const R = (u.capture ? "(" : "") + o.open;
79
+ it("parens"), l({ type: r, value: g, output: n.output ? "" : P }), l({ type: "paren", extglob: !0, value: _(), output: R }), I.push(o);
80
+ }, X = (r) => {
81
+ let g = r.close + (u.capture ? ")" : ""), o;
82
+ if (r.type === "negate") {
83
+ let R = q;
84
+ if (r.inner && r.inner.length > 1 && r.inner.includes("/") && (R = z(u)), (R !== q || at() || /^\)+$/.test(J())) && (g = r.close = `)$))${R}`), r.inner.includes("*") && (o = J()) && /^\.[^\\/.]+$/.test(o)) {
85
+ const T = v(o, { ...y, fastpaths: !1 }).output;
86
+ g = r.close = `)${T})${R})`;
87
+ }
88
+ r.prev.type === "bos" && (n.negatedExtglob = !0);
87
89
  }
90
+ l({ type: "paren", extglob: !0, value: e, output: g }), V("parens");
91
+ };
92
+ if (u.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(a)) {
93
+ let r = !1, g = a.replace(p, (o, R, T, j, B, At) => j === "\\" ? (r = !0, o) : j === "?" ? R ? R + j + (B ? E.repeat(B.length) : "") : At === 0 ? ot + (B ? E.repeat(B.length) : "") : E.repeat(T.length) : j === "." ? Z.repeat(T.length) : j === "*" ? R ? R + j + (B ? q : "") : q : R ? o : `\\${o}`);
94
+ return r === !0 && (u.unescape === !0 ? g = g.replace(/\\/g, "") : g = g.replace(/\\+/g, (o) => o.length % 2 === 0 ? "\\\\" : o ? "\\" : "")), g === a && u.contains === !0 ? (n.output = a, n) : (n.output = H.wrapOutput(g, n, y), n);
88
95
  }
89
- this.children.has(s) || this.children.set(s, new h()), this.children.get(s)._insert(e.slice(1), r, n);
90
- }
91
- constructor() {
92
- this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
93
- }
94
- }
95
- function f(o) {
96
- const e = new h();
97
- return o.forEach((r) => e.insert(r)), e.smoosh();
98
- }
99
- function w(o, e) {
100
- const r = {}, n = [];
101
- for (let t = 0; t < o.length; t++) {
102
- const i = e(o[t]);
103
- r[i] = t, n[t] = i;
96
+ for (; !at(); ) {
97
+ if (e = _(), e === "\0")
98
+ continue;
99
+ if (e === "\\") {
100
+ const o = i();
101
+ if (o === "/" && u.bash !== !0 || o === "." || o === ";")
102
+ continue;
103
+ if (!o) {
104
+ e += "\\", l({ type: "text", value: e });
105
+ continue;
106
+ }
107
+ const R = /^\\+/.exec(J());
108
+ let T = 0;
109
+ if (R && R[0].length > 2 && (T = R[0].length, n.index += T, T % 2 !== 0 && (e += "\\")), u.unescape === !0 ? e = _() : e += _(), n.brackets === 0) {
110
+ l({ type: "text", value: e });
111
+ continue;
112
+ }
113
+ }
114
+ if (n.brackets > 0 && (e !== "]" || t.value === "[" || t.value === "[^")) {
115
+ if (u.posix !== !1 && e === ":") {
116
+ const o = t.value.slice(1);
117
+ if (o.includes("[") && (t.posix = !0, o.includes(":"))) {
118
+ const R = t.value.lastIndexOf("["), T = t.value.slice(0, R), j = t.value.slice(R + 2), B = k[j];
119
+ if (B) {
120
+ t.value = T + B, n.backtrack = !0, _(), !G.output && x.indexOf(t) === 1 && (G.output = P);
121
+ continue;
122
+ }
123
+ }
124
+ }
125
+ (e === "[" && i() !== ":" || e === "-" && i() === "]") && (e = `\\${e}`), e === "]" && (t.value === "[" || t.value === "[^") && (e = `\\${e}`), u.posix === !0 && e === "!" && t.value === "[" && (e = "^"), t.value += e, U({ value: e });
126
+ continue;
127
+ }
128
+ if (n.quotes === 1 && e !== '"') {
129
+ e = H.escapeRegex(e), t.value += e, U({ value: e });
130
+ continue;
131
+ }
132
+ if (e === '"') {
133
+ n.quotes = n.quotes === 1 ? 0 : 1, u.keepQuotes === !0 && l({ type: "text", value: e });
134
+ continue;
135
+ }
136
+ if (e === "(") {
137
+ it("parens"), l({ type: "paren", value: e });
138
+ continue;
139
+ }
140
+ if (e === ")") {
141
+ if (n.parens === 0 && u.strictBrackets === !0)
142
+ throw new SyntaxError(A("opening", "("));
143
+ const o = I[I.length - 1];
144
+ if (o && n.parens === o.parens + 1) {
145
+ X(I.pop());
146
+ continue;
147
+ }
148
+ l({ type: "paren", value: e, output: n.parens ? ")" : "\\)" }), V("parens");
149
+ continue;
150
+ }
151
+ if (e === "[") {
152
+ if (u.nobracket === !0 || !J().includes("]")) {
153
+ if (u.nobracket !== !0 && u.strictBrackets === !0)
154
+ throw new SyntaxError(A("closing", "]"));
155
+ e = `\\${e}`;
156
+ } else
157
+ it("brackets");
158
+ l({ type: "bracket", value: e });
159
+ continue;
160
+ }
161
+ if (e === "]") {
162
+ if (u.nobracket === !0 || t && t.type === "bracket" && t.value.length === 1) {
163
+ l({ type: "text", value: e, output: `\\${e}` });
164
+ continue;
165
+ }
166
+ if (n.brackets === 0) {
167
+ if (u.strictBrackets === !0)
168
+ throw new SyntaxError(A("opening", "["));
169
+ l({ type: "text", value: e, output: `\\${e}` });
170
+ continue;
171
+ }
172
+ V("brackets");
173
+ const o = t.value.slice(1);
174
+ if (t.posix !== !0 && o[0] === "^" && !o.includes("/") && (e = `/${e}`), t.value += e, U({ value: e }), u.literalBrackets === !1 || H.hasRegexChars(o))
175
+ continue;
176
+ const R = H.escapeRegex(t.value);
177
+ if (n.output = n.output.slice(0, -t.value.length), u.literalBrackets === !0) {
178
+ n.output += R, t.value = R;
179
+ continue;
180
+ }
181
+ t.value = `(${m}${R}|${t.value})`, n.output += t.value;
182
+ continue;
183
+ }
184
+ if (e === "{" && u.nobrace !== !0) {
185
+ it("braces");
186
+ const o = { type: "brace", value: e, output: "(", outputIndex: n.output.length, tokensIndex: n.tokens.length };
187
+ et.push(o), l(o);
188
+ continue;
189
+ }
190
+ if (e === "}") {
191
+ const o = et[et.length - 1];
192
+ if (u.nobrace === !0 || !o) {
193
+ l({ type: "text", value: e, output: e });
194
+ continue;
195
+ }
196
+ let R = ")";
197
+ if (o.dots === !0) {
198
+ const T = x.slice(), j = [];
199
+ for (let B = T.length - 1; B >= 0 && (x.pop(), T[B].type !== "brace"); B--)
200
+ T[B].type !== "dots" && j.unshift(T[B].value);
201
+ R = c(j, u), n.backtrack = !0;
202
+ }
203
+ if (o.comma !== !0 && o.dots !== !0) {
204
+ const T = n.output.slice(0, o.outputIndex), j = n.tokens.slice(o.tokensIndex);
205
+ o.value = o.output = "\\{", e = R = "\\}", n.output = T;
206
+ for (const B of j)
207
+ n.output += B.output || B.value;
208
+ }
209
+ l({ type: "brace", value: e, output: R }), V("braces"), et.pop();
210
+ continue;
211
+ }
212
+ if (e === "|") {
213
+ I.length > 0 && I[I.length - 1].conditions++, l({ type: "text", value: e });
214
+ continue;
215
+ }
216
+ if (e === ",") {
217
+ let o = e;
218
+ const R = et[et.length - 1];
219
+ R && ct[ct.length - 1] === "braces" && (R.comma = !0, o = "|"), l({ type: "comma", value: e, output: o });
220
+ continue;
221
+ }
222
+ if (e === "/") {
223
+ if (t.type === "dot" && n.index === n.start + 1) {
224
+ n.start = n.index + 1, n.consumed = "", n.output = "", x.pop(), t = G;
225
+ continue;
226
+ }
227
+ l({ type: "slash", value: e, output: tt });
228
+ continue;
229
+ }
230
+ if (e === ".") {
231
+ if (n.braces > 0 && t.type === "dot") {
232
+ t.value === "." && (t.output = Z);
233
+ const o = et[et.length - 1];
234
+ t.type = "dots", t.output += e, t.value += e, o.dots = !0;
235
+ continue;
236
+ }
237
+ if (n.braces + n.parens === 0 && t.type !== "bos" && t.type !== "slash") {
238
+ l({ type: "text", value: e, output: Z });
239
+ continue;
240
+ }
241
+ l({ type: "dot", value: e, output: Z });
242
+ continue;
243
+ }
244
+ if (e === "?") {
245
+ if (!(t && t.value === "(") && u.noextglob !== !0 && i() === "(" && i(2) !== "?") {
246
+ W("qmark", e);
247
+ continue;
248
+ }
249
+ if (t && t.type === "paren") {
250
+ const R = i();
251
+ let T = e;
252
+ (t.value === "(" && !/[!=<:]/.test(R) || R === "<" && !/<([!=]|\w+>)/.test(J())) && (T = `\\${e}`), l({ type: "text", value: e, output: T });
253
+ continue;
254
+ }
255
+ if (u.dot !== !0 && (t.type === "slash" || t.type === "bos")) {
256
+ l({ type: "qmark", value: e, output: N });
257
+ continue;
258
+ }
259
+ l({ type: "qmark", value: e, output: E });
260
+ continue;
261
+ }
262
+ if (e === "!") {
263
+ if (u.noextglob !== !0 && i() === "(" && (i(2) !== "?" || !/[!=<:]/.test(i(3)))) {
264
+ W("negate", e);
265
+ continue;
266
+ }
267
+ if (u.nonegate !== !0 && n.index === 0) {
268
+ M();
269
+ continue;
270
+ }
271
+ }
272
+ if (e === "+") {
273
+ if (u.noextglob !== !0 && i() === "(" && i(2) !== "?") {
274
+ W("plus", e);
275
+ continue;
276
+ }
277
+ if (t && t.value === "(" || u.regex === !1) {
278
+ l({ type: "plus", value: e, output: S });
279
+ continue;
280
+ }
281
+ if (t && (t.type === "bracket" || t.type === "paren" || t.type === "brace") || n.parens > 0) {
282
+ l({ type: "plus", value: e });
283
+ continue;
284
+ }
285
+ l({ type: "plus", value: S });
286
+ continue;
287
+ }
288
+ if (e === "@") {
289
+ if (u.noextglob !== !0 && i() === "(" && i(2) !== "?") {
290
+ l({ type: "at", extglob: !0, value: e, output: "" });
291
+ continue;
292
+ }
293
+ l({ type: "text", value: e });
294
+ continue;
295
+ }
296
+ if (e !== "*") {
297
+ (e === "$" || e === "^") && (e = `\\${e}`);
298
+ const o = f.exec(J());
299
+ o && (e += o[0], n.index += o[0].length), l({ type: "text", value: e });
300
+ continue;
301
+ }
302
+ if (t && (t.type === "globstar" || t.star === !0)) {
303
+ t.type = "star", t.star = !0, t.value += e, t.output = q, n.backtrack = !0, n.globstar = !0, nt(e);
304
+ continue;
305
+ }
306
+ let r = J();
307
+ if (u.noextglob !== !0 && /^\([^?]/.test(r)) {
308
+ W("star", e);
309
+ continue;
310
+ }
311
+ if (t.type === "star") {
312
+ if (u.noglobstar === !0) {
313
+ nt(e);
314
+ continue;
315
+ }
316
+ const o = t.prev, R = o.prev, T = o.type === "slash" || o.type === "bos", j = R && (R.type === "star" || R.type === "globstar");
317
+ if (u.bash === !0 && (!T || r[0] && r[0] !== "/")) {
318
+ l({ type: "star", value: e, output: "" });
319
+ continue;
320
+ }
321
+ const B = n.braces > 0 && (o.type === "comma" || o.type === "brace"), At = I.length && (o.type === "pipe" || o.type === "paren");
322
+ if (!T && o.type !== "paren" && !B && !At) {
323
+ l({ type: "star", value: e, output: "" });
324
+ continue;
325
+ }
326
+ for (; r.slice(0, 3) === "/**"; ) {
327
+ const lt = a[n.index + 4];
328
+ if (lt && lt !== "/")
329
+ break;
330
+ r = r.slice(3), nt("/**", 3);
331
+ }
332
+ if (o.type === "bos" && at()) {
333
+ t.type = "globstar", t.value += e, t.output = z(u), n.output = t.output, n.globstar = !0, nt(e);
334
+ continue;
335
+ }
336
+ if (o.type === "slash" && o.prev.type !== "bos" && !j && at()) {
337
+ n.output = n.output.slice(0, -(o.output + t.output).length), o.output = `(?:${o.output}`, t.type = "globstar", t.output = z(u) + (u.strictSlashes ? ")" : "|$)"), t.value += e, n.globstar = !0, n.output += o.output + t.output, nt(e);
338
+ continue;
339
+ }
340
+ if (o.type === "slash" && o.prev.type !== "bos" && r[0] === "/") {
341
+ const lt = r[1] !== void 0 ? "|$" : "";
342
+ n.output = n.output.slice(0, -(o.output + t.output).length), o.output = `(?:${o.output}`, t.type = "globstar", t.output = `${z(u)}${tt}|${tt}${lt})`, t.value += e, n.output += o.output + t.output, n.globstar = !0, nt(e + _()), l({ type: "slash", value: "/", output: "" });
343
+ continue;
344
+ }
345
+ if (o.type === "bos" && r[0] === "/") {
346
+ t.type = "globstar", t.value += e, t.output = `(?:^|${tt}|${z(u)}${tt})`, n.output = t.output, n.globstar = !0, nt(e + _()), l({ type: "slash", value: "/", output: "" });
347
+ continue;
348
+ }
349
+ n.output = n.output.slice(0, -t.output.length), t.type = "globstar", t.output = z(u), t.value += e, n.output += t.output, n.globstar = !0, nt(e);
350
+ continue;
351
+ }
352
+ const g = { type: "star", value: e, output: q };
353
+ if (u.bash === !0) {
354
+ g.output = ".*?", (t.type === "bos" || t.type === "slash") && (g.output = L + g.output), l(g);
355
+ continue;
356
+ }
357
+ if (t && (t.type === "bracket" || t.type === "paren") && u.regex === !0) {
358
+ g.output = e, l(g);
359
+ continue;
360
+ }
361
+ (n.index === n.start || t.type === "slash" || t.type === "dot") && (t.type === "dot" ? (n.output += st, t.output += st) : u.dot === !0 ? (n.output += K, t.output += K) : (n.output += L, t.output += L), i() !== "*" && (n.output += P, t.output += P)), l(g);
362
+ }
363
+ for (; n.brackets > 0; ) {
364
+ if (u.strictBrackets === !0) throw new SyntaxError(A("closing", "]"));
365
+ n.output = H.escapeLast(n.output, "["), V("brackets");
366
+ }
367
+ for (; n.parens > 0; ) {
368
+ if (u.strictBrackets === !0) throw new SyntaxError(A("closing", ")"));
369
+ n.output = H.escapeLast(n.output, "("), V("parens");
370
+ }
371
+ for (; n.braces > 0; ) {
372
+ if (u.strictBrackets === !0) throw new SyntaxError(A("closing", "}"));
373
+ n.output = H.escapeLast(n.output, "{"), V("braces");
374
+ }
375
+ if (u.strictSlashes !== !0 && (t.type === "star" || t.type === "bracket") && l({ type: "maybe_slash", value: "", output: `${tt}?` }), n.backtrack === !0) {
376
+ n.output = "";
377
+ for (const r of n.tokens)
378
+ n.output += r.output != null ? r.output : r.value, r.suffix && (n.output += r.suffix);
379
+ }
380
+ return n;
381
+ };
382
+ v.fastpaths = (a, y) => {
383
+ const u = { ...y }, C = typeof u.maxLength == "number" ? Math.min(D, u.maxLength) : D, d = a.length;
384
+ if (d > C)
385
+ throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${C}`);
386
+ a = s[a] || a;
387
+ const { DOT_LITERAL: G, SLASH_LITERAL: x, ONE_CHAR: m, DOTS_SLASH: Q, NO_DOT: $, NO_DOTS: Z, NO_DOTS_SLASH: S, STAR: tt, START_ANCHOR: P } = b.globChars(u.windows), Y = u.dot ? Z : $, w = u.dot ? S : $, st = u.capture ? "" : "?:", K = { negated: !1, prefix: "" };
388
+ let E = u.bash === !0 ? ".*?" : tt;
389
+ u.capture && (E = `(${E})`);
390
+ const N = (L) => L.noglobstar === !0 ? E : `(${st}(?:(?!${P}${L.dot ? Q : G}).)*?)`, ut = (L) => {
391
+ switch (L) {
392
+ case "*":
393
+ return `${Y}${m}${E}`;
394
+ case ".*":
395
+ return `${G}${m}${E}`;
396
+ case "*.*":
397
+ return `${Y}${E}${G}${m}${E}`;
398
+ case "*/*":
399
+ return `${Y}${E}${x}${m}${w}${E}`;
400
+ case "**":
401
+ return Y + N(u);
402
+ case "**/*":
403
+ return `(?:${Y}${N(u)}${x})?${w}${m}${E}`;
404
+ case "**/*.*":
405
+ return `(?:${Y}${N(u)}${x})?${w}${E}${G}${m}${E}`;
406
+ case "**/.*":
407
+ return `(?:${Y}${N(u)}${x})?${G}${m}${E}`;
408
+ default: {
409
+ const ot = /^(.*?)\.(\w+)$/.exec(L);
410
+ if (!ot) return;
411
+ const q = ut(ot[1]);
412
+ return q ? q + G + ot[2] : void 0;
413
+ }
414
+ }
415
+ }, rt = H.removePrefix(a, K);
416
+ let z = ut(rt);
417
+ return z && u.strictSlashes !== !0 && (z += `${x}?`), z;
418
+ }, F.exports = v;
419
+ }, 510: (F, h, O) => {
420
+ const b = O(716), H = O(697), D = O(96), k = O(154), f = (s) => s && typeof s == "object" && !Array.isArray(s), p = (s, c, A = !1) => {
421
+ if (Array.isArray(s)) {
422
+ const x = s.map((Q) => p(Q, c, A));
423
+ return (Q) => {
424
+ for (const $ of x) {
425
+ const Z = $(Q);
426
+ if (Z) return Z;
427
+ }
428
+ return !1;
429
+ };
430
+ }
431
+ const v = f(s) && s.tokens && s.input;
432
+ if (s === "" || typeof s != "string" && !v)
433
+ throw new TypeError("Expected pattern to be a non-empty string");
434
+ const a = c || {}, y = a.windows, u = v ? p.compileRe(s, c) : p.makeRe(s, c, !1, !0), C = u.state;
435
+ delete u.state;
436
+ let d = () => !1;
437
+ if (a.ignore) {
438
+ const x = { ...c, ignore: null, onMatch: null, onResult: null };
439
+ d = p(a.ignore, x, A);
440
+ }
441
+ const G = (x, m = !1) => {
442
+ const { isMatch: Q, match: $, output: Z } = p.test(x, u, c, { glob: s, posix: y }), S = { glob: s, state: C, regex: u, posix: y, input: x, output: Z, match: $, isMatch: Q };
443
+ return typeof a.onResult == "function" && a.onResult(S), Q === !1 ? (S.isMatch = !1, m ? S : !1) : d(x) ? (typeof a.onIgnore == "function" && a.onIgnore(S), S.isMatch = !1, m ? S : !1) : (typeof a.onMatch == "function" && a.onMatch(S), m ? S : !0);
444
+ };
445
+ return A && (G.state = C), G;
446
+ };
447
+ p.test = (s, c, A, { glob: v, posix: a } = {}) => {
448
+ if (typeof s != "string")
449
+ throw new TypeError("Expected input to be a string");
450
+ if (s === "")
451
+ return { isMatch: !1, output: "" };
452
+ const y = A || {}, u = y.format || (a ? D.toPosixSlashes : null);
453
+ let C = s === v, d = C && u ? u(s) : s;
454
+ return C === !1 && (d = u ? u(s) : s, C = d === v), (C === !1 || y.capture === !0) && (y.matchBase === !0 || y.basename === !0 ? C = p.matchBase(s, c, A, a) : C = c.exec(d)), { isMatch: !!C, match: C, output: d };
455
+ }, p.matchBase = (s, c, A) => (c instanceof RegExp ? c : p.makeRe(c, A)).test(D.basename(s)), p.isMatch = (s, c, A) => p(c, A)(s), p.parse = (s, c) => Array.isArray(s) ? s.map((A) => p.parse(A, c)) : H(s, { ...c, fastpaths: !1 }), p.scan = (s, c) => b(s, c), p.compileRe = (s, c, A = !1, v = !1) => {
456
+ if (A === !0)
457
+ return s.output;
458
+ const a = c || {}, y = a.contains ? "" : "^", u = a.contains ? "" : "$";
459
+ let C = `${y}(?:${s.output})${u}`;
460
+ s && s.negated === !0 && (C = `^(?!${C}).*$`);
461
+ const d = p.toRegex(C, c);
462
+ return v === !0 && (d.state = s), d;
463
+ }, p.makeRe = (s, c = {}, A = !1, v = !1) => {
464
+ if (!s || typeof s != "string")
465
+ throw new TypeError("Expected a non-empty string");
466
+ let a = { negated: !1, fastpaths: !0 };
467
+ return c.fastpaths !== !1 && (s[0] === "." || s[0] === "*") && (a.output = H.fastpaths(s, c)), a.output || (a = H(s, c)), p.compileRe(a, c, A, v);
468
+ }, p.toRegex = (s, c) => {
469
+ try {
470
+ const A = c || {};
471
+ return new RegExp(s, A.flags || (A.nocase ? "i" : ""));
472
+ } catch (A) {
473
+ if (c && c.debug === !0) throw A;
474
+ return /$^/;
475
+ }
476
+ }, p.constants = k, F.exports = p;
477
+ }, 716: (F, h, O) => {
478
+ const b = O(96), { CHAR_ASTERISK: H, CHAR_AT: D, CHAR_BACKWARD_SLASH: k, CHAR_COMMA: f, CHAR_DOT: p, CHAR_EXCLAMATION_MARK: s, CHAR_FORWARD_SLASH: c, CHAR_LEFT_CURLY_BRACE: A, CHAR_LEFT_PARENTHESES: v, CHAR_LEFT_SQUARE_BRACKET: a, CHAR_PLUS: y, CHAR_QUESTION_MARK: u, CHAR_RIGHT_CURLY_BRACE: C, CHAR_RIGHT_PARENTHESES: d, CHAR_RIGHT_SQUARE_BRACKET: G } = O(154), x = ($) => $ === c || $ === k, m = ($) => {
479
+ $.isPrefix !== !0 && ($.depth = $.isGlobstar ? 1 / 0 : 1);
480
+ }, Q = ($, Z) => {
481
+ const S = Z || {}, tt = $.length - 1, P = S.parts === !0 || S.scanToEnd === !0, Y = [], w = [], st = [];
482
+ let K = $, E = -1, N = 0, ut = 0, rt = !1, z = !1, L = !1, ot = !1, q = !1, n = !1, I = !1, et = !1, ct = !1, t = !1, e = 0, at, i, _ = { value: "", depth: 0, isGlob: !1 };
483
+ const J = () => E >= tt, nt = () => K.charCodeAt(E + 1), U = () => (at = i, K.charCodeAt(++E));
484
+ for (; E < tt; ) {
485
+ i = U();
486
+ let W;
487
+ if (i === k) {
488
+ I = _.backslashes = !0, i = U(), i === A && (n = !0);
489
+ continue;
490
+ }
491
+ if (n === !0 || i === A) {
492
+ for (e++; J() !== !0 && (i = U()); ) {
493
+ if (i === k) {
494
+ I = _.backslashes = !0, U();
495
+ continue;
496
+ }
497
+ if (i === A) {
498
+ e++;
499
+ continue;
500
+ }
501
+ if (n !== !0 && i === p && (i = U()) === p) {
502
+ if (rt = _.isBrace = !0, L = _.isGlob = !0, t = !0, P === !0)
503
+ continue;
504
+ break;
505
+ }
506
+ if (n !== !0 && i === f) {
507
+ if (rt = _.isBrace = !0, L = _.isGlob = !0, t = !0, P === !0)
508
+ continue;
509
+ break;
510
+ }
511
+ if (i === C && (e--, e === 0)) {
512
+ n = !1, rt = _.isBrace = !0, t = !0;
513
+ break;
514
+ }
515
+ }
516
+ if (P === !0)
517
+ continue;
518
+ break;
519
+ }
520
+ if (i === c) {
521
+ if (Y.push(E), w.push(_), _ = { value: "", depth: 0, isGlob: !1 }, t === !0) continue;
522
+ if (at === p && E === N + 1) {
523
+ N += 2;
524
+ continue;
525
+ }
526
+ ut = E + 1;
527
+ continue;
528
+ }
529
+ if (S.noext !== !0 && (i === y || i === D || i === H || i === u || i === s) === !0 && nt() === v) {
530
+ if (L = _.isGlob = !0, ot = _.isExtglob = !0, t = !0, i === s && E === N && (ct = !0), P === !0) {
531
+ for (; J() !== !0 && (i = U()); ) {
532
+ if (i === k) {
533
+ I = _.backslashes = !0, i = U();
534
+ continue;
535
+ }
536
+ if (i === d) {
537
+ L = _.isGlob = !0, t = !0;
538
+ break;
539
+ }
540
+ }
541
+ continue;
542
+ }
543
+ break;
544
+ }
545
+ if (i === H) {
546
+ if (at === H && (q = _.isGlobstar = !0), L = _.isGlob = !0, t = !0, P === !0)
547
+ continue;
548
+ break;
549
+ }
550
+ if (i === u) {
551
+ if (L = _.isGlob = !0, t = !0, P === !0)
552
+ continue;
553
+ break;
554
+ }
555
+ if (i === a) {
556
+ for (; J() !== !0 && (W = U()); ) {
557
+ if (W === k) {
558
+ I = _.backslashes = !0, U();
559
+ continue;
560
+ }
561
+ if (W === G) {
562
+ z = _.isBracket = !0, L = _.isGlob = !0, t = !0;
563
+ break;
564
+ }
565
+ }
566
+ if (P === !0)
567
+ continue;
568
+ break;
569
+ }
570
+ if (S.nonegate !== !0 && i === s && E === N) {
571
+ et = _.negated = !0, N++;
572
+ continue;
573
+ }
574
+ if (S.noparen !== !0 && i === v) {
575
+ if (L = _.isGlob = !0, P === !0) {
576
+ for (; J() !== !0 && (i = U()); ) {
577
+ if (i === v) {
578
+ I = _.backslashes = !0, i = U();
579
+ continue;
580
+ }
581
+ if (i === d) {
582
+ t = !0;
583
+ break;
584
+ }
585
+ }
586
+ continue;
587
+ }
588
+ break;
589
+ }
590
+ if (L === !0) {
591
+ if (t = !0, P === !0)
592
+ continue;
593
+ break;
594
+ }
595
+ }
596
+ S.noext === !0 && (ot = !1, L = !1);
597
+ let M = K, it = "", V = "";
598
+ N > 0 && (it = K.slice(0, N), K = K.slice(N), ut -= N), M && L === !0 && ut > 0 ? (M = K.slice(0, ut), V = K.slice(ut)) : L === !0 ? (M = "", V = K) : M = K, M && M !== "" && M !== "/" && M !== K && x(M.charCodeAt(M.length - 1)) && (M = M.slice(0, -1)), S.unescape === !0 && (V && (V = b.removeBackslashes(V)), M && I === !0 && (M = b.removeBackslashes(M)));
599
+ const l = { prefix: it, input: $, start: N, base: M, glob: V, isBrace: rt, isBracket: z, isGlob: L, isExtglob: ot, isGlobstar: q, negated: et, negatedExtglob: ct };
600
+ if (S.tokens === !0 && (l.maxDepth = 0, x(i) || w.push(_), l.tokens = w), S.parts === !0 || S.tokens === !0) {
601
+ let W;
602
+ for (let X = 0; X < Y.length; X++) {
603
+ const r = W ? W + 1 : N, g = Y[X], o = $.slice(r, g);
604
+ S.tokens && (X === 0 && N !== 0 ? (w[X].isPrefix = !0, w[X].value = it) : w[X].value = o, m(w[X]), l.maxDepth += w[X].depth), (X !== 0 || o !== "") && st.push(o), W = g;
605
+ }
606
+ if (W && W + 1 < $.length) {
607
+ const X = $.slice(W + 1);
608
+ st.push(X), S.tokens && (w[w.length - 1].value = X, m(w[w.length - 1]), l.maxDepth += w[w.length - 1].depth);
609
+ }
610
+ l.slashes = Y, l.parts = st;
611
+ }
612
+ return l;
613
+ };
614
+ F.exports = Q;
615
+ }, 96: (F, h, O) => {
616
+ const { REGEX_BACKSLASH: b, REGEX_REMOVE_BACKSLASH: H, REGEX_SPECIAL_CHARS: D, REGEX_SPECIAL_CHARS_GLOBAL: k } = O(154);
617
+ h.isObject = (f) => f !== null && typeof f == "object" && !Array.isArray(f), h.hasRegexChars = (f) => D.test(f), h.isRegexChar = (f) => f.length === 1 && h.hasRegexChars(f), h.escapeRegex = (f) => f.replace(k, "\\$1"), h.toPosixSlashes = (f) => f.replace(b, "/"), h.removeBackslashes = (f) => f.replace(H, (p) => p === "\\" ? "" : p), h.escapeLast = (f, p, s) => {
618
+ const c = f.lastIndexOf(p, s);
619
+ return c === -1 ? f : f[c - 1] === "\\" ? h.escapeLast(f, p, c - 1) : `${f.slice(0, c)}\\${f.slice(c)}`;
620
+ }, h.removePrefix = (f, p = {}) => {
621
+ let s = f;
622
+ return s.startsWith("./") && (s = s.slice(2), p.prefix = "./"), s;
623
+ }, h.wrapOutput = (f, p = {}, s = {}) => {
624
+ const c = s.contains ? "" : "^", A = s.contains ? "" : "$";
625
+ let v = `${c}(?:${f})${A}`;
626
+ return p.negated === !0 && (v = `(?:^(?!${v}).*$)`), v;
627
+ }, h.basename = (f, { windows: p } = {}) => {
628
+ const s = f.split(p ? /[\\/]/ : "/"), c = s[s.length - 1];
629
+ return c === "" ? s[s.length - 2] : c;
630
+ };
631
+ } }, ft = {};
632
+ function pt(F) {
633
+ var h = ft[F];
634
+ if (h !== void 0)
635
+ return h.exports;
636
+ var O = ft[F] = { exports: {} }, b = !0;
637
+ try {
638
+ ht[F](O, O.exports, pt), b = !1;
639
+ } finally {
640
+ b && delete ft[F];
104
641
  }
105
- return f(n).map((t) => o[r[t]]);
642
+ return O.exports;
106
643
  }
107
- }(m), m);
644
+ typeof pt < "u" && (pt.ab = __dirname + "/");
645
+ var Et = pt(170);
646
+ Rt.exports = Et;
647
+ })(), Rt.exports);
108
648
  }
109
649
  export {
110
- S as __require
650
+ bt as __require
111
651
  };