@billgangcom/theme-lib 1.122.1 → 1.123.1

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 (45) hide show
  1. package/dist/{builder-BP2NF8ba.cjs → builder-BNQD7fm1.cjs} +13 -13
  2. package/dist/{builder-DLbxHcGl.js → builder-Cbzb-Pzj.js} +805 -805
  3. package/dist/{builder-components-CvwzjRgz.js → builder-components-B6Ct-1cI.js} +699 -699
  4. package/dist/builder-components-B8gWw88v.cjs +5 -0
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +55 -55
  7. package/dist/{charge-D4NUd_5K.js → charge-Bv8wu-fV.js} +3413 -3411
  8. package/dist/{charge-BHOPMu9B.cjs → charge-DcKd_es2.cjs} +38 -38
  9. package/dist/{checkout-DDFInBAH.cjs → checkout-BQwNBpVW.cjs} +1 -1
  10. package/dist/{checkout-Be8X_4uK.js → checkout-DkIvY2zs.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-BNnvygcY.js → index-BHLQHIsH.js} +2 -2
  14. package/dist/{index-WepRctI4.js → index-BIfw5wrd.js} +5 -5
  15. package/dist/{index-DtmPPvyI.cjs → index-BYdRgPyI.cjs} +1 -1
  16. package/dist/{index-DdeE8DtM.js → index-Bk-mY9E3.js} +5 -5
  17. package/dist/{index-qS6eq-cu.cjs → index-BnMpELp_.cjs} +1 -1
  18. package/dist/{index-CpusUNuE.cjs → index-BtqOzf1F.cjs} +1 -1
  19. package/dist/{index-BFpaF1oT.js → index-C-OH-0Jj.js} +1 -1
  20. package/dist/{index-nMMf5rX0.js → index-CtZBWOyf.js} +5 -5
  21. package/dist/{index-An-uLEwq.js → index-D1W9Fza6.js} +5 -5
  22. package/dist/{index-Dh-QXL4z.cjs → index-DoklSmf4.cjs} +1 -1
  23. package/dist/{index-DC5b0ag7.cjs → index-DozNvPOR.cjs} +1 -1
  24. package/dist/{index-x85KH7TY.cjs → index-Dyg2ZZW6.cjs} +1 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-DgGQVpIG.cjs → order-B0gf5VEi.cjs} +1 -1
  28. package/dist/{order-DnWNBSt4.js → order-S6e2WcCX.js} +5 -5
  29. package/dist/src/builder/components/ExitButton/index.d.ts +1 -4
  30. package/dist/style.css +1 -1
  31. package/dist/{subscription-CU8xIJMY.cjs → subscription-5ytxlwXp.cjs} +1 -1
  32. package/dist/{subscription-DnmKIrml.js → subscription-HEpvSKgZ.js} +5 -5
  33. package/dist/{ticket-B6IYS1Cm.cjs → ticket-C5g3kw8c.cjs} +1 -1
  34. package/dist/{ticket-DWbUjROU.js → ticket-CbQabuyp.js} +5 -5
  35. package/dist/{top-up-CMYplLen.cjs → top-up-CrbYB293.cjs} +1 -1
  36. package/dist/{top-up-DwN1AWtR.js → top-up-lubckd9w.js} +5 -5
  37. package/dist/{ui-components-C-vKKPue.js → ui-components-BhVIVLV-.js} +2214 -2210
  38. package/dist/ui-components-jkqz3-Kc.cjs +1 -0
  39. package/dist/ui.cjs.js +1 -1
  40. package/dist/ui.es.js +1 -1
  41. package/dist/{validation-CHMZxQ3t.cjs → validation-Be-6h5-8.cjs} +1 -1
  42. package/dist/{validation-AShv6XKA.js → validation-lwFWEACU.js} +5 -5
  43. package/package.json +1 -1
  44. package/dist/builder-components-Dc6wkxdX.cjs +0 -5
  45. package/dist/ui-components-BmZEF6MK.cjs +0 -1
@@ -1,11 +1,11 @@
1
1
  import * as E from "react";
2
- import _e, { useRef as jr, useEffect as _a } from "react";
3
- import * as Ta from "react-dom";
4
- import { jsx as M, jsxs as Re, Fragment as Pa } from "react/jsx-runtime";
5
- import { I as Wt, B as $r, a as qn, C as Oa, b as Ma, L as Aa } from "./ui-components-C-vKKPue.js";
6
- import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-CvwzjRgz.js";
7
- import "./charge-D4NUd_5K.js";
8
- import "./ticket-DWbUjROU.js";
2
+ import _e, { useRef as jr, useEffect as Ta } from "react";
3
+ import * as Pa from "react-dom";
4
+ import { jsx as A, jsxs as Re, Fragment as Oa } from "react/jsx-runtime";
5
+ import { I as Wt, B as $r, a as qn, C as Aa, b as Ma, L as Da } from "./ui-components-BhVIVLV-.js";
6
+ import { N as Fa, H as Ia, S as Ba, P as Ha, M as Ua } from "./builder-components-B6Ct-1cI.js";
7
+ import "./charge-Bv8wu-fV.js";
8
+ import "./ticket-CbQabuyp.js";
9
9
  /**
10
10
  * @remix-run/router v1.23.0
11
11
  *
@@ -31,7 +31,7 @@ var ye;
31
31
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
32
32
  })(ye || (ye = {}));
33
33
  const zr = "popstate";
34
- function Ua(e) {
34
+ function Va(e) {
35
35
  e === void 0 && (e = {});
36
36
  function t(r, o) {
37
37
  let {
@@ -54,7 +54,7 @@ function Ua(e) {
54
54
  function n(r, o) {
55
55
  return typeof o == "string" ? o : ct(o);
56
56
  }
57
- return ja(t, n, null, e);
57
+ return $a(t, n, null, e);
58
58
  }
59
59
  function I(e, t) {
60
60
  if (e === !1 || e === null || typeof e > "u")
@@ -69,7 +69,7 @@ function we(e, t) {
69
69
  }
70
70
  }
71
71
  }
72
- function Va() {
72
+ function ja() {
73
73
  return Math.random().toString(36).substr(2, 8);
74
74
  }
75
75
  function Jr(e, t) {
@@ -90,7 +90,7 @@ function Zt(e, t, n, r) {
90
90
  // full Locations now and avoid the need to run through this flow at all
91
91
  // But that's a pretty big refactor to the current test suite so going to
92
92
  // keep as is for the time being and just let any incoming keys take precedence
93
- key: t && t.key || r || Va()
93
+ key: t && t.key || r || ja()
94
94
  });
95
95
  }
96
96
  function ct(e) {
@@ -111,7 +111,7 @@ function dt(e) {
111
111
  }
112
112
  return t;
113
113
  }
114
- function ja(e, t, n, r) {
114
+ function $a(e, t, n, r) {
115
115
  r === void 0 && (r = {});
116
116
  let {
117
117
  window: o = document.defaultView,
@@ -127,20 +127,20 @@ function ja(e, t, n, r) {
127
127
  }
128
128
  function d() {
129
129
  s = ye.Pop;
130
- let v = u(), k = v == null ? null : v - c;
130
+ let v = u(), x = v == null ? null : v - c;
131
131
  c = v, l && l({
132
132
  action: s,
133
133
  location: p.location,
134
- delta: k
134
+ delta: x
135
135
  });
136
136
  }
137
- function h(v, k) {
137
+ function h(v, x) {
138
138
  s = ye.Push;
139
- let b = Zt(p.location, v, k);
139
+ let b = Zt(p.location, v, x);
140
140
  c = u() + 1;
141
- let x = Jr(b, c), _ = p.createHref(b);
141
+ let L = Jr(b, c), _ = p.createHref(b);
142
142
  try {
143
- i.pushState(x, "", _);
143
+ i.pushState(L, "", _);
144
144
  } catch (N) {
145
145
  if (N instanceof DOMException && N.name === "DataCloneError")
146
146
  throw N;
@@ -152,20 +152,20 @@ function ja(e, t, n, r) {
152
152
  delta: 1
153
153
  });
154
154
  }
155
- function y(v, k) {
155
+ function y(v, x) {
156
156
  s = ye.Replace;
157
- let b = Zt(p.location, v, k);
157
+ let b = Zt(p.location, v, x);
158
158
  c = u();
159
- let x = Jr(b, c), _ = p.createHref(b);
160
- i.replaceState(x, "", _), a && l && l({
159
+ let L = Jr(b, c), _ = p.createHref(b);
160
+ i.replaceState(L, "", _), a && l && l({
161
161
  action: s,
162
162
  location: p.location,
163
163
  delta: 0
164
164
  });
165
165
  }
166
166
  function m(v) {
167
- let k = o.location.origin !== "null" ? o.location.origin : o.location.href, b = typeof v == "string" ? v : ct(v);
168
- return b = b.replace(/ $/, "%20"), I(k, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, k);
167
+ let x = o.location.origin !== "null" ? o.location.origin : o.location.href, b = typeof v == "string" ? v : ct(v);
168
+ return b = b.replace(/ $/, "%20"), I(x, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, x);
169
169
  }
170
170
  let p = {
171
171
  get action() {
@@ -186,11 +186,11 @@ function ja(e, t, n, r) {
186
186
  },
187
187
  createURL: m,
188
188
  encodeLocation(v) {
189
- let k = m(v);
189
+ let x = m(v);
190
190
  return {
191
- pathname: k.pathname,
192
- search: k.search,
193
- hash: k.hash
191
+ pathname: x.pathname,
192
+ search: x.search,
193
+ hash: x.hash
194
194
  };
195
195
  },
196
196
  push: h,
@@ -205,14 +205,14 @@ var oe;
205
205
  (function(e) {
206
206
  e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
207
207
  })(oe || (oe = {}));
208
- const $a = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
209
- function za(e) {
208
+ const za = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
209
+ function Ja(e) {
210
210
  return e.index === !0;
211
211
  }
212
212
  function Cn(e, t, n, r) {
213
213
  return n === void 0 && (n = []), r === void 0 && (r = {}), e.map((o, a) => {
214
214
  let i = [...n, String(a)], s = typeof o.id == "string" ? o.id : i.join("-");
215
- if (I(o.index !== !0 || !o.children, "Cannot specify children on an index route"), I(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`), za(o)) {
215
+ if (I(o.index !== !0 || !o.children, "Cannot specify children on an index route"), I(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`), Ja(o)) {
216
216
  let l = fe({}, o, t(o), {
217
217
  id: s
218
218
  });
@@ -234,15 +234,15 @@ function gn(e, t, n, r) {
234
234
  if (a == null)
235
235
  return null;
236
236
  let i = Oo(e);
237
- Wa(i);
237
+ Za(i);
238
238
  let s = null;
239
239
  for (let l = 0; s == null && l < i.length; ++l) {
240
- let c = ri(a);
241
- s = ti(i[l], c, r);
240
+ let c = oi(a);
241
+ s = ni(i[l], c, r);
242
242
  }
243
243
  return s;
244
244
  }
245
- function Ja(e, t) {
245
+ function Wa(e, t) {
246
246
  let {
247
247
  route: n,
248
248
  pathname: r,
@@ -274,7 +274,7 @@ function Oo(e, t, n, r) {
274
274
  "Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
275
275
  ), Oo(a.children, t, u, c)), !(a.path == null && !a.index) && t.push({
276
276
  path: c,
277
- score: Qa(c, a.index),
277
+ score: ei(c, a.index),
278
278
  routesMeta: u
279
279
  });
280
280
  };
@@ -283,28 +283,28 @@ function Oo(e, t, n, r) {
283
283
  if (a.path === "" || !((s = a.path) != null && s.includes("?")))
284
284
  o(a, i);
285
285
  else
286
- for (let l of Mo(a.path))
286
+ for (let l of Ao(a.path))
287
287
  o(a, i, l);
288
288
  }), t;
289
289
  }
290
- function Mo(e) {
290
+ function Ao(e) {
291
291
  let t = e.split("/");
292
292
  if (t.length === 0) return [];
293
293
  let [n, ...r] = t, o = n.endsWith("?"), a = n.replace(/\?$/, "");
294
294
  if (r.length === 0)
295
295
  return o ? [a, ""] : [a];
296
- let i = Mo(r.join("/")), s = [];
296
+ let i = Ao(r.join("/")), s = [];
297
297
  return s.push(...i.map((l) => l === "" ? a : [a, l].join("/"))), o && s.push(...i), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
298
298
  }
299
- function Wa(e) {
300
- e.sort((t, n) => t.score !== n.score ? n.score - t.score : ei(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
299
+ function Za(e) {
300
+ e.sort((t, n) => t.score !== n.score ? n.score - t.score : ti(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
301
301
  }
302
- const Za = /^:[\w-]+$/, qa = 3, Ka = 2, Ga = 1, Ya = 10, Xa = -2, Wr = (e) => e === "*";
303
- function Qa(e, t) {
302
+ const qa = /^:[\w-]+$/, Ka = 3, Ga = 2, Ya = 1, Xa = 10, Qa = -2, Wr = (e) => e === "*";
303
+ function ei(e, t) {
304
304
  let n = e.split("/"), r = n.length;
305
- return n.some(Wr) && (r += Xa), t && (r += Ka), n.filter((o) => !Wr(o)).reduce((o, a) => o + (Za.test(a) ? qa : a === "" ? Ga : Ya), r);
305
+ return n.some(Wr) && (r += Qa), t && (r += Ga), n.filter((o) => !Wr(o)).reduce((o, a) => o + (qa.test(a) ? Ka : a === "" ? Ya : Xa), r);
306
306
  }
307
- function ei(e, t) {
307
+ function ti(e, t) {
308
308
  return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
309
309
  // If two routes are siblings, we should try to match the earlier sibling
310
310
  // first. This allows people to have fine-grained control over the matching
@@ -317,7 +317,7 @@ function ei(e, t) {
317
317
  0
318
318
  );
319
319
  }
320
- function ti(e, t, n) {
320
+ function ni(e, t, n) {
321
321
  n === void 0 && (n = !1);
322
322
  let {
323
323
  routesMeta: r
@@ -338,7 +338,7 @@ function ti(e, t, n) {
338
338
  // TODO: Can this as be avoided?
339
339
  params: o,
340
340
  pathname: Xe([a, d.pathname]),
341
- pathnameBase: ii(Xe([a, d.pathnameBase])),
341
+ pathnameBase: si(Xe([a, d.pathnameBase])),
342
342
  route: h
343
343
  }), d.pathnameBase !== "/" && (a = Xe([a, d.pathnameBase]));
344
344
  }
@@ -350,7 +350,7 @@ function En(e, t) {
350
350
  caseSensitive: !1,
351
351
  end: !0
352
352
  });
353
- let [n, r] = ni(e.path, e.caseSensitive, e.end), o = t.match(n);
353
+ let [n, r] = ri(e.path, e.caseSensitive, e.end), o = t.match(n);
354
354
  if (!o) return null;
355
355
  let a = o[0], i = a.replace(/(.)\/+$/, "$1"), s = o.slice(1);
356
356
  return {
@@ -371,7 +371,7 @@ function En(e, t) {
371
371
  pattern: e
372
372
  };
373
373
  }
374
- function ni(e, t, n) {
374
+ function ri(e, t, n) {
375
375
  t === void 0 && (t = !1), n === void 0 && (n = !0), we(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
376
376
  let r = [], o = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (i, s, l) => (r.push({
377
377
  paramName: s,
@@ -381,7 +381,7 @@ function ni(e, t, n) {
381
381
  paramName: "*"
382
382
  }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, t ? void 0 : "i"), r];
383
383
  }
384
- function ri(e) {
384
+ function oi(e) {
385
385
  try {
386
386
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
387
387
  } catch (t) {
@@ -395,7 +395,7 @@ function Je(e, t) {
395
395
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
396
396
  return r && r !== "/" ? null : e.slice(n) || "/";
397
397
  }
398
- function oi(e, t) {
398
+ function ai(e, t) {
399
399
  t === void 0 && (t = "/");
400
400
  let {
401
401
  pathname: n,
@@ -403,12 +403,12 @@ function oi(e, t) {
403
403
  hash: o = ""
404
404
  } = typeof e == "string" ? dt(e) : e;
405
405
  return {
406
- pathname: n ? n.startsWith("/") ? n : ai(n, t) : t,
407
- search: si(r),
408
- hash: li(o)
406
+ pathname: n ? n.startsWith("/") ? n : ii(n, t) : t,
407
+ search: li(r),
408
+ hash: ci(o)
409
409
  };
410
410
  }
411
- function ai(e, t) {
411
+ function ii(e, t) {
412
412
  let n = t.replace(/\/+$/, "").split("/");
413
413
  return e.split("/").forEach((o) => {
414
414
  o === ".." ? n.length > 1 && n.pop() : o !== "." && n.push(o);
@@ -417,11 +417,11 @@ function ai(e, t) {
417
417
  function Kn(e, t, n, r) {
418
418
  return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
419
419
  }
420
- function Ao(e) {
420
+ function Mo(e) {
421
421
  return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
422
422
  }
423
423
  function Tn(e, t) {
424
- let n = Ao(e);
424
+ let n = Mo(e);
425
425
  return t ? n.map((r, o) => o === n.length - 1 ? r.pathname : r.pathnameBase) : n.map((r) => r.pathnameBase);
426
426
  }
427
427
  function Pn(e, t, n, r) {
@@ -441,10 +441,10 @@ function Pn(e, t, n, r) {
441
441
  }
442
442
  s = d >= 0 ? t[d] : "/";
443
443
  }
444
- let l = oi(o, s), c = i && i !== "/" && i.endsWith("/"), u = (a || i === ".") && n.endsWith("/");
444
+ let l = ai(o, s), c = i && i !== "/" && i.endsWith("/"), u = (a || i === ".") && n.endsWith("/");
445
445
  return !l.pathname.endsWith("/") && (c || u) && (l.pathname += "/"), l;
446
446
  }
447
- const Xe = (e) => e.join("/").replace(/\/\/+/g, "/"), ii = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), si = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, li = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
447
+ const Xe = (e) => e.join("/").replace(/\/\/+/g, "/"), si = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ci = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
448
448
  class Rn {
449
449
  constructor(t, n, r, o) {
450
450
  o === void 0 && (o = !1), this.status = t, this.statusText = n || "", this.internal = o, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
@@ -453,7 +453,7 @@ class Rn {
453
453
  function qt(e) {
454
454
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
455
455
  }
456
- const Do = ["post", "put", "patch", "delete"], ci = new Set(Do), ui = ["get", ...Do], di = new Set(ui), fi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), hi = /* @__PURE__ */ new Set([307, 308]), Gn = {
456
+ const Do = ["post", "put", "patch", "delete"], ui = new Set(Do), di = ["get", ...Do], fi = new Set(di), hi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), pi = /* @__PURE__ */ new Set([307, 308]), Gn = {
457
457
  state: "idle",
458
458
  location: void 0,
459
459
  formMethod: void 0,
@@ -462,7 +462,7 @@ const Do = ["post", "put", "patch", "delete"], ci = new Set(Do), ui = ["get", ..
462
462
  formData: void 0,
463
463
  json: void 0,
464
464
  text: void 0
465
- }, pi = {
465
+ }, mi = {
466
466
  state: "idle",
467
467
  data: void 0,
468
468
  formMethod: void 0,
@@ -476,10 +476,10 @@ const Do = ["post", "put", "patch", "delete"], ci = new Set(Do), ui = ["get", ..
476
476
  proceed: void 0,
477
477
  reset: void 0,
478
478
  location: void 0
479
- }, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, mi = (e) => ({
479
+ }, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, gi = (e) => ({
480
480
  hasErrorBoundary: !!e.hasErrorBoundary
481
481
  }), Fo = "remix-router-transitions";
482
- function gi(e) {
482
+ function vi(e) {
483
483
  const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
484
484
  I(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
485
485
  let o;
@@ -491,17 +491,17 @@ function gi(e) {
491
491
  hasErrorBoundary: f(g)
492
492
  });
493
493
  } else
494
- o = mi;
495
- let a = {}, i = Cn(e.routes, o, void 0, a), s, l = e.basename || "/", c = e.dataStrategy || bi, u = e.patchRoutesOnNavigation, d = fe({
494
+ o = gi;
495
+ let a = {}, i = Cn(e.routes, o, void 0, a), s, l = e.basename || "/", c = e.dataStrategy || Si, u = e.patchRoutesOnNavigation, d = fe({
496
496
  v7_fetcherPersist: !1,
497
497
  v7_normalizeFormMethod: !1,
498
498
  v7_partialHydration: !1,
499
499
  v7_prependBasename: !1,
500
500
  v7_relativeSplatPath: !1,
501
501
  v7_skipActionErrorRevalidation: !1
502
- }, e.future), h = null, y = /* @__PURE__ */ new Set(), m = null, p = null, v = null, k = e.hydrationData != null, b = mt(i, e.history.location, l), x = !1, _ = null;
502
+ }, e.future), h = null, y = /* @__PURE__ */ new Set(), m = null, p = null, v = null, x = e.hydrationData != null, b = mt(i, e.history.location, l), L = !1, _ = null;
503
503
  if (b == null && !u) {
504
- let f = Ae(404, {
504
+ let f = Me(404, {
505
505
  pathname: e.history.location.pathname
506
506
  }), {
507
507
  matches: g,
@@ -529,7 +529,7 @@ function gi(e) {
529
529
  N = e.hydrationData != null;
530
530
  else if (N = !1, b = [], d.v7_partialHydration) {
531
531
  let f = sn(null, i, e.history.location.pathname);
532
- f.active && f.matches && (x = !0, b = f.matches);
532
+ f.active && f.matches && (L = !0, b = f.matches);
533
533
  }
534
534
  let U, w = {
535
535
  historyAction: e.history.action,
@@ -546,7 +546,7 @@ function gi(e) {
546
546
  errors: e.hydrationData && e.hydrationData.errors || _,
547
547
  fetchers: /* @__PURE__ */ new Map(),
548
548
  blockers: /* @__PURE__ */ new Map()
549
- }, T = ye.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Te = [], Ze = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), ke = 0, Se = -1, be = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Map(), ft;
549
+ }, T = ye.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Te = [], Ze = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), xe = 0, Se = -1, be = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Map(), ft;
550
550
  function en() {
551
551
  if (h = e.history.listen((f) => {
552
552
  let {
@@ -559,20 +559,20 @@ function gi(e) {
559
559
  return;
560
560
  }
561
561
  we(Ce.size === 0 || R != null, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
562
- let L = Br({
562
+ let k = Br({
563
563
  currentLocation: w.location,
564
564
  nextLocation: S,
565
565
  historyAction: g
566
566
  });
567
- if (L && R != null) {
567
+ if (k && R != null) {
568
568
  let F = new Promise((H) => {
569
569
  ft = H;
570
570
  });
571
- e.history.go(R * -1), an(L, {
571
+ e.history.go(R * -1), an(k, {
572
572
  state: "blocked",
573
573
  location: S,
574
574
  proceed() {
575
- an(L, {
575
+ an(k, {
576
576
  state: "proceeding",
577
577
  proceed: void 0,
578
578
  reset: void 0,
@@ -581,7 +581,7 @@ function gi(e) {
581
581
  },
582
582
  reset() {
583
583
  let H = new Map(w.blockers);
584
- H.set(L, Ft), Ee({
584
+ H.set(k, Ft), Ee({
585
585
  blockers: H
586
586
  });
587
587
  }
@@ -590,8 +590,8 @@ function gi(e) {
590
590
  }
591
591
  return qe(g, S);
592
592
  }), n) {
593
- Ai(t, ee);
594
- let f = () => Di(t, ee);
593
+ Di(t, ee);
594
+ let f = () => Fi(t, ee);
595
595
  t.addEventListener("pagehide", f), te = () => t.removeEventListener("pagehide", f);
596
596
  }
597
597
  return w.initialized || qe(ye.Pop, w.location, {
@@ -607,25 +607,25 @@ function gi(e) {
607
607
  function Ee(f, g) {
608
608
  g === void 0 && (g = {}), w = fe({}, w, f);
609
609
  let S = [], R = [];
610
- d.v7_fetcherPersist && w.fetchers.forEach((L, F) => {
611
- L.state === "idle" && (pe.has(F) ? R.push(F) : S.push(F));
612
- }), pe.forEach((L) => {
613
- !w.fetchers.has(L) && !ce.has(L) && R.push(L);
614
- }), [...y].forEach((L) => L(w, {
610
+ d.v7_fetcherPersist && w.fetchers.forEach((k, F) => {
611
+ k.state === "idle" && (pe.has(F) ? R.push(F) : S.push(F));
612
+ }), pe.forEach((k) => {
613
+ !w.fetchers.has(k) && !ce.has(k) && R.push(k);
614
+ }), [...y].forEach((k) => k(w, {
615
615
  deletedFetchers: R,
616
616
  viewTransitionOpts: g.viewTransitionOpts,
617
617
  flushSync: g.flushSync === !0
618
- })), d.v7_fetcherPersist ? (S.forEach((L) => w.fetchers.delete(L)), R.forEach((L) => on(L))) : R.forEach((L) => pe.delete(L));
618
+ })), d.v7_fetcherPersist ? (S.forEach((k) => w.fetchers.delete(k)), R.forEach((k) => on(k))) : R.forEach((k) => pe.delete(k));
619
619
  }
620
620
  function et(f, g, S) {
621
- var R, L;
621
+ var R, k;
622
622
  let {
623
623
  flushSync: F
624
624
  } = S === void 0 ? {} : S, H = w.actionData != null && w.navigation.formMethod != null && ze(w.navigation.formMethod) && w.navigation.state === "loading" && ((R = f.state) == null ? void 0 : R._isRedirect) !== !0, O;
625
625
  g.actionData ? Object.keys(g.actionData).length > 0 ? O = g.actionData : O = null : H ? O = w.actionData : O = null;
626
- let A = g.loaderData ? to(w.loaderData, g.loaderData, g.matches || [], g.errors) : w.loaderData, P = w.blockers;
627
- P.size > 0 && (P = new Map(P), P.forEach((Y, xe) => P.set(xe, Ft)));
628
- let D = K === !0 || w.navigation.formMethod != null && ze(w.navigation.formMethod) && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0;
626
+ let M = g.loaderData ? to(w.loaderData, g.loaderData, g.matches || [], g.errors) : w.loaderData, P = w.blockers;
627
+ P.size > 0 && (P = new Map(P), P.forEach((Y, Le) => P.set(Le, Ft)));
628
+ let D = K === !0 || w.navigation.formMethod != null && ze(w.navigation.formMethod) && ((k = f.state) == null ? void 0 : k._isRedirect) !== !0;
629
629
  s && (i = s, s = void 0), he || T === ye.Pop || (T === ye.Push ? e.history.push(f, f.state) : T === ye.Replace && e.history.replace(f, f.state));
630
630
  let J;
631
631
  if (T === ye.Pop) {
@@ -646,7 +646,7 @@ function gi(e) {
646
646
  }
647
647
  Ee(fe({}, g, {
648
648
  actionData: O,
649
- loaderData: A,
649
+ loaderData: M,
650
650
  historyAction: T,
651
651
  location: f,
652
652
  initialized: !0,
@@ -667,12 +667,12 @@ function gi(e) {
667
667
  }
668
668
  let S = sr(w.location, w.matches, l, d.v7_prependBasename, f, d.v7_relativeSplatPath, g == null ? void 0 : g.fromRouteId, g == null ? void 0 : g.relative), {
669
669
  path: R,
670
- submission: L,
670
+ submission: k,
671
671
  error: F
672
672
  } = Zr(d.v7_normalizeFormMethod, !1, S, g), H = w.location, O = Zt(w.location, R, g && g.state);
673
673
  O = fe({}, O, e.history.encodeLocation(O));
674
- let A = g && g.replace != null ? g.replace : void 0, P = ye.Push;
675
- A === !0 ? P = ye.Replace : A === !1 || L != null && ze(L.formMethod) && L.formAction === w.location.pathname + w.location.search && (P = ye.Replace);
674
+ let M = g && g.replace != null ? g.replace : void 0, P = ye.Push;
675
+ M === !0 ? P = ye.Replace : M === !1 || k != null && ze(k.formMethod) && k.formAction === w.location.pathname + w.location.search && (P = ye.Replace);
676
676
  let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, Y = Br({
677
677
  currentLocation: H,
678
678
  nextLocation: O,
@@ -691,16 +691,16 @@ function gi(e) {
691
691
  }), nn(f, g);
692
692
  },
693
693
  reset() {
694
- let xe = new Map(w.blockers);
695
- xe.set(Y, Ft), Ee({
696
- blockers: xe
694
+ let Le = new Map(w.blockers);
695
+ Le.set(Y, Ft), Ee({
696
+ blockers: Le
697
697
  });
698
698
  }
699
699
  });
700
700
  return;
701
701
  }
702
702
  return await qe(P, O, {
703
- submission: L,
703
+ submission: k,
704
704
  // Send through the formData serialization error if we have one so we can
705
705
  // render at the right error boundary after we match routes
706
706
  pendingError: F,
@@ -728,12 +728,12 @@ function gi(e) {
728
728
  }
729
729
  }
730
730
  async function qe(f, g, S) {
731
- B && B.abort(), B = null, T = f, he = (S && S.startUninterruptedRevalidation) === !0, ka(w.location, w.matches), K = (S && S.preventScrollReset) === !0, ae = (S && S.enableViewTransition) === !0;
732
- let R = s || i, L = S && S.overrideNavigation, F = S != null && S.initialHydration && w.matches && w.matches.length > 0 && !x ? (
731
+ B && B.abort(), B = null, T = f, he = (S && S.startUninterruptedRevalidation) === !0, La(w.location, w.matches), K = (S && S.preventScrollReset) === !0, ae = (S && S.enableViewTransition) === !0;
732
+ let R = s || i, k = S && S.overrideNavigation, F = S != null && S.initialHydration && w.matches && w.matches.length > 0 && !L ? (
733
733
  // `matchRoutes()` has already been called if we're in here via `router.initialize()`
734
734
  w.matches
735
735
  ) : mt(R, g, l), H = (S && S.flushSync) === !0;
736
- if (F && w.initialized && !Oe && xi(w.location, g) && !(S && S.submission && ze(S.submission.formMethod))) {
736
+ if (F && w.initialized && !Oe && ki(w.location, g) && !(S && S.submission && ze(S.submission.formMethod))) {
737
737
  et(g, {
738
738
  matches: F
739
739
  }, {
@@ -760,14 +760,14 @@ function gi(e) {
760
760
  return;
761
761
  }
762
762
  B = new AbortController();
763
- let A = Rt(e.history, g, B.signal, S && S.submission), P;
763
+ let M = Rt(e.history, g, B.signal, S && S.submission), P;
764
764
  if (S && S.pendingError)
765
765
  P = [gt(F).route.id, {
766
766
  type: oe.error,
767
767
  error: S.pendingError
768
768
  }];
769
769
  else if (S && S.submission && ze(S.submission.formMethod)) {
770
- let le = await j(A, g, S.submission, F, O.active, {
770
+ let le = await j(M, g, S.submission, F, O.active, {
771
771
  replace: S.replace,
772
772
  flushSync: H
773
773
  });
@@ -786,29 +786,29 @@ function gi(e) {
786
786
  return;
787
787
  }
788
788
  }
789
- F = le.matches || F, P = le.pendingActionResult, L = Yn(g, S.submission), H = !1, O.active = !1, A = Rt(e.history, A.url, A.signal);
789
+ F = le.matches || F, P = le.pendingActionResult, k = Yn(g, S.submission), H = !1, O.active = !1, M = Rt(e.history, M.url, M.signal);
790
790
  }
791
791
  let {
792
792
  shortCircuited: D,
793
793
  matches: J,
794
794
  loaderData: Y,
795
- errors: xe
796
- } = await V(A, g, F, O.active, L, S && S.submission, S && S.fetcherSubmission, S && S.replace, S && S.initialHydration === !0, H, P);
795
+ errors: Le
796
+ } = await V(M, g, F, O.active, k, S && S.submission, S && S.fetcherSubmission, S && S.replace, S && S.initialHydration === !0, H, P);
797
797
  D || (B = null, et(g, fe({
798
798
  matches: J || F
799
799
  }, no(P), {
800
800
  loaderData: Y,
801
- errors: xe
801
+ errors: Le
802
802
  })));
803
803
  }
804
- async function j(f, g, S, R, L, F) {
804
+ async function j(f, g, S, R, k, F) {
805
805
  F === void 0 && (F = {}), ht();
806
- let H = Oi(g, S);
806
+ let H = Ai(g, S);
807
807
  if (Ee({
808
808
  navigation: H
809
809
  }, {
810
810
  flushSync: F.flushSync === !0
811
- }), L) {
811
+ }), k) {
812
812
  let P = await ln(R, g.pathname, f.signal);
813
813
  if (P.type === "aborted")
814
814
  return {
@@ -840,17 +840,17 @@ function gi(e) {
840
840
  };
841
841
  }
842
842
  }
843
- let O, A = $t(R, g);
844
- if (!A.route.action && !A.route.lazy)
843
+ let O, M = $t(R, g);
844
+ if (!M.route.action && !M.route.lazy)
845
845
  O = {
846
846
  type: oe.error,
847
- error: Ae(405, {
847
+ error: Me(405, {
848
848
  method: f.method,
849
849
  pathname: g.pathname,
850
- routeId: A.route.id
850
+ routeId: M.route.id
851
851
  })
852
852
  };
853
- else if (O = (await ue("action", w, f, [A], R, null))[A.route.id], f.signal.aborted)
853
+ else if (O = (await ue("action", w, f, [M], R, null))[M.route.id], f.signal.aborted)
854
854
  return {
855
855
  shortCircuited: !0
856
856
  };
@@ -864,11 +864,11 @@ function gi(e) {
864
864
  };
865
865
  }
866
866
  if (lt(O))
867
- throw Ae(400, {
867
+ throw Me(400, {
868
868
  type: "defer-action"
869
869
  });
870
870
  if (Ie(O)) {
871
- let P = gt(R, A.route.id);
871
+ let P = gt(R, M.route.id);
872
872
  return (F && F.replace) !== !0 && (T = ye.Push), {
873
873
  matches: R,
874
874
  pendingActionResult: [P.route.id, O]
@@ -876,13 +876,13 @@ function gi(e) {
876
876
  }
877
877
  return {
878
878
  matches: R,
879
- pendingActionResult: [A.route.id, O]
879
+ pendingActionResult: [M.route.id, O]
880
880
  };
881
881
  }
882
- async function V(f, g, S, R, L, F, H, O, A, P, D) {
883
- let J = L || Yn(g, F), Y = F || H || ao(J), xe = !he && (!d.v7_partialHydration || !A);
882
+ async function V(f, g, S, R, k, F, H, O, M, P, D) {
883
+ let J = k || Yn(g, F), Y = F || H || ao(J), Le = !he && (!d.v7_partialHydration || !M);
884
884
  if (R) {
885
- if (xe) {
885
+ if (Le) {
886
886
  let ge = ne(D);
887
887
  Ee(fe({
888
888
  navigation: J
@@ -923,8 +923,8 @@ function gi(e) {
923
923
  };
924
924
  }
925
925
  }
926
- let le = s || i, [Q, me] = Kr(e.history, w, S, Y, g, d.v7_partialHydration && A === !0, d.v7_skipActionErrorRevalidation, Oe, Te, Ze, pe, He, Pe, le, l, D);
927
- if (Wn((X) => !(S && S.some((ge) => ge.route.id === X)) || Q && Q.some((ge) => ge.route.id === X)), Se = ++ke, Q.length === 0 && me.length === 0) {
926
+ let le = s || i, [Q, me] = Kr(e.history, w, S, Y, g, d.v7_partialHydration && M === !0, d.v7_skipActionErrorRevalidation, Oe, Te, Ze, pe, He, Pe, le, l, D);
927
+ if (Wn((X) => !(S && S.some((ge) => ge.route.id === X)) || Q && Q.some((ge) => ge.route.id === X)), Se = ++xe, Q.length === 0 && me.length === 0) {
928
928
  let X = Dr();
929
929
  return et(g, fe({
930
930
  matches: S,
@@ -941,7 +941,7 @@ function gi(e) {
941
941
  shortCircuited: !0
942
942
  };
943
943
  }
944
- if (xe) {
944
+ if (Le) {
945
945
  let X = {};
946
946
  if (!R) {
947
947
  X.navigation = J;
@@ -958,7 +958,7 @@ function gi(e) {
958
958
  let St = () => me.forEach((X) => ot(X.key));
959
959
  B && B.signal.addEventListener("abort", St);
960
960
  let {
961
- loaderResults: Mt,
961
+ loaderResults: At,
962
962
  fetcherResults: rt
963
963
  } = await tt(w, S, Q, me, f);
964
964
  if (f.signal.aborted)
@@ -966,7 +966,7 @@ function gi(e) {
966
966
  shortCircuited: !0
967
967
  };
968
968
  B && B.signal.removeEventListener("abort", St), me.forEach((X) => ce.delete(X.key));
969
- let Ge = dn(Mt);
969
+ let Ge = dn(At);
970
970
  if (Ge)
971
971
  return await q(f, Ge.result, !0, {
972
972
  replace: O
@@ -981,18 +981,18 @@ function gi(e) {
981
981
  };
982
982
  let {
983
983
  loaderData: Zn,
984
- errors: At
985
- } = eo(w, S, Mt, D, me, rt, Me);
986
- Me.forEach((X, ge) => {
984
+ errors: Mt
985
+ } = eo(w, S, At, D, me, rt, Ae);
986
+ Ae.forEach((X, ge) => {
987
987
  X.subscribe((Ct) => {
988
- (Ct || X.done) && Me.delete(ge);
988
+ (Ct || X.done) && Ae.delete(ge);
989
989
  });
990
- }), d.v7_partialHydration && A && w.errors && (At = fe({}, w.errors, At));
990
+ }), d.v7_partialHydration && M && w.errors && (Mt = fe({}, w.errors, Mt));
991
991
  let pt = Dr(), cn = Fr(Se), un = pt || cn || me.length > 0;
992
992
  return fe({
993
993
  matches: S,
994
994
  loaderData: Zn,
995
- errors: At
995
+ errors: Mt
996
996
  }, un ? {
997
997
  fetchers: new Map(w.fetchers)
998
998
  } : {});
@@ -1015,12 +1015,12 @@ function gi(e) {
1015
1015
  if (r)
1016
1016
  throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
1017
1017
  ot(f);
1018
- let L = (R && R.flushSync) === !0, F = s || i, H = sr(w.location, w.matches, l, d.v7_prependBasename, S, d.v7_relativeSplatPath, g, R == null ? void 0 : R.relative), O = mt(F, H, l), A = sn(O, F, H);
1019
- if (A.active && A.matches && (O = A.matches), !O) {
1020
- nt(f, g, Ae(404, {
1018
+ let k = (R && R.flushSync) === !0, F = s || i, H = sr(w.location, w.matches, l, d.v7_prependBasename, S, d.v7_relativeSplatPath, g, R == null ? void 0 : R.relative), O = mt(F, H, l), M = sn(O, F, H);
1019
+ if (M.active && M.matches && (O = M.matches), !O) {
1020
+ nt(f, g, Me(404, {
1021
1021
  pathname: H
1022
1022
  }), {
1023
- flushSync: L
1023
+ flushSync: k
1024
1024
  });
1025
1025
  return;
1026
1026
  }
@@ -1031,26 +1031,26 @@ function gi(e) {
1031
1031
  } = Zr(d.v7_normalizeFormMethod, !0, H, R);
1032
1032
  if (J) {
1033
1033
  nt(f, g, J, {
1034
- flushSync: L
1034
+ flushSync: k
1035
1035
  });
1036
1036
  return;
1037
1037
  }
1038
- let Y = $t(O, P), xe = (R && R.preventScrollReset) === !0;
1038
+ let Y = $t(O, P), Le = (R && R.preventScrollReset) === !0;
1039
1039
  if (D && ze(D.formMethod)) {
1040
- W(f, g, P, Y, O, A.active, L, xe, D);
1040
+ W(f, g, P, Y, O, M.active, k, Le, D);
1041
1041
  return;
1042
1042
  }
1043
1043
  He.set(f, {
1044
1044
  routeId: g,
1045
1045
  path: P
1046
- }), re(f, g, P, Y, O, A.active, L, xe, D);
1046
+ }), re(f, g, P, Y, O, M.active, k, Le, D);
1047
1047
  }
1048
- async function W(f, g, S, R, L, F, H, O, A) {
1048
+ async function W(f, g, S, R, k, F, H, O, M) {
1049
1049
  ht(), He.delete(f);
1050
1050
  function P(ve) {
1051
1051
  if (!ve.route.action && !ve.route.lazy) {
1052
- let Et = Ae(405, {
1053
- method: A.formMethod,
1052
+ let Et = Me(405, {
1053
+ method: M.formMethod,
1054
1054
  pathname: S,
1055
1055
  routeId: g
1056
1056
  });
@@ -1063,12 +1063,12 @@ function gi(e) {
1063
1063
  if (!F && P(R))
1064
1064
  return;
1065
1065
  let D = w.fetchers.get(f);
1066
- Ke(f, Mi(A, D), {
1066
+ Ke(f, Mi(M, D), {
1067
1067
  flushSync: H
1068
1068
  });
1069
- let J = new AbortController(), Y = Rt(e.history, S, J.signal, A);
1069
+ let J = new AbortController(), Y = Rt(e.history, S, J.signal, M);
1070
1070
  if (F) {
1071
- let ve = await ln(L, new URL(Y.url).pathname, Y.signal, f);
1071
+ let ve = await ln(k, new URL(Y.url).pathname, Y.signal, f);
1072
1072
  if (ve.type === "aborted")
1073
1073
  return;
1074
1074
  if (ve.type === "error") {
@@ -1077,10 +1077,10 @@ function gi(e) {
1077
1077
  });
1078
1078
  return;
1079
1079
  } else if (ve.matches) {
1080
- if (L = ve.matches, R = $t(L, S), P(R))
1080
+ if (k = ve.matches, R = $t(k, S), P(R))
1081
1081
  return;
1082
1082
  } else {
1083
- nt(f, g, Ae(404, {
1083
+ nt(f, g, Me(404, {
1084
1084
  pathname: S
1085
1085
  }), {
1086
1086
  flushSync: H
@@ -1089,7 +1089,7 @@ function gi(e) {
1089
1089
  }
1090
1090
  }
1091
1091
  ce.set(f, J);
1092
- let xe = ke, Q = (await ue("action", w, Y, [R], L, f))[R.route.id];
1092
+ let Le = xe, Q = (await ue("action", w, Y, [R], k, f))[R.route.id];
1093
1093
  if (Y.signal.aborted) {
1094
1094
  ce.get(f) === J && ce.delete(f);
1095
1095
  return;
@@ -1101,12 +1101,12 @@ function gi(e) {
1101
1101
  }
1102
1102
  } else {
1103
1103
  if (vt(Q))
1104
- if (ce.delete(f), Se > xe) {
1104
+ if (ce.delete(f), Se > Le) {
1105
1105
  Ke(f, at(void 0));
1106
1106
  return;
1107
1107
  } else
1108
- return Pe.add(f), Ke(f, It(A)), q(Y, Q, !1, {
1109
- fetcherSubmission: A,
1108
+ return Pe.add(f), Ke(f, It(M)), q(Y, Q, !1, {
1109
+ fetcherSubmission: M,
1110
1110
  preventScrollReset: O
1111
1111
  });
1112
1112
  if (Ie(Q)) {
@@ -1115,19 +1115,19 @@ function gi(e) {
1115
1115
  }
1116
1116
  }
1117
1117
  if (lt(Q))
1118
- throw Ae(400, {
1118
+ throw Me(400, {
1119
1119
  type: "defer-action"
1120
1120
  });
1121
- let me = w.navigation.location || w.location, St = Rt(e.history, me, J.signal), Mt = s || i, rt = w.navigation.state !== "idle" ? mt(Mt, w.navigation.location, l) : w.matches;
1121
+ let me = w.navigation.location || w.location, St = Rt(e.history, me, J.signal), At = s || i, rt = w.navigation.state !== "idle" ? mt(At, w.navigation.location, l) : w.matches;
1122
1122
  I(rt, "Didn't find any matches after fetcher action");
1123
- let Ge = ++ke;
1123
+ let Ge = ++xe;
1124
1124
  be.set(f, Ge);
1125
- let Zn = It(A, Q.data);
1125
+ let Zn = It(M, Q.data);
1126
1126
  w.fetchers.set(f, Zn);
1127
- let [At, pt] = Kr(e.history, w, rt, A, me, !1, d.v7_skipActionErrorRevalidation, Oe, Te, Ze, pe, He, Pe, Mt, l, [R.route.id, Q]);
1127
+ let [Mt, pt] = Kr(e.history, w, rt, M, me, !1, d.v7_skipActionErrorRevalidation, Oe, Te, Ze, pe, He, Pe, At, l, [R.route.id, Q]);
1128
1128
  pt.filter((ve) => ve.key !== f).forEach((ve) => {
1129
- let Et = ve.key, Vr = w.fetchers.get(Et), Na = It(void 0, Vr ? Vr.data : void 0);
1130
- w.fetchers.set(Et, Na), ot(Et), ve.controller && ce.set(Et, ve.controller);
1129
+ let Et = ve.key, Vr = w.fetchers.get(Et), _a = It(void 0, Vr ? Vr.data : void 0);
1130
+ w.fetchers.set(Et, _a), ot(Et), ve.controller && ce.set(Et, ve.controller);
1131
1131
  }), Ee({
1132
1132
  fetchers: new Map(w.fetchers)
1133
1133
  });
@@ -1136,7 +1136,7 @@ function gi(e) {
1136
1136
  let {
1137
1137
  loaderResults: un,
1138
1138
  fetcherResults: X
1139
- } = await tt(w, rt, At, pt, St);
1139
+ } = await tt(w, rt, Mt, pt, St);
1140
1140
  if (J.signal.aborted)
1141
1141
  return;
1142
1142
  J.signal.removeEventListener("abort", cn), be.delete(f), ce.delete(f), pt.forEach((ve) => ce.delete(ve.key));
@@ -1152,7 +1152,7 @@ function gi(e) {
1152
1152
  let {
1153
1153
  loaderData: Ct,
1154
1154
  errors: Dt
1155
- } = eo(w, rt, un, void 0, pt, X, Me);
1155
+ } = eo(w, rt, un, void 0, pt, X, Ae);
1156
1156
  if (w.fetchers.has(f)) {
1157
1157
  let ve = at(Q.data);
1158
1158
  w.fetchers.set(f, ve);
@@ -1168,14 +1168,14 @@ function gi(e) {
1168
1168
  fetchers: new Map(w.fetchers)
1169
1169
  }), Oe = !1);
1170
1170
  }
1171
- async function re(f, g, S, R, L, F, H, O, A) {
1171
+ async function re(f, g, S, R, k, F, H, O, M) {
1172
1172
  let P = w.fetchers.get(f);
1173
- Ke(f, It(A, P ? P.data : void 0), {
1173
+ Ke(f, It(M, P ? P.data : void 0), {
1174
1174
  flushSync: H
1175
1175
  });
1176
1176
  let D = new AbortController(), J = Rt(e.history, S, D.signal);
1177
1177
  if (F) {
1178
- let Q = await ln(L, new URL(J.url).pathname, J.signal, f);
1178
+ let Q = await ln(k, new URL(J.url).pathname, J.signal, f);
1179
1179
  if (Q.type === "aborted")
1180
1180
  return;
1181
1181
  if (Q.type === "error") {
@@ -1184,9 +1184,9 @@ function gi(e) {
1184
1184
  });
1185
1185
  return;
1186
1186
  } else if (Q.matches)
1187
- L = Q.matches, R = $t(L, S);
1187
+ k = Q.matches, R = $t(k, S);
1188
1188
  else {
1189
- nt(f, g, Ae(404, {
1189
+ nt(f, g, Me(404, {
1190
1190
  pathname: S
1191
1191
  }), {
1192
1192
  flushSync: H
@@ -1195,7 +1195,7 @@ function gi(e) {
1195
1195
  }
1196
1196
  }
1197
1197
  ce.set(f, D);
1198
- let Y = ke, le = (await ue("loader", w, J, [R], L, f))[R.route.id];
1198
+ let Y = xe, le = (await ue("loader", w, J, [R], k, f))[R.route.id];
1199
1199
  if (lt(le) && (le = await Er(le, J.signal, !0) || le), ce.get(f) === D && ce.delete(f), !J.signal.aborted) {
1200
1200
  if (pe.has(f)) {
1201
1201
  Ke(f, at(void 0));
@@ -1220,29 +1220,29 @@ function gi(e) {
1220
1220
  }
1221
1221
  async function q(f, g, S, R) {
1222
1222
  let {
1223
- submission: L,
1223
+ submission: k,
1224
1224
  fetcherSubmission: F,
1225
1225
  preventScrollReset: H,
1226
1226
  replace: O
1227
1227
  } = R === void 0 ? {} : R;
1228
1228
  g.response.headers.has("X-Remix-Revalidate") && (Oe = !0);
1229
- let A = g.response.headers.get("Location");
1230
- I(A, "Expected a Location header on the redirect Response"), A = Xr(A, new URL(f.url), l);
1231
- let P = Zt(w.location, A, {
1229
+ let M = g.response.headers.get("Location");
1230
+ I(M, "Expected a Location header on the redirect Response"), M = Xr(M, new URL(f.url), l);
1231
+ let P = Zt(w.location, M, {
1232
1232
  _isRedirect: !0
1233
1233
  });
1234
1234
  if (n) {
1235
1235
  let Q = !1;
1236
1236
  if (g.response.headers.has("X-Remix-Reload-Document"))
1237
1237
  Q = !0;
1238
- else if (Cr.test(A)) {
1239
- const me = e.history.createURL(A);
1238
+ else if (Cr.test(M)) {
1239
+ const me = e.history.createURL(M);
1240
1240
  Q = // Hard reload if it's an absolute URL to a new origin
1241
1241
  me.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
1242
1242
  Je(me.pathname, l) == null;
1243
1243
  }
1244
1244
  if (Q) {
1245
- O ? t.location.replace(A) : t.location.assign(A);
1245
+ O ? t.location.replace(M) : t.location.assign(M);
1246
1246
  return;
1247
1247
  }
1248
1248
  }
@@ -1250,21 +1250,21 @@ function gi(e) {
1250
1250
  let D = O === !0 || g.response.headers.has("X-Remix-Replace") ? ye.Replace : ye.Push, {
1251
1251
  formMethod: J,
1252
1252
  formAction: Y,
1253
- formEncType: xe
1253
+ formEncType: Le
1254
1254
  } = w.navigation;
1255
- !L && !F && J && Y && xe && (L = ao(w.navigation));
1256
- let le = L || F;
1257
- if (hi.has(g.response.status) && le && ze(le.formMethod))
1255
+ !k && !F && J && Y && Le && (k = ao(w.navigation));
1256
+ let le = k || F;
1257
+ if (pi.has(g.response.status) && le && ze(le.formMethod))
1258
1258
  await qe(D, P, {
1259
1259
  submission: fe({}, le, {
1260
- formAction: A
1260
+ formAction: M
1261
1261
  }),
1262
1262
  // Preserve these flags across redirects
1263
1263
  preventScrollReset: H || K,
1264
1264
  enableViewTransition: S ? ae : void 0
1265
1265
  });
1266
1266
  else {
1267
- let Q = Yn(P, L);
1267
+ let Q = Yn(P, k);
1268
1268
  await qe(D, P, {
1269
1269
  overrideNavigation: Q,
1270
1270
  // Send fetcher submissions through for shouldRevalidate
@@ -1275,31 +1275,31 @@ function gi(e) {
1275
1275
  });
1276
1276
  }
1277
1277
  }
1278
- async function ue(f, g, S, R, L, F) {
1278
+ async function ue(f, g, S, R, k, F) {
1279
1279
  let H, O = {};
1280
1280
  try {
1281
- H = await Si(c, f, g, S, R, L, F, a, o);
1282
- } catch (A) {
1281
+ H = await Ci(c, f, g, S, R, k, F, a, o);
1282
+ } catch (M) {
1283
1283
  return R.forEach((P) => {
1284
1284
  O[P.route.id] = {
1285
1285
  type: oe.error,
1286
- error: A
1286
+ error: M
1287
1287
  };
1288
1288
  }), O;
1289
1289
  }
1290
- for (let [A, P] of Object.entries(H))
1291
- if (Li(P)) {
1290
+ for (let [M, P] of Object.entries(H))
1291
+ if (Ni(P)) {
1292
1292
  let D = P.result;
1293
- O[A] = {
1293
+ O[M] = {
1294
1294
  type: oe.redirect,
1295
- response: Ri(D, S, A, L, l, d.v7_relativeSplatPath)
1295
+ response: xi(D, S, M, k, l, d.v7_relativeSplatPath)
1296
1296
  };
1297
1297
  } else
1298
- O[A] = await Ei(P);
1298
+ O[M] = await Ri(P);
1299
1299
  return O;
1300
1300
  }
1301
- async function tt(f, g, S, R, L) {
1302
- let F = f.matches, H = ue("loader", f, L, S, g, null), O = Promise.all(R.map(async (D) => {
1301
+ async function tt(f, g, S, R, k) {
1302
+ let F = f.matches, H = ue("loader", f, k, S, g, null), O = Promise.all(R.map(async (D) => {
1303
1303
  if (D.matches && D.match && D.controller) {
1304
1304
  let Y = (await ue("loader", f, Rt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
1305
1305
  return {
@@ -1309,14 +1309,14 @@ function gi(e) {
1309
1309
  return Promise.resolve({
1310
1310
  [D.key]: {
1311
1311
  type: oe.error,
1312
- error: Ae(404, {
1312
+ error: Me(404, {
1313
1313
  pathname: D.path
1314
1314
  })
1315
1315
  }
1316
1316
  });
1317
- })), A = await H, P = (await O).reduce((D, J) => Object.assign(D, J), {});
1318
- return await Promise.all([Ti(g, A, L.signal, F, f.loaderData), Pi(g, P, R)]), {
1319
- loaderResults: A,
1317
+ })), M = await H, P = (await O).reduce((D, J) => Object.assign(D, J), {});
1318
+ return await Promise.all([Pi(g, M, k.signal, F, f.loaderData), Oi(g, P, R)]), {
1319
+ loaderResults: M,
1320
1320
  fetcherResults: P
1321
1321
  };
1322
1322
  }
@@ -1334,24 +1334,24 @@ function gi(e) {
1334
1334
  }
1335
1335
  function nt(f, g, S, R) {
1336
1336
  R === void 0 && (R = {});
1337
- let L = gt(w.matches, g);
1337
+ let k = gt(w.matches, g);
1338
1338
  on(f), Ee({
1339
1339
  errors: {
1340
- [L.route.id]: S
1340
+ [k.route.id]: S
1341
1341
  },
1342
1342
  fetchers: new Map(w.fetchers)
1343
1343
  }, {
1344
1344
  flushSync: (R && R.flushSync) === !0
1345
1345
  });
1346
1346
  }
1347
- function Mr(f) {
1348
- return ie.set(f, (ie.get(f) || 0) + 1), pe.has(f) && pe.delete(f), w.fetchers.get(f) || pi;
1347
+ function Ar(f) {
1348
+ return ie.set(f, (ie.get(f) || 0) + 1), pe.has(f) && pe.delete(f), w.fetchers.get(f) || mi;
1349
1349
  }
1350
1350
  function on(f) {
1351
1351
  let g = w.fetchers.get(f);
1352
1352
  ce.has(f) && !(g && g.state === "loading" && be.has(f)) && ot(f), He.delete(f), be.delete(f), Pe.delete(f), d.v7_fetcherPersist && pe.delete(f), Ze.delete(f), w.fetchers.delete(f);
1353
1353
  }
1354
- function Ca(f) {
1354
+ function Ea(f) {
1355
1355
  let g = (ie.get(f) || 0) - 1;
1356
1356
  g <= 0 ? (ie.delete(f), pe.add(f), d.v7_fetcherPersist || on(f)) : ie.set(f, g), Ee({
1357
1357
  fetchers: new Map(w.fetchers)
@@ -1361,9 +1361,9 @@ function gi(e) {
1361
1361
  let g = ce.get(f);
1362
1362
  g && (g.abort(), ce.delete(f));
1363
1363
  }
1364
- function Ar(f) {
1364
+ function Mr(f) {
1365
1365
  for (let g of f) {
1366
- let S = Mr(g), R = at(S.data);
1366
+ let S = Ar(g), R = at(S.data);
1367
1367
  w.fetchers.set(g, R);
1368
1368
  }
1369
1369
  }
@@ -1373,18 +1373,18 @@ function gi(e) {
1373
1373
  let R = w.fetchers.get(S);
1374
1374
  I(R, "Expected fetcher: " + S), R.state === "loading" && (Pe.delete(S), f.push(S), g = !0);
1375
1375
  }
1376
- return Ar(f), g;
1376
+ return Mr(f), g;
1377
1377
  }
1378
1378
  function Fr(f) {
1379
1379
  let g = [];
1380
1380
  for (let [S, R] of be)
1381
1381
  if (R < f) {
1382
- let L = w.fetchers.get(S);
1383
- I(L, "Expected fetcher: " + S), L.state === "loading" && (ot(S), be.delete(S), g.push(S));
1382
+ let k = w.fetchers.get(S);
1383
+ I(k, "Expected fetcher: " + S), k.state === "loading" && (ot(S), be.delete(S), g.push(S));
1384
1384
  }
1385
- return Ar(g), g.length > 0;
1385
+ return Mr(g), g.length > 0;
1386
1386
  }
1387
- function Ea(f, g) {
1387
+ function Ra(f, g) {
1388
1388
  let S = w.blockers.get(f) || Ft;
1389
1389
  return Ce.get(f) !== g && Ce.set(f, g), S;
1390
1390
  }
@@ -1408,7 +1408,7 @@ function gi(e) {
1408
1408
  if (Ce.size === 0)
1409
1409
  return;
1410
1410
  Ce.size > 1 && we(!1, "A router only supports one blocker at a time");
1411
- let L = Array.from(Ce.entries()), [F, H] = L[L.length - 1], O = w.blockers.get(F);
1411
+ let k = Array.from(Ce.entries()), [F, H] = k[k.length - 1], O = w.blockers.get(F);
1412
1412
  if (!(O && O.state === "proceeding") && H({
1413
1413
  currentLocation: g,
1414
1414
  nextLocation: S,
@@ -1417,27 +1417,27 @@ function gi(e) {
1417
1417
  return F;
1418
1418
  }
1419
1419
  function Jn(f) {
1420
- let g = Ae(404, {
1420
+ let g = Me(404, {
1421
1421
  pathname: f
1422
1422
  }), S = s || i, {
1423
1423
  matches: R,
1424
- route: L
1424
+ route: k
1425
1425
  } = ro(S);
1426
1426
  return Wn(), {
1427
1427
  notFoundMatches: R,
1428
- route: L,
1428
+ route: k,
1429
1429
  error: g
1430
1430
  };
1431
1431
  }
1432
1432
  function Wn(f) {
1433
1433
  let g = [];
1434
- return Me.forEach((S, R) => {
1435
- (!f || f(R)) && (S.cancel(), g.push(R), Me.delete(R));
1434
+ return Ae.forEach((S, R) => {
1435
+ (!f || f(R)) && (S.cancel(), g.push(R), Ae.delete(R));
1436
1436
  }), g;
1437
1437
  }
1438
- function Ra(f, g, S) {
1439
- if (m = f, v = g, p = S || null, !k && w.navigation === Gn) {
1440
- k = !0;
1438
+ function xa(f, g, S) {
1439
+ if (m = f, v = g, p = S || null, !x && w.navigation === Gn) {
1440
+ x = !0;
1441
1441
  let R = Ur(w.location, w.matches);
1442
1442
  R != null && Ee({
1443
1443
  restoreScrollPosition: R
@@ -1448,9 +1448,9 @@ function gi(e) {
1448
1448
  };
1449
1449
  }
1450
1450
  function Hr(f, g) {
1451
- return p && p(f, g.map((R) => Ja(R, w.loaderData))) || f.key;
1451
+ return p && p(f, g.map((R) => Wa(R, w.loaderData))) || f.key;
1452
1452
  }
1453
- function ka(f, g) {
1453
+ function La(f, g) {
1454
1454
  if (m && v) {
1455
1455
  let S = Hr(f, g);
1456
1456
  m[S] = v();
@@ -1488,14 +1488,14 @@ function gi(e) {
1488
1488
  type: "success",
1489
1489
  matches: f
1490
1490
  };
1491
- let L = f;
1491
+ let k = f;
1492
1492
  for (; ; ) {
1493
1493
  let F = s == null, H = s || i, O = a;
1494
1494
  try {
1495
1495
  await u({
1496
1496
  signal: S,
1497
1497
  path: g,
1498
- matches: L,
1498
+ matches: k,
1499
1499
  fetcherKey: R,
1500
1500
  patch: (D, J) => {
1501
1501
  S.aborted || Yr(D, J, H, O, o);
@@ -1505,7 +1505,7 @@ function gi(e) {
1505
1505
  return {
1506
1506
  type: "error",
1507
1507
  error: D,
1508
- partialMatches: L
1508
+ partialMatches: k
1509
1509
  };
1510
1510
  } finally {
1511
1511
  F && !S.aborted && (i = [...i]);
@@ -1514,25 +1514,25 @@ function gi(e) {
1514
1514
  return {
1515
1515
  type: "aborted"
1516
1516
  };
1517
- let A = mt(H, g, l);
1518
- if (A)
1517
+ let M = mt(H, g, l);
1518
+ if (M)
1519
1519
  return {
1520
1520
  type: "success",
1521
- matches: A
1521
+ matches: M
1522
1522
  };
1523
1523
  let P = gn(H, g, l, !0);
1524
- if (!P || L.length === P.length && L.every((D, J) => D.route.id === P[J].route.id))
1524
+ if (!P || k.length === P.length && k.every((D, J) => D.route.id === P[J].route.id))
1525
1525
  return {
1526
1526
  type: "success",
1527
1527
  matches: null
1528
1528
  };
1529
- L = P;
1529
+ k = P;
1530
1530
  }
1531
1531
  }
1532
- function xa(f) {
1532
+ function ka(f) {
1533
1533
  a = {}, s = Cn(f, o, void 0, a);
1534
1534
  }
1535
- function La(f, g) {
1535
+ function Na(f, g) {
1536
1536
  let S = s == null;
1537
1537
  Yr(f, g, s || i, a, o), S && (i = [...i], Ee({}));
1538
1538
  }
@@ -1554,7 +1554,7 @@ function gi(e) {
1554
1554
  },
1555
1555
  initialize: en,
1556
1556
  subscribe: tn,
1557
- enableScrollRestoration: Ra,
1557
+ enableScrollRestoration: xa,
1558
1558
  navigate: nn,
1559
1559
  fetch: G,
1560
1560
  revalidate: rn,
@@ -1562,20 +1562,20 @@ function gi(e) {
1562
1562
  // hash-aware URLs in DOM paths
1563
1563
  createHref: (f) => e.history.createHref(f),
1564
1564
  encodeLocation: (f) => e.history.encodeLocation(f),
1565
- getFetcher: Mr,
1566
- deleteFetcher: Ca,
1565
+ getFetcher: Ar,
1566
+ deleteFetcher: Ea,
1567
1567
  dispose: zn,
1568
- getBlocker: Ea,
1568
+ getBlocker: Ra,
1569
1569
  deleteBlocker: Ir,
1570
- patchRoutes: La,
1570
+ patchRoutes: Na,
1571
1571
  _internalFetchControllers: ce,
1572
- _internalActiveDeferreds: Me,
1572
+ _internalActiveDeferreds: Ae,
1573
1573
  // TODO: Remove setRoutes, it's temporary to avoid dealing with
1574
1574
  // updating the tree while validating the update algorithm.
1575
- _internalSetRoutes: xa
1575
+ _internalSetRoutes: ka
1576
1576
  }, U;
1577
1577
  }
1578
- function vi(e) {
1578
+ function yi(e) {
1579
1579
  return e != null && ("formData" in e && e.formData != null || "body" in e && e.body !== void 0);
1580
1580
  }
1581
1581
  function sr(e, t, n, r, o, a, i, s) {
@@ -1604,20 +1604,20 @@ function sr(e, t, n, r, o, a, i, s) {
1604
1604
  return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Xe([n, u.pathname])), ct(u);
1605
1605
  }
1606
1606
  function Zr(e, t, n, r) {
1607
- if (!r || !vi(r))
1607
+ if (!r || !yi(r))
1608
1608
  return {
1609
1609
  path: n
1610
1610
  };
1611
- if (r.formMethod && !_i(r.formMethod))
1611
+ if (r.formMethod && !Ti(r.formMethod))
1612
1612
  return {
1613
1613
  path: n,
1614
- error: Ae(405, {
1614
+ error: Me(405, {
1615
1615
  method: r.formMethod
1616
1616
  })
1617
1617
  };
1618
1618
  let o = () => ({
1619
1619
  path: n,
1620
- error: Ae(400, {
1620
+ error: Me(400, {
1621
1621
  type: "invalid-body"
1622
1622
  })
1623
1623
  }), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Ho(n);
@@ -1706,9 +1706,9 @@ function qr(e, t, n) {
1706
1706
  return r >= 0 ? e.slice(0, n ? r + 1 : r) : e;
1707
1707
  }
1708
1708
  function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
1709
- let v = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0, k = e.createURL(t.location), b = e.createURL(o), x = n;
1710
- a && t.errors ? x = qr(n, Object.keys(t.errors)[0], !0) : p && Ie(p[1]) && (x = qr(n, p[0]));
1711
- let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U = x.filter((T, K) => {
1709
+ let v = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0, x = e.createURL(t.location), b = e.createURL(o), L = n;
1710
+ a && t.errors ? L = qr(n, Object.keys(t.errors)[0], !0) : p && Ie(p[1]) && (L = qr(n, p[0]));
1711
+ let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U = L.filter((T, K) => {
1712
1712
  let {
1713
1713
  route: B
1714
1714
  } = T;
@@ -1718,11 +1718,11 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
1718
1718
  return !1;
1719
1719
  if (a)
1720
1720
  return lr(B, t.loaderData, t.errors);
1721
- if (yi(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
1721
+ if (wi(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
1722
1722
  return !0;
1723
1723
  let ae = t.matches[K], ee = T;
1724
1724
  return Gr(T, fe({
1725
- currentUrl: k,
1725
+ currentUrl: x,
1726
1726
  currentParams: ae.params,
1727
1727
  nextUrl: b,
1728
1728
  nextParams: ee.params
@@ -1731,8 +1731,8 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
1731
1731
  actionStatus: _,
1732
1732
  defaultShouldRevalidate: N ? !1 : (
1733
1733
  // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
1734
- s || k.pathname + k.search === b.pathname + b.search || // Search params affect all loaders
1735
- k.search !== b.search || Io(ae, ee)
1734
+ s || x.pathname + x.search === b.pathname + b.search || // Search params affect all loaders
1735
+ x.search !== b.search || Io(ae, ee)
1736
1736
  )
1737
1737
  }));
1738
1738
  }), w = [];
@@ -1753,7 +1753,7 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
1753
1753
  }
1754
1754
  let ae = t.fetchers.get(K), ee = $t(B, T.path), te = !1;
1755
1755
  h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Gr(ee, fe({
1756
- currentUrl: k,
1756
+ currentUrl: x,
1757
1757
  currentParams: t.matches[t.matches.length - 1].params,
1758
1758
  nextUrl: b,
1759
1759
  nextParams: n[n.length - 1].params
@@ -1779,7 +1779,7 @@ function lr(e, t, n) {
1779
1779
  let r = t != null && t[e.id] !== void 0, o = n != null && n[e.id] !== void 0;
1780
1780
  return !r && o ? !1 : typeof e.loader == "function" && e.loader.hydrate === !0 ? !0 : !r && !o;
1781
1781
  }
1782
- function yi(e, t, n) {
1782
+ function wi(e, t, n) {
1783
1783
  let r = (
1784
1784
  // [a] -> [a, b]
1785
1785
  !t || // [a, b] -> [a, c]
@@ -1821,7 +1821,7 @@ function Bo(e, t) {
1821
1821
  return (o = t.children) == null ? void 0 : o.some((a) => Bo(n, a));
1822
1822
  }) : !1;
1823
1823
  }
1824
- async function wi(e, t, n) {
1824
+ async function bi(e, t, n) {
1825
1825
  if (!e.lazy)
1826
1826
  return;
1827
1827
  let r = await e.lazy();
@@ -1834,13 +1834,13 @@ async function wi(e, t, n) {
1834
1834
  let l = o[i] !== void 0 && // This property isn't static since it should always be updated based
1835
1835
  // on the route updates
1836
1836
  i !== "hasErrorBoundary";
1837
- we(!l, 'Route "' + o.id + '" has a static property "' + i + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + i + '" will be ignored.')), !l && !$a.has(i) && (a[i] = r[i]);
1837
+ we(!l, 'Route "' + o.id + '" has a static property "' + i + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + i + '" will be ignored.')), !l && !za.has(i) && (a[i] = r[i]);
1838
1838
  }
1839
1839
  Object.assign(o, a), Object.assign(o, fe({}, t(o), {
1840
1840
  lazy: void 0
1841
1841
  }));
1842
1842
  }
1843
- async function bi(e) {
1843
+ async function Si(e) {
1844
1844
  let {
1845
1845
  matches: t
1846
1846
  } = e, n = t.filter((o) => o.shouldLoad);
@@ -1848,12 +1848,12 @@ async function bi(e) {
1848
1848
  [n[i].route.id]: a
1849
1849
  }), {});
1850
1850
  }
1851
- async function Si(e, t, n, r, o, a, i, s, l, c) {
1852
- let u = a.map((y) => y.route.lazy ? wi(y.route, l, s) : void 0), d = a.map((y, m) => {
1851
+ async function Ci(e, t, n, r, o, a, i, s, l, c) {
1852
+ let u = a.map((y) => y.route.lazy ? bi(y.route, l, s) : void 0), d = a.map((y, m) => {
1853
1853
  let p = u[m], v = o.some((b) => b.route.id === y.route.id);
1854
1854
  return fe({}, y, {
1855
1855
  shouldLoad: v,
1856
- resolve: async (b) => (b && r.method === "GET" && (y.route.lazy || y.route.loader) && (v = !0), v ? Ci(t, r, y, p, b, c) : Promise.resolve({
1856
+ resolve: async (b) => (b && r.method === "GET" && (y.route.lazy || y.route.loader) && (v = !0), v ? Ei(t, r, y, p, b, c) : Promise.resolve({
1857
1857
  type: oe.data,
1858
1858
  result: void 0
1859
1859
  }))
@@ -1871,7 +1871,7 @@ async function Si(e, t, n, r, o, a, i, s, l, c) {
1871
1871
  }
1872
1872
  return h;
1873
1873
  }
1874
- async function Ci(e, t, n, r, o, a) {
1874
+ async function Ei(e, t, n, r, o, a) {
1875
1875
  let i, s, l = (c) => {
1876
1876
  let u, d = new Promise((m, p) => u = p);
1877
1877
  s = () => u(), t.signal.addEventListener("abort", s);
@@ -1914,7 +1914,7 @@ async function Ci(e, t, n, r, o, a) {
1914
1914
  i = await l(c);
1915
1915
  else if (e === "action") {
1916
1916
  let u = new URL(t.url), d = u.pathname + u.search;
1917
- throw Ae(405, {
1917
+ throw Me(405, {
1918
1918
  method: t.method,
1919
1919
  pathname: d,
1920
1920
  routeId: n.route.id
@@ -1928,7 +1928,7 @@ async function Ci(e, t, n, r, o, a) {
1928
1928
  i = await l(c);
1929
1929
  else {
1930
1930
  let u = new URL(t.url), d = u.pathname + u.search;
1931
- throw Ae(404, {
1931
+ throw Me(404, {
1932
1932
  pathname: d
1933
1933
  });
1934
1934
  }
@@ -1943,7 +1943,7 @@ async function Ci(e, t, n, r, o, a) {
1943
1943
  }
1944
1944
  return i;
1945
1945
  }
1946
- async function Ei(e) {
1946
+ async function Ri(e) {
1947
1947
  let {
1948
1948
  result: t,
1949
1949
  type: n
@@ -1996,7 +1996,7 @@ async function Ei(e) {
1996
1996
  statusCode: qt(t) ? t.status : void 0
1997
1997
  };
1998
1998
  }
1999
- if (Ni(t)) {
1999
+ if (_i(t)) {
2000
2000
  var s, l;
2001
2001
  return {
2002
2002
  type: oe.deferred,
@@ -2019,7 +2019,7 @@ async function Ei(e) {
2019
2019
  data: t
2020
2020
  };
2021
2021
  }
2022
- function Ri(e, t, n, r, o, a) {
2022
+ function xi(e, t, n, r, o, a) {
2023
2023
  let i = e.headers.get("Location");
2024
2024
  if (I(i, "Redirects returned/thrown from loaders/actions must have a Location header"), !Cr.test(i)) {
2025
2025
  let s = r.slice(0, r.findIndex((l) => l.route.id === n) + 1);
@@ -2062,7 +2062,7 @@ function Qr(e) {
2062
2062
  t.append(n, r);
2063
2063
  return t;
2064
2064
  }
2065
- function ki(e, t, n, r, o) {
2065
+ function Li(e, t, n, r, o) {
2066
2066
  let a = {}, i = null, s, l = !1, c = {}, u = n && Ie(n[1]) ? n[1].error : void 0;
2067
2067
  return e.forEach((d) => {
2068
2068
  if (!(d.route.id in t))
@@ -2091,7 +2091,7 @@ function eo(e, t, n, r, o, a, i) {
2091
2091
  let {
2092
2092
  loaderData: s,
2093
2093
  errors: l
2094
- } = ki(t, n, r, i);
2094
+ } = Li(t, n, r, i);
2095
2095
  return o.forEach((c) => {
2096
2096
  let {
2097
2097
  key: u,
@@ -2153,7 +2153,7 @@ function ro(e) {
2153
2153
  route: t
2154
2154
  };
2155
2155
  }
2156
- function Ae(e, t) {
2156
+ function Me(e, t) {
2157
2157
  let {
2158
2158
  pathname: n,
2159
2159
  routeId: r,
@@ -2180,11 +2180,11 @@ function Ho(e) {
2180
2180
  hash: ""
2181
2181
  }));
2182
2182
  }
2183
- function xi(e, t) {
2183
+ function ki(e, t) {
2184
2184
  return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
2185
2185
  }
2186
- function Li(e) {
2187
- return Uo(e.result) && fi.has(e.result.status);
2186
+ function Ni(e) {
2187
+ return Uo(e.result) && hi.has(e.result.status);
2188
2188
  }
2189
2189
  function lt(e) {
2190
2190
  return e.type === oe.deferred;
@@ -2198,20 +2198,20 @@ function vt(e) {
2198
2198
  function oo(e) {
2199
2199
  return typeof e == "object" && e != null && "type" in e && "data" in e && "init" in e && e.type === "DataWithResponseInit";
2200
2200
  }
2201
- function Ni(e) {
2201
+ function _i(e) {
2202
2202
  let t = e;
2203
2203
  return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
2204
2204
  }
2205
2205
  function Uo(e) {
2206
2206
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
2207
2207
  }
2208
- function _i(e) {
2209
- return di.has(e.toLowerCase());
2208
+ function Ti(e) {
2209
+ return fi.has(e.toLowerCase());
2210
2210
  }
2211
2211
  function ze(e) {
2212
- return ci.has(e.toLowerCase());
2212
+ return ui.has(e.toLowerCase());
2213
2213
  }
2214
- async function Ti(e, t, n, r, o) {
2214
+ async function Pi(e, t, n, r, o) {
2215
2215
  let a = Object.entries(t);
2216
2216
  for (let i = 0; i < a.length; i++) {
2217
2217
  let [s, l] = a[i], c = e.find((h) => (h == null ? void 0 : h.route.id) === s);
@@ -2223,7 +2223,7 @@ async function Ti(e, t, n, r, o) {
2223
2223
  });
2224
2224
  }
2225
2225
  }
2226
- async function Pi(e, t, n) {
2226
+ async function Oi(e, t, n) {
2227
2227
  for (let r = 0; r < n.length; r++) {
2228
2228
  let {
2229
2229
  key: o,
@@ -2262,7 +2262,7 @@ function $t(e, t) {
2262
2262
  let n = typeof t == "string" ? dt(t).search : t.search;
2263
2263
  if (e[e.length - 1].route.index && Rr(n || ""))
2264
2264
  return e[e.length - 1];
2265
- let r = Ao(e);
2265
+ let r = Mo(e);
2266
2266
  return r[r.length - 1];
2267
2267
  }
2268
2268
  function ao(e) {
@@ -2325,7 +2325,7 @@ function Yn(e, t) {
2325
2325
  text: void 0
2326
2326
  };
2327
2327
  }
2328
- function Oi(e, t) {
2328
+ function Ai(e, t) {
2329
2329
  return {
2330
2330
  state: "submitting",
2331
2331
  location: e,
@@ -2382,7 +2382,7 @@ function at(e) {
2382
2382
  data: e
2383
2383
  };
2384
2384
  }
2385
- function Ai(e, t) {
2385
+ function Di(e, t) {
2386
2386
  try {
2387
2387
  let n = e.sessionStorage.getItem(Fo);
2388
2388
  if (n) {
@@ -2393,7 +2393,7 @@ function Ai(e, t) {
2393
2393
  } catch {
2394
2394
  }
2395
2395
  }
2396
- function Di(e, t) {
2396
+ function Fi(e, t) {
2397
2397
  if (t.size > 0) {
2398
2398
  let n = {};
2399
2399
  for (let [r, o] of t)
@@ -2415,35 +2415,35 @@ function Di(e, t) {
2415
2415
  *
2416
2416
  * @license MIT
2417
2417
  */
2418
- function kn() {
2419
- return kn = Object.assign ? Object.assign.bind() : function(e) {
2418
+ function xn() {
2419
+ return xn = Object.assign ? Object.assign.bind() : function(e) {
2420
2420
  for (var t = 1; t < arguments.length; t++) {
2421
2421
  var n = arguments[t];
2422
2422
  for (var r in n)
2423
2423
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2424
2424
  }
2425
2425
  return e;
2426
- }, kn.apply(this, arguments);
2426
+ }, xn.apply(this, arguments);
2427
2427
  }
2428
2428
  const _t = /* @__PURE__ */ E.createContext(null);
2429
2429
  process.env.NODE_ENV !== "production" && (_t.displayName = "DataRouter");
2430
2430
  const On = /* @__PURE__ */ E.createContext(null);
2431
2431
  process.env.NODE_ENV !== "production" && (On.displayName = "DataRouterState");
2432
- const Fi = /* @__PURE__ */ E.createContext(null);
2433
- process.env.NODE_ENV !== "production" && (Fi.displayName = "Await");
2432
+ const Ii = /* @__PURE__ */ E.createContext(null);
2433
+ process.env.NODE_ENV !== "production" && (Ii.displayName = "Await");
2434
2434
  const je = /* @__PURE__ */ E.createContext(null);
2435
2435
  process.env.NODE_ENV !== "production" && (je.displayName = "Navigation");
2436
- const Mn = /* @__PURE__ */ E.createContext(null);
2437
- process.env.NODE_ENV !== "production" && (Mn.displayName = "Location");
2436
+ const An = /* @__PURE__ */ E.createContext(null);
2437
+ process.env.NODE_ENV !== "production" && (An.displayName = "Location");
2438
2438
  const $e = /* @__PURE__ */ E.createContext({
2439
2439
  outlet: null,
2440
2440
  matches: [],
2441
2441
  isDataRoute: !1
2442
2442
  });
2443
2443
  process.env.NODE_ENV !== "production" && ($e.displayName = "Route");
2444
- const kr = /* @__PURE__ */ E.createContext(null);
2445
- process.env.NODE_ENV !== "production" && (kr.displayName = "RouteError");
2446
- function Ii(e, t) {
2444
+ const xr = /* @__PURE__ */ E.createContext(null);
2445
+ process.env.NODE_ENV !== "production" && (xr.displayName = "RouteError");
2446
+ function Bi(e, t) {
2447
2447
  let {
2448
2448
  relative: n
2449
2449
  } = t === void 0 ? {} : t;
@@ -2470,7 +2470,7 @@ function Ii(e, t) {
2470
2470
  });
2471
2471
  }
2472
2472
  function Tt() {
2473
- return E.useContext(Mn) != null;
2473
+ return E.useContext(An) != null;
2474
2474
  }
2475
2475
  function Qe() {
2476
2476
  return Tt() || (process.env.NODE_ENV !== "production" ? I(
@@ -2478,19 +2478,19 @@ function Qe() {
2478
2478
  // TODO: This error is probably because they somehow have 2 versions of the
2479
2479
  // router loaded. We can help them understand how to avoid that.
2480
2480
  "useLocation() may be used only in the context of a <Router> component."
2481
- ) : I(!1)), E.useContext(Mn).location;
2481
+ ) : I(!1)), E.useContext(An).location;
2482
2482
  }
2483
2483
  const Vo = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2484
2484
  function jo(e) {
2485
2485
  E.useContext(je).static || E.useLayoutEffect(e);
2486
2486
  }
2487
- function An() {
2487
+ function Mn() {
2488
2488
  let {
2489
2489
  isDataRoute: e
2490
2490
  } = E.useContext($e);
2491
- return e ? Xi() : Bi();
2491
+ return e ? Qi() : Hi();
2492
2492
  }
2493
- function Bi() {
2493
+ function Hi() {
2494
2494
  Tt() || (process.env.NODE_ENV !== "production" ? I(
2495
2495
  !1,
2496
2496
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -2518,14 +2518,14 @@ function Bi() {
2518
2518
  e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Xe([t, d.pathname])), (u.replace ? r.replace : r.push)(d, u.state, u);
2519
2519
  }, [t, r, i, a, e]);
2520
2520
  }
2521
- const Hi = /* @__PURE__ */ E.createContext(null);
2522
- function Ui(e) {
2521
+ const Ui = /* @__PURE__ */ E.createContext(null);
2522
+ function Vi(e) {
2523
2523
  let t = E.useContext($e).outlet;
2524
- return t && /* @__PURE__ */ E.createElement(Hi.Provider, {
2524
+ return t && /* @__PURE__ */ E.createElement(Ui.Provider, {
2525
2525
  value: e
2526
2526
  }, t);
2527
2527
  }
2528
- function Ld() {
2528
+ function kd() {
2529
2529
  let {
2530
2530
  matches: e
2531
2531
  } = E.useContext($e), t = e[e.length - 1];
@@ -2543,7 +2543,7 @@ function Yt(e, t) {
2543
2543
  } = Qe(), i = JSON.stringify(Tn(o, r.v7_relativeSplatPath));
2544
2544
  return E.useMemo(() => Pn(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
2545
2545
  }
2546
- function Vi(e, t, n, r) {
2546
+ function ji(e, t, n, r) {
2547
2547
  Tt() || (process.env.NODE_ENV !== "production" ? I(
2548
2548
  !1,
2549
2549
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -2572,7 +2572,7 @@ function Vi(e, t, n, r) {
2572
2572
  let v = !a && n && n.matches && n.matches.length > 0 ? n.matches : mt(e, {
2573
2573
  pathname: p
2574
2574
  });
2575
- return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + y.pathname + y.search + y.hash + '" '), process.env.NODE_ENV !== "production" && we(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + y.pathname + y.search + y.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), Wi(v && v.map((b) => Object.assign({}, b, {
2575
+ return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + y.pathname + y.search + y.hash + '" '), process.env.NODE_ENV !== "production" && we(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + y.pathname + y.search + y.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), Zi(v && v.map((b) => Object.assign({}, b, {
2576
2576
  params: Object.assign({}, l, b.params),
2577
2577
  pathname: Xe([
2578
2578
  u,
@@ -2586,8 +2586,8 @@ function Vi(e, t, n, r) {
2586
2586
  ])
2587
2587
  })), i, n, r);
2588
2588
  }
2589
- function ji() {
2590
- let e = Yi(), t = qt(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = {
2589
+ function $i() {
2590
+ let e = Xi(), t = qt(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = {
2591
2591
  padding: "0.5rem",
2592
2592
  backgroundColor: r
2593
2593
  }, a = {
@@ -2606,8 +2606,8 @@ function ji() {
2606
2606
  style: o
2607
2607
  }, n) : null, i);
2608
2608
  }
2609
- const $i = /* @__PURE__ */ E.createElement(ji, null);
2610
- class zi extends E.Component {
2609
+ const zi = /* @__PURE__ */ E.createElement($i, null);
2610
+ class Ji extends E.Component {
2611
2611
  constructor(t) {
2612
2612
  super(t), this.state = {
2613
2613
  location: t.location,
@@ -2637,13 +2637,13 @@ class zi extends E.Component {
2637
2637
  render() {
2638
2638
  return this.state.error !== void 0 ? /* @__PURE__ */ E.createElement($e.Provider, {
2639
2639
  value: this.props.routeContext
2640
- }, /* @__PURE__ */ E.createElement(kr.Provider, {
2640
+ }, /* @__PURE__ */ E.createElement(xr.Provider, {
2641
2641
  value: this.state.error,
2642
2642
  children: this.props.component
2643
2643
  })) : this.props.children;
2644
2644
  }
2645
2645
  }
2646
- function Ji(e) {
2646
+ function Wi(e) {
2647
2647
  let {
2648
2648
  routeContext: t,
2649
2649
  match: n,
@@ -2653,7 +2653,7 @@ function Ji(e) {
2653
2653
  value: t
2654
2654
  }, r);
2655
2655
  }
2656
- function Wi(e, t, n, r) {
2656
+ function Zi(e, t, n, r) {
2657
2657
  var o;
2658
2658
  if (t === void 0 && (t = []), n === void 0 && (n = null), r === void 0 && (r = null), e == null) {
2659
2659
  var a;
@@ -2688,20 +2688,20 @@ function Wi(e, t, n, r) {
2688
2688
  }
2689
2689
  return i.reduceRight((u, d, h) => {
2690
2690
  let y, m = !1, p = null, v = null;
2691
- n && (y = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || $i, l && (c < 0 && h === 0 ? (zo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
2692
- let k = t.concat(i.slice(0, h + 1)), b = () => {
2693
- let x;
2694
- return y ? x = p : m ? x = v : d.route.Component ? x = /* @__PURE__ */ E.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ E.createElement(Ji, {
2691
+ n && (y = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || zi, l && (c < 0 && h === 0 ? (zo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
2692
+ let x = t.concat(i.slice(0, h + 1)), b = () => {
2693
+ let L;
2694
+ return y ? L = p : m ? L = v : d.route.Component ? L = /* @__PURE__ */ E.createElement(d.route.Component, null) : d.route.element ? L = d.route.element : L = u, /* @__PURE__ */ E.createElement(Wi, {
2695
2695
  match: d,
2696
2696
  routeContext: {
2697
2697
  outlet: u,
2698
- matches: k,
2698
+ matches: x,
2699
2699
  isDataRoute: n != null
2700
2700
  },
2701
- children: x
2701
+ children: L
2702
2702
  });
2703
2703
  };
2704
- return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ E.createElement(zi, {
2704
+ return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ E.createElement(Ji, {
2705
2705
  location: n.location,
2706
2706
  revalidation: n.revalidation,
2707
2707
  component: p,
@@ -2709,7 +2709,7 @@ function Wi(e, t, n, r) {
2709
2709
  children: b(),
2710
2710
  routeContext: {
2711
2711
  outlet: null,
2712
- matches: k,
2712
+ matches: x,
2713
2713
  isDataRoute: !0
2714
2714
  }
2715
2715
  }) : b();
@@ -2720,41 +2720,41 @@ var $o = /* @__PURE__ */ function(e) {
2720
2720
  }($o || {}), Kt = /* @__PURE__ */ function(e) {
2721
2721
  return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
2722
2722
  }(Kt || {});
2723
- function xr(e) {
2723
+ function Lr(e) {
2724
2724
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
2725
2725
  }
2726
- function Zi(e) {
2726
+ function qi(e) {
2727
2727
  let t = E.useContext(_t);
2728
- return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2728
+ return t || (process.env.NODE_ENV !== "production" ? I(!1, Lr(e)) : I(!1)), t;
2729
2729
  }
2730
- function qi(e) {
2730
+ function Ki(e) {
2731
2731
  let t = E.useContext(On);
2732
- return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2732
+ return t || (process.env.NODE_ENV !== "production" ? I(!1, Lr(e)) : I(!1)), t;
2733
2733
  }
2734
- function Ki(e) {
2734
+ function Gi(e) {
2735
2735
  let t = E.useContext($e);
2736
- return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2736
+ return t || (process.env.NODE_ENV !== "production" ? I(!1, Lr(e)) : I(!1)), t;
2737
2737
  }
2738
- function Lr(e) {
2739
- let t = Ki(e), n = t.matches[t.matches.length - 1];
2738
+ function kr(e) {
2739
+ let t = Gi(e), n = t.matches[t.matches.length - 1];
2740
2740
  return n.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), n.route.id;
2741
2741
  }
2742
- function Gi() {
2743
- return Lr(Kt.UseRouteId);
2744
- }
2745
2742
  function Yi() {
2743
+ return kr(Kt.UseRouteId);
2744
+ }
2745
+ function Xi() {
2746
2746
  var e;
2747
- let t = E.useContext(kr), n = qi(Kt.UseRouteError), r = Lr(Kt.UseRouteError);
2747
+ let t = E.useContext(xr), n = Ki(Kt.UseRouteError), r = kr(Kt.UseRouteError);
2748
2748
  return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[r];
2749
2749
  }
2750
- function Xi() {
2750
+ function Qi() {
2751
2751
  let {
2752
2752
  router: e
2753
- } = Zi($o.UseNavigateStable), t = Lr(Kt.UseNavigateStable), n = E.useRef(!1);
2753
+ } = qi($o.UseNavigateStable), t = kr(Kt.UseNavigateStable), n = E.useRef(!1);
2754
2754
  return jo(() => {
2755
2755
  n.current = !0;
2756
2756
  }), E.useCallback(function(o, a) {
2757
- a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, Vo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, kn({
2757
+ a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, Vo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, xn({
2758
2758
  fromRouteId: t
2759
2759
  }, a)));
2760
2760
  }, [e, t]);
@@ -2764,12 +2764,12 @@ function zo(e, t, n) {
2764
2764
  !t && !io[e] && (io[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
2765
2765
  }
2766
2766
  const so = {};
2767
- function Qi(e, t) {
2767
+ function es(e, t) {
2768
2768
  process.env.NODE_ENV !== "production" && !so[t] && (so[t] = !0, console.warn(t));
2769
2769
  }
2770
- const kt = (e, t, n) => Qi(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
2771
- function es(e, t) {
2772
- (e == null ? void 0 : e.v7_startTransition) === void 0 && kt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && kt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && kt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && kt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && kt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && kt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
2770
+ const xt = (e, t, n) => es(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
2771
+ function ts(e, t) {
2772
+ (e == null ? void 0 : e.v7_startTransition) === void 0 && xt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && xt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && xt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && xt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && xt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && xt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
2773
2773
  }
2774
2774
  function Nd(e) {
2775
2775
  let {
@@ -2793,7 +2793,7 @@ function Nd(e) {
2793
2793
  matches: s
2794
2794
  } = E.useContext($e), {
2795
2795
  pathname: l
2796
- } = Qe(), c = An(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
2796
+ } = Qe(), c = Mn(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
2797
2797
  return E.useEffect(() => c(JSON.parse(d), {
2798
2798
  replace: n,
2799
2799
  state: r,
@@ -2801,9 +2801,9 @@ function Nd(e) {
2801
2801
  }), [c, d, o, n, r]), null;
2802
2802
  }
2803
2803
  function _d(e) {
2804
- return Ui(e.context);
2804
+ return Vi(e.context);
2805
2805
  }
2806
- function ts(e) {
2806
+ function ns(e) {
2807
2807
  let {
2808
2808
  basename: t = "/",
2809
2809
  children: n = null,
@@ -2818,7 +2818,7 @@ function ts(e) {
2818
2818
  basename: l,
2819
2819
  navigator: a,
2820
2820
  static: i,
2821
- future: kn({
2821
+ future: xn({
2822
2822
  v7_relativeSplatPath: !1
2823
2823
  }, s)
2824
2824
  }), [l, s, a, i]);
@@ -2844,14 +2844,14 @@ function ts(e) {
2844
2844
  }, [l, u, d, h, y, m, o]);
2845
2845
  return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ E.createElement(je.Provider, {
2846
2846
  value: c
2847
- }, /* @__PURE__ */ E.createElement(Mn.Provider, {
2847
+ }, /* @__PURE__ */ E.createElement(An.Provider, {
2848
2848
  children: n,
2849
2849
  value: p
2850
2850
  }));
2851
2851
  }
2852
2852
  new Promise(() => {
2853
2853
  });
2854
- function ns(e) {
2854
+ function rs(e) {
2855
2855
  let t = {
2856
2856
  // Note: this check also occurs in createRoutesFromChildren so update
2857
2857
  // there if you change this -- please and thank you!
@@ -2899,22 +2899,22 @@ const vn = "get", yn = "application/x-www-form-urlencoded";
2899
2899
  function Dn(e) {
2900
2900
  return e != null && typeof e.tagName == "string";
2901
2901
  }
2902
- function rs(e) {
2902
+ function os(e) {
2903
2903
  return Dn(e) && e.tagName.toLowerCase() === "button";
2904
2904
  }
2905
- function os(e) {
2905
+ function as(e) {
2906
2906
  return Dn(e) && e.tagName.toLowerCase() === "form";
2907
2907
  }
2908
- function as(e) {
2908
+ function is(e) {
2909
2909
  return Dn(e) && e.tagName.toLowerCase() === "input";
2910
2910
  }
2911
- function is(e) {
2911
+ function ss(e) {
2912
2912
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2913
2913
  }
2914
- function ss(e, t) {
2914
+ function ls(e, t) {
2915
2915
  return e.button === 0 && // Ignore everything but left clicks
2916
2916
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
2917
- !is(e);
2917
+ !ss(e);
2918
2918
  }
2919
2919
  function ur(e) {
2920
2920
  return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
@@ -2922,7 +2922,7 @@ function ur(e) {
2922
2922
  return t.concat(Array.isArray(r) ? r.map((o) => [n, o]) : [[n, r]]);
2923
2923
  }, []));
2924
2924
  }
2925
- function ls(e, t) {
2925
+ function cs(e, t) {
2926
2926
  let n = ur(e);
2927
2927
  return t && t.forEach((r, o) => {
2928
2928
  n.has(o) || t.getAll(o).forEach((a) => {
@@ -2931,7 +2931,7 @@ function ls(e, t) {
2931
2931
  }), n;
2932
2932
  }
2933
2933
  let fn = null;
2934
- function cs() {
2934
+ function us() {
2935
2935
  if (fn === null)
2936
2936
  try {
2937
2937
  new FormData(
@@ -2944,21 +2944,21 @@ function cs() {
2944
2944
  }
2945
2945
  return fn;
2946
2946
  }
2947
- const us = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
2947
+ const ds = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
2948
2948
  function Xn(e) {
2949
- return e != null && !us.has(e) ? (process.env.NODE_ENV !== "production" && we(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + yn + '"')), null) : e;
2949
+ return e != null && !ds.has(e) ? (process.env.NODE_ENV !== "production" && we(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + yn + '"')), null) : e;
2950
2950
  }
2951
- function ds(e, t) {
2951
+ function fs(e, t) {
2952
2952
  let n, r, o, a, i;
2953
- if (os(e)) {
2953
+ if (as(e)) {
2954
2954
  let s = e.getAttribute("action");
2955
2955
  r = s ? Je(s, t) : null, n = e.getAttribute("method") || vn, o = Xn(e.getAttribute("enctype")) || yn, a = new FormData(e);
2956
- } else if (rs(e) || as(e) && (e.type === "submit" || e.type === "image")) {
2956
+ } else if (os(e) || is(e) && (e.type === "submit" || e.type === "image")) {
2957
2957
  let s = e.form;
2958
2958
  if (s == null)
2959
2959
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
2960
2960
  let l = e.getAttribute("formaction") || s.getAttribute("action");
2961
- if (r = l ? Je(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || vn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || yn, a = new FormData(s, e), !cs()) {
2961
+ if (r = l ? Je(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || vn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || yn, a = new FormData(s, e), !us()) {
2962
2962
  let {
2963
2963
  name: c,
2964
2964
  type: u,
@@ -2982,36 +2982,36 @@ function ds(e, t) {
2982
2982
  body: i
2983
2983
  };
2984
2984
  }
2985
- const fs = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], hs = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], ps = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], ms = "6";
2985
+ const hs = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], ps = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], ms = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], gs = "6";
2986
2986
  try {
2987
- window.__reactRouterVersion = ms;
2987
+ window.__reactRouterVersion = gs;
2988
2988
  } catch {
2989
2989
  }
2990
2990
  function Td(e, t) {
2991
- return gi({
2991
+ return vi({
2992
2992
  basename: void 0,
2993
2993
  future: ut({}, void 0, {
2994
2994
  v7_prependBasename: !0
2995
2995
  }),
2996
- history: Ua({
2996
+ history: Va({
2997
2997
  window: void 0
2998
2998
  }),
2999
- hydrationData: gs(),
2999
+ hydrationData: vs(),
3000
3000
  routes: e,
3001
- mapRouteProperties: ns,
3001
+ mapRouteProperties: rs,
3002
3002
  dataStrategy: void 0,
3003
3003
  patchRoutesOnNavigation: void 0,
3004
3004
  window: void 0
3005
3005
  }).initialize();
3006
3006
  }
3007
- function gs() {
3007
+ function vs() {
3008
3008
  var e;
3009
3009
  let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
3010
3010
  return t && t.errors && (t = ut({}, t, {
3011
- errors: vs(t.errors)
3011
+ errors: ys(t.errors)
3012
3012
  })), t;
3013
3013
  }
3014
- function vs(e) {
3014
+ function ys(e) {
3015
3015
  if (!e) return null;
3016
3016
  let t = Object.entries(e), n = {};
3017
3017
  for (let [r, o] of t)
@@ -3041,14 +3041,14 @@ const _r = /* @__PURE__ */ E.createContext({
3041
3041
  process.env.NODE_ENV !== "production" && (_r.displayName = "ViewTransition");
3042
3042
  const Jo = /* @__PURE__ */ E.createContext(/* @__PURE__ */ new Map());
3043
3043
  process.env.NODE_ENV !== "production" && (Jo.displayName = "Fetchers");
3044
- const ys = "startTransition", lo = E[ys], ws = "flushSync", co = Ta[ws];
3045
- function bs(e) {
3044
+ const ws = "startTransition", lo = E[ws], bs = "flushSync", co = Pa[bs];
3045
+ function Ss(e) {
3046
3046
  lo ? lo(e) : e();
3047
3047
  }
3048
3048
  function Bt(e) {
3049
3049
  co ? co(e) : e();
3050
3050
  }
3051
- class Ss {
3051
+ class Cs {
3052
3052
  constructor() {
3053
3053
  this.status = "pending", this.promise = new Promise((t, n) => {
3054
3054
  this.resolve = (r) => {
@@ -3067,10 +3067,10 @@ function Pd(e) {
3067
3067
  } = e, [o, a] = E.useState(n.state), [i, s] = E.useState(), [l, c] = E.useState({
3068
3068
  isTransitioning: !1
3069
3069
  }), [u, d] = E.useState(), [h, y] = E.useState(), [m, p] = E.useState(), v = E.useRef(/* @__PURE__ */ new Map()), {
3070
- v7_startTransition: k
3070
+ v7_startTransition: x
3071
3071
  } = r || {}, b = E.useCallback((T) => {
3072
- k ? bs(T) : T();
3073
- }, [k]), x = E.useCallback((T, K) => {
3072
+ x ? Ss(T) : T();
3073
+ }, [x]), L = E.useCallback((T, K) => {
3074
3074
  let {
3075
3075
  deletedFetchers: B,
3076
3076
  flushSync: ae,
@@ -3116,8 +3116,8 @@ function Pd(e) {
3116
3116
  nextLocation: ee.nextLocation
3117
3117
  }));
3118
3118
  }, [n.window, h, u, v, b]);
3119
- E.useLayoutEffect(() => n.subscribe(x), [n, x]), E.useEffect(() => {
3120
- l.isTransitioning && !l.flushSync && d(new Ss());
3119
+ E.useLayoutEffect(() => n.subscribe(L), [n, L]), E.useEffect(() => {
3120
+ l.isTransitioning && !l.flushSync && d(new Cs());
3121
3121
  }, [l]), E.useEffect(() => {
3122
3122
  if (u && i && n.window) {
3123
3123
  let T = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
@@ -3162,7 +3162,7 @@ function Pd(e) {
3162
3162
  }), [n, _, N]), w = E.useMemo(() => ({
3163
3163
  v7_relativeSplatPath: n.future.v7_relativeSplatPath
3164
3164
  }), [n.future.v7_relativeSplatPath]);
3165
- return E.useEffect(() => es(r, n.future), [r, n.future]), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(_t.Provider, {
3165
+ return E.useEffect(() => ts(r, n.future), [r, n.future]), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(_t.Provider, {
3166
3166
  value: U
3167
3167
  }, /* @__PURE__ */ E.createElement(On.Provider, {
3168
3168
  value: o
@@ -3170,29 +3170,29 @@ function Pd(e) {
3170
3170
  value: v.current
3171
3171
  }, /* @__PURE__ */ E.createElement(_r.Provider, {
3172
3172
  value: l
3173
- }, /* @__PURE__ */ E.createElement(ts, {
3173
+ }, /* @__PURE__ */ E.createElement(ns, {
3174
3174
  basename: N,
3175
3175
  location: o.location,
3176
3176
  navigationType: o.historyAction,
3177
3177
  navigator: _,
3178
3178
  future: w
3179
- }, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ E.createElement(Cs, {
3179
+ }, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ E.createElement(Es, {
3180
3180
  routes: n.routes,
3181
3181
  future: n.future,
3182
3182
  state: o
3183
3183
  }) : t))))), null);
3184
3184
  }
3185
- const Cs = /* @__PURE__ */ E.memo(Es);
3186
- function Es(e) {
3185
+ const Es = /* @__PURE__ */ E.memo(Rs);
3186
+ function Rs(e) {
3187
3187
  let {
3188
3188
  routes: t,
3189
3189
  future: n,
3190
3190
  state: r
3191
3191
  } = e;
3192
- return Vi(t, void 0, r, n);
3192
+ return ji(t, void 0, r, n);
3193
3193
  }
3194
3194
  process.env.NODE_ENV;
3195
- const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ks = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Wo = /* @__PURE__ */ E.forwardRef(function(t, n) {
3195
+ const xs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ls = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Wo = /* @__PURE__ */ E.forwardRef(function(t, n) {
3196
3196
  let {
3197
3197
  onClick: r,
3198
3198
  relative: o,
@@ -3203,19 +3203,19 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3203
3203
  to: c,
3204
3204
  preventScrollReset: u,
3205
3205
  viewTransition: d
3206
- } = t, h = Nr(t, fs), {
3206
+ } = t, h = Nr(t, hs), {
3207
3207
  basename: y
3208
3208
  } = E.useContext(je), m, p = !1;
3209
- if (typeof c == "string" && ks.test(c) && (m = c, Rs))
3209
+ if (typeof c == "string" && Ls.test(c) && (m = c, xs))
3210
3210
  try {
3211
- let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N = Je(_.pathname, y);
3212
- _.origin === x.origin && N != null ? c = N + _.search + _.hash : p = !0;
3211
+ let L = new URL(window.location.href), _ = c.startsWith("//") ? new URL(L.protocol + c) : new URL(c), N = Je(_.pathname, y);
3212
+ _.origin === L.origin && N != null ? c = N + _.search + _.hash : p = !0;
3213
3213
  } catch {
3214
3214
  process.env.NODE_ENV !== "production" && we(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
3215
3215
  }
3216
- let v = Ii(c, {
3216
+ let v = Bi(c, {
3217
3217
  relative: o
3218
- }), k = _s(c, {
3218
+ }), x = Ts(c, {
3219
3219
  replace: i,
3220
3220
  state: s,
3221
3221
  target: l,
@@ -3223,8 +3223,8 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3223
3223
  relative: o,
3224
3224
  viewTransition: d
3225
3225
  });
3226
- function b(x) {
3227
- r && r(x), x.defaultPrevented || k(x);
3226
+ function b(L) {
3227
+ r && r(L), L.defaultPrevented || x(L);
3228
3228
  }
3229
3229
  return (
3230
3230
  // eslint-disable-next-line jsx-a11y/anchor-has-content
@@ -3237,7 +3237,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3237
3237
  );
3238
3238
  });
3239
3239
  process.env.NODE_ENV !== "production" && (Wo.displayName = "Link");
3240
- const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
3240
+ const ks = /* @__PURE__ */ E.forwardRef(function(t, n) {
3241
3241
  let {
3242
3242
  "aria-current": r = "page",
3243
3243
  caseSensitive: o = !1,
@@ -3247,22 +3247,22 @@ const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
3247
3247
  to: l,
3248
3248
  viewTransition: c,
3249
3249
  children: u
3250
- } = t, d = Nr(t, hs), h = Yt(l, {
3250
+ } = t, d = Nr(t, ps), h = Yt(l, {
3251
3251
  relative: d.relative
3252
3252
  }), y = Qe(), m = E.useContext(On), {
3253
3253
  navigator: p,
3254
3254
  basename: v
3255
- } = E.useContext(je), k = m != null && // Conditional usage is OK here because the usage of a data router is static
3255
+ } = E.useContext(je), x = m != null && // Conditional usage is OK here because the usage of a data router is static
3256
3256
  // eslint-disable-next-line react-hooks/rules-of-hooks
3257
- Ds(h) && c === !0, b = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, x = y.pathname, _ = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
3258
- o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, b = b.toLowerCase()), _ && v && (_ = Je(_, v) || _);
3257
+ Fs(h) && c === !0, b = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, L = y.pathname, _ = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
3258
+ o || (L = L.toLowerCase(), _ = _ ? _.toLowerCase() : null, b = b.toLowerCase()), _ && v && (_ = Je(_, v) || _);
3259
3259
  const N = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
3260
- let U = x === b || !i && x.startsWith(b) && x.charAt(N) === "/", w = _ != null && (_ === b || !i && _.startsWith(b) && _.charAt(b.length) === "/"), T = {
3260
+ let U = L === b || !i && L.startsWith(b) && L.charAt(N) === "/", w = _ != null && (_ === b || !i && _.startsWith(b) && _.charAt(b.length) === "/"), T = {
3261
3261
  isActive: U,
3262
3262
  isPending: w,
3263
- isTransitioning: k
3263
+ isTransitioning: x
3264
3264
  }, K = U ? r : void 0, B;
3265
- typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, w ? "pending" : null, k ? "transitioning" : null].filter(Boolean).join(" ");
3265
+ typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, w ? "pending" : null, x ? "transitioning" : null].filter(Boolean).join(" ");
3266
3266
  let ae = typeof s == "function" ? s(T) : s;
3267
3267
  return /* @__PURE__ */ E.createElement(Wo, ut({}, d, {
3268
3268
  "aria-current": K,
@@ -3273,8 +3273,8 @@ const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
3273
3273
  viewTransition: c
3274
3274
  }), typeof u == "function" ? u(T) : u);
3275
3275
  });
3276
- process.env.NODE_ENV !== "production" && (xs.displayName = "NavLink");
3277
- const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
3276
+ process.env.NODE_ENV !== "production" && (ks.displayName = "NavLink");
3277
+ const Ns = /* @__PURE__ */ E.forwardRef((e, t) => {
3278
3278
  let {
3279
3279
  fetcherKey: n,
3280
3280
  navigate: r,
@@ -3287,13 +3287,13 @@ const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
3287
3287
  relative: u,
3288
3288
  preventScrollReset: d,
3289
3289
  viewTransition: h
3290
- } = e, y = Nr(e, ps), m = Ms(), p = As(l, {
3290
+ } = e, y = Nr(e, ms), m = Ms(), p = Ds(l, {
3291
3291
  relative: u
3292
- }), v = s.toLowerCase() === "get" ? "get" : "post", k = (b) => {
3292
+ }), v = s.toLowerCase() === "get" ? "get" : "post", x = (b) => {
3293
3293
  if (c && c(b), b.defaultPrevented) return;
3294
3294
  b.preventDefault();
3295
- let x = b.nativeEvent.submitter, _ = (x == null ? void 0 : x.getAttribute("formmethod")) || s;
3296
- m(x || b.currentTarget, {
3295
+ let L = b.nativeEvent.submitter, _ = (L == null ? void 0 : L.getAttribute("formmethod")) || s;
3296
+ m(L || b.currentTarget, {
3297
3297
  fetcherKey: n,
3298
3298
  method: _,
3299
3299
  navigate: r,
@@ -3308,27 +3308,27 @@ const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
3308
3308
  ref: t,
3309
3309
  method: v,
3310
3310
  action: p,
3311
- onSubmit: o ? c : k
3311
+ onSubmit: o ? c : x
3312
3312
  }, y));
3313
3313
  });
3314
- process.env.NODE_ENV !== "production" && (Ls.displayName = "Form");
3314
+ process.env.NODE_ENV !== "production" && (Ns.displayName = "Form");
3315
3315
  process.env.NODE_ENV;
3316
- var xn;
3316
+ var Ln;
3317
3317
  (function(e) {
3318
3318
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
3319
- })(xn || (xn = {}));
3319
+ })(Ln || (Ln = {}));
3320
3320
  var uo;
3321
3321
  (function(e) {
3322
3322
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
3323
3323
  })(uo || (uo = {}));
3324
- function Ns(e) {
3324
+ function _s(e) {
3325
3325
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
3326
3326
  }
3327
3327
  function Zo(e) {
3328
3328
  let t = E.useContext(_t);
3329
- return t || (process.env.NODE_ENV !== "production" ? I(!1, Ns(e)) : I(!1)), t;
3329
+ return t || (process.env.NODE_ENV !== "production" ? I(!1, _s(e)) : I(!1)), t;
3330
3330
  }
3331
- function _s(e, t) {
3331
+ function Ts(e, t) {
3332
3332
  let {
3333
3333
  target: n,
3334
3334
  replace: r,
@@ -3336,11 +3336,11 @@ function _s(e, t) {
3336
3336
  preventScrollReset: a,
3337
3337
  relative: i,
3338
3338
  viewTransition: s
3339
- } = t === void 0 ? {} : t, l = An(), c = Qe(), u = Yt(e, {
3339
+ } = t === void 0 ? {} : t, l = Mn(), c = Qe(), u = Yt(e, {
3340
3340
  relative: i
3341
3341
  });
3342
3342
  return E.useCallback((d) => {
3343
- if (ss(d, n)) {
3343
+ if (ls(d, n)) {
3344
3344
  d.preventDefault();
3345
3345
  let h = r !== void 0 ? r : ct(c) === ct(u);
3346
3346
  l(e, {
@@ -3359,35 +3359,35 @@ function Od(e) {
3359
3359
  // Only merge in the defaults if we haven't yet called setSearchParams.
3360
3360
  // Once we call that we want those to take precedence, otherwise you can't
3361
3361
  // remove a param with setSearchParams({}) if it has an initial value
3362
- ls(r.search, n.current ? null : t.current)
3363
- ), [r.search]), a = An(), i = E.useCallback((s, l) => {
3362
+ cs(r.search, n.current ? null : t.current)
3363
+ ), [r.search]), a = Mn(), i = E.useCallback((s, l) => {
3364
3364
  const c = ur(typeof s == "function" ? s(o) : s);
3365
3365
  n.current = !0, a("?" + c, l);
3366
3366
  }, [a, o]);
3367
3367
  return [o, i];
3368
3368
  }
3369
- function Ts() {
3369
+ function Ps() {
3370
3370
  if (typeof document > "u")
3371
3371
  throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
3372
3372
  }
3373
- let Ps = 0, Os = () => "__" + String(++Ps) + "__";
3373
+ let Os = 0, As = () => "__" + String(++Os) + "__";
3374
3374
  function Ms() {
3375
3375
  let {
3376
3376
  router: e
3377
- } = Zo(xn.UseSubmit), {
3377
+ } = Zo(Ln.UseSubmit), {
3378
3378
  basename: t
3379
- } = E.useContext(je), n = Gi();
3379
+ } = E.useContext(je), n = Yi();
3380
3380
  return E.useCallback(function(r, o) {
3381
- o === void 0 && (o = {}), Ts();
3381
+ o === void 0 && (o = {}), Ps();
3382
3382
  let {
3383
3383
  action: a,
3384
3384
  method: i,
3385
3385
  encType: s,
3386
3386
  formData: l,
3387
3387
  body: c
3388
- } = ds(r, t);
3388
+ } = fs(r, t);
3389
3389
  if (o.navigate === !1) {
3390
- let u = o.fetcherKey || Os();
3390
+ let u = o.fetcherKey || As();
3391
3391
  e.fetch(u, n, o.action || a, {
3392
3392
  preventScrollReset: o.preventScrollReset,
3393
3393
  formData: l,
@@ -3411,7 +3411,7 @@ function Ms() {
3411
3411
  });
3412
3412
  }, [e, t, n]);
3413
3413
  }
3414
- function As(e, t) {
3414
+ function Ds(e, t) {
3415
3415
  let {
3416
3416
  relative: n
3417
3417
  } = t === void 0 ? {} : t, {
@@ -3432,13 +3432,13 @@ function As(e, t) {
3432
3432
  }
3433
3433
  return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Xe([r, i.pathname])), ct(i);
3434
3434
  }
3435
- function Ds(e, t) {
3435
+ function Fs(e, t) {
3436
3436
  t === void 0 && (t = {});
3437
3437
  let n = E.useContext(_r);
3438
3438
  n == null && (process.env.NODE_ENV !== "production" ? I(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
3439
3439
  let {
3440
3440
  basename: r
3441
- } = Zo(xn.useViewTransitionState), o = Yt(e, {
3441
+ } = Zo(Ln.useViewTransitionState), o = Yt(e, {
3442
3442
  relative: t.relative
3443
3443
  });
3444
3444
  if (!n.isTransitioning)
@@ -3446,8 +3446,8 @@ function Ds(e, t) {
3446
3446
  let a = Je(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = Je(n.nextLocation.pathname, r) || n.nextLocation.pathname;
3447
3447
  return En(o.pathname, i) != null || En(o.pathname, a) != null;
3448
3448
  }
3449
- var qo = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(qo || {}), Fs = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(Fs || {});
3450
- const Md = [
3449
+ var qo = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(qo || {}), Is = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(Is || {});
3450
+ const Ad = [
3451
3451
  {
3452
3452
  caption: "Share link",
3453
3453
  description: "Send the link to your friends in all convenient ways"
@@ -3470,8 +3470,8 @@ const Md = [
3470
3470
  }
3471
3471
  }, o = () => t, s = { setState: r, getState: o, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(r, o, s);
3472
3472
  return s;
3473
- }, Is = (e) => e ? fo(e) : fo, Bs = (e) => e;
3474
- function Hs(e, t = Bs) {
3473
+ }, Bs = (e) => e ? fo(e) : fo, Hs = (e) => e;
3474
+ function Us(e, t = Hs) {
3475
3475
  const n = _e.useSyncExternalStore(
3476
3476
  e.subscribe,
3477
3477
  () => t(e.getState()),
@@ -3480,9 +3480,9 @@ function Hs(e, t = Bs) {
3480
3480
  return _e.useDebugValue(n), n;
3481
3481
  }
3482
3482
  const ho = (e) => {
3483
- const t = Is(e), n = (r) => Hs(t, r);
3483
+ const t = Bs(e), n = (r) => Us(t, r);
3484
3484
  return Object.assign(n, t), n;
3485
- }, se = (e) => e ? ho(e) : ho, Ad = se((e) => ({
3485
+ }, se = (e) => e ? ho(e) : ho, Md = se((e) => ({
3486
3486
  action: null,
3487
3487
  setAction: (t) => e(() => ({ action: t })),
3488
3488
  route: qo.Home,
@@ -3527,13 +3527,13 @@ const ho = (e) => {
3527
3527
  class zt extends Error {
3528
3528
  }
3529
3529
  zt.prototype.name = "InvalidTokenError";
3530
- function Us(e) {
3530
+ function Vs(e) {
3531
3531
  return decodeURIComponent(atob(e).replace(/(.)/g, (t, n) => {
3532
3532
  let r = n.charCodeAt(0).toString(16).toUpperCase();
3533
3533
  return r.length < 2 && (r = "0" + r), "%" + r;
3534
3534
  }));
3535
3535
  }
3536
- function Vs(e) {
3536
+ function js(e) {
3537
3537
  let t = e.replace(/-/g, "+").replace(/_/g, "/");
3538
3538
  switch (t.length % 4) {
3539
3539
  case 0:
@@ -3548,12 +3548,12 @@ function Vs(e) {
3548
3548
  throw new Error("base64 string is not of the correct length");
3549
3549
  }
3550
3550
  try {
3551
- return Us(t);
3551
+ return Vs(t);
3552
3552
  } catch {
3553
3553
  return atob(t);
3554
3554
  }
3555
3555
  }
3556
- function js(e, t) {
3556
+ function $s(e, t) {
3557
3557
  if (typeof e != "string")
3558
3558
  throw new zt("Invalid token specified: must be a string");
3559
3559
  t || (t = {});
@@ -3562,7 +3562,7 @@ function js(e, t) {
3562
3562
  throw new zt(`Invalid token specified: missing part #${n + 1}`);
3563
3563
  let o;
3564
3564
  try {
3565
- o = Vs(r);
3565
+ o = js(r);
3566
3566
  } catch (a) {
3567
3567
  throw new zt(`Invalid token specified: invalid base64 for part #${n + 1} (${a.message})`);
3568
3568
  }
@@ -3577,28 +3577,28 @@ function Ko(e, t) {
3577
3577
  return e.apply(t, arguments);
3578
3578
  };
3579
3579
  }
3580
- const { toString: $s } = Object.prototype, { getPrototypeOf: Tr } = Object, Fn = /* @__PURE__ */ ((e) => (t) => {
3581
- const n = $s.call(t);
3580
+ const { toString: zs } = Object.prototype, { getPrototypeOf: Tr } = Object, Fn = /* @__PURE__ */ ((e) => (t) => {
3581
+ const n = zs.call(t);
3582
3582
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
3583
3583
  })(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) => Fn(t) === e), In = (e) => (t) => typeof t === e, { isArray: Pt } = Array, Gt = In("undefined");
3584
- function zs(e) {
3584
+ function Js(e) {
3585
3585
  return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
3586
3586
  }
3587
3587
  const Go = We("ArrayBuffer");
3588
- function Js(e) {
3588
+ function Ws(e) {
3589
3589
  let t;
3590
3590
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Go(e.buffer), t;
3591
3591
  }
3592
- const Ws = In("string"), Be = In("function"), Yo = In("number"), Bn = (e) => e !== null && typeof e == "object", Zs = (e) => e === !0 || e === !1, wn = (e) => {
3592
+ const Zs = In("string"), Be = In("function"), Yo = In("number"), Bn = (e) => e !== null && typeof e == "object", qs = (e) => e === !0 || e === !1, wn = (e) => {
3593
3593
  if (Fn(e) !== "object")
3594
3594
  return !1;
3595
3595
  const t = Tr(e);
3596
3596
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
3597
- }, qs = We("Date"), Ks = We("File"), Gs = We("Blob"), Ys = We("FileList"), Xs = (e) => Bn(e) && Be(e.pipe), Qs = (e) => {
3597
+ }, Ks = We("Date"), Gs = We("File"), Ys = We("Blob"), Xs = We("FileList"), Qs = (e) => Bn(e) && Be(e.pipe), el = (e) => {
3598
3598
  let t;
3599
3599
  return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = Fn(e)) === "formdata" || // detect form-data instance
3600
3600
  t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
3601
- }, el = We("URLSearchParams"), [tl, nl, rl, ol] = ["ReadableStream", "Request", "Response", "Headers"].map(We), al = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3601
+ }, tl = We("URLSearchParams"), [nl, rl, ol, al] = ["ReadableStream", "Request", "Response", "Headers"].map(We), il = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3602
3602
  function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
3603
3603
  if (e === null || typeof e > "u")
3604
3604
  return;
@@ -3632,13 +3632,13 @@ function dr() {
3632
3632
  arguments[r] && Xt(arguments[r], n);
3633
3633
  return t;
3634
3634
  }
3635
- const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3635
+ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3636
3636
  n && Be(o) ? e[a] = Ko(o, n) : e[a] = o;
3637
- }, { allOwnKeys: r }), e), sl = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ll = (e, t, n, r) => {
3637
+ }, { allOwnKeys: r }), e), ll = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cl = (e, t, n, r) => {
3638
3638
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
3639
3639
  value: t.prototype
3640
3640
  }), n && Object.assign(e.prototype, n);
3641
- }, cl = (e, t, n, r) => {
3641
+ }, ul = (e, t, n, r) => {
3642
3642
  let o, a, i;
3643
3643
  const s = {};
3644
3644
  if (t = t || {}, e == null) return t;
@@ -3648,11 +3648,11 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3648
3648
  e = n !== !1 && Tr(e);
3649
3649
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
3650
3650
  return t;
3651
- }, ul = (e, t, n) => {
3651
+ }, dl = (e, t, n) => {
3652
3652
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
3653
3653
  const r = e.indexOf(t, n);
3654
3654
  return r !== -1 && r === n;
3655
- }, dl = (e) => {
3655
+ }, fl = (e) => {
3656
3656
  if (!e) return null;
3657
3657
  if (Pt(e)) return e;
3658
3658
  let t = e.length;
@@ -3661,31 +3661,31 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3661
3661
  for (; t-- > 0; )
3662
3662
  n[t] = e[t];
3663
3663
  return n;
3664
- }, fl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Tr(Uint8Array)), hl = (e, t) => {
3664
+ }, hl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Tr(Uint8Array)), pl = (e, t) => {
3665
3665
  const r = (e && e[Symbol.iterator]).call(e);
3666
3666
  let o;
3667
3667
  for (; (o = r.next()) && !o.done; ) {
3668
3668
  const a = o.value;
3669
3669
  t.call(e, a[0], a[1]);
3670
3670
  }
3671
- }, pl = (e, t) => {
3671
+ }, ml = (e, t) => {
3672
3672
  let n;
3673
3673
  const r = [];
3674
3674
  for (; (n = e.exec(t)) !== null; )
3675
3675
  r.push(n);
3676
3676
  return r;
3677
- }, ml = We("HTMLFormElement"), gl = (e) => e.toLowerCase().replace(
3677
+ }, gl = We("HTMLFormElement"), vl = (e) => e.toLowerCase().replace(
3678
3678
  /[-_\s]([a-z\d])(\w*)/g,
3679
3679
  function(n, r, o) {
3680
3680
  return r.toUpperCase() + o;
3681
3681
  }
3682
- ), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vl = We("RegExp"), ea = (e, t) => {
3682
+ ), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yl = We("RegExp"), ea = (e, t) => {
3683
3683
  const n = Object.getOwnPropertyDescriptors(e), r = {};
3684
3684
  Xt(n, (o, a) => {
3685
3685
  let i;
3686
3686
  (i = t(o, a, e)) !== !1 && (r[a] = i || o);
3687
3687
  }), Object.defineProperties(e, r);
3688
- }, yl = (e) => {
3688
+ }, wl = (e) => {
3689
3689
  ea(e, (t, n) => {
3690
3690
  if (Be(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
3691
3691
  return !1;
@@ -3700,19 +3700,19 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3700
3700
  });
3701
3701
  }
3702
3702
  });
3703
- }, wl = (e, t) => {
3703
+ }, bl = (e, t) => {
3704
3704
  const n = {}, r = (o) => {
3705
3705
  o.forEach((a) => {
3706
3706
  n[a] = !0;
3707
3707
  });
3708
3708
  };
3709
3709
  return Pt(e) ? r(e) : r(String(e).split(t)), n;
3710
- }, bl = () => {
3711
- }, Sl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
3712
- function Cl(e) {
3710
+ }, Sl = () => {
3711
+ }, Cl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
3712
+ function El(e) {
3713
3713
  return !!(e && Be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
3714
3714
  }
3715
- const El = (e) => {
3715
+ const Rl = (e) => {
3716
3716
  const t = new Array(10), n = (r, o) => {
3717
3717
  if (Bn(r)) {
3718
3718
  if (t.indexOf(r) >= 0)
@@ -3729,70 +3729,70 @@ const El = (e) => {
3729
3729
  return r;
3730
3730
  };
3731
3731
  return n(e, 0);
3732
- }, Rl = We("AsyncFunction"), kl = (e) => e && (Bn(e) || Be(e)) && Be(e.then) && Be(e.catch), ta = ((e, t) => e ? setImmediate : t ? ((n, r) => (yt.addEventListener("message", ({ source: o, data: a }) => {
3732
+ }, xl = We("AsyncFunction"), Ll = (e) => e && (Bn(e) || Be(e)) && Be(e.then) && Be(e.catch), ta = ((e, t) => e ? setImmediate : t ? ((n, r) => (yt.addEventListener("message", ({ source: o, data: a }) => {
3733
3733
  o === yt && a === n && r.length && r.shift()();
3734
3734
  }, !1), (o) => {
3735
3735
  r.push(o), yt.postMessage(n, "*");
3736
3736
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
3737
3737
  typeof setImmediate == "function",
3738
3738
  Be(yt.postMessage)
3739
- ), xl = typeof queueMicrotask < "u" ? queueMicrotask.bind(yt) : typeof process < "u" && process.nextTick || ta, C = {
3739
+ ), kl = typeof queueMicrotask < "u" ? queueMicrotask.bind(yt) : typeof process < "u" && process.nextTick || ta, C = {
3740
3740
  isArray: Pt,
3741
3741
  isArrayBuffer: Go,
3742
- isBuffer: zs,
3743
- isFormData: Qs,
3744
- isArrayBufferView: Js,
3745
- isString: Ws,
3742
+ isBuffer: Js,
3743
+ isFormData: el,
3744
+ isArrayBufferView: Ws,
3745
+ isString: Zs,
3746
3746
  isNumber: Yo,
3747
- isBoolean: Zs,
3747
+ isBoolean: qs,
3748
3748
  isObject: Bn,
3749
3749
  isPlainObject: wn,
3750
- isReadableStream: tl,
3751
- isRequest: nl,
3752
- isResponse: rl,
3753
- isHeaders: ol,
3750
+ isReadableStream: nl,
3751
+ isRequest: rl,
3752
+ isResponse: ol,
3753
+ isHeaders: al,
3754
3754
  isUndefined: Gt,
3755
- isDate: qs,
3756
- isFile: Ks,
3757
- isBlob: Gs,
3758
- isRegExp: vl,
3755
+ isDate: Ks,
3756
+ isFile: Gs,
3757
+ isBlob: Ys,
3758
+ isRegExp: yl,
3759
3759
  isFunction: Be,
3760
- isStream: Xs,
3761
- isURLSearchParams: el,
3762
- isTypedArray: fl,
3763
- isFileList: Ys,
3760
+ isStream: Qs,
3761
+ isURLSearchParams: tl,
3762
+ isTypedArray: hl,
3763
+ isFileList: Xs,
3764
3764
  forEach: Xt,
3765
3765
  merge: dr,
3766
- extend: il,
3767
- trim: al,
3768
- stripBOM: sl,
3769
- inherits: ll,
3770
- toFlatObject: cl,
3766
+ extend: sl,
3767
+ trim: il,
3768
+ stripBOM: ll,
3769
+ inherits: cl,
3770
+ toFlatObject: ul,
3771
3771
  kindOf: Fn,
3772
3772
  kindOfTest: We,
3773
- endsWith: ul,
3774
- toArray: dl,
3775
- forEachEntry: hl,
3776
- matchAll: pl,
3777
- isHTMLForm: ml,
3773
+ endsWith: dl,
3774
+ toArray: fl,
3775
+ forEachEntry: pl,
3776
+ matchAll: ml,
3777
+ isHTMLForm: gl,
3778
3778
  hasOwnProperty: po,
3779
3779
  hasOwnProp: po,
3780
3780
  // an alias to avoid ESLint no-prototype-builtins detection
3781
3781
  reduceDescriptors: ea,
3782
- freezeMethods: yl,
3783
- toObjectSet: wl,
3784
- toCamelCase: gl,
3785
- noop: bl,
3786
- toFiniteNumber: Sl,
3782
+ freezeMethods: wl,
3783
+ toObjectSet: bl,
3784
+ toCamelCase: vl,
3785
+ noop: Sl,
3786
+ toFiniteNumber: Cl,
3787
3787
  findKey: Xo,
3788
3788
  global: yt,
3789
3789
  isContextDefined: Qo,
3790
- isSpecCompliantForm: Cl,
3791
- toJSONObject: El,
3792
- isAsyncFn: Rl,
3793
- isThenable: kl,
3790
+ isSpecCompliantForm: El,
3791
+ toJSONObject: Rl,
3792
+ isAsyncFn: xl,
3793
+ isThenable: Ll,
3794
3794
  setImmediate: ta,
3795
- asap: xl
3795
+ asap: kl
3796
3796
  };
3797
3797
  function $(e, t, n, r, o) {
3798
3798
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
@@ -3844,7 +3844,7 @@ $.from = (e, t, n, r, o, a) => {
3844
3844
  return l !== Error.prototype;
3845
3845
  }, (s) => s !== "isAxiosError"), $.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
3846
3846
  };
3847
- const Ll = null;
3847
+ const Nl = null;
3848
3848
  function fr(e) {
3849
3849
  return C.isPlainObject(e) || C.isArray(e);
3850
3850
  }
@@ -3856,10 +3856,10 @@ function mo(e, t, n) {
3856
3856
  return o = oa(o), !n && a ? "[" + o + "]" : o;
3857
3857
  }).join(n ? "." : "") : t;
3858
3858
  }
3859
- function Nl(e) {
3859
+ function _l(e) {
3860
3860
  return C.isArray(e) && !e.some(fr);
3861
3861
  }
3862
- const _l = C.toFlatObject(C, {}, null, function(t) {
3862
+ const Tl = C.toFlatObject(C, {}, null, function(t) {
3863
3863
  return /^is[A-Z]/.test(t);
3864
3864
  });
3865
3865
  function Hn(e, t, n) {
@@ -3884,22 +3884,22 @@ function Hn(e, t, n) {
3884
3884
  return C.isArrayBuffer(m) || C.isTypedArray(m) ? l && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
3885
3885
  }
3886
3886
  function u(m, p, v) {
3887
- let k = m;
3887
+ let x = m;
3888
3888
  if (m && !v && typeof m == "object") {
3889
3889
  if (C.endsWith(p, "{}"))
3890
3890
  p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
3891
- else if (C.isArray(m) && Nl(m) || (C.isFileList(m) || C.endsWith(p, "[]")) && (k = C.toArray(m)))
3892
- return p = oa(p), k.forEach(function(x, _) {
3893
- !(C.isUndefined(x) || x === null) && t.append(
3891
+ else if (C.isArray(m) && _l(m) || (C.isFileList(m) || C.endsWith(p, "[]")) && (x = C.toArray(m)))
3892
+ return p = oa(p), x.forEach(function(L, _) {
3893
+ !(C.isUndefined(L) || L === null) && t.append(
3894
3894
  // eslint-disable-next-line no-nested-ternary
3895
3895
  i === !0 ? mo([p], _, a) : i === null ? p : p + "[]",
3896
- c(x)
3896
+ c(L)
3897
3897
  );
3898
3898
  }), !1;
3899
3899
  }
3900
3900
  return fr(m) ? !0 : (t.append(mo(v, p, a), c(m)), !1);
3901
3901
  }
3902
- const d = [], h = Object.assign(_l, {
3902
+ const d = [], h = Object.assign(Tl, {
3903
3903
  defaultVisitor: u,
3904
3904
  convertValue: c,
3905
3905
  isVisitable: fr
@@ -3908,14 +3908,14 @@ function Hn(e, t, n) {
3908
3908
  if (!C.isUndefined(m)) {
3909
3909
  if (d.indexOf(m) !== -1)
3910
3910
  throw Error("Circular reference detected in " + p.join("."));
3911
- d.push(m), C.forEach(m, function(k, b) {
3912
- (!(C.isUndefined(k) || k === null) && o.call(
3911
+ d.push(m), C.forEach(m, function(x, b) {
3912
+ (!(C.isUndefined(x) || x === null) && o.call(
3913
3913
  t,
3914
- k,
3914
+ x,
3915
3915
  C.isString(b) ? b.trim() : b,
3916
3916
  p,
3917
3917
  h
3918
- )) === !0 && y(k, p ? p.concat(b) : [b]);
3918
+ )) === !0 && y(x, p ? p.concat(b) : [b]);
3919
3919
  }), d.pop();
3920
3920
  }
3921
3921
  }
@@ -3952,13 +3952,13 @@ aa.toString = function(t) {
3952
3952
  return n(o[0]) + "=" + n(o[1]);
3953
3953
  }, "").join("&");
3954
3954
  };
3955
- function Tl(e) {
3955
+ function Pl(e) {
3956
3956
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3957
3957
  }
3958
3958
  function ia(e, t, n) {
3959
3959
  if (!t)
3960
3960
  return e;
3961
- const r = n && n.encode || Tl;
3961
+ const r = n && n.encode || Pl;
3962
3962
  C.isFunction(n) && (n = {
3963
3963
  serialize: n
3964
3964
  });
@@ -4028,37 +4028,37 @@ const sa = {
4028
4028
  silentJSONParsing: !0,
4029
4029
  forcedJSONParsing: !0,
4030
4030
  clarifyTimeoutError: !1
4031
- }, Pl = typeof URLSearchParams < "u" ? URLSearchParams : Pr, Ol = typeof FormData < "u" ? FormData : null, Ml = typeof Blob < "u" ? Blob : null, Al = {
4031
+ }, Ol = typeof URLSearchParams < "u" ? URLSearchParams : Pr, Al = typeof FormData < "u" ? FormData : null, Ml = typeof Blob < "u" ? Blob : null, Dl = {
4032
4032
  isBrowser: !0,
4033
4033
  classes: {
4034
- URLSearchParams: Pl,
4035
- FormData: Ol,
4034
+ URLSearchParams: Ol,
4035
+ FormData: Al,
4036
4036
  Blob: Ml
4037
4037
  },
4038
4038
  protocols: ["http", "https", "file", "blob", "url", "data"]
4039
- }, Or = typeof window < "u" && typeof document < "u", hr = typeof navigator == "object" && navigator || void 0, Dl = Or && (!hr || ["ReactNative", "NativeScript", "NS"].indexOf(hr.product) < 0), Fl = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
4040
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Il = Or && window.location.href || "http://localhost", Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4039
+ }, Or = typeof window < "u" && typeof document < "u", hr = typeof navigator == "object" && navigator || void 0, Fl = Or && (!hr || ["ReactNative", "NativeScript", "NS"].indexOf(hr.product) < 0), Il = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
4040
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bl = Or && window.location.href || "http://localhost", Hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4041
4041
  __proto__: null,
4042
4042
  hasBrowserEnv: Or,
4043
- hasStandardBrowserEnv: Dl,
4044
- hasStandardBrowserWebWorkerEnv: Fl,
4043
+ hasStandardBrowserEnv: Fl,
4044
+ hasStandardBrowserWebWorkerEnv: Il,
4045
4045
  navigator: hr,
4046
- origin: Il
4046
+ origin: Bl
4047
4047
  }, Symbol.toStringTag, { value: "Module" })), Ne = {
4048
- ...Bl,
4049
- ...Al
4048
+ ...Hl,
4049
+ ...Dl
4050
4050
  };
4051
- function Hl(e, t) {
4051
+ function Ul(e, t) {
4052
4052
  return Hn(e, new Ne.classes.URLSearchParams(), Object.assign({
4053
4053
  visitor: function(n, r, o, a) {
4054
4054
  return Ne.isNode && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
4055
4055
  }
4056
4056
  }, t));
4057
4057
  }
4058
- function Ul(e) {
4058
+ function Vl(e) {
4059
4059
  return C.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
4060
4060
  }
4061
- function Vl(e) {
4061
+ function jl(e) {
4062
4062
  const t = {}, n = Object.keys(e);
4063
4063
  let r;
4064
4064
  const o = n.length;
@@ -4072,17 +4072,17 @@ function la(e) {
4072
4072
  let i = n[a++];
4073
4073
  if (i === "__proto__") return !0;
4074
4074
  const s = Number.isFinite(+i), l = a >= n.length;
4075
- return i = !i && C.isArray(o) ? o.length : i, l ? (C.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !C.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && C.isArray(o[i]) && (o[i] = Vl(o[i])), !s);
4075
+ return i = !i && C.isArray(o) ? o.length : i, l ? (C.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !C.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && C.isArray(o[i]) && (o[i] = jl(o[i])), !s);
4076
4076
  }
4077
4077
  if (C.isFormData(e) && C.isFunction(e.entries)) {
4078
4078
  const n = {};
4079
4079
  return C.forEachEntry(e, (r, o) => {
4080
- t(Ul(r), o, n, 0);
4080
+ t(Vl(r), o, n, 0);
4081
4081
  }), n;
4082
4082
  }
4083
4083
  return null;
4084
4084
  }
4085
- function jl(e, t, n) {
4085
+ function $l(e, t, n) {
4086
4086
  if (C.isString(e))
4087
4087
  try {
4088
4088
  return (t || JSON.parse)(e), C.trim(e);
@@ -4108,7 +4108,7 @@ const Qt = {
4108
4108
  let s;
4109
4109
  if (a) {
4110
4110
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
4111
- return Hl(t, this.formSerializer).toString();
4111
+ return Ul(t, this.formSerializer).toString();
4112
4112
  if ((s = C.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
4113
4113
  const l = this.env && this.env.FormData;
4114
4114
  return Hn(
@@ -4118,7 +4118,7 @@ const Qt = {
4118
4118
  );
4119
4119
  }
4120
4120
  }
4121
- return a || o ? (n.setContentType("application/json", !1), jl(t)) : t;
4121
+ return a || o ? (n.setContentType("application/json", !1), $l(t)) : t;
4122
4122
  }],
4123
4123
  transformResponse: [function(t) {
4124
4124
  const n = this.transitional || Qt.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
@@ -4161,7 +4161,7 @@ const Qt = {
4161
4161
  C.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
4162
4162
  Qt.headers[e] = {};
4163
4163
  });
4164
- const $l = C.toObjectSet([
4164
+ const zl = C.toObjectSet([
4165
4165
  "age",
4166
4166
  "authorization",
4167
4167
  "content-length",
@@ -4179,12 +4179,12 @@ const $l = C.toObjectSet([
4179
4179
  "referer",
4180
4180
  "retry-after",
4181
4181
  "user-agent"
4182
- ]), zl = (e) => {
4182
+ ]), Jl = (e) => {
4183
4183
  const t = {};
4184
4184
  let n, r, o;
4185
4185
  return e && e.split(`
4186
4186
  `).forEach(function(i) {
4187
- o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && $l[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
4187
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zl[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
4188
4188
  }), t;
4189
4189
  }, yo = Symbol("internals");
4190
4190
  function Ht(e) {
@@ -4193,14 +4193,14 @@ function Ht(e) {
4193
4193
  function bn(e) {
4194
4194
  return e === !1 || e == null ? e : C.isArray(e) ? e.map(bn) : String(e);
4195
4195
  }
4196
- function Jl(e) {
4196
+ function Wl(e) {
4197
4197
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
4198
4198
  let r;
4199
4199
  for (; r = n.exec(e); )
4200
4200
  t[r[1]] = r[2];
4201
4201
  return t;
4202
4202
  }
4203
- const Wl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
4203
+ const Zl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
4204
4204
  function Qn(e, t, n, r, o) {
4205
4205
  if (C.isFunction(r))
4206
4206
  return r.call(this, t, n);
@@ -4211,10 +4211,10 @@ function Qn(e, t, n, r, o) {
4211
4211
  return r.test(t);
4212
4212
  }
4213
4213
  }
4214
- function Zl(e) {
4214
+ function ql(e) {
4215
4215
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
4216
4216
  }
4217
- function ql(e, t) {
4217
+ function Kl(e, t) {
4218
4218
  const n = C.toCamelCase(" " + t);
4219
4219
  ["get", "set", "has"].forEach((r) => {
4220
4220
  Object.defineProperty(e, r + n, {
@@ -4241,8 +4241,8 @@ let Fe = class {
4241
4241
  const i = (s, l) => C.forEach(s, (c, u) => a(c, u, l));
4242
4242
  if (C.isPlainObject(t) || t instanceof this.constructor)
4243
4243
  i(t, n);
4244
- else if (C.isString(t) && (t = t.trim()) && !Wl(t))
4245
- i(zl(t), n);
4244
+ else if (C.isString(t) && (t = t.trim()) && !Zl(t))
4245
+ i(Jl(t), n);
4246
4246
  else if (C.isHeaders(t))
4247
4247
  for (const [s, l] of t.entries())
4248
4248
  a(l, s, r);
@@ -4258,7 +4258,7 @@ let Fe = class {
4258
4258
  if (!n)
4259
4259
  return o;
4260
4260
  if (n === !0)
4261
- return Jl(o);
4261
+ return Wl(o);
4262
4262
  if (C.isFunction(n))
4263
4263
  return n.call(this, o, r);
4264
4264
  if (C.isRegExp(n))
@@ -4302,7 +4302,7 @@ let Fe = class {
4302
4302
  n[i] = bn(o), delete n[a];
4303
4303
  return;
4304
4304
  }
4305
- const s = t ? Zl(a) : String(a).trim();
4305
+ const s = t ? ql(a) : String(a).trim();
4306
4306
  s !== a && delete n[a], n[s] = bn(o), r[s] = !0;
4307
4307
  }), this;
4308
4308
  }
@@ -4338,7 +4338,7 @@ let Fe = class {
4338
4338
  }).accessors, o = this.prototype;
4339
4339
  function a(i) {
4340
4340
  const s = Ht(i);
4341
- r[s] || (ql(o, i), r[s] = !0);
4341
+ r[s] || (Kl(o, i), r[s] = !0);
4342
4342
  }
4343
4343
  return C.isArray(t) ? t.forEach(a) : a(t), this;
4344
4344
  }
@@ -4380,11 +4380,11 @@ function ua(e, t, n) {
4380
4380
  n
4381
4381
  ));
4382
4382
  }
4383
- function Kl(e) {
4383
+ function Gl(e) {
4384
4384
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
4385
4385
  return t && t[1] || "";
4386
4386
  }
4387
- function Gl(e, t) {
4387
+ function Yl(e, t) {
4388
4388
  e = e || 10;
4389
4389
  const n = new Array(e), r = new Array(e);
4390
4390
  let o = 0, a = 0, i;
@@ -4400,7 +4400,7 @@ function Gl(e, t) {
4400
4400
  return y ? Math.round(h * 1e3 / y) : void 0;
4401
4401
  };
4402
4402
  }
4403
- function Yl(e, t) {
4403
+ function Xl(e, t) {
4404
4404
  let n = 0, r = 1e3 / t, o, a;
4405
4405
  const i = (c, u = Date.now()) => {
4406
4406
  n = u, o = null, a && (clearTimeout(a), a = null), e.apply(null, c);
@@ -4412,10 +4412,10 @@ function Yl(e, t) {
4412
4412
  }, r - d)));
4413
4413
  }, () => o && i(o)];
4414
4414
  }
4415
- const Ln = (e, t, n = 3) => {
4415
+ const kn = (e, t, n = 3) => {
4416
4416
  let r = 0;
4417
- const o = Gl(50, 250);
4418
- return Yl((a) => {
4417
+ const o = Yl(50, 250);
4418
+ return Xl((a) => {
4419
4419
  const i = a.loaded, s = a.lengthComputable ? a.total : void 0, l = i - r, c = o(l), u = i <= s;
4420
4420
  r = i;
4421
4421
  const d = {
@@ -4438,10 +4438,10 @@ const Ln = (e, t, n = 3) => {
4438
4438
  total: e,
4439
4439
  loaded: r
4440
4440
  }), t[1]];
4441
- }, bo = (e) => (...t) => C.asap(() => e(...t)), Xl = Ne.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ne.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
4441
+ }, bo = (e) => (...t) => C.asap(() => e(...t)), Ql = Ne.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ne.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
4442
4442
  new URL(Ne.origin),
4443
4443
  Ne.navigator && /(msie|trident)/i.test(Ne.navigator.userAgent)
4444
- ) : () => !0, Ql = Ne.hasStandardBrowserEnv ? (
4444
+ ) : () => !0, ec = Ne.hasStandardBrowserEnv ? (
4445
4445
  // Standard browser envs support document.cookie
4446
4446
  {
4447
4447
  write(e, t, n, r, o, a) {
@@ -4468,15 +4468,15 @@ const Ln = (e, t, n = 3) => {
4468
4468
  }
4469
4469
  }
4470
4470
  );
4471
- function ec(e) {
4471
+ function tc(e) {
4472
4472
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
4473
4473
  }
4474
- function tc(e, t) {
4474
+ function nc(e, t) {
4475
4475
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
4476
4476
  }
4477
4477
  function da(e, t, n) {
4478
- let r = !ec(t);
4479
- return e && r || n == !1 ? tc(e, t) : t;
4478
+ let r = !tc(t);
4479
+ return e && r || n == !1 ? nc(e, t) : t;
4480
4480
  }
4481
4481
  const So = (e) => e instanceof Fe ? { ...e } : e;
4482
4482
  function bt(e, t) {
@@ -4559,12 +4559,12 @@ const fa = (e) => {
4559
4559
  i.setContentType([c || "multipart/form-data", ...u].join("; "));
4560
4560
  }
4561
4561
  }
4562
- if (Ne.hasStandardBrowserEnv && (r && C.isFunction(r) && (r = r(t)), r || r !== !1 && Xl(t.url))) {
4563
- const c = o && a && Ql.read(a);
4562
+ if (Ne.hasStandardBrowserEnv && (r && C.isFunction(r) && (r = r(t)), r || r !== !1 && Ql(t.url))) {
4563
+ const c = o && a && ec.read(a);
4564
4564
  c && i.set(o, c);
4565
4565
  }
4566
4566
  return t;
4567
- }, nc = typeof XMLHttpRequest < "u", rc = nc && function(e) {
4567
+ }, rc = typeof XMLHttpRequest < "u", oc = rc && function(e) {
4568
4568
  return new Promise(function(n, r) {
4569
4569
  const o = fa(e);
4570
4570
  let a = o.data;
@@ -4575,16 +4575,16 @@ const fa = (e) => {
4575
4575
  }
4576
4576
  let v = new XMLHttpRequest();
4577
4577
  v.open(o.method.toUpperCase(), o.url, !0), v.timeout = o.timeout;
4578
- function k() {
4578
+ function x() {
4579
4579
  if (!v)
4580
4580
  return;
4581
- const x = Fe.from(
4581
+ const L = Fe.from(
4582
4582
  "getAllResponseHeaders" in v && v.getAllResponseHeaders()
4583
4583
  ), N = {
4584
4584
  data: !s || s === "text" || s === "json" ? v.responseText : v.response,
4585
4585
  status: v.status,
4586
4586
  statusText: v.statusText,
4587
- headers: x,
4587
+ headers: L,
4588
4588
  config: e,
4589
4589
  request: v
4590
4590
  };
@@ -4594,8 +4594,8 @@ const fa = (e) => {
4594
4594
  r(w), p();
4595
4595
  }, N), v = null;
4596
4596
  }
4597
- "onloadend" in v ? v.onloadend = k : v.onreadystatechange = function() {
4598
- !v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(k);
4597
+ "onloadend" in v ? v.onloadend = x : v.onreadystatechange = function() {
4598
+ !v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(x);
4599
4599
  }, v.onabort = function() {
4600
4600
  v && (r(new $("Request aborted", $.ECONNABORTED, e, v)), v = null);
4601
4601
  }, v.onerror = function() {
@@ -4611,17 +4611,17 @@ const fa = (e) => {
4611
4611
  )), v = null;
4612
4612
  }, a === void 0 && i.setContentType(null), "setRequestHeader" in v && C.forEach(i.toJSON(), function(_, N) {
4613
4613
  v.setRequestHeader(N, _);
4614
- }), C.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), c && ([h, m] = Ln(c, !0), v.addEventListener("progress", h)), l && v.upload && ([d, y] = Ln(l), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (u = (x) => {
4615
- v && (r(!x || x.type ? new Ot(null, e, v) : x), v.abort(), v = null);
4614
+ }), C.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), c && ([h, m] = kn(c, !0), v.addEventListener("progress", h)), l && v.upload && ([d, y] = kn(l), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (u = (L) => {
4615
+ v && (r(!L || L.type ? new Ot(null, e, v) : L), v.abort(), v = null);
4616
4616
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
4617
- const b = Kl(o.url);
4617
+ const b = Gl(o.url);
4618
4618
  if (b && Ne.protocols.indexOf(b) === -1) {
4619
4619
  r(new $("Unsupported protocol " + b + ":", $.ERR_BAD_REQUEST, e));
4620
4620
  return;
4621
4621
  }
4622
4622
  v.send(a || null);
4623
4623
  });
4624
- }, oc = (e, t) => {
4624
+ }, ac = (e, t) => {
4625
4625
  const { length: n } = e = e ? e.filter(Boolean) : [];
4626
4626
  if (t || n) {
4627
4627
  let r = new AbortController(), o;
@@ -4644,7 +4644,7 @@ const fa = (e) => {
4644
4644
  const { signal: l } = r;
4645
4645
  return l.unsubscribe = () => C.asap(s), l;
4646
4646
  }
4647
- }, ac = function* (e, t) {
4647
+ }, ic = function* (e, t) {
4648
4648
  let n = e.byteLength;
4649
4649
  if (n < t) {
4650
4650
  yield e;
@@ -4653,10 +4653,10 @@ const fa = (e) => {
4653
4653
  let r = 0, o;
4654
4654
  for (; r < n; )
4655
4655
  o = r + t, yield e.slice(r, o), r = o;
4656
- }, ic = async function* (e, t) {
4657
- for await (const n of sc(e))
4658
- yield* ac(n, t);
4659
- }, sc = async function* (e) {
4656
+ }, sc = async function* (e, t) {
4657
+ for await (const n of lc(e))
4658
+ yield* ic(n, t);
4659
+ }, lc = async function* (e) {
4660
4660
  if (e[Symbol.asyncIterator]) {
4661
4661
  yield* e;
4662
4662
  return;
@@ -4673,7 +4673,7 @@ const fa = (e) => {
4673
4673
  await t.cancel();
4674
4674
  }
4675
4675
  }, Co = (e, t, n, r) => {
4676
- const o = ic(e, t);
4676
+ const o = sc(e, t);
4677
4677
  let a = 0, i, s = (l) => {
4678
4678
  i || (i = !0, r && r(l));
4679
4679
  };
@@ -4701,13 +4701,13 @@ const fa = (e) => {
4701
4701
  }, {
4702
4702
  highWaterMark: 2
4703
4703
  });
4704
- }, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = Un && typeof ReadableStream == "function", lc = Un && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), pa = (e, ...t) => {
4704
+ }, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = Un && typeof ReadableStream == "function", cc = Un && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), pa = (e, ...t) => {
4705
4705
  try {
4706
4706
  return !!e(...t);
4707
4707
  } catch {
4708
4708
  return !1;
4709
4709
  }
4710
- }, cc = ha && pa(() => {
4710
+ }, uc = ha && pa(() => {
4711
4711
  let e = !1;
4712
4712
  const t = new Request(Ne.origin, {
4713
4713
  body: new ReadableStream(),
@@ -4727,7 +4727,7 @@ Un && ((e) => {
4727
4727
  });
4728
4728
  });
4729
4729
  })(new Response());
4730
- const uc = async (e) => {
4730
+ const dc = async (e) => {
4731
4731
  if (e == null)
4732
4732
  return 0;
4733
4733
  if (C.isBlob(e))
@@ -4740,11 +4740,11 @@ const uc = async (e) => {
4740
4740
  if (C.isArrayBufferView(e) || C.isArrayBuffer(e))
4741
4741
  return e.byteLength;
4742
4742
  if (C.isURLSearchParams(e) && (e = e + ""), C.isString(e))
4743
- return (await lc(e)).byteLength;
4744
- }, dc = async (e, t) => {
4743
+ return (await cc(e)).byteLength;
4744
+ }, fc = async (e, t) => {
4745
4745
  const n = C.toFiniteNumber(e.getContentLength());
4746
- return n ?? uc(t);
4747
- }, fc = Un && (async (e) => {
4746
+ return n ?? dc(t);
4747
+ }, hc = Un && (async (e) => {
4748
4748
  let {
4749
4749
  url: t,
4750
4750
  method: n,
@@ -4760,13 +4760,13 @@ const uc = async (e) => {
4760
4760
  fetchOptions: h
4761
4761
  } = fa(e);
4762
4762
  c = c ? (c + "").toLowerCase() : "text";
4763
- let y = oc([o, a && a.toAbortSignal()], i), m;
4763
+ let y = ac([o, a && a.toAbortSignal()], i), m;
4764
4764
  const p = y && y.unsubscribe && (() => {
4765
4765
  y.unsubscribe();
4766
4766
  });
4767
4767
  let v;
4768
4768
  try {
4769
- if (l && cc && n !== "get" && n !== "head" && (v = await dc(u, r)) !== 0) {
4769
+ if (l && uc && n !== "get" && n !== "head" && (v = await fc(u, r)) !== 0) {
4770
4770
  let N = new Request(t, {
4771
4771
  method: "POST",
4772
4772
  body: r,
@@ -4775,13 +4775,13 @@ const uc = async (e) => {
4775
4775
  if (C.isFormData(r) && (U = N.headers.get("content-type")) && u.setContentType(U), N.body) {
4776
4776
  const [w, T] = wo(
4777
4777
  v,
4778
- Ln(bo(l))
4778
+ kn(bo(l))
4779
4779
  );
4780
4780
  r = Co(N.body, Eo, w, T);
4781
4781
  }
4782
4782
  }
4783
4783
  C.isString(d) || (d = d ? "include" : "omit");
4784
- const k = "credentials" in Request.prototype;
4784
+ const x = "credentials" in Request.prototype;
4785
4785
  m = new Request(t, {
4786
4786
  ...h,
4787
4787
  signal: y,
@@ -4789,18 +4789,18 @@ const uc = async (e) => {
4789
4789
  headers: u.normalize().toJSON(),
4790
4790
  body: r,
4791
4791
  duplex: "half",
4792
- credentials: k ? d : void 0
4792
+ credentials: x ? d : void 0
4793
4793
  });
4794
4794
  let b = await fetch(m);
4795
- const x = pr && (c === "stream" || c === "response");
4796
- if (pr && (s || x && p)) {
4795
+ const L = pr && (c === "stream" || c === "response");
4796
+ if (pr && (s || L && p)) {
4797
4797
  const N = {};
4798
4798
  ["status", "statusText", "headers"].forEach((K) => {
4799
4799
  N[K] = b[K];
4800
4800
  });
4801
4801
  const U = C.toFiniteNumber(b.headers.get("content-length")), [w, T] = s && wo(
4802
4802
  U,
4803
- Ln(bo(s), !0)
4803
+ kn(bo(s), !0)
4804
4804
  ) || [];
4805
4805
  b = new Response(
4806
4806
  Co(b.body, Eo, w, () => {
@@ -4811,7 +4811,7 @@ const uc = async (e) => {
4811
4811
  }
4812
4812
  c = c || "text";
4813
4813
  let _ = await Nn[C.findKey(Nn, c) || "text"](b, e);
4814
- return !x && p && p(), await new Promise((N, U) => {
4814
+ return !L && p && p(), await new Promise((N, U) => {
4815
4815
  ua(N, U, {
4816
4816
  data: _,
4817
4817
  headers: Fe.from(b.headers),
@@ -4821,18 +4821,18 @@ const uc = async (e) => {
4821
4821
  request: m
4822
4822
  });
4823
4823
  });
4824
- } catch (k) {
4825
- throw p && p(), k && k.name === "TypeError" && /fetch/i.test(k.message) ? Object.assign(
4824
+ } catch (x) {
4825
+ throw p && p(), x && x.name === "TypeError" && /fetch/i.test(x.message) ? Object.assign(
4826
4826
  new $("Network Error", $.ERR_NETWORK, e, m),
4827
4827
  {
4828
- cause: k.cause || k
4828
+ cause: x.cause || x
4829
4829
  }
4830
- ) : $.from(k, k && k.code, e, m);
4830
+ ) : $.from(x, x && x.code, e, m);
4831
4831
  }
4832
4832
  }), mr = {
4833
- http: Ll,
4834
- xhr: rc,
4835
- fetch: fc
4833
+ http: Nl,
4834
+ xhr: oc,
4835
+ fetch: hc
4836
4836
  };
4837
4837
  C.forEach(mr, (e, t) => {
4838
4838
  if (e) {
@@ -4843,7 +4843,7 @@ C.forEach(mr, (e, t) => {
4843
4843
  Object.defineProperty(e, "adapterName", { value: t });
4844
4844
  }
4845
4845
  });
4846
- const Ro = (e) => `- ${e}`, hc = (e) => C.isFunction(e) || e === null || e === !1, ma = {
4846
+ const Ro = (e) => `- ${e}`, pc = (e) => C.isFunction(e) || e === null || e === !1, ma = {
4847
4847
  getAdapter: (e) => {
4848
4848
  e = C.isArray(e) ? e : [e];
4849
4849
  const { length: t } = e;
@@ -4852,7 +4852,7 @@ const Ro = (e) => `- ${e}`, hc = (e) => C.isFunction(e) || e === null || e === !
4852
4852
  for (let a = 0; a < t; a++) {
4853
4853
  n = e[a];
4854
4854
  let i;
4855
- if (r = n, !hc(n) && (r = mr[(i = String(n)).toLowerCase()], r === void 0))
4855
+ if (r = n, !pc(n) && (r = mr[(i = String(n)).toLowerCase()], r === void 0))
4856
4856
  throw new $(`Unknown adapter '${i}'`);
4857
4857
  if (r)
4858
4858
  break;
@@ -4878,7 +4878,7 @@ function tr(e) {
4878
4878
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
4879
4879
  throw new Ot(null, e);
4880
4880
  }
4881
- function ko(e) {
4881
+ function xo(e) {
4882
4882
  return tr(e), e.headers = Fe.from(e.headers), e.data = er.call(
4883
4883
  e,
4884
4884
  e.transformRequest
@@ -4902,7 +4902,7 @@ const ga = "1.8.1", Vn = {};
4902
4902
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
4903
4903
  };
4904
4904
  });
4905
- const xo = {};
4905
+ const Lo = {};
4906
4906
  Vn.transitional = function(t, n, r) {
4907
4907
  function o(a, i) {
4908
4908
  return "[Axios v" + ga + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
@@ -4913,7 +4913,7 @@ Vn.transitional = function(t, n, r) {
4913
4913
  o(i, " has been removed" + (n ? " in " + n : "")),
4914
4914
  $.ERR_DEPRECATED
4915
4915
  );
4916
- return n && !xo[i] && (xo[i] = !0, console.warn(
4916
+ return n && !Lo[i] && (Lo[i] = !0, console.warn(
4917
4917
  o(
4918
4918
  i,
4919
4919
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -4924,7 +4924,7 @@ Vn.transitional = function(t, n, r) {
4924
4924
  Vn.spelling = function(t) {
4925
4925
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
4926
4926
  };
4927
- function pc(e, t, n) {
4927
+ function mc(e, t, n) {
4928
4928
  if (typeof e != "object")
4929
4929
  throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
4930
4930
  const r = Object.keys(e);
@@ -4942,7 +4942,7 @@ function pc(e, t, n) {
4942
4942
  }
4943
4943
  }
4944
4944
  const Sn = {
4945
- assertOptions: pc,
4945
+ assertOptions: mc,
4946
4946
  validators: Vn
4947
4947
  }, Ye = Sn.validators;
4948
4948
  let wt = class {
@@ -5014,7 +5014,7 @@ let wt = class {
5014
5014
  });
5015
5015
  let u, d = 0, h;
5016
5016
  if (!l) {
5017
- const m = [ko.bind(this), void 0];
5017
+ const m = [xo.bind(this), void 0];
5018
5018
  for (m.unshift.apply(m, s), m.push.apply(m, c), h = m.length, u = Promise.resolve(n); d < h; )
5019
5019
  u = u.then(m[d++], m[d++]);
5020
5020
  return u;
@@ -5031,7 +5031,7 @@ let wt = class {
5031
5031
  }
5032
5032
  }
5033
5033
  try {
5034
- u = ko.call(this, y);
5034
+ u = xo.call(this, y);
5035
5035
  } catch (m) {
5036
5036
  return Promise.reject(m);
5037
5037
  }
@@ -5069,7 +5069,7 @@ C.forEach(["post", "put", "patch"], function(t) {
5069
5069
  }
5070
5070
  wt.prototype[t] = n(), wt.prototype[t + "Form"] = n(!0);
5071
5071
  });
5072
- let mc = class va {
5072
+ let gc = class va {
5073
5073
  constructor(t) {
5074
5074
  if (typeof t != "function")
5075
5075
  throw new TypeError("executor must be a function.");
@@ -5142,12 +5142,12 @@ let mc = class va {
5142
5142
  };
5143
5143
  }
5144
5144
  };
5145
- function gc(e) {
5145
+ function vc(e) {
5146
5146
  return function(n) {
5147
5147
  return e.apply(null, n);
5148
5148
  };
5149
5149
  }
5150
- function vc(e) {
5150
+ function yc(e) {
5151
5151
  return C.isObject(e) && e.isAxiosError === !0;
5152
5152
  }
5153
5153
  const gr = {
@@ -5227,7 +5227,7 @@ function ya(e) {
5227
5227
  const de = ya(Qt);
5228
5228
  de.Axios = wt;
5229
5229
  de.CanceledError = Ot;
5230
- de.CancelToken = mc;
5230
+ de.CancelToken = gc;
5231
5231
  de.isCancel = ca;
5232
5232
  de.VERSION = ga;
5233
5233
  de.toFormData = Hn;
@@ -5236,8 +5236,8 @@ de.Cancel = de.CanceledError;
5236
5236
  de.all = function(t) {
5237
5237
  return Promise.all(t);
5238
5238
  };
5239
- de.spread = gc;
5240
- de.isAxiosError = vc;
5239
+ de.spread = vc;
5240
+ de.isAxiosError = yc;
5241
5241
  de.mergeConfig = bt;
5242
5242
  de.AxiosHeaders = Fe;
5243
5243
  de.formToJSON = (e) => la(C.isHTMLForm(e) ? new FormData(e) : e);
@@ -5246,7 +5246,7 @@ de.HttpStatusCode = gr;
5246
5246
  de.default = de;
5247
5247
  const {
5248
5248
  Axios: Bd,
5249
- AxiosError: yc,
5249
+ AxiosError: wc,
5250
5250
  CanceledError: Hd,
5251
5251
  isCancel: Ud,
5252
5252
  CancelToken: Vd,
@@ -5288,26 +5288,26 @@ const {
5288
5288
  };
5289
5289
  } catch (m) {
5290
5290
  const p = m, v = (h = p.response) == null ? void 0 : h.data;
5291
- let k = "Something Went Wrong";
5292
- v && (k = v.errors[0]);
5291
+ let x = "Something Went Wrong";
5292
+ v && (x = v.errors[0]);
5293
5293
  const b = (y = p.response) == null ? void 0 : y.status;
5294
5294
  if (b === 401)
5295
5295
  try {
5296
- const _ = await import("./charge-D4NUd_5K.js").then((N) => N.a5);
5296
+ const _ = await import("./charge-Bv8wu-fV.js").then((N) => N.a5);
5297
5297
  _ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
5298
5298
  } catch (_) {
5299
5299
  console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
5300
5300
  }
5301
- const x = new yc(k, (b == null ? void 0 : b.toString()) || "400");
5302
- throw x.response = p.response, x;
5303
- }
5304
- }, wc = "https://g-api.billgang.com", bc = "https://www.googleapis.com/webfonts/v1/webfonts", Sc = "https://stores-api.billgang.com", Cc = "https://sl-api.billgang.com", Ec = "https://customers-api.billgang.com", Rc = "https://cashapp-api.billgang.com", kc = {
5305
- api: wc,
5306
- googleFonts: bc,
5307
- storeApi: Sc,
5308
- slApi: Cc,
5309
- customersApi: Ec,
5310
- cashappApi: Rc
5301
+ const L = new wc(x, (b == null ? void 0 : b.toString()) || "400");
5302
+ throw L.response = p.response, L;
5303
+ }
5304
+ }, bc = "https://g-api.billgang.com", Sc = "https://www.googleapis.com/webfonts/v1/webfonts", Cc = "https://stores-api.billgang.com", Ec = "https://sl-api.billgang.com", Rc = "https://customers-api.billgang.com", xc = "https://cashapp-api.billgang.com", Lc = {
5305
+ api: bc,
5306
+ googleFonts: Sc,
5307
+ storeApi: Cc,
5308
+ slApi: Ec,
5309
+ customersApi: Rc,
5310
+ cashappApi: xc
5311
5311
  }, Qd = (e, t = "300") => e === "not found" ? "empty" : `https://imagedelivery.net/${e}/w=${t}`, e0 = (e) => {
5312
5312
  const t = new Intl.NumberFormat("en-US", {
5313
5313
  style: "currency",
@@ -5350,17 +5350,17 @@ const {
5350
5350
  } catch {
5351
5351
  return t;
5352
5352
  }
5353
- }, Lo = (e, t) => {
5353
+ }, ko = (e, t) => {
5354
5354
  (t === null || typeof t != "object") && window.localStorage.setItem(e, String(t));
5355
5355
  const n = JSON.stringify(t);
5356
5356
  window.localStorage.setItem(e, n);
5357
- }, nr = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ut = "https://t-api.billgang.com", Vt = "https://internal-t-api.antistock.io", Jt = "I", xc = 10 * 1e3, Lc = 15 * 1e3, Nc = 15 * 60 * 1e3, _c = () => {
5357
+ }, nr = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ut = "https://t-api.billgang.com", Vt = "https://internal-t-api.antistock.io", Jt = "I", kc = 10 * 1e3, Nc = 15 * 1e3, _c = 15 * 60 * 1e3, Tc = () => {
5358
5358
  var t;
5359
5359
  const e = vr(Jt);
5360
5360
  return ((t = e == null ? void 0 : e.s) == null ? void 0 : t.i) || null;
5361
5361
  }, a0 = (e, t = "production", n) => {
5362
5362
  const { pathname: r } = Qe(), o = jr(), a = jr(document.visibilityState);
5363
- _a(() => {
5363
+ Ta(() => {
5364
5364
  if (!e) return;
5365
5365
  const i = () => Date.now(), s = async () => (await st({
5366
5366
  url: `${n ? Vt : Ut}/${e}/t/p`,
@@ -5370,14 +5370,14 @@ const {
5370
5370
  url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s`,
5371
5371
  method: "post",
5372
5372
  withToken: !1
5373
- })).data.data.id, c = async (m, p, v, k) => {
5373
+ })).data.data.id, c = async (m, p, v, x) => {
5374
5374
  const b = t === "development" ? nr : m;
5375
5375
  try {
5376
5376
  return (await st({
5377
5377
  url: `${n ? Vt : Ut}/${e}/t/p/${b}/s/${p}/e`,
5378
5378
  method: "post",
5379
5379
  withToken: !1,
5380
- body: { url: v, oldEventId: k },
5380
+ body: { url: v, oldEventId: x },
5381
5381
  contentType: "application/json"
5382
5382
  })).data.data.id;
5383
5383
  } catch {
@@ -5396,7 +5396,7 @@ const {
5396
5396
  withToken: !1
5397
5397
  });
5398
5398
  const b = vr(Jt);
5399
- b && (b.s.u = i().toString(), b.lu = i().toString(), Lo(Jt, b));
5399
+ b && (b.s.u = i().toString(), b.lu = i().toString(), ko(Jt, b));
5400
5400
  }, d = (m, p, v) => {
5401
5401
  o.current && clearInterval(o.current), o.current = setInterval(async () => {
5402
5402
  if (document.visibilityState === "visible")
@@ -5405,17 +5405,17 @@ const {
5405
5405
  } catch {
5406
5406
  await h();
5407
5407
  }
5408
- }, xc);
5408
+ }, kc);
5409
5409
  }, h = async () => {
5410
- var k, b, x, _;
5410
+ var x, b, L, _;
5411
5411
  const m = `${window.location.hostname}${r}`, p = vr(Jt), v = i();
5412
5412
  try {
5413
5413
  let N = p == null ? void 0 : p.p;
5414
5414
  N || (N = await s());
5415
- let U = (k = p == null ? void 0 : p.s) == null ? void 0 : k.i;
5416
- const w = Number(((b = p == null ? void 0 : p.s) == null ? void 0 : b.u) || ((x = p == null ? void 0 : p.s) == null ? void 0 : x.c)), T = !U || v - w > Nc;
5415
+ let U = (x = p == null ? void 0 : p.s) == null ? void 0 : x.i;
5416
+ const w = Number(((b = p == null ? void 0 : p.s) == null ? void 0 : b.u) || ((L = p == null ? void 0 : p.s) == null ? void 0 : L.c)), T = !U || v - w > _c;
5417
5417
  (!U || T) && (U = await l(N));
5418
- const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K > Lc, ae = await c(
5418
+ const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K > Nc, ae = await c(
5419
5419
  N,
5420
5420
  U,
5421
5421
  m,
@@ -5430,7 +5430,7 @@ const {
5430
5430
  l: ae,
5431
5431
  lu: v.toString()
5432
5432
  };
5433
- Lo(Jt, ee), d(N, U, ae);
5433
+ ko(Jt, ee), d(N, U, ae);
5434
5434
  } catch (N) {
5435
5435
  console.error("[TrackingAnalytics] error", N);
5436
5436
  }
@@ -5443,7 +5443,7 @@ const {
5443
5443
  o.current && clearInterval(o.current), document.removeEventListener("visibilitychange", y);
5444
5444
  };
5445
5445
  }, [r, e, t]);
5446
- }, Tc = {
5446
+ }, Pc = {
5447
5447
  customerEmail: "",
5448
5448
  recaptcha: "",
5449
5449
  gateway: "",
@@ -5452,18 +5452,18 @@ const {
5452
5452
  customFields: {},
5453
5453
  discordSocialConnectId: null,
5454
5454
  coupon: null,
5455
- tsId: _c()
5455
+ tsId: Tc()
5456
5456
  };
5457
5457
  let Nt = null;
5458
5458
  const No = localStorage.getItem("token");
5459
5459
  if (No)
5460
5460
  try {
5461
- Nt = js(JSON.parse(No) || "");
5461
+ Nt = $s(JSON.parse(No) || "");
5462
5462
  } catch {
5463
5463
  Nt = null;
5464
5464
  }
5465
5465
  const i0 = se((e) => ({
5466
- cart: { ...Tc, customerEmail: Nt ? Nt.email : "" },
5466
+ cart: { ...Pc, customerEmail: Nt ? Nt.email : "" },
5467
5467
  products: [],
5468
5468
  coupon: null,
5469
5469
  pending: !1,
@@ -5499,9 +5499,9 @@ const i0 = se((e) => ({
5499
5499
  subscription: null,
5500
5500
  setSubscription: (t) => e({ subscription: t })
5501
5501
  })), jn = se((e) => ({
5502
- apiUrls: kc,
5502
+ apiUrls: Lc,
5503
5503
  setApiUrls: (t) => e(() => ({ apiUrls: t }))
5504
- })), Pc = se((e) => ({
5504
+ })), Oc = se((e) => ({
5505
5505
  header: null,
5506
5506
  footer: null,
5507
5507
  announcement: null,
@@ -5520,7 +5520,7 @@ const i0 = se((e) => ({
5520
5520
  setSettings: (t) => e(() => ({ settings: t })),
5521
5521
  settingsInstance: null,
5522
5522
  setSettingsInstance: (t) => e(() => ({ settingsInstance: t }))
5523
- })), Oc = se((e) => ({
5523
+ })), wa = se((e) => ({
5524
5524
  general: null,
5525
5525
  setGeneral: (t) => e(() => ({ general: t })),
5526
5526
  isAntistock: !1,
@@ -5901,17 +5901,17 @@ const i0 = se((e) => ({
5901
5901
  isOpen: !0,
5902
5902
  setIsOpen: (t) => e(() => ({ isOpen: t }))
5903
5903
  }));
5904
- var Le = [];
5904
+ var ke = [];
5905
5905
  for (var rr = 0; rr < 256; ++rr)
5906
- Le.push((rr + 256).toString(16).slice(1));
5907
- function Mc(e, t = 0) {
5908
- return (Le[e[t + 0]] + Le[e[t + 1]] + Le[e[t + 2]] + Le[e[t + 3]] + "-" + Le[e[t + 4]] + Le[e[t + 5]] + "-" + Le[e[t + 6]] + Le[e[t + 7]] + "-" + Le[e[t + 8]] + Le[e[t + 9]] + "-" + Le[e[t + 10]] + Le[e[t + 11]] + Le[e[t + 12]] + Le[e[t + 13]] + Le[e[t + 14]] + Le[e[t + 15]]).toLowerCase();
5906
+ ke.push((rr + 256).toString(16).slice(1));
5907
+ function Ac(e, t = 0) {
5908
+ return (ke[e[t + 0]] + ke[e[t + 1]] + ke[e[t + 2]] + ke[e[t + 3]] + "-" + ke[e[t + 4]] + ke[e[t + 5]] + "-" + ke[e[t + 6]] + ke[e[t + 7]] + "-" + ke[e[t + 8]] + ke[e[t + 9]] + "-" + ke[e[t + 10]] + ke[e[t + 11]] + ke[e[t + 12]] + ke[e[t + 13]] + ke[e[t + 14]] + ke[e[t + 15]]).toLowerCase();
5909
5909
  }
5910
- var pn, Ac = new Uint8Array(16);
5910
+ var pn, Mc = new Uint8Array(16);
5911
5911
  function Dc() {
5912
5912
  if (!pn && (pn = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !pn))
5913
5913
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5914
- return pn(Ac);
5914
+ return pn(Mc);
5915
5915
  }
5916
5916
  var Fc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5917
5917
  const To = {
@@ -5922,7 +5922,7 @@ function it(e, t, n) {
5922
5922
  return To.randomUUID();
5923
5923
  e = e || {};
5924
5924
  var r = e.random || (e.rng || Dc)();
5925
- return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Mc(r);
5925
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Ac(r);
5926
5926
  }
5927
5927
  function Ic(e, t) {
5928
5928
  let n;
@@ -6011,10 +6011,10 @@ const wr = (e) => (t) => {
6011
6011
  var p, v;
6012
6012
  if (!c) return;
6013
6013
  i = !1, s.forEach((b) => {
6014
- var x;
6015
- return b((x = r()) != null ? x : h);
6014
+ var L;
6015
+ return b((L = r()) != null ? L : h);
6016
6016
  });
6017
- const k = ((v = a.onRehydrateStorage) == null ? void 0 : v.call(a, (p = r()) != null ? p : h)) || void 0;
6017
+ const x = ((v = a.onRehydrateStorage) == null ? void 0 : v.call(a, (p = r()) != null ? p : h)) || void 0;
6018
6018
  return wr(c.getItem.bind(c))(a.name).then((b) => {
6019
6019
  if (b)
6020
6020
  if (typeof b.version == "number" && b.version !== a.version) {
@@ -6033,17 +6033,17 @@ const wr = (e) => (t) => {
6033
6033
  return [!1, b.state];
6034
6034
  return [!1, void 0];
6035
6035
  }).then((b) => {
6036
- var x;
6036
+ var L;
6037
6037
  const [_, N] = b;
6038
6038
  if (y = a.merge(
6039
6039
  N,
6040
- (x = r()) != null ? x : h
6040
+ (L = r()) != null ? L : h
6041
6041
  ), n(y, !0), _)
6042
6042
  return u();
6043
6043
  }).then(() => {
6044
- k == null || k(y, void 0), y = r(), i = !0, l.forEach((b) => b(y));
6044
+ x == null || x(y, void 0), y = r(), i = !0, l.forEach((b) => b(y));
6045
6045
  }).catch((b) => {
6046
- k == null || k(void 0, b);
6046
+ x == null || x(void 0, b);
6047
6047
  });
6048
6048
  };
6049
6049
  return o.persist = {
@@ -6558,7 +6558,7 @@ const wr = (e) => (t) => {
6558
6558
  }, b0 = [
6559
6559
  {
6560
6560
  value: "4:3",
6561
- addon: /* @__PURE__ */ M(
6561
+ addon: /* @__PURE__ */ A(
6562
6562
  "div",
6563
6563
  {
6564
6564
  style: {
@@ -6568,7 +6568,7 @@ const wr = (e) => (t) => {
6568
6568
  alignItems: "center",
6569
6569
  justifyContent: "center"
6570
6570
  },
6571
- children: /* @__PURE__ */ M(
6571
+ children: /* @__PURE__ */ A(
6572
6572
  "div",
6573
6573
  {
6574
6574
  style: {
@@ -6584,7 +6584,7 @@ const wr = (e) => (t) => {
6584
6584
  },
6585
6585
  {
6586
6586
  value: "16:9",
6587
- addon: /* @__PURE__ */ M(
6587
+ addon: /* @__PURE__ */ A(
6588
6588
  "div",
6589
6589
  {
6590
6590
  style: {
@@ -6594,7 +6594,7 @@ const wr = (e) => (t) => {
6594
6594
  alignItems: "center",
6595
6595
  justifyContent: "center"
6596
6596
  },
6597
- children: /* @__PURE__ */ M(
6597
+ children: /* @__PURE__ */ A(
6598
6598
  "div",
6599
6599
  {
6600
6600
  style: {
@@ -6610,7 +6610,7 @@ const wr = (e) => (t) => {
6610
6610
  },
6611
6611
  {
6612
6612
  value: "9:16",
6613
- addon: /* @__PURE__ */ M(
6613
+ addon: /* @__PURE__ */ A(
6614
6614
  "div",
6615
6615
  {
6616
6616
  style: {
@@ -6620,7 +6620,7 @@ const wr = (e) => (t) => {
6620
6620
  alignItems: "center",
6621
6621
  justifyContent: "center"
6622
6622
  },
6623
- children: /* @__PURE__ */ M(
6623
+ children: /* @__PURE__ */ A(
6624
6624
  "div",
6625
6625
  {
6626
6626
  style: {
@@ -6636,7 +6636,7 @@ const wr = (e) => (t) => {
6636
6636
  },
6637
6637
  {
6638
6638
  value: "1:1",
6639
- addon: /* @__PURE__ */ M(
6639
+ addon: /* @__PURE__ */ A(
6640
6640
  "div",
6641
6641
  {
6642
6642
  style: {
@@ -6646,7 +6646,7 @@ const wr = (e) => (t) => {
6646
6646
  alignItems: "center",
6647
6647
  justifyContent: "center"
6648
6648
  },
6649
- children: /* @__PURE__ */ M(
6649
+ children: /* @__PURE__ */ A(
6650
6650
  "div",
6651
6651
  {
6652
6652
  style: {
@@ -6696,7 +6696,7 @@ var R0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6696
6696
  function $c(e) {
6697
6697
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6698
6698
  }
6699
- var wa = { exports: {} };
6699
+ var ba = { exports: {} };
6700
6700
  /*!
6701
6701
  Copyright (c) 2018 Jed Watson.
6702
6702
  Licensed under the MIT License (MIT), see
@@ -6731,9 +6731,9 @@ var wa = { exports: {} };
6731
6731
  }
6732
6732
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
6733
6733
  })();
6734
- })(wa);
6735
- var zc = wa.exports;
6736
- const Ve = /* @__PURE__ */ $c(zc), k0 = se((e) => ({
6734
+ })(ba);
6735
+ var zc = ba.exports;
6736
+ const Ve = /* @__PURE__ */ $c(zc), x0 = se((e) => ({
6737
6737
  currentDevice: {
6738
6738
  icon: "Desktop",
6739
6739
  value: "desktop"
@@ -6744,7 +6744,7 @@ se((e) => ({
6744
6744
  pageData: null,
6745
6745
  setPageData: (t) => e(() => ({ pageData: t }))
6746
6746
  }));
6747
- const ba = se((e, t) => ({
6747
+ const Sa = se((e, t) => ({
6748
6748
  isModalVisible: !1,
6749
6749
  hoverBlockId: null,
6750
6750
  isMouseOverModal: !1,
@@ -6798,7 +6798,7 @@ const ba = se((e, t) => ({
6798
6798
  name: "fonts-storage"
6799
6799
  }
6800
6800
  )
6801
- ), Sa = se()((e) => ({
6801
+ ), Ca = se()((e) => ({
6802
6802
  color: "default",
6803
6803
  initialColor: "",
6804
6804
  setInitialColor: (t) => e(() => ({ initialColor: t })),
@@ -6874,13 +6874,13 @@ const ba = se((e, t) => ({
6874
6874
  setShowTooltip: (t) => e({ showTooltip: t })
6875
6875
  })), Zc = "_loader_jr7a4_1", qc = {
6876
6876
  loader: Zc
6877
- }, x0 = () => /* @__PURE__ */ M("div", { className: qc.loader }), Kc = "_tooltip_4hruj_1", Gc = {
6877
+ }, L0 = () => /* @__PURE__ */ A("div", { className: qc.loader }), Kc = "_tooltip_7oy60_1", Gc = {
6878
6878
  tooltip: Kc
6879
- }, L0 = (e) => {
6879
+ }, k0 = (e) => {
6880
6880
  const { text: t } = e, { setShowTooltip: n } = Wc();
6881
6881
  return _e.useEffect(() => (n(!0), () => {
6882
6882
  n(!1);
6883
- }), []), /* @__PURE__ */ M("div", { className: Gc.tooltip, children: t });
6883
+ }), []), /* @__PURE__ */ A("div", { className: Gc.tooltip, children: t });
6884
6884
  }, N0 = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
6885
6885
  function _0(e, t) {
6886
6886
  if (!t || !t[e])
@@ -6909,12 +6909,12 @@ const Yc = (e, t, n, r, o, a, i) => {
6909
6909
  ContactUs: cu,
6910
6910
  Footer: du,
6911
6911
  Video: hu
6912
- }, pu = "_wrapper_1k1cr_1", mu = "_submodal_1k1cr_14", Sr = {
6912
+ }, pu = "_wrapper_1jz8n_1", mu = "_submodal_1jz8n_14", Sr = {
6913
6913
  wrapper: pu,
6914
6914
  submodal: mu
6915
6915
  }, P0 = ({ children: e, positionTop: t, positionLeft: n }) => {
6916
- const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } = ba();
6917
- return r ? /* @__PURE__ */ M(
6916
+ const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } = Sa();
6917
+ return r ? /* @__PURE__ */ A(
6918
6918
  "div",
6919
6919
  {
6920
6920
  className: Sr.wrapper,
@@ -6932,8 +6932,8 @@ const Yc = (e, t, n, r, o, a, i) => {
6932
6932
  }
6933
6933
  ) : null;
6934
6934
  }, O0 = ({ children: e }) => {
6935
- const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } = ba();
6936
- return t ? /* @__PURE__ */ M(
6935
+ const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } = Sa();
6936
+ return t ? /* @__PURE__ */ A(
6937
6937
  "div",
6938
6938
  {
6939
6939
  className: Ve(Sr.wrapper, Sr.submodal),
@@ -6946,7 +6946,7 @@ const Yc = (e, t, n, r, o, a, i) => {
6946
6946
  children: e
6947
6947
  }
6948
6948
  ) : null;
6949
- }, gu = "_applyButton_1a9kh_2", vu = "_content_1a9kh_7", yu = "_title_1a9kh_14", wu = "_label_1a9kh_21", bu = "_colorValue_1a9kh_40", Su = "_colorMap_1a9kh_48", Cu = "_indicator_1a9kh_57", Eu = "_hueSlider_1a9kh_66", Ru = "_slider_1a9kh_97", ku = "_buttons_1a9kh_102", xu = "_name_1a9kh_109", Lu = "_secondary_1a9kh_114", Nu = "_input_1a9kh_122", _u = "_modal_1a9kh_160", Tu = "_alphaSlider_1a9kh_249", Pu = "_alphaBackground_1a9kh_257", Ou = "_alphaGradient_1a9kh_268", Mu = "_chargeTypes_1a9kh_297", Au = "_charge_1a9kh_297", Du = "_chargeActive_1a9kh_326", Fu = "_gradient_1a9kh_334", Iu = "_color_1a9kh_40", Bu = "_colorActive_1a9kh_355", Hu = "_gradientWrapper_1a9kh_362", Uu = "_subtitle_1a9kh_368", Vu = "_colorTypes_1a9kh_375", ju = "_colorType_1a9kh_375", $u = "_colorTypeActive_1a9kh_399", zu = "_colorsWrapper_1a9kh_404", Ju = "_colors_1a9kh_404", Z = {
6949
+ }, gu = "_applyButton_17aa5_2", vu = "_content_17aa5_7", yu = "_title_17aa5_14", wu = "_label_17aa5_21", bu = "_colorValue_17aa5_40", Su = "_colorMap_17aa5_48", Cu = "_indicator_17aa5_57", Eu = "_hueSlider_17aa5_66", Ru = "_slider_17aa5_97", xu = "_buttons_17aa5_102", Lu = "_name_17aa5_109", ku = "_secondary_17aa5_114", Nu = "_input_17aa5_122", _u = "_modal_17aa5_160", Tu = "_alphaSlider_17aa5_249", Pu = "_alphaBackground_17aa5_257", Ou = "_alphaGradient_17aa5_268", Au = "_chargeTypes_17aa5_297", Mu = "_charge_17aa5_297", Du = "_chargeActive_17aa5_326", Fu = "_gradient_17aa5_334", Iu = "_color_17aa5_40", Bu = "_colorActive_17aa5_355", Hu = "_gradientWrapper_17aa5_362", Uu = "_subtitle_17aa5_368", Vu = "_colorTypes_17aa5_375", ju = "_colorType_17aa5_375", $u = "_colorTypeActive_17aa5_399", zu = "_colorsWrapper_17aa5_404", Ju = "_colors_17aa5_404", Z = {
6950
6950
  applyButton: gu,
6951
6951
  content: vu,
6952
6952
  title: yu,
@@ -6956,16 +6956,16 @@ const Yc = (e, t, n, r, o, a, i) => {
6956
6956
  indicator: Cu,
6957
6957
  hueSlider: Eu,
6958
6958
  slider: Ru,
6959
- buttons: ku,
6960
- name: xu,
6961
- secondary: Lu,
6959
+ buttons: xu,
6960
+ name: Lu,
6961
+ secondary: ku,
6962
6962
  input: Nu,
6963
6963
  modal: _u,
6964
6964
  alphaSlider: Tu,
6965
6965
  alphaBackground: Pu,
6966
6966
  alphaGradient: Ou,
6967
- chargeTypes: Mu,
6968
- charge: Au,
6967
+ chargeTypes: Au,
6968
+ charge: Mu,
6969
6969
  chargeActive: Du,
6970
6970
  gradient: Fu,
6971
6971
  color: Iu,
@@ -7002,8 +7002,8 @@ const Wu = (e) => {
7002
7002
  setColor: m,
7003
7003
  setColorChange: p,
7004
7004
  setIsGradientActive: v,
7005
- colorChange: k
7006
- } = Sa();
7005
+ colorChange: x
7006
+ } = Ca();
7007
7007
  _e.useEffect(() => {
7008
7008
  const N = () => {
7009
7009
  h(!1), c(null), d(t), y(() => {
@@ -7021,14 +7021,14 @@ const Wu = (e) => {
7021
7021
  top: U,
7022
7022
  left: w
7023
7023
  });
7024
- }, x = (N) => {
7024
+ }, L = (N) => {
7025
7025
  const U = N.target.value;
7026
- l(U), or(U) && (n(U), m(U), p(k));
7026
+ l(U), or(U) && (n(U), m(U), p(x));
7027
7027
  }, _ = () => {
7028
7028
  or(s) || l(t);
7029
7029
  };
7030
7030
  return /* @__PURE__ */ Re("div", { className: Z.content, children: [
7031
- /* @__PURE__ */ M(
7031
+ /* @__PURE__ */ A(
7032
7032
  "span",
7033
7033
  {
7034
7034
  className: Ve(Z.name, {
@@ -7043,7 +7043,7 @@ const Wu = (e) => {
7043
7043
  className: Z.label,
7044
7044
  onClick: (N) => N.stopPropagation(),
7045
7045
  children: [
7046
- /* @__PURE__ */ M(
7046
+ /* @__PURE__ */ A(
7047
7047
  "div",
7048
7048
  {
7049
7049
  className: Z.colorValue,
@@ -7055,12 +7055,12 @@ const Wu = (e) => {
7055
7055
  onClick: i ? void 0 : b
7056
7056
  }
7057
7057
  ),
7058
- /* @__PURE__ */ M(
7058
+ /* @__PURE__ */ A(
7059
7059
  "input",
7060
7060
  {
7061
7061
  type: "text",
7062
7062
  value: s.includes("linear-gradient") ? s : s.toUpperCase(),
7063
- onChange: x,
7063
+ onChange: L,
7064
7064
  onBlur: _,
7065
7065
  className: Z.input,
7066
7066
  style: {
@@ -7072,7 +7072,7 @@ const Wu = (e) => {
7072
7072
  }
7073
7073
  )
7074
7074
  ] });
7075
- }, M0 = () => {
7075
+ }, A0 = () => {
7076
7076
  const {
7077
7077
  modalPosition: e,
7078
7078
  color: t,
@@ -7091,9 +7091,9 @@ const Wu = (e) => {
7091
7091
  colorChange: m,
7092
7092
  setColor: p,
7093
7093
  update: v,
7094
- isGradient: k,
7094
+ isGradient: x,
7095
7095
  setIsGradient: b,
7096
- gradientDirection: x,
7096
+ gradientDirection: L,
7097
7097
  setGradientDirection: _,
7098
7098
  hue2: N,
7099
7099
  saturation2: U,
@@ -7107,31 +7107,31 @@ const Wu = (e) => {
7107
7107
  setActiveColorIndex: he,
7108
7108
  isGradientActive: Oe,
7109
7109
  isBlockSettings: Te
7110
- } = Sa(), Ze = (j, V, ne) => {
7110
+ } = Ca(), Ze = (j, V, ne) => {
7111
7111
  V /= 100, ne /= 100;
7112
7112
  const z = (ue) => (ue + j / 60) % 6, G = (ue) => ne * (1 - V * Math.max(0, Math.min(z(ue), 4 - z(ue), 1))), W = Math.round(255 * G(5)), re = Math.round(255 * G(3)), q = Math.round(255 * G(1));
7113
7113
  return { r: W, g: re, b: q };
7114
- }, ce = (j) => j.toString(16).padStart(2, "0"), ke = (j, V, ne, z) => {
7114
+ }, ce = (j) => j.toString(16).padStart(2, "0"), xe = (j, V, ne, z) => {
7115
7115
  const { r: G, g: W, b: re } = Ze(j, V, ne), q = Math.round(z / 100 * 255);
7116
7116
  return `#${ce(G)}${ce(W)}${ce(re)}${ce(q)}`;
7117
7117
  }, Se = (j, V, ne, z) => {
7118
- if (k)
7118
+ if (x)
7119
7119
  if (te === 1) {
7120
7120
  u(j), d(V), h(ne), y(z);
7121
- const G = ke(j, V, ne, z), W = ke(N, U, w, T), q = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7121
+ const G = xe(j, V, ne, z), W = xe(N, U, w, T), q = `linear-gradient(${L === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7122
7122
  m(q), p(q);
7123
7123
  } else {
7124
7124
  K(j), B(V), ae(ne), ee(z);
7125
- const G = ke(j, V, ne, z), W = ke(o, a, i, s), q = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${G} 100%)`;
7125
+ const G = xe(j, V, ne, z), W = xe(o, a, i, s), q = `linear-gradient(${L === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${G} 100%)`;
7126
7126
  m(q), p(q);
7127
7127
  }
7128
7128
  else {
7129
- const G = ke(j, V, ne, z);
7129
+ const G = xe(j, V, ne, z);
7130
7130
  m(G), p(G);
7131
7131
  }
7132
7132
  }, be = (j, V, ne) => {
7133
7133
  const { width: z, height: G } = ne.getBoundingClientRect(), W = Math.max(0, Math.min(j / z * 100, 100)), re = Math.max(0, Math.min(100 - V / G * 100, 100));
7134
- k ? te === 1 ? (d(W), h(re), Se(o, W, re, s)) : (B(W), ae(re), Se(N, W, re, T)) : (d(W), h(re), Se(o, W, re, s));
7134
+ x ? te === 1 ? (d(W), h(re), Se(o, W, re, s)) : (B(W), ae(re), Se(N, W, re, T)) : (d(W), h(re), Se(o, W, re, s));
7135
7135
  }, Pe = (j) => {
7136
7136
  const { offsetX: V, offsetY: ne } = j.nativeEvent;
7137
7137
  c(!0), be(V, ne, j.currentTarget);
@@ -7205,10 +7205,10 @@ const Wu = (e) => {
7205
7205
  he
7206
7206
  ]), _e.useEffect(() => {
7207
7207
  let j, V, ne, z;
7208
- k ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = w, z = T) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
7208
+ x ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = w, z = T) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
7209
7209
  }, [
7210
- k,
7211
7210
  x,
7211
+ L,
7212
7212
  te,
7213
7213
  o,
7214
7214
  a,
@@ -7223,20 +7223,20 @@ const Wu = (e) => {
7223
7223
  return l ? (document.addEventListener("mousemove", j), document.addEventListener("mouseup", V)) : (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V)), () => {
7224
7224
  document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V);
7225
7225
  };
7226
- }, [l, k, x]);
7226
+ }, [l, x, L]);
7227
7227
  function pe() {
7228
- if (!k)
7228
+ if (!x)
7229
7229
  v(t);
7230
7230
  else {
7231
- const j = ke(o, a, i, s), V = ke(N, U, w, T), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7231
+ const j = xe(o, a, i, s), V = xe(N, U, w, T), z = `linear-gradient(${L === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7232
7232
  v(z);
7233
7233
  }
7234
7234
  r(!1);
7235
7235
  }
7236
- function Me() {
7236
+ function Ae() {
7237
7237
  r(!1), m(n);
7238
7238
  }
7239
- const Ce = k ? te === 1 ? o : N : o, ft = k ? te === 1 ? a : U : a, en = k ? te === 1 ? i : w : i, zn = k ? te === 1 ? s : T : s, { r: tn, g: Ee, b: et } = Ze(Ce, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ee}, ${et}, 0), rgba(${tn}, ${Ee}, ${et}, 1))`, rn = ke(o, a, i, s), qe = ke(N, U, w, T);
7239
+ const Ce = x ? te === 1 ? o : N : o, ft = x ? te === 1 ? a : U : a, en = x ? te === 1 ? i : w : i, zn = x ? te === 1 ? s : T : s, { r: tn, g: Ee, b: et } = Ze(Ce, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ee}, ${et}, 0), rgba(${tn}, ${Ee}, ${et}, 1))`, rn = xe(o, a, i, s), qe = xe(N, U, w, T);
7240
7240
  return /* @__PURE__ */ Re(
7241
7241
  "div",
7242
7242
  {
@@ -7247,15 +7247,15 @@ const Wu = (e) => {
7247
7247
  left: `${e.left}px`
7248
7248
  },
7249
7249
  children: [
7250
- /* @__PURE__ */ M("h2", { className: Z.title, children: "Color" }),
7250
+ /* @__PURE__ */ A("h2", { className: Z.title, children: "Color" }),
7251
7251
  Oe && /* @__PURE__ */ Re("div", { className: Z.colorTypes, children: [
7252
7252
  /* @__PURE__ */ Re(
7253
7253
  "div",
7254
7254
  {
7255
- className: Ve(Z.colorType, { [Z.colorTypeActive]: !k }),
7255
+ className: Ve(Z.colorType, { [Z.colorTypeActive]: !x }),
7256
7256
  onClick: () => b(!1),
7257
7257
  children: [
7258
- /* @__PURE__ */ M(
7258
+ /* @__PURE__ */ A(
7259
7259
  "div",
7260
7260
  {
7261
7261
  style: {
@@ -7273,10 +7273,10 @@ const Wu = (e) => {
7273
7273
  /* @__PURE__ */ Re(
7274
7274
  "div",
7275
7275
  {
7276
- className: Ve(Z.colorType, { [Z.colorTypeActive]: k }),
7276
+ className: Ve(Z.colorType, { [Z.colorTypeActive]: x }),
7277
7277
  onClick: () => b(!0),
7278
7278
  children: [
7279
- /* @__PURE__ */ M(
7279
+ /* @__PURE__ */ A(
7280
7280
  "div",
7281
7281
  {
7282
7282
  style: {
@@ -7292,8 +7292,8 @@ const Wu = (e) => {
7292
7292
  }
7293
7293
  )
7294
7294
  ] }),
7295
- k && Oe && /* @__PURE__ */ Re("div", { className: Z.colorsWrapper, children: [
7296
- /* @__PURE__ */ M(
7295
+ x && Oe && /* @__PURE__ */ Re("div", { className: Z.colorsWrapper, children: [
7296
+ /* @__PURE__ */ A(
7297
7297
  "div",
7298
7298
  {
7299
7299
  className: Z.colors,
@@ -7302,7 +7302,7 @@ const Wu = (e) => {
7302
7302
  }
7303
7303
  }
7304
7304
  ),
7305
- /* @__PURE__ */ M(
7305
+ /* @__PURE__ */ A(
7306
7306
  "div",
7307
7307
  {
7308
7308
  className: Ve(Z.color, { [Z.colorActive]: te === 1 }),
@@ -7310,7 +7310,7 @@ const Wu = (e) => {
7310
7310
  style: { background: rn }
7311
7311
  }
7312
7312
  ),
7313
- /* @__PURE__ */ M(
7313
+ /* @__PURE__ */ A(
7314
7314
  "div",
7315
7315
  {
7316
7316
  className: Ve(Z.color, { [Z.colorActive]: te === 2 }),
@@ -7319,7 +7319,7 @@ const Wu = (e) => {
7319
7319
  }
7320
7320
  )
7321
7321
  ] }),
7322
- /* @__PURE__ */ M(
7322
+ /* @__PURE__ */ A(
7323
7323
  "div",
7324
7324
  {
7325
7325
  className: Z.colorMap,
@@ -7330,7 +7330,7 @@ const Wu = (e) => {
7330
7330
  linear-gradient(to right, hsl(${Ce}, 100%, 100%), hsl(${Ce}, 100%, 50%))
7331
7331
  `
7332
7332
  },
7333
- children: /* @__PURE__ */ M(
7333
+ children: /* @__PURE__ */ A(
7334
7334
  "div",
7335
7335
  {
7336
7336
  className: Z.indicator,
@@ -7344,14 +7344,14 @@ const Wu = (e) => {
7344
7344
  )
7345
7345
  }
7346
7346
  ),
7347
- /* @__PURE__ */ M(
7347
+ /* @__PURE__ */ A(
7348
7348
  "div",
7349
7349
  {
7350
7350
  className: Z.hueSlider,
7351
7351
  style: {
7352
- bottom: Te ? k ? "225px" : "150px" : k ? "175px" : "100px"
7352
+ bottom: Te ? x ? "225px" : "150px" : x ? "175px" : "100px"
7353
7353
  },
7354
- children: /* @__PURE__ */ M(
7354
+ children: /* @__PURE__ */ A(
7355
7355
  "input",
7356
7356
  {
7357
7357
  type: "range",
@@ -7360,7 +7360,7 @@ const Wu = (e) => {
7360
7360
  value: Ce,
7361
7361
  onChange: (j) => {
7362
7362
  const V = Number(j.target.value);
7363
- k ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, T) : (u(V), Se(V, a, i, s));
7363
+ x ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, T) : (u(V), Se(V, a, i, s));
7364
7364
  },
7365
7365
  className: Z.slider
7366
7366
  }
@@ -7372,18 +7372,18 @@ const Wu = (e) => {
7372
7372
  {
7373
7373
  className: Z.alphaSlider,
7374
7374
  style: {
7375
- bottom: Te ? k ? "200px" : "125px" : k ? "150px" : "75px"
7375
+ bottom: Te ? x ? "200px" : "125px" : x ? "150px" : "75px"
7376
7376
  },
7377
7377
  children: [
7378
- /* @__PURE__ */ M("div", { className: Z.alphaBackground }),
7379
- /* @__PURE__ */ M(
7378
+ /* @__PURE__ */ A("div", { className: Z.alphaBackground }),
7379
+ /* @__PURE__ */ A(
7380
7380
  "div",
7381
7381
  {
7382
7382
  className: Z.alphaGradient,
7383
7383
  style: { background: nn }
7384
7384
  }
7385
7385
  ),
7386
- /* @__PURE__ */ M(
7386
+ /* @__PURE__ */ A(
7387
7387
  "input",
7388
7388
  {
7389
7389
  type: "range",
@@ -7392,7 +7392,7 @@ const Wu = (e) => {
7392
7392
  value: zn,
7393
7393
  onChange: (j) => {
7394
7394
  const V = Number(j.target.value);
7395
- k ? te === 1 ? Se(o, a, i, V) : Se(N, U, w, V) : (y(V), Se(o, a, i, V));
7395
+ x ? te === 1 ? Se(o, a, i, V) : Se(N, U, w, V) : (y(V), Se(o, a, i, V));
7396
7396
  },
7397
7397
  className: Z.slider
7398
7398
  }
@@ -7400,18 +7400,18 @@ const Wu = (e) => {
7400
7400
  ]
7401
7401
  }
7402
7402
  ),
7403
- k && Oe && /* @__PURE__ */ Re("div", { className: Z.gradientWrapper, children: [
7404
- /* @__PURE__ */ M("h3", { className: Z.subtitle, children: "Rotation" }),
7405
- /* @__PURE__ */ M("div", { className: Z.gradient, children: /* @__PURE__ */ Re("div", { className: Z.chargeTypes, children: [
7403
+ x && Oe && /* @__PURE__ */ Re("div", { className: Z.gradientWrapper, children: [
7404
+ /* @__PURE__ */ A("h3", { className: Z.subtitle, children: "Rotation" }),
7405
+ /* @__PURE__ */ A("div", { className: Z.gradient, children: /* @__PURE__ */ Re("div", { className: Z.chargeTypes, children: [
7406
7406
  /* @__PURE__ */ Re(
7407
7407
  "div",
7408
7408
  {
7409
7409
  className: Ve(Z.charge, {
7410
- [Z.chargeActive]: x === "horizontal"
7410
+ [Z.chargeActive]: L === "horizontal"
7411
7411
  }),
7412
7412
  onClick: () => _("horizontal"),
7413
7413
  children: [
7414
- /* @__PURE__ */ M(
7414
+ /* @__PURE__ */ A(
7415
7415
  Wt,
7416
7416
  {
7417
7417
  name: "ArrowsHorizontal",
@@ -7427,11 +7427,11 @@ const Wu = (e) => {
7427
7427
  "div",
7428
7428
  {
7429
7429
  className: Ve(Z.charge, {
7430
- [Z.chargeActive]: x === "vertical"
7430
+ [Z.chargeActive]: L === "vertical"
7431
7431
  }),
7432
7432
  onClick: () => _("vertical"),
7433
7433
  children: [
7434
- /* @__PURE__ */ M(
7434
+ /* @__PURE__ */ A(
7435
7435
  Wt,
7436
7436
  {
7437
7437
  name: "ArrowsVertical",
@@ -7445,7 +7445,7 @@ const Wu = (e) => {
7445
7445
  )
7446
7446
  ] }) })
7447
7447
  ] }),
7448
- Te && /* @__PURE__ */ M(
7448
+ Te && /* @__PURE__ */ A(
7449
7449
  Wu,
7450
7450
  {
7451
7451
  initialColor: t,
@@ -7455,16 +7455,16 @@ const Wu = (e) => {
7455
7455
  }
7456
7456
  ),
7457
7457
  /* @__PURE__ */ Re("div", { className: Z.buttons, children: [
7458
- /* @__PURE__ */ M(
7458
+ /* @__PURE__ */ A(
7459
7459
  $r,
7460
7460
  {
7461
- onClick: Me,
7461
+ onClick: Ae,
7462
7462
  className: Ve(Z.applyButton, Z.cancelButton),
7463
7463
  type: "Secondary",
7464
7464
  children: "Cancel"
7465
7465
  }
7466
7466
  ),
7467
- /* @__PURE__ */ M(
7467
+ /* @__PURE__ */ A(
7468
7468
  $r,
7469
7469
  {
7470
7470
  onClick: pe,
@@ -7477,13 +7477,13 @@ const Wu = (e) => {
7477
7477
  ]
7478
7478
  }
7479
7479
  );
7480
- }, Zu = "_wrapper_kzokw_1", qu = "_open_kzokw_16", Ku = "_close_kzokw_20", ar = {
7480
+ }, Zu = "_wrapper_1bsje_1", qu = "_open_1bsje_16", Ku = "_close_1bsje_20", ar = {
7481
7481
  wrapper: Zu,
7482
7482
  open: qu,
7483
7483
  close: Ku
7484
- }, A0 = (e) => {
7484
+ }, M0 = (e) => {
7485
7485
  const { isOpen: t, isClose: n, children: r } = e;
7486
- return /* @__PURE__ */ M(
7486
+ return /* @__PURE__ */ A(
7487
7487
  "div",
7488
7488
  {
7489
7489
  className: Ve(ar.wrapper, {
@@ -7493,18 +7493,18 @@ const Wu = (e) => {
7493
7493
  children: r
7494
7494
  }
7495
7495
  );
7496
- }, Gu = "_blocks_emecf_1", Yu = "_block_emecf_1", Xu = "_active_emecf_21", ir = {
7496
+ }, Gu = "_blocks_1h216_1", Yu = "_block_1h216_1", Xu = "_active_1h216_21", ir = {
7497
7497
  blocks: Gu,
7498
7498
  block: Yu,
7499
7499
  active: Xu
7500
7500
  }, D0 = (e) => {
7501
7501
  const { items: t, selectedItem: n, onSelect: r, getIconName: o } = e;
7502
- return /* @__PURE__ */ M("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ M(
7502
+ return /* @__PURE__ */ A("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ A(
7503
7503
  "div",
7504
7504
  {
7505
7505
  className: Ve(ir.block, { [ir.active]: n === a }),
7506
7506
  onClick: () => r(a),
7507
- children: /* @__PURE__ */ M(
7507
+ children: /* @__PURE__ */ A(
7508
7508
  Wt,
7509
7509
  {
7510
7510
  name: o(a),
@@ -7519,7 +7519,7 @@ const Wu = (e) => {
7519
7519
  main: ed,
7520
7520
  content: td,
7521
7521
  notifications: nd
7522
- }, rd = "_notification_2jmah_1", od = "_text_2jmah_22", ad = "_timer_2jmah_27", id = "_warning_2jmah_32", sd = "_error_2jmah_37", ld = "_success_2jmah_42", xt = {
7522
+ }, rd = "_notification_rpmz2_1", od = "_text_rpmz2_22", ad = "_timer_rpmz2_27", id = "_warning_rpmz2_32", sd = "_error_rpmz2_37", ld = "_success_rpmz2_42", Lt = {
7523
7523
  notification: rd,
7524
7524
  text: od,
7525
7525
  timer: ad,
@@ -7551,7 +7551,7 @@ const Wu = (e) => {
7551
7551
  padding: o,
7552
7552
  timer: a,
7553
7553
  id: i
7554
- }) : /* @__PURE__ */ M(
7554
+ }) : /* @__PURE__ */ A(
7555
7555
  "div",
7556
7556
  {
7557
7557
  style: {
@@ -7561,14 +7561,14 @@ const Wu = (e) => {
7561
7561
  children: /* @__PURE__ */ Re(
7562
7562
  "div",
7563
7563
  {
7564
- className: Ve(xt.notification, {
7565
- [xt.warning]: t === "warning",
7566
- [xt.error]: t === "error",
7567
- [xt.success]: t === "success"
7564
+ className: Ve(Lt.notification, {
7565
+ [Lt.warning]: t === "warning",
7566
+ [Lt.error]: t === "error",
7567
+ [Lt.success]: t === "success"
7568
7568
  }),
7569
7569
  style: r,
7570
7570
  children: [
7571
- /* @__PURE__ */ M("div", { children: /* @__PURE__ */ M(
7571
+ /* @__PURE__ */ A("div", { children: /* @__PURE__ */ A(
7572
7572
  Wt,
7573
7573
  {
7574
7574
  name: "Info",
@@ -7577,15 +7577,15 @@ const Wu = (e) => {
7577
7577
  height: 20
7578
7578
  }
7579
7579
  ) }),
7580
- /* @__PURE__ */ M("div", { className: xt.text, children: n }),
7581
- a && /* @__PURE__ */ M("div", { className: xt.timer, children: l }),
7582
- /* @__PURE__ */ M(
7580
+ /* @__PURE__ */ A("div", { className: Lt.text, children: n }),
7581
+ a && /* @__PURE__ */ A("div", { className: Lt.timer, children: l }),
7582
+ /* @__PURE__ */ A(
7583
7583
  "div",
7584
7584
  {
7585
7585
  style: {
7586
7586
  display: "flex"
7587
7587
  },
7588
- children: /* @__PURE__ */ M(
7588
+ children: /* @__PURE__ */ A(
7589
7589
  Wt,
7590
7590
  {
7591
7591
  name: "X",
@@ -7604,43 +7604,43 @@ const Wu = (e) => {
7604
7604
  }
7605
7605
  );
7606
7606
  }, ud = () => {
7607
- const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { notifications: o } = Ue(), { title: a, description: i, setTitle: s, setDescription: l, setOnConfirm: c } = jc();
7608
- return /* @__PURE__ */ Re("div", { id: "builder", children: [
7607
+ const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { isAntistock: o } = wa(), { notifications: a } = Ue(), { title: i, description: s, setTitle: l, setDescription: c, setOnConfirm: u } = jc();
7608
+ return /* @__PURE__ */ Re("div", { id: "builder", className: o ? "builder-dark" : "", children: [
7609
7609
  /* @__PURE__ */ Re("div", { className: mn.layout, children: [
7610
- /* @__PURE__ */ M(Da, {}),
7610
+ /* @__PURE__ */ A(Fa, {}),
7611
7611
  /* @__PURE__ */ Re("main", { className: mn.main, children: [
7612
- /* @__PURE__ */ M(Fa, {}),
7612
+ /* @__PURE__ */ A(Ia, {}),
7613
7613
  /* @__PURE__ */ Re("div", { className: mn.content, children: [
7614
- /* @__PURE__ */ M(Ia, {}),
7615
- /* @__PURE__ */ M(Ba, {})
7614
+ /* @__PURE__ */ A(Ba, {}),
7615
+ /* @__PURE__ */ A(Ha, {})
7616
7616
  ] })
7617
7617
  ] })
7618
7618
  ] }),
7619
- a && i && /* @__PURE__ */ M(
7619
+ i && s && /* @__PURE__ */ A(
7620
7620
  qn,
7621
7621
  {
7622
7622
  close: () => {
7623
- s(null), l(null), c(null);
7623
+ l(null), c(null), u(null);
7624
7624
  },
7625
- children: /* @__PURE__ */ M(Oa, {})
7625
+ children: /* @__PURE__ */ A(Aa, {})
7626
7626
  }
7627
7627
  ),
7628
- e && /* @__PURE__ */ M(qn, { close: t, children: /* @__PURE__ */ M(Ha, {}) }),
7629
- n && /* @__PURE__ */ M(qn, { close: r, children: /* @__PURE__ */ M(Ma, {}) }),
7630
- o.length > 0 && /* @__PURE__ */ M("div", { className: mn.notifications, children: o.map((u) => /* @__PURE__ */ M(
7628
+ e && /* @__PURE__ */ A(qn, { close: t, children: /* @__PURE__ */ A(Ua, {}) }),
7629
+ n && /* @__PURE__ */ A(qn, { close: r, children: /* @__PURE__ */ A(Ma, {}) }),
7630
+ a.length > 0 && /* @__PURE__ */ A("div", { className: mn.notifications, children: a.map((d) => /* @__PURE__ */ A(
7631
7631
  cd,
7632
7632
  {
7633
- type: u.status,
7634
- message: u.message,
7635
- timer: u.timer || 10,
7636
- id: u.id,
7637
- element: u.component
7633
+ type: d.status,
7634
+ message: d.message,
7635
+ timer: d.timer || 10,
7636
+ id: d.id,
7637
+ element: d.component
7638
7638
  },
7639
- u.id
7639
+ d.id
7640
7640
  )) })
7641
7641
  ] });
7642
7642
  };
7643
- async function Lt(e, t) {
7643
+ async function kt(e, t) {
7644
7644
  const n = localStorage.getItem("shopId") || void 0, o = `${jn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
7645
7645
  return (await st({
7646
7646
  url: o,
@@ -7651,12 +7651,12 @@ async function Lt(e, t) {
7651
7651
  async function dd() {
7652
7652
  try {
7653
7653
  const [e, t, n, r, o, a, i, s, l] = await Promise.allSettled([
7654
- Lt("v1", "general"),
7655
- Lt("v1", "faqs"),
7656
- Lt("v1", "listings"),
7657
- Lt("v1", "products"),
7658
- Lt("v1", "reviews"),
7659
- Lt("v1", "categories"),
7654
+ kt("v1", "general"),
7655
+ kt("v1", "faqs"),
7656
+ kt("v1", "listings"),
7657
+ kt("v1", "products"),
7658
+ kt("v1", "reviews"),
7659
+ kt("v1", "categories"),
7660
7660
  {
7661
7661
  data: null
7662
7662
  },
@@ -7725,7 +7725,7 @@ const md = (e) => {
7725
7725
  setFooter: c,
7726
7726
  setAnnouncement: u,
7727
7727
  setSettings: d
7728
- } = Pc(), { fonts: h, setFonts: y } = Jc(), { setSettings: m } = _o(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: k } = yr(), { setIsLoadingSettings: b } = _o(), { notifications: x, setNotifications: _ } = Ue(), {
7728
+ } = Oc(), { fonts: h, setFonts: y } = Jc(), { setSettings: m } = _o(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: x } = yr(), { setIsLoadingSettings: b } = _o(), { notifications: L, setNotifications: _ } = Ue(), {
7729
7729
  setBlocks: N,
7730
7730
  blocks: U,
7731
7731
  createPage: w,
@@ -7735,7 +7735,7 @@ const md = (e) => {
7735
7735
  setFooter: ae
7736
7736
  } = br(), { setPages: ee, setCurrentPage: te } = _n();
7737
7737
  return _e.useEffect(() => {
7738
- k(!0), T(!0), b(!0);
7738
+ x(!0), T(!0), b(!0);
7739
7739
  const he = {};
7740
7740
  Object.keys(t).forEach((Te) => {
7741
7741
  he[Te] = t[Te];
@@ -7756,7 +7756,7 @@ const md = (e) => {
7756
7756
  const pe = ie;
7757
7757
  Te[pe] = Ze[pe].value.data;
7758
7758
  }), p(Te);
7759
- const { data: ce } = await pd(), { themeSettings: ke, layers: Se, settings: be } = ce || {};
7759
+ const { data: ce } = await pd(), { themeSettings: xe, layers: Se, settings: be } = ce || {};
7760
7760
  if (be) {
7761
7761
  if (be.settings) {
7762
7762
  const ie = new n();
@@ -7771,40 +7771,40 @@ const md = (e) => {
7771
7771
  const ie = new n();
7772
7772
  m(ie.blockSettings);
7773
7773
  }
7774
- ke && v(ke);
7774
+ xe && v(xe);
7775
7775
  const Pe = await hd(), He = {};
7776
7776
  if (Pe.status >= 400 && _([
7777
- ...x,
7777
+ ...L,
7778
7778
  {
7779
7779
  id: it(),
7780
7780
  message: "Error fetching pages",
7781
7781
  status: "error"
7782
7782
  }
7783
7783
  ]), Pe.data.length > 0 ? (Pe.data.forEach((ie) => {
7784
- var pe, Me;
7784
+ var pe, Ae;
7785
7785
  U[ie.path] || w(ie.path), He[ie.id || ie.path] = {
7786
7786
  ...ie,
7787
7787
  icon: jt[ie.path] ? jt[ie.path].icon : "File",
7788
- name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((Me = jt[ie.path]) == null ? void 0 : Me.name) || ie.path
7788
+ name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((Ae = jt[ie.path]) == null ? void 0 : Ae.name) || ie.path
7789
7789
  };
7790
7790
  }), ee(He), te(Object.keys(He)[0])) : (ee(jt), te(Object.keys(jt)[0])), h.length === 0) {
7791
7791
  const ie = await fd();
7792
7792
  y([
7793
7793
  ...ie.map((pe) => {
7794
- const Me = pe.variants.map((Ce) => {
7794
+ const Ae = pe.variants.map((Ce) => {
7795
7795
  if (!Ce.includes("italic"))
7796
7796
  return Ce === "regular" ? "400" : Ce;
7797
7797
  }).filter((Ce) => Ce !== void 0);
7798
7798
  return {
7799
7799
  name: pe.family,
7800
- weights: Me
7800
+ weights: Ae
7801
7801
  };
7802
7802
  })
7803
7803
  ]);
7804
7804
  }
7805
- N(Se), k(!1), T(!1), b(!1);
7805
+ N(Se), x(!1), T(!1), b(!1);
7806
7806
  })();
7807
- }, []), /* @__PURE__ */ M(ud, {});
7807
+ }, []), /* @__PURE__ */ A(ud, {});
7808
7808
  };
7809
7809
  function gd() {
7810
7810
  const e = new URL(window.location.href);
@@ -7815,7 +7815,7 @@ function vd() {
7815
7815
  return gd(), n && localStorage.setItem("sellerAccessToken", n), t && localStorage.setItem("shopId", t), r && localStorage.setItem("draftId", r), !!(n && t && r);
7816
7816
  }
7817
7817
  const yd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%200%20204%20241'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M204%200V118.282L154.174%20134.707V69.0074L49.7111%20102.77V43.5716L204%200Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M154.174%20134.694V191.155L0%20241V117.471L49.7114%20102.757V169.597L154.174%20134.694Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", wd = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2019%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.0103662%2023.5362C0.0538052%2022.4425%200.370173%2021.4309%201.08058%2020.6127C1.92699%2019.6379%202.91375%2019.2329%204.14841%2019.1732C4.162%2020.1401%204.15111%2021.1085%204.15091%2022.0756L4.70583%2022.0747L7.42027%2022.0755C7.95952%2022.0752%208.50027%2022.0844%209.03933%2022.0742L9.17755%2022.0731L10.6132%2022.0759C10.8265%2022.0759%2011.0767%2022.1021%2011.2852%2022.0658C11.3052%2022.0703%2011.3534%2022.0735%2011.3625%2022.0928C11.3917%2022.1543%2011.3688%2031.0517%2011.3725%2031.9631C11.1563%2032.0856%2010.2676%2031.8701%2010.0303%2031.7947C9.89866%2031.7528%209.644%2031.6914%209.54946%2031.5874L9.51914%2031.584C9.46943%2031.5736%209.44171%2031.5537%209.40126%2031.5222C9.30218%2031.5131%209.14954%2031.4132%209.07718%2031.343C9.00129%2031.3163%208.92757%2031.2576%208.85921%2031.2134L8.85617%2031.2002C8.5748%2031.0715%208.14929%2030.6244%207.94318%2030.376C7.35205%2029.6639%206.93892%2028.7659%206.83493%2027.8203C6.78763%2027.3904%206.7994%2026.9595%206.80055%2026.5277C6.80084%2026.4202%206.82996%2026.126%206.78242%2026.0387L6.71237%2026.023C6.54382%2026.0528%206.34316%2026.0328%206.17124%2026.0324L1.0194%2026.0325L0.942306%2026.0307C0.74237%2026.0326%200.173082%2026.0689%200.0224192%2026.0192L0.00848581%2026.0029C0.022853%2025.8597%200.0136924%2025.7065%200.013837%2025.562L0.0113299%2024.6651L0.0117161%2024.5253C0.0150266%2024.1956%200.0145767%2023.8659%200.0103662%2023.5362Z'%20fill='currentColor'/%3e%3cpath%20d='M6.79824%200.00127802C6.88001%20-0.000781892%206.96176%20-0.000351703%207.04349%200.00256876C7.12523%200.00549261%207.20682%200.0108998%207.28827%200.0187905C7.36968%200.0266845%207.45082%200.0370518%207.53169%200.0498924C7.61259%200.0627296%207.69305%200.078018%207.77309%200.0957576C7.85312%200.113501%207.93259%200.133663%208.0115%200.156244C8.09044%200.178828%208.16868%200.203796%208.24624%200.231148C8.3238%200.258499%208.40053%200.28819%208.47645%200.32022C8.55237%200.352247%208.62736%200.386559%208.70141%200.423156L8.71428%200.423492C8.76476%200.450874%208.815%200.479135%208.8661%200.50516C8.947%200.550491%209.03065%200.593185%209.10687%200.646856L9.24939%200.733144C9.31674%200.78126%209.38361%200.83049%209.45202%200.87695C10.462%201.67615%2011.1434%202.77146%2011.325%204.10211C11.4076%204.70784%2011.3729%205.34243%2011.372%205.9541C11.4625%205.96599%2011.5526%205.9664%2011.6436%205.96762C12.6033%205.93794%2013.5708%205.96289%2014.5314%205.96294C15.459%205.96305%2016.3927%205.93758%2017.3195%205.9633C17.5874%205.96523%2017.9062%206.00101%2018.1677%205.95273C18.1496%206.13096%2018.1583%206.31472%2018.1585%206.49401L18.1598%207.38388L18.1595%207.51855C18.1591%207.83084%2018.14%208.15609%2018.1607%208.46685C18.109%209.73893%2017.6972%2010.8198%2016.8003%2011.6891C15.9969%2012.4676%2015.0894%2012.76%2014.0228%2012.8194L14.021%2010.9083C14.0209%2010.5892%2014.0389%2010.2573%2014.0163%209.93952C14.0002%209.92849%2013.9879%209.91884%2013.9692%209.9133C13.7941%209.93418%2013.6055%209.92148%2013.4293%209.92133H9.15258L9.04077%209.92082L7.56664%209.92209C7.31676%209.92224%207.04528%209.94526%206.79858%209.90893L6.79824%200.00127802Z'%20fill='currentColor'/%3e%3cpath%20d='M4.13987%205.96279C4.65941%205.9653%205.17894%205.96467%205.69847%205.96091C5.70059%207.27995%205.71757%208.60219%205.69833%209.92082L4.15072%209.92046L4.15106%2011.4065C4.15096%2011.6783%204.1406%2011.9555%204.15443%2012.2266C4.73799%2012.8393%205.31307%2013.4655%205.90921%2014.0644L5.98321%2014.0407C6.25311%2014.0833%206.6928%2014.0501%206.97981%2014.0499L12.7386%2014.0492L13.5943%2014.0482C13.7363%2014.0479%2013.9068%2014.0286%2014.0457%2014.0577L15.8019%2015.9078L15.8915%2015.997L15.9615%2016.0784L15.9955%2016.1093L17.4221%2017.6163C17.6528%2017.8599%2017.9077%2018.0979%2018.1211%2018.3569C18.1463%2018.3875%2018.1599%2018.4086%2018.1691%2018.4477C18.1415%2018.6757%2018.1577%2018.9211%2018.1579%2019.1514L18.1594%2020.4531C18.1597%2021.8112%2018.142%2023.1721%2018.1599%2024.5297L18.1589%2024.6625L18.158%2025.5556C18.158%2025.7089%2018.1437%2025.8808%2018.1676%2026.0315L18.0995%2026.031L17.2568%2026.0329L17.2101%2026.0308C16.2512%2026.0486%2015.2892%2026.0305%2014.3299%2026.0308C13.7488%2026.031%2013.0694%2026.064%2012.4959%2026.0258L12.4831%2026.0202C12.4481%2025.9239%2012.4717%2022.4806%2012.47%2022.075L14.0216%2022.0744C14.0024%2021.3241%2014.0324%2020.5711%2014.0173%2019.8203C13.4629%2019.2116%2012.887%2018.6041%2012.3052%2018.0244L12.293%2017.9978C12.0554%2018.0392%2011.5401%2018.0054%2011.2777%2018.0053L8.9362%2018.0074C7.75375%2017.9793%206.56306%2018.0065%205.37994%2018.0069C5.13497%2018.007%204.32737%2018.0401%204.13472%2017.9962L2.36331%2016.1262L2.29219%2016.0566L2.21959%2015.9758L2.15074%2015.9102C1.93803%2015.6694%201.70849%2015.441%201.48797%2015.2079L0%2013.631C0.0383768%2013.4512%200.014078%2013.2231%200.013837%2013.0369L0.0121494%2011.9198L0.0113299%207.52017L0.0122943%207.34622C0.0134032%206.9143%200.0453199%206.37479%200.00371286%205.95329C0.115854%205.96772%200.229056%205.9664%200.341872%205.96777C0.589393%205.96198%200.836946%205.96042%201.08453%205.9631L3.10905%205.96548C3.44789%205.96554%203.80282%205.98825%204.13987%205.96279Z'%20fill='currentColor'/%3e%3c/svg%3e", bd = (e) => {
7818
- const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = Oc(), [s, l] = _e.useState(!0), c = An(), u = Qe();
7818
+ const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = wa(), [s, l] = _e.useState(!0), c = Mn(), u = Qe();
7819
7819
  return _e.useEffect(() => {
7820
7820
  const d = u.pathname;
7821
7821
  if (d.startsWith("/admin/builder")) {
@@ -7825,7 +7825,7 @@ const yd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%
7825
7825
  }
7826
7826
  }, [u]), _e.useEffect(() => {
7827
7827
  l(!0), vd() ? l(!1) : c("/");
7828
- }, []), /* @__PURE__ */ M(Pa, { children: s ? /* @__PURE__ */ M(Aa, {}) : /* @__PURE__ */ M(
7828
+ }, []), /* @__PURE__ */ A(Oa, { children: s ? /* @__PURE__ */ A(Da, {}) : /* @__PURE__ */ A(
7829
7829
  md,
7830
7830
  {
7831
7831
  blocks: t,
@@ -7843,41 +7843,41 @@ export {
7843
7843
  Qd as $,
7844
7844
  O0 as A,
7845
7845
  Yc as B,
7846
- M0 as C,
7846
+ A0 as C,
7847
7847
  N0 as D,
7848
- A0 as E,
7848
+ M0 as E,
7849
7849
  y0 as F,
7850
7850
  Jc as G,
7851
7851
  p0 as H,
7852
7852
  Wu as I,
7853
7853
  u0 as J,
7854
- Oc as K,
7855
- x0 as L,
7854
+ wa as K,
7855
+ L0 as L,
7856
7856
  g0 as M,
7857
7857
  Dd as N,
7858
- Ad as O,
7858
+ Md as O,
7859
7859
  D0 as P,
7860
7860
  i0 as Q,
7861
7861
  v0 as R,
7862
7862
  P0 as S,
7863
- L0 as T,
7863
+ k0 as T,
7864
7864
  l0 as U,
7865
- _c as V,
7865
+ Tc as V,
7866
7866
  $c as W,
7867
7867
  s0 as X,
7868
- Fs as Y,
7868
+ Is as Y,
7869
7869
  qo as Z,
7870
7870
  e0 as _,
7871
7871
  _o as a,
7872
7872
  r0 as a0,
7873
7873
  Nd as a1,
7874
- Md as a2,
7874
+ Ad as a2,
7875
7875
  o0 as a3,
7876
- xs as a4,
7876
+ ks as a4,
7877
7877
  n0 as a5,
7878
7878
  R0 as a6,
7879
7879
  Od as a7,
7880
- Ld as a8,
7880
+ kd as a8,
7881
7881
  c0 as a9,
7882
7882
  t0 as aa,
7883
7883
  de as ab,
@@ -7886,21 +7886,21 @@ export {
7886
7886
  Vc as ae,
7887
7887
  b0 as af,
7888
7888
  w0 as ag,
7889
- js as ah,
7889
+ $s as ah,
7890
7890
  d0 as ai,
7891
7891
  Td as aj,
7892
7892
  _d as ak,
7893
7893
  Pd as al,
7894
7894
  a0 as am,
7895
- Yi as an,
7895
+ Xi as an,
7896
7896
  F0 as ao,
7897
7897
  _n as b,
7898
- Pc as c,
7898
+ Oc as c,
7899
7899
  De as d,
7900
7900
  Ue as e,
7901
7901
  Ve as f,
7902
7902
  f0 as g,
7903
- k0 as h,
7903
+ x0 as h,
7904
7904
  Hc as i,
7905
7905
  jn as j,
7906
7906
  jc as k,
@@ -7908,15 +7908,15 @@ export {
7908
7908
  yr as m,
7909
7909
  Wc as n,
7910
7910
  C0 as o,
7911
- An as p,
7911
+ Mn as p,
7912
7912
  Uc as q,
7913
7913
  st as r,
7914
7914
  E0 as s,
7915
7915
  _0 as t,
7916
7916
  br as u,
7917
7917
  it as v,
7918
- ba as w,
7918
+ Sa as w,
7919
7919
  T0 as x,
7920
- Sa as y,
7920
+ Ca as y,
7921
7921
  h0 as z
7922
7922
  };