zudoku 0.3.0-dev.57 → 0.3.0-dev.59

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 (199) hide show
  1. package/dist/app/entry.client.js +1 -1
  2. package/dist/app/entry.client.js.map +1 -1
  3. package/dist/app/entry.server.d.ts +2 -0
  4. package/dist/app/entry.server.js +1 -0
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.js +8 -2
  7. package/dist/app/main.js.map +1 -1
  8. package/dist/config/validators/validate.d.ts +121 -102
  9. package/dist/config/validators/validate.js +4 -0
  10. package/dist/config/validators/validate.js.map +1 -1
  11. package/dist/lib/authentication/AuthenticationPlugin.d.ts +16 -0
  12. package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
  13. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
  14. package/dist/lib/authentication/authentication.d.ts +3 -4
  15. package/dist/lib/authentication/components/Login.d.ts +1 -0
  16. package/dist/lib/authentication/components/Login.js +10 -0
  17. package/dist/lib/authentication/components/Login.js.map +1 -0
  18. package/dist/lib/authentication/components/Logout.d.ts +1 -0
  19. package/dist/lib/authentication/components/Logout.js +10 -0
  20. package/dist/lib/authentication/components/Logout.js.map +1 -0
  21. package/dist/lib/authentication/providers/clerk.js +43 -27
  22. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  23. package/dist/lib/authentication/providers/openid.d.ts +11 -3
  24. package/dist/lib/authentication/providers/openid.js +22 -11
  25. package/dist/lib/authentication/providers/openid.js.map +1 -1
  26. package/dist/lib/authentication/routes.d.ts +5 -0
  27. package/dist/lib/authentication/routes.js +12 -0
  28. package/dist/lib/authentication/routes.js.map +1 -0
  29. package/dist/lib/components/Bootstrap.d.ts +2 -1
  30. package/dist/lib/components/Bootstrap.js +4 -1
  31. package/dist/lib/components/Bootstrap.js.map +1 -1
  32. package/dist/lib/components/DevPortal.js +14 -2
  33. package/dist/lib/components/DevPortal.js.map +1 -1
  34. package/dist/lib/components/Header.js +16 -2
  35. package/dist/lib/components/Header.js.map +1 -1
  36. package/dist/lib/components/InlineCode.js +1 -1
  37. package/dist/lib/components/InlineCode.js.map +1 -1
  38. package/dist/lib/components/TopNavigation.js +1 -1
  39. package/dist/lib/components/TopNavigation.js.map +1 -1
  40. package/dist/lib/components/context/DevPortalProvider.js +18 -1
  41. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  42. package/dist/lib/components/index.d.ts +5 -1
  43. package/dist/lib/components/index.js +4 -0
  44. package/dist/lib/components/index.js.map +1 -1
  45. package/dist/lib/components/navigation/SideNavigationItem.js +1 -1
  46. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
  47. package/dist/lib/core/DevPortalContext.d.ts +1 -1
  48. package/dist/lib/core/DevPortalContext.js.map +1 -1
  49. package/dist/lib/core/plugins.d.ts +10 -1
  50. package/dist/lib/core/plugins.js +1 -0
  51. package/dist/lib/core/plugins.js.map +1 -1
  52. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  53. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  54. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +2 -2
  55. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  56. package/dist/lib/plugins/api-keys/index.d.ts +2 -2
  57. package/dist/lib/plugins/api-keys/index.js +6 -0
  58. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  59. package/dist/lib/plugins/custom-page/index.d.ts +8 -0
  60. package/dist/lib/plugins/custom-page/index.js +12 -0
  61. package/dist/lib/plugins/custom-page/index.js.map +1 -0
  62. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  63. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  64. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  65. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  66. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  67. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  68. package/dist/lib/plugins/openapi/SchemaListViewItem.js +3 -3
  69. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -1
  70. package/dist/lib/plugins/openapi/SidecarBox.js +1 -1
  71. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  72. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +3 -0
  73. package/dist/lib/plugins/openapi/StaggeredRender.js +10 -5
  74. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -1
  75. package/dist/lib/plugins/openapi/playground/Playground.js +2 -2
  76. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  77. package/dist/lib/ui/Card.js +1 -1
  78. package/dist/lib/ui/Card.js.map +1 -1
  79. package/dist/lib/ui/DropdownMenu.d.ts +27 -0
  80. package/dist/lib/ui/DropdownMenu.js +36 -0
  81. package/dist/lib/ui/DropdownMenu.js.map +1 -0
  82. package/dist/lib/ui/button-variants.d.ts +2 -2
  83. package/dist/lib/ui/button-variants.js +1 -0
  84. package/dist/lib/ui/button-variants.js.map +1 -1
  85. package/dist/lib/util/MdxComponents.js +1 -1
  86. package/dist/lib/util/MdxComponents.js.map +1 -1
  87. package/dist/lib/util/joinPath.js +2 -1
  88. package/dist/lib/util/joinPath.js.map +1 -1
  89. package/dist/vite/build.js +5 -2
  90. package/dist/vite/build.js.map +1 -1
  91. package/dist/vite/config.d.ts +8 -1
  92. package/dist/vite/config.js +13 -6
  93. package/dist/vite/config.js.map +1 -1
  94. package/dist/vite/plugin-component.js +1 -0
  95. package/dist/vite/plugin-component.js.map +1 -1
  96. package/dist/vite/prerender.d.ts +1 -1
  97. package/dist/vite/prerender.js +23 -3
  98. package/dist/vite/prerender.js.map +1 -1
  99. package/lib/{AnchorLink-GNsUeGSX.js → AnchorLink-Bj1hwDuD.js} +3 -3
  100. package/lib/{AnchorLink-GNsUeGSX.js.map → AnchorLink-Bj1hwDuD.js.map} +1 -1
  101. package/lib/AuthenticationPlugin-CG6Bw32B.js +46 -0
  102. package/lib/AuthenticationPlugin-CG6Bw32B.js.map +1 -0
  103. package/lib/CategoryHeading-DMkTmmBh.js +10 -0
  104. package/lib/CategoryHeading-DMkTmmBh.js.map +1 -0
  105. package/lib/Combination-lAFQBd6U.js +2774 -0
  106. package/lib/Combination-lAFQBd6U.js.map +1 -0
  107. package/lib/DevPortalProvider-BBhQ8kgI.js +1125 -0
  108. package/lib/DevPortalProvider-BBhQ8kgI.js.map +1 -0
  109. package/lib/{Markdown-DtLFdxD1.js → Markdown-BjRJKl_E.js} +1376 -1379
  110. package/lib/Markdown-BjRJKl_E.js.map +1 -0
  111. package/lib/{MdxPage-CbwYRKf5.js → MdxPage-DJTFOCbZ.js} +17 -17
  112. package/lib/{MdxPage-CbwYRKf5.js.map → MdxPage-DJTFOCbZ.js.map} +1 -1
  113. package/lib/OperationList-DDTtK3I7.js +5403 -0
  114. package/lib/OperationList-DDTtK3I7.js.map +1 -0
  115. package/lib/{Route-C1LyvITr.js → Route-Bsrd0acQ.js} +2 -2
  116. package/lib/{Route-C1LyvITr.js.map → Route-Bsrd0acQ.js.map} +1 -1
  117. package/lib/Select-CEnkyfyn.js +2223 -0
  118. package/lib/Select-CEnkyfyn.js.map +1 -0
  119. package/lib/Spinner-Ciq_pWU7.js +359 -0
  120. package/lib/Spinner-Ciq_pWU7.js.map +1 -0
  121. package/lib/{hook-Biq3zYel.js → hook-Q_gAL2NZ.js} +20 -19
  122. package/lib/{hook-Biq3zYel.js.map → hook-Q_gAL2NZ.js.map} +1 -1
  123. package/lib/{index-Bg82-bqR.js → index-BE2a6gGC.js} +24 -23
  124. package/lib/{index-Bg82-bqR.js.map → index-BE2a6gGC.js.map} +1 -1
  125. package/lib/{jsx-runtime-CJZJivg2.js → jsx-runtime-BIr0WBt_.js} +119 -119
  126. package/lib/jsx-runtime-BIr0WBt_.js.map +1 -0
  127. package/lib/{router-CBw2vqJE.js → router-BiRCp01d.js} +671 -673
  128. package/lib/router-BiRCp01d.js.map +1 -0
  129. package/lib/zudoku.auth-clerk.js +47 -32
  130. package/lib/zudoku.auth-clerk.js.map +1 -1
  131. package/lib/zudoku.auth-openid.js +170 -159
  132. package/lib/zudoku.auth-openid.js.map +1 -1
  133. package/lib/zudoku.components.js +1514 -598
  134. package/lib/zudoku.components.js.map +1 -1
  135. package/lib/zudoku.plugin-api-keys.js +30 -24
  136. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  137. package/lib/zudoku.plugin-custom-page.js +13 -0
  138. package/lib/zudoku.plugin-custom-page.js.map +1 -0
  139. package/lib/zudoku.plugin-markdown.js +19 -20
  140. package/lib/zudoku.plugin-markdown.js.map +1 -1
  141. package/lib/zudoku.plugin-openapi.js +4 -4
  142. package/lib/zudoku.plugin-redirect.js +3 -3
  143. package/package.json +29 -14
  144. package/src/app/entry.client.tsx +1 -1
  145. package/src/app/entry.server.tsx +2 -0
  146. package/src/app/main.css +6 -0
  147. package/src/app/main.tsx +8 -2
  148. package/src/lib/authentication/AuthenticationPlugin.tsx +36 -0
  149. package/src/lib/authentication/authentication.ts +3 -4
  150. package/src/lib/authentication/components/Login.tsx +11 -0
  151. package/src/lib/authentication/components/Logout.tsx +11 -0
  152. package/src/lib/authentication/providers/clerk.tsx +43 -27
  153. package/src/lib/authentication/providers/openid.tsx +25 -13
  154. package/src/lib/authentication/routes.tsx +10 -0
  155. package/src/lib/components/Bootstrap.tsx +14 -7
  156. package/src/lib/components/DevPortal.tsx +29 -9
  157. package/src/lib/components/Header.tsx +80 -30
  158. package/src/lib/components/InlineCode.tsx +1 -1
  159. package/src/lib/components/TopNavigation.tsx +1 -1
  160. package/src/lib/components/context/DevPortalProvider.ts +22 -2
  161. package/src/lib/components/index.ts +4 -0
  162. package/src/lib/components/navigation/SideNavigationItem.tsx +1 -1
  163. package/src/lib/core/DevPortalContext.ts +1 -1
  164. package/src/lib/core/plugins.ts +16 -0
  165. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  166. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +4 -4
  167. package/src/lib/plugins/api-keys/index.tsx +8 -1
  168. package/src/lib/plugins/custom-page/index.tsx +22 -0
  169. package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
  170. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -4
  171. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  172. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +3 -3
  173. package/src/lib/plugins/openapi/SidecarBox.tsx +1 -1
  174. package/src/lib/plugins/openapi/StaggeredRender.tsx +19 -5
  175. package/src/lib/plugins/openapi/playground/Playground.tsx +2 -2
  176. package/src/lib/ui/Card.tsx +1 -1
  177. package/src/lib/ui/DropdownMenu.tsx +199 -0
  178. package/src/lib/ui/button-variants.ts +1 -0
  179. package/src/lib/util/MdxComponents.tsx +1 -1
  180. package/src/lib/util/joinPath.tsx +2 -1
  181. package/dist/app/zudoku-manifest.d.ts +0 -1
  182. package/dist/app/zudoku-manifest.js +0 -20
  183. package/dist/app/zudoku-manifest.js.map +0 -1
  184. package/lib/Button-DpHMZvVs.js +0 -4571
  185. package/lib/Button-DpHMZvVs.js.map +0 -1
  186. package/lib/DevPortalProvider-Do9oJqme.js +0 -1081
  187. package/lib/DevPortalProvider-Do9oJqme.js.map +0 -1
  188. package/lib/Markdown-DtLFdxD1.js.map +0 -1
  189. package/lib/OperationList-DypxLtSC.js +0 -5578
  190. package/lib/OperationList-DypxLtSC.js.map +0 -1
  191. package/lib/Spinner-Bhbs5aPI.js +0 -182
  192. package/lib/Spinner-Bhbs5aPI.js.map +0 -1
  193. package/lib/index-gsAuUwQh.js +0 -418
  194. package/lib/index-gsAuUwQh.js.map +0 -1
  195. package/lib/jsx-runtime-CJZJivg2.js.map +0 -1
  196. package/lib/router-CBw2vqJE.js.map +0 -1
  197. package/lib/util-_jwUlTBU.js +0 -41
  198. package/lib/util-_jwUlTBU.js.map +0 -1
  199. package/src/app/zudoku-manifest.ts +0 -22
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.17.1
2
+ * @remix-run/router v1.18.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -23,7 +23,7 @@ var V;
23
23
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
24
24
  })(V || (V = {}));
25
25
  const _t = "popstate";
26
- function Br(e) {
26
+ function Wr(e) {
27
27
  e === void 0 && (e = {});
28
28
  let {
29
29
  initialEntries: t = ["/"],
@@ -61,7 +61,7 @@ function Br(e) {
61
61
  return new URL(p(m), "http://localhost");
62
62
  },
63
63
  encodeLocation(m) {
64
- let y = typeof m == "string" ? ie(m) : m;
64
+ let y = typeof m == "string" ? oe(m) : m;
65
65
  return {
66
66
  pathname: y.pathname || "",
67
67
  search: y.search || "",
@@ -102,7 +102,7 @@ function Br(e) {
102
102
  }
103
103
  };
104
104
  }
105
- function Wr(e) {
105
+ function Kr(e) {
106
106
  e === void 0 && (e = {});
107
107
  function t(a, n) {
108
108
  let {
@@ -127,14 +127,14 @@ function Wr(e) {
127
127
  }
128
128
  return Gt(t, r, null, e);
129
129
  }
130
- function Kr(e) {
130
+ function $r(e) {
131
131
  e === void 0 && (e = {});
132
132
  function t(n, s) {
133
133
  let {
134
134
  pathname: l = "/",
135
135
  search: f = "",
136
136
  hash: u = ""
137
- } = ie(n.location.hash.substr(1));
137
+ } = oe(n.location.hash.substr(1));
138
138
  return !l.startsWith("/") && !l.startsWith(".") && (l = "/" + l), ge(
139
139
  "",
140
140
  {
@@ -173,7 +173,7 @@ function de(e, t) {
173
173
  }
174
174
  }
175
175
  }
176
- function $r() {
176
+ function kr() {
177
177
  return Math.random().toString(36).substr(2, 8);
178
178
  }
179
179
  function Ut(e, t) {
@@ -188,13 +188,13 @@ function ge(e, t, r, a) {
188
188
  pathname: typeof e == "string" ? e : e.pathname,
189
189
  search: "",
190
190
  hash: ""
191
- }, typeof t == "string" ? ie(t) : t, {
191
+ }, typeof t == "string" ? oe(t) : t, {
192
192
  state: r,
193
193
  // TODO: This could be cleaned up. push/replace should probably just take
194
194
  // full Locations now and avoid the need to run through this flow at all
195
195
  // But that's a pretty big refactor to the current test suite so going to
196
196
  // keep as is for the time being and just let any incoming keys take precedence
197
- key: t && t.key || a || $r()
197
+ key: t && t.key || a || kr()
198
198
  });
199
199
  }
200
200
  function ue(e) {
@@ -205,7 +205,7 @@ function ue(e) {
205
205
  } = e;
206
206
  return r && r !== "?" && (t += r.charAt(0) === "?" ? r : "?" + r), a && a !== "#" && (t += a.charAt(0) === "#" ? a : "#" + a), t;
207
207
  }
208
- function ie(e) {
208
+ function oe(e) {
209
209
  let t = {};
210
210
  if (e) {
211
211
  let r = e.indexOf("#");
@@ -238,17 +238,17 @@ function Gt(e, t, r, a) {
238
238
  delta: A
239
239
  });
240
240
  }
241
- function S(P, A) {
241
+ function R(P, A) {
242
242
  f = V.Push;
243
243
  let x = ge(g.location, P, A);
244
244
  r && r(x, P), v = b() + 1;
245
- let _ = Ut(x, v), R = g.createHref(x);
245
+ let U = Ut(x, v), S = g.createHref(x);
246
246
  try {
247
- l.pushState(_, "", R);
247
+ l.pushState(U, "", S);
248
248
  } catch (N) {
249
249
  if (N instanceof DOMException && N.name === "DataCloneError")
250
250
  throw N;
251
- n.location.assign(R);
251
+ n.location.assign(S);
252
252
  }
253
253
  s && u && u({
254
254
  action: f,
@@ -260,8 +260,8 @@ function Gt(e, t, r, a) {
260
260
  f = V.Replace;
261
261
  let x = ge(g.location, P, A);
262
262
  r && r(x, P), v = b();
263
- let _ = Ut(x, v), R = g.createHref(x);
264
- l.replaceState(_, "", R), s && u && u({
263
+ let U = Ut(x, v), S = g.createHref(x);
264
+ l.replaceState(U, "", S), s && u && u({
265
265
  action: f,
266
266
  location: g.location,
267
267
  delta: 0
@@ -297,7 +297,7 @@ function Gt(e, t, r, a) {
297
297
  hash: A.hash
298
298
  };
299
299
  },
300
- push: S,
300
+ push: R,
301
301
  replace: m,
302
302
  go(P) {
303
303
  return l.go(P);
@@ -305,18 +305,18 @@ function Gt(e, t, r, a) {
305
305
  };
306
306
  return g;
307
307
  }
308
- var z;
308
+ var H;
309
309
  (function(e) {
310
310
  e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
311
- })(z || (z = {}));
312
- const kr = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
313
- function Vr(e) {
311
+ })(H || (H = {}));
312
+ const Vr = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
313
+ function Yr(e) {
314
314
  return e.index === !0;
315
315
  }
316
- function Me(e, t, r, a) {
316
+ function je(e, t, r, a) {
317
317
  return r === void 0 && (r = []), a === void 0 && (a = {}), e.map((n, s) => {
318
318
  let l = [...r, String(s)], f = typeof n.id == "string" ? n.id : l.join("-");
319
- if (O(n.index !== !0 || !n.children, "Cannot specify children on an index route"), O(!a[f], 'Found a route id collision on id "' + f + `". Route id's must be globally unique within Data Router usages`), Vr(n)) {
319
+ if (O(n.index !== !0 || !n.children, "Cannot specify children on an index route"), O(!a[f], 'Found a route id collision on id "' + f + `". Route id's must be globally unique within Data Router usages`), Yr(n)) {
320
320
  let u = I({}, n, t(n), {
321
321
  id: f
322
322
  });
@@ -326,7 +326,7 @@ function Me(e, t, r, a) {
326
326
  id: f,
327
327
  children: void 0
328
328
  });
329
- return a[f] = u, n.children && (u.children = Me(n.children, t, l, a)), u;
329
+ return a[f] = u, n.children && (u.children = je(n.children, t, l, a)), u;
330
330
  }
331
331
  });
332
332
  }
@@ -334,15 +334,15 @@ function me(e, t, r) {
334
334
  return r === void 0 && (r = "/"), at(e, t, r, !1);
335
335
  }
336
336
  function at(e, t, r, a) {
337
- let n = typeof t == "string" ? ie(t) : t, s = Ye(n.pathname || "/", r);
337
+ let n = typeof t == "string" ? oe(t) : t, s = Ye(n.pathname || "/", r);
338
338
  if (s == null)
339
339
  return null;
340
340
  let l = Qt(e);
341
- Yr(l);
341
+ Jr(l);
342
342
  let f = null;
343
343
  for (let u = 0; f == null && u < l.length; ++u) {
344
- let v = oa(s);
345
- f = ra(l[u], v, a);
344
+ let v = qt(s);
345
+ f = aa(l[u], v, a);
346
346
  }
347
347
  return f;
348
348
  }
@@ -370,7 +370,7 @@ function Qt(e, t, r, a) {
370
370
  route: s
371
371
  };
372
372
  u.relativePath.startsWith("/") && (O(u.relativePath.startsWith(a), 'Absolute route path "' + u.relativePath + '" nested under path ' + ('"' + a + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), u.relativePath = u.relativePath.slice(a.length));
373
- let v = Ne([a, u.relativePath]), b = r.concat(u);
373
+ let v = He([a, u.relativePath]), b = r.concat(u);
374
374
  s.children && s.children.length > 0 && (O(
375
375
  // Our types know better, but runtime JS may not!
376
376
  // @ts-expect-error
@@ -378,7 +378,7 @@ function Qt(e, t, r, a) {
378
378
  "Index routes must not have child routes. Please remove " + ('all child routes from route path "' + v + '".')
379
379
  ), Qt(s.children, t, b, v)), !(s.path == null && !s.index) && t.push({
380
380
  path: v,
381
- score: ea(v, s.index),
381
+ score: ta(v, s.index),
382
382
  routesMeta: b
383
383
  });
384
384
  };
@@ -400,15 +400,15 @@ function Zt(e) {
400
400
  let l = Zt(a.join("/")), f = [];
401
401
  return f.push(...l.map((u) => u === "" ? s : [s, u].join("/"))), n && f.push(...l), f.map((u) => e.startsWith("/") && u === "" ? "/" : u);
402
402
  }
403
- function Yr(e) {
404
- e.sort((t, r) => t.score !== r.score ? r.score - t.score : ta(t.routesMeta.map((a) => a.childrenIndex), r.routesMeta.map((a) => a.childrenIndex)));
403
+ function Jr(e) {
404
+ e.sort((t, r) => t.score !== r.score ? r.score - t.score : ra(t.routesMeta.map((a) => a.childrenIndex), r.routesMeta.map((a) => a.childrenIndex)));
405
405
  }
406
- const Jr = /^:[\w-]+$/, Gr = 3, Xr = 2, Qr = 1, Zr = 10, qr = -2, At = (e) => e === "*";
407
- function ea(e, t) {
406
+ const Gr = /^:[\w-]+$/, Xr = 3, Qr = 2, Zr = 1, qr = 10, ea = -2, At = (e) => e === "*";
407
+ function ta(e, t) {
408
408
  let r = e.split("/"), a = r.length;
409
- return r.some(At) && (a += qr), t && (a += Xr), r.filter((n) => !At(n)).reduce((n, s) => n + (Jr.test(s) ? Gr : s === "" ? Qr : Zr), a);
409
+ return r.some(At) && (a += ea), t && (a += Qr), r.filter((n) => !At(n)).reduce((n, s) => n + (Gr.test(s) ? Xr : s === "" ? Zr : qr), a);
410
410
  }
411
- function ta(e, t) {
411
+ function ra(e, t) {
412
412
  return e.length === t.length && e.slice(0, -1).every((a, n) => a === t[n]) ? (
413
413
  // If two routes are siblings, we should try to match the earlier sibling
414
414
  // first. This allows people to have fine-grained control over the matching
@@ -421,7 +421,7 @@ function ta(e, t) {
421
421
  0
422
422
  );
423
423
  }
424
- function ra(e, t, r) {
424
+ function aa(e, t, r) {
425
425
  r === void 0 && (r = !1);
426
426
  let {
427
427
  routesMeta: a
@@ -431,7 +431,7 @@ function ra(e, t, r) {
431
431
  path: u.relativePath,
432
432
  caseSensitive: u.caseSensitive,
433
433
  end: v
434
- }, b), S = u.route;
434
+ }, b), R = u.route;
435
435
  if (!p && v && r && !a[a.length - 1].route.index && (p = ht({
436
436
  path: u.relativePath,
437
437
  caseSensitive: u.caseSensitive,
@@ -441,14 +441,14 @@ function ra(e, t, r) {
441
441
  Object.assign(n, p.params), l.push({
442
442
  // TODO: Can this as be avoided?
443
443
  params: n,
444
- pathname: Ne([s, p.pathname]),
445
- pathnameBase: ar(Ne([s, p.pathnameBase])),
446
- route: S
447
- }), p.pathnameBase !== "/" && (s = Ne([s, p.pathnameBase]));
444
+ pathname: He([s, p.pathname]),
445
+ pathnameBase: nr(He([s, p.pathnameBase])),
446
+ route: R
447
+ }), p.pathnameBase !== "/" && (s = He([s, p.pathnameBase]));
448
448
  }
449
449
  return l;
450
450
  }
451
- function aa(e, t) {
451
+ function na(e, t) {
452
452
  t === void 0 && (t = {});
453
453
  let r = e;
454
454
  r.endsWith("*") && r !== "*" && !r.endsWith("/*") && (de(!1, '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(/\*$/, "/*") + '".')), r = r.replace(/\*$/, "/*"));
@@ -457,9 +457,9 @@ function aa(e, t) {
457
457
  return n(t["*"]);
458
458
  const b = l.match(/^:([\w-]+)(\??)$/);
459
459
  if (b) {
460
- const [, p, S] = b;
460
+ const [, p, R] = b;
461
461
  let m = t[p];
462
- return O(S === "?" || m != null, 'Missing ":' + p + '" param'), n(m);
462
+ return O(R === "?" || m != null, 'Missing ":' + p + '" param'), n(m);
463
463
  }
464
464
  return l.replace(/\?$/g, "");
465
465
  }).filter((l) => !!l);
@@ -471,28 +471,28 @@ function ht(e, t) {
471
471
  caseSensitive: !1,
472
472
  end: !0
473
473
  });
474
- let [r, a] = na(e.path, e.caseSensitive, e.end), n = t.match(r);
474
+ let [r, a] = ia(e.path, e.caseSensitive, e.end), n = t.match(r);
475
475
  if (!n) return null;
476
476
  let s = n[0], l = s.replace(/(.)\/+$/, "$1"), f = n.slice(1);
477
477
  return {
478
478
  params: a.reduce((v, b, p) => {
479
479
  let {
480
- paramName: S,
480
+ paramName: R,
481
481
  isOptional: m
482
482
  } = b;
483
- if (S === "*") {
483
+ if (R === "*") {
484
484
  let g = f[p] || "";
485
485
  l = s.slice(0, s.length - g.length).replace(/(.)\/+$/, "$1");
486
486
  }
487
487
  const y = f[p];
488
- return m && !y ? v[S] = void 0 : v[S] = (y || "").replace(/%2F/g, "/"), v;
488
+ return m && !y ? v[R] = void 0 : v[R] = (y || "").replace(/%2F/g, "/"), v;
489
489
  }, {}),
490
490
  pathname: s,
491
491
  pathnameBase: l,
492
492
  pattern: e
493
493
  };
494
494
  }
495
- function na(e, t, r) {
495
+ function ia(e, t, r) {
496
496
  t === void 0 && (t = !1), r === void 0 && (r = !0), de(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
497
497
  let a = [], n = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (l, f, u) => (a.push({
498
498
  paramName: f,
@@ -502,7 +502,7 @@ function na(e, t, r) {
502
502
  paramName: "*"
503
503
  }), n += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? n += "\\/*$" : e !== "" && e !== "/" && (n += "(?:(?=\\/|$))"), [new RegExp(n, t ? void 0 : "i"), a];
504
504
  }
505
- function oa(e) {
505
+ function qt(e) {
506
506
  try {
507
507
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
508
508
  } catch (t) {
@@ -516,20 +516,20 @@ function Ye(e, t) {
516
516
  let r = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(r);
517
517
  return a && a !== "/" ? null : e.slice(r) || "/";
518
518
  }
519
- function qt(e, t) {
519
+ function er(e, t) {
520
520
  t === void 0 && (t = "/");
521
521
  let {
522
522
  pathname: r,
523
523
  search: a = "",
524
524
  hash: n = ""
525
- } = typeof e == "string" ? ie(e) : e;
525
+ } = typeof e == "string" ? oe(e) : e;
526
526
  return {
527
- pathname: r ? r.startsWith("/") ? r : ia(r, t) : t,
527
+ pathname: r ? r.startsWith("/") ? r : oa(r, t) : t,
528
528
  search: sa(a),
529
529
  hash: da(n)
530
530
  };
531
531
  }
532
- function ia(e, t) {
532
+ function oa(e, t) {
533
533
  let r = t.replace(/\/+$/, "").split("/");
534
534
  return e.split("/").forEach((n) => {
535
535
  n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
@@ -538,37 +538,37 @@ function ia(e, t) {
538
538
  function ft(e, t, r, a) {
539
539
  return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(a) + "]. 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.';
540
540
  }
541
- function er(e) {
541
+ function tr(e) {
542
542
  return e.filter((t, r) => r === 0 || t.route.path && t.route.path.length > 0);
543
543
  }
544
- function tr(e, t) {
545
- let r = er(e);
544
+ function rr(e, t) {
545
+ let r = tr(e);
546
546
  return t ? r.map((a, n) => n === r.length - 1 ? a.pathname : a.pathnameBase) : r.map((a) => a.pathnameBase);
547
547
  }
548
- function rr(e, t, r, a) {
548
+ function ar(e, t, r, a) {
549
549
  a === void 0 && (a = !1);
550
550
  let n;
551
- typeof e == "string" ? n = ie(e) : (n = I({}, e), O(!n.pathname || !n.pathname.includes("?"), ft("?", "pathname", "search", n)), O(!n.pathname || !n.pathname.includes("#"), ft("#", "pathname", "hash", n)), O(!n.search || !n.search.includes("#"), ft("#", "search", "hash", n)));
551
+ typeof e == "string" ? n = oe(e) : (n = I({}, e), O(!n.pathname || !n.pathname.includes("?"), ft("?", "pathname", "search", n)), O(!n.pathname || !n.pathname.includes("#"), ft("#", "pathname", "hash", n)), O(!n.search || !n.search.includes("#"), ft("#", "search", "hash", n)));
552
552
  let s = e === "" || n.pathname === "", l = s ? "/" : n.pathname, f;
553
553
  if (l == null)
554
554
  f = r;
555
555
  else {
556
556
  let p = t.length - 1;
557
557
  if (!a && l.startsWith("..")) {
558
- let S = l.split("/");
559
- for (; S[0] === ".."; )
560
- S.shift(), p -= 1;
561
- n.pathname = S.join("/");
558
+ let R = l.split("/");
559
+ for (; R[0] === ".."; )
560
+ R.shift(), p -= 1;
561
+ n.pathname = R.join("/");
562
562
  }
563
563
  f = p >= 0 ? t[p] : "/";
564
564
  }
565
- let u = qt(n, f), v = l && l !== "/" && l.endsWith("/"), b = (s || l === ".") && r.endsWith("/");
565
+ let u = er(n, f), v = l && l !== "/" && l.endsWith("/"), b = (s || l === ".") && r.endsWith("/");
566
566
  return !u.pathname.endsWith("/") && (v || b) && (u.pathname += "/"), u;
567
567
  }
568
568
  function la(e) {
569
- return e === "" || e.pathname === "" ? "/" : typeof e == "string" ? ie(e).pathname : e.pathname;
569
+ return e === "" || e.pathname === "" ? "/" : typeof e == "string" ? oe(e).pathname : e.pathname;
570
570
  }
571
- const Ne = (e) => e.join("/").replace(/\/\/+/g, "/"), ar = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), sa = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, da = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ua = function(t, r) {
571
+ const He = (e) => e.join("/").replace(/\/\/+/g, "/"), nr = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), sa = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, da = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ua = function(t, r) {
572
572
  r === void 0 && (r = {});
573
573
  let a = typeof r == "number" ? {
574
574
  status: r
@@ -579,7 +579,7 @@ const Ne = (e) => e.join("/").replace(/\/\/+/g, "/"), ar = (e) => e.replace(/\/+
579
579
  };
580
580
  class pt extends Error {
581
581
  }
582
- class nr {
582
+ class ir {
583
583
  constructor(t, r) {
584
584
  this.pendingKeysSet = /* @__PURE__ */ new Set(), this.subscribers = /* @__PURE__ */ new Set(), this.deferredKeys = [], O(t && typeof t == "object" && !Array.isArray(t), "defer() only accepts plain objects");
585
585
  let a;
@@ -670,7 +670,7 @@ const ha = function(t, r) {
670
670
  let a = typeof r == "number" ? {
671
671
  status: r
672
672
  } : r;
673
- return new nr(t, a);
673
+ return new ir(t, a);
674
674
  }, or = function(t, r) {
675
675
  r === void 0 && (r = 302);
676
676
  let a = r;
@@ -693,7 +693,7 @@ class vt {
693
693
  function ze(e) {
694
694
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
695
695
  }
696
- const ir = ["post", "put", "patch", "delete"], ma = new Set(ir), ga = ["get", ...ir], ya = new Set(ga), va = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), wa = /* @__PURE__ */ new Set([307, 308]), nt = {
696
+ const lr = ["post", "put", "patch", "delete"], ma = new Set(lr), ga = ["get", ...lr], ya = new Set(ga), va = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), wa = /* @__PURE__ */ new Set([307, 308]), nt = {
697
697
  state: "idle",
698
698
  location: void 0,
699
699
  formMethod: void 0,
@@ -702,7 +702,7 @@ const ir = ["post", "put", "patch", "delete"], ma = new Set(ir), ga = ["get", ..
702
702
  formData: void 0,
703
703
  json: void 0,
704
704
  text: void 0
705
- }, lr = {
705
+ }, sr = {
706
706
  state: "idle",
707
707
  data: void 0,
708
708
  formMethod: void 0,
@@ -711,14 +711,14 @@ const ir = ["post", "put", "patch", "delete"], ma = new Set(ir), ga = ["get", ..
711
711
  formData: void 0,
712
712
  json: void 0,
713
713
  text: void 0
714
- }, Ie = {
714
+ }, Ne = {
715
715
  state: "unblocked",
716
716
  proceed: void 0,
717
717
  reset: void 0,
718
718
  location: void 0
719
- }, wt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, sr = (e) => ({
719
+ }, wt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, dr = (e) => ({
720
720
  hasErrorBoundary: !!e.hasErrorBoundary
721
- }), dr = "remix-router-transitions";
721
+ }), ur = "remix-router-transitions";
722
722
  function ba(e) {
723
723
  const t = e.window ? e.window : typeof window < "u" ? window : void 0, r = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", a = !r;
724
724
  O(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
@@ -726,53 +726,53 @@ function ba(e) {
726
726
  if (e.mapRouteProperties)
727
727
  n = e.mapRouteProperties;
728
728
  else if (e.detectErrorBoundary) {
729
- let o = e.detectErrorBoundary;
730
- n = (i) => ({
731
- hasErrorBoundary: o(i)
729
+ let i = e.detectErrorBoundary;
730
+ n = (o) => ({
731
+ hasErrorBoundary: i(o)
732
732
  });
733
733
  } else
734
- n = sr;
735
- let s = {}, l = Me(e.routes, n, void 0, s), f, u = e.basename || "/", v = e.unstable_dataStrategy || pr, b = e.unstable_patchRoutesOnMiss, p = I({
734
+ n = dr;
735
+ let s = {}, l = je(e.routes, n, void 0, s), f, u = e.basename || "/", v = e.unstable_dataStrategy || mr, b = e.unstable_patchRoutesOnMiss, p = I({
736
736
  v7_fetcherPersist: !1,
737
737
  v7_normalizeFormMethod: !1,
738
738
  v7_partialHydration: !1,
739
739
  v7_prependBasename: !1,
740
740
  v7_relativeSplatPath: !1,
741
- unstable_skipActionErrorRevalidation: !1
742
- }, e.future), S = null, m = /* @__PURE__ */ new Set(), y = null, g = null, P = null, A = e.hydrationData != null, x = me(l, e.history.location, u), _ = null;
741
+ v7_skipActionErrorRevalidation: !1
742
+ }, e.future), R = null, m = /* @__PURE__ */ new Set(), y = null, g = null, P = null, A = e.hydrationData != null, x = me(l, e.history.location, u), U = null;
743
743
  if (x == null && !b) {
744
- let o = Y(404, {
744
+ let i = Y(404, {
745
745
  pathname: e.history.location.pathname
746
746
  }), {
747
- matches: i,
747
+ matches: o,
748
748
  route: d
749
- } = ot(l);
750
- x = i, _ = {
751
- [d.id]: o
749
+ } = it(l);
750
+ x = o, U = {
751
+ [d.id]: i
752
752
  };
753
753
  }
754
- x && b && ut(x, l, e.history.location.pathname).active && (x = null);
755
- let R;
754
+ x && b && !e.hydrationData && ut(x, l, e.history.location.pathname).active && (x = null);
755
+ let S;
756
756
  if (!x)
757
- R = !1, x = [];
758
- else if (x.some((o) => o.route.lazy))
759
- R = !1;
760
- else if (!x.some((o) => o.route.loader))
761
- R = !0;
757
+ S = !1, x = [];
758
+ else if (x.some((i) => i.route.lazy))
759
+ S = !1;
760
+ else if (!x.some((i) => i.route.loader))
761
+ S = !0;
762
762
  else if (p.v7_partialHydration) {
763
- let o = e.hydrationData ? e.hydrationData.loaderData : null, i = e.hydrationData ? e.hydrationData.errors : null, d = (h) => h.route.loader ? typeof h.route.loader == "function" && h.route.loader.hydrate === !0 ? !1 : o && o[h.route.id] !== void 0 || i && i[h.route.id] !== void 0 : !0;
764
- if (i) {
765
- let h = x.findIndex((D) => i[D.route.id] !== void 0);
766
- R = x.slice(0, h + 1).every(d);
763
+ let i = e.hydrationData ? e.hydrationData.loaderData : null, o = e.hydrationData ? e.hydrationData.errors : null, d = (h) => h.route.loader ? typeof h.route.loader == "function" && h.route.loader.hydrate === !0 ? !1 : i && i[h.route.id] !== void 0 || o && o[h.route.id] !== void 0 : !0;
764
+ if (o) {
765
+ let h = x.findIndex((D) => o[D.route.id] !== void 0);
766
+ S = x.slice(0, h + 1).every(d);
767
767
  } else
768
- R = x.every(d);
768
+ S = x.every(d);
769
769
  } else
770
- R = e.hydrationData != null;
770
+ S = e.hydrationData != null;
771
771
  let N, c = {
772
772
  historyAction: e.history.action,
773
773
  location: e.history.location,
774
774
  matches: x,
775
- initialized: R,
775
+ initialized: S,
776
776
  navigation: nt,
777
777
  // Don't restore on initial updateState() if we were SSR'd
778
778
  restoreScrollPosition: e.hydrationData != null ? !1 : null,
@@ -780,29 +780,29 @@ function ba(e) {
780
780
  revalidation: "idle",
781
781
  loaderData: e.hydrationData && e.hydrationData.loaderData || {},
782
782
  actionData: e.hydrationData && e.hydrationData.actionData || null,
783
- errors: e.hydrationData && e.hydrationData.errors || _,
783
+ errors: e.hydrationData && e.hydrationData.errors || U,
784
784
  fetchers: /* @__PURE__ */ new Map(),
785
785
  blockers: /* @__PURE__ */ new Map()
786
- }, C = V.Pop, J = !1, F, X = !1, K = /* @__PURE__ */ new Map(), ne = null, le = !1, te = !1, je = [], Je = [], Q = /* @__PURE__ */ new Map(), Ge = 0, Be = -1, Ce = /* @__PURE__ */ new Map(), fe = /* @__PURE__ */ new Set(), Te = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map(), ce = /* @__PURE__ */ new Set(), Ee = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Map(), Dr = /* @__PURE__ */ new Map(), it = !1;
787
- function Er() {
788
- if (S = e.history.listen((o) => {
786
+ }, C = V.Pop, J = !1, F, X = !1, K = /* @__PURE__ */ new Map(), ne = null, le = !1, te = !1, Ce = [], Je = [], Q = /* @__PURE__ */ new Map(), Ge = 0, Be = -1, Te = /* @__PURE__ */ new Map(), fe = /* @__PURE__ */ new Set(), Fe = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map(), ce = /* @__PURE__ */ new Set(), Ee = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Map(), Er = /* @__PURE__ */ new Map(), ot = !1;
787
+ function Pr() {
788
+ if (R = e.history.listen((i) => {
789
789
  let {
790
- action: i,
790
+ action: o,
791
791
  location: d,
792
792
  delta: h
793
- } = o;
794
- if (it) {
795
- it = !1;
793
+ } = i;
794
+ if (ot) {
795
+ ot = !1;
796
796
  return;
797
797
  }
798
798
  de(Pe.size === 0 || h != null, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
799
799
  let D = jt({
800
800
  currentLocation: c.location,
801
801
  nextLocation: d,
802
- historyAction: i
802
+ historyAction: o
803
803
  });
804
804
  if (D && h != null) {
805
- it = !0, e.history.go(h * -1), Qe(D, {
805
+ ot = !0, e.history.go(h * -1), Qe(D, {
806
806
  state: "blocked",
807
807
  location: d,
808
808
  proceed() {
@@ -815,116 +815,116 @@ function ba(e) {
815
815
  },
816
816
  reset() {
817
817
  let E = new Map(c.blockers);
818
- E.set(D, Ie), re({
818
+ E.set(D, Ne), re({
819
819
  blockers: E
820
820
  });
821
821
  }
822
822
  });
823
823
  return;
824
824
  }
825
- return xe(i, d);
825
+ return xe(o, d);
826
826
  }), r) {
827
827
  _a(t, K);
828
- let o = () => Ua(t, K);
829
- t.addEventListener("pagehide", o), ne = () => t.removeEventListener("pagehide", o);
828
+ let i = () => Ua(t, K);
829
+ t.addEventListener("pagehide", i), ne = () => t.removeEventListener("pagehide", i);
830
830
  }
831
831
  return c.initialized || xe(V.Pop, c.location, {
832
832
  initialHydration: !0
833
833
  }), N;
834
834
  }
835
- function Pr() {
836
- S && S(), ne && ne(), m.clear(), F && F.abort(), c.fetchers.forEach((o, i) => Xe(i)), c.blockers.forEach((o, i) => Mt(i));
835
+ function xr() {
836
+ R && R(), ne && ne(), m.clear(), F && F.abort(), c.fetchers.forEach((i, o) => Xe(o)), c.blockers.forEach((i, o) => Mt(o));
837
837
  }
838
- function xr(o) {
839
- return m.add(o), () => m.delete(o);
838
+ function Lr(i) {
839
+ return m.add(i), () => m.delete(i);
840
840
  }
841
- function re(o, i) {
842
- i === void 0 && (i = {}), c = I({}, c, o);
841
+ function re(i, o) {
842
+ o === void 0 && (o = {}), c = I({}, c, i);
843
843
  let d = [], h = [];
844
844
  p.v7_fetcherPersist && c.fetchers.forEach((D, E) => {
845
845
  D.state === "idle" && (ce.has(E) ? h.push(E) : d.push(E));
846
846
  }), [...m].forEach((D) => D(c, {
847
847
  deletedFetchers: h,
848
- unstable_viewTransitionOpts: i.viewTransitionOpts,
849
- unstable_flushSync: i.flushSync === !0
848
+ unstable_viewTransitionOpts: o.viewTransitionOpts,
849
+ unstable_flushSync: o.flushSync === !0
850
850
  })), p.v7_fetcherPersist && (d.forEach((D) => c.fetchers.delete(D)), h.forEach((D) => Xe(D)));
851
851
  }
852
- function Fe(o, i, d) {
852
+ function _e(i, o, d) {
853
853
  var h, D;
854
854
  let {
855
855
  flushSync: E
856
- } = d === void 0 ? {} : d, j = c.actionData != null && c.navigation.formMethod != null && oe(c.navigation.formMethod) && c.navigation.state === "loading" && ((h = o.state) == null ? void 0 : h._isRedirect) !== !0, w;
857
- i.actionData ? Object.keys(i.actionData).length > 0 ? w = i.actionData : w = null : j ? w = c.actionData : w = null;
858
- let T = i.loaderData ? $t(c.loaderData, i.loaderData, i.matches || [], i.errors) : c.loaderData, L = c.blockers;
859
- L.size > 0 && (L = new Map(L), L.forEach((H, $) => L.set($, Ie)));
860
- let M = J === !0 || c.navigation.formMethod != null && oe(c.navigation.formMethod) && ((D = o.state) == null ? void 0 : D._isRedirect) !== !0;
861
- f && (l = f, f = void 0), le || C === V.Pop || (C === V.Push ? e.history.push(o, o.state) : C === V.Replace && e.history.replace(o, o.state));
856
+ } = d === void 0 ? {} : d, j = c.actionData != null && c.navigation.formMethod != null && ie(c.navigation.formMethod) && c.navigation.state === "loading" && ((h = i.state) == null ? void 0 : h._isRedirect) !== !0, w;
857
+ o.actionData ? Object.keys(o.actionData).length > 0 ? w = o.actionData : w = null : j ? w = c.actionData : w = null;
858
+ let T = o.loaderData ? $t(c.loaderData, o.loaderData, o.matches || [], o.errors) : c.loaderData, L = c.blockers;
859
+ L.size > 0 && (L = new Map(L), L.forEach((B, $) => L.set($, Ne)));
860
+ let M = J === !0 || c.navigation.formMethod != null && ie(c.navigation.formMethod) && ((D = i.state) == null ? void 0 : D._isRedirect) !== !0;
861
+ f && (l = f, f = void 0), le || C === V.Pop || (C === V.Push ? e.history.push(i, i.state) : C === V.Replace && e.history.replace(i, i.state));
862
862
  let W;
863
863
  if (C === V.Pop) {
864
- let H = K.get(c.location.pathname);
865
- H && H.has(o.pathname) ? W = {
864
+ let B = K.get(c.location.pathname);
865
+ B && B.has(i.pathname) ? W = {
866
866
  currentLocation: c.location,
867
- nextLocation: o
868
- } : K.has(o.pathname) && (W = {
869
- currentLocation: o,
867
+ nextLocation: i
868
+ } : K.has(i.pathname) && (W = {
869
+ currentLocation: i,
870
870
  nextLocation: c.location
871
871
  });
872
872
  } else if (X) {
873
- let H = K.get(c.location.pathname);
874
- H ? H.add(o.pathname) : (H = /* @__PURE__ */ new Set([o.pathname]), K.set(c.location.pathname, H)), W = {
873
+ let B = K.get(c.location.pathname);
874
+ B ? B.add(i.pathname) : (B = /* @__PURE__ */ new Set([i.pathname]), K.set(c.location.pathname, B)), W = {
875
875
  currentLocation: c.location,
876
- nextLocation: o
876
+ nextLocation: i
877
877
  };
878
878
  }
879
- re(I({}, i, {
879
+ re(I({}, o, {
880
880
  actionData: w,
881
881
  loaderData: T,
882
882
  historyAction: C,
883
- location: o,
883
+ location: i,
884
884
  initialized: !0,
885
885
  navigation: nt,
886
886
  revalidation: "idle",
887
- restoreScrollPosition: Tt(o, i.matches || c.matches),
887
+ restoreScrollPosition: Tt(i, o.matches || c.matches),
888
888
  preventScrollReset: M,
889
889
  blockers: L
890
890
  }), {
891
891
  viewTransitionOpts: W,
892
892
  flushSync: E === !0
893
- }), C = V.Pop, J = !1, X = !1, le = !1, te = !1, je = [], Je = [];
893
+ }), C = V.Pop, J = !1, X = !1, le = !1, te = !1, Ce = [], Je = [];
894
894
  }
895
- async function St(o, i) {
896
- if (typeof o == "number") {
897
- e.history.go(o);
895
+ async function Rt(i, o) {
896
+ if (typeof i == "number") {
897
+ e.history.go(i);
898
898
  return;
899
899
  }
900
- let d = mt(c.location, c.matches, u, p.v7_prependBasename, o, p.v7_relativeSplatPath, i == null ? void 0 : i.fromRouteId, i == null ? void 0 : i.relative), {
900
+ let d = mt(c.location, c.matches, u, p.v7_prependBasename, i, p.v7_relativeSplatPath, o == null ? void 0 : o.fromRouteId, o == null ? void 0 : o.relative), {
901
901
  path: h,
902
902
  submission: D,
903
903
  error: E
904
- } = It(p.v7_normalizeFormMethod, !1, d, i), j = c.location, w = ge(c.location, h, i && i.state);
904
+ } = It(p.v7_normalizeFormMethod, !1, d, o), j = c.location, w = ge(c.location, h, o && o.state);
905
905
  w = I({}, w, e.history.encodeLocation(w));
906
- let T = i && i.replace != null ? i.replace : void 0, L = V.Push;
907
- T === !0 ? L = V.Replace : T === !1 || D != null && oe(D.formMethod) && D.formAction === c.location.pathname + c.location.search && (L = V.Replace);
908
- let M = i && "preventScrollReset" in i ? i.preventScrollReset === !0 : void 0, W = (i && i.unstable_flushSync) === !0, H = jt({
906
+ let T = o && o.replace != null ? o.replace : void 0, L = V.Push;
907
+ T === !0 ? L = V.Replace : T === !1 || D != null && ie(D.formMethod) && D.formAction === c.location.pathname + c.location.search && (L = V.Replace);
908
+ let M = o && "preventScrollReset" in o ? o.preventScrollReset === !0 : void 0, W = (o && o.unstable_flushSync) === !0, B = jt({
909
909
  currentLocation: j,
910
910
  nextLocation: w,
911
911
  historyAction: L
912
912
  });
913
- if (H) {
914
- Qe(H, {
913
+ if (B) {
914
+ Qe(B, {
915
915
  state: "blocked",
916
916
  location: w,
917
917
  proceed() {
918
- Qe(H, {
918
+ Qe(B, {
919
919
  state: "proceeding",
920
920
  proceed: void 0,
921
921
  reset: void 0,
922
922
  location: w
923
- }), St(o, i);
923
+ }), Rt(i, o);
924
924
  },
925
925
  reset() {
926
926
  let $ = new Map(c.blockers);
927
- $.set(H, Ie), re({
927
+ $.set(B, Ne), re({
928
928
  blockers: $
929
929
  });
930
930
  }
@@ -937,12 +937,12 @@ function ba(e) {
937
937
  // render at the right error boundary after we match routes
938
938
  pendingError: E,
939
939
  preventScrollReset: M,
940
- replace: i && i.replace,
941
- enableViewTransition: i && i.unstable_viewTransition,
940
+ replace: o && o.replace,
941
+ enableViewTransition: o && o.unstable_viewTransition,
942
942
  flushSync: W
943
943
  });
944
944
  }
945
- function Lr() {
945
+ function Mr() {
946
946
  if (lt(), re({
947
947
  revalidation: "loading"
948
948
  }), c.navigation.state !== "submitting") {
@@ -957,28 +957,28 @@ function ba(e) {
957
957
  });
958
958
  }
959
959
  }
960
- async function xe(o, i, d) {
961
- F && F.abort(), F = null, C = o, le = (d && d.startUninterruptedRevalidation) === !0, Ir(c.location, c.matches), J = (d && d.preventScrollReset) === !0, X = (d && d.enableViewTransition) === !0;
962
- let h = f || l, D = d && d.overrideNavigation, E = me(h, i, u), j = (d && d.flushSync) === !0, w = ut(E, h, i.pathname);
960
+ async function xe(i, o, d) {
961
+ F && F.abort(), F = null, C = i, le = (d && d.startUninterruptedRevalidation) === !0, Nr(c.location, c.matches), J = (d && d.preventScrollReset) === !0, X = (d && d.enableViewTransition) === !0;
962
+ let h = f || l, D = d && d.overrideNavigation, E = me(h, o, u), j = (d && d.flushSync) === !0, w = ut(E, h, o.pathname);
963
963
  if (w.active && w.matches && (E = w.matches), !E) {
964
964
  let {
965
- error: B,
965
+ error: z,
966
966
  notFoundMatches: q,
967
967
  route: Z
968
- } = st(i.pathname);
969
- Fe(i, {
968
+ } = st(o.pathname);
969
+ _e(o, {
970
970
  matches: q,
971
971
  loaderData: {},
972
972
  errors: {
973
- [Z.id]: B
973
+ [Z.id]: z
974
974
  }
975
975
  }, {
976
976
  flushSync: j
977
977
  });
978
978
  return;
979
979
  }
980
- if (c.initialized && !te && La(c.location, i) && !(d && d.submission && oe(d.submission.formMethod))) {
981
- Fe(i, {
980
+ if (c.initialized && !te && La(c.location, o) && !(d && d.submission && ie(d.submission.formMethod))) {
981
+ _e(o, {
982
982
  matches: E
983
983
  }, {
984
984
  flushSync: j
@@ -986,24 +986,24 @@ function ba(e) {
986
986
  return;
987
987
  }
988
988
  F = new AbortController();
989
- let T = Oe(e.history, i, F.signal, d && d.submission), L;
989
+ let T = Ie(e.history, o, F.signal, d && d.submission), L;
990
990
  if (d && d.pendingError)
991
- L = [He(E).route.id, {
992
- type: z.error,
991
+ L = [Le(E).route.id, {
992
+ type: H.error,
993
993
  error: d.pendingError
994
994
  }];
995
- else if (d && d.submission && oe(d.submission.formMethod)) {
996
- let B = await Mr(T, i, d.submission, E, w.active, {
995
+ else if (d && d.submission && ie(d.submission.formMethod)) {
996
+ let z = await jr(T, o, d.submission, E, w.active, {
997
997
  replace: d.replace,
998
998
  flushSync: j
999
999
  });
1000
- if (B.shortCircuited)
1000
+ if (z.shortCircuited)
1001
1001
  return;
1002
- if (B.pendingActionResult) {
1003
- let [q, Z] = B.pendingActionResult;
1002
+ if (z.pendingActionResult) {
1003
+ let [q, Z] = z.pendingActionResult;
1004
1004
  if (ee(Z) && ze(Z.error) && Z.error.status === 404) {
1005
- F = null, Fe(i, {
1006
- matches: B.matches,
1005
+ F = null, _e(o, {
1006
+ matches: z.matches,
1007
1007
  loaderData: {},
1008
1008
  errors: {
1009
1009
  [q]: Z.error
@@ -1012,45 +1012,44 @@ function ba(e) {
1012
1012
  return;
1013
1013
  }
1014
1014
  }
1015
- E = B.matches || E, L = B.pendingActionResult, D = ct(i, d.submission), j = !1, w.active = !1, T = Oe(e.history, T.url, T.signal);
1015
+ E = z.matches || E, L = z.pendingActionResult, D = ct(o, d.submission), j = !1, w.active = !1, T = Ie(e.history, T.url, T.signal);
1016
1016
  }
1017
1017
  let {
1018
1018
  shortCircuited: M,
1019
1019
  matches: W,
1020
- loaderData: H,
1020
+ loaderData: B,
1021
1021
  errors: $
1022
- } = await jr(T, i, E, w.active, D, d && d.submission, d && d.fetcherSubmission, d && d.replace, d && d.initialHydration === !0, j, L);
1023
- M || (F = null, Fe(i, I({
1022
+ } = await Cr(T, o, E, w.active, D, d && d.submission, d && d.fetcherSubmission, d && d.replace, d && d.initialHydration === !0, j, L);
1023
+ M || (F = null, _e(o, I({
1024
1024
  matches: W || E
1025
1025
  }, kt(L), {
1026
- loaderData: H,
1026
+ loaderData: B,
1027
1027
  errors: $
1028
1028
  })));
1029
1029
  }
1030
- async function Mr(o, i, d, h, D, E) {
1030
+ async function jr(i, o, d, h, D, E) {
1031
1031
  E === void 0 && (E = {}), lt();
1032
- let j = Ta(i, d);
1032
+ let j = Ta(o, d);
1033
1033
  if (re({
1034
1034
  navigation: j
1035
1035
  }, {
1036
1036
  flushSync: E.flushSync === !0
1037
1037
  }), D) {
1038
- let L = await qe(h, i.pathname, o.signal);
1038
+ let L = await qe(h, o.pathname, i.signal);
1039
1039
  if (L.type === "aborted")
1040
1040
  return {
1041
1041
  shortCircuited: !0
1042
1042
  };
1043
1043
  if (L.type === "error") {
1044
1044
  let {
1045
- error: M,
1046
- notFoundMatches: W,
1047
- route: H
1048
- } = Ze(i.pathname, L);
1045
+ boundaryId: M,
1046
+ error: W
1047
+ } = Ze(o.pathname, L);
1049
1048
  return {
1050
- matches: W,
1051
- pendingActionResult: [H.id, {
1052
- type: z.error,
1053
- error: M
1049
+ matches: L.partialMatches,
1050
+ pendingActionResult: [M, {
1051
+ type: H.error,
1052
+ error: W
1054
1053
  }]
1055
1054
  };
1056
1055
  } else if (L.matches)
@@ -1059,46 +1058,46 @@ function ba(e) {
1059
1058
  let {
1060
1059
  notFoundMatches: M,
1061
1060
  error: W,
1062
- route: H
1063
- } = st(i.pathname);
1061
+ route: B
1062
+ } = st(o.pathname);
1064
1063
  return {
1065
1064
  matches: M,
1066
- pendingActionResult: [H.id, {
1067
- type: z.error,
1065
+ pendingActionResult: [B.id, {
1066
+ type: H.error,
1068
1067
  error: W
1069
1068
  }]
1070
1069
  };
1071
1070
  }
1072
1071
  }
1073
- let w, T = Le(h, i);
1072
+ let w, T = Me(h, o);
1074
1073
  if (!T.route.action && !T.route.lazy)
1075
1074
  w = {
1076
- type: z.error,
1075
+ type: H.error,
1077
1076
  error: Y(405, {
1078
- method: o.method,
1079
- pathname: i.pathname,
1077
+ method: i.method,
1078
+ pathname: o.pathname,
1080
1079
  routeId: T.route.id
1081
1080
  })
1082
1081
  };
1083
- else if (w = (await $e("action", o, [T], h))[0], o.signal.aborted)
1082
+ else if (w = (await $e("action", i, [T], h))[0], i.signal.aborted)
1084
1083
  return {
1085
1084
  shortCircuited: !0
1086
1085
  };
1087
1086
  if (De(w)) {
1088
1087
  let L;
1089
- return E && E.replace != null ? L = E.replace : L = Bt(w.response.headers.get("Location"), new URL(o.url), u) === c.location.pathname + c.location.search, await Ke(o, w, {
1088
+ return E && E.replace != null ? L = E.replace : L = Bt(w.response.headers.get("Location"), new URL(i.url), u) === c.location.pathname + c.location.search, await Ke(i, w, {
1090
1089
  submission: d,
1091
1090
  replace: L
1092
1091
  }), {
1093
1092
  shortCircuited: !0
1094
1093
  };
1095
1094
  }
1096
- if (Re(w))
1095
+ if (Se(w))
1097
1096
  throw Y(400, {
1098
1097
  type: "defer-action"
1099
1098
  });
1100
1099
  if (ee(w)) {
1101
- let L = He(h, T.route.id);
1100
+ let L = Le(h, T.route.id);
1102
1101
  return (E && E.replace) !== !0 && (C = V.Push), {
1103
1102
  matches: h,
1104
1103
  pendingActionResult: [L.route.id, w]
@@ -1109,11 +1108,11 @@ function ba(e) {
1109
1108
  pendingActionResult: [T.route.id, w]
1110
1109
  };
1111
1110
  }
1112
- async function jr(o, i, d, h, D, E, j, w, T, L, M) {
1113
- let W = D || ct(i, E), H = E || j || Jt(W), $ = !le && (!p.v7_partialHydration || !T);
1111
+ async function Cr(i, o, d, h, D, E, j, w, T, L, M) {
1112
+ let W = D || ct(o, E), B = E || j || Jt(W), $ = !le && (!p.v7_partialHydration || !T);
1114
1113
  if (h) {
1115
1114
  if ($) {
1116
- let G = Rt(M);
1115
+ let G = St(M);
1117
1116
  re(I({
1118
1117
  navigation: W
1119
1118
  }, G !== void 0 ? {
@@ -1122,32 +1121,31 @@ function ba(e) {
1122
1121
  flushSync: L
1123
1122
  });
1124
1123
  }
1125
- let U = await qe(d, i.pathname, o.signal);
1126
- if (U.type === "aborted")
1124
+ let _ = await qe(d, o.pathname, i.signal);
1125
+ if (_.type === "aborted")
1127
1126
  return {
1128
1127
  shortCircuited: !0
1129
1128
  };
1130
- if (U.type === "error") {
1129
+ if (_.type === "error") {
1131
1130
  let {
1132
- error: G,
1133
- notFoundMatches: ae,
1134
- route: k
1135
- } = Ze(i.pathname, U);
1131
+ boundaryId: G,
1132
+ error: ae
1133
+ } = Ze(o.pathname, _);
1136
1134
  return {
1137
- matches: ae,
1135
+ matches: _.partialMatches,
1138
1136
  loaderData: {},
1139
1137
  errors: {
1140
- [k.id]: G
1138
+ [G]: ae
1141
1139
  }
1142
1140
  };
1143
- } else if (U.matches)
1144
- d = U.matches;
1141
+ } else if (_.matches)
1142
+ d = _.matches;
1145
1143
  else {
1146
1144
  let {
1147
1145
  error: G,
1148
1146
  notFoundMatches: ae,
1149
1147
  route: k
1150
- } = st(i.pathname);
1148
+ } = st(o.pathname);
1151
1149
  return {
1152
1150
  matches: ae,
1153
1151
  loaderData: {},
@@ -1157,17 +1155,17 @@ function ba(e) {
1157
1155
  };
1158
1156
  }
1159
1157
  }
1160
- let B = f || l, [q, Z] = Nt(e.history, c, d, H, i, p.v7_partialHydration && T === !0, p.unstable_skipActionErrorRevalidation, te, je, Je, ce, Te, fe, B, u, M);
1161
- if (dt((U) => !(d && d.some((G) => G.route.id === U)) || q && q.some((G) => G.route.id === U)), Be = ++Ge, q.length === 0 && Z.length === 0) {
1162
- let U = xt();
1163
- return Fe(i, I({
1158
+ let z = f || l, [q, Z] = Nt(e.history, c, d, B, o, p.v7_partialHydration && T === !0, p.v7_skipActionErrorRevalidation, te, Ce, Je, ce, Fe, fe, z, u, M);
1159
+ if (dt((_) => !(d && d.some((G) => G.route.id === _)) || q && q.some((G) => G.route.id === _)), Be = ++Ge, q.length === 0 && Z.length === 0) {
1160
+ let _ = xt();
1161
+ return _e(o, I({
1164
1162
  matches: d,
1165
1163
  loaderData: {},
1166
1164
  // Commit pending error if we're short circuiting
1167
1165
  errors: M && ee(M[1]) ? {
1168
1166
  [M[0]]: M[1].error
1169
1167
  } : null
1170
- }, kt(M), U ? {
1168
+ }, kt(M), _ ? {
1171
1169
  fetchers: new Map(c.fetchers)
1172
1170
  } : {}), {
1173
1171
  flushSync: L
@@ -1176,55 +1174,55 @@ function ba(e) {
1176
1174
  };
1177
1175
  }
1178
1176
  if ($) {
1179
- let U = {};
1177
+ let _ = {};
1180
1178
  if (!h) {
1181
- U.navigation = W;
1182
- let G = Rt(M);
1183
- G !== void 0 && (U.actionData = G);
1179
+ _.navigation = W;
1180
+ let G = St(M);
1181
+ G !== void 0 && (_.actionData = G);
1184
1182
  }
1185
- Z.length > 0 && (U.fetchers = Cr(Z)), re(U, {
1183
+ Z.length > 0 && (_.fetchers = Tr(Z)), re(_, {
1186
1184
  flushSync: L
1187
1185
  });
1188
1186
  }
1189
- Z.forEach((U) => {
1190
- Q.has(U.key) && ve(U.key), U.controller && Q.set(U.key, U.controller);
1187
+ Z.forEach((_) => {
1188
+ Q.has(_.key) && ve(_.key), _.controller && Q.set(_.key, _.controller);
1191
1189
  });
1192
- let ke = () => Z.forEach((U) => ve(U.key));
1190
+ let ke = () => Z.forEach((_) => ve(_.key));
1193
1191
  F && F.signal.addEventListener("abort", ke);
1194
1192
  let {
1195
1193
  loaderResults: we,
1196
- fetcherResults: _e
1197
- } = await Dt(c.matches, d, q, Z, o);
1198
- if (o.signal.aborted)
1194
+ fetcherResults: Ue
1195
+ } = await Dt(c.matches, d, q, Z, i);
1196
+ if (i.signal.aborted)
1199
1197
  return {
1200
1198
  shortCircuited: !0
1201
1199
  };
1202
- F && F.signal.removeEventListener("abort", ke), Z.forEach((U) => Q.delete(U.key));
1203
- let Ue = Vt([...we, ..._e]);
1204
- if (Ue) {
1205
- if (Ue.idx >= q.length) {
1206
- let U = Z[Ue.idx - q.length].key;
1207
- fe.add(U);
1200
+ F && F.signal.removeEventListener("abort", ke), Z.forEach((_) => Q.delete(_.key));
1201
+ let Ae = Vt([...we, ...Ue]);
1202
+ if (Ae) {
1203
+ if (Ae.idx >= q.length) {
1204
+ let _ = Z[Ae.idx - q.length].key;
1205
+ fe.add(_);
1208
1206
  }
1209
- return await Ke(o, Ue.result, {
1207
+ return await Ke(i, Ae.result, {
1210
1208
  replace: w
1211
1209
  }), {
1212
1210
  shortCircuited: !0
1213
1211
  };
1214
1212
  }
1215
1213
  let {
1216
- loaderData: Ae,
1214
+ loaderData: Oe,
1217
1215
  errors: se
1218
- } = Kt(c, d, q, we, M, Z, _e, Ee);
1219
- Ee.forEach((U, G) => {
1220
- U.subscribe((ae) => {
1221
- (ae || U.done) && Ee.delete(G);
1216
+ } = Kt(c, d, q, we, M, Z, Ue, Ee);
1217
+ Ee.forEach((_, G) => {
1218
+ _.subscribe((ae) => {
1219
+ (ae || _.done) && Ee.delete(G);
1222
1220
  });
1223
- }), p.v7_partialHydration && T && c.errors && Object.entries(c.errors).filter((U) => {
1224
- let [G] = U;
1221
+ }), p.v7_partialHydration && T && c.errors && Object.entries(c.errors).filter((_) => {
1222
+ let [G] = _;
1225
1223
  return !q.some((ae) => ae.route.id === G);
1226
- }).forEach((U) => {
1227
- let [G, ae] = U;
1224
+ }).forEach((_) => {
1225
+ let [G, ae] = _;
1228
1226
  se = Object.assign(se || {}, {
1229
1227
  [G]: ae
1230
1228
  });
@@ -1232,33 +1230,33 @@ function ba(e) {
1232
1230
  let et = xt(), tt = Lt(Be), rt = et || tt || Z.length > 0;
1233
1231
  return I({
1234
1232
  matches: d,
1235
- loaderData: Ae,
1233
+ loaderData: Oe,
1236
1234
  errors: se
1237
1235
  }, rt ? {
1238
1236
  fetchers: new Map(c.fetchers)
1239
1237
  } : {});
1240
1238
  }
1241
- function Rt(o) {
1242
- if (o && !ee(o[1]))
1239
+ function St(i) {
1240
+ if (i && !ee(i[1]))
1243
1241
  return {
1244
- [o[0]]: o[1].data
1242
+ [i[0]]: i[1].data
1245
1243
  };
1246
1244
  if (c.actionData)
1247
1245
  return Object.keys(c.actionData).length === 0 ? null : c.actionData;
1248
1246
  }
1249
- function Cr(o) {
1250
- return o.forEach((i) => {
1251
- let d = c.fetchers.get(i.key), h = Ve(void 0, d ? d.data : void 0);
1252
- c.fetchers.set(i.key, h);
1247
+ function Tr(i) {
1248
+ return i.forEach((o) => {
1249
+ let d = c.fetchers.get(o.key), h = Ve(void 0, d ? d.data : void 0);
1250
+ c.fetchers.set(o.key, h);
1253
1251
  }), new Map(c.fetchers);
1254
1252
  }
1255
- function Tr(o, i, d, h) {
1253
+ function Fr(i, o, d, h) {
1256
1254
  if (a)
1257
1255
  throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
1258
- Q.has(o) && ve(o);
1259
- let D = (h && h.unstable_flushSync) === !0, E = f || l, j = mt(c.location, c.matches, u, p.v7_prependBasename, d, p.v7_relativeSplatPath, i, h == null ? void 0 : h.relative), w = me(E, j, u), T = ut(w, E, j);
1256
+ Q.has(i) && ve(i);
1257
+ let D = (h && h.unstable_flushSync) === !0, E = f || l, j = mt(c.location, c.matches, u, p.v7_prependBasename, d, p.v7_relativeSplatPath, o, h == null ? void 0 : h.relative), w = me(E, j, u), T = ut(w, E, j);
1260
1258
  if (T.active && T.matches && (w = T.matches), !w) {
1261
- he(o, i, Y(404, {
1259
+ he(i, o, Y(404, {
1262
1260
  pathname: j
1263
1261
  }), {
1264
1262
  flushSync: D
@@ -1271,31 +1269,31 @@ function ba(e) {
1271
1269
  error: W
1272
1270
  } = It(p.v7_normalizeFormMethod, !0, j, h);
1273
1271
  if (W) {
1274
- he(o, i, W, {
1272
+ he(i, o, W, {
1275
1273
  flushSync: D
1276
1274
  });
1277
1275
  return;
1278
1276
  }
1279
- let H = Le(w, L);
1280
- if (J = (h && h.preventScrollReset) === !0, M && oe(M.formMethod)) {
1281
- Fr(o, i, L, H, w, T.active, D, M);
1277
+ let B = Me(w, L);
1278
+ if (J = (h && h.preventScrollReset) === !0, M && ie(M.formMethod)) {
1279
+ _r(i, o, L, B, w, T.active, D, M);
1282
1280
  return;
1283
1281
  }
1284
- Te.set(o, {
1285
- routeId: i,
1282
+ Fe.set(i, {
1283
+ routeId: o,
1286
1284
  path: L
1287
- }), _r(o, i, L, H, w, T.active, D, M);
1285
+ }), Ur(i, o, L, B, w, T.active, D, M);
1288
1286
  }
1289
- async function Fr(o, i, d, h, D, E, j, w) {
1290
- lt(), Te.delete(o);
1287
+ async function _r(i, o, d, h, D, E, j, w) {
1288
+ lt(), Fe.delete(i);
1291
1289
  function T(k) {
1292
1290
  if (!k.route.action && !k.route.lazy) {
1293
1291
  let pe = Y(405, {
1294
1292
  method: w.formMethod,
1295
1293
  pathname: d,
1296
- routeId: i
1294
+ routeId: o
1297
1295
  });
1298
- return he(o, i, pe, {
1296
+ return he(i, o, pe, {
1299
1297
  flushSync: j
1300
1298
  }), !0;
1301
1299
  }
@@ -1303,11 +1301,11 @@ function ba(e) {
1303
1301
  }
1304
1302
  if (!E && T(h))
1305
1303
  return;
1306
- let L = c.fetchers.get(o);
1307
- ye(o, Fa(w, L), {
1304
+ let L = c.fetchers.get(i);
1305
+ ye(i, Fa(w, L), {
1308
1306
  flushSync: j
1309
1307
  });
1310
- let M = new AbortController(), W = Oe(e.history, d, M.signal, w);
1308
+ let M = new AbortController(), W = Ie(e.history, d, M.signal, w);
1311
1309
  if (E) {
1312
1310
  let k = await qe(D, d, W.signal);
1313
1311
  if (k.type === "aborted")
@@ -1316,15 +1314,15 @@ function ba(e) {
1316
1314
  let {
1317
1315
  error: pe
1318
1316
  } = Ze(d, k);
1319
- he(o, i, pe, {
1317
+ he(i, o, pe, {
1320
1318
  flushSync: j
1321
1319
  });
1322
1320
  return;
1323
1321
  } else if (k.matches) {
1324
- if (D = k.matches, h = Le(D, d), T(h))
1322
+ if (D = k.matches, h = Me(D, d), T(h))
1325
1323
  return;
1326
1324
  } else {
1327
- he(o, i, Y(404, {
1325
+ he(i, o, Y(404, {
1328
1326
  pathname: d
1329
1327
  }), {
1330
1328
  flushSync: j
@@ -1332,45 +1330,45 @@ function ba(e) {
1332
1330
  return;
1333
1331
  }
1334
1332
  }
1335
- Q.set(o, M);
1336
- let H = Ge, B = (await $e("action", W, [h], D))[0];
1333
+ Q.set(i, M);
1334
+ let B = Ge, z = (await $e("action", W, [h], D))[0];
1337
1335
  if (W.signal.aborted) {
1338
- Q.get(o) === M && Q.delete(o);
1336
+ Q.get(i) === M && Q.delete(i);
1339
1337
  return;
1340
1338
  }
1341
- if (p.v7_fetcherPersist && ce.has(o)) {
1342
- if (De(B) || ee(B)) {
1343
- ye(o, be(void 0));
1339
+ if (p.v7_fetcherPersist && ce.has(i)) {
1340
+ if (De(z) || ee(z)) {
1341
+ ye(i, be(void 0));
1344
1342
  return;
1345
1343
  }
1346
1344
  } else {
1347
- if (De(B))
1348
- if (Q.delete(o), Be > H) {
1349
- ye(o, be(void 0));
1345
+ if (De(z))
1346
+ if (Q.delete(i), Be > B) {
1347
+ ye(i, be(void 0));
1350
1348
  return;
1351
1349
  } else
1352
- return fe.add(o), ye(o, Ve(w)), Ke(W, B, {
1350
+ return fe.add(i), ye(i, Ve(w)), Ke(W, z, {
1353
1351
  fetcherSubmission: w
1354
1352
  });
1355
- if (ee(B)) {
1356
- he(o, i, B.error);
1353
+ if (ee(z)) {
1354
+ he(i, o, z.error);
1357
1355
  return;
1358
1356
  }
1359
1357
  }
1360
- if (Re(B))
1358
+ if (Se(z))
1361
1359
  throw Y(400, {
1362
1360
  type: "defer-action"
1363
1361
  });
1364
- let q = c.navigation.location || c.location, Z = Oe(e.history, q, M.signal), ke = f || l, we = c.navigation.state !== "idle" ? me(ke, c.navigation.location, u) : c.matches;
1362
+ let q = c.navigation.location || c.location, Z = Ie(e.history, q, M.signal), ke = f || l, we = c.navigation.state !== "idle" ? me(ke, c.navigation.location, u) : c.matches;
1365
1363
  O(we, "Didn't find any matches after fetcher action");
1366
- let _e = ++Ge;
1367
- Ce.set(o, _e);
1368
- let Ue = Ve(w, B.data);
1369
- c.fetchers.set(o, Ue);
1370
- let [Ae, se] = Nt(e.history, c, we, w, q, !1, p.unstable_skipActionErrorRevalidation, te, je, Je, ce, Te, fe, ke, u, [h.route.id, B]);
1371
- se.filter((k) => k.key !== o).forEach((k) => {
1372
- let pe = k.key, Ft = c.fetchers.get(pe), zr = Ve(void 0, Ft ? Ft.data : void 0);
1373
- c.fetchers.set(pe, zr), Q.has(pe) && ve(pe), k.controller && Q.set(pe, k.controller);
1364
+ let Ue = ++Ge;
1365
+ Te.set(i, Ue);
1366
+ let Ae = Ve(w, z.data);
1367
+ c.fetchers.set(i, Ae);
1368
+ let [Oe, se] = Nt(e.history, c, we, w, q, !1, p.v7_skipActionErrorRevalidation, te, Ce, Je, ce, Fe, fe, ke, u, [h.route.id, z]);
1369
+ se.filter((k) => k.key !== i).forEach((k) => {
1370
+ let pe = k.key, Ft = c.fetchers.get(pe), Br = Ve(void 0, Ft ? Ft.data : void 0);
1371
+ c.fetchers.set(pe, Br), Q.has(pe) && ve(pe), k.controller && Q.set(pe, k.controller);
1374
1372
  }), re({
1375
1373
  fetchers: new Map(c.fetchers)
1376
1374
  });
@@ -1379,27 +1377,27 @@ function ba(e) {
1379
1377
  let {
1380
1378
  loaderResults: tt,
1381
1379
  fetcherResults: rt
1382
- } = await Dt(c.matches, we, Ae, se, Z);
1380
+ } = await Dt(c.matches, we, Oe, se, Z);
1383
1381
  if (M.signal.aborted)
1384
1382
  return;
1385
- M.signal.removeEventListener("abort", et), Ce.delete(o), Q.delete(o), se.forEach((k) => Q.delete(k.key));
1386
- let U = Vt([...tt, ...rt]);
1387
- if (U) {
1388
- if (U.idx >= Ae.length) {
1389
- let k = se[U.idx - Ae.length].key;
1383
+ M.signal.removeEventListener("abort", et), Te.delete(i), Q.delete(i), se.forEach((k) => Q.delete(k.key));
1384
+ let _ = Vt([...tt, ...rt]);
1385
+ if (_) {
1386
+ if (_.idx >= Oe.length) {
1387
+ let k = se[_.idx - Oe.length].key;
1390
1388
  fe.add(k);
1391
1389
  }
1392
- return Ke(Z, U.result);
1390
+ return Ke(Z, _.result);
1393
1391
  }
1394
1392
  let {
1395
1393
  loaderData: G,
1396
1394
  errors: ae
1397
- } = Kt(c, c.matches, Ae, tt, void 0, se, rt, Ee);
1398
- if (c.fetchers.has(o)) {
1399
- let k = be(B.data);
1400
- c.fetchers.set(o, k);
1395
+ } = Kt(c, c.matches, Oe, tt, void 0, se, rt, Ee);
1396
+ if (c.fetchers.has(i)) {
1397
+ let k = be(z.data);
1398
+ c.fetchers.set(i, k);
1401
1399
  }
1402
- Lt(_e), c.navigation.state === "loading" && _e > Be ? (O(C, "Expected pending action"), F && F.abort(), Fe(c.navigation.location, {
1400
+ Lt(Ue), c.navigation.state === "loading" && Ue > Be ? (O(C, "Expected pending action"), F && F.abort(), _e(c.navigation.location, {
1403
1401
  matches: we,
1404
1402
  loaderData: G,
1405
1403
  errors: ae,
@@ -1410,28 +1408,28 @@ function ba(e) {
1410
1408
  fetchers: new Map(c.fetchers)
1411
1409
  }), te = !1);
1412
1410
  }
1413
- async function _r(o, i, d, h, D, E, j, w) {
1414
- let T = c.fetchers.get(o);
1415
- ye(o, Ve(w, T ? T.data : void 0), {
1411
+ async function Ur(i, o, d, h, D, E, j, w) {
1412
+ let T = c.fetchers.get(i);
1413
+ ye(i, Ve(w, T ? T.data : void 0), {
1416
1414
  flushSync: j
1417
1415
  });
1418
- let L = new AbortController(), M = Oe(e.history, d, L.signal);
1416
+ let L = new AbortController(), M = Ie(e.history, d, L.signal);
1419
1417
  if (E) {
1420
- let B = await qe(D, d, M.signal);
1421
- if (B.type === "aborted")
1418
+ let z = await qe(D, d, M.signal);
1419
+ if (z.type === "aborted")
1422
1420
  return;
1423
- if (B.type === "error") {
1421
+ if (z.type === "error") {
1424
1422
  let {
1425
1423
  error: q
1426
- } = Ze(d, B);
1427
- he(o, i, q, {
1424
+ } = Ze(d, z);
1425
+ he(i, o, q, {
1428
1426
  flushSync: j
1429
1427
  });
1430
1428
  return;
1431
- } else if (B.matches)
1432
- D = B.matches, h = Le(D, d);
1429
+ } else if (z.matches)
1430
+ D = z.matches, h = Me(D, d);
1433
1431
  else {
1434
- he(o, i, Y(404, {
1432
+ he(i, o, Y(404, {
1435
1433
  pathname: d
1436
1434
  }), {
1437
1435
  flushSync: j
@@ -1439,49 +1437,49 @@ function ba(e) {
1439
1437
  return;
1440
1438
  }
1441
1439
  }
1442
- Q.set(o, L);
1440
+ Q.set(i, L);
1443
1441
  let W = Ge, $ = (await $e("loader", M, [h], D))[0];
1444
- if (Re($) && ($ = await Rr($, M.signal, !0) || $), Q.get(o) === L && Q.delete(o), !M.signal.aborted) {
1445
- if (ce.has(o)) {
1446
- ye(o, be(void 0));
1442
+ if (Se($) && ($ = await Dr($, M.signal, !0) || $), Q.get(i) === L && Q.delete(i), !M.signal.aborted) {
1443
+ if (ce.has(i)) {
1444
+ ye(i, be(void 0));
1447
1445
  return;
1448
1446
  }
1449
1447
  if (De($))
1450
1448
  if (Be > W) {
1451
- ye(o, be(void 0));
1449
+ ye(i, be(void 0));
1452
1450
  return;
1453
1451
  } else {
1454
- fe.add(o), await Ke(M, $);
1452
+ fe.add(i), await Ke(M, $);
1455
1453
  return;
1456
1454
  }
1457
1455
  if (ee($)) {
1458
- he(o, i, $.error);
1456
+ he(i, o, $.error);
1459
1457
  return;
1460
1458
  }
1461
- O(!Re($), "Unhandled fetcher deferred data"), ye(o, be($.data));
1459
+ O(!Se($), "Unhandled fetcher deferred data"), ye(i, be($.data));
1462
1460
  }
1463
1461
  }
1464
- async function Ke(o, i, d) {
1462
+ async function Ke(i, o, d) {
1465
1463
  let {
1466
1464
  submission: h,
1467
1465
  fetcherSubmission: D,
1468
1466
  replace: E
1469
1467
  } = d === void 0 ? {} : d;
1470
- i.response.headers.has("X-Remix-Revalidate") && (te = !0);
1471
- let j = i.response.headers.get("Location");
1472
- O(j, "Expected a Location header on the redirect Response"), j = Bt(j, new URL(o.url), u);
1468
+ o.response.headers.has("X-Remix-Revalidate") && (te = !0);
1469
+ let j = o.response.headers.get("Location");
1470
+ O(j, "Expected a Location header on the redirect Response"), j = Bt(j, new URL(i.url), u);
1473
1471
  let w = ge(c.location, j, {
1474
1472
  _isRedirect: !0
1475
1473
  });
1476
1474
  if (r) {
1477
1475
  let $ = !1;
1478
- if (i.response.headers.has("X-Remix-Reload-Document"))
1476
+ if (o.response.headers.has("X-Remix-Reload-Document"))
1479
1477
  $ = !0;
1480
1478
  else if (wt.test(j)) {
1481
- const B = e.history.createURL(j);
1479
+ const z = e.history.createURL(j);
1482
1480
  $ = // Hard reload if it's an absolute URL to a new origin
1483
- B.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
1484
- Ye(B.pathname, u) == null;
1481
+ z.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
1482
+ Ye(z.pathname, u) == null;
1485
1483
  }
1486
1484
  if ($) {
1487
1485
  E ? t.location.replace(j) : t.location.assign(j);
@@ -1495,10 +1493,10 @@ function ba(e) {
1495
1493
  formEncType: W
1496
1494
  } = c.navigation;
1497
1495
  !h && !D && L && M && W && (h = Jt(c.navigation));
1498
- let H = h || D;
1499
- if (wa.has(i.response.status) && H && oe(H.formMethod))
1496
+ let B = h || D;
1497
+ if (wa.has(o.response.status) && B && ie(B.formMethod))
1500
1498
  await xe(T, w, {
1501
- submission: I({}, H, {
1499
+ submission: I({}, B, {
1502
1500
  formAction: j
1503
1501
  }),
1504
1502
  // Preserve this flag across redirects
@@ -1515,60 +1513,60 @@ function ba(e) {
1515
1513
  });
1516
1514
  }
1517
1515
  }
1518
- async function $e(o, i, d, h) {
1516
+ async function $e(i, o, d, h) {
1519
1517
  try {
1520
- let D = await mr(v, o, i, d, h, s, n);
1518
+ let D = await gr(v, i, o, d, h, s, n);
1521
1519
  return await Promise.all(D.map((E, j) => {
1522
- if (br(E)) {
1520
+ if (Rr(E)) {
1523
1521
  let w = E.result;
1524
1522
  return {
1525
- type: z.redirect,
1526
- response: yr(w, i, d[j].route.id, h, u, p.v7_relativeSplatPath)
1523
+ type: H.redirect,
1524
+ response: vr(w, o, d[j].route.id, h, u, p.v7_relativeSplatPath)
1527
1525
  };
1528
1526
  }
1529
- return gr(E);
1527
+ return yr(E);
1530
1528
  }));
1531
1529
  } catch (D) {
1532
1530
  return d.map(() => ({
1533
- type: z.error,
1531
+ type: H.error,
1534
1532
  error: D
1535
1533
  }));
1536
1534
  }
1537
1535
  }
1538
- async function Dt(o, i, d, h, D) {
1539
- let [E, ...j] = await Promise.all([d.length ? $e("loader", D, d, i) : [], ...h.map((w) => {
1536
+ async function Dt(i, o, d, h, D) {
1537
+ let [E, ...j] = await Promise.all([d.length ? $e("loader", D, d, o) : [], ...h.map((w) => {
1540
1538
  if (w.matches && w.match && w.controller) {
1541
- let T = Oe(e.history, w.path, w.controller.signal);
1539
+ let T = Ie(e.history, w.path, w.controller.signal);
1542
1540
  return $e("loader", T, [w.match], w.matches).then((L) => L[0]);
1543
1541
  } else
1544
1542
  return Promise.resolve({
1545
- type: z.error,
1543
+ type: H.error,
1546
1544
  error: Y(404, {
1547
1545
  pathname: w.path
1548
1546
  })
1549
1547
  });
1550
1548
  })]);
1551
- return await Promise.all([Yt(o, d, E, E.map(() => D.signal), !1, c.loaderData), Yt(o, h.map((w) => w.match), j, h.map((w) => w.controller ? w.controller.signal : null), !0)]), {
1549
+ return await Promise.all([Yt(i, d, E, E.map(() => D.signal), !1, c.loaderData), Yt(i, h.map((w) => w.match), j, h.map((w) => w.controller ? w.controller.signal : null), !0)]), {
1552
1550
  loaderResults: E,
1553
1551
  fetcherResults: j
1554
1552
  };
1555
1553
  }
1556
1554
  function lt() {
1557
- te = !0, je.push(...dt()), Te.forEach((o, i) => {
1558
- Q.has(i) && (Je.push(i), ve(i));
1555
+ te = !0, Ce.push(...dt()), Fe.forEach((i, o) => {
1556
+ Q.has(o) && (Je.push(o), ve(o));
1559
1557
  });
1560
1558
  }
1561
- function ye(o, i, d) {
1562
- d === void 0 && (d = {}), c.fetchers.set(o, i), re({
1559
+ function ye(i, o, d) {
1560
+ d === void 0 && (d = {}), c.fetchers.set(i, o), re({
1563
1561
  fetchers: new Map(c.fetchers)
1564
1562
  }, {
1565
1563
  flushSync: (d && d.flushSync) === !0
1566
1564
  });
1567
1565
  }
1568
- function he(o, i, d, h) {
1566
+ function he(i, o, d, h) {
1569
1567
  h === void 0 && (h = {});
1570
- let D = He(c.matches, i);
1571
- Xe(o), re({
1568
+ let D = Le(c.matches, o);
1569
+ Xe(i), re({
1572
1570
  errors: {
1573
1571
  [D.route.id]: d
1574
1572
  },
@@ -1577,116 +1575,113 @@ function ba(e) {
1577
1575
  flushSync: (h && h.flushSync) === !0
1578
1576
  });
1579
1577
  }
1580
- function Et(o) {
1581
- return p.v7_fetcherPersist && (We.set(o, (We.get(o) || 0) + 1), ce.has(o) && ce.delete(o)), c.fetchers.get(o) || lr;
1578
+ function Et(i) {
1579
+ return p.v7_fetcherPersist && (We.set(i, (We.get(i) || 0) + 1), ce.has(i) && ce.delete(i)), c.fetchers.get(i) || sr;
1582
1580
  }
1583
- function Xe(o) {
1584
- let i = c.fetchers.get(o);
1585
- Q.has(o) && !(i && i.state === "loading" && Ce.has(o)) && ve(o), Te.delete(o), Ce.delete(o), fe.delete(o), ce.delete(o), c.fetchers.delete(o);
1581
+ function Xe(i) {
1582
+ let o = c.fetchers.get(i);
1583
+ Q.has(i) && !(o && o.state === "loading" && Te.has(i)) && ve(i), Fe.delete(i), Te.delete(i), fe.delete(i), ce.delete(i), c.fetchers.delete(i);
1586
1584
  }
1587
- function Ur(o) {
1585
+ function Ar(i) {
1588
1586
  if (p.v7_fetcherPersist) {
1589
- let i = (We.get(o) || 0) - 1;
1590
- i <= 0 ? (We.delete(o), ce.add(o)) : We.set(o, i);
1587
+ let o = (We.get(i) || 0) - 1;
1588
+ o <= 0 ? (We.delete(i), ce.add(i)) : We.set(i, o);
1591
1589
  } else
1592
- Xe(o);
1590
+ Xe(i);
1593
1591
  re({
1594
1592
  fetchers: new Map(c.fetchers)
1595
1593
  });
1596
1594
  }
1597
- function ve(o) {
1598
- let i = Q.get(o);
1599
- O(i, "Expected fetch controller: " + o), i.abort(), Q.delete(o);
1595
+ function ve(i) {
1596
+ let o = Q.get(i);
1597
+ O(o, "Expected fetch controller: " + i), o.abort(), Q.delete(i);
1600
1598
  }
1601
- function Pt(o) {
1602
- for (let i of o) {
1603
- let d = Et(i), h = be(d.data);
1604
- c.fetchers.set(i, h);
1599
+ function Pt(i) {
1600
+ for (let o of i) {
1601
+ let d = Et(o), h = be(d.data);
1602
+ c.fetchers.set(o, h);
1605
1603
  }
1606
1604
  }
1607
1605
  function xt() {
1608
- let o = [], i = !1;
1606
+ let i = [], o = !1;
1609
1607
  for (let d of fe) {
1610
1608
  let h = c.fetchers.get(d);
1611
- O(h, "Expected fetcher: " + d), h.state === "loading" && (fe.delete(d), o.push(d), i = !0);
1609
+ O(h, "Expected fetcher: " + d), h.state === "loading" && (fe.delete(d), i.push(d), o = !0);
1612
1610
  }
1613
- return Pt(o), i;
1611
+ return Pt(i), o;
1614
1612
  }
1615
- function Lt(o) {
1616
- let i = [];
1617
- for (let [d, h] of Ce)
1618
- if (h < o) {
1613
+ function Lt(i) {
1614
+ let o = [];
1615
+ for (let [d, h] of Te)
1616
+ if (h < i) {
1619
1617
  let D = c.fetchers.get(d);
1620
- O(D, "Expected fetcher: " + d), D.state === "loading" && (ve(d), Ce.delete(d), i.push(d));
1618
+ O(D, "Expected fetcher: " + d), D.state === "loading" && (ve(d), Te.delete(d), o.push(d));
1621
1619
  }
1622
- return Pt(i), i.length > 0;
1620
+ return Pt(o), o.length > 0;
1623
1621
  }
1624
- function Ar(o, i) {
1625
- let d = c.blockers.get(o) || Ie;
1626
- return Pe.get(o) !== i && Pe.set(o, i), d;
1622
+ function Or(i, o) {
1623
+ let d = c.blockers.get(i) || Ne;
1624
+ return Pe.get(i) !== o && Pe.set(i, o), d;
1627
1625
  }
1628
- function Mt(o) {
1629
- c.blockers.delete(o), Pe.delete(o);
1626
+ function Mt(i) {
1627
+ c.blockers.delete(i), Pe.delete(i);
1630
1628
  }
1631
- function Qe(o, i) {
1632
- let d = c.blockers.get(o) || Ie;
1633
- O(d.state === "unblocked" && i.state === "blocked" || d.state === "blocked" && i.state === "blocked" || d.state === "blocked" && i.state === "proceeding" || d.state === "blocked" && i.state === "unblocked" || d.state === "proceeding" && i.state === "unblocked", "Invalid blocker state transition: " + d.state + " -> " + i.state);
1629
+ function Qe(i, o) {
1630
+ let d = c.blockers.get(i) || Ne;
1631
+ O(d.state === "unblocked" && o.state === "blocked" || d.state === "blocked" && o.state === "blocked" || d.state === "blocked" && o.state === "proceeding" || d.state === "blocked" && o.state === "unblocked" || d.state === "proceeding" && o.state === "unblocked", "Invalid blocker state transition: " + d.state + " -> " + o.state);
1634
1632
  let h = new Map(c.blockers);
1635
- h.set(o, i), re({
1633
+ h.set(i, o), re({
1636
1634
  blockers: h
1637
1635
  });
1638
1636
  }
1639
- function jt(o) {
1637
+ function jt(i) {
1640
1638
  let {
1641
- currentLocation: i,
1639
+ currentLocation: o,
1642
1640
  nextLocation: d,
1643
1641
  historyAction: h
1644
- } = o;
1642
+ } = i;
1645
1643
  if (Pe.size === 0)
1646
1644
  return;
1647
1645
  Pe.size > 1 && de(!1, "A router only supports one blocker at a time");
1648
1646
  let D = Array.from(Pe.entries()), [E, j] = D[D.length - 1], w = c.blockers.get(E);
1649
1647
  if (!(w && w.state === "proceeding") && j({
1650
- currentLocation: i,
1648
+ currentLocation: o,
1651
1649
  nextLocation: d,
1652
1650
  historyAction: h
1653
1651
  }))
1654
1652
  return E;
1655
1653
  }
1656
- function st(o) {
1657
- let i = Y(404, {
1658
- pathname: o
1654
+ function st(i) {
1655
+ let o = Y(404, {
1656
+ pathname: i
1659
1657
  }), d = f || l, {
1660
1658
  matches: h,
1661
1659
  route: D
1662
- } = ot(d);
1660
+ } = it(d);
1663
1661
  return dt(), {
1664
1662
  notFoundMatches: h,
1665
1663
  route: D,
1666
- error: i
1664
+ error: o
1667
1665
  };
1668
1666
  }
1669
- function Ze(o, i) {
1670
- let d = i.partialMatches, h = d[d.length - 1].route, D = Y(400, {
1671
- type: "route-discovery",
1672
- routeId: h.id,
1673
- pathname: o,
1674
- message: i.error != null && "message" in i.error ? i.error : String(i.error)
1675
- });
1667
+ function Ze(i, o) {
1676
1668
  return {
1677
- notFoundMatches: d,
1678
- route: h,
1679
- error: D
1669
+ boundaryId: Le(o.partialMatches).route.id,
1670
+ error: Y(400, {
1671
+ type: "route-discovery",
1672
+ pathname: i,
1673
+ message: o.error != null && "message" in o.error ? o.error : String(o.error)
1674
+ })
1680
1675
  };
1681
1676
  }
1682
- function dt(o) {
1683
- let i = [];
1677
+ function dt(i) {
1678
+ let o = [];
1684
1679
  return Ee.forEach((d, h) => {
1685
- (!o || o(h)) && (d.cancel(), i.push(h), Ee.delete(h));
1686
- }), i;
1680
+ (!i || i(h)) && (d.cancel(), o.push(h), Ee.delete(h));
1681
+ }), o;
1687
1682
  }
1688
- function Or(o, i, d) {
1689
- if (y = o, P = i, g = d || null, !A && c.navigation === nt) {
1683
+ function Ir(i, o, d) {
1684
+ if (y = i, P = o, g = d || null, !A && c.navigation === nt) {
1690
1685
  A = !0;
1691
1686
  let h = Tt(c.location, c.matches);
1692
1687
  h != null && re({
@@ -1697,48 +1692,48 @@ function ba(e) {
1697
1692
  y = null, P = null, g = null;
1698
1693
  };
1699
1694
  }
1700
- function Ct(o, i) {
1701
- return g && g(o, i.map((h) => Xt(h, c.loaderData))) || o.key;
1695
+ function Ct(i, o) {
1696
+ return g && g(i, o.map((h) => Xt(h, c.loaderData))) || i.key;
1702
1697
  }
1703
- function Ir(o, i) {
1698
+ function Nr(i, o) {
1704
1699
  if (y && P) {
1705
- let d = Ct(o, i);
1700
+ let d = Ct(i, o);
1706
1701
  y[d] = P();
1707
1702
  }
1708
1703
  }
1709
- function Tt(o, i) {
1704
+ function Tt(i, o) {
1710
1705
  if (y) {
1711
- let d = Ct(o, i), h = y[d];
1706
+ let d = Ct(i, o), h = y[d];
1712
1707
  if (typeof h == "number")
1713
1708
  return h;
1714
1709
  }
1715
1710
  return null;
1716
1711
  }
1717
- function ut(o, i, d) {
1712
+ function ut(i, o, d) {
1718
1713
  if (b)
1719
- if (o) {
1720
- let h = o[o.length - 1].route;
1714
+ if (i) {
1715
+ let h = i[i.length - 1].route;
1721
1716
  if (h.path && (h.path === "*" || h.path.endsWith("/*")))
1722
1717
  return {
1723
1718
  active: !0,
1724
- matches: at(i, d, u, !0)
1719
+ matches: at(o, d, u, !0)
1725
1720
  };
1726
1721
  } else
1727
1722
  return {
1728
1723
  active: !0,
1729
- matches: at(i, d, u, !0) || []
1724
+ matches: at(o, d, u, !0) || []
1730
1725
  };
1731
1726
  return {
1732
1727
  active: !1,
1733
1728
  matches: null
1734
1729
  };
1735
1730
  }
1736
- async function qe(o, i, d) {
1737
- let h = o, D = h.length > 0 ? h[h.length - 1].route : null;
1731
+ async function qe(i, o, d) {
1732
+ let h = i, D = h.length > 0 ? h[h.length - 1].route : null;
1738
1733
  for (; ; ) {
1739
1734
  let E = f == null, j = f || l;
1740
1735
  try {
1741
- await Pa(b, i, h, j, s, n, Dr, d);
1736
+ await Pa(b, o, h, j, s, n, Er, d);
1742
1737
  } catch (M) {
1743
1738
  return {
1744
1739
  type: "error",
@@ -1752,7 +1747,7 @@ function ba(e) {
1752
1747
  return {
1753
1748
  type: "aborted"
1754
1749
  };
1755
- let w = me(j, i, u), T = !1;
1750
+ let w = me(j, o, u), T = !1;
1756
1751
  if (w) {
1757
1752
  let M = w[w.length - 1].route;
1758
1753
  if (M.index)
@@ -1769,7 +1764,7 @@ function ba(e) {
1769
1764
  matches: w
1770
1765
  };
1771
1766
  }
1772
- let L = at(j, i, u, !0);
1767
+ let L = at(j, o, u, !0);
1773
1768
  if (!L || h.map((M) => M.route.id).join("-") === L.map((M) => M.route.id).join("-"))
1774
1769
  return {
1775
1770
  type: "success",
@@ -1782,12 +1777,12 @@ function ba(e) {
1782
1777
  };
1783
1778
  }
1784
1779
  }
1785
- function Nr(o) {
1786
- s = {}, f = Me(o, n, void 0, s);
1780
+ function Hr(i) {
1781
+ s = {}, f = je(i, n, void 0, s);
1787
1782
  }
1788
- function Hr(o, i) {
1783
+ function zr(i, o) {
1789
1784
  let d = f == null;
1790
- hr(o, i, f || l, s, n), d && (l = [...l], re({}));
1785
+ pr(i, o, f || l, s, n), d && (l = [...l], re({}));
1791
1786
  }
1792
1787
  return N = {
1793
1788
  get basename() {
@@ -1805,31 +1800,31 @@ function ba(e) {
1805
1800
  get window() {
1806
1801
  return t;
1807
1802
  },
1808
- initialize: Er,
1809
- subscribe: xr,
1810
- enableScrollRestoration: Or,
1811
- navigate: St,
1812
- fetch: Tr,
1813
- revalidate: Lr,
1803
+ initialize: Pr,
1804
+ subscribe: Lr,
1805
+ enableScrollRestoration: Ir,
1806
+ navigate: Rt,
1807
+ fetch: Fr,
1808
+ revalidate: Mr,
1814
1809
  // Passthrough to history-aware createHref used by useHref so we get proper
1815
1810
  // hash-aware URLs in DOM paths
1816
- createHref: (o) => e.history.createHref(o),
1817
- encodeLocation: (o) => e.history.encodeLocation(o),
1811
+ createHref: (i) => e.history.createHref(i),
1812
+ encodeLocation: (i) => e.history.encodeLocation(i),
1818
1813
  getFetcher: Et,
1819
- deleteFetcher: Ur,
1820
- dispose: Pr,
1821
- getBlocker: Ar,
1814
+ deleteFetcher: Ar,
1815
+ dispose: xr,
1816
+ getBlocker: Or,
1822
1817
  deleteBlocker: Mt,
1823
- patchRoutes: Hr,
1818
+ patchRoutes: zr,
1824
1819
  _internalFetchControllers: Q,
1825
1820
  _internalActiveDeferreds: Ee,
1826
1821
  // TODO: Remove setRoutes, it's temporary to avoid dealing with
1827
1822
  // updating the tree while validating the update algorithm.
1828
- _internalSetRoutes: Nr
1823
+ _internalSetRoutes: Hr
1829
1824
  }, N;
1830
1825
  }
1831
- const ur = Symbol("deferred");
1832
- function Sa(e, t) {
1826
+ const fr = Symbol("deferred");
1827
+ function Ra(e, t) {
1833
1828
  O(e.length > 0, "You must provide a non-empty routes array to createStaticHandler");
1834
1829
  let r = {}, a = (t ? t.basename : null) || "/", n;
1835
1830
  if (t != null && t.mapRouteProperties)
@@ -1840,27 +1835,27 @@ function Sa(e, t) {
1840
1835
  hasErrorBoundary: m(y)
1841
1836
  });
1842
1837
  } else
1843
- n = sr;
1838
+ n = dr;
1844
1839
  let s = I({
1845
1840
  v7_relativeSplatPath: !1,
1846
1841
  v7_throwAbortReason: !1
1847
- }, t ? t.future : null), l = Me(e, n, void 0, r);
1842
+ }, t ? t.future : null), l = je(e, n, void 0, r);
1848
1843
  async function f(m, y) {
1849
1844
  let {
1850
1845
  requestContext: g,
1851
1846
  skipLoaderErrorBubbling: P,
1852
1847
  unstable_dataStrategy: A
1853
- } = y === void 0 ? {} : y, x = new URL(m.url), _ = m.method, R = ge("", ue(x), null, "default"), N = me(l, R, a);
1854
- if (!yt(_) && _ !== "HEAD") {
1848
+ } = y === void 0 ? {} : y, x = new URL(m.url), U = m.method, S = ge("", ue(x), null, "default"), N = me(l, S, a);
1849
+ if (!yt(U) && U !== "HEAD") {
1855
1850
  let C = Y(405, {
1856
- method: _
1851
+ method: U
1857
1852
  }), {
1858
1853
  matches: J,
1859
1854
  route: F
1860
- } = ot(l);
1855
+ } = it(l);
1861
1856
  return {
1862
1857
  basename: a,
1863
- location: R,
1858
+ location: S,
1864
1859
  matches: J,
1865
1860
  loaderData: {},
1866
1861
  actionData: null,
@@ -1874,14 +1869,14 @@ function Sa(e, t) {
1874
1869
  };
1875
1870
  } else if (!N) {
1876
1871
  let C = Y(404, {
1877
- pathname: R.pathname
1872
+ pathname: S.pathname
1878
1873
  }), {
1879
1874
  matches: J,
1880
1875
  route: F
1881
- } = ot(l);
1876
+ } = it(l);
1882
1877
  return {
1883
1878
  basename: a,
1884
- location: R,
1879
+ location: S,
1885
1880
  matches: J,
1886
1881
  loaderData: {},
1887
1882
  actionData: null,
@@ -1894,9 +1889,9 @@ function Sa(e, t) {
1894
1889
  activeDeferreds: null
1895
1890
  };
1896
1891
  }
1897
- let c = await v(m, R, N, g, A || null, P === !0, null);
1898
- return Se(c) ? c : I({
1899
- location: R,
1892
+ let c = await v(m, S, N, g, A || null, P === !0, null);
1893
+ return Re(c) ? c : I({
1894
+ location: S,
1900
1895
  basename: a
1901
1896
  }, c);
1902
1897
  }
@@ -1905,27 +1900,27 @@ function Sa(e, t) {
1905
1900
  routeId: g,
1906
1901
  requestContext: P,
1907
1902
  unstable_dataStrategy: A
1908
- } = y === void 0 ? {} : y, x = new URL(m.url), _ = m.method, R = ge("", ue(x), null, "default"), N = me(l, R, a);
1909
- if (!yt(_) && _ !== "HEAD" && _ !== "OPTIONS")
1903
+ } = y === void 0 ? {} : y, x = new URL(m.url), U = m.method, S = ge("", ue(x), null, "default"), N = me(l, S, a);
1904
+ if (!yt(U) && U !== "HEAD" && U !== "OPTIONS")
1910
1905
  throw Y(405, {
1911
- method: _
1906
+ method: U
1912
1907
  });
1913
1908
  if (!N)
1914
1909
  throw Y(404, {
1915
- pathname: R.pathname
1910
+ pathname: S.pathname
1916
1911
  });
1917
- let c = g ? N.find((X) => X.route.id === g) : Le(N, R);
1912
+ let c = g ? N.find((X) => X.route.id === g) : Me(N, S);
1918
1913
  if (g && !c)
1919
1914
  throw Y(403, {
1920
- pathname: R.pathname,
1915
+ pathname: S.pathname,
1921
1916
  routeId: g
1922
1917
  });
1923
1918
  if (!c)
1924
1919
  throw Y(404, {
1925
- pathname: R.pathname
1920
+ pathname: S.pathname
1926
1921
  });
1927
- let C = await v(m, R, N, P, A || null, !1, c);
1928
- if (Se(C))
1922
+ let C = await v(m, S, N, P, A || null, !1, c);
1923
+ if (Re(C))
1929
1924
  return C;
1930
1925
  let J = C.errors ? Object.values(C.errors)[0] : void 0;
1931
1926
  if (J !== void 0)
@@ -1935,72 +1930,72 @@ function Sa(e, t) {
1935
1930
  if (C.loaderData) {
1936
1931
  var F;
1937
1932
  let X = Object.values(C.loaderData)[0];
1938
- return (F = C.activeDeferreds) != null && F[c.route.id] && (X[ur] = C.activeDeferreds[c.route.id]), X;
1933
+ return (F = C.activeDeferreds) != null && F[c.route.id] && (X[fr] = C.activeDeferreds[c.route.id]), X;
1939
1934
  }
1940
1935
  }
1941
- async function v(m, y, g, P, A, x, _) {
1936
+ async function v(m, y, g, P, A, x, U) {
1942
1937
  O(m.signal, "query()/queryRoute() requests must contain an AbortController signal");
1943
1938
  try {
1944
- if (oe(m.method.toLowerCase()))
1945
- return await b(m, g, _ || Le(g, y), P, A, x, _ != null);
1946
- let R = await p(m, g, P, A, x, _);
1947
- return Se(R) ? R : I({}, R, {
1939
+ if (ie(m.method.toLowerCase()))
1940
+ return await b(m, g, U || Me(g, y), P, A, x, U != null);
1941
+ let S = await p(m, g, P, A, x, U);
1942
+ return Re(S) ? S : I({}, S, {
1948
1943
  actionData: null,
1949
1944
  actionHeaders: {}
1950
1945
  });
1951
- } catch (R) {
1952
- if (ja(R) && Se(R.result)) {
1953
- if (R.type === z.error)
1954
- throw R.result;
1955
- return R.result;
1946
+ } catch (S) {
1947
+ if (ja(S) && Re(S.result)) {
1948
+ if (S.type === H.error)
1949
+ throw S.result;
1950
+ return S.result;
1956
1951
  }
1957
- if (Ca(R))
1958
- return R;
1959
- throw R;
1952
+ if (Ca(S))
1953
+ return S;
1954
+ throw S;
1960
1955
  }
1961
1956
  }
1962
- async function b(m, y, g, P, A, x, _) {
1963
- let R;
1957
+ async function b(m, y, g, P, A, x, U) {
1958
+ let S;
1964
1959
  if (!g.route.action && !g.route.lazy) {
1965
1960
  let C = Y(405, {
1966
1961
  method: m.method,
1967
1962
  pathname: new URL(m.url).pathname,
1968
1963
  routeId: g.route.id
1969
1964
  });
1970
- if (_)
1965
+ if (U)
1971
1966
  throw C;
1972
- R = {
1973
- type: z.error,
1967
+ S = {
1968
+ type: H.error,
1974
1969
  error: C
1975
1970
  };
1976
1971
  } else
1977
- R = (await S("action", m, [g], y, _, P, A))[0], m.signal.aborted && Ot(m, _, s);
1978
- if (De(R))
1972
+ S = (await R("action", m, [g], y, U, P, A))[0], m.signal.aborted && Ot(m, U, s);
1973
+ if (De(S))
1979
1974
  throw new Response(null, {
1980
- status: R.response.status,
1975
+ status: S.response.status,
1981
1976
  headers: {
1982
- Location: R.response.headers.get("Location")
1977
+ Location: S.response.headers.get("Location")
1983
1978
  }
1984
1979
  });
1985
- if (Re(R)) {
1980
+ if (Se(S)) {
1986
1981
  let C = Y(400, {
1987
1982
  type: "defer-action"
1988
1983
  });
1989
- if (_)
1984
+ if (U)
1990
1985
  throw C;
1991
- R = {
1992
- type: z.error,
1986
+ S = {
1987
+ type: H.error,
1993
1988
  error: C
1994
1989
  };
1995
1990
  }
1996
- if (_) {
1997
- if (ee(R))
1998
- throw R.error;
1991
+ if (U) {
1992
+ if (ee(S))
1993
+ throw S.error;
1999
1994
  return {
2000
1995
  matches: [g],
2001
1996
  loaderData: {},
2002
1997
  actionData: {
2003
- [g.route.id]: R.data
1998
+ [g.route.id]: S.data
2004
1999
  },
2005
2000
  errors: null,
2006
2001
  // Note: statusCode + headers are unused here since queryRoute will
@@ -2016,38 +2011,38 @@ function Sa(e, t) {
2016
2011
  redirect: m.redirect,
2017
2012
  signal: m.signal
2018
2013
  });
2019
- if (ee(R)) {
2020
- let C = x ? g : He(y, g.route.id), J = await p(N, y, P, A, x, null, [C.route.id, R]);
2014
+ if (ee(S)) {
2015
+ let C = x ? g : Le(y, g.route.id), J = await p(N, y, P, A, x, null, [C.route.id, S]);
2021
2016
  return I({}, J, {
2022
- statusCode: ze(R.error) ? R.error.status : R.statusCode != null ? R.statusCode : 500,
2017
+ statusCode: ze(S.error) ? S.error.status : S.statusCode != null ? S.statusCode : 500,
2023
2018
  actionData: null,
2024
- actionHeaders: I({}, R.headers ? {
2025
- [g.route.id]: R.headers
2019
+ actionHeaders: I({}, S.headers ? {
2020
+ [g.route.id]: S.headers
2026
2021
  } : {})
2027
2022
  });
2028
2023
  }
2029
2024
  let c = await p(N, y, P, A, x, null);
2030
2025
  return I({}, c, {
2031
2026
  actionData: {
2032
- [g.route.id]: R.data
2027
+ [g.route.id]: S.data
2033
2028
  }
2034
- }, R.statusCode ? {
2035
- statusCode: R.statusCode
2029
+ }, S.statusCode ? {
2030
+ statusCode: S.statusCode
2036
2031
  } : {}, {
2037
- actionHeaders: R.headers ? {
2038
- [g.route.id]: R.headers
2032
+ actionHeaders: S.headers ? {
2033
+ [g.route.id]: S.headers
2039
2034
  } : {}
2040
2035
  });
2041
2036
  }
2042
- async function p(m, y, g, P, A, x, _) {
2043
- let R = x != null;
2044
- if (R && !(x != null && x.route.loader) && !(x != null && x.route.lazy))
2037
+ async function p(m, y, g, P, A, x, U) {
2038
+ let S = x != null;
2039
+ if (S && !(x != null && x.route.loader) && !(x != null && x.route.lazy))
2045
2040
  throw Y(400, {
2046
2041
  method: m.method,
2047
2042
  pathname: new URL(m.url).pathname,
2048
2043
  routeId: x == null ? void 0 : x.route.id
2049
2044
  });
2050
- let c = (x ? [x] : _ && ee(_[1]) ? fr(y, _[0]) : y).filter((K) => K.route.loader || K.route.lazy);
2045
+ let c = (x ? [x] : U && ee(U[1]) ? cr(y, U[0]) : y).filter((K) => K.route.loader || K.route.lazy);
2051
2046
  if (c.length === 0)
2052
2047
  return {
2053
2048
  matches: y,
@@ -2055,16 +2050,16 @@ function Sa(e, t) {
2055
2050
  loaderData: y.reduce((K, ne) => Object.assign(K, {
2056
2051
  [ne.route.id]: null
2057
2052
  }), {}),
2058
- errors: _ && ee(_[1]) ? {
2059
- [_[0]]: _[1].error
2053
+ errors: U && ee(U[1]) ? {
2054
+ [U[0]]: U[1].error
2060
2055
  } : null,
2061
2056
  statusCode: 200,
2062
2057
  loaderHeaders: {},
2063
2058
  activeDeferreds: null
2064
2059
  };
2065
- let C = await S("loader", m, c, y, R, g, P);
2066
- m.signal.aborted && Ot(m, R, s);
2067
- let J = /* @__PURE__ */ new Map(), F = vr(y, c, C, _, J, A), X = new Set(c.map((K) => K.route.id));
2060
+ let C = await R("loader", m, c, y, S, g, P);
2061
+ m.signal.aborted && Ot(m, S, s);
2062
+ let J = /* @__PURE__ */ new Map(), F = wr(y, c, C, U, J, A), X = new Set(c.map((K) => K.route.id));
2068
2063
  return y.forEach((K) => {
2069
2064
  X.has(K.route.id) || (F.loaderData[K.route.id] = null);
2070
2065
  }), I({}, F, {
@@ -2072,16 +2067,16 @@ function Sa(e, t) {
2072
2067
  activeDeferreds: J.size > 0 ? Object.fromEntries(J.entries()) : null
2073
2068
  });
2074
2069
  }
2075
- async function S(m, y, g, P, A, x, _) {
2076
- let R = await mr(_ || pr, m, y, g, P, r, n, x);
2077
- return await Promise.all(R.map((N, c) => {
2078
- if (br(N)) {
2070
+ async function R(m, y, g, P, A, x, U) {
2071
+ let S = await gr(U || mr, m, y, g, P, r, n, x);
2072
+ return await Promise.all(S.map((N, c) => {
2073
+ if (Rr(N)) {
2079
2074
  let C = N.result;
2080
- throw yr(C, y, g[c].route.id, P, a, s.v7_relativeSplatPath);
2075
+ throw vr(C, y, g[c].route.id, P, a, s.v7_relativeSplatPath);
2081
2076
  }
2082
- if (Se(N.result) && A)
2077
+ if (Re(N.result) && A)
2083
2078
  throw N;
2084
- return gr(N);
2079
+ return yr(N);
2085
2080
  }));
2086
2081
  }
2087
2082
  return {
@@ -2090,7 +2085,7 @@ function Sa(e, t) {
2090
2085
  queryRoute: u
2091
2086
  };
2092
2087
  }
2093
- function Ra(e, t, r) {
2088
+ function Sa(e, t, r) {
2094
2089
  return I({}, t, {
2095
2090
  statusCode: ze(r) ? r.status : 500,
2096
2091
  errors: {
@@ -2118,8 +2113,8 @@ function mt(e, t, r, a, n, s, l, f) {
2118
2113
  }
2119
2114
  } else
2120
2115
  u = t, v = t[t.length - 1];
2121
- let b = rr(n || ".", tr(u, s), Ye(e.pathname, r) || e.pathname, f === "path");
2122
- return n == null && (b.search = e.search, b.hash = e.hash), (n == null || n === "" || n === ".") && v && v.route.index && !bt(b.search) && (b.search = b.search ? b.search.replace(/^\?/, "?index&") : "?index"), a && r !== "/" && (b.pathname = b.pathname === "/" ? r : Ne([r, b.pathname])), ue(b);
2116
+ let b = ar(n || ".", rr(u, s), Ye(e.pathname, r) || e.pathname, f === "path");
2117
+ return n == null && (b.search = e.search, b.hash = e.hash), (n == null || n === "" || n === ".") && v && v.route.index && !bt(b.search) && (b.search = b.search ? b.search.replace(/^\?/, "?index&") : "?index"), a && r !== "/" && (b.pathname = b.pathname === "/" ? r : He([r, b.pathname])), ue(b);
2123
2118
  }
2124
2119
  function It(e, t, r, a) {
2125
2120
  if (!a || !Da(a))
@@ -2138,12 +2133,12 @@ function It(e, t, r, a) {
2138
2133
  error: Y(400, {
2139
2134
  type: "invalid-body"
2140
2135
  })
2141
- }), s = a.formMethod || "get", l = e ? s.toUpperCase() : s.toLowerCase(), f = wr(r);
2136
+ }), s = a.formMethod || "get", l = e ? s.toUpperCase() : s.toLowerCase(), f = br(r);
2142
2137
  if (a.body !== void 0) {
2143
2138
  if (a.formEncType === "text/plain") {
2144
- if (!oe(l))
2139
+ if (!ie(l))
2145
2140
  return n();
2146
- let S = typeof a.body == "string" ? a.body : a.body instanceof FormData || a.body instanceof URLSearchParams ? (
2141
+ let R = typeof a.body == "string" ? a.body : a.body instanceof FormData || a.body instanceof URLSearchParams ? (
2147
2142
  // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data
2148
2143
  Array.from(a.body.entries()).reduce((m, y) => {
2149
2144
  let [g, P] = y;
@@ -2159,14 +2154,14 @@ function It(e, t, r, a) {
2159
2154
  formEncType: a.formEncType,
2160
2155
  formData: void 0,
2161
2156
  json: void 0,
2162
- text: S
2157
+ text: R
2163
2158
  }
2164
2159
  };
2165
2160
  } else if (a.formEncType === "application/json") {
2166
- if (!oe(l))
2161
+ if (!ie(l))
2167
2162
  return n();
2168
2163
  try {
2169
- let S = typeof a.body == "string" ? JSON.parse(a.body) : a.body;
2164
+ let R = typeof a.body == "string" ? JSON.parse(a.body) : a.body;
2170
2165
  return {
2171
2166
  path: r,
2172
2167
  submission: {
@@ -2174,7 +2169,7 @@ function It(e, t, r, a) {
2174
2169
  formAction: f,
2175
2170
  formEncType: a.formEncType,
2176
2171
  formData: void 0,
2177
- json: S,
2172
+ json: R,
2178
2173
  text: void 0
2179
2174
  }
2180
2175
  };
@@ -2207,18 +2202,18 @@ function It(e, t, r, a) {
2207
2202
  json: void 0,
2208
2203
  text: void 0
2209
2204
  };
2210
- if (oe(b.formMethod))
2205
+ if (ie(b.formMethod))
2211
2206
  return {
2212
2207
  path: r,
2213
2208
  submission: b
2214
2209
  };
2215
- let p = ie(r);
2210
+ let p = oe(r);
2216
2211
  return t && p.search && bt(p.search) && u.append("index", ""), p.search = "?" + u, {
2217
2212
  path: ue(p),
2218
2213
  submission: b
2219
2214
  };
2220
2215
  }
2221
- function fr(e, t) {
2216
+ function cr(e, t) {
2222
2217
  let r = e;
2223
2218
  if (t) {
2224
2219
  let a = e.findIndex((n) => n.route.id === t);
@@ -2226,8 +2221,8 @@ function fr(e, t) {
2226
2221
  }
2227
2222
  return r;
2228
2223
  }
2229
- function Nt(e, t, r, a, n, s, l, f, u, v, b, p, S, m, y, g) {
2230
- let P = g ? ee(g[1]) ? g[1].error : g[1].data : void 0, A = e.createURL(t.location), x = e.createURL(n), _ = g && ee(g[1]) ? g[0] : void 0, R = _ ? fr(r, _) : r, N = g ? g[1].statusCode : void 0, c = l && N && N >= 400, C = R.filter((F, X) => {
2224
+ function Nt(e, t, r, a, n, s, l, f, u, v, b, p, R, m, y, g) {
2225
+ let P = g ? ee(g[1]) ? g[1].error : g[1].data : void 0, A = e.createURL(t.location), x = e.createURL(n), U = g && ee(g[1]) ? g[0] : void 0, S = U ? cr(r, U) : r, N = g ? g[1].statusCode : void 0, c = l && N && N >= 400, C = S.filter((F, X) => {
2231
2226
  let {
2232
2227
  route: K
2233
2228
  } = F;
@@ -2248,16 +2243,16 @@ function Nt(e, t, r, a, n, s, l, f, u, v, b, p, S, m, y, g) {
2248
2243
  nextParams: le.params
2249
2244
  }, a, {
2250
2245
  actionResult: P,
2251
- unstable_actionStatus: N,
2246
+ actionStatus: N,
2252
2247
  defaultShouldRevalidate: c ? !1 : (
2253
2248
  // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
2254
2249
  f || A.pathname + A.search === x.pathname + x.search || // Search params affect all loaders
2255
- A.search !== x.search || cr(ne, le)
2250
+ A.search !== x.search || hr(ne, le)
2256
2251
  )
2257
2252
  }));
2258
2253
  }), J = [];
2259
2254
  return p.forEach((F, X) => {
2260
- if (s || !r.some((je) => je.route.id === F.routeId) || b.has(X))
2255
+ if (s || !r.some((Ce) => Ce.route.id === F.routeId) || b.has(X))
2261
2256
  return;
2262
2257
  let K = me(m, F.path, y);
2263
2258
  if (!K) {
@@ -2271,15 +2266,15 @@ function Nt(e, t, r, a, n, s, l, f, u, v, b, p, S, m, y, g) {
2271
2266
  });
2272
2267
  return;
2273
2268
  }
2274
- let ne = t.fetchers.get(X), le = Le(K, F.path), te = !1;
2275
- S.has(X) ? te = !1 : v.includes(X) ? te = !0 : ne && ne.state !== "idle" && ne.data === void 0 ? te = f : te = Ht(le, I({
2269
+ let ne = t.fetchers.get(X), le = Me(K, F.path), te = !1;
2270
+ R.has(X) ? te = !1 : v.includes(X) ? te = !0 : ne && ne.state !== "idle" && ne.data === void 0 ? te = f : te = Ht(le, I({
2276
2271
  currentUrl: A,
2277
2272
  currentParams: t.matches[t.matches.length - 1].params,
2278
2273
  nextUrl: x,
2279
2274
  nextParams: r[r.length - 1].params
2280
2275
  }, a, {
2281
2276
  actionResult: P,
2282
- unstable_actionStatus: N,
2277
+ actionStatus: N,
2283
2278
  defaultShouldRevalidate: c ? !1 : f
2284
2279
  })), te && J.push({
2285
2280
  key: X,
@@ -2299,7 +2294,7 @@ function Ea(e, t, r) {
2299
2294
  ), n = e[r.route.id] === void 0;
2300
2295
  return a || n;
2301
2296
  }
2302
- function cr(e, t) {
2297
+ function hr(e, t) {
2303
2298
  let r = e.route.path;
2304
2299
  return (
2305
2300
  // param change for this match, /users/123 -> /users/456
@@ -2324,22 +2319,22 @@ async function Pa(e, t, r, a, n, s, l, f) {
2324
2319
  path: t,
2325
2320
  matches: r,
2326
2321
  patch: (b, p) => {
2327
- f.aborted || hr(b, p, a, n, s);
2322
+ f.aborted || pr(b, p, a, n, s);
2328
2323
  }
2329
2324
  }), l.set(u, v)), v && Ma(v) && await v;
2330
2325
  } finally {
2331
2326
  l.delete(u);
2332
2327
  }
2333
2328
  }
2334
- function hr(e, t, r, a, n) {
2329
+ function pr(e, t, r, a, n) {
2335
2330
  if (e) {
2336
2331
  var s;
2337
2332
  let l = a[e];
2338
2333
  O(l, "No route found to patch children into: routeId = " + e);
2339
- let f = Me(t, n, [e, "patch", String(((s = l.children) == null ? void 0 : s.length) || "0")], a);
2334
+ let f = je(t, n, [e, "patch", String(((s = l.children) == null ? void 0 : s.length) || "0")], a);
2340
2335
  l.children ? l.children.push(...f) : l.children = f;
2341
2336
  } else {
2342
- let l = Me(t, n, ["patch", String(r.length || "0")], a);
2337
+ let l = je(t, n, ["patch", String(r.length || "0")], a);
2343
2338
  r.push(...l);
2344
2339
  }
2345
2340
  }
@@ -2356,23 +2351,23 @@ async function zt(e, t, r) {
2356
2351
  let u = n[l] !== void 0 && // This property isn't static since it should always be updated based
2357
2352
  // on the route updates
2358
2353
  l !== "hasErrorBoundary";
2359
- de(!u, 'Route "' + n.id + '" has a static property "' + l + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + l + '" will be ignored.')), !u && !kr.has(l) && (s[l] = a[l]);
2354
+ de(!u, 'Route "' + n.id + '" has a static property "' + l + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + l + '" will be ignored.')), !u && !Vr.has(l) && (s[l] = a[l]);
2360
2355
  }
2361
2356
  Object.assign(n, s), Object.assign(n, I({}, t(n), {
2362
2357
  lazy: void 0
2363
2358
  }));
2364
2359
  }
2365
- function pr(e) {
2360
+ function mr(e) {
2366
2361
  return Promise.all(e.matches.map((t) => t.resolve()));
2367
2362
  }
2368
- async function mr(e, t, r, a, n, s, l, f) {
2369
- let u = a.reduce((p, S) => p.add(S.route.id), /* @__PURE__ */ new Set()), v = /* @__PURE__ */ new Set(), b = await e({
2363
+ async function gr(e, t, r, a, n, s, l, f) {
2364
+ let u = a.reduce((p, R) => p.add(R.route.id), /* @__PURE__ */ new Set()), v = /* @__PURE__ */ new Set(), b = await e({
2370
2365
  matches: n.map((p) => {
2371
- let S = u.has(p.route.id);
2366
+ let R = u.has(p.route.id);
2372
2367
  return I({}, p, {
2373
- shouldLoad: S,
2374
- resolve: (y) => (v.add(p.route.id), S ? xa(t, r, p, s, l, y, f) : Promise.resolve({
2375
- type: z.data,
2368
+ shouldLoad: R,
2369
+ resolve: (y) => (v.add(p.route.id), R ? xa(t, r, p, s, l, y, f) : Promise.resolve({
2370
+ type: H.data,
2376
2371
  result: void 0
2377
2372
  }))
2378
2373
  });
@@ -2381,11 +2376,11 @@ async function mr(e, t, r, a, n, s, l, f) {
2381
2376
  params: n[0].params,
2382
2377
  context: f
2383
2378
  });
2384
- return n.forEach((p) => O(v.has(p.route.id), '`match.resolve()` was not called for route id "' + p.route.id + '". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')), b.filter((p, S) => u.has(n[S].route.id));
2379
+ return n.forEach((p) => O(v.has(p.route.id), '`match.resolve()` was not called for route id "' + p.route.id + '". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')), b.filter((p, R) => u.has(n[R].route.id));
2385
2380
  }
2386
2381
  async function xa(e, t, r, a, n, s, l) {
2387
2382
  let f, u, v = (b) => {
2388
- let p, S = new Promise((g, P) => p = P);
2383
+ let p, R = new Promise((g, P) => p = P);
2389
2384
  u = () => p(), t.signal.addEventListener("abort", u);
2390
2385
  let m = (g) => typeof b != "function" ? Promise.reject(new Error("You cannot call the handler for a route which defines a boolean " + ('"' + e + '" [routeId: ' + r.route.id + "]"))) : b({
2391
2386
  request: t,
@@ -2404,13 +2399,13 @@ async function xa(e, t, r, a, n, s, l) {
2404
2399
  result: g
2405
2400
  };
2406
2401
  }
2407
- })(), Promise.race([y, S]);
2402
+ })(), Promise.race([y, R]);
2408
2403
  };
2409
2404
  try {
2410
2405
  let b = r.route[e];
2411
2406
  if (r.route.lazy)
2412
2407
  if (b) {
2413
- let p, [S] = await Promise.all([
2408
+ let p, [R] = await Promise.all([
2414
2409
  // If the handler throws, don't let it immediately bubble out,
2415
2410
  // since we need to let the lazy() execution finish so we know if this
2416
2411
  // route has a boundary that can handle the error
@@ -2421,33 +2416,33 @@ async function xa(e, t, r, a, n, s, l) {
2421
2416
  ]);
2422
2417
  if (p !== void 0)
2423
2418
  throw p;
2424
- f = S;
2419
+ f = R;
2425
2420
  } else if (await zt(r.route, n, a), b = r.route[e], b)
2426
2421
  f = await v(b);
2427
2422
  else if (e === "action") {
2428
- let p = new URL(t.url), S = p.pathname + p.search;
2423
+ let p = new URL(t.url), R = p.pathname + p.search;
2429
2424
  throw Y(405, {
2430
2425
  method: t.method,
2431
- pathname: S,
2426
+ pathname: R,
2432
2427
  routeId: r.route.id
2433
2428
  });
2434
2429
  } else
2435
2430
  return {
2436
- type: z.data,
2431
+ type: H.data,
2437
2432
  result: void 0
2438
2433
  };
2439
2434
  else if (b)
2440
2435
  f = await v(b);
2441
2436
  else {
2442
- let p = new URL(t.url), S = p.pathname + p.search;
2437
+ let p = new URL(t.url), R = p.pathname + p.search;
2443
2438
  throw Y(404, {
2444
- pathname: S
2439
+ pathname: R
2445
2440
  });
2446
2441
  }
2447
2442
  O(f.result !== void 0, "You defined " + (e === "action" ? "an action" : "a loader") + " for route " + ('"' + r.route.id + "\" but didn't return anything from your `" + e + "` ") + "function. Please return a value or `null`.");
2448
2443
  } catch (b) {
2449
2444
  return {
2450
- type: z.error,
2445
+ type: H.error,
2451
2446
  result: b
2452
2447
  };
2453
2448
  } finally {
@@ -2455,57 +2450,57 @@ async function xa(e, t, r, a, n, s, l) {
2455
2450
  }
2456
2451
  return f;
2457
2452
  }
2458
- async function gr(e) {
2453
+ async function yr(e) {
2459
2454
  let {
2460
2455
  result: t,
2461
2456
  type: r,
2462
2457
  status: a
2463
2458
  } = e;
2464
- if (Se(t)) {
2459
+ if (Re(t)) {
2465
2460
  let l;
2466
2461
  try {
2467
2462
  let f = t.headers.get("Content-Type");
2468
2463
  f && /\bapplication\/json\b/.test(f) ? t.body == null ? l = null : l = await t.json() : l = await t.text();
2469
2464
  } catch (f) {
2470
2465
  return {
2471
- type: z.error,
2466
+ type: H.error,
2472
2467
  error: f
2473
2468
  };
2474
2469
  }
2475
- return r === z.error ? {
2476
- type: z.error,
2470
+ return r === H.error ? {
2471
+ type: H.error,
2477
2472
  error: new vt(t.status, t.statusText, l),
2478
2473
  statusCode: t.status,
2479
2474
  headers: t.headers
2480
2475
  } : {
2481
- type: z.data,
2476
+ type: H.data,
2482
2477
  data: l,
2483
2478
  statusCode: t.status,
2484
2479
  headers: t.headers
2485
2480
  };
2486
2481
  }
2487
- if (r === z.error)
2482
+ if (r === H.error)
2488
2483
  return {
2489
- type: z.error,
2484
+ type: H.error,
2490
2485
  error: t,
2491
2486
  statusCode: ze(t) ? t.status : a
2492
2487
  };
2493
2488
  if (Sr(t)) {
2494
2489
  var n, s;
2495
2490
  return {
2496
- type: z.deferred,
2491
+ type: H.deferred,
2497
2492
  deferredData: t,
2498
2493
  statusCode: (n = t.init) == null ? void 0 : n.status,
2499
2494
  headers: ((s = t.init) == null ? void 0 : s.headers) && new Headers(t.init.headers)
2500
2495
  };
2501
2496
  }
2502
2497
  return {
2503
- type: z.data,
2498
+ type: H.data,
2504
2499
  data: t,
2505
2500
  statusCode: a
2506
2501
  };
2507
2502
  }
2508
- function yr(e, t, r, a, n, s) {
2503
+ function vr(e, t, r, a, n, s) {
2509
2504
  let l = e.headers.get("Location");
2510
2505
  if (O(l, "Redirects returned/thrown from loaders/actions must have a Location header"), !wt.test(l)) {
2511
2506
  let f = a.slice(0, a.findIndex((u) => u.route.id === r) + 1);
@@ -2521,11 +2516,11 @@ function Bt(e, t, r) {
2521
2516
  }
2522
2517
  return e;
2523
2518
  }
2524
- function Oe(e, t, r, a) {
2525
- let n = e.createURL(wr(t)).toString(), s = {
2519
+ function Ie(e, t, r, a) {
2520
+ let n = e.createURL(br(t)).toString(), s = {
2526
2521
  signal: r
2527
2522
  };
2528
- if (a && oe(a.formMethod)) {
2523
+ if (a && ie(a.formMethod)) {
2529
2524
  let {
2530
2525
  formMethod: l,
2531
2526
  formEncType: f
@@ -2548,21 +2543,21 @@ function Wt(e) {
2548
2543
  t.append(r, a);
2549
2544
  return t;
2550
2545
  }
2551
- function vr(e, t, r, a, n, s) {
2546
+ function wr(e, t, r, a, n, s) {
2552
2547
  let l = {}, f = null, u, v = !1, b = {}, p = a && ee(a[1]) ? a[1].error : void 0;
2553
- return r.forEach((S, m) => {
2548
+ return r.forEach((R, m) => {
2554
2549
  let y = t[m].route.id;
2555
- if (O(!De(S), "Cannot handle redirect results in processLoaderData"), ee(S)) {
2556
- let g = S.error;
2550
+ if (O(!De(R), "Cannot handle redirect results in processLoaderData"), ee(R)) {
2551
+ let g = R.error;
2557
2552
  if (p !== void 0 && (g = p, p = void 0), f = f || {}, s)
2558
2553
  f[y] = g;
2559
2554
  else {
2560
- let P = He(e, y);
2555
+ let P = Le(e, y);
2561
2556
  f[P.route.id] == null && (f[P.route.id] = g);
2562
2557
  }
2563
- l[y] = void 0, v || (v = !0, u = ze(S.error) ? S.error.status : 500), S.headers && (b[y] = S.headers);
2558
+ l[y] = void 0, v || (v = !0, u = ze(R.error) ? R.error.status : 500), R.headers && (b[y] = R.headers);
2564
2559
  } else
2565
- Re(S) ? (n.set(y, S.deferredData), l[y] = S.deferredData.data, S.statusCode != null && S.statusCode !== 200 && !v && (u = S.statusCode), S.headers && (b[y] = S.headers)) : (l[y] = S.data, S.statusCode && S.statusCode !== 200 && !v && (u = S.statusCode), S.headers && (b[y] = S.headers));
2560
+ Se(R) ? (n.set(y, R.deferredData), l[y] = R.deferredData.data, R.statusCode != null && R.statusCode !== 200 && !v && (u = R.statusCode), R.headers && (b[y] = R.headers)) : (l[y] = R.data, R.statusCode && R.statusCode !== 200 && !v && (u = R.statusCode), R.headers && (b[y] = R.headers));
2566
2561
  }), p !== void 0 && a && (f = {
2567
2562
  [a[0]]: p
2568
2563
  }, l[a[0]] = void 0), {
@@ -2576,7 +2571,7 @@ function Kt(e, t, r, a, n, s, l, f) {
2576
2571
  let {
2577
2572
  loaderData: u,
2578
2573
  errors: v
2579
- } = vr(
2574
+ } = wr(
2580
2575
  t,
2581
2576
  r,
2582
2577
  a,
@@ -2588,20 +2583,20 @@ function Kt(e, t, r, a, n, s, l, f) {
2588
2583
  for (let b = 0; b < s.length; b++) {
2589
2584
  let {
2590
2585
  key: p,
2591
- match: S,
2586
+ match: R,
2592
2587
  controller: m
2593
2588
  } = s[b];
2594
2589
  O(l !== void 0 && l[b] !== void 0, "Did not find corresponding fetcher result");
2595
2590
  let y = l[b];
2596
2591
  if (!(m && m.signal.aborted))
2597
2592
  if (ee(y)) {
2598
- let g = He(e.matches, S == null ? void 0 : S.route.id);
2593
+ let g = Le(e.matches, R == null ? void 0 : R.route.id);
2599
2594
  v && v[g.route.id] || (v = I({}, v, {
2600
2595
  [g.route.id]: y.error
2601
2596
  })), e.fetchers.delete(p);
2602
2597
  } else if (De(y))
2603
2598
  O(!1, "Unhandled fetcher revalidation redirect");
2604
- else if (Re(y))
2599
+ else if (Se(y))
2605
2600
  O(!1, "Unhandled fetcher deferred data");
2606
2601
  else {
2607
2602
  let g = be(y.data);
@@ -2632,10 +2627,10 @@ function kt(e) {
2632
2627
  }
2633
2628
  } : {};
2634
2629
  }
2635
- function He(e, t) {
2630
+ function Le(e, t) {
2636
2631
  return (t ? e.slice(0, e.findIndex((a) => a.route.id === t) + 1) : [...e]).reverse().find((a) => a.route.hasErrorBoundary === !0) || e[0];
2637
2632
  }
2638
- function ot(e) {
2633
+ function it(e) {
2639
2634
  let t = e.length === 1 ? e[0] : e.find((r) => r.index || !r.path || r.path === "/") || {
2640
2635
  id: "__shim-error-route__"
2641
2636
  };
@@ -2657,7 +2652,8 @@ function Y(e, t) {
2657
2652
  type: s,
2658
2653
  message: l
2659
2654
  } = t === void 0 ? {} : t, f = "Unknown Server Error", u = "Unknown @remix-run/router error";
2660
- return e === 400 ? (f = "Bad Request", s === "route-discovery" ? u = 'Unable to match URL "' + r + '" - the `children()` function for ' + ("route `" + a + "` threw the following error:\n" + l) : n && r && a ? u = "You made a " + n + ' request to "' + r + '" but ' + ('did not provide a `loader` for route "' + a + '", ') + "so there is no way to handle the request." : s === "defer-action" ? u = "defer() is not supported in actions" : s === "invalid-body" && (u = "Unable to encode submission body")) : e === 403 ? (f = "Forbidden", u = 'Route "' + a + '" does not match URL "' + r + '"') : e === 404 ? (f = "Not Found", u = 'No route matches URL "' + r + '"') : e === 405 && (f = "Method Not Allowed", n && r && a ? u = "You made a " + n.toUpperCase() + ' request to "' + r + '" but ' + ('did not provide an `action` for route "' + a + '", ') + "so there is no way to handle the request." : n && (u = 'Invalid request method "' + n.toUpperCase() + '"')), new vt(e || 500, f, new Error(u), !0);
2655
+ return e === 400 ? (f = "Bad Request", s === "route-discovery" ? u = 'Unable to match URL "' + r + '" - the `unstable_patchRoutesOnMiss()` ' + (`function threw the following error:
2656
+ ` + l) : n && r && a ? u = "You made a " + n + ' request to "' + r + '" but ' + ('did not provide a `loader` for route "' + a + '", ') + "so there is no way to handle the request." : s === "defer-action" ? u = "defer() is not supported in actions" : s === "invalid-body" && (u = "Unable to encode submission body")) : e === 403 ? (f = "Forbidden", u = 'Route "' + a + '" does not match URL "' + r + '"') : e === 404 ? (f = "Not Found", u = 'No route matches URL "' + r + '"') : e === 405 && (f = "Method Not Allowed", n && r && a ? u = "You made a " + n.toUpperCase() + ' request to "' + r + '" but ' + ('did not provide an `action` for route "' + a + '", ') + "so there is no way to handle the request." : n && (u = 'Invalid request method "' + n.toUpperCase() + '"')), new vt(e || 500, f, new Error(u), !0);
2661
2657
  }
2662
2658
  function Vt(e) {
2663
2659
  for (let t = e.length - 1; t >= 0; t--) {
@@ -2669,8 +2665,8 @@ function Vt(e) {
2669
2665
  };
2670
2666
  }
2671
2667
  }
2672
- function wr(e) {
2673
- let t = typeof e == "string" ? ie(e) : e;
2668
+ function br(e) {
2669
+ let t = typeof e == "string" ? oe(e) : e;
2674
2670
  return ue(I({}, t, {
2675
2671
  hash: ""
2676
2672
  }));
@@ -2682,29 +2678,29 @@ function Ma(e) {
2682
2678
  return typeof e == "object" && e != null && "then" in e;
2683
2679
  }
2684
2680
  function ja(e) {
2685
- return e != null && typeof e == "object" && "type" in e && "result" in e && (e.type === z.data || e.type === z.error);
2681
+ return e != null && typeof e == "object" && "type" in e && "result" in e && (e.type === H.data || e.type === H.error);
2686
2682
  }
2687
- function br(e) {
2688
- return Se(e.result) && va.has(e.result.status);
2683
+ function Rr(e) {
2684
+ return Re(e.result) && va.has(e.result.status);
2689
2685
  }
2690
- function Re(e) {
2691
- return e.type === z.deferred;
2686
+ function Se(e) {
2687
+ return e.type === H.deferred;
2692
2688
  }
2693
2689
  function ee(e) {
2694
- return e.type === z.error;
2690
+ return e.type === H.error;
2695
2691
  }
2696
2692
  function De(e) {
2697
- return (e && e.type) === z.redirect;
2693
+ return (e && e.type) === H.redirect;
2698
2694
  }
2699
2695
  function Sr(e) {
2700
2696
  let t = e;
2701
2697
  return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
2702
2698
  }
2703
- function Se(e) {
2699
+ function Re(e) {
2704
2700
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
2705
2701
  }
2706
2702
  function Ca(e) {
2707
- if (!Se(e))
2703
+ if (!Re(e))
2708
2704
  return !1;
2709
2705
  let t = e.status, r = e.headers.get("Location");
2710
2706
  return t >= 300 && t <= 399 && r != null;
@@ -2712,7 +2708,7 @@ function Ca(e) {
2712
2708
  function yt(e) {
2713
2709
  return ya.has(e.toLowerCase());
2714
2710
  }
2715
- function oe(e) {
2711
+ function ie(e) {
2716
2712
  return ma.has(e.toLowerCase());
2717
2713
  }
2718
2714
  async function Yt(e, t, r, a, n, s) {
@@ -2720,31 +2716,31 @@ async function Yt(e, t, r, a, n, s) {
2720
2716
  let f = r[l], u = t[l];
2721
2717
  if (!u)
2722
2718
  continue;
2723
- let v = e.find((p) => p.route.id === u.route.id), b = v != null && !cr(v, u) && (s && s[u.route.id]) !== void 0;
2724
- if (Re(f) && (n || b)) {
2719
+ let v = e.find((p) => p.route.id === u.route.id), b = v != null && !hr(v, u) && (s && s[u.route.id]) !== void 0;
2720
+ if (Se(f) && (n || b)) {
2725
2721
  let p = a[l];
2726
- O(p, "Expected an AbortSignal for revalidating fetcher deferred result"), await Rr(f, p, n).then((S) => {
2727
- S && (r[l] = S || r[l]);
2722
+ O(p, "Expected an AbortSignal for revalidating fetcher deferred result"), await Dr(f, p, n).then((R) => {
2723
+ R && (r[l] = R || r[l]);
2728
2724
  });
2729
2725
  }
2730
2726
  }
2731
2727
  }
2732
- async function Rr(e, t, r) {
2728
+ async function Dr(e, t, r) {
2733
2729
  if (r === void 0 && (r = !1), !await e.deferredData.resolveData(t)) {
2734
2730
  if (r)
2735
2731
  try {
2736
2732
  return {
2737
- type: z.data,
2733
+ type: H.data,
2738
2734
  data: e.deferredData.unwrappedData
2739
2735
  };
2740
2736
  } catch (n) {
2741
2737
  return {
2742
- type: z.error,
2738
+ type: H.error,
2743
2739
  error: n
2744
2740
  };
2745
2741
  }
2746
2742
  return {
2747
- type: z.data,
2743
+ type: H.data,
2748
2744
  data: e.deferredData.data
2749
2745
  };
2750
2746
  }
@@ -2752,11 +2748,11 @@ async function Rr(e, t, r) {
2752
2748
  function bt(e) {
2753
2749
  return new URLSearchParams(e).getAll("index").some((t) => t === "");
2754
2750
  }
2755
- function Le(e, t) {
2756
- let r = typeof t == "string" ? ie(t).search : t.search;
2751
+ function Me(e, t) {
2752
+ let r = typeof t == "string" ? oe(t).search : t.search;
2757
2753
  if (e[e.length - 1].route.index && bt(r || ""))
2758
2754
  return e[e.length - 1];
2759
- let a = er(e);
2755
+ let a = tr(e);
2760
2756
  return a[a.length - 1];
2761
2757
  }
2762
2758
  function Jt(e) {
@@ -2878,7 +2874,7 @@ function be(e) {
2878
2874
  }
2879
2875
  function _a(e, t) {
2880
2876
  try {
2881
- let r = e.sessionStorage.getItem(dr);
2877
+ let r = e.sessionStorage.getItem(ur);
2882
2878
  if (r) {
2883
2879
  let a = JSON.parse(r);
2884
2880
  for (let [n, s] of Object.entries(a || {}))
@@ -2893,7 +2889,7 @@ function Ua(e, t) {
2893
2889
  for (let [a, n] of t)
2894
2890
  r[a] = [...n];
2895
2891
  try {
2896
- e.sessionStorage.setItem(dr, JSON.stringify(r));
2892
+ e.sessionStorage.setItem(ur, JSON.stringify(r));
2897
2893
  } catch (a) {
2898
2894
  de(!1, "Failed to save applied view transitions in sessionStorage (" + a + ").");
2899
2895
  }
@@ -2905,69 +2901,71 @@ const Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2905
2901
  get Action() {
2906
2902
  return V;
2907
2903
  },
2908
- IDLE_BLOCKER: Ie,
2909
- IDLE_FETCHER: lr,
2904
+ IDLE_BLOCKER: Ne,
2905
+ IDLE_FETCHER: sr,
2910
2906
  IDLE_NAVIGATION: nt,
2911
- UNSAFE_DEFERRED_SYMBOL: ur,
2912
- UNSAFE_DeferredData: nr,
2907
+ UNSAFE_DEFERRED_SYMBOL: fr,
2908
+ UNSAFE_DeferredData: ir,
2913
2909
  UNSAFE_ErrorResponseImpl: vt,
2914
2910
  UNSAFE_convertRouteMatchToUiMatch: Xt,
2915
- UNSAFE_convertRoutesToDataRoutes: Me,
2916
- UNSAFE_getResolveToMatches: tr,
2911
+ UNSAFE_convertRoutesToDataRoutes: je,
2912
+ UNSAFE_decodePath: qt,
2913
+ UNSAFE_getResolveToMatches: rr,
2917
2914
  UNSAFE_invariant: O,
2918
2915
  UNSAFE_warning: de,
2919
- createBrowserHistory: Wr,
2920
- createHashHistory: Kr,
2921
- createMemoryHistory: Br,
2916
+ createBrowserHistory: Kr,
2917
+ createHashHistory: $r,
2918
+ createMemoryHistory: Wr,
2922
2919
  createPath: ue,
2923
2920
  createRouter: ba,
2924
- createStaticHandler: Sa,
2921
+ createStaticHandler: Ra,
2925
2922
  defer: ha,
2926
- generatePath: aa,
2927
- getStaticContextFromError: Ra,
2923
+ generatePath: na,
2924
+ getStaticContextFromError: Sa,
2928
2925
  getToPathname: la,
2929
2926
  isDeferredData: Sr,
2930
2927
  isRouteErrorResponse: ze,
2931
- joinPaths: Ne,
2928
+ joinPaths: He,
2932
2929
  json: ua,
2933
2930
  matchPath: ht,
2934
2931
  matchRoutes: me,
2935
- normalizePathname: ar,
2936
- parsePath: ie,
2932
+ normalizePathname: nr,
2933
+ parsePath: oe,
2937
2934
  redirect: or,
2938
2935
  redirectDocument: pa,
2939
- resolvePath: qt,
2940
- resolveTo: rr,
2936
+ resolvePath: er,
2937
+ resolveTo: ar,
2941
2938
  stripBasename: Ye
2942
2939
  }, Symbol.toStringTag, { value: "Module" }));
2943
2940
  export {
2944
2941
  V as A,
2945
2942
  vt as E,
2946
- Ie as I,
2947
- O as a,
2948
- rr as b,
2949
- me as c,
2950
- Xt as d,
2951
- Br as e,
2952
- pt as f,
2953
- tr as g,
2954
- ba as h,
2943
+ Ne as I,
2944
+ or as a,
2945
+ O as b,
2946
+ ar as c,
2947
+ me as d,
2948
+ qt as e,
2949
+ Xt as f,
2950
+ rr as g,
2951
+ Wr as h,
2955
2952
  ze as i,
2956
- Ne as j,
2957
- ue as k,
2958
- ha as l,
2953
+ He as j,
2954
+ pt as k,
2955
+ ba as l,
2959
2956
  ht as m,
2960
- aa as n,
2961
- ua as o,
2962
- ie as p,
2963
- or as q,
2957
+ ue as n,
2958
+ ha as o,
2959
+ oe as p,
2960
+ na as q,
2964
2961
  Aa as r,
2965
2962
  Ye as s,
2966
- pa as t,
2967
- qt as u,
2968
- Wr as v,
2963
+ ua as t,
2964
+ pa as u,
2965
+ er as v,
2969
2966
  de as w,
2970
2967
  Kr as x,
2971
- lr as y
2968
+ $r as y,
2969
+ sr as z
2972
2970
  };
2973
- //# sourceMappingURL=router-CBw2vqJE.js.map
2971
+ //# sourceMappingURL=router-BiRCp01d.js.map