zudoku 0.25.3 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/dist/cli/dev/handler.js +2 -2
  2. package/dist/cli/dev/handler.js.map +1 -1
  3. package/dist/config/config.d.ts +1 -0
  4. package/dist/config/loader.js +1 -1
  5. package/dist/config/loader.js.map +1 -1
  6. package/dist/config/validators/common.d.ts +39 -28
  7. package/dist/config/validators/common.js +1 -0
  8. package/dist/config/validators/common.js.map +1 -1
  9. package/dist/config/validators/icon-types.d.ts +1 -1
  10. package/dist/config/validators/validate.d.ts +17 -12
  11. package/dist/lib/authentication/providers/auth0.js +1 -1
  12. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  13. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  14. package/dist/lib/authentication/providers/openid.js +10 -6
  15. package/dist/lib/authentication/providers/openid.js.map +1 -1
  16. package/dist/lib/components/Autocomplete.d.ts +12 -0
  17. package/dist/lib/components/Autocomplete.js +47 -0
  18. package/dist/lib/components/Autocomplete.js.map +1 -0
  19. package/dist/lib/components/Header.js +3 -3
  20. package/dist/lib/components/Header.js.map +1 -1
  21. package/dist/lib/components/index.js +2 -2
  22. package/dist/lib/components/index.js.map +1 -1
  23. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  24. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  25. package/dist/lib/plugins/markdown/MdxPage.js +8 -2
  26. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  27. package/dist/lib/plugins/openapi/OperationList.js +3 -0
  28. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  29. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  30. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  31. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
  32. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -2
  33. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  34. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -1
  35. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
  36. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  37. package/dist/lib/plugins/openapi/Sidecar.js +9 -6
  38. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  39. package/dist/lib/plugins/openapi/SidecarBox.js +1 -1
  40. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  41. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -1
  42. package/dist/lib/plugins/openapi/SidecarExamples.js +7 -4
  43. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  44. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  45. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
  46. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  47. package/dist/lib/plugins/openapi/playground/Headers.js +66 -4
  48. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  49. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -1
  50. package/dist/lib/plugins/openapi/playground/Playground.js +36 -11
  51. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -30
  53. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  54. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
  55. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
  56. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
  57. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
  58. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
  59. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
  60. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
  61. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
  62. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
  63. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
  64. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
  65. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
  66. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  67. package/dist/lib/ui/Badge.d.ts +1 -1
  68. package/dist/lib/ui/Badge.js +1 -0
  69. package/dist/lib/ui/Badge.js.map +1 -1
  70. package/dist/lib/ui/Command.d.ts +9 -1
  71. package/dist/lib/ui/Command.js +5 -1
  72. package/dist/lib/ui/Command.js.map +1 -1
  73. package/dist/lib/util/joinUrl.d.ts +1 -0
  74. package/dist/lib/util/joinUrl.js +40 -0
  75. package/dist/lib/util/joinUrl.js.map +1 -0
  76. package/dist/vite/build.js +10 -10
  77. package/dist/vite/build.js.map +1 -1
  78. package/dist/vite/config.js +4 -1
  79. package/dist/vite/config.js.map +1 -1
  80. package/dist/vite/config.test.js +5 -1
  81. package/dist/vite/config.test.js.map +1 -1
  82. package/dist/vite/dev-server.js +4 -1
  83. package/dist/vite/dev-server.js.map +1 -1
  84. package/dist/vite/plugin-api.d.ts +1 -1
  85. package/dist/vite/plugin-api.js +23 -5
  86. package/dist/vite/plugin-api.js.map +1 -1
  87. package/dist/vite/plugin-auth.js +4 -1
  88. package/dist/vite/plugin-auth.js.map +1 -1
  89. package/dist/vite/plugin-mdx.js +9 -4
  90. package/dist/vite/plugin-mdx.js.map +1 -1
  91. package/dist/vite/prerender.d.ts +2 -2
  92. package/dist/vite/prerender.js +4 -4
  93. package/dist/vite/prerender.js.map +1 -1
  94. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  95. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  96. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  97. package/dist/zuplo/env.d.ts +1 -0
  98. package/dist/zuplo/env.js +3 -0
  99. package/dist/zuplo/env.js.map +1 -1
  100. package/dist/zuplo/policy-types.d.ts +33 -0
  101. package/dist/zuplo/policy-types.js +8 -0
  102. package/dist/zuplo/policy-types.js.map +1 -0
  103. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  104. package/dist/zuplo/with-zuplo-processors.js +26 -0
  105. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  106. package/dist/zuplo/with-zuplo.d.ts +1 -2
  107. package/dist/zuplo/with-zuplo.js +6 -27
  108. package/dist/zuplo/with-zuplo.js.map +1 -1
  109. package/lib/{AnchorLink-DFZZbmvr.js → AnchorLink-bObQitZv.js} +3 -3
  110. package/lib/{AnchorLink-DFZZbmvr.js.map → AnchorLink-bObQitZv.js.map} +1 -1
  111. package/lib/{AuthenticationPlugin-D7G3me8L.js → AuthenticationPlugin-C9SwOxkc.js} +4 -4
  112. package/lib/{AuthenticationPlugin-D7G3me8L.js.map → AuthenticationPlugin-C9SwOxkc.js.map} +1 -1
  113. package/lib/{CategoryHeading-CBconmtI.js → CategoryHeading-MYL1u_6K.js} +3 -3
  114. package/lib/{CategoryHeading-CBconmtI.js.map → CategoryHeading-MYL1u_6K.js.map} +1 -1
  115. package/lib/{Markdown-CZDLNOFc.js → Markdown-DFN6p0J-.js} +1041 -1041
  116. package/lib/{Markdown-CZDLNOFc.js.map → Markdown-DFN6p0J-.js.map} +1 -1
  117. package/lib/{MdxPage-DKMbBROv.js → MdxPage-D9c4z09Q.js} +61 -56
  118. package/lib/MdxPage-D9c4z09Q.js.map +1 -0
  119. package/lib/{OperationList-B8bHMKme.js → OperationList-DGJWDx1G.js} +1264 -1244
  120. package/lib/OperationList-DGJWDx1G.js.map +1 -0
  121. package/lib/{Route-DYwKZ_c_.js → Route-VdmEyOD0.js} +5 -5
  122. package/lib/{Route-DYwKZ_c_.js.map → Route-VdmEyOD0.js.map} +1 -1
  123. package/lib/{Select-B_IxRUUC.js → Select-D3O7wISy.js} +36 -36
  124. package/lib/{Select-B_IxRUUC.js.map → Select-D3O7wISy.js.map} +1 -1
  125. package/lib/{SlotletProvider-pfc9oejW.js → SlotletProvider-_3zzX_g_.js} +53 -53
  126. package/lib/{SlotletProvider-pfc9oejW.js.map → SlotletProvider-_3zzX_g_.js.map} +1 -1
  127. package/lib/{Button-DeAoTouo.js → Spinner-BlzrEEk1.js} +16 -13
  128. package/lib/Spinner-BlzrEEk1.js.map +1 -0
  129. package/lib/{SyntaxHighlight-Bz-lOJtH.js → SyntaxHighlight-CJCSPG1F.js} +297 -301
  130. package/lib/{SyntaxHighlight-Bz-lOJtH.js.map → SyntaxHighlight-CJCSPG1F.js.map} +1 -1
  131. package/lib/{ZudokuContext-hmLMUdf2.js → ZudokuContext-DeQZEp-x.js} +357 -356
  132. package/lib/ZudokuContext-DeQZEp-x.js.map +1 -0
  133. package/lib/{chunk-D52XG6IA-Dl7HLe6j.js → chunk-SYFQ2XB5-BF5IDYrB.js} +410 -412
  134. package/lib/chunk-SYFQ2XB5-BF5IDYrB.js.map +1 -0
  135. package/lib/context-rwLGh-6_.js +22 -0
  136. package/lib/{context-h_UkBLvr.js.map → context-rwLGh-6_.js.map} +1 -1
  137. package/lib/{createServer-BznDkeSA.js → createServer-BcaswoFO.js} +1274 -1286
  138. package/lib/createServer-BcaswoFO.js.map +1 -0
  139. package/lib/{hook-CHq7pFyz.js → hook-BRQEDRbn.js} +17 -17
  140. package/lib/{hook-CHq7pFyz.js.map → hook-BRQEDRbn.js.map} +1 -1
  141. package/lib/index-B7mqiOei.js +509 -0
  142. package/lib/index-B7mqiOei.js.map +1 -0
  143. package/lib/index-CXRrqOIl.js +1750 -0
  144. package/lib/index-CXRrqOIl.js.map +1 -0
  145. package/lib/index-Djenk2Hj.js +36 -0
  146. package/lib/{index-CPNSgwSb.js.map → index-Djenk2Hj.js.map} +1 -1
  147. package/lib/{index-CBXSgjaE.js → index-Dl3Yl0yb.js} +65 -69
  148. package/lib/index-Dl3Yl0yb.js.map +1 -0
  149. package/lib/{index.esm-BSV1C092.js → index.esm-9-TF9KQB.js} +52 -52
  150. package/lib/{index.esm-BSV1C092.js.map → index.esm-9-TF9KQB.js.map} +1 -1
  151. package/lib/index.esm-CrSoEshU.js +1207 -0
  152. package/lib/index.esm-CrSoEshU.js.map +1 -0
  153. package/lib/joinUrl-BTy9bvoK.js +20 -0
  154. package/lib/joinUrl-BTy9bvoK.js.map +1 -0
  155. package/lib/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +135 -135
  156. package/lib/{jsx-runtime-Dx-03ztt.js.map → jsx-runtime-Bdg6XQ1m.js.map} +1 -1
  157. package/lib/post-processors/removeExtensions.js +7 -7
  158. package/lib/post-processors/removeExtensions.js.map +1 -1
  159. package/lib/post-processors/removeParameters.js +48 -0
  160. package/lib/post-processors/removeParameters.js.map +1 -0
  161. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  162. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  163. package/lib/{prism-csharp.min-DUwvItt4.js → prism-csharp.min-bQAo2pmx.js} +33 -33
  164. package/lib/{prism-csharp.min-DUwvItt4.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  165. package/lib/{prism-java.min-BtgBR4yd.js → prism-java.min-BpvsOuIa.js} +12 -12
  166. package/lib/{prism-java.min-BtgBR4yd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  167. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  168. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  169. package/lib/{prism-ruby.min-DeDXCp1r.js → prism-ruby.min-Dx9KO9ds.js} +16 -16
  170. package/lib/{prism-ruby.min-DeDXCp1r.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  171. package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
  172. package/lib/state-mM7uaXTW.js +202 -0
  173. package/lib/state-mM7uaXTW.js.map +1 -0
  174. package/lib/ui/Accordion.js +1 -1
  175. package/lib/ui/ActionButton.js +10 -11
  176. package/lib/ui/ActionButton.js.map +1 -1
  177. package/lib/ui/Alert.js +2 -2
  178. package/lib/ui/AlertDialog.js +1 -1
  179. package/lib/ui/Badge.js +3 -2
  180. package/lib/ui/Badge.js.map +1 -1
  181. package/lib/ui/Breadcrumb.js +1 -1
  182. package/lib/ui/Button.js +2 -2
  183. package/lib/ui/Callout.js +1 -1
  184. package/lib/ui/Card.js +1 -1
  185. package/lib/ui/Carousel.js +3 -3
  186. package/lib/ui/Carousel.js.map +1 -1
  187. package/lib/ui/Checkbox.js +2 -2
  188. package/lib/ui/Command.js +125 -13
  189. package/lib/ui/Command.js.map +1 -1
  190. package/lib/ui/Dialog.js +1 -1
  191. package/lib/ui/Drawer.js +520 -519
  192. package/lib/ui/Drawer.js.map +1 -1
  193. package/lib/ui/DropdownMenu.js +1 -1
  194. package/lib/ui/Form.js +2 -2
  195. package/lib/ui/HoverCard.js +1 -1
  196. package/lib/ui/Input.js +1 -1
  197. package/lib/ui/Label.js +2 -2
  198. package/lib/ui/Pagination.js +7 -7
  199. package/lib/ui/Popover.js +1 -1
  200. package/lib/ui/Progress.js +1 -1
  201. package/lib/ui/RadioGroup.js +1 -1
  202. package/lib/ui/ScrollArea.js +1 -1
  203. package/lib/ui/Select.js +1 -1
  204. package/lib/ui/Skeleton.js +1 -1
  205. package/lib/ui/Slider.js +1 -1
  206. package/lib/ui/Switch.js +1 -1
  207. package/lib/ui/Tabs.js +1 -1
  208. package/lib/ui/Textarea.js +1 -1
  209. package/lib/ui/Toggle.js +2 -2
  210. package/lib/ui/ToggleGroup.js +1 -1
  211. package/lib/ui/Tooltip.js +1 -1
  212. package/lib/{useExposedProps-DE9lR6MF.js → useExposedProps-CetwhZpP.js} +2 -2
  213. package/lib/{useExposedProps-DE9lR6MF.js.map → useExposedProps-CetwhZpP.js.map} +1 -1
  214. package/lib/zudoku.auth-auth0.js +8 -10
  215. package/lib/zudoku.auth-auth0.js.map +1 -1
  216. package/lib/zudoku.auth-clerk.js +18 -18
  217. package/lib/zudoku.auth-openid.js +225 -221
  218. package/lib/zudoku.auth-openid.js.map +1 -1
  219. package/lib/zudoku.components.js +476 -461
  220. package/lib/zudoku.components.js.map +1 -1
  221. package/lib/zudoku.plugin-api-catalog.js +5 -5
  222. package/lib/zudoku.plugin-api-keys.js +7 -7
  223. package/lib/zudoku.plugin-custom-pages.js +3 -3
  224. package/lib/zudoku.plugin-markdown.js +2 -2
  225. package/lib/zudoku.plugin-openapi.js +5 -5
  226. package/lib/zudoku.plugin-redirect.js +1 -1
  227. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  228. package/package.json +48 -48
  229. package/src/app/main.css +50 -50
  230. package/src/lib/authentication/providers/auth0.tsx +1 -4
  231. package/src/lib/authentication/providers/openid.tsx +12 -5
  232. package/src/lib/components/Autocomplete.tsx +111 -0
  233. package/src/lib/components/Header.tsx +3 -3
  234. package/src/lib/components/index.ts +2 -2
  235. package/src/lib/components/navigation/SidebarCategory.tsx +2 -2
  236. package/src/lib/plugins/markdown/MdxPage.tsx +9 -1
  237. package/src/lib/plugins/openapi/OperationList.tsx +4 -0
  238. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -5
  239. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +5 -0
  240. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +8 -2
  241. package/src/lib/plugins/openapi/Sidecar.tsx +15 -7
  242. package/src/lib/plugins/openapi/SidecarBox.tsx +1 -1
  243. package/src/lib/plugins/openapi/SidecarExamples.tsx +14 -6
  244. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +51 -0
  245. package/src/lib/plugins/openapi/playground/Headers.tsx +138 -41
  246. package/src/lib/plugins/openapi/playground/Playground.tsx +156 -62
  247. package/src/lib/plugins/openapi/playground/QueryParams.tsx +89 -122
  248. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
  249. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
  250. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
  251. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
  252. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
  253. package/src/lib/ui/Badge.tsx +1 -0
  254. package/src/lib/ui/Command.tsx +20 -0
  255. package/src/lib/util/joinUrl.ts +57 -0
  256. package/dist/lib/plugins/openapi/playground/EnumSelector.d.ts +0 -8
  257. package/dist/lib/plugins/openapi/playground/EnumSelector.js +0 -21
  258. package/dist/lib/plugins/openapi/playground/EnumSelector.js.map +0 -1
  259. package/lib/Button-DeAoTouo.js.map +0 -1
  260. package/lib/Command-9x_kZHr4.js +0 -611
  261. package/lib/Command-9x_kZHr4.js.map +0 -1
  262. package/lib/MdxPage-DKMbBROv.js.map +0 -1
  263. package/lib/OperationList-B8bHMKme.js.map +0 -1
  264. package/lib/Spinner-DuxJLLNE.js +0 -7
  265. package/lib/Spinner-DuxJLLNE.js.map +0 -1
  266. package/lib/ZudokuContext-hmLMUdf2.js.map +0 -1
  267. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +0 -1
  268. package/lib/context-h_UkBLvr.js +0 -22
  269. package/lib/createServer-BznDkeSA.js.map +0 -1
  270. package/lib/index-CBXSgjaE.js.map +0 -1
  271. package/lib/index-CPNSgwSb.js +0 -36
  272. package/lib/index-sD8L1_Dl.js +0 -1292
  273. package/lib/index-sD8L1_Dl.js.map +0 -1
  274. package/lib/index.esm-BnnBRKJX.js +0 -1214
  275. package/lib/index.esm-BnnBRKJX.js.map +0 -1
  276. package/lib/state-CFQsUZUP.js +0 -202
  277. package/lib/state-CFQsUZUP.js.map +0 -1
  278. package/src/lib/plugins/openapi/playground/EnumSelector.tsx +0 -86
@@ -3,14 +3,14 @@ var _ = {}, se;
3
3
  function Ae() {
4
4
  if (se) return _;
5
5
  se = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parse = s, _.serialize = u;
6
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = Object.prototype.toString, i = /* @__PURE__ */ (() => {
6
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
7
7
  const f = function() {
8
8
  };
9
9
  return f.prototype = /* @__PURE__ */ Object.create(null), f;
10
10
  })();
11
11
  function s(f, p) {
12
- const d = new i(), g = f.length;
13
- if (g < 2)
12
+ const d = new i(), v = f.length;
13
+ if (v < 2)
14
14
  return d;
15
15
  const w = (p == null ? void 0 : p.decode) || m;
16
16
  let h = 0;
@@ -18,7 +18,7 @@ function Ae() {
18
18
  const E = f.indexOf("=", h);
19
19
  if (E === -1)
20
20
  break;
21
- const y = f.indexOf(";", h), R = y === -1 ? g : y;
21
+ const y = f.indexOf(";", h), R = y === -1 ? v : y;
22
22
  if (E > R) {
23
23
  h = f.lastIndexOf(";", E - 1) + 1;
24
24
  continue;
@@ -30,30 +30,30 @@ function Ae() {
30
30
  d[$] = D;
31
31
  }
32
32
  h = R + 1;
33
- } while (h < g);
33
+ } while (h < v);
34
34
  return d;
35
35
  }
36
36
  function c(f, p, d) {
37
37
  do {
38
- const g = f.charCodeAt(p);
39
- if (g !== 32 && g !== 9)
38
+ const v = f.charCodeAt(p);
39
+ if (v !== 32 && v !== 9)
40
40
  return p;
41
41
  } while (++p < d);
42
42
  return d;
43
43
  }
44
44
  function l(f, p, d) {
45
45
  for (; p > d; ) {
46
- const g = f.charCodeAt(--p);
47
- if (g !== 32 && g !== 9)
46
+ const v = f.charCodeAt(--p);
47
+ if (v !== 32 && v !== 9)
48
48
  return p + 1;
49
49
  }
50
50
  return d;
51
51
  }
52
52
  function u(f, p, d) {
53
- const g = (d == null ? void 0 : d.encode) || encodeURIComponent;
53
+ const v = (d == null ? void 0 : d.encode) || encodeURIComponent;
54
54
  if (!e.test(f))
55
55
  throw new TypeError(`argument name is invalid: ${f}`);
56
- const w = g(p);
56
+ const w = v(p);
57
57
  if (!t.test(w))
58
58
  throw new TypeError(`argument val is invalid: ${p}`);
59
59
  let h = f + "=" + w;
@@ -65,7 +65,7 @@ function Ae() {
65
65
  h += "; Max-Age=" + d.maxAge;
66
66
  }
67
67
  if (d.domain) {
68
- if (!r.test(d.domain))
68
+ if (!n.test(d.domain))
69
69
  throw new TypeError(`option domain is invalid: ${d.domain}`);
70
70
  h += "; Domain=" + d.domain;
71
71
  }
@@ -75,7 +75,7 @@ function Ae() {
75
75
  h += "; Path=" + d.path;
76
76
  }
77
77
  if (d.expires) {
78
- if (!v(d.expires) || !Number.isFinite(d.expires.valueOf()))
78
+ if (!g(d.expires) || !Number.isFinite(d.expires.valueOf()))
79
79
  throw new TypeError(`option expires is invalid: ${d.expires}`);
80
80
  h += "; Expires=" + d.expires.toUTCString();
81
81
  }
@@ -119,14 +119,14 @@ function Ae() {
119
119
  return f;
120
120
  }
121
121
  }
122
- function v(f) {
123
- return n.call(f) === "[object Date]";
122
+ function g(f) {
123
+ return r.call(f) === "[object Date]";
124
124
  }
125
125
  return _;
126
126
  }
127
127
  Ae();
128
128
  /**
129
- * react-router v7.0.2
129
+ * react-router v7.1.3
130
130
  *
131
131
  * Copyright (c) Remix Software Inc.
132
132
  *
@@ -151,28 +151,28 @@ function L(e, t) {
151
151
  function B({
152
152
  pathname: e = "/",
153
153
  search: t = "",
154
- hash: r = ""
154
+ hash: n = ""
155
155
  }) {
156
- return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
156
+ return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
157
157
  }
158
158
  function Y(e) {
159
159
  let t = {};
160
160
  if (e) {
161
- let r = e.indexOf("#");
162
- r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
161
+ let n = e.indexOf("#");
162
+ n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
163
163
  let a = e.indexOf("?");
164
164
  a >= 0 && (t.search = e.substring(a), e = e.substring(0, a)), e && (t.pathname = e);
165
165
  }
166
166
  return t;
167
167
  }
168
- function pe(e, t, r = "/") {
169
- return De(e, t, r, !1);
168
+ function pe(e, t, n = "/") {
169
+ return De(e, t, n, !1);
170
170
  }
171
- function De(e, t, r, a) {
172
- let n = typeof t == "string" ? Y(t) : t, i = I(n.pathname || "/", r);
171
+ function De(e, t, n, a) {
172
+ let r = typeof t == "string" ? Y(t) : t, i = I(r.pathname || "/", n);
173
173
  if (i == null)
174
174
  return null;
175
- let s = ve(e);
175
+ let s = ge(e);
176
176
  Ie(s);
177
177
  let c = null;
178
178
  for (let l = 0; c == null && l < s.length; ++l) {
@@ -185,8 +185,8 @@ function De(e, t, r, a) {
185
185
  }
186
186
  return c;
187
187
  }
188
- function ve(e, t = [], r = [], a = "") {
189
- let n = (i, s, c) => {
188
+ function ge(e, t = [], n = [], a = "") {
189
+ let r = (i, s, c) => {
190
190
  let l = {
191
191
  relativePath: c === void 0 ? i.path || "" : c,
192
192
  caseSensitive: i.caseSensitive === !0,
@@ -197,13 +197,13 @@ function ve(e, t = [], r = [], a = "") {
197
197
  l.relativePath.startsWith(a),
198
198
  `Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
199
199
  ), l.relativePath = l.relativePath.slice(a.length));
200
- let u = A([a, l.relativePath]), m = r.concat(l);
200
+ let u = A([a, l.relativePath]), m = n.concat(l);
201
201
  i.children && i.children.length > 0 && (b(
202
202
  // Our types know better, but runtime JS may not!
203
203
  // @ts-expect-error
204
204
  i.index !== !0,
205
205
  `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
206
- ), ve(i.children, t, m, u)), !(i.path == null && !i.index) && t.push({
206
+ ), ge(i.children, t, m, u)), !(i.path == null && !i.index) && t.push({
207
207
  path: u,
208
208
  score: He(u, i.index),
209
209
  routesMeta: m
@@ -212,45 +212,45 @@ function ve(e, t = [], r = [], a = "") {
212
212
  return e.forEach((i, s) => {
213
213
  var c;
214
214
  if (i.path === "" || !((c = i.path) != null && c.includes("?")))
215
- n(i, s);
215
+ r(i, s);
216
216
  else
217
- for (let l of ge(i.path))
218
- n(i, s, l);
217
+ for (let l of ve(i.path))
218
+ r(i, s, l);
219
219
  }), t;
220
220
  }
221
- function ge(e) {
221
+ function ve(e) {
222
222
  let t = e.split("/");
223
223
  if (t.length === 0) return [];
224
- let [r, ...a] = t, n = r.endsWith("?"), i = r.replace(/\?$/, "");
224
+ let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
225
225
  if (a.length === 0)
226
- return n ? [i, ""] : [i];
227
- let s = ge(a.join("/")), c = [];
226
+ return r ? [i, ""] : [i];
227
+ let s = ve(a.join("/")), c = [];
228
228
  return c.push(
229
229
  ...s.map(
230
230
  (l) => l === "" ? i : [i, l].join("/")
231
231
  )
232
- ), n && c.push(...s), c.map(
232
+ ), r && c.push(...s), c.map(
233
233
  (l) => e.startsWith("/") && l === "" ? "/" : l
234
234
  );
235
235
  }
236
236
  function Ie(e) {
237
237
  e.sort(
238
- (t, r) => t.score !== r.score ? r.score - t.score : We(
238
+ (t, n) => t.score !== n.score ? n.score - t.score : We(
239
239
  t.routesMeta.map((a) => a.childrenIndex),
240
- r.routesMeta.map((a) => a.childrenIndex)
240
+ n.routesMeta.map((a) => a.childrenIndex)
241
241
  )
242
242
  );
243
243
  }
244
244
  var Oe = /^:[\w-]+$/, Me = 3, Fe = 2, _e = 1, Ue = 10, Be = -2, ce = (e) => e === "*";
245
245
  function He(e, t) {
246
- let r = e.split("/"), a = r.length;
247
- return r.some(ce) && (a += Be), t && (a += Fe), r.filter((n) => !ce(n)).reduce(
248
- (n, i) => n + (Oe.test(i) ? Me : i === "" ? _e : Ue),
246
+ let n = e.split("/"), a = n.length;
247
+ return n.some(ce) && (a += Be), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
248
+ (r, i) => r + (Oe.test(i) ? Me : i === "" ? _e : Ue),
249
249
  a
250
250
  );
251
251
  }
252
252
  function We(e, t) {
253
- return e.length === t.length && e.slice(0, -1).every((a, n) => a === t[n]) ? (
253
+ return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
254
254
  // If two routes are siblings, we should try to match the earlier sibling
255
255
  // first. This allows people to have fine-grained control over the matching
256
256
  // behavior by simply putting routes with identical paths in the order they
@@ -262,52 +262,52 @@ function We(e, t) {
262
262
  0
263
263
  );
264
264
  }
265
- function ze(e, t, r = !1) {
266
- let { routesMeta: a } = e, n = {}, i = "/", s = [];
265
+ function ze(e, t, n = !1) {
266
+ let { routesMeta: a } = e, r = {}, i = "/", s = [];
267
267
  for (let c = 0; c < a.length; ++c) {
268
- let l = a[c], u = c === a.length - 1, m = i === "/" ? t : t.slice(i.length) || "/", v = H(
268
+ let l = a[c], u = c === a.length - 1, m = i === "/" ? t : t.slice(i.length) || "/", g = H(
269
269
  { path: l.relativePath, caseSensitive: l.caseSensitive, end: u },
270
270
  m
271
271
  ), f = l.route;
272
- if (!v && u && r && !a[a.length - 1].route.index && (v = H(
272
+ if (!g && u && n && !a[a.length - 1].route.index && (g = H(
273
273
  {
274
274
  path: l.relativePath,
275
275
  caseSensitive: l.caseSensitive,
276
276
  end: !1
277
277
  },
278
278
  m
279
- )), !v)
279
+ )), !g)
280
280
  return null;
281
- Object.assign(n, v.params), s.push({
281
+ Object.assign(r, g.params), s.push({
282
282
  // TODO: Can this as be avoided?
283
- params: n,
284
- pathname: A([i, v.pathname]),
283
+ params: r,
284
+ pathname: A([i, g.pathname]),
285
285
  pathnameBase: Ke(
286
- A([i, v.pathnameBase])
286
+ A([i, g.pathnameBase])
287
287
  ),
288
288
  route: f
289
- }), v.pathnameBase !== "/" && (i = A([i, v.pathnameBase]));
289
+ }), g.pathnameBase !== "/" && (i = A([i, g.pathnameBase]));
290
290
  }
291
291
  return s;
292
292
  }
293
293
  function H(e, t) {
294
294
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
295
- let [r, a] = Ve(
295
+ let [n, a] = Ve(
296
296
  e.path,
297
297
  e.caseSensitive,
298
298
  e.end
299
- ), n = t.match(r);
300
- if (!n) return null;
301
- let i = n[0], s = i.replace(/(.)\/+$/, "$1"), c = n.slice(1);
299
+ ), r = t.match(n);
300
+ if (!r) return null;
301
+ let i = r[0], s = i.replace(/(.)\/+$/, "$1"), c = r.slice(1);
302
302
  return {
303
303
  params: a.reduce(
304
- (u, { paramName: m, isOptional: v }, f) => {
304
+ (u, { paramName: m, isOptional: g }, f) => {
305
305
  if (m === "*") {
306
306
  let d = c[f] || "";
307
307
  s = i.slice(0, i.length - d.length).replace(/(.)\/+$/, "$1");
308
308
  }
309
309
  const p = c[f];
310
- return v && !p ? u[m] = void 0 : u[m] = (p || "").replace(/%2F/g, "/"), u;
310
+ return g && !p ? u[m] = void 0 : u[m] = (p || "").replace(/%2F/g, "/"), u;
311
311
  },
312
312
  {}
313
313
  ),
@@ -316,16 +316,16 @@ function H(e, t) {
316
316
  pattern: e
317
317
  };
318
318
  }
319
- function Ve(e, t = !1, r = !0) {
319
+ function Ve(e, t = !1, n = !0) {
320
320
  L(
321
321
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
322
322
  `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(/\*$/, "/*")}".`
323
323
  );
324
- let a = [], n = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
324
+ let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
325
325
  /\/:([\w-]+)(\?)?/g,
326
326
  (s, c, l) => (a.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
327
327
  );
328
- return e.endsWith("*") ? (a.push({ paramName: "*" }), n += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? n += "\\/*$" : e !== "" && e !== "/" && (n += "(?:(?=\\/|$))"), [new RegExp(n, t ? void 0 : "i"), a];
328
+ return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
329
329
  }
330
330
  function ye(e) {
331
331
  try {
@@ -333,7 +333,7 @@ function ye(e) {
333
333
  } catch (t) {
334
334
  return L(
335
335
  !1,
336
- `The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
336
+ `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
337
337
  ), e;
338
338
  }
339
339
  }
@@ -341,79 +341,76 @@ function I(e, t) {
341
341
  if (t === "/") return e;
342
342
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
343
343
  return null;
344
- let r = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(r);
345
- return a && a !== "/" ? null : e.slice(r) || "/";
344
+ let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
345
+ return a && a !== "/" ? null : e.slice(n) || "/";
346
346
  }
347
347
  function je(e, t = "/") {
348
348
  let {
349
- pathname: r,
349
+ pathname: n,
350
350
  search: a = "",
351
- hash: n = ""
351
+ hash: r = ""
352
352
  } = typeof e == "string" ? Y(e) : e;
353
353
  return {
354
- pathname: r ? r.startsWith("/") ? r : Ye(r, t) : t,
354
+ pathname: n ? n.startsWith("/") ? n : Ye(n, t) : t,
355
355
  search: qe(a),
356
- hash: Ge(n)
356
+ hash: Ge(r)
357
357
  };
358
358
  }
359
359
  function Ye(e, t) {
360
- let r = t.replace(/\/+$/, "").split("/");
361
- return e.split("/").forEach((n) => {
362
- n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
363
- }), r.length > 1 ? r.join("/") : "/";
360
+ let n = t.replace(/\/+$/, "").split("/");
361
+ return e.split("/").forEach((r) => {
362
+ r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
363
+ }), n.length > 1 ? n.join("/") : "/";
364
364
  }
365
- function G(e, t, r, a) {
365
+ function G(e, t, n, a) {
366
366
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
367
367
  a
368
- )}]. 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.`;
368
+ )}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
369
369
  }
370
370
  function Je(e) {
371
371
  return e.filter(
372
- (t, r) => r === 0 || t.route.path && t.route.path.length > 0
372
+ (t, n) => n === 0 || t.route.path && t.route.path.length > 0
373
373
  );
374
374
  }
375
375
  function Z(e) {
376
376
  let t = Je(e);
377
377
  return t.map(
378
- (r, a) => a === t.length - 1 ? r.pathname : r.pathnameBase
378
+ (n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
379
379
  );
380
380
  }
381
- function ee(e, t, r, a = !1) {
382
- let n;
383
- typeof e == "string" ? n = Y(e) : (n = { ...e }, b(
384
- !n.pathname || !n.pathname.includes("?"),
385
- G("?", "pathname", "search", n)
381
+ function ee(e, t, n, a = !1) {
382
+ let r;
383
+ typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
384
+ !r.pathname || !r.pathname.includes("?"),
385
+ G("?", "pathname", "search", r)
386
386
  ), b(
387
- !n.pathname || !n.pathname.includes("#"),
388
- G("#", "pathname", "hash", n)
387
+ !r.pathname || !r.pathname.includes("#"),
388
+ G("#", "pathname", "hash", r)
389
389
  ), b(
390
- !n.search || !n.search.includes("#"),
391
- G("#", "search", "hash", n)
390
+ !r.search || !r.search.includes("#"),
391
+ G("#", "search", "hash", r)
392
392
  ));
393
- let i = e === "" || n.pathname === "", s = i ? "/" : n.pathname, c;
393
+ let i = e === "" || r.pathname === "", s = i ? "/" : r.pathname, c;
394
394
  if (s == null)
395
- c = r;
395
+ c = n;
396
396
  else {
397
- let v = t.length - 1;
397
+ let g = t.length - 1;
398
398
  if (!a && s.startsWith("..")) {
399
399
  let f = s.split("/");
400
400
  for (; f[0] === ".."; )
401
- f.shift(), v -= 1;
402
- n.pathname = f.join("/");
401
+ f.shift(), g -= 1;
402
+ r.pathname = f.join("/");
403
403
  }
404
- c = v >= 0 ? t[v] : "/";
404
+ c = g >= 0 ? t[g] : "/";
405
405
  }
406
- let l = je(n, c), u = s && s !== "/" && s.endsWith("/"), m = (i || s === ".") && r.endsWith("/");
406
+ let l = je(r, c), u = s && s !== "/" && s.endsWith("/"), m = (i || s === ".") && n.endsWith("/");
407
407
  return !l.pathname.endsWith("/") && (u || m) && (l.pathname += "/"), l;
408
408
  }
409
- var A = (e) => e.join("/").replace(/\/\/+/g, "/"), Ke = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), qe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ge = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ar = (e, t = 302) => {
410
- let r = t;
411
- typeof r == "number" ? r = { status: r } : typeof r.status > "u" && (r.status = 302);
412
- let a = new Headers(r.headers);
413
- return a.set("Location", e), new Response(null, {
414
- ...r,
415
- headers: a
416
- });
409
+ var A = (e) => e.join("/").replace(/\/\/+/g, "/"), Ke = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), qe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ge = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, an = (e, t = 302) => {
410
+ let n = t;
411
+ typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
412
+ let a = new Headers(n.headers);
413
+ return a.set("Location", e), new Response(null, { ...n, headers: a });
417
414
  };
418
415
  function we(e) {
419
416
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
@@ -460,8 +457,8 @@ var k = o.createContext({
460
457
  isDataRoute: !1
461
458
  });
462
459
  k.displayName = "Route";
463
- var re = o.createContext(null);
464
- re.displayName = "RouteError";
460
+ var ne = o.createContext(null);
461
+ ne.displayName = "RouteError";
465
462
  function Ze(e, { relative: t } = {}) {
466
463
  b(
467
464
  M(),
@@ -469,8 +466,8 @@ function Ze(e, { relative: t } = {}) {
469
466
  // router loaded. We can help them understand how to avoid that.
470
467
  "useHref() may be used only in the context of a <Router> component."
471
468
  );
472
- let { basename: r, navigator: a } = o.useContext(T), { hash: n, pathname: i, search: s } = W(e, { relative: t }), c = i;
473
- return r !== "/" && (c = i === "/" ? r : A([r, i])), a.createHref({ pathname: c, search: s, hash: n });
469
+ let { basename: n, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: s } = W(e, { relative: t }), c = i;
470
+ return n !== "/" && (c = i === "/" ? n : A([n, i])), a.createHref({ pathname: c, search: s, hash: r });
474
471
  }
475
472
  function M() {
476
473
  return o.useContext(K) != null;
@@ -483,7 +480,7 @@ function N() {
483
480
  "useLocation() may be used only in the context of a <Router> component."
484
481
  ), o.useContext(K).location;
485
482
  }
486
- function ir(e) {
483
+ function on(e) {
487
484
  b(
488
485
  M(),
489
486
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -500,7 +497,7 @@ var xe = "You should call navigate() in a React.useEffect(), not when your compo
500
497
  function Re(e) {
501
498
  o.useContext(T).static || o.useLayoutEffect(e);
502
499
  }
503
- function ne() {
500
+ function re() {
504
501
  let { isDataRoute: e } = o.useContext(k);
505
502
  return e ? dt() : et();
506
503
  }
@@ -511,23 +508,23 @@ function et() {
511
508
  // router loaded. We can help them understand how to avoid that.
512
509
  "useNavigate() may be used only in the context of a <Router> component."
513
510
  );
514
- let e = o.useContext(O), { basename: t, navigator: r } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: n } = N(), i = JSON.stringify(Z(a)), s = o.useRef(!1);
511
+ let e = o.useContext(O), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), s = o.useRef(!1);
515
512
  return Re(() => {
516
513
  s.current = !0;
517
514
  }), o.useCallback(
518
515
  (l, u = {}) => {
519
516
  if (L(s.current, xe), !s.current) return;
520
517
  if (typeof l == "number") {
521
- r.go(l);
518
+ n.go(l);
522
519
  return;
523
520
  }
524
521
  let m = ee(
525
522
  l,
526
523
  JSON.parse(i),
527
- n,
524
+ r,
528
525
  u.relative === "path"
529
526
  );
530
- e == null && t !== "/" && (m.pathname = m.pathname === "/" ? t : A([t, m.pathname])), (u.replace ? r.replace : r.push)(
527
+ e == null && t !== "/" && (m.pathname = m.pathname === "/" ? t : A([t, m.pathname])), (u.replace ? n.replace : n.push)(
531
528
  m,
532
529
  u.state,
533
530
  u
@@ -535,42 +532,42 @@ function et() {
535
532
  },
536
533
  [
537
534
  t,
538
- r,
539
- i,
540
535
  n,
536
+ i,
537
+ r,
541
538
  e
542
539
  ]
543
540
  );
544
541
  }
545
542
  var tt = o.createContext(null);
546
- function rt(e) {
543
+ function nt(e) {
547
544
  let t = o.useContext(k).outlet;
548
545
  return t && /* @__PURE__ */ o.createElement(tt.Provider, { value: e }, t);
549
546
  }
550
- function or() {
547
+ function ln() {
551
548
  let { matches: e } = o.useContext(k), t = e[e.length - 1];
552
549
  return t ? t.params : {};
553
550
  }
554
551
  function W(e, { relative: t } = {}) {
555
- let { matches: r } = o.useContext(k), { pathname: a } = N(), n = JSON.stringify(Z(r));
552
+ let { matches: n } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
556
553
  return o.useMemo(
557
554
  () => ee(
558
555
  e,
559
- JSON.parse(n),
556
+ JSON.parse(r),
560
557
  a,
561
558
  t === "path"
562
559
  ),
563
- [e, n, a, t]
560
+ [e, r, a, t]
564
561
  );
565
562
  }
566
- function be(e, t, r, a) {
563
+ function be(e, t, n, a) {
567
564
  b(
568
565
  M(),
569
566
  // TODO: This error is probably because they somehow have 2 versions of the
570
567
  // router loaded. We can help them understand how to avoid that.
571
568
  "useRoutes() may be used only in the context of a <Router> component."
572
569
  );
573
- let { navigator: n } = o.useContext(T), { matches: i } = o.useContext(k), s = i[i.length - 1], c = s ? s.params : {}, l = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", m = s && s.route;
570
+ let { navigator: r } = o.useContext(T), { matches: i } = o.useContext(k), s = i[i.length - 1], c = s ? s.params : {}, l = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", m = s && s.route;
574
571
  {
575
572
  let h = m && m.path || "";
576
573
  Se(
@@ -581,49 +578,49 @@ function be(e, t, r, a) {
581
578
  Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
582
579
  );
583
580
  }
584
- let v = N(), f;
585
- f = v;
581
+ let g = N(), f;
582
+ f = g;
586
583
  let p = f.pathname || "/", d = p;
587
584
  if (u !== "/") {
588
585
  let h = u.replace(/^\//, "").split("/");
589
586
  d = "/" + p.replace(/^\//, "").split("/").slice(h.length).join("/");
590
587
  }
591
- let g = pe(e, { pathname: d });
588
+ let v = pe(e, { pathname: d });
592
589
  return L(
593
- m || g != null,
590
+ m || v != null,
594
591
  `No routes matched location "${f.pathname}${f.search}${f.hash}" `
595
592
  ), L(
596
- g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.length - 1].route.lazy !== void 0,
593
+ v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
597
594
  `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
598
595
  ), lt(
599
- g && g.map(
596
+ v && v.map(
600
597
  (h) => Object.assign({}, h, {
601
598
  params: Object.assign({}, c, h.params),
602
599
  pathname: A([
603
600
  u,
604
601
  // Re-encode pathnames that were decoded inside matchRoutes
605
- n.encodeLocation ? n.encodeLocation(h.pathname).pathname : h.pathname
602
+ r.encodeLocation ? r.encodeLocation(h.pathname).pathname : h.pathname
606
603
  ]),
607
604
  pathnameBase: h.pathnameBase === "/" ? u : A([
608
605
  u,
609
606
  // Re-encode pathnames that were decoded inside matchRoutes
610
- n.encodeLocation ? n.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
607
+ r.encodeLocation ? r.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
611
608
  ])
612
609
  })
613
610
  ),
614
611
  i,
615
- r,
612
+ n,
616
613
  a
617
614
  );
618
615
  }
619
- function nt() {
620
- let e = ft(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", n = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, s = null;
616
+ function rt() {
617
+ let e = ft(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, s = null;
621
618
  return console.error(
622
619
  "Error handled by React Router default ErrorBoundary:",
623
620
  e
624
- ), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ o.createElement("pre", { style: n }, r) : null, s);
621
+ ), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ o.createElement("pre", { style: r }, n) : null, s);
625
622
  }
626
- var at = /* @__PURE__ */ o.createElement(nt, null), it = class extends o.Component {
623
+ var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Component {
627
624
  constructor(e) {
628
625
  super(e), this.state = {
629
626
  location: e.location,
@@ -654,7 +651,7 @@ var at = /* @__PURE__ */ o.createElement(nt, null), it = class extends o.Compone
654
651
  }
655
652
  render() {
656
653
  return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
657
- re.Provider,
654
+ ne.Provider,
658
655
  {
659
656
  value: this.state.error,
660
657
  children: this.props.component
@@ -662,24 +659,24 @@ var at = /* @__PURE__ */ o.createElement(nt, null), it = class extends o.Compone
662
659
  )) : this.props.children;
663
660
  }
664
661
  };
665
- function ot({ routeContext: e, match: t, children: r }) {
662
+ function ot({ routeContext: e, match: t, children: n }) {
666
663
  let a = o.useContext(O);
667
- return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, r);
664
+ return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, n);
668
665
  }
669
- function lt(e, t = [], r = null, a = null) {
666
+ function lt(e, t = [], n = null, a = null) {
670
667
  if (e == null) {
671
- if (!r)
668
+ if (!n)
672
669
  return null;
673
- if (r.errors)
674
- e = r.matches;
675
- else if (t.length === 0 && !r.initialized && r.matches.length > 0)
676
- e = r.matches;
670
+ if (n.errors)
671
+ e = n.matches;
672
+ else if (t.length === 0 && !n.initialized && n.matches.length > 0)
673
+ e = n.matches;
677
674
  else
678
675
  return null;
679
676
  }
680
- let n = e, i = r == null ? void 0 : r.errors;
677
+ let r = e, i = n == null ? void 0 : n.errors;
681
678
  if (i != null) {
682
- let l = n.findIndex(
679
+ let l = r.findIndex(
683
680
  (u) => u.route.id && (i == null ? void 0 : i[u.route.id]) !== void 0
684
681
  );
685
682
  b(
@@ -687,54 +684,54 @@ function lt(e, t = [], r = null, a = null) {
687
684
  `Could not find a matching route for errors on route IDs: ${Object.keys(
688
685
  i
689
686
  ).join(",")}`
690
- ), n = n.slice(
687
+ ), r = r.slice(
691
688
  0,
692
- Math.min(n.length, l + 1)
689
+ Math.min(r.length, l + 1)
693
690
  );
694
691
  }
695
692
  let s = !1, c = -1;
696
- if (r)
697
- for (let l = 0; l < n.length; l++) {
698
- let u = n[l];
693
+ if (n)
694
+ for (let l = 0; l < r.length; l++) {
695
+ let u = r[l];
699
696
  if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = l), u.route.id) {
700
- let { loaderData: m, errors: v } = r, f = u.route.loader && !m.hasOwnProperty(u.route.id) && (!v || v[u.route.id] === void 0);
697
+ let { loaderData: m, errors: g } = n, f = u.route.loader && !m.hasOwnProperty(u.route.id) && (!g || g[u.route.id] === void 0);
701
698
  if (u.route.lazy || f) {
702
- s = !0, c >= 0 ? n = n.slice(0, c + 1) : n = [n[0]];
699
+ s = !0, c >= 0 ? r = r.slice(0, c + 1) : r = [r[0]];
703
700
  break;
704
701
  }
705
702
  }
706
703
  }
707
- return n.reduceRight((l, u, m) => {
708
- let v, f = !1, p = null, d = null;
709
- r && (v = i && u.route.id ? i[u.route.id] : void 0, p = u.route.errorElement || at, s && (c < 0 && m === 0 ? (Se(
704
+ return r.reduceRight((l, u, m) => {
705
+ let g, f = !1, p = null, d = null;
706
+ n && (g = i && u.route.id ? i[u.route.id] : void 0, p = u.route.errorElement || at, s && (c < 0 && m === 0 ? (Se(
710
707
  "route-fallback",
711
708
  !1,
712
709
  "No `HydrateFallback` element provided to render during initial hydration"
713
710
  ), f = !0, d = null) : c === m && (f = !0, d = u.route.hydrateFallbackElement || null)));
714
- let g = t.concat(n.slice(0, m + 1)), w = () => {
711
+ let v = t.concat(r.slice(0, m + 1)), w = () => {
715
712
  let h;
716
- return v ? h = p : f ? h = d : u.route.Component ? h = /* @__PURE__ */ o.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = l, /* @__PURE__ */ o.createElement(
713
+ return g ? h = p : f ? h = d : u.route.Component ? h = /* @__PURE__ */ o.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = l, /* @__PURE__ */ o.createElement(
717
714
  ot,
718
715
  {
719
716
  match: u,
720
717
  routeContext: {
721
718
  outlet: l,
722
- matches: g,
723
- isDataRoute: r != null
719
+ matches: v,
720
+ isDataRoute: n != null
724
721
  },
725
722
  children: h
726
723
  }
727
724
  );
728
725
  };
729
- return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ o.createElement(
726
+ return n && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ o.createElement(
730
727
  it,
731
728
  {
732
- location: r.location,
733
- revalidation: r.revalidation,
729
+ location: n.location,
730
+ revalidation: n.revalidation,
734
731
  component: p,
735
- error: v,
732
+ error: g,
736
733
  children: w(),
737
- routeContext: { outlet: null, matches: g, isDataRoute: !0 }
734
+ routeContext: { outlet: null, matches: v, isDataRoute: !0 }
738
735
  }
739
736
  ) : w();
740
737
  }, null);
@@ -755,11 +752,11 @@ function st(e) {
755
752
  return b(t, ae(e)), t;
756
753
  }
757
754
  function ie(e) {
758
- let t = st(e), r = t.matches[t.matches.length - 1];
755
+ let t = st(e), n = t.matches[t.matches.length - 1];
759
756
  return b(
760
- r.route.id,
757
+ n.route.id,
761
758
  `${e} can only be used on routes that contain a unique "id"`
762
- ), r.route.id;
759
+ ), n.route.id;
763
760
  }
764
761
  function ct() {
765
762
  return ie(
@@ -767,7 +764,7 @@ function ct() {
767
764
  /* UseRouteId */
768
765
  );
769
766
  }
770
- function lr() {
767
+ function un() {
771
768
  return Ce(
772
769
  "useNavigation"
773
770
  /* UseNavigation */
@@ -775,14 +772,14 @@ function lr() {
775
772
  }
776
773
  function ft() {
777
774
  var a;
778
- let e = o.useContext(re), t = Ce(
775
+ let e = o.useContext(ne), t = Ce(
779
776
  "useRouteError"
780
777
  /* UseRouteError */
781
- ), r = ie(
778
+ ), n = ie(
782
779
  "useRouteError"
783
780
  /* UseRouteError */
784
781
  );
785
- return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[r];
782
+ return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
786
783
  }
787
784
  function dt() {
788
785
  let { router: e } = ut(
@@ -791,19 +788,19 @@ function dt() {
791
788
  ), t = ie(
792
789
  "useNavigate"
793
790
  /* UseNavigateStable */
794
- ), r = o.useRef(!1);
791
+ ), n = o.useRef(!1);
795
792
  return Re(() => {
796
- r.current = !0;
793
+ n.current = !0;
797
794
  }), o.useCallback(
798
- async (n, i = {}) => {
799
- L(r.current, xe), r.current && (typeof n == "number" ? e.navigate(n) : await e.navigate(n, { fromRouteId: t, ...i }));
795
+ async (r, i = {}) => {
796
+ L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...i }));
800
797
  },
801
798
  [e, t]
802
799
  );
803
800
  }
804
801
  var fe = {};
805
- function Se(e, t, r) {
806
- !t && !fe[e] && (fe[e] = !0, L(!1, r));
802
+ function Se(e, t, n) {
803
+ !t && !fe[e] && (fe[e] = !0, L(!1, n));
807
804
  }
808
805
  var de = {};
809
806
  function he(e, t) {
@@ -812,25 +809,25 @@ function he(e, t) {
812
809
  var ht = class {
813
810
  constructor() {
814
811
  this.status = "pending", this.promise = new Promise((e, t) => {
815
- this.resolve = (r) => {
816
- this.status === "pending" && (this.status = "resolved", e(r));
817
- }, this.reject = (r) => {
818
- this.status === "pending" && (this.status = "rejected", t(r));
812
+ this.resolve = (n) => {
813
+ this.status === "pending" && (this.status = "resolved", e(n));
814
+ }, this.reject = (n) => {
815
+ this.status === "pending" && (this.status = "rejected", t(n));
819
816
  };
820
817
  });
821
818
  }
822
819
  };
823
- function ur({
820
+ function sn({
824
821
  router: e,
825
822
  flushSync: t
826
823
  }) {
827
- let [r, a] = o.useState(e.state), [n, i] = o.useState(), [s, c] = o.useState({
824
+ let [n, a] = o.useState(e.state), [r, i] = o.useState(), [s, c] = o.useState({
828
825
  isTransitioning: !1
829
- }), [l, u] = o.useState(), [m, v] = o.useState(), [f, p] = o.useState(), d = o.useRef(/* @__PURE__ */ new Map()), g = o.useCallback(
826
+ }), [l, u] = o.useState(), [m, g] = o.useState(), [f, p] = o.useState(), d = o.useRef(/* @__PURE__ */ new Map()), v = o.useCallback(
830
827
  (y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
831
- R.forEach((S) => d.current.delete(S)), y.fetchers.forEach((S, P) => {
828
+ y.fetchers.forEach((S, P) => {
832
829
  S.data !== void 0 && d.current.set(P, S.data);
833
- }), he(
830
+ }), R.forEach((S) => d.current.delete(S)), he(
834
831
  x === !1 || t != null,
835
832
  'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
836
833
  );
@@ -856,9 +853,9 @@ function ur({
856
853
  });
857
854
  S.finished.finally(() => {
858
855
  t(() => {
859
- u(void 0), v(void 0), i(void 0), c({ isTransitioning: !1 });
856
+ u(void 0), g(void 0), i(void 0), c({ isTransitioning: !1 });
860
857
  });
861
- }), t(() => v(S));
858
+ }), t(() => g(S));
862
859
  return;
863
860
  }
864
861
  m ? (l && l.resolve(), m.skipTransition(), p({
@@ -874,20 +871,20 @@ function ur({
874
871
  },
875
872
  [e.window, t, m, l]
876
873
  );
877
- o.useLayoutEffect(() => e.subscribe(g), [e, g]), o.useEffect(() => {
874
+ o.useLayoutEffect(() => e.subscribe(v), [e, v]), o.useEffect(() => {
878
875
  s.isTransitioning && !s.flushSync && u(new ht());
879
876
  }, [s]), o.useEffect(() => {
880
- if (l && n && e.window) {
881
- let y = n, R = l.promise, x = e.window.document.startViewTransition(async () => {
877
+ if (l && r && e.window) {
878
+ let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
882
879
  o.startTransition(() => a(y)), await R;
883
880
  });
884
881
  x.finished.finally(() => {
885
- u(void 0), v(void 0), i(void 0), c({ isTransitioning: !1 });
886
- }), v(x);
882
+ u(void 0), g(void 0), i(void 0), c({ isTransitioning: !1 });
883
+ }), g(x);
887
884
  }
888
- }, [n, l, e.window]), o.useEffect(() => {
889
- l && n && r.location.key === n.location.key && l.resolve();
890
- }, [l, m, r.location, n]), o.useEffect(() => {
885
+ }, [r, l, e.window]), o.useEffect(() => {
886
+ l && r && n.location.key === r.location.key && l.resolve();
887
+ }, [l, m, n.location, r]), o.useEffect(() => {
891
888
  !s.isTransitioning && f && (i(f.state), c({
892
889
  isTransitioning: !0,
893
890
  flushSync: !1,
@@ -917,12 +914,12 @@ function ur({
917
914
  }),
918
915
  [e, w, h]
919
916
  );
920
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: E }, /* @__PURE__ */ o.createElement(F.Provider, { value: r }, /* @__PURE__ */ o.createElement(te.Provider, { value: d.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: s }, /* @__PURE__ */ o.createElement(
917
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: E }, /* @__PURE__ */ o.createElement(F.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: d.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: s }, /* @__PURE__ */ o.createElement(
921
918
  Pe,
922
919
  {
923
920
  basename: h,
924
- location: r.location,
925
- navigationType: r.historyAction,
921
+ location: n.location,
922
+ navigationType: n.historyAction,
926
923
  navigator: w
927
924
  },
928
925
  /* @__PURE__ */ o.createElement(
@@ -930,7 +927,7 @@ function ur({
930
927
  {
931
928
  routes: e.routes,
932
929
  future: e.future,
933
- state: r
930
+ state: n
934
931
  }
935
932
  )
936
933
  ))))), null);
@@ -939,14 +936,14 @@ var mt = o.memo(pt);
939
936
  function pt({
940
937
  routes: e,
941
938
  future: t,
942
- state: r
939
+ state: n
943
940
  }) {
944
- return be(e, void 0, r, t);
941
+ return be(e, void 0, n, t);
945
942
  }
946
- function sr({
943
+ function cn({
947
944
  to: e,
948
945
  replace: t,
949
- state: r,
946
+ state: n,
950
947
  relative: a
951
948
  }) {
952
949
  b(
@@ -955,30 +952,30 @@ function sr({
955
952
  // the router loaded. We can help them understand how to avoid that.
956
953
  "<Navigate> may be used only in the context of a <Router> component."
957
954
  );
958
- let { static: n } = o.useContext(T);
955
+ let { static: r } = o.useContext(T);
959
956
  L(
960
- !n,
957
+ !r,
961
958
  "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change."
962
959
  );
963
- let { matches: i } = o.useContext(k), { pathname: s } = N(), c = ne(), l = ee(
960
+ let { matches: i } = o.useContext(k), { pathname: s } = N(), c = re(), l = ee(
964
961
  e,
965
962
  Z(i),
966
963
  s,
967
964
  a === "path"
968
965
  ), u = JSON.stringify(l);
969
966
  return o.useEffect(() => {
970
- c(JSON.parse(u), { replace: t, state: r, relative: a });
971
- }, [c, u, a, t, r]), null;
967
+ c(JSON.parse(u), { replace: t, state: n, relative: a });
968
+ }, [c, u, a, t, n]), null;
972
969
  }
973
- function cr(e) {
974
- return rt(e.context);
970
+ function fn(e) {
971
+ return nt(e.context);
975
972
  }
976
973
  function Pe({
977
974
  basename: e = "/",
978
975
  children: t = null,
979
- location: r,
976
+ location: n,
980
977
  navigationType: a = "POP",
981
- navigator: n,
978
+ navigator: r,
982
979
  static: i = !1
983
980
  }) {
984
981
  b(
@@ -988,32 +985,32 @@ function Pe({
988
985
  let s = e.replace(/^\/*/, "/"), c = o.useMemo(
989
986
  () => ({
990
987
  basename: s,
991
- navigator: n,
988
+ navigator: r,
992
989
  static: i,
993
990
  future: {}
994
991
  }),
995
- [s, n, i]
992
+ [s, r, i]
996
993
  );
997
- typeof r == "string" && (r = Y(r));
994
+ typeof n == "string" && (n = Y(n));
998
995
  let {
999
996
  pathname: l = "/",
1000
997
  search: u = "",
1001
998
  hash: m = "",
1002
- state: v = null,
999
+ state: g = null,
1003
1000
  key: f = "default"
1004
- } = r, p = o.useMemo(() => {
1001
+ } = n, p = o.useMemo(() => {
1005
1002
  let d = I(l, s);
1006
1003
  return d == null ? null : {
1007
1004
  location: {
1008
1005
  pathname: d,
1009
1006
  search: u,
1010
1007
  hash: m,
1011
- state: v,
1008
+ state: g,
1012
1009
  key: f
1013
1010
  },
1014
1011
  navigationType: a
1015
1012
  };
1016
- }, [s, l, u, m, v, f, a]);
1013
+ }, [s, l, u, m, g, f, a]);
1017
1014
  return L(
1018
1015
  p != null,
1019
1016
  `<Router basename="${s}"> is not able to match the URL "${l}${u}${m}" because it does not start with the basename, so the <Router> won't render anything.`
@@ -1023,10 +1020,10 @@ var V = "get", j = "application/x-www-form-urlencoded";
1023
1020
  function q(e) {
1024
1021
  return e != null && typeof e.tagName == "string";
1025
1022
  }
1026
- function vt(e) {
1023
+ function gt(e) {
1027
1024
  return q(e) && e.tagName.toLowerCase() === "button";
1028
1025
  }
1029
- function gt(e) {
1026
+ function vt(e) {
1030
1027
  return q(e) && e.tagName.toLowerCase() === "form";
1031
1028
  }
1032
1029
  function yt(e) {
@@ -1042,21 +1039,21 @@ function Et(e, t) {
1042
1039
  }
1043
1040
  function Q(e = "") {
1044
1041
  return new URLSearchParams(
1045
- typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
1046
- let a = e[r];
1042
+ typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
1043
+ let a = e[n];
1047
1044
  return t.concat(
1048
- Array.isArray(a) ? a.map((n) => [r, n]) : [[r, a]]
1045
+ Array.isArray(a) ? a.map((r) => [n, r]) : [[n, a]]
1049
1046
  );
1050
1047
  }, [])
1051
1048
  );
1052
1049
  }
1053
1050
  function xt(e, t) {
1054
- let r = Q(e);
1055
- return t && t.forEach((a, n) => {
1056
- r.has(n) || t.getAll(n).forEach((i) => {
1057
- r.append(n, i);
1051
+ let n = Q(e);
1052
+ return t && t.forEach((a, r) => {
1053
+ n.has(r) || t.getAll(r).forEach((i) => {
1054
+ n.append(r, i);
1058
1055
  });
1059
- }), r;
1056
+ }), n;
1060
1057
  }
1061
1058
  var z = null;
1062
1059
  function Rt() {
@@ -1084,32 +1081,32 @@ function X(e) {
1084
1081
  ), null) : e;
1085
1082
  }
1086
1083
  function Ct(e, t) {
1087
- let r, a, n, i, s;
1088
- if (gt(e)) {
1084
+ let n, a, r, i, s;
1085
+ if (vt(e)) {
1089
1086
  let c = e.getAttribute("action");
1090
- a = c ? I(c, t) : null, r = e.getAttribute("method") || V, n = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1091
- } else if (vt(e) || yt(e) && (e.type === "submit" || e.type === "image")) {
1087
+ a = c ? I(c, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1088
+ } else if (gt(e) || yt(e) && (e.type === "submit" || e.type === "image")) {
1092
1089
  let c = e.form;
1093
1090
  if (c == null)
1094
1091
  throw new Error(
1095
1092
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1096
1093
  );
1097
1094
  let l = e.getAttribute("formaction") || c.getAttribute("action");
1098
- if (a = l ? I(l, t) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || V, n = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || j, i = new FormData(c, e), !Rt()) {
1099
- let { name: u, type: m, value: v } = e;
1095
+ if (a = l ? I(l, t) : null, n = e.getAttribute("formmethod") || c.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || j, i = new FormData(c, e), !Rt()) {
1096
+ let { name: u, type: m, value: g } = e;
1100
1097
  if (m === "image") {
1101
1098
  let f = u ? `${u}.` : "";
1102
1099
  i.append(`${f}x`, "0"), i.append(`${f}y`, "0");
1103
- } else u && i.append(u, v);
1100
+ } else u && i.append(u, g);
1104
1101
  }
1105
1102
  } else {
1106
1103
  if (q(e))
1107
1104
  throw new Error(
1108
1105
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1109
1106
  );
1110
- r = V, a = null, n = j, s = e;
1107
+ n = V, a = null, r = j, s = e;
1111
1108
  }
1112
- return i && n === "text/plain" && (s = i, i = void 0), { action: a, method: r.toLowerCase(), encType: n, formData: i, body: s };
1109
+ return i && r === "text/plain" && (s = i, i = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: i, body: s };
1113
1110
  }
1114
1111
  function oe(e, t) {
1115
1112
  if (e === !1 || e === null || typeof e > "u")
@@ -1119,53 +1116,53 @@ async function St(e, t) {
1119
1116
  if (e.id in t)
1120
1117
  return t[e.id];
1121
1118
  try {
1122
- let r = await import(
1119
+ let n = await import(
1123
1120
  /* @vite-ignore */
1124
1121
  /* webpackIgnore: true */
1125
1122
  e.module
1126
1123
  );
1127
- return t[e.id] = r, r;
1128
- } catch (r) {
1124
+ return t[e.id] = n, n;
1125
+ } catch (n) {
1129
1126
  return console.error(
1130
1127
  `Error loading route module \`${e.module}\`, reloading page...`
1131
- ), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
1128
+ ), console.error(n), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
1132
1129
  });
1133
1130
  }
1134
1131
  }
1135
1132
  function Pt(e) {
1136
1133
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1137
1134
  }
1138
- async function Lt(e, t, r) {
1135
+ async function Lt(e, t, n) {
1139
1136
  let a = await Promise.all(
1140
- e.map(async (n) => {
1141
- let i = t.routes[n.route.id];
1137
+ e.map(async (r) => {
1138
+ let i = t.routes[r.route.id];
1142
1139
  if (i) {
1143
- let s = await St(i, r);
1140
+ let s = await St(i, n);
1144
1141
  return s.links ? s.links() : [];
1145
1142
  }
1146
1143
  return [];
1147
1144
  })
1148
1145
  );
1149
1146
  return Nt(
1150
- a.flat(1).filter(Pt).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map(
1151
- (n) => n.rel === "stylesheet" ? { ...n, rel: "prefetch", as: "style" } : { ...n, rel: "prefetch" }
1147
+ a.flat(1).filter(Pt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
1148
+ (r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
1152
1149
  )
1153
1150
  );
1154
1151
  }
1155
- function me(e, t, r, a, n, i) {
1156
- let s = (l, u) => r[u] ? l.route.id !== r[u].route.id : !0, c = (l, u) => {
1152
+ function me(e, t, n, a, r, i) {
1153
+ let s = (l, u) => n[u] ? l.route.id !== n[u].route.id : !0, c = (l, u) => {
1157
1154
  var m;
1158
1155
  return (
1159
1156
  // param change, /users/123 -> /users/456
1160
- r[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
1157
+ n[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
1161
1158
  // e.g. /files/images/avatar.jpg -> files/finances.xls
1162
- ((m = r[u].route.path) == null ? void 0 : m.endsWith("*")) && r[u].params["*"] !== l.params["*"]
1159
+ ((m = n[u].route.path) == null ? void 0 : m.endsWith("*")) && n[u].params["*"] !== l.params["*"]
1163
1160
  );
1164
1161
  };
1165
1162
  return i === "assets" ? t.filter(
1166
1163
  (l, u) => s(l, u) || c(l, u)
1167
1164
  ) : i === "data" ? t.filter((l, u) => {
1168
- var v;
1165
+ var g;
1169
1166
  let m = a.routes[l.route.id];
1170
1167
  if (!m || !m.hasLoader)
1171
1168
  return !1;
@@ -1174,10 +1171,10 @@ function me(e, t, r, a, n, i) {
1174
1171
  if (l.route.shouldRevalidate) {
1175
1172
  let f = l.route.shouldRevalidate({
1176
1173
  currentUrl: new URL(
1177
- n.pathname + n.search + n.hash,
1174
+ r.pathname + r.search + r.hash,
1178
1175
  window.origin
1179
1176
  ),
1180
- currentParams: ((v = r[0]) == null ? void 0 : v.params) || {},
1177
+ currentParams: ((g = n[0]) == null ? void 0 : g.params) || {},
1181
1178
  nextUrl: new URL(e, window.origin),
1182
1179
  nextParams: l.params,
1183
1180
  defaultShouldRevalidate: !0
@@ -1190,11 +1187,11 @@ function me(e, t, r, a, n, i) {
1190
1187
  }
1191
1188
  function kt(e, t) {
1192
1189
  return $t(
1193
- e.map((r) => {
1194
- let a = t.routes[r.route.id];
1190
+ e.map((n) => {
1191
+ let a = t.routes[n.route.id];
1195
1192
  if (!a) return [];
1196
- let n = [a.module];
1197
- return a.imports && (n = n.concat(a.imports)), n;
1193
+ let r = [a.module];
1194
+ return a.imports && (r = r.concat(a.imports)), r;
1198
1195
  }).flat(1)
1199
1196
  );
1200
1197
  }
@@ -1202,16 +1199,16 @@ function $t(e) {
1202
1199
  return [...new Set(e)];
1203
1200
  }
1204
1201
  function Tt(e) {
1205
- let t = {}, r = Object.keys(e).sort();
1206
- for (let a of r)
1202
+ let t = {}, n = Object.keys(e).sort();
1203
+ for (let a of n)
1207
1204
  t[a] = e[a];
1208
1205
  return t;
1209
1206
  }
1210
1207
  function Nt(e, t) {
1211
- let r = /* @__PURE__ */ new Set();
1212
- return new Set(t), e.reduce((a, n) => {
1213
- let i = JSON.stringify(Tt(n));
1214
- return r.has(i) || (r.add(i), a.push({ key: i, link: n })), a;
1208
+ let n = /* @__PURE__ */ new Set();
1209
+ return new Set(t), e.reduce((a, r) => {
1210
+ let i = JSON.stringify(Tt(r));
1211
+ return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1215
1212
  }, []);
1216
1213
  }
1217
1214
  function At(e) {
@@ -1247,34 +1244,34 @@ function Le() {
1247
1244
  ), e;
1248
1245
  }
1249
1246
  function Ot(e, t) {
1250
- let r = o.useContext(le), [a, n] = o.useState(!1), [i, s] = o.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: m, onTouchStart: v } = t, f = o.useRef(null);
1247
+ let n = o.useContext(le), [a, r] = o.useState(!1), [i, s] = o.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: m, onTouchStart: g } = t, f = o.useRef(null);
1251
1248
  o.useEffect(() => {
1252
1249
  if (e === "render" && s(!0), e === "viewport") {
1253
- let g = (h) => {
1250
+ let v = (h) => {
1254
1251
  h.forEach((E) => {
1255
1252
  s(E.isIntersecting);
1256
1253
  });
1257
- }, w = new IntersectionObserver(g, { threshold: 0.5 });
1254
+ }, w = new IntersectionObserver(v, { threshold: 0.5 });
1258
1255
  return f.current && w.observe(f.current), () => {
1259
1256
  w.disconnect();
1260
1257
  };
1261
1258
  }
1262
1259
  }, [e]), o.useEffect(() => {
1263
1260
  if (a) {
1264
- let g = setTimeout(() => {
1261
+ let v = setTimeout(() => {
1265
1262
  s(!0);
1266
1263
  }, 100);
1267
1264
  return () => {
1268
- clearTimeout(g);
1265
+ clearTimeout(v);
1269
1266
  };
1270
1267
  }
1271
1268
  }, [a]);
1272
1269
  let p = () => {
1273
- n(!0);
1270
+ r(!0);
1274
1271
  }, d = () => {
1275
- n(!1), s(!1);
1272
+ r(!1), s(!1);
1276
1273
  };
1277
- return r ? e !== "intent" ? [i, f, {}] : [
1274
+ return n ? e !== "intent" ? [i, f, {}] : [
1278
1275
  i,
1279
1276
  f,
1280
1277
  {
@@ -1282,91 +1279,91 @@ function Ot(e, t) {
1282
1279
  onBlur: U(l, d),
1283
1280
  onMouseEnter: U(u, p),
1284
1281
  onMouseLeave: U(m, d),
1285
- onTouchStart: U(v, p)
1282
+ onTouchStart: U(g, p)
1286
1283
  }
1287
1284
  ] : [!1, f, {}];
1288
1285
  }
1289
1286
  function U(e, t) {
1290
- return (r) => {
1291
- e && e(r), r.defaultPrevented || t(r);
1287
+ return (n) => {
1288
+ e && e(n), n.defaultPrevented || t(n);
1292
1289
  };
1293
1290
  }
1294
1291
  function Mt({
1295
1292
  page: e,
1296
1293
  ...t
1297
1294
  }) {
1298
- let { router: r } = Dt(), a = o.useMemo(
1299
- () => pe(r.routes, e, r.basename),
1300
- [r.routes, e, r.basename]
1295
+ let { router: n } = Dt(), a = o.useMemo(
1296
+ () => pe(n.routes, e, n.basename),
1297
+ [n.routes, e, n.basename]
1301
1298
  );
1302
- return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : (console.warn(`Tried to prefetch ${e} but no routes matched.`), null);
1299
+ return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : null;
1303
1300
  }
1304
1301
  function Ft(e) {
1305
- let { manifest: t, routeModules: r } = Le(), [a, n] = o.useState([]);
1302
+ let { manifest: t, routeModules: n } = Le(), [a, r] = o.useState([]);
1306
1303
  return o.useEffect(() => {
1307
1304
  let i = !1;
1308
- return Lt(e, t, r).then(
1305
+ return Lt(e, t, n).then(
1309
1306
  (s) => {
1310
- i || n(s);
1307
+ i || r(s);
1311
1308
  }
1312
1309
  ), () => {
1313
1310
  i = !0;
1314
1311
  };
1315
- }, [e, t, r]), a;
1312
+ }, [e, t, n]), a;
1316
1313
  }
1317
1314
  function _t({
1318
1315
  page: e,
1319
1316
  matches: t,
1320
- ...r
1317
+ ...n
1321
1318
  }) {
1322
- let a = N(), { manifest: n, routeModules: i } = Le(), { loaderData: s, matches: c } = It(), l = o.useMemo(
1319
+ let a = N(), { manifest: r, routeModules: i } = Le(), { loaderData: s, matches: c } = It(), l = o.useMemo(
1323
1320
  () => me(
1324
1321
  e,
1325
1322
  t,
1326
1323
  c,
1327
- n,
1324
+ r,
1328
1325
  a,
1329
1326
  "data"
1330
1327
  ),
1331
- [e, t, c, n, a]
1328
+ [e, t, c, r, a]
1332
1329
  ), u = o.useMemo(
1333
1330
  () => me(
1334
1331
  e,
1335
1332
  t,
1336
1333
  c,
1337
- n,
1334
+ r,
1338
1335
  a,
1339
1336
  "assets"
1340
1337
  ),
1341
- [e, t, c, n, a]
1338
+ [e, t, c, r, a]
1342
1339
  ), m = o.useMemo(() => {
1343
1340
  if (e === a.pathname + a.search + a.hash)
1344
1341
  return [];
1345
1342
  let p = /* @__PURE__ */ new Set(), d = !1;
1346
1343
  if (t.forEach((w) => {
1347
1344
  var E;
1348
- let h = n.routes[w.route.id];
1345
+ let h = r.routes[w.route.id];
1349
1346
  !h || !h.hasLoader || (!l.some((y) => y.route.id === w.route.id) && w.route.id in s && ((E = i[w.route.id]) != null && E.shouldRevalidate) || h.hasClientLoader ? d = !0 : p.add(w.route.id));
1350
1347
  }), p.size === 0)
1351
1348
  return [];
1352
- let g = At(e);
1353
- return d && p.size > 0 && g.searchParams.set(
1349
+ let v = At(e);
1350
+ return d && p.size > 0 && v.searchParams.set(
1354
1351
  "_routes",
1355
1352
  t.filter((w) => p.has(w.route.id)).map((w) => w.route.id).join(",")
1356
- ), [g.pathname + g.search];
1353
+ ), [v.pathname + v.search];
1357
1354
  }, [
1358
1355
  s,
1359
1356
  a,
1360
- n,
1357
+ r,
1361
1358
  l,
1362
1359
  t,
1363
1360
  e,
1364
1361
  i
1365
- ]), v = o.useMemo(
1366
- () => kt(u, n),
1367
- [u, n]
1362
+ ]), g = o.useMemo(
1363
+ () => kt(u, r),
1364
+ [u, r]
1368
1365
  ), f = Ft(u);
1369
- return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...r })), v.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "modulepreload", href: p, ...r })), f.map(({ key: p, link: d }) => (
1366
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...n })), g.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "modulepreload", href: p, ...n })), f.map(({ key: p, link: d }) => (
1370
1367
  // these don't spread `linkProps` because they are full link descriptors
1371
1368
  // already with their own props
1372
1369
  /* @__PURE__ */ o.createElement("link", { key: p, ...d })
@@ -1374,33 +1371,33 @@ function _t({
1374
1371
  }
1375
1372
  function Ut(...e) {
1376
1373
  return (t) => {
1377
- e.forEach((r) => {
1378
- typeof r == "function" ? r(t) : r != null && (r.current = t);
1374
+ e.forEach((n) => {
1375
+ typeof n == "function" ? n(t) : n != null && (n.current = t);
1379
1376
  });
1380
1377
  };
1381
1378
  }
1382
1379
  var ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1383
1380
  try {
1384
- ke && (window.__reactRouterVersion = "7.0.2");
1381
+ ke && (window.__reactRouterVersion = "7.1.3");
1385
1382
  } catch {
1386
1383
  }
1387
1384
  var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1388
1385
  function({
1389
1386
  onClick: t,
1390
- discover: r = "render",
1387
+ discover: n = "render",
1391
1388
  prefetch: a = "none",
1392
- relative: n,
1389
+ relative: r,
1393
1390
  reloadDocument: i,
1394
1391
  replace: s,
1395
1392
  state: c,
1396
1393
  target: l,
1397
1394
  to: u,
1398
1395
  preventScrollReset: m,
1399
- viewTransition: v,
1396
+ viewTransition: g,
1400
1397
  ...f
1401
1398
  }, p) {
1402
- let { basename: d } = o.useContext(T), g = typeof u == "string" && $e.test(u), w, h = !1;
1403
- if (typeof u == "string" && g && (w = u, ke))
1399
+ let { basename: d } = o.useContext(T), v = typeof u == "string" && $e.test(u), w, h = !1;
1400
+ if (typeof u == "string" && v && (w = u, ke))
1404
1401
  try {
1405
1402
  let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), ue = I(D.pathname, d);
1406
1403
  D.origin === P.origin && ue != null ? u = ue + D.search + D.hash : h = !0;
@@ -1410,7 +1407,7 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1410
1407
  `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1411
1408
  );
1412
1409
  }
1413
- let E = Ze(u, { relative: n }), [y, R, x] = Ot(
1410
+ let E = Ze(u, { relative: r }), [y, R, x] = Ot(
1414
1411
  a,
1415
1412
  f
1416
1413
  ), C = zt(u, {
@@ -1418,8 +1415,8 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1418
1415
  state: c,
1419
1416
  target: l,
1420
1417
  preventScrollReset: m,
1421
- relative: n,
1422
- viewTransition: v
1418
+ relative: r,
1419
+ viewTransition: g
1423
1420
  });
1424
1421
  function $(P) {
1425
1422
  t && t(P), P.defaultPrevented || C(P);
@@ -1435,32 +1432,32 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1435
1432
  onClick: h || i ? t : $,
1436
1433
  ref: Ut(p, R),
1437
1434
  target: l,
1438
- "data-discover": !g && r === "render" ? "true" : void 0
1435
+ "data-discover": !v && n === "render" ? "true" : void 0
1439
1436
  }
1440
1437
  )
1441
1438
  );
1442
- return y && !g ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(Mt, { page: E })) : S;
1439
+ return y && !v ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(Mt, { page: E })) : S;
1443
1440
  }
1444
1441
  );
1445
1442
  Te.displayName = "Link";
1446
1443
  var Bt = o.forwardRef(
1447
1444
  function({
1448
1445
  "aria-current": t = "page",
1449
- caseSensitive: r = !1,
1446
+ caseSensitive: n = !1,
1450
1447
  className: a = "",
1451
- end: n = !1,
1448
+ end: r = !1,
1452
1449
  style: i,
1453
1450
  to: s,
1454
1451
  viewTransition: c,
1455
1452
  children: l,
1456
1453
  ...u
1457
1454
  }, m) {
1458
- let v = W(s, { relative: u.relative }), f = N(), p = o.useContext(F), { navigator: d, basename: g } = o.useContext(T), w = p != null && // Conditional usage is OK here because the usage of a data router is static
1455
+ let g = W(s, { relative: u.relative }), f = N(), p = o.useContext(F), { navigator: d, basename: v } = o.useContext(T), w = p != null && // Conditional usage is OK here because the usage of a data router is static
1459
1456
  // eslint-disable-next-line react-hooks/rules-of-hooks
1460
- Kt(v) && c === !0, h = d.encodeLocation ? d.encodeLocation(v).pathname : v.pathname, E = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1461
- r || (E = E.toLowerCase(), y = y ? y.toLowerCase() : null, h = h.toLowerCase()), y && g && (y = I(y, g) || y);
1457
+ Kt(g) && c === !0, h = d.encodeLocation ? d.encodeLocation(g).pathname : g.pathname, E = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1458
+ n || (E = E.toLowerCase(), y = y ? y.toLowerCase() : null, h = h.toLowerCase()), y && v && (y = I(y, v) || y);
1462
1459
  const R = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
1463
- let x = E === h || !n && E.startsWith(h) && E.charAt(R) === "/", C = y != null && (y === h || !n && y.startsWith(h) && y.charAt(h.length) === "/"), $ = {
1460
+ let x = E === h || !r && E.startsWith(h) && E.charAt(R) === "/", C = y != null && (y === h || !r && y.startsWith(h) && y.charAt(h.length) === "/"), $ = {
1464
1461
  isActive: x,
1465
1462
  isPending: C,
1466
1463
  isTransitioning: w
@@ -1492,31 +1489,31 @@ var Ht = o.forwardRef(
1492
1489
  ({
1493
1490
  discover: e = "render",
1494
1491
  fetcherKey: t,
1495
- navigate: r,
1492
+ navigate: n,
1496
1493
  reloadDocument: a,
1497
- replace: n,
1494
+ replace: r,
1498
1495
  state: i,
1499
1496
  method: s = V,
1500
1497
  action: c,
1501
1498
  onSubmit: l,
1502
1499
  relative: u,
1503
1500
  preventScrollReset: m,
1504
- viewTransition: v,
1501
+ viewTransition: g,
1505
1502
  ...f
1506
1503
  }, p) => {
1507
- let d = Yt(), g = Jt(c, { relative: u }), w = s.toLowerCase() === "get" ? "get" : "post", h = typeof c == "string" && $e.test(c), E = (y) => {
1504
+ let d = Yt(), v = Jt(c, { relative: u }), w = s.toLowerCase() === "get" ? "get" : "post", h = typeof c == "string" && $e.test(c), E = (y) => {
1508
1505
  if (l && l(y), y.defaultPrevented) return;
1509
1506
  y.preventDefault();
1510
1507
  let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || s;
1511
1508
  d(R || y.currentTarget, {
1512
1509
  fetcherKey: t,
1513
1510
  method: x,
1514
- navigate: r,
1515
- replace: n,
1511
+ navigate: n,
1512
+ replace: r,
1516
1513
  state: i,
1517
1514
  relative: u,
1518
1515
  preventScrollReset: m,
1519
- viewTransition: v
1516
+ viewTransition: g
1520
1517
  });
1521
1518
  };
1522
1519
  return /* @__PURE__ */ o.createElement(
@@ -1524,7 +1521,7 @@ var Ht = o.forwardRef(
1524
1521
  {
1525
1522
  ref: p,
1526
1523
  method: w,
1527
- action: g,
1524
+ action: v,
1528
1525
  onSubmit: a ? l : E,
1529
1526
  ...f,
1530
1527
  "data-discover": !h && e === "render" ? "true" : void 0
@@ -1542,22 +1539,22 @@ function Ne(e) {
1542
1539
  }
1543
1540
  function zt(e, {
1544
1541
  target: t,
1545
- replace: r,
1542
+ replace: n,
1546
1543
  state: a,
1547
- preventScrollReset: n,
1544
+ preventScrollReset: r,
1548
1545
  relative: i,
1549
1546
  viewTransition: s
1550
1547
  } = {}) {
1551
- let c = ne(), l = N(), u = W(e, { relative: i });
1548
+ let c = re(), l = N(), u = W(e, { relative: i });
1552
1549
  return o.useCallback(
1553
1550
  (m) => {
1554
1551
  if (Et(m, t)) {
1555
1552
  m.preventDefault();
1556
- let v = r !== void 0 ? r : B(l) === B(u);
1553
+ let g = n !== void 0 ? n : B(l) === B(u);
1557
1554
  c(e, {
1558
- replace: v,
1555
+ replace: g,
1559
1556
  state: a,
1560
- preventScrollReset: n,
1557
+ preventScrollReset: r,
1561
1558
  relative: i,
1562
1559
  viewTransition: s
1563
1560
  });
@@ -1567,146 +1564,146 @@ function zt(e, {
1567
1564
  l,
1568
1565
  c,
1569
1566
  u,
1570
- r,
1567
+ n,
1571
1568
  a,
1572
1569
  t,
1573
1570
  e,
1574
- n,
1571
+ r,
1575
1572
  i,
1576
1573
  s
1577
1574
  ]
1578
1575
  );
1579
1576
  }
1580
- function fr(e) {
1577
+ function dn(e) {
1581
1578
  L(
1582
1579
  typeof URLSearchParams < "u",
1583
1580
  "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
1584
1581
  );
1585
- let t = o.useRef(Q(e)), r = o.useRef(!1), a = N(), n = o.useMemo(
1582
+ let t = o.useRef(Q(e)), n = o.useRef(!1), a = N(), r = o.useMemo(
1586
1583
  () => (
1587
1584
  // Only merge in the defaults if we haven't yet called setSearchParams.
1588
1585
  // Once we call that we want those to take precedence, otherwise you can't
1589
1586
  // remove a param with setSearchParams({}) if it has an initial value
1590
1587
  xt(
1591
1588
  a.search,
1592
- r.current ? null : t.current
1589
+ n.current ? null : t.current
1593
1590
  )
1594
1591
  ),
1595
1592
  [a.search]
1596
- ), i = ne(), s = o.useCallback(
1593
+ ), i = re(), s = o.useCallback(
1597
1594
  (c, l) => {
1598
1595
  const u = Q(
1599
- typeof c == "function" ? c(n) : c
1596
+ typeof c == "function" ? c(r) : c
1600
1597
  );
1601
- r.current = !0, i("?" + u, l);
1598
+ n.current = !0, i("?" + u, l);
1602
1599
  },
1603
- [i, n]
1600
+ [i, r]
1604
1601
  );
1605
- return [n, s];
1602
+ return [r, s];
1606
1603
  }
1607
1604
  var Vt = 0, jt = () => `__${String(++Vt)}__`;
1608
1605
  function Yt() {
1609
1606
  let { router: e } = Ne(
1610
1607
  "useSubmit"
1611
1608
  /* UseSubmit */
1612
- ), { basename: t } = o.useContext(T), r = ct();
1609
+ ), { basename: t } = o.useContext(T), n = ct();
1613
1610
  return o.useCallback(
1614
- async (a, n = {}) => {
1611
+ async (a, r = {}) => {
1615
1612
  let { action: i, method: s, encType: c, formData: l, body: u } = Ct(
1616
1613
  a,
1617
1614
  t
1618
1615
  );
1619
- if (n.navigate === !1) {
1620
- let m = n.fetcherKey || jt();
1621
- await e.fetch(m, r, n.action || i, {
1622
- preventScrollReset: n.preventScrollReset,
1616
+ if (r.navigate === !1) {
1617
+ let m = r.fetcherKey || jt();
1618
+ await e.fetch(m, n, r.action || i, {
1619
+ preventScrollReset: r.preventScrollReset,
1623
1620
  formData: l,
1624
1621
  body: u,
1625
- formMethod: n.method || s,
1626
- formEncType: n.encType || c,
1627
- flushSync: n.flushSync
1622
+ formMethod: r.method || s,
1623
+ formEncType: r.encType || c,
1624
+ flushSync: r.flushSync
1628
1625
  });
1629
1626
  } else
1630
- await e.navigate(n.action || i, {
1631
- preventScrollReset: n.preventScrollReset,
1627
+ await e.navigate(r.action || i, {
1628
+ preventScrollReset: r.preventScrollReset,
1632
1629
  formData: l,
1633
1630
  body: u,
1634
- formMethod: n.method || s,
1635
- formEncType: n.encType || c,
1636
- replace: n.replace,
1637
- state: n.state,
1638
- fromRouteId: r,
1639
- flushSync: n.flushSync,
1640
- viewTransition: n.viewTransition
1631
+ formMethod: r.method || s,
1632
+ formEncType: r.encType || c,
1633
+ replace: r.replace,
1634
+ state: r.state,
1635
+ fromRouteId: n,
1636
+ flushSync: r.flushSync,
1637
+ viewTransition: r.viewTransition
1641
1638
  });
1642
1639
  },
1643
- [e, t, r]
1640
+ [e, t, n]
1644
1641
  );
1645
1642
  }
1646
1643
  function Jt(e, { relative: t } = {}) {
1647
- let { basename: r } = o.useContext(T), a = o.useContext(k);
1644
+ let { basename: n } = o.useContext(T), a = o.useContext(k);
1648
1645
  b(a, "useFormAction must be used inside a RouteContext");
1649
- let [n] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, s = N();
1646
+ let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, s = N();
1650
1647
  if (e == null) {
1651
1648
  i.search = s.search;
1652
1649
  let c = new URLSearchParams(i.search), l = c.getAll("index");
1653
1650
  if (l.some((m) => m === "")) {
1654
- c.delete("index"), l.filter((v) => v).forEach((v) => c.append("index", v));
1651
+ c.delete("index"), l.filter((g) => g).forEach((g) => c.append("index", g));
1655
1652
  let m = c.toString();
1656
1653
  i.search = m ? `?${m}` : "";
1657
1654
  }
1658
1655
  }
1659
- return (!e || e === ".") && n.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : A([r, i.pathname])), B(i);
1656
+ return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (i.pathname = i.pathname === "/" ? n : A([n, i.pathname])), B(i);
1660
1657
  }
1661
1658
  function Kt(e, t = {}) {
1662
- let r = o.useContext(J);
1659
+ let n = o.useContext(J);
1663
1660
  b(
1664
- r != null,
1661
+ n != null,
1665
1662
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1666
1663
  );
1667
1664
  let { basename: a } = Ne(
1668
1665
  "useViewTransitionState"
1669
1666
  /* useViewTransitionState */
1670
- ), n = W(e, { relative: t.relative });
1671
- if (!r.isTransitioning)
1667
+ ), r = W(e, { relative: t.relative });
1668
+ if (!n.isTransitioning)
1672
1669
  return !1;
1673
- let i = I(r.currentLocation.pathname, a) || r.currentLocation.pathname, s = I(r.nextLocation.pathname, a) || r.nextLocation.pathname;
1674
- return H(n.pathname, s) != null || H(n.pathname, i) != null;
1670
+ let i = I(n.currentLocation.pathname, a) || n.currentLocation.pathname, s = I(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1671
+ return H(r.pathname, s) != null || H(r.pathname, i) != null;
1675
1672
  }
1676
- function dr({
1673
+ function hn({
1677
1674
  context: e,
1678
1675
  router: t,
1679
- hydrate: r = !0,
1676
+ hydrate: n = !0,
1680
1677
  nonce: a
1681
1678
  }) {
1682
1679
  b(
1683
1680
  t && e,
1684
1681
  "You must provide `router` and `context` to <StaticRouterProvider>"
1685
1682
  );
1686
- let n = {
1683
+ let r = {
1687
1684
  router: t,
1688
1685
  navigator: Xt(),
1689
1686
  static: !0,
1690
1687
  staticContext: e,
1691
1688
  basename: e.basename || "/"
1692
1689
  }, i = /* @__PURE__ */ new Map(), s = "";
1693
- if (r !== !1) {
1690
+ if (n !== !1) {
1694
1691
  let l = {
1695
1692
  loaderData: e.loaderData,
1696
1693
  actionData: e.actionData,
1697
1694
  errors: Gt(e.errors)
1698
1695
  };
1699
- s = `window.__staticRouterHydrationData = JSON.parse(${nr(JSON.stringify(JSON.stringify(l)))});`;
1696
+ s = `window.__staticRouterHydrationData = JSON.parse(${rn(JSON.stringify(JSON.stringify(l)))});`;
1700
1697
  }
1701
- let { state: c } = n.router;
1702
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: n }, /* @__PURE__ */ o.createElement(F.Provider, { value: c }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1698
+ let { state: c } = r.router;
1699
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(F.Provider, { value: c }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1703
1700
  Pe,
1704
1701
  {
1705
- basename: n.basename,
1702
+ basename: r.basename,
1706
1703
  location: c.location,
1707
1704
  navigationType: c.historyAction,
1708
- navigator: n.navigator,
1709
- static: n.static
1705
+ navigator: r.navigator,
1706
+ static: r.static
1710
1707
  },
1711
1708
  /* @__PURE__ */ o.createElement(
1712
1709
  qt,
@@ -1728,24 +1725,24 @@ function dr({
1728
1725
  function qt({
1729
1726
  routes: e,
1730
1727
  future: t,
1731
- state: r
1728
+ state: n
1732
1729
  }) {
1733
- return be(e, void 0, r, t);
1730
+ return be(e, void 0, n, t);
1734
1731
  }
1735
1732
  function Gt(e) {
1736
1733
  if (!e) return null;
1737
- let t = Object.entries(e), r = {};
1738
- for (let [a, n] of t)
1739
- we(n) ? r[a] = { ...n, __type: "RouteErrorResponse" } : n instanceof Error ? r[a] = {
1740
- message: n.message,
1734
+ let t = Object.entries(e), n = {};
1735
+ for (let [a, r] of t)
1736
+ we(r) ? n[a] = { ...r, __type: "RouteErrorResponse" } : r instanceof Error ? n[a] = {
1737
+ message: r.message,
1741
1738
  __type: "Error",
1742
1739
  // If this is a subclass (i.e., ReferenceError), send up the type so we
1743
1740
  // can re-create the same type during hydration.
1744
- ...n.name !== "Error" ? {
1745
- __subType: n.name
1741
+ ...r.name !== "Error" ? {
1742
+ __subType: r.name
1746
1743
  } : {}
1747
- } : r[a] = n;
1748
- return r;
1744
+ } : n[a] = r;
1745
+ return n;
1749
1746
  }
1750
1747
  function Xt() {
1751
1748
  return {
@@ -1784,40 +1781,41 @@ function Qt(e) {
1784
1781
  function Zt(e) {
1785
1782
  let t = typeof e == "string" ? e : B(e);
1786
1783
  t = t.replace(/ $/, "%20");
1787
- let r = er.test(t) ? new URL(t) : new URL(t, "http://localhost");
1784
+ let n = en.test(t) ? new URL(t) : new URL(t, "http://localhost");
1788
1785
  return {
1789
- pathname: r.pathname,
1790
- search: r.search,
1791
- hash: r.hash
1786
+ pathname: n.pathname,
1787
+ search: n.search,
1788
+ hash: n.hash
1792
1789
  };
1793
1790
  }
1794
- var er = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, tr = {
1791
+ var en = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, tn = {
1795
1792
  "&": "\\u0026",
1796
1793
  ">": "\\u003e",
1797
1794
  "<": "\\u003c",
1798
1795
  "\u2028": "\\u2028",
1799
1796
  "\u2029": "\\u2029"
1800
- }, rr = /[&><\u2028\u2029]/g;
1801
- function nr(e) {
1802
- return e.replace(rr, (t) => tr[t]);
1797
+ }, nn = /[&><\u2028\u2029]/g;
1798
+ function rn(e) {
1799
+ return e.replace(nn, (t) => tn[t]);
1803
1800
  }
1804
1801
  new TextEncoder();
1805
1802
  export {
1806
1803
  Te as L,
1807
- sr as N,
1808
- cr as O,
1809
- ur as R,
1810
- dr as S,
1811
- ne as a,
1812
- fr as b,
1813
- or as c,
1814
- ft as d,
1815
- ir as e,
1816
- Bt as f,
1817
- lr as g,
1804
+ cn as N,
1805
+ fn as O,
1806
+ sn as R,
1807
+ hn as S,
1808
+ re as a,
1809
+ dn as b,
1810
+ ln as c,
1811
+ Ze as d,
1812
+ ft as e,
1813
+ on as f,
1814
+ Bt as g,
1815
+ un as h,
1818
1816
  we as i,
1819
1817
  H as m,
1820
- ar as r,
1818
+ an as r,
1821
1819
  N as u
1822
1820
  };
1823
- //# sourceMappingURL=chunk-D52XG6IA-Dl7HLe6j.js.map
1821
+ //# sourceMappingURL=chunk-SYFQ2XB5-BF5IDYrB.js.map