zudoku 0.41.5 → 0.42.0

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 (529) hide show
  1. package/dist/app/main.js +6 -0
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +420 -288
  4. package/dist/config/validators/common.js +10 -0
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +161 -108
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +1 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/components/BuildCheck.js +3 -2
  11. package/dist/lib/components/BuildCheck.js.map +1 -1
  12. package/dist/lib/components/Markdown.d.ts +3 -1
  13. package/dist/lib/components/Markdown.js +8 -14
  14. package/dist/lib/components/Markdown.js.map +1 -1
  15. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  16. package/dist/lib/components/index.d.ts +2 -1
  17. package/dist/lib/core/ZudokuContext.d.ts +7 -0
  18. package/dist/lib/core/ZudokuContext.js.map +1 -1
  19. package/dist/lib/errors/ErrorAlert.js +1 -1
  20. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  21. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  22. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  23. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  24. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  25. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  26. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  27. package/dist/lib/shiki.d.ts +35 -0
  28. package/dist/lib/shiki.js +103 -0
  29. package/dist/lib/shiki.js.map +1 -0
  30. package/dist/lib/ui/Callout.js +1 -1
  31. package/dist/lib/ui/Callout.js.map +1 -1
  32. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  33. package/dist/lib/ui/CodeBlock.js +18 -0
  34. package/dist/lib/ui/CodeBlock.js.map +1 -0
  35. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -15
  36. package/dist/lib/ui/SyntaxHighlight.js +10 -60
  37. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  38. package/dist/lib/util/MdxComponents.d.ts +9 -3
  39. package/dist/lib/util/MdxComponents.js +9 -10
  40. package/dist/lib/util/MdxComponents.js.map +1 -1
  41. package/dist/vite/config.js +34 -0
  42. package/dist/vite/config.js.map +1 -1
  43. package/dist/vite/plugin-mdx.js +4 -11
  44. package/dist/vite/plugin-mdx.js.map +1 -1
  45. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  46. package/dist/vite/plugin-shiki-register.js +38 -0
  47. package/dist/vite/plugin-shiki-register.js.map +1 -0
  48. package/dist/vite/plugin.js +2 -0
  49. package/dist/vite/plugin.js.map +1 -1
  50. package/lib/AuthenticationPlugin-EeQpQI3D.js +55 -0
  51. package/lib/{AuthenticationPlugin-DPCuR3xm.js.map → AuthenticationPlugin-EeQpQI3D.js.map} +1 -1
  52. package/lib/{Button-BBNrKpQd.js → Button-Bdk_Ij3U.js} +3 -3
  53. package/lib/{Button-BBNrKpQd.js.map → Button-Bdk_Ij3U.js.map} +1 -1
  54. package/lib/{Callout-D3Ja4OPX.js → Callout-XadUe37J.js} +12 -12
  55. package/lib/{Callout-D3Ja4OPX.js.map → Callout-XadUe37J.js.map} +1 -1
  56. package/lib/{CategoryHeading-D06WK_Wo.js → CategoryHeading-DZi-Szor.js} +2 -2
  57. package/lib/{CategoryHeading-D06WK_Wo.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
  58. package/lib/{Dialog-ByYz4ABw.js → Dialog-CNf2oWXG.js} +2 -2
  59. package/lib/{Dialog-ByYz4ABw.js.map → Dialog-CNf2oWXG.js.map} +1 -1
  60. package/lib/{Drawer-CEwbkLDb.js → Drawer-BPBxzel2.js} +25 -25
  61. package/lib/{Drawer-CEwbkLDb.js.map → Drawer-BPBxzel2.js.map} +1 -1
  62. package/lib/Markdown-1l-DtDbF.js +7688 -0
  63. package/lib/Markdown-1l-DtDbF.js.map +1 -0
  64. package/lib/MdxPage-Dxbq6lFr.js +84 -0
  65. package/lib/{MdxPage-CH19q_hk.js.map → MdxPage-Dxbq6lFr.js.map} +1 -1
  66. package/lib/{OasProvider-n805wUHH.js → OasProvider-DKpTJMH2.js} +4 -4
  67. package/lib/{OasProvider-n805wUHH.js.map → OasProvider-DKpTJMH2.js.map} +1 -1
  68. package/lib/{OperationList-BAhWsh8C.js → OperationList-DVOyNeno.js} +1385 -1417
  69. package/lib/{OperationList-BAhWsh8C.js.map → OperationList-DVOyNeno.js.map} +1 -1
  70. package/lib/{Pagination-DAjXddnj.js → Pagination-COMmV-g9.js} +4 -4
  71. package/lib/{Pagination-DAjXddnj.js.map → Pagination-COMmV-g9.js.map} +1 -1
  72. package/lib/RouteGuard-CGqivwrh.js +733 -0
  73. package/lib/{RouteGuard-DRtEu9nh.js.map → RouteGuard-CGqivwrh.js.map} +1 -1
  74. package/lib/{SchemaList-BJ0GDIcI.js → SchemaList-BTWzXyYQ.js} +43 -44
  75. package/lib/{SchemaList-BJ0GDIcI.js.map → SchemaList-BTWzXyYQ.js.map} +1 -1
  76. package/lib/{SchemaView-J7Srn-Iy.js → SchemaView-DNKKW3nB.js} +7 -11
  77. package/lib/{SchemaView-J7Srn-Iy.js.map → SchemaView-DNKKW3nB.js.map} +1 -1
  78. package/lib/Select-m-ITdvFa.js +211 -0
  79. package/lib/{Select-CT64Ou40.js.map → Select-m-ITdvFa.js.map} +1 -1
  80. package/lib/SlotletProvider-DhK1Fmm9.js +254 -0
  81. package/lib/SlotletProvider-DhK1Fmm9.js.map +1 -0
  82. package/lib/SyntaxHighlight-CJ6FoYvt.js +9104 -0
  83. package/lib/SyntaxHighlight-CJ6FoYvt.js.map +1 -0
  84. package/lib/{Toc-D_tV8_Ri.js → Toc-CzMOgcPS.js} +3 -3
  85. package/lib/{Toc-D_tV8_Ri.js.map → Toc-CzMOgcPS.js.map} +1 -1
  86. package/lib/{chunk-BAXFHI7N-BVBOl9s0.js → chunk-BAXFHI7N-CFrZQ7Oh.js} +257 -264
  87. package/lib/{chunk-BAXFHI7N-BVBOl9s0.js.map → chunk-BAXFHI7N-CFrZQ7Oh.js.map} +1 -1
  88. package/lib/{circular-ByJI6Mci.js → circular-D__GEK2G.js} +47 -47
  89. package/lib/{circular-ByJI6Mci.js.map → circular-D__GEK2G.js.map} +1 -1
  90. package/lib/{cn-qaFjX9_3.js → cn-CwJPJKOE.js} +28 -29
  91. package/lib/{cn-qaFjX9_3.js.map → cn-CwJPJKOE.js.map} +1 -1
  92. package/lib/{createServer-IW7v5hWm.js → createServer-B4l2NSkt.js} +3724 -3868
  93. package/lib/{createServer-IW7v5hWm.js.map → createServer-B4l2NSkt.js.map} +1 -1
  94. package/lib/hook-CyNmcNr8.js +1443 -0
  95. package/lib/{hook-CldJlP5c.js.map → hook-CyNmcNr8.js.map} +1 -1
  96. package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
  97. package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
  98. package/lib/index-BcMPFdRU.js +4975 -0
  99. package/lib/index-BcMPFdRU.js.map +1 -0
  100. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  101. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  102. package/lib/{index-Dbvpddzr.js → index-CCS3ifKs.js} +690 -733
  103. package/lib/{index-Dbvpddzr.js.map → index-CCS3ifKs.js.map} +1 -1
  104. package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
  105. package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
  106. package/lib/{index-CPNSgwSb.js → index-Z13x6tPX.js} +5 -5
  107. package/lib/{index-CPNSgwSb.js.map → index-Z13x6tPX.js.map} +1 -1
  108. package/lib/{index-DcHeSvkE.js → index-zddirpDj.js} +581 -609
  109. package/lib/{index-DcHeSvkE.js.map → index-zddirpDj.js.map} +1 -1
  110. package/lib/invariant-D3QcI9fa.js +22 -0
  111. package/lib/{invariant-Caa8-XvF.js.map → invariant-D3QcI9fa.js.map} +1 -1
  112. package/lib/mutation-narTVsCe.js +196 -0
  113. package/lib/{mutation-DBQh7AOZ.js.map → mutation-narTVsCe.js.map} +1 -1
  114. package/lib/processors/removeParameters.js +27 -28
  115. package/lib/processors/removeParameters.js.map +1 -1
  116. package/lib/processors/removePaths.js +17 -17
  117. package/lib/processors/removePaths.js.map +1 -1
  118. package/lib/ui/Accordion.js +1 -1
  119. package/lib/ui/ActionButton.js +2 -2
  120. package/lib/ui/Alert.js +2 -2
  121. package/lib/ui/AlertDialog.js +1 -1
  122. package/lib/ui/Badge.js +2 -2
  123. package/lib/ui/Breadcrumb.js +1 -1
  124. package/lib/ui/Button.js +2 -2
  125. package/lib/ui/Callout.js +7 -7
  126. package/lib/ui/Callout.js.map +1 -1
  127. package/lib/ui/Card.js +1 -1
  128. package/lib/ui/Carousel.js +175 -175
  129. package/lib/ui/Carousel.js.map +1 -1
  130. package/lib/ui/Checkbox.js +1 -1
  131. package/lib/ui/CodeBlock.js +83 -0
  132. package/lib/ui/CodeBlock.js.map +1 -0
  133. package/lib/ui/Command.js +58 -58
  134. package/lib/ui/Command.js.map +1 -1
  135. package/lib/ui/Dialog.js +1 -1
  136. package/lib/ui/Drawer.js +2 -2
  137. package/lib/ui/DropdownMenu.js +1 -1
  138. package/lib/ui/Form.js +1 -1
  139. package/lib/ui/HoverCard.js +1 -1
  140. package/lib/ui/Input.js +1 -1
  141. package/lib/ui/Label.js +2 -2
  142. package/lib/ui/Pagination.js +1 -1
  143. package/lib/ui/Popover.js +1 -1
  144. package/lib/ui/Progress.js +1 -1
  145. package/lib/ui/RadioGroup.js +1 -1
  146. package/lib/ui/ScrollArea.js +1 -1
  147. package/lib/ui/Select.js +1 -1
  148. package/lib/ui/Skeleton.js +1 -1
  149. package/lib/ui/Slider.js +1 -1
  150. package/lib/ui/Switch.js +1 -1
  151. package/lib/ui/SyntaxHighlight.js +4 -6
  152. package/lib/ui/SyntaxHighlight.js.map +1 -1
  153. package/lib/ui/Tabs.js +1 -1
  154. package/lib/ui/Textarea.js +1 -1
  155. package/lib/ui/Toggle.js +2 -2
  156. package/lib/ui/ToggleGroup.js +1 -1
  157. package/lib/ui/Tooltip.js +1 -1
  158. package/lib/ui/util.js +1 -1
  159. package/lib/{useExposedProps-DbIZXspi.js → useExposedProps-n1u49409.js} +2 -2
  160. package/lib/{useExposedProps-DbIZXspi.js.map → useExposedProps-n1u49409.js.map} +1 -1
  161. package/lib/zudoku.auth-auth0.js +28 -31
  162. package/lib/zudoku.auth-auth0.js.map +1 -1
  163. package/lib/zudoku.auth-clerk.js +62 -68
  164. package/lib/zudoku.auth-clerk.js.map +1 -1
  165. package/lib/zudoku.auth-openid.js +475 -483
  166. package/lib/zudoku.auth-openid.js.map +1 -1
  167. package/lib/zudoku.components.js +7 -7
  168. package/lib/zudoku.hooks.js +2 -2
  169. package/lib/zudoku.plugin-api-catalog.js +45 -45
  170. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  171. package/lib/zudoku.plugin-api-keys.js +6 -6
  172. package/lib/zudoku.plugin-custom-pages.js +3 -3
  173. package/lib/zudoku.plugin-markdown.js +25 -28
  174. package/lib/zudoku.plugin-markdown.js.map +1 -1
  175. package/lib/zudoku.plugin-openapi.js +3 -3
  176. package/lib/zudoku.plugin-redirect.js +1 -1
  177. package/lib/zudoku.plugin-search-inkeep.js +26 -27
  178. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  179. package/lib/zudoku.plugin-search-pagefind.js +107 -110
  180. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  181. package/package.json +16 -6
  182. package/src/app/main.css +53 -3
  183. package/src/app/main.tsx +7 -0
  184. package/src/lib/components/BuildCheck.tsx +4 -2
  185. package/src/lib/components/Markdown.tsx +29 -24
  186. package/src/lib/core/ZudokuContext.ts +4 -0
  187. package/src/lib/errors/ErrorAlert.tsx +1 -1
  188. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -2
  189. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  190. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  191. package/src/lib/shiki.ts +129 -0
  192. package/src/lib/ui/Callout.tsx +1 -1
  193. package/src/lib/ui/CodeBlock.tsx +102 -0
  194. package/src/lib/ui/SyntaxHighlight.tsx +18 -182
  195. package/src/lib/util/MdxComponents.tsx +27 -14
  196. package/src/shiki/langs/abap.js +1 -0
  197. package/src/shiki/langs/actionscript-3.js +1 -0
  198. package/src/shiki/langs/ada.js +1 -0
  199. package/src/shiki/langs/angular-expression.js +1 -0
  200. package/src/shiki/langs/angular-html.js +1 -0
  201. package/src/shiki/langs/angular-inline-style.js +1 -0
  202. package/src/shiki/langs/angular-inline-template.js +1 -0
  203. package/src/shiki/langs/angular-let-declaration.js +1 -0
  204. package/src/shiki/langs/angular-template-blocks.js +1 -0
  205. package/src/shiki/langs/angular-template.js +1 -0
  206. package/src/shiki/langs/angular-ts.js +1 -0
  207. package/src/shiki/langs/apache.js +1 -0
  208. package/src/shiki/langs/apex.js +1 -0
  209. package/src/shiki/langs/apl.js +1 -0
  210. package/src/shiki/langs/applescript.js +1 -0
  211. package/src/shiki/langs/ara.js +1 -0
  212. package/src/shiki/langs/asciidoc.js +1 -0
  213. package/src/shiki/langs/asm.js +1 -0
  214. package/src/shiki/langs/astro.js +1 -0
  215. package/src/shiki/langs/awk.js +1 -0
  216. package/src/shiki/langs/ballerina.js +1 -0
  217. package/src/shiki/langs/bat.js +1 -0
  218. package/src/shiki/langs/beancount.js +1 -0
  219. package/src/shiki/langs/berry.js +1 -0
  220. package/src/shiki/langs/bibtex.js +1 -0
  221. package/src/shiki/langs/bicep.js +1 -0
  222. package/src/shiki/langs/blade.js +1 -0
  223. package/src/shiki/langs/bsl.js +1 -0
  224. package/src/shiki/langs/c.js +1 -0
  225. package/src/shiki/langs/cadence.js +1 -0
  226. package/src/shiki/langs/cairo.js +1 -0
  227. package/src/shiki/langs/clarity.js +1 -0
  228. package/src/shiki/langs/clojure.js +1 -0
  229. package/src/shiki/langs/cmake.js +1 -0
  230. package/src/shiki/langs/cobol.js +1 -0
  231. package/src/shiki/langs/codeowners.js +1 -0
  232. package/src/shiki/langs/codeql.js +1 -0
  233. package/src/shiki/langs/coffee.js +1 -0
  234. package/src/shiki/langs/common-lisp.js +1 -0
  235. package/src/shiki/langs/coq.js +1 -0
  236. package/src/shiki/langs/cpp-macro.js +1 -0
  237. package/src/shiki/langs/cpp.js +1 -0
  238. package/src/shiki/langs/crystal.js +1 -0
  239. package/src/shiki/langs/csharp.js +1 -0
  240. package/src/shiki/langs/css.js +1 -0
  241. package/src/shiki/langs/csv.js +1 -0
  242. package/src/shiki/langs/cue.js +1 -0
  243. package/src/shiki/langs/cypher.js +1 -0
  244. package/src/shiki/langs/d.js +1 -0
  245. package/src/shiki/langs/dart.js +1 -0
  246. package/src/shiki/langs/dax.js +1 -0
  247. package/src/shiki/langs/desktop.js +1 -0
  248. package/src/shiki/langs/diff.js +1 -0
  249. package/src/shiki/langs/docker.js +1 -0
  250. package/src/shiki/langs/dotenv.js +1 -0
  251. package/src/shiki/langs/dream-maker.js +1 -0
  252. package/src/shiki/langs/edge.js +1 -0
  253. package/src/shiki/langs/elixir.js +1 -0
  254. package/src/shiki/langs/elm.js +1 -0
  255. package/src/shiki/langs/emacs-lisp.js +1 -0
  256. package/src/shiki/langs/erb.js +1 -0
  257. package/src/shiki/langs/erlang.js +1 -0
  258. package/src/shiki/langs/es-tag-css.js +1 -0
  259. package/src/shiki/langs/es-tag-glsl.js +1 -0
  260. package/src/shiki/langs/es-tag-html.js +1 -0
  261. package/src/shiki/langs/es-tag-sql.js +1 -0
  262. package/src/shiki/langs/es-tag-xml.js +1 -0
  263. package/src/shiki/langs/fennel.js +1 -0
  264. package/src/shiki/langs/fish.js +1 -0
  265. package/src/shiki/langs/fluent.js +1 -0
  266. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  267. package/src/shiki/langs/fortran-free-form.js +1 -0
  268. package/src/shiki/langs/fsharp.js +1 -0
  269. package/src/shiki/langs/gdresource.js +1 -0
  270. package/src/shiki/langs/gdscript.js +1 -0
  271. package/src/shiki/langs/gdshader.js +1 -0
  272. package/src/shiki/langs/genie.js +1 -0
  273. package/src/shiki/langs/gherkin.js +1 -0
  274. package/src/shiki/langs/git-commit.js +1 -0
  275. package/src/shiki/langs/git-rebase.js +1 -0
  276. package/src/shiki/langs/gleam.js +1 -0
  277. package/src/shiki/langs/glimmer-js.js +1 -0
  278. package/src/shiki/langs/glimmer-ts.js +1 -0
  279. package/src/shiki/langs/glsl.js +1 -0
  280. package/src/shiki/langs/gnuplot.js +1 -0
  281. package/src/shiki/langs/go.js +1 -0
  282. package/src/shiki/langs/graphql.js +1 -0
  283. package/src/shiki/langs/groovy.js +1 -0
  284. package/src/shiki/langs/hack.js +1 -0
  285. package/src/shiki/langs/haml.js +1 -0
  286. package/src/shiki/langs/handlebars.js +1 -0
  287. package/src/shiki/langs/haskell.js +1 -0
  288. package/src/shiki/langs/haxe.js +1 -0
  289. package/src/shiki/langs/hcl.js +1 -0
  290. package/src/shiki/langs/hjson.js +1 -0
  291. package/src/shiki/langs/hlsl.js +1 -0
  292. package/src/shiki/langs/html-derivative.js +1 -0
  293. package/src/shiki/langs/html.js +1 -0
  294. package/src/shiki/langs/http.js +1 -0
  295. package/src/shiki/langs/hxml.js +1 -0
  296. package/src/shiki/langs/hy.js +1 -0
  297. package/src/shiki/langs/imba.js +1 -0
  298. package/src/shiki/langs/ini.js +1 -0
  299. package/src/shiki/langs/java.js +1 -0
  300. package/src/shiki/langs/javascript.js +1 -0
  301. package/src/shiki/langs/jinja-html.js +1 -0
  302. package/src/shiki/langs/jinja.js +1 -0
  303. package/src/shiki/langs/jison.js +1 -0
  304. package/src/shiki/langs/json.js +1 -0
  305. package/src/shiki/langs/json5.js +1 -0
  306. package/src/shiki/langs/jsonc.js +1 -0
  307. package/src/shiki/langs/jsonl.js +1 -0
  308. package/src/shiki/langs/jsonnet.js +1 -0
  309. package/src/shiki/langs/jssm.js +1 -0
  310. package/src/shiki/langs/jsx.js +1 -0
  311. package/src/shiki/langs/julia.js +1 -0
  312. package/src/shiki/langs/kotlin.js +1 -0
  313. package/src/shiki/langs/kusto.js +1 -0
  314. package/src/shiki/langs/latex.js +1 -0
  315. package/src/shiki/langs/lean.js +1 -0
  316. package/src/shiki/langs/less.js +1 -0
  317. package/src/shiki/langs/liquid.js +1 -0
  318. package/src/shiki/langs/llvm.js +1 -0
  319. package/src/shiki/langs/log.js +1 -0
  320. package/src/shiki/langs/logo.js +1 -0
  321. package/src/shiki/langs/lua.js +1 -0
  322. package/src/shiki/langs/luau.js +1 -0
  323. package/src/shiki/langs/make.js +1 -0
  324. package/src/shiki/langs/markdown-vue.js +1 -0
  325. package/src/shiki/langs/markdown.js +1 -0
  326. package/src/shiki/langs/marko.js +1 -0
  327. package/src/shiki/langs/matlab.js +1 -0
  328. package/src/shiki/langs/mdc.js +1 -0
  329. package/src/shiki/langs/mdx.js +1 -0
  330. package/src/shiki/langs/mermaid.js +1 -0
  331. package/src/shiki/langs/mipsasm.js +1 -0
  332. package/src/shiki/langs/mojo.js +1 -0
  333. package/src/shiki/langs/move.js +1 -0
  334. package/src/shiki/langs/narrat.js +1 -0
  335. package/src/shiki/langs/nextflow.js +1 -0
  336. package/src/shiki/langs/nginx.js +1 -0
  337. package/src/shiki/langs/nim.js +1 -0
  338. package/src/shiki/langs/nix.js +1 -0
  339. package/src/shiki/langs/nushell.js +1 -0
  340. package/src/shiki/langs/objective-c.js +1 -0
  341. package/src/shiki/langs/objective-cpp.js +1 -0
  342. package/src/shiki/langs/ocaml.js +1 -0
  343. package/src/shiki/langs/pascal.js +1 -0
  344. package/src/shiki/langs/perl.js +1 -0
  345. package/src/shiki/langs/php.js +1 -0
  346. package/src/shiki/langs/plsql.js +1 -0
  347. package/src/shiki/langs/po.js +1 -0
  348. package/src/shiki/langs/polar.js +1 -0
  349. package/src/shiki/langs/postcss.js +1 -0
  350. package/src/shiki/langs/powerquery.js +1 -0
  351. package/src/shiki/langs/powershell.js +1 -0
  352. package/src/shiki/langs/prisma.js +1 -0
  353. package/src/shiki/langs/prolog.js +1 -0
  354. package/src/shiki/langs/proto.js +1 -0
  355. package/src/shiki/langs/pug.js +1 -0
  356. package/src/shiki/langs/puppet.js +1 -0
  357. package/src/shiki/langs/purescript.js +1 -0
  358. package/src/shiki/langs/python.js +1 -0
  359. package/src/shiki/langs/qml.js +1 -0
  360. package/src/shiki/langs/qmldir.js +1 -0
  361. package/src/shiki/langs/qss.js +1 -0
  362. package/src/shiki/langs/r.js +1 -0
  363. package/src/shiki/langs/racket.js +1 -0
  364. package/src/shiki/langs/raku.js +1 -0
  365. package/src/shiki/langs/razor.js +1 -0
  366. package/src/shiki/langs/reg.js +1 -0
  367. package/src/shiki/langs/regexp.js +1 -0
  368. package/src/shiki/langs/rel.js +1 -0
  369. package/src/shiki/langs/riscv.js +1 -0
  370. package/src/shiki/langs/rst.js +1 -0
  371. package/src/shiki/langs/ruby.js +1 -0
  372. package/src/shiki/langs/rust.js +1 -0
  373. package/src/shiki/langs/sas.js +1 -0
  374. package/src/shiki/langs/sass.js +1 -0
  375. package/src/shiki/langs/scala.js +1 -0
  376. package/src/shiki/langs/scheme.js +1 -0
  377. package/src/shiki/langs/scss.js +1 -0
  378. package/src/shiki/langs/sdbl.js +1 -0
  379. package/src/shiki/langs/shaderlab.js +1 -0
  380. package/src/shiki/langs/shellscript.js +1 -0
  381. package/src/shiki/langs/shellsession.js +1 -0
  382. package/src/shiki/langs/smalltalk.js +1 -0
  383. package/src/shiki/langs/solidity.js +1 -0
  384. package/src/shiki/langs/soy.js +1 -0
  385. package/src/shiki/langs/sparql.js +1 -0
  386. package/src/shiki/langs/splunk.js +1 -0
  387. package/src/shiki/langs/sql.js +1 -0
  388. package/src/shiki/langs/ssh-config.js +1 -0
  389. package/src/shiki/langs/stata.js +1 -0
  390. package/src/shiki/langs/stylus.js +1 -0
  391. package/src/shiki/langs/svelte.js +1 -0
  392. package/src/shiki/langs/swift.js +1 -0
  393. package/src/shiki/langs/system-verilog.js +1 -0
  394. package/src/shiki/langs/systemd.js +1 -0
  395. package/src/shiki/langs/talonscript.js +1 -0
  396. package/src/shiki/langs/tasl.js +1 -0
  397. package/src/shiki/langs/tcl.js +1 -0
  398. package/src/shiki/langs/templ.js +1 -0
  399. package/src/shiki/langs/terraform.js +1 -0
  400. package/src/shiki/langs/tex.js +1 -0
  401. package/src/shiki/langs/toml.js +1 -0
  402. package/src/shiki/langs/ts-tags.js +1 -0
  403. package/src/shiki/langs/tsv.js +1 -0
  404. package/src/shiki/langs/tsx.js +1 -0
  405. package/src/shiki/langs/turtle.js +1 -0
  406. package/src/shiki/langs/twig.js +1 -0
  407. package/src/shiki/langs/typescript.js +1 -0
  408. package/src/shiki/langs/typespec.js +1 -0
  409. package/src/shiki/langs/typst.js +1 -0
  410. package/src/shiki/langs/v.js +1 -0
  411. package/src/shiki/langs/vala.js +1 -0
  412. package/src/shiki/langs/vb.js +1 -0
  413. package/src/shiki/langs/verilog.js +1 -0
  414. package/src/shiki/langs/vhdl.js +1 -0
  415. package/src/shiki/langs/viml.js +1 -0
  416. package/src/shiki/langs/vue-directives.js +1 -0
  417. package/src/shiki/langs/vue-html.js +1 -0
  418. package/src/shiki/langs/vue-interpolations.js +1 -0
  419. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  420. package/src/shiki/langs/vue.js +1 -0
  421. package/src/shiki/langs/vyper.js +1 -0
  422. package/src/shiki/langs/wasm.js +1 -0
  423. package/src/shiki/langs/wenyan.js +1 -0
  424. package/src/shiki/langs/wgsl.js +1 -0
  425. package/src/shiki/langs/wikitext.js +1 -0
  426. package/src/shiki/langs/wit.js +1 -0
  427. package/src/shiki/langs/wolfram.js +1 -0
  428. package/src/shiki/langs/xml.js +1 -0
  429. package/src/shiki/langs/xsl.js +1 -0
  430. package/src/shiki/langs/yaml.js +1 -0
  431. package/src/shiki/langs/zenscript.js +1 -0
  432. package/src/shiki/langs/zig.js +1 -0
  433. package/src/shiki/themes/andromeeda.js +1 -0
  434. package/src/shiki/themes/aurora-x.js +1 -0
  435. package/src/shiki/themes/ayu-dark.js +1 -0
  436. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  437. package/src/shiki/themes/catppuccin-latte.js +1 -0
  438. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  439. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  440. package/src/shiki/themes/dark-plus.js +1 -0
  441. package/src/shiki/themes/dracula-soft.js +1 -0
  442. package/src/shiki/themes/dracula.js +1 -0
  443. package/src/shiki/themes/everforest-dark.js +1 -0
  444. package/src/shiki/themes/everforest-light.js +1 -0
  445. package/src/shiki/themes/github-dark-default.js +1 -0
  446. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  447. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  448. package/src/shiki/themes/github-dark.js +1 -0
  449. package/src/shiki/themes/github-light-default.js +1 -0
  450. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  451. package/src/shiki/themes/github-light.js +1 -0
  452. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  453. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  454. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  455. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  456. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  457. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  458. package/src/shiki/themes/houston.js +1 -0
  459. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  460. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  461. package/src/shiki/themes/kanagawa-wave.js +1 -0
  462. package/src/shiki/themes/laserwave.js +1 -0
  463. package/src/shiki/themes/light-plus.js +1 -0
  464. package/src/shiki/themes/material-theme-darker.js +1 -0
  465. package/src/shiki/themes/material-theme-lighter.js +1 -0
  466. package/src/shiki/themes/material-theme-ocean.js +1 -0
  467. package/src/shiki/themes/material-theme-palenight.js +1 -0
  468. package/src/shiki/themes/material-theme.js +1 -0
  469. package/src/shiki/themes/min-dark.js +1 -0
  470. package/src/shiki/themes/min-light.js +1 -0
  471. package/src/shiki/themes/monokai.js +1 -0
  472. package/src/shiki/themes/night-owl.js +1 -0
  473. package/src/shiki/themes/nord.js +1 -0
  474. package/src/shiki/themes/one-dark-pro.js +1 -0
  475. package/src/shiki/themes/one-light.js +1 -0
  476. package/src/shiki/themes/plastic.js +1 -0
  477. package/src/shiki/themes/poimandres.js +1 -0
  478. package/src/shiki/themes/red.js +1 -0
  479. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  480. package/src/shiki/themes/rose-pine-moon.js +1 -0
  481. package/src/shiki/themes/rose-pine.js +1 -0
  482. package/src/shiki/themes/slack-dark.js +1 -0
  483. package/src/shiki/themes/slack-ochin.js +1 -0
  484. package/src/shiki/themes/snazzy-light.js +1 -0
  485. package/src/shiki/themes/solarized-dark.js +1 -0
  486. package/src/shiki/themes/solarized-light.js +1 -0
  487. package/src/shiki/themes/synthwave-84.js +1 -0
  488. package/src/shiki/themes/tokyo-night.js +1 -0
  489. package/src/shiki/themes/vesper.js +1 -0
  490. package/src/shiki/themes/vitesse-black.js +1 -0
  491. package/src/shiki/themes/vitesse-dark.js +1 -0
  492. package/src/shiki/themes/vitesse-light.js +1 -0
  493. package/lib/AuthenticationPlugin-DPCuR3xm.js +0 -58
  494. package/lib/Markdown-mFpg_n9p.js +0 -17125
  495. package/lib/Markdown-mFpg_n9p.js.map +0 -1
  496. package/lib/MdxPage-CH19q_hk.js +0 -85
  497. package/lib/RouteGuard-DRtEu9nh.js +0 -744
  498. package/lib/Select-CT64Ou40.js +0 -223
  499. package/lib/SlotletProvider-CS_nO-XT.js +0 -340
  500. package/lib/SlotletProvider-CS_nO-XT.js.map +0 -1
  501. package/lib/SyntaxHighlight-CxhyyMkF.js +0 -2890
  502. package/lib/SyntaxHighlight-CxhyyMkF.js.map +0 -1
  503. package/lib/hook-CldJlP5c.js +0 -1478
  504. package/lib/index-BeYI7Btu.js +0 -5031
  505. package/lib/index-BeYI7Btu.js.map +0 -1
  506. package/lib/invariant-Caa8-XvF.js +0 -26
  507. package/lib/mutation-DBQh7AOZ.js +0 -211
  508. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  509. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  510. package/lib/prism-csharp.min-C43x1RY2.js +0 -63
  511. package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
  512. package/lib/prism-java.min-CQzr40NQ.js +0 -35
  513. package/lib/prism-java.min-CQzr40NQ.js.map +0 -1
  514. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  515. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  516. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  517. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  518. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  519. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  520. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  521. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  522. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  523. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  524. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  525. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  526. package/lib/prism-ruby.min-L9OdQ6tU.js +0 -38
  527. package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
  528. package/lib/prism-typescript.min-qTySPvCh.js +0 -34
  529. package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
@@ -1,35 +1,35 @@
1
- import * as o from "react";
1
+ import * as i from "react";
2
2
  var F = {}, ue;
3
3
  function Me() {
4
4
  if (ue) return F;
5
5
  ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = c, F.serialize = s;
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__ */ (() => {
6
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, o = /* @__PURE__ */ (() => {
7
7
  const d = function() {
8
8
  };
9
9
  return d.prototype = /* @__PURE__ */ Object.create(null), d;
10
10
  })();
11
11
  function c(d, v) {
12
- const f = new i(), w = d.length;
12
+ const f = new o(), w = d.length;
13
13
  if (w < 2)
14
14
  return f;
15
- const E = (v == null ? void 0 : v.decode) || h;
15
+ const E = v?.decode || h;
16
16
  let m = 0;
17
17
  do {
18
18
  const g = d.indexOf("=", m);
19
19
  if (g === -1)
20
20
  break;
21
- const y = d.indexOf(";", m), R = y === -1 ? w : y;
22
- if (g > R) {
21
+ const y = d.indexOf(";", m), b = y === -1 ? w : y;
22
+ if (g > b) {
23
23
  m = d.lastIndexOf(";", g - 1) + 1;
24
24
  continue;
25
25
  }
26
26
  const x = u(d, m, g), C = l(d, g, x), $ = d.slice(x, C);
27
27
  if (f[$] === void 0) {
28
- let S = u(d, g + 1, R), P = l(d, R, S);
28
+ let S = u(d, g + 1, b), P = l(d, b, S);
29
29
  const D = E(d.slice(S, P));
30
30
  f[$] = D;
31
31
  }
32
- m = R + 1;
32
+ m = b + 1;
33
33
  } while (m < w);
34
34
  return f;
35
35
  }
@@ -50,7 +50,7 @@ function Me() {
50
50
  return f;
51
51
  }
52
52
  function s(d, v, f) {
53
- const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
53
+ const w = f?.encode || encodeURIComponent;
54
54
  if (!e.test(d))
55
55
  throw new TypeError(`argument name is invalid: ${d}`);
56
56
  const E = w(v);
@@ -135,7 +135,7 @@ Me();
135
135
  *
136
136
  * @license MIT
137
137
  */
138
- function b(e, t) {
138
+ function R(e, t) {
139
139
  if (e === !1 || e === null || typeof e > "u")
140
140
  throw new Error(t);
141
141
  }
@@ -169,14 +169,14 @@ function pe(e, t, n = "/") {
169
169
  return De(e, t, n, !1);
170
170
  }
171
171
  function De(e, t, n, a) {
172
- let r = typeof t == "string" ? Y(t) : t, i = M(r.pathname || "/", n);
173
- if (i == null)
172
+ let r = typeof t == "string" ? Y(t) : t, o = M(r.pathname || "/", n);
173
+ if (o == null)
174
174
  return null;
175
175
  let c = ve(e);
176
176
  Oe(c);
177
177
  let u = null;
178
178
  for (let l = 0; u == null && l < c.length; ++l) {
179
- let s = ye(i);
179
+ let s = ye(o);
180
180
  u = Ve(
181
181
  c[l],
182
182
  s,
@@ -186,48 +186,47 @@ function De(e, t, n, a) {
186
186
  return u;
187
187
  }
188
188
  function ve(e, t = [], n = [], a = "") {
189
- let r = (i, c, u) => {
189
+ let r = (o, c, u) => {
190
190
  let l = {
191
- relativePath: u === void 0 ? i.path || "" : u,
192
- caseSensitive: i.caseSensitive === !0,
191
+ relativePath: u === void 0 ? o.path || "" : u,
192
+ caseSensitive: o.caseSensitive === !0,
193
193
  childrenIndex: c,
194
- route: i
194
+ route: o
195
195
  };
196
- l.relativePath.startsWith("/") && (b(
196
+ l.relativePath.startsWith("/") && (R(
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
200
  let s = A([a, l.relativePath]), h = n.concat(l);
201
- i.children && i.children.length > 0 && (b(
201
+ o.children && o.children.length > 0 && (R(
202
202
  // Our types know better, but runtime JS may not!
203
203
  // @ts-expect-error
204
- i.index !== !0,
204
+ o.index !== !0,
205
205
  `Index routes must not have child routes. Please remove all child routes from route path "${s}".`
206
- ), ve(i.children, t, h, s)), !(i.path == null && !i.index) && t.push({
206
+ ), ve(o.children, t, h, s)), !(o.path == null && !o.index) && t.push({
207
207
  path: s,
208
- score: We(s, i.index),
208
+ score: We(s, o.index),
209
209
  routesMeta: h
210
210
  });
211
211
  };
212
- return e.forEach((i, c) => {
213
- var u;
214
- if (i.path === "" || !((u = i.path) != null && u.includes("?")))
215
- r(i, c);
212
+ return e.forEach((o, c) => {
213
+ if (o.path === "" || !o.path?.includes("?"))
214
+ r(o, c);
216
215
  else
217
- for (let l of ge(i.path))
218
- r(i, c, l);
216
+ for (let u of ge(o.path))
217
+ r(o, c, u);
219
218
  }), t;
220
219
  }
221
220
  function ge(e) {
222
221
  let t = e.split("/");
223
222
  if (t.length === 0) return [];
224
- let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
223
+ let [n, ...a] = t, r = n.endsWith("?"), o = n.replace(/\?$/, "");
225
224
  if (a.length === 0)
226
- return r ? [i, ""] : [i];
225
+ return r ? [o, ""] : [o];
227
226
  let c = ge(a.join("/")), u = [];
228
227
  return u.push(
229
228
  ...c.map(
230
- (l) => l === "" ? i : [i, l].join("/")
229
+ (l) => l === "" ? o : [o, l].join("/")
231
230
  )
232
231
  ), r && u.push(...c), u.map(
233
232
  (l) => e.startsWith("/") && l === "" ? "/" : l
@@ -245,7 +244,7 @@ var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e ==
245
244
  function We(e, t) {
246
245
  let n = e.split("/"), a = n.length;
247
246
  return n.some(ce) && (a += He), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
248
- (r, i) => r + (Ie.test(i) ? _e : i === "" ? Ue : Be),
247
+ (r, o) => r + (Ie.test(o) ? _e : o === "" ? Ue : Be),
249
248
  a
250
249
  );
251
250
  }
@@ -263,9 +262,9 @@ function ze(e, t) {
263
262
  );
264
263
  }
265
264
  function Ve(e, t, n = !1) {
266
- let { routesMeta: a } = e, r = {}, i = "/", c = [];
265
+ let { routesMeta: a } = e, r = {}, o = "/", c = [];
267
266
  for (let u = 0; u < a.length; ++u) {
268
- let l = a[u], s = u === a.length - 1, h = i === "/" ? t : t.slice(i.length) || "/", p = H(
267
+ let l = a[u], s = u === a.length - 1, h = o === "/" ? t : t.slice(o.length) || "/", p = H(
269
268
  { path: l.relativePath, caseSensitive: l.caseSensitive, end: s },
270
269
  h
271
270
  ), d = l.route;
@@ -281,12 +280,12 @@ function Ve(e, t, n = !1) {
281
280
  Object.assign(r, p.params), c.push({
282
281
  // TODO: Can this as be avoided?
283
282
  params: r,
284
- pathname: A([i, p.pathname]),
283
+ pathname: A([o, p.pathname]),
285
284
  pathnameBase: qe(
286
- A([i, p.pathnameBase])
285
+ A([o, p.pathnameBase])
287
286
  ),
288
287
  route: d
289
- }), p.pathnameBase !== "/" && (i = A([i, p.pathnameBase]));
288
+ }), p.pathnameBase !== "/" && (o = A([o, p.pathnameBase]));
290
289
  }
291
290
  return c;
292
291
  }
@@ -298,20 +297,20 @@ function H(e, t) {
298
297
  e.end
299
298
  ), r = t.match(n);
300
299
  if (!r) return null;
301
- let i = r[0], c = i.replace(/(.)\/+$/, "$1"), u = r.slice(1);
300
+ let o = r[0], c = o.replace(/(.)\/+$/, "$1"), u = r.slice(1);
302
301
  return {
303
302
  params: a.reduce(
304
303
  (s, { paramName: h, isOptional: p }, d) => {
305
304
  if (h === "*") {
306
305
  let f = u[d] || "";
307
- c = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
306
+ c = o.slice(0, o.length - f.length).replace(/(.)\/+$/, "$1");
308
307
  }
309
308
  const v = u[d];
310
309
  return p && !v ? s[h] = void 0 : s[h] = (v || "").replace(/%2F/g, "/"), s;
311
310
  },
312
311
  {}
313
312
  ),
314
- pathname: i,
313
+ pathname: o,
315
314
  pathnameBase: c,
316
315
  pattern: e
317
316
  };
@@ -380,17 +379,17 @@ function Z(e) {
380
379
  }
381
380
  function ee(e, t, n, a = !1) {
382
381
  let r;
383
- typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
382
+ typeof e == "string" ? r = Y(e) : (r = { ...e }, R(
384
383
  !r.pathname || !r.pathname.includes("?"),
385
384
  G("?", "pathname", "search", r)
386
- ), b(
385
+ ), R(
387
386
  !r.pathname || !r.pathname.includes("#"),
388
387
  G("#", "pathname", "hash", r)
389
- ), b(
388
+ ), R(
390
389
  !r.search || !r.search.includes("#"),
391
390
  G("#", "search", "hash", r)
392
391
  ));
393
- let i = e === "" || r.pathname === "", c = i ? "/" : r.pathname, u;
392
+ let o = e === "" || r.pathname === "", c = o ? "/" : r.pathname, u;
394
393
  if (c == null)
395
394
  u = n;
396
395
  else {
@@ -403,7 +402,7 @@ function ee(e, t, n, a = !1) {
403
402
  }
404
403
  u = p >= 0 ? t[p] : "/";
405
404
  }
406
- let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
405
+ let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (o || c === ".") && n.endsWith("/");
407
406
  return !l.pathname.endsWith("/") && (s || h) && (l.pathname += "/"), l;
408
407
  }
409
408
  var A = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, on = (e, t = 302) => {
@@ -429,89 +428,89 @@ var Qe = [
429
428
  ...Ee
430
429
  ];
431
430
  new Set(Qe);
432
- var O = o.createContext(null);
431
+ var O = i.createContext(null);
433
432
  O.displayName = "DataRouter";
434
- var _ = o.createContext(null);
433
+ var _ = i.createContext(null);
435
434
  _.displayName = "DataRouterState";
436
- var J = o.createContext({
435
+ var J = i.createContext({
437
436
  isTransitioning: !1
438
437
  });
439
438
  J.displayName = "ViewTransition";
440
- var te = o.createContext(
439
+ var te = i.createContext(
441
440
  /* @__PURE__ */ new Map()
442
441
  );
443
442
  te.displayName = "Fetchers";
444
- var Ze = o.createContext(null);
443
+ var Ze = i.createContext(null);
445
444
  Ze.displayName = "Await";
446
- var T = o.createContext(
445
+ var T = i.createContext(
447
446
  null
448
447
  );
449
448
  T.displayName = "Navigation";
450
- var K = o.createContext(
449
+ var K = i.createContext(
451
450
  null
452
451
  );
453
452
  K.displayName = "Location";
454
- var k = o.createContext({
453
+ var k = i.createContext({
455
454
  outlet: null,
456
455
  matches: [],
457
456
  isDataRoute: !1
458
457
  });
459
458
  k.displayName = "Route";
460
- var ne = o.createContext(null);
459
+ var ne = i.createContext(null);
461
460
  ne.displayName = "RouteError";
462
461
  function et(e, { relative: t } = {}) {
463
- b(
462
+ R(
464
463
  I(),
465
464
  // TODO: This error is probably because they somehow have 2 versions of the
466
465
  // router loaded. We can help them understand how to avoid that.
467
466
  "useHref() may be used only in the context of a <Router> component."
468
467
  );
469
- let { basename: n, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: c } = W(e, { relative: t }), u = i;
470
- return n !== "/" && (u = i === "/" ? n : A([n, i])), a.createHref({ pathname: u, search: c, hash: r });
468
+ let { basename: n, navigator: a } = i.useContext(T), { hash: r, pathname: o, search: c } = W(e, { relative: t }), u = o;
469
+ return n !== "/" && (u = o === "/" ? n : A([n, o])), a.createHref({ pathname: u, search: c, hash: r });
471
470
  }
472
471
  function I() {
473
- return o.useContext(K) != null;
472
+ return i.useContext(K) != null;
474
473
  }
475
474
  function N() {
476
- return b(
475
+ return R(
477
476
  I(),
478
477
  // TODO: This error is probably because they somehow have 2 versions of the
479
478
  // router loaded. We can help them understand how to avoid that.
480
479
  "useLocation() may be used only in the context of a <Router> component."
481
- ), o.useContext(K).location;
480
+ ), i.useContext(K).location;
482
481
  }
483
482
  function ln(e) {
484
- b(
483
+ R(
485
484
  I(),
486
485
  // TODO: This error is probably because they somehow have 2 versions of the
487
486
  // router loaded. We can help them understand how to avoid that.
488
487
  "useMatch() may be used only in the context of a <Router> component."
489
488
  );
490
489
  let { pathname: t } = N();
491
- return o.useMemo(
490
+ return i.useMemo(
492
491
  () => H(e, ye(t)),
493
492
  [t, e]
494
493
  );
495
494
  }
496
495
  var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
497
496
  function Re(e) {
498
- o.useContext(T).static || o.useLayoutEffect(e);
497
+ i.useContext(T).static || i.useLayoutEffect(e);
499
498
  }
500
499
  function re() {
501
- let { isDataRoute: e } = o.useContext(k);
500
+ let { isDataRoute: e } = i.useContext(k);
502
501
  return e ? ht() : tt();
503
502
  }
504
503
  function tt() {
505
- b(
504
+ R(
506
505
  I(),
507
506
  // TODO: This error is probably because they somehow have 2 versions of the
508
507
  // router loaded. We can help them understand how to avoid that.
509
508
  "useNavigate() may be used only in the context of a <Router> component."
510
509
  );
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)), c = o.useRef(!1);
510
+ let e = i.useContext(O), { basename: t, navigator: n } = i.useContext(T), { matches: a } = i.useContext(k), { pathname: r } = N(), o = JSON.stringify(Z(a)), c = i.useRef(!1);
512
511
  return Re(() => {
513
512
  c.current = !0;
514
- }), o.useCallback(
513
+ }), i.useCallback(
515
514
  (l, s = {}) => {
516
515
  if (L(c.current, xe), !c.current) return;
517
516
  if (typeof l == "number") {
@@ -520,7 +519,7 @@ function tt() {
520
519
  }
521
520
  let h = ee(
522
521
  l,
523
- JSON.parse(i),
522
+ JSON.parse(o),
524
523
  r,
525
524
  s.relative === "path"
526
525
  );
@@ -533,24 +532,24 @@ function tt() {
533
532
  [
534
533
  t,
535
534
  n,
536
- i,
535
+ o,
537
536
  r,
538
537
  e
539
538
  ]
540
539
  );
541
540
  }
542
- var nt = o.createContext(null);
541
+ var nt = i.createContext(null);
543
542
  function rt(e) {
544
- let t = o.useContext(k).outlet;
545
- return t && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, t);
543
+ let t = i.useContext(k).outlet;
544
+ return t && /* @__PURE__ */ i.createElement(nt.Provider, { value: e }, t);
546
545
  }
547
546
  function sn() {
548
- let { matches: e } = o.useContext(k), t = e[e.length - 1];
547
+ let { matches: e } = i.useContext(k), t = e[e.length - 1];
549
548
  return t ? t.params : {};
550
549
  }
551
550
  function W(e, { relative: t } = {}) {
552
- let { matches: n } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
553
- return o.useMemo(
551
+ let { matches: n } = i.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
552
+ return i.useMemo(
554
553
  () => ee(
555
554
  e,
556
555
  JSON.parse(r),
@@ -561,13 +560,13 @@ function W(e, { relative: t } = {}) {
561
560
  );
562
561
  }
563
562
  function be(e, t, n, a) {
564
- b(
563
+ R(
565
564
  I(),
566
565
  // TODO: This error is probably because they somehow have 2 versions of the
567
566
  // router loaded. We can help them understand how to avoid that.
568
567
  "useRoutes() may be used only in the context of a <Router> component."
569
568
  );
570
- let { navigator: r, static: i } = o.useContext(T), { matches: c } = o.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
569
+ let { navigator: r, static: o } = i.useContext(T), { matches: c } = i.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
571
570
  {
572
571
  let g = p && p.path || "";
573
572
  Se(
@@ -585,7 +584,7 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
585
584
  let g = h.replace(/^\//, "").split("/");
586
585
  w = "/" + f.replace(/^\//, "").split("/").slice(g.length).join("/");
587
586
  }
588
- let E = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
587
+ let E = !o && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
589
588
  return L(
590
589
  p || E != null,
591
590
  `No routes matched location "${v.pathname}${v.search}${v.hash}" `
@@ -614,13 +613,13 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
614
613
  );
615
614
  }
616
615
  function at() {
617
- let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, c = null;
616
+ let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, c = null;
618
617
  return console.error(
619
618
  "Error handled by React Router default ErrorBoundary:",
620
619
  e
621
- ), c = /* @__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, c);
620
+ ), c = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ i.createElement("pre", { style: r }, n) : null, c);
622
621
  }
623
- var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
622
+ var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Component {
624
623
  constructor(e) {
625
624
  super(e), this.state = {
626
625
  location: e.location,
@@ -650,7 +649,7 @@ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Compone
650
649
  );
651
650
  }
652
651
  render() {
653
- return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
652
+ return this.state.error !== void 0 ? /* @__PURE__ */ i.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ i.createElement(
654
653
  ne.Provider,
655
654
  {
656
655
  value: this.state.error,
@@ -660,8 +659,8 @@ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Compone
660
659
  }
661
660
  };
662
661
  function lt({ routeContext: e, match: t, children: n }) {
663
- let a = o.useContext(O);
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);
662
+ let a = i.useContext(O);
663
+ return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(k.Provider, { value: e }, n);
665
664
  }
666
665
  function st(e, t = [], n = null, a = null) {
667
666
  if (e == null) {
@@ -674,15 +673,15 @@ function st(e, t = [], n = null, a = null) {
674
673
  else
675
674
  return null;
676
675
  }
677
- let r = e, i = n == null ? void 0 : n.errors;
678
- if (i != null) {
676
+ let r = e, o = n?.errors;
677
+ if (o != null) {
679
678
  let l = r.findIndex(
680
- (s) => s.route.id && (i == null ? void 0 : i[s.route.id]) !== void 0
679
+ (s) => s.route.id && o?.[s.route.id] !== void 0
681
680
  );
682
- b(
681
+ R(
683
682
  l >= 0,
684
683
  `Could not find a matching route for errors on route IDs: ${Object.keys(
685
- i
684
+ o
686
685
  ).join(",")}`
687
686
  ), r = r.slice(
688
687
  0,
@@ -703,14 +702,14 @@ function st(e, t = [], n = null, a = null) {
703
702
  }
704
703
  return r.reduceRight((l, s, h) => {
705
704
  let p, d = !1, v = null, f = null;
706
- n && (p = i && s.route.id ? i[s.route.id] : void 0, v = s.route.errorElement || it, c && (u < 0 && h === 0 ? (Se(
705
+ n && (p = o && s.route.id ? o[s.route.id] : void 0, v = s.route.errorElement || ot, c && (u < 0 && h === 0 ? (Se(
707
706
  "route-fallback",
708
707
  !1,
709
708
  "No `HydrateFallback` element provided to render during initial hydration"
710
709
  ), d = !0, f = null) : u === h && (d = !0, f = s.route.hydrateFallbackElement || null)));
711
710
  let w = t.concat(r.slice(0, h + 1)), E = () => {
712
711
  let m;
713
- return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ o.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ o.createElement(
712
+ return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ i.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ i.createElement(
714
713
  lt,
715
714
  {
716
715
  match: s,
@@ -723,8 +722,8 @@ function st(e, t = [], n = null, a = null) {
723
722
  }
724
723
  );
725
724
  };
726
- return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
727
- ot,
725
+ return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ i.createElement(
726
+ it,
728
727
  {
729
728
  location: n.location,
730
729
  revalidation: n.revalidation,
@@ -740,26 +739,26 @@ function ae(e) {
740
739
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
741
740
  }
742
741
  function ut(e) {
743
- let t = o.useContext(O);
744
- return b(t, ae(e)), t;
742
+ let t = i.useContext(O);
743
+ return R(t, ae(e)), t;
745
744
  }
746
745
  function Ce(e) {
747
- let t = o.useContext(_);
748
- return b(t, ae(e)), t;
746
+ let t = i.useContext(_);
747
+ return R(t, ae(e)), t;
749
748
  }
750
749
  function ct(e) {
751
- let t = o.useContext(k);
752
- return b(t, ae(e)), t;
750
+ let t = i.useContext(k);
751
+ return R(t, ae(e)), t;
753
752
  }
754
- function ie(e) {
753
+ function oe(e) {
755
754
  let t = ct(e), n = t.matches[t.matches.length - 1];
756
- return b(
755
+ return R(
757
756
  n.route.id,
758
757
  `${e} can only be used on routes that contain a unique "id"`
759
758
  ), n.route.id;
760
759
  }
761
760
  function ft() {
762
- return ie(
761
+ return oe(
763
762
  "useRouteId"
764
763
  /* UseRouteId */
765
764
  );
@@ -771,29 +770,28 @@ function un() {
771
770
  ).navigation;
772
771
  }
773
772
  function dt() {
774
- var a;
775
- let e = o.useContext(ne), t = Ce(
773
+ let e = i.useContext(ne), t = Ce(
776
774
  "useRouteError"
777
775
  /* UseRouteError */
778
- ), n = ie(
776
+ ), n = oe(
779
777
  "useRouteError"
780
778
  /* UseRouteError */
781
779
  );
782
- return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
780
+ return e !== void 0 ? e : t.errors?.[n];
783
781
  }
784
782
  function ht() {
785
783
  let { router: e } = ut(
786
784
  "useNavigate"
787
785
  /* UseNavigateStable */
788
- ), t = ie(
786
+ ), t = oe(
789
787
  "useNavigate"
790
788
  /* UseNavigateStable */
791
- ), n = o.useRef(!1);
789
+ ), n = i.useRef(!1);
792
790
  return Re(() => {
793
791
  n.current = !0;
794
- }), o.useCallback(
795
- async (r, i = {}) => {
796
- L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...i }));
792
+ }), i.useCallback(
793
+ async (r, o = {}) => {
794
+ L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...o }));
797
795
  },
798
796
  [e, t]
799
797
  );
@@ -821,13 +819,13 @@ function cn({
821
819
  router: e,
822
820
  flushSync: t
823
821
  }) {
824
- let [n, a] = o.useState(e.state), [r, i] = o.useState(), [c, u] = o.useState({
822
+ let [n, a] = i.useState(e.state), [r, o] = i.useState(), [c, u] = i.useState({
825
823
  isTransitioning: !1
826
- }), [l, s] = o.useState(), [h, p] = o.useState(), [d, v] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
827
- (y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
824
+ }), [l, s] = i.useState(), [h, p] = i.useState(), [d, v] = i.useState(), f = i.useRef(/* @__PURE__ */ new Map()), w = i.useCallback(
825
+ (y, { deletedFetchers: b, flushSync: x, viewTransitionOpts: C }) => {
828
826
  y.fetchers.forEach((S, P) => {
829
827
  S.data !== void 0 && f.current.set(P, S.data);
830
- }), R.forEach((S) => f.current.delete(S)), he(
828
+ }), b.forEach((S) => f.current.delete(S)), he(
831
829
  x === !1 || t != null,
832
830
  '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.'
833
831
  );
@@ -836,7 +834,7 @@ function cn({
836
834
  C == null || $,
837
835
  "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
838
836
  ), !C || !$) {
839
- t && x ? t(() => a(y)) : o.startTransition(() => a(y));
837
+ t && x ? t(() => a(y)) : i.startTransition(() => a(y));
840
838
  return;
841
839
  }
842
840
  if (t && x) {
@@ -853,7 +851,7 @@ function cn({
853
851
  });
854
852
  S.finished.finally(() => {
855
853
  t(() => {
856
- s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
854
+ s(void 0), p(void 0), o(void 0), u({ isTransitioning: !1 });
857
855
  });
858
856
  }), t(() => p(S));
859
857
  return;
@@ -862,7 +860,7 @@ function cn({
862
860
  state: y,
863
861
  currentLocation: C.currentLocation,
864
862
  nextLocation: C.nextLocation
865
- })) : (i(y), u({
863
+ })) : (o(y), u({
866
864
  isTransitioning: !0,
867
865
  flushSync: !1,
868
866
  currentLocation: C.currentLocation,
@@ -871,41 +869,41 @@ function cn({
871
869
  },
872
870
  [e.window, t, h, l]
873
871
  );
874
- o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
872
+ i.useLayoutEffect(() => e.subscribe(w), [e, w]), i.useEffect(() => {
875
873
  c.isTransitioning && !c.flushSync && s(new mt());
876
- }, [c]), o.useEffect(() => {
874
+ }, [c]), i.useEffect(() => {
877
875
  if (l && r && e.window) {
878
- let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
879
- o.startTransition(() => a(y)), await R;
876
+ let y = r, b = l.promise, x = e.window.document.startViewTransition(async () => {
877
+ i.startTransition(() => a(y)), await b;
880
878
  });
881
879
  x.finished.finally(() => {
882
- s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
880
+ s(void 0), p(void 0), o(void 0), u({ isTransitioning: !1 });
883
881
  }), p(x);
884
882
  }
885
- }, [r, l, e.window]), o.useEffect(() => {
883
+ }, [r, l, e.window]), i.useEffect(() => {
886
884
  l && r && n.location.key === r.location.key && l.resolve();
887
- }, [l, h, n.location, r]), o.useEffect(() => {
888
- !c.isTransitioning && d && (i(d.state), u({
885
+ }, [l, h, n.location, r]), i.useEffect(() => {
886
+ !c.isTransitioning && d && (o(d.state), u({
889
887
  isTransitioning: !0,
890
888
  flushSync: !1,
891
889
  currentLocation: d.currentLocation,
892
890
  nextLocation: d.nextLocation
893
891
  }), v(void 0));
894
892
  }, [c.isTransitioning, d]);
895
- let E = o.useMemo(() => ({
893
+ let E = i.useMemo(() => ({
896
894
  createHref: e.createHref,
897
895
  encodeLocation: e.encodeLocation,
898
896
  go: (y) => e.navigate(y),
899
- push: (y, R, x) => e.navigate(y, {
900
- state: R,
901
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
897
+ push: (y, b, x) => e.navigate(y, {
898
+ state: b,
899
+ preventScrollReset: x?.preventScrollReset
902
900
  }),
903
- replace: (y, R, x) => e.navigate(y, {
901
+ replace: (y, b, x) => e.navigate(y, {
904
902
  replace: !0,
905
- state: R,
906
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
903
+ state: b,
904
+ preventScrollReset: x?.preventScrollReset
907
905
  })
908
- }), [e]), m = e.basename || "/", g = o.useMemo(
906
+ }), [e]), m = e.basename || "/", g = i.useMemo(
909
907
  () => ({
910
908
  router: e,
911
909
  navigator: E,
@@ -914,7 +912,7 @@ function cn({
914
912
  }),
915
913
  [e, E, m]
916
914
  );
917
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: g }, /* @__PURE__ */ o.createElement(_.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
915
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: g }, /* @__PURE__ */ i.createElement(_.Provider, { value: n }, /* @__PURE__ */ i.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ i.createElement(J.Provider, { value: c }, /* @__PURE__ */ i.createElement(
918
916
  Pe,
919
917
  {
920
918
  basename: m,
@@ -922,7 +920,7 @@ function cn({
922
920
  navigationType: n.historyAction,
923
921
  navigator: E
924
922
  },
925
- /* @__PURE__ */ o.createElement(
923
+ /* @__PURE__ */ i.createElement(
926
924
  pt,
927
925
  {
928
926
  routes: e.routes,
@@ -932,7 +930,7 @@ function cn({
932
930
  )
933
931
  ))))), null);
934
932
  }
935
- var pt = o.memo(vt);
933
+ var pt = i.memo(vt);
936
934
  function vt({
937
935
  routes: e,
938
936
  future: t,
@@ -946,24 +944,24 @@ function fn({
946
944
  state: n,
947
945
  relative: a
948
946
  }) {
949
- b(
947
+ R(
950
948
  I(),
951
949
  // TODO: This error is probably because they somehow have 2 versions of
952
950
  // the router loaded. We can help them understand how to avoid that.
953
951
  "<Navigate> may be used only in the context of a <Router> component."
954
952
  );
955
- let { static: r } = o.useContext(T);
953
+ let { static: r } = i.useContext(T);
956
954
  L(
957
955
  !r,
958
956
  "<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."
959
957
  );
960
- let { matches: i } = o.useContext(k), { pathname: c } = N(), u = re(), l = ee(
958
+ let { matches: o } = i.useContext(k), { pathname: c } = N(), u = re(), l = ee(
961
959
  e,
962
- Z(i),
960
+ Z(o),
963
961
  c,
964
962
  a === "path"
965
963
  ), s = JSON.stringify(l);
966
- return o.useEffect(() => {
964
+ return i.useEffect(() => {
967
965
  u(JSON.parse(s), { replace: t, state: n, relative: a });
968
966
  }, [u, s, a, t, n]), null;
969
967
  }
@@ -976,20 +974,20 @@ function Pe({
976
974
  location: n,
977
975
  navigationType: a = "POP",
978
976
  navigator: r,
979
- static: i = !1
977
+ static: o = !1
980
978
  }) {
981
- b(
979
+ R(
982
980
  !I(),
983
981
  "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
984
982
  );
985
- let c = e.replace(/^\/*/, "/"), u = o.useMemo(
983
+ let c = e.replace(/^\/*/, "/"), u = i.useMemo(
986
984
  () => ({
987
985
  basename: c,
988
986
  navigator: r,
989
- static: i,
987
+ static: o,
990
988
  future: {}
991
989
  }),
992
- [c, r, i]
990
+ [c, r, o]
993
991
  );
994
992
  typeof n == "string" && (n = Y(n));
995
993
  let {
@@ -998,7 +996,7 @@ function Pe({
998
996
  hash: h = "",
999
997
  state: p = null,
1000
998
  key: d = "default"
1001
- } = n, v = o.useMemo(() => {
999
+ } = n, v = i.useMemo(() => {
1002
1000
  let f = M(l, c);
1003
1001
  return f == null ? null : {
1004
1002
  location: {
@@ -1014,7 +1012,7 @@ function Pe({
1014
1012
  return L(
1015
1013
  v != null,
1016
1014
  `<Router basename="${c}"> is not able to match the URL "${l}${s}${h}" because it does not start with the basename, so the <Router> won't render anything.`
1017
- ), v == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: v }));
1015
+ ), v == null ? null : /* @__PURE__ */ i.createElement(T.Provider, { value: u }, /* @__PURE__ */ i.createElement(K.Provider, { children: t, value: v }));
1018
1016
  }
1019
1017
  var V = "get", j = "application/x-www-form-urlencoded";
1020
1018
  function q(e) {
@@ -1050,8 +1048,8 @@ function Q(e = "") {
1050
1048
  function Rt(e, t) {
1051
1049
  let n = Q(e);
1052
1050
  return t && t.forEach((a, r) => {
1053
- n.has(r) || t.getAll(r).forEach((i) => {
1054
- n.append(r, i);
1051
+ n.has(r) || t.getAll(r).forEach((o) => {
1052
+ n.append(r, o);
1055
1053
  });
1056
1054
  }), n;
1057
1055
  }
@@ -1081,10 +1079,10 @@ function X(e) {
1081
1079
  ), null) : e;
1082
1080
  }
1083
1081
  function St(e, t) {
1084
- let n, a, r, i, c;
1082
+ let n, a, r, o, c;
1085
1083
  if (yt(e)) {
1086
1084
  let u = e.getAttribute("action");
1087
- a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1085
+ a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, o = new FormData(e);
1088
1086
  } else if (gt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
1089
1087
  let u = e.form;
1090
1088
  if (u == null)
@@ -1092,12 +1090,12 @@ function St(e, t) {
1092
1090
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1093
1091
  );
1094
1092
  let l = e.getAttribute("formaction") || u.getAttribute("action");
1095
- if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, i = new FormData(u, e), !bt()) {
1093
+ if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, o = new FormData(u, e), !bt()) {
1096
1094
  let { name: s, type: h, value: p } = e;
1097
1095
  if (h === "image") {
1098
1096
  let d = s ? `${s}.` : "";
1099
- i.append(`${d}x`, "0"), i.append(`${d}y`, "0");
1100
- } else s && i.append(s, p);
1097
+ o.append(`${d}x`, "0"), o.append(`${d}y`, "0");
1098
+ } else s && o.append(s, p);
1101
1099
  }
1102
1100
  } else {
1103
1101
  if (q(e))
@@ -1106,9 +1104,9 @@ function St(e, t) {
1106
1104
  );
1107
1105
  n = V, a = null, r = j, c = e;
1108
1106
  }
1109
- return i && r === "text/plain" && (c = i, i = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: i, body: c };
1107
+ return o && r === "text/plain" && (c = o, o = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: o, body: c };
1110
1108
  }
1111
- function oe(e, t) {
1109
+ function ie(e, t) {
1112
1110
  if (e === !1 || e === null || typeof e > "u")
1113
1111
  throw new Error(t);
1114
1112
  }
@@ -1135,9 +1133,9 @@ function Lt(e) {
1135
1133
  async function kt(e, t, n) {
1136
1134
  let a = await Promise.all(
1137
1135
  e.map(async (r) => {
1138
- let i = t.routes[r.route.id];
1139
- if (i) {
1140
- let c = await Pt(i, n);
1136
+ let o = t.routes[r.route.id];
1137
+ if (o) {
1138
+ let c = await Pt(o, n);
1141
1139
  return c.links ? c.links() : [];
1142
1140
  }
1143
1141
  return [];
@@ -1149,38 +1147,34 @@ async function kt(e, t, n) {
1149
1147
  )
1150
1148
  );
1151
1149
  }
1152
- function me(e, t, n, a, r, i) {
1153
- let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => {
1154
- var h;
1155
- return (
1156
- // param change, /users/123 -> /users/456
1157
- n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1158
- // e.g. /files/images/avatar.jpg -> files/finances.xls
1159
- ((h = n[s].route.path) == null ? void 0 : h.endsWith("*")) && n[s].params["*"] !== l.params["*"]
1160
- );
1161
- };
1162
- return i === "assets" ? t.filter(
1150
+ function me(e, t, n, a, r, o) {
1151
+ let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => (
1152
+ // param change, /users/123 -> /users/456
1153
+ n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1154
+ // e.g. /files/images/avatar.jpg -> files/finances.xls
1155
+ n[s].route.path?.endsWith("*") && n[s].params["*"] !== l.params["*"]
1156
+ );
1157
+ return o === "assets" ? t.filter(
1163
1158
  (l, s) => c(l, s) || u(l, s)
1164
- ) : i === "data" ? t.filter((l, s) => {
1165
- var p;
1159
+ ) : o === "data" ? t.filter((l, s) => {
1166
1160
  let h = a.routes[l.route.id];
1167
1161
  if (!h || !h.hasLoader)
1168
1162
  return !1;
1169
1163
  if (c(l, s) || u(l, s))
1170
1164
  return !0;
1171
1165
  if (l.route.shouldRevalidate) {
1172
- let d = l.route.shouldRevalidate({
1166
+ let p = l.route.shouldRevalidate({
1173
1167
  currentUrl: new URL(
1174
1168
  r.pathname + r.search + r.hash,
1175
1169
  window.origin
1176
1170
  ),
1177
- currentParams: ((p = n[0]) == null ? void 0 : p.params) || {},
1171
+ currentParams: n[0]?.params || {},
1178
1172
  nextUrl: new URL(e, window.origin),
1179
1173
  nextParams: l.params,
1180
1174
  defaultShouldRevalidate: !0
1181
1175
  });
1182
- if (typeof d == "boolean")
1183
- return d;
1176
+ if (typeof p == "boolean")
1177
+ return p;
1184
1178
  }
1185
1179
  return !0;
1186
1180
  }) : [];
@@ -1190,8 +1184,8 @@ function $t(e, t, { includeHydrateFallback: n } = {}) {
1190
1184
  e.map((a) => {
1191
1185
  let r = t.routes[a.route.id];
1192
1186
  if (!r) return [];
1193
- let i = [r.module];
1194
- return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
1187
+ let o = [r.module];
1188
+ return r.clientActionModule && (o = o.concat(r.clientActionModule)), r.clientLoaderModule && (o = o.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (o = o.concat(r.hydrateFallbackModule)), r.imports && (o = o.concat(r.imports)), o;
1195
1189
  }).flat(1)
1196
1190
  );
1197
1191
  }
@@ -1207,8 +1201,8 @@ function Nt(e) {
1207
1201
  function At(e, t) {
1208
1202
  let n = /* @__PURE__ */ new Set();
1209
1203
  return new Set(t), e.reduce((a, r) => {
1210
- let i = JSON.stringify(Nt(r));
1211
- return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1204
+ let o = JSON.stringify(Nt(r));
1205
+ return n.has(o) || (n.add(o), a.push({ key: o, link: r })), a;
1212
1206
  }, []);
1213
1207
  }
1214
1208
  var Mt = /* @__PURE__ */ new Set([100, 101, 204, 205]);
@@ -1222,31 +1216,31 @@ function Dt(e, t) {
1222
1216
  return n.pathname === "/" ? n.pathname = "_root.data" : t && M(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
1223
1217
  }
1224
1218
  function Le() {
1225
- let e = o.useContext(O);
1226
- return oe(
1219
+ let e = i.useContext(O);
1220
+ return ie(
1227
1221
  e,
1228
1222
  "You must render this element inside a <DataRouterContext.Provider> element"
1229
1223
  ), e;
1230
1224
  }
1231
1225
  function Ot() {
1232
- let e = o.useContext(_);
1233
- return oe(
1226
+ let e = i.useContext(_);
1227
+ return ie(
1234
1228
  e,
1235
1229
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1236
1230
  ), e;
1237
1231
  }
1238
- var le = o.createContext(void 0);
1232
+ var le = i.createContext(void 0);
1239
1233
  le.displayName = "FrameworkContext";
1240
1234
  function ke() {
1241
- let e = o.useContext(le);
1242
- return oe(
1235
+ let e = i.useContext(le);
1236
+ return ie(
1243
1237
  e,
1244
1238
  "You must render this element inside a <HydratedRouter> element"
1245
1239
  ), e;
1246
1240
  }
1247
1241
  function It(e, t) {
1248
- let n = o.useContext(le), [a, r] = o.useState(!1), [i, c] = o.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = o.useRef(null);
1249
- o.useEffect(() => {
1242
+ let n = i.useContext(le), [a, r] = i.useState(!1), [o, c] = i.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = i.useRef(null);
1243
+ i.useEffect(() => {
1250
1244
  if (e === "render" && c(!0), e === "viewport") {
1251
1245
  let w = (m) => {
1252
1246
  m.forEach((g) => {
@@ -1257,7 +1251,7 @@ function It(e, t) {
1257
1251
  E.disconnect();
1258
1252
  };
1259
1253
  }
1260
- }, [e]), o.useEffect(() => {
1254
+ }, [e]), i.useEffect(() => {
1261
1255
  if (a) {
1262
1256
  let w = setTimeout(() => {
1263
1257
  c(!0);
@@ -1272,8 +1266,8 @@ function It(e, t) {
1272
1266
  }, f = () => {
1273
1267
  r(!1), c(!1);
1274
1268
  };
1275
- return n ? e !== "intent" ? [i, d, {}] : [
1276
- i,
1269
+ return n ? e !== "intent" ? [o, d, {}] : [
1270
+ o,
1277
1271
  d,
1278
1272
  {
1279
1273
  onFocus: U(u, v),
@@ -1293,22 +1287,22 @@ function _t({
1293
1287
  page: e,
1294
1288
  ...t
1295
1289
  }) {
1296
- let { router: n } = Le(), a = o.useMemo(
1290
+ let { router: n } = Le(), a = i.useMemo(
1297
1291
  () => pe(n.routes, e, n.basename),
1298
1292
  [n.routes, e, n.basename]
1299
1293
  );
1300
- return a ? /* @__PURE__ */ o.createElement(Ut, { page: e, matches: a, ...t }) : null;
1294
+ return a ? /* @__PURE__ */ i.createElement(Ut, { page: e, matches: a, ...t }) : null;
1301
1295
  }
1302
1296
  function Ft(e) {
1303
- let { manifest: t, routeModules: n } = ke(), [a, r] = o.useState([]);
1304
- return o.useEffect(() => {
1305
- let i = !1;
1297
+ let { manifest: t, routeModules: n } = ke(), [a, r] = i.useState([]);
1298
+ return i.useEffect(() => {
1299
+ let o = !1;
1306
1300
  return kt(e, t, n).then(
1307
1301
  (c) => {
1308
- i || r(c);
1302
+ o || r(c);
1309
1303
  }
1310
1304
  ), () => {
1311
- i = !0;
1305
+ o = !0;
1312
1306
  };
1313
1307
  }, [e, t, n]), a;
1314
1308
  }
@@ -1317,7 +1311,7 @@ function Ut({
1317
1311
  matches: t,
1318
1312
  ...n
1319
1313
  }) {
1320
- let a = N(), { manifest: r, routeModules: i } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Ot(), s = o.useMemo(
1314
+ let a = N(), { manifest: r, routeModules: o } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Ot(), s = i.useMemo(
1321
1315
  () => me(
1322
1316
  e,
1323
1317
  t,
@@ -1327,7 +1321,7 @@ function Ut({
1327
1321
  "data"
1328
1322
  ),
1329
1323
  [e, t, l, r, a]
1330
- ), h = o.useMemo(
1324
+ ), h = i.useMemo(
1331
1325
  () => me(
1332
1326
  e,
1333
1327
  t,
@@ -1337,14 +1331,13 @@ function Ut({
1337
1331
  "assets"
1338
1332
  ),
1339
1333
  [e, t, l, r, a]
1340
- ), p = o.useMemo(() => {
1334
+ ), p = i.useMemo(() => {
1341
1335
  if (e === a.pathname + a.search + a.hash)
1342
1336
  return [];
1343
1337
  let f = /* @__PURE__ */ new Set(), w = !1;
1344
1338
  if (t.forEach((m) => {
1345
- var y;
1346
1339
  let g = r.routes[m.route.id];
1347
- !g || !g.hasLoader || (!s.some((R) => R.route.id === m.route.id) && m.route.id in u && ((y = i[m.route.id]) != null && y.shouldRevalidate) || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1340
+ !g || !g.hasLoader || (!s.some((y) => y.route.id === m.route.id) && m.route.id in u && o[m.route.id]?.shouldRevalidate || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1348
1341
  }), f.size === 0)
1349
1342
  return [];
1350
1343
  let E = Dt(e, c);
@@ -1360,15 +1353,15 @@ function Ut({
1360
1353
  s,
1361
1354
  t,
1362
1355
  e,
1363
- i
1364
- ]), d = o.useMemo(
1356
+ o
1357
+ ]), d = i.useMemo(
1365
1358
  () => $t(h, r),
1366
1359
  [h, r]
1367
1360
  ), v = Ft(h);
1368
- return /* @__PURE__ */ o.createElement(o.Fragment, null, p.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1361
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, p.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1369
1362
  // these don't spread `linkProps` because they are full link descriptors
1370
1363
  // already with their own props
1371
- /* @__PURE__ */ o.createElement("link", { key: f, ...w })
1364
+ /* @__PURE__ */ i.createElement("link", { key: f, ...w })
1372
1365
  )));
1373
1366
  }
1374
1367
  function Bt(...e) {
@@ -1383,13 +1376,13 @@ try {
1383
1376
  $e && (window.__reactRouterVersion = "7.5.2");
1384
1377
  } catch {
1385
1378
  }
1386
- var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1379
+ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1387
1380
  function({
1388
1381
  onClick: t,
1389
1382
  discover: n = "render",
1390
1383
  prefetch: a = "none",
1391
1384
  relative: r,
1392
- reloadDocument: i,
1385
+ reloadDocument: o,
1393
1386
  replace: c,
1394
1387
  state: u,
1395
1388
  target: l,
@@ -1398,7 +1391,7 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1398
1391
  viewTransition: p,
1399
1392
  ...d
1400
1393
  }, v) {
1401
- let { basename: f } = o.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1394
+ let { basename: f } = i.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1402
1395
  if (typeof s == "string" && w && (E = s, $e))
1403
1396
  try {
1404
1397
  let P = new URL(window.location.href), D = s.startsWith("//") ? new URL(P.protocol + s) : new URL(s), se = M(D.pathname, f);
@@ -1409,7 +1402,7 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1409
1402
  `<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1410
1403
  );
1411
1404
  }
1412
- let g = et(s, { relative: r }), [y, R, x] = It(
1405
+ let g = et(s, { relative: r }), [y, b, x] = It(
1413
1406
  a,
1414
1407
  d
1415
1408
  ), C = Vt(s, {
@@ -1425,41 +1418,41 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1425
1418
  }
1426
1419
  let S = (
1427
1420
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1428
- /* @__PURE__ */ o.createElement(
1421
+ /* @__PURE__ */ i.createElement(
1429
1422
  "a",
1430
1423
  {
1431
1424
  ...d,
1432
1425
  ...x,
1433
1426
  href: E || g,
1434
- onClick: m || i ? t : $,
1435
- ref: Bt(v, R),
1427
+ onClick: m || o ? t : $,
1428
+ ref: Bt(v, b),
1436
1429
  target: l,
1437
1430
  "data-discover": !w && n === "render" ? "true" : void 0
1438
1431
  }
1439
1432
  )
1440
1433
  );
1441
- return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(_t, { page: g })) : S;
1434
+ return y && !w ? /* @__PURE__ */ i.createElement(i.Fragment, null, S, /* @__PURE__ */ i.createElement(_t, { page: g })) : S;
1442
1435
  }
1443
1436
  );
1444
1437
  Ne.displayName = "Link";
1445
- var Ht = o.forwardRef(
1438
+ var Ht = i.forwardRef(
1446
1439
  function({
1447
1440
  "aria-current": t = "page",
1448
1441
  caseSensitive: n = !1,
1449
1442
  className: a = "",
1450
1443
  end: r = !1,
1451
- style: i,
1444
+ style: o,
1452
1445
  to: c,
1453
1446
  viewTransition: u,
1454
1447
  children: l,
1455
1448
  ...s
1456
1449
  }, h) {
1457
- let p = W(c, { relative: s.relative }), d = N(), v = o.useContext(_), { navigator: f, basename: w } = o.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1450
+ let p = W(c, { relative: s.relative }), d = N(), v = i.useContext(_), { navigator: f, basename: w } = i.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1458
1451
  // eslint-disable-next-line react-hooks/rules-of-hooks
1459
1452
  qt(p) && u === !0, m = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, g = d.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1460
1453
  n || (g = g.toLowerCase(), y = y ? y.toLowerCase() : null, m = m.toLowerCase()), y && w && (y = M(y, w) || y);
1461
- const R = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1462
- let x = g === m || !r && g.startsWith(m) && g.charAt(R) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1454
+ const b = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1455
+ let x = g === m || !r && g.startsWith(m) && g.charAt(b) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1463
1456
  isActive: x,
1464
1457
  isPending: C,
1465
1458
  isTransitioning: E
@@ -1470,8 +1463,8 @@ var Ht = o.forwardRef(
1470
1463
  C ? "pending" : null,
1471
1464
  E ? "transitioning" : null
1472
1465
  ].filter(Boolean).join(" ");
1473
- let D = typeof i == "function" ? i($) : i;
1474
- return /* @__PURE__ */ o.createElement(
1466
+ let D = typeof o == "function" ? o($) : o;
1467
+ return /* @__PURE__ */ i.createElement(
1475
1468
  Ne,
1476
1469
  {
1477
1470
  ...s,
@@ -1487,14 +1480,14 @@ var Ht = o.forwardRef(
1487
1480
  }
1488
1481
  );
1489
1482
  Ht.displayName = "NavLink";
1490
- var Wt = o.forwardRef(
1483
+ var Wt = i.forwardRef(
1491
1484
  ({
1492
1485
  discover: e = "render",
1493
1486
  fetcherKey: t,
1494
1487
  navigate: n,
1495
1488
  reloadDocument: a,
1496
1489
  replace: r,
1497
- state: i,
1490
+ state: o,
1498
1491
  method: c = V,
1499
1492
  action: u,
1500
1493
  onSubmit: l,
@@ -1506,19 +1499,19 @@ var Wt = o.forwardRef(
1506
1499
  let f = Jt(), w = Kt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
1507
1500
  if (l && l(y), y.defaultPrevented) return;
1508
1501
  y.preventDefault();
1509
- let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || c;
1510
- f(R || y.currentTarget, {
1502
+ let b = y.nativeEvent.submitter, x = b?.getAttribute("formmethod") || c;
1503
+ f(b || y.currentTarget, {
1511
1504
  fetcherKey: t,
1512
1505
  method: x,
1513
1506
  navigate: n,
1514
1507
  replace: r,
1515
- state: i,
1508
+ state: o,
1516
1509
  relative: s,
1517
1510
  preventScrollReset: h,
1518
1511
  viewTransition: p
1519
1512
  });
1520
1513
  };
1521
- return /* @__PURE__ */ o.createElement(
1514
+ return /* @__PURE__ */ i.createElement(
1522
1515
  "form",
1523
1516
  {
1524
1517
  ref: v,
@@ -1536,19 +1529,19 @@ function zt(e) {
1536
1529
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1537
1530
  }
1538
1531
  function Ae(e) {
1539
- let t = o.useContext(O);
1540
- return b(t, zt(e)), t;
1532
+ let t = i.useContext(O);
1533
+ return R(t, zt(e)), t;
1541
1534
  }
1542
1535
  function Vt(e, {
1543
1536
  target: t,
1544
1537
  replace: n,
1545
1538
  state: a,
1546
1539
  preventScrollReset: r,
1547
- relative: i,
1540
+ relative: o,
1548
1541
  viewTransition: c
1549
1542
  } = {}) {
1550
- let u = re(), l = N(), s = W(e, { relative: i });
1551
- return o.useCallback(
1543
+ let u = re(), l = N(), s = W(e, { relative: o });
1544
+ return i.useCallback(
1552
1545
  (h) => {
1553
1546
  if (xt(h, t)) {
1554
1547
  h.preventDefault();
@@ -1557,7 +1550,7 @@ function Vt(e, {
1557
1550
  replace: p,
1558
1551
  state: a,
1559
1552
  preventScrollReset: r,
1560
- relative: i,
1553
+ relative: o,
1561
1554
  viewTransition: c
1562
1555
  });
1563
1556
  }
@@ -1571,7 +1564,7 @@ function Vt(e, {
1571
1564
  t,
1572
1565
  e,
1573
1566
  r,
1574
- i,
1567
+ o,
1575
1568
  c
1576
1569
  ]
1577
1570
  );
@@ -1581,7 +1574,7 @@ function hn(e) {
1581
1574
  typeof URLSearchParams < "u",
1582
1575
  "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."
1583
1576
  );
1584
- let t = o.useRef(Q(e)), n = o.useRef(!1), a = N(), r = o.useMemo(
1577
+ let t = i.useRef(Q(e)), n = i.useRef(!1), a = N(), r = i.useMemo(
1585
1578
  () => (
1586
1579
  // Only merge in the defaults if we haven't yet called setSearchParams.
1587
1580
  // Once we call that we want those to take precedence, otherwise you can't
@@ -1592,14 +1585,14 @@ function hn(e) {
1592
1585
  )
1593
1586
  ),
1594
1587
  [a.search]
1595
- ), i = re(), c = o.useCallback(
1588
+ ), o = re(), c = i.useCallback(
1596
1589
  (u, l) => {
1597
1590
  const s = Q(
1598
1591
  typeof u == "function" ? u(r) : u
1599
1592
  );
1600
- n.current = !0, i("?" + s, l);
1593
+ n.current = !0, o("?" + s, l);
1601
1594
  },
1602
- [i, r]
1595
+ [o, r]
1603
1596
  );
1604
1597
  return [r, c];
1605
1598
  }
@@ -1608,16 +1601,16 @@ function Jt() {
1608
1601
  let { router: e } = Ae(
1609
1602
  "useSubmit"
1610
1603
  /* UseSubmit */
1611
- ), { basename: t } = o.useContext(T), n = ft();
1612
- return o.useCallback(
1604
+ ), { basename: t } = i.useContext(T), n = ft();
1605
+ return i.useCallback(
1613
1606
  async (a, r = {}) => {
1614
- let { action: i, method: c, encType: u, formData: l, body: s } = St(
1607
+ let { action: o, method: c, encType: u, formData: l, body: s } = St(
1615
1608
  a,
1616
1609
  t
1617
1610
  );
1618
1611
  if (r.navigate === !1) {
1619
1612
  let h = r.fetcherKey || Yt();
1620
- await e.fetch(h, n, r.action || i, {
1613
+ await e.fetch(h, n, r.action || o, {
1621
1614
  preventScrollReset: r.preventScrollReset,
1622
1615
  formData: l,
1623
1616
  body: s,
@@ -1626,7 +1619,7 @@ function Jt() {
1626
1619
  flushSync: r.flushSync
1627
1620
  });
1628
1621
  } else
1629
- await e.navigate(r.action || i, {
1622
+ await e.navigate(r.action || o, {
1630
1623
  preventScrollReset: r.preventScrollReset,
1631
1624
  formData: l,
1632
1625
  body: s,
@@ -1643,23 +1636,23 @@ function Jt() {
1643
1636
  );
1644
1637
  }
1645
1638
  function Kt(e, { relative: t } = {}) {
1646
- let { basename: n } = o.useContext(T), a = o.useContext(k);
1647
- b(a, "useFormAction must be used inside a RouteContext");
1648
- let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, c = N();
1639
+ let { basename: n } = i.useContext(T), a = i.useContext(k);
1640
+ R(a, "useFormAction must be used inside a RouteContext");
1641
+ let [r] = a.matches.slice(-1), o = { ...W(e || ".", { relative: t }) }, c = N();
1649
1642
  if (e == null) {
1650
- i.search = c.search;
1651
- let u = new URLSearchParams(i.search), l = u.getAll("index");
1643
+ o.search = c.search;
1644
+ let u = new URLSearchParams(o.search), l = u.getAll("index");
1652
1645
  if (l.some((h) => h === "")) {
1653
1646
  u.delete("index"), l.filter((p) => p).forEach((p) => u.append("index", p));
1654
1647
  let h = u.toString();
1655
- i.search = h ? `?${h}` : "";
1648
+ o.search = h ? `?${h}` : "";
1656
1649
  }
1657
1650
  }
1658
- 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);
1651
+ return (!e || e === ".") && r.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : A([n, o.pathname])), B(o);
1659
1652
  }
1660
1653
  function qt(e, t = {}) {
1661
- let n = o.useContext(J);
1662
- b(
1654
+ let n = i.useContext(J);
1655
+ R(
1663
1656
  n != null,
1664
1657
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1665
1658
  );
@@ -1669,8 +1662,8 @@ function qt(e, t = {}) {
1669
1662
  ), r = W(e, { relative: t.relative });
1670
1663
  if (!n.isTransitioning)
1671
1664
  return !1;
1672
- let i = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1673
- return H(r.pathname, c) != null || H(r.pathname, i) != null;
1665
+ let o = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1666
+ return H(r.pathname, c) != null || H(r.pathname, o) != null;
1674
1667
  }
1675
1668
  function mn({
1676
1669
  context: e,
@@ -1678,7 +1671,7 @@ function mn({
1678
1671
  hydrate: n = !0,
1679
1672
  nonce: a
1680
1673
  }) {
1681
- b(
1674
+ R(
1682
1675
  t && e,
1683
1676
  "You must provide `router` and `context` to <StaticRouterProvider>"
1684
1677
  );
@@ -1688,7 +1681,7 @@ function mn({
1688
1681
  static: !0,
1689
1682
  staticContext: e,
1690
1683
  basename: e.basename || "/"
1691
- }, i = /* @__PURE__ */ new Map(), c = "";
1684
+ }, o = /* @__PURE__ */ new Map(), c = "";
1692
1685
  if (n !== !1) {
1693
1686
  let l = {
1694
1687
  loaderData: e.loaderData,
@@ -1698,7 +1691,7 @@ function mn({
1698
1691
  c = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
1699
1692
  }
1700
1693
  let { state: u } = r.router;
1701
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(_.Provider, { value: u }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1694
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: r }, /* @__PURE__ */ i.createElement(_.Provider, { value: u }, /* @__PURE__ */ i.createElement(te.Provider, { value: o }, /* @__PURE__ */ i.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ i.createElement(
1702
1695
  Pe,
1703
1696
  {
1704
1697
  basename: r.basename,
@@ -1707,7 +1700,7 @@ function mn({
1707
1700
  navigator: r.navigator,
1708
1701
  static: r.static
1709
1702
  },
1710
- /* @__PURE__ */ o.createElement(
1703
+ /* @__PURE__ */ i.createElement(
1711
1704
  Gt,
1712
1705
  {
1713
1706
  routes: t.routes,
@@ -1715,7 +1708,7 @@ function mn({
1715
1708
  state: u
1716
1709
  }
1717
1710
  )
1718
- ))))), c ? /* @__PURE__ */ o.createElement(
1711
+ ))))), c ? /* @__PURE__ */ i.createElement(
1719
1712
  "script",
1720
1713
  {
1721
1714
  suppressHydrationWarning: !0,
@@ -1823,4 +1816,4 @@ export {
1823
1816
  on as r,
1824
1817
  N as u
1825
1818
  };
1826
- //# sourceMappingURL=chunk-BAXFHI7N-BVBOl9s0.js.map
1819
+ //# sourceMappingURL=chunk-BAXFHI7N-CFrZQ7Oh.js.map