zudoku 0.0.0-efc6acf → 0.0.0-efe3cd16

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 (2156) hide show
  1. package/README.md +34 -14
  2. package/cli.js +12 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +23 -10
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -2
  9. package/dist/app/entry.client.js +56 -7
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -8
  12. package/dist/app/entry.server.js +23 -18
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +4 -2
  18. package/dist/app/main.js +58 -68
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +12 -11
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +18 -2
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +20 -6
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/analytics/lib.js +1 -1
  40. package/dist/cli/common/analytics/lib.js.map +1 -1
  41. package/dist/cli/common/logger.js +8 -0
  42. package/dist/cli/common/logger.js.map +1 -1
  43. package/dist/cli/common/machine-id/lib.js +3 -1
  44. package/dist/cli/common/machine-id/lib.js.map +1 -1
  45. package/dist/cli/common/outdated.js +4 -2
  46. package/dist/cli/common/outdated.js.map +1 -1
  47. package/dist/cli/common/output.js +2 -3
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/box.js +2 -2
  50. package/dist/cli/common/utils/box.js.map +1 -1
  51. package/dist/cli/common/utils/ports.d.ts +1 -1
  52. package/dist/cli/common/utils/ports.js +16 -15
  53. package/dist/cli/common/utils/ports.js.map +1 -1
  54. package/dist/cli/common/validators/lib.js +1 -1
  55. package/dist/cli/common/validators/lib.js.map +1 -1
  56. package/dist/cli/dev/handler.d.ts +1 -0
  57. package/dist/cli/dev/handler.js +14 -15
  58. package/dist/cli/dev/handler.js.map +1 -1
  59. package/dist/cli/preview/handler.d.ts +3 -0
  60. package/dist/cli/preview/handler.js +35 -0
  61. package/dist/cli/preview/handler.js.map +1 -0
  62. package/dist/codegen.d.ts +3 -0
  63. package/dist/codegen.js +45 -0
  64. package/dist/codegen.js.map +1 -0
  65. package/dist/config/config.d.ts +29 -13
  66. package/dist/config/file-exists.d.ts +1 -0
  67. package/dist/config/file-exists.js +5 -0
  68. package/dist/config/file-exists.js.map +1 -0
  69. package/dist/config/loader.d.ts +21 -0
  70. package/dist/config/loader.js +141 -0
  71. package/dist/config/loader.js.map +1 -0
  72. package/dist/config/validators/BuildSchema.d.ts +36 -0
  73. package/dist/config/validators/BuildSchema.js +25 -0
  74. package/dist/config/validators/BuildSchema.js.map +1 -0
  75. package/dist/config/validators/InputNavigationSchema.d.ts +7486 -0
  76. package/dist/config/validators/InputNavigationSchema.js +77 -0
  77. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  78. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  79. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  80. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  81. package/dist/config/validators/NavigationSchema.js +98 -0
  82. package/dist/config/validators/NavigationSchema.js.map +1 -0
  83. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  84. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  85. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  86. package/dist/config/validators/auth.d.ts +2 -2
  87. package/dist/config/validators/auth.js +1 -1
  88. package/dist/config/validators/auth.js.map +1 -1
  89. package/dist/config/validators/icon-types.d.ts +2 -0
  90. package/dist/config/validators/icon-types.js +1834 -0
  91. package/dist/config/validators/icon-types.js.map +1 -0
  92. package/dist/config/validators/validate.d.ts +667 -1417
  93. package/dist/config/validators/validate.js +358 -136
  94. package/dist/config/validators/validate.js.map +1 -1
  95. package/dist/config/validators/validate.test.js +140 -0
  96. package/dist/config/validators/validate.test.js.map +1 -0
  97. package/dist/flat-config.d.ts +331 -0
  98. package/dist/index.d.ts +11 -3
  99. package/dist/index.js +6 -1
  100. package/dist/index.js.map +1 -1
  101. package/dist/lib/MissingIcon.d.ts +2 -0
  102. package/dist/lib/MissingIcon.js +7 -0
  103. package/dist/lib/MissingIcon.js.map +1 -0
  104. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  105. package/dist/lib/assets/language-icons/csharp.js +4 -0
  106. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  107. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  108. package/dist/lib/assets/language-icons/css.js +4 -0
  109. package/dist/lib/assets/language-icons/css.js.map +1 -0
  110. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  111. package/dist/lib/assets/language-icons/go.js +4 -0
  112. package/dist/lib/assets/language-icons/go.js.map +1 -0
  113. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  114. package/dist/lib/assets/language-icons/graphql.js +4 -0
  115. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  116. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  117. package/dist/lib/assets/language-icons/html.js +4 -0
  118. package/dist/lib/assets/language-icons/html.js.map +1 -0
  119. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  120. package/dist/lib/assets/language-icons/java.js +4 -0
  121. package/dist/lib/assets/language-icons/java.js.map +1 -0
  122. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  123. package/dist/lib/assets/language-icons/javascript.js +4 -0
  124. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  125. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  126. package/dist/lib/assets/language-icons/json.js +4 -0
  127. package/dist/lib/assets/language-icons/json.js.map +1 -0
  128. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  129. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  130. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  131. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  132. package/dist/lib/assets/language-icons/markdown.js +4 -0
  133. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  134. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  135. package/dist/lib/assets/language-icons/mdx.js +4 -0
  136. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  137. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  138. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  139. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  140. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  141. package/dist/lib/assets/language-icons/php.js +4 -0
  142. package/dist/lib/assets/language-icons/php.js.map +1 -0
  143. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  144. package/dist/lib/assets/language-icons/python.js +4 -0
  145. package/dist/lib/assets/language-icons/python.js.map +1 -0
  146. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  147. package/dist/lib/assets/language-icons/react.js +4 -0
  148. package/dist/lib/assets/language-icons/react.js.map +1 -0
  149. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  150. package/dist/lib/assets/language-icons/ruby.js +4 -0
  151. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  152. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  153. package/dist/lib/assets/language-icons/rust.js +4 -0
  154. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  155. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  156. package/dist/lib/assets/language-icons/shell.js +4 -0
  157. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  158. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  159. package/dist/lib/assets/language-icons/swift.js +4 -0
  160. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  161. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  162. package/dist/lib/assets/language-icons/toml.js +4 -0
  163. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  164. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  165. package/dist/lib/assets/language-icons/typescript.js +4 -0
  166. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  167. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  168. package/dist/lib/assets/language-icons/xml.js +4 -0
  169. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  170. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  171. package/dist/lib/assets/language-icons/yaml.js +4 -0
  172. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  173. package/dist/lib/auth/issuer.d.ts +2 -0
  174. package/dist/lib/auth/issuer.js +37 -0
  175. package/dist/lib/auth/issuer.js.map +1 -0
  176. package/dist/lib/auth/issuer.test.js +95 -0
  177. package/dist/lib/auth/issuer.test.js.map +1 -0
  178. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  179. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  180. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  181. package/dist/lib/authentication/authentication.d.ts +6 -7
  182. package/dist/lib/authentication/components/CallbackHandler.js +27 -31
  183. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  184. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  185. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  186. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  187. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  188. package/dist/lib/authentication/components/SignIn.js +6 -2
  189. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  190. package/dist/lib/authentication/components/SignOut.js +2 -2
  191. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  192. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  193. package/dist/lib/authentication/components/SignUp.js +4 -1
  194. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  195. package/dist/lib/authentication/errors.d.ts +6 -12
  196. package/dist/lib/authentication/errors.js +2 -1
  197. package/dist/lib/authentication/errors.js.map +1 -1
  198. package/dist/lib/authentication/hook.d.ts +13 -4
  199. package/dist/lib/authentication/hook.js +12 -4
  200. package/dist/lib/authentication/hook.js.map +1 -1
  201. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  202. package/dist/lib/authentication/providers/auth0.js +16 -14
  203. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  204. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  205. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  206. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  207. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  208. package/dist/lib/authentication/providers/clerk.js +111 -49
  209. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  210. package/dist/lib/authentication/providers/openid.d.ts +26 -21
  211. package/dist/lib/authentication/providers/openid.js +112 -73
  212. package/dist/lib/authentication/providers/openid.js.map +1 -1
  213. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  214. package/dist/lib/authentication/providers/supabase.js +109 -0
  215. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  216. package/dist/lib/authentication/state.d.ts +24 -19
  217. package/dist/lib/authentication/state.js +47 -7
  218. package/dist/lib/authentication/state.js.map +1 -1
  219. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  220. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  221. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  222. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  223. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  224. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  225. package/dist/lib/components/AnchorLink.d.ts +2 -2
  226. package/dist/lib/components/AnchorLink.js +9 -5
  227. package/dist/lib/components/AnchorLink.js.map +1 -1
  228. package/dist/lib/components/Autocomplete.d.ts +13 -0
  229. package/dist/lib/components/Autocomplete.js +47 -0
  230. package/dist/lib/components/Autocomplete.js.map +1 -0
  231. package/dist/lib/components/Banner.js +2 -2
  232. package/dist/lib/components/Banner.js.map +1 -1
  233. package/dist/lib/components/Bootstrap.d.ts +5 -3
  234. package/dist/lib/components/Bootstrap.js +13 -6
  235. package/dist/lib/components/Bootstrap.js.map +1 -1
  236. package/dist/lib/components/BuildCheck.d.ts +5 -0
  237. package/dist/lib/components/BuildCheck.js +45 -0
  238. package/dist/lib/components/BuildCheck.js.map +1 -0
  239. package/dist/lib/components/CategoryHeading.js +1 -1
  240. package/dist/lib/components/CategoryHeading.js.map +1 -1
  241. package/dist/lib/components/ClientOnly.d.ts +4 -2
  242. package/dist/lib/components/ClientOnly.js +1 -1
  243. package/dist/lib/components/ClientOnly.js.map +1 -1
  244. package/dist/lib/components/DeveloperHint.js +2 -1
  245. package/dist/lib/components/DeveloperHint.js.map +1 -1
  246. package/dist/lib/components/ErrorPage.js +2 -2
  247. package/dist/lib/components/ErrorPage.js.map +1 -1
  248. package/dist/lib/components/Footer.d.ts +1 -0
  249. package/dist/lib/components/Footer.js +32 -0
  250. package/dist/lib/components/Footer.js.map +1 -0
  251. package/dist/lib/components/Framed.d.ts +7 -0
  252. package/dist/lib/components/Framed.js +26 -0
  253. package/dist/lib/components/Framed.js.map +1 -0
  254. package/dist/lib/components/Header.js +32 -14
  255. package/dist/lib/components/Header.js.map +1 -1
  256. package/dist/lib/components/Heading.d.ts +10 -6
  257. package/dist/lib/components/Heading.js +8 -3
  258. package/dist/lib/components/Heading.js.map +1 -1
  259. package/dist/lib/components/InlineCode.d.ts +2 -1
  260. package/dist/lib/components/InlineCode.js +2 -9
  261. package/dist/lib/components/InlineCode.js.map +1 -1
  262. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  263. package/dist/lib/components/LanguageIcon.js +118 -0
  264. package/dist/lib/components/LanguageIcon.js.map +1 -0
  265. package/dist/lib/components/Layout.js +10 -24
  266. package/dist/lib/components/Layout.js.map +1 -1
  267. package/dist/lib/components/Main.d.ts +2 -0
  268. package/dist/lib/components/Main.js +18 -0
  269. package/dist/lib/components/Main.js.map +1 -0
  270. package/dist/lib/components/Markdown.d.ts +4 -3
  271. package/dist/lib/components/Markdown.js +14 -14
  272. package/dist/lib/components/Markdown.js.map +1 -1
  273. package/dist/lib/components/Meta.d.ts +2 -0
  274. package/dist/lib/components/Meta.js +11 -0
  275. package/dist/lib/components/Meta.js.map +1 -0
  276. package/dist/lib/components/MobileTopNavigation.js +19 -7
  277. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  278. package/dist/lib/components/NotFoundPage.js +3 -3
  279. package/dist/lib/components/NotFoundPage.js.map +1 -1
  280. package/dist/lib/components/PageProgress.d.ts +1 -0
  281. package/dist/lib/components/PageProgress.js +20 -0
  282. package/dist/lib/components/PageProgress.js.map +1 -0
  283. package/dist/lib/components/Pagination.d.ts +11 -0
  284. package/dist/lib/components/Pagination.js +10 -0
  285. package/dist/lib/components/Pagination.js.map +1 -0
  286. package/dist/lib/components/PathRenderer.d.ts +11 -0
  287. package/dist/lib/components/PathRenderer.js +28 -0
  288. package/dist/lib/components/PathRenderer.js.map +1 -0
  289. package/dist/lib/components/Search.d.ts +3 -1
  290. package/dist/lib/components/Search.js +10 -4
  291. package/dist/lib/components/Search.js.map +1 -1
  292. package/dist/lib/components/Slot.d.ts +17 -0
  293. package/dist/lib/components/Slot.js +24 -0
  294. package/dist/lib/components/Slot.js.map +1 -0
  295. package/dist/lib/components/Slot.test.d.ts +1 -0
  296. package/dist/lib/components/Slot.test.js +172 -0
  297. package/dist/lib/components/Slot.test.js.map +1 -0
  298. package/dist/lib/components/StatusPage.d.ts +7 -0
  299. package/dist/lib/components/StatusPage.js +75 -0
  300. package/dist/lib/components/StatusPage.js.map +1 -0
  301. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  302. package/dist/lib/components/ThemeSwitch.js +16 -0
  303. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  304. package/dist/lib/components/TopNavigation.d.ts +7 -0
  305. package/dist/lib/components/TopNavigation.js +60 -9
  306. package/dist/lib/components/TopNavigation.js.map +1 -1
  307. package/dist/lib/components/Typography.d.ts +5 -0
  308. package/dist/lib/components/Typography.js +8 -0
  309. package/dist/lib/components/Typography.js.map +1 -0
  310. package/dist/lib/components/Zudoku.d.ts +7 -0
  311. package/dist/lib/components/Zudoku.js +58 -0
  312. package/dist/lib/components/Zudoku.js.map +1 -0
  313. package/dist/lib/components/cache.d.ts +13 -0
  314. package/dist/lib/components/cache.js +20 -0
  315. package/dist/lib/components/cache.js.map +1 -0
  316. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  317. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  318. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  319. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  320. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  321. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  322. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  323. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  324. package/dist/lib/components/context/SlotProvider.js +83 -0
  325. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  326. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  327. package/dist/lib/components/context/ViewportAnchorContext.js +30 -24
  328. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  329. package/dist/lib/components/context/ZudokuContext.d.ts +9 -17
  330. package/dist/lib/components/context/ZudokuContext.js +65 -26
  331. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  332. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  333. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  334. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  335. package/dist/lib/components/index.d.ts +66 -24
  336. package/dist/lib/components/index.js +31 -15
  337. package/dist/lib/components/index.js.map +1 -1
  338. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  339. package/dist/lib/components/navigation/Navigation.js +12 -0
  340. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  341. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  342. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  343. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  344. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  345. package/dist/lib/components/navigation/NavigationCategory.js +66 -0
  346. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  347. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  348. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  349. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  350. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  351. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  352. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  353. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  354. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  355. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  356. package/dist/lib/components/navigation/Toc.js +46 -0
  357. package/dist/lib/components/navigation/Toc.js.map +1 -0
  358. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  359. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  360. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  361. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  362. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  363. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  364. package/dist/lib/components/navigation/utils.d.ts +16 -8
  365. package/dist/lib/components/navigation/utils.js +60 -33
  366. package/dist/lib/components/navigation/utils.js.map +1 -1
  367. package/dist/lib/core/RouteGuard.d.ts +2 -0
  368. package/dist/lib/core/RouteGuard.js +52 -0
  369. package/dist/lib/core/RouteGuard.js.map +1 -0
  370. package/dist/lib/core/ZudokuContext.d.ts +115 -0
  371. package/dist/lib/core/ZudokuContext.js +104 -0
  372. package/dist/lib/core/ZudokuContext.js.map +1 -0
  373. package/dist/lib/core/__internal.d.ts +37 -0
  374. package/dist/lib/core/__internal.js +26 -0
  375. package/dist/lib/core/__internal.js.map +1 -0
  376. package/dist/lib/core/plugins.d.ts +37 -18
  377. package/dist/lib/core/plugins.js +4 -0
  378. package/dist/lib/core/plugins.js.map +1 -1
  379. package/dist/lib/core/router.d.ts +1 -0
  380. package/dist/lib/core/router.js +2 -0
  381. package/dist/lib/core/router.js.map +1 -0
  382. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  383. package/dist/lib/errors/ErrorAlert.js +12 -4
  384. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  385. package/dist/lib/errors/RouterError.js +1 -1
  386. package/dist/lib/errors/RouterError.js.map +1 -1
  387. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  388. package/dist/lib/errors/TopLevelError.js +1 -2
  389. package/dist/lib/errors/TopLevelError.js.map +1 -1
  390. package/dist/lib/hooks/index.d.ts +28 -0
  391. package/dist/lib/hooks/index.js +16 -0
  392. package/dist/lib/hooks/index.js.map +1 -0
  393. package/dist/lib/hooks/useEvent.d.ts +11 -0
  394. package/dist/lib/hooks/useEvent.js +19 -0
  395. package/dist/lib/hooks/useEvent.js.map +1 -0
  396. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  397. package/dist/lib/hooks/useEvent.test.js +102 -0
  398. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  399. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  400. package/dist/lib/hooks/useHotkey.js +58 -0
  401. package/dist/lib/hooks/useHotkey.js.map +1 -0
  402. package/dist/lib/icons.d.ts +1 -0
  403. package/dist/lib/icons.js +1 -0
  404. package/dist/lib/icons.js.map +1 -1
  405. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  406. package/dist/lib/oas/graphql/circular.js +43 -0
  407. package/dist/lib/oas/graphql/circular.js.map +1 -0
  408. package/dist/lib/oas/graphql/index.d.ts +25 -1
  409. package/dist/lib/oas/graphql/index.js +218 -70
  410. package/dist/lib/oas/graphql/index.js.map +1 -1
  411. package/dist/lib/oas/parser/dereference/index.js +10 -4
  412. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  413. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  414. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  415. package/dist/lib/oas/parser/index.d.ts +8 -3
  416. package/dist/lib/oas/parser/index.js +8 -24
  417. package/dist/lib/oas/parser/index.js.map +1 -1
  418. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  419. package/dist/lib/oas/parser/upgrade/index.js +84 -31
  420. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  421. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  422. package/dist/lib/plugins/api-catalog/Catalog.js +32 -0
  423. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  424. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  425. package/dist/lib/plugins/api-catalog/index.js +46 -0
  426. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  427. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  428. package/dist/lib/plugins/api-keys/CreateApiKey.js +26 -8
  429. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  430. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  431. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  432. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  433. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  434. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  435. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  436. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +148 -27
  437. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  438. package/dist/lib/plugins/api-keys/index.d.ts +33 -18
  439. package/dist/lib/plugins/api-keys/index.js +65 -31
  440. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  441. package/dist/lib/plugins/custom-pages/index.d.ts +6 -6
  442. package/dist/lib/plugins/custom-pages/index.js +18 -11
  443. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  444. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -2
  445. package/dist/lib/plugins/markdown/MdxPage.js +43 -10
  446. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  447. package/dist/lib/plugins/markdown/index.d.ts +17 -8
  448. package/dist/lib/plugins/markdown/index.js +14 -3
  449. package/dist/lib/plugins/markdown/index.js.map +1 -1
  450. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  451. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  452. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  453. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  454. package/dist/lib/plugins/openapi/ColorizedParam.js +32 -14
  455. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  456. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  457. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  458. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  459. package/dist/lib/plugins/openapi/OasProvider.js +30 -0
  460. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  461. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -4
  462. package/dist/lib/plugins/openapi/OperationList.js +117 -31
  463. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  464. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  465. package/dist/lib/plugins/openapi/OperationListItem.js +16 -8
  466. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  467. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  468. package/dist/lib/plugins/openapi/ParamInfos.js +47 -0
  469. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  470. package/dist/lib/plugins/openapi/ParameterList.d.ts +4 -3
  471. package/dist/lib/plugins/openapi/ParameterList.js +4 -3
  472. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  473. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  474. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  475. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  476. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -4
  477. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
  478. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  479. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +4 -5
  480. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  481. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  482. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  483. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  484. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  485. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  486. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  487. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  488. package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -3
  489. package/dist/lib/plugins/openapi/Sidecar.js +89 -118
  490. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  491. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  492. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  493. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +7 -0
  494. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  495. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  496. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  497. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  498. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  499. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  500. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  501. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  502. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  503. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  504. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  505. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  506. package/dist/lib/plugins/openapi/client/createServer.js +6 -4
  507. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  508. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  509. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  510. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  511. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  512. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  513. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  514. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  515. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  516. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  517. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  518. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  519. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  520. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  521. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  522. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  523. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  524. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  525. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  526. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  527. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  528. package/dist/lib/plugins/openapi/graphql/gql.js +5 -13
  529. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  530. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +143 -25
  531. package/dist/lib/plugins/openapi/graphql/graphql.js +240 -662
  532. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  533. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  534. package/dist/lib/plugins/openapi/index.js +107 -104
  535. package/dist/lib/plugins/openapi/index.js.map +1 -1
  536. package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
  537. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  538. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  539. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  540. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  541. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  542. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  543. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  544. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  545. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  546. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  547. package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
  548. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  549. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  550. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  551. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  552. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  553. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  554. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  555. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  556. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  557. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  558. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  559. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  560. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  561. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
  562. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  563. package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
  564. package/dist/lib/plugins/openapi/playground/Playground.js +170 -85
  565. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  566. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  567. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  568. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
  569. package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
  570. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  571. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  572. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  573. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  574. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  575. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  576. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  577. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  578. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  579. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  580. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  581. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  582. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  583. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  584. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  585. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  586. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  587. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  588. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  589. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  590. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  591. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  592. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  593. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  594. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  595. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  596. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
  597. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  598. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  599. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  600. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  601. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  602. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  603. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  604. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  605. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  606. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  607. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  608. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  609. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  610. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  611. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  612. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  613. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  614. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
  615. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  616. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  617. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  618. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  619. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  620. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
  621. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  622. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  623. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  624. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  625. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  626. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  627. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  628. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  629. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  630. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  631. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  632. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  633. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  634. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +4 -0
  635. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  636. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  637. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +4 -0
  638. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  639. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  640. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  641. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  642. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  643. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +8 -0
  644. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +36 -0
  645. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  646. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
  647. package/dist/lib/plugins/openapi/schema/SchemaView.js +45 -51
  648. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  649. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +4 -0
  650. package/dist/lib/plugins/openapi/schema/UnionView.js +30 -0
  651. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  652. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  653. package/dist/lib/plugins/openapi/schema/union-helpers.js +48 -0
  654. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  655. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -7
  656. package/dist/lib/plugins/openapi/schema/utils.js +16 -10
  657. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  658. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  659. package/dist/lib/plugins/openapi/state.js +18 -0
  660. package/dist/lib/plugins/openapi/state.js.map +1 -0
  661. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  662. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  663. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  664. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  665. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
  666. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  667. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -3
  668. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +79 -39
  669. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  670. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  671. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  672. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  673. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  674. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  675. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  676. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  677. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  678. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  679. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  680. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  681. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  682. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  683. package/dist/lib/plugins/redirect/index.js +2 -2
  684. package/dist/lib/plugins/redirect/index.js.map +1 -1
  685. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  686. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  687. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  688. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  689. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  690. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  691. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  692. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  693. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  694. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  695. package/dist/lib/plugins/search-pagefind/ResultList.js +42 -0
  696. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  697. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  698. package/dist/lib/plugins/search-pagefind/get-results.js +41 -0
  699. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  700. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  701. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  702. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  703. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  704. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  705. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  706. package/dist/lib/shiki.d.ts +32 -0
  707. package/dist/lib/shiki.js +104 -0
  708. package/dist/lib/shiki.js.map +1 -0
  709. package/dist/lib/ui/Accordion.d.ts +7 -0
  710. package/dist/lib/ui/Accordion.js +14 -0
  711. package/dist/lib/ui/Accordion.js.map +1 -0
  712. package/dist/lib/ui/ActionButton.d.ts +4 -0
  713. package/dist/lib/ui/ActionButton.js +10 -0
  714. package/dist/lib/ui/ActionButton.js.map +1 -0
  715. package/dist/lib/ui/Alert.d.ts +9 -0
  716. package/dist/lib/ui/Alert.js +25 -0
  717. package/dist/lib/ui/Alert.js.map +1 -0
  718. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  719. package/dist/lib/ui/AlertDialog.js +27 -0
  720. package/dist/lib/ui/AlertDialog.js.map +1 -0
  721. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  722. package/dist/lib/ui/AspectRatio.js +4 -0
  723. package/dist/lib/ui/AspectRatio.js.map +1 -0
  724. package/dist/lib/ui/Badge.d.ts +9 -0
  725. package/dist/lib/ui/Badge.js +22 -0
  726. package/dist/lib/ui/Badge.js.map +1 -0
  727. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  728. package/dist/lib/ui/Breadcrumb.js +24 -0
  729. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  730. package/dist/lib/ui/Button.d.ts +4 -5
  731. package/dist/lib/ui/Button.js +9 -6
  732. package/dist/lib/ui/Button.js.map +1 -1
  733. package/dist/lib/ui/Callout.d.ts +2 -1
  734. package/dist/lib/ui/Callout.js +3 -2
  735. package/dist/lib/ui/Callout.js.map +1 -1
  736. package/dist/lib/ui/Card.js +1 -1
  737. package/dist/lib/ui/Card.js.map +1 -1
  738. package/dist/lib/ui/Carousel.d.ts +18 -0
  739. package/dist/lib/ui/Carousel.js +99 -0
  740. package/dist/lib/ui/Carousel.js.map +1 -0
  741. package/dist/lib/ui/Checkbox.d.ts +4 -0
  742. package/dist/lib/ui/Checkbox.js +9 -0
  743. package/dist/lib/ui/Checkbox.js.map +1 -0
  744. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  745. package/dist/lib/ui/CodeBlock.js +18 -0
  746. package/dist/lib/ui/CodeBlock.js.map +1 -0
  747. package/dist/lib/ui/Collapsible.d.ts +5 -0
  748. package/dist/lib/ui/Collapsible.js +6 -0
  749. package/dist/lib/ui/Collapsible.js.map +1 -0
  750. package/dist/lib/ui/Command.d.ts +94 -0
  751. package/dist/lib/ui/Command.js +31 -0
  752. package/dist/lib/ui/Command.js.map +1 -0
  753. package/dist/lib/ui/Dialog.d.ts +21 -0
  754. package/dist/lib/ui/Dialog.js +23 -0
  755. package/dist/lib/ui/Dialog.js.map +1 -0
  756. package/dist/lib/ui/DropdownMenu.js +4 -4
  757. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  758. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  759. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  760. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  761. package/dist/lib/ui/Form.d.ts +23 -0
  762. package/dist/lib/ui/Form.js +63 -0
  763. package/dist/lib/ui/Form.js.map +1 -0
  764. package/dist/lib/ui/HoverCard.d.ts +6 -0
  765. package/dist/lib/ui/HoverCard.js +10 -0
  766. package/dist/lib/ui/HoverCard.js.map +1 -0
  767. package/dist/lib/ui/Input.d.ts +1 -2
  768. package/dist/lib/ui/Input.js +1 -1
  769. package/dist/lib/ui/Input.js.map +1 -1
  770. package/dist/lib/ui/Label.d.ts +5 -0
  771. package/dist/lib/ui/Label.js +10 -0
  772. package/dist/lib/ui/Label.js.map +1 -0
  773. package/dist/lib/ui/Pagination.d.ts +28 -0
  774. package/dist/lib/ui/Pagination.js +24 -0
  775. package/dist/lib/ui/Pagination.js.map +1 -0
  776. package/dist/lib/ui/Popover.d.ts +6 -0
  777. package/dist/lib/ui/Popover.js +10 -0
  778. package/dist/lib/ui/Popover.js.map +1 -0
  779. package/dist/lib/ui/Progress.d.ts +4 -0
  780. package/dist/lib/ui/Progress.js +8 -0
  781. package/dist/lib/ui/Progress.js.map +1 -0
  782. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  783. package/dist/lib/ui/RadioGroup.js +15 -0
  784. package/dist/lib/ui/RadioGroup.js.map +1 -0
  785. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  786. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  787. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  788. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  789. package/dist/lib/ui/ScrollArea.js +12 -0
  790. package/dist/lib/ui/ScrollArea.js.map +1 -0
  791. package/dist/lib/ui/Secret.d.ts +12 -0
  792. package/dist/lib/ui/Secret.js +23 -0
  793. package/dist/lib/ui/Secret.js.map +1 -0
  794. package/dist/lib/ui/Select.js +27 -0
  795. package/dist/lib/ui/Select.js.map +1 -0
  796. package/dist/lib/ui/Skeleton.d.ts +2 -0
  797. package/dist/lib/ui/Skeleton.js +7 -0
  798. package/dist/lib/ui/Skeleton.js.map +1 -0
  799. package/dist/lib/ui/Slider.d.ts +4 -0
  800. package/dist/lib/ui/Slider.js +8 -0
  801. package/dist/lib/ui/Slider.js.map +1 -0
  802. package/dist/lib/ui/Stepper.d.ts +3 -0
  803. package/dist/lib/ui/Stepper.js +7 -0
  804. package/dist/lib/ui/Stepper.js.map +1 -0
  805. package/dist/lib/ui/Switch.d.ts +4 -0
  806. package/dist/lib/ui/Switch.js +8 -0
  807. package/dist/lib/ui/Switch.js.map +1 -0
  808. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  809. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  810. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  811. package/dist/lib/ui/Tabs.js +2 -2
  812. package/dist/lib/ui/Tabs.js.map +1 -1
  813. package/dist/lib/ui/Textarea.d.ts +4 -0
  814. package/dist/lib/ui/Textarea.js +9 -0
  815. package/dist/lib/ui/Textarea.js.map +1 -0
  816. package/dist/lib/ui/Toggle.d.ts +12 -0
  817. package/dist/lib/ui/Toggle.js +26 -0
  818. package/dist/lib/ui/Toggle.js.map +1 -0
  819. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  820. package/dist/lib/ui/ToggleGroup.js +21 -0
  821. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  822. package/dist/lib/ui/Tooltip.d.ts +8 -0
  823. package/dist/lib/ui/Tooltip.js +12 -0
  824. package/dist/lib/ui/Tooltip.js.map +1 -0
  825. package/dist/lib/ui/Value.d.ts +5 -0
  826. package/dist/lib/ui/Value.js +13 -0
  827. package/dist/lib/ui/Value.js.map +1 -0
  828. package/dist/lib/ui/util.d.ts +2 -0
  829. package/dist/lib/ui/util.js +3 -0
  830. package/dist/lib/ui/util.js.map +1 -0
  831. package/dist/lib/util/MdxComponents.d.ts +38 -21
  832. package/dist/lib/util/MdxComponents.js +23 -17
  833. package/dist/lib/util/MdxComponents.js.map +1 -1
  834. package/dist/lib/util/cn.js.map +1 -1
  835. package/dist/lib/util/createVariantComponent.d.ts +3 -3
  836. package/dist/lib/util/createVariantComponent.js.map +1 -1
  837. package/dist/lib/util/detectOS.d.ts +1 -0
  838. package/dist/lib/util/detectOS.js +11 -0
  839. package/dist/lib/util/detectOS.js.map +1 -0
  840. package/dist/lib/util/ensureArray.d.ts +1 -0
  841. package/dist/lib/util/ensureArray.js +2 -0
  842. package/dist/lib/util/ensureArray.js.map +1 -0
  843. package/dist/lib/util/groupBy.js +1 -0
  844. package/dist/lib/util/groupBy.js.map +1 -1
  845. package/dist/lib/util/humanFileSize.d.ts +6 -0
  846. package/dist/lib/util/humanFileSize.js +14 -0
  847. package/dist/lib/util/humanFileSize.js.map +1 -0
  848. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  849. package/dist/lib/util/humanFileSize.test.js +22 -0
  850. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  851. package/dist/lib/util/invariant.d.ts +10 -0
  852. package/dist/lib/util/invariant.js +10 -4
  853. package/dist/lib/util/invariant.js.map +1 -1
  854. package/dist/lib/util/joinPath.d.ts +3 -0
  855. package/dist/lib/util/joinPath.js +3 -0
  856. package/dist/lib/util/joinPath.js.map +1 -1
  857. package/dist/lib/util/joinUrl.d.ts +1 -0
  858. package/dist/lib/util/joinUrl.js +40 -0
  859. package/dist/lib/util/joinUrl.js.map +1 -0
  860. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  861. package/dist/lib/util/joinUrl.test.js +43 -0
  862. package/dist/lib/util/joinUrl.test.js.map +1 -0
  863. package/dist/lib/util/os.d.ts +2 -0
  864. package/dist/lib/util/os.js +21 -0
  865. package/dist/lib/util/os.js.map +1 -0
  866. package/dist/lib/util/pastellize.js +2 -2
  867. package/dist/lib/util/pastellize.js.map +1 -1
  868. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  869. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  870. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  871. package/dist/lib/util/traverse.d.ts +3 -0
  872. package/dist/lib/util/traverse.js +23 -0
  873. package/dist/lib/util/traverse.js.map +1 -0
  874. package/dist/lib/util/types.d.ts +7 -0
  875. package/dist/lib/util/types.js +2 -0
  876. package/dist/lib/util/types.js.map +1 -0
  877. package/dist/lib/util/url.d.ts +4 -0
  878. package/dist/lib/util/url.js +13 -0
  879. package/dist/lib/util/url.js.map +1 -0
  880. package/dist/lib/util/url.test.d.ts +1 -0
  881. package/dist/lib/util/url.test.js +26 -0
  882. package/dist/lib/util/url.test.js.map +1 -0
  883. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  884. package/dist/lib/util/useCopyToClipboard.js +11 -0
  885. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  886. package/dist/lib/util/useExposedProps.d.ts +9 -0
  887. package/dist/lib/util/useExposedProps.js +9 -0
  888. package/dist/lib/util/useExposedProps.js.map +1 -0
  889. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  890. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  891. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  892. package/dist/lib/util/useLatest.d.ts +1 -0
  893. package/dist/lib/util/useLatest.js +15 -0
  894. package/dist/lib/util/useLatest.js.map +1 -0
  895. package/dist/lib/util/useOnScreen.d.ts +5 -0
  896. package/dist/lib/util/useOnScreen.js +19 -0
  897. package/dist/lib/util/useOnScreen.js.map +1 -0
  898. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  899. package/dist/lib/util/useScrollToAnchor.js +45 -38
  900. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  901. package/dist/lib/util/useScrollToTop.js +7 -5
  902. package/dist/lib/util/useScrollToTop.js.map +1 -1
  903. package/dist/ts.js +3 -3
  904. package/dist/ts.js.map +1 -1
  905. package/dist/vite/api/SchemaManager.d.ts +36 -0
  906. package/dist/vite/api/SchemaManager.js +141 -0
  907. package/dist/vite/api/SchemaManager.js.map +1 -0
  908. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  909. package/dist/vite/api/SchemaManager.test.js +106 -0
  910. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  911. package/dist/vite/api/schema-codegen.d.ts +12 -0
  912. package/dist/vite/api/schema-codegen.js +115 -0
  913. package/dist/vite/api/schema-codegen.js.map +1 -0
  914. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  915. package/dist/vite/api/schema-codegen.test.js +395 -0
  916. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  917. package/dist/vite/build.js +63 -14
  918. package/dist/vite/build.js.map +1 -1
  919. package/dist/vite/config.d.ts +2 -16
  920. package/dist/vite/config.js +122 -149
  921. package/dist/vite/config.js.map +1 -1
  922. package/dist/vite/config.test.js +12 -6
  923. package/dist/vite/config.test.js.map +1 -1
  924. package/dist/vite/create-pagefind-index.d.ts +4 -0
  925. package/dist/vite/create-pagefind-index.js +12 -0
  926. package/dist/vite/create-pagefind-index.js.map +1 -0
  927. package/dist/vite/css/collect.d.ts +2 -0
  928. package/dist/vite/css/collect.js +27 -0
  929. package/dist/vite/css/collect.js.map +1 -0
  930. package/dist/vite/css/plugin.d.ts +4 -0
  931. package/dist/vite/css/plugin.js +91 -0
  932. package/dist/vite/css/plugin.js.map +1 -0
  933. package/dist/vite/debug.d.ts +1 -0
  934. package/dist/vite/debug.js +10 -0
  935. package/dist/vite/debug.js.map +1 -0
  936. package/dist/vite/dev-server.d.ts +5 -3
  937. package/dist/vite/dev-server.js +84 -23
  938. package/dist/vite/dev-server.js.map +1 -1
  939. package/dist/vite/error-handler.d.ts +3 -3
  940. package/dist/vite/error-handler.js +1 -1
  941. package/dist/vite/error-handler.js.map +1 -1
  942. package/dist/vite/html.d.ts +7 -3
  943. package/dist/vite/html.js +15 -11
  944. package/dist/vite/html.js.map +1 -1
  945. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  946. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  947. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  948. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  949. package/dist/vite/mdx/remark-last-modified.js +28 -0
  950. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  951. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  952. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  953. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  954. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  955. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  956. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  957. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  958. package/dist/vite/mdx/remark-static-generation.js +125 -0
  959. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  960. package/dist/vite/mdx/utils.d.ts +2 -0
  961. package/dist/vite/mdx/utils.js +31 -0
  962. package/dist/vite/mdx/utils.js.map +1 -0
  963. package/dist/vite/output.d.ts +113 -0
  964. package/dist/vite/output.js +60 -0
  965. package/dist/vite/output.js.map +1 -0
  966. package/dist/vite/plugin-api-keys.d.ts +2 -3
  967. package/dist/vite/plugin-api-keys.js +14 -8
  968. package/dist/vite/plugin-api-keys.js.map +1 -1
  969. package/dist/vite/plugin-api.d.ts +1 -2
  970. package/dist/vite/plugin-api.js +147 -33
  971. package/dist/vite/plugin-api.js.map +1 -1
  972. package/dist/vite/plugin-auth.d.ts +2 -3
  973. package/dist/vite/plugin-auth.js +11 -7
  974. package/dist/vite/plugin-auth.js.map +1 -1
  975. package/dist/vite/plugin-component.d.ts +2 -3
  976. package/dist/vite/plugin-component.js +25 -14
  977. package/dist/vite/plugin-component.js.map +1 -1
  978. package/dist/vite/plugin-config-reload.d.ts +3 -4
  979. package/dist/vite/plugin-config-reload.js +31 -25
  980. package/dist/vite/plugin-config-reload.js.map +1 -1
  981. package/dist/vite/plugin-config.d.ts +2 -4
  982. package/dist/vite/plugin-config.js +28 -3
  983. package/dist/vite/plugin-config.js.map +1 -1
  984. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  985. package/dist/vite/plugin-custom-pages.js +8 -7
  986. package/dist/vite/plugin-custom-pages.js.map +1 -1
  987. package/dist/vite/plugin-docs.d.ts +2 -3
  988. package/dist/vite/plugin-docs.js +75 -39
  989. package/dist/vite/plugin-docs.js.map +1 -1
  990. package/dist/vite/plugin-frontmatter.js +34 -25
  991. package/dist/vite/plugin-frontmatter.js.map +1 -1
  992. package/dist/vite/plugin-mdx.d.ts +2 -9
  993. package/dist/vite/plugin-mdx.js +67 -21
  994. package/dist/vite/plugin-mdx.js.map +1 -1
  995. package/dist/vite/plugin-metadata.d.ts +1 -1
  996. package/dist/vite/plugin-navigation.d.ts +4 -0
  997. package/dist/vite/plugin-navigation.js +63 -0
  998. package/dist/vite/plugin-navigation.js.map +1 -0
  999. package/dist/vite/plugin-redirect.d.ts +2 -3
  1000. package/dist/vite/plugin-redirect.js +7 -6
  1001. package/dist/vite/plugin-redirect.js.map +1 -1
  1002. package/dist/vite/plugin-search.d.ts +2 -0
  1003. package/dist/vite/plugin-search.js +31 -0
  1004. package/dist/vite/plugin-search.js.map +1 -0
  1005. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  1006. package/dist/vite/plugin-shiki-register.js +39 -0
  1007. package/dist/vite/plugin-shiki-register.js.map +1 -0
  1008. package/dist/vite/plugin-theme.d.ts +8 -0
  1009. package/dist/vite/plugin-theme.js +274 -0
  1010. package/dist/vite/plugin-theme.js.map +1 -0
  1011. package/dist/vite/plugin-theme.test.d.ts +1 -0
  1012. package/dist/vite/plugin-theme.test.js +314 -0
  1013. package/dist/vite/plugin-theme.test.js.map +1 -0
  1014. package/dist/vite/plugin.d.ts +2 -4
  1015. package/dist/vite/plugin.js +25 -20
  1016. package/dist/vite/plugin.js.map +1 -1
  1017. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  1018. package/dist/vite/prerender/FileWritingResponse.js +53 -0
  1019. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  1020. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  1021. package/dist/vite/prerender/InMemoryResponse.js +34 -0
  1022. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  1023. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  1024. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  1025. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  1026. package/dist/vite/prerender/prerender.d.ts +15 -0
  1027. package/dist/vite/prerender/prerender.js +109 -0
  1028. package/dist/vite/prerender/prerender.js.map +1 -0
  1029. package/dist/vite/prerender/worker.d.ts +13 -0
  1030. package/dist/vite/prerender/worker.js +63 -0
  1031. package/dist/vite/prerender/worker.js.map +1 -0
  1032. package/dist/vite/reporter.d.ts +3 -0
  1033. package/dist/vite/reporter.js +33 -0
  1034. package/dist/vite/reporter.js.map +1 -0
  1035. package/dist/vite/shadcn-registry.d.ts +20 -0
  1036. package/dist/vite/shadcn-registry.js +29 -0
  1037. package/dist/vite/shadcn-registry.js.map +1 -0
  1038. package/dist/vite/sitemap.d.ts +1 -1
  1039. package/dist/vite/sitemap.js +16 -14
  1040. package/dist/vite/sitemap.js.map +1 -1
  1041. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  1042. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  1043. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  1044. package/dist/zuplo/policy-types.d.ts +33 -0
  1045. package/dist/zuplo/policy-types.js +7 -0
  1046. package/dist/zuplo/policy-types.js.map +1 -0
  1047. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  1048. package/dist/zuplo/with-zuplo-processors.js +26 -0
  1049. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  1050. package/dist/zuplo/with-zuplo.d.ts +6 -0
  1051. package/dist/zuplo/with-zuplo.js +10 -0
  1052. package/dist/zuplo/with-zuplo.js.map +1 -0
  1053. package/lib/Button-B3o-2Xdf.js +51 -0
  1054. package/lib/Button-B3o-2Xdf.js.map +1 -0
  1055. package/lib/Card-CMDQUPM4.js +61 -0
  1056. package/lib/Card-CMDQUPM4.js.map +1 -0
  1057. package/lib/CategoryHeading-DCpZu3yG.js +17 -0
  1058. package/lib/CategoryHeading-DCpZu3yG.js.map +1 -0
  1059. package/lib/ClientOnly-E7hGysn1.js +11 -0
  1060. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  1061. package/lib/CodeBlock-q0m9kVNg.js +178 -0
  1062. package/lib/CodeBlock-q0m9kVNg.js.map +1 -0
  1063. package/lib/Command-CUSlH0gJ.js +134 -0
  1064. package/lib/Command-CUSlH0gJ.js.map +1 -0
  1065. package/lib/Dialog-BmgXWOaz.js +114 -0
  1066. package/lib/Dialog-BmgXWOaz.js.map +1 -0
  1067. package/lib/Drawer-DJ05s2pH.js +1133 -0
  1068. package/lib/Drawer-DJ05s2pH.js.map +1 -0
  1069. package/lib/ErrorAlert-B5bWlc6g.js +15524 -0
  1070. package/lib/ErrorAlert-B5bWlc6g.js.map +1 -0
  1071. package/lib/MdxPage-DfV9gO5W.js +111 -0
  1072. package/lib/MdxPage-DfV9gO5W.js.map +1 -0
  1073. package/lib/OAuthErrorPage--ME5Z5lv.js +150 -0
  1074. package/lib/OAuthErrorPage--ME5Z5lv.js.map +1 -0
  1075. package/lib/OasProvider-BzRWdNM5.js +36 -0
  1076. package/lib/OasProvider-BzRWdNM5.js.map +1 -0
  1077. package/lib/OperationList-D8ln4zHk.js +5166 -0
  1078. package/lib/OperationList-D8ln4zHk.js.map +1 -0
  1079. package/lib/Pagination-BdZkD63H.js +37 -0
  1080. package/lib/Pagination-BdZkD63H.js.map +1 -0
  1081. package/lib/RouteGuard-BIksrt_C.js +56 -0
  1082. package/lib/RouteGuard-BIksrt_C.js.map +1 -0
  1083. package/lib/RouterError-ByzmULgw.js +41 -0
  1084. package/lib/RouterError-ByzmULgw.js.map +1 -0
  1085. package/lib/SchemaList-DtQZ98Lm.js +150 -0
  1086. package/lib/SchemaList-DtQZ98Lm.js.map +1 -0
  1087. package/lib/SchemaView-OqVwN4ss.js +429 -0
  1088. package/lib/SchemaView-OqVwN4ss.js.map +1 -0
  1089. package/lib/Select-DWh0wSay.js +273 -0
  1090. package/lib/Select-DWh0wSay.js.map +1 -0
  1091. package/lib/SignUp-BT5JGYmO.js +56 -0
  1092. package/lib/SignUp-BT5JGYmO.js.map +1 -0
  1093. package/lib/Spinner-mNLZ6awP.js +7 -0
  1094. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  1095. package/lib/SyntaxHighlight-HG0uqk4-.js +10307 -0
  1096. package/lib/SyntaxHighlight-HG0uqk4-.js.map +1 -0
  1097. package/lib/Toc-DyGMFrpl.js +92 -0
  1098. package/lib/Toc-DyGMFrpl.js.map +1 -0
  1099. package/lib/ZudokuContext-BR-lnR7O.js +1285 -0
  1100. package/lib/ZudokuContext-BR-lnR7O.js.map +1 -0
  1101. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  1102. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  1103. package/lib/circular-CMUzw2Qb.js +14934 -0
  1104. package/lib/circular-CMUzw2Qb.js.map +1 -0
  1105. package/lib/clsx-OuTLNxxd.js +17 -0
  1106. package/lib/clsx-OuTLNxxd.js.map +1 -0
  1107. package/lib/cn-dYga0KKN.js +2731 -0
  1108. package/lib/cn-dYga0KKN.js.map +1 -0
  1109. package/lib/createServer-CcYGmc40.js +12490 -0
  1110. package/lib/createServer-CcYGmc40.js.map +1 -0
  1111. package/lib/csharp-CabCCCDp.js +53 -0
  1112. package/lib/csharp-CabCCCDp.js.map +1 -0
  1113. package/lib/css-CF7cXhs2.js +54 -0
  1114. package/lib/css-CF7cXhs2.js.map +1 -0
  1115. package/lib/errors-9AR8czip.js +45 -0
  1116. package/lib/errors-9AR8czip.js.map +1 -0
  1117. package/lib/go-C4nlDCdp.js +25 -0
  1118. package/lib/go-C4nlDCdp.js.map +1 -0
  1119. package/lib/graphql-CPc-jI7m.js +25 -0
  1120. package/lib/graphql-CPc-jI7m.js.map +1 -0
  1121. package/lib/hook-B4Q30zMI.js +247 -0
  1122. package/lib/hook-B4Q30zMI.js.map +1 -0
  1123. package/lib/html-_lthdH3f.js +33 -0
  1124. package/lib/html-_lthdH3f.js.map +1 -0
  1125. package/lib/index-BtvWYC68.js +2094 -0
  1126. package/lib/index-BtvWYC68.js.map +1 -0
  1127. package/lib/index-CaqZFmdz.js +1058 -0
  1128. package/lib/index-CaqZFmdz.js.map +1 -0
  1129. package/lib/index-CmREBlkc.js +3395 -0
  1130. package/lib/index-CmREBlkc.js.map +1 -0
  1131. package/lib/index-CrcNWbel.js +316 -0
  1132. package/lib/index-CrcNWbel.js.map +1 -0
  1133. package/lib/index-DI5SPFK9.js +36 -0
  1134. package/lib/index-DI5SPFK9.js.map +1 -0
  1135. package/lib/index-DmNq2fbN.js +4827 -0
  1136. package/lib/index-DmNq2fbN.js.map +1 -0
  1137. package/lib/index.esm-BnYHxCYC.js +683 -0
  1138. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  1139. package/lib/index.esm-CdzlRw50.js +1254 -0
  1140. package/lib/index.esm-CdzlRw50.js.map +1 -0
  1141. package/lib/invariant-Bm-FVUQE.js +44 -0
  1142. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  1143. package/lib/java-l3-f6PoB.js +53 -0
  1144. package/lib/java-l3-f6PoB.js.map +1 -0
  1145. package/lib/javascript-C2R9WsTw.js +10 -0
  1146. package/lib/javascript-C2R9WsTw.js.map +1 -0
  1147. package/lib/json-CJ6aS-pT.js +25 -0
  1148. package/lib/json-CJ6aS-pT.js.map +1 -0
  1149. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  1150. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  1151. package/lib/kotlin-DCMKi-U7.js +37 -0
  1152. package/lib/kotlin-DCMKi-U7.js.map +1 -0
  1153. package/lib/markdown-C4aFmlmR.js +25 -0
  1154. package/lib/markdown-C4aFmlmR.js.map +1 -0
  1155. package/lib/mdx-pWVkS1_U.js +32 -0
  1156. package/lib/mdx-pWVkS1_U.js.map +1 -0
  1157. package/lib/mutation-CiMUdKRU.js +196 -0
  1158. package/lib/mutation-CiMUdKRU.js.map +1 -0
  1159. package/lib/objectivec-J4XevKta.js +32 -0
  1160. package/lib/objectivec-J4XevKta.js.map +1 -0
  1161. package/lib/php-CThYsN0i.js +25 -0
  1162. package/lib/php-CThYsN0i.js.map +1 -0
  1163. package/lib/processors/removeExtensions.js +11 -0
  1164. package/lib/processors/removeExtensions.js.map +1 -0
  1165. package/lib/processors/removeParameters.js +47 -0
  1166. package/lib/processors/removeParameters.js.map +1 -0
  1167. package/lib/processors/removePaths.js +28 -0
  1168. package/lib/processors/removePaths.js.map +1 -0
  1169. package/lib/processors/traverse.js +17 -0
  1170. package/lib/processors/traverse.js.map +1 -0
  1171. package/lib/python-DRrVWlBo.js +32 -0
  1172. package/lib/python-DRrVWlBo.js.map +1 -0
  1173. package/lib/react-B7gnFkUi.js +24 -0
  1174. package/lib/react-B7gnFkUi.js.map +1 -0
  1175. package/lib/ruby-Cl8yMwfe.js +25 -0
  1176. package/lib/ruby-Cl8yMwfe.js.map +1 -0
  1177. package/lib/rust-BcsOJwqO.js +25 -0
  1178. package/lib/rust-BcsOJwqO.js.map +1 -0
  1179. package/lib/shell-BNUr7LQH.js +25 -0
  1180. package/lib/shell-BNUr7LQH.js.map +1 -0
  1181. package/lib/swift-DoJpb4mH.js +25 -0
  1182. package/lib/swift-DoJpb4mH.js.map +1 -0
  1183. package/lib/toml-DrOGwOUK.js +32 -0
  1184. package/lib/toml-DrOGwOUK.js.map +1 -0
  1185. package/lib/typescript-D9w2ZJcO.js +32 -0
  1186. package/lib/typescript-D9w2ZJcO.js.map +1 -0
  1187. package/lib/ui/Accordion.js +47 -0
  1188. package/lib/ui/Accordion.js.map +1 -0
  1189. package/lib/ui/ActionButton.js +25 -0
  1190. package/lib/ui/ActionButton.js.map +1 -0
  1191. package/lib/ui/Alert.js +67 -0
  1192. package/lib/ui/Alert.js.map +1 -0
  1193. package/lib/ui/AlertDialog.js +114 -0
  1194. package/lib/ui/AlertDialog.js.map +1 -0
  1195. package/lib/ui/AspectRatio.js +6 -0
  1196. package/lib/ui/AspectRatio.js.map +1 -0
  1197. package/lib/ui/Badge.js +28 -0
  1198. package/lib/ui/Badge.js.map +1 -0
  1199. package/lib/ui/Breadcrumb.js +95 -0
  1200. package/lib/ui/Breadcrumb.js.map +1 -0
  1201. package/lib/ui/Button.js +52 -0
  1202. package/lib/ui/Button.js.map +1 -0
  1203. package/lib/ui/Callout.js +97 -0
  1204. package/lib/ui/Callout.js.map +1 -0
  1205. package/lib/ui/Card.js +62 -0
  1206. package/lib/ui/Card.js.map +1 -0
  1207. package/lib/ui/Carousel.js +1416 -0
  1208. package/lib/ui/Carousel.js.map +1 -0
  1209. package/lib/ui/Checkbox.js +29 -0
  1210. package/lib/ui/Checkbox.js.map +1 -0
  1211. package/lib/ui/CodeBlock.js +10 -0
  1212. package/lib/ui/CodeBlock.js.map +1 -0
  1213. package/lib/ui/Collapsible.js +8 -0
  1214. package/lib/ui/Collapsible.js.map +1 -0
  1215. package/lib/ui/Command.js +150 -0
  1216. package/lib/ui/Command.js.map +1 -0
  1217. package/lib/ui/Dialog.js +116 -0
  1218. package/lib/ui/Dialog.js.map +1 -0
  1219. package/lib/ui/Drawer.js +17 -0
  1220. package/lib/ui/Drawer.js.map +1 -0
  1221. package/lib/ui/DropdownMenu.js +145 -0
  1222. package/lib/ui/DropdownMenu.js.map +1 -0
  1223. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  1224. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1225. package/lib/ui/Form.js +95 -0
  1226. package/lib/ui/Form.js.map +1 -0
  1227. package/lib/ui/HoverCard.js +24 -0
  1228. package/lib/ui/HoverCard.js.map +1 -0
  1229. package/lib/ui/Input.js +22 -0
  1230. package/lib/ui/Input.js.map +1 -0
  1231. package/lib/ui/Label.js +20 -0
  1232. package/lib/ui/Label.js.map +1 -0
  1233. package/lib/ui/Pagination.js +105 -0
  1234. package/lib/ui/Pagination.js.map +1 -0
  1235. package/lib/ui/Popover.js +24 -0
  1236. package/lib/ui/Popover.js.map +1 -0
  1237. package/lib/ui/Progress.js +27 -0
  1238. package/lib/ui/Progress.js.map +1 -0
  1239. package/lib/ui/RadioGroup.js +32 -0
  1240. package/lib/ui/RadioGroup.js.map +1 -0
  1241. package/lib/ui/ReactComponentDoc.js +28 -0
  1242. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1243. package/lib/ui/ScrollArea.js +39 -0
  1244. package/lib/ui/ScrollArea.js.map +1 -0
  1245. package/lib/ui/Secret.js +96 -0
  1246. package/lib/ui/Secret.js.map +1 -0
  1247. package/lib/ui/Select.js +122 -0
  1248. package/lib/ui/Select.js.map +1 -0
  1249. package/lib/ui/Skeleton.js +18 -0
  1250. package/lib/ui/Skeleton.js.map +1 -0
  1251. package/lib/ui/Slider.js +24 -0
  1252. package/lib/ui/Slider.js.map +1 -0
  1253. package/lib/ui/Stepper.js +6 -0
  1254. package/lib/ui/Stepper.js.map +1 -0
  1255. package/lib/ui/Switch.js +28 -0
  1256. package/lib/ui/Switch.js.map +1 -0
  1257. package/lib/ui/SyntaxHighlight.js +11 -0
  1258. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1259. package/lib/ui/Tabs.js +47 -0
  1260. package/lib/ui/Tabs.js.map +1 -0
  1261. package/lib/ui/Textarea.js +21 -0
  1262. package/lib/ui/Textarea.js.map +1 -0
  1263. package/lib/ui/Toggle.js +38 -0
  1264. package/lib/ui/Toggle.js.map +1 -0
  1265. package/lib/ui/ToggleGroup.js +42 -0
  1266. package/lib/ui/ToggleGroup.js.map +1 -0
  1267. package/lib/ui/Tooltip.js +31 -0
  1268. package/lib/ui/Tooltip.js.map +1 -0
  1269. package/lib/ui/Value.js +39 -0
  1270. package/lib/ui/Value.js.map +1 -0
  1271. package/lib/ui/util.js +6 -0
  1272. package/lib/ui/util.js.map +1 -0
  1273. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1274. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1275. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1276. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1277. package/lib/useLatest-hmRS46UF.js +11 -0
  1278. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1279. package/lib/xml-D7S4OK52.js +25 -0
  1280. package/lib/xml-D7S4OK52.js.map +1 -0
  1281. package/lib/yaml-BIWMCqHB.js +32 -0
  1282. package/lib/yaml-BIWMCqHB.js.map +1 -0
  1283. package/lib/zudoku.__internal.js +2981 -0
  1284. package/lib/zudoku.__internal.js.map +1 -0
  1285. package/lib/zudoku.auth-auth0.js +32 -30
  1286. package/lib/zudoku.auth-auth0.js.map +1 -1
  1287. package/lib/zudoku.auth-azureb2c.js +137 -0
  1288. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1289. package/lib/zudoku.auth-clerk.js +111 -60
  1290. package/lib/zudoku.auth-clerk.js.map +1 -1
  1291. package/lib/zudoku.auth-openid.js +604 -633
  1292. package/lib/zudoku.auth-openid.js.map +1 -1
  1293. package/lib/zudoku.auth-supabase.js +98 -0
  1294. package/lib/zudoku.auth-supabase.js.map +1 -0
  1295. package/lib/zudoku.components.js +27 -3433
  1296. package/lib/zudoku.components.js.map +1 -1
  1297. package/lib/zudoku.hooks.js +27 -0
  1298. package/lib/zudoku.hooks.js.map +1 -0
  1299. package/lib/zudoku.icons.js +10 -0
  1300. package/lib/zudoku.icons.js.map +1 -1
  1301. package/lib/zudoku.plugin-api-catalog.js +125 -0
  1302. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1303. package/lib/zudoku.plugin-api-keys.js +739 -200
  1304. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1305. package/lib/zudoku.plugin-custom-pages.js +15 -9
  1306. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1307. package/lib/zudoku.plugin-markdown.js +21 -28
  1308. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1309. package/lib/zudoku.plugin-openapi.js +9 -12
  1310. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1311. package/lib/zudoku.plugin-redirect.js +4 -4
  1312. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1313. package/lib/zudoku.plugin-search-inkeep.js +61 -40
  1314. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1315. package/lib/zudoku.plugin-search-pagefind.js +325 -0
  1316. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1317. package/lib/zudoku.plugins.js +15 -0
  1318. package/lib/zudoku.plugins.js.map +1 -0
  1319. package/lib/zudoku.router.js +123 -0
  1320. package/lib/zudoku.router.js.map +1 -0
  1321. package/package.json +192 -90
  1322. package/src/app/ZuploBuildConfig.ts +33 -0
  1323. package/src/app/defaultTheme.css +73 -0
  1324. package/src/app/demo-cdn.html +31 -31
  1325. package/src/app/demo.html +1 -1
  1326. package/src/app/demo.tsx +26 -12
  1327. package/src/app/entry.client.tsx +75 -8
  1328. package/src/app/entry.server.tsx +85 -66
  1329. package/src/app/env.ts +43 -0
  1330. package/src/app/font.geist.css +73 -0
  1331. package/src/app/main.css +172 -131
  1332. package/src/app/main.tsx +94 -78
  1333. package/src/app/sentry.ts +24 -0
  1334. package/src/app/standalone.tsx +15 -13
  1335. package/src/lib/MissingIcon.tsx +22 -0
  1336. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1337. package/src/lib/assets/language-icons/css.tsx +36 -0
  1338. package/src/lib/assets/language-icons/go.tsx +19 -0
  1339. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1340. package/src/lib/assets/language-icons/html.tsx +24 -0
  1341. package/src/lib/assets/language-icons/java.tsx +35 -0
  1342. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1343. package/src/lib/assets/language-icons/json.tsx +19 -0
  1344. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1345. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1346. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1347. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1348. package/src/lib/assets/language-icons/php.tsx +19 -0
  1349. package/src/lib/assets/language-icons/python.tsx +23 -0
  1350. package/src/lib/assets/language-icons/react.tsx +21 -0
  1351. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1352. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1353. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1354. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1355. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1356. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1357. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1358. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1359. package/src/lib/auth/issuer.test.ts +121 -0
  1360. package/src/lib/auth/issuer.ts +41 -0
  1361. package/src/lib/authentication/AuthenticationPlugin.tsx +6 -3
  1362. package/src/lib/authentication/authentication.ts +9 -10
  1363. package/src/lib/authentication/components/CallbackHandler.tsx +36 -50
  1364. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1365. package/src/lib/authentication/components/SignIn.tsx +28 -2
  1366. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1367. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1368. package/src/lib/authentication/errors.ts +27 -13
  1369. package/src/lib/authentication/hook.ts +15 -4
  1370. package/src/lib/authentication/providers/auth0.tsx +29 -19
  1371. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1372. package/src/lib/authentication/providers/clerk.tsx +131 -54
  1373. package/src/lib/authentication/providers/openid.tsx +169 -88
  1374. package/src/lib/authentication/providers/supabase.tsx +151 -0
  1375. package/src/lib/authentication/state.ts +86 -25
  1376. package/src/lib/authentication/use-broadcast/LICENSE.md +18 -0
  1377. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1378. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1379. package/src/lib/components/AnchorLink.tsx +13 -8
  1380. package/src/lib/components/Autocomplete.tsx +114 -0
  1381. package/src/lib/components/Banner.tsx +3 -3
  1382. package/src/lib/components/Bootstrap.tsx +44 -16
  1383. package/src/lib/components/BuildCheck.tsx +86 -0
  1384. package/src/lib/components/CategoryHeading.tsx +4 -1
  1385. package/src/lib/components/ClientOnly.tsx +6 -3
  1386. package/src/lib/components/DeveloperHint.tsx +6 -1
  1387. package/src/lib/components/ErrorPage.tsx +3 -3
  1388. package/src/lib/components/Footer.tsx +136 -0
  1389. package/src/lib/components/Framed.tsx +51 -0
  1390. package/src/lib/components/Header.tsx +122 -68
  1391. package/src/lib/components/Heading.tsx +27 -20
  1392. package/src/lib/components/InlineCode.tsx +13 -16
  1393. package/src/lib/components/LanguageIcon.tsx +136 -0
  1394. package/src/lib/components/Layout.tsx +25 -68
  1395. package/src/lib/components/Main.tsx +51 -0
  1396. package/src/lib/components/Markdown.tsx +45 -30
  1397. package/src/lib/components/Meta.tsx +45 -0
  1398. package/src/lib/components/MobileTopNavigation.tsx +97 -29
  1399. package/src/lib/components/NotFoundPage.tsx +7 -6
  1400. package/src/lib/components/PageProgress.tsx +28 -0
  1401. package/src/lib/components/Pagination.tsx +45 -0
  1402. package/src/lib/components/PathRenderer.tsx +61 -0
  1403. package/src/lib/components/Search.tsx +20 -9
  1404. package/src/lib/components/Slot.test.tsx +465 -0
  1405. package/src/lib/components/Slot.tsx +64 -0
  1406. package/src/lib/components/StatusPage.tsx +96 -0
  1407. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1408. package/src/lib/components/TopNavigation.tsx +104 -27
  1409. package/src/lib/components/Typography.tsx +14 -0
  1410. package/src/lib/components/Zudoku.tsx +119 -0
  1411. package/src/lib/components/cache.ts +23 -0
  1412. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1413. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1414. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1415. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1416. package/src/lib/components/context/ViewportAnchorContext.tsx +35 -37
  1417. package/src/lib/components/context/ZudokuContext.ts +77 -28
  1418. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1419. package/src/lib/components/index.ts +34 -17
  1420. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1421. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1422. package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
  1423. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1424. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1425. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1426. package/src/lib/components/navigation/Toc.tsx +126 -0
  1427. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1428. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1429. package/src/lib/components/navigation/utils.ts +85 -50
  1430. package/src/lib/core/RouteGuard.tsx +96 -0
  1431. package/src/lib/core/ZudokuContext.ts +246 -0
  1432. package/src/lib/core/__internal.tsx +30 -0
  1433. package/src/lib/core/plugins.ts +56 -23
  1434. package/src/lib/core/router.ts +1 -0
  1435. package/src/lib/errors/ErrorAlert.tsx +29 -17
  1436. package/src/lib/errors/RouterError.tsx +1 -1
  1437. package/src/lib/errors/TopLevelError.tsx +2 -4
  1438. package/src/lib/hooks/index.ts +16 -0
  1439. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1440. package/src/lib/hooks/useEvent.ts +41 -0
  1441. package/src/lib/hooks/useHotkey.ts +70 -0
  1442. package/src/lib/icons.ts +1 -0
  1443. package/src/lib/oas/graphql/circular.ts +58 -0
  1444. package/src/lib/oas/graphql/index.ts +300 -105
  1445. package/src/lib/oas/parser/dereference/index.ts +12 -5
  1446. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1447. package/src/lib/oas/parser/index.ts +16 -32
  1448. package/src/lib/oas/parser/upgrade/index.ts +105 -39
  1449. package/src/lib/plugins/api-catalog/Catalog.tsx +80 -0
  1450. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1451. package/src/lib/plugins/api-keys/CreateApiKey.tsx +79 -49
  1452. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1453. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1454. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +457 -119
  1455. package/src/lib/plugins/api-keys/index.tsx +150 -66
  1456. package/src/lib/plugins/custom-pages/index.tsx +27 -17
  1457. package/src/lib/plugins/markdown/MdxPage.tsx +120 -61
  1458. package/src/lib/plugins/markdown/index.tsx +41 -14
  1459. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1460. package/src/lib/plugins/openapi/ColorizedParam.tsx +51 -23
  1461. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1462. package/src/lib/plugins/openapi/OasProvider.tsx +52 -0
  1463. package/src/lib/plugins/openapi/OperationList.tsx +237 -75
  1464. package/src/lib/plugins/openapi/OperationListItem.tsx +111 -84
  1465. package/src/lib/plugins/openapi/ParamInfos.tsx +91 -0
  1466. package/src/lib/plugins/openapi/ParameterList.tsx +7 -5
  1467. package/src/lib/plugins/openapi/ParameterListItem.tsx +88 -41
  1468. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +32 -5
  1469. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +16 -33
  1470. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1471. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1472. package/src/lib/plugins/openapi/Sidecar.tsx +157 -174
  1473. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1474. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1475. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1476. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1477. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1478. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1479. package/src/lib/plugins/openapi/client/createServer.ts +9 -4
  1480. package/src/lib/plugins/openapi/client/useCreateQuery.ts +46 -0
  1481. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1482. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1483. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1484. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1485. package/src/lib/plugins/openapi/context.tsx +2 -2
  1486. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +12 -20
  1487. package/src/lib/plugins/openapi/graphql/gql.ts +38 -31
  1488. package/src/lib/plugins/openapi/graphql/graphql.ts +390 -683
  1489. package/src/lib/plugins/openapi/index.tsx +162 -134
  1490. package/src/lib/plugins/openapi/interfaces.ts +61 -4
  1491. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1492. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1493. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
  1494. package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
  1495. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1496. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1497. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1498. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1499. package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
  1500. package/src/lib/plugins/openapi/playground/Playground.tsx +407 -289
  1501. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +8 -4
  1502. package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
  1503. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1504. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1505. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1506. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1507. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1508. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1509. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1510. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1511. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
  1512. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1513. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1514. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1515. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1516. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
  1517. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1518. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
  1519. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1520. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1521. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1522. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1523. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +36 -0
  1524. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +25 -0
  1525. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +35 -0
  1526. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1527. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +141 -0
  1528. package/src/lib/plugins/openapi/schema/SchemaView.tsx +107 -139
  1529. package/src/lib/plugins/openapi/schema/UnionView.tsx +123 -0
  1530. package/src/lib/plugins/openapi/schema/union-helpers.ts +96 -0
  1531. package/src/lib/plugins/openapi/schema/utils.ts +30 -13
  1532. package/src/lib/plugins/openapi/state.ts +36 -0
  1533. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1534. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
  1535. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -45
  1536. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1537. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1538. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1539. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1540. package/src/lib/plugins/redirect/index.tsx +6 -10
  1541. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1542. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1543. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +163 -0
  1544. package/src/lib/plugins/search-pagefind/ResultList.tsx +113 -0
  1545. package/src/lib/plugins/search-pagefind/get-results.tsx +74 -0
  1546. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1547. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1548. package/src/lib/shiki.ts +138 -0
  1549. package/src/lib/ui/Accordion.tsx +56 -0
  1550. package/src/lib/ui/ActionButton.tsx +30 -0
  1551. package/src/lib/ui/Alert.tsx +65 -0
  1552. package/src/lib/ui/AlertDialog.tsx +139 -0
  1553. package/src/lib/ui/AspectRatio.tsx +5 -0
  1554. package/src/lib/ui/Badge.tsx +37 -0
  1555. package/src/lib/ui/Breadcrumb.tsx +116 -0
  1556. package/src/lib/ui/Button.tsx +13 -8
  1557. package/src/lib/ui/Callout.tsx +30 -10
  1558. package/src/lib/ui/Card.tsx +1 -1
  1559. package/src/lib/ui/Carousel.tsx +261 -0
  1560. package/src/lib/ui/Checkbox.tsx +29 -0
  1561. package/src/lib/ui/CodeBlock.tsx +82 -0
  1562. package/src/lib/ui/Collapsible.tsx +9 -0
  1563. package/src/lib/ui/Command.tsx +191 -0
  1564. package/src/lib/ui/Dialog.tsx +132 -0
  1565. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1566. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1567. package/src/lib/ui/Form.tsx +177 -0
  1568. package/src/lib/ui/HoverCard.tsx +27 -0
  1569. package/src/lib/ui/Input.tsx +2 -3
  1570. package/src/lib/ui/Label.tsx +24 -0
  1571. package/src/lib/ui/Pagination.tsx +116 -0
  1572. package/src/lib/ui/Popover.tsx +29 -0
  1573. package/src/lib/ui/Progress.tsx +26 -0
  1574. package/src/lib/ui/RadioGroup.tsx +42 -0
  1575. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1576. package/src/lib/ui/ScrollArea.tsx +46 -0
  1577. package/src/lib/ui/Secret.tsx +106 -0
  1578. package/src/lib/ui/Select.tsx +157 -0
  1579. package/src/lib/ui/Skeleton.tsx +15 -0
  1580. package/src/lib/ui/Slider.tsx +26 -0
  1581. package/src/lib/ui/Stepper.tsx +8 -0
  1582. package/src/lib/ui/Switch.tsx +27 -0
  1583. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1584. package/src/lib/ui/Tabs.tsx +2 -2
  1585. package/src/lib/ui/Textarea.tsx +23 -0
  1586. package/src/lib/ui/Toggle.tsx +43 -0
  1587. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1588. package/src/lib/ui/Tooltip.tsx +43 -0
  1589. package/src/lib/ui/Value.tsx +42 -0
  1590. package/src/lib/ui/util.tsx +3 -0
  1591. package/src/lib/util/MdxComponents.tsx +60 -26
  1592. package/src/lib/util/cn.ts +1 -1
  1593. package/src/lib/util/createVariantComponent.tsx +3 -3
  1594. package/src/lib/util/detectOS.ts +9 -0
  1595. package/src/lib/util/ensureArray.ts +3 -0
  1596. package/src/lib/util/groupBy.ts +1 -0
  1597. package/src/lib/util/humanFileSize.test.ts +24 -0
  1598. package/src/lib/util/humanFileSize.ts +15 -0
  1599. package/src/lib/util/invariant.ts +18 -3
  1600. package/src/lib/util/joinPath.tsx +3 -0
  1601. package/src/lib/util/joinUrl.test.ts +62 -0
  1602. package/src/lib/util/joinUrl.ts +57 -0
  1603. package/src/lib/util/os.ts +18 -0
  1604. package/src/lib/util/pastellize.ts +2 -2
  1605. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1606. package/src/lib/util/traverse.ts +34 -0
  1607. package/src/lib/util/types.ts +7 -0
  1608. package/src/lib/util/url.test.ts +51 -0
  1609. package/src/lib/util/url.ts +18 -0
  1610. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1611. package/src/lib/util/useExposedProps.tsx +27 -0
  1612. package/src/lib/util/useIsomorphicLayoutEffect.ts +6 -0
  1613. package/src/lib/util/useLatest.ts +18 -0
  1614. package/src/lib/util/useOnScreen.ts +34 -0
  1615. package/src/lib/util/useScrollToAnchor.ts +51 -40
  1616. package/src/lib/util/useScrollToTop.ts +9 -4
  1617. package/src/shiki/langs/abap.js +1 -0
  1618. package/src/shiki/langs/actionscript-3.js +1 -0
  1619. package/src/shiki/langs/ada.js +1 -0
  1620. package/src/shiki/langs/angular-expression.js +1 -0
  1621. package/src/shiki/langs/angular-html.js +1 -0
  1622. package/src/shiki/langs/angular-inline-style.js +1 -0
  1623. package/src/shiki/langs/angular-inline-template.js +1 -0
  1624. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1625. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1626. package/src/shiki/langs/angular-template.js +1 -0
  1627. package/src/shiki/langs/angular-ts.js +1 -0
  1628. package/src/shiki/langs/apache.js +1 -0
  1629. package/src/shiki/langs/apex.js +1 -0
  1630. package/src/shiki/langs/apl.js +1 -0
  1631. package/src/shiki/langs/applescript.js +1 -0
  1632. package/src/shiki/langs/ara.js +1 -0
  1633. package/src/shiki/langs/asciidoc.js +1 -0
  1634. package/src/shiki/langs/asm.js +1 -0
  1635. package/src/shiki/langs/astro.js +1 -0
  1636. package/src/shiki/langs/awk.js +1 -0
  1637. package/src/shiki/langs/ballerina.js +1 -0
  1638. package/src/shiki/langs/bat.js +1 -0
  1639. package/src/shiki/langs/beancount.js +1 -0
  1640. package/src/shiki/langs/berry.js +1 -0
  1641. package/src/shiki/langs/bibtex.js +1 -0
  1642. package/src/shiki/langs/bicep.js +1 -0
  1643. package/src/shiki/langs/blade.js +1 -0
  1644. package/src/shiki/langs/bsl.js +1 -0
  1645. package/src/shiki/langs/c.js +1 -0
  1646. package/src/shiki/langs/cadence.js +1 -0
  1647. package/src/shiki/langs/cairo.js +1 -0
  1648. package/src/shiki/langs/clarity.js +1 -0
  1649. package/src/shiki/langs/clojure.js +1 -0
  1650. package/src/shiki/langs/cmake.js +1 -0
  1651. package/src/shiki/langs/cobol.js +1 -0
  1652. package/src/shiki/langs/codeowners.js +1 -0
  1653. package/src/shiki/langs/codeql.js +1 -0
  1654. package/src/shiki/langs/coffee.js +1 -0
  1655. package/src/shiki/langs/common-lisp.js +1 -0
  1656. package/src/shiki/langs/coq.js +1 -0
  1657. package/src/shiki/langs/cpp-macro.js +1 -0
  1658. package/src/shiki/langs/cpp.js +1 -0
  1659. package/src/shiki/langs/crystal.js +1 -0
  1660. package/src/shiki/langs/csharp.js +1 -0
  1661. package/src/shiki/langs/css.js +1 -0
  1662. package/src/shiki/langs/csv.js +1 -0
  1663. package/src/shiki/langs/cue.js +1 -0
  1664. package/src/shiki/langs/cypher.js +1 -0
  1665. package/src/shiki/langs/d.js +1 -0
  1666. package/src/shiki/langs/dart.js +1 -0
  1667. package/src/shiki/langs/dax.js +1 -0
  1668. package/src/shiki/langs/desktop.js +1 -0
  1669. package/src/shiki/langs/diff.js +1 -0
  1670. package/src/shiki/langs/docker.js +1 -0
  1671. package/src/shiki/langs/dotenv.js +1 -0
  1672. package/src/shiki/langs/dream-maker.js +1 -0
  1673. package/src/shiki/langs/edge.js +1 -0
  1674. package/src/shiki/langs/elixir.js +1 -0
  1675. package/src/shiki/langs/elm.js +1 -0
  1676. package/src/shiki/langs/emacs-lisp.js +1 -0
  1677. package/src/shiki/langs/erb.js +1 -0
  1678. package/src/shiki/langs/erlang.js +1 -0
  1679. package/src/shiki/langs/es-tag-css.js +1 -0
  1680. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1681. package/src/shiki/langs/es-tag-html.js +1 -0
  1682. package/src/shiki/langs/es-tag-sql.js +1 -0
  1683. package/src/shiki/langs/es-tag-xml.js +1 -0
  1684. package/src/shiki/langs/fennel.js +1 -0
  1685. package/src/shiki/langs/fish.js +1 -0
  1686. package/src/shiki/langs/fluent.js +1 -0
  1687. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1688. package/src/shiki/langs/fortran-free-form.js +1 -0
  1689. package/src/shiki/langs/fsharp.js +1 -0
  1690. package/src/shiki/langs/gdresource.js +1 -0
  1691. package/src/shiki/langs/gdscript.js +1 -0
  1692. package/src/shiki/langs/gdshader.js +1 -0
  1693. package/src/shiki/langs/genie.js +1 -0
  1694. package/src/shiki/langs/gherkin.js +1 -0
  1695. package/src/shiki/langs/git-commit.js +1 -0
  1696. package/src/shiki/langs/git-rebase.js +1 -0
  1697. package/src/shiki/langs/gleam.js +1 -0
  1698. package/src/shiki/langs/glimmer-js.js +1 -0
  1699. package/src/shiki/langs/glimmer-ts.js +1 -0
  1700. package/src/shiki/langs/glsl.js +1 -0
  1701. package/src/shiki/langs/gnuplot.js +1 -0
  1702. package/src/shiki/langs/go.js +1 -0
  1703. package/src/shiki/langs/graphql.js +1 -0
  1704. package/src/shiki/langs/groovy.js +1 -0
  1705. package/src/shiki/langs/hack.js +1 -0
  1706. package/src/shiki/langs/haml.js +1 -0
  1707. package/src/shiki/langs/handlebars.js +1 -0
  1708. package/src/shiki/langs/haskell.js +1 -0
  1709. package/src/shiki/langs/haxe.js +1 -0
  1710. package/src/shiki/langs/hcl.js +1 -0
  1711. package/src/shiki/langs/hjson.js +1 -0
  1712. package/src/shiki/langs/hlsl.js +1 -0
  1713. package/src/shiki/langs/html-derivative.js +1 -0
  1714. package/src/shiki/langs/html.js +1 -0
  1715. package/src/shiki/langs/http.js +1 -0
  1716. package/src/shiki/langs/hxml.js +1 -0
  1717. package/src/shiki/langs/hy.js +1 -0
  1718. package/src/shiki/langs/imba.js +1 -0
  1719. package/src/shiki/langs/ini.js +1 -0
  1720. package/src/shiki/langs/java.js +1 -0
  1721. package/src/shiki/langs/javascript.js +1 -0
  1722. package/src/shiki/langs/jinja-html.js +1 -0
  1723. package/src/shiki/langs/jinja.js +1 -0
  1724. package/src/shiki/langs/jison.js +1 -0
  1725. package/src/shiki/langs/json.js +1 -0
  1726. package/src/shiki/langs/json5.js +1 -0
  1727. package/src/shiki/langs/jsonc.js +1 -0
  1728. package/src/shiki/langs/jsonl.js +1 -0
  1729. package/src/shiki/langs/jsonnet.js +1 -0
  1730. package/src/shiki/langs/jssm.js +1 -0
  1731. package/src/shiki/langs/jsx.js +1 -0
  1732. package/src/shiki/langs/julia.js +1 -0
  1733. package/src/shiki/langs/kotlin.js +1 -0
  1734. package/src/shiki/langs/kusto.js +1 -0
  1735. package/src/shiki/langs/latex.js +1 -0
  1736. package/src/shiki/langs/lean.js +1 -0
  1737. package/src/shiki/langs/less.js +1 -0
  1738. package/src/shiki/langs/liquid.js +1 -0
  1739. package/src/shiki/langs/llvm.js +1 -0
  1740. package/src/shiki/langs/log.js +1 -0
  1741. package/src/shiki/langs/logo.js +1 -0
  1742. package/src/shiki/langs/lua.js +1 -0
  1743. package/src/shiki/langs/luau.js +1 -0
  1744. package/src/shiki/langs/make.js +1 -0
  1745. package/src/shiki/langs/markdown-vue.js +1 -0
  1746. package/src/shiki/langs/markdown.js +1 -0
  1747. package/src/shiki/langs/marko.js +1 -0
  1748. package/src/shiki/langs/matlab.js +1 -0
  1749. package/src/shiki/langs/mdc.js +1 -0
  1750. package/src/shiki/langs/mdx.js +1 -0
  1751. package/src/shiki/langs/mermaid.js +1 -0
  1752. package/src/shiki/langs/mipsasm.js +1 -0
  1753. package/src/shiki/langs/mojo.js +1 -0
  1754. package/src/shiki/langs/move.js +1 -0
  1755. package/src/shiki/langs/narrat.js +1 -0
  1756. package/src/shiki/langs/nextflow.js +1 -0
  1757. package/src/shiki/langs/nginx.js +1 -0
  1758. package/src/shiki/langs/nim.js +1 -0
  1759. package/src/shiki/langs/nix.js +1 -0
  1760. package/src/shiki/langs/nushell.js +1 -0
  1761. package/src/shiki/langs/objective-c.js +1 -0
  1762. package/src/shiki/langs/objective-cpp.js +1 -0
  1763. package/src/shiki/langs/ocaml.js +1 -0
  1764. package/src/shiki/langs/pascal.js +1 -0
  1765. package/src/shiki/langs/perl.js +1 -0
  1766. package/src/shiki/langs/php.js +1 -0
  1767. package/src/shiki/langs/plsql.js +1 -0
  1768. package/src/shiki/langs/po.js +1 -0
  1769. package/src/shiki/langs/polar.js +1 -0
  1770. package/src/shiki/langs/postcss.js +1 -0
  1771. package/src/shiki/langs/powerquery.js +1 -0
  1772. package/src/shiki/langs/powershell.js +1 -0
  1773. package/src/shiki/langs/prisma.js +1 -0
  1774. package/src/shiki/langs/prolog.js +1 -0
  1775. package/src/shiki/langs/proto.js +1 -0
  1776. package/src/shiki/langs/pug.js +1 -0
  1777. package/src/shiki/langs/puppet.js +1 -0
  1778. package/src/shiki/langs/purescript.js +1 -0
  1779. package/src/shiki/langs/python.js +1 -0
  1780. package/src/shiki/langs/qml.js +1 -0
  1781. package/src/shiki/langs/qmldir.js +1 -0
  1782. package/src/shiki/langs/qss.js +1 -0
  1783. package/src/shiki/langs/r.js +1 -0
  1784. package/src/shiki/langs/racket.js +1 -0
  1785. package/src/shiki/langs/raku.js +1 -0
  1786. package/src/shiki/langs/razor.js +1 -0
  1787. package/src/shiki/langs/reg.js +1 -0
  1788. package/src/shiki/langs/regexp.js +1 -0
  1789. package/src/shiki/langs/rel.js +1 -0
  1790. package/src/shiki/langs/riscv.js +1 -0
  1791. package/src/shiki/langs/rst.js +1 -0
  1792. package/src/shiki/langs/ruby.js +1 -0
  1793. package/src/shiki/langs/rust.js +1 -0
  1794. package/src/shiki/langs/sas.js +1 -0
  1795. package/src/shiki/langs/sass.js +1 -0
  1796. package/src/shiki/langs/scala.js +1 -0
  1797. package/src/shiki/langs/scheme.js +1 -0
  1798. package/src/shiki/langs/scss.js +1 -0
  1799. package/src/shiki/langs/sdbl.js +1 -0
  1800. package/src/shiki/langs/shaderlab.js +1 -0
  1801. package/src/shiki/langs/shellscript.js +1 -0
  1802. package/src/shiki/langs/shellsession.js +1 -0
  1803. package/src/shiki/langs/smalltalk.js +1 -0
  1804. package/src/shiki/langs/solidity.js +1 -0
  1805. package/src/shiki/langs/soy.js +1 -0
  1806. package/src/shiki/langs/sparql.js +1 -0
  1807. package/src/shiki/langs/splunk.js +1 -0
  1808. package/src/shiki/langs/sql.js +1 -0
  1809. package/src/shiki/langs/ssh-config.js +1 -0
  1810. package/src/shiki/langs/stata.js +1 -0
  1811. package/src/shiki/langs/stylus.js +1 -0
  1812. package/src/shiki/langs/svelte.js +1 -0
  1813. package/src/shiki/langs/swift.js +1 -0
  1814. package/src/shiki/langs/system-verilog.js +1 -0
  1815. package/src/shiki/langs/systemd.js +1 -0
  1816. package/src/shiki/langs/talonscript.js +1 -0
  1817. package/src/shiki/langs/tasl.js +1 -0
  1818. package/src/shiki/langs/tcl.js +1 -0
  1819. package/src/shiki/langs/templ.js +1 -0
  1820. package/src/shiki/langs/terraform.js +1 -0
  1821. package/src/shiki/langs/tex.js +1 -0
  1822. package/src/shiki/langs/toml.js +1 -0
  1823. package/src/shiki/langs/ts-tags.js +1 -0
  1824. package/src/shiki/langs/tsv.js +1 -0
  1825. package/src/shiki/langs/tsx.js +1 -0
  1826. package/src/shiki/langs/turtle.js +1 -0
  1827. package/src/shiki/langs/twig.js +1 -0
  1828. package/src/shiki/langs/typescript.js +1 -0
  1829. package/src/shiki/langs/typespec.js +1 -0
  1830. package/src/shiki/langs/typst.js +1 -0
  1831. package/src/shiki/langs/v.js +1 -0
  1832. package/src/shiki/langs/vala.js +1 -0
  1833. package/src/shiki/langs/vb.js +1 -0
  1834. package/src/shiki/langs/verilog.js +1 -0
  1835. package/src/shiki/langs/vhdl.js +1 -0
  1836. package/src/shiki/langs/viml.js +1 -0
  1837. package/src/shiki/langs/vue-directives.js +1 -0
  1838. package/src/shiki/langs/vue-html.js +1 -0
  1839. package/src/shiki/langs/vue-interpolations.js +1 -0
  1840. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1841. package/src/shiki/langs/vue-vine.js +1 -0
  1842. package/src/shiki/langs/vue.js +1 -0
  1843. package/src/shiki/langs/vyper.js +1 -0
  1844. package/src/shiki/langs/wasm.js +1 -0
  1845. package/src/shiki/langs/wenyan.js +1 -0
  1846. package/src/shiki/langs/wgsl.js +1 -0
  1847. package/src/shiki/langs/wikitext.js +1 -0
  1848. package/src/shiki/langs/wit.js +1 -0
  1849. package/src/shiki/langs/wolfram.js +1 -0
  1850. package/src/shiki/langs/xml.js +1 -0
  1851. package/src/shiki/langs/xsl.js +1 -0
  1852. package/src/shiki/langs/yaml.js +1 -0
  1853. package/src/shiki/langs/zenscript.js +1 -0
  1854. package/src/shiki/langs/zig.js +1 -0
  1855. package/src/shiki/themes/andromeeda.js +1 -0
  1856. package/src/shiki/themes/aurora-x.js +1 -0
  1857. package/src/shiki/themes/ayu-dark.js +1 -0
  1858. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1859. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1860. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1861. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1862. package/src/shiki/themes/dark-plus.js +1 -0
  1863. package/src/shiki/themes/dracula-soft.js +1 -0
  1864. package/src/shiki/themes/dracula.js +1 -0
  1865. package/src/shiki/themes/everforest-dark.js +1 -0
  1866. package/src/shiki/themes/everforest-light.js +1 -0
  1867. package/src/shiki/themes/github-dark-default.js +1 -0
  1868. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1869. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1870. package/src/shiki/themes/github-dark.js +1 -0
  1871. package/src/shiki/themes/github-light-default.js +1 -0
  1872. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1873. package/src/shiki/themes/github-light.js +1 -0
  1874. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1875. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1876. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1877. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1878. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1879. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1880. package/src/shiki/themes/houston.js +1 -0
  1881. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1882. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1883. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1884. package/src/shiki/themes/laserwave.js +1 -0
  1885. package/src/shiki/themes/light-plus.js +1 -0
  1886. package/src/shiki/themes/material-theme-darker.js +1 -0
  1887. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1888. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1889. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1890. package/src/shiki/themes/material-theme.js +1 -0
  1891. package/src/shiki/themes/min-dark.js +1 -0
  1892. package/src/shiki/themes/min-light.js +1 -0
  1893. package/src/shiki/themes/monokai.js +1 -0
  1894. package/src/shiki/themes/night-owl.js +1 -0
  1895. package/src/shiki/themes/nord.js +1 -0
  1896. package/src/shiki/themes/one-dark-pro.js +1 -0
  1897. package/src/shiki/themes/one-light.js +1 -0
  1898. package/src/shiki/themes/plastic.js +1 -0
  1899. package/src/shiki/themes/poimandres.js +1 -0
  1900. package/src/shiki/themes/red.js +1 -0
  1901. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1902. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1903. package/src/shiki/themes/rose-pine.js +1 -0
  1904. package/src/shiki/themes/slack-dark.js +1 -0
  1905. package/src/shiki/themes/slack-ochin.js +1 -0
  1906. package/src/shiki/themes/snazzy-light.js +1 -0
  1907. package/src/shiki/themes/solarized-dark.js +1 -0
  1908. package/src/shiki/themes/solarized-light.js +1 -0
  1909. package/src/shiki/themes/synthwave-84.js +1 -0
  1910. package/src/shiki/themes/tokyo-night.js +1 -0
  1911. package/src/shiki/themes/vesper.js +1 -0
  1912. package/src/shiki/themes/vitesse-black.js +1 -0
  1913. package/src/shiki/themes/vitesse-dark.js +1 -0
  1914. package/src/shiki/themes/vitesse-light.js +1 -0
  1915. package/LICENSE.md +0 -9
  1916. package/client.d.ts +0 -1
  1917. package/dist/app/tailwind.d.ts +0 -3
  1918. package/dist/app/tailwind.js +0 -65
  1919. package/dist/app/tailwind.js.map +0 -1
  1920. package/dist/config/validators/InputSidebarSchema.d.ts +0 -186
  1921. package/dist/config/validators/InputSidebarSchema.js +0 -73
  1922. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1923. package/dist/config/validators/SidebarSchema.d.ts +0 -23
  1924. package/dist/config/validators/SidebarSchema.js +0 -82
  1925. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1926. package/dist/internal.d.ts +0 -1
  1927. package/dist/internal.js +0 -2
  1928. package/dist/internal.js.map +0 -1
  1929. package/dist/lib/components/DevPortal.d.ts +0 -7
  1930. package/dist/lib/components/DevPortal.js +0 -54
  1931. package/dist/lib/components/DevPortal.js.map +0 -1
  1932. package/dist/lib/components/Dialog.d.ts +0 -19
  1933. package/dist/lib/components/Dialog.js +0 -23
  1934. package/dist/lib/components/Dialog.js.map +0 -1
  1935. package/dist/lib/components/Select.js +0 -27
  1936. package/dist/lib/components/Select.js.map +0 -1
  1937. package/dist/lib/components/SlotletProvider.d.ts +0 -12
  1938. package/dist/lib/components/SlotletProvider.js +0 -20
  1939. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1940. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1941. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1942. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1943. package/dist/lib/components/context/PluginSystem.js +0 -2
  1944. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1945. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1946. package/dist/lib/components/context/ThemeContext.js +0 -7
  1947. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1948. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1949. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1950. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1951. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  1952. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1953. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1954. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  1955. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1956. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1957. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1958. package/dist/lib/components/navigation/SidebarCategory.js +0 -41
  1959. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1960. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  1961. package/dist/lib/components/navigation/SidebarItem.js +0 -43
  1962. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1963. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1964. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1965. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1966. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1967. package/dist/lib/core/DevPortalContext.js +0 -49
  1968. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1969. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1970. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1971. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1972. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1973. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1974. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1975. package/dist/lib/plugins/openapi/Route.js +0 -8
  1976. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1977. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1978. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1979. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1980. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1981. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1982. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1983. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1984. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1985. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1986. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1987. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1988. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1989. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1990. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1991. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1992. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1993. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1994. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -9
  1995. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1996. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1997. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -6
  1998. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1999. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  2000. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -7
  2001. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  2002. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  2003. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  2004. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  2005. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  2006. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  2007. package/dist/lib/plugins/openapi-worker.js +0 -2
  2008. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  2009. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  2010. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  2011. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  2012. package/dist/lib/themeToggle.d.ts +0 -1
  2013. package/dist/lib/themeToggle.js +0 -7
  2014. package/dist/lib/themeToggle.js.map +0 -1
  2015. package/dist/lib/ui/Note.d.ts +0 -8
  2016. package/dist/lib/ui/Note.js +0 -23
  2017. package/dist/lib/ui/Note.js.map +0 -1
  2018. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  2019. package/dist/lib/util/createWaitForNotify.js +0 -15
  2020. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  2021. package/dist/vite/plugin-custom-css.d.ts +0 -6
  2022. package/dist/vite/plugin-custom-css.js +0 -55
  2023. package/dist/vite/plugin-custom-css.js.map +0 -1
  2024. package/dist/vite/plugin-docs.test.js +0 -30
  2025. package/dist/vite/plugin-docs.test.js.map +0 -1
  2026. package/dist/vite/plugin-html-transform.d.ts +0 -2
  2027. package/dist/vite/plugin-html-transform.js +0 -15
  2028. package/dist/vite/plugin-html-transform.js.map +0 -1
  2029. package/dist/vite/plugin-sidebar.d.ts +0 -3
  2030. package/dist/vite/plugin-sidebar.js +0 -46
  2031. package/dist/vite/plugin-sidebar.js.map +0 -1
  2032. package/dist/vite/prerender.d.ts +0 -17
  2033. package/dist/vite/prerender.js +0 -87
  2034. package/dist/vite/prerender.js.map +0 -1
  2035. package/lib/AuthenticationPlugin-D_5jC4vE.js +0 -55
  2036. package/lib/AuthenticationPlugin-D_5jC4vE.js.map +0 -1
  2037. package/lib/CategoryHeading-C7VfgpFZ.js +0 -10
  2038. package/lib/CategoryHeading-C7VfgpFZ.js.map +0 -1
  2039. package/lib/DeveloperHint-CNyuFROc.js +0 -16
  2040. package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
  2041. package/lib/ErrorPage-CUz-Zzmx.js +0 -16
  2042. package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
  2043. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  2044. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  2045. package/lib/Input-CYTkk51A.js +0 -2229
  2046. package/lib/Input-CYTkk51A.js.map +0 -1
  2047. package/lib/Markdown-C-0TaxoY.js +0 -20441
  2048. package/lib/Markdown-C-0TaxoY.js.map +0 -1
  2049. package/lib/MdxPage-Cbj8ILOL.js +0 -172
  2050. package/lib/MdxPage-Cbj8ILOL.js.map +0 -1
  2051. package/lib/OperationList-Dto8Wvgo.js +0 -601
  2052. package/lib/OperationList-Dto8Wvgo.js.map +0 -1
  2053. package/lib/Route-DLH-PALM.js +0 -13
  2054. package/lib/Route-DLH-PALM.js.map +0 -1
  2055. package/lib/SidebarBadge-BWvFQTc1.js +0 -503
  2056. package/lib/SidebarBadge-BWvFQTc1.js.map +0 -1
  2057. package/lib/SlotletProvider-BGEs7yyu.js +0 -240
  2058. package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
  2059. package/lib/Spinner-3cQDBVGr.js +0 -7
  2060. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  2061. package/lib/ZudokuContext-uV_XfHPK.js +0 -1173
  2062. package/lib/ZudokuContext-uV_XfHPK.js.map +0 -1
  2063. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  2064. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  2065. package/lib/assets/worker-Bf8vjASY.js +0 -18197
  2066. package/lib/assets/worker-Bf8vjASY.js.map +0 -1
  2067. package/lib/index-CkwDvuPt.js +0 -4820
  2068. package/lib/index-CkwDvuPt.js.map +0 -1
  2069. package/lib/index-D06ATMgg.js +0 -2094
  2070. package/lib/index-D06ATMgg.js.map +0 -1
  2071. package/lib/index-DJqnphbT.js +0 -35
  2072. package/lib/index-DJqnphbT.js.map +0 -1
  2073. package/lib/index-LstIRx3V.js +0 -124
  2074. package/lib/index-LstIRx3V.js.map +0 -1
  2075. package/lib/index-SrtqdZ3j.js +0 -1781
  2076. package/lib/index-SrtqdZ3j.js.map +0 -1
  2077. package/lib/index-SyxHzsgJ.js +0 -2867
  2078. package/lib/index-SyxHzsgJ.js.map +0 -1
  2079. package/lib/index-aHWE7ArR.js +0 -5964
  2080. package/lib/index-aHWE7ArR.js.map +0 -1
  2081. package/lib/joinPath-B7kNnUX4.js +0 -8
  2082. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  2083. package/lib/jsx-runtime-B6kdoens.js +0 -635
  2084. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  2085. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  2086. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  2087. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  2088. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  2089. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  2090. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  2091. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  2092. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  2093. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  2094. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  2095. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  2096. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  2097. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  2098. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  2099. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  2100. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  2101. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  2102. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  2103. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  2104. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  2105. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  2106. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  2107. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  2108. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  2109. package/lib/router-Oe6YmY6B.js +0 -3024
  2110. package/lib/router-Oe6YmY6B.js.map +0 -1
  2111. package/lib/state-CsuHT8ZO.js +0 -183
  2112. package/lib/state-CsuHT8ZO.js.map +0 -1
  2113. package/lib/urql-core-KJnLL26g.js +0 -1455
  2114. package/lib/urql-core-KJnLL26g.js.map +0 -1
  2115. package/lib/utils-CCcr3AZm.js +0 -749
  2116. package/lib/utils-CCcr3AZm.js.map +0 -1
  2117. package/lib/zudoku.openapi-worker.js +0 -16341
  2118. package/lib/zudoku.openapi-worker.js.map +0 -1
  2119. package/src/app/tailwind.ts +0 -68
  2120. package/src/lib/components/DevPortal.tsx +0 -111
  2121. package/src/lib/components/Dialog.tsx +0 -119
  2122. package/src/lib/components/Select.tsx +0 -157
  2123. package/src/lib/components/SlotletProvider.tsx +0 -46
  2124. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  2125. package/src/lib/components/context/PluginSystem.ts +0 -0
  2126. package/src/lib/components/context/ThemeContext.tsx +0 -8
  2127. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  2128. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  2129. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  2130. package/src/lib/components/navigation/SidebarCategory.tsx +0 -131
  2131. package/src/lib/components/navigation/SidebarItem.tsx +0 -130
  2132. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  2133. package/src/lib/core/DevPortalContext.ts +0 -135
  2134. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  2135. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  2136. package/src/lib/plugins/openapi/Route.tsx +0 -20
  2137. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  2138. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  2139. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  2140. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  2141. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  2142. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  2143. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -47
  2144. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -54
  2145. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -30
  2146. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  2147. package/src/lib/plugins/openapi-worker.ts +0 -1
  2148. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  2149. package/src/lib/themeToggle.ts +0 -7
  2150. package/src/lib/ui/Note.tsx +0 -58
  2151. package/src/lib/util/createWaitForNotify.ts +0 -18
  2152. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  2153. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  2154. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  2155. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  2156. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,3436 +1,30 @@
1
- var Ba = Object.defineProperty;
2
- var fn = (e) => {
3
- throw TypeError(e);
4
- };
5
- var Ha = (e, t, n) => t in e ? Ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ha(e, typeof t != "symbol" ? t + "" : t, n), hn = (e, t, n) => t.has(e) || fn("Cannot " + n);
7
- var w = (e, t, n) => (hn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? fn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (hn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var ut = (e, t, n, r) => ({
9
- set _(o) {
10
- X(e, t, o, n);
11
- },
12
- get _() {
13
- return w(e, t, r);
14
- }
15
- });
16
- import { c as On, H as It, M as Ua, d as za, A as Ka, b as qa } from "./utils-CCcr3AZm.js";
17
- import { e as Qa, f as Va, R as Ga, N as Ze, L as At, g as Wa, O as In, u as Ya, b as kt } from "./index-SrtqdZ3j.js";
18
- import { E as An, S as xe, a as Xa, R as Ja } from "./SlotletProvider-BGEs7yyu.js";
19
- import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as Za, f as eo, c as kn, p as $n, A as to, d as rt, j as no, b as A, k as ro, F as ao, D as oo, C as so, P as Ke, i as $t, q as io, s as Fn, R as lo, S as co, t as uo, h as fo, r as Ln, m as ho, a as gt, u as Bn, V as Hn, n as pn, B as Pt } from "./index-SyxHzsgJ.js";
21
- import { a as O, c as Un, b as po, T as mo, d as go, V as vo, u as Ft, e as wo, C as xo } from "./Markdown-C-0TaxoY.js";
22
- import * as h from "react";
23
- import p, { StrictMode as zn, createContext as Kn, Component as yo, createElement as mn, isValidElement as bo, useState as Ie, useMemo as mt, useLayoutEffect as So, useEffect as Ce, useCallback as qn, Suspense as Qn, memo as Vn, useContext as Co, Fragment as Mo, useRef as Lt, forwardRef as Ro } from "react";
24
- import { a as Bt } from "./index-DJqnphbT.js";
25
- import { B as Eo } from "./router-Oe6YmY6B.js";
26
- import { a as jt, R as Do, T as Po, C as jo } from "./index-LstIRx3V.js";
27
- import { S as Gn, f as Wn, Q as No, n as se, m as gn, g as vn, i as be, j as To, k as _o, l as Oo, o as Io, p as wn, r as xn, q as Ao, h as yn, t as bn, v as ko, u as qe, b as $o, Z as Fo, w as Lo, c as Yn, x as Bo } from "./ZudokuContext-uV_XfHPK.js";
28
- import { j as Ht } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Xn, CheckIcon as Ho, DotIcon as Uo, CircleXIcon as zo, SearchIcon as Ko, MenuIcon as qo, MoonStarIcon as Qo, SunIcon as Vo, ExternalLinkIcon as Go, PanelLeftIcon as Wo } from "lucide-react";
30
- import { c as Jn, P as xt, R as Yo, I as Xo, O as Jo, C as Zo, T as es, a as ts, b as ns, D as rs, d as as, e as os, S as St } from "./SidebarBadge-BWvFQTc1.js";
31
- import { S as ss } from "./Spinner-3cQDBVGr.js";
32
- function is({ error: e }) {
33
- return /* @__PURE__ */ a.jsx(An, { error: e });
34
- }
35
- var at = {};
36
- const ls = /* @__PURE__ */ Bt(Eo), cs = /* @__PURE__ */ Bt(Qa), us = /* @__PURE__ */ Bt(Va);
37
- Object.defineProperty(at, "__esModule", { value: !0 });
38
- var ds = p, we = ls, Ut = cs, Se = us;
39
- function fs(e) {
40
- if (e && e.__esModule) return e;
41
- var t = /* @__PURE__ */ Object.create(null);
42
- return e && Object.keys(e).forEach(function(n) {
43
- if (n !== "default") {
44
- var r = Object.getOwnPropertyDescriptor(e, n);
45
- Object.defineProperty(t, n, r.get ? r : {
46
- enumerable: !0,
47
- get: function() {
48
- return e[n];
49
- }
50
- });
51
- }
52
- }), t.default = e, Object.freeze(t);
53
- }
54
- var ge = /* @__PURE__ */ fs(ds);
55
- function hs({
56
- basename: e,
57
- children: t,
58
- location: n = "/",
59
- future: r
60
- }) {
61
- typeof n == "string" && (n = Se.parsePath(n));
62
- let o = we.Action.Pop, s = {
63
- pathname: n.pathname || "/",
64
- search: n.search || "",
65
- hash: n.hash || "",
66
- state: n.state != null ? n.state : null,
67
- key: n.key || "default"
68
- }, i = Zn();
69
- return /* @__PURE__ */ ge.createElement(Se.Router, {
70
- basename: e,
71
- children: t,
72
- location: s,
73
- navigationType: o,
74
- navigator: i,
75
- future: r,
76
- static: !0
77
- });
78
- }
79
- function ps({
80
- context: e,
81
- router: t,
82
- hydrate: n = !0,
83
- nonce: r
84
- }) {
85
- t && e || (process.env.NODE_ENV !== "production" ? we.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : we.UNSAFE_invariant(!1));
86
- let o = {
87
- router: t,
88
- navigator: Zn(),
89
- static: !0,
90
- staticContext: e,
91
- basename: e.basename || "/"
92
- }, s = /* @__PURE__ */ new Map(), i = "";
93
- if (n !== !1) {
94
- let u = {
95
- loaderData: e.loaderData,
96
- actionData: e.actionData,
97
- errors: gs(e.errors)
98
- };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${Ss(JSON.stringify(JSON.stringify(u)))});`;
100
- }
101
- let {
102
- state: l
103
- } = o.router;
104
- return /* @__PURE__ */ ge.createElement(ge.Fragment, null, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterContext.Provider, {
105
- value: o
106
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterStateContext.Provider, {
107
- value: l
108
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_FetchersContext.Provider, {
109
- value: s
110
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_ViewTransitionContext.Provider, {
111
- value: {
112
- isTransitioning: !1
113
- }
114
- }, /* @__PURE__ */ ge.createElement(Se.Router, {
115
- basename: o.basename,
116
- location: l.location,
117
- navigationType: l.historyAction,
118
- navigator: o.navigator,
119
- static: o.static,
120
- future: {
121
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
- }
123
- }, /* @__PURE__ */ ge.createElement(ms, {
124
- routes: t.routes,
125
- future: t.future,
126
- state: l
127
- })))))), i ? /* @__PURE__ */ ge.createElement("script", {
128
- suppressHydrationWarning: !0,
129
- nonce: r,
130
- dangerouslySetInnerHTML: {
131
- __html: i
132
- }
133
- }) : null);
134
- }
135
- function ms({
136
- routes: e,
137
- future: t,
138
- state: n
139
- }) {
140
- return Ut.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
- }
142
- function gs(e) {
143
- if (!e) return null;
144
- let t = Object.entries(e), n = {};
145
- for (let [r, o] of t)
146
- we.isRouteErrorResponse(o) ? n[r] = {
147
- ...o,
148
- __type: "RouteErrorResponse"
149
- } : o instanceof Error ? n[r] = {
150
- message: o.message,
151
- __type: "Error",
152
- // If this is a subclass (i.e., ReferenceError), send up the type so we
153
- // can re-create the same type during hydration.
154
- ...o.name !== "Error" ? {
155
- __subType: o.name
156
- } : {}
157
- } : n[r] = o;
158
- return n;
159
- }
160
- function Zn() {
161
- return {
162
- createHref: er,
163
- encodeLocation: tr,
164
- push(e) {
165
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
166
- },
167
- replace(e) {
168
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
169
- },
170
- go(e) {
171
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
172
- },
173
- back() {
174
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
175
- },
176
- forward() {
177
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
178
- }
179
- };
180
- }
181
- function vs(e, t) {
182
- return we.createStaticHandler(e, {
183
- ...t,
184
- mapRouteProperties: Ut.UNSAFE_mapRouteProperties
185
- });
186
- }
187
- function ws(e, t, n = {}) {
188
- let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, Ut.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
189
- let u = r[l.route.id] || l.route;
190
- return {
191
- ...l,
192
- route: u
193
- };
194
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
195
- return {
196
- get basename() {
197
- return t.basename;
198
- },
199
- get future() {
200
- var l, u;
201
- return {
202
- v7_fetcherPersist: !1,
203
- v7_normalizeFormMethod: !1,
204
- v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
205
- v7_prependBasename: !1,
206
- v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
207
- v7_skipActionErrorRevalidation: !1
208
- };
209
- },
210
- get state() {
211
- return {
212
- historyAction: we.Action.Pop,
213
- location: t.location,
214
- matches: s,
215
- loaderData: t.loaderData,
216
- actionData: t.actionData,
217
- errors: t.errors,
218
- initialized: !0,
219
- navigation: we.IDLE_NAVIGATION,
220
- restoreScrollPosition: null,
221
- preventScrollReset: !1,
222
- revalidation: "idle",
223
- fetchers: /* @__PURE__ */ new Map(),
224
- blockers: /* @__PURE__ */ new Map()
225
- };
226
- },
227
- get routes() {
228
- return o;
229
- },
230
- get window() {
231
- },
232
- initialize() {
233
- throw i("initialize");
234
- },
235
- subscribe() {
236
- throw i("subscribe");
237
- },
238
- enableScrollRestoration() {
239
- throw i("enableScrollRestoration");
240
- },
241
- navigate() {
242
- throw i("navigate");
243
- },
244
- fetch() {
245
- throw i("fetch");
246
- },
247
- revalidate() {
248
- throw i("revalidate");
249
- },
250
- createHref: er,
251
- encodeLocation: tr,
252
- getFetcher() {
253
- return we.IDLE_FETCHER;
254
- },
255
- deleteFetcher() {
256
- throw i("deleteFetcher");
257
- },
258
- dispose() {
259
- throw i("dispose");
260
- },
261
- getBlocker() {
262
- return we.IDLE_BLOCKER;
263
- },
264
- deleteBlocker() {
265
- throw i("deleteBlocker");
266
- },
267
- patchRoutes() {
268
- throw i("patchRoutes");
269
- },
270
- _internalFetchControllers: /* @__PURE__ */ new Map(),
271
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
272
- _internalSetRoutes() {
273
- throw i("_internalSetRoutes");
274
- }
275
- };
276
- }
277
- function er(e) {
278
- return typeof e == "string" ? e : Se.createPath(e);
279
- }
280
- function tr(e) {
281
- let t = typeof e == "string" ? e : Se.createPath(e);
282
- t = t.replace(/ $/, "%20");
283
- let n = xs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
- return {
285
- pathname: n.pathname,
286
- search: n.search,
287
- hash: n.hash
288
- };
289
- }
290
- const xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ys = {
291
- "&": "\\u0026",
292
- ">": "\\u003e",
293
- "<": "\\u003c",
294
- "\u2028": "\\u2028",
295
- "\u2029": "\\u2029"
296
- }, bs = /[&><\u2028\u2029]/g;
297
- function Ss(e) {
298
- return e.replace(bs, (t) => ys[t]);
299
- }
300
- at.StaticRouter = hs;
301
- var Cs = at.StaticRouterProvider = ps;
302
- at.createStaticHandler = vs;
303
- at.createStaticRouter = ws;
304
- const Ms = ({
305
- router: e,
306
- hydrate: t = !1
307
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Ga, { router: e }) }) }) }), Rs = ({
308
- router: e,
309
- context: t,
310
- helmetContext: n
311
- }) => /* @__PURE__ */ a.jsx(zn, { children: /* @__PURE__ */ a.jsx(On, { context: n, children: /* @__PURE__ */ a.jsx(Cs, { router: e, context: t }) }) });
312
- var ve, Nn, Es = (Nn = class extends Gn {
313
- constructor(t = {}) {
314
- super();
315
- ce(this, ve);
316
- this.config = t, X(this, ve, /* @__PURE__ */ new Map());
317
- }
318
- build(t, n, r) {
319
- const o = n.queryKey, s = n.queryHash ?? Wn(o, n);
320
- let i = this.get(s);
321
- return i || (i = new No({
322
- cache: this,
323
- queryKey: o,
324
- queryHash: s,
325
- options: t.defaultQueryOptions(n),
326
- state: r,
327
- defaultOptions: t.getQueryDefaults(o)
328
- }), this.add(i)), i;
329
- }
330
- add(t) {
331
- w(this, ve).has(t.queryHash) || (w(this, ve).set(t.queryHash, t), this.notify({
332
- type: "added",
333
- query: t
334
- }));
335
- }
336
- remove(t) {
337
- const n = w(this, ve).get(t.queryHash);
338
- n && (t.destroy(), n === t && w(this, ve).delete(t.queryHash), this.notify({ type: "removed", query: t }));
339
- }
340
- clear() {
341
- se.batch(() => {
342
- this.getAll().forEach((t) => {
343
- this.remove(t);
344
- });
345
- });
346
- }
347
- get(t) {
348
- return w(this, ve).get(t);
349
- }
350
- getAll() {
351
- return [...w(this, ve).values()];
352
- }
353
- find(t) {
354
- const n = { exact: !0, ...t };
355
- return this.getAll().find(
356
- (r) => gn(n, r)
357
- );
358
- }
359
- findAll(t = {}) {
360
- const n = this.getAll();
361
- return Object.keys(t).length > 0 ? n.filter((r) => gn(t, r)) : n;
362
- }
363
- notify(t) {
364
- se.batch(() => {
365
- this.listeners.forEach((n) => {
366
- n(t);
367
- });
368
- });
369
- }
370
- onFocus() {
371
- se.batch(() => {
372
- this.getAll().forEach((t) => {
373
- t.onFocus();
374
- });
375
- });
376
- }
377
- onOnline() {
378
- se.batch(() => {
379
- this.getAll().forEach((t) => {
380
- t.onOnline();
381
- });
382
- });
383
- }
384
- }, ve = new WeakMap(), Nn), oe, nt, Tn, Ds = (Tn = class extends Gn {
385
- constructor(t = {}) {
386
- super();
387
- ce(this, oe);
388
- ce(this, nt);
389
- this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
390
- }
391
- build(t, n, r) {
392
- const o = new Za({
393
- mutationCache: this,
394
- mutationId: ++ut(this, nt)._,
395
- options: t.defaultMutationOptions(n),
396
- state: r
397
- });
398
- return this.add(o), o;
399
- }
400
- add(t) {
401
- const n = dt(t), r = w(this, oe).get(n) ?? [];
402
- r.push(t), w(this, oe).set(n, r), this.notify({ type: "added", mutation: t });
403
- }
404
- remove(t) {
405
- var r;
406
- const n = dt(t);
407
- if (w(this, oe).has(n)) {
408
- const o = (r = w(this, oe).get(n)) == null ? void 0 : r.filter((s) => s !== t);
409
- o && (o.length === 0 ? w(this, oe).delete(n) : w(this, oe).set(n, o));
410
- }
411
- this.notify({ type: "removed", mutation: t });
412
- }
413
- canRun(t) {
414
- var r;
415
- const n = (r = w(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
416
- return !n || n === t;
417
- }
418
- runNext(t) {
419
- var r;
420
- const n = (r = w(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
421
- return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
422
- }
423
- clear() {
424
- se.batch(() => {
425
- this.getAll().forEach((t) => {
426
- this.remove(t);
427
- });
428
- });
429
- }
430
- getAll() {
431
- return [...w(this, oe).values()].flat();
432
- }
433
- find(t) {
434
- const n = { exact: !0, ...t };
435
- return this.getAll().find(
436
- (r) => vn(n, r)
437
- );
438
- }
439
- findAll(t = {}) {
440
- return this.getAll().filter((n) => vn(t, n));
441
- }
442
- notify(t) {
443
- se.batch(() => {
444
- this.listeners.forEach((n) => {
445
- n(t);
446
- });
447
- });
448
- }
449
- resumePausedMutations() {
450
- const t = this.getAll().filter((n) => n.state.isPaused);
451
- return se.batch(
452
- () => Promise.all(
453
- t.map((n) => n.continue().catch(be))
454
- )
455
- );
456
- }
457
- }, oe = new WeakMap(), nt = new WeakMap(), Tn);
458
- function dt(e) {
459
- var t;
460
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
461
- }
462
- function Sn(e) {
463
- return {
464
- onFetch: (t, n) => {
465
- var f, c, d, v, M;
466
- const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((v = t.state.data) == null ? void 0 : v.pages) || [], i = ((M = t.state.data) == null ? void 0 : M.pageParams) || [];
467
- let l = { pages: [], pageParams: [] }, u = 0;
468
- const m = async () => {
469
- let C = !1;
470
- const _ = (P) => {
471
- Object.defineProperty(P, "signal", {
472
- enumerable: !0,
473
- get: () => (t.signal.aborted ? C = !0 : t.signal.addEventListener("abort", () => {
474
- C = !0;
475
- }), t.signal)
476
- });
477
- }, R = To(t.options, t.fetchOptions), k = async (P, g, z) => {
478
- if (C)
479
- return Promise.reject();
480
- if (g == null && P.pages.length)
481
- return Promise.resolve(P);
482
- const Z = {
483
- queryKey: t.queryKey,
484
- pageParam: g,
485
- direction: z ? "backward" : "forward",
486
- meta: t.options.meta
487
- };
488
- _(Z);
489
- const b = await R(
490
- Z
491
- ), { maxPages: j } = t.options, D = z ? _o : Oo;
492
- return {
493
- pages: D(P.pages, b, j),
494
- pageParams: D(P.pageParams, g, j)
495
- };
496
- };
497
- if (o && s.length) {
498
- const P = o === "backward", g = P ? Ps : Cn, z = {
499
- pages: s,
500
- pageParams: i
501
- }, Z = g(r, z);
502
- l = await k(z, Z, P);
503
- } else {
504
- const P = e ?? s.length;
505
- do {
506
- const g = u === 0 ? i[0] ?? r.initialPageParam : Cn(r, l);
507
- if (u > 0 && g == null)
508
- break;
509
- l = await k(l, g), u++;
510
- } while (u < P);
511
- }
512
- return l;
513
- };
514
- t.options.persister ? t.fetchFn = () => {
515
- var C, _;
516
- return (_ = (C = t.options).persister) == null ? void 0 : _.call(
517
- C,
518
- m,
519
- {
520
- queryKey: t.queryKey,
521
- meta: t.options.meta,
522
- signal: t.signal
523
- },
524
- n
525
- );
526
- } : t.fetchFn = m;
527
- }
528
- };
529
- }
530
- function Cn(e, { pages: t, pageParams: n }) {
531
- const r = t.length - 1;
532
- return t.length > 0 ? e.getNextPageParam(
533
- t[r],
534
- t,
535
- n[r],
536
- n
537
- ) : void 0;
538
- }
539
- function Ps(e, { pages: t, pageParams: n }) {
540
- var r;
541
- return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
542
- }
543
- var F, Pe, je, Be, He, Ne, Ue, ze, _n, js = (_n = class {
544
- constructor(e = {}) {
545
- ce(this, F);
546
- ce(this, Pe);
547
- ce(this, je);
548
- ce(this, Be);
549
- ce(this, He);
550
- ce(this, Ne);
551
- ce(this, Ue);
552
- ce(this, ze);
553
- X(this, F, e.queryCache || new Es()), X(this, Pe, e.mutationCache || new Ds()), X(this, je, e.defaultOptions || {}), X(this, Be, /* @__PURE__ */ new Map()), X(this, He, /* @__PURE__ */ new Map()), X(this, Ne, 0);
554
- }
555
- mount() {
556
- ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, Ue, Io.subscribe(async (e) => {
557
- e && (await this.resumePausedMutations(), w(this, F).onFocus());
558
- })), X(this, ze, wn.subscribe(async (e) => {
559
- e && (await this.resumePausedMutations(), w(this, F).onOnline());
560
- })));
561
- }
562
- unmount() {
563
- var e, t;
564
- ut(this, Ne)._--, w(this, Ne) === 0 && ((e = w(this, Ue)) == null || e.call(this), X(this, Ue, void 0), (t = w(this, ze)) == null || t.call(this), X(this, ze, void 0));
565
- }
566
- isFetching(e) {
567
- return w(this, F).findAll({ ...e, fetchStatus: "fetching" }).length;
568
- }
569
- isMutating(e) {
570
- return w(this, Pe).findAll({ ...e, status: "pending" }).length;
571
- }
572
- getQueryData(e) {
573
- var n;
574
- const t = this.defaultQueryOptions({ queryKey: e });
575
- return (n = w(this, F).get(t.queryHash)) == null ? void 0 : n.state.data;
576
- }
577
- ensureQueryData(e) {
578
- const t = this.getQueryData(e.queryKey);
579
- if (t === void 0)
580
- return this.fetchQuery(e);
581
- {
582
- const n = this.defaultQueryOptions(e), r = w(this, F).build(this, n);
583
- return e.revalidateIfStale && r.isStaleByTime(xn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
584
- }
585
- }
586
- getQueriesData(e) {
587
- return w(this, F).findAll(e).map(({ queryKey: t, state: n }) => {
588
- const r = n.data;
589
- return [t, r];
590
- });
591
- }
592
- setQueryData(e, t, n) {
593
- const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, F).get(
594
- r.queryHash
595
- ), s = o == null ? void 0 : o.state.data, i = Ao(t, s);
596
- if (i !== void 0)
597
- return w(this, F).build(this, r).setData(i, { ...n, manual: !0 });
598
- }
599
- setQueriesData(e, t, n) {
600
- return se.batch(
601
- () => w(this, F).findAll(e).map(({ queryKey: r }) => [
602
- r,
603
- this.setQueryData(r, t, n)
604
- ])
605
- );
606
- }
607
- getQueryState(e) {
608
- var n;
609
- const t = this.defaultQueryOptions({ queryKey: e });
610
- return (n = w(this, F).get(t.queryHash)) == null ? void 0 : n.state;
611
- }
612
- removeQueries(e) {
613
- const t = w(this, F);
614
- se.batch(() => {
615
- t.findAll(e).forEach((n) => {
616
- t.remove(n);
617
- });
618
- });
619
- }
620
- resetQueries(e, t) {
621
- const n = w(this, F), r = {
622
- type: "active",
623
- ...e
624
- };
625
- return se.batch(() => (n.findAll(e).forEach((o) => {
626
- o.reset();
627
- }), this.refetchQueries(r, t)));
628
- }
629
- cancelQueries(e = {}, t = {}) {
630
- const n = { revert: !0, ...t }, r = se.batch(
631
- () => w(this, F).findAll(e).map((o) => o.cancel(n))
632
- );
633
- return Promise.all(r).then(be).catch(be);
634
- }
635
- invalidateQueries(e = {}, t = {}) {
636
- return se.batch(() => {
637
- if (w(this, F).findAll(e).forEach((r) => {
638
- r.invalidate();
639
- }), e.refetchType === "none")
640
- return Promise.resolve();
641
- const n = {
642
- ...e,
643
- type: e.refetchType ?? e.type ?? "active"
644
- };
645
- return this.refetchQueries(n, t);
646
- });
647
- }
648
- refetchQueries(e = {}, t) {
649
- const n = {
650
- ...t,
651
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
652
- }, r = se.batch(
653
- () => w(this, F).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
654
- let s = o.fetch(void 0, n);
655
- return n.throwOnError || (s = s.catch(be)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
656
- })
657
- );
658
- return Promise.all(r).then(be);
659
- }
660
- fetchQuery(e) {
661
- const t = this.defaultQueryOptions(e);
662
- t.retry === void 0 && (t.retry = !1);
663
- const n = w(this, F).build(this, t);
664
- return n.isStaleByTime(
665
- xn(t.staleTime, n)
666
- ) ? n.fetch(t) : Promise.resolve(n.state.data);
667
- }
668
- prefetchQuery(e) {
669
- return this.fetchQuery(e).then(be).catch(be);
670
- }
671
- fetchInfiniteQuery(e) {
672
- return e.behavior = Sn(e.pages), this.fetchQuery(e);
673
- }
674
- prefetchInfiniteQuery(e) {
675
- return this.fetchInfiniteQuery(e).then(be).catch(be);
676
- }
677
- ensureInfiniteQueryData(e) {
678
- return e.behavior = Sn(e.pages), this.ensureQueryData(e);
679
- }
680
- resumePausedMutations() {
681
- return wn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
682
- }
683
- getQueryCache() {
684
- return w(this, F);
685
- }
686
- getMutationCache() {
687
- return w(this, Pe);
688
- }
689
- getDefaultOptions() {
690
- return w(this, je);
691
- }
692
- setDefaultOptions(e) {
693
- X(this, je, e);
694
- }
695
- setQueryDefaults(e, t) {
696
- w(this, Be).set(yn(e), {
697
- queryKey: e,
698
- defaultOptions: t
699
- });
700
- }
701
- getQueryDefaults(e) {
702
- const t = [...w(this, Be).values()];
703
- let n = {};
704
- return t.forEach((r) => {
705
- bn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
706
- }), n;
707
- }
708
- setMutationDefaults(e, t) {
709
- w(this, He).set(yn(e), {
710
- mutationKey: e,
711
- defaultOptions: t
712
- });
713
- }
714
- getMutationDefaults(e) {
715
- const t = [...w(this, He).values()];
716
- let n = {};
717
- return t.forEach((r) => {
718
- bn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
719
- }), n;
720
- }
721
- defaultQueryOptions(e) {
722
- if (e._defaulted)
723
- return e;
724
- const t = {
725
- ...w(this, je).queries,
726
- ...this.getQueryDefaults(e.queryKey),
727
- ...e,
728
- _defaulted: !0
729
- };
730
- return t.queryHash || (t.queryHash = Wn(
731
- t.queryKey,
732
- t
733
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === ko && (t.enabled = !1), t;
734
- }
735
- defaultMutationOptions(e) {
736
- return e != null && e._defaulted ? e : {
737
- ...w(this, je).mutations,
738
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
739
- ...e,
740
- _defaulted: !0
741
- };
742
- }
743
- clear() {
744
- w(this, F).clear(), w(this, Pe).clear();
745
- }
746
- }, F = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), Be = new WeakMap(), He = new WeakMap(), Ne = new WeakMap(), Ue = new WeakMap(), ze = new WeakMap(), _n);
747
- const Ns = Kn(null), Ct = {
748
- didCatch: !1,
749
- error: null
750
- };
751
- class Ts extends yo {
752
- constructor(t) {
753
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ct;
754
- }
755
- static getDerivedStateFromError(t) {
756
- return {
757
- didCatch: !0,
758
- error: t
759
- };
760
- }
761
- resetErrorBoundary() {
762
- const {
763
- error: t
764
- } = this.state;
765
- if (t !== null) {
766
- for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
767
- s[i] = arguments[i];
768
- (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
769
- args: s,
770
- reason: "imperative-api"
771
- }), this.setState(Ct);
772
- }
773
- }
774
- componentDidCatch(t, n) {
775
- var r, o;
776
- (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
777
- }
778
- componentDidUpdate(t, n) {
779
- const {
780
- didCatch: r
781
- } = this.state, {
782
- resetKeys: o
783
- } = this.props;
784
- if (r && n.error !== null && _s(t.resetKeys, o)) {
785
- var s, i;
786
- (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
787
- next: o,
788
- prev: t.resetKeys,
789
- reason: "keys"
790
- }), this.setState(Ct);
791
- }
792
- }
793
- render() {
794
- const {
795
- children: t,
796
- fallbackRender: n,
797
- FallbackComponent: r,
798
- fallback: o
799
- } = this.props, {
800
- didCatch: s,
801
- error: i
802
- } = this.state;
803
- let l = t;
804
- if (s) {
805
- const u = {
806
- error: i,
807
- resetErrorBoundary: this.resetErrorBoundary
808
- };
809
- if (typeof n == "function")
810
- l = n(u);
811
- else if (r)
812
- l = mn(r, u);
813
- else if (o === null || bo(o))
814
- l = o;
815
- else
816
- throw i;
817
- }
818
- return mn(Ns.Provider, {
819
- value: {
820
- didCatch: s,
821
- error: i,
822
- resetErrorBoundary: this.resetErrorBoundary
823
- }
824
- }, l);
825
- }
826
- }
827
- function _s() {
828
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
829
- return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
830
- }
831
- const Os = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Is = (e) => "getRoutes" in e && typeof e.getRoutes == "function", As = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ks = (e) => "initialize" in e && typeof e.initialize == "function", $s = (e) => "getHead" in e && typeof e.getHead == "function", Fs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ls = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new js();
832
- class Bs {
833
- constructor(t) {
834
- ae(this, "plugins");
835
- ae(this, "sidebars");
836
- ae(this, "topNavigation");
837
- ae(this, "meta");
838
- ae(this, "page");
839
- ae(this, "authentication");
840
- ae(this, "navigationPlugins");
841
- ae(this, "initialize", async () => {
842
- await Promise.all(
843
- this.plugins.filter(ks).map((t) => {
844
- var n;
845
- return (n = t.initialize) == null ? void 0 : n.call(t, this);
846
- })
847
- );
848
- });
849
- ae(this, "invalidateCache", async (t) => {
850
- await nr.invalidateQueries({ queryKey: t });
851
- });
852
- ae(this, "getApiIdentities", async () => (await Promise.all(
853
- this.plugins.filter(Ls).map((n) => n.getIdentities(this))
854
- )).flat());
855
- ae(this, "getPluginSidebar", async (t) => (await Promise.all(
856
- this.navigationPlugins.map(
857
- (r) => {
858
- var o;
859
- return (o = r.getSidebar) == null ? void 0 : o.call(r, Ht(t));
860
- }
861
- )
862
- )).flatMap((r) => r ?? []));
863
- ae(this, "signRequest", async (t) => {
864
- if (!this.authentication)
865
- throw new Error("No authentication provider configured");
866
- const n = await this.authentication.getAccessToken();
867
- return t.headers.set("Authorization", `Bearer ${n}`), t;
868
- });
869
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Is), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
870
- }
871
- }
872
- function Hs({ error: e, resetErrorBoundary: t }) {
873
- return /* @__PURE__ */ a.jsx(An, { error: e });
874
- }
875
- const ft = globalThis;
876
- (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
877
- var Nt = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], zs = [...Us, ...rr], Ks = {
878
- ltr: [...Nt, "ArrowRight"],
879
- rtl: [...Nt, "ArrowLeft"]
880
- }, qs = {
881
- ltr: ["ArrowLeft"],
882
- rtl: ["ArrowRight"]
883
- }, ot = "Menu", [et, Qs, Vs] = eo(ot), [Ae, ar] = kn(ot, [
884
- Vs,
885
- $n,
886
- Jn
887
- ]), st = $n(), or = Jn(), [sr, Te] = Ae(ot), [Gs, it] = Ae(ot), ir = (e) => {
888
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = $t(s), d = fo(o);
889
- return h.useEffect(() => {
890
- const v = () => {
891
- f.current = !0, document.addEventListener("pointerdown", M, { capture: !0, once: !0 }), document.addEventListener("pointermove", M, { capture: !0, once: !0 });
892
- }, M = () => f.current = !1;
893
- return document.addEventListener("keydown", v, { capture: !0 }), () => {
894
- document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", M, { capture: !0 }), document.removeEventListener("pointermove", M, { capture: !0 });
895
- };
896
- }, []), /* @__PURE__ */ a.jsx(Ln, { ...l, children: /* @__PURE__ */ a.jsx(
897
- sr,
898
- {
899
- scope: t,
900
- open: n,
901
- onOpenChange: c,
902
- content: u,
903
- onContentChange: m,
904
- children: /* @__PURE__ */ a.jsx(
905
- Gs,
906
- {
907
- scope: t,
908
- onClose: h.useCallback(() => c(!1), [c]),
909
- isUsingKeyboardRef: f,
910
- dir: d,
911
- modal: i,
912
- children: r
913
- }
914
- )
915
- }
916
- ) });
917
- };
918
- ir.displayName = ot;
919
- var Ws = "MenuAnchor", zt = h.forwardRef(
920
- (e, t) => {
921
- const { __scopeMenu: n, ...r } = e, o = st(n);
922
- return /* @__PURE__ */ a.jsx(to, { ...o, ...r, ref: t });
923
- }
924
- );
925
- zt.displayName = Ws;
926
- var Kt = "MenuPortal", [Ys, lr] = Ae(Kt, {
927
- forceMount: void 0
928
- }), cr = (e) => {
929
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(Kt, t);
930
- return /* @__PURE__ */ a.jsx(Ys, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(xt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(ho, { asChild: !0, container: o, children: r }) }) });
931
- };
932
- cr.displayName = Kt;
933
- var ue = "MenuContent", [Xs, qt] = Ae(ue), ur = h.forwardRef(
934
- (e, t) => {
935
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
936
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(xt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Js, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(Zs, { ...o, ref: t }) }) }) });
937
- }
938
- ), Js = h.forwardRef(
939
- (e, t) => {
940
- const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
941
- return h.useEffect(() => {
942
- const s = r.current;
943
- if (s) return no(s);
944
- }, []), /* @__PURE__ */ a.jsx(
945
- Qt,
946
- {
947
- ...e,
948
- ref: o,
949
- trapFocus: n.open,
950
- disableOutsidePointerEvents: n.open,
951
- disableOutsideScroll: !0,
952
- onFocusOutside: A(
953
- e.onFocusOutside,
954
- (s) => s.preventDefault(),
955
- { checkForDefaultPrevented: !1 }
956
- ),
957
- onDismiss: () => n.onOpenChange(!1)
958
- }
959
- );
960
- }
961
- ), Zs = h.forwardRef((e, t) => {
962
- const n = Te(ue, e.__scopeMenu);
963
- return /* @__PURE__ */ a.jsx(
964
- Qt,
965
- {
966
- ...e,
967
- ref: t,
968
- trapFocus: !1,
969
- disableOutsidePointerEvents: !1,
970
- disableOutsideScroll: !1,
971
- onDismiss: () => n.onOpenChange(!1)
972
- }
973
- );
974
- }), Qt = h.forwardRef(
975
- (e, t) => {
976
- const {
977
- __scopeMenu: n,
978
- loop: r = !1,
979
- trapFocus: o,
980
- onOpenAutoFocus: s,
981
- onCloseAutoFocus: i,
982
- disableOutsidePointerEvents: l,
983
- onEntryFocus: u,
984
- onEscapeKeyDown: m,
985
- onPointerDownOutside: f,
986
- onFocusOutside: c,
987
- onInteractOutside: d,
988
- onDismiss: v,
989
- disableOutsideScroll: M,
990
- ...C
991
- } = e, _ = Te(ue, n), R = it(ue, n), k = st(n), P = or(n), g = Qs(n), [z, Z] = h.useState(null), b = h.useRef(null), j = rt(t, b, _.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), x = h.useRef("right"), V = h.useRef(0), G = M ? lo : h.Fragment, te = M ? { as: co, allowPinchZoom: !0 } : void 0, q = (y) => {
992
- var le, Re;
993
- const Q = B.current + y, ie = g().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), ke = di(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === ke)) == null ? void 0 : Re.ref.current;
994
- (function re($e) {
995
- B.current = $e, window.clearTimeout(D.current), $e !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
996
- })(Q), ye && setTimeout(() => ye.focus());
997
- };
998
- h.useEffect(() => () => window.clearTimeout(D.current), []), ro();
999
- const Y = h.useCallback((y) => {
1000
- var ie, de;
1001
- return x.current === ((ie = W.current) == null ? void 0 : ie.side) && hi(y, (de = W.current) == null ? void 0 : de.area);
1002
- }, []);
1003
- return /* @__PURE__ */ a.jsx(
1004
- Xs,
1005
- {
1006
- scope: n,
1007
- searchRef: B,
1008
- onItemEnter: h.useCallback(
1009
- (y) => {
1010
- Y(y) && y.preventDefault();
1011
- },
1012
- [Y]
1013
- ),
1014
- onItemLeave: h.useCallback(
1015
- (y) => {
1016
- var Q;
1017
- Y(y) || ((Q = b.current) == null || Q.focus(), Z(null));
1018
- },
1019
- [Y]
1020
- ),
1021
- onTriggerLeave: h.useCallback(
1022
- (y) => {
1023
- Y(y) && y.preventDefault();
1024
- },
1025
- [Y]
1026
- ),
1027
- pointerGraceTimerRef: K,
1028
- onPointerGraceIntentChange: h.useCallback((y) => {
1029
- W.current = y;
1030
- }, []),
1031
- children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1032
- ao,
1033
- {
1034
- asChild: !0,
1035
- trapped: o,
1036
- onMountAutoFocus: A(s, (y) => {
1037
- var Q;
1038
- y.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1039
- }),
1040
- onUnmountAutoFocus: i,
1041
- children: /* @__PURE__ */ a.jsx(
1042
- oo,
1043
- {
1044
- asChild: !0,
1045
- disableOutsidePointerEvents: l,
1046
- onEscapeKeyDown: m,
1047
- onPointerDownOutside: f,
1048
- onFocusOutside: c,
1049
- onInteractOutside: d,
1050
- onDismiss: v,
1051
- children: /* @__PURE__ */ a.jsx(
1052
- Yo,
1053
- {
1054
- asChild: !0,
1055
- ...P,
1056
- dir: R.dir,
1057
- orientation: "vertical",
1058
- loop: r,
1059
- currentTabStopId: z,
1060
- onCurrentTabStopIdChange: Z,
1061
- onEntryFocus: A(u, (y) => {
1062
- R.isUsingKeyboardRef.current || y.preventDefault();
1063
- }),
1064
- preventScrollOnEntryFocus: !0,
1065
- children: /* @__PURE__ */ a.jsx(
1066
- so,
1067
- {
1068
- role: "menu",
1069
- "aria-orientation": "vertical",
1070
- "data-state": Dr(_.open),
1071
- "data-radix-menu-content": "",
1072
- dir: R.dir,
1073
- ...k,
1074
- ...C,
1075
- ref: j,
1076
- style: { outline: "none", ...C.style },
1077
- onKeyDown: A(C.onKeyDown, (y) => {
1078
- const ie = y.target.closest("[data-radix-menu-content]") === y.currentTarget, de = y.ctrlKey || y.altKey || y.metaKey, pe = y.key.length === 1;
1079
- ie && (y.key === "Tab" && y.preventDefault(), !de && pe && q(y.key));
1080
- const Me = b.current;
1081
- if (y.target !== Me || !zs.includes(y.key)) return;
1082
- y.preventDefault();
1083
- const ye = g().filter((le) => !le.disabled).map((le) => le.ref.current);
1084
- rr.includes(y.key) && ye.reverse(), ci(ye);
1085
- }),
1086
- onBlur: A(e.onBlur, (y) => {
1087
- y.currentTarget.contains(y.target) || (window.clearTimeout(D.current), B.current = "");
1088
- }),
1089
- onPointerMove: A(
1090
- e.onPointerMove,
1091
- tt((y) => {
1092
- const Q = y.target, ie = V.current !== y.clientX;
1093
- if (y.currentTarget.contains(Q) && ie) {
1094
- const de = y.clientX > V.current ? "right" : "left";
1095
- x.current = de, V.current = y.clientX;
1096
- }
1097
- })
1098
- )
1099
- }
1100
- )
1101
- }
1102
- )
1103
- }
1104
- )
1105
- }
1106
- ) })
1107
- }
1108
- );
1109
- }
1110
- );
1111
- ur.displayName = ue;
1112
- var ei = "MenuGroup", Vt = h.forwardRef(
1113
- (e, t) => {
1114
- const { __scopeMenu: n, ...r } = e;
1115
- return /* @__PURE__ */ a.jsx(Ke.div, { role: "group", ...r, ref: t });
1116
- }
1117
- );
1118
- Vt.displayName = ei;
1119
- var ti = "MenuLabel", dr = h.forwardRef(
1120
- (e, t) => {
1121
- const { __scopeMenu: n, ...r } = e;
1122
- return /* @__PURE__ */ a.jsx(Ke.div, { ...r, ref: t });
1123
- }
1124
- );
1125
- dr.displayName = ti;
1126
- var vt = "MenuItem", Mn = "menu.itemSelect", yt = h.forwardRef(
1127
- (e, t) => {
1128
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(vt, e.__scopeMenu), l = qt(vt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1129
- const c = s.current;
1130
- if (!n && c) {
1131
- const d = new CustomEvent(Mn, { bubbles: !0, cancelable: !0 });
1132
- c.addEventListener(Mn, (v) => r == null ? void 0 : r(v), { once: !0 }), uo(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1133
- }
1134
- };
1135
- return /* @__PURE__ */ a.jsx(
1136
- fr,
1137
- {
1138
- ...o,
1139
- ref: u,
1140
- disabled: n,
1141
- onClick: A(e.onClick, f),
1142
- onPointerDown: (c) => {
1143
- var d;
1144
- (d = e.onPointerDown) == null || d.call(e, c), m.current = !0;
1145
- },
1146
- onPointerUp: A(e.onPointerUp, (c) => {
1147
- var d;
1148
- m.current || (d = c.currentTarget) == null || d.click();
1149
- }),
1150
- onKeyDown: A(e.onKeyDown, (c) => {
1151
- const d = l.searchRef.current !== "";
1152
- n || d && c.key === " " || Nt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1153
- })
1154
- }
1155
- );
1156
- }
1157
- );
1158
- yt.displayName = vt;
1159
- var fr = h.forwardRef(
1160
- (e, t) => {
1161
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = qt(vt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, v] = h.useState("");
1162
- return h.useEffect(() => {
1163
- const M = u.current;
1164
- M && v((M.textContent ?? "").trim());
1165
- }, [s.children]), /* @__PURE__ */ a.jsx(
1166
- et.ItemSlot,
1167
- {
1168
- scope: n,
1169
- disabled: r,
1170
- textValue: o ?? d,
1171
- children: /* @__PURE__ */ a.jsx(Xo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1172
- Ke.div,
1173
- {
1174
- role: "menuitem",
1175
- "data-highlighted": f ? "" : void 0,
1176
- "aria-disabled": r || void 0,
1177
- "data-disabled": r ? "" : void 0,
1178
- ...s,
1179
- ref: m,
1180
- onPointerMove: A(
1181
- e.onPointerMove,
1182
- tt((M) => {
1183
- r ? i.onItemLeave(M) : (i.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
1184
- })
1185
- ),
1186
- onPointerLeave: A(
1187
- e.onPointerLeave,
1188
- tt((M) => i.onItemLeave(M))
1189
- ),
1190
- onFocus: A(e.onFocus, () => c(!0)),
1191
- onBlur: A(e.onBlur, () => c(!1))
1192
- }
1193
- ) })
1194
- }
1195
- );
1196
- }
1197
- ), ni = "MenuCheckboxItem", hr = h.forwardRef(
1198
- (e, t) => {
1199
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
1200
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1201
- yt,
1202
- {
1203
- role: "menuitemcheckbox",
1204
- "aria-checked": wt(n) ? "mixed" : n,
1205
- ...o,
1206
- ref: t,
1207
- "data-state": Yt(n),
1208
- onSelect: A(
1209
- o.onSelect,
1210
- () => r == null ? void 0 : r(wt(n) ? !0 : !n),
1211
- { checkForDefaultPrevented: !1 }
1212
- )
1213
- }
1214
- ) });
1215
- }
1216
- );
1217
- hr.displayName = ni;
1218
- var pr = "MenuRadioGroup", [ri, ai] = Ae(
1219
- pr,
1220
- { value: void 0, onValueChange: () => {
1221
- } }
1222
- ), mr = h.forwardRef(
1223
- (e, t) => {
1224
- const { value: n, onValueChange: r, ...o } = e, s = $t(r);
1225
- return /* @__PURE__ */ a.jsx(ri, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Vt, { ...o, ref: t }) });
1226
- }
1227
- );
1228
- mr.displayName = pr;
1229
- var gr = "MenuRadioItem", vr = h.forwardRef(
1230
- (e, t) => {
1231
- const { value: n, ...r } = e, o = ai(gr, e.__scopeMenu), s = n === o.value;
1232
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1233
- yt,
1234
- {
1235
- role: "menuitemradio",
1236
- "aria-checked": s,
1237
- ...r,
1238
- ref: t,
1239
- "data-state": Yt(s),
1240
- onSelect: A(
1241
- r.onSelect,
1242
- () => {
1243
- var i;
1244
- return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1245
- },
1246
- { checkForDefaultPrevented: !1 }
1247
- )
1248
- }
1249
- ) });
1250
- }
1251
- );
1252
- vr.displayName = gr;
1253
- var Gt = "MenuItemIndicator", [wr, oi] = Ae(
1254
- Gt,
1255
- { checked: !1 }
1256
- ), xr = h.forwardRef(
1257
- (e, t) => {
1258
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = oi(Gt, n);
1259
- return /* @__PURE__ */ a.jsx(
1260
- xt,
1261
- {
1262
- present: r || wt(s.checked) || s.checked === !0,
1263
- children: /* @__PURE__ */ a.jsx(
1264
- Ke.span,
1265
- {
1266
- ...o,
1267
- ref: t,
1268
- "data-state": Yt(s.checked)
1269
- }
1270
- )
1271
- }
1272
- );
1273
- }
1274
- );
1275
- xr.displayName = Gt;
1276
- var si = "MenuSeparator", yr = h.forwardRef(
1277
- (e, t) => {
1278
- const { __scopeMenu: n, ...r } = e;
1279
- return /* @__PURE__ */ a.jsx(
1280
- Ke.div,
1281
- {
1282
- role: "separator",
1283
- "aria-orientation": "horizontal",
1284
- ...r,
1285
- ref: t
1286
- }
1287
- );
1288
- }
1289
- );
1290
- yr.displayName = si;
1291
- var ii = "MenuArrow", br = h.forwardRef(
1292
- (e, t) => {
1293
- const { __scopeMenu: n, ...r } = e, o = st(n);
1294
- return /* @__PURE__ */ a.jsx(io, { ...o, ...r, ref: t });
1295
- }
1296
- );
1297
- br.displayName = ii;
1298
- var Wt = "MenuSub", [li, Sr] = Ae(Wt), Cr = (e) => {
1299
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Wt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = $t(o);
1300
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Ln, { ...i, children: /* @__PURE__ */ a.jsx(
1301
- sr,
1302
- {
1303
- scope: t,
1304
- open: r,
1305
- onOpenChange: c,
1306
- content: m,
1307
- onContentChange: f,
1308
- children: /* @__PURE__ */ a.jsx(
1309
- li,
1310
- {
1311
- scope: t,
1312
- contentId: gt(),
1313
- triggerId: gt(),
1314
- trigger: l,
1315
- onTriggerChange: u,
1316
- children: n
1317
- }
1318
- )
1319
- }
1320
- ) });
1321
- };
1322
- Cr.displayName = Wt;
1323
- var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1324
- (e, t) => {
1325
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1326
- i.current && window.clearTimeout(i.current), i.current = null;
1327
- }, []);
1328
- return h.useEffect(() => f, [f]), h.useEffect(() => {
1329
- const c = l.current;
1330
- return () => {
1331
- window.clearTimeout(c), u(null);
1332
- };
1333
- }, [l, u]), /* @__PURE__ */ a.jsx(zt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1334
- fr,
1335
- {
1336
- id: o.triggerId,
1337
- "aria-haspopup": "menu",
1338
- "aria-expanded": n.open,
1339
- "aria-controls": o.contentId,
1340
- "data-state": Dr(n.open),
1341
- ...e,
1342
- ref: Fn(t, o.onTriggerChange),
1343
- onClick: (c) => {
1344
- var d;
1345
- (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1346
- },
1347
- onPointerMove: A(
1348
- e.onPointerMove,
1349
- tt((c) => {
1350
- s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1351
- n.onOpenChange(!0), f();
1352
- }, 100));
1353
- })
1354
- ),
1355
- onPointerLeave: A(
1356
- e.onPointerLeave,
1357
- tt((c) => {
1358
- var v, M;
1359
- f();
1360
- const d = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1361
- if (d) {
1362
- const C = (M = n.content) == null ? void 0 : M.dataset.side, _ = C === "right", R = _ ? -5 : 5, k = d[_ ? "left" : "right"], P = d[_ ? "right" : "left"];
1363
- s.onPointerGraceIntentChange({
1364
- area: [
1365
- // Apply a bleed on clientX to ensure that our exit point is
1366
- // consistently within polygon bounds
1367
- { x: c.clientX + R, y: c.clientY },
1368
- { x: k, y: d.top },
1369
- { x: P, y: d.top },
1370
- { x: P, y: d.bottom },
1371
- { x: k, y: d.bottom }
1372
- ],
1373
- side: C
1374
- }), window.clearTimeout(l.current), l.current = window.setTimeout(
1375
- () => s.onPointerGraceIntentChange(null),
1376
- 300
1377
- );
1378
- } else {
1379
- if (s.onTriggerLeave(c), c.defaultPrevented) return;
1380
- s.onPointerGraceIntentChange(null);
1381
- }
1382
- })
1383
- ),
1384
- onKeyDown: A(e.onKeyDown, (c) => {
1385
- var v;
1386
- const d = s.searchRef.current !== "";
1387
- e.disabled || d && c.key === " " || Ks[r.dir].includes(c.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), c.preventDefault());
1388
- })
1389
- }
1390
- ) });
1391
- }
1392
- );
1393
- Mr.displayName = Xe;
1394
- var Rr = "MenuSubContent", Er = h.forwardRef(
1395
- (e, t) => {
1396
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Sr(Rr, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1397
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(xt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1398
- Qt,
1399
- {
1400
- id: l.contentId,
1401
- "aria-labelledby": l.triggerId,
1402
- ...o,
1403
- ref: m,
1404
- align: "start",
1405
- side: i.dir === "rtl" ? "left" : "right",
1406
- disableOutsidePointerEvents: !1,
1407
- disableOutsideScroll: !1,
1408
- trapFocus: !1,
1409
- onOpenAutoFocus: (f) => {
1410
- var c;
1411
- i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
1412
- },
1413
- onCloseAutoFocus: (f) => f.preventDefault(),
1414
- onFocusOutside: A(e.onFocusOutside, (f) => {
1415
- f.target !== l.trigger && s.onOpenChange(!1);
1416
- }),
1417
- onEscapeKeyDown: A(e.onEscapeKeyDown, (f) => {
1418
- i.onClose(), f.preventDefault();
1419
- }),
1420
- onKeyDown: A(e.onKeyDown, (f) => {
1421
- var v;
1422
- const c = f.currentTarget.contains(f.target), d = qs[i.dir].includes(f.key);
1423
- c && d && (s.onOpenChange(!1), (v = l.trigger) == null || v.focus(), f.preventDefault());
1424
- })
1425
- }
1426
- ) }) }) });
1427
- }
1428
- );
1429
- Er.displayName = Rr;
1430
- function Dr(e) {
1431
- return e ? "open" : "closed";
1432
- }
1433
- function wt(e) {
1434
- return e === "indeterminate";
1435
- }
1436
- function Yt(e) {
1437
- return wt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1438
- }
1439
- function ci(e) {
1440
- const t = document.activeElement;
1441
- for (const n of e)
1442
- if (n === t || (n.focus(), document.activeElement !== t)) return;
1443
- }
1444
- function ui(e, t) {
1445
- return e.map((n, r) => e[(t + r) % e.length]);
1446
- }
1447
- function di(e, t, n) {
1448
- const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1449
- let i = ui(e, Math.max(s, 0));
1450
- o.length === 1 && (i = i.filter((m) => m !== n));
1451
- const u = i.find(
1452
- (m) => m.toLowerCase().startsWith(o.toLowerCase())
1453
- );
1454
- return u !== n ? u : void 0;
1455
- }
1456
- function fi(e, t) {
1457
- const { x: n, y: r } = e;
1458
- let o = !1;
1459
- for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1460
- const l = t[s].x, u = t[s].y, m = t[i].x, f = t[i].y;
1461
- u > r != f > r && n < (m - l) * (r - u) / (f - u) + l && (o = !o);
1462
- }
1463
- return o;
1464
- }
1465
- function hi(e, t) {
1466
- if (!t) return !1;
1467
- const n = { x: e.clientX, y: e.clientY };
1468
- return fi(n, t);
1469
- }
1470
- function tt(e) {
1471
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1472
- }
1473
- var pi = ir, mi = zt, gi = cr, vi = ur, wi = Vt, xi = dr, yi = yt, bi = hr, Si = mr, Ci = vr, Mi = xr, Ri = yr, Ei = br, Di = Cr, Pi = Mr, ji = Er, Xt = "DropdownMenu", [Ni, uc] = kn(
1474
- Xt,
1475
- [ar]
1476
- ), J = ar(), [Ti, Pr] = Ni(Xt), jr = (e) => {
1477
- const {
1478
- __scopeDropdownMenu: t,
1479
- children: n,
1480
- dir: r,
1481
- open: o,
1482
- defaultOpen: s,
1483
- onOpenChange: i,
1484
- modal: l = !0
1485
- } = e, u = J(t), m = h.useRef(null), [f = !1, c] = Bn({
1486
- prop: o,
1487
- defaultProp: s,
1488
- onChange: i
1489
- });
1490
- return /* @__PURE__ */ a.jsx(
1491
- Ti,
1492
- {
1493
- scope: t,
1494
- triggerId: gt(),
1495
- triggerRef: m,
1496
- contentId: gt(),
1497
- open: f,
1498
- onOpenChange: c,
1499
- onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1500
- modal: l,
1501
- children: /* @__PURE__ */ a.jsx(pi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1502
- }
1503
- );
1504
- };
1505
- jr.displayName = Xt;
1506
- var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1507
- (e, t) => {
1508
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Pr(Nr, n), i = J(n);
1509
- return /* @__PURE__ */ a.jsx(mi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1510
- Ke.button,
1511
- {
1512
- type: "button",
1513
- id: s.triggerId,
1514
- "aria-haspopup": "menu",
1515
- "aria-expanded": s.open,
1516
- "aria-controls": s.open ? s.contentId : void 0,
1517
- "data-state": s.open ? "open" : "closed",
1518
- "data-disabled": r ? "" : void 0,
1519
- disabled: r,
1520
- ...o,
1521
- ref: Fn(t, s.triggerRef),
1522
- onPointerDown: A(e.onPointerDown, (l) => {
1523
- !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1524
- }),
1525
- onKeyDown: A(e.onKeyDown, (l) => {
1526
- r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1527
- })
1528
- }
1529
- ) });
1530
- }
1531
- );
1532
- Tr.displayName = Nr;
1533
- var _i = "DropdownMenuPortal", _r = (e) => {
1534
- const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1535
- return /* @__PURE__ */ a.jsx(gi, { ...r, ...n });
1536
- };
1537
- _r.displayName = _i;
1538
- var Or = "DropdownMenuContent", Ir = h.forwardRef(
1539
- (e, t) => {
1540
- const { __scopeDropdownMenu: n, ...r } = e, o = Pr(Or, n), s = J(n), i = h.useRef(!1);
1541
- return /* @__PURE__ */ a.jsx(
1542
- vi,
1543
- {
1544
- id: o.contentId,
1545
- "aria-labelledby": o.triggerId,
1546
- ...s,
1547
- ...r,
1548
- ref: t,
1549
- onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
1550
- var u;
1551
- i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1552
- }),
1553
- onInteractOutside: A(e.onInteractOutside, (l) => {
1554
- const u = l.detail.originalEvent, m = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || m;
1555
- (!o.modal || f) && (i.current = !0);
1556
- }),
1557
- style: {
1558
- ...e.style,
1559
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1560
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1561
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1562
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1563
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1564
- }
1565
- }
1566
- );
1567
- }
1568
- );
1569
- Ir.displayName = Or;
1570
- var Oi = "DropdownMenuGroup", Ii = h.forwardRef(
1571
- (e, t) => {
1572
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1573
- return /* @__PURE__ */ a.jsx(wi, { ...o, ...r, ref: t });
1574
- }
1575
- );
1576
- Ii.displayName = Oi;
1577
- var Ai = "DropdownMenuLabel", Ar = h.forwardRef(
1578
- (e, t) => {
1579
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1580
- return /* @__PURE__ */ a.jsx(xi, { ...o, ...r, ref: t });
1581
- }
1582
- );
1583
- Ar.displayName = Ai;
1584
- var ki = "DropdownMenuItem", kr = h.forwardRef(
1585
- (e, t) => {
1586
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1587
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1588
- }
1589
- );
1590
- kr.displayName = ki;
1591
- var $i = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1592
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1593
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1594
- });
1595
- $r.displayName = $i;
1596
- var Fi = "DropdownMenuRadioGroup", Li = h.forwardRef((e, t) => {
1597
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1598
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1599
- });
1600
- Li.displayName = Fi;
1601
- var Bi = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1602
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1603
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1604
- });
1605
- Fr.displayName = Bi;
1606
- var Hi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1607
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1608
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1609
- });
1610
- Lr.displayName = Hi;
1611
- var Ui = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1613
- return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1614
- });
1615
- Br.displayName = Ui;
1616
- var zi = "DropdownMenuArrow", Ki = h.forwardRef(
1617
- (e, t) => {
1618
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1619
- return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1620
- }
1621
- );
1622
- Ki.displayName = zi;
1623
- var qi = (e) => {
1624
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = J(t), [l = !1, u] = Bn({
1625
- prop: r,
1626
- defaultProp: s,
1627
- onChange: o
1628
- });
1629
- return /* @__PURE__ */ a.jsx(Di, { ...i, open: l, onOpenChange: u, children: n });
1630
- }, Qi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1631
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1632
- return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1633
- });
1634
- Hr.displayName = Qi;
1635
- var Vi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1636
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1637
- return /* @__PURE__ */ a.jsx(
1638
- ji,
1639
- {
1640
- ...o,
1641
- ...r,
1642
- ref: t,
1643
- style: {
1644
- ...e.style,
1645
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1646
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1647
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1648
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1649
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1650
- }
1651
- }
1652
- );
1653
- });
1654
- Ur.displayName = Vi;
1655
- var Gi = jr, Wi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Yi = qi, Xr = Hr, Jr = Ur;
1656
- const Xi = Gi, Ji = Wi, Zi = zr, el = Yi, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1657
- Xr,
1658
- {
1659
- ref: o,
1660
- className: O(
1661
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1662
- t && "pl-8",
1663
- e
1664
- ),
1665
- ...r,
1666
- children: [
1667
- n,
1668
- /* @__PURE__ */ a.jsx(Xn, { className: "ml-auto h-4 w-4" })
1669
- ]
1670
- }
1671
- ));
1672
- Zr.displayName = Xr.displayName;
1673
- const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1674
- Jr,
1675
- {
1676
- ref: n,
1677
- className: O(
1678
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1679
- e
1680
- ),
1681
- ...t
1682
- }
1683
- ));
1684
- ea.displayName = Jr.displayName;
1685
- const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(
1686
- Kr,
1687
- {
1688
- ref: r,
1689
- sideOffset: t,
1690
- className: O(
1691
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1692
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1693
- e
1694
- ),
1695
- ...n
1696
- }
1697
- ) }));
1698
- ta.displayName = Kr.displayName;
1699
- const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1700
- Qr,
1701
- {
1702
- ref: r,
1703
- className: O(
1704
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1705
- t && "pl-8",
1706
- e
1707
- ),
1708
- ...n
1709
- }
1710
- ));
1711
- na.displayName = Qr.displayName;
1712
- const tl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1713
- Vr,
1714
- {
1715
- ref: o,
1716
- className: O(
1717
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1718
- e
1719
- ),
1720
- checked: n,
1721
- ...r,
1722
- children: [
1723
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Ho, { className: "h-4 w-4" }) }) }),
1724
- t
1725
- ]
1726
- }
1727
- ));
1728
- tl.displayName = Vr.displayName;
1729
- const nl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1730
- Gr,
1731
- {
1732
- ref: r,
1733
- className: O(
1734
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1735
- e
1736
- ),
1737
- ...n,
1738
- children: [
1739
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Uo, { className: "h-4 w-4 fill-current" }) }) }),
1740
- t
1741
- ]
1742
- }
1743
- ));
1744
- nl.displayName = Gr.displayName;
1745
- const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1746
- qr,
1747
- {
1748
- ref: r,
1749
- className: O(
1750
- "px-2 py-1.5 text-sm font-semibold",
1751
- t && "pl-8",
1752
- e
1753
- ),
1754
- ...n
1755
- }
1756
- ));
1757
- ra.displayName = qr.displayName;
1758
- const aa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1759
- Yr,
1760
- {
1761
- ref: n,
1762
- className: O("-mx-1 my-1 h-px bg-muted", e),
1763
- ...t
1764
- }
1765
- ));
1766
- aa.displayName = Yr.displayName;
1767
- const Rn = {
1768
- info: "bg-blue-500",
1769
- note: "bg-gray-500",
1770
- tip: "bg-green-600",
1771
- caution: "bg-orange-500",
1772
- danger: "bg-rose-500"
1773
- }, rl = () => {
1774
- const { page: e } = qe(), [t, n] = Ie(!0);
1775
- if (!(e != null && e.banner) || !t)
1776
- return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1777
- const r = e.banner.color && e.banner.color in Rn ? Rn[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1778
- return /* @__PURE__ */ a.jsxs(
1779
- "div",
1780
- {
1781
- className: O(
1782
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1783
- r
1784
- ),
1785
- style: o,
1786
- children: [
1787
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1788
- e.banner.dismissible && /* @__PURE__ */ a.jsx(
1789
- "button",
1790
- {
1791
- type: "button",
1792
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1793
- onClick: () => n(!1),
1794
- children: /* @__PURE__ */ a.jsx(zo, { size: 16 })
1795
- }
1796
- )
1797
- ]
1798
- }
1799
- );
1800
- };
1801
- function al(e) {
1802
- if (typeof document > "u") return;
1803
- let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1804
- n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1805
- }
1806
- const oa = p.createContext({
1807
- drawerRef: {
1808
- current: null
1809
- },
1810
- overlayRef: {
1811
- current: null
1812
- },
1813
- onPress: () => {
1814
- },
1815
- onRelease: () => {
1816
- },
1817
- onDrag: () => {
1818
- },
1819
- onNestedDrag: () => {
1820
- },
1821
- onNestedOpenChange: () => {
1822
- },
1823
- onNestedRelease: () => {
1824
- },
1825
- openProp: void 0,
1826
- dismissible: !1,
1827
- isOpen: !1,
1828
- isDragging: !1,
1829
- keyboardIsOpen: {
1830
- current: !1
1831
- },
1832
- snapPointsOffset: null,
1833
- snapPoints: null,
1834
- handleOnly: !1,
1835
- modal: !1,
1836
- shouldFade: !1,
1837
- activeSnapPoint: null,
1838
- onOpenChange: () => {
1839
- },
1840
- setActiveSnapPoint: () => {
1841
- },
1842
- closeDrawer: () => {
1843
- },
1844
- direction: "bottom",
1845
- shouldAnimate: {
1846
- current: !0
1847
- },
1848
- shouldScaleBackground: !1,
1849
- setBackgroundColorOnScale: !0,
1850
- noBodyStyles: !1,
1851
- container: null,
1852
- autoFocus: !1
1853
- }), Qe = () => {
1854
- const e = p.useContext(oa);
1855
- if (!e)
1856
- throw new Error("useDrawerContext must be used within a Drawer.Root");
1857
- return e;
1858
- };
1859
- al(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1860
- [data-state=closed]
1861
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
1862
- function ol() {
1863
- const e = navigator.userAgent;
1864
- return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1865
- /FxiOS/.test(e));
1866
- }
1867
- function sl() {
1868
- return Jt(/^Mac/);
1869
- }
1870
- function il() {
1871
- return Jt(/^iPhone/);
1872
- }
1873
- function En() {
1874
- return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1875
- }
1876
- function ll() {
1877
- return Jt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1878
- sl() && navigator.maxTouchPoints > 1;
1879
- }
1880
- function sa() {
1881
- return il() || ll();
1882
- }
1883
- function Jt(e) {
1884
- return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1885
- }
1886
- const cl = 24, ul = typeof window < "u" ? So : Ce;
1887
- function Dn(...e) {
1888
- return (...t) => {
1889
- for (let n of e)
1890
- typeof n == "function" && n(...t);
1891
- };
1892
- }
1893
- const Mt = typeof document < "u" && window.visualViewport;
1894
- function Pn(e) {
1895
- let t = window.getComputedStyle(e);
1896
- return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1897
- }
1898
- function ia(e) {
1899
- for (Pn(e) && (e = e.parentElement); e && !Pn(e); )
1900
- e = e.parentElement;
1901
- return e || document.scrollingElement || document.documentElement;
1902
- }
1903
- const dl = /* @__PURE__ */ new Set([
1904
- "checkbox",
1905
- "radio",
1906
- "range",
1907
- "color",
1908
- "file",
1909
- "image",
1910
- "button",
1911
- "submit",
1912
- "reset"
1913
- ]);
1914
- let ht = 0, Rt;
1915
- function fl(e = {}) {
1916
- let { isDisabled: t } = e;
1917
- ul(() => {
1918
- if (!t)
1919
- return ht++, ht === 1 && sa() && (Rt = hl()), () => {
1920
- ht--, ht === 0 && (Rt == null || Rt());
1921
- };
1922
- }, [
1923
- t
1924
- ]);
1925
- }
1926
- function hl() {
1927
- let e, t = 0, n = (c) => {
1928
- e = ia(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1929
- }, r = (c) => {
1930
- if (!e || e === document.documentElement || e === document.body) {
1931
- c.preventDefault();
1932
- return;
1933
- }
1934
- let d = c.changedTouches[0].pageY, v = e.scrollTop, M = e.scrollHeight - e.clientHeight;
1935
- M !== 0 && ((v <= 0 && d > t || v >= M && d < t) && c.preventDefault(), t = d);
1936
- }, o = (c) => {
1937
- let d = c.target;
1938
- Tt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1939
- d.style.transform = "";
1940
- }));
1941
- }, s = (c) => {
1942
- let d = c.target;
1943
- Tt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1944
- d.style.transform = "", Mt && (Mt.height < window.innerHeight ? requestAnimationFrame(() => {
1945
- jn(d);
1946
- }) : Mt.addEventListener("resize", () => jn(d), {
1947
- once: !0
1948
- }));
1949
- }));
1950
- }, i = () => {
1951
- window.scrollTo(0, 0);
1952
- }, l = window.pageXOffset, u = window.pageYOffset, m = Dn(pl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1953
- window.scrollTo(0, 0);
1954
- let f = Dn(We(document, "touchstart", n, {
1955
- passive: !1,
1956
- capture: !0
1957
- }), We(document, "touchmove", r, {
1958
- passive: !1,
1959
- capture: !0
1960
- }), We(document, "touchend", o, {
1961
- passive: !1,
1962
- capture: !0
1963
- }), We(document, "focus", s, !0), We(window, "scroll", i));
1964
- return () => {
1965
- m(), f(), window.scrollTo(l, u);
1966
- };
1967
- }
1968
- function pl(e, t, n) {
1969
- let r = e.style[t];
1970
- return e.style[t] = n, () => {
1971
- e.style[t] = r;
1972
- };
1973
- }
1974
- function We(e, t, n, r) {
1975
- return e.addEventListener(t, n, r), () => {
1976
- e.removeEventListener(t, n, r);
1977
- };
1978
- }
1979
- function jn(e) {
1980
- let t = document.scrollingElement || document.documentElement;
1981
- for (; e && e !== t; ) {
1982
- let n = ia(e);
1983
- if (n !== document.documentElement && n !== document.body && n !== e) {
1984
- let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1985
- const i = n.getBoundingClientRect().bottom + cl;
1986
- s > i && (n.scrollTop += o - r);
1987
- }
1988
- e = n.parentElement;
1989
- }
1990
- }
1991
- function Tt(e) {
1992
- return e instanceof HTMLInputElement && !dl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1993
- }
1994
- function ml(e, t) {
1995
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1996
- }
1997
- function gl(...e) {
1998
- return (t) => e.forEach((n) => ml(n, t));
1999
- }
2000
- function la(...e) {
2001
- return h.useCallback(gl(...e), e);
2002
- }
2003
- const ca = /* @__PURE__ */ new WeakMap();
2004
- function H(e, t, n = !1) {
2005
- if (!e || !(e instanceof HTMLElement)) return;
2006
- let r = {};
2007
- Object.entries(t).forEach(([o, s]) => {
2008
- if (o.startsWith("--")) {
2009
- e.style.setProperty(o, s);
2010
- return;
2011
- }
2012
- r[o] = e.style[o], e.style[o] = s;
2013
- }), !n && ca.set(e, r);
2014
- }
2015
- function vl(e, t) {
2016
- if (!e || !(e instanceof HTMLElement)) return;
2017
- let n = ca.get(e);
2018
- n && (e.style[t] = n[t]);
2019
- }
2020
- const U = (e) => {
2021
- switch (e) {
2022
- case "top":
2023
- case "bottom":
2024
- return !0;
2025
- case "left":
2026
- case "right":
2027
- return !1;
2028
- default:
2029
- return e;
2030
- }
2031
- };
2032
- function pt(e, t) {
2033
- if (!e)
2034
- return null;
2035
- const n = window.getComputedStyle(e), r = (
2036
- // @ts-ignore
2037
- n.transform || n.webkitTransform || n.mozTransform
2038
- );
2039
- let o = r.match(/^matrix3d\((.+)\)$/);
2040
- return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2041
- }
2042
- function wl(e) {
2043
- return 8 * (Math.log(e + 1) - 2);
2044
- }
2045
- function Et(e, t) {
2046
- if (!e) return () => {
2047
- };
2048
- const n = e.style.cssText;
2049
- return Object.assign(e.style, t), () => {
2050
- e.style.cssText = n;
2051
- };
2052
- }
2053
- function xl(...e) {
2054
- return (...t) => {
2055
- for (const n of e)
2056
- typeof n == "function" && n(...t);
2057
- };
2058
- }
2059
- const $ = {
2060
- DURATION: 0.5,
2061
- EASE: [
2062
- 0.32,
2063
- 0.72,
2064
- 0,
2065
- 1
2066
- ]
2067
- }, ua = 0.4, yl = 0.25, bl = 100, da = 8, Oe = 16, _t = 26, Dt = "vaul-dragging";
2068
- function fa(e) {
2069
- const t = p.useRef(e);
2070
- return p.useEffect(() => {
2071
- t.current = e;
2072
- }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2073
- }
2074
- function Sl({ defaultProp: e, onChange: t }) {
2075
- const n = p.useState(e), [r] = n, o = p.useRef(r), s = fa(t);
2076
- return p.useEffect(() => {
2077
- o.current !== r && (s(r), o.current = r);
2078
- }, [
2079
- r,
2080
- o,
2081
- s
2082
- ]), n;
2083
- }
2084
- function ha({ prop: e, defaultProp: t, onChange: n = () => {
2085
- } }) {
2086
- const [r, o] = Sl({
2087
- defaultProp: t,
2088
- onChange: n
2089
- }), s = e !== void 0, i = s ? e : r, l = fa(n), u = p.useCallback((m) => {
2090
- if (s) {
2091
- const c = typeof m == "function" ? m(e) : m;
2092
- c !== e && l(c);
2093
- } else
2094
- o(m);
2095
- }, [
2096
- s,
2097
- e,
2098
- o,
2099
- l
2100
- ]);
2101
- return [
2102
- i,
2103
- u
2104
- ];
2105
- }
2106
- function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2107
- const [f, c] = ha({
2108
- prop: e,
2109
- defaultProp: n == null ? void 0 : n[0],
2110
- onChange: t
2111
- }), [d, v] = p.useState(typeof window < "u" ? {
2112
- innerWidth: window.innerWidth,
2113
- innerHeight: window.innerHeight
2114
- } : void 0);
2115
- p.useEffect(() => {
2116
- function b() {
2117
- v({
2118
- innerWidth: window.innerWidth,
2119
- innerHeight: window.innerHeight
2120
- });
2121
- }
2122
- return window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
2123
- }, []);
2124
- const M = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2125
- n,
2126
- f
2127
- ]), C = p.useMemo(() => {
2128
- var b;
2129
- return (b = n == null ? void 0 : n.findIndex((j) => j === f)) != null ? b : null;
2130
- }, [
2131
- n,
2132
- f
2133
- ]), _ = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, R = p.useMemo(() => {
2134
- const b = u ? {
2135
- width: u.getBoundingClientRect().width,
2136
- height: u.getBoundingClientRect().height
2137
- } : typeof window < "u" ? {
2138
- width: window.innerWidth,
2139
- height: window.innerHeight
2140
- } : {
2141
- width: 0,
2142
- height: 0
2143
- };
2144
- var j;
2145
- return (j = n == null ? void 0 : n.map((D) => {
2146
- const B = typeof D == "string";
2147
- let K = 0;
2148
- if (B && (K = parseInt(D, 10)), U(l)) {
2149
- const x = B ? K : d ? D * b.height : 0;
2150
- return d ? l === "bottom" ? b.height - x : -b.height + x : x;
2151
- }
2152
- const W = B ? K : d ? D * b.width : 0;
2153
- return d ? l === "right" ? b.width - W : -b.width + W : W;
2154
- })) != null ? j : [];
2155
- }, [
2156
- n,
2157
- d,
2158
- u
2159
- ]), k = p.useMemo(() => C !== null ? R == null ? void 0 : R[C] : null, [
2160
- R,
2161
- C
2162
- ]), P = p.useCallback((b) => {
2163
- var j;
2164
- const D = (j = R == null ? void 0 : R.findIndex((B) => B === b)) != null ? j : null;
2165
- i(D), H(r.current, {
2166
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2167
- transform: U(l) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
2168
- }), R && D !== R.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2169
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2170
- opacity: "0"
2171
- }) : H(o.current, {
2172
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2173
- opacity: "1"
2174
- }), c(n == null ? void 0 : n[Math.max(D, 0)]);
2175
- }, [
2176
- r.current,
2177
- n,
2178
- R,
2179
- s,
2180
- o,
2181
- c
2182
- ]);
2183
- p.useEffect(() => {
2184
- if (f || e) {
2185
- var b;
2186
- const j = (b = n == null ? void 0 : n.findIndex((D) => D === e || D === f)) != null ? b : -1;
2187
- R && j !== -1 && typeof R[j] == "number" && P(R[j]);
2188
- }
2189
- }, [
2190
- f,
2191
- e,
2192
- n,
2193
- R,
2194
- P
2195
- ]);
2196
- function g({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
2197
- if (s === void 0) return;
2198
- const K = l === "bottom" || l === "right" ? (k ?? 0) - b : (k ?? 0) + b, W = C === s - 1, x = C === 0, V = b > 0;
2199
- if (W && H(o.current, {
2200
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2201
- }), !m && D > 2 && !V) {
2202
- B ? j() : P(R[0]);
2203
- return;
2204
- }
2205
- if (!m && D > 2 && V && R && n) {
2206
- P(R[n.length - 1]);
2207
- return;
2208
- }
2209
- const G = R == null ? void 0 : R.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2210
- if (D > ua && Math.abs(b) < te * 0.4) {
2211
- const q = V ? 1 : -1;
2212
- if (q > 0 && M && n) {
2213
- P(R[n.length - 1]);
2214
- return;
2215
- }
2216
- if (x && q < 0 && B && j(), C === null) return;
2217
- P(R[C + q]);
2218
- return;
2219
- }
2220
- P(G);
2221
- }
2222
- function z({ draggedDistance: b }) {
2223
- if (k === null) return;
2224
- const j = l === "bottom" || l === "right" ? k - b : k + b;
2225
- (l === "bottom" || l === "right") && j < R[R.length - 1] || (l === "top" || l === "left") && j > R[R.length - 1] || H(r.current, {
2226
- transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2227
- });
2228
- }
2229
- function Z(b, j) {
2230
- if (!n || typeof C != "number" || !R || s === void 0) return null;
2231
- const D = C === s - 1;
2232
- if (C >= s && j)
2233
- return 0;
2234
- if (D && !j) return 1;
2235
- if (!_ && !D) return null;
2236
- const K = D ? C + 1 : C - 1, W = D ? R[K] - R[K - 1] : R[K + 1] - R[K], x = b / Math.abs(W);
2237
- return D ? 1 - x : x;
2238
- }
2239
- return {
2240
- isLastSnapPoint: M,
2241
- activeSnapPoint: f,
2242
- shouldFade: _,
2243
- getPercentageDragged: Z,
2244
- setActiveSnapPoint: c,
2245
- activeSnapPointIndex: C,
2246
- onRelease: g,
2247
- onDrag: z,
2248
- snapPointsOffset: R
2249
- };
2250
- }
2251
- const Ml = () => () => {
2252
- };
2253
- function Rl() {
2254
- const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2255
- function l() {
2256
- return (window.innerWidth - _t) / window.innerWidth;
2257
- }
2258
- p.useEffect(() => {
2259
- if (t && n) {
2260
- s.current && clearTimeout(s.current);
2261
- const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2262
- if (!u) return;
2263
- xl(r && !o ? Et(document.body, {
2264
- background: "black"
2265
- }) : Ml, Et(u, {
2266
- transformOrigin: U(e) ? "top" : "left",
2267
- transitionProperty: "transform, border-radius",
2268
- transitionDuration: `${$.DURATION}s`,
2269
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2270
- }));
2271
- const m = Et(u, {
2272
- borderRadius: `${da}px`,
2273
- overflow: "hidden",
2274
- ...U(e) ? {
2275
- transform: `scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
2276
- } : {
2277
- transform: `scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
2278
- }
2279
- });
2280
- return () => {
2281
- m(), s.current = window.setTimeout(() => {
2282
- i ? document.body.style.background = i : document.body.style.removeProperty("background");
2283
- }, $.DURATION * 1e3);
2284
- };
2285
- }
2286
- }, [
2287
- t,
2288
- n,
2289
- i
2290
- ]);
2291
- }
2292
- let Ye = null;
2293
- function El({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2294
- const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2295
- if (En() && Ye === null && e && !s) {
2296
- Ye = {
2297
- position: document.body.style.position,
2298
- top: document.body.style.top,
2299
- left: document.body.style.left,
2300
- height: document.body.style.height,
2301
- right: "unset"
2302
- };
2303
- const { scrollX: c, innerHeight: d } = window;
2304
- document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
2305
- top: `${-u.current}px`,
2306
- left: `${-c}px`,
2307
- right: "0px",
2308
- height: "auto"
2309
- }), window.setTimeout(() => window.requestAnimationFrame(() => {
2310
- const v = d - window.innerHeight;
2311
- v && u.current >= d && (document.body.style.top = `${-(u.current + v)}px`);
2312
- }), 300);
2313
- }
2314
- }, [
2315
- e
2316
- ]), f = p.useCallback(() => {
2317
- if (En() && Ye !== null && !s) {
2318
- const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2319
- Object.assign(document.body.style, Ye), window.requestAnimationFrame(() => {
2320
- if (o && i !== window.location.href) {
2321
- l(window.location.href);
2322
- return;
2323
- }
2324
- window.scrollTo(d, c);
2325
- }), Ye = null;
2326
- }
2327
- }, [
2328
- i
2329
- ]);
2330
- return p.useEffect(() => {
2331
- function c() {
2332
- u.current = window.scrollY;
2333
- }
2334
- return c(), window.addEventListener("scroll", c), () => {
2335
- window.removeEventListener("scroll", c);
2336
- };
2337
- }, []), p.useEffect(() => {
2338
- if (t)
2339
- return () => {
2340
- typeof document > "u" || document.querySelector("[data-vaul-drawer]") || f();
2341
- };
2342
- }, [
2343
- t,
2344
- f
2345
- ]), p.useEffect(() => {
2346
- n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && m(), t || window.setTimeout(() => {
2347
- f();
2348
- }, 500)) : f());
2349
- }, [
2350
- e,
2351
- r,
2352
- i,
2353
- t,
2354
- n,
2355
- m,
2356
- f
2357
- ]), {
2358
- restorePositionSetting: f
2359
- };
2360
- }
2361
- function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = yl, scrollLockTimeout: m = bl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: v, setActiveSnapPoint: M, fixed: C, modal: _ = !0, onClose: R, nested: k, noBodyStyles: P = !1, direction: g = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2362
- var x, V;
2363
- const [G = !1, te] = ha({
2364
- defaultProp: z,
2365
- prop: e,
2366
- onChange: (S) => {
2367
- t == null || t(S), !S && !k && _a(), setTimeout(() => {
2368
- B == null || B(S);
2369
- }, $.DURATION * 1e3), S && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
2370
- document.body.style.pointerEvents = "auto";
2371
- }), S || (document.body.style.pointerEvents = "auto");
2372
- }
2373
- }), [q, Y] = p.useState(!1), [y, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), ke = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), $e = p.useRef(0), Fe = p.useRef(!1), nn = p.useRef(!z), rn = p.useRef(0), E = p.useRef(null), an = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), on = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), bt = p.useRef(0), Da = p.useCallback((S) => {
2374
- s && S === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2375
- }, []), { activeSnapPoint: Pa, activeSnapPointIndex: Le, setActiveSnapPoint: sn, onRelease: ja, snapPointsOffset: Ve, onDrag: Na, shouldFade: ln, getPercentageDragged: Ta } = Cl({
2376
- snapPoints: s,
2377
- activeSnapPointProp: v,
2378
- setActiveSnapPointProp: M,
2379
- drawerRef: E,
2380
- fadeFromIndex: d,
2381
- overlayRef: pe,
2382
- onSnapPointChange: Da,
2383
- direction: g,
2384
- container: K,
2385
- snapToSequentialPoint: b
2386
- });
2387
- fl({
2388
- isDisabled: !G || y || !_ || ie || !q || !D || !Z
2389
- });
2390
- const { restorePositionSetting: _a } = El({
2391
- isOpen: G,
2392
- modal: _,
2393
- nested: k ?? !1,
2394
- hasBeenOpened: q,
2395
- preventScrollRestoration: j,
2396
- noBodyStyles: P
2397
- });
2398
- function lt() {
2399
- return (window.innerWidth - _t) / window.innerWidth;
2400
- }
2401
- function Oa(S) {
2402
- var T, I;
2403
- !f && !s || E.current && !E.current.contains(S.target) || (an.current = ((T = E.current) == null ? void 0 : T.getBoundingClientRect().height) || 0, on.current = ((I = E.current) == null ? void 0 : I.getBoundingClientRect().width) || 0, Q(!0), ke.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2404
- once: !0
2405
- }), S.target.setPointerCapture(S.pointerId), $e.current = U(g) ? S.pageY : S.pageX);
2406
- }
2407
- function cn(S, T) {
2408
- var I;
2409
- let N = S;
2410
- const L = (I = window.getSelection()) == null ? void 0 : I.toString(), ne = E.current ? pt(E.current, g) : null, ee = /* @__PURE__ */ new Date();
2411
- if (N.tagName === "SELECT" || N.hasAttribute("data-vaul-no-drag") || N.closest("[data-vaul-no-drag]"))
2412
- return !1;
2413
- if (g === "right" || g === "left")
2414
- return !0;
2415
- if (Me.current && ee.getTime() - Me.current.getTime() < 500)
2416
- return !1;
2417
- if (ne !== null && (g === "bottom" ? ne > 0 : ne < 0))
2418
- return !0;
2419
- if (L && L.length > 0)
2420
- return !1;
2421
- if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || T)
2422
- return le.current = ee, !1;
2423
- for (; N; ) {
2424
- if (N.scrollHeight > N.clientHeight) {
2425
- if (N.scrollTop !== 0)
2426
- return le.current = /* @__PURE__ */ new Date(), !1;
2427
- if (N.getAttribute("role") === "dialog")
2428
- return !0;
2429
- }
2430
- N = N.parentNode;
2431
- }
2432
- return !0;
2433
- }
2434
- function Ia(S) {
2435
- if (E.current && y) {
2436
- const T = g === "bottom" || g === "right" ? 1 : -1, I = ($e.current - (U(g) ? S.pageY : S.pageX)) * T, N = I > 0, L = s && !f && !N;
2437
- if (L && Le === 0) return;
2438
- const ne = Math.abs(I), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = g === "bottom" || g === "top" ? an.current : on.current;
2439
- let fe = ne / Ee;
2440
- const _e = Ta(ne, N);
2441
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !cn(S.target, N)) return;
2442
- if (E.current.classList.add(Dt), Re.current = !0, H(E.current, {
2443
- transition: "none"
2444
- }), H(pe.current, {
2445
- transition: "none"
2446
- }), s && Na({
2447
- draggedDistance: I
2448
- }), N && !s) {
2449
- const me = wl(I), ct = Math.min(me * -1, 0) * T;
2450
- H(E.current, {
2451
- transform: U(g) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2452
- });
2453
- return;
2454
- }
2455
- const De = 1 - fe;
2456
- if ((ln || d && Le === d - 1) && (r == null || r(S, fe), H(pe.current, {
2457
- opacity: `${De}`,
2458
- transition: "none"
2459
- }, !0)), ee && pe.current && i) {
2460
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, dn = Math.max(0, 14 - fe * 14);
2461
- H(ee, {
2462
- borderRadius: `${ct}px`,
2463
- transform: U(g) ? `scale(${me}) translate3d(0, ${dn}px, 0)` : `scale(${me}) translate3d(${dn}px, 0, 0)`,
2464
- transition: "none"
2465
- }, !0);
2466
- }
2467
- if (!s) {
2468
- const me = ne * T;
2469
- H(E.current, {
2470
- transform: U(g) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2471
- });
2472
- }
2473
- }
2474
- }
2475
- p.useEffect(() => {
2476
- window.requestAnimationFrame(() => {
2477
- nn.current = !0;
2478
- });
2479
- }, []), p.useEffect(() => {
2480
- var S;
2481
- function T() {
2482
- if (!E.current || !D) return;
2483
- const I = document.activeElement;
2484
- if (Tt(I) || Fe.current) {
2485
- var N;
2486
- const L = ((N = window.visualViewport) == null ? void 0 : N.height) || 0, ne = window.innerHeight;
2487
- let ee = ne - L;
2488
- const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2489
- bt.current || (bt.current = Ee);
2490
- const _e = E.current.getBoundingClientRect().top;
2491
- if (Math.abs(rn.current - ee) > 60 && (Fe.current = !Fe.current), s && s.length > 0 && Ve && Le) {
2492
- const De = Ve[Le] || 0;
2493
- ee += De;
2494
- }
2495
- if (rn.current = ee, Ee > L || Fe.current) {
2496
- const De = E.current.getBoundingClientRect().height;
2497
- let me = De;
2498
- De > L && (me = L - (fe ? _e : _t)), C ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2499
- } else ol() || (E.current.style.height = `${bt.current}px`);
2500
- s && s.length > 0 && !Fe.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2501
- }
2502
- }
2503
- return (S = window.visualViewport) == null || S.addEventListener("resize", T), () => {
2504
- var I;
2505
- return (I = window.visualViewport) == null ? void 0 : I.removeEventListener("resize", T);
2506
- };
2507
- }, [
2508
- Le,
2509
- s,
2510
- Ve
2511
- ]);
2512
- function Ge(S) {
2513
- Aa(), R == null || R(), S || te(!1), setTimeout(() => {
2514
- s && sn(s[0]);
2515
- }, $.DURATION * 1e3);
2516
- }
2517
- function un() {
2518
- if (!E.current) return;
2519
- const S = document.querySelector("[data-vaul-drawer-wrapper]"), T = pt(E.current, g);
2520
- H(E.current, {
2521
- transform: "translate3d(0, 0, 0)",
2522
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2523
- }), H(pe.current, {
2524
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2525
- opacity: "1"
2526
- }), i && T && T > 0 && G && H(S, {
2527
- borderRadius: `${da}px`,
2528
- overflow: "hidden",
2529
- ...U(g) ? {
2530
- transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2531
- transformOrigin: "top"
2532
- } : {
2533
- transform: `scale(${lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
2534
- transformOrigin: "left"
2535
- },
2536
- transitionProperty: "transform, border-radius",
2537
- transitionDuration: `${$.DURATION}s`,
2538
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2539
- }, !0);
2540
- }
2541
- function Aa() {
2542
- !y || !E.current || (E.current.classList.remove(Dt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2543
- }
2544
- function ka(S) {
2545
- if (!y || !E.current) return;
2546
- E.current.classList.remove(Dt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2547
- const T = pt(E.current, g);
2548
- if (!S || !cn(S.target, !1) || !T || Number.isNaN(T) || ke.current === null) return;
2549
- const I = ye.current.getTime() - ke.current.getTime(), N = $e.current - (U(g) ? S.pageY : S.pageX), L = Math.abs(N) / I;
2550
- if (L > 0.05 && (de(!0), setTimeout(() => {
2551
- de(!1);
2552
- }, 200)), s) {
2553
- ja({
2554
- draggedDistance: N * (g === "bottom" || g === "right" ? 1 : -1),
2555
- closeDrawer: Ge,
2556
- velocity: L,
2557
- dismissible: f
2558
- }), o == null || o(S, !0);
2559
- return;
2560
- }
2561
- if (g === "bottom" || g === "right" ? N > 0 : N < 0) {
2562
- un(), o == null || o(S, !0);
2563
- return;
2564
- }
2565
- if (L > ua) {
2566
- Ge(), o == null || o(S, !1);
2567
- return;
2568
- }
2569
- var ne;
2570
- const ee = Math.min((ne = E.current.getBoundingClientRect().height) != null ? ne : 0, window.innerHeight);
2571
- var Ee;
2572
- const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = g === "left" || g === "right";
2573
- if (Math.abs(T) >= (_e ? fe : ee) * u) {
2574
- Ge(), o == null || o(S, !1);
2575
- return;
2576
- }
2577
- o == null || o(S, !0), un();
2578
- }
2579
- p.useEffect(() => (G && (H(document.documentElement, {
2580
- scrollBehavior: "auto"
2581
- }), Me.current = /* @__PURE__ */ new Date()), () => {
2582
- vl(document.documentElement, "scrollBehavior");
2583
- }), [
2584
- G
2585
- ]);
2586
- function $a(S) {
2587
- const T = S ? (window.innerWidth - Oe) / window.innerWidth : 1, I = S ? -Oe : 0;
2588
- re.current && window.clearTimeout(re.current), H(E.current, {
2589
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2590
- transform: `scale(${T}) translate3d(0, ${I}px, 0)`
2591
- }), !S && E.current && (re.current = setTimeout(() => {
2592
- const N = pt(E.current, g);
2593
- H(E.current, {
2594
- transition: "none",
2595
- transform: U(g) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2596
- });
2597
- }, 500));
2598
- }
2599
- function Fa(S, T) {
2600
- if (T < 0) return;
2601
- const I = (window.innerWidth - Oe) / window.innerWidth, N = I + T * (1 - I), L = -Oe + T * Oe;
2602
- H(E.current, {
2603
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2604
- transition: "none"
2605
- });
2606
- }
2607
- function La(S, T) {
2608
- const I = U(g) ? window.innerHeight : window.innerWidth, N = T ? (I - Oe) / I : 1, L = T ? -Oe : 0;
2609
- T && H(E.current, {
2610
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2611
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2612
- });
2613
- }
2614
- return p.useEffect(() => {
2615
- _ || window.requestAnimationFrame(() => {
2616
- document.body.style.pointerEvents = "auto";
2617
- });
2618
- }, [
2619
- _
2620
- ]), /* @__PURE__ */ p.createElement(as, {
2621
- defaultOpen: z,
2622
- onOpenChange: (S) => {
2623
- !f && !S || (S ? Y(!0) : Ge(!0), te(S));
2624
- },
2625
- open: G
2626
- }, /* @__PURE__ */ p.createElement(oa.Provider, {
2627
- value: {
2628
- activeSnapPoint: Pa,
2629
- snapPoints: s,
2630
- setActiveSnapPoint: sn,
2631
- drawerRef: E,
2632
- overlayRef: pe,
2633
- onOpenChange: t,
2634
- onPress: Oa,
2635
- onRelease: ka,
2636
- onDrag: Ia,
2637
- dismissible: f,
2638
- shouldAnimate: nn,
2639
- handleOnly: c,
2640
- isOpen: G,
2641
- isDragging: y,
2642
- shouldFade: ln,
2643
- closeDrawer: Ge,
2644
- onNestedDrag: Fa,
2645
- onNestedOpenChange: $a,
2646
- onNestedRelease: La,
2647
- keyboardIsOpen: Fe,
2648
- modal: _,
2649
- snapPointsOffset: Ve,
2650
- activeSnapPointIndex: Le,
2651
- direction: g,
2652
- shouldScaleBackground: i,
2653
- setBackgroundColorOnScale: l,
2654
- noBodyStyles: P,
2655
- container: K,
2656
- autoFocus: W
2657
- }
2658
- }, n));
2659
- }
2660
- const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2661
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = la(t, n), f = r && r.length > 0;
2662
- if (!l)
2663
- return null;
2664
- const c = p.useCallback((d) => o(d), [
2665
- o
2666
- ]);
2667
- return /* @__PURE__ */ p.createElement(Jo, {
2668
- onMouseUp: c,
2669
- ref: m,
2670
- "data-vaul-overlay": "",
2671
- "data-vaul-snap-points": i && f ? "true" : "false",
2672
- "data-vaul-snap-points-overlay": i && s ? "true" : "false",
2673
- "data-vaul-animate": u != null && u.current ? "true" : "false",
2674
- ...e
2675
- });
2676
- });
2677
- ma.displayName = "Drawer.Overlay";
2678
- const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2679
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: v, direction: M, snapPoints: C, container: _, handleOnly: R, shouldAnimate: k, autoFocus: P } = Qe(), [g, z] = p.useState(!1), Z = la(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = C && C.length > 0;
2680
- Rl();
2681
- const K = (x, V, G = 0) => {
2682
- if (D.current) return !0;
2683
- const te = Math.abs(x.y), q = Math.abs(x.x), Y = q > te, y = [
2684
- "bottom",
2685
- "right"
2686
- ].includes(V) ? 1 : -1;
2687
- if (V === "left" || V === "right") {
2688
- if (!(x.x * y < 0) && q >= 0 && q <= G)
2689
- return Y;
2690
- } else if (!(x.y * y < 0) && te >= 0 && te <= G)
2691
- return !Y;
2692
- return D.current = !0, !0;
2693
- };
2694
- p.useEffect(() => {
2695
- B && window.requestAnimationFrame(() => {
2696
- z(!0);
2697
- });
2698
- }, []);
2699
- function W(x) {
2700
- b.current = null, D.current = !1, l(x);
2701
- }
2702
- return /* @__PURE__ */ p.createElement(Zo, {
2703
- "data-vaul-drawer-direction": M,
2704
- "data-vaul-drawer": "",
2705
- "data-vaul-delayed-snap-points": g ? "true" : "false",
2706
- "data-vaul-snap-points": v && B ? "true" : "false",
2707
- "data-vaul-custom-container": _ ? "true" : "false",
2708
- "data-vaul-animate": k != null && k.current ? "true" : "false",
2709
- ...r,
2710
- ref: Z,
2711
- style: f && f.length > 0 ? {
2712
- "--snap-point-height": `${f[c ?? 0]}px`,
2713
- ...t
2714
- } : t,
2715
- onPointerDown: (x) => {
2716
- R || (r.onPointerDown == null || r.onPointerDown.call(r, x), b.current = {
2717
- x: x.pageX,
2718
- y: x.pageY
2719
- }, i(x));
2720
- },
2721
- onOpenAutoFocus: (x) => {
2722
- n == null || n(x), P || x.preventDefault();
2723
- },
2724
- onPointerDownOutside: (x) => {
2725
- if (e == null || e(x), !d || x.defaultPrevented) {
2726
- x.preventDefault();
2727
- return;
2728
- }
2729
- m.current && (m.current = !1);
2730
- },
2731
- onFocusOutside: (x) => {
2732
- if (!d) {
2733
- x.preventDefault();
2734
- return;
2735
- }
2736
- },
2737
- onPointerMove: (x) => {
2738
- if (j.current = x, R || (r.onPointerMove == null || r.onPointerMove.call(r, x), !b.current)) return;
2739
- const V = x.pageY - b.current.y, G = x.pageX - b.current.x, te = x.pointerType === "touch" ? 10 : 2;
2740
- K({
2741
- x: G,
2742
- y: V
2743
- }, M, te) ? u(x) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2744
- },
2745
- onPointerUp: (x) => {
2746
- r.onPointerUp == null || r.onPointerUp.call(r, x), b.current = null, D.current = !1, l(x);
2747
- },
2748
- onPointerOut: (x) => {
2749
- r.onPointerOut == null || r.onPointerOut.call(r, x), W(j.current);
2750
- },
2751
- onContextMenu: (x) => {
2752
- r.onContextMenu == null || r.onContextMenu.call(r, x), j.current && W(j.current);
2753
- }
2754
- });
2755
- });
2756
- ga.displayName = "Drawer.Content";
2757
- const Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2758
- const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: v } = Qe(), M = p.useRef(null), C = p.useRef(!1);
2759
- function _() {
2760
- if (C.current) {
2761
- P();
2762
- return;
2763
- }
2764
- window.setTimeout(() => {
2765
- R();
2766
- }, Pl);
2767
- }
2768
- function R() {
2769
- if (s || e || C.current) {
2770
- P();
2771
- return;
2772
- }
2773
- if (P(), !i || i.length === 0) {
2774
- m || o();
2775
- return;
2776
- }
2777
- if (l === i[i.length - 1] && m) {
2778
- o();
2779
- return;
2780
- }
2781
- const z = i.findIndex((b) => b === l);
2782
- if (z === -1) return;
2783
- const Z = i[z + 1];
2784
- u(Z);
2785
- }
2786
- function k() {
2787
- M.current = window.setTimeout(() => {
2788
- C.current = !0;
2789
- }, Dl);
2790
- }
2791
- function P() {
2792
- M.current && window.clearTimeout(M.current), C.current = !1;
2793
- }
2794
- return /* @__PURE__ */ p.createElement("div", {
2795
- onClick: _,
2796
- onPointerCancel: P,
2797
- onPointerDown: (g) => {
2798
- f && d(g), k();
2799
- },
2800
- onPointerMove: (g) => {
2801
- f && v(g);
2802
- },
2803
- // onPointerUp is already handled by the content component
2804
- ref: r,
2805
- "data-vaul-drawer-visible": c ? "true" : "false",
2806
- "data-vaul-handle": "",
2807
- "aria-hidden": "true",
2808
- ...n
2809
- }, /* @__PURE__ */ p.createElement("span", {
2810
- "data-vaul-handle-hitarea": "",
2811
- "aria-hidden": "true"
2812
- }, t));
2813
- });
2814
- va.displayName = "Drawer.Handle";
2815
- function jl({ onDrag: e, onOpenChange: t, ...n }) {
2816
- const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2817
- if (!r)
2818
- throw new Error("Drawer.NestedRoot must be placed in another drawer");
2819
- return /* @__PURE__ */ p.createElement(pa, {
2820
- nested: !0,
2821
- onClose: () => {
2822
- o(!1);
2823
- },
2824
- onDrag: (i, l) => {
2825
- r(i, l), e == null || e(i, l);
2826
- },
2827
- onOpenChange: (i) => {
2828
- i && o(i);
2829
- },
2830
- onRelease: s,
2831
- ...n
2832
- });
2833
- }
2834
- function Nl(e) {
2835
- const t = Qe(), { container: n = t.container, ...r } = e;
2836
- return /* @__PURE__ */ p.createElement(os, {
2837
- container: n,
2838
- ...r
2839
- });
2840
- }
2841
- const he = {
2842
- Root: pa,
2843
- NestedRoot: jl,
2844
- Content: ga,
2845
- Overlay: ma,
2846
- Trigger: es,
2847
- Portal: Nl,
2848
- Handle: va,
2849
- Close: ts,
2850
- Title: ns,
2851
- Description: rs
2852
- }, Zt = ({
2853
- shouldScaleBackground: e = !0,
2854
- ...t
2855
- }) => /* @__PURE__ */ a.jsx(
2856
- he.Root,
2857
- {
2858
- shouldScaleBackground: e,
2859
- ...t
2860
- }
2861
- );
2862
- Zt.displayName = "Drawer";
2863
- const wa = he.Trigger, Tl = he.Portal, _l = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2864
- he.Overlay,
2865
- {
2866
- ref: n,
2867
- className: O("fixed inset-0 z-50 bg-black/80", e),
2868
- ...t
2869
- }
2870
- ));
2871
- xa.displayName = he.Overlay.displayName;
2872
- const en = h.forwardRef(
2873
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Tl, { children: [
2874
- /* @__PURE__ */ a.jsx(xa, {}),
2875
- /* @__PURE__ */ a.jsxs(
2876
- he.Content,
2877
- {
2878
- ref: o,
2879
- className: O(
2880
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2881
- e
2882
- ),
2883
- ...r,
2884
- children: [
2885
- !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2886
- t
2887
- ]
2888
- }
2889
- )
2890
- ] })
2891
- );
2892
- en.displayName = "DrawerContent";
2893
- const tn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2894
- he.Title,
2895
- {
2896
- ref: n,
2897
- className: O(
2898
- "text-lg font-semibold leading-none tracking-tight",
2899
- e
2900
- ),
2901
- ...t
2902
- }
2903
- ));
2904
- tn.displayName = he.Title.displayName;
2905
- const Ol = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2906
- he.Description,
2907
- {
2908
- ref: n,
2909
- className: O("text-sm text-muted-foreground", e),
2910
- ...t
2911
- }
2912
- ));
2913
- Ol.displayName = he.Description.displayName;
2914
- const ya = () => {
2915
- const e = qe(), [t, n] = Ie(!1), r = qn(() => n(!1), []);
2916
- Ce(() => {
2917
- if (t)
2918
- return;
2919
- function s(i) {
2920
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
2921
- }
2922
- return window.addEventListener("keydown", s), () => {
2923
- window.removeEventListener("keydown", s);
2924
- };
2925
- }, [t, n]);
2926
- const o = e.plugins.find(As);
2927
- return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2928
- /* @__PURE__ */ a.jsxs(
2929
- "button",
2930
- {
2931
- type: "button",
2932
- onClick: () => n(!0),
2933
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72",
2934
- children: [
2935
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2936
- /* @__PURE__ */ a.jsx(Ko, { size: 14 }),
2937
- "Search"
2938
- ] }),
2939
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2940
- ]
2941
- }
2942
- ),
2943
- /* @__PURE__ */ a.jsx(Qn, { fallback: null, children: o.renderSearch({
2944
- isOpen: t,
2945
- onClose: r
2946
- }) })
2947
- ] }) : null;
2948
- }, Il = () => {
2949
- const { topNavigation: e } = qe();
2950
- return /* @__PURE__ */ a.jsxs(Zt, { direction: "right", children: [
2951
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(qo, { size: 22 }) }) }),
2952
- /* @__PURE__ */ a.jsxs(
2953
- en,
2954
- {
2955
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2956
- "aria-describedby": void 0,
2957
- children: [
2958
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Navigation" }) }),
2959
- /* @__PURE__ */ a.jsx(ya, {}),
2960
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2961
- Ze,
2962
- {
2963
- className: ({ isActive: n }) => Un(
2964
- "block font-medium border-b-2",
2965
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2966
- ),
2967
- to: t.id,
2968
- children: /* @__PURE__ */ a.jsx(_l, { children: t.label })
2969
- }
2970
- ) }, t.label)) })
2971
- ]
2972
- }
2973
- )
2974
- ] });
2975
- }, Al = () => {
2976
- const { topNavigation: e } = qe();
2977
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2978
- Ze,
2979
- {
2980
- className: ({ isActive: n }) => Un(
2981
- "block py-3.5 font-medium -mb-px border-b-2",
2982
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2983
- ),
2984
- to: t.id,
2985
- children: t.label
2986
- }
2987
- ) }, t.label)) }) });
2988
- }, ba = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(el, { children: [
2989
- /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
2990
- /* @__PURE__ */ a.jsx(Zi, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
2991
- // eslint-disable-next-line react/no-array-index-key
2992
- /* @__PURE__ */ a.jsx(ba, { item: t }, n)
2993
- )) }) })
2994
- ] }, e.label) : /* @__PURE__ */ a.jsx(At, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Sa = Vn(function() {
2995
- const t = pn(), [n, r] = po(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = pn(), l = qe(), { page: u, plugins: m } = l, f = m.filter((d) => Os(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(ba, { item: d }, d.label)), c = n ? Qo : Vo;
2996
- return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2997
- /* @__PURE__ */ a.jsx(rl, {}),
2998
- /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2999
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
3000
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(At, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
3001
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3002
- /* @__PURE__ */ a.jsx(
3003
- "img",
3004
- {
3005
- src: u.logo.src.light,
3006
- alt: u.logo.alt ?? u.pageTitle,
3007
- style: { width: u.logo.width },
3008
- className: O("h-10", n && "hidden"),
3009
- loading: "lazy"
3010
- }
3011
- ),
3012
- /* @__PURE__ */ a.jsx(
3013
- "img",
3014
- {
3015
- src: u.logo.src.dark,
3016
- alt: u.logo.alt ?? u.pageTitle,
3017
- style: { width: u.logo.width },
3018
- className: O("h-10", !n && "hidden"),
3019
- loading: "lazy"
3020
- }
3021
- )
3022
- ] }),
3023
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3024
- ] }) }) }),
3025
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3026
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden md:flex ", children: /* @__PURE__ */ a.jsx(ya, {}) }),
3027
- /* @__PURE__ */ a.jsx(Il, {}),
3028
- /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3029
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-start" }),
3030
- i && !o ? /* @__PURE__ */ a.jsx(Pt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Xi, { modal: !1, children: [
3031
- /* @__PURE__ */ a.jsx(Ji, { asChild: !0, children: /* @__PURE__ */ a.jsx(Pt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3032
- /* @__PURE__ */ a.jsxs(ta, { className: "w-56", children: [
3033
- /* @__PURE__ */ a.jsx(ra, { children: "My Account" }),
3034
- /* @__PURE__ */ a.jsx(aa, {}),
3035
- f
3036
- ] })
3037
- ] }),
3038
- /* @__PURE__ */ a.jsx(
3039
- "button",
3040
- {
3041
- type: "button",
3042
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
3043
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
3044
- onClick: r,
3045
- children: /* @__PURE__ */ a.jsx(c, { size: 18 })
3046
- }
3047
- ),
3048
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-end" })
3049
- ] })
3050
- ] })
3051
- ] }),
3052
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-before" }),
3053
- /* @__PURE__ */ a.jsx(Al, {}),
3054
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-after" })
3055
- ] })
3056
- ] });
3057
- }), Ca = {
3058
- Header: Sa
3059
- }, kl = Kn(Ca), $l = kl.Provider, Fl = (e) => {
3060
- const [t, n] = Ie(!1);
3061
- Ce(() => {
3062
- const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
3063
- n(l);
3064
- }, [t]);
3065
- const r = qn(() => {
3066
- const s = !t;
3067
- document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3068
- }, [t]), o = [t, r];
3069
- return /* @__PURE__ */ a.jsx(mo.Provider, { value: o, ...e });
3070
- }, Ll = ({
3071
- children: e,
3072
- context: t
3073
- }) => ($o({
3074
- queryFn: async () => (await t.initialize(), !0),
3075
- queryKey: ["zudoku-initialize"]
3076
- }), /* @__PURE__ */ a.jsx(Fo.Provider, { value: t, children: e })), Bl = ({
3077
- children: e,
3078
- ...t
3079
- }) => {
3080
- var c, d;
3081
- const n = mt(
3082
- () => ({ ...Ca, ...t.overrides }),
3083
- [t.overrides]
3084
- ), r = mt(() => {
3085
- var M;
3086
- return {
3087
- ...(t.plugins ?? []).filter(Fs).flatMap(
3088
- (C) => C.getMdxComponents ? [C.getMdxComponents()] : []
3089
- ).reduce((C, _) => ({ ...C, ..._ }), {}),
3090
- ...go,
3091
- ...(M = t.mdx) == null ? void 0 : M.components
3092
- };
3093
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Co(jt), [s, i] = Ie(!1), l = mt(
3094
- () => s ? { stagger: !0 } : { stagger: o },
3095
- [o, s]
3096
- ), u = Wa();
3097
- Ce(() => {
3098
- s || i(!0);
3099
- }, [s, u.location]);
3100
- const [m] = Ie(() => new Bs(t)), f = (d = t.plugins) == null ? void 0 : d.filter($s).map((v, M) => {
3101
- var C;
3102
- return /* @__PURE__ */ a.jsx(Mo, { children: (C = v.getHead) == null ? void 0 : C.call(v) }, M);
3103
- });
3104
- return /* @__PURE__ */ a.jsxs(Lo, { client: nr, children: [
3105
- /* @__PURE__ */ a.jsx(It, { children: f }),
3106
- /* @__PURE__ */ a.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Ll, { context: m, children: /* @__PURE__ */ a.jsx(Ua, { components: r, children: /* @__PURE__ */ a.jsx(Fl, { children: /* @__PURE__ */ a.jsx($l, { value: n, children: /* @__PURE__ */ a.jsx(Xa, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(vo, { children: e ?? /* @__PURE__ */ a.jsx(In, {}) }) }) }) }) }) }) })
3107
- ] });
3108
- }, Hl = Vn(Bl), Ma = (e) => /* @__PURE__ */ a.jsx(Ts, { FallbackComponent: Hs, children: /* @__PURE__ */ a.jsx(Hl, { ...e }) });
3109
- Ma.displayName = "DevPortal";
3110
- const Ul = ({
3111
- category: e,
3112
- level: t
3113
- }) => {
3114
- var d;
3115
- const n = Yn(), r = za(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u);
3116
- Ce(() => {
3117
- r && f(!0);
3118
- }, [r]);
3119
- const c = i && /* @__PURE__ */ a.jsx(
3120
- "button",
3121
- {
3122
- type: "button",
3123
- onClick: (v) => {
3124
- v.preventDefault(), f((M) => !M), s(!0);
3125
- },
3126
- children: /* @__PURE__ */ a.jsx(
3127
- Xn,
3128
- {
3129
- size: 16,
3130
- className: O(
3131
- o && "transition",
3132
- "shrink-0 group-data-[state=open]:rotate-90"
3133
- )
3134
- }
3135
- )
3136
- }
3137
- );
3138
- return /* @__PURE__ */ a.jsxs(
3139
- Do,
3140
- {
3141
- className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
3142
- defaultOpen: u,
3143
- open: m,
3144
- onOpenChange: () => f(!0),
3145
- children: [
3146
- /* @__PURE__ */ a.jsx(Po, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3147
- "div",
3148
- {
3149
- className: O(
3150
- "text-start",
3151
- Je({ isActive: !1, isTopLevel: t === 0 }),
3152
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3153
- ),
3154
- children: [
3155
- e.icon && /* @__PURE__ */ a.jsx(
3156
- e.icon,
3157
- {
3158
- size: 16,
3159
- className: "align-[-0.125em] -translate-x-1"
3160
- }
3161
- ),
3162
- ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ a.jsx(
3163
- Ze,
3164
- {
3165
- to: Ht(n == null ? void 0 : n.id, e.link.id),
3166
- className: "flex-1",
3167
- onClick: () => s(!0),
3168
- children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
3169
- "div",
3170
- {
3171
- className: O(
3172
- "flex items-center gap-2 justify-between w-full",
3173
- v ? "text-primary font-medium" : "text-foreground/80"
3174
- ),
3175
- children: [
3176
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3177
- c
3178
- ]
3179
- }
3180
- )
3181
- }
3182
- ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3183
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3184
- c
3185
- ] })
3186
- ]
3187
- }
3188
- ) }),
3189
- /* @__PURE__ */ a.jsx(
3190
- jo,
3191
- {
3192
- className: O(
3193
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3194
- o && "CollapsibleContent",
3195
- "ms-[calc(var(--padding-nav-item)*1.125)]"
3196
- ),
3197
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
3198
- Ot,
3199
- {
3200
- level: t + 1,
3201
- item: v
3202
- },
3203
- ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
3204
- )) })
3205
- }
3206
- )
3207
- ]
3208
- }
3209
- );
3210
- }, Je = wo(
3211
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3212
- {
3213
- variants: {
3214
- isTopLevel: {
3215
- true: "font-semibold"
3216
- },
3217
- isActive: {
3218
- true: "text-primary font-medium",
3219
- false: "text-foreground/80"
3220
- },
3221
- isMuted: {
3222
- true: "text-foreground/30",
3223
- false: ""
3224
- }
3225
- }
3226
- }
3227
- ), Ra = "data-anchor", Ot = ({
3228
- item: e,
3229
- level: t = 0
3230
- }) => {
3231
- const n = Yn(), { activeAnchor: r } = Ft(), [o] = Ya();
3232
- switch (e.type) {
3233
- case "category":
3234
- return /* @__PURE__ */ a.jsx(Ul, { category: e, level: t });
3235
- case "doc":
3236
- return /* @__PURE__ */ a.jsxs(
3237
- Ze,
3238
- {
3239
- className: ({ isActive: s }) => Je({ isActive: s, isTopLevel: t === 0 }),
3240
- to: Ht(n == null ? void 0 : n.id, e.id),
3241
- children: [
3242
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3243
- e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3244
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3245
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3246
- ] }) : e.label
3247
- ]
3248
- }
3249
- );
3250
- case "link":
3251
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3252
- Ka,
3253
- {
3254
- to: { hash: e.href, search: o.toString() },
3255
- [Ra]: e.href.slice(1),
3256
- className: O(
3257
- "flex gap-2.5 justify-between",
3258
- t === 0 && "-mx-[--padding-nav-item]",
3259
- Je({
3260
- isActive: e.href.slice(1) === r
3261
- })
3262
- ),
3263
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3264
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3265
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3266
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3267
- }
3268
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3269
- "a",
3270
- {
3271
- className: O(
3272
- Je({ isTopLevel: t === 0 }),
3273
- "block"
3274
- ),
3275
- href: e.href,
3276
- target: "_blank",
3277
- rel: "noopener noreferrer",
3278
- children: [
3279
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3280
- /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
3281
- " ",
3282
- /* @__PURE__ */ a.jsx(Go, { className: "inline ml-1", size: 12 })
3283
- ] })
3284
- ]
3285
- }
3286
- ) : /* @__PURE__ */ a.jsx(
3287
- Ze,
3288
- {
3289
- className: O("flex gap-2.5 justify-between", Je()),
3290
- to: e.href,
3291
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3292
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3293
- /* @__PURE__ */ a.jsx(St, { ...e.badge })
3294
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3295
- }
3296
- );
3297
- }
3298
- }, zl = (e, t = { block: "center" }) => {
3299
- if (!e) return;
3300
- const n = e.getBoundingClientRect();
3301
- n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3302
- }, Kl = () => {
3303
- const e = kt(), { setActiveAnchor: t } = Ft();
3304
- Ce(() => {
3305
- if (!e.hash) return;
3306
- const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3307
- const o = document.getElementById(n), s = document.querySelector(`[${Ra}="${n}"]`);
3308
- return o ? (o.scrollIntoView(), zl(s), requestIdleCallback(() => t(n)), !0) : !1;
3309
- };
3310
- if (!r()) {
3311
- const o = new MutationObserver((s, i) => {
3312
- r() && i.disconnect();
3313
- });
3314
- return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3315
- }
3316
- }, [e.hash, t]);
3317
- }, ql = () => {
3318
- const e = kt(), t = Lt(e.pathname);
3319
- Ce(() => {
3320
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3321
- }, [e.pathname]);
3322
- }, Ea = Ro(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3323
- "nav",
3324
- {
3325
- "data-navigation": String(n),
3326
- className: O(
3327
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3328
- "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3329
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
3330
- t
3331
- ),
3332
- ref: r,
3333
- children: e
3334
- }
3335
- ));
3336
- Ea.displayName = "SidebarWrapper";
3337
- const Ql = () => {
3338
- const e = Lt(null), t = Bo();
3339
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3340
- /* @__PURE__ */ a.jsxs(
3341
- Ea,
3342
- {
3343
- ref: e,
3344
- pushMainContent: t.data.items.length > 0,
3345
- children: [
3346
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3347
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(Ot, { item: n }, n.label)),
3348
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3349
- ]
3350
- }
3351
- ),
3352
- /* @__PURE__ */ a.jsxs(
3353
- en,
3354
- {
3355
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3356
- "aria-describedby": void 0,
3357
- children: [
3358
- /* @__PURE__ */ a.jsx(Hn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Sidebar" }) }),
3359
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(Ot, { item: n }, n.label))
3360
- ]
3361
- }
3362
- )
3363
- ] });
3364
- }, Vl = ({ children: e }) => {
3365
- const t = kt(), { setActiveAnchor: n } = Ft(), { meta: r, authentication: o } = qe();
3366
- Kl(), ql();
3367
- const s = Lt(t.pathname);
3368
- return Ce(() => {
3369
- var i;
3370
- (i = o == null ? void 0 : o.pageLoad) == null || i.call(o);
3371
- }, [o]), Ce(() => {
3372
- t.pathname !== s.current && n(""), s.current = t.pathname;
3373
- }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3374
- !1,
3375
- /* @__PURE__ */ a.jsxs(It, { titleTemplate: r == null ? void 0 : r.title, children: [
3376
- (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3377
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3378
- ] }),
3379
- /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3380
- /* @__PURE__ */ a.jsx(Sa, {}),
3381
- /* @__PURE__ */ a.jsx(xe, { name: "layout-after-head" }),
3382
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3383
- Qn,
3384
- {
3385
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ss, {}) }),
3386
- children: /* @__PURE__ */ a.jsxs(Zt, { direction: "left", children: [
3387
- /* @__PURE__ */ a.jsx(Ql, {}),
3388
- /* @__PURE__ */ a.jsx(
3389
- "div",
3390
- {
3391
- className: O(
3392
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3393
- "peer-data-[navigation=false]:hidden"
3394
- ),
3395
- children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3396
- /* @__PURE__ */ a.jsx(Wo, { size: 16, strokeWidth: 1.5 }),
3397
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3398
- ] })
3399
- }
3400
- ),
3401
- /* @__PURE__ */ a.jsxs(
3402
- "main",
3403
- {
3404
- className: O(
3405
- "h-full dark:border-white/10 translate-x-0",
3406
- "lg:overflow-visible",
3407
- // This works in tandem with the `SidebarWrapper` component
3408
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
3409
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3410
- ),
3411
- children: [
3412
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-content" }),
3413
- e ?? /* @__PURE__ */ a.jsx(In, {}),
3414
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-content" })
3415
- ]
3416
- }
3417
- )
3418
- ] })
3419
- }
3420
- ) })
3421
- ] });
3422
- }, dc = qa, fc = xo, hc = Ma, pc = Vl, mc = At, gc = Ja, vc = is, wc = Ms, xc = Rs, yc = Pt, bc = It;
1
+ import "./index.esm-BnYHxCYC.js";
2
+ import "./useExposedProps-BH9aq4MD.js";
3
+ import "./chunk-QMGIS6GS-DqecZ6nq.js";
4
+ import "./hook-B4Q30zMI.js";
5
+ import "./ui/Button.js";
6
+ import "./ui/Callout.js";
7
+ import "./ClientOnly-E7hGysn1.js";
8
+ import "./ZudokuContext-BR-lnR7O.js";
9
+ import "./ErrorAlert-B5bWlc6g.js";
10
+ import "./Spinner-mNLZ6awP.js";
11
+ import { B as d, i as h, C as l, d as k, c as S, L as y, M, e as T, S as Z, T as c, Z as f, g, h as A, f as B, j as E, u as H } from "./index-CaqZFmdz.js";
3423
12
  export {
3424
- wc as Bootstrap,
3425
- xc as BootstrapStatic,
3426
- yc as Button,
3427
- fc as Callout,
3428
- hc as DevPortal,
3429
- bc as Head,
3430
- pc as Layout,
3431
- mc as Link,
3432
- gc as RouterError,
3433
- vc as ServerError,
3434
- dc as useMDXComponents
13
+ d as Button,
14
+ h as CACHE_KEYS,
15
+ l as Callout,
16
+ k as ClientOnly,
17
+ S as Head,
18
+ y as Link,
19
+ M as Markdown,
20
+ T as Slot,
21
+ Z as Spinner,
22
+ c as Typography,
23
+ f as Zudoku,
24
+ g as useAuth,
25
+ A as useCache,
26
+ B as useMDXComponents,
27
+ E as useTheme,
28
+ H as useZudoku
3435
29
  };
3436
30
  //# sourceMappingURL=zudoku.components.js.map