zudoku 0.13.6 → 0.14.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 (370) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/entry.client.js +2 -2
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +3 -0
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.d.ts +1 -0
  7. package/dist/app/main.js +7 -22
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/cli/common/machine-id/lib.js.map +1 -1
  11. package/dist/cli/common/outdated.js.map +1 -1
  12. package/dist/cli/common/utils/box.js.map +1 -1
  13. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  14. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  15. package/dist/config/validators/SidebarSchema.js +76 -39
  16. package/dist/config/validators/SidebarSchema.js.map +1 -1
  17. package/dist/config/validators/validate.d.ts +329 -264
  18. package/dist/config/validators/validate.js +11 -10
  19. package/dist/config/validators/validate.js.map +1 -1
  20. package/dist/index.d.ts +4 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/lib/components/Header.js +5 -1
  24. package/dist/lib/components/Header.js.map +1 -1
  25. package/dist/lib/components/Heading.d.ts +1 -1
  26. package/dist/lib/components/SyntaxHighlight.js +4 -1
  27. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  28. package/dist/lib/components/TopNavigation.js +30 -5
  29. package/dist/lib/components/TopNavigation.js.map +1 -1
  30. package/dist/lib/components/context/ZudokuContext.d.ts +6 -12
  31. package/dist/lib/components/context/ZudokuContext.js +26 -20
  32. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  33. package/dist/lib/components/navigation/Sidebar.js +3 -3
  34. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  35. package/dist/lib/components/navigation/SidebarCategory.js +2 -4
  36. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  37. package/dist/lib/components/navigation/SidebarItem.js +1 -3
  38. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  39. package/dist/lib/components/navigation/utils.js +10 -14
  40. package/dist/lib/components/navigation/utils.js.map +1 -1
  41. package/dist/lib/core/DevPortalContext.d.ts +3 -7
  42. package/dist/lib/core/DevPortalContext.js.map +1 -1
  43. package/dist/lib/core/plugins.d.ts +1 -0
  44. package/dist/lib/core/plugins.js.map +1 -1
  45. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  46. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  47. package/dist/lib/plugins/markdown/index.d.ts +5 -6
  48. package/dist/lib/plugins/markdown/index.js +31 -3
  49. package/dist/lib/plugins/markdown/index.js.map +1 -1
  50. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  51. package/dist/lib/plugins/markdown/resolver.js +75 -0
  52. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  53. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  54. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  55. package/dist/lib/plugins/openapi/Sidecar.js +2 -2
  56. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  57. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  58. package/dist/lib/plugins/openapi/index.js.map +1 -1
  59. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  60. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  61. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  62. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  63. package/dist/lib/ui/Accordion.d.ts +7 -0
  64. package/dist/lib/ui/Accordion.js +14 -0
  65. package/dist/lib/ui/Accordion.js.map +1 -0
  66. package/dist/lib/ui/Alert.d.ts +8 -0
  67. package/dist/lib/ui/Alert.js +23 -0
  68. package/dist/lib/ui/Alert.js.map +1 -0
  69. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  70. package/dist/lib/ui/AlertDialog.js +27 -0
  71. package/dist/lib/ui/AlertDialog.js.map +1 -0
  72. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  73. package/dist/lib/ui/AspectRatio.js +4 -0
  74. package/dist/lib/ui/AspectRatio.js.map +1 -0
  75. package/dist/lib/ui/Badge.d.ts +9 -0
  76. package/dist/lib/ui/Badge.js +21 -0
  77. package/dist/lib/ui/Badge.js.map +1 -0
  78. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  79. package/dist/lib/ui/Breadcrumb.js +24 -0
  80. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  81. package/dist/lib/ui/Button.d.ts +2 -3
  82. package/dist/lib/ui/Button.js +1 -1
  83. package/dist/lib/ui/Button.js.map +1 -1
  84. package/dist/lib/ui/Carousel.d.ts +18 -0
  85. package/dist/lib/ui/Carousel.js +99 -0
  86. package/dist/lib/ui/Carousel.js.map +1 -0
  87. package/dist/lib/ui/Checkbox.d.ts +4 -0
  88. package/dist/lib/ui/Checkbox.js +9 -0
  89. package/dist/lib/ui/Checkbox.js.map +1 -0
  90. package/dist/lib/ui/Collapsible.d.ts +5 -0
  91. package/dist/lib/ui/Collapsible.js +6 -0
  92. package/dist/lib/ui/Collapsible.js.map +1 -0
  93. package/dist/lib/{components → ui}/Dialog.js +2 -2
  94. package/dist/lib/ui/Dialog.js.map +1 -0
  95. package/dist/lib/ui/Form.d.ts +23 -0
  96. package/dist/lib/ui/Form.js +63 -0
  97. package/dist/lib/ui/Form.js.map +1 -0
  98. package/dist/lib/ui/HoverCard.d.ts +6 -0
  99. package/dist/lib/ui/HoverCard.js +10 -0
  100. package/dist/lib/ui/HoverCard.js.map +1 -0
  101. package/dist/lib/ui/Label.d.ts +5 -0
  102. package/dist/lib/ui/Label.js +10 -0
  103. package/dist/lib/ui/Label.js.map +1 -0
  104. package/dist/lib/ui/Pagination.d.ts +28 -0
  105. package/dist/lib/ui/Pagination.js +24 -0
  106. package/dist/lib/ui/Pagination.js.map +1 -0
  107. package/dist/lib/ui/Popover.d.ts +6 -0
  108. package/dist/lib/ui/Popover.js +10 -0
  109. package/dist/lib/ui/Popover.js.map +1 -0
  110. package/dist/lib/ui/Progress.d.ts +4 -0
  111. package/dist/lib/ui/Progress.js +8 -0
  112. package/dist/lib/ui/Progress.js.map +1 -0
  113. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  114. package/dist/lib/ui/RadioGroup.js +15 -0
  115. package/dist/lib/ui/RadioGroup.js.map +1 -0
  116. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  117. package/dist/lib/ui/ScrollArea.js +12 -0
  118. package/dist/lib/ui/ScrollArea.js.map +1 -0
  119. package/dist/lib/ui/Select.js.map +1 -0
  120. package/dist/lib/ui/Skeleton.d.ts +2 -0
  121. package/dist/lib/ui/Skeleton.js +7 -0
  122. package/dist/lib/ui/Skeleton.js.map +1 -0
  123. package/dist/lib/ui/Slider.d.ts +4 -0
  124. package/dist/lib/ui/Slider.js +8 -0
  125. package/dist/lib/ui/Slider.js.map +1 -0
  126. package/dist/lib/ui/Switch.d.ts +4 -0
  127. package/dist/lib/ui/Switch.js +8 -0
  128. package/dist/lib/ui/Switch.js.map +1 -0
  129. package/dist/lib/ui/Textarea.d.ts +4 -0
  130. package/dist/lib/ui/Textarea.js +9 -0
  131. package/dist/lib/ui/Textarea.js.map +1 -0
  132. package/dist/lib/ui/Toggle.d.ts +12 -0
  133. package/dist/lib/ui/Toggle.js +26 -0
  134. package/dist/lib/ui/Toggle.js.map +1 -0
  135. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  136. package/dist/lib/ui/ToggleGroup.js +21 -0
  137. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  138. package/dist/lib/ui/Tooltip.d.ts +7 -0
  139. package/dist/lib/ui/Tooltip.js +11 -0
  140. package/dist/lib/ui/Tooltip.js.map +1 -0
  141. package/dist/lib/util/MdxComponents.js.map +1 -1
  142. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  143. package/dist/vite/build.js +7 -2
  144. package/dist/vite/build.js.map +1 -1
  145. package/dist/vite/config.js +11 -6
  146. package/dist/vite/config.js.map +1 -1
  147. package/dist/vite/debug.d.ts +1 -0
  148. package/dist/vite/debug.js +10 -0
  149. package/dist/vite/debug.js.map +1 -0
  150. package/dist/vite/plugin-component.js +17 -7
  151. package/dist/vite/plugin-component.js.map +1 -1
  152. package/dist/vite/plugin-config-reload.js +0 -2
  153. package/dist/vite/plugin-config-reload.js.map +1 -1
  154. package/dist/vite/plugin-docs.js +37 -26
  155. package/dist/vite/plugin-docs.js.map +1 -1
  156. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  157. package/dist/vite/plugin-frontmatter.js +27 -24
  158. package/dist/vite/plugin-frontmatter.js.map +1 -1
  159. package/dist/vite/plugin-sidebar.js +7 -6
  160. package/dist/vite/plugin-sidebar.js.map +1 -1
  161. package/dist/vite/plugin.js +1 -1
  162. package/dist/vite/plugin.js.map +1 -1
  163. package/dist/vite/prerender.d.ts +5 -1
  164. package/dist/vite/prerender.js +6 -5
  165. package/dist/vite/prerender.js.map +1 -1
  166. package/lib/{utils-G5XSiZc9.js → AnchorLink-BbB2q-jx.js} +231 -275
  167. package/lib/AnchorLink-BbB2q-jx.js.map +1 -0
  168. package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-C9BHGXlE.js} +2 -2
  169. package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-C9BHGXlE.js.map} +1 -1
  170. package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
  171. package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
  172. package/lib/{DeveloperHint-CRiZjqd2.js → DeveloperHint-DHdLXGHA.js} +2 -2
  173. package/lib/{DeveloperHint-CRiZjqd2.js.map → DeveloperHint-DHdLXGHA.js.map} +1 -1
  174. package/lib/{Markdown-DM4zv3MA.js → Markdown-BDcCAWwm.js} +4268 -6651
  175. package/lib/Markdown-BDcCAWwm.js.map +1 -0
  176. package/lib/{MdxPage-tWI_P8wP.js → MdxPage-DKMH_t0f.js} +31 -29
  177. package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-DKMH_t0f.js.map} +1 -1
  178. package/lib/{OperationList-Cd3lue0b.js → OperationList-DnaAtLxP.js} +131 -127
  179. package/lib/OperationList-DnaAtLxP.js.map +1 -0
  180. package/lib/{Route-DI0Y0pIV.js → Route-DSbLrlig.js} +2 -2
  181. package/lib/{Route-DI0Y0pIV.js.map → Route-DSbLrlig.js.map} +1 -1
  182. package/lib/Select-Bagt3Bme.js +223 -0
  183. package/lib/Select-Bagt3Bme.js.map +1 -0
  184. package/lib/{SlotletProvider-CBqY8mp6.js → SlotletProvider-4Naek_5M.js} +4 -4
  185. package/lib/{SlotletProvider-CBqY8mp6.js.map → SlotletProvider-4Naek_5M.js.map} +1 -1
  186. package/lib/Spinner-C6zroowC.js +40 -0
  187. package/lib/Spinner-C6zroowC.js.map +1 -0
  188. package/lib/StaggeredRender-DDHSzQKE.js +17 -0
  189. package/lib/StaggeredRender-DDHSzQKE.js.map +1 -0
  190. package/lib/{ZudokuContext-DEoP3GGJ.js → ZudokuContext-BKXGJTmu.js} +460 -411
  191. package/lib/ZudokuContext-BKXGJTmu.js.map +1 -0
  192. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  193. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  194. package/lib/assets/worker-Bf8vjASY.js.map +1 -1
  195. package/lib/cn-BmFQLtkS.js +2279 -0
  196. package/lib/cn-BmFQLtkS.js.map +1 -0
  197. package/lib/hook-sn0zMTkE.js +229 -0
  198. package/lib/hook-sn0zMTkE.js.map +1 -0
  199. package/lib/{index-Bs9roz8y.js → index-B3F9d8oi.js} +1201 -1429
  200. package/lib/index-B3F9d8oi.js.map +1 -0
  201. package/lib/index-BuAyrJe3.js +46 -0
  202. package/lib/index-BuAyrJe3.js.map +1 -0
  203. package/lib/index.esm-C5mr_sKO.js +1193 -0
  204. package/lib/index.esm-C5mr_sKO.js.map +1 -0
  205. package/lib/ui/Accordion.js +47 -0
  206. package/lib/ui/Accordion.js.map +1 -0
  207. package/lib/ui/Alert.js +51 -0
  208. package/lib/ui/Alert.js.map +1 -0
  209. package/lib/ui/AlertDialog.js +114 -0
  210. package/lib/ui/AlertDialog.js.map +1 -0
  211. package/lib/ui/AspectRatio.js +6 -0
  212. package/lib/ui/AspectRatio.js.map +1 -0
  213. package/lib/ui/Badge.js +27 -0
  214. package/lib/ui/Badge.js.map +1 -0
  215. package/lib/ui/Breadcrumb.js +94 -0
  216. package/lib/ui/Breadcrumb.js.map +1 -0
  217. package/lib/ui/Button.js +49 -0
  218. package/lib/ui/Button.js.map +1 -0
  219. package/lib/ui/Callout.js +77 -0
  220. package/lib/ui/Callout.js.map +1 -0
  221. package/lib/ui/Card.js +62 -0
  222. package/lib/ui/Card.js.map +1 -0
  223. package/lib/ui/Carousel.js +1410 -0
  224. package/lib/ui/Carousel.js.map +1 -0
  225. package/lib/ui/Checkbox.js +28 -0
  226. package/lib/ui/Checkbox.js.map +1 -0
  227. package/lib/ui/Collapsible.js +8 -0
  228. package/lib/ui/Collapsible.js.map +1 -0
  229. package/lib/ui/Dialog.js +101 -0
  230. package/lib/ui/Dialog.js.map +1 -0
  231. package/lib/ui/Drawer.js +1153 -0
  232. package/lib/ui/Drawer.js.map +1 -0
  233. package/lib/ui/DropdownMenu.js +145 -0
  234. package/lib/ui/DropdownMenu.js.map +1 -0
  235. package/lib/ui/Form.js +95 -0
  236. package/lib/ui/Form.js.map +1 -0
  237. package/lib/ui/HoverCard.js +24 -0
  238. package/lib/ui/HoverCard.js.map +1 -0
  239. package/lib/ui/Input.js +22 -0
  240. package/lib/ui/Input.js.map +1 -0
  241. package/lib/ui/Label.js +20 -0
  242. package/lib/ui/Label.js.map +1 -0
  243. package/lib/ui/Pagination.js +106 -0
  244. package/lib/ui/Pagination.js.map +1 -0
  245. package/lib/ui/Popover.js +24 -0
  246. package/lib/ui/Popover.js.map +1 -0
  247. package/lib/ui/Progress.js +27 -0
  248. package/lib/ui/Progress.js.map +1 -0
  249. package/lib/ui/RadioGroup.js +32 -0
  250. package/lib/ui/RadioGroup.js.map +1 -0
  251. package/lib/ui/ScrollArea.js +39 -0
  252. package/lib/ui/ScrollArea.js.map +1 -0
  253. package/lib/ui/Select.js +122 -0
  254. package/lib/ui/Select.js.map +1 -0
  255. package/lib/ui/Skeleton.js +18 -0
  256. package/lib/ui/Skeleton.js.map +1 -0
  257. package/lib/ui/Slider.js +24 -0
  258. package/lib/ui/Slider.js.map +1 -0
  259. package/lib/ui/Switch.js +28 -0
  260. package/lib/ui/Switch.js.map +1 -0
  261. package/lib/ui/Tabs.js +47 -0
  262. package/lib/ui/Tabs.js.map +1 -0
  263. package/lib/ui/Textarea.js +21 -0
  264. package/lib/ui/Textarea.js.map +1 -0
  265. package/lib/ui/Toggle.js +38 -0
  266. package/lib/ui/Toggle.js.map +1 -0
  267. package/lib/ui/ToggleGroup.js +42 -0
  268. package/lib/ui/ToggleGroup.js.map +1 -0
  269. package/lib/ui/Tooltip.js +24 -0
  270. package/lib/ui/Tooltip.js.map +1 -0
  271. package/lib/{urql-core-KJnLL26g.js → urql-core-CqTI9H6N.js} +289 -261
  272. package/lib/urql-core-CqTI9H6N.js.map +1 -0
  273. package/lib/zudoku.auth-clerk.js +1 -1
  274. package/lib/zudoku.auth-openid.js +2 -2
  275. package/lib/zudoku.components.js +889 -2876
  276. package/lib/zudoku.components.js.map +1 -1
  277. package/lib/zudoku.openapi-worker.js +1 -1
  278. package/lib/zudoku.plugin-api-keys.js +21 -18
  279. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  280. package/lib/zudoku.plugin-custom-pages.js +14 -13
  281. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  282. package/lib/zudoku.plugin-markdown.js +93 -27
  283. package/lib/zudoku.plugin-markdown.js.map +1 -1
  284. package/lib/zudoku.plugin-openapi.js +6 -6
  285. package/package.json +30 -8
  286. package/src/app/entry.client.tsx +4 -2
  287. package/src/app/entry.server.tsx +4 -0
  288. package/src/app/main.css +4 -0
  289. package/src/app/main.tsx +10 -26
  290. package/src/app/standalone.tsx +1 -1
  291. package/src/lib/components/Header.tsx +10 -2
  292. package/src/lib/components/SyntaxHighlight.tsx +5 -1
  293. package/src/lib/components/TopNavigation.tsx +58 -24
  294. package/src/lib/components/context/ZudokuContext.ts +28 -20
  295. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  296. package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
  297. package/src/lib/components/navigation/SidebarItem.tsx +1 -3
  298. package/src/lib/components/navigation/utils.ts +11 -16
  299. package/src/lib/core/DevPortalContext.ts +3 -7
  300. package/src/lib/core/plugins.ts +2 -0
  301. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  302. package/src/lib/plugins/markdown/index.tsx +49 -12
  303. package/src/lib/plugins/markdown/resolver.ts +92 -0
  304. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  305. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  306. package/src/lib/plugins/openapi/Sidecar.tsx +3 -3
  307. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  308. package/src/lib/plugins/openapi/index.tsx +1 -1
  309. package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
  310. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  311. package/src/lib/ui/Accordion.tsx +56 -0
  312. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  313. package/src/lib/ui/AlertDialog.tsx +139 -0
  314. package/src/lib/ui/AspectRatio.tsx +5 -0
  315. package/src/lib/ui/Badge.tsx +36 -0
  316. package/src/lib/ui/Breadcrumb.tsx +115 -0
  317. package/src/lib/ui/Button.tsx +1 -1
  318. package/src/lib/ui/Carousel.tsx +260 -0
  319. package/src/lib/ui/Checkbox.tsx +28 -0
  320. package/src/lib/ui/Collapsible.tsx +9 -0
  321. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  322. package/src/lib/ui/Form.tsx +177 -0
  323. package/src/lib/ui/HoverCard.tsx +27 -0
  324. package/src/lib/ui/Label.tsx +24 -0
  325. package/src/lib/ui/Pagination.tsx +117 -0
  326. package/src/lib/ui/Popover.tsx +29 -0
  327. package/src/lib/ui/Progress.tsx +26 -0
  328. package/src/lib/ui/RadioGroup.tsx +42 -0
  329. package/src/lib/ui/ScrollArea.tsx +46 -0
  330. package/src/lib/ui/Skeleton.tsx +15 -0
  331. package/src/lib/ui/Slider.tsx +26 -0
  332. package/src/lib/ui/Switch.tsx +27 -0
  333. package/src/lib/ui/Textarea.tsx +23 -0
  334. package/src/lib/ui/Toggle.tsx +43 -0
  335. package/src/lib/ui/ToggleGroup.tsx +59 -0
  336. package/src/lib/ui/Tooltip.tsx +28 -0
  337. package/src/lib/util/MdxComponents.tsx +0 -1
  338. package/src/lib/util/useScrollToAnchor.ts +1 -1
  339. package/dist/internal.d.ts +0 -1
  340. package/dist/internal.js +0 -2
  341. package/dist/internal.js.map +0 -1
  342. package/dist/lib/components/Dialog.js.map +0 -1
  343. package/dist/lib/components/Select.js.map +0 -1
  344. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  345. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  346. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  347. package/dist/lib/ui/Note.d.ts +0 -8
  348. package/dist/lib/ui/Note.js +0 -23
  349. package/dist/lib/ui/Note.js.map +0 -1
  350. package/lib/Input-CO-1DOZa.js +0 -2229
  351. package/lib/Input-CO-1DOZa.js.map +0 -1
  352. package/lib/Markdown-DM4zv3MA.js.map +0 -1
  353. package/lib/OperationList-Cd3lue0b.js.map +0 -1
  354. package/lib/Spinner-DFQhPMBl.js +0 -505
  355. package/lib/Spinner-DFQhPMBl.js.map +0 -1
  356. package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
  357. package/lib/index-Bs9roz8y.js.map +0 -1
  358. package/lib/index-CBr6BM_4.js +0 -2867
  359. package/lib/index-CBr6BM_4.js.map +0 -1
  360. package/lib/index-UUT9q9f9.js +0 -124
  361. package/lib/index-UUT9q9f9.js.map +0 -1
  362. package/lib/joinPath-B7kNnUX4.js +0 -8
  363. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  364. package/lib/urql-core-KJnLL26g.js.map +0 -1
  365. package/lib/utils-G5XSiZc9.js.map +0 -1
  366. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  367. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  368. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
  369. /package/dist/lib/{components → ui}/Select.js +0 -0
  370. /package/src/lib/{components → ui}/Select.tsx +0 -0
@@ -1,32 +1,30 @@
1
- var ce = Object.defineProperty;
2
- var le = (e, t, r) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var T = (e, t, r) => le(e, typeof t != "symbol" ? t + "" : t, r);
4
- import h, { Component as U } from "react";
5
- import { g as q } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { j as ue } from "./jsx-runtime-B6kdoens.js";
7
- import { u as $, L as fe } from "./index-CRo94sKK.js";
8
- import { j as S } from "./joinPath-B7kNnUX4.js";
9
- import { c as K, u as Q } from "./ZudokuContext-DEoP3GGJ.js";
10
- const _ = {}, N = h.createContext(_);
11
- function de(e) {
12
- const t = h.useContext(N);
13
- return h.useMemo(
1
+ var re = Object.defineProperty;
2
+ var ne = (e, t, r) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var T = (e, t, r) => ne(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import d, { Component as L } from "react";
5
+ import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
6
+ import { j as se } from "./jsx-runtime-B6kdoens.js";
7
+ import { u as oe, L as ie } from "./index-CRo94sKK.js";
8
+ const k = {}, X = d.createContext(k);
9
+ function ae(e) {
10
+ const t = d.useContext(X);
11
+ return d.useMemo(
14
12
  function() {
15
13
  return typeof e == "function" ? e(t) : { ...t, ...e };
16
14
  },
17
15
  [t, e]
18
16
  );
19
17
  }
20
- function We(e) {
18
+ function Ke(e) {
21
19
  let t;
22
- return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
23
- N.Provider,
20
+ return e.disableParentContext ? t = typeof e.components == "function" ? e.components(k) : e.components || k : t = ae(e.components), d.createElement(
21
+ X.Provider,
24
22
  { value: t },
25
23
  e.children
26
24
  );
27
25
  }
28
- var pe = typeof Element < "u", he = typeof Map == "function", me = typeof Set == "function", ye = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
29
- function P(e, t) {
26
+ var le = typeof Element < "u", ce = typeof Map == "function", ue = typeof Set == "function", fe = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
27
+ function x(e, t) {
30
28
  if (e === t) return !0;
31
29
  if (e && t && typeof e == "object" && typeof t == "object") {
32
30
  if (e.constructor !== t.constructor) return !1;
@@ -34,25 +32,25 @@ function P(e, t) {
34
32
  if (Array.isArray(e)) {
35
33
  if (r = e.length, r != t.length) return !1;
36
34
  for (n = r; n-- !== 0; )
37
- if (!P(e[n], t[n])) return !1;
35
+ if (!x(e[n], t[n])) return !1;
38
36
  return !0;
39
37
  }
40
38
  var o;
41
- if (he && e instanceof Map && t instanceof Map) {
39
+ if (ce && e instanceof Map && t instanceof Map) {
42
40
  if (e.size !== t.size) return !1;
43
41
  for (o = e.entries(); !(n = o.next()).done; )
44
42
  if (!t.has(n.value[0])) return !1;
45
43
  for (o = e.entries(); !(n = o.next()).done; )
46
- if (!P(n.value[1], t.get(n.value[0]))) return !1;
44
+ if (!x(n.value[1], t.get(n.value[0]))) return !1;
47
45
  return !0;
48
46
  }
49
- if (me && e instanceof Set && t instanceof Set) {
47
+ if (ue && e instanceof Set && t instanceof Set) {
50
48
  if (e.size !== t.size) return !1;
51
49
  for (o = e.entries(); !(n = o.next()).done; )
52
50
  if (!t.has(n.value[0])) return !1;
53
51
  return !0;
54
52
  }
55
- if (ye && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
53
+ if (fe && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
56
54
  if (r = e.length, r != t.length) return !1;
57
55
  for (n = r; n-- !== 0; )
58
56
  if (e[n] !== t[n]) return !1;
@@ -64,46 +62,46 @@ function P(e, t) {
64
62
  if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
65
63
  for (n = r; n-- !== 0; )
66
64
  if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
67
- if (pe && e instanceof Element) return !1;
65
+ if (le && e instanceof Element) return !1;
68
66
  for (n = r; n-- !== 0; )
69
- if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !P(e[s[n]], t[s[n]]))
67
+ if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
70
68
  return !1;
71
69
  return !0;
72
70
  }
73
71
  return e !== e && t !== t;
74
72
  }
75
- var Te = function(t, r) {
73
+ var pe = function(t, r) {
76
74
  try {
77
- return P(t, r);
75
+ return x(t, r);
78
76
  } catch (n) {
79
77
  if ((n.message || "").match(/stack|recursion/i))
80
78
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
81
79
  throw n;
82
80
  }
83
81
  };
84
- const ge = /* @__PURE__ */ q(Te);
85
- var ve = function(e, t, r, n, s, o, l, i) {
82
+ const me = /* @__PURE__ */ F(pe);
83
+ var de = function(e, t, r, n, s, o, c, i) {
86
84
  if (process.env.NODE_ENV !== "production" && t === void 0)
87
85
  throw new Error("invariant requires an error message argument");
88
86
  if (!e) {
89
- var a;
87
+ var l;
90
88
  if (t === void 0)
91
- a = new Error(
89
+ l = new Error(
92
90
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
93
91
  );
94
92
  else {
95
- var c = [r, n, s, o, l, i], u = 0;
96
- a = new Error(
93
+ var a = [r, n, s, o, c, i], u = 0;
94
+ l = new Error(
97
95
  t.replace(/%s/g, function() {
98
- return c[u++];
96
+ return a[u++];
99
97
  })
100
- ), a.name = "Invariant Violation";
98
+ ), l.name = "Invariant Violation";
101
99
  }
102
- throw a.framesToPop = 1, a;
100
+ throw l.framesToPop = 1, l;
103
101
  }
104
- }, Ae = ve;
105
- const X = /* @__PURE__ */ q(Ae);
106
- var be = function(t, r, n, s) {
102
+ }, he = de;
103
+ const z = /* @__PURE__ */ F(he);
104
+ var ye = function(t, r, n, s) {
107
105
  var o = n ? n.call(s, t, r) : void 0;
108
106
  if (o !== void 0)
109
107
  return !!o;
@@ -111,21 +109,21 @@ var be = function(t, r, n, s) {
111
109
  return !0;
112
110
  if (typeof t != "object" || !t || typeof r != "object" || !r)
113
111
  return !1;
114
- var l = Object.keys(t), i = Object.keys(r);
115
- if (l.length !== i.length)
112
+ var c = Object.keys(t), i = Object.keys(r);
113
+ if (c.length !== i.length)
116
114
  return !1;
117
- for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
118
- var u = l[c];
119
- if (!a(u))
115
+ for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
116
+ var u = c[a];
117
+ if (!l(u))
120
118
  return !1;
121
- var f = t[u], m = r[u];
122
- if (o = n ? n.call(s, f, m, u) : void 0, o === !1 || o === void 0 && f !== m)
119
+ var f = t[u], h = r[u];
120
+ if (o = n ? n.call(s, f, h, u) : void 0, o === !1 || o === void 0 && f !== h)
123
121
  return !1;
124
122
  }
125
123
  return !0;
126
124
  };
127
- const Ce = /* @__PURE__ */ q(be);
128
- var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ee || {}), D = {
125
+ const Te = /* @__PURE__ */ F(ye);
126
+ var W = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(W || {}), I = {
129
127
  link: { rel: ["amphtml", "canonical", "alternate"] },
130
128
  script: { type: ["application/ld+json"] },
131
129
  meta: {
@@ -147,7 +145,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
147
145
  "twitter:site"
148
146
  ]
149
147
  }
150
- }, Z = Object.values(ee), z = {
148
+ }, N = Object.values(W), U = {
151
149
  accesskey: "accessKey",
152
150
  charset: "charSet",
153
151
  class: "className",
@@ -156,36 +154,36 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
156
154
  "http-equiv": "httpEquiv",
157
155
  itemprop: "itemProp",
158
156
  tabindex: "tabIndex"
159
- }, Ee = Object.entries(z).reduce(
157
+ }, ge = Object.entries(U).reduce(
160
158
  (e, [t, r]) => (e[r] = t, e),
161
159
  {}
162
- ), y = "data-rh", b = {
160
+ ), y = "data-rh", C = {
163
161
  DEFAULT_TITLE: "defaultTitle",
164
162
  DEFER: "defer",
165
163
  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
166
164
  ON_CHANGE_CLIENT_STATE: "onChangeClientState",
167
165
  TITLE_TEMPLATE: "titleTemplate",
168
166
  PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
169
- }, C = (e, t) => {
167
+ }, E = (e, t) => {
170
168
  for (let r = e.length - 1; r >= 0; r -= 1) {
171
169
  const n = e[r];
172
170
  if (Object.prototype.hasOwnProperty.call(n, t))
173
171
  return n[t];
174
172
  }
175
173
  return null;
176
- }, Oe = (e) => {
177
- let t = C(
174
+ }, ve = (e) => {
175
+ let t = E(
178
176
  e,
179
177
  "title"
180
178
  /* TITLE */
181
179
  );
182
- const r = C(e, b.TITLE_TEMPLATE);
180
+ const r = E(e, C.TITLE_TEMPLATE);
183
181
  if (Array.isArray(t) && (t = t.join("")), r && t)
184
182
  return r.replace(/%s/g, () => t);
185
- const n = C(e, b.DEFAULT_TITLE);
183
+ const n = E(e, C.DEFAULT_TITLE);
186
184
  return t || n || void 0;
187
- }, Se = (e) => C(e, b.ON_CHANGE_CLIENT_STATE) || (() => {
188
- }), M = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), we = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
185
+ }, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
186
+ }), $ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
189
187
  if (!r.length) {
190
188
  const s = Object.keys(n);
191
189
  for (let o = 0; o < s.length; o += 1) {
@@ -195,51 +193,51 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
195
193
  }
196
194
  }
197
195
  return r;
198
- }, []), xe = (e) => console && typeof console.warn == "function" && console.warn(e), E = (e, t, r) => {
196
+ }, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
199
197
  const n = {};
200
- return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && xe(
198
+ return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Ee(
201
199
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
202
200
  ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
203
- const l = {};
204
- o.filter((a) => {
205
- let c;
206
- const u = Object.keys(a);
207
- for (let m = 0; m < u.length; m += 1) {
208
- const d = u[m], g = d.toLowerCase();
209
- t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (c = d);
201
+ const c = {};
202
+ o.filter((l) => {
203
+ let a;
204
+ const u = Object.keys(l);
205
+ for (let h = 0; h < u.length; h += 1) {
206
+ const p = u[h], g = p.toLowerCase();
207
+ t.indexOf(g) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (a = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
210
208
  }
211
- if (!c || !a[c])
209
+ if (!a || !l[a])
212
210
  return !1;
213
- const f = a[c].toLowerCase();
214
- return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
215
- }).reverse().forEach((a) => s.push(a));
216
- const i = Object.keys(l);
217
- for (let a = 0; a < i.length; a += 1) {
218
- const c = i[a], u = {
219
- ...n[c],
220
- ...l[c]
211
+ const f = l[a].toLowerCase();
212
+ return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][f] ? !1 : (c[a][f] = !0, !0);
213
+ }).reverse().forEach((l) => s.push(l));
214
+ const i = Object.keys(c);
215
+ for (let l = 0; l < i.length; l += 1) {
216
+ const a = i[l], u = {
217
+ ...n[a],
218
+ ...c[a]
221
219
  };
222
- n[c] = u;
220
+ n[a] = u;
223
221
  }
224
222
  return s;
225
223
  }, []).reverse();
226
- }, Pe = (e, t) => {
224
+ }, be = (e, t) => {
227
225
  if (Array.isArray(e) && e.length) {
228
226
  for (let r = 0; r < e.length; r += 1)
229
227
  if (e[r][t])
230
228
  return !0;
231
229
  }
232
230
  return !1;
233
- }, ke = (e) => ({
234
- baseTag: we([
231
+ }, Oe = (e) => ({
232
+ baseTag: Ce([
235
233
  "href"
236
234
  /* HREF */
237
235
  ], e),
238
- bodyAttributes: M("bodyAttributes", e),
239
- defer: C(e, b.DEFER),
240
- encode: C(e, b.ENCODE_SPECIAL_CHARACTERS),
241
- htmlAttributes: M("htmlAttributes", e),
242
- linkTags: E(
236
+ bodyAttributes: $("bodyAttributes", e),
237
+ defer: E(e, C.DEFER),
238
+ encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
239
+ htmlAttributes: $("htmlAttributes", e),
240
+ linkTags: b(
243
241
  "link",
244
242
  [
245
243
  "rel",
@@ -248,7 +246,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
248
246
  ],
249
247
  e
250
248
  ),
251
- metaTags: E(
249
+ metaTags: b(
252
250
  "meta",
253
251
  [
254
252
  "name",
@@ -260,12 +258,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
260
258
  ],
261
259
  e
262
260
  ),
263
- noscriptTags: E("noscript", [
261
+ noscriptTags: b("noscript", [
264
262
  "innerHTML"
265
263
  /* INNER_HTML */
266
264
  ], e),
267
- onChangeClientState: Se(e),
268
- scriptTags: E(
265
+ onChangeClientState: Ae(e),
266
+ scriptTags: b(
269
267
  "script",
270
268
  [
271
269
  "src",
@@ -274,163 +272,163 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
274
272
  ],
275
273
  e
276
274
  ),
277
- styleTags: E("style", [
275
+ styleTags: b("style", [
278
276
  "cssText"
279
277
  /* CSS_TEXT */
280
278
  ], e),
281
- title: Oe(e),
282
- titleAttributes: M("titleAttributes", e),
283
- prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
284
- }), te = (e) => Array.isArray(e) ? e.join("") : e, $e = (e, t) => {
279
+ title: ve(e),
280
+ titleAttributes: $("titleAttributes", e),
281
+ prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
282
+ }), Z = (e) => Array.isArray(e) ? e.join("") : e, Se = (e, t) => {
285
283
  const r = Object.keys(e);
286
284
  for (let n = 0; n < r.length; n += 1)
287
285
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
288
286
  return !0;
289
287
  return !1;
290
- }, I = (e, t) => Array.isArray(e) ? e.reduce(
291
- (r, n) => ($e(n, t) ? r.priority.push(n) : r.default.push(n), r),
288
+ }, D = (e, t) => Array.isArray(e) ? e.reduce(
289
+ (r, n) => (Se(n, t) ? r.priority.push(n) : r.default.push(n), r),
292
290
  { priority: [], default: [] }
293
- ) : { default: e, priority: [] }, W = (e, t) => ({
291
+ ) : { default: e, priority: [] }, V = (e, t) => ({
294
292
  ...e,
295
293
  [t]: void 0
296
- }), De = [
294
+ }), we = [
297
295
  "noscript",
298
296
  "script",
299
297
  "style"
300
298
  /* STYLE */
301
- ], R = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), re = (e) => Object.keys(e).reduce((t, r) => {
299
+ ], H = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), G = (e) => Object.keys(e).reduce((t, r) => {
302
300
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
303
301
  return t ? `${t} ${n}` : n;
304
- }, ""), Me = (e, t, r, n) => {
305
- const s = re(r), o = te(t);
306
- return s ? `<${e} ${y}="true" ${s}>${R(
302
+ }, ""), xe = (e, t, r, n) => {
303
+ const s = G(r), o = Z(t);
304
+ return s ? `<${e} ${y}="true" ${s}>${H(
307
305
  o,
308
306
  n
309
- )}</${e}>` : `<${e} ${y}="true">${R(
307
+ )}</${e}>` : `<${e} ${y}="true">${H(
310
308
  o,
311
309
  n
312
310
  )}</${e}>`;
313
- }, Ie = (e, t, r = !0) => t.reduce((n, s) => {
314
- const o = s, l = Object.keys(o).filter(
315
- (c) => !(c === "innerHTML" || c === "cssText")
316
- ).reduce((c, u) => {
317
- const f = typeof o[u] > "u" ? u : `${u}="${R(o[u], r)}"`;
318
- return c ? `${c} ${f}` : f;
319
- }, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
320
- return `${n}<${e} ${y}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
321
- }, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
322
- const s = z[n];
311
+ }, Pe = (e, t, r = !0) => t.reduce((n, s) => {
312
+ const o = s, c = Object.keys(o).filter(
313
+ (a) => !(a === "innerHTML" || a === "cssText")
314
+ ).reduce((a, u) => {
315
+ const f = typeof o[u] > "u" ? u : `${u}="${H(o[u], r)}"`;
316
+ return a ? `${a} ${f}` : f;
317
+ }, ""), i = o.innerHTML || o.cssText || "", l = we.indexOf(e) === -1;
318
+ return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
319
+ }, ""), J = (e, t = {}) => Object.keys(e).reduce((r, n) => {
320
+ const s = U[n];
323
321
  return r[s || n] = e[n], r;
324
- }, t), He = (e, t, r) => {
322
+ }, t), Ie = (e, t, r) => {
325
323
  const n = {
326
324
  key: t,
327
325
  [y]: !0
328
- }, s = ne(r, n);
329
- return [h.createElement("title", s, t)];
330
- }, k = (e, t) => t.map((r, n) => {
326
+ }, s = J(r, n);
327
+ return [d.createElement("title", s, t)];
328
+ }, P = (e, t) => t.map((r, n) => {
331
329
  const s = {
332
330
  key: n,
333
331
  [y]: !0
334
332
  };
335
333
  return Object.keys(r).forEach((o) => {
336
- const i = z[o] || o;
334
+ const i = U[o] || o;
337
335
  if (i === "innerHTML" || i === "cssText") {
338
- const a = r.innerHTML || r.cssText;
339
- s.dangerouslySetInnerHTML = { __html: a };
336
+ const l = r.innerHTML || r.cssText;
337
+ s.dangerouslySetInnerHTML = { __html: l };
340
338
  } else
341
339
  s[i] = r[o];
342
- }), h.createElement(e, s);
343
- }), p = (e, t, r = !0) => {
340
+ }), d.createElement(e, s);
341
+ }), m = (e, t, r = !0) => {
344
342
  switch (e) {
345
343
  case "title":
346
344
  return {
347
- toComponent: () => He(e, t.title, t.titleAttributes),
348
- toString: () => Me(e, t.title, t.titleAttributes, r)
345
+ toComponent: () => Ie(e, t.title, t.titleAttributes),
346
+ toString: () => xe(e, t.title, t.titleAttributes, r)
349
347
  };
350
348
  case "bodyAttributes":
351
349
  case "htmlAttributes":
352
350
  return {
353
- toComponent: () => ne(t),
354
- toString: () => re(t)
351
+ toComponent: () => J(t),
352
+ toString: () => G(t)
355
353
  };
356
354
  default:
357
355
  return {
358
- toComponent: () => k(e, t),
359
- toString: () => Ie(e, t, r)
356
+ toComponent: () => P(e, t),
357
+ toString: () => Pe(e, t, r)
360
358
  };
361
359
  }
362
- }, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
363
- const s = I(e, D.meta), o = I(t, D.link), l = I(r, D.script);
360
+ }, $e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
361
+ const s = D(e, I.meta), o = D(t, I.link), c = D(r, I.script);
364
362
  return {
365
363
  priorityMethods: {
366
364
  toComponent: () => [
367
- ...k("meta", s.priority),
368
- ...k("link", o.priority),
369
- ...k("script", l.priority)
365
+ ...P("meta", s.priority),
366
+ ...P("link", o.priority),
367
+ ...P("script", c.priority)
370
368
  ],
371
369
  toString: () => (
372
370
  // generate all the tags as strings and concatenate them
373
- `${p("meta", s.priority, n)} ${p(
371
+ `${m("meta", s.priority, n)} ${m(
374
372
  "link",
375
373
  o.priority,
376
374
  n
377
- )} ${p("script", l.priority, n)}`
375
+ )} ${m("script", c.priority, n)}`
378
376
  )
379
377
  },
380
378
  metaTags: s.default,
381
379
  linkTags: o.default,
382
- scriptTags: l.default
380
+ scriptTags: c.default
383
381
  };
384
- }, Re = (e) => {
382
+ }, De = (e) => {
385
383
  const {
386
384
  baseTag: t,
387
385
  bodyAttributes: r,
388
386
  encode: n = !0,
389
387
  htmlAttributes: s,
390
388
  noscriptTags: o,
391
- styleTags: l,
389
+ styleTags: c,
392
390
  title: i = "",
393
- titleAttributes: a,
394
- prioritizeSeoTags: c
391
+ titleAttributes: l,
392
+ prioritizeSeoTags: a
395
393
  } = e;
396
- let { linkTags: u, metaTags: f, scriptTags: m } = e, d = {
394
+ let { linkTags: u, metaTags: f, scriptTags: h } = e, p = {
397
395
  toComponent: () => {
398
396
  },
399
397
  toString: () => ""
400
398
  };
401
- return c && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
402
- priority: d,
403
- base: p("base", t, n),
404
- bodyAttributes: p("bodyAttributes", r, n),
405
- htmlAttributes: p("htmlAttributes", s, n),
406
- link: p("link", u, n),
407
- meta: p("meta", f, n),
408
- noscript: p("noscript", o, n),
409
- script: p("script", m, n),
410
- style: p("style", l, n),
411
- title: p("title", { title: i, titleAttributes: a }, n)
399
+ return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = $e(e)), {
400
+ priority: p,
401
+ base: m("base", t, n),
402
+ bodyAttributes: m("bodyAttributes", r, n),
403
+ htmlAttributes: m("htmlAttributes", s, n),
404
+ link: m("link", u, n),
405
+ meta: m("meta", f, n),
406
+ noscript: m("noscript", o, n),
407
+ script: m("script", h, n),
408
+ style: m("style", c, n),
409
+ title: m("title", { title: i, titleAttributes: l }, n)
412
410
  };
413
- }, j = Re, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
411
+ }, _ = De, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
414
412
  constructor(e, t) {
415
413
  T(this, "instances", []);
416
- T(this, "canUseDOM", se);
414
+ T(this, "canUseDOM", Q);
417
415
  T(this, "context");
418
416
  T(this, "value", {
419
417
  setHelmet: (e) => {
420
418
  this.context.helmet = e;
421
419
  },
422
420
  helmetInstances: {
423
- get: () => this.canUseDOM ? x : this.instances,
421
+ get: () => this.canUseDOM ? w : this.instances,
424
422
  add: (e) => {
425
- (this.canUseDOM ? x : this.instances).push(e);
423
+ (this.canUseDOM ? w : this.instances).push(e);
426
424
  },
427
425
  remove: (e) => {
428
- const t = (this.canUseDOM ? x : this.instances).indexOf(e);
429
- (this.canUseDOM ? x : this.instances).splice(t, 1);
426
+ const t = (this.canUseDOM ? w : this.instances).indexOf(e);
427
+ (this.canUseDOM ? w : this.instances).splice(t, 1);
430
428
  }
431
429
  }
432
430
  });
433
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
431
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
434
432
  baseTag: [],
435
433
  bodyAttributes: {},
436
434
  encodeSpecialCharacters: !0,
@@ -444,97 +442,97 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
444
442
  titleAttributes: {}
445
443
  }));
446
444
  }
447
- }, je = {}, oe = h.createContext(je), v, Le = (v = class extends U {
445
+ }, Me = {}, ee = d.createContext(Me), v, ke = (v = class extends L {
448
446
  constructor(r) {
449
447
  super(r);
450
448
  T(this, "helmetData");
451
- this.helmetData = new L(this.props.context || {}, v.canUseDOM);
449
+ this.helmetData = new R(this.props.context || {}, v.canUseDOM);
452
450
  }
453
451
  render() {
454
- return /* @__PURE__ */ h.createElement(oe.Provider, { value: this.helmetData.value }, this.props.children);
452
+ return /* @__PURE__ */ d.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
455
453
  }
456
- }, T(v, "canUseDOM", se), v), A = (e, t) => {
454
+ }, T(v, "canUseDOM", Q), v), A = (e, t) => {
457
455
  const r = document.head || document.querySelector(
458
456
  "head"
459
457
  /* HEAD */
460
458
  ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
461
- let l;
459
+ let c;
462
460
  return t && t.length && t.forEach((i) => {
463
- const a = document.createElement(e);
464
- for (const c in i)
465
- if (Object.prototype.hasOwnProperty.call(i, c))
466
- if (c === "innerHTML")
467
- a.innerHTML = i.innerHTML;
468
- else if (c === "cssText")
469
- a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
461
+ const l = document.createElement(e);
462
+ for (const a in i)
463
+ if (Object.prototype.hasOwnProperty.call(i, a))
464
+ if (a === "innerHTML")
465
+ l.innerHTML = i.innerHTML;
466
+ else if (a === "cssText")
467
+ l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
470
468
  else {
471
- const u = c, f = typeof i[u] > "u" ? "" : i[u];
472
- a.setAttribute(c, f);
469
+ const u = a, f = typeof i[u] > "u" ? "" : i[u];
470
+ l.setAttribute(a, f);
473
471
  }
474
- a.setAttribute(y, "true"), s.some((c, u) => (l = u, a.isEqualNode(c))) ? s.splice(l, 1) : o.push(a);
472
+ l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
475
473
  }), s.forEach((i) => {
476
- var a;
477
- return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
474
+ var l;
475
+ return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
478
476
  }), o.forEach((i) => r.appendChild(i)), {
479
477
  oldTags: s,
480
478
  newTags: o
481
479
  };
482
- }, F = (e, t) => {
480
+ }, j = (e, t) => {
483
481
  const r = document.getElementsByTagName(e)[0];
484
482
  if (!r)
485
483
  return;
486
- const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], l = Object.keys(t);
487
- for (const i of l) {
488
- const a = t[i] || "";
489
- r.getAttribute(i) !== a && r.setAttribute(i, a), s.indexOf(i) === -1 && s.push(i);
490
- const c = o.indexOf(i);
491
- c !== -1 && o.splice(c, 1);
484
+ const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
485
+ for (const i of c) {
486
+ const l = t[i] || "";
487
+ r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
488
+ const a = o.indexOf(i);
489
+ a !== -1 && o.splice(a, 1);
492
490
  }
493
491
  for (let i = o.length - 1; i >= 0; i -= 1)
494
492
  r.removeAttribute(o[i]);
495
- s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== l.join(",") && r.setAttribute(y, l.join(","));
496
- }, Fe = (e, t) => {
497
- typeof e < "u" && document.title !== e && (document.title = te(e)), F("title", t);
498
- }, G = (e, t) => {
493
+ s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
494
+ }, He = (e, t) => {
495
+ typeof e < "u" && document.title !== e && (document.title = Z(e)), j("title", t);
496
+ }, Y = (e, t) => {
499
497
  const {
500
498
  baseTag: r,
501
499
  bodyAttributes: n,
502
500
  htmlAttributes: s,
503
501
  linkTags: o,
504
- metaTags: l,
502
+ metaTags: c,
505
503
  noscriptTags: i,
506
- onChangeClientState: a,
507
- scriptTags: c,
504
+ onChangeClientState: l,
505
+ scriptTags: a,
508
506
  styleTags: u,
509
507
  title: f,
510
- titleAttributes: m
508
+ titleAttributes: h
511
509
  } = e;
512
- F("body", n), F("html", s), Fe(f, m);
513
- const d = {
510
+ j("body", n), j("html", s), He(f, h);
511
+ const p = {
514
512
  baseTag: A("base", r),
515
513
  linkTags: A("link", o),
516
- metaTags: A("meta", l),
514
+ metaTags: A("meta", c),
517
515
  noscriptTags: A("noscript", i),
518
- scriptTags: A("script", c),
516
+ scriptTags: A("script", a),
519
517
  styleTags: A("style", u)
520
- }, g = {}, Y = {};
521
- Object.keys(d).forEach((w) => {
522
- const { newTags: B, oldTags: ae } = d[w];
523
- B.length && (g[w] = B), ae.length && (Y[w] = d[w].oldTags);
524
- }), t && t(), a(e, g, Y);
525
- }, O = null, Ue = (e) => {
518
+ }, g = {}, q = {};
519
+ Object.keys(p).forEach((S) => {
520
+ const { newTags: K, oldTags: te } = p[S];
521
+ K.length && (g[S] = K), te.length && (q[S] = p[S].oldTags);
522
+ }), t && t(), l(e, g, q);
523
+ }, O = null, _e = (e) => {
526
524
  O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
527
- G(e, () => {
525
+ Y(e, () => {
528
526
  O = null;
529
527
  });
530
- }) : (G(e), O = null);
531
- }, qe = Ue, J = class extends U {
528
+ }) : (Y(e), O = null);
529
+ }, Re = _e, B = class extends L {
532
530
  constructor() {
533
531
  super(...arguments);
534
532
  T(this, "rendered", !1);
535
533
  }
536
534
  shouldComponentUpdate(t) {
537
- return !Ce(t, this.props);
535
+ return !Te(t, this.props);
538
536
  }
539
537
  componentDidUpdate() {
540
538
  this.emitChange();
@@ -546,13 +544,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
546
544
  emitChange() {
547
545
  const { helmetInstances: t, setHelmet: r } = this.props.context;
548
546
  let n = null;
549
- const s = ke(
547
+ const s = Oe(
550
548
  t.get().map((o) => {
551
- const l = { ...o.props };
552
- return delete l.context, l;
549
+ const c = { ...o.props };
550
+ return delete c.context, c;
553
551
  })
554
552
  );
555
- Le.canUseDOM ? qe(s) : j && (n = j(s)), r(n);
553
+ ke.canUseDOM ? Re(s) : _ && (n = _(s)), r(n);
556
554
  }
557
555
  // componentWillMount will be deprecated
558
556
  // for SSR, initialize on first render
@@ -567,9 +565,9 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
567
565
  render() {
568
566
  return this.init(), null;
569
567
  }
570
- }, H, Ge = (H = class extends U {
568
+ }, M, ze = (M = class extends L {
571
569
  shouldComponentUpdate(e) {
572
- return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
570
+ return !me(V(this.props, "helmetData"), V(e, "helmetData"));
573
571
  }
574
572
  mapNestedChildrenToProps(e, t) {
575
573
  if (!t)
@@ -637,22 +635,22 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
637
635
  }), r;
638
636
  }
639
637
  warnOnInvalidChildren(e, t) {
640
- return X(
641
- Z.some((r) => e.type === r),
642
- typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${Z.join(
638
+ return z(
639
+ N.some((r) => e.type === r),
640
+ typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${N.join(
643
641
  ", "
644
642
  )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
645
- ), X(
643
+ ), z(
646
644
  !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
647
645
  `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
648
646
  ), !0;
649
647
  }
650
648
  mapChildrenToProps(e, t) {
651
649
  let r = {};
652
- return h.Children.forEach(e, (n) => {
650
+ return d.Children.forEach(e, (n) => {
653
651
  if (!n || !n.props)
654
652
  return;
655
- const { children: s, ...o } = n.props, l = Object.keys(o).reduce((a, c) => (a[Ee[c] || c] = o[c], a), {});
653
+ const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[ge[a] || a] = o[a], l), {});
656
654
  let { type: i } = n;
657
655
  switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
658
656
  case "Symbol(react.fragment)":
@@ -666,12 +664,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
666
664
  r = this.flattenArrayTypeChildren(
667
665
  n,
668
666
  r,
669
- l,
667
+ c,
670
668
  s
671
669
  );
672
670
  break;
673
671
  default:
674
- t = this.mapObjectTypeChildren(n, t, l, s);
672
+ t = this.mapObjectTypeChildren(n, t, c, s);
675
673
  break;
676
674
  }
677
675
  }), this.mapArrayTypeChildrenToProps(r, t);
@@ -679,71 +677,29 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
679
677
  render() {
680
678
  const { children: e, ...t } = this.props;
681
679
  let r = { ...t }, { helmetData: n } = t;
682
- if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof L)) {
680
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof R)) {
683
681
  const s = n;
684
- n = new L(s.context, !0), delete r.helmetData;
682
+ n = new R(s.context, !0), delete r.helmetData;
685
683
  }
686
- return n ? /* @__PURE__ */ h.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ h.createElement(oe.Consumer, null, (s) => /* @__PURE__ */ h.createElement(J, { ...r, context: s }));
684
+ return n ? /* @__PURE__ */ d.createElement(B, { ...r, context: n.value }) : /* @__PURE__ */ d.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ d.createElement(B, { ...r, context: s }));
687
685
  }
688
- }, T(H, "defaultProps", {
686
+ }, T(M, "defaultProps", {
689
687
  defer: !0,
690
688
  encodeSpecialCharacters: !0,
691
689
  prioritizeSeoTags: !1
692
- }), H);
693
- const Je = (e) => {
694
- const t = $(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
690
+ }), M);
691
+ const Ne = (e) => {
692
+ const t = oe(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
695
693
  var o;
696
694
  !(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
697
695
  };
698
- return /* @__PURE__ */ ue.jsx(fe, { onClick: n, ...e });
699
- }, ie = (e, t) => {
700
- for (const r of e) {
701
- const n = V(r, t);
702
- if (n !== void 0) return n;
703
- }
704
- }, V = (e, t, r = []) => {
705
- const n = t(e, r);
706
- if (n !== void 0) return n;
707
- if (e.type === "category")
708
- for (const s of e.items) {
709
- const o = V(s, t, [
710
- ...r,
711
- e
712
- ]);
713
- if (o !== void 0) return o;
714
- }
715
- }, Qe = () => {
716
- const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
717
- return ie(n, (s) => {
718
- if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
719
- return s;
720
- });
721
- }, Ne = (e) => {
722
- const t = $(), r = K();
723
- return V(e, (n) => {
724
- if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
725
- return !0;
726
- });
727
- }, et = () => {
728
- const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
729
- let s, o, l = !1;
730
- return ie(n, (i) => {
731
- const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
732
- if (a) {
733
- if (l)
734
- return o = { label: i.label, id: a }, !0;
735
- e === a ? l = !0 : s = { label: i.label, id: a };
736
- }
737
- }), { prev: s, next: o };
696
+ return /* @__PURE__ */ se.jsx(ie, { onClick: n, ...e });
738
697
  };
739
698
  export {
740
- Je as A,
741
- Ge as H,
742
- We as M,
743
- et as a,
744
- de as b,
745
- Le as c,
746
- Ne as d,
747
- Qe as u
699
+ Ne as A,
700
+ ze as H,
701
+ Ke as M,
702
+ ke as a,
703
+ ae as u
748
704
  };
749
- //# sourceMappingURL=utils-G5XSiZc9.js.map
705
+ //# sourceMappingURL=AnchorLink-BbB2q-jx.js.map