zudoku 0.0.0-fed343e → 0.0.0-ff3751f

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 (599) hide show
  1. package/README.md +121 -0
  2. package/cli.js +2 -2
  3. package/dist/app/entry.client.js +2 -2
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +3 -0
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -0
  8. package/dist/app/main.js +12 -29
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/standalone.js.map +1 -1
  11. package/dist/cli/cli.js +1 -2
  12. package/dist/cli/cli.js.map +1 -1
  13. package/dist/cli/common/machine-id/lib.js.map +1 -1
  14. package/dist/cli/common/outdated.js.map +1 -1
  15. package/dist/cli/common/utils/box.js.map +1 -1
  16. package/dist/cli/dev/handler.js +2 -2
  17. package/dist/cli/dev/handler.js.map +1 -1
  18. package/dist/config/config.d.ts +2 -6
  19. package/dist/config/validators/InputSidebarSchema.d.ts +21 -5
  20. package/dist/config/validators/InputSidebarSchema.js +7 -28
  21. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  22. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  23. package/dist/config/validators/SidebarSchema.js +80 -44
  24. package/dist/config/validators/SidebarSchema.js.map +1 -1
  25. package/dist/config/validators/validate.d.ts +590 -311
  26. package/dist/config/validators/validate.js +42 -19
  27. package/dist/config/validators/validate.js.map +1 -1
  28. package/dist/index.d.ts +5 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  32. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  33. package/dist/lib/authentication/hook.d.ts +1 -1
  34. package/dist/lib/authentication/hook.js +1 -1
  35. package/dist/lib/authentication/hook.js.map +1 -1
  36. package/dist/lib/authentication/state.d.ts +16 -0
  37. package/dist/lib/authentication/state.js +5 -0
  38. package/dist/lib/authentication/state.js.map +1 -1
  39. package/dist/lib/components/Banner.js +7 -1
  40. package/dist/lib/components/Banner.js.map +1 -1
  41. package/dist/lib/components/ErrorPage.js +1 -2
  42. package/dist/lib/components/ErrorPage.js.map +1 -1
  43. package/dist/lib/components/Header.js +6 -1
  44. package/dist/lib/components/Header.js.map +1 -1
  45. package/dist/lib/components/Heading.d.ts +1 -1
  46. package/dist/lib/components/InlineCode.d.ts +2 -1
  47. package/dist/lib/components/InlineCode.js +9 -1
  48. package/dist/lib/components/InlineCode.js.map +1 -1
  49. package/dist/lib/components/Layout.js +1 -1
  50. package/dist/lib/components/Layout.js.map +1 -1
  51. package/dist/lib/components/MobileTopNavigation.js +5 -1
  52. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  53. package/dist/lib/components/Search.js +1 -1
  54. package/dist/lib/components/Search.js.map +1 -1
  55. package/dist/lib/components/SlotletProvider.d.ts +10 -2
  56. package/dist/lib/components/SlotletProvider.js +4 -2
  57. package/dist/lib/components/SlotletProvider.js.map +1 -1
  58. package/dist/lib/components/SyntaxHighlight.js +4 -1
  59. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  60. package/dist/lib/components/TopNavigation.d.ts +3 -0
  61. package/dist/lib/components/TopNavigation.js +38 -5
  62. package/dist/lib/components/TopNavigation.js.map +1 -1
  63. package/dist/lib/components/context/ZudokuContext.d.ts +6 -10
  64. package/dist/lib/components/context/ZudokuContext.js +26 -20
  65. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  66. package/dist/lib/components/index.d.ts +18 -8
  67. package/dist/lib/components/index.js +10 -3
  68. package/dist/lib/components/index.js.map +1 -1
  69. package/dist/lib/components/navigation/Sidebar.js +3 -3
  70. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  71. package/dist/lib/components/navigation/SidebarCategory.js +18 -9
  72. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  73. package/dist/lib/components/navigation/SidebarItem.js +12 -7
  74. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  75. package/dist/lib/components/navigation/utils.js +10 -14
  76. package/dist/lib/components/navigation/utils.js.map +1 -1
  77. package/dist/lib/core/DevPortalContext.d.ts +4 -7
  78. package/dist/lib/core/DevPortalContext.js.map +1 -1
  79. package/dist/lib/core/plugins.d.ts +1 -0
  80. package/dist/lib/core/plugins.js.map +1 -1
  81. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  82. package/dist/lib/errors/ErrorAlert.js +8 -3
  83. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  84. package/dist/lib/oas/graphql/index.d.ts +2 -1
  85. package/dist/lib/oas/graphql/index.js +24 -16
  86. package/dist/lib/oas/graphql/index.js.map +1 -1
  87. package/dist/lib/oas/parser/index.d.ts +1 -0
  88. package/dist/lib/oas/parser/index.js.map +1 -1
  89. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  90. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  91. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  92. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  93. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  94. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  95. package/dist/lib/plugins/custom-pages/index.js +11 -0
  96. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  97. package/dist/lib/plugins/markdown/MdxPage.js +2 -2
  98. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  99. package/dist/lib/plugins/markdown/index.d.ts +5 -5
  100. package/dist/lib/plugins/markdown/index.js +31 -3
  101. package/dist/lib/plugins/markdown/index.js.map +1 -1
  102. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  103. package/dist/lib/plugins/markdown/resolver.js +75 -0
  104. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  105. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
  106. package/dist/lib/plugins/openapi/Endpoint.js +46 -8
  107. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  108. package/dist/lib/plugins/openapi/OperationList.js +2 -2
  109. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  110. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  111. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  112. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
  113. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
  114. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  115. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  116. package/dist/lib/plugins/openapi/Route.d.ts +1 -1
  117. package/dist/lib/plugins/openapi/Route.js +1 -1
  118. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  119. package/dist/lib/plugins/openapi/Sidecar.js +17 -6
  120. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  121. package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
  122. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  123. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  124. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  125. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  126. package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
  127. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  128. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  129. package/dist/lib/plugins/openapi/graphql/gql.d.ts +10 -2
  130. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  131. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  132. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +29 -3
  133. package/dist/lib/plugins/openapi/graphql/graphql.js +87 -0
  134. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  135. package/dist/lib/plugins/openapi/index.js +1 -1
  136. package/dist/lib/plugins/openapi/index.js.map +1 -1
  137. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
  138. package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -1
  139. package/dist/lib/plugins/openapi/playground/Playground.js +15 -6
  140. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  141. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  142. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  143. package/dist/lib/plugins/openapi/playground/ResponseTab.js +1 -1
  144. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
  145. package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
  146. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  147. package/dist/lib/plugins/redirect/index.d.ts +2 -5
  148. package/dist/lib/plugins/redirect/index.js +1 -1
  149. package/dist/lib/plugins/redirect/index.js.map +1 -1
  150. package/dist/lib/ui/Accordion.d.ts +7 -0
  151. package/dist/lib/ui/Accordion.js +14 -0
  152. package/dist/lib/ui/Accordion.js.map +1 -0
  153. package/dist/lib/ui/Alert.d.ts +8 -0
  154. package/dist/lib/ui/Alert.js +23 -0
  155. package/dist/lib/ui/Alert.js.map +1 -0
  156. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  157. package/dist/lib/ui/AlertDialog.js +27 -0
  158. package/dist/lib/ui/AlertDialog.js.map +1 -0
  159. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  160. package/dist/lib/ui/AspectRatio.js +4 -0
  161. package/dist/lib/ui/AspectRatio.js.map +1 -0
  162. package/dist/lib/ui/Badge.d.ts +9 -0
  163. package/dist/lib/ui/Badge.js +21 -0
  164. package/dist/lib/ui/Badge.js.map +1 -0
  165. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  166. package/dist/lib/ui/Breadcrumb.js +24 -0
  167. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  168. package/dist/lib/ui/Button.d.ts +2 -3
  169. package/dist/lib/ui/Button.js +1 -1
  170. package/dist/lib/ui/Button.js.map +1 -1
  171. package/dist/lib/ui/Callout.d.ts +36 -35
  172. package/dist/lib/ui/Callout.js.map +1 -1
  173. package/dist/lib/ui/Carousel.d.ts +18 -0
  174. package/dist/lib/ui/Carousel.js +99 -0
  175. package/dist/lib/ui/Carousel.js.map +1 -0
  176. package/dist/lib/ui/Checkbox.d.ts +4 -0
  177. package/dist/lib/ui/Checkbox.js +9 -0
  178. package/dist/lib/ui/Checkbox.js.map +1 -0
  179. package/dist/lib/ui/Collapsible.d.ts +5 -0
  180. package/dist/lib/ui/Collapsible.js +6 -0
  181. package/dist/lib/ui/Collapsible.js.map +1 -0
  182. package/dist/lib/ui/Command.d.ts +80 -0
  183. package/dist/lib/ui/Command.js +31 -0
  184. package/dist/lib/ui/Command.js.map +1 -0
  185. package/dist/lib/{components → ui}/Dialog.js +2 -2
  186. package/dist/lib/ui/Dialog.js.map +1 -0
  187. package/dist/lib/ui/Drawer.d.ts +8 -10
  188. package/dist/lib/ui/Drawer.js.map +1 -1
  189. package/dist/lib/ui/Form.d.ts +23 -0
  190. package/dist/lib/ui/Form.js +63 -0
  191. package/dist/lib/ui/Form.js.map +1 -0
  192. package/dist/lib/ui/HoverCard.d.ts +6 -0
  193. package/dist/lib/ui/HoverCard.js +10 -0
  194. package/dist/lib/ui/HoverCard.js.map +1 -0
  195. package/dist/lib/ui/Label.d.ts +5 -0
  196. package/dist/lib/ui/Label.js +10 -0
  197. package/dist/lib/ui/Label.js.map +1 -0
  198. package/dist/lib/ui/Pagination.d.ts +28 -0
  199. package/dist/lib/ui/Pagination.js +24 -0
  200. package/dist/lib/ui/Pagination.js.map +1 -0
  201. package/dist/lib/ui/Popover.d.ts +6 -0
  202. package/dist/lib/ui/Popover.js +10 -0
  203. package/dist/lib/ui/Popover.js.map +1 -0
  204. package/dist/lib/ui/Progress.d.ts +4 -0
  205. package/dist/lib/ui/Progress.js +8 -0
  206. package/dist/lib/ui/Progress.js.map +1 -0
  207. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  208. package/dist/lib/ui/RadioGroup.js +15 -0
  209. package/dist/lib/ui/RadioGroup.js.map +1 -0
  210. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  211. package/dist/lib/ui/ScrollArea.js +12 -0
  212. package/dist/lib/ui/ScrollArea.js.map +1 -0
  213. package/dist/lib/ui/Select.js.map +1 -0
  214. package/dist/lib/ui/Skeleton.d.ts +2 -0
  215. package/dist/lib/ui/Skeleton.js +7 -0
  216. package/dist/lib/ui/Skeleton.js.map +1 -0
  217. package/dist/lib/ui/Slider.d.ts +4 -0
  218. package/dist/lib/ui/Slider.js +8 -0
  219. package/dist/lib/ui/Slider.js.map +1 -0
  220. package/dist/lib/ui/Switch.d.ts +4 -0
  221. package/dist/lib/ui/Switch.js +8 -0
  222. package/dist/lib/ui/Switch.js.map +1 -0
  223. package/dist/lib/ui/Textarea.d.ts +4 -0
  224. package/dist/lib/ui/Textarea.js +9 -0
  225. package/dist/lib/ui/Textarea.js.map +1 -0
  226. package/dist/lib/ui/Toggle.d.ts +12 -0
  227. package/dist/lib/ui/Toggle.js +26 -0
  228. package/dist/lib/ui/Toggle.js.map +1 -0
  229. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  230. package/dist/lib/ui/ToggleGroup.js +21 -0
  231. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  232. package/dist/lib/ui/Tooltip.d.ts +7 -0
  233. package/dist/lib/ui/Tooltip.js +11 -0
  234. package/dist/lib/ui/Tooltip.js.map +1 -0
  235. package/dist/lib/util/MdxComponents.js.map +1 -1
  236. package/dist/lib/util/invariant.d.ts +9 -0
  237. package/dist/lib/util/invariant.js +7 -3
  238. package/dist/lib/util/invariant.js.map +1 -1
  239. package/dist/lib/util/useExposedProps.d.ts +2 -0
  240. package/dist/lib/util/useExposedProps.js +9 -0
  241. package/dist/lib/util/useExposedProps.js.map +1 -0
  242. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  243. package/dist/vite/build.js +12 -3
  244. package/dist/vite/build.js.map +1 -1
  245. package/dist/vite/config.d.ts +3 -9
  246. package/dist/vite/config.js +40 -69
  247. package/dist/vite/config.js.map +1 -1
  248. package/dist/vite/debug.d.ts +1 -0
  249. package/dist/vite/debug.js +10 -0
  250. package/dist/vite/debug.js.map +1 -0
  251. package/dist/vite/dev-server.d.ts +7 -1
  252. package/dist/vite/dev-server.js +20 -16
  253. package/dist/vite/dev-server.js.map +1 -1
  254. package/dist/vite/output.d.ts +101 -0
  255. package/dist/vite/output.js +30 -0
  256. package/dist/vite/output.js.map +1 -0
  257. package/dist/vite/plugin-api.js +4 -7
  258. package/dist/vite/plugin-api.js.map +1 -1
  259. package/dist/vite/plugin-component.js +17 -8
  260. package/dist/vite/plugin-component.js.map +1 -1
  261. package/dist/vite/plugin-config-reload.js +7 -4
  262. package/dist/vite/plugin-config-reload.js.map +1 -1
  263. package/dist/vite/plugin-config.d.ts +2 -3
  264. package/dist/vite/plugin-config.js +2 -3
  265. package/dist/vite/plugin-config.js.map +1 -1
  266. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  267. package/dist/vite/plugin-custom-pages.js +30 -0
  268. package/dist/vite/plugin-custom-pages.js.map +1 -0
  269. package/dist/vite/plugin-docs.js +37 -24
  270. package/dist/vite/plugin-docs.js.map +1 -1
  271. package/dist/vite/plugin-frontmatter.d.ts +3 -0
  272. package/dist/vite/plugin-frontmatter.js +33 -0
  273. package/dist/vite/plugin-frontmatter.js.map +1 -0
  274. package/dist/vite/plugin-mdx.js +17 -0
  275. package/dist/vite/plugin-mdx.js.map +1 -1
  276. package/dist/vite/plugin-search.d.ts +3 -0
  277. package/dist/vite/plugin-search.js +26 -0
  278. package/dist/vite/plugin-search.js.map +1 -0
  279. package/dist/vite/plugin-sidebar.js +21 -7
  280. package/dist/vite/plugin-sidebar.js.map +1 -1
  281. package/dist/vite/plugin.js +7 -3
  282. package/dist/vite/plugin.js.map +1 -1
  283. package/dist/vite/prerender.d.ts +5 -1
  284. package/dist/vite/prerender.js +6 -5
  285. package/dist/vite/prerender.js.map +1 -1
  286. package/lib/{utils-ByIc_KIM.js → AnchorLink-BbB2q-jx.js} +231 -275
  287. package/lib/AnchorLink-BbB2q-jx.js.map +1 -0
  288. package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-C9BHGXlE.js} +3 -3
  289. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-C9BHGXlE.js.map} +1 -1
  290. package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-Bb9dqxD3.js} +4 -4
  291. package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
  292. package/lib/ClientOnly-CVN6leDu.js +11 -0
  293. package/lib/ClientOnly-CVN6leDu.js.map +1 -0
  294. package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-DHdLXGHA.js} +2 -2
  295. package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-DHdLXGHA.js.map} +1 -1
  296. package/lib/Dialog-k70Qfukb.js +67 -0
  297. package/lib/Dialog-k70Qfukb.js.map +1 -0
  298. package/lib/{Markdown-B4aR03g6.js → Markdown-BDcCAWwm.js} +4298 -6518
  299. package/lib/Markdown-BDcCAWwm.js.map +1 -0
  300. package/lib/{MdxPage-BZyQsH8Z.js → MdxPage-DKMH_t0f.js} +25 -23
  301. package/lib/MdxPage-DKMH_t0f.js.map +1 -0
  302. package/lib/{OperationList-2NeWEM0u.js → OperationList-Tj7ubW_t.js} +181 -137
  303. package/lib/OperationList-Tj7ubW_t.js.map +1 -0
  304. package/lib/{Route-BZPewmrN.js → Route-C3DGB6OS.js} +3 -4
  305. package/lib/Route-C3DGB6OS.js.map +1 -0
  306. package/lib/Select-Bagt3Bme.js +223 -0
  307. package/lib/Select-Bagt3Bme.js.map +1 -0
  308. package/lib/SlotletProvider-Da7eFgd2.js +241 -0
  309. package/lib/SlotletProvider-Da7eFgd2.js.map +1 -0
  310. package/lib/Spinner-C6zroowC.js +40 -0
  311. package/lib/Spinner-C6zroowC.js.map +1 -0
  312. package/lib/StaggeredRender-DDHSzQKE.js +17 -0
  313. package/lib/StaggeredRender-DDHSzQKE.js.map +1 -0
  314. package/lib/ZudokuContext-BKXGJTmu.js +1222 -0
  315. package/lib/ZudokuContext-BKXGJTmu.js.map +1 -0
  316. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  317. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  318. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  319. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  320. package/lib/assets/{worker-BvD7B6MG.js → worker-Bf8vjASY.js} +6769 -4411
  321. package/lib/assets/worker-Bf8vjASY.js.map +1 -0
  322. package/lib/cn-BmFQLtkS.js +2279 -0
  323. package/lib/cn-BmFQLtkS.js.map +1 -0
  324. package/lib/hook-sn0zMTkE.js +229 -0
  325. package/lib/hook-sn0zMTkE.js.map +1 -0
  326. package/lib/{index-Dv2KZuEw.js → index-AjWCJNGC.js} +1681 -1676
  327. package/lib/index-AjWCJNGC.js.map +1 -0
  328. package/lib/index-Bn6Lc9tq.js +9 -0
  329. package/lib/index-Bn6Lc9tq.js.map +1 -0
  330. package/lib/index-BuAyrJe3.js +46 -0
  331. package/lib/index-BuAyrJe3.js.map +1 -0
  332. package/lib/{index-BG0g4WW0.js → index-CRo94sKK.js} +750 -738
  333. package/lib/index-CRo94sKK.js.map +1 -0
  334. package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
  335. package/lib/index-CkwDvuPt.js.map +1 -0
  336. package/lib/index-LNp6rxyU.js +2094 -0
  337. package/lib/index-LNp6rxyU.js.map +1 -0
  338. package/lib/index.esm-C5mr_sKO.js +1193 -0
  339. package/lib/index.esm-C5mr_sKO.js.map +1 -0
  340. package/lib/invariant-Caa8-XvF.js +26 -0
  341. package/lib/invariant-Caa8-XvF.js.map +1 -0
  342. package/lib/router-BsfSoK2j.js +3024 -0
  343. package/lib/router-BsfSoK2j.js.map +1 -0
  344. package/lib/state-CsuHT8ZO.js +183 -0
  345. package/lib/state-CsuHT8ZO.js.map +1 -0
  346. package/lib/ui/Accordion.js +47 -0
  347. package/lib/ui/Accordion.js.map +1 -0
  348. package/lib/ui/Alert.js +51 -0
  349. package/lib/ui/Alert.js.map +1 -0
  350. package/lib/ui/AlertDialog.js +114 -0
  351. package/lib/ui/AlertDialog.js.map +1 -0
  352. package/lib/ui/AspectRatio.js +6 -0
  353. package/lib/ui/AspectRatio.js.map +1 -0
  354. package/lib/ui/Badge.js +27 -0
  355. package/lib/ui/Badge.js.map +1 -0
  356. package/lib/ui/Breadcrumb.js +94 -0
  357. package/lib/ui/Breadcrumb.js.map +1 -0
  358. package/lib/ui/Button.js +49 -0
  359. package/lib/ui/Button.js.map +1 -0
  360. package/lib/ui/Callout.js +77 -0
  361. package/lib/ui/Callout.js.map +1 -0
  362. package/lib/ui/Card.js +62 -0
  363. package/lib/ui/Card.js.map +1 -0
  364. package/lib/ui/Carousel.js +1410 -0
  365. package/lib/ui/Carousel.js.map +1 -0
  366. package/lib/ui/Checkbox.js +28 -0
  367. package/lib/ui/Checkbox.js.map +1 -0
  368. package/lib/ui/Collapsible.js +8 -0
  369. package/lib/ui/Collapsible.js.map +1 -0
  370. package/lib/ui/Command.js +550 -0
  371. package/lib/ui/Command.js.map +1 -0
  372. package/lib/ui/Dialog.js +101 -0
  373. package/lib/ui/Dialog.js.map +1 -0
  374. package/lib/ui/Drawer.js +1153 -0
  375. package/lib/ui/Drawer.js.map +1 -0
  376. package/lib/ui/DropdownMenu.js +145 -0
  377. package/lib/ui/DropdownMenu.js.map +1 -0
  378. package/lib/ui/Form.js +95 -0
  379. package/lib/ui/Form.js.map +1 -0
  380. package/lib/ui/HoverCard.js +24 -0
  381. package/lib/ui/HoverCard.js.map +1 -0
  382. package/lib/ui/Input.js +22 -0
  383. package/lib/ui/Input.js.map +1 -0
  384. package/lib/ui/Label.js +20 -0
  385. package/lib/ui/Label.js.map +1 -0
  386. package/lib/ui/Pagination.js +106 -0
  387. package/lib/ui/Pagination.js.map +1 -0
  388. package/lib/ui/Popover.js +24 -0
  389. package/lib/ui/Popover.js.map +1 -0
  390. package/lib/ui/Progress.js +27 -0
  391. package/lib/ui/Progress.js.map +1 -0
  392. package/lib/ui/RadioGroup.js +32 -0
  393. package/lib/ui/RadioGroup.js.map +1 -0
  394. package/lib/ui/ScrollArea.js +39 -0
  395. package/lib/ui/ScrollArea.js.map +1 -0
  396. package/lib/ui/Select.js +122 -0
  397. package/lib/ui/Select.js.map +1 -0
  398. package/lib/ui/Skeleton.js +18 -0
  399. package/lib/ui/Skeleton.js.map +1 -0
  400. package/lib/ui/Slider.js +24 -0
  401. package/lib/ui/Slider.js.map +1 -0
  402. package/lib/ui/Switch.js +28 -0
  403. package/lib/ui/Switch.js.map +1 -0
  404. package/lib/ui/Tabs.js +47 -0
  405. package/lib/ui/Tabs.js.map +1 -0
  406. package/lib/ui/Textarea.js +21 -0
  407. package/lib/ui/Textarea.js.map +1 -0
  408. package/lib/ui/Toggle.js +38 -0
  409. package/lib/ui/Toggle.js.map +1 -0
  410. package/lib/ui/ToggleGroup.js +42 -0
  411. package/lib/ui/ToggleGroup.js.map +1 -0
  412. package/lib/ui/Tooltip.js +24 -0
  413. package/lib/ui/Tooltip.js.map +1 -0
  414. package/lib/urql-core-KJnLL26g.js +1455 -0
  415. package/lib/urql-core-KJnLL26g.js.map +1 -0
  416. package/lib/useExposedProps-ChOIUaS4.js +9 -0
  417. package/lib/useExposedProps-ChOIUaS4.js.map +1 -0
  418. package/lib/zudoku.auth-auth0.js +1 -1
  419. package/lib/zudoku.auth-clerk.js +2 -2
  420. package/lib/zudoku.auth-openid.js +541 -534
  421. package/lib/zudoku.auth-openid.js.map +1 -1
  422. package/lib/zudoku.components.js +953 -2849
  423. package/lib/zudoku.components.js.map +1 -1
  424. package/lib/zudoku.openapi-worker.js +4668 -4380
  425. package/lib/zudoku.openapi-worker.js.map +1 -1
  426. package/lib/zudoku.plugin-api-keys.js +69 -76
  427. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  428. package/lib/zudoku.plugin-custom-pages.js +22 -0
  429. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  430. package/lib/zudoku.plugin-markdown.js +93 -24
  431. package/lib/zudoku.plugin-markdown.js.map +1 -1
  432. package/lib/zudoku.plugin-openapi.js +9 -10
  433. package/lib/zudoku.plugin-openapi.js.map +1 -1
  434. package/lib/zudoku.plugin-redirect.js +2 -2
  435. package/lib/zudoku.plugin-redirect.js.map +1 -1
  436. package/lib/zudoku.plugin-search-inkeep.js +9 -13
  437. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  438. package/package.json +98 -72
  439. package/src/app/entry.client.tsx +4 -2
  440. package/src/app/entry.server.tsx +4 -0
  441. package/src/app/main.css +4 -1
  442. package/src/app/main.tsx +15 -33
  443. package/src/app/standalone.tsx +1 -1
  444. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  445. package/src/lib/authentication/hook.ts +1 -1
  446. package/src/lib/authentication/state.ts +17 -0
  447. package/src/lib/components/Banner.tsx +12 -2
  448. package/src/lib/components/ErrorPage.tsx +0 -2
  449. package/src/lib/components/Header.tsx +21 -4
  450. package/src/lib/components/InlineCode.tsx +10 -0
  451. package/src/lib/components/Layout.tsx +2 -1
  452. package/src/lib/components/MobileTopNavigation.tsx +10 -2
  453. package/src/lib/components/Search.tsx +1 -1
  454. package/src/lib/components/SlotletProvider.tsx +29 -4
  455. package/src/lib/components/SyntaxHighlight.tsx +5 -1
  456. package/src/lib/components/TopNavigation.tsx +70 -23
  457. package/src/lib/components/context/ZudokuContext.ts +28 -20
  458. package/src/lib/components/index.ts +13 -4
  459. package/src/lib/components/navigation/Sidebar.tsx +6 -6
  460. package/src/lib/components/navigation/SidebarCategory.tsx +35 -29
  461. package/src/lib/components/navigation/SidebarItem.tsx +17 -20
  462. package/src/lib/components/navigation/utils.ts +11 -16
  463. package/src/lib/core/DevPortalContext.ts +4 -3
  464. package/src/lib/core/plugins.ts +2 -0
  465. package/src/lib/errors/ErrorAlert.tsx +18 -5
  466. package/src/lib/oas/graphql/index.ts +36 -24
  467. package/src/lib/oas/parser/index.ts +1 -0
  468. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  469. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  470. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  471. package/src/lib/plugins/markdown/MdxPage.tsx +11 -9
  472. package/src/lib/plugins/markdown/index.tsx +49 -10
  473. package/src/lib/plugins/markdown/resolver.ts +92 -0
  474. package/src/lib/plugins/openapi/Endpoint.tsx +86 -22
  475. package/src/lib/plugins/openapi/OperationList.tsx +4 -2
  476. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  477. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -0
  478. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  479. package/src/lib/plugins/openapi/Route.tsx +1 -2
  480. package/src/lib/plugins/openapi/Sidecar.tsx +21 -6
  481. package/src/lib/plugins/openapi/SimpleSelect.tsx +10 -2
  482. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
  483. package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
  484. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  485. package/src/lib/plugins/openapi/graphql/gql.ts +11 -3
  486. package/src/lib/plugins/openapi/graphql/graphql.ts +116 -4
  487. package/src/lib/plugins/openapi/index.tsx +2 -6
  488. package/src/lib/plugins/openapi/interfaces.ts +4 -1
  489. package/src/lib/plugins/openapi/playground/Playground.tsx +42 -7
  490. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  491. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -1
  492. package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
  493. package/src/lib/plugins/redirect/index.tsx +3 -7
  494. package/src/lib/ui/Accordion.tsx +56 -0
  495. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  496. package/src/lib/ui/AlertDialog.tsx +139 -0
  497. package/src/lib/ui/AspectRatio.tsx +5 -0
  498. package/src/lib/ui/Badge.tsx +36 -0
  499. package/src/lib/ui/Breadcrumb.tsx +115 -0
  500. package/src/lib/ui/Button.tsx +1 -1
  501. package/src/lib/ui/Callout.tsx +7 -6
  502. package/src/lib/ui/Carousel.tsx +260 -0
  503. package/src/lib/ui/Checkbox.tsx +28 -0
  504. package/src/lib/ui/Collapsible.tsx +9 -0
  505. package/src/lib/ui/Command.tsx +151 -0
  506. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  507. package/src/lib/ui/Drawer.tsx +38 -36
  508. package/src/lib/ui/Form.tsx +177 -0
  509. package/src/lib/ui/HoverCard.tsx +27 -0
  510. package/src/lib/ui/Label.tsx +24 -0
  511. package/src/lib/ui/Pagination.tsx +117 -0
  512. package/src/lib/ui/Popover.tsx +29 -0
  513. package/src/lib/ui/Progress.tsx +26 -0
  514. package/src/lib/ui/RadioGroup.tsx +42 -0
  515. package/src/lib/ui/ScrollArea.tsx +46 -0
  516. package/src/lib/ui/Skeleton.tsx +15 -0
  517. package/src/lib/ui/Slider.tsx +26 -0
  518. package/src/lib/ui/Switch.tsx +27 -0
  519. package/src/lib/ui/Textarea.tsx +23 -0
  520. package/src/lib/ui/Toggle.tsx +43 -0
  521. package/src/lib/ui/ToggleGroup.tsx +59 -0
  522. package/src/lib/ui/Tooltip.tsx +28 -0
  523. package/src/lib/util/MdxComponents.tsx +0 -1
  524. package/src/lib/util/invariant.ts +15 -3
  525. package/src/lib/util/useExposedProps.tsx +16 -0
  526. package/src/lib/util/useScrollToAnchor.ts +1 -1
  527. package/dist/internal.d.ts +0 -1
  528. package/dist/internal.js +0 -2
  529. package/dist/internal.js.map +0 -1
  530. package/dist/lib/components/Dialog.js.map +0 -1
  531. package/dist/lib/components/Select.js.map +0 -1
  532. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  533. package/dist/lib/plugins/custom-page/index.js +0 -12
  534. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  535. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  536. package/dist/lib/plugins/markdown/generateRoutes.js +0 -19
  537. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  538. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  539. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  540. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  541. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  542. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  543. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  544. package/dist/lib/ui/Note.d.ts +0 -8
  545. package/dist/lib/ui/Note.js +0 -23
  546. package/dist/lib/ui/Note.js.map +0 -1
  547. package/dist/lib/util/slugify.d.ts +0 -2
  548. package/dist/lib/util/slugify.js +0 -3
  549. package/dist/lib/util/slugify.js.map +0 -1
  550. package/dist/vite/plugin-icons.d.ts +0 -3
  551. package/dist/vite/plugin-icons.js +0 -47
  552. package/dist/vite/plugin-icons.js.map +0 -1
  553. package/lib/ErrorPage-knunPbKI.js +0 -18
  554. package/lib/ErrorPage-knunPbKI.js.map +0 -1
  555. package/lib/Input-BEDZAKw0.js +0 -2198
  556. package/lib/Input-BEDZAKw0.js.map +0 -1
  557. package/lib/Markdown-B4aR03g6.js.map +0 -1
  558. package/lib/MdxPage-BZyQsH8Z.js.map +0 -1
  559. package/lib/OperationList-2NeWEM0u.js.map +0 -1
  560. package/lib/Route-BZPewmrN.js.map +0 -1
  561. package/lib/SidebarBadge-COz0hgfa.js +0 -498
  562. package/lib/SidebarBadge-COz0hgfa.js.map +0 -1
  563. package/lib/SlotletProvider-DJMaOUDs.js +0 -238
  564. package/lib/SlotletProvider-DJMaOUDs.js.map +0 -1
  565. package/lib/Spinner-3cQDBVGr.js +0 -7
  566. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  567. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  568. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  569. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  570. package/lib/assets/worker-BvD7B6MG.js.map +0 -1
  571. package/lib/index-1EDgIO6b.js +0 -124
  572. package/lib/index-1EDgIO6b.js.map +0 -1
  573. package/lib/index-BG0g4WW0.js.map +0 -1
  574. package/lib/index-CLd8ycZz.js.map +0 -1
  575. package/lib/index-Dv2KZuEw.js.map +0 -1
  576. package/lib/index-Zezcv0xb.js +0 -2814
  577. package/lib/index-Zezcv0xb.js.map +0 -1
  578. package/lib/joinPath-B7kNnUX4.js +0 -8
  579. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  580. package/lib/router-D2p7Olpn.js +0 -2971
  581. package/lib/router-D2p7Olpn.js.map +0 -1
  582. package/lib/slugify-DbLhpSPt.js +0 -28
  583. package/lib/slugify-DbLhpSPt.js.map +0 -1
  584. package/lib/state-lIwt9isb.js +0 -288
  585. package/lib/state-lIwt9isb.js.map +0 -1
  586. package/lib/urql-YhcsXYy8.js +0 -1591
  587. package/lib/urql-YhcsXYy8.js.map +0 -1
  588. package/lib/utils-ByIc_KIM.js.map +0 -1
  589. package/lib/zudoku.plugin-custom-page.js +0 -13
  590. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  591. package/src/lib/plugins/custom-page/index.tsx +0 -22
  592. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -35
  593. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  594. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  595. package/src/lib/util/slugify.ts +0 -3
  596. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  597. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
  598. /package/dist/lib/{components → ui}/Select.js +0 -0
  599. /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 { b as $, L as fe } from "./index-BG0g4WW0.js";
8
- import { j as S } from "./joinPath-B7kNnUX4.js";
9
- import { c as K, u as Q } from "./ZudokuContext-cr-pTRY1.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-ByIc_KIM.js.map
705
+ //# sourceMappingURL=AnchorLink-BbB2q-jx.js.map