zudoku 0.46.1 → 0.46.2

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 (168) hide show
  1. package/dist/config/validators/validate.d.ts +12 -12
  2. package/dist/config/validators/validate.js +3 -1
  3. package/dist/config/validators/validate.js.map +1 -1
  4. package/dist/lib/authentication/AuthenticationPlugin.d.ts +0 -5
  5. package/dist/lib/authentication/AuthenticationPlugin.js +0 -12
  6. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  7. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +110 -15
  8. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  9. package/dist/lib/plugins/api-keys/index.d.ts +3 -3
  10. package/dist/lib/plugins/api-keys/index.js +14 -14
  11. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  12. package/dist/lib/plugins/openapi/Sidecar.js +11 -91
  13. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  14. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  15. package/dist/lib/plugins/openapi/playground/BodyPanel.js +22 -0
  16. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  17. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  18. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  19. package/dist/lib/plugins/openapi/playground/Headers.js +25 -25
  20. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  21. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -1
  22. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  23. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  24. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  25. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  26. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  27. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
  28. package/dist/lib/plugins/openapi/playground/Playground.js +70 -65
  29. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  30. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  31. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  32. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  33. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  34. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  35. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  36. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  37. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +4 -1
  38. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +29 -20
  39. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  40. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
  41. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  42. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  43. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  44. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  45. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  46. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  47. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  48. package/dist/lib/shiki.d.ts +8 -12
  49. package/dist/lib/shiki.js +11 -13
  50. package/dist/lib/shiki.js.map +1 -1
  51. package/dist/lib/ui/CodeBlock.js +1 -1
  52. package/dist/lib/ui/CodeBlock.js.map +1 -1
  53. package/dist/lib/ui/Dialog.d.ts +3 -1
  54. package/dist/lib/ui/Dialog.js +2 -2
  55. package/dist/lib/ui/Dialog.js.map +1 -1
  56. package/dist/lib/util/humanFileSize.d.ts +6 -0
  57. package/dist/lib/util/humanFileSize.js +14 -0
  58. package/dist/lib/util/humanFileSize.js.map +1 -0
  59. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  60. package/dist/lib/util/humanFileSize.test.js +22 -0
  61. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  62. package/lib/{Callout-BkgOUkoZ.js → Callout-CoVxYafP.js} +2 -2
  63. package/lib/{Callout-BkgOUkoZ.js.map → Callout-CoVxYafP.js.map} +1 -1
  64. package/lib/{Dialog-Du6WMcIA.js → Dialog-BxpuVLh9.js} +25 -25
  65. package/lib/Dialog-BxpuVLh9.js.map +1 -0
  66. package/lib/{Markdown-BRAyzyUJ.js → Markdown-Cm4kj26S.js} +6 -5
  67. package/lib/{Markdown-BRAyzyUJ.js.map → Markdown-Cm4kj26S.js.map} +1 -1
  68. package/lib/{MdxPage-B3v1BSKr.js → MdxPage-fDGQtB5w.js} +5 -5
  69. package/lib/{MdxPage-B3v1BSKr.js.map → MdxPage-fDGQtB5w.js.map} +1 -1
  70. package/lib/{OasProvider-5jrFuhVk.js → OasProvider-CFBvfR3r.js} +3 -3
  71. package/lib/{OasProvider-5jrFuhVk.js.map → OasProvider-CFBvfR3r.js.map} +1 -1
  72. package/lib/{OperationList-BmoMLQPO.js → OperationList-Xs4KWmsh.js} +1139 -1131
  73. package/lib/OperationList-Xs4KWmsh.js.map +1 -0
  74. package/lib/{Pagination-Cr0fWZS3.js → Pagination-CCxhL836.js} +2 -2
  75. package/lib/{Pagination-Cr0fWZS3.js.map → Pagination-CCxhL836.js.map} +1 -1
  76. package/lib/{RouteGuard-PrSVLbSr.js → RouteGuard-CZ_uLv3g.js} +6 -6
  77. package/lib/{RouteGuard-PrSVLbSr.js.map → RouteGuard-CZ_uLv3g.js.map} +1 -1
  78. package/lib/{SchemaList-B4riYLoP.js → SchemaList-BWaNlmUJ.js} +6 -6
  79. package/lib/{SchemaList-B4riYLoP.js.map → SchemaList-BWaNlmUJ.js.map} +1 -1
  80. package/lib/{SchemaView-CPZ6RgsF.js → SchemaView-DdKJt2ln.js} +3 -3
  81. package/lib/{SchemaView-CPZ6RgsF.js.map → SchemaView-DdKJt2ln.js.map} +1 -1
  82. package/lib/{SignUp-CWaiH0tY.js → SignUp-B-1Pvc-8.js} +3 -3
  83. package/lib/{SignUp-CWaiH0tY.js.map → SignUp-B-1Pvc-8.js.map} +1 -1
  84. package/lib/{Slot-Bo6K4tnb.js → Slot-B99cbD-q.js} +11 -11
  85. package/lib/{Slot-Bo6K4tnb.js.map → Slot-B99cbD-q.js.map} +1 -1
  86. package/lib/{SyntaxHighlight-DedRjJNr.js → SyntaxHighlight-Cz6Me7-F.js} +4474 -3323
  87. package/lib/SyntaxHighlight-Cz6Me7-F.js.map +1 -0
  88. package/lib/{Toc-lL3fzNkl.js → Toc-Qe7A4uj_.js} +2 -2
  89. package/lib/{Toc-lL3fzNkl.js.map → Toc-Qe7A4uj_.js.map} +1 -1
  90. package/lib/{chunk-BAXFHI7N-C9WnHsLV.js → chunk-DQRVZFIR-BblmKnHy.js} +697 -697
  91. package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +1 -0
  92. package/lib/{circular-oB4auIIg.js → circular-w5eL5J8a.js} +1812 -1807
  93. package/lib/circular-w5eL5J8a.js.map +1 -0
  94. package/lib/{createServer-DCB82j2t.js → createServer-p3yUA8Bu.js} +3648 -3493
  95. package/lib/createServer-p3yUA8Bu.js.map +1 -0
  96. package/lib/{hook-DawSLaZr.js → hook-k7PfUIsj.js} +10 -10
  97. package/lib/{hook-DawSLaZr.js.map → hook-k7PfUIsj.js.map} +1 -1
  98. package/lib/{index-BXYvD5-7.js → index-yqBxBqxF.js} +1053 -1095
  99. package/lib/index-yqBxBqxF.js.map +1 -0
  100. package/lib/index.esm-Cp4wkyud.js +1236 -0
  101. package/lib/index.esm-Cp4wkyud.js.map +1 -0
  102. package/lib/{mutation-oxMvODNQ.js → mutation-BSeQ8pEK.js} +2 -2
  103. package/lib/{mutation-oxMvODNQ.js.map → mutation-BSeQ8pEK.js.map} +1 -1
  104. package/lib/react-nprogress.esm-C2MPXjiJ.js +389 -0
  105. package/lib/react-nprogress.esm-C2MPXjiJ.js.map +1 -0
  106. package/lib/ui/CodeBlock.js +17 -16
  107. package/lib/ui/CodeBlock.js.map +1 -1
  108. package/lib/ui/Command.js +1 -1
  109. package/lib/ui/Dialog.js +25 -25
  110. package/lib/ui/Dialog.js.map +1 -1
  111. package/lib/ui/Form.js +1 -1
  112. package/lib/ui/SyntaxHighlight.js +2 -2
  113. package/lib/{useExposedProps-DG8J6ewJ.js → useExposedProps-BZQkZneR.js} +2 -2
  114. package/lib/{useExposedProps-DG8J6ewJ.js.map → useExposedProps-BZQkZneR.js.map} +1 -1
  115. package/lib/{useMutation-C_j3dA_L.js → useMutation-CZSmsIGW.js} +3 -3
  116. package/lib/{useMutation-C_j3dA_L.js.map → useMutation-CZSmsIGW.js.map} +1 -1
  117. package/lib/zudoku.auth-auth0.js +1 -1
  118. package/lib/zudoku.auth-clerk.js +2 -2
  119. package/lib/zudoku.auth-openid.js +57 -66
  120. package/lib/zudoku.auth-openid.js.map +1 -1
  121. package/lib/zudoku.components.js +1698 -2082
  122. package/lib/zudoku.components.js.map +1 -1
  123. package/lib/zudoku.hooks.js +11 -11
  124. package/lib/zudoku.plugin-api-catalog.js +5 -5
  125. package/lib/zudoku.plugin-api-keys.js +473 -4970
  126. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  127. package/lib/zudoku.plugin-custom-pages.js +2 -2
  128. package/lib/zudoku.plugin-markdown.js +1 -1
  129. package/lib/zudoku.plugin-openapi.js +3 -3
  130. package/lib/zudoku.plugin-redirect.js +1 -1
  131. package/lib/zudoku.plugin-search-pagefind.js +5 -5
  132. package/package.json +33 -34
  133. package/src/lib/authentication/AuthenticationPlugin.tsx +0 -14
  134. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +193 -48
  135. package/src/lib/plugins/api-keys/index.tsx +25 -18
  136. package/src/lib/plugins/openapi/Sidecar.tsx +11 -97
  137. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +46 -0
  138. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +4 -1
  139. package/src/lib/plugins/openapi/playground/Headers.tsx +110 -106
  140. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +13 -11
  141. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  142. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  143. package/src/lib/plugins/openapi/playground/Playground.tsx +127 -211
  144. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +2 -1
  145. package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
  146. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  147. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +74 -39
  148. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -1
  149. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  150. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  151. package/src/lib/shiki.ts +21 -22
  152. package/src/lib/ui/CodeBlock.tsx +1 -0
  153. package/src/lib/ui/Dialog.tsx +11 -7
  154. package/src/lib/util/humanFileSize.test.ts +24 -0
  155. package/src/lib/util/humanFileSize.ts +16 -0
  156. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  157. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
  158. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  159. package/lib/Dialog-Du6WMcIA.js.map +0 -1
  160. package/lib/OperationList-BmoMLQPO.js.map +0 -1
  161. package/lib/SyntaxHighlight-DedRjJNr.js.map +0 -1
  162. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
  163. package/lib/circular-oB4auIIg.js.map +0 -1
  164. package/lib/createServer-DCB82j2t.js.map +0 -1
  165. package/lib/index-BXYvD5-7.js.map +0 -1
  166. package/lib/index.esm-DSfX_eMP.js +0 -1216
  167. package/lib/index.esm-DSfX_eMP.js.map +0 -1
  168. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
@@ -3,130 +3,130 @@ var F = {}, ue;
3
3
  function Ae() {
4
4
  if (ue) return F;
5
5
  ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = s, F.serialize = u;
6
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, o = /* @__PURE__ */ (() => {
7
- const d = function() {
6
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, o = /^[\u0020-\u003A\u003D-\u007E]*$/, n = Object.prototype.toString, a = /* @__PURE__ */ (() => {
7
+ const f = function() {
8
8
  };
9
- return d.prototype = /* @__PURE__ */ Object.create(null), d;
9
+ return f.prototype = /* @__PURE__ */ Object.create(null), f;
10
10
  })();
11
- function s(d, g) {
12
- const f = new o(), w = d.length;
13
- if (w < 2)
14
- return f;
15
- const E = g?.decode || h;
16
- let p = 0;
11
+ function s(f, g) {
12
+ const d = new a(), v = f.length;
13
+ if (v < 2)
14
+ return d;
15
+ const E = g?.decode || m;
16
+ let h = 0;
17
17
  do {
18
- const v = d.indexOf("=", p);
19
- if (v === -1)
18
+ const w = f.indexOf("=", h);
19
+ if (w === -1)
20
20
  break;
21
- const y = d.indexOf(";", p), b = y === -1 ? w : y;
22
- if (v > b) {
23
- p = d.lastIndexOf(";", v - 1) + 1;
21
+ const y = f.indexOf(";", h), b = y === -1 ? v : y;
22
+ if (w > b) {
23
+ h = f.lastIndexOf(";", w - 1) + 1;
24
24
  continue;
25
25
  }
26
- const R = c(d, p, v), C = l(d, v, R), $ = d.slice(R, C);
27
- if (f[$] === void 0) {
28
- let S = c(d, v + 1, b), P = l(d, b, S);
29
- const D = E(d.slice(S, P));
30
- f[$] = D;
26
+ const R = c(f, h, w), C = l(f, w, R), $ = f.slice(R, C);
27
+ if (d[$] === void 0) {
28
+ let S = c(f, w + 1, b), P = l(f, b, S);
29
+ const O = E(f.slice(S, P));
30
+ d[$] = O;
31
31
  }
32
- p = b + 1;
33
- } while (p < w);
34
- return f;
32
+ h = b + 1;
33
+ } while (h < v);
34
+ return d;
35
35
  }
36
- function c(d, g, f) {
36
+ function c(f, g, d) {
37
37
  do {
38
- const w = d.charCodeAt(g);
39
- if (w !== 32 && w !== 9)
38
+ const v = f.charCodeAt(g);
39
+ if (v !== 32 && v !== 9)
40
40
  return g;
41
- } while (++g < f);
42
- return f;
41
+ } while (++g < d);
42
+ return d;
43
43
  }
44
- function l(d, g, f) {
45
- for (; g > f; ) {
46
- const w = d.charCodeAt(--g);
47
- if (w !== 32 && w !== 9)
44
+ function l(f, g, d) {
45
+ for (; g > d; ) {
46
+ const v = f.charCodeAt(--g);
47
+ if (v !== 32 && v !== 9)
48
48
  return g + 1;
49
49
  }
50
- return f;
50
+ return d;
51
51
  }
52
- function u(d, g, f) {
53
- const w = f?.encode || encodeURIComponent;
54
- if (!e.test(d))
55
- throw new TypeError(`argument name is invalid: ${d}`);
56
- const E = w(g);
52
+ function u(f, g, d) {
53
+ const v = d?.encode || encodeURIComponent;
54
+ if (!e.test(f))
55
+ throw new TypeError(`argument name is invalid: ${f}`);
56
+ const E = v(g);
57
57
  if (!t.test(E))
58
58
  throw new TypeError(`argument val is invalid: ${g}`);
59
- let p = d + "=" + E;
60
- if (!f)
61
- return p;
62
- if (f.maxAge !== void 0) {
63
- if (!Number.isInteger(f.maxAge))
64
- throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
65
- p += "; Max-Age=" + f.maxAge;
59
+ let h = f + "=" + E;
60
+ if (!d)
61
+ return h;
62
+ if (d.maxAge !== void 0) {
63
+ if (!Number.isInteger(d.maxAge))
64
+ throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
65
+ h += "; Max-Age=" + d.maxAge;
66
66
  }
67
- if (f.domain) {
68
- if (!n.test(f.domain))
69
- throw new TypeError(`option domain is invalid: ${f.domain}`);
70
- p += "; Domain=" + f.domain;
67
+ if (d.domain) {
68
+ if (!r.test(d.domain))
69
+ throw new TypeError(`option domain is invalid: ${d.domain}`);
70
+ h += "; Domain=" + d.domain;
71
71
  }
72
- if (f.path) {
73
- if (!a.test(f.path))
74
- throw new TypeError(`option path is invalid: ${f.path}`);
75
- p += "; Path=" + f.path;
72
+ if (d.path) {
73
+ if (!o.test(d.path))
74
+ throw new TypeError(`option path is invalid: ${d.path}`);
75
+ h += "; Path=" + d.path;
76
76
  }
77
- if (f.expires) {
78
- if (!m(f.expires) || !Number.isFinite(f.expires.valueOf()))
79
- throw new TypeError(`option expires is invalid: ${f.expires}`);
80
- p += "; Expires=" + f.expires.toUTCString();
77
+ if (d.expires) {
78
+ if (!p(d.expires) || !Number.isFinite(d.expires.valueOf()))
79
+ throw new TypeError(`option expires is invalid: ${d.expires}`);
80
+ h += "; Expires=" + d.expires.toUTCString();
81
81
  }
82
- if (f.httpOnly && (p += "; HttpOnly"), f.secure && (p += "; Secure"), f.partitioned && (p += "; Partitioned"), f.priority)
83
- switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
82
+ if (d.httpOnly && (h += "; HttpOnly"), d.secure && (h += "; Secure"), d.partitioned && (h += "; Partitioned"), d.priority)
83
+ switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
84
84
  case "low":
85
- p += "; Priority=Low";
85
+ h += "; Priority=Low";
86
86
  break;
87
87
  case "medium":
88
- p += "; Priority=Medium";
88
+ h += "; Priority=Medium";
89
89
  break;
90
90
  case "high":
91
- p += "; Priority=High";
91
+ h += "; Priority=High";
92
92
  break;
93
93
  default:
94
- throw new TypeError(`option priority is invalid: ${f.priority}`);
94
+ throw new TypeError(`option priority is invalid: ${d.priority}`);
95
95
  }
96
- if (f.sameSite)
97
- switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
96
+ if (d.sameSite)
97
+ switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
98
98
  case !0:
99
99
  case "strict":
100
- p += "; SameSite=Strict";
100
+ h += "; SameSite=Strict";
101
101
  break;
102
102
  case "lax":
103
- p += "; SameSite=Lax";
103
+ h += "; SameSite=Lax";
104
104
  break;
105
105
  case "none":
106
- p += "; SameSite=None";
106
+ h += "; SameSite=None";
107
107
  break;
108
108
  default:
109
- throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
109
+ throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
110
110
  }
111
- return p;
111
+ return h;
112
112
  }
113
- function h(d) {
114
- if (d.indexOf("%") === -1)
115
- return d;
113
+ function m(f) {
114
+ if (f.indexOf("%") === -1)
115
+ return f;
116
116
  try {
117
- return decodeURIComponent(d);
117
+ return decodeURIComponent(f);
118
118
  } catch {
119
- return d;
119
+ return f;
120
120
  }
121
121
  }
122
- function m(d) {
123
- return r.call(d) === "[object Date]";
122
+ function p(f) {
123
+ return n.call(f) === "[object Date]";
124
124
  }
125
125
  return F;
126
126
  }
127
127
  Ae();
128
128
  /**
129
- * react-router v7.5.2
129
+ * react-router v7.6.1
130
130
  *
131
131
  * Copyright (c) Remix Software Inc.
132
132
  *
@@ -151,105 +151,105 @@ function L(e, t) {
151
151
  function W({
152
152
  pathname: e = "/",
153
153
  search: t = "",
154
- hash: n = ""
154
+ hash: r = ""
155
155
  }) {
156
- return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
156
+ return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
157
157
  }
158
158
  function Y(e) {
159
159
  let t = {};
160
160
  if (e) {
161
- let n = e.indexOf("#");
162
- n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
163
- let a = e.indexOf("?");
164
- a >= 0 && (t.search = e.substring(a), e = e.substring(0, a)), e && (t.pathname = e);
161
+ let r = e.indexOf("#");
162
+ r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
163
+ let o = e.indexOf("?");
164
+ o >= 0 && (t.search = e.substring(o), e = e.substring(0, o)), e && (t.pathname = e);
165
165
  }
166
166
  return t;
167
167
  }
168
- function pe(e, t, n = "/") {
169
- return De(e, t, n, !1);
168
+ function pe(e, t, r = "/") {
169
+ return Oe(e, t, r, !1);
170
170
  }
171
- function De(e, t, n, a) {
172
- let r = typeof t == "string" ? Y(t) : t, o = A(r.pathname || "/", n);
173
- if (o == null)
171
+ function Oe(e, t, r, o) {
172
+ let n = typeof t == "string" ? Y(t) : t, a = A(n.pathname || "/", r);
173
+ if (a == null)
174
174
  return null;
175
175
  let s = ge(e);
176
- Oe(s);
176
+ De(s);
177
177
  let c = null;
178
178
  for (let l = 0; c == null && l < s.length; ++l) {
179
- let u = ye(o);
180
- c = je(
179
+ let u = ye(a);
180
+ c = ze(
181
181
  s[l],
182
182
  u,
183
- a
183
+ o
184
184
  );
185
185
  }
186
186
  return c;
187
187
  }
188
- function ge(e, t = [], n = [], a = "") {
189
- let r = (o, s, c) => {
188
+ function ge(e, t = [], r = [], o = "") {
189
+ let n = (a, s, c) => {
190
190
  let l = {
191
- relativePath: c === void 0 ? o.path || "" : c,
192
- caseSensitive: o.caseSensitive === !0,
191
+ relativePath: c === void 0 ? a.path || "" : c,
192
+ caseSensitive: a.caseSensitive === !0,
193
193
  childrenIndex: s,
194
- route: o
194
+ route: a
195
195
  };
196
196
  l.relativePath.startsWith("/") && (x(
197
- l.relativePath.startsWith(a),
198
- `Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
199
- ), l.relativePath = l.relativePath.slice(a.length));
200
- let u = M([a, l.relativePath]), h = n.concat(l);
201
- o.children && o.children.length > 0 && (x(
197
+ l.relativePath.startsWith(o),
198
+ `Absolute route path "${l.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
199
+ ), l.relativePath = l.relativePath.slice(o.length));
200
+ let u = M([o, l.relativePath]), m = r.concat(l);
201
+ a.children && a.children.length > 0 && (x(
202
202
  // Our types know better, but runtime JS may not!
203
203
  // @ts-expect-error
204
- o.index !== !0,
204
+ a.index !== !0,
205
205
  `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
206
- ), ge(o.children, t, h, u)), !(o.path == null && !o.index) && t.push({
206
+ ), ge(a.children, t, m, u)), !(a.path == null && !a.index) && t.push({
207
207
  path: u,
208
- score: He(u, o.index),
209
- routesMeta: h
208
+ score: He(u, a.index),
209
+ routesMeta: m
210
210
  });
211
211
  };
212
- return e.forEach((o, s) => {
213
- if (o.path === "" || !o.path?.includes("?"))
214
- r(o, s);
212
+ return e.forEach((a, s) => {
213
+ if (a.path === "" || !a.path?.includes("?"))
214
+ n(a, s);
215
215
  else
216
- for (let c of ve(o.path))
217
- r(o, s, c);
216
+ for (let c of ve(a.path))
217
+ n(a, s, c);
218
218
  }), t;
219
219
  }
220
220
  function ve(e) {
221
221
  let t = e.split("/");
222
222
  if (t.length === 0) return [];
223
- let [n, ...a] = t, r = n.endsWith("?"), o = n.replace(/\?$/, "");
224
- if (a.length === 0)
225
- return r ? [o, ""] : [o];
226
- let s = ve(a.join("/")), c = [];
223
+ let [r, ...o] = t, n = r.endsWith("?"), a = r.replace(/\?$/, "");
224
+ if (o.length === 0)
225
+ return n ? [a, ""] : [a];
226
+ let s = ve(o.join("/")), c = [];
227
227
  return c.push(
228
228
  ...s.map(
229
- (l) => l === "" ? o : [o, l].join("/")
229
+ (l) => l === "" ? a : [a, l].join("/")
230
230
  )
231
- ), r && c.push(...s), c.map(
231
+ ), n && c.push(...s), c.map(
232
232
  (l) => e.startsWith("/") && l === "" ? "/" : l
233
233
  );
234
234
  }
235
- function Oe(e) {
235
+ function De(e) {
236
236
  e.sort(
237
- (t, n) => t.score !== n.score ? n.score - t.score : ze(
238
- t.routesMeta.map((a) => a.childrenIndex),
239
- n.routesMeta.map((a) => a.childrenIndex)
237
+ (t, r) => t.score !== r.score ? r.score - t.score : je(
238
+ t.routesMeta.map((o) => o.childrenIndex),
239
+ r.routesMeta.map((o) => o.childrenIndex)
240
240
  )
241
241
  );
242
242
  }
243
243
  var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, We = 10, Be = -2, ce = (e) => e === "*";
244
244
  function He(e, t) {
245
- let n = e.split("/"), a = n.length;
246
- return n.some(ce) && (a += Be), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
247
- (r, o) => r + (Ie.test(o) ? _e : o === "" ? Ue : We),
248
- a
245
+ let r = e.split("/"), o = r.length;
246
+ return r.some(ce) && (o += Be), t && (o += Fe), r.filter((n) => !ce(n)).reduce(
247
+ (n, a) => n + (Ie.test(a) ? _e : a === "" ? Ue : We),
248
+ o
249
249
  );
250
250
  }
251
- function ze(e, t) {
252
- return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
251
+ function je(e, t) {
252
+ return e.length === t.length && e.slice(0, -1).every((o, n) => o === t[n]) ? (
253
253
  // If two routes are siblings, we should try to match the earlier sibling
254
254
  // first. This allows people to have fine-grained control over the matching
255
255
  // behavior by simply putting routes with identical paths in the order they
@@ -261,89 +261,89 @@ function ze(e, t) {
261
261
  0
262
262
  );
263
263
  }
264
- function je(e, t, n = !1) {
265
- let { routesMeta: a } = e, r = {}, o = "/", s = [];
266
- for (let c = 0; c < a.length; ++c) {
267
- let l = a[c], u = c === a.length - 1, h = o === "/" ? t : t.slice(o.length) || "/", m = B(
264
+ function ze(e, t, r = !1) {
265
+ let { routesMeta: o } = e, n = {}, a = "/", s = [];
266
+ for (let c = 0; c < o.length; ++c) {
267
+ let l = o[c], u = c === o.length - 1, m = a === "/" ? t : t.slice(a.length) || "/", p = B(
268
268
  { path: l.relativePath, caseSensitive: l.caseSensitive, end: u },
269
- h
270
- ), d = l.route;
271
- if (!m && u && n && !a[a.length - 1].route.index && (m = B(
269
+ m
270
+ ), f = l.route;
271
+ if (!p && u && r && !o[o.length - 1].route.index && (p = B(
272
272
  {
273
273
  path: l.relativePath,
274
274
  caseSensitive: l.caseSensitive,
275
275
  end: !1
276
276
  },
277
- h
278
- )), !m)
277
+ m
278
+ )), !p)
279
279
  return null;
280
- Object.assign(r, m.params), s.push({
280
+ Object.assign(n, p.params), s.push({
281
281
  // TODO: Can this as be avoided?
282
- params: r,
283
- pathname: M([o, m.pathname]),
282
+ params: n,
283
+ pathname: M([a, p.pathname]),
284
284
  pathnameBase: qe(
285
- M([o, m.pathnameBase])
285
+ M([a, p.pathnameBase])
286
286
  ),
287
- route: d
288
- }), m.pathnameBase !== "/" && (o = M([o, m.pathnameBase]));
287
+ route: f
288
+ }), p.pathnameBase !== "/" && (a = M([a, p.pathnameBase]));
289
289
  }
290
290
  return s;
291
291
  }
292
- function on(e, t = {}) {
293
- let n = e;
294
- n.endsWith("*") && n !== "*" && !n.endsWith("/*") && (L(
292
+ function or(e, t = {}) {
293
+ let r = e;
294
+ r.endsWith("*") && r !== "*" && !r.endsWith("/*") && (L(
295
295
  !1,
296
- `Route path "${n}" will be treated as if it were "${n.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/, "/*")}".`
297
- ), n = n.replace(/\*$/, "/*"));
298
- const a = n.startsWith("/") ? "/" : "", r = (s) => s == null ? "" : typeof s == "string" ? s : String(s), o = n.split(/\/+/).map((s, c, l) => {
296
+ `Route path "${r}" will be treated as if it were "${r.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/, "/*")}".`
297
+ ), r = r.replace(/\*$/, "/*"));
298
+ const o = r.startsWith("/") ? "/" : "", n = (s) => s == null ? "" : typeof s == "string" ? s : String(s), a = r.split(/\/+/).map((s, c, l) => {
299
299
  if (c === l.length - 1 && s === "*")
300
- return r(t["*"]);
301
- const h = s.match(/^:([\w-]+)(\??)$/);
302
- if (h) {
303
- const [, m, d] = h;
304
- let g = t[m];
305
- return x(d === "?" || g != null, `Missing ":${m}" param`), r(g);
300
+ return n(t["*"]);
301
+ const m = s.match(/^:([\w-]+)(\??)$/);
302
+ if (m) {
303
+ const [, p, f] = m;
304
+ let g = t[p];
305
+ return x(f === "?" || g != null, `Missing ":${p}" param`), n(g);
306
306
  }
307
307
  return s.replace(/\?$/g, "");
308
308
  }).filter((s) => !!s);
309
- return a + o.join("/");
309
+ return o + a.join("/");
310
310
  }
311
311
  function B(e, t) {
312
312
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
313
- let [n, a] = Ve(
313
+ let [r, o] = Ve(
314
314
  e.path,
315
315
  e.caseSensitive,
316
316
  e.end
317
- ), r = t.match(n);
318
- if (!r) return null;
319
- let o = r[0], s = o.replace(/(.)\/+$/, "$1"), c = r.slice(1);
317
+ ), n = t.match(r);
318
+ if (!n) return null;
319
+ let a = n[0], s = a.replace(/(.)\/+$/, "$1"), c = n.slice(1);
320
320
  return {
321
- params: a.reduce(
322
- (u, { paramName: h, isOptional: m }, d) => {
323
- if (h === "*") {
324
- let f = c[d] || "";
325
- s = o.slice(0, o.length - f.length).replace(/(.)\/+$/, "$1");
321
+ params: o.reduce(
322
+ (u, { paramName: m, isOptional: p }, f) => {
323
+ if (m === "*") {
324
+ let d = c[f] || "";
325
+ s = a.slice(0, a.length - d.length).replace(/(.)\/+$/, "$1");
326
326
  }
327
- const g = c[d];
328
- return m && !g ? u[h] = void 0 : u[h] = (g || "").replace(/%2F/g, "/"), u;
327
+ const g = c[f];
328
+ return p && !g ? u[m] = void 0 : u[m] = (g || "").replace(/%2F/g, "/"), u;
329
329
  },
330
330
  {}
331
331
  ),
332
- pathname: o,
332
+ pathname: a,
333
333
  pathnameBase: s,
334
334
  pattern: e
335
335
  };
336
336
  }
337
- function Ve(e, t = !1, n = !0) {
337
+ function Ve(e, t = !1, r = !0) {
338
338
  L(
339
339
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
340
340
  `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(/\*$/, "/*")}".`
341
341
  );
342
- let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
342
+ let o = [], n = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
343
343
  /\/:([\w-]+)(\?)?/g,
344
- (s, c, l) => (a.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
344
+ (s, c, l) => (o.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
345
345
  );
346
- return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
346
+ return e.endsWith("*") ? (o.push({ paramName: "*" }), n += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? n += "\\/*$" : e !== "" && e !== "/" && (n += "(?:(?=\\/|$))"), [new RegExp(n, t ? void 0 : "i"), o];
347
347
  }
348
348
  function ye(e) {
349
349
  try {
@@ -359,76 +359,76 @@ function A(e, t) {
359
359
  if (t === "/") return e;
360
360
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
361
361
  return null;
362
- let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
363
- return a && a !== "/" ? null : e.slice(n) || "/";
362
+ let r = t.endsWith("/") ? t.length - 1 : t.length, o = e.charAt(r);
363
+ return o && o !== "/" ? null : e.slice(r) || "/";
364
364
  }
365
365
  function Ye(e, t = "/") {
366
366
  let {
367
- pathname: n,
368
- search: a = "",
369
- hash: r = ""
367
+ pathname: r,
368
+ search: o = "",
369
+ hash: n = ""
370
370
  } = typeof e == "string" ? Y(e) : e;
371
371
  return {
372
- pathname: n ? n.startsWith("/") ? n : Je(n, t) : t,
373
- search: Ge(a),
374
- hash: Xe(r)
372
+ pathname: r ? r.startsWith("/") ? r : Je(r, t) : t,
373
+ search: Ge(o),
374
+ hash: Xe(n)
375
375
  };
376
376
  }
377
377
  function Je(e, t) {
378
- let n = t.replace(/\/+$/, "").split("/");
379
- return e.split("/").forEach((r) => {
380
- r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
381
- }), n.length > 1 ? n.join("/") : "/";
378
+ let r = t.replace(/\/+$/, "").split("/");
379
+ return e.split("/").forEach((n) => {
380
+ n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
381
+ }), r.length > 1 ? r.join("/") : "/";
382
382
  }
383
- function G(e, t, n, a) {
383
+ function G(e, t, r, o) {
384
384
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
385
- a
386
- )}]. 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.`;
385
+ o
386
+ )}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
387
387
  }
388
388
  function Ke(e) {
389
389
  return e.filter(
390
- (t, n) => n === 0 || t.route.path && t.route.path.length > 0
390
+ (t, r) => r === 0 || t.route.path && t.route.path.length > 0
391
391
  );
392
392
  }
393
393
  function Z(e) {
394
394
  let t = Ke(e);
395
395
  return t.map(
396
- (n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
396
+ (r, o) => o === t.length - 1 ? r.pathname : r.pathnameBase
397
397
  );
398
398
  }
399
- function ee(e, t, n, a = !1) {
400
- let r;
401
- typeof e == "string" ? r = Y(e) : (r = { ...e }, x(
402
- !r.pathname || !r.pathname.includes("?"),
403
- G("?", "pathname", "search", r)
399
+ function ee(e, t, r, o = !1) {
400
+ let n;
401
+ typeof e == "string" ? n = Y(e) : (n = { ...e }, x(
402
+ !n.pathname || !n.pathname.includes("?"),
403
+ G("?", "pathname", "search", n)
404
404
  ), x(
405
- !r.pathname || !r.pathname.includes("#"),
406
- G("#", "pathname", "hash", r)
405
+ !n.pathname || !n.pathname.includes("#"),
406
+ G("#", "pathname", "hash", n)
407
407
  ), x(
408
- !r.search || !r.search.includes("#"),
409
- G("#", "search", "hash", r)
408
+ !n.search || !n.search.includes("#"),
409
+ G("#", "search", "hash", n)
410
410
  ));
411
- let o = e === "" || r.pathname === "", s = o ? "/" : r.pathname, c;
411
+ let a = e === "" || n.pathname === "", s = a ? "/" : n.pathname, c;
412
412
  if (s == null)
413
- c = n;
413
+ c = r;
414
414
  else {
415
- let m = t.length - 1;
416
- if (!a && s.startsWith("..")) {
417
- let d = s.split("/");
418
- for (; d[0] === ".."; )
419
- d.shift(), m -= 1;
420
- r.pathname = d.join("/");
415
+ let p = t.length - 1;
416
+ if (!o && s.startsWith("..")) {
417
+ let f = s.split("/");
418
+ for (; f[0] === ".."; )
419
+ f.shift(), p -= 1;
420
+ n.pathname = f.join("/");
421
421
  }
422
- c = m >= 0 ? t[m] : "/";
422
+ c = p >= 0 ? t[p] : "/";
423
423
  }
424
- let l = Ye(r, c), u = s && s !== "/" && s.endsWith("/"), h = (o || s === ".") && n.endsWith("/");
425
- return !l.pathname.endsWith("/") && (u || h) && (l.pathname += "/"), l;
426
- }
427
- var M = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ln = (e, t = 302) => {
428
- let n = t;
429
- typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
430
- let a = new Headers(n.headers);
431
- return a.set("Location", e), new Response(null, { ...n, headers: a });
424
+ let l = Ye(n, c), u = s && s !== "/" && s.endsWith("/"), m = (a || s === ".") && r.endsWith("/");
425
+ return !l.pathname.endsWith("/") && (u || m) && (l.pathname += "/"), l;
426
+ }
427
+ var M = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ir = (e, t = 302) => {
428
+ let r = t;
429
+ typeof r == "number" ? r = { status: r } : typeof r.status > "u" && (r.status = 302);
430
+ let o = new Headers(r.headers);
431
+ return o.set("Location", e), new Response(null, { ...r, headers: o });
432
432
  };
433
433
  function we(e) {
434
434
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
@@ -447,8 +447,8 @@ var Qe = [
447
447
  ...Ee
448
448
  ];
449
449
  new Set(Qe);
450
- var O = i.createContext(null);
451
- O.displayName = "DataRouter";
450
+ var D = i.createContext(null);
451
+ D.displayName = "DataRouter";
452
452
  var _ = i.createContext(null);
453
453
  _.displayName = "DataRouterState";
454
454
  var J = i.createContext({
@@ -475,8 +475,8 @@ var k = i.createContext({
475
475
  isDataRoute: !1
476
476
  });
477
477
  k.displayName = "Route";
478
- var ne = i.createContext(null);
479
- ne.displayName = "RouteError";
478
+ var re = i.createContext(null);
479
+ re.displayName = "RouteError";
480
480
  function et(e, { relative: t } = {}) {
481
481
  x(
482
482
  I(),
@@ -484,8 +484,8 @@ function et(e, { relative: t } = {}) {
484
484
  // router loaded. We can help them understand how to avoid that.
485
485
  "useHref() may be used only in the context of a <Router> component."
486
486
  );
487
- let { basename: n, navigator: a } = i.useContext(T), { hash: r, pathname: o, search: s } = H(e, { relative: t }), c = o;
488
- return n !== "/" && (c = o === "/" ? n : M([n, o])), a.createHref({ pathname: c, search: s, hash: r });
487
+ let { basename: r, navigator: o } = i.useContext(T), { hash: n, pathname: a, search: s } = H(e, { relative: t }), c = a;
488
+ return r !== "/" && (c = a === "/" ? r : M([r, a])), o.createHref({ pathname: c, search: s, hash: n });
489
489
  }
490
490
  function I() {
491
491
  return i.useContext(K) != null;
@@ -498,7 +498,7 @@ function N() {
498
498
  "useLocation() may be used only in the context of a <Router> component."
499
499
  ), i.useContext(K).location;
500
500
  }
501
- function sn(e) {
501
+ function lr(e) {
502
502
  x(
503
503
  I(),
504
504
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -515,7 +515,7 @@ var xe = "You should call navigate() in a React.useEffect(), not when your compo
515
515
  function Re(e) {
516
516
  i.useContext(T).static || i.useLayoutEffect(e);
517
517
  }
518
- function re() {
518
+ function ne() {
519
519
  let { isDataRoute: e } = i.useContext(k);
520
520
  return e ? ht() : tt();
521
521
  }
@@ -526,117 +526,117 @@ function tt() {
526
526
  // router loaded. We can help them understand how to avoid that.
527
527
  "useNavigate() may be used only in the context of a <Router> component."
528
528
  );
529
- let e = i.useContext(O), { basename: t, navigator: n } = i.useContext(T), { matches: a } = i.useContext(k), { pathname: r } = N(), o = JSON.stringify(Z(a)), s = i.useRef(!1);
529
+ let e = i.useContext(D), { basename: t, navigator: r } = i.useContext(T), { matches: o } = i.useContext(k), { pathname: n } = N(), a = JSON.stringify(Z(o)), s = i.useRef(!1);
530
530
  return Re(() => {
531
531
  s.current = !0;
532
532
  }), i.useCallback(
533
533
  (l, u = {}) => {
534
534
  if (L(s.current, xe), !s.current) return;
535
535
  if (typeof l == "number") {
536
- n.go(l);
536
+ r.go(l);
537
537
  return;
538
538
  }
539
- let h = ee(
539
+ let m = ee(
540
540
  l,
541
- JSON.parse(o),
542
- r,
541
+ JSON.parse(a),
542
+ n,
543
543
  u.relative === "path"
544
544
  );
545
- e == null && t !== "/" && (h.pathname = h.pathname === "/" ? t : M([t, h.pathname])), (u.replace ? n.replace : n.push)(
546
- h,
545
+ e == null && t !== "/" && (m.pathname = m.pathname === "/" ? t : M([t, m.pathname])), (u.replace ? r.replace : r.push)(
546
+ m,
547
547
  u.state,
548
548
  u
549
549
  );
550
550
  },
551
551
  [
552
552
  t,
553
- n,
554
- o,
555
553
  r,
554
+ a,
555
+ n,
556
556
  e
557
557
  ]
558
558
  );
559
559
  }
560
- var nt = i.createContext(null);
561
- function rt(e) {
560
+ var rt = i.createContext(null);
561
+ function nt(e) {
562
562
  let t = i.useContext(k).outlet;
563
- return t && /* @__PURE__ */ i.createElement(nt.Provider, { value: e }, t);
563
+ return t && /* @__PURE__ */ i.createElement(rt.Provider, { value: e }, t);
564
564
  }
565
- function un() {
565
+ function sr() {
566
566
  let { matches: e } = i.useContext(k), t = e[e.length - 1];
567
567
  return t ? t.params : {};
568
568
  }
569
569
  function H(e, { relative: t } = {}) {
570
- let { matches: n } = i.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
570
+ let { matches: r } = i.useContext(k), { pathname: o } = N(), n = JSON.stringify(Z(r));
571
571
  return i.useMemo(
572
572
  () => ee(
573
573
  e,
574
- JSON.parse(r),
575
- a,
574
+ JSON.parse(n),
575
+ o,
576
576
  t === "path"
577
577
  ),
578
- [e, r, a, t]
578
+ [e, n, o, t]
579
579
  );
580
580
  }
581
- function be(e, t, n, a) {
581
+ function be(e, t, r, o) {
582
582
  x(
583
583
  I(),
584
584
  // TODO: This error is probably because they somehow have 2 versions of the
585
585
  // router loaded. We can help them understand how to avoid that.
586
586
  "useRoutes() may be used only in the context of a <Router> component."
587
587
  );
588
- let { navigator: r, static: o } = i.useContext(T), { matches: s } = i.useContext(k), c = s[s.length - 1], l = c ? c.params : {}, u = c ? c.pathname : "/", h = c ? c.pathnameBase : "/", m = c && c.route;
588
+ let { navigator: n } = i.useContext(T), { matches: a } = i.useContext(k), s = a[a.length - 1], c = s ? s.params : {}, l = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", m = s && s.route;
589
589
  {
590
- let v = m && m.path || "";
590
+ let h = m && m.path || "";
591
591
  Se(
592
- u,
593
- !m || v.endsWith("*") || v.endsWith("*?"),
594
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) 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.
592
+ l,
593
+ !m || h.endsWith("*") || h.endsWith("*?"),
594
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${h}">) 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.
595
595
 
596
- Please change the parent <Route path="${v}"> to <Route path="${v === "/" ? "*" : `${v}/*`}">.`
596
+ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
597
597
  );
598
598
  }
599
- let d = N(), g;
600
- g = d;
601
- let f = g.pathname || "/", w = f;
602
- if (h !== "/") {
603
- let v = h.replace(/^\//, "").split("/");
604
- w = "/" + f.replace(/^\//, "").split("/").slice(v.length).join("/");
599
+ let p = N(), f;
600
+ f = p;
601
+ let g = f.pathname || "/", d = g;
602
+ if (u !== "/") {
603
+ let h = u.replace(/^\//, "").split("/");
604
+ d = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
605
605
  }
606
- let E = !o && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
606
+ let v = pe(e, { pathname: d });
607
607
  return L(
608
- m || E != null,
609
- `No routes matched location "${g.pathname}${g.search}${g.hash}" `
608
+ m || v != null,
609
+ `No routes matched location "${f.pathname}${f.search}${f.hash}" `
610
610
  ), L(
611
- E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0,
612
- `Matched leaf route at location "${g.pathname}${g.search}${g.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.`
611
+ 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,
612
+ `Matched leaf route at location "${f.pathname}${f.search}${f.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.`
613
613
  ), st(
614
- E && E.map(
615
- (v) => Object.assign({}, v, {
616
- params: Object.assign({}, l, v.params),
614
+ v && v.map(
615
+ (h) => Object.assign({}, h, {
616
+ params: Object.assign({}, c, h.params),
617
617
  pathname: M([
618
- h,
618
+ u,
619
619
  // Re-encode pathnames that were decoded inside matchRoutes
620
- r.encodeLocation ? r.encodeLocation(v.pathname).pathname : v.pathname
620
+ n.encodeLocation ? n.encodeLocation(h.pathname).pathname : h.pathname
621
621
  ]),
622
- pathnameBase: v.pathnameBase === "/" ? h : M([
623
- h,
622
+ pathnameBase: h.pathnameBase === "/" ? u : M([
623
+ u,
624
624
  // Re-encode pathnames that were decoded inside matchRoutes
625
- r.encodeLocation ? r.encodeLocation(v.pathnameBase).pathname : v.pathnameBase
625
+ n.encodeLocation ? n.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
626
626
  ])
627
627
  })
628
628
  ),
629
- s,
630
- n,
631
- a
629
+ a,
630
+ r,
631
+ o
632
632
  );
633
633
  }
634
634
  function at() {
635
- let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, s = null;
635
+ let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", n = { padding: "0.5rem", backgroundColor: o }, a = { padding: "2px 4px", backgroundColor: o }, s = null;
636
636
  return console.error(
637
637
  "Error handled by React Router default ErrorBoundary:",
638
638
  e
639
- ), s = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ i.createElement("pre", { style: r }, n) : null, s);
639
+ ), s = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ i.createElement("pre", { style: n }, r) : null, s);
640
640
  }
641
641
  var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Component {
642
642
  constructor(e) {
@@ -669,7 +669,7 @@ var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Compone
669
669
  }
670
670
  render() {
671
671
  return this.state.error !== void 0 ? /* @__PURE__ */ i.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ i.createElement(
672
- ne.Provider,
672
+ re.Provider,
673
673
  {
674
674
  value: this.state.error,
675
675
  children: this.props.component
@@ -677,79 +677,79 @@ var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Compone
677
677
  )) : this.props.children;
678
678
  }
679
679
  };
680
- function lt({ routeContext: e, match: t, children: n }) {
681
- let a = i.useContext(O);
682
- return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(k.Provider, { value: e }, n);
680
+ function lt({ routeContext: e, match: t, children: r }) {
681
+ let o = i.useContext(D);
682
+ return o && o.static && o.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(k.Provider, { value: e }, r);
683
683
  }
684
- function st(e, t = [], n = null, a = null) {
684
+ function st(e, t = [], r = null, o = null) {
685
685
  if (e == null) {
686
- if (!n)
686
+ if (!r)
687
687
  return null;
688
- if (n.errors)
689
- e = n.matches;
690
- else if (t.length === 0 && !n.initialized && n.matches.length > 0)
691
- e = n.matches;
688
+ if (r.errors)
689
+ e = r.matches;
690
+ else if (t.length === 0 && !r.initialized && r.matches.length > 0)
691
+ e = r.matches;
692
692
  else
693
693
  return null;
694
694
  }
695
- let r = e, o = n?.errors;
696
- if (o != null) {
697
- let l = r.findIndex(
698
- (u) => u.route.id && o?.[u.route.id] !== void 0
695
+ let n = e, a = r?.errors;
696
+ if (a != null) {
697
+ let l = n.findIndex(
698
+ (u) => u.route.id && a?.[u.route.id] !== void 0
699
699
  );
700
700
  x(
701
701
  l >= 0,
702
702
  `Could not find a matching route for errors on route IDs: ${Object.keys(
703
- o
703
+ a
704
704
  ).join(",")}`
705
- ), r = r.slice(
705
+ ), n = n.slice(
706
706
  0,
707
- Math.min(r.length, l + 1)
707
+ Math.min(n.length, l + 1)
708
708
  );
709
709
  }
710
710
  let s = !1, c = -1;
711
- if (n)
712
- for (let l = 0; l < r.length; l++) {
713
- let u = r[l];
711
+ if (r)
712
+ for (let l = 0; l < n.length; l++) {
713
+ let u = n[l];
714
714
  if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = l), u.route.id) {
715
- let { loaderData: h, errors: m } = n, d = u.route.loader && !h.hasOwnProperty(u.route.id) && (!m || m[u.route.id] === void 0);
716
- if (u.route.lazy || d) {
717
- s = !0, c >= 0 ? r = r.slice(0, c + 1) : r = [r[0]];
715
+ let { loaderData: m, errors: p } = r, f = u.route.loader && !m.hasOwnProperty(u.route.id) && (!p || p[u.route.id] === void 0);
716
+ if (u.route.lazy || f) {
717
+ s = !0, c >= 0 ? n = n.slice(0, c + 1) : n = [n[0]];
718
718
  break;
719
719
  }
720
720
  }
721
721
  }
722
- return r.reduceRight((l, u, h) => {
723
- let m, d = !1, g = null, f = null;
724
- n && (m = o && u.route.id ? o[u.route.id] : void 0, g = u.route.errorElement || ot, s && (c < 0 && h === 0 ? (Se(
722
+ return n.reduceRight((l, u, m) => {
723
+ let p, f = !1, g = null, d = null;
724
+ r && (p = a && u.route.id ? a[u.route.id] : void 0, g = u.route.errorElement || ot, s && (c < 0 && m === 0 ? (Se(
725
725
  "route-fallback",
726
726
  !1,
727
727
  "No `HydrateFallback` element provided to render during initial hydration"
728
- ), d = !0, f = null) : c === h && (d = !0, f = u.route.hydrateFallbackElement || null)));
729
- let w = t.concat(r.slice(0, h + 1)), E = () => {
730
- let p;
731
- return m ? p = g : d ? p = f : u.route.Component ? p = /* @__PURE__ */ i.createElement(u.route.Component, null) : u.route.element ? p = u.route.element : p = l, /* @__PURE__ */ i.createElement(
728
+ ), f = !0, d = null) : c === m && (f = !0, d = u.route.hydrateFallbackElement || null)));
729
+ let v = t.concat(n.slice(0, m + 1)), E = () => {
730
+ let h;
731
+ return p ? h = g : f ? h = d : u.route.Component ? h = /* @__PURE__ */ i.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = l, /* @__PURE__ */ i.createElement(
732
732
  lt,
733
733
  {
734
734
  match: u,
735
735
  routeContext: {
736
736
  outlet: l,
737
- matches: w,
738
- isDataRoute: n != null
737
+ matches: v,
738
+ isDataRoute: r != null
739
739
  },
740
- children: p
740
+ children: h
741
741
  }
742
742
  );
743
743
  };
744
- return n && (u.route.ErrorBoundary || u.route.errorElement || h === 0) ? /* @__PURE__ */ i.createElement(
744
+ return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ i.createElement(
745
745
  it,
746
746
  {
747
- location: n.location,
748
- revalidation: n.revalidation,
747
+ location: r.location,
748
+ revalidation: r.revalidation,
749
749
  component: g,
750
- error: m,
750
+ error: p,
751
751
  children: E(),
752
- routeContext: { outlet: null, matches: w, isDataRoute: !0 }
752
+ routeContext: { outlet: null, matches: v, isDataRoute: !0 }
753
753
  }
754
754
  ) : E();
755
755
  }, null);
@@ -758,7 +758,7 @@ function ae(e) {
758
758
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
759
759
  }
760
760
  function ut(e) {
761
- let t = i.useContext(O);
761
+ let t = i.useContext(D);
762
762
  return x(t, ae(e)), t;
763
763
  }
764
764
  function Ce(e) {
@@ -770,11 +770,11 @@ function ct(e) {
770
770
  return x(t, ae(e)), t;
771
771
  }
772
772
  function oe(e) {
773
- let t = ct(e), n = t.matches[t.matches.length - 1];
773
+ let t = ct(e), r = t.matches[t.matches.length - 1];
774
774
  return x(
775
- n.route.id,
775
+ r.route.id,
776
776
  `${e} can only be used on routes that contain a unique "id"`
777
- ), n.route.id;
777
+ ), r.route.id;
778
778
  }
779
779
  function ft() {
780
780
  return oe(
@@ -782,21 +782,21 @@ function ft() {
782
782
  /* UseRouteId */
783
783
  );
784
784
  }
785
- function cn() {
785
+ function ur() {
786
786
  return Ce(
787
787
  "useNavigation"
788
788
  /* UseNavigation */
789
789
  ).navigation;
790
790
  }
791
791
  function dt() {
792
- let e = i.useContext(ne), t = Ce(
792
+ let e = i.useContext(re), t = Ce(
793
793
  "useRouteError"
794
794
  /* UseRouteError */
795
- ), n = oe(
795
+ ), r = oe(
796
796
  "useRouteError"
797
797
  /* UseRouteError */
798
798
  );
799
- return e !== void 0 ? e : t.errors?.[n];
799
+ return e !== void 0 ? e : t.errors?.[r];
800
800
  }
801
801
  function ht() {
802
802
  let { router: e } = ut(
@@ -805,19 +805,19 @@ function ht() {
805
805
  ), t = oe(
806
806
  "useNavigate"
807
807
  /* UseNavigateStable */
808
- ), n = i.useRef(!1);
808
+ ), r = i.useRef(!1);
809
809
  return Re(() => {
810
- n.current = !0;
810
+ r.current = !0;
811
811
  }), i.useCallback(
812
- async (r, o = {}) => {
813
- L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...o }));
812
+ async (n, a = {}) => {
813
+ L(r.current, xe), r.current && (typeof n == "number" ? e.navigate(n) : await e.navigate(n, { fromRouteId: t, ...a }));
814
814
  },
815
815
  [e, t]
816
816
  );
817
817
  }
818
818
  var fe = {};
819
- function Se(e, t, n) {
820
- !t && !fe[e] && (fe[e] = !0, L(!1, n));
819
+ function Se(e, t, r) {
820
+ !t && !fe[e] && (fe[e] = !0, L(!1, r));
821
821
  }
822
822
  var de = {};
823
823
  function he(e, t) {
@@ -826,25 +826,25 @@ function he(e, t) {
826
826
  var mt = class {
827
827
  constructor() {
828
828
  this.status = "pending", this.promise = new Promise((e, t) => {
829
- this.resolve = (n) => {
830
- this.status === "pending" && (this.status = "resolved", e(n));
831
- }, this.reject = (n) => {
832
- this.status === "pending" && (this.status = "rejected", t(n));
829
+ this.resolve = (r) => {
830
+ this.status === "pending" && (this.status = "resolved", e(r));
831
+ }, this.reject = (r) => {
832
+ this.status === "pending" && (this.status = "rejected", t(r));
833
833
  };
834
834
  });
835
835
  }
836
836
  };
837
- function fn({
837
+ function cr({
838
838
  router: e,
839
839
  flushSync: t
840
840
  }) {
841
- let [n, a] = i.useState(e.state), [r, o] = i.useState(), [s, c] = i.useState({
841
+ let [r, o] = i.useState(e.state), [n, a] = i.useState(), [s, c] = i.useState({
842
842
  isTransitioning: !1
843
- }), [l, u] = i.useState(), [h, m] = i.useState(), [d, g] = i.useState(), f = i.useRef(/* @__PURE__ */ new Map()), w = i.useCallback(
843
+ }), [l, u] = i.useState(), [m, p] = i.useState(), [f, g] = i.useState(), d = i.useRef(/* @__PURE__ */ new Map()), v = i.useCallback(
844
844
  (y, { deletedFetchers: b, flushSync: R, viewTransitionOpts: C }) => {
845
845
  y.fetchers.forEach((S, P) => {
846
- S.data !== void 0 && f.current.set(P, S.data);
847
- }), b.forEach((S) => f.current.delete(S)), he(
846
+ S.data !== void 0 && d.current.set(P, S.data);
847
+ }), b.forEach((S) => d.current.delete(S)), he(
848
848
  R === !1 || t != null,
849
849
  'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
850
850
  );
@@ -853,12 +853,12 @@ function fn({
853
853
  C == null || $,
854
854
  "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
855
855
  ), !C || !$) {
856
- t && R ? t(() => a(y)) : i.startTransition(() => a(y));
856
+ t && R ? t(() => o(y)) : i.startTransition(() => o(y));
857
857
  return;
858
858
  }
859
859
  if (t && R) {
860
860
  t(() => {
861
- h && (l && l.resolve(), h.skipTransition()), c({
861
+ m && (l && l.resolve(), m.skipTransition()), c({
862
862
  isTransitioning: !0,
863
863
  flushSync: !0,
864
864
  currentLocation: C.currentLocation,
@@ -866,49 +866,49 @@ function fn({
866
866
  });
867
867
  });
868
868
  let S = e.window.document.startViewTransition(() => {
869
- t(() => a(y));
869
+ t(() => o(y));
870
870
  });
871
871
  S.finished.finally(() => {
872
872
  t(() => {
873
- u(void 0), m(void 0), o(void 0), c({ isTransitioning: !1 });
873
+ u(void 0), p(void 0), a(void 0), c({ isTransitioning: !1 });
874
874
  });
875
- }), t(() => m(S));
875
+ }), t(() => p(S));
876
876
  return;
877
877
  }
878
- h ? (l && l.resolve(), h.skipTransition(), g({
878
+ m ? (l && l.resolve(), m.skipTransition(), g({
879
879
  state: y,
880
880
  currentLocation: C.currentLocation,
881
881
  nextLocation: C.nextLocation
882
- })) : (o(y), c({
882
+ })) : (a(y), c({
883
883
  isTransitioning: !0,
884
884
  flushSync: !1,
885
885
  currentLocation: C.currentLocation,
886
886
  nextLocation: C.nextLocation
887
887
  }));
888
888
  },
889
- [e.window, t, h, l]
889
+ [e.window, t, m, l]
890
890
  );
891
- i.useLayoutEffect(() => e.subscribe(w), [e, w]), i.useEffect(() => {
891
+ i.useLayoutEffect(() => e.subscribe(v), [e, v]), i.useEffect(() => {
892
892
  s.isTransitioning && !s.flushSync && u(new mt());
893
893
  }, [s]), i.useEffect(() => {
894
- if (l && r && e.window) {
895
- let y = r, b = l.promise, R = e.window.document.startViewTransition(async () => {
896
- i.startTransition(() => a(y)), await b;
894
+ if (l && n && e.window) {
895
+ let y = n, b = l.promise, R = e.window.document.startViewTransition(async () => {
896
+ i.startTransition(() => o(y)), await b;
897
897
  });
898
898
  R.finished.finally(() => {
899
- u(void 0), m(void 0), o(void 0), c({ isTransitioning: !1 });
900
- }), m(R);
899
+ u(void 0), p(void 0), a(void 0), c({ isTransitioning: !1 });
900
+ }), p(R);
901
901
  }
902
- }, [r, l, e.window]), i.useEffect(() => {
903
- l && r && n.location.key === r.location.key && l.resolve();
904
- }, [l, h, n.location, r]), i.useEffect(() => {
905
- !s.isTransitioning && d && (o(d.state), c({
902
+ }, [n, l, e.window]), i.useEffect(() => {
903
+ l && n && r.location.key === n.location.key && l.resolve();
904
+ }, [l, m, r.location, n]), i.useEffect(() => {
905
+ !s.isTransitioning && f && (a(f.state), c({
906
906
  isTransitioning: !0,
907
907
  flushSync: !1,
908
- currentLocation: d.currentLocation,
909
- nextLocation: d.nextLocation
908
+ currentLocation: f.currentLocation,
909
+ nextLocation: f.nextLocation
910
910
  }), g(void 0));
911
- }, [s.isTransitioning, d]);
911
+ }, [s.isTransitioning, f]);
912
912
  let E = i.useMemo(() => ({
913
913
  createHref: e.createHref,
914
914
  encodeLocation: e.encodeLocation,
@@ -922,21 +922,21 @@ function fn({
922
922
  state: b,
923
923
  preventScrollReset: R?.preventScrollReset
924
924
  })
925
- }), [e]), p = e.basename || "/", v = i.useMemo(
925
+ }), [e]), h = e.basename || "/", w = i.useMemo(
926
926
  () => ({
927
927
  router: e,
928
928
  navigator: E,
929
929
  static: !1,
930
- basename: p
930
+ basename: h
931
931
  }),
932
- [e, E, p]
932
+ [e, E, h]
933
933
  );
934
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: v }, /* @__PURE__ */ i.createElement(_.Provider, { value: n }, /* @__PURE__ */ i.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ i.createElement(J.Provider, { value: s }, /* @__PURE__ */ i.createElement(
934
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(D.Provider, { value: w }, /* @__PURE__ */ i.createElement(_.Provider, { value: r }, /* @__PURE__ */ i.createElement(te.Provider, { value: d.current }, /* @__PURE__ */ i.createElement(J.Provider, { value: s }, /* @__PURE__ */ i.createElement(
935
935
  Pe,
936
936
  {
937
- basename: p,
938
- location: n.location,
939
- navigationType: n.historyAction,
937
+ basename: h,
938
+ location: r.location,
939
+ navigationType: r.historyAction,
940
940
  navigator: E
941
941
  },
942
942
  /* @__PURE__ */ i.createElement(
@@ -944,7 +944,7 @@ function fn({
944
944
  {
945
945
  routes: e.routes,
946
946
  future: e.future,
947
- state: n
947
+ state: r
948
948
  }
949
949
  )
950
950
  ))))), null);
@@ -953,15 +953,15 @@ var pt = i.memo(gt);
953
953
  function gt({
954
954
  routes: e,
955
955
  future: t,
956
- state: n
956
+ state: r
957
957
  }) {
958
- return be(e, void 0, n, t);
958
+ return be(e, void 0, r, t);
959
959
  }
960
- function dn({
960
+ function fr({
961
961
  to: e,
962
962
  replace: t,
963
- state: n,
964
- relative: a
963
+ state: r,
964
+ relative: o
965
965
  }) {
966
966
  x(
967
967
  I(),
@@ -969,31 +969,31 @@ function dn({
969
969
  // the router loaded. We can help them understand how to avoid that.
970
970
  "<Navigate> may be used only in the context of a <Router> component."
971
971
  );
972
- let { static: r } = i.useContext(T);
972
+ let { static: n } = i.useContext(T);
973
973
  L(
974
- !r,
974
+ !n,
975
975
  "<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."
976
976
  );
977
- let { matches: o } = i.useContext(k), { pathname: s } = N(), c = re(), l = ee(
977
+ let { matches: a } = i.useContext(k), { pathname: s } = N(), c = ne(), l = ee(
978
978
  e,
979
- Z(o),
979
+ Z(a),
980
980
  s,
981
- a === "path"
981
+ o === "path"
982
982
  ), u = JSON.stringify(l);
983
983
  return i.useEffect(() => {
984
- c(JSON.parse(u), { replace: t, state: n, relative: a });
985
- }, [c, u, a, t, n]), null;
984
+ c(JSON.parse(u), { replace: t, state: r, relative: o });
985
+ }, [c, u, o, t, r]), null;
986
986
  }
987
- function hn(e) {
988
- return rt(e.context);
987
+ function dr(e) {
988
+ return nt(e.context);
989
989
  }
990
990
  function Pe({
991
991
  basename: e = "/",
992
992
  children: t = null,
993
- location: n,
994
- navigationType: a = "POP",
995
- navigator: r,
996
- static: o = !1
993
+ location: r,
994
+ navigationType: o = "POP",
995
+ navigator: n,
996
+ static: a = !1
997
997
  }) {
998
998
  x(
999
999
  !I(),
@@ -1002,38 +1002,38 @@ function Pe({
1002
1002
  let s = e.replace(/^\/*/, "/"), c = i.useMemo(
1003
1003
  () => ({
1004
1004
  basename: s,
1005
- navigator: r,
1006
- static: o,
1005
+ navigator: n,
1006
+ static: a,
1007
1007
  future: {}
1008
1008
  }),
1009
- [s, r, o]
1009
+ [s, n, a]
1010
1010
  );
1011
- typeof n == "string" && (n = Y(n));
1011
+ typeof r == "string" && (r = Y(r));
1012
1012
  let {
1013
1013
  pathname: l = "/",
1014
1014
  search: u = "",
1015
- hash: h = "",
1016
- state: m = null,
1017
- key: d = "default"
1018
- } = n, g = i.useMemo(() => {
1019
- let f = A(l, s);
1020
- return f == null ? null : {
1015
+ hash: m = "",
1016
+ state: p = null,
1017
+ key: f = "default"
1018
+ } = r, g = i.useMemo(() => {
1019
+ let d = A(l, s);
1020
+ return d == null ? null : {
1021
1021
  location: {
1022
- pathname: f,
1022
+ pathname: d,
1023
1023
  search: u,
1024
- hash: h,
1025
- state: m,
1026
- key: d
1024
+ hash: m,
1025
+ state: p,
1026
+ key: f
1027
1027
  },
1028
- navigationType: a
1028
+ navigationType: o
1029
1029
  };
1030
- }, [s, l, u, h, m, d, a]);
1030
+ }, [s, l, u, m, p, f, o]);
1031
1031
  return L(
1032
1032
  g != null,
1033
- `<Router basename="${s}"> is not able to match the URL "${l}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`
1033
+ `<Router basename="${s}"> is not able to match the URL "${l}${u}${m}" because it does not start with the basename, so the <Router> won't render anything.`
1034
1034
  ), g == null ? null : /* @__PURE__ */ i.createElement(T.Provider, { value: c }, /* @__PURE__ */ i.createElement(K.Provider, { children: t, value: g }));
1035
1035
  }
1036
- var j = "get", V = "application/x-www-form-urlencoded";
1036
+ var z = "get", V = "application/x-www-form-urlencoded";
1037
1037
  function q(e) {
1038
1038
  return e != null && typeof e.tagName == "string";
1039
1039
  }
@@ -1056,35 +1056,35 @@ function xt(e, t) {
1056
1056
  }
1057
1057
  function Q(e = "") {
1058
1058
  return new URLSearchParams(
1059
- typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
1060
- let a = e[n];
1059
+ typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
1060
+ let o = e[r];
1061
1061
  return t.concat(
1062
- Array.isArray(a) ? a.map((r) => [n, r]) : [[n, a]]
1062
+ Array.isArray(o) ? o.map((n) => [r, n]) : [[r, o]]
1063
1063
  );
1064
1064
  }, [])
1065
1065
  );
1066
1066
  }
1067
1067
  function Rt(e, t) {
1068
- let n = Q(e);
1069
- return t && t.forEach((a, r) => {
1070
- n.has(r) || t.getAll(r).forEach((o) => {
1071
- n.append(r, o);
1068
+ let r = Q(e);
1069
+ return t && t.forEach((o, n) => {
1070
+ r.has(n) || t.getAll(n).forEach((a) => {
1071
+ r.append(n, a);
1072
1072
  });
1073
- }), n;
1073
+ }), r;
1074
1074
  }
1075
- var z = null;
1075
+ var j = null;
1076
1076
  function bt() {
1077
- if (z === null)
1077
+ if (j === null)
1078
1078
  try {
1079
1079
  new FormData(
1080
1080
  document.createElement("form"),
1081
1081
  // @ts-expect-error if FormData supports the submitter parameter, this will throw
1082
1082
  0
1083
- ), z = !1;
1083
+ ), j = !1;
1084
1084
  } catch {
1085
- z = !0;
1085
+ j = !0;
1086
1086
  }
1087
- return z;
1087
+ return j;
1088
1088
  }
1089
1089
  var Ct = /* @__PURE__ */ new Set([
1090
1090
  "application/x-www-form-urlencoded",
@@ -1098,10 +1098,10 @@ function X(e) {
1098
1098
  ), null) : e;
1099
1099
  }
1100
1100
  function St(e, t) {
1101
- let n, a, r, o, s;
1101
+ let r, o, n, a, s;
1102
1102
  if (yt(e)) {
1103
1103
  let c = e.getAttribute("action");
1104
- a = c ? A(c, t) : null, n = e.getAttribute("method") || j, r = X(e.getAttribute("enctype")) || V, o = new FormData(e);
1104
+ o = c ? A(c, t) : null, r = e.getAttribute("method") || z, n = X(e.getAttribute("enctype")) || V, a = new FormData(e);
1105
1105
  } else if (vt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
1106
1106
  let c = e.form;
1107
1107
  if (c == null)
@@ -1109,21 +1109,21 @@ function St(e, t) {
1109
1109
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1110
1110
  );
1111
1111
  let l = e.getAttribute("formaction") || c.getAttribute("action");
1112
- if (a = l ? A(l, t) : null, n = e.getAttribute("formmethod") || c.getAttribute("method") || j, r = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || V, o = new FormData(c, e), !bt()) {
1113
- let { name: u, type: h, value: m } = e;
1114
- if (h === "image") {
1115
- let d = u ? `${u}.` : "";
1116
- o.append(`${d}x`, "0"), o.append(`${d}y`, "0");
1117
- } else u && o.append(u, m);
1112
+ if (o = l ? A(l, t) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || z, n = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || V, a = new FormData(c, e), !bt()) {
1113
+ let { name: u, type: m, value: p } = e;
1114
+ if (m === "image") {
1115
+ let f = u ? `${u}.` : "";
1116
+ a.append(`${f}x`, "0"), a.append(`${f}y`, "0");
1117
+ } else u && a.append(u, p);
1118
1118
  }
1119
1119
  } else {
1120
1120
  if (q(e))
1121
1121
  throw new Error(
1122
1122
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1123
1123
  );
1124
- n = j, a = null, r = V, s = e;
1124
+ r = z, o = null, n = V, s = e;
1125
1125
  }
1126
- return o && r === "text/plain" && (s = o, o = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: o, body: s };
1126
+ return a && n === "text/plain" && (s = a, a = void 0), { action: o, method: r.toLowerCase(), encType: n, formData: a, body: s };
1127
1127
  }
1128
1128
  function ie(e, t) {
1129
1129
  if (e === !1 || e === null || typeof e > "u")
@@ -1133,78 +1133,78 @@ async function Pt(e, t) {
1133
1133
  if (e.id in t)
1134
1134
  return t[e.id];
1135
1135
  try {
1136
- let n = await import(
1136
+ let r = await import(
1137
1137
  /* @vite-ignore */
1138
1138
  /* webpackIgnore: true */
1139
1139
  e.module
1140
1140
  );
1141
- return t[e.id] = n, n;
1142
- } catch (n) {
1141
+ return t[e.id] = r, r;
1142
+ } catch (r) {
1143
1143
  return console.error(
1144
1144
  `Error loading route module \`${e.module}\`, reloading page...`
1145
- ), console.error(n), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
1145
+ ), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
1146
1146
  });
1147
1147
  }
1148
1148
  }
1149
1149
  function Lt(e) {
1150
1150
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1151
1151
  }
1152
- async function kt(e, t, n) {
1153
- let a = await Promise.all(
1154
- e.map(async (r) => {
1155
- let o = t.routes[r.route.id];
1156
- if (o) {
1157
- let s = await Pt(o, n);
1152
+ async function kt(e, t, r) {
1153
+ let o = await Promise.all(
1154
+ e.map(async (n) => {
1155
+ let a = t.routes[n.route.id];
1156
+ if (a) {
1157
+ let s = await Pt(a, r);
1158
1158
  return s.links ? s.links() : [];
1159
1159
  }
1160
1160
  return [];
1161
1161
  })
1162
1162
  );
1163
1163
  return Mt(
1164
- a.flat(1).filter(Lt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
1165
- (r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
1164
+ o.flat(1).filter(Lt).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map(
1165
+ (n) => n.rel === "stylesheet" ? { ...n, rel: "prefetch", as: "style" } : { ...n, rel: "prefetch" }
1166
1166
  )
1167
1167
  );
1168
1168
  }
1169
- function me(e, t, n, a, r, o) {
1170
- let s = (l, u) => n[u] ? l.route.id !== n[u].route.id : !0, c = (l, u) => (
1169
+ function me(e, t, r, o, n, a) {
1170
+ let s = (l, u) => r[u] ? l.route.id !== r[u].route.id : !0, c = (l, u) => (
1171
1171
  // param change, /users/123 -> /users/456
1172
- n[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
1172
+ r[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
1173
1173
  // e.g. /files/images/avatar.jpg -> files/finances.xls
1174
- n[u].route.path?.endsWith("*") && n[u].params["*"] !== l.params["*"]
1174
+ r[u].route.path?.endsWith("*") && r[u].params["*"] !== l.params["*"]
1175
1175
  );
1176
- return o === "assets" ? t.filter(
1176
+ return a === "assets" ? t.filter(
1177
1177
  (l, u) => s(l, u) || c(l, u)
1178
- ) : o === "data" ? t.filter((l, u) => {
1179
- let h = a.routes[l.route.id];
1180
- if (!h || !h.hasLoader)
1178
+ ) : a === "data" ? t.filter((l, u) => {
1179
+ let m = o.routes[l.route.id];
1180
+ if (!m || !m.hasLoader)
1181
1181
  return !1;
1182
1182
  if (s(l, u) || c(l, u))
1183
1183
  return !0;
1184
1184
  if (l.route.shouldRevalidate) {
1185
- let m = l.route.shouldRevalidate({
1185
+ let p = l.route.shouldRevalidate({
1186
1186
  currentUrl: new URL(
1187
- r.pathname + r.search + r.hash,
1187
+ n.pathname + n.search + n.hash,
1188
1188
  window.origin
1189
1189
  ),
1190
- currentParams: n[0]?.params || {},
1190
+ currentParams: r[0]?.params || {},
1191
1191
  nextUrl: new URL(e, window.origin),
1192
1192
  nextParams: l.params,
1193
1193
  defaultShouldRevalidate: !0
1194
1194
  });
1195
- if (typeof m == "boolean")
1196
- return m;
1195
+ if (typeof p == "boolean")
1196
+ return p;
1197
1197
  }
1198
1198
  return !0;
1199
1199
  }) : [];
1200
1200
  }
1201
- function $t(e, t, { includeHydrateFallback: n } = {}) {
1201
+ function $t(e, t, { includeHydrateFallback: r } = {}) {
1202
1202
  return Tt(
1203
- e.map((a) => {
1204
- let r = t.routes[a.route.id];
1205
- if (!r) return [];
1206
- let o = [r.module];
1207
- return r.clientActionModule && (o = o.concat(r.clientActionModule)), r.clientLoaderModule && (o = o.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (o = o.concat(r.hydrateFallbackModule)), r.imports && (o = o.concat(r.imports)), o;
1203
+ e.map((o) => {
1204
+ let n = t.routes[o.route.id];
1205
+ if (!n) return [];
1206
+ let a = [n.module];
1207
+ return n.clientActionModule && (a = a.concat(n.clientActionModule)), n.clientLoaderModule && (a = a.concat(n.clientLoaderModule)), r && n.hydrateFallbackModule && (a = a.concat(n.hydrateFallbackModule)), n.imports && (a = a.concat(n.imports)), a;
1208
1208
  }).flat(1)
1209
1209
  );
1210
1210
  }
@@ -1212,36 +1212,37 @@ function Tt(e) {
1212
1212
  return [...new Set(e)];
1213
1213
  }
1214
1214
  function Nt(e) {
1215
- let t = {}, n = Object.keys(e).sort();
1216
- for (let a of n)
1217
- t[a] = e[a];
1215
+ let t = {}, r = Object.keys(e).sort();
1216
+ for (let o of r)
1217
+ t[o] = e[o];
1218
1218
  return t;
1219
1219
  }
1220
1220
  function Mt(e, t) {
1221
- let n = /* @__PURE__ */ new Set();
1222
- return new Set(t), e.reduce((a, r) => {
1223
- let o = JSON.stringify(Nt(r));
1224
- return n.has(o) || (n.add(o), a.push({ key: o, link: r })), a;
1221
+ let r = /* @__PURE__ */ new Set();
1222
+ return new Set(t), e.reduce((o, n) => {
1223
+ let a = JSON.stringify(Nt(n));
1224
+ return r.has(a) || (r.add(a), o.push({ key: a, link: n })), o;
1225
1225
  }, []);
1226
1226
  }
1227
+ Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1227
1228
  var At = /* @__PURE__ */ new Set([100, 101, 204, 205]);
1228
- function Dt(e, t) {
1229
- let n = typeof e == "string" ? new URL(
1229
+ function Ot(e, t) {
1230
+ let r = typeof e == "string" ? new URL(
1230
1231
  e,
1231
1232
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
1232
1233
  // don't assume window is available
1233
1234
  typeof window > "u" ? "server://singlefetch/" : window.location.origin
1234
1235
  ) : e;
1235
- return n.pathname === "/" ? n.pathname = "_root.data" : t && A(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
1236
+ return r.pathname === "/" ? r.pathname = "_root.data" : t && A(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
1236
1237
  }
1237
1238
  function Le() {
1238
- let e = i.useContext(O);
1239
+ let e = i.useContext(D);
1239
1240
  return ie(
1240
1241
  e,
1241
1242
  "You must render this element inside a <DataRouterContext.Provider> element"
1242
1243
  ), e;
1243
1244
  }
1244
- function Ot() {
1245
+ function Dt() {
1245
1246
  let e = i.useContext(_);
1246
1247
  return ie(
1247
1248
  e,
@@ -1258,179 +1259,179 @@ function ke() {
1258
1259
  ), e;
1259
1260
  }
1260
1261
  function It(e, t) {
1261
- let n = i.useContext(le), [a, r] = i.useState(!1), [o, s] = i.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: h, onTouchStart: m } = t, d = i.useRef(null);
1262
+ let r = i.useContext(le), [o, n] = i.useState(!1), [a, s] = i.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: m, onTouchStart: p } = t, f = i.useRef(null);
1262
1263
  i.useEffect(() => {
1263
1264
  if (e === "render" && s(!0), e === "viewport") {
1264
- let w = (p) => {
1265
- p.forEach((v) => {
1266
- s(v.isIntersecting);
1265
+ let v = (h) => {
1266
+ h.forEach((w) => {
1267
+ s(w.isIntersecting);
1267
1268
  });
1268
- }, E = new IntersectionObserver(w, { threshold: 0.5 });
1269
- return d.current && E.observe(d.current), () => {
1269
+ }, E = new IntersectionObserver(v, { threshold: 0.5 });
1270
+ return f.current && E.observe(f.current), () => {
1270
1271
  E.disconnect();
1271
1272
  };
1272
1273
  }
1273
1274
  }, [e]), i.useEffect(() => {
1274
- if (a) {
1275
- let w = setTimeout(() => {
1275
+ if (o) {
1276
+ let v = setTimeout(() => {
1276
1277
  s(!0);
1277
1278
  }, 100);
1278
1279
  return () => {
1279
- clearTimeout(w);
1280
+ clearTimeout(v);
1280
1281
  };
1281
1282
  }
1282
- }, [a]);
1283
+ }, [o]);
1283
1284
  let g = () => {
1284
- r(!0);
1285
- }, f = () => {
1286
- r(!1), s(!1);
1285
+ n(!0);
1286
+ }, d = () => {
1287
+ n(!1), s(!1);
1287
1288
  };
1288
- return n ? e !== "intent" ? [o, d, {}] : [
1289
- o,
1290
- d,
1289
+ return r ? e !== "intent" ? [a, f, {}] : [
1290
+ a,
1291
+ f,
1291
1292
  {
1292
1293
  onFocus: U(c, g),
1293
- onBlur: U(l, f),
1294
+ onBlur: U(l, d),
1294
1295
  onMouseEnter: U(u, g),
1295
- onMouseLeave: U(h, f),
1296
- onTouchStart: U(m, g)
1296
+ onMouseLeave: U(m, d),
1297
+ onTouchStart: U(p, g)
1297
1298
  }
1298
- ] : [!1, d, {}];
1299
+ ] : [!1, f, {}];
1299
1300
  }
1300
1301
  function U(e, t) {
1301
- return (n) => {
1302
- e && e(n), n.defaultPrevented || t(n);
1302
+ return (r) => {
1303
+ e && e(r), r.defaultPrevented || t(r);
1303
1304
  };
1304
1305
  }
1305
1306
  function _t({
1306
1307
  page: e,
1307
1308
  ...t
1308
1309
  }) {
1309
- let { router: n } = Le(), a = i.useMemo(
1310
- () => pe(n.routes, e, n.basename),
1311
- [n.routes, e, n.basename]
1310
+ let { router: r } = Le(), o = i.useMemo(
1311
+ () => pe(r.routes, e, r.basename),
1312
+ [r.routes, e, r.basename]
1312
1313
  );
1313
- return a ? /* @__PURE__ */ i.createElement(Ut, { page: e, matches: a, ...t }) : null;
1314
+ return o ? /* @__PURE__ */ i.createElement(Ut, { page: e, matches: o, ...t }) : null;
1314
1315
  }
1315
1316
  function Ft(e) {
1316
- let { manifest: t, routeModules: n } = ke(), [a, r] = i.useState([]);
1317
+ let { manifest: t, routeModules: r } = ke(), [o, n] = i.useState([]);
1317
1318
  return i.useEffect(() => {
1318
- let o = !1;
1319
- return kt(e, t, n).then(
1319
+ let a = !1;
1320
+ return kt(e, t, r).then(
1320
1321
  (s) => {
1321
- o || r(s);
1322
+ a || n(s);
1322
1323
  }
1323
1324
  ), () => {
1324
- o = !0;
1325
+ a = !0;
1325
1326
  };
1326
- }, [e, t, n]), a;
1327
+ }, [e, t, r]), o;
1327
1328
  }
1328
1329
  function Ut({
1329
1330
  page: e,
1330
1331
  matches: t,
1331
- ...n
1332
+ ...r
1332
1333
  }) {
1333
- let a = N(), { manifest: r, routeModules: o } = ke(), { basename: s } = Le(), { loaderData: c, matches: l } = Ot(), u = i.useMemo(
1334
+ let o = N(), { manifest: n, routeModules: a } = ke(), { basename: s } = Le(), { loaderData: c, matches: l } = Dt(), u = i.useMemo(
1334
1335
  () => me(
1335
1336
  e,
1336
1337
  t,
1337
1338
  l,
1338
- r,
1339
- a,
1339
+ n,
1340
+ o,
1340
1341
  "data"
1341
1342
  ),
1342
- [e, t, l, r, a]
1343
- ), h = i.useMemo(
1343
+ [e, t, l, n, o]
1344
+ ), m = i.useMemo(
1344
1345
  () => me(
1345
1346
  e,
1346
1347
  t,
1347
1348
  l,
1348
- r,
1349
- a,
1349
+ n,
1350
+ o,
1350
1351
  "assets"
1351
1352
  ),
1352
- [e, t, l, r, a]
1353
- ), m = i.useMemo(() => {
1354
- if (e === a.pathname + a.search + a.hash)
1353
+ [e, t, l, n, o]
1354
+ ), p = i.useMemo(() => {
1355
+ if (e === o.pathname + o.search + o.hash)
1355
1356
  return [];
1356
- let f = /* @__PURE__ */ new Set(), w = !1;
1357
- if (t.forEach((p) => {
1358
- let v = r.routes[p.route.id];
1359
- !v || !v.hasLoader || (!u.some((y) => y.route.id === p.route.id) && p.route.id in c && o[p.route.id]?.shouldRevalidate || v.hasClientLoader ? w = !0 : f.add(p.route.id));
1360
- }), f.size === 0)
1357
+ let d = /* @__PURE__ */ new Set(), v = !1;
1358
+ if (t.forEach((h) => {
1359
+ let w = n.routes[h.route.id];
1360
+ !w || !w.hasLoader || (!u.some((y) => y.route.id === h.route.id) && h.route.id in c && a[h.route.id]?.shouldRevalidate || w.hasClientLoader ? v = !0 : d.add(h.route.id));
1361
+ }), d.size === 0)
1361
1362
  return [];
1362
- let E = Dt(e, s);
1363
- return w && f.size > 0 && E.searchParams.set(
1363
+ let E = Ot(e, s);
1364
+ return v && d.size > 0 && E.searchParams.set(
1364
1365
  "_routes",
1365
- t.filter((p) => f.has(p.route.id)).map((p) => p.route.id).join(",")
1366
+ t.filter((h) => d.has(h.route.id)).map((h) => h.route.id).join(",")
1366
1367
  ), [E.pathname + E.search];
1367
1368
  }, [
1368
1369
  s,
1369
1370
  c,
1370
- a,
1371
- r,
1371
+ o,
1372
+ n,
1372
1373
  u,
1373
1374
  t,
1374
1375
  e,
1375
- o
1376
- ]), d = i.useMemo(
1377
- () => $t(h, r),
1378
- [h, r]
1379
- ), g = Ft(h);
1380
- return /* @__PURE__ */ i.createElement(i.Fragment, null, m.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), g.map(({ key: f, link: w }) => (
1376
+ a
1377
+ ]), f = i.useMemo(
1378
+ () => $t(m, n),
1379
+ [m, n]
1380
+ ), g = Ft(m);
1381
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, p.map((d) => /* @__PURE__ */ i.createElement("link", { key: d, rel: "prefetch", as: "fetch", href: d, ...r })), f.map((d) => /* @__PURE__ */ i.createElement("link", { key: d, rel: "modulepreload", href: d, ...r })), g.map(({ key: d, link: v }) => (
1381
1382
  // these don't spread `linkProps` because they are full link descriptors
1382
1383
  // already with their own props
1383
- /* @__PURE__ */ i.createElement("link", { key: f, ...w })
1384
+ /* @__PURE__ */ i.createElement("link", { key: d, ...v })
1384
1385
  )));
1385
1386
  }
1386
1387
  function Wt(...e) {
1387
1388
  return (t) => {
1388
- e.forEach((n) => {
1389
- typeof n == "function" ? n(t) : n != null && (n.current = t);
1389
+ e.forEach((r) => {
1390
+ typeof r == "function" ? r(t) : r != null && (r.current = t);
1390
1391
  });
1391
1392
  };
1392
1393
  }
1393
1394
  var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1394
1395
  try {
1395
- $e && (window.__reactRouterVersion = "7.5.2");
1396
+ $e && (window.__reactRouterVersion = "7.6.1");
1396
1397
  } catch {
1397
1398
  }
1398
1399
  var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1399
1400
  function({
1400
1401
  onClick: t,
1401
- discover: n = "render",
1402
- prefetch: a = "none",
1403
- relative: r,
1404
- reloadDocument: o,
1402
+ discover: r = "render",
1403
+ prefetch: o = "none",
1404
+ relative: n,
1405
+ reloadDocument: a,
1405
1406
  replace: s,
1406
1407
  state: c,
1407
1408
  target: l,
1408
1409
  to: u,
1409
- preventScrollReset: h,
1410
- viewTransition: m,
1411
- ...d
1410
+ preventScrollReset: m,
1411
+ viewTransition: p,
1412
+ ...f
1412
1413
  }, g) {
1413
- let { basename: f } = i.useContext(T), w = typeof u == "string" && Te.test(u), E, p = !1;
1414
- if (typeof u == "string" && w && (E = u, $e))
1414
+ let { basename: d } = i.useContext(T), v = typeof u == "string" && Te.test(u), E, h = !1;
1415
+ if (typeof u == "string" && v && (E = u, $e))
1415
1416
  try {
1416
- let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), se = A(D.pathname, f);
1417
- D.origin === P.origin && se != null ? u = se + D.search + D.hash : p = !0;
1417
+ let P = new URL(window.location.href), O = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), se = A(O.pathname, d);
1418
+ O.origin === P.origin && se != null ? u = se + O.search + O.hash : h = !0;
1418
1419
  } catch {
1419
1420
  L(
1420
1421
  !1,
1421
1422
  `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1422
1423
  );
1423
1424
  }
1424
- let v = et(u, { relative: r }), [y, b, R] = It(
1425
- a,
1426
- d
1427
- ), C = jt(u, {
1425
+ let w = et(u, { relative: n }), [y, b, R] = It(
1426
+ o,
1427
+ f
1428
+ ), C = zt(u, {
1428
1429
  replace: s,
1429
1430
  state: c,
1430
1431
  target: l,
1431
- preventScrollReset: h,
1432
- relative: r,
1433
- viewTransition: m
1432
+ preventScrollReset: m,
1433
+ relative: n,
1434
+ viewTransition: p
1434
1435
  });
1435
1436
  function $(P) {
1436
1437
  t && t(P), P.defaultPrevented || C(P);
@@ -1440,57 +1441,57 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1440
1441
  /* @__PURE__ */ i.createElement(
1441
1442
  "a",
1442
1443
  {
1443
- ...d,
1444
+ ...f,
1444
1445
  ...R,
1445
- href: E || v,
1446
- onClick: p || o ? t : $,
1446
+ href: E || w,
1447
+ onClick: h || a ? t : $,
1447
1448
  ref: Wt(g, b),
1448
1449
  target: l,
1449
- "data-discover": !w && n === "render" ? "true" : void 0
1450
+ "data-discover": !v && r === "render" ? "true" : void 0
1450
1451
  }
1451
1452
  )
1452
1453
  );
1453
- return y && !w ? /* @__PURE__ */ i.createElement(i.Fragment, null, S, /* @__PURE__ */ i.createElement(_t, { page: v })) : S;
1454
+ return y && !v ? /* @__PURE__ */ i.createElement(i.Fragment, null, S, /* @__PURE__ */ i.createElement(_t, { page: w })) : S;
1454
1455
  }
1455
1456
  );
1456
1457
  Ne.displayName = "Link";
1457
1458
  var Bt = i.forwardRef(
1458
1459
  function({
1459
1460
  "aria-current": t = "page",
1460
- caseSensitive: n = !1,
1461
- className: a = "",
1462
- end: r = !1,
1463
- style: o,
1461
+ caseSensitive: r = !1,
1462
+ className: o = "",
1463
+ end: n = !1,
1464
+ style: a,
1464
1465
  to: s,
1465
1466
  viewTransition: c,
1466
1467
  children: l,
1467
1468
  ...u
1468
- }, h) {
1469
- let m = H(s, { relative: u.relative }), d = N(), g = i.useContext(_), { navigator: f, basename: w } = i.useContext(T), E = g != null && // Conditional usage is OK here because the usage of a data router is static
1469
+ }, m) {
1470
+ let p = H(s, { relative: u.relative }), f = N(), g = i.useContext(_), { navigator: d, basename: v } = i.useContext(T), E = g != null && // Conditional usage is OK here because the usage of a data router is static
1470
1471
  // eslint-disable-next-line react-hooks/rules-of-hooks
1471
- qt(m) && c === !0, p = f.encodeLocation ? f.encodeLocation(m).pathname : m.pathname, v = d.pathname, y = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1472
- n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, p = p.toLowerCase()), y && w && (y = A(y, w) || y);
1473
- const b = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
1474
- let R = v === p || !r && v.startsWith(p) && v.charAt(b) === "/", C = y != null && (y === p || !r && y.startsWith(p) && y.charAt(p.length) === "/"), $ = {
1472
+ qt(p) && c === !0, h = d.encodeLocation ? d.encodeLocation(p).pathname : p.pathname, w = f.pathname, y = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1473
+ r || (w = w.toLowerCase(), y = y ? y.toLowerCase() : null, h = h.toLowerCase()), y && v && (y = A(y, v) || y);
1474
+ const b = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
1475
+ let R = w === h || !n && w.startsWith(h) && w.charAt(b) === "/", C = y != null && (y === h || !n && y.startsWith(h) && y.charAt(h.length) === "/"), $ = {
1475
1476
  isActive: R,
1476
1477
  isPending: C,
1477
1478
  isTransitioning: E
1478
1479
  }, S = R ? t : void 0, P;
1479
- typeof a == "function" ? P = a($) : P = [
1480
- a,
1480
+ typeof o == "function" ? P = o($) : P = [
1481
+ o,
1481
1482
  R ? "active" : null,
1482
1483
  C ? "pending" : null,
1483
1484
  E ? "transitioning" : null
1484
1485
  ].filter(Boolean).join(" ");
1485
- let D = typeof o == "function" ? o($) : o;
1486
+ let O = typeof a == "function" ? a($) : a;
1486
1487
  return /* @__PURE__ */ i.createElement(
1487
1488
  Ne,
1488
1489
  {
1489
1490
  ...u,
1490
1491
  "aria-current": S,
1491
1492
  className: P,
1492
- ref: h,
1493
- style: D,
1493
+ ref: m,
1494
+ style: O,
1494
1495
  to: s,
1495
1496
  viewTransition: c
1496
1497
  },
@@ -1503,31 +1504,31 @@ var Ht = i.forwardRef(
1503
1504
  ({
1504
1505
  discover: e = "render",
1505
1506
  fetcherKey: t,
1506
- navigate: n,
1507
- reloadDocument: a,
1508
- replace: r,
1509
- state: o,
1510
- method: s = j,
1507
+ navigate: r,
1508
+ reloadDocument: o,
1509
+ replace: n,
1510
+ state: a,
1511
+ method: s = z,
1511
1512
  action: c,
1512
1513
  onSubmit: l,
1513
1514
  relative: u,
1514
- preventScrollReset: h,
1515
- viewTransition: m,
1516
- ...d
1515
+ preventScrollReset: m,
1516
+ viewTransition: p,
1517
+ ...f
1517
1518
  }, g) => {
1518
- let f = Jt(), w = Kt(c, { relative: u }), E = s.toLowerCase() === "get" ? "get" : "post", p = typeof c == "string" && Te.test(c), v = (y) => {
1519
+ let d = Jt(), v = Kt(c, { relative: u }), E = s.toLowerCase() === "get" ? "get" : "post", h = typeof c == "string" && Te.test(c), w = (y) => {
1519
1520
  if (l && l(y), y.defaultPrevented) return;
1520
1521
  y.preventDefault();
1521
1522
  let b = y.nativeEvent.submitter, R = b?.getAttribute("formmethod") || s;
1522
- f(b || y.currentTarget, {
1523
+ d(b || y.currentTarget, {
1523
1524
  fetcherKey: t,
1524
1525
  method: R,
1525
- navigate: n,
1526
- replace: r,
1527
- state: o,
1526
+ navigate: r,
1527
+ replace: n,
1528
+ state: a,
1528
1529
  relative: u,
1529
- preventScrollReset: h,
1530
- viewTransition: m
1530
+ preventScrollReset: m,
1531
+ viewTransition: p
1531
1532
  });
1532
1533
  };
1533
1534
  return /* @__PURE__ */ i.createElement(
@@ -1535,41 +1536,41 @@ var Ht = i.forwardRef(
1535
1536
  {
1536
1537
  ref: g,
1537
1538
  method: E,
1538
- action: w,
1539
- onSubmit: a ? l : v,
1540
- ...d,
1541
- "data-discover": !p && e === "render" ? "true" : void 0
1539
+ action: v,
1540
+ onSubmit: o ? l : w,
1541
+ ...f,
1542
+ "data-discover": !h && e === "render" ? "true" : void 0
1542
1543
  }
1543
1544
  );
1544
1545
  }
1545
1546
  );
1546
1547
  Ht.displayName = "Form";
1547
- function zt(e) {
1548
+ function jt(e) {
1548
1549
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1549
1550
  }
1550
1551
  function Me(e) {
1551
- let t = i.useContext(O);
1552
- return x(t, zt(e)), t;
1552
+ let t = i.useContext(D);
1553
+ return x(t, jt(e)), t;
1553
1554
  }
1554
- function jt(e, {
1555
+ function zt(e, {
1555
1556
  target: t,
1556
- replace: n,
1557
- state: a,
1558
- preventScrollReset: r,
1559
- relative: o,
1557
+ replace: r,
1558
+ state: o,
1559
+ preventScrollReset: n,
1560
+ relative: a,
1560
1561
  viewTransition: s
1561
1562
  } = {}) {
1562
- let c = re(), l = N(), u = H(e, { relative: o });
1563
+ let c = ne(), l = N(), u = H(e, { relative: a });
1563
1564
  return i.useCallback(
1564
- (h) => {
1565
- if (xt(h, t)) {
1566
- h.preventDefault();
1567
- let m = n !== void 0 ? n : W(l) === W(u);
1565
+ (m) => {
1566
+ if (xt(m, t)) {
1567
+ m.preventDefault();
1568
+ let p = r !== void 0 ? r : W(l) === W(u);
1568
1569
  c(e, {
1569
- replace: m,
1570
- state: a,
1571
- preventScrollReset: r,
1572
- relative: o,
1570
+ replace: p,
1571
+ state: o,
1572
+ preventScrollReset: n,
1573
+ relative: a,
1573
1574
  viewTransition: s
1574
1575
  });
1575
1576
  }
@@ -1578,146 +1579,146 @@ function jt(e, {
1578
1579
  l,
1579
1580
  c,
1580
1581
  u,
1581
- n,
1582
- a,
1583
- t,
1584
- e,
1585
1582
  r,
1586
1583
  o,
1584
+ t,
1585
+ e,
1586
+ n,
1587
+ a,
1587
1588
  s
1588
1589
  ]
1589
1590
  );
1590
1591
  }
1591
- function mn(e) {
1592
+ function hr(e) {
1592
1593
  L(
1593
1594
  typeof URLSearchParams < "u",
1594
1595
  "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."
1595
1596
  );
1596
- let t = i.useRef(Q(e)), n = i.useRef(!1), a = N(), r = i.useMemo(
1597
+ let t = i.useRef(Q(e)), r = i.useRef(!1), o = N(), n = i.useMemo(
1597
1598
  () => (
1598
1599
  // Only merge in the defaults if we haven't yet called setSearchParams.
1599
1600
  // Once we call that we want those to take precedence, otherwise you can't
1600
1601
  // remove a param with setSearchParams({}) if it has an initial value
1601
1602
  Rt(
1602
- a.search,
1603
- n.current ? null : t.current
1603
+ o.search,
1604
+ r.current ? null : t.current
1604
1605
  )
1605
1606
  ),
1606
- [a.search]
1607
- ), o = re(), s = i.useCallback(
1607
+ [o.search]
1608
+ ), a = ne(), s = i.useCallback(
1608
1609
  (c, l) => {
1609
1610
  const u = Q(
1610
- typeof c == "function" ? c(r) : c
1611
+ typeof c == "function" ? c(n) : c
1611
1612
  );
1612
- n.current = !0, o("?" + u, l);
1613
+ r.current = !0, a("?" + u, l);
1613
1614
  },
1614
- [o, r]
1615
+ [a, n]
1615
1616
  );
1616
- return [r, s];
1617
+ return [n, s];
1617
1618
  }
1618
1619
  var Vt = 0, Yt = () => `__${String(++Vt)}__`;
1619
1620
  function Jt() {
1620
1621
  let { router: e } = Me(
1621
1622
  "useSubmit"
1622
1623
  /* UseSubmit */
1623
- ), { basename: t } = i.useContext(T), n = ft();
1624
+ ), { basename: t } = i.useContext(T), r = ft();
1624
1625
  return i.useCallback(
1625
- async (a, r = {}) => {
1626
- let { action: o, method: s, encType: c, formData: l, body: u } = St(
1627
- a,
1626
+ async (o, n = {}) => {
1627
+ let { action: a, method: s, encType: c, formData: l, body: u } = St(
1628
+ o,
1628
1629
  t
1629
1630
  );
1630
- if (r.navigate === !1) {
1631
- let h = r.fetcherKey || Yt();
1632
- await e.fetch(h, n, r.action || o, {
1633
- preventScrollReset: r.preventScrollReset,
1631
+ if (n.navigate === !1) {
1632
+ let m = n.fetcherKey || Yt();
1633
+ await e.fetch(m, r, n.action || a, {
1634
+ preventScrollReset: n.preventScrollReset,
1634
1635
  formData: l,
1635
1636
  body: u,
1636
- formMethod: r.method || s,
1637
- formEncType: r.encType || c,
1638
- flushSync: r.flushSync
1637
+ formMethod: n.method || s,
1638
+ formEncType: n.encType || c,
1639
+ flushSync: n.flushSync
1639
1640
  });
1640
1641
  } else
1641
- await e.navigate(r.action || o, {
1642
- preventScrollReset: r.preventScrollReset,
1642
+ await e.navigate(n.action || a, {
1643
+ preventScrollReset: n.preventScrollReset,
1643
1644
  formData: l,
1644
1645
  body: u,
1645
- formMethod: r.method || s,
1646
- formEncType: r.encType || c,
1647
- replace: r.replace,
1648
- state: r.state,
1649
- fromRouteId: n,
1650
- flushSync: r.flushSync,
1651
- viewTransition: r.viewTransition
1646
+ formMethod: n.method || s,
1647
+ formEncType: n.encType || c,
1648
+ replace: n.replace,
1649
+ state: n.state,
1650
+ fromRouteId: r,
1651
+ flushSync: n.flushSync,
1652
+ viewTransition: n.viewTransition
1652
1653
  });
1653
1654
  },
1654
- [e, t, n]
1655
+ [e, t, r]
1655
1656
  );
1656
1657
  }
1657
1658
  function Kt(e, { relative: t } = {}) {
1658
- let { basename: n } = i.useContext(T), a = i.useContext(k);
1659
- x(a, "useFormAction must be used inside a RouteContext");
1660
- let [r] = a.matches.slice(-1), o = { ...H(e || ".", { relative: t }) }, s = N();
1659
+ let { basename: r } = i.useContext(T), o = i.useContext(k);
1660
+ x(o, "useFormAction must be used inside a RouteContext");
1661
+ let [n] = o.matches.slice(-1), a = { ...H(e || ".", { relative: t }) }, s = N();
1661
1662
  if (e == null) {
1662
- o.search = s.search;
1663
- let c = new URLSearchParams(o.search), l = c.getAll("index");
1664
- if (l.some((h) => h === "")) {
1665
- c.delete("index"), l.filter((m) => m).forEach((m) => c.append("index", m));
1666
- let h = c.toString();
1667
- o.search = h ? `?${h}` : "";
1663
+ a.search = s.search;
1664
+ let c = new URLSearchParams(a.search), l = c.getAll("index");
1665
+ if (l.some((m) => m === "")) {
1666
+ c.delete("index"), l.filter((p) => p).forEach((p) => c.append("index", p));
1667
+ let m = c.toString();
1668
+ a.search = m ? `?${m}` : "";
1668
1669
  }
1669
1670
  }
1670
- return (!e || e === ".") && r.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : M([n, o.pathname])), W(o);
1671
+ return (!e || e === ".") && n.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : M([r, a.pathname])), W(a);
1671
1672
  }
1672
1673
  function qt(e, t = {}) {
1673
- let n = i.useContext(J);
1674
+ let r = i.useContext(J);
1674
1675
  x(
1675
- n != null,
1676
+ r != null,
1676
1677
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1677
1678
  );
1678
- let { basename: a } = Me(
1679
+ let { basename: o } = Me(
1679
1680
  "useViewTransitionState"
1680
1681
  /* useViewTransitionState */
1681
- ), r = H(e, { relative: t.relative });
1682
- if (!n.isTransitioning)
1682
+ ), n = H(e, { relative: t.relative });
1683
+ if (!r.isTransitioning)
1683
1684
  return !1;
1684
- let o = A(n.currentLocation.pathname, a) || n.currentLocation.pathname, s = A(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1685
- return B(r.pathname, s) != null || B(r.pathname, o) != null;
1685
+ let a = A(r.currentLocation.pathname, o) || r.currentLocation.pathname, s = A(r.nextLocation.pathname, o) || r.nextLocation.pathname;
1686
+ return B(n.pathname, s) != null || B(n.pathname, a) != null;
1686
1687
  }
1687
- function pn({
1688
+ function mr({
1688
1689
  context: e,
1689
1690
  router: t,
1690
- hydrate: n = !0,
1691
- nonce: a
1691
+ hydrate: r = !0,
1692
+ nonce: o
1692
1693
  }) {
1693
1694
  x(
1694
1695
  t && e,
1695
1696
  "You must provide `router` and `context` to <StaticRouterProvider>"
1696
1697
  );
1697
- let r = {
1698
+ let n = {
1698
1699
  router: t,
1699
1700
  navigator: Qt(),
1700
1701
  static: !0,
1701
1702
  staticContext: e,
1702
1703
  basename: e.basename || "/"
1703
- }, o = /* @__PURE__ */ new Map(), s = "";
1704
- if (n !== !1) {
1704
+ }, a = /* @__PURE__ */ new Map(), s = "";
1705
+ if (r !== !1) {
1705
1706
  let l = {
1706
1707
  loaderData: e.loaderData,
1707
1708
  actionData: e.actionData,
1708
1709
  errors: Xt(e.errors)
1709
1710
  };
1710
- s = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
1711
+ s = `window.__staticRouterHydrationData = JSON.parse(${ar(JSON.stringify(JSON.stringify(l)))});`;
1711
1712
  }
1712
- let { state: c } = r.router;
1713
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: r }, /* @__PURE__ */ i.createElement(_.Provider, { value: c }, /* @__PURE__ */ i.createElement(te.Provider, { value: o }, /* @__PURE__ */ i.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ i.createElement(
1713
+ let { state: c } = n.router;
1714
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(D.Provider, { value: n }, /* @__PURE__ */ i.createElement(_.Provider, { value: c }, /* @__PURE__ */ i.createElement(te.Provider, { value: a }, /* @__PURE__ */ i.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ i.createElement(
1714
1715
  Pe,
1715
1716
  {
1716
- basename: r.basename,
1717
+ basename: n.basename,
1717
1718
  location: c.location,
1718
1719
  navigationType: c.historyAction,
1719
- navigator: r.navigator,
1720
- static: r.static
1720
+ navigator: n.navigator,
1721
+ static: n.static
1721
1722
  },
1722
1723
  /* @__PURE__ */ i.createElement(
1723
1724
  Gt,
@@ -1731,7 +1732,7 @@ function pn({
1731
1732
  "script",
1732
1733
  {
1733
1734
  suppressHydrationWarning: !0,
1734
- nonce: a,
1735
+ nonce: o,
1735
1736
  dangerouslySetInnerHTML: { __html: s }
1736
1737
  }
1737
1738
  ) : null);
@@ -1739,29 +1740,29 @@ function pn({
1739
1740
  function Gt({
1740
1741
  routes: e,
1741
1742
  future: t,
1742
- state: n
1743
+ state: r
1743
1744
  }) {
1744
- return be(e, void 0, n, t);
1745
+ return be(e, void 0, r, t);
1745
1746
  }
1746
1747
  function Xt(e) {
1747
1748
  if (!e) return null;
1748
- let t = Object.entries(e), n = {};
1749
- for (let [a, r] of t)
1750
- we(r) ? n[a] = { ...r, __type: "RouteErrorResponse" } : r instanceof Error ? n[a] = {
1751
- message: r.message,
1749
+ let t = Object.entries(e), r = {};
1750
+ for (let [o, n] of t)
1751
+ we(n) ? r[o] = { ...n, __type: "RouteErrorResponse" } : n instanceof Error ? r[o] = {
1752
+ message: n.message,
1752
1753
  __type: "Error",
1753
1754
  // If this is a subclass (i.e., ReferenceError), send up the type so we
1754
1755
  // can re-create the same type during hydration.
1755
- ...r.name !== "Error" ? {
1756
- __subType: r.name
1756
+ ...n.name !== "Error" ? {
1757
+ __subType: n.name
1757
1758
  } : {}
1758
- } : n[a] = r;
1759
- return n;
1759
+ } : r[o] = n;
1760
+ return r;
1760
1761
  }
1761
1762
  function Qt() {
1762
1763
  return {
1763
1764
  createHref: Zt,
1764
- encodeLocation: en,
1765
+ encodeLocation: er,
1765
1766
  push(e) {
1766
1767
  throw new Error(
1767
1768
  `You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`
@@ -1792,48 +1793,47 @@ function Qt() {
1792
1793
  function Zt(e) {
1793
1794
  return typeof e == "string" ? e : W(e);
1794
1795
  }
1795
- function en(e) {
1796
+ function er(e) {
1796
1797
  let t = typeof e == "string" ? e : W(e);
1797
1798
  t = t.replace(/ $/, "%20");
1798
- let n = tn.test(t) ? new URL(t) : new URL(t, "http://localhost");
1799
+ let r = tr.test(t) ? new URL(t) : new URL(t, "http://localhost");
1799
1800
  return {
1800
- pathname: n.pathname,
1801
- search: n.search,
1802
- hash: n.hash
1801
+ pathname: r.pathname,
1802
+ search: r.search,
1803
+ hash: r.hash
1803
1804
  };
1804
1805
  }
1805
- var tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nn = {
1806
+ var tr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, rr = {
1806
1807
  "&": "\\u0026",
1807
1808
  ">": "\\u003e",
1808
1809
  "<": "\\u003c",
1809
1810
  "\u2028": "\\u2028",
1810
1811
  "\u2029": "\\u2029"
1811
- }, rn = /[&><\u2028\u2029]/g;
1812
- function an(e) {
1813
- return e.replace(rn, (t) => nn[t]);
1812
+ }, nr = /[&><\u2028\u2029]/g;
1813
+ function ar(e) {
1814
+ return e.replace(nr, (t) => rr[t]);
1814
1815
  }
1815
- new TextEncoder();
1816
1816
  [
1817
1817
  ...At
1818
1818
  ];
1819
1819
  export {
1820
1820
  Ne as L,
1821
- dn as N,
1822
- hn as O,
1823
- fn as R,
1824
- pn as S,
1825
- re as a,
1826
- mn as b,
1827
- un as c,
1828
- sn as d,
1821
+ fr as N,
1822
+ dr as O,
1823
+ cr as R,
1824
+ mr as S,
1825
+ ne as a,
1826
+ hr as b,
1827
+ sr as c,
1828
+ lr as d,
1829
1829
  dt as e,
1830
- cn as f,
1830
+ ur as f,
1831
1831
  Bt as g,
1832
- on as h,
1832
+ or as h,
1833
1833
  we as i,
1834
1834
  et as j,
1835
1835
  B as m,
1836
- ln as r,
1836
+ ir as r,
1837
1837
  N as u
1838
1838
  };
1839
- //# sourceMappingURL=chunk-BAXFHI7N-C9WnHsLV.js.map
1839
+ //# sourceMappingURL=chunk-DQRVZFIR-BblmKnHy.js.map