@billgangcom/theme-lib 1.120.2 → 1.120.4

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 (40) hide show
  1. package/dist/{builder-CE6yg5oK.js → builder-B7zcAFlP.js} +940 -910
  2. package/dist/{builder-CWaG42kw.cjs → builder-D-_y0UZo.cjs} +12 -12
  3. package/dist/{builder-components-Dyplqbia.cjs → builder-components-BINsMpjv.cjs} +1 -1
  4. package/dist/{builder-components-5Z24DJJP.js → builder-components-DTblcA5b.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-BEnNfxFr.cjs → charge-DFWqP484.cjs} +38 -38
  8. package/dist/{charge-B1GrtVWc.js → charge-D_2QP2MU.js} +3028 -3023
  9. package/dist/{checkout-CF05O03i.cjs → checkout-BFUUel8K.cjs} +1 -1
  10. package/dist/{checkout-B21z1TGE.js → checkout-CW4kk1A2.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-Dez8BiQX.js → index-BUpWXhdd.js} +5 -5
  14. package/dist/{index-DTAlnIyB.js → index-BiNYeUmn.js} +1 -1
  15. package/dist/{index-Cs9xerh4.js → index-CMzqaOZI.js} +8 -8
  16. package/dist/{index-C9ZIjLVQ.js → index-CQMyE7Wb.js} +8 -8
  17. package/dist/{index-1x0-wbdS.cjs → index-CyrZrBYf.cjs} +1 -1
  18. package/dist/{index-DT_aTpZf.cjs → index-DI14JIuH.cjs} +1 -1
  19. package/dist/{index-Be2NRkjG.js → index-DOsbUE9W.js} +5 -5
  20. package/dist/{index-BZ7C0iBt.cjs → index-DScxpPuH.cjs} +1 -1
  21. package/dist/{index-Bl91R63p.cjs → index-Dcc_1V35.cjs} +1 -1
  22. package/dist/{index-BpWh-qOk.cjs → index-XUyDh3Pa.cjs} +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-BEBOxyTb.cjs → order-Ctzxqbbs.cjs} +1 -1
  26. package/dist/{order-dg2Oyqn4.js → order-x-Rke14d.js} +5 -5
  27. package/dist/style.css +1 -1
  28. package/dist/{subscription-ts1zCYfh.js → subscription-BbMSdNBC.js} +5 -5
  29. package/dist/{subscription-Cd-C2FDT.cjs → subscription-BqANqkMh.cjs} +1 -1
  30. package/dist/{ticket-KYg6_LAo.js → ticket-ClWCwOa2.js} +5 -5
  31. package/dist/{ticket-STaDp20p.cjs → ticket-DZLQHt1e.cjs} +1 -1
  32. package/dist/{top-up-ZgLo1nZF.cjs → top-up-CRprLre3.cjs} +1 -1
  33. package/dist/{top-up-dXcEKblL.js → top-up-YIsioJgU.js} +5 -5
  34. package/dist/{ui-components-CpDQ53a4.js → ui-components-B9RxvEbc.js} +4 -4
  35. package/dist/{ui-components-s9Q6Wg3R.cjs → ui-components-CAVkeo8V.cjs} +1 -1
  36. package/dist/ui.cjs.js +1 -1
  37. package/dist/ui.es.js +1 -1
  38. package/dist/{validation-DC8gCoJH.js → validation-BRWhHglL.js} +6 -6
  39. package/dist/{validation-DLYUReRT.cjs → validation-CbLHhgF-.cjs} +1 -1
  40. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import * as E from "react";
2
- import Te, { useRef as jr, useEffect as Ta } from "react";
3
- import * as _a from "react-dom";
2
+ import _e, { useRef as jr, useEffect as _a } from "react";
3
+ import * as Ta from "react-dom";
4
4
  import { jsx as M, jsxs as Re, Fragment as Pa } from "react/jsx-runtime";
5
- import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-CpDQ53a4.js";
6
- import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-5Z24DJJP.js";
7
- import "./charge-B1GrtVWc.js";
8
- import "./ticket-KYg6_LAo.js";
5
+ import { I as Wt, B as $r, a as qn, C as Oa, b as Ma, L as Aa } from "./ui-components-B9RxvEbc.js";
6
+ import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-DTblcA5b.js";
7
+ import "./charge-D_2QP2MU.js";
8
+ import "./ticket-ClWCwOa2.js";
9
9
  /**
10
10
  * @remix-run/router v1.23.0
11
11
  *
@@ -26,10 +26,10 @@ function fe() {
26
26
  return e;
27
27
  }, fe.apply(this, arguments);
28
28
  }
29
- var ve;
29
+ var ye;
30
30
  (function(e) {
31
31
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
32
- })(ve || (ve = {}));
32
+ })(ye || (ye = {}));
33
33
  const zr = "popstate";
34
34
  function Ua(e) {
35
35
  e === void 0 && (e = {});
@@ -39,7 +39,7 @@ function Ua(e) {
39
39
  search: i,
40
40
  hash: s
41
41
  } = r.location;
42
- return Wt(
42
+ return Zt(
43
43
  "",
44
44
  {
45
45
  pathname: a,
@@ -60,7 +60,7 @@ function I(e, t) {
60
60
  if (e === !1 || e === null || typeof e > "u")
61
61
  throw new Error(t);
62
62
  }
63
- function be(e, t) {
63
+ function we(e, t) {
64
64
  if (!e) {
65
65
  typeof console < "u" && console.warn(t);
66
66
  try {
@@ -79,7 +79,7 @@ function Jr(e, t) {
79
79
  idx: t
80
80
  };
81
81
  }
82
- function Wt(e, t, n, r) {
82
+ function Zt(e, t, n, r) {
83
83
  return n === void 0 && (n = null), fe({
84
84
  pathname: typeof e == "string" ? e : e.pathname,
85
85
  search: "",
@@ -116,7 +116,7 @@ function ja(e, t, n, r) {
116
116
  let {
117
117
  window: o = document.defaultView,
118
118
  v5Compat: a = !1
119
- } = r, i = o.history, s = ve.Pop, l = null, c = u();
119
+ } = r, i = o.history, s = ye.Pop, l = null, c = u();
120
120
  c == null && (c = 0, i.replaceState(fe({}, i.state, {
121
121
  idx: c
122
122
  }), ""));
@@ -126,25 +126,25 @@ function ja(e, t, n, r) {
126
126
  }).idx;
127
127
  }
128
128
  function d() {
129
- s = ve.Pop;
130
- let y = u(), k = y == null ? null : y - c;
131
- c = y, l && l({
129
+ s = ye.Pop;
130
+ let v = u(), k = v == null ? null : v - c;
131
+ c = v, l && l({
132
132
  action: s,
133
133
  location: p.location,
134
134
  delta: k
135
135
  });
136
136
  }
137
- function h(y, k) {
138
- s = ve.Push;
139
- let b = Wt(p.location, y, k);
137
+ function h(v, k) {
138
+ s = ye.Push;
139
+ let b = Zt(p.location, v, k);
140
140
  c = u() + 1;
141
- let x = Jr(b, c), T = p.createHref(b);
141
+ let x = Jr(b, c), _ = p.createHref(b);
142
142
  try {
143
- i.pushState(x, "", T);
143
+ i.pushState(x, "", _);
144
144
  } catch (N) {
145
145
  if (N instanceof DOMException && N.name === "DataCloneError")
146
146
  throw N;
147
- o.location.assign(T);
147
+ o.location.assign(_);
148
148
  }
149
149
  a && l && l({
150
150
  action: s,
@@ -152,19 +152,19 @@ function ja(e, t, n, r) {
152
152
  delta: 1
153
153
  });
154
154
  }
155
- function v(y, k) {
156
- s = ve.Replace;
157
- let b = Wt(p.location, y, k);
155
+ function y(v, k) {
156
+ s = ye.Replace;
157
+ let b = Zt(p.location, v, k);
158
158
  c = u();
159
- let x = Jr(b, c), T = p.createHref(b);
160
- i.replaceState(x, "", T), a && l && l({
159
+ let x = Jr(b, c), _ = p.createHref(b);
160
+ i.replaceState(x, "", _), a && l && l({
161
161
  action: s,
162
162
  location: p.location,
163
163
  delta: 0
164
164
  });
165
165
  }
166
- function m(y) {
167
- let k = o.location.origin !== "null" ? o.location.origin : o.location.href, b = typeof y == "string" ? y : ct(y);
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
168
  return b = b.replace(/ $/, "%20"), I(k, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, k);
169
169
  }
170
170
  let p = {
@@ -174,19 +174,19 @@ function ja(e, t, n, r) {
174
174
  get location() {
175
175
  return e(o, i);
176
176
  },
177
- listen(y) {
177
+ listen(v) {
178
178
  if (l)
179
179
  throw new Error("A history only accepts one active listener");
180
- return o.addEventListener(zr, d), l = y, () => {
180
+ return o.addEventListener(zr, d), l = v, () => {
181
181
  o.removeEventListener(zr, d), l = null;
182
182
  };
183
183
  },
184
- createHref(y) {
185
- return t(o, y);
184
+ createHref(v) {
185
+ return t(o, v);
186
186
  },
187
187
  createURL: m,
188
- encodeLocation(y) {
189
- let k = m(y);
188
+ encodeLocation(v) {
189
+ let k = m(v);
190
190
  return {
191
191
  pathname: k.pathname,
192
192
  search: k.search,
@@ -194,9 +194,9 @@ function ja(e, t, n, r) {
194
194
  };
195
195
  },
196
196
  push: h,
197
- replace: v,
198
- go(y) {
199
- return i.go(y);
197
+ replace: y,
198
+ go(v) {
199
+ return i.go(v);
200
200
  }
201
201
  };
202
202
  return p;
@@ -230,7 +230,7 @@ function mt(e, t, n) {
230
230
  return n === void 0 && (n = "/"), gn(e, t, n, !1);
231
231
  }
232
232
  function gn(e, t, n, r) {
233
- let o = typeof t == "string" ? dt(t) : t, a = $e(o.pathname || "/", n);
233
+ let o = typeof t == "string" ? dt(t) : t, a = Je(o.pathname || "/", n);
234
234
  if (a == null)
235
235
  return null;
236
236
  let i = Oo(e);
@@ -357,14 +357,14 @@ function En(e, t) {
357
357
  params: r.reduce((c, u, d) => {
358
358
  let {
359
359
  paramName: h,
360
- isOptional: v
360
+ isOptional: y
361
361
  } = u;
362
362
  if (h === "*") {
363
363
  let p = s[d] || "";
364
364
  i = a.slice(0, a.length - p.length).replace(/(.)\/+$/, "$1");
365
365
  }
366
366
  const m = s[d];
367
- return v && !m ? c[h] = void 0 : c[h] = (m || "").replace(/%2F/g, "/"), c;
367
+ return y && !m ? c[h] = void 0 : c[h] = (m || "").replace(/%2F/g, "/"), c;
368
368
  }, {}),
369
369
  pathname: a,
370
370
  pathnameBase: i,
@@ -372,7 +372,7 @@ function En(e, t) {
372
372
  };
373
373
  }
374
374
  function ni(e, t, n) {
375
- t === void 0 && (t = !1), n === void 0 && (n = !0), be(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(/\*$/, "/*") + '".'));
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,
378
378
  isOptional: l != null
@@ -385,10 +385,10 @@ function ri(e) {
385
385
  try {
386
386
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
387
387
  } catch (t) {
388
- return be(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
388
+ return we(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
389
389
  }
390
390
  }
391
- function $e(e, t) {
391
+ function Je(e, t) {
392
392
  if (t === "/") return e;
393
393
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
394
394
  return null;
@@ -414,20 +414,20 @@ function ai(e, t) {
414
414
  o === ".." ? n.length > 1 && n.pop() : o !== "." && n.push(o);
415
415
  }), n.length > 1 ? n.join("/") : "/";
416
416
  }
417
- function Wn(e, t, n, r) {
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
420
  function Ao(e) {
421
421
  return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
422
422
  }
423
- function wr(e, t) {
423
+ function Tn(e, t) {
424
424
  let n = Ao(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
- function br(e, t, n, r) {
427
+ function Pn(e, t, n, r) {
428
428
  r === void 0 && (r = !1);
429
429
  let o;
430
- typeof e == "string" ? o = dt(e) : (o = fe({}, e), I(!o.pathname || !o.pathname.includes("?"), Wn("?", "pathname", "search", o)), I(!o.pathname || !o.pathname.includes("#"), Wn("#", "pathname", "hash", o)), I(!o.search || !o.search.includes("#"), Wn("#", "search", "hash", o)));
430
+ typeof e == "string" ? o = dt(e) : (o = fe({}, e), I(!o.pathname || !o.pathname.includes("?"), Kn("?", "pathname", "search", o)), I(!o.pathname || !o.pathname.includes("#"), Kn("#", "pathname", "hash", o)), I(!o.search || !o.search.includes("#"), Kn("#", "search", "hash", o)));
431
431
  let a = e === "" || o.pathname === "", i = a ? "/" : o.pathname, s;
432
432
  if (i == null)
433
433
  s = n;
@@ -450,10 +450,10 @@ class Rn {
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;
451
451
  }
452
452
  }
453
- function Zt(e) {
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]), Zn = {
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 = {
457
457
  state: "idle",
458
458
  location: void 0,
459
459
  formMethod: void 0,
@@ -471,12 +471,12 @@ const Do = ["post", "put", "patch", "delete"], ci = new Set(Do), ui = ["get", ..
471
471
  formData: void 0,
472
472
  json: void 0,
473
473
  text: void 0
474
- }, Dt = {
474
+ }, Ft = {
475
475
  state: "unblocked",
476
476
  proceed: void 0,
477
477
  reset: void 0,
478
478
  location: void 0
479
- }, Sr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, mi = (e) => ({
479
+ }, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, mi = (e) => ({
480
480
  hasErrorBoundary: !!e.hasErrorBoundary
481
481
  }), Fo = "remix-router-transitions";
482
482
  function gi(e) {
@@ -499,7 +499,7 @@ function gi(e) {
499
499
  v7_prependBasename: !1,
500
500
  v7_relativeSplatPath: !1,
501
501
  v7_skipActionErrorRevalidation: !1
502
- }, e.future), h = null, v = /* @__PURE__ */ new Set(), m = null, p = null, y = null, k = e.hydrationData != null, b = mt(i, e.history.location, l), x = !1, T = null;
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;
503
503
  if (b == null && !u) {
504
504
  let f = Ae(404, {
505
505
  pathname: e.history.location.pathname
@@ -507,7 +507,7 @@ function gi(e) {
507
507
  matches: g,
508
508
  route: S
509
509
  } = ro(i);
510
- b = g, T = {
510
+ b = g, _ = {
511
511
  [S.id]: f
512
512
  };
513
513
  }
@@ -522,9 +522,9 @@ function gi(e) {
522
522
  let f = e.hydrationData ? e.hydrationData.loaderData : null, g = e.hydrationData ? e.hydrationData.errors : null;
523
523
  if (g) {
524
524
  let S = b.findIndex((R) => g[R.route.id] !== void 0);
525
- N = b.slice(0, S + 1).every((R) => !ar(R.route, f, g));
525
+ N = b.slice(0, S + 1).every((R) => !lr(R.route, f, g));
526
526
  } else
527
- N = b.every((S) => !ar(S.route, f, g));
527
+ N = b.every((S) => !lr(S.route, f, g));
528
528
  } else
529
529
  N = e.hydrationData != null;
530
530
  else if (N = !1, b = [], d.v7_partialHydration) {
@@ -536,17 +536,17 @@ function gi(e) {
536
536
  location: e.history.location,
537
537
  matches: b,
538
538
  initialized: N,
539
- navigation: Zn,
539
+ navigation: Gn,
540
540
  // Don't restore on initial updateState() if we were SSR'd
541
541
  restoreScrollPosition: e.hydrationData != null ? !1 : null,
542
542
  preventScrollReset: !1,
543
543
  revalidation: "idle",
544
544
  loaderData: e.hydrationData && e.hydrationData.loaderData || {},
545
545
  actionData: e.hydrationData && e.hydrationData.actionData || null,
546
- errors: e.hydrationData && e.hydrationData.errors || T,
546
+ errors: e.hydrationData && e.hydrationData.errors || _,
547
547
  fetchers: /* @__PURE__ */ new Map(),
548
548
  blockers: /* @__PURE__ */ new Map()
549
- }, _ = ve.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, _e = [], Ze = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), ke = 0, Se = -1, we = /* @__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(), 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;
550
550
  function en() {
551
551
  if (h = e.history.listen((f) => {
552
552
  let {
@@ -558,7 +558,7 @@ function gi(e) {
558
558
  ft(), ft = void 0;
559
559
  return;
560
560
  }
561
- be(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.");
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
562
  let L = Br({
563
563
  currentLocation: w.location,
564
564
  nextLocation: S,
@@ -581,7 +581,7 @@ function gi(e) {
581
581
  },
582
582
  reset() {
583
583
  let H = new Map(w.blockers);
584
- H.set(L, Dt), Ee({
584
+ H.set(L, Ft), Ee({
585
585
  blockers: H
586
586
  });
587
587
  }
@@ -594,15 +594,15 @@ function gi(e) {
594
594
  let f = () => Di(t, ee);
595
595
  t.addEventListener("pagehide", f), te = () => t.removeEventListener("pagehide", f);
596
596
  }
597
- return w.initialized || qe(ve.Pop, w.location, {
597
+ return w.initialized || qe(ye.Pop, w.location, {
598
598
  initialHydration: !0
599
599
  }), U;
600
600
  }
601
- function Vn() {
602
- h && h(), te && te(), v.clear(), B && B.abort(), w.fetchers.forEach((f, g) => on(g)), w.blockers.forEach((f, g) => Ir(g));
601
+ function zn() {
602
+ h && h(), te && te(), y.clear(), B && B.abort(), w.fetchers.forEach((f, g) => on(g)), w.blockers.forEach((f, g) => Ir(g));
603
603
  }
604
604
  function tn(f) {
605
- return v.add(f), () => v.delete(f);
605
+ return y.add(f), () => y.delete(f);
606
606
  }
607
607
  function Ee(f, g) {
608
608
  g === void 0 && (g = {}), w = fe({}, w, f);
@@ -611,24 +611,24 @@ function gi(e) {
611
611
  L.state === "idle" && (pe.has(F) ? R.push(F) : S.push(F));
612
612
  }), pe.forEach((L) => {
613
613
  !w.fetchers.has(L) && !ce.has(L) && R.push(L);
614
- }), [...v].forEach((L) => L(w, {
614
+ }), [...y].forEach((L) => L(w, {
615
615
  deletedFetchers: R,
616
616
  viewTransitionOpts: g.viewTransitionOpts,
617
617
  flushSync: g.flushSync === !0
618
618
  })), d.v7_fetcherPersist ? (S.forEach((L) => w.fetchers.delete(L)), R.forEach((L) => on(L))) : R.forEach((L) => pe.delete(L));
619
619
  }
620
- function Qe(f, g, S) {
620
+ function et(f, g, S) {
621
621
  var R, L;
622
622
  let {
623
623
  flushSync: F
624
- } = S === void 0 ? {} : S, H = w.actionData != null && w.navigation.formMethod != null && je(w.navigation.formMethod) && w.navigation.state === "loading" && ((R = f.state) == null ? void 0 : R._isRedirect) !== !0, O;
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
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, Dt)));
628
- let D = K === !0 || w.navigation.formMethod != null && je(w.navigation.formMethod) && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0;
629
- s && (i = s, s = void 0), he || _ === ve.Pop || (_ === ve.Push ? e.history.push(f, f.state) : _ === ve.Replace && e.history.replace(f, f.state));
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;
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
- if (_ === ve.Pop) {
631
+ if (T === ye.Pop) {
632
632
  let Y = ee.get(w.location.pathname);
633
633
  Y && Y.has(f.pathname) ? J = {
634
634
  currentLocation: w.location,
@@ -647,10 +647,10 @@ function gi(e) {
647
647
  Ee(fe({}, g, {
648
648
  actionData: O,
649
649
  loaderData: A,
650
- historyAction: _,
650
+ historyAction: T,
651
651
  location: f,
652
652
  initialized: !0,
653
- navigation: Zn,
653
+ navigation: Gn,
654
654
  revalidation: "idle",
655
655
  restoreScrollPosition: Ur(f, g.matches || w.matches),
656
656
  preventScrollReset: D,
@@ -658,21 +658,21 @@ function gi(e) {
658
658
  }), {
659
659
  viewTransitionOpts: J,
660
660
  flushSync: F === !0
661
- }), _ = ve.Pop, K = !1, ae = !1, he = !1, Oe = !1, _e = [];
661
+ }), T = ye.Pop, K = !1, ae = !1, he = !1, Oe = !1, Te = [];
662
662
  }
663
663
  async function nn(f, g) {
664
664
  if (typeof f == "number") {
665
665
  e.history.go(f);
666
666
  return;
667
667
  }
668
- let S = or(w.location, w.matches, l, d.v7_prependBasename, f, d.v7_relativeSplatPath, g == null ? void 0 : g.fromRouteId, g == null ? void 0 : g.relative), {
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
670
  submission: L,
671
671
  error: F
672
- } = Zr(d.v7_normalizeFormMethod, !1, S, g), H = w.location, O = Wt(w.location, R, g && g.state);
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 = ve.Push;
675
- A === !0 ? P = ve.Replace : A === !1 || L != null && je(L.formMethod) && L.formAction === w.location.pathname + w.location.search && (P = ve.Replace);
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);
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,
@@ -692,7 +692,7 @@ function gi(e) {
692
692
  },
693
693
  reset() {
694
694
  let xe = new Map(w.blockers);
695
- xe.set(Y, Dt), Ee({
695
+ xe.set(Y, Ft), Ee({
696
696
  blockers: xe
697
697
  });
698
698
  }
@@ -720,7 +720,7 @@ function gi(e) {
720
720
  });
721
721
  return;
722
722
  }
723
- qe(_ || w.historyAction, w.navigation.location, {
723
+ qe(T || w.historyAction, w.navigation.location, {
724
724
  overrideNavigation: w.navigation,
725
725
  // Proxy through any rending view transition
726
726
  enableViewTransition: ae === !0
@@ -728,13 +728,13 @@ function gi(e) {
728
728
  }
729
729
  }
730
730
  async function qe(f, g, S) {
731
- B && B.abort(), B = null, _ = f, he = (S && S.startUninterruptedRevalidation) === !0, ka(w.location, w.matches), K = (S && S.preventScrollReset) === !0, ae = (S && S.enableViewTransition) === !0;
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
732
  let R = s || i, L = S && S.overrideNavigation, F = S != null && S.initialHydration && w.matches && w.matches.length > 0 && !x ? (
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 && je(S.submission.formMethod))) {
737
- Qe(g, {
736
+ if (F && w.initialized && !Oe && xi(w.location, g) && !(S && S.submission && ze(S.submission.formMethod))) {
737
+ et(g, {
738
738
  matches: F
739
739
  }, {
740
740
  flushSync: H
@@ -747,8 +747,8 @@ function gi(e) {
747
747
  error: le,
748
748
  notFoundMatches: Q,
749
749
  route: me
750
- } = jn(g.pathname);
751
- Qe(g, {
750
+ } = Jn(g.pathname);
751
+ et(g, {
752
752
  matches: Q,
753
753
  loaderData: {},
754
754
  errors: {
@@ -766,7 +766,7 @@ function gi(e) {
766
766
  type: oe.error,
767
767
  error: S.pendingError
768
768
  }];
769
- else if (S && S.submission && je(S.submission.formMethod)) {
769
+ else if (S && S.submission && ze(S.submission.formMethod)) {
770
770
  let le = await j(A, g, S.submission, F, O.active, {
771
771
  replace: S.replace,
772
772
  flushSync: H
@@ -775,8 +775,8 @@ function gi(e) {
775
775
  return;
776
776
  if (le.pendingActionResult) {
777
777
  let [Q, me] = le.pendingActionResult;
778
- if (Ie(me) && Zt(me.error) && me.error.status === 404) {
779
- B = null, Qe(g, {
778
+ if (Ie(me) && qt(me.error) && me.error.status === 404) {
779
+ B = null, et(g, {
780
780
  matches: le.matches,
781
781
  loaderData: {},
782
782
  errors: {
@@ -786,7 +786,7 @@ function gi(e) {
786
786
  return;
787
787
  }
788
788
  }
789
- F = le.matches || F, P = le.pendingActionResult, L = qn(g, S.submission), H = !1, O.active = !1, A = Rt(e.history, A.url, A.signal);
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);
790
790
  }
791
791
  let {
792
792
  shortCircuited: D,
@@ -794,7 +794,7 @@ function gi(e) {
794
794
  loaderData: Y,
795
795
  errors: xe
796
796
  } = await V(A, g, F, O.active, L, S && S.submission, S && S.fetcherSubmission, S && S.replace, S && S.initialHydration === !0, H, P);
797
- D || (B = null, Qe(g, fe({
797
+ D || (B = null, et(g, fe({
798
798
  matches: J || F
799
799
  }, no(P), {
800
800
  loaderData: Y,
@@ -830,7 +830,7 @@ function gi(e) {
830
830
  notFoundMatches: D,
831
831
  error: J,
832
832
  route: Y
833
- } = jn(g.pathname);
833
+ } = Jn(g.pathname);
834
834
  return {
835
835
  matches: D,
836
836
  pendingActionResult: [Y.id, {
@@ -840,7 +840,7 @@ function gi(e) {
840
840
  };
841
841
  }
842
842
  }
843
- let O, A = jt(R, g);
843
+ let O, A = $t(R, g);
844
844
  if (!A.route.action && !A.route.lazy)
845
845
  O = {
846
846
  type: oe.error,
@@ -854,7 +854,7 @@ function gi(e) {
854
854
  return {
855
855
  shortCircuited: !0
856
856
  };
857
- if (yt(O)) {
857
+ if (vt(O)) {
858
858
  let P;
859
859
  return F && F.replace != null ? P = F.replace : P = Xr(O.response.headers.get("Location"), new URL(f.url), l) === w.location.pathname + w.location.search, await q(f, O, !0, {
860
860
  submission: S,
@@ -869,7 +869,7 @@ function gi(e) {
869
869
  });
870
870
  if (Ie(O)) {
871
871
  let P = gt(R, A.route.id);
872
- return (F && F.replace) !== !0 && (_ = ve.Push), {
872
+ return (F && F.replace) !== !0 && (T = ye.Push), {
873
873
  matches: R,
874
874
  pendingActionResult: [P.route.id, O]
875
875
  };
@@ -880,7 +880,7 @@ function gi(e) {
880
880
  };
881
881
  }
882
882
  async function V(f, g, S, R, L, F, H, O, A, P, D) {
883
- let J = L || qn(g, F), Y = F || H || ao(J), xe = !he && (!d.v7_partialHydration || !A);
883
+ let J = L || Yn(g, F), Y = F || H || ao(J), xe = !he && (!d.v7_partialHydration || !A);
884
884
  if (R) {
885
885
  if (xe) {
886
886
  let ge = ne(D);
@@ -912,21 +912,21 @@ function gi(e) {
912
912
  let {
913
913
  error: ge,
914
914
  notFoundMatches: Ct,
915
- route: At
916
- } = jn(g.pathname);
915
+ route: Dt
916
+ } = Jn(g.pathname);
917
917
  return {
918
918
  matches: Ct,
919
919
  loaderData: {},
920
920
  errors: {
921
- [At.id]: ge
921
+ [Dt.id]: ge
922
922
  }
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, _e, Ze, pe, He, Pe, le, l, D);
927
- if ($n((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 && 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) {
928
928
  let X = Dr();
929
- return Qe(g, fe({
929
+ return et(g, fe({
930
930
  matches: S,
931
931
  loaderData: {},
932
932
  // Commit pending error if we're short circuiting
@@ -958,41 +958,41 @@ 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: Ot,
962
- fetcherResults: nt
963
- } = await et(w, S, Q, me, f);
961
+ loaderResults: Mt,
962
+ fetcherResults: rt
963
+ } = await tt(w, S, Q, me, f);
964
964
  if (f.signal.aborted)
965
965
  return {
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(Ot);
969
+ let Ge = dn(Mt);
970
970
  if (Ge)
971
971
  return await q(f, Ge.result, !0, {
972
972
  replace: O
973
973
  }), {
974
974
  shortCircuited: !0
975
975
  };
976
- if (Ge = dn(nt), Ge)
976
+ if (Ge = dn(rt), Ge)
977
977
  return Pe.add(Ge.key), await q(f, Ge.result, !0, {
978
978
  replace: O
979
979
  }), {
980
980
  shortCircuited: !0
981
981
  };
982
982
  let {
983
- loaderData: zn,
984
- errors: Mt
985
- } = eo(w, S, Ot, D, me, nt, Me);
983
+ loaderData: Zn,
984
+ errors: At
985
+ } = eo(w, S, Mt, D, me, rt, Me);
986
986
  Me.forEach((X, ge) => {
987
987
  X.subscribe((Ct) => {
988
988
  (Ct || X.done) && Me.delete(ge);
989
989
  });
990
- }), d.v7_partialHydration && A && w.errors && (Mt = fe({}, w.errors, Mt));
990
+ }), d.v7_partialHydration && A && w.errors && (At = fe({}, w.errors, At));
991
991
  let pt = Dr(), cn = Fr(Se), un = pt || cn || me.length > 0;
992
992
  return fe({
993
993
  matches: S,
994
- loaderData: zn,
995
- errors: Mt
994
+ loaderData: Zn,
995
+ errors: At
996
996
  }, un ? {
997
997
  fetchers: new Map(w.fetchers)
998
998
  } : {});
@@ -1007,7 +1007,7 @@ function gi(e) {
1007
1007
  }
1008
1008
  function z(f) {
1009
1009
  return f.forEach((g) => {
1010
- let S = w.fetchers.get(g.key), R = Ft(void 0, S ? S.data : void 0);
1010
+ let S = w.fetchers.get(g.key), R = It(void 0, S ? S.data : void 0);
1011
1011
  w.fetchers.set(g.key, R);
1012
1012
  }), new Map(w.fetchers);
1013
1013
  }
@@ -1015,9 +1015,9 @@ 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 = or(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);
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
1019
  if (A.active && A.matches && (O = A.matches), !O) {
1020
- tt(f, g, Ae(404, {
1020
+ nt(f, g, Ae(404, {
1021
1021
  pathname: H
1022
1022
  }), {
1023
1023
  flushSync: L
@@ -1030,13 +1030,13 @@ function gi(e) {
1030
1030
  error: J
1031
1031
  } = Zr(d.v7_normalizeFormMethod, !0, H, R);
1032
1032
  if (J) {
1033
- tt(f, g, J, {
1033
+ nt(f, g, J, {
1034
1034
  flushSync: L
1035
1035
  });
1036
1036
  return;
1037
1037
  }
1038
- let Y = jt(O, P), xe = (R && R.preventScrollReset) === !0;
1039
- if (D && je(D.formMethod)) {
1038
+ let Y = $t(O, P), xe = (R && R.preventScrollReset) === !0;
1039
+ if (D && ze(D.formMethod)) {
1040
1040
  W(f, g, P, Y, O, A.active, L, xe, D);
1041
1041
  return;
1042
1042
  }
@@ -1047,14 +1047,14 @@ function gi(e) {
1047
1047
  }
1048
1048
  async function W(f, g, S, R, L, F, H, O, A) {
1049
1049
  ht(), He.delete(f);
1050
- function P(ye) {
1051
- if (!ye.route.action && !ye.route.lazy) {
1050
+ function P(ve) {
1051
+ if (!ve.route.action && !ve.route.lazy) {
1052
1052
  let Et = Ae(405, {
1053
1053
  method: A.formMethod,
1054
1054
  pathname: S,
1055
1055
  routeId: g
1056
1056
  });
1057
- return tt(f, g, Et, {
1057
+ return nt(f, g, Et, {
1058
1058
  flushSync: H
1059
1059
  }), !0;
1060
1060
  }
@@ -1068,19 +1068,19 @@ function gi(e) {
1068
1068
  });
1069
1069
  let J = new AbortController(), Y = Rt(e.history, S, J.signal, A);
1070
1070
  if (F) {
1071
- let ye = await ln(L, new URL(Y.url).pathname, Y.signal, f);
1072
- if (ye.type === "aborted")
1071
+ let ve = await ln(L, new URL(Y.url).pathname, Y.signal, f);
1072
+ if (ve.type === "aborted")
1073
1073
  return;
1074
- if (ye.type === "error") {
1075
- tt(f, g, ye.error, {
1074
+ if (ve.type === "error") {
1075
+ nt(f, g, ve.error, {
1076
1076
  flushSync: H
1077
1077
  });
1078
1078
  return;
1079
- } else if (ye.matches) {
1080
- if (L = ye.matches, R = jt(L, S), P(R))
1079
+ } else if (ve.matches) {
1080
+ if (L = ve.matches, R = $t(L, S), P(R))
1081
1081
  return;
1082
1082
  } else {
1083
- tt(f, g, Ae(404, {
1083
+ nt(f, g, Ae(404, {
1084
1084
  pathname: S
1085
1085
  }), {
1086
1086
  flushSync: H
@@ -1095,22 +1095,22 @@ function gi(e) {
1095
1095
  return;
1096
1096
  }
1097
1097
  if (d.v7_fetcherPersist && pe.has(f)) {
1098
- if (yt(Q) || Ie(Q)) {
1098
+ if (vt(Q) || Ie(Q)) {
1099
1099
  Ke(f, at(void 0));
1100
1100
  return;
1101
1101
  }
1102
1102
  } else {
1103
- if (yt(Q))
1103
+ if (vt(Q))
1104
1104
  if (ce.delete(f), Se > xe) {
1105
1105
  Ke(f, at(void 0));
1106
1106
  return;
1107
1107
  } else
1108
- return Pe.add(f), Ke(f, Ft(A)), q(Y, Q, !1, {
1108
+ return Pe.add(f), Ke(f, It(A)), q(Y, Q, !1, {
1109
1109
  fetcherSubmission: A,
1110
1110
  preventScrollReset: O
1111
1111
  });
1112
1112
  if (Ie(Q)) {
1113
- tt(f, g, Q.error);
1113
+ nt(f, g, Q.error);
1114
1114
  return;
1115
1115
  }
1116
1116
  }
@@ -1118,28 +1118,28 @@ function gi(e) {
1118
1118
  throw Ae(400, {
1119
1119
  type: "defer-action"
1120
1120
  });
1121
- let me = w.navigation.location || w.location, St = Rt(e.history, me, J.signal), Ot = s || i, nt = w.navigation.state !== "idle" ? mt(Ot, w.navigation.location, l) : w.matches;
1122
- I(nt, "Didn't find any matches after fetcher action");
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;
1122
+ I(rt, "Didn't find any matches after fetcher action");
1123
1123
  let Ge = ++ke;
1124
- we.set(f, Ge);
1125
- let zn = Ft(A, Q.data);
1126
- w.fetchers.set(f, zn);
1127
- let [Mt, pt] = Kr(e.history, w, nt, A, me, !1, d.v7_skipActionErrorRevalidation, Oe, _e, Ze, pe, He, Pe, Ot, l, [R.route.id, Q]);
1128
- pt.filter((ye) => ye.key !== f).forEach((ye) => {
1129
- let Et = ye.key, Vr = w.fetchers.get(Et), Na = Ft(void 0, Vr ? Vr.data : void 0);
1130
- w.fetchers.set(Et, Na), ot(Et), ye.controller && ce.set(Et, ye.controller);
1124
+ be.set(f, Ge);
1125
+ let Zn = It(A, Q.data);
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]);
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);
1131
1131
  }), Ee({
1132
1132
  fetchers: new Map(w.fetchers)
1133
1133
  });
1134
- let cn = () => pt.forEach((ye) => ot(ye.key));
1134
+ let cn = () => pt.forEach((ve) => ot(ve.key));
1135
1135
  J.signal.addEventListener("abort", cn);
1136
1136
  let {
1137
1137
  loaderResults: un,
1138
1138
  fetcherResults: X
1139
- } = await et(w, nt, Mt, pt, St);
1139
+ } = await tt(w, rt, At, pt, St);
1140
1140
  if (J.signal.aborted)
1141
1141
  return;
1142
- J.signal.removeEventListener("abort", cn), we.delete(f), ce.delete(f), pt.forEach((ye) => ce.delete(ye.key));
1142
+ J.signal.removeEventListener("abort", cn), be.delete(f), ce.delete(f), pt.forEach((ve) => ce.delete(ve.key));
1143
1143
  let ge = dn(un);
1144
1144
  if (ge)
1145
1145
  return q(St, ge.result, !1, {
@@ -1151,26 +1151,26 @@ function gi(e) {
1151
1151
  });
1152
1152
  let {
1153
1153
  loaderData: Ct,
1154
- errors: At
1155
- } = eo(w, nt, un, void 0, pt, X, Me);
1154
+ errors: Dt
1155
+ } = eo(w, rt, un, void 0, pt, X, Me);
1156
1156
  if (w.fetchers.has(f)) {
1157
- let ye = at(Q.data);
1158
- w.fetchers.set(f, ye);
1157
+ let ve = at(Q.data);
1158
+ w.fetchers.set(f, ve);
1159
1159
  }
1160
- Fr(Ge), w.navigation.state === "loading" && Ge > Se ? (I(_, "Expected pending action"), B && B.abort(), Qe(w.navigation.location, {
1161
- matches: nt,
1160
+ Fr(Ge), w.navigation.state === "loading" && Ge > Se ? (I(T, "Expected pending action"), B && B.abort(), et(w.navigation.location, {
1161
+ matches: rt,
1162
1162
  loaderData: Ct,
1163
- errors: At,
1163
+ errors: Dt,
1164
1164
  fetchers: new Map(w.fetchers)
1165
1165
  })) : (Ee({
1166
- errors: At,
1167
- loaderData: to(w.loaderData, Ct, nt, At),
1166
+ errors: Dt,
1167
+ loaderData: to(w.loaderData, Ct, rt, Dt),
1168
1168
  fetchers: new Map(w.fetchers)
1169
1169
  }), Oe = !1);
1170
1170
  }
1171
1171
  async function re(f, g, S, R, L, F, H, O, A) {
1172
1172
  let P = w.fetchers.get(f);
1173
- Ke(f, Ft(A, P ? P.data : void 0), {
1173
+ Ke(f, It(A, P ? P.data : void 0), {
1174
1174
  flushSync: H
1175
1175
  });
1176
1176
  let D = new AbortController(), J = Rt(e.history, S, D.signal);
@@ -1179,14 +1179,14 @@ function gi(e) {
1179
1179
  if (Q.type === "aborted")
1180
1180
  return;
1181
1181
  if (Q.type === "error") {
1182
- tt(f, g, Q.error, {
1182
+ nt(f, g, Q.error, {
1183
1183
  flushSync: H
1184
1184
  });
1185
1185
  return;
1186
1186
  } else if (Q.matches)
1187
- L = Q.matches, R = jt(L, S);
1187
+ L = Q.matches, R = $t(L, S);
1188
1188
  else {
1189
- tt(f, g, Ae(404, {
1189
+ nt(f, g, Ae(404, {
1190
1190
  pathname: S
1191
1191
  }), {
1192
1192
  flushSync: H
@@ -1196,12 +1196,12 @@ function gi(e) {
1196
1196
  }
1197
1197
  ce.set(f, D);
1198
1198
  let Y = ke, le = (await ue("loader", w, J, [R], L, f))[R.route.id];
1199
- if (lt(le) && (le = await Cr(le, J.signal, !0) || le), ce.get(f) === D && ce.delete(f), !J.signal.aborted) {
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));
1202
1202
  return;
1203
1203
  }
1204
- if (yt(le))
1204
+ if (vt(le))
1205
1205
  if (Se > Y) {
1206
1206
  Ke(f, at(void 0));
1207
1207
  return;
@@ -1212,7 +1212,7 @@ function gi(e) {
1212
1212
  return;
1213
1213
  }
1214
1214
  if (Ie(le)) {
1215
- tt(f, g, le.error);
1215
+ nt(f, g, le.error);
1216
1216
  return;
1217
1217
  }
1218
1218
  I(!lt(le), "Unhandled fetcher deferred data"), Ke(f, at(le.data));
@@ -1228,18 +1228,18 @@ function gi(e) {
1228
1228
  g.response.headers.has("X-Remix-Revalidate") && (Oe = !0);
1229
1229
  let A = g.response.headers.get("Location");
1230
1230
  I(A, "Expected a Location header on the redirect Response"), A = Xr(A, new URL(f.url), l);
1231
- let P = Wt(w.location, A, {
1231
+ let P = Zt(w.location, A, {
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 (Sr.test(A)) {
1238
+ else if (Cr.test(A)) {
1239
1239
  const me = e.history.createURL(A);
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
- $e(me.pathname, l) == null;
1242
+ Je(me.pathname, l) == null;
1243
1243
  }
1244
1244
  if (Q) {
1245
1245
  O ? t.location.replace(A) : t.location.assign(A);
@@ -1247,14 +1247,14 @@ function gi(e) {
1247
1247
  }
1248
1248
  }
1249
1249
  B = null;
1250
- let D = O === !0 || g.response.headers.has("X-Remix-Replace") ? ve.Replace : ve.Push, {
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
1253
  formEncType: xe
1254
1254
  } = w.navigation;
1255
1255
  !L && !F && J && Y && xe && (L = ao(w.navigation));
1256
1256
  let le = L || F;
1257
- if (hi.has(g.response.status) && le && je(le.formMethod))
1257
+ if (hi.has(g.response.status) && le && ze(le.formMethod))
1258
1258
  await qe(D, P, {
1259
1259
  submission: fe({}, le, {
1260
1260
  formAction: A
@@ -1264,7 +1264,7 @@ function gi(e) {
1264
1264
  enableViewTransition: S ? ae : void 0
1265
1265
  });
1266
1266
  else {
1267
- let Q = qn(P, L);
1267
+ let Q = Yn(P, L);
1268
1268
  await qe(D, P, {
1269
1269
  overrideNavigation: Q,
1270
1270
  // Send fetcher submissions through for shouldRevalidate
@@ -1298,7 +1298,7 @@ function gi(e) {
1298
1298
  O[A] = await Ei(P);
1299
1299
  return O;
1300
1300
  }
1301
- async function et(f, g, S, R, L) {
1301
+ async function tt(f, g, S, R, L) {
1302
1302
  let F = f.matches, H = ue("loader", f, L, 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];
@@ -1315,13 +1315,13 @@ function gi(e) {
1315
1315
  }
1316
1316
  });
1317
1317
  })), A = await H, P = (await O).reduce((D, J) => Object.assign(D, J), {});
1318
- return await Promise.all([_i(g, A, L.signal, F, f.loaderData), Pi(g, P, R)]), {
1318
+ return await Promise.all([Ti(g, A, L.signal, F, f.loaderData), Pi(g, P, R)]), {
1319
1319
  loaderResults: A,
1320
1320
  fetcherResults: P
1321
1321
  };
1322
1322
  }
1323
1323
  function ht() {
1324
- Oe = !0, _e.push(...$n()), He.forEach((f, g) => {
1324
+ Oe = !0, Te.push(...Wn()), He.forEach((f, g) => {
1325
1325
  ce.has(g) && Ze.add(g), ot(g);
1326
1326
  });
1327
1327
  }
@@ -1332,7 +1332,7 @@ function gi(e) {
1332
1332
  flushSync: (S && S.flushSync) === !0
1333
1333
  });
1334
1334
  }
1335
- function tt(f, g, S, R) {
1335
+ function nt(f, g, S, R) {
1336
1336
  R === void 0 && (R = {});
1337
1337
  let L = gt(w.matches, g);
1338
1338
  on(f), Ee({
@@ -1349,7 +1349,7 @@ function gi(e) {
1349
1349
  }
1350
1350
  function on(f) {
1351
1351
  let g = w.fetchers.get(f);
1352
- ce.has(f) && !(g && g.state === "loading" && we.has(f)) && ot(f), He.delete(f), we.delete(f), Pe.delete(f), d.v7_fetcherPersist && pe.delete(f), Ze.delete(f), w.fetchers.delete(f);
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
1354
  function Ca(f) {
1355
1355
  let g = (ie.get(f) || 0) - 1;
@@ -1377,22 +1377,22 @@ function gi(e) {
1377
1377
  }
1378
1378
  function Fr(f) {
1379
1379
  let g = [];
1380
- for (let [S, R] of we)
1380
+ for (let [S, R] of be)
1381
1381
  if (R < f) {
1382
1382
  let L = w.fetchers.get(S);
1383
- I(L, "Expected fetcher: " + S), L.state === "loading" && (ot(S), we.delete(S), g.push(S));
1383
+ I(L, "Expected fetcher: " + S), L.state === "loading" && (ot(S), be.delete(S), g.push(S));
1384
1384
  }
1385
1385
  return Ar(g), g.length > 0;
1386
1386
  }
1387
1387
  function Ea(f, g) {
1388
- let S = w.blockers.get(f) || Dt;
1388
+ let S = w.blockers.get(f) || Ft;
1389
1389
  return Ce.get(f) !== g && Ce.set(f, g), S;
1390
1390
  }
1391
1391
  function Ir(f) {
1392
1392
  w.blockers.delete(f), Ce.delete(f);
1393
1393
  }
1394
1394
  function an(f, g) {
1395
- let S = w.blockers.get(f) || Dt;
1395
+ let S = w.blockers.get(f) || Ft;
1396
1396
  I(S.state === "unblocked" && g.state === "blocked" || S.state === "blocked" && g.state === "blocked" || S.state === "blocked" && g.state === "proceeding" || S.state === "blocked" && g.state === "unblocked" || S.state === "proceeding" && g.state === "unblocked", "Invalid blocker state transition: " + S.state + " -> " + g.state);
1397
1397
  let R = new Map(w.blockers);
1398
1398
  R.set(f, g), Ee({
@@ -1407,7 +1407,7 @@ function gi(e) {
1407
1407
  } = f;
1408
1408
  if (Ce.size === 0)
1409
1409
  return;
1410
- Ce.size > 1 && be(!1, "A router only supports one blocker at a time");
1410
+ Ce.size > 1 && we(!1, "A router only supports one blocker at a time");
1411
1411
  let L = Array.from(Ce.entries()), [F, H] = L[L.length - 1], O = w.blockers.get(F);
1412
1412
  if (!(O && O.state === "proceeding") && H({
1413
1413
  currentLocation: g,
@@ -1416,27 +1416,27 @@ function gi(e) {
1416
1416
  }))
1417
1417
  return F;
1418
1418
  }
1419
- function jn(f) {
1419
+ function Jn(f) {
1420
1420
  let g = Ae(404, {
1421
1421
  pathname: f
1422
1422
  }), S = s || i, {
1423
1423
  matches: R,
1424
1424
  route: L
1425
1425
  } = ro(S);
1426
- return $n(), {
1426
+ return Wn(), {
1427
1427
  notFoundMatches: R,
1428
1428
  route: L,
1429
1429
  error: g
1430
1430
  };
1431
1431
  }
1432
- function $n(f) {
1432
+ function Wn(f) {
1433
1433
  let g = [];
1434
1434
  return Me.forEach((S, R) => {
1435
1435
  (!f || f(R)) && (S.cancel(), g.push(R), Me.delete(R));
1436
1436
  }), g;
1437
1437
  }
1438
1438
  function Ra(f, g, S) {
1439
- if (m = f, y = g, p = S || null, !k && w.navigation === Zn) {
1439
+ if (m = f, v = g, p = S || null, !k && w.navigation === Gn) {
1440
1440
  k = !0;
1441
1441
  let R = Ur(w.location, w.matches);
1442
1442
  R != null && Ee({
@@ -1444,16 +1444,16 @@ function gi(e) {
1444
1444
  });
1445
1445
  }
1446
1446
  return () => {
1447
- m = null, y = null, p = null;
1447
+ m = null, v = null, p = null;
1448
1448
  };
1449
1449
  }
1450
1450
  function Hr(f, g) {
1451
1451
  return p && p(f, g.map((R) => Ja(R, w.loaderData))) || f.key;
1452
1452
  }
1453
1453
  function ka(f, g) {
1454
- if (m && y) {
1454
+ if (m && v) {
1455
1455
  let S = Hr(f, g);
1456
- m[S] = y();
1456
+ m[S] = v();
1457
1457
  }
1458
1458
  }
1459
1459
  function Ur(f, g) {
@@ -1564,7 +1564,7 @@ function gi(e) {
1564
1564
  encodeLocation: (f) => e.history.encodeLocation(f),
1565
1565
  getFetcher: Mr,
1566
1566
  deleteFetcher: Ca,
1567
- dispose: Vn,
1567
+ dispose: zn,
1568
1568
  getBlocker: Ea,
1569
1569
  deleteBlocker: Ir,
1570
1570
  patchRoutes: La,
@@ -1575,10 +1575,10 @@ function gi(e) {
1575
1575
  _internalSetRoutes: xa
1576
1576
  }, U;
1577
1577
  }
1578
- function yi(e) {
1578
+ function vi(e) {
1579
1579
  return e != null && ("formData" in e && e.formData != null || "body" in e && e.body !== void 0);
1580
1580
  }
1581
- function or(e, t, n, r, o, a, i, s) {
1581
+ function sr(e, t, n, r, o, a, i, s) {
1582
1582
  let l, c;
1583
1583
  if (i) {
1584
1584
  l = [];
@@ -1589,14 +1589,14 @@ function or(e, t, n, r, o, a, i, s) {
1589
1589
  }
1590
1590
  } else
1591
1591
  l = t, c = t[t.length - 1];
1592
- let u = br(o || ".", wr(l, a), $e(e.pathname, n) || e.pathname, s === "path");
1592
+ let u = Pn(o || ".", Tn(l, a), Je(e.pathname, n) || e.pathname, s === "path");
1593
1593
  if (o == null && (u.search = e.search, u.hash = e.hash), (o == null || o === "" || o === ".") && c) {
1594
- let d = Er(u.search);
1594
+ let d = Rr(u.search);
1595
1595
  if (c.route.index && !d)
1596
1596
  u.search = u.search ? u.search.replace(/^\?/, "?index&") : "?index";
1597
1597
  else if (!c.route.index && d) {
1598
- let h = new URLSearchParams(u.search), v = h.getAll("index");
1599
- h.delete("index"), v.filter((p) => p).forEach((p) => h.append("index", p));
1598
+ let h = new URLSearchParams(u.search), y = h.getAll("index");
1599
+ h.delete("index"), y.filter((p) => p).forEach((p) => h.append("index", p));
1600
1600
  let m = h.toString();
1601
1601
  u.search = m ? "?" + m : "";
1602
1602
  }
@@ -1604,11 +1604,11 @@ function or(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 || !yi(r))
1607
+ if (!r || !vi(r))
1608
1608
  return {
1609
1609
  path: n
1610
1610
  };
1611
- if (r.formMethod && !Ti(r.formMethod))
1611
+ if (r.formMethod && !_i(r.formMethod))
1612
1612
  return {
1613
1613
  path: n,
1614
1614
  error: Ae(405, {
@@ -1623,13 +1623,13 @@ function Zr(e, t, n, r) {
1623
1623
  }), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Ho(n);
1624
1624
  if (r.body !== void 0) {
1625
1625
  if (r.formEncType === "text/plain") {
1626
- if (!je(i))
1626
+ if (!ze(i))
1627
1627
  return o();
1628
1628
  let h = typeof r.body == "string" ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? (
1629
1629
  // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data
1630
- Array.from(r.body.entries()).reduce((v, m) => {
1631
- let [p, y] = m;
1632
- return "" + v + p + "=" + y + `
1630
+ Array.from(r.body.entries()).reduce((y, m) => {
1631
+ let [p, v] = m;
1632
+ return "" + y + p + "=" + v + `
1633
1633
  `;
1634
1634
  }, "")
1635
1635
  ) : String(r.body);
@@ -1645,7 +1645,7 @@ function Zr(e, t, n, r) {
1645
1645
  }
1646
1646
  };
1647
1647
  } else if (r.formEncType === "application/json") {
1648
- if (!je(i))
1648
+ if (!ze(i))
1649
1649
  return o();
1650
1650
  try {
1651
1651
  let h = typeof r.body == "string" ? JSON.parse(r.body) : r.body;
@@ -1668,9 +1668,9 @@ function Zr(e, t, n, r) {
1668
1668
  I(typeof FormData == "function", "FormData is not available in this environment");
1669
1669
  let l, c;
1670
1670
  if (r.formData)
1671
- l = ir(r.formData), c = r.formData;
1671
+ l = cr(r.formData), c = r.formData;
1672
1672
  else if (r.body instanceof FormData)
1673
- l = ir(r.body), c = r.body;
1673
+ l = cr(r.body), c = r.body;
1674
1674
  else if (r.body instanceof URLSearchParams)
1675
1675
  l = r.body, c = Qr(l);
1676
1676
  else if (r.body == null)
@@ -1689,13 +1689,13 @@ function Zr(e, t, n, r) {
1689
1689
  json: void 0,
1690
1690
  text: void 0
1691
1691
  };
1692
- if (je(u.formMethod))
1692
+ if (ze(u.formMethod))
1693
1693
  return {
1694
1694
  path: n,
1695
1695
  submission: u
1696
1696
  };
1697
1697
  let d = dt(n);
1698
- return t && d.search && Er(d.search) && l.append("index", ""), d.search = "?" + l, {
1698
+ return t && d.search && Rr(d.search) && l.append("index", ""), d.search = "?" + l, {
1699
1699
  path: ct(d),
1700
1700
  submission: u
1701
1701
  };
@@ -1705,30 +1705,30 @@ function qr(e, t, n) {
1705
1705
  let r = e.findIndex((o) => o.route.id === t);
1706
1706
  return r >= 0 ? e.slice(0, n ? r + 1 : r) : e;
1707
1707
  }
1708
- function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, v, m, p) {
1709
- let y = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0, k = e.createURL(t.location), b = e.createURL(o), x = n;
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
1710
  a && t.errors ? x = qr(n, Object.keys(t.errors)[0], !0) : p && Ie(p[1]) && (x = qr(n, p[0]));
1711
- let T = p ? p[1].statusCode : void 0, N = i && T && T >= 400, U = x.filter((_, K) => {
1711
+ let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U = x.filter((T, K) => {
1712
1712
  let {
1713
1713
  route: B
1714
- } = _;
1714
+ } = T;
1715
1715
  if (B.lazy)
1716
1716
  return !0;
1717
1717
  if (B.loader == null)
1718
1718
  return !1;
1719
1719
  if (a)
1720
- return ar(B, t.loaderData, t.errors);
1721
- if (vi(t.loaderData, t.matches[K], _) || l.some((te) => te === _.route.id))
1720
+ return lr(B, t.loaderData, t.errors);
1721
+ if (yi(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
1722
1722
  return !0;
1723
- let ae = t.matches[K], ee = _;
1724
- return Gr(_, fe({
1723
+ let ae = t.matches[K], ee = T;
1724
+ return Gr(T, fe({
1725
1725
  currentUrl: k,
1726
1726
  currentParams: ae.params,
1727
1727
  nextUrl: b,
1728
1728
  nextParams: ee.params
1729
1729
  }, r, {
1730
- actionResult: y,
1731
- actionStatus: T,
1730
+ actionResult: v,
1731
+ actionStatus: _,
1732
1732
  defaultShouldRevalidate: N ? !1 : (
1733
1733
  // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
1734
1734
  s || k.pathname + k.search === b.pathname + b.search || // Search params affect all loaders
@@ -1736,42 +1736,42 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, v, m, p) {
1736
1736
  )
1737
1737
  }));
1738
1738
  }), w = [];
1739
- return d.forEach((_, K) => {
1740
- if (a || !n.some((he) => he.route.id === _.routeId) || u.has(K))
1739
+ return d.forEach((T, K) => {
1740
+ if (a || !n.some((he) => he.route.id === T.routeId) || u.has(K))
1741
1741
  return;
1742
- let B = mt(v, _.path, m);
1742
+ let B = mt(y, T.path, m);
1743
1743
  if (!B) {
1744
1744
  w.push({
1745
1745
  key: K,
1746
- routeId: _.routeId,
1747
- path: _.path,
1746
+ routeId: T.routeId,
1747
+ path: T.path,
1748
1748
  matches: null,
1749
1749
  match: null,
1750
1750
  controller: null
1751
1751
  });
1752
1752
  return;
1753
1753
  }
1754
- let ae = t.fetchers.get(K), ee = jt(B, _.path), te = !1;
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
1756
  currentUrl: k,
1757
1757
  currentParams: t.matches[t.matches.length - 1].params,
1758
1758
  nextUrl: b,
1759
1759
  nextParams: n[n.length - 1].params
1760
1760
  }, r, {
1761
- actionResult: y,
1762
- actionStatus: T,
1761
+ actionResult: v,
1762
+ actionStatus: _,
1763
1763
  defaultShouldRevalidate: N ? !1 : s
1764
1764
  })), te && w.push({
1765
1765
  key: K,
1766
- routeId: _.routeId,
1767
- path: _.path,
1766
+ routeId: T.routeId,
1767
+ path: T.path,
1768
1768
  matches: B,
1769
1769
  match: ee,
1770
1770
  controller: new AbortController()
1771
1771
  });
1772
1772
  }), [U, w];
1773
1773
  }
1774
- function ar(e, t, n) {
1774
+ function lr(e, t, n) {
1775
1775
  if (e.lazy)
1776
1776
  return !0;
1777
1777
  if (!e.loader)
@@ -1779,7 +1779,7 @@ function ar(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 vi(e, t, n) {
1782
+ function yi(e, t, n) {
1783
1783
  let r = (
1784
1784
  // [a] -> [a, b]
1785
1785
  !t || // [a, b] -> [a, c]
@@ -1834,7 +1834,7 @@ 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
- be(!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 && !$a.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
@@ -1849,11 +1849,11 @@ async function bi(e) {
1849
1849
  }), {});
1850
1850
  }
1851
1851
  async function Si(e, t, n, r, o, a, i, s, l, c) {
1852
- let u = a.map((v) => v.route.lazy ? wi(v.route, l, s) : void 0), d = a.map((v, m) => {
1853
- let p = u[m], y = o.some((b) => b.route.id === v.route.id);
1854
- return fe({}, v, {
1855
- shouldLoad: y,
1856
- resolve: async (b) => (b && r.method === "GET" && (v.route.lazy || v.route.loader) && (y = !0), y ? Ci(t, r, v, p, b, c) : Promise.resolve({
1852
+ let u = a.map((y) => y.route.lazy ? wi(y.route, l, s) : void 0), d = a.map((y, m) => {
1853
+ let p = u[m], v = o.some((b) => b.route.id === y.route.id);
1854
+ return fe({}, y, {
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({
1857
1857
  type: oe.data,
1858
1858
  result: void 0
1859
1859
  }))
@@ -1879,7 +1879,7 @@ async function Ci(e, t, n, r, o, a) {
1879
1879
  request: t,
1880
1880
  params: n.params,
1881
1881
  context: a
1882
- }, ...m !== void 0 ? [m] : []), v = (async () => {
1882
+ }, ...m !== void 0 ? [m] : []), y = (async () => {
1883
1883
  try {
1884
1884
  return {
1885
1885
  type: "data",
@@ -1892,7 +1892,7 @@ async function Ci(e, t, n, r, o, a) {
1892
1892
  };
1893
1893
  }
1894
1894
  })();
1895
- return Promise.race([v, d]);
1895
+ return Promise.race([y, d]);
1896
1896
  };
1897
1897
  try {
1898
1898
  let c = n.route[e];
@@ -1986,14 +1986,14 @@ async function Ei(e) {
1986
1986
  return {
1987
1987
  type: oe.error,
1988
1988
  error: new Rn(((r = t.init) == null ? void 0 : r.status) || 500, void 0, t.data),
1989
- statusCode: Zt(t) ? t.status : void 0,
1989
+ statusCode: qt(t) ? t.status : void 0,
1990
1990
  headers: (o = t.init) != null && o.headers ? new Headers(t.init.headers) : void 0
1991
1991
  };
1992
1992
  }
1993
1993
  return {
1994
1994
  type: oe.error,
1995
1995
  error: t,
1996
- statusCode: Zt(t) ? t.status : void 0
1996
+ statusCode: qt(t) ? t.status : void 0
1997
1997
  };
1998
1998
  }
1999
1999
  if (Ni(t)) {
@@ -2021,15 +2021,15 @@ async function Ei(e) {
2021
2021
  }
2022
2022
  function Ri(e, t, n, r, o, a) {
2023
2023
  let i = e.headers.get("Location");
2024
- if (I(i, "Redirects returned/thrown from loaders/actions must have a Location header"), !Sr.test(i)) {
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);
2026
- i = or(new URL(t.url), s, o, !0, i, a), e.headers.set("Location", i);
2026
+ i = sr(new URL(t.url), s, o, !0, i, a), e.headers.set("Location", i);
2027
2027
  }
2028
2028
  return e;
2029
2029
  }
2030
2030
  function Xr(e, t, n) {
2031
- if (Sr.test(e)) {
2032
- let r = e, o = r.startsWith("//") ? new URL(t.protocol + r) : new URL(r), a = $e(o.pathname, n) != null;
2031
+ if (Cr.test(e)) {
2032
+ let r = e, o = r.startsWith("//") ? new URL(t.protocol + r) : new URL(r), a = Je(o.pathname, n) != null;
2033
2033
  if (o.origin === t.origin && a)
2034
2034
  return o.pathname + o.search + o.hash;
2035
2035
  }
@@ -2039,18 +2039,18 @@ function Rt(e, t, n, r) {
2039
2039
  let o = e.createURL(Ho(t)).toString(), a = {
2040
2040
  signal: n
2041
2041
  };
2042
- if (r && je(r.formMethod)) {
2042
+ if (r && ze(r.formMethod)) {
2043
2043
  let {
2044
2044
  formMethod: i,
2045
2045
  formEncType: s
2046
2046
  } = r;
2047
2047
  a.method = i.toUpperCase(), s === "application/json" ? (a.headers = new Headers({
2048
2048
  "Content-Type": s
2049
- }), a.body = JSON.stringify(r.json)) : s === "text/plain" ? a.body = r.text : s === "application/x-www-form-urlencoded" && r.formData ? a.body = ir(r.formData) : a.body = r.formData;
2049
+ }), a.body = JSON.stringify(r.json)) : s === "text/plain" ? a.body = r.text : s === "application/x-www-form-urlencoded" && r.formData ? a.body = cr(r.formData) : a.body = r.formData;
2050
2050
  }
2051
2051
  return new Request(o, a);
2052
2052
  }
2053
- function ir(e) {
2053
+ function cr(e) {
2054
2054
  let t = new URLSearchParams();
2055
2055
  for (let [n, r] of e.entries())
2056
2056
  t.append(n, typeof r == "string" ? r : r.name);
@@ -2067,17 +2067,17 @@ function ki(e, t, n, r, o) {
2067
2067
  return e.forEach((d) => {
2068
2068
  if (!(d.route.id in t))
2069
2069
  return;
2070
- let h = d.route.id, v = t[h];
2071
- if (I(!yt(v), "Cannot handle redirect results in processLoaderData"), Ie(v)) {
2072
- let m = v.error;
2070
+ let h = d.route.id, y = t[h];
2071
+ if (I(!vt(y), "Cannot handle redirect results in processLoaderData"), Ie(y)) {
2072
+ let m = y.error;
2073
2073
  u !== void 0 && (m = u, u = void 0), i = i || {};
2074
2074
  {
2075
2075
  let p = gt(e, h);
2076
2076
  i[p.route.id] == null && (i[p.route.id] = m);
2077
2077
  }
2078
- a[h] = void 0, l || (l = !0, s = Zt(v.error) ? v.error.status : 500), v.headers && (c[h] = v.headers);
2078
+ a[h] = void 0, l || (l = !0, s = qt(y.error) ? y.error.status : 500), y.headers && (c[h] = y.headers);
2079
2079
  } else
2080
- lt(v) ? (r.set(h, v.deferredData), a[h] = v.deferredData.data, v.statusCode != null && v.statusCode !== 200 && !l && (s = v.statusCode), v.headers && (c[h] = v.headers)) : (a[h] = v.data, v.statusCode && v.statusCode !== 200 && !l && (s = v.statusCode), v.headers && (c[h] = v.headers));
2080
+ lt(y) ? (r.set(h, y.deferredData), a[h] = y.deferredData.data, y.statusCode != null && y.statusCode !== 200 && !l && (s = y.statusCode), y.headers && (c[h] = y.headers)) : (a[h] = y.data, y.statusCode && y.statusCode !== 200 && !l && (s = y.statusCode), y.headers && (c[h] = y.headers));
2081
2081
  }), u !== void 0 && n && (i = {
2082
2082
  [n[0]]: u
2083
2083
  }, a[n[0]] = void 0), {
@@ -2097,19 +2097,19 @@ function eo(e, t, n, r, o, a, i) {
2097
2097
  key: u,
2098
2098
  match: d,
2099
2099
  controller: h
2100
- } = c, v = a[u];
2101
- if (I(v, "Did not find corresponding fetcher result"), !(h && h.signal.aborted))
2102
- if (Ie(v)) {
2100
+ } = c, y = a[u];
2101
+ if (I(y, "Did not find corresponding fetcher result"), !(h && h.signal.aborted))
2102
+ if (Ie(y)) {
2103
2103
  let m = gt(e.matches, d == null ? void 0 : d.route.id);
2104
2104
  l && l[m.route.id] || (l = fe({}, l, {
2105
- [m.route.id]: v.error
2105
+ [m.route.id]: y.error
2106
2106
  })), e.fetchers.delete(u);
2107
- } else if (yt(v))
2107
+ } else if (vt(y))
2108
2108
  I(!1, "Unhandled fetcher revalidation redirect");
2109
- else if (lt(v))
2109
+ else if (lt(y))
2110
2110
  I(!1, "Unhandled fetcher deferred data");
2111
2111
  else {
2112
- let m = at(v.data);
2112
+ let m = at(y.data);
2113
2113
  e.fetchers.set(u, m);
2114
2114
  }
2115
2115
  }), {
@@ -2167,7 +2167,7 @@ function dn(e) {
2167
2167
  let t = Object.entries(e);
2168
2168
  for (let n = t.length - 1; n >= 0; n--) {
2169
2169
  let [r, o] = t[n];
2170
- if (yt(o))
2170
+ if (vt(o))
2171
2171
  return {
2172
2172
  key: r,
2173
2173
  result: o
@@ -2192,7 +2192,7 @@ function lt(e) {
2192
2192
  function Ie(e) {
2193
2193
  return e.type === oe.error;
2194
2194
  }
2195
- function yt(e) {
2195
+ function vt(e) {
2196
2196
  return (e && e.type) === oe.redirect;
2197
2197
  }
2198
2198
  function oo(e) {
@@ -2205,20 +2205,20 @@ function Ni(e) {
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 Ti(e) {
2208
+ function _i(e) {
2209
2209
  return di.has(e.toLowerCase());
2210
2210
  }
2211
- function je(e) {
2211
+ function ze(e) {
2212
2212
  return ci.has(e.toLowerCase());
2213
2213
  }
2214
- async function _i(e, t, n, r, o) {
2214
+ async function Ti(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);
2218
2218
  if (!c)
2219
2219
  continue;
2220
2220
  let u = r.find((h) => h.route.id === c.route.id), d = u != null && !Io(u, c) && (o && o[c.route.id]) !== void 0;
2221
- lt(l) && d && await Cr(l, n, !1).then((h) => {
2221
+ lt(l) && d && await Er(l, n, !1).then((h) => {
2222
2222
  h && (t[s] = h);
2223
2223
  });
2224
2224
  }
@@ -2230,12 +2230,12 @@ async function Pi(e, t, n) {
2230
2230
  routeId: a,
2231
2231
  controller: i
2232
2232
  } = n[r], s = t[o];
2233
- e.find((c) => (c == null ? void 0 : c.route.id) === a) && lt(s) && (I(i, "Expected an AbortController for revalidating fetcher deferred result"), await Cr(s, i.signal, !0).then((c) => {
2233
+ e.find((c) => (c == null ? void 0 : c.route.id) === a) && lt(s) && (I(i, "Expected an AbortController for revalidating fetcher deferred result"), await Er(s, i.signal, !0).then((c) => {
2234
2234
  c && (t[o] = c);
2235
2235
  }));
2236
2236
  }
2237
2237
  }
2238
- async function Cr(e, t, n) {
2238
+ async function Er(e, t, n) {
2239
2239
  if (n === void 0 && (n = !1), !await e.deferredData.resolveData(t)) {
2240
2240
  if (n)
2241
2241
  try {
@@ -2255,12 +2255,12 @@ async function Cr(e, t, n) {
2255
2255
  };
2256
2256
  }
2257
2257
  }
2258
- function Er(e) {
2258
+ function Rr(e) {
2259
2259
  return new URLSearchParams(e).getAll("index").some((t) => t === "");
2260
2260
  }
2261
- function jt(e, t) {
2261
+ function $t(e, t) {
2262
2262
  let n = typeof t == "string" ? dt(t).search : t.search;
2263
- if (e[e.length - 1].route.index && Er(n || ""))
2263
+ if (e[e.length - 1].route.index && Rr(n || ""))
2264
2264
  return e[e.length - 1];
2265
2265
  let r = Ao(e);
2266
2266
  return r[r.length - 1];
@@ -2304,7 +2304,7 @@ function ao(e) {
2304
2304
  };
2305
2305
  }
2306
2306
  }
2307
- function qn(e, t) {
2307
+ function Yn(e, t) {
2308
2308
  return t ? {
2309
2309
  state: "loading",
2310
2310
  location: e,
@@ -2337,7 +2337,7 @@ function Oi(e, t) {
2337
2337
  text: t.text
2338
2338
  };
2339
2339
  }
2340
- function Ft(e, t) {
2340
+ function It(e, t) {
2341
2341
  return e ? {
2342
2342
  state: "loading",
2343
2343
  formMethod: e.formMethod,
@@ -2401,7 +2401,7 @@ function Di(e, t) {
2401
2401
  try {
2402
2402
  e.sessionStorage.setItem(Fo, JSON.stringify(n));
2403
2403
  } catch (r) {
2404
- be(!1, "Failed to save applied view transitions in sessionStorage (" + r + ").");
2404
+ we(!1, "Failed to save applied view transitions in sessionStorage (" + r + ").");
2405
2405
  }
2406
2406
  }
2407
2407
  }
@@ -2425,29 +2425,29 @@ function kn() {
2425
2425
  return e;
2426
2426
  }, kn.apply(this, arguments);
2427
2427
  }
2428
- const Tt = /* @__PURE__ */ E.createContext(null);
2429
- process.env.NODE_ENV !== "production" && (Tt.displayName = "DataRouter");
2430
- const _n = /* @__PURE__ */ E.createContext(null);
2431
- process.env.NODE_ENV !== "production" && (_n.displayName = "DataRouterState");
2428
+ const _t = /* @__PURE__ */ E.createContext(null);
2429
+ process.env.NODE_ENV !== "production" && (_t.displayName = "DataRouter");
2430
+ const On = /* @__PURE__ */ E.createContext(null);
2431
+ process.env.NODE_ENV !== "production" && (On.displayName = "DataRouterState");
2432
2432
  const Fi = /* @__PURE__ */ E.createContext(null);
2433
2433
  process.env.NODE_ENV !== "production" && (Fi.displayName = "Await");
2434
- const ze = /* @__PURE__ */ E.createContext(null);
2435
- process.env.NODE_ENV !== "production" && (ze.displayName = "Navigation");
2436
- const Pn = /* @__PURE__ */ E.createContext(null);
2437
- process.env.NODE_ENV !== "production" && (Pn.displayName = "Location");
2438
- const Je = /* @__PURE__ */ E.createContext({
2434
+ const je = /* @__PURE__ */ E.createContext(null);
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");
2438
+ const $e = /* @__PURE__ */ E.createContext({
2439
2439
  outlet: null,
2440
2440
  matches: [],
2441
2441
  isDataRoute: !1
2442
2442
  });
2443
- process.env.NODE_ENV !== "production" && (Je.displayName = "Route");
2444
- const Rr = /* @__PURE__ */ E.createContext(null);
2445
- process.env.NODE_ENV !== "production" && (Rr.displayName = "RouteError");
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
2446
  function Ii(e, t) {
2447
2447
  let {
2448
2448
  relative: n
2449
2449
  } = t === void 0 ? {} : t;
2450
- Gt() || (process.env.NODE_ENV !== "production" ? I(
2450
+ Tt() || (process.env.NODE_ENV !== "production" ? I(
2451
2451
  !1,
2452
2452
  // TODO: This error is probably because they somehow have 2 versions of the
2453
2453
  // router loaded. We can help them understand how to avoid that.
@@ -2456,7 +2456,7 @@ function Ii(e, t) {
2456
2456
  let {
2457
2457
  basename: r,
2458
2458
  navigator: o
2459
- } = E.useContext(ze), {
2459
+ } = E.useContext(je), {
2460
2460
  hash: a,
2461
2461
  pathname: i,
2462
2462
  search: s
@@ -2469,58 +2469,58 @@ function Ii(e, t) {
2469
2469
  hash: a
2470
2470
  });
2471
2471
  }
2472
- function Gt() {
2473
- return E.useContext(Pn) != null;
2472
+ function Tt() {
2473
+ return E.useContext(Mn) != null;
2474
2474
  }
2475
- function rt() {
2476
- return Gt() || (process.env.NODE_ENV !== "production" ? I(
2475
+ function Qe() {
2476
+ return Tt() || (process.env.NODE_ENV !== "production" ? I(
2477
2477
  !1,
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(Pn).location;
2481
+ ) : I(!1)), E.useContext(Mn).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
- E.useContext(ze).static || E.useLayoutEffect(e);
2485
+ E.useContext(je).static || E.useLayoutEffect(e);
2486
2486
  }
2487
- function kr() {
2487
+ function An() {
2488
2488
  let {
2489
2489
  isDataRoute: e
2490
- } = E.useContext(Je);
2490
+ } = E.useContext($e);
2491
2491
  return e ? Xi() : Bi();
2492
2492
  }
2493
2493
  function Bi() {
2494
- Gt() || (process.env.NODE_ENV !== "production" ? I(
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
2497
2497
  // router loaded. We can help them understand how to avoid that.
2498
2498
  "useNavigate() may be used only in the context of a <Router> component."
2499
2499
  ) : I(!1));
2500
- let e = E.useContext(Tt), {
2500
+ let e = E.useContext(_t), {
2501
2501
  basename: t,
2502
2502
  future: n,
2503
2503
  navigator: r
2504
- } = E.useContext(ze), {
2504
+ } = E.useContext(je), {
2505
2505
  matches: o
2506
- } = E.useContext(Je), {
2506
+ } = E.useContext($e), {
2507
2507
  pathname: a
2508
- } = rt(), i = JSON.stringify(wr(o, n.v7_relativeSplatPath)), s = E.useRef(!1);
2508
+ } = Qe(), i = JSON.stringify(Tn(o, n.v7_relativeSplatPath)), s = E.useRef(!1);
2509
2509
  return jo(() => {
2510
2510
  s.current = !0;
2511
2511
  }), E.useCallback(function(c, u) {
2512
- if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && be(s.current, Vo), !s.current) return;
2512
+ if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current, Vo), !s.current) return;
2513
2513
  if (typeof c == "number") {
2514
2514
  r.go(c);
2515
2515
  return;
2516
2516
  }
2517
- let d = br(c, JSON.parse(i), a, u.relative === "path");
2517
+ let d = Pn(c, JSON.parse(i), a, u.relative === "path");
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
2521
  const Hi = /* @__PURE__ */ E.createContext(null);
2522
2522
  function Ui(e) {
2523
- let t = E.useContext(Je).outlet;
2523
+ let t = E.useContext($e).outlet;
2524
2524
  return t && /* @__PURE__ */ E.createElement(Hi.Provider, {
2525
2525
  value: e
2526
2526
  }, t);
@@ -2528,7 +2528,7 @@ function Ui(e) {
2528
2528
  function Ld() {
2529
2529
  let {
2530
2530
  matches: e
2531
- } = E.useContext(Je), t = e[e.length - 1];
2531
+ } = E.useContext($e), t = e[e.length - 1];
2532
2532
  return t ? t.params : {};
2533
2533
  }
2534
2534
  function Yt(e, t) {
@@ -2536,15 +2536,15 @@ function Yt(e, t) {
2536
2536
  relative: n
2537
2537
  } = t === void 0 ? {} : t, {
2538
2538
  future: r
2539
- } = E.useContext(ze), {
2539
+ } = E.useContext(je), {
2540
2540
  matches: o
2541
- } = E.useContext(Je), {
2541
+ } = E.useContext($e), {
2542
2542
  pathname: a
2543
- } = rt(), i = JSON.stringify(wr(o, r.v7_relativeSplatPath));
2544
- return E.useMemo(() => br(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
2543
+ } = Qe(), i = JSON.stringify(Tn(o, r.v7_relativeSplatPath));
2544
+ return E.useMemo(() => Pn(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
2545
2545
  }
2546
2546
  function Vi(e, t, n, r) {
2547
- Gt() || (process.env.NODE_ENV !== "production" ? I(
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
2550
2550
  // router loaded. We can help them understand how to avoid that.
@@ -2553,26 +2553,26 @@ function Vi(e, t, n, r) {
2553
2553
  let {
2554
2554
  navigator: o,
2555
2555
  static: a
2556
- } = E.useContext(ze), {
2556
+ } = E.useContext(je), {
2557
2557
  matches: i
2558
- } = E.useContext(Je), s = i[i.length - 1], l = s ? s.params : {}, c = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", d = s && s.route;
2558
+ } = E.useContext($e), s = i[i.length - 1], l = s ? s.params : {}, c = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", d = s && s.route;
2559
2559
  if (process.env.NODE_ENV !== "production") {
2560
2560
  let b = d && d.path || "";
2561
2561
  zo(c, !d || b.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + c + '" (under <Route path="' + b + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2562
2562
 
2563
2563
  ` + ('Please change the parent <Route path="' + b + '"> to <Route ') + ('path="' + (b === "/" ? "*" : b + "/*") + '">.'));
2564
2564
  }
2565
- let h = rt(), v;
2566
- v = h;
2567
- let m = v.pathname || "/", p = m;
2565
+ let h = Qe(), y;
2566
+ y = h;
2567
+ let m = y.pathname || "/", p = m;
2568
2568
  if (u !== "/") {
2569
2569
  let b = u.replace(/^\//, "").split("/");
2570
2570
  p = "/" + m.replace(/^\//, "").split("/").slice(b.length).join("/");
2571
2571
  }
2572
- let y = !a && n && n.matches && n.matches.length > 0 ? n.matches : mt(e, {
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" && be(d || y != null, 'No routes matched location "' + v.pathname + v.search + v.hash + '" '), process.env.NODE_ENV !== "production" && be(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + v.pathname + v.search + v.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(y && y.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.')), Wi(v && v.map((b) => Object.assign({}, b, {
2576
2576
  params: Object.assign({}, l, b.params),
2577
2577
  pathname: Xe([
2578
2578
  u,
@@ -2587,7 +2587,7 @@ function Vi(e, t, n, r) {
2587
2587
  })), i, n, r);
2588
2588
  }
2589
2589
  function ji() {
2590
- let e = Yi(), t = Zt(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 = {
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 = {
2591
2591
  padding: "0.5rem",
2592
2592
  backgroundColor: r
2593
2593
  }, a = {
@@ -2635,9 +2635,9 @@ class zi extends E.Component {
2635
2635
  console.error("React Router caught the following error during render", t, n);
2636
2636
  }
2637
2637
  render() {
2638
- return this.state.error !== void 0 ? /* @__PURE__ */ E.createElement(Je.Provider, {
2638
+ return this.state.error !== void 0 ? /* @__PURE__ */ E.createElement($e.Provider, {
2639
2639
  value: this.props.routeContext
2640
- }, /* @__PURE__ */ E.createElement(Rr.Provider, {
2640
+ }, /* @__PURE__ */ E.createElement(kr.Provider, {
2641
2641
  value: this.state.error,
2642
2642
  children: this.props.component
2643
2643
  })) : this.props.children;
@@ -2648,8 +2648,8 @@ function Ji(e) {
2648
2648
  routeContext: t,
2649
2649
  match: n,
2650
2650
  children: r
2651
- } = e, o = E.useContext(Tt);
2652
- return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ E.createElement(Je.Provider, {
2651
+ } = e, o = E.useContext(_t);
2652
+ return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ E.createElement($e.Provider, {
2653
2653
  value: t
2654
2654
  }, r);
2655
2655
  }
@@ -2678,8 +2678,8 @@ function Wi(e, t, n, r) {
2678
2678
  if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (c = u), d.route.id) {
2679
2679
  let {
2680
2680
  loaderData: h,
2681
- errors: v
2682
- } = n, m = d.route.loader && h[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
2681
+ errors: y
2682
+ } = n, m = d.route.loader && h[d.route.id] === void 0 && (!y || y[d.route.id] === void 0);
2683
2683
  if (d.route.lazy || m) {
2684
2684
  l = !0, c >= 0 ? i = i.slice(0, c + 1) : i = [i[0]];
2685
2685
  break;
@@ -2687,11 +2687,11 @@ function Wi(e, t, n, r) {
2687
2687
  }
2688
2688
  }
2689
2689
  return i.reduceRight((u, d, h) => {
2690
- let v, m = !1, p = null, y = null;
2691
- n && (v = 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, y = null) : c === h && (m = !0, y = d.route.hydrateFallbackElement || null)));
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
2692
  let k = t.concat(i.slice(0, h + 1)), b = () => {
2693
2693
  let x;
2694
- return v ? x = p : m ? x = y : d.route.Component ? x = /* @__PURE__ */ E.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ E.createElement(Ji, {
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, {
2695
2695
  match: d,
2696
2696
  routeContext: {
2697
2697
  outlet: u,
@@ -2705,7 +2705,7 @@ function Wi(e, t, n, r) {
2705
2705
  location: n.location,
2706
2706
  revalidation: n.revalidation,
2707
2707
  component: p,
2708
- error: v,
2708
+ error: y,
2709
2709
  children: b(),
2710
2710
  routeContext: {
2711
2711
  outlet: null,
@@ -2717,22 +2717,22 @@ function Wi(e, t, n, r) {
2717
2717
  }
2718
2718
  var $o = /* @__PURE__ */ function(e) {
2719
2719
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
2720
- }($o || {}), qt = /* @__PURE__ */ function(e) {
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
- }(qt || {});
2722
+ }(Kt || {});
2723
2723
  function xr(e) {
2724
2724
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
2725
2725
  }
2726
2726
  function Zi(e) {
2727
- let t = E.useContext(Tt);
2727
+ let t = E.useContext(_t);
2728
2728
  return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2729
2729
  }
2730
2730
  function qi(e) {
2731
- let t = E.useContext(_n);
2731
+ let t = E.useContext(On);
2732
2732
  return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2733
2733
  }
2734
2734
  function Ki(e) {
2735
- let t = E.useContext(Je);
2735
+ let t = E.useContext($e);
2736
2736
  return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2737
2737
  }
2738
2738
  function Lr(e) {
@@ -2740,28 +2740,28 @@ function Lr(e) {
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
2742
  function Gi() {
2743
- return Lr(qt.UseRouteId);
2743
+ return Lr(Kt.UseRouteId);
2744
2744
  }
2745
2745
  function Yi() {
2746
2746
  var e;
2747
- let t = E.useContext(Rr), n = qi(qt.UseRouteError), r = Lr(qt.UseRouteError);
2747
+ let t = E.useContext(kr), n = qi(Kt.UseRouteError), r = Lr(Kt.UseRouteError);
2748
2748
  return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[r];
2749
2749
  }
2750
2750
  function Xi() {
2751
2751
  let {
2752
2752
  router: e
2753
- } = Zi($o.UseNavigateStable), t = Lr(qt.UseNavigateStable), n = E.useRef(!1);
2753
+ } = Zi($o.UseNavigateStable), t = Lr(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" && be(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, kn({
2758
2758
  fromRouteId: t
2759
2759
  }, a)));
2760
2760
  }, [e, t]);
2761
2761
  }
2762
2762
  const io = {};
2763
2763
  function zo(e, t, n) {
2764
- !t && !io[e] && (io[e] = !0, process.env.NODE_ENV !== "production" && be(!1, n));
2764
+ !t && !io[e] && (io[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
2765
2765
  }
2766
2766
  const so = {};
2767
2767
  function Qi(e, t) {
@@ -2772,6 +2772,35 @@ function es(e, t) {
2772
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"));
2773
2773
  }
2774
2774
  function Nd(e) {
2775
+ let {
2776
+ to: t,
2777
+ replace: n,
2778
+ state: r,
2779
+ relative: o
2780
+ } = e;
2781
+ Tt() || (process.env.NODE_ENV !== "production" ? I(
2782
+ !1,
2783
+ // TODO: This error is probably because they somehow have 2 versions of
2784
+ // the router loaded. We can help them understand how to avoid that.
2785
+ "<Navigate> may be used only in the context of a <Router> component."
2786
+ ) : I(!1));
2787
+ let {
2788
+ future: a,
2789
+ static: i
2790
+ } = E.useContext(je);
2791
+ process.env.NODE_ENV !== "production" && we(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
2792
+ let {
2793
+ matches: s
2794
+ } = E.useContext($e), {
2795
+ pathname: l
2796
+ } = Qe(), c = An(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
2797
+ return E.useEffect(() => c(JSON.parse(d), {
2798
+ replace: n,
2799
+ state: r,
2800
+ relative: o
2801
+ }), [c, d, o, n, r]), null;
2802
+ }
2803
+ function _d(e) {
2775
2804
  return Ui(e.context);
2776
2805
  }
2777
2806
  function ts(e) {
@@ -2779,12 +2808,12 @@ function ts(e) {
2779
2808
  basename: t = "/",
2780
2809
  children: n = null,
2781
2810
  location: r,
2782
- navigationType: o = ve.Pop,
2811
+ navigationType: o = ye.Pop,
2783
2812
  navigator: a,
2784
2813
  static: i = !1,
2785
2814
  future: s
2786
2815
  } = e;
2787
- Gt() && (process.env.NODE_ENV !== "production" ? I(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : I(!1));
2816
+ Tt() && (process.env.NODE_ENV !== "production" ? I(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : I(!1));
2788
2817
  let l = t.replace(/^\/*/, "/"), c = E.useMemo(() => ({
2789
2818
  basename: l,
2790
2819
  navigator: a,
@@ -2798,24 +2827,24 @@ function ts(e) {
2798
2827
  pathname: u = "/",
2799
2828
  search: d = "",
2800
2829
  hash: h = "",
2801
- state: v = null,
2830
+ state: y = null,
2802
2831
  key: m = "default"
2803
2832
  } = r, p = E.useMemo(() => {
2804
- let y = $e(u, l);
2805
- return y == null ? null : {
2833
+ let v = Je(u, l);
2834
+ return v == null ? null : {
2806
2835
  location: {
2807
- pathname: y,
2836
+ pathname: v,
2808
2837
  search: d,
2809
2838
  hash: h,
2810
- state: v,
2839
+ state: y,
2811
2840
  key: m
2812
2841
  },
2813
2842
  navigationType: o
2814
2843
  };
2815
- }, [l, u, d, h, v, m, o]);
2816
- return process.env.NODE_ENV !== "production" && be(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(ze.Provider, {
2844
+ }, [l, u, d, h, y, m, o]);
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, {
2817
2846
  value: c
2818
- }, /* @__PURE__ */ E.createElement(Pn.Provider, {
2847
+ }, /* @__PURE__ */ E.createElement(Mn.Provider, {
2819
2848
  children: n,
2820
2849
  value: p
2821
2850
  }));
@@ -2828,13 +2857,13 @@ function ns(e) {
2828
2857
  // there if you change this -- please and thank you!
2829
2858
  hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
2830
2859
  };
2831
- return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && be(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
2860
+ return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && we(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
2832
2861
  element: /* @__PURE__ */ E.createElement(e.Component),
2833
2862
  Component: void 0
2834
- })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && be(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
2863
+ })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && we(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
2835
2864
  hydrateFallbackElement: /* @__PURE__ */ E.createElement(e.HydrateFallback),
2836
2865
  HydrateFallback: void 0
2837
- })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && be(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
2866
+ })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && we(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
2838
2867
  errorElement: /* @__PURE__ */ E.createElement(e.ErrorBoundary),
2839
2868
  ErrorBoundary: void 0
2840
2869
  })), t;
@@ -2866,18 +2895,18 @@ function Nr(e, t) {
2866
2895
  o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
2867
2896
  return n;
2868
2897
  }
2869
- const yn = "get", vn = "application/x-www-form-urlencoded";
2870
- function On(e) {
2898
+ const vn = "get", yn = "application/x-www-form-urlencoded";
2899
+ function Dn(e) {
2871
2900
  return e != null && typeof e.tagName == "string";
2872
2901
  }
2873
2902
  function rs(e) {
2874
- return On(e) && e.tagName.toLowerCase() === "button";
2903
+ return Dn(e) && e.tagName.toLowerCase() === "button";
2875
2904
  }
2876
2905
  function os(e) {
2877
- return On(e) && e.tagName.toLowerCase() === "form";
2906
+ return Dn(e) && e.tagName.toLowerCase() === "form";
2878
2907
  }
2879
2908
  function as(e) {
2880
- return On(e) && e.tagName.toLowerCase() === "input";
2909
+ return Dn(e) && e.tagName.toLowerCase() === "input";
2881
2910
  }
2882
2911
  function is(e) {
2883
2912
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
@@ -2887,14 +2916,14 @@ function ss(e, t) {
2887
2916
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
2888
2917
  !is(e);
2889
2918
  }
2890
- function sr(e) {
2919
+ function ur(e) {
2891
2920
  return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
2892
2921
  let r = e[n];
2893
2922
  return t.concat(Array.isArray(r) ? r.map((o) => [n, o]) : [[n, r]]);
2894
2923
  }, []));
2895
2924
  }
2896
2925
  function ls(e, t) {
2897
- let n = sr(e);
2926
+ let n = ur(e);
2898
2927
  return t && t.forEach((r, o) => {
2899
2928
  n.has(o) || t.getAll(o).forEach((a) => {
2900
2929
  n.append(o, a);
@@ -2916,20 +2945,20 @@ function cs() {
2916
2945
  return fn;
2917
2946
  }
2918
2947
  const us = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
2919
- function Kn(e) {
2920
- return e != null && !us.has(e) ? (process.env.NODE_ENV !== "production" && be(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + vn + '"')), null) : e;
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;
2921
2950
  }
2922
2951
  function ds(e, t) {
2923
2952
  let n, r, o, a, i;
2924
2953
  if (os(e)) {
2925
2954
  let s = e.getAttribute("action");
2926
- r = s ? $e(s, t) : null, n = e.getAttribute("method") || yn, o = Kn(e.getAttribute("enctype")) || vn, a = new FormData(e);
2955
+ r = s ? Je(s, t) : null, n = e.getAttribute("method") || vn, o = Xn(e.getAttribute("enctype")) || yn, a = new FormData(e);
2927
2956
  } else if (rs(e) || as(e) && (e.type === "submit" || e.type === "image")) {
2928
2957
  let s = e.form;
2929
2958
  if (s == null)
2930
2959
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
2931
2960
  let l = e.getAttribute("formaction") || s.getAttribute("action");
2932
- if (r = l ? $e(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || yn, o = Kn(e.getAttribute("formenctype")) || Kn(s.getAttribute("enctype")) || vn, 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), !cs()) {
2933
2962
  let {
2934
2963
  name: c,
2935
2964
  type: u,
@@ -2941,9 +2970,9 @@ function ds(e, t) {
2941
2970
  } else c && a.append(c, d);
2942
2971
  }
2943
2972
  } else {
2944
- if (On(e))
2973
+ if (Dn(e))
2945
2974
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
2946
- n = yn, r = null, o = vn, i = e;
2975
+ n = vn, r = null, o = yn, i = e;
2947
2976
  }
2948
2977
  return a && o === "text/plain" && (i = a, a = void 0), {
2949
2978
  action: r,
@@ -2979,10 +3008,10 @@ function gs() {
2979
3008
  var e;
2980
3009
  let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
2981
3010
  return t && t.errors && (t = ut({}, t, {
2982
- errors: ys(t.errors)
3011
+ errors: vs(t.errors)
2983
3012
  })), t;
2984
3013
  }
2985
- function ys(e) {
3014
+ function vs(e) {
2986
3015
  if (!e) return null;
2987
3016
  let t = Object.entries(e), n = {};
2988
3017
  for (let [r, o] of t)
@@ -3006,17 +3035,17 @@ function ys(e) {
3006
3035
  n[r] = o;
3007
3036
  return n;
3008
3037
  }
3009
- const Tr = /* @__PURE__ */ E.createContext({
3038
+ const _r = /* @__PURE__ */ E.createContext({
3010
3039
  isTransitioning: !1
3011
3040
  });
3012
- process.env.NODE_ENV !== "production" && (Tr.displayName = "ViewTransition");
3041
+ process.env.NODE_ENV !== "production" && (_r.displayName = "ViewTransition");
3013
3042
  const Jo = /* @__PURE__ */ E.createContext(/* @__PURE__ */ new Map());
3014
3043
  process.env.NODE_ENV !== "production" && (Jo.displayName = "Fetchers");
3015
- const vs = "startTransition", lo = E[vs], ws = "flushSync", co = _a[ws];
3044
+ const ys = "startTransition", lo = E[ys], ws = "flushSync", co = Ta[ws];
3016
3045
  function bs(e) {
3017
3046
  lo ? lo(e) : e();
3018
3047
  }
3019
- function It(e) {
3048
+ function Bt(e) {
3020
3049
  co ? co(e) : e();
3021
3050
  }
3022
3051
  class Ss {
@@ -3030,33 +3059,33 @@ class Ss {
3030
3059
  });
3031
3060
  }
3032
3061
  }
3033
- function _d(e) {
3062
+ function Pd(e) {
3034
3063
  let {
3035
3064
  fallbackElement: t,
3036
3065
  router: n,
3037
3066
  future: r
3038
3067
  } = e, [o, a] = E.useState(n.state), [i, s] = E.useState(), [l, c] = E.useState({
3039
3068
  isTransitioning: !1
3040
- }), [u, d] = E.useState(), [h, v] = E.useState(), [m, p] = E.useState(), y = E.useRef(/* @__PURE__ */ new Map()), {
3069
+ }), [u, d] = E.useState(), [h, y] = E.useState(), [m, p] = E.useState(), v = E.useRef(/* @__PURE__ */ new Map()), {
3041
3070
  v7_startTransition: k
3042
- } = r || {}, b = E.useCallback((_) => {
3043
- k ? bs(_) : _();
3044
- }, [k]), x = E.useCallback((_, K) => {
3071
+ } = r || {}, b = E.useCallback((T) => {
3072
+ k ? bs(T) : T();
3073
+ }, [k]), x = E.useCallback((T, K) => {
3045
3074
  let {
3046
3075
  deletedFetchers: B,
3047
3076
  flushSync: ae,
3048
3077
  viewTransitionOpts: ee
3049
3078
  } = K;
3050
- _.fetchers.forEach((he, Oe) => {
3051
- he.data !== void 0 && y.current.set(Oe, he.data);
3052
- }), B.forEach((he) => y.current.delete(he));
3079
+ T.fetchers.forEach((he, Oe) => {
3080
+ he.data !== void 0 && v.current.set(Oe, he.data);
3081
+ }), B.forEach((he) => v.current.delete(he));
3053
3082
  let te = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
3054
3083
  if (!ee || te) {
3055
- ae ? It(() => a(_)) : b(() => a(_));
3084
+ ae ? Bt(() => a(T)) : b(() => a(T));
3056
3085
  return;
3057
3086
  }
3058
3087
  if (ae) {
3059
- It(() => {
3088
+ Bt(() => {
3060
3089
  h && (u && u.resolve(), h.skipTransition()), c({
3061
3090
  isTransitioning: !0,
3062
3091
  flushSync: !0,
@@ -3065,40 +3094,40 @@ function _d(e) {
3065
3094
  });
3066
3095
  });
3067
3096
  let he = n.window.document.startViewTransition(() => {
3068
- It(() => a(_));
3097
+ Bt(() => a(T));
3069
3098
  });
3070
3099
  he.finished.finally(() => {
3071
- It(() => {
3072
- d(void 0), v(void 0), s(void 0), c({
3100
+ Bt(() => {
3101
+ d(void 0), y(void 0), s(void 0), c({
3073
3102
  isTransitioning: !1
3074
3103
  });
3075
3104
  });
3076
- }), It(() => v(he));
3105
+ }), Bt(() => y(he));
3077
3106
  return;
3078
3107
  }
3079
3108
  h ? (u && u.resolve(), h.skipTransition(), p({
3080
- state: _,
3109
+ state: T,
3081
3110
  currentLocation: ee.currentLocation,
3082
3111
  nextLocation: ee.nextLocation
3083
- })) : (s(_), c({
3112
+ })) : (s(T), c({
3084
3113
  isTransitioning: !0,
3085
3114
  flushSync: !1,
3086
3115
  currentLocation: ee.currentLocation,
3087
3116
  nextLocation: ee.nextLocation
3088
3117
  }));
3089
- }, [n.window, h, u, y, b]);
3118
+ }, [n.window, h, u, v, b]);
3090
3119
  E.useLayoutEffect(() => n.subscribe(x), [n, x]), E.useEffect(() => {
3091
3120
  l.isTransitioning && !l.flushSync && d(new Ss());
3092
3121
  }, [l]), E.useEffect(() => {
3093
3122
  if (u && i && n.window) {
3094
- let _ = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
3095
- b(() => a(_)), await K;
3123
+ let T = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
3124
+ b(() => a(T)), await K;
3096
3125
  });
3097
3126
  B.finished.finally(() => {
3098
- d(void 0), v(void 0), s(void 0), c({
3127
+ d(void 0), y(void 0), s(void 0), c({
3099
3128
  isTransitioning: !1
3100
3129
  });
3101
- }), v(B);
3130
+ }), y(B);
3102
3131
  }
3103
3132
  }, [b, i, u, n.window]), E.useEffect(() => {
3104
3133
  u && i && o.location.key === i.location.key && u.resolve();
@@ -3110,42 +3139,42 @@ function _d(e) {
3110
3139
  nextLocation: m.nextLocation
3111
3140
  }), p(void 0));
3112
3141
  }, [l.isTransitioning, m]), E.useEffect(() => {
3113
- process.env.NODE_ENV !== "production" && be(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
3142
+ process.env.NODE_ENV !== "production" && we(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
3114
3143
  }, []);
3115
- let T = E.useMemo(() => ({
3144
+ let _ = E.useMemo(() => ({
3116
3145
  createHref: n.createHref,
3117
3146
  encodeLocation: n.encodeLocation,
3118
- go: (_) => n.navigate(_),
3119
- push: (_, K, B) => n.navigate(_, {
3147
+ go: (T) => n.navigate(T),
3148
+ push: (T, K, B) => n.navigate(T, {
3120
3149
  state: K,
3121
3150
  preventScrollReset: B == null ? void 0 : B.preventScrollReset
3122
3151
  }),
3123
- replace: (_, K, B) => n.navigate(_, {
3152
+ replace: (T, K, B) => n.navigate(T, {
3124
3153
  replace: !0,
3125
3154
  state: K,
3126
3155
  preventScrollReset: B == null ? void 0 : B.preventScrollReset
3127
3156
  })
3128
3157
  }), [n]), N = n.basename || "/", U = E.useMemo(() => ({
3129
3158
  router: n,
3130
- navigator: T,
3159
+ navigator: _,
3131
3160
  static: !1,
3132
3161
  basename: N
3133
- }), [n, T, N]), w = E.useMemo(() => ({
3162
+ }), [n, _, N]), w = E.useMemo(() => ({
3134
3163
  v7_relativeSplatPath: n.future.v7_relativeSplatPath
3135
3164
  }), [n.future.v7_relativeSplatPath]);
3136
- return E.useEffect(() => es(r, n.future), [r, n.future]), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(Tt.Provider, {
3165
+ return E.useEffect(() => es(r, n.future), [r, n.future]), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(_t.Provider, {
3137
3166
  value: U
3138
- }, /* @__PURE__ */ E.createElement(_n.Provider, {
3167
+ }, /* @__PURE__ */ E.createElement(On.Provider, {
3139
3168
  value: o
3140
3169
  }, /* @__PURE__ */ E.createElement(Jo.Provider, {
3141
- value: y.current
3142
- }, /* @__PURE__ */ E.createElement(Tr.Provider, {
3170
+ value: v.current
3171
+ }, /* @__PURE__ */ E.createElement(_r.Provider, {
3143
3172
  value: l
3144
3173
  }, /* @__PURE__ */ E.createElement(ts, {
3145
3174
  basename: N,
3146
3175
  location: o.location,
3147
3176
  navigationType: o.historyAction,
3148
- navigator: T,
3177
+ navigator: _,
3149
3178
  future: w
3150
3179
  }, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ E.createElement(Cs, {
3151
3180
  routes: n.routes,
@@ -3175,18 +3204,18 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3175
3204
  preventScrollReset: u,
3176
3205
  viewTransition: d
3177
3206
  } = t, h = Nr(t, fs), {
3178
- basename: v
3179
- } = E.useContext(ze), m, p = !1;
3207
+ basename: y
3208
+ } = E.useContext(je), m, p = !1;
3180
3209
  if (typeof c == "string" && ks.test(c) && (m = c, Rs))
3181
3210
  try {
3182
- let x = new URL(window.location.href), T = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N = $e(T.pathname, v);
3183
- T.origin === x.origin && N != null ? c = N + T.search + T.hash : p = !0;
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;
3184
3213
  } catch {
3185
- process.env.NODE_ENV !== "production" && be(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
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.');
3186
3215
  }
3187
- let y = Ii(c, {
3216
+ let v = Ii(c, {
3188
3217
  relative: o
3189
- }), k = Ts(c, {
3218
+ }), k = _s(c, {
3190
3219
  replace: i,
3191
3220
  state: s,
3192
3221
  target: l,
@@ -3200,7 +3229,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3200
3229
  return (
3201
3230
  // eslint-disable-next-line jsx-a11y/anchor-has-content
3202
3231
  /* @__PURE__ */ E.createElement("a", ut({}, h, {
3203
- href: m || y,
3232
+ href: m || v,
3204
3233
  onClick: p || a ? r : b,
3205
3234
  ref: n,
3206
3235
  target: l
@@ -3220,21 +3249,21 @@ const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
3220
3249
  children: u
3221
3250
  } = t, d = Nr(t, hs), h = Yt(l, {
3222
3251
  relative: d.relative
3223
- }), v = rt(), m = E.useContext(_n), {
3252
+ }), y = Qe(), m = E.useContext(On), {
3224
3253
  navigator: p,
3225
- basename: y
3226
- } = E.useContext(ze), k = m != null && // Conditional usage is OK here because the usage of a data router is static
3254
+ basename: v
3255
+ } = E.useContext(je), k = m != null && // Conditional usage is OK here because the usage of a data router is static
3227
3256
  // eslint-disable-next-line react-hooks/rules-of-hooks
3228
- Ds(h) && c === !0, b = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, x = v.pathname, T = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
3229
- o || (x = x.toLowerCase(), T = T ? T.toLowerCase() : null, b = b.toLowerCase()), T && y && (T = $e(T, y) || T);
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) || _);
3230
3259
  const N = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
3231
- let U = x === b || !i && x.startsWith(b) && x.charAt(N) === "/", w = T != null && (T === b || !i && T.startsWith(b) && T.charAt(b.length) === "/"), _ = {
3260
+ let U = x === b || !i && x.startsWith(b) && x.charAt(N) === "/", w = _ != null && (_ === b || !i && _.startsWith(b) && _.charAt(b.length) === "/"), T = {
3232
3261
  isActive: U,
3233
3262
  isPending: w,
3234
3263
  isTransitioning: k
3235
3264
  }, K = U ? r : void 0, B;
3236
- typeof a == "function" ? B = a(_) : B = [a, U ? "active" : null, w ? "pending" : null, k ? "transitioning" : null].filter(Boolean).join(" ");
3237
- let ae = typeof s == "function" ? s(_) : s;
3265
+ typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, w ? "pending" : null, k ? "transitioning" : null].filter(Boolean).join(" ");
3266
+ let ae = typeof s == "function" ? s(T) : s;
3238
3267
  return /* @__PURE__ */ E.createElement(Wo, ut({}, d, {
3239
3268
  "aria-current": K,
3240
3269
  className: B,
@@ -3242,7 +3271,7 @@ const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
3242
3271
  style: ae,
3243
3272
  to: l,
3244
3273
  viewTransition: c
3245
- }), typeof u == "function" ? u(_) : u);
3274
+ }), typeof u == "function" ? u(T) : u);
3246
3275
  });
3247
3276
  process.env.NODE_ENV !== "production" && (xs.displayName = "NavLink");
3248
3277
  const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
@@ -3252,21 +3281,21 @@ const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
3252
3281
  reloadDocument: o,
3253
3282
  replace: a,
3254
3283
  state: i,
3255
- method: s = yn,
3284
+ method: s = vn,
3256
3285
  action: l,
3257
3286
  onSubmit: c,
3258
3287
  relative: u,
3259
3288
  preventScrollReset: d,
3260
3289
  viewTransition: h
3261
- } = e, v = Nr(e, ps), m = Ms(), p = As(l, {
3290
+ } = e, y = Nr(e, ps), m = Ms(), p = As(l, {
3262
3291
  relative: u
3263
- }), y = s.toLowerCase() === "get" ? "get" : "post", k = (b) => {
3292
+ }), v = s.toLowerCase() === "get" ? "get" : "post", k = (b) => {
3264
3293
  if (c && c(b), b.defaultPrevented) return;
3265
3294
  b.preventDefault();
3266
- let x = b.nativeEvent.submitter, T = (x == null ? void 0 : x.getAttribute("formmethod")) || s;
3295
+ let x = b.nativeEvent.submitter, _ = (x == null ? void 0 : x.getAttribute("formmethod")) || s;
3267
3296
  m(x || b.currentTarget, {
3268
3297
  fetcherKey: n,
3269
- method: T,
3298
+ method: _,
3270
3299
  navigate: r,
3271
3300
  replace: a,
3272
3301
  state: i,
@@ -3277,10 +3306,10 @@ const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
3277
3306
  };
3278
3307
  return /* @__PURE__ */ E.createElement("form", ut({
3279
3308
  ref: t,
3280
- method: y,
3309
+ method: v,
3281
3310
  action: p,
3282
3311
  onSubmit: o ? c : k
3283
- }, v));
3312
+ }, y));
3284
3313
  });
3285
3314
  process.env.NODE_ENV !== "production" && (Ls.displayName = "Form");
3286
3315
  process.env.NODE_ENV;
@@ -3296,10 +3325,10 @@ function Ns(e) {
3296
3325
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
3297
3326
  }
3298
3327
  function Zo(e) {
3299
- let t = E.useContext(Tt);
3328
+ let t = E.useContext(_t);
3300
3329
  return t || (process.env.NODE_ENV !== "production" ? I(!1, Ns(e)) : I(!1)), t;
3301
3330
  }
3302
- function Ts(e, t) {
3331
+ function _s(e, t) {
3303
3332
  let {
3304
3333
  target: n,
3305
3334
  replace: r,
@@ -3307,7 +3336,7 @@ function Ts(e, t) {
3307
3336
  preventScrollReset: a,
3308
3337
  relative: i,
3309
3338
  viewTransition: s
3310
- } = t === void 0 ? {} : t, l = kr(), c = rt(), u = Yt(e, {
3339
+ } = t === void 0 ? {} : t, l = An(), c = Qe(), u = Yt(e, {
3311
3340
  relative: i
3312
3341
  });
3313
3342
  return E.useCallback((d) => {
@@ -3324,20 +3353,20 @@ function Ts(e, t) {
3324
3353
  }
3325
3354
  }, [c, l, u, r, o, n, e, a, i, s]);
3326
3355
  }
3327
- function Pd(e) {
3328
- process.env.NODE_ENV !== "production" && be(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
3329
- let t = E.useRef(sr(e)), n = E.useRef(!1), r = rt(), o = E.useMemo(() => (
3356
+ function Od(e) {
3357
+ process.env.NODE_ENV !== "production" && we(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
3358
+ let t = E.useRef(ur(e)), n = E.useRef(!1), r = Qe(), o = E.useMemo(() => (
3330
3359
  // Only merge in the defaults if we haven't yet called setSearchParams.
3331
3360
  // Once we call that we want those to take precedence, otherwise you can't
3332
3361
  // remove a param with setSearchParams({}) if it has an initial value
3333
3362
  ls(r.search, n.current ? null : t.current)
3334
- ), [r.search]), a = kr(), i = E.useCallback((s, l) => {
3335
- const c = sr(typeof s == "function" ? s(o) : s);
3363
+ ), [r.search]), a = An(), i = E.useCallback((s, l) => {
3364
+ const c = ur(typeof s == "function" ? s(o) : s);
3336
3365
  n.current = !0, a("?" + c, l);
3337
3366
  }, [a, o]);
3338
3367
  return [o, i];
3339
3368
  }
3340
- function _s() {
3369
+ function Ts() {
3341
3370
  if (typeof document > "u")
3342
3371
  throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
3343
3372
  }
@@ -3347,9 +3376,9 @@ function Ms() {
3347
3376
  router: e
3348
3377
  } = Zo(xn.UseSubmit), {
3349
3378
  basename: t
3350
- } = E.useContext(ze), n = Gi();
3379
+ } = E.useContext(je), n = Gi();
3351
3380
  return E.useCallback(function(r, o) {
3352
- o === void 0 && (o = {}), _s();
3381
+ o === void 0 && (o = {}), Ts();
3353
3382
  let {
3354
3383
  action: a,
3355
3384
  method: i,
@@ -3387,11 +3416,11 @@ function As(e, t) {
3387
3416
  relative: n
3388
3417
  } = t === void 0 ? {} : t, {
3389
3418
  basename: r
3390
- } = E.useContext(ze), o = E.useContext(Je);
3419
+ } = E.useContext(je), o = E.useContext($e);
3391
3420
  o || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
3392
3421
  let [a] = o.matches.slice(-1), i = ut({}, Yt(e || ".", {
3393
3422
  relative: n
3394
- })), s = rt();
3423
+ })), s = Qe();
3395
3424
  if (e == null) {
3396
3425
  i.search = s.search;
3397
3426
  let l = new URLSearchParams(i.search), c = l.getAll("index");
@@ -3405,7 +3434,7 @@ function As(e, t) {
3405
3434
  }
3406
3435
  function Ds(e, t) {
3407
3436
  t === void 0 && (t = {});
3408
- let n = E.useContext(Tr);
3437
+ let n = E.useContext(_r);
3409
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));
3410
3439
  let {
3411
3440
  basename: r
@@ -3414,11 +3443,11 @@ function Ds(e, t) {
3414
3443
  });
3415
3444
  if (!n.isTransitioning)
3416
3445
  return !1;
3417
- let a = $e(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = $e(n.nextLocation.pathname, r) || n.nextLocation.pathname;
3446
+ let a = Je(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = Je(n.nextLocation.pathname, r) || n.nextLocation.pathname;
3418
3447
  return En(o.pathname, i) != null || En(o.pathname, a) != null;
3419
3448
  }
3420
3449
  var qo = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e))(qo || {}), Fs = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e))(Fs || {});
3421
- const Od = [
3450
+ const Md = [
3422
3451
  {
3423
3452
  caption: "Share link",
3424
3453
  description: "Send the link to your friends in all convenient ways"
@@ -3437,23 +3466,23 @@ const Od = [
3437
3466
  const d = typeof c == "function" ? c(t) : c;
3438
3467
  if (!Object.is(d, t)) {
3439
3468
  const h = t;
3440
- t = u ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((v) => v(t, h));
3469
+ t = u ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((y) => y(t, h));
3441
3470
  }
3442
3471
  }, o = () => t, s = { setState: r, getState: o, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(r, o, s);
3443
3472
  return s;
3444
3473
  }, Is = (e) => e ? fo(e) : fo, Bs = (e) => e;
3445
3474
  function Hs(e, t = Bs) {
3446
- const n = Te.useSyncExternalStore(
3475
+ const n = _e.useSyncExternalStore(
3447
3476
  e.subscribe,
3448
3477
  () => t(e.getState()),
3449
3478
  () => t(e.getInitialState())
3450
3479
  );
3451
- return Te.useDebugValue(n), n;
3480
+ return _e.useDebugValue(n), n;
3452
3481
  }
3453
3482
  const ho = (e) => {
3454
3483
  const t = Is(e), n = (r) => Hs(t, r);
3455
3484
  return Object.assign(n, t), n;
3456
- }, se = (e) => e ? ho(e) : ho, Md = se((e) => ({
3485
+ }, se = (e) => e ? ho(e) : ho, Ad = se((e) => ({
3457
3486
  action: null,
3458
3487
  setAction: (t) => e(() => ({ action: t })),
3459
3488
  route: qo.Home,
@@ -3473,7 +3502,7 @@ const ho = (e) => {
3473
3502
  setGatewaysDetail: (t) => e(() => ({ gatewaysDetail: t })),
3474
3503
  isBalanceModalOpen: !1,
3475
3504
  setIsBalanceModalOpen: (t) => e(() => ({ isBalanceModalOpen: t }))
3476
- })), Ad = se((e) => ({
3505
+ })), Dd = se((e) => ({
3477
3506
  token: localStorage.getItem("token") || null,
3478
3507
  setToken: (t) => e(() => ({ token: t })),
3479
3508
  shopDomain: "",
@@ -3493,9 +3522,9 @@ const ho = (e) => {
3493
3522
  shopRefundPolicy: null,
3494
3523
  setShopRefundPolicy: (t) => e(() => ({ shopRefundPolicy: t }))
3495
3524
  }));
3496
- class $t extends Error {
3525
+ class zt extends Error {
3497
3526
  }
3498
- $t.prototype.name = "InvalidTokenError";
3527
+ zt.prototype.name = "InvalidTokenError";
3499
3528
  function Us(e) {
3500
3529
  return decodeURIComponent(atob(e).replace(/(.)/g, (t, n) => {
3501
3530
  let r = n.charCodeAt(0).toString(16).toUpperCase();
@@ -3524,21 +3553,21 @@ function Vs(e) {
3524
3553
  }
3525
3554
  function js(e, t) {
3526
3555
  if (typeof e != "string")
3527
- throw new $t("Invalid token specified: must be a string");
3556
+ throw new zt("Invalid token specified: must be a string");
3528
3557
  t || (t = {});
3529
3558
  const n = t.header === !0 ? 0 : 1, r = e.split(".")[n];
3530
3559
  if (typeof r != "string")
3531
- throw new $t(`Invalid token specified: missing part #${n + 1}`);
3560
+ throw new zt(`Invalid token specified: missing part #${n + 1}`);
3532
3561
  let o;
3533
3562
  try {
3534
3563
  o = Vs(r);
3535
3564
  } catch (a) {
3536
- throw new $t(`Invalid token specified: invalid base64 for part #${n + 1} (${a.message})`);
3565
+ throw new zt(`Invalid token specified: invalid base64 for part #${n + 1} (${a.message})`);
3537
3566
  }
3538
3567
  try {
3539
3568
  return JSON.parse(o);
3540
3569
  } catch (a) {
3541
- throw new $t(`Invalid token specified: invalid json for part #${n + 1} (${a.message})`);
3570
+ throw new zt(`Invalid token specified: invalid json for part #${n + 1} (${a.message})`);
3542
3571
  }
3543
3572
  }
3544
3573
  function Ko(e, t) {
@@ -3546,33 +3575,33 @@ function Ko(e, t) {
3546
3575
  return e.apply(t, arguments);
3547
3576
  };
3548
3577
  }
3549
- const { toString: $s } = Object.prototype, { getPrototypeOf: _r } = Object, Mn = /* @__PURE__ */ ((e) => (t) => {
3578
+ const { toString: $s } = Object.prototype, { getPrototypeOf: Tr } = Object, Fn = /* @__PURE__ */ ((e) => (t) => {
3550
3579
  const n = $s.call(t);
3551
3580
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
3552
- })(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) => Mn(t) === e), An = (e) => (t) => typeof t === e, { isArray: _t } = Array, Kt = An("undefined");
3581
+ })(/* @__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");
3553
3582
  function zs(e) {
3554
- return e !== null && !Kt(e) && e.constructor !== null && !Kt(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
3583
+ return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
3555
3584
  }
3556
3585
  const Go = We("ArrayBuffer");
3557
3586
  function Js(e) {
3558
3587
  let t;
3559
3588
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Go(e.buffer), t;
3560
3589
  }
3561
- const Ws = An("string"), Be = An("function"), Yo = An("number"), Dn = (e) => e !== null && typeof e == "object", Zs = (e) => e === !0 || e === !1, wn = (e) => {
3562
- if (Mn(e) !== "object")
3590
+ 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) => {
3591
+ if (Fn(e) !== "object")
3563
3592
  return !1;
3564
- const t = _r(e);
3593
+ const t = Tr(e);
3565
3594
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
3566
- }, qs = We("Date"), Ks = We("File"), Gs = We("Blob"), Ys = We("FileList"), Xs = (e) => Dn(e) && Be(e.pipe), Qs = (e) => {
3595
+ }, qs = We("Date"), Ks = We("File"), Gs = We("Blob"), Ys = We("FileList"), Xs = (e) => Bn(e) && Be(e.pipe), Qs = (e) => {
3567
3596
  let t;
3568
- return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = Mn(e)) === "formdata" || // detect form-data instance
3597
+ return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = Fn(e)) === "formdata" || // detect form-data instance
3569
3598
  t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
3570
3599
  }, 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, "");
3571
3600
  function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
3572
3601
  if (e === null || typeof e > "u")
3573
3602
  return;
3574
3603
  let r, o;
3575
- if (typeof e != "object" && (e = [e]), _t(e))
3604
+ if (typeof e != "object" && (e = [e]), Pt(e))
3576
3605
  for (r = 0, o = e.length; r < o; r++)
3577
3606
  t.call(null, e[r], r, e);
3578
3607
  else {
@@ -3591,11 +3620,11 @@ function Xo(e, t) {
3591
3620
  return o;
3592
3621
  return null;
3593
3622
  }
3594
- const vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qo = (e) => !Kt(e) && e !== vt;
3595
- function lr() {
3623
+ const yt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qo = (e) => !Gt(e) && e !== yt;
3624
+ function dr() {
3596
3625
  const { caseless: e } = Qo(this) && this || {}, t = {}, n = (r, o) => {
3597
3626
  const a = e && Xo(t, o) || o;
3598
- wn(t[a]) && wn(r) ? t[a] = lr(t[a], r) : wn(r) ? t[a] = lr({}, r) : _t(r) ? t[a] = r.slice() : t[a] = r;
3627
+ wn(t[a]) && wn(r) ? t[a] = dr(t[a], r) : wn(r) ? t[a] = dr({}, r) : Pt(r) ? t[a] = r.slice() : t[a] = r;
3599
3628
  };
3600
3629
  for (let r = 0, o = arguments.length; r < o; r++)
3601
3630
  arguments[r] && Xt(arguments[r], n);
@@ -3614,7 +3643,7 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3614
3643
  do {
3615
3644
  for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; )
3616
3645
  i = o[a], (!r || r(i, e, t)) && !s[i] && (t[i] = e[i], s[i] = !0);
3617
- e = n !== !1 && _r(e);
3646
+ e = n !== !1 && Tr(e);
3618
3647
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
3619
3648
  return t;
3620
3649
  }, ul = (e, t, n) => {
@@ -3623,14 +3652,14 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3623
3652
  return r !== -1 && r === n;
3624
3653
  }, dl = (e) => {
3625
3654
  if (!e) return null;
3626
- if (_t(e)) return e;
3655
+ if (Pt(e)) return e;
3627
3656
  let t = e.length;
3628
3657
  if (!Yo(t)) return null;
3629
3658
  const n = new Array(t);
3630
3659
  for (; t-- > 0; )
3631
3660
  n[t] = e[t];
3632
3661
  return n;
3633
- }, fl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _r(Uint8Array)), hl = (e, t) => {
3662
+ }, fl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Tr(Uint8Array)), hl = (e, t) => {
3634
3663
  const r = (e && e[Symbol.iterator]).call(e);
3635
3664
  let o;
3636
3665
  for (; (o = r.next()) && !o.done; ) {
@@ -3648,13 +3677,13 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3648
3677
  function(n, r, o) {
3649
3678
  return r.toUpperCase() + o;
3650
3679
  }
3651
- ), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yl = We("RegExp"), ea = (e, t) => {
3680
+ ), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vl = We("RegExp"), ea = (e, t) => {
3652
3681
  const n = Object.getOwnPropertyDescriptors(e), r = {};
3653
3682
  Xt(n, (o, a) => {
3654
3683
  let i;
3655
3684
  (i = t(o, a, e)) !== !1 && (r[a] = i || o);
3656
3685
  }), Object.defineProperties(e, r);
3657
- }, vl = (e) => {
3686
+ }, yl = (e) => {
3658
3687
  ea(e, (t, n) => {
3659
3688
  if (Be(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
3660
3689
  return !1;
@@ -3675,7 +3704,7 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3675
3704
  n[a] = !0;
3676
3705
  });
3677
3706
  };
3678
- return _t(e) ? r(e) : r(String(e).split(t)), n;
3707
+ return Pt(e) ? r(e) : r(String(e).split(t)), n;
3679
3708
  }, bl = () => {
3680
3709
  }, Sl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
3681
3710
  function Cl(e) {
@@ -3683,30 +3712,30 @@ function Cl(e) {
3683
3712
  }
3684
3713
  const El = (e) => {
3685
3714
  const t = new Array(10), n = (r, o) => {
3686
- if (Dn(r)) {
3715
+ if (Bn(r)) {
3687
3716
  if (t.indexOf(r) >= 0)
3688
3717
  return;
3689
3718
  if (!("toJSON" in r)) {
3690
3719
  t[o] = r;
3691
- const a = _t(r) ? [] : {};
3720
+ const a = Pt(r) ? [] : {};
3692
3721
  return Xt(r, (i, s) => {
3693
3722
  const l = n(i, o + 1);
3694
- !Kt(l) && (a[s] = l);
3723
+ !Gt(l) && (a[s] = l);
3695
3724
  }), t[o] = void 0, a;
3696
3725
  }
3697
3726
  }
3698
3727
  return r;
3699
3728
  };
3700
3729
  return n(e, 0);
3701
- }, Rl = We("AsyncFunction"), kl = (e) => e && (Dn(e) || Be(e)) && Be(e.then) && Be(e.catch), ta = ((e, t) => e ? setImmediate : t ? ((n, r) => (vt.addEventListener("message", ({ source: o, data: a }) => {
3702
- o === vt && a === n && r.length && r.shift()();
3730
+ }, 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 }) => {
3731
+ o === yt && a === n && r.length && r.shift()();
3703
3732
  }, !1), (o) => {
3704
- r.push(o), vt.postMessage(n, "*");
3733
+ r.push(o), yt.postMessage(n, "*");
3705
3734
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
3706
3735
  typeof setImmediate == "function",
3707
- Be(vt.postMessage)
3708
- ), xl = typeof queueMicrotask < "u" ? queueMicrotask.bind(vt) : typeof process < "u" && process.nextTick || ta, C = {
3709
- isArray: _t,
3736
+ Be(yt.postMessage)
3737
+ ), xl = typeof queueMicrotask < "u" ? queueMicrotask.bind(yt) : typeof process < "u" && process.nextTick || ta, C = {
3738
+ isArray: Pt,
3710
3739
  isArrayBuffer: Go,
3711
3740
  isBuffer: zs,
3712
3741
  isFormData: Qs,
@@ -3714,30 +3743,30 @@ const El = (e) => {
3714
3743
  isString: Ws,
3715
3744
  isNumber: Yo,
3716
3745
  isBoolean: Zs,
3717
- isObject: Dn,
3746
+ isObject: Bn,
3718
3747
  isPlainObject: wn,
3719
3748
  isReadableStream: tl,
3720
3749
  isRequest: nl,
3721
3750
  isResponse: rl,
3722
3751
  isHeaders: ol,
3723
- isUndefined: Kt,
3752
+ isUndefined: Gt,
3724
3753
  isDate: qs,
3725
3754
  isFile: Ks,
3726
3755
  isBlob: Gs,
3727
- isRegExp: yl,
3756
+ isRegExp: vl,
3728
3757
  isFunction: Be,
3729
3758
  isStream: Xs,
3730
3759
  isURLSearchParams: el,
3731
3760
  isTypedArray: fl,
3732
3761
  isFileList: Ys,
3733
3762
  forEach: Xt,
3734
- merge: lr,
3763
+ merge: dr,
3735
3764
  extend: il,
3736
3765
  trim: al,
3737
3766
  stripBOM: sl,
3738
3767
  inherits: ll,
3739
3768
  toFlatObject: cl,
3740
- kindOf: Mn,
3769
+ kindOf: Fn,
3741
3770
  kindOfTest: We,
3742
3771
  endsWith: ul,
3743
3772
  toArray: dl,
@@ -3748,13 +3777,13 @@ const El = (e) => {
3748
3777
  hasOwnProp: po,
3749
3778
  // an alias to avoid ESLint no-prototype-builtins detection
3750
3779
  reduceDescriptors: ea,
3751
- freezeMethods: vl,
3780
+ freezeMethods: yl,
3752
3781
  toObjectSet: wl,
3753
3782
  toCamelCase: gl,
3754
3783
  noop: bl,
3755
3784
  toFiniteNumber: Sl,
3756
3785
  findKey: Xo,
3757
- global: vt,
3786
+ global: yt,
3758
3787
  isContextDefined: Qo,
3759
3788
  isSpecCompliantForm: Cl,
3760
3789
  toJSONObject: El,
@@ -3814,7 +3843,7 @@ $.from = (e, t, n, r, o, a) => {
3814
3843
  }, (s) => s !== "isAxiosError"), $.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
3815
3844
  };
3816
3845
  const Ll = null;
3817
- function cr(e) {
3846
+ function fr(e) {
3818
3847
  return C.isPlainObject(e) || C.isArray(e);
3819
3848
  }
3820
3849
  function oa(e) {
@@ -3826,20 +3855,20 @@ function mo(e, t, n) {
3826
3855
  }).join(n ? "." : "") : t;
3827
3856
  }
3828
3857
  function Nl(e) {
3829
- return C.isArray(e) && !e.some(cr);
3858
+ return C.isArray(e) && !e.some(fr);
3830
3859
  }
3831
- const Tl = C.toFlatObject(C, {}, null, function(t) {
3860
+ const _l = C.toFlatObject(C, {}, null, function(t) {
3832
3861
  return /^is[A-Z]/.test(t);
3833
3862
  });
3834
- function Fn(e, t, n) {
3863
+ function Hn(e, t, n) {
3835
3864
  if (!C.isObject(e))
3836
3865
  throw new TypeError("target must be an object");
3837
3866
  t = t || new FormData(), n = C.toFlatObject(n, {
3838
3867
  metaTokens: !0,
3839
3868
  dots: !1,
3840
3869
  indexes: !1
3841
- }, !1, function(p, y) {
3842
- return !C.isUndefined(y[p]);
3870
+ }, !1, function(p, v) {
3871
+ return !C.isUndefined(v[p]);
3843
3872
  });
3844
3873
  const r = n.metaTokens, o = n.visitor || u, a = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(t);
3845
3874
  if (!C.isFunction(o))
@@ -3852,28 +3881,28 @@ function Fn(e, t, n) {
3852
3881
  throw new $("Blob is not supported. Use a Buffer instead.");
3853
3882
  return C.isArrayBuffer(m) || C.isTypedArray(m) ? l && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
3854
3883
  }
3855
- function u(m, p, y) {
3884
+ function u(m, p, v) {
3856
3885
  let k = m;
3857
- if (m && !y && typeof m == "object") {
3886
+ if (m && !v && typeof m == "object") {
3858
3887
  if (C.endsWith(p, "{}"))
3859
3888
  p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
3860
3889
  else if (C.isArray(m) && Nl(m) || (C.isFileList(m) || C.endsWith(p, "[]")) && (k = C.toArray(m)))
3861
- return p = oa(p), k.forEach(function(x, T) {
3890
+ return p = oa(p), k.forEach(function(x, _) {
3862
3891
  !(C.isUndefined(x) || x === null) && t.append(
3863
3892
  // eslint-disable-next-line no-nested-ternary
3864
- i === !0 ? mo([p], T, a) : i === null ? p : p + "[]",
3893
+ i === !0 ? mo([p], _, a) : i === null ? p : p + "[]",
3865
3894
  c(x)
3866
3895
  );
3867
3896
  }), !1;
3868
3897
  }
3869
- return cr(m) ? !0 : (t.append(mo(y, p, a), c(m)), !1);
3898
+ return fr(m) ? !0 : (t.append(mo(v, p, a), c(m)), !1);
3870
3899
  }
3871
- const d = [], h = Object.assign(Tl, {
3900
+ const d = [], h = Object.assign(_l, {
3872
3901
  defaultVisitor: u,
3873
3902
  convertValue: c,
3874
- isVisitable: cr
3903
+ isVisitable: fr
3875
3904
  });
3876
- function v(m, p) {
3905
+ function y(m, p) {
3877
3906
  if (!C.isUndefined(m)) {
3878
3907
  if (d.indexOf(m) !== -1)
3879
3908
  throw Error("Circular reference detected in " + p.join("."));
@@ -3884,13 +3913,13 @@ function Fn(e, t, n) {
3884
3913
  C.isString(b) ? b.trim() : b,
3885
3914
  p,
3886
3915
  h
3887
- )) === !0 && v(k, p ? p.concat(b) : [b]);
3916
+ )) === !0 && y(k, p ? p.concat(b) : [b]);
3888
3917
  }), d.pop();
3889
3918
  }
3890
3919
  }
3891
3920
  if (!C.isObject(e))
3892
3921
  throw new TypeError("data must be an object");
3893
- return v(e), t;
3922
+ return y(e), t;
3894
3923
  }
3895
3924
  function go(e) {
3896
3925
  const t = {
@@ -3907,7 +3936,7 @@ function go(e) {
3907
3936
  });
3908
3937
  }
3909
3938
  function Pr(e, t) {
3910
- this._pairs = [], e && Fn(e, this, t);
3939
+ this._pairs = [], e && Hn(e, this, t);
3911
3940
  }
3912
3941
  const aa = Pr.prototype;
3913
3942
  aa.append = function(t, n) {
@@ -3921,13 +3950,13 @@ aa.toString = function(t) {
3921
3950
  return n(o[0]) + "=" + n(o[1]);
3922
3951
  }, "").join("&");
3923
3952
  };
3924
- function _l(e) {
3953
+ function Tl(e) {
3925
3954
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3926
3955
  }
3927
3956
  function ia(e, t, n) {
3928
3957
  if (!t)
3929
3958
  return e;
3930
- const r = n && n.encode || _l;
3959
+ const r = n && n.encode || Tl;
3931
3960
  C.isFunction(n) && (n = {
3932
3961
  serialize: n
3933
3962
  });
@@ -3939,7 +3968,7 @@ function ia(e, t, n) {
3939
3968
  }
3940
3969
  return e;
3941
3970
  }
3942
- class yo {
3971
+ class vo {
3943
3972
  constructor() {
3944
3973
  this.handlers = [];
3945
3974
  }
@@ -4005,20 +4034,20 @@ const sa = {
4005
4034
  Blob: Ml
4006
4035
  },
4007
4036
  protocols: ["http", "https", "file", "blob", "url", "data"]
4008
- }, Or = typeof window < "u" && typeof document < "u", ur = typeof navigator == "object" && navigator || void 0, Dl = Or && (!ur || ["ReactNative", "NativeScript", "NS"].indexOf(ur.product) < 0), Fl = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
4037
+ }, 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
4009
4038
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Il = Or && window.location.href || "http://localhost", Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4010
4039
  __proto__: null,
4011
4040
  hasBrowserEnv: Or,
4012
4041
  hasStandardBrowserEnv: Dl,
4013
4042
  hasStandardBrowserWebWorkerEnv: Fl,
4014
- navigator: ur,
4043
+ navigator: hr,
4015
4044
  origin: Il
4016
4045
  }, Symbol.toStringTag, { value: "Module" })), Ne = {
4017
4046
  ...Bl,
4018
4047
  ...Al
4019
4048
  };
4020
4049
  function Hl(e, t) {
4021
- return Fn(e, new Ne.classes.URLSearchParams(), Object.assign({
4050
+ return Hn(e, new Ne.classes.URLSearchParams(), Object.assign({
4022
4051
  visitor: function(n, r, o, a) {
4023
4052
  return Ne.isNode && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
4024
4053
  }
@@ -4080,7 +4109,7 @@ const Qt = {
4080
4109
  return Hl(t, this.formSerializer).toString();
4081
4110
  if ((s = C.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
4082
4111
  const l = this.env && this.env.FormData;
4083
- return Fn(
4112
+ return Hn(
4084
4113
  s ? { "files[]": t } : t,
4085
4114
  l && new l(),
4086
4115
  this.formSerializer
@@ -4155,8 +4184,8 @@ const $l = C.toObjectSet([
4155
4184
  `).forEach(function(i) {
4156
4185
  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);
4157
4186
  }), t;
4158
- }, vo = Symbol("internals");
4159
- function Bt(e) {
4187
+ }, yo = Symbol("internals");
4188
+ function Ht(e) {
4160
4189
  return e && String(e).trim().toLowerCase();
4161
4190
  }
4162
4191
  function bn(e) {
@@ -4170,7 +4199,7 @@ function Jl(e) {
4170
4199
  return t;
4171
4200
  }
4172
4201
  const Wl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
4173
- function Gn(e, t, n, r, o) {
4202
+ function Qn(e, t, n, r, o) {
4174
4203
  if (C.isFunction(r))
4175
4204
  return r.call(this, t, n);
4176
4205
  if (o && (t = n), !!C.isString(t)) {
@@ -4201,7 +4230,7 @@ let Fe = class {
4201
4230
  set(t, n, r) {
4202
4231
  const o = this;
4203
4232
  function a(s, l, c) {
4204
- const u = Bt(l);
4233
+ const u = Ht(l);
4205
4234
  if (!u)
4206
4235
  throw new Error("header name must be a non-empty string");
4207
4236
  const d = C.findKey(o, u);
@@ -4220,7 +4249,7 @@ let Fe = class {
4220
4249
  return this;
4221
4250
  }
4222
4251
  get(t, n) {
4223
- if (t = Bt(t), t) {
4252
+ if (t = Ht(t), t) {
4224
4253
  const r = C.findKey(this, t);
4225
4254
  if (r) {
4226
4255
  const o = this[r];
@@ -4237,9 +4266,9 @@ let Fe = class {
4237
4266
  }
4238
4267
  }
4239
4268
  has(t, n) {
4240
- if (t = Bt(t), t) {
4269
+ if (t = Ht(t), t) {
4241
4270
  const r = C.findKey(this, t);
4242
- return !!(r && this[r] !== void 0 && (!n || Gn(this, this[r], r, n)));
4271
+ return !!(r && this[r] !== void 0 && (!n || Qn(this, this[r], r, n)));
4243
4272
  }
4244
4273
  return !1;
4245
4274
  }
@@ -4247,9 +4276,9 @@ let Fe = class {
4247
4276
  const r = this;
4248
4277
  let o = !1;
4249
4278
  function a(i) {
4250
- if (i = Bt(i), i) {
4279
+ if (i = Ht(i), i) {
4251
4280
  const s = C.findKey(r, i);
4252
- s && (!n || Gn(r, r[s], s, n)) && (delete r[s], o = !0);
4281
+ s && (!n || Qn(r, r[s], s, n)) && (delete r[s], o = !0);
4253
4282
  }
4254
4283
  }
4255
4284
  return C.isArray(t) ? t.forEach(a) : a(t), o;
@@ -4259,7 +4288,7 @@ let Fe = class {
4259
4288
  let r = n.length, o = !1;
4260
4289
  for (; r--; ) {
4261
4290
  const a = n[r];
4262
- (!t || Gn(this, this[a], a, t, !0)) && (delete this[a], o = !0);
4291
+ (!t || Qn(this, this[a], a, t, !0)) && (delete this[a], o = !0);
4263
4292
  }
4264
4293
  return o;
4265
4294
  }
@@ -4302,11 +4331,11 @@ let Fe = class {
4302
4331
  return n.forEach((o) => r.set(o)), r;
4303
4332
  }
4304
4333
  static accessor(t) {
4305
- const r = (this[vo] = this[vo] = {
4334
+ const r = (this[yo] = this[yo] = {
4306
4335
  accessors: {}
4307
4336
  }).accessors, o = this.prototype;
4308
4337
  function a(i) {
4309
- const s = Bt(i);
4338
+ const s = Ht(i);
4310
4339
  r[s] || (ql(o, i), r[s] = !0);
4311
4340
  }
4312
4341
  return C.isArray(t) ? t.forEach(a) : a(t), this;
@@ -4323,7 +4352,7 @@ C.reduceDescriptors(Fe.prototype, ({ value: e }, t) => {
4323
4352
  };
4324
4353
  });
4325
4354
  C.freezeMethods(Fe);
4326
- function Yn(e, t) {
4355
+ function er(e, t) {
4327
4356
  const n = this || Qt, r = t || n, o = Fe.from(r.headers);
4328
4357
  let a = r.data;
4329
4358
  return C.forEach(e, function(s) {
@@ -4333,10 +4362,10 @@ function Yn(e, t) {
4333
4362
  function ca(e) {
4334
4363
  return !!(e && e.__CANCEL__);
4335
4364
  }
4336
- function Pt(e, t, n) {
4365
+ function Ot(e, t, n) {
4337
4366
  $.call(this, e ?? "canceled", $.ERR_CANCELED, t, n), this.name = "CanceledError";
4338
4367
  }
4339
- C.inherits(Pt, $, {
4368
+ C.inherits(Ot, $, {
4340
4369
  __CANCEL__: !0
4341
4370
  });
4342
4371
  function ua(e, t, n) {
@@ -4365,8 +4394,8 @@ function Gl(e, t) {
4365
4394
  h += n[d++], d = d % e;
4366
4395
  if (o = (o + 1) % e, o === a && (a = (a + 1) % e), c - i < t)
4367
4396
  return;
4368
- const v = u && c - u;
4369
- return v ? Math.round(h * 1e3 / v) : void 0;
4397
+ const y = u && c - u;
4398
+ return y ? Math.round(h * 1e3 / y) : void 0;
4370
4399
  };
4371
4400
  }
4372
4401
  function Yl(e, t) {
@@ -4538,57 +4567,57 @@ const fa = (e) => {
4538
4567
  const o = fa(e);
4539
4568
  let a = o.data;
4540
4569
  const i = Fe.from(o.headers).normalize();
4541
- let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, h, v, m;
4570
+ let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, h, y, m;
4542
4571
  function p() {
4543
- v && v(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
4572
+ y && y(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
4544
4573
  }
4545
- let y = new XMLHttpRequest();
4546
- y.open(o.method.toUpperCase(), o.url, !0), y.timeout = o.timeout;
4574
+ let v = new XMLHttpRequest();
4575
+ v.open(o.method.toUpperCase(), o.url, !0), v.timeout = o.timeout;
4547
4576
  function k() {
4548
- if (!y)
4577
+ if (!v)
4549
4578
  return;
4550
4579
  const x = Fe.from(
4551
- "getAllResponseHeaders" in y && y.getAllResponseHeaders()
4580
+ "getAllResponseHeaders" in v && v.getAllResponseHeaders()
4552
4581
  ), N = {
4553
- data: !s || s === "text" || s === "json" ? y.responseText : y.response,
4554
- status: y.status,
4555
- statusText: y.statusText,
4582
+ data: !s || s === "text" || s === "json" ? v.responseText : v.response,
4583
+ status: v.status,
4584
+ statusText: v.statusText,
4556
4585
  headers: x,
4557
4586
  config: e,
4558
- request: y
4587
+ request: v
4559
4588
  };
4560
4589
  ua(function(w) {
4561
4590
  n(w), p();
4562
4591
  }, function(w) {
4563
4592
  r(w), p();
4564
- }, N), y = null;
4593
+ }, N), v = null;
4565
4594
  }
4566
- "onloadend" in y ? y.onloadend = k : y.onreadystatechange = function() {
4567
- !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(k);
4568
- }, y.onabort = function() {
4569
- y && (r(new $("Request aborted", $.ECONNABORTED, e, y)), y = null);
4570
- }, y.onerror = function() {
4571
- r(new $("Network Error", $.ERR_NETWORK, e, y)), y = null;
4572
- }, y.ontimeout = function() {
4573
- let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
4595
+ "onloadend" in v ? v.onloadend = k : v.onreadystatechange = function() {
4596
+ !v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(k);
4597
+ }, v.onabort = function() {
4598
+ v && (r(new $("Request aborted", $.ECONNABORTED, e, v)), v = null);
4599
+ }, v.onerror = function() {
4600
+ r(new $("Network Error", $.ERR_NETWORK, e, v)), v = null;
4601
+ }, v.ontimeout = function() {
4602
+ let _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
4574
4603
  const N = o.transitional || sa;
4575
- o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new $(
4576
- T,
4604
+ o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), r(new $(
4605
+ _,
4577
4606
  N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
4578
4607
  e,
4579
- y
4580
- )), y = null;
4581
- }, a === void 0 && i.setContentType(null), "setRequestHeader" in y && C.forEach(i.toJSON(), function(T, N) {
4582
- y.setRequestHeader(N, T);
4583
- }), C.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), s && s !== "json" && (y.responseType = o.responseType), c && ([h, m] = Ln(c, !0), y.addEventListener("progress", h)), l && y.upload && ([d, v] = Ln(l), y.upload.addEventListener("progress", d), y.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (u = (x) => {
4584
- y && (r(!x || x.type ? new Pt(null, e, y) : x), y.abort(), y = null);
4608
+ v
4609
+ )), v = null;
4610
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in v && C.forEach(i.toJSON(), function(_, N) {
4611
+ v.setRequestHeader(N, _);
4612
+ }), 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) => {
4613
+ v && (r(!x || x.type ? new Ot(null, e, v) : x), v.abort(), v = null);
4585
4614
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
4586
4615
  const b = Kl(o.url);
4587
4616
  if (b && Ne.protocols.indexOf(b) === -1) {
4588
4617
  r(new $("Unsupported protocol " + b + ":", $.ERR_BAD_REQUEST, e));
4589
4618
  return;
4590
4619
  }
4591
- y.send(a || null);
4620
+ v.send(a || null);
4592
4621
  });
4593
4622
  }, oc = (e, t) => {
4594
4623
  const { length: n } = e = e ? e.filter(Boolean) : [];
@@ -4598,7 +4627,7 @@ const fa = (e) => {
4598
4627
  if (!o) {
4599
4628
  o = !0, s();
4600
4629
  const u = c instanceof Error ? c : this.reason;
4601
- r.abort(u instanceof $ ? u : new Pt(u instanceof Error ? u.message : u));
4630
+ r.abort(u instanceof $ ? u : new Ot(u instanceof Error ? u.message : u));
4602
4631
  }
4603
4632
  };
4604
4633
  let i = t && setTimeout(() => {
@@ -4670,7 +4699,7 @@ const fa = (e) => {
4670
4699
  }, {
4671
4700
  highWaterMark: 2
4672
4701
  });
4673
- }, In = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = In && typeof ReadableStream == "function", lc = In && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), pa = (e, ...t) => {
4702
+ }, 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) => {
4674
4703
  try {
4675
4704
  return !!e(...t);
4676
4705
  } catch {
@@ -4686,10 +4715,10 @@ const fa = (e) => {
4686
4715
  }
4687
4716
  }).headers.has("Content-Type");
4688
4717
  return e && !t;
4689
- }), Eo = 64 * 1024, dr = ha && pa(() => C.isReadableStream(new Response("").body)), Nn = {
4690
- stream: dr && ((e) => e.body)
4718
+ }), Eo = 64 * 1024, pr = ha && pa(() => C.isReadableStream(new Response("").body)), Nn = {
4719
+ stream: pr && ((e) => e.body)
4691
4720
  };
4692
- In && ((e) => {
4721
+ Un && ((e) => {
4693
4722
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
4694
4723
  !Nn[t] && (Nn[t] = C.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
4695
4724
  throw new $(`Response type '${t}' is not supported`, $.ERR_NOT_SUPPORT, r);
@@ -4713,7 +4742,7 @@ const uc = async (e) => {
4713
4742
  }, dc = async (e, t) => {
4714
4743
  const n = C.toFiniteNumber(e.getContentLength());
4715
4744
  return n ?? uc(t);
4716
- }, fc = In && (async (e) => {
4745
+ }, fc = Un && (async (e) => {
4717
4746
  let {
4718
4747
  url: t,
4719
4748
  method: n,
@@ -4729,31 +4758,31 @@ const uc = async (e) => {
4729
4758
  fetchOptions: h
4730
4759
  } = fa(e);
4731
4760
  c = c ? (c + "").toLowerCase() : "text";
4732
- let v = oc([o, a && a.toAbortSignal()], i), m;
4733
- const p = v && v.unsubscribe && (() => {
4734
- v.unsubscribe();
4761
+ let y = oc([o, a && a.toAbortSignal()], i), m;
4762
+ const p = y && y.unsubscribe && (() => {
4763
+ y.unsubscribe();
4735
4764
  });
4736
- let y;
4765
+ let v;
4737
4766
  try {
4738
- if (l && cc && n !== "get" && n !== "head" && (y = await dc(u, r)) !== 0) {
4767
+ if (l && cc && n !== "get" && n !== "head" && (v = await dc(u, r)) !== 0) {
4739
4768
  let N = new Request(t, {
4740
4769
  method: "POST",
4741
4770
  body: r,
4742
4771
  duplex: "half"
4743
4772
  }), U;
4744
4773
  if (C.isFormData(r) && (U = N.headers.get("content-type")) && u.setContentType(U), N.body) {
4745
- const [w, _] = wo(
4746
- y,
4774
+ const [w, T] = wo(
4775
+ v,
4747
4776
  Ln(bo(l))
4748
4777
  );
4749
- r = Co(N.body, Eo, w, _);
4778
+ r = Co(N.body, Eo, w, T);
4750
4779
  }
4751
4780
  }
4752
4781
  C.isString(d) || (d = d ? "include" : "omit");
4753
4782
  const k = "credentials" in Request.prototype;
4754
4783
  m = new Request(t, {
4755
4784
  ...h,
4756
- signal: v,
4785
+ signal: y,
4757
4786
  method: n.toUpperCase(),
4758
4787
  headers: u.normalize().toJSON(),
4759
4788
  body: r,
@@ -4761,28 +4790,28 @@ const uc = async (e) => {
4761
4790
  credentials: k ? d : void 0
4762
4791
  });
4763
4792
  let b = await fetch(m);
4764
- const x = dr && (c === "stream" || c === "response");
4765
- if (dr && (s || x && p)) {
4793
+ const x = pr && (c === "stream" || c === "response");
4794
+ if (pr && (s || x && p)) {
4766
4795
  const N = {};
4767
4796
  ["status", "statusText", "headers"].forEach((K) => {
4768
4797
  N[K] = b[K];
4769
4798
  });
4770
- const U = C.toFiniteNumber(b.headers.get("content-length")), [w, _] = s && wo(
4799
+ const U = C.toFiniteNumber(b.headers.get("content-length")), [w, T] = s && wo(
4771
4800
  U,
4772
4801
  Ln(bo(s), !0)
4773
4802
  ) || [];
4774
4803
  b = new Response(
4775
4804
  Co(b.body, Eo, w, () => {
4776
- _ && _(), p && p();
4805
+ T && T(), p && p();
4777
4806
  }),
4778
4807
  N
4779
4808
  );
4780
4809
  }
4781
4810
  c = c || "text";
4782
- let T = await Nn[C.findKey(Nn, c) || "text"](b, e);
4811
+ let _ = await Nn[C.findKey(Nn, c) || "text"](b, e);
4783
4812
  return !x && p && p(), await new Promise((N, U) => {
4784
4813
  ua(N, U, {
4785
- data: T,
4814
+ data: _,
4786
4815
  headers: Fe.from(b.headers),
4787
4816
  status: b.status,
4788
4817
  statusText: b.statusText,
@@ -4798,12 +4827,12 @@ const uc = async (e) => {
4798
4827
  }
4799
4828
  ) : $.from(k, k && k.code, e, m);
4800
4829
  }
4801
- }), fr = {
4830
+ }), mr = {
4802
4831
  http: Ll,
4803
4832
  xhr: rc,
4804
4833
  fetch: fc
4805
4834
  };
4806
- C.forEach(fr, (e, t) => {
4835
+ C.forEach(mr, (e, t) => {
4807
4836
  if (e) {
4808
4837
  try {
4809
4838
  Object.defineProperty(e, "name", { value: t });
@@ -4821,7 +4850,7 @@ const Ro = (e) => `- ${e}`, hc = (e) => C.isFunction(e) || e === null || e === !
4821
4850
  for (let a = 0; a < t; a++) {
4822
4851
  n = e[a];
4823
4852
  let i;
4824
- if (r = n, !hc(n) && (r = fr[(i = String(n)).toLowerCase()], r === void 0))
4853
+ if (r = n, !hc(n) && (r = mr[(i = String(n)).toLowerCase()], r === void 0))
4825
4854
  throw new $(`Unknown adapter '${i}'`);
4826
4855
  if (r)
4827
4856
  break;
@@ -4841,38 +4870,38 @@ const Ro = (e) => `- ${e}`, hc = (e) => C.isFunction(e) || e === null || e === !
4841
4870
  }
4842
4871
  return r;
4843
4872
  },
4844
- adapters: fr
4873
+ adapters: mr
4845
4874
  };
4846
- function Xn(e) {
4875
+ function tr(e) {
4847
4876
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
4848
- throw new Pt(null, e);
4877
+ throw new Ot(null, e);
4849
4878
  }
4850
4879
  function ko(e) {
4851
- return Xn(e), e.headers = Fe.from(e.headers), e.data = Yn.call(
4880
+ return tr(e), e.headers = Fe.from(e.headers), e.data = er.call(
4852
4881
  e,
4853
4882
  e.transformRequest
4854
4883
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ma.getAdapter(e.adapter || Qt.adapter)(e).then(function(r) {
4855
- return Xn(e), r.data = Yn.call(
4884
+ return tr(e), r.data = er.call(
4856
4885
  e,
4857
4886
  e.transformResponse,
4858
4887
  r
4859
4888
  ), r.headers = Fe.from(r.headers), r;
4860
4889
  }, function(r) {
4861
- return ca(r) || (Xn(e), r && r.response && (r.response.data = Yn.call(
4890
+ return ca(r) || (tr(e), r && r.response && (r.response.data = er.call(
4862
4891
  e,
4863
4892
  e.transformResponse,
4864
4893
  r.response
4865
4894
  ), r.response.headers = Fe.from(r.response.headers))), Promise.reject(r);
4866
4895
  });
4867
4896
  }
4868
- const ga = "1.8.1", Bn = {};
4897
+ const ga = "1.8.1", Vn = {};
4869
4898
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
4870
- Bn[e] = function(r) {
4899
+ Vn[e] = function(r) {
4871
4900
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
4872
4901
  };
4873
4902
  });
4874
4903
  const xo = {};
4875
- Bn.transitional = function(t, n, r) {
4904
+ Vn.transitional = function(t, n, r) {
4876
4905
  function o(a, i) {
4877
4906
  return "[Axios v" + ga + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
4878
4907
  }
@@ -4890,7 +4919,7 @@ Bn.transitional = function(t, n, r) {
4890
4919
  )), t ? t(a, i, s) : !0;
4891
4920
  };
4892
4921
  };
4893
- Bn.spelling = function(t) {
4922
+ Vn.spelling = function(t) {
4894
4923
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
4895
4924
  };
4896
4925
  function pc(e, t, n) {
@@ -4912,13 +4941,13 @@ function pc(e, t, n) {
4912
4941
  }
4913
4942
  const Sn = {
4914
4943
  assertOptions: pc,
4915
- validators: Bn
4944
+ validators: Vn
4916
4945
  }, Ye = Sn.validators;
4917
4946
  let wt = class {
4918
4947
  constructor(t) {
4919
4948
  this.defaults = t, this.interceptors = {
4920
- request: new yo(),
4921
- response: new yo()
4949
+ request: new vo(),
4950
+ response: new vo()
4922
4951
  };
4923
4952
  }
4924
4953
  /**
@@ -4989,18 +5018,18 @@ let wt = class {
4989
5018
  return u;
4990
5019
  }
4991
5020
  h = s.length;
4992
- let v = n;
5021
+ let y = n;
4993
5022
  for (d = 0; d < h; ) {
4994
5023
  const m = s[d++], p = s[d++];
4995
5024
  try {
4996
- v = m(v);
4997
- } catch (y) {
4998
- p.call(this, y);
5025
+ y = m(y);
5026
+ } catch (v) {
5027
+ p.call(this, v);
4999
5028
  break;
5000
5029
  }
5001
5030
  }
5002
5031
  try {
5003
- u = ko.call(this, v);
5032
+ u = ko.call(this, y);
5004
5033
  } catch (m) {
5005
5034
  return Promise.reject(m);
5006
5035
  }
@@ -5038,7 +5067,7 @@ C.forEach(["post", "put", "patch"], function(t) {
5038
5067
  }
5039
5068
  wt.prototype[t] = n(), wt.prototype[t + "Form"] = n(!0);
5040
5069
  });
5041
- let mc = class ya {
5070
+ let mc = class va {
5042
5071
  constructor(t) {
5043
5072
  if (typeof t != "function")
5044
5073
  throw new TypeError("executor must be a function.");
@@ -5062,7 +5091,7 @@ let mc = class ya {
5062
5091
  r.unsubscribe(a);
5063
5092
  }, i;
5064
5093
  }, t(function(a, i, s) {
5065
- r.reason || (r.reason = new Pt(a, i, s), n(r.reason));
5094
+ r.reason || (r.reason = new Ot(a, i, s), n(r.reason));
5066
5095
  });
5067
5096
  }
5068
5097
  /**
@@ -5104,7 +5133,7 @@ let mc = class ya {
5104
5133
  static source() {
5105
5134
  let t;
5106
5135
  return {
5107
- token: new ya(function(o) {
5136
+ token: new va(function(o) {
5108
5137
  t = o;
5109
5138
  }),
5110
5139
  cancel: t
@@ -5116,10 +5145,10 @@ function gc(e) {
5116
5145
  return e.apply(null, n);
5117
5146
  };
5118
5147
  }
5119
- function yc(e) {
5148
+ function vc(e) {
5120
5149
  return C.isObject(e) && e.isAxiosError === !0;
5121
5150
  }
5122
- const hr = {
5151
+ const gr = {
5123
5152
  Continue: 100,
5124
5153
  SwitchingProtocols: 101,
5125
5154
  Processing: 102,
@@ -5184,54 +5213,54 @@ const hr = {
5184
5213
  NotExtended: 510,
5185
5214
  NetworkAuthenticationRequired: 511
5186
5215
  };
5187
- Object.entries(hr).forEach(([e, t]) => {
5188
- hr[t] = e;
5216
+ Object.entries(gr).forEach(([e, t]) => {
5217
+ gr[t] = e;
5189
5218
  });
5190
- function va(e) {
5219
+ function ya(e) {
5191
5220
  const t = new wt(e), n = Ko(wt.prototype.request, t);
5192
5221
  return C.extend(n, wt.prototype, t, { allOwnKeys: !0 }), C.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
5193
- return va(bt(e, o));
5222
+ return ya(bt(e, o));
5194
5223
  }, n;
5195
5224
  }
5196
- const de = va(Qt);
5225
+ const de = ya(Qt);
5197
5226
  de.Axios = wt;
5198
- de.CanceledError = Pt;
5227
+ de.CanceledError = Ot;
5199
5228
  de.CancelToken = mc;
5200
5229
  de.isCancel = ca;
5201
5230
  de.VERSION = ga;
5202
- de.toFormData = Fn;
5231
+ de.toFormData = Hn;
5203
5232
  de.AxiosError = $;
5204
5233
  de.Cancel = de.CanceledError;
5205
5234
  de.all = function(t) {
5206
5235
  return Promise.all(t);
5207
5236
  };
5208
5237
  de.spread = gc;
5209
- de.isAxiosError = yc;
5238
+ de.isAxiosError = vc;
5210
5239
  de.mergeConfig = bt;
5211
5240
  de.AxiosHeaders = Fe;
5212
5241
  de.formToJSON = (e) => la(C.isHTMLForm(e) ? new FormData(e) : e);
5213
5242
  de.getAdapter = ma.getAdapter;
5214
- de.HttpStatusCode = hr;
5243
+ de.HttpStatusCode = gr;
5215
5244
  de.default = de;
5216
5245
  const {
5217
- Axios: Id,
5218
- AxiosError: vc,
5219
- CanceledError: Bd,
5220
- isCancel: Hd,
5221
- CancelToken: Ud,
5222
- VERSION: Vd,
5223
- all: jd,
5224
- Cancel: $d,
5225
- isAxiosError: zd,
5226
- spread: Jd,
5227
- toFormData: Wd,
5228
- AxiosHeaders: Zd,
5229
- HttpStatusCode: qd,
5230
- formToJSON: Kd,
5231
- getAdapter: Gd,
5232
- mergeConfig: Yd
5246
+ Axios: Bd,
5247
+ AxiosError: yc,
5248
+ CanceledError: Hd,
5249
+ isCancel: Ud,
5250
+ CancelToken: Vd,
5251
+ VERSION: jd,
5252
+ all: $d,
5253
+ Cancel: zd,
5254
+ isAxiosError: Jd,
5255
+ spread: Wd,
5256
+ toFormData: Zd,
5257
+ AxiosHeaders: qd,
5258
+ HttpStatusCode: Kd,
5259
+ formToJSON: Gd,
5260
+ getAdapter: Yd,
5261
+ mergeConfig: Xd
5233
5262
  } = de, hn = "https://localhost:5043", st = async (e) => {
5234
- var h, v;
5263
+ var h, y;
5235
5264
  const { url: t, withToken: n, method: r, body: o, contentType: a, typeToken: i = "seller" } = e, s = n ? localStorage.getItem("sellerAccessToken") : null, l = n ? localStorage.getItem("token") : null, c = i === "seller" ? s : l, u = localStorage.getItem("dv"), d = {};
5236
5265
  a && !(o instanceof FormData) ? d["Content-Type"] = a : o instanceof FormData || (d["Content-Type"] = "application/json"), n && c && (d.Authorization = `Bearer ${c}`);
5237
5266
  try {
@@ -5256,18 +5285,18 @@ const {
5256
5285
  headers: m == null ? void 0 : m.headers
5257
5286
  };
5258
5287
  } catch (m) {
5259
- const p = m, y = (h = p.response) == null ? void 0 : h.data;
5288
+ const p = m, v = (h = p.response) == null ? void 0 : h.data;
5260
5289
  let k = "Something Went Wrong";
5261
- y && (k = y.errors[0]);
5262
- const b = (v = p.response) == null ? void 0 : v.status;
5290
+ v && (k = v.errors[0]);
5291
+ const b = (y = p.response) == null ? void 0 : y.status;
5263
5292
  if (b === 401)
5264
5293
  try {
5265
- const T = await import("./charge-B1GrtVWc.js").then((N) => N.a2);
5266
- T && T.logoutCustomer ? await T.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
5267
- } catch (T) {
5268
- console.error("Failed to import logoutCustomer:", T), localStorage.removeItem("token"), window.location.reload();
5294
+ const _ = await import("./charge-D_2QP2MU.js").then((N) => N.a2);
5295
+ _ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
5296
+ } catch (_) {
5297
+ console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
5269
5298
  }
5270
- const x = new vc(k, (b == null ? void 0 : b.toString()) || "400");
5299
+ const x = new yc(k, (b == null ? void 0 : b.toString()) || "400");
5271
5300
  throw x.response = p.response, x;
5272
5301
  }
5273
5302
  }, 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 = {
@@ -5277,18 +5306,18 @@ const {
5277
5306
  slApi: Cc,
5278
5307
  customersApi: Ec,
5279
5308
  cashappApi: Rc
5280
- }, Xd = (e, t = "300") => e === "not found" ? "empty" : `https://imagedelivery.net/${e}/w=${t}`, Qd = (e) => {
5309
+ }, Qd = (e, t = "300") => e === "not found" ? "empty" : `https://imagedelivery.net/${e}/w=${t}`, e0 = (e) => {
5281
5310
  const t = new Intl.NumberFormat("en-US", {
5282
5311
  style: "currency",
5283
5312
  currency: e.currency || "USD"
5284
5313
  });
5285
5314
  let n = e.amount;
5286
5315
  return e.quantity && (n = n * e.quantity), t.format(n);
5287
- }, e0 = (e, t) => {
5316
+ }, t0 = (e, t) => {
5288
5317
  if (e === 0)
5289
5318
  throw new Error("Old value cannot be zero, as it would result in division by zero.");
5290
5319
  return (t - e) / Math.abs(e) * 100;
5291
- }, t0 = (e) => {
5320
+ }, n0 = (e) => {
5292
5321
  if (Math.abs(e - 365) <= 15) {
5293
5322
  const a = Math.round(e / 365);
5294
5323
  return a === 1 ? "year" : `${a} years`;
@@ -5297,11 +5326,11 @@ const {
5297
5326
  return a === 1 ? "month" : `${a} months`;
5298
5327
  } else
5299
5328
  return `${e} days`;
5300
- }, n0 = (e) => new Date(e).toLocaleDateString("en-US", {
5329
+ }, r0 = (e) => new Date(e).toLocaleDateString("en-US", {
5301
5330
  year: "numeric",
5302
5331
  month: "short",
5303
5332
  day: "numeric"
5304
- }), r0 = (e) => {
5333
+ }), o0 = (e) => {
5305
5334
  const t = new Date(e), n = {
5306
5335
  day: "2-digit",
5307
5336
  month: "2-digit",
@@ -5311,7 +5340,7 @@ const {
5311
5340
  minute: "2-digit"
5312
5341
  }, o = t.toLocaleString("en-US", n), a = t.toLocaleString("en-US", r);
5313
5342
  return [o, a];
5314
- }, pr = (e) => {
5343
+ }, vr = (e) => {
5315
5344
  const t = window.localStorage.getItem(e);
5316
5345
  if (t === null) return null;
5317
5346
  try {
@@ -5323,68 +5352,68 @@ const {
5323
5352
  (t === null || typeof t != "object") && window.localStorage.setItem(e, String(t));
5324
5353
  const n = JSON.stringify(t);
5325
5354
  window.localStorage.setItem(e, n);
5326
- }, Qn = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ht = "https://t-api.billgang.com", Ut = "https://internal-t-api.antistock.io", zt = "I", xc = 10 * 1e3, Lc = 15 * 1e3, Nc = 15 * 60 * 1e3, Tc = () => {
5355
+ }, 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 = () => {
5327
5356
  var t;
5328
- const e = pr(zt);
5357
+ const e = vr(Jt);
5329
5358
  return ((t = e == null ? void 0 : e.s) == null ? void 0 : t.i) || null;
5330
- }, o0 = (e, t = "production", n) => {
5331
- const { pathname: r } = rt(), o = jr(), a = jr(document.visibilityState);
5332
- Ta(() => {
5359
+ }, a0 = (e, t = "production", n) => {
5360
+ const { pathname: r } = Qe(), o = jr(), a = jr(document.visibilityState);
5361
+ _a(() => {
5333
5362
  if (!e) return;
5334
5363
  const i = () => Date.now(), s = async () => (await st({
5335
- url: `${n ? Ut : Ht}/${e}/t/p`,
5364
+ url: `${n ? Vt : Ut}/${e}/t/p`,
5336
5365
  method: "post",
5337
5366
  withToken: !1
5338
5367
  })).data.data.id, l = async (m) => (await st({
5339
- url: `${n ? Ut : Ht}/${e}/t/p/${t === "development" ? Qn : m}/s`,
5368
+ url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s`,
5340
5369
  method: "post",
5341
5370
  withToken: !1
5342
- })).data.data.id, c = async (m, p, y, k) => {
5343
- const b = t === "development" ? Qn : m;
5371
+ })).data.data.id, c = async (m, p, v, k) => {
5372
+ const b = t === "development" ? nr : m;
5344
5373
  try {
5345
5374
  return (await st({
5346
- url: `${n ? Ut : Ht}/${e}/t/p/${b}/s/${p}/e`,
5375
+ url: `${n ? Vt : Ut}/${e}/t/p/${b}/s/${p}/e`,
5347
5376
  method: "post",
5348
5377
  withToken: !1,
5349
- body: { url: y, oldEventId: k },
5378
+ body: { url: v, oldEventId: k },
5350
5379
  contentType: "application/json"
5351
5380
  })).data.data.id;
5352
5381
  } catch {
5353
5382
  return p = await l(m), (await st({
5354
- url: `${n ? Ut : Ht}/${e}/t/p/${b}/s/${p}/e`,
5383
+ url: `${n ? Vt : Ut}/${e}/t/p/${b}/s/${p}/e`,
5355
5384
  method: "post",
5356
5385
  withToken: !1,
5357
- body: { url: y },
5386
+ body: { url: v },
5358
5387
  contentType: "application/json"
5359
5388
  })).data.data.id;
5360
5389
  }
5361
- }, u = async (m, p, y) => {
5390
+ }, u = async (m, p, v) => {
5362
5391
  await st({
5363
- url: `${n ? Ut : Ht}/${e}/t/p/${t === "development" ? Qn : m}/s/${p}/e/${y}/h`,
5392
+ url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s/${p}/e/${v}/h`,
5364
5393
  method: "post",
5365
5394
  withToken: !1
5366
5395
  });
5367
- const b = pr(zt);
5368
- b && (b.s.u = i().toString(), b.lu = i().toString(), Lo(zt, b));
5369
- }, d = (m, p, y) => {
5396
+ const b = vr(Jt);
5397
+ b && (b.s.u = i().toString(), b.lu = i().toString(), Lo(Jt, b));
5398
+ }, d = (m, p, v) => {
5370
5399
  o.current && clearInterval(o.current), o.current = setInterval(async () => {
5371
5400
  if (document.visibilityState === "visible")
5372
5401
  try {
5373
- await u(m, p, y);
5402
+ await u(m, p, v);
5374
5403
  } catch {
5375
5404
  await h();
5376
5405
  }
5377
5406
  }, xc);
5378
5407
  }, h = async () => {
5379
- var k, b, x, T;
5380
- const m = `${window.location.hostname}${r}`, p = pr(zt), y = i();
5408
+ var k, b, x, _;
5409
+ const m = `${window.location.hostname}${r}`, p = vr(Jt), v = i();
5381
5410
  try {
5382
5411
  let N = p == null ? void 0 : p.p;
5383
5412
  N || (N = await s());
5384
5413
  let U = (k = p == null ? void 0 : p.s) == null ? void 0 : k.i;
5385
- 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)), _ = !U || y - w > Nc;
5386
- (!U || _) && (U = await l(N));
5387
- const K = Number((p == null ? void 0 : p.lu) || 0), B = y - K > Lc, ae = await c(
5414
+ 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
+ (!U || T) && (U = await l(N));
5416
+ const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K > Lc, ae = await c(
5388
5417
  N,
5389
5418
  U,
5390
5419
  m,
@@ -5393,26 +5422,26 @@ const {
5393
5422
  p: N,
5394
5423
  s: {
5395
5424
  i: U,
5396
- c: ((T = p == null ? void 0 : p.s) == null ? void 0 : T.c) ?? y.toString(),
5397
- u: y.toString()
5425
+ c: ((_ = p == null ? void 0 : p.s) == null ? void 0 : _.c) ?? v.toString(),
5426
+ u: v.toString()
5398
5427
  },
5399
5428
  l: ae,
5400
- lu: y.toString()
5429
+ lu: v.toString()
5401
5430
  };
5402
- Lo(zt, ee), d(N, U, ae);
5431
+ Lo(Jt, ee), d(N, U, ae);
5403
5432
  } catch (N) {
5404
5433
  console.error("[TrackingAnalytics] error", N);
5405
5434
  }
5406
5435
  };
5407
5436
  h();
5408
- const v = () => {
5437
+ const y = () => {
5409
5438
  document.visibilityState === "visible" && a.current !== "visible" && h(), a.current = document.visibilityState;
5410
5439
  };
5411
- return document.addEventListener("visibilitychange", v), () => {
5412
- o.current && clearInterval(o.current), document.removeEventListener("visibilitychange", v);
5440
+ return document.addEventListener("visibilitychange", y), () => {
5441
+ o.current && clearInterval(o.current), document.removeEventListener("visibilitychange", y);
5413
5442
  };
5414
5443
  }, [r, e, t]);
5415
- }, _c = {
5444
+ }, Tc = {
5416
5445
  customerEmail: "",
5417
5446
  recaptcha: "",
5418
5447
  gateway: "",
@@ -5421,7 +5450,7 @@ const {
5421
5450
  customFields: {},
5422
5451
  discordSocialConnectId: null,
5423
5452
  coupon: null,
5424
- tsId: Tc()
5453
+ tsId: _c()
5425
5454
  };
5426
5455
  let Nt = null;
5427
5456
  const No = localStorage.getItem("token");
@@ -5431,8 +5460,8 @@ if (No)
5431
5460
  } catch {
5432
5461
  Nt = null;
5433
5462
  }
5434
- const a0 = se((e) => ({
5435
- cart: { ..._c, customerEmail: Nt ? Nt.email : "" },
5463
+ const i0 = se((e) => ({
5464
+ cart: { ...Tc, customerEmail: Nt ? Nt.email : "" },
5436
5465
  products: [],
5437
5466
  coupon: null,
5438
5467
  pending: !1,
@@ -5457,17 +5486,17 @@ const a0 = se((e) => ({
5457
5486
  setServiceFee: (t) => e({ serviceFee: t }),
5458
5487
  setReplacementConfig: (t) => e({ replacementConfig: t }),
5459
5488
  setUsePriorityReplacement: (t) => e((n) => ({ cart: { ...n.cart, usePriorityReplacement: t } }))
5460
- })), i0 = se((e) => ({
5489
+ })), s0 = se((e) => ({
5461
5490
  page: 1,
5462
5491
  setPage: (t) => e(() => ({ page: t })),
5463
5492
  resetPage: () => e(() => ({ page: 1 }))
5464
- })), s0 = se((e) => ({
5493
+ })), l0 = se((e) => ({
5465
5494
  discordInfo: null,
5466
5495
  setDiscordInfo: (t) => e(() => ({ discordInfo: t }))
5467
- })), l0 = se((e) => ({
5496
+ })), c0 = se((e) => ({
5468
5497
  subscription: null,
5469
5498
  setSubscription: (t) => e({ subscription: t })
5470
- })), Hn = se((e) => ({
5499
+ })), jn = se((e) => ({
5471
5500
  apiUrls: kc,
5472
5501
  setApiUrls: (t) => e(() => ({ apiUrls: t }))
5473
5502
  })), Pc = se((e) => ({
@@ -5494,14 +5523,14 @@ const a0 = se((e) => ({
5494
5523
  setGeneral: (t) => e(() => ({ general: t })),
5495
5524
  isAntistock: !1,
5496
5525
  setIsAntistock: (t) => e(() => ({ isAntistock: t }))
5497
- })), To = se((e) => ({
5526
+ })), _o = se((e) => ({
5498
5527
  settings: null,
5499
5528
  setSettings: (t) => {
5500
5529
  e(() => ({ settings: t }));
5501
5530
  },
5502
5531
  isLoadingSettings: !0,
5503
5532
  setIsLoadingSettings: (t) => e(() => ({ isLoadingSettings: t }))
5504
- })), mr = se((e, t) => ({
5533
+ })), yr = se((e, t) => ({
5505
5534
  activeBlock: null,
5506
5535
  setActiveBlock: (n) => e(() => ({ activeBlock: n })),
5507
5536
  activeFont: null,
@@ -5866,13 +5895,13 @@ const a0 = se((e) => ({
5866
5895
  })), Ue = se((e) => ({
5867
5896
  notifications: [],
5868
5897
  setNotifications: (t) => e(() => ({ notifications: t }))
5869
- })), c0 = se((e) => ({
5898
+ })), u0 = se((e) => ({
5870
5899
  isOpen: !0,
5871
5900
  setIsOpen: (t) => e(() => ({ isOpen: t }))
5872
5901
  }));
5873
5902
  var Le = [];
5874
- for (var er = 0; er < 256; ++er)
5875
- Le.push((er + 256).toString(16).slice(1));
5903
+ for (var rr = 0; rr < 256; ++rr)
5904
+ Le.push((rr + 256).toString(16).slice(1));
5876
5905
  function Mc(e, t = 0) {
5877
5906
  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();
5878
5907
  }
@@ -5883,12 +5912,12 @@ function Dc() {
5883
5912
  return pn(Ac);
5884
5913
  }
5885
5914
  var Fc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5886
- const _o = {
5915
+ const To = {
5887
5916
  randomUUID: Fc
5888
5917
  };
5889
5918
  function it(e, t, n) {
5890
- if (_o.randomUUID && !e)
5891
- return _o.randomUUID();
5919
+ if (To.randomUUID && !e)
5920
+ return To.randomUUID();
5892
5921
  e = e || {};
5893
5922
  var r = e.random || (e.rng || Dc)();
5894
5923
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Mc(r);
@@ -5913,12 +5942,12 @@ function Ic(e, t) {
5913
5942
  removeItem: (o) => n.removeItem(o)
5914
5943
  };
5915
5944
  }
5916
- const gr = (e) => (t) => {
5945
+ const wr = (e) => (t) => {
5917
5946
  try {
5918
5947
  const n = e(t);
5919
5948
  return n instanceof Promise ? n : {
5920
5949
  then(r) {
5921
- return gr(r)(n);
5950
+ return wr(r)(n);
5922
5951
  },
5923
5952
  catch(r) {
5924
5953
  return this;
@@ -5930,7 +5959,7 @@ const gr = (e) => (t) => {
5930
5959
  return this;
5931
5960
  },
5932
5961
  catch(r) {
5933
- return gr(r)(n);
5962
+ return wr(r)(n);
5934
5963
  }
5935
5964
  };
5936
5965
  }
@@ -5939,8 +5968,8 @@ const gr = (e) => (t) => {
5939
5968
  storage: Ic(() => localStorage),
5940
5969
  partialize: (p) => p,
5941
5970
  version: 0,
5942
- merge: (p, y) => ({
5943
- ...y,
5971
+ merge: (p, v) => ({
5972
+ ...v,
5944
5973
  ...p
5945
5974
  }),
5946
5975
  ...t
@@ -5964,8 +5993,8 @@ const gr = (e) => (t) => {
5964
5993
  version: a.version
5965
5994
  });
5966
5995
  }, d = o.setState;
5967
- o.setState = (p, y) => {
5968
- d(p, y), u();
5996
+ o.setState = (p, v) => {
5997
+ d(p, v), u();
5969
5998
  };
5970
5999
  const h = e(
5971
6000
  (...p) => {
@@ -5975,16 +6004,16 @@ const gr = (e) => (t) => {
5975
6004
  o
5976
6005
  );
5977
6006
  o.getInitialState = () => h;
5978
- let v;
6007
+ let y;
5979
6008
  const m = () => {
5980
- var p, y;
6009
+ var p, v;
5981
6010
  if (!c) return;
5982
6011
  i = !1, s.forEach((b) => {
5983
6012
  var x;
5984
6013
  return b((x = r()) != null ? x : h);
5985
6014
  });
5986
- const k = ((y = a.onRehydrateStorage) == null ? void 0 : y.call(a, (p = r()) != null ? p : h)) || void 0;
5987
- return gr(c.getItem.bind(c))(a.name).then((b) => {
6015
+ const k = ((v = a.onRehydrateStorage) == null ? void 0 : v.call(a, (p = r()) != null ? p : h)) || void 0;
6016
+ return wr(c.getItem.bind(c))(a.name).then((b) => {
5988
6017
  if (b)
5989
6018
  if (typeof b.version == "number" && b.version !== a.version) {
5990
6019
  if (a.migrate)
@@ -6003,14 +6032,14 @@ const gr = (e) => (t) => {
6003
6032
  return [!1, void 0];
6004
6033
  }).then((b) => {
6005
6034
  var x;
6006
- const [T, N] = b;
6007
- if (v = a.merge(
6035
+ const [_, N] = b;
6036
+ if (y = a.merge(
6008
6037
  N,
6009
6038
  (x = r()) != null ? x : h
6010
- ), n(v, !0), T)
6039
+ ), n(y, !0), _)
6011
6040
  return u();
6012
6041
  }).then(() => {
6013
- k == null || k(v, void 0), v = r(), i = !0, l.forEach((b) => b(v));
6042
+ k == null || k(y, void 0), y = r(), i = !0, l.forEach((b) => b(y));
6014
6043
  }).catch((b) => {
6015
6044
  k == null || k(void 0, b);
6016
6045
  });
@@ -6034,9 +6063,9 @@ const gr = (e) => (t) => {
6034
6063
  onFinishHydration: (p) => (l.add(p), () => {
6035
6064
  l.delete(p);
6036
6065
  })
6037
- }, a.skipHydration || m(), v || h;
6038
- }, Un = Bc, Tn = se(
6039
- Un(
6066
+ }, a.skipHydration || m(), y || h;
6067
+ }, $n = Bc, _n = se(
6068
+ $n(
6040
6069
  (e, t) => ({
6041
6070
  pages: null,
6042
6071
  currentPage: "",
@@ -6093,11 +6122,11 @@ const gr = (e) => (t) => {
6093
6122
  }
6094
6123
  }
6095
6124
  )
6096
- ), u0 = se((e) => ({
6125
+ ), d0 = se((e) => ({
6097
6126
  isOpenModal: !1,
6098
6127
  setIsOpenModal: (t) => e(() => ({ isOpenModal: t }))
6099
- })), yr = se(
6100
- Un(
6128
+ })), br = se(
6129
+ $n(
6101
6130
  (e, t) => ({
6102
6131
  header: null,
6103
6132
  blocks: {},
@@ -6141,7 +6170,7 @@ const gr = (e) => (t) => {
6141
6170
  e({ currentBlock: n });
6142
6171
  },
6143
6172
  setPositionBlock: (n, r = !1) => {
6144
- const { blocks: o } = t(), { currentPage: a, pages: i } = Tn.getState();
6173
+ const { blocks: o } = t(), { currentPage: a, pages: i } = _n.getState();
6145
6174
  if (!a || !i || !i[a] || !o[i[a].path]) {
6146
6175
  console.error("Cannot set position: invalid page or block data");
6147
6176
  return;
@@ -6315,8 +6344,8 @@ const gr = (e) => (t) => {
6315
6344
  setBlocks: u,
6316
6345
  setHeader: d,
6317
6346
  setFooter: h,
6318
- setAnnouncement: v
6319
- } = yr.getState(), { themeSettings: m, setThemeSettings: p } = mr.getState(), y = {
6347
+ setAnnouncement: y
6348
+ } = br.getState(), { themeSettings: m, setThemeSettings: p } = yr.getState(), v = {
6320
6349
  themeSettings: JSON.parse(JSON.stringify(m)),
6321
6350
  layers: JSON.parse(JSON.stringify(i)),
6322
6351
  header: JSON.parse(JSON.stringify(s)),
@@ -6326,8 +6355,8 @@ const gr = (e) => (t) => {
6326
6355
  };
6327
6356
  e({
6328
6357
  past: a,
6329
- future: [y, ...r]
6330
- }), o.themeSettings && p(o.themeSettings), o.layers && u(o.layers), o.header && d(o.header, !1), o.footer && h(o.footer, !1), o.announcement && v(o.announcement, !1);
6358
+ future: [v, ...r]
6359
+ }), o.themeSettings && p(o.themeSettings), o.layers && u(o.layers), o.header && d(o.header, !1), o.footer && h(o.footer, !1), o.announcement && y(o.announcement, !1);
6331
6360
  },
6332
6361
  // Повтор (redo)
6333
6362
  redo: () => {
@@ -6342,7 +6371,7 @@ const gr = (e) => (t) => {
6342
6371
  setHeader: c,
6343
6372
  setFooter: u,
6344
6373
  setAnnouncement: d
6345
- } = yr.getState(), { themeSettings: h, setThemeSettings: v } = mr.getState(), m = r[0], p = r.slice(1), y = {
6374
+ } = br.getState(), { themeSettings: h, setThemeSettings: y } = yr.getState(), m = r[0], p = r.slice(1), v = {
6346
6375
  themeSettings: JSON.parse(JSON.stringify(h)),
6347
6376
  layers: JSON.parse(JSON.stringify(o)),
6348
6377
  header: JSON.parse(JSON.stringify(a)),
@@ -6351,12 +6380,12 @@ const gr = (e) => (t) => {
6351
6380
  // settings: JSON.parse(JSON.stringify(settings)),
6352
6381
  };
6353
6382
  e({
6354
- past: [...n, y],
6383
+ past: [...n, v],
6355
6384
  future: p
6356
- }), m.themeSettings && v(m.themeSettings), m.layers && l(m.layers), m.header && c(m.header, !1), m.footer && u(m.footer, !1), m.announcement && d(m.announcement, !1);
6385
+ }), m.themeSettings && y(m.themeSettings), m.layers && l(m.layers), m.header && c(m.header, !1), m.footer && u(m.footer, !1), m.announcement && d(m.announcement, !1);
6357
6386
  }
6358
6387
  })), Hc = se(
6359
- Un(
6388
+ $n(
6360
6389
  (e) => ({
6361
6390
  onPreview: !0,
6362
6391
  setOnPreview: (t) => e(() => ({ onPreview: t })),
@@ -6393,7 +6422,7 @@ const gr = (e) => (t) => {
6393
6422
  icon: "Gear",
6394
6423
  name: "Settings"
6395
6424
  }
6396
- ], d0 = [
6425
+ ], f0 = [
6397
6426
  {
6398
6427
  icon: "Desktop",
6399
6428
  value: "desktop"
@@ -6406,7 +6435,7 @@ const gr = (e) => (t) => {
6406
6435
  icon: "DeviceMobileCamera",
6407
6436
  value: "mobile"
6408
6437
  }
6409
- ], f0 = [
6438
+ ], h0 = [
6410
6439
  {
6411
6440
  icon: "PaintBrushBroad",
6412
6441
  name: "Colors"
@@ -6427,7 +6456,7 @@ const gr = (e) => (t) => {
6427
6456
  icon: "Textbox",
6428
6457
  name: "Inputs"
6429
6458
  }
6430
- ], h0 = [12, 14, 16, 18, 20, 24, 28, 32, 40, 48].map((e) => String(e)), p0 = [
6459
+ ], p0 = [12, 14, 16, 18, 20, 24, 28, 32, 40, 48].map((e) => String(e)), m0 = [
6431
6460
  "/",
6432
6461
  "/reviews",
6433
6462
  "/faqs",
@@ -6435,7 +6464,7 @@ const gr = (e) => (t) => {
6435
6464
  "/products",
6436
6465
  "/ticket",
6437
6466
  "/login"
6438
- ], Vt = {
6467
+ ], jt = {
6439
6468
  "/": {
6440
6469
  path: "/",
6441
6470
  name: "Home",
@@ -6506,7 +6535,7 @@ const gr = (e) => (t) => {
6506
6535
  },
6507
6536
  visibility: "public"
6508
6537
  }
6509
- }, m0 = typeof window < "u" && (window.location.hostname.includes("localhost") || window.location.hostname.includes("192") || window.location.hostname.includes("local-rst.sp-internal.work")), g0 = {
6538
+ }, g0 = typeof window < "u" && (window.location.hostname.includes("localhost") || window.location.hostname.includes("192") || window.location.hostname.includes("local-rst.sp-internal.work")), v0 = {
6510
6539
  None: "var(--radius-none)",
6511
6540
  4: "var(--radius-xs)",
6512
6541
  8: "var(--radius-sm)",
@@ -6519,12 +6548,12 @@ const gr = (e) => (t) => {
6519
6548
  1: "var(--border-sm)",
6520
6549
  2: "var(--border-md)",
6521
6550
  4: "var(--border-lg)"
6522
- }, v0 = {
6551
+ }, w0 = {
6523
6552
  "1:1": "1:1",
6524
6553
  "4:3": "4:3",
6525
6554
  "16:9": "16:9",
6526
6555
  "9:16": "9:16"
6527
- }, w0 = [
6556
+ }, b0 = [
6528
6557
  {
6529
6558
  value: "4:3",
6530
6559
  addon: /* @__PURE__ */ M(
@@ -6629,7 +6658,7 @@ const gr = (e) => (t) => {
6629
6658
  }
6630
6659
  )
6631
6660
  }
6632
- ], b0 = {
6661
+ ], S0 = {
6633
6662
  h1: "Heading 1",
6634
6663
  h2: "Heading 2",
6635
6664
  h3: "Heading 3",
@@ -6640,7 +6669,7 @@ const gr = (e) => (t) => {
6640
6669
  lg: "Paragraph Large",
6641
6670
  md: "Paragraph Medium",
6642
6671
  sm: "Paragraph Small"
6643
- }, S0 = se((e) => ({
6672
+ }, C0 = se((e) => ({
6644
6673
  activeBlock: Uc[0],
6645
6674
  setActiveBlock: (t) => e(() => ({ activeBlock: t }))
6646
6675
  })), Vc = se((e) => ({
@@ -6650,7 +6679,7 @@ const gr = (e) => (t) => {
6650
6679
  setOnChange: (t) => e(() => ({ onChange: t })),
6651
6680
  tip: "",
6652
6681
  setTip: (t) => e(() => ({ tip: t }))
6653
- })), C0 = se((e) => ({
6682
+ })), E0 = se((e) => ({
6654
6683
  error: null,
6655
6684
  setError: (t) => e(() => ({ error: t }))
6656
6685
  })), jc = se((e) => ({
@@ -6661,7 +6690,7 @@ const gr = (e) => (t) => {
6661
6690
  setDescription: (t) => e(() => ({ description: t })),
6662
6691
  setOnConfirm: (t) => e(() => ({ onConfirm: t }))
6663
6692
  }));
6664
- var E0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6693
+ var R0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6665
6694
  function $c(e) {
6666
6695
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6667
6696
  }
@@ -6702,7 +6731,7 @@ var wa = { exports: {} };
6702
6731
  })();
6703
6732
  })(wa);
6704
6733
  var zc = wa.exports;
6705
- const Ve = /* @__PURE__ */ $c(zc), R0 = se((e) => ({
6734
+ const Ve = /* @__PURE__ */ $c(zc), k0 = se((e) => ({
6706
6735
  currentDevice: {
6707
6736
  icon: "Desktop",
6708
6737
  value: "desktop"
@@ -6758,7 +6787,7 @@ const ba = se((e, t) => ({
6758
6787
  e({ hoverBlockTopPosition: n });
6759
6788
  }
6760
6789
  })), Jc = se(
6761
- Un(
6790
+ $n(
6762
6791
  (e) => ({
6763
6792
  fonts: [],
6764
6793
  setFonts: (t) => e(() => ({ fonts: t }))
@@ -6843,15 +6872,15 @@ const ba = se((e, t) => ({
6843
6872
  setShowTooltip: (t) => e({ showTooltip: t })
6844
6873
  })), Zc = "_loader_jr7a4_1", qc = {
6845
6874
  loader: Zc
6846
- }, k0 = () => /* @__PURE__ */ M("div", { className: qc.loader }), Kc = "_tooltip_4hruj_1", Gc = {
6875
+ }, x0 = () => /* @__PURE__ */ M("div", { className: qc.loader }), Kc = "_tooltip_4hruj_1", Gc = {
6847
6876
  tooltip: Kc
6848
- }, x0 = (e) => {
6877
+ }, L0 = (e) => {
6849
6878
  const { text: t } = e, { setShowTooltip: n } = Wc();
6850
- return Te.useEffect(() => (n(!0), () => {
6879
+ return _e.useEffect(() => (n(!0), () => {
6851
6880
  n(!1);
6852
6881
  }), []), /* @__PURE__ */ M("div", { className: Gc.tooltip, children: t });
6853
- }, L0 = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
6854
- function N0(e, t) {
6882
+ }, N0 = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
6883
+ function _0(e, t) {
6855
6884
  if (!t || !t[e])
6856
6885
  return "unknown name";
6857
6886
  const n = new t[e]();
@@ -6859,8 +6888,8 @@ function N0(e, t) {
6859
6888
  }
6860
6889
  const Yc = (e, t, n, r, o, a, i) => {
6861
6890
  const s = e.currentTarget.getBoundingClientRect(), l = window.innerHeight - s.bottom, c = s.top, u = window.innerWidth - s.right, d = s.left;
6862
- let h, v;
6863
- return h = s.bottom + r + window.scrollY, v = s.left, (l < t || l < o) && (c >= t + i ? h = s.top - t - r + window.scrollY : h = window.scrollY + i), h - window.scrollY < i && (h = window.scrollY + i), (u < n || u < a) && (d >= n ? v = s.right - n : v = (window.innerWidth - n) / 2), v < s.right + a && (v = s.right + a), v < s.right && v + n > s.left && h < s.bottom && h + t > s.top && (u >= n + a ? v = s.right + r + a : l >= t ? h = s.bottom + r + window.scrollY : (h = window.scrollY + i, v = (window.innerWidth - n) / 2)), { top: h, left: v };
6891
+ let h, y;
6892
+ return h = s.bottom + r + window.scrollY, y = s.left, (l < t || l < o) && (c >= t + i ? h = s.top - t - r + window.scrollY : h = window.scrollY + i), h - window.scrollY < i && (h = window.scrollY + i), (u < n || u < a) && (d >= n ? y = s.right - n : y = (window.innerWidth - n) / 2), y < s.right + a && (y = s.right + a), y < s.right && y + n > s.left && h < s.bottom && h + t > s.top && (u >= n + a ? y = s.right + r + a : l >= t ? h = s.bottom + r + window.scrollY : (h = window.scrollY + i, y = (window.innerWidth - n) / 2)), { top: h, left: y };
6864
6893
  }, Xc = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.25%2015.45V8.55C20.25%206.86984%2020.25%206.02976%2019.923%205.38803C19.6354%204.82354%2019.1765%204.3646%2018.612%204.07698C17.9702%203.75%2017.1302%203.75%2015.45%203.75H8.55C6.86984%203.75%206.02976%203.75%205.38803%204.07698C4.82354%204.3646%204.3646%204.82354%204.07698%205.38803C3.75%206.02976%203.75%206.86984%203.75%208.55V15.45C3.75%2017.1302%203.75%2017.9702%204.07698%2018.612C4.3646%2019.1765%204.82354%2019.6354%205.38803%2019.923C6.02976%2020.25%206.86984%2020.25%208.55%2020.25H15.45C17.1302%2020.25%2017.9702%2020.25%2018.612%2019.923C19.1765%2019.6354%2019.6354%2019.1765%2019.923%2018.612C20.25%2017.9702%2020.25%2017.1302%2020.25%2015.45Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Qc = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.0002%2012V20.5M12.0002%2012L4.5%207.78125M12.0002%2012L19.2627%207.91474M20.25%209.11392V14.8861C20.25%2015.9699%2019.6654%2016.9695%2018.7208%2017.5008L13.4708%2020.4539C12.5575%2020.9676%2011.4425%2020.9676%2010.5292%2020.4539L5.27922%2017.5008C4.33459%2016.9695%203.75%2015.9699%203.75%2014.8861V9.11392C3.75%208.0301%204.33459%207.03055%205.27922%206.49919L10.5292%203.54607C11.4425%203.03237%2012.5575%203.03237%2013.4708%203.54607L18.7208%206.4992C19.6654%207.03055%2020.25%208.0301%2020.25%209.11392Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", eu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.25%2020.25H6.75C5.09315%2020.25%203.75%2018.9069%203.75%2017.25V15.75M15.75%2020.25H17.25C18.9069%2020.25%2020.25%2018.9069%2020.25%2017.25V15.75M3.75%208.25V6.75C3.75%205.09315%205.09315%203.75%206.75%203.75H8.25M15.75%203.75H17.25C18.9069%203.75%2020.25%205.09315%2020.25%206.75V8.25M15.25%2010.3571L12%2011.9999M12%2011.9999L8.75%2010.3571M12%2011.9999V15.2856M11.0077%208.28125L9.25772%209.28125C8.63457%209.63733%208.25%2010.3%208.25%2011.0177V12.9822C8.25%2013.6999%208.63457%2014.3626%209.25772%2014.7186L11.0077%2015.7186C11.6226%2016.07%2012.3774%2016.07%2012.9923%2015.7186L14.7423%2014.7186C15.3654%2014.3626%2015.75%2013.6999%2015.75%2012.9822V11.0177C15.75%2010.3%2015.3654%209.63733%2014.7423%209.28125L12.9923%208.28125C12.3774%207.9299%2011.6226%207.9299%2011.0077%208.28125Z'%20stroke='%23252525'%20stroke-width='1.40625'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", tu = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.125%203.125H16.875'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.9167%205.625C12.1113%205.625%2011.4583%206.27792%2011.4583%207.08333V12.0833C11.4583%2012.8887%2012.1113%2013.5417%2012.9167%2013.5417C13.7221%2013.5417%2014.375%2012.8887%2014.375%2012.0833V7.08333C14.375%206.27792%2013.7221%205.625%2012.9167%205.625Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08333%205.625C6.27792%205.625%205.625%206.27792%205.625%207.08333V15.4167C5.625%2016.2221%206.27792%2016.875%207.08333%2016.875C7.88875%2016.875%208.54167%2016.2221%208.54167%2015.4167V7.08333C8.54167%206.27792%207.88875%205.625%207.08333%205.625Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", nu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.1073%2017.1577C17.1073%2018.8655%2015.7213%2020.25%2014.0116%2020.25C12.3019%2020.25%2010.9159%2018.8655%2010.9159%2017.1577C10.9159%2015.4499%2012.3019%2014.0654%2014.0116%2014.0654C15.7213%2014.0654%2017.1073%2015.4499%2017.1073%2017.1577Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.99145%206.98598L10.4681%2011.5764L3.75%2014.0189L4.99145%206.98598Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.0106%204.46532C14.1536%203.9321%2014.7017%203.61567%2015.235%203.75841L19.2835%204.842C19.8172%204.98485%2020.1339%205.53345%2019.9908%206.06708L18.9065%2010.1093C18.7635%2010.6425%2018.2154%2010.9589%2017.6821%2010.8162L13.6336%209.73258C13.0999%209.58973%2012.7832%209.04113%2012.9263%208.50749L14.0106%204.46532Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e", ru = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.25%2014.75H10C10%2014.3358%209.66421%2014%209.25%2014V14.75ZM3.75%2020.25H3V21H3.75V20.25ZM14.75%209.25H15.5C15.5%208.83579%2015.1642%208.5%2014.75%208.5V9.25ZM20.25%2020.25V21H21V20.25H20.25ZM1.75%2019.5C1.33579%2019.5%201%2019.8358%201%2020.25C1%2020.6642%201.33579%2021%201.75%2021V19.5ZM22.25%2021C22.6642%2021%2023%2020.6642%2023%2020.25C23%2019.8358%2022.6642%2019.5%2022.25%2019.5V21ZM5.25%2015.5H9.25V14H5.25V15.5ZM8.5%2014.75V20.25H10V14.75H8.5ZM9.25%2019.5H3.75V21H9.25V19.5ZM4.5%2020.25V16.25H3V20.25H4.5ZM5.25%2014C4.00736%2014%203%2015.0074%203%2016.25H4.5C4.5%2015.8358%204.83579%2015.5%205.25%2015.5V14ZM10.75%2010H14.75V8.5H10.75V10ZM14%209.25V20.25H15.5V9.25H14ZM14.75%2019.5H9.25V21H14.75V19.5ZM10%2020.25V10.75H8.5V20.25H10ZM10.75%208.5C9.50736%208.5%208.5%209.50736%208.5%2010.75H10C10%2010.3358%2010.3358%2010%2010.75%2010V8.5ZM16.25%204.5H18.75V3H16.25V4.5ZM19.5%205.25V20.25H21V5.25H19.5ZM20.25%2019.5H14.75V21H20.25V19.5ZM15.5%2020.25V5.25H14V20.25H15.5ZM18.75%204.5C19.1642%204.5%2019.5%204.83579%2019.5%205.25H21C21%204.00736%2019.9926%203%2018.75%203V4.5ZM16.25%203C15.0074%203%2014%204.00736%2014%205.25H15.5C15.5%204.83579%2015.8358%204.5%2016.25%204.5V3ZM1.75%2021H22.25V19.5H1.75V21Z'%20fill='%23252525'/%3e%3c/svg%3e", ou = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2014.2105L6.84488%2012.0821C7.66137%2011.5378%208.75215%2011.6663%209.41987%2012.3853C10.9123%2013.9926%2012.6426%2015.4538%2015%2015.4538C17.1727%2015.4538%2018.6125%2014.6485%2020%2013.261M6.75%2020.25H17.25C18.9069%2020.25%2020.25%2018.9069%2020.25%2017.25V6.75C20.25%205.09315%2018.9069%203.75%2017.25%203.75H6.75C5.09315%203.75%203.75%205.09315%203.75%206.75V17.25C3.75%2018.9069%205.09315%2020.25%206.75%2020.25ZM17.25%208.75C17.25%209.85457%2016.3546%2010.75%2015.25%2010.75C14.1454%2010.75%2013.25%209.85457%2013.25%208.75C13.25%207.64543%2014.1454%206.75%2015.25%206.75C16.3546%206.75%2017.25%207.64543%2017.25%208.75Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", au = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.252%2019.25H6.74803C5.26465%2019.25%204.29985%2017.6884%204.96324%2016.3611L10.2152%205.85345C10.9506%204.38218%2013.0494%204.38218%2013.7848%205.85345L19.0368%2016.3611C19.7001%2017.6884%2018.7354%2019.25%2017.252%2019.25Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e", iu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202.75V4.5M16.9069%205.09326L15.5962%206.40392M6.40381%2015.5962L5.09315%2016.9069M4.5%2011H2.75M6.40381%206.40381L5.09315%205.09315M14.1323%2020.999L10.5777%2011.3226C10.3542%2010.7143%2010.9552%2010.1281%2011.5577%2010.3666L21.0397%2014.1199C21.4283%2014.2737%2021.4679%2014.8081%2021.1062%2015.0175L17.4231%2017.1498C17.3097%2017.2155%2017.2155%2017.3097%2017.1498%2017.4231L15.0343%2021.0771C14.822%2021.4438%2014.2784%2021.3967%2014.1323%2020.999Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", su = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.38803%2019.923L5.72852%2019.2548H5.72852L5.38803%2019.923ZM4.07698%2018.612L3.40873%2018.9525H3.40873L4.07698%2018.612ZM19.923%2018.612L19.2548%2018.2715V18.2715L19.923%2018.612ZM18.612%2019.923L18.2715%2019.2548H18.2715L18.612%2019.923ZM19.923%205.38803L19.2548%205.72852V5.72852L19.923%205.38803ZM18.612%204.07698L18.9525%203.40873V3.40873L18.612%204.07698ZM4.07698%205.38803L4.74524%205.72852L4.07698%205.38803ZM5.38803%204.07698L5.72852%204.74524L5.38803%204.07698ZM19.5%208.55V15.45H21V8.55H19.5ZM15.45%2019.5H8.55V21H15.45V19.5ZM4.5%2015.45V8.55H3V15.45H4.5ZM8.55%204.5H15.45V3H8.55V4.5ZM8.55%2019.5C7.69755%2019.5%207.10331%2019.4994%206.64068%2019.4616C6.1868%2019.4245%205.92604%2019.3554%205.72852%2019.2548L5.04754%2020.5913C5.49175%2020.8176%205.97189%2020.912%206.51853%2020.9566C7.05641%2021.0006%207.7223%2021%208.55%2021V19.5ZM3%2015.45C3%2016.2777%202.99942%2016.9436%203.04336%2017.4815C3.08803%2018.0281%203.18238%2018.5082%203.40873%2018.9525L4.74524%2018.2715C4.6446%2018.074%204.57546%2017.8132%204.53838%2017.3593C4.50058%2016.8967%204.5%2016.3025%204.5%2015.45H3ZM5.72852%2019.2548C5.30516%2019.039%204.96095%2018.6948%204.74524%2018.2715L3.40873%2018.9525C3.76825%2019.6581%204.34193%2020.2317%205.04754%2020.5913L5.72852%2019.2548ZM19.5%2015.45C19.5%2016.3025%2019.4994%2016.8967%2019.4616%2017.3593C19.4245%2017.8132%2019.3554%2018.074%2019.2548%2018.2715L20.5913%2018.9525C20.8176%2018.5082%2020.912%2018.0281%2020.9566%2017.4815C21.0006%2016.9436%2021%2016.2777%2021%2015.45H19.5ZM15.45%2021C16.2777%2021%2016.9436%2021.0006%2017.4815%2020.9566C18.0281%2020.912%2018.5082%2020.8176%2018.9525%2020.5913L18.2715%2019.2548C18.074%2019.3554%2017.8132%2019.4245%2017.3593%2019.4616C16.8967%2019.4994%2016.3025%2019.5%2015.45%2019.5V21ZM19.2548%2018.2715C19.0391%2018.6948%2018.6948%2019.039%2018.2715%2019.2548L18.9525%2020.5913C19.6581%2020.2317%2020.2318%2019.6581%2020.5913%2018.9525L19.2548%2018.2715ZM21%208.55C21%207.7223%2021.0006%207.05641%2020.9566%206.51853C20.912%205.97189%2020.8176%205.49175%2020.5913%205.04754L19.2548%205.72852C19.3554%205.92604%2019.4245%206.1868%2019.4616%206.64068C19.4994%207.10331%2019.5%207.69755%2019.5%208.55H21ZM15.45%204.5C16.3025%204.5%2016.8967%204.50058%2017.3593%204.53838C17.8132%204.57546%2018.074%204.6446%2018.2715%204.74524L18.9525%203.40873C18.5082%203.18238%2018.0281%203.08803%2017.4815%203.04336C16.9436%202.99942%2016.2777%203%2015.45%203V4.5ZM20.5913%205.04754C20.2318%204.34193%2019.6581%203.76825%2018.9525%203.40873L18.2715%204.74524C18.6948%204.96095%2019.0391%205.30516%2019.2548%205.72852L20.5913%205.04754ZM4.5%208.55C4.5%207.69755%204.50058%207.10331%204.53838%206.64068C4.57546%206.1868%204.6446%205.92604%204.74524%205.72852L3.40873%205.04754C3.18238%205.49175%203.08803%205.97189%203.04336%206.51853C2.99942%207.05641%203%207.7223%203%208.55H4.5ZM8.55%203C7.7223%203%207.05641%202.99942%206.51853%203.04336C5.97189%203.08803%205.49175%203.18238%205.04754%203.40873L5.72852%204.74524C5.92604%204.6446%206.1868%204.57546%206.64068%204.53838C7.10331%204.50058%207.69755%204.5%208.55%204.5V3ZM4.74524%205.72852C4.96095%205.30516%205.30516%204.96095%205.72852%204.74524L5.04754%203.40873C4.34193%203.76825%203.76825%204.34193%203.40873%205.04754L4.74524%205.72852Z'%20fill='%23252525'/%3e%3cpath%20d='M20.25%2015H21V13.5H20.25V15ZM3.75%2013.5H3V15H3.75V13.5ZM3.75%2015H20.25V13.5H3.75V15Z'%20fill='%23252525'/%3e%3c/svg%3e", lu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.0858%202.32272C11.4533%201.55909%2012.5467%201.55909%2012.9142%202.32272L15.0872%206.83907C15.2351%207.14651%2015.5293%207.35876%2015.8692%207.40319L20.8676%208.05664C21.7134%208.16721%2022.0517%209.20388%2021.4322%209.78704L17.779%2013.2263C17.5295%2013.4612%2017.4167%2013.8058%2017.4795%2014.1417L18.3971%2019.0563C18.5526%2019.8892%2017.6676%2020.5294%2016.9183%2020.1261L12.4825%2017.7385C12.1815%2017.5764%2011.8185%2017.5764%2011.5175%2017.7385L7.08174%2020.1261C6.33244%2020.5294%205.44743%2019.8892%205.60294%2019.0563L6.52054%2014.1417C6.58325%2013.8058%206.47048%2013.4612%206.22097%2013.2263L2.56776%209.78704C1.94833%209.20388%202.28661%208.16721%203.13241%208.05664L8.13078%207.40319C8.47066%207.35876%208.7649%207.14651%208.91282%206.83907L11.0858%202.32272Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", cu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.25%204.75H5.75C4.09315%204.75%202.75%206.09315%202.75%207.75V8.25M17.75%204.75H18.25C19.9069%204.75%2021.25%206.09315%2021.25%207.75V8.25M21.25%2015.75V16.25C21.25%2017.9069%2019.9069%2019.25%2018.25%2019.25H17.75M6.25%2019.25H5.75C4.09315%2019.25%202.75%2017.9069%202.75%2016.25V15.75'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.75%209.75H16.25'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.75%2014.25H14.25'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", uu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.25%2010.75V6.75C20.25%205.09315%2018.9069%203.75%2017.25%203.75H6.75C5.09315%203.75%203.75%205.09315%203.75%206.75V17.25C3.75%2018.9069%205.09315%2020.25%206.75%2020.25H10.75M14.1879%2020.8366L12.0869%2013.0056C11.9372%2012.4478%2012.4478%2011.9372%2013.0056%2012.0869L20.8366%2014.1879C21.2665%2014.3032%2021.3428%2014.8805%2020.9576%2015.1035L17.4231%2017.1498C17.3097%2017.2155%2017.2155%2017.3097%2017.1498%2017.4231L15.1035%2020.9576C14.8805%2021.3428%2014.3032%2021.2665%2014.1879%2020.8366Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", du = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.125%2016.875H16.875'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.9167%206.45833C12.1113%206.45833%2011.4583%207.11125%2011.4583%207.91667V12.9167C11.4583%2013.7221%2012.1113%2014.375%2012.9167%2014.375C13.7221%2014.375%2014.375%2013.7221%2014.375%2012.9167V7.91667C14.375%207.11125%2013.7221%206.45833%2012.9167%206.45833Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08333%203.125C6.27792%203.125%205.625%203.77792%205.625%204.58333V12.9167C5.625%2013.7221%206.27792%2014.375%207.08333%2014.375C7.88875%2014.375%208.54167%2013.7221%208.54167%2012.9167V4.58333C8.54167%203.77792%207.88875%203.125%207.08333%203.125Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", fu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%2018.25H7.25M3.75%2012H9.25M3.75%205.75H20.25M17%2010.5L18.5%2013.5L21.5%2015L18.5%2016.5L17%2019.5L15.5%2016.5L12.5%2015L15.5%2013.5L17%2010.5Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", hu = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.9016%209.48786L10.3899%203.2788C8.39443%201.97623%205.75%203.40798%205.75%205.79094V18.2091C5.75%2020.592%208.39442%2022.0238%2010.3899%2020.7212L19.9016%2014.5121C21.7151%2013.3283%2021.7151%2010.6717%2019.9016%209.48786Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/svg%3e", T0 = {
6865
6894
  Header: tu,
6866
6895
  Announcement: fu,
@@ -6878,15 +6907,15 @@ const Yc = (e, t, n, r, o, a, i) => {
6878
6907
  ContactUs: cu,
6879
6908
  Footer: du,
6880
6909
  Video: hu
6881
- }, pu = "_wrapper_1k1cr_1", mu = "_submodal_1k1cr_14", vr = {
6910
+ }, pu = "_wrapper_1k1cr_1", mu = "_submodal_1k1cr_14", Sr = {
6882
6911
  wrapper: pu,
6883
6912
  submodal: mu
6884
- }, _0 = ({ children: e, positionTop: t, positionLeft: n }) => {
6913
+ }, P0 = ({ children: e, positionTop: t, positionLeft: n }) => {
6885
6914
  const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } = ba();
6886
6915
  return r ? /* @__PURE__ */ M(
6887
6916
  "div",
6888
6917
  {
6889
- className: vr.wrapper,
6918
+ className: Sr.wrapper,
6890
6919
  style: t ? {
6891
6920
  top: t,
6892
6921
  left: n || void 0
@@ -6900,12 +6929,12 @@ const Yc = (e, t, n, r, o, a, i) => {
6900
6929
  children: e
6901
6930
  }
6902
6931
  ) : null;
6903
- }, P0 = ({ children: e }) => {
6932
+ }, O0 = ({ children: e }) => {
6904
6933
  const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } = ba();
6905
6934
  return t ? /* @__PURE__ */ M(
6906
6935
  "div",
6907
6936
  {
6908
- className: Ve(vr.wrapper, vr.submodal),
6937
+ className: Ve(Sr.wrapper, Sr.submodal),
6909
6938
  onMouseEnter: () => {
6910
6939
  r(), o(!0);
6911
6940
  },
@@ -6915,10 +6944,10 @@ const Yc = (e, t, n, r, o, a, i) => {
6915
6944
  children: e
6916
6945
  }
6917
6946
  ) : null;
6918
- }, gu = "_applyButton_1a9kh_2", yu = "_content_1a9kh_7", vu = "_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", Tu = "_modal_1a9kh_160", _u = "_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 = {
6947
+ }, 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 = {
6919
6948
  applyButton: gu,
6920
- content: yu,
6921
- title: vu,
6949
+ content: vu,
6950
+ title: yu,
6922
6951
  label: wu,
6923
6952
  colorValue: bu,
6924
6953
  colorMap: Su,
@@ -6929,8 +6958,8 @@ const Yc = (e, t, n, r, o, a, i) => {
6929
6958
  name: xu,
6930
6959
  secondary: Lu,
6931
6960
  input: Nu,
6932
- modal: Tu,
6933
- alphaSlider: _u,
6961
+ modal: _u,
6962
+ alphaSlider: Tu,
6934
6963
  alphaBackground: Pu,
6935
6964
  alphaGradient: Ou,
6936
6965
  chargeTypes: Mu,
@@ -6947,7 +6976,7 @@ const Yc = (e, t, n, r, o, a, i) => {
6947
6976
  colorsWrapper: zu,
6948
6977
  colors: Ju
6949
6978
  };
6950
- function tr(e) {
6979
+ function or(e) {
6951
6980
  return (e.includes("linear-gradient") || e.includes("radial-gradient")) && /^linear-gradient\(\d+deg,\s*#[A-Fa-f0-9]{8}\s+\d+%,\s*#[A-Fa-f0-9]{8}\s+\d+%\)$/.test(e) ? !0 : /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e);
6952
6981
  }
6953
6982
  const Wu = (e) => {
@@ -6958,8 +6987,8 @@ const Wu = (e) => {
6958
6987
  labelStyle: o = "primary",
6959
6988
  isGradientActive: a = !0,
6960
6989
  isBlockSettings: i
6961
- } = e, [s, l] = Te.useState(t);
6962
- Te.useEffect(() => {
6990
+ } = e, [s, l] = _e.useState(t);
6991
+ _e.useEffect(() => {
6963
6992
  l(t);
6964
6993
  }, [t]);
6965
6994
  const {
@@ -6967,15 +6996,15 @@ const Wu = (e) => {
6967
6996
  setModalPosition: u,
6968
6997
  setInitialColor: d,
6969
6998
  setShowModal: h,
6970
- setUpdate: v,
6999
+ setUpdate: y,
6971
7000
  setColor: m,
6972
7001
  setColorChange: p,
6973
- setIsGradientActive: y,
7002
+ setIsGradientActive: v,
6974
7003
  colorChange: k
6975
7004
  } = Sa();
6976
- Te.useEffect(() => {
7005
+ _e.useEffect(() => {
6977
7006
  const N = () => {
6978
- h(!1), c(null), d(t), v(() => {
7007
+ h(!1), c(null), d(t), y(() => {
6979
7008
  }), m(t), p(() => {
6980
7009
  });
6981
7010
  };
@@ -6984,7 +7013,7 @@ const Wu = (e) => {
6984
7013
  };
6985
7014
  }, [t]);
6986
7015
  const b = (N) => {
6987
- N.stopPropagation(), h(!0), p(l), v(n), d(t), m(s), y(a);
7016
+ N.stopPropagation(), h(!0), p(l), y(n), d(t), m(s), v(a);
6988
7017
  const { top: U, left: w } = Yc(N, 600, 288, 10, 20, 230, 80);
6989
7018
  u({
6990
7019
  top: U,
@@ -6992,9 +7021,9 @@ const Wu = (e) => {
6992
7021
  });
6993
7022
  }, x = (N) => {
6994
7023
  const U = N.target.value;
6995
- l(U), tr(U) && (n(U), m(U), p(k));
6996
- }, T = () => {
6997
- tr(s) || l(t);
7024
+ l(U), or(U) && (n(U), m(U), p(k));
7025
+ }, _ = () => {
7026
+ or(s) || l(t);
6998
7027
  };
6999
7028
  return /* @__PURE__ */ Re("div", { className: Z.content, children: [
7000
7029
  /* @__PURE__ */ M(
@@ -7019,7 +7048,7 @@ const Wu = (e) => {
7019
7048
  style: {
7020
7049
  // Если текущая строка – валидный цвет, показываем его
7021
7050
  // иначе возвращаемся к initialColor
7022
- background: tr(s) ? s : t
7051
+ background: or(s) ? s : t
7023
7052
  },
7024
7053
  onClick: i ? void 0 : b
7025
7054
  }
@@ -7030,7 +7059,7 @@ const Wu = (e) => {
7030
7059
  type: "text",
7031
7060
  value: s.includes("linear-gradient") ? s : s.toUpperCase(),
7032
7061
  onChange: x,
7033
- onBlur: T,
7062
+ onBlur: _,
7034
7063
  className: Z.input,
7035
7064
  style: {
7036
7065
  textTransform: s.includes("linear-gradient") ? "none" : "uppercase"
@@ -7041,7 +7070,7 @@ const Wu = (e) => {
7041
7070
  }
7042
7071
  )
7043
7072
  ] });
7044
- }, O0 = () => {
7073
+ }, M0 = () => {
7045
7074
  const {
7046
7075
  modalPosition: e,
7047
7076
  color: t,
@@ -7056,18 +7085,18 @@ const Wu = (e) => {
7056
7085
  setHue: u,
7057
7086
  setSaturation: d,
7058
7087
  setBrightness: h,
7059
- setAlpha: v,
7088
+ setAlpha: y,
7060
7089
  colorChange: m,
7061
7090
  setColor: p,
7062
- update: y,
7091
+ update: v,
7063
7092
  isGradient: k,
7064
7093
  setIsGradient: b,
7065
7094
  gradientDirection: x,
7066
- setGradientDirection: T,
7095
+ setGradientDirection: _,
7067
7096
  hue2: N,
7068
7097
  saturation2: U,
7069
7098
  brightness2: w,
7070
- alpha2: _,
7099
+ alpha2: T,
7071
7100
  setHue2: K,
7072
7101
  setSaturation2: B,
7073
7102
  setBrightness2: ae,
@@ -7075,7 +7104,7 @@ const Wu = (e) => {
7075
7104
  activeColorIndex: te,
7076
7105
  setActiveColorIndex: he,
7077
7106
  isGradientActive: Oe,
7078
- isBlockSettings: _e
7107
+ isBlockSettings: Te
7079
7108
  } = Sa(), Ze = (j, V, ne) => {
7080
7109
  V /= 100, ne /= 100;
7081
7110
  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));
@@ -7086,8 +7115,8 @@ const Wu = (e) => {
7086
7115
  }, Se = (j, V, ne, z) => {
7087
7116
  if (k)
7088
7117
  if (te === 1) {
7089
- u(j), d(V), h(ne), v(z);
7090
- const G = ke(j, V, ne, z), W = ke(N, U, w, _), q = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7118
+ u(j), d(V), h(ne), y(z);
7119
+ const G = ke(j, V, ne, z), W = ke(N, U, w, T), q = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7091
7120
  m(q), p(q);
7092
7121
  } else {
7093
7122
  K(j), B(V), ae(ne), ee(z);
@@ -7098,21 +7127,21 @@ const Wu = (e) => {
7098
7127
  const G = ke(j, V, ne, z);
7099
7128
  m(G), p(G);
7100
7129
  }
7101
- }, we = (j, V, ne) => {
7130
+ }, be = (j, V, ne) => {
7102
7131
  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));
7103
- k ? te === 1 ? (d(W), h(re), Se(o, W, re, s)) : (B(W), ae(re), Se(N, W, re, _)) : (d(W), h(re), Se(o, W, re, s));
7132
+ 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));
7104
7133
  }, Pe = (j) => {
7105
7134
  const { offsetX: V, offsetY: ne } = j.nativeEvent;
7106
- c(!0), we(V, ne, j.currentTarget);
7135
+ c(!0), be(V, ne, j.currentTarget);
7107
7136
  }, He = (j) => {
7108
7137
  if (l) {
7109
7138
  const V = document.querySelector(`.${Z.colorMap}`), { left: ne, top: z } = V.getBoundingClientRect(), G = j.clientX - ne, W = j.clientY - z;
7110
- we(G, W, V);
7139
+ be(G, W, V);
7111
7140
  }
7112
7141
  }, ie = () => {
7113
7142
  c(!1);
7114
7143
  };
7115
- Te.useEffect(() => {
7144
+ _e.useEffect(() => {
7116
7145
  function j(z) {
7117
7146
  const G = /linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/, W = z.match(G);
7118
7147
  if (W) {
@@ -7122,26 +7151,26 @@ const Wu = (e) => {
7122
7151
  return null;
7123
7152
  }
7124
7153
  function V(z) {
7125
- const G = parseInt(z.slice(1, 3), 16), W = parseInt(z.slice(3, 5), 16), re = parseInt(z.slice(5, 7), 16), q = parseInt(z.slice(7, 9), 16) / 255 * 100, { h: ue, s: et, b: ht } = ne(G, W, re);
7126
- return { h: ue, s: et, b: ht, a: q };
7154
+ const G = parseInt(z.slice(1, 3), 16), W = parseInt(z.slice(3, 5), 16), re = parseInt(z.slice(5, 7), 16), q = parseInt(z.slice(7, 9), 16) / 255 * 100, { h: ue, s: tt, b: ht } = ne(G, W, re);
7155
+ return { h: ue, s: tt, b: ht, a: q };
7127
7156
  }
7128
7157
  function ne(z, G, W) {
7129
7158
  z /= 255, G /= 255, W /= 255;
7130
7159
  const re = Math.max(z, G, W), q = Math.min(z, G, W);
7131
7160
  let ue = 0;
7132
- const et = re - q, ht = (re === 0 ? 0 : et / re) * 100, Ke = re * 100;
7161
+ const tt = re - q, ht = (re === 0 ? 0 : tt / re) * 100, Ke = re * 100;
7133
7162
  if (re === q)
7134
7163
  ue = 0;
7135
7164
  else
7136
7165
  switch (re) {
7137
7166
  case z:
7138
- ue = ((G - W) / et + (G < W ? 6 : 0)) * 60;
7167
+ ue = ((G - W) / tt + (G < W ? 6 : 0)) * 60;
7139
7168
  break;
7140
7169
  case G:
7141
- ue = ((W - z) / et + 2) * 60;
7170
+ ue = ((W - z) / tt + 2) * 60;
7142
7171
  break;
7143
7172
  case W:
7144
- ue = ((z - G) / et + 4) * 60;
7173
+ ue = ((z - G) / tt + 4) * 60;
7145
7174
  break;
7146
7175
  }
7147
7176
  return { h: ue, s: ht, b: Ke };
@@ -7150,31 +7179,31 @@ const Wu = (e) => {
7150
7179
  const z = j(n);
7151
7180
  if (z) {
7152
7181
  const { angle: G, col1: W, col2: re } = z, q = V(W), ue = V(re);
7153
- b(!0), T(G === "0deg" ? "vertical" : "horizontal"), u(q.h), d(q.s), h(q.b), v(q.a), K(ue.h), B(ue.s), ae(ue.b), ee(ue.a), he(1);
7182
+ b(!0), _(G === "0deg" ? "vertical" : "horizontal"), u(q.h), d(q.s), h(q.b), y(q.a), K(ue.h), B(ue.s), ae(ue.b), ee(ue.a), he(1);
7154
7183
  }
7155
7184
  } else if (n) {
7156
7185
  const G = function(re) {
7157
7186
  let q = re;
7158
7187
  return q.length === 7 ? q + "ff" : q.length === 9 ? q : q.length === 4 ? q[0] + q[1].repeat(2) + q[2].repeat(2) + q[3].repeat(2) + "ff" : "#000000ff";
7159
7188
  }(n), W = V(G);
7160
- b(!1), u(W.h), d(W.s), h(W.b), v(W.a);
7189
+ b(!1), u(W.h), d(W.s), h(W.b), y(W.a);
7161
7190
  }
7162
7191
  }, [
7163
7192
  n,
7164
7193
  b,
7165
- T,
7194
+ _,
7166
7195
  u,
7167
7196
  d,
7168
7197
  h,
7169
- v,
7198
+ y,
7170
7199
  K,
7171
7200
  B,
7172
7201
  ae,
7173
7202
  ee,
7174
7203
  he
7175
- ]), Te.useEffect(() => {
7204
+ ]), _e.useEffect(() => {
7176
7205
  let j, V, ne, z;
7177
- k ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = w, z = _) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
7206
+ 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);
7178
7207
  }, [
7179
7208
  k,
7180
7209
  x,
@@ -7186,8 +7215,8 @@ const Wu = (e) => {
7186
7215
  N,
7187
7216
  U,
7188
7217
  w,
7189
- _
7190
- ]), Te.useEffect(() => {
7218
+ T
7219
+ ]), _e.useEffect(() => {
7191
7220
  const j = (ne) => He(ne), V = () => ie();
7192
7221
  return l ? (document.addEventListener("mousemove", j), document.addEventListener("mouseup", V)) : (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V)), () => {
7193
7222
  document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V);
@@ -7195,17 +7224,17 @@ const Wu = (e) => {
7195
7224
  }, [l, k, x]);
7196
7225
  function pe() {
7197
7226
  if (!k)
7198
- y(t);
7227
+ v(t);
7199
7228
  else {
7200
- const j = ke(o, a, i, s), V = ke(N, U, w, _), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7201
- y(z);
7229
+ const j = ke(o, a, i, s), V = ke(N, U, w, T), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7230
+ v(z);
7202
7231
  }
7203
7232
  r(!1);
7204
7233
  }
7205
7234
  function Me() {
7206
7235
  r(!1), m(n);
7207
7236
  }
7208
- const Ce = k ? te === 1 ? o : N : o, ft = k ? te === 1 ? a : U : a, en = k ? te === 1 ? i : w : i, Vn = k ? te === 1 ? s : _ : s, { r: tn, g: Ee, b: Qe } = Ze(Ce, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ee}, ${Qe}, 0), rgba(${tn}, ${Ee}, ${Qe}, 1))`, rn = ke(o, a, i, s), qe = ke(N, U, w, _);
7237
+ 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);
7209
7238
  return /* @__PURE__ */ Re(
7210
7239
  "div",
7211
7240
  {
@@ -7318,7 +7347,7 @@ const Wu = (e) => {
7318
7347
  {
7319
7348
  className: Z.hueSlider,
7320
7349
  style: {
7321
- bottom: _e ? k ? "225px" : "150px" : k ? "175px" : "100px"
7350
+ bottom: Te ? k ? "225px" : "150px" : k ? "175px" : "100px"
7322
7351
  },
7323
7352
  children: /* @__PURE__ */ M(
7324
7353
  "input",
@@ -7329,7 +7358,7 @@ const Wu = (e) => {
7329
7358
  value: Ce,
7330
7359
  onChange: (j) => {
7331
7360
  const V = Number(j.target.value);
7332
- k ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, _) : (u(V), Se(V, a, i, s));
7361
+ k ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, T) : (u(V), Se(V, a, i, s));
7333
7362
  },
7334
7363
  className: Z.slider
7335
7364
  }
@@ -7341,7 +7370,7 @@ const Wu = (e) => {
7341
7370
  {
7342
7371
  className: Z.alphaSlider,
7343
7372
  style: {
7344
- bottom: _e ? k ? "200px" : "125px" : k ? "150px" : "75px"
7373
+ bottom: Te ? k ? "200px" : "125px" : k ? "150px" : "75px"
7345
7374
  },
7346
7375
  children: [
7347
7376
  /* @__PURE__ */ M("div", { className: Z.alphaBackground }),
@@ -7358,10 +7387,10 @@ const Wu = (e) => {
7358
7387
  type: "range",
7359
7388
  min: "0",
7360
7389
  max: "100",
7361
- value: Vn,
7390
+ value: zn,
7362
7391
  onChange: (j) => {
7363
7392
  const V = Number(j.target.value);
7364
- k ? te === 1 ? Se(o, a, i, V) : Se(N, U, w, V) : (v(V), Se(o, a, i, V));
7393
+ k ? te === 1 ? Se(o, a, i, V) : Se(N, U, w, V) : (y(V), Se(o, a, i, V));
7365
7394
  },
7366
7395
  className: Z.slider
7367
7396
  }
@@ -7378,10 +7407,10 @@ const Wu = (e) => {
7378
7407
  className: Ve(Z.charge, {
7379
7408
  [Z.chargeActive]: x === "horizontal"
7380
7409
  }),
7381
- onClick: () => T("horizontal"),
7410
+ onClick: () => _("horizontal"),
7382
7411
  children: [
7383
7412
  /* @__PURE__ */ M(
7384
- Jt,
7413
+ Wt,
7385
7414
  {
7386
7415
  name: "ArrowsHorizontal",
7387
7416
  width: 20,
@@ -7398,10 +7427,10 @@ const Wu = (e) => {
7398
7427
  className: Ve(Z.charge, {
7399
7428
  [Z.chargeActive]: x === "vertical"
7400
7429
  }),
7401
- onClick: () => T("vertical"),
7430
+ onClick: () => _("vertical"),
7402
7431
  children: [
7403
7432
  /* @__PURE__ */ M(
7404
- Jt,
7433
+ Wt,
7405
7434
  {
7406
7435
  name: "ArrowsVertical",
7407
7436
  width: 20,
@@ -7414,13 +7443,13 @@ const Wu = (e) => {
7414
7443
  )
7415
7444
  ] }) })
7416
7445
  ] }),
7417
- _e && /* @__PURE__ */ M(
7446
+ Te && /* @__PURE__ */ M(
7418
7447
  Wu,
7419
7448
  {
7420
7449
  initialColor: t,
7421
7450
  onChange: (j) => p(j),
7422
7451
  title: "",
7423
- isBlockSettings: _e
7452
+ isBlockSettings: Te
7424
7453
  }
7425
7454
  ),
7426
7455
  /* @__PURE__ */ Re("div", { className: Z.buttons, children: [
@@ -7446,35 +7475,35 @@ const Wu = (e) => {
7446
7475
  ]
7447
7476
  }
7448
7477
  );
7449
- }, Zu = "_wrapper_kzokw_1", qu = "_open_kzokw_16", Ku = "_close_kzokw_20", nr = {
7478
+ }, Zu = "_wrapper_kzokw_1", qu = "_open_kzokw_16", Ku = "_close_kzokw_20", ar = {
7450
7479
  wrapper: Zu,
7451
7480
  open: qu,
7452
7481
  close: Ku
7453
- }, M0 = (e) => {
7482
+ }, A0 = (e) => {
7454
7483
  const { isOpen: t, isClose: n, children: r } = e;
7455
7484
  return /* @__PURE__ */ M(
7456
7485
  "div",
7457
7486
  {
7458
- className: Ve(nr.wrapper, {
7459
- [nr.open]: t,
7460
- [nr.close]: n
7487
+ className: Ve(ar.wrapper, {
7488
+ [ar.open]: t,
7489
+ [ar.close]: n
7461
7490
  }),
7462
7491
  children: r
7463
7492
  }
7464
7493
  );
7465
- }, Gu = "_blocks_emecf_1", Yu = "_block_emecf_1", Xu = "_active_emecf_21", rr = {
7494
+ }, Gu = "_blocks_emecf_1", Yu = "_block_emecf_1", Xu = "_active_emecf_21", ir = {
7466
7495
  blocks: Gu,
7467
7496
  block: Yu,
7468
7497
  active: Xu
7469
- }, A0 = (e) => {
7498
+ }, D0 = (e) => {
7470
7499
  const { items: t, selectedItem: n, onSelect: r, getIconName: o } = e;
7471
- return /* @__PURE__ */ M("div", { className: rr.blocks, children: t.map((a) => /* @__PURE__ */ M(
7500
+ return /* @__PURE__ */ M("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ M(
7472
7501
  "div",
7473
7502
  {
7474
- className: Ve(rr.block, { [rr.active]: n === a }),
7503
+ className: Ve(ir.block, { [ir.active]: n === a }),
7475
7504
  onClick: () => r(a),
7476
7505
  children: /* @__PURE__ */ M(
7477
- Jt,
7506
+ Wt,
7478
7507
  {
7479
7508
  name: o(a),
7480
7509
  fill: n === a ? "#252525" : "#757575"
@@ -7500,18 +7529,18 @@ const Wu = (e) => {
7500
7529
  error: "#FF3F19",
7501
7530
  success: "#338B13"
7502
7531
  }, cd = (e) => {
7503
- const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = Te.useState(a), { setNotifications: u } = Ue();
7532
+ const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = _e.useState(a), { setNotifications: u } = Ue();
7504
7533
  function d() {
7505
- const v = Ue.getState().notifications.filter((m) => m.id !== i);
7506
- u([...v]);
7534
+ const y = Ue.getState().notifications.filter((m) => m.id !== i);
7535
+ u([...y]);
7507
7536
  }
7508
- return Te.useEffect(() => {
7537
+ return _e.useEffect(() => {
7509
7538
  const h = setTimeout(() => {
7510
7539
  d();
7511
7540
  }, a * 1e3);
7512
7541
  return () => clearTimeout(h);
7513
- }, [a]), Te.useEffect(() => {
7514
- const h = setInterval(() => c((v) => v - 1), 1e3);
7542
+ }, [a]), _e.useEffect(() => {
7543
+ const h = setInterval(() => c((y) => y - 1), 1e3);
7515
7544
  return () => clearInterval(h);
7516
7545
  }, [l]), s ? s({
7517
7546
  type: t,
@@ -7538,7 +7567,7 @@ const Wu = (e) => {
7538
7567
  style: r,
7539
7568
  children: [
7540
7569
  /* @__PURE__ */ M("div", { children: /* @__PURE__ */ M(
7541
- Jt,
7570
+ Wt,
7542
7571
  {
7543
7572
  name: "Info",
7544
7573
  fill: Po[t],
@@ -7555,7 +7584,7 @@ const Wu = (e) => {
7555
7584
  display: "flex"
7556
7585
  },
7557
7586
  children: /* @__PURE__ */ M(
7558
- Jt,
7587
+ Wt,
7559
7588
  {
7560
7589
  name: "X",
7561
7590
  fill: Po[t],
@@ -7573,7 +7602,7 @@ const Wu = (e) => {
7573
7602
  }
7574
7603
  );
7575
7604
  }, ud = () => {
7576
- const { isOpenModal: e, setIsOpenModal: t } = Tn(), { openModal: n, setOpenModal: r } = Vc(), { notifications: o } = Ue(), { title: a, description: i, setTitle: s, setDescription: l, setOnConfirm: c } = jc();
7605
+ 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();
7577
7606
  return /* @__PURE__ */ Re("div", { id: "builder", children: [
7578
7607
  /* @__PURE__ */ Re("div", { className: mn.layout, children: [
7579
7608
  /* @__PURE__ */ M(Da, {}),
@@ -7586,7 +7615,7 @@ const Wu = (e) => {
7586
7615
  ] })
7587
7616
  ] }),
7588
7617
  a && i && /* @__PURE__ */ M(
7589
- Jn,
7618
+ qn,
7590
7619
  {
7591
7620
  close: () => {
7592
7621
  s(null), l(null), c(null);
@@ -7594,8 +7623,8 @@ const Wu = (e) => {
7594
7623
  children: /* @__PURE__ */ M(Oa, {})
7595
7624
  }
7596
7625
  ),
7597
- e && /* @__PURE__ */ M(Jn, { close: t, children: /* @__PURE__ */ M(Ha, {}) }),
7598
- n && /* @__PURE__ */ M(Jn, { close: r, children: /* @__PURE__ */ M(Ma, {}) }),
7626
+ e && /* @__PURE__ */ M(qn, { close: t, children: /* @__PURE__ */ M(Ha, {}) }),
7627
+ n && /* @__PURE__ */ M(qn, { close: r, children: /* @__PURE__ */ M(Ma, {}) }),
7599
7628
  o.length > 0 && /* @__PURE__ */ M("div", { className: mn.notifications, children: o.map((u) => /* @__PURE__ */ M(
7600
7629
  cd,
7601
7630
  {
@@ -7610,7 +7639,7 @@ const Wu = (e) => {
7610
7639
  ] });
7611
7640
  };
7612
7641
  async function Lt(e, t) {
7613
- const n = localStorage.getItem("shopId") || void 0, o = `${Hn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
7642
+ const n = localStorage.getItem("shopId") || void 0, o = `${jn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
7614
7643
  return (await st({
7615
7644
  url: o,
7616
7645
  withToken: !0,
@@ -7652,7 +7681,7 @@ async function dd() {
7652
7681
  }
7653
7682
  }
7654
7683
  async function fd() {
7655
- const e = Hn.getState().apiUrls;
7684
+ const e = jn.getState().apiUrls;
7656
7685
  try {
7657
7686
  const { data: t } = await de.get(
7658
7687
  `${e.googleFonts}?key=AIzaSyAEsTbjAPUz_TeuFCq4z4LPK9w_vst0Pfw`
@@ -7664,7 +7693,7 @@ async function fd() {
7664
7693
  }
7665
7694
  async function hd() {
7666
7695
  var o;
7667
- const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), r = `${Hn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/pages`;
7696
+ const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), r = `${jn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/pages`;
7668
7697
  try {
7669
7698
  return (await st({
7670
7699
  url: r,
@@ -7679,7 +7708,7 @@ async function hd() {
7679
7708
  }
7680
7709
  }
7681
7710
  async function pd() {
7682
- const e = localStorage.getItem("shopId") || void 0, t = localStorage.getItem("draftId") || void 0, r = `${Hn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/all`;
7711
+ const e = localStorage.getItem("shopId") || void 0, t = localStorage.getItem("draftId") || void 0, r = `${jn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/all`;
7683
7712
  return (await st({
7684
7713
  url: r,
7685
7714
  withToken: !0,
@@ -7694,22 +7723,22 @@ const md = (e) => {
7694
7723
  setFooter: c,
7695
7724
  setAnnouncement: u,
7696
7725
  setSettings: d
7697
- } = Pc(), { fonts: h, setFonts: v } = Jc(), { setSettings: m } = To(), { setPageContext: p } = Tn(), { setThemeSettings: y, setIsLoadingThemeSettings: k } = mr(), { setIsLoadingSettings: b } = To(), { notifications: x, setNotifications: T } = Ue(), {
7726
+ } = Pc(), { fonts: h, setFonts: y } = Jc(), { setSettings: m } = _o(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: k } = yr(), { setIsLoadingSettings: b } = _o(), { notifications: x, setNotifications: _ } = Ue(), {
7698
7727
  setBlocks: N,
7699
7728
  blocks: U,
7700
7729
  createPage: w,
7701
- setIsLoadingLayers: _,
7730
+ setIsLoadingLayers: T,
7702
7731
  setHeader: K,
7703
7732
  setAnnouncement: B,
7704
7733
  setFooter: ae
7705
- } = yr(), { setPages: ee, setCurrentPage: te } = Tn();
7706
- return Te.useEffect(() => {
7707
- k(!0), _(!0), b(!0);
7734
+ } = br(), { setPages: ee, setCurrentPage: te } = _n();
7735
+ return _e.useEffect(() => {
7736
+ k(!0), T(!0), b(!0);
7708
7737
  const he = {};
7709
- Object.keys(t).forEach((_e) => {
7710
- he[_e] = t[_e];
7738
+ Object.keys(t).forEach((Te) => {
7739
+ he[Te] = t[Te];
7711
7740
  }), s(he), i(he), l(r), c(o), u(a), d(n), (async () => {
7712
- const _e = {
7741
+ const Te = {
7713
7742
  listings: null,
7714
7743
  products: null,
7715
7744
  reviews: null,
@@ -7723,26 +7752,26 @@ const md = (e) => {
7723
7752
  }, Ze = await dd();
7724
7753
  Object.keys(Ze).map((ie) => {
7725
7754
  const pe = ie;
7726
- _e[pe] = Ze[pe].value.data;
7727
- }), p(_e);
7728
- const { data: ce } = await pd(), { themeSettings: ke, layers: Se, settings: we } = ce || {};
7729
- if (we) {
7730
- if (we.settings) {
7755
+ Te[pe] = Ze[pe].value.data;
7756
+ }), p(Te);
7757
+ const { data: ce } = await pd(), { themeSettings: ke, layers: Se, settings: be } = ce || {};
7758
+ if (be) {
7759
+ if (be.settings) {
7731
7760
  const ie = new n();
7732
7761
  ie.blockSettings = {
7733
7762
  displayName: "Settings",
7734
7763
  isAddable: !1,
7735
- ...we.settings
7764
+ ...be.settings
7736
7765
  }, m(ie.blockSettings);
7737
7766
  }
7738
- we.header && K(we.header), we.footer && ae(we.footer), we.announcement && B(we.announcement);
7767
+ be.header && K(be.header), be.footer && ae(be.footer), be.announcement && B(be.announcement);
7739
7768
  } else {
7740
7769
  const ie = new n();
7741
7770
  m(ie.blockSettings);
7742
7771
  }
7743
- ke && y(ke);
7772
+ ke && v(ke);
7744
7773
  const Pe = await hd(), He = {};
7745
- if (Pe.status >= 400 && T([
7774
+ if (Pe.status >= 400 && _([
7746
7775
  ...x,
7747
7776
  {
7748
7777
  id: it(),
@@ -7753,12 +7782,12 @@ const md = (e) => {
7753
7782
  var pe, Me;
7754
7783
  U[ie.path] || w(ie.path), He[ie.id || ie.path] = {
7755
7784
  ...ie,
7756
- icon: Vt[ie.path] ? Vt[ie.path].icon : "File",
7757
- name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((Me = Vt[ie.path]) == null ? void 0 : Me.name) || ie.path
7785
+ icon: jt[ie.path] ? jt[ie.path].icon : "File",
7786
+ name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((Me = jt[ie.path]) == null ? void 0 : Me.name) || ie.path
7758
7787
  };
7759
- }), ee(He), te(Object.keys(He)[0])) : (ee(Vt), te(Object.keys(Vt)[0])), h.length === 0) {
7788
+ }), ee(He), te(Object.keys(He)[0])) : (ee(jt), te(Object.keys(jt)[0])), h.length === 0) {
7760
7789
  const ie = await fd();
7761
- v([
7790
+ y([
7762
7791
  ...ie.map((pe) => {
7763
7792
  const Me = pe.variants.map((Ce) => {
7764
7793
  if (!Ce.includes("italic"))
@@ -7771,7 +7800,7 @@ const md = (e) => {
7771
7800
  })
7772
7801
  ]);
7773
7802
  }
7774
- N(Se), k(!1), _(!1), b(!1);
7803
+ N(Se), k(!1), T(!1), b(!1);
7775
7804
  })();
7776
7805
  }, []), /* @__PURE__ */ M(ud, {});
7777
7806
  };
@@ -7779,21 +7808,21 @@ function gd() {
7779
7808
  const e = new URL(window.location.href);
7780
7809
  window.history.replaceState(null, "", e.pathname + e.hash);
7781
7810
  }
7782
- function yd() {
7811
+ function vd() {
7783
7812
  const e = new URLSearchParams(document.location.search), t = e.get("shopId") || localStorage.getItem("shopId"), n = e.get("sellerAccessToken") || localStorage.getItem("sellerAccessToken"), r = e.get("draftId") || localStorage.getItem("draftId");
7784
7813
  return gd(), n && localStorage.setItem("sellerAccessToken", n), t && localStorage.setItem("shopId", t), r && localStorage.setItem("draftId", r), !!(n && t && r);
7785
7814
  }
7786
- const vd = "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) => {
7787
- const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = Oc(), [s, l] = Te.useState(!0), c = kr(), u = rt();
7788
- return Te.useEffect(() => {
7815
+ 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) => {
7816
+ const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = Oc(), [s, l] = _e.useState(!0), c = An(), u = Qe();
7817
+ return _e.useEffect(() => {
7789
7818
  const d = u.pathname;
7790
7819
  if (d.startsWith("/admin/builder")) {
7791
7820
  d === "/admin/builder/add" ? document.title = "Add Section | Builder" : d === "/admin/builder/theme" ? document.title = "Theme Settings | Builder" : d === "/admin/builder/settings" ? document.title = "Settings | Builder" : document.title = `Builder | ${i ? "Antistock" : "Billgang "}`;
7792
7821
  let h = document.querySelector("link[rel~='icon']");
7793
- h || (h = document.createElement("link"), h.rel = "icon", document.head.appendChild(h)), h && (h.href = i ? wd : vd);
7822
+ h || (h = document.createElement("link"), h.rel = "icon", document.head.appendChild(h)), h && (h.href = i ? wd : yd);
7794
7823
  }
7795
- }, [u]), Te.useEffect(() => {
7796
- l(!0), yd() ? l(!1) : c("/");
7824
+ }, [u]), _e.useEffect(() => {
7825
+ l(!0), vd() ? l(!1) : c("/");
7797
7826
  }, []), /* @__PURE__ */ M(Pa, { children: s ? /* @__PURE__ */ M(Aa, {}) : /* @__PURE__ */ M(
7798
7827
  md,
7799
7828
  {
@@ -7804,87 +7833,88 @@ const vd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%
7804
7833
  announcement: a
7805
7834
  }
7806
7835
  ) });
7807
- }, D0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7836
+ }, F0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7808
7837
  __proto__: null,
7809
7838
  BuilderPage: bd
7810
7839
  }, Symbol.toStringTag, { value: "Module" }));
7811
7840
  export {
7812
- Xd as $,
7813
- P0 as A,
7841
+ Qd as $,
7842
+ O0 as A,
7814
7843
  Yc as B,
7815
- O0 as C,
7816
- L0 as D,
7817
- M0 as E,
7844
+ M0 as C,
7845
+ N0 as D,
7846
+ A0 as E,
7818
7847
  y0 as F,
7819
7848
  Jc as G,
7820
- h0 as H,
7849
+ p0 as H,
7821
7850
  Wu as I,
7822
- c0 as J,
7851
+ u0 as J,
7823
7852
  Oc as K,
7824
- k0 as L,
7825
- m0 as M,
7826
- Ad as N,
7827
- Md as O,
7828
- A0 as P,
7829
- a0 as Q,
7830
- g0 as R,
7831
- _0 as S,
7832
- x0 as T,
7833
- s0 as U,
7834
- Tc as V,
7853
+ x0 as L,
7854
+ g0 as M,
7855
+ Dd as N,
7856
+ Ad as O,
7857
+ D0 as P,
7858
+ i0 as Q,
7859
+ v0 as R,
7860
+ P0 as S,
7861
+ L0 as T,
7862
+ l0 as U,
7863
+ _c as V,
7835
7864
  $c as W,
7836
- i0 as X,
7865
+ s0 as X,
7837
7866
  Fs as Y,
7838
7867
  qo as Z,
7839
- Qd as _,
7840
- To as a,
7841
- n0 as a0,
7842
- Od as a1,
7843
- r0 as a2,
7844
- xs as a3,
7845
- t0 as a4,
7846
- E0 as a5,
7847
- Pd as a6,
7848
- Ld as a7,
7849
- l0 as a8,
7850
- e0 as a9,
7851
- de as aa,
7852
- rt as ab,
7853
- b0 as ac,
7854
- Vc as ad,
7855
- w0 as ae,
7856
- v0 as af,
7857
- js as ag,
7858
- u0 as ah,
7859
- Td as ai,
7860
- Nd as aj,
7868
+ e0 as _,
7869
+ _o as a,
7870
+ r0 as a0,
7871
+ Nd as a1,
7872
+ Md as a2,
7873
+ o0 as a3,
7874
+ xs as a4,
7875
+ n0 as a5,
7876
+ R0 as a6,
7877
+ Od as a7,
7878
+ Ld as a8,
7879
+ c0 as a9,
7880
+ t0 as aa,
7881
+ de as ab,
7882
+ Qe as ac,
7883
+ S0 as ad,
7884
+ Vc as ae,
7885
+ b0 as af,
7886
+ w0 as ag,
7887
+ js as ah,
7888
+ d0 as ai,
7889
+ Td as aj,
7861
7890
  _d as ak,
7862
- o0 as al,
7863
- Yi as am,
7864
- D0 as an,
7865
- Tn as b,
7891
+ Pd as al,
7892
+ a0 as am,
7893
+ Yi as an,
7894
+ F0 as ao,
7895
+ _n as b,
7866
7896
  Pc as c,
7867
7897
  De as d,
7868
7898
  Ue as e,
7869
7899
  Ve as f,
7870
- d0 as g,
7871
- R0 as h,
7900
+ f0 as g,
7901
+ k0 as h,
7872
7902
  Hc as i,
7873
- Hn as j,
7903
+ jn as j,
7874
7904
  jc as k,
7875
- p0 as l,
7876
- mr as m,
7905
+ m0 as l,
7906
+ yr as m,
7877
7907
  Wc as n,
7878
- S0 as o,
7879
- kr as p,
7908
+ C0 as o,
7909
+ An as p,
7880
7910
  Uc as q,
7881
7911
  st as r,
7882
- C0 as s,
7883
- N0 as t,
7884
- yr as u,
7912
+ E0 as s,
7913
+ _0 as t,
7914
+ br as u,
7885
7915
  it as v,
7886
7916
  ba as w,
7887
7917
  T0 as x,
7888
7918
  Sa as y,
7889
- f0 as z
7919
+ h0 as z
7890
7920
  };