zudoku 0.0.0-f2c28ed → 0.0.0-f36627bd

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 (1429) hide show
  1. package/README.md +33 -13
  2. package/cli.js +1 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +10 -120
  4. package/dist/app/ZuploBuildConfig.js +7 -7
  5. package/dist/app/ZuploBuildConfig.js.map +1 -1
  6. package/dist/app/demo.js +22 -6
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +0 -2
  9. package/dist/app/entry.client.js +6 -7
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +0 -2
  12. package/dist/app/entry.server.js +3 -5
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +7 -7
  15. package/dist/app/env.js +10 -2
  16. package/dist/app/env.js.map +1 -1
  17. package/dist/app/main.d.ts +2 -1
  18. package/dist/app/main.js +30 -48
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +11 -7
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.js +9 -1
  23. package/dist/cli/build/handler.js.map +1 -1
  24. package/dist/cli/cli.js +2 -1
  25. package/dist/cli/cli.js.map +1 -1
  26. package/dist/cli/cmds/build.d.ts +1 -1
  27. package/dist/cli/cmds/dev.d.ts +1 -1
  28. package/dist/cli/cmds/preview.d.ts +1 -1
  29. package/dist/cli/common/analytics/lib.js +1 -1
  30. package/dist/cli/common/analytics/lib.js.map +1 -1
  31. package/dist/cli/common/logger.js +0 -1
  32. package/dist/cli/common/logger.js.map +1 -1
  33. package/dist/cli/common/machine-id/lib.js +3 -2
  34. package/dist/cli/common/machine-id/lib.js.map +1 -1
  35. package/dist/cli/common/outdated.js +2 -1
  36. package/dist/cli/common/outdated.js.map +1 -1
  37. package/dist/cli/common/output.js +2 -3
  38. package/dist/cli/common/output.js.map +1 -1
  39. package/dist/cli/common/utils/box.js +2 -2
  40. package/dist/cli/common/utils/box.js.map +1 -1
  41. package/dist/cli/common/validators/lib.js +1 -1
  42. package/dist/cli/common/validators/lib.js.map +1 -1
  43. package/dist/cli/dev/handler.js +0 -4
  44. package/dist/cli/dev/handler.js.map +1 -1
  45. package/dist/codegen.js +2 -2
  46. package/dist/codegen.js.map +1 -1
  47. package/dist/config/config.d.ts +14 -2
  48. package/dist/config/file-exists.d.ts +1 -0
  49. package/dist/config/file-exists.js +5 -0
  50. package/dist/config/file-exists.js.map +1 -0
  51. package/dist/config/loader.d.ts +19 -4
  52. package/dist/config/loader.js +91 -15
  53. package/dist/config/loader.js.map +1 -1
  54. package/dist/config/validators/BuildSchema.d.ts +20 -44
  55. package/dist/config/validators/BuildSchema.js +10 -16
  56. package/dist/config/validators/BuildSchema.js.map +1 -1
  57. package/dist/config/validators/InputNavigationSchema.d.ts +7562 -0
  58. package/dist/config/validators/InputNavigationSchema.js +77 -0
  59. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  60. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  61. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  62. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  63. package/dist/config/validators/NavigationSchema.js +98 -0
  64. package/dist/config/validators/NavigationSchema.js.map +1 -0
  65. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  66. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  67. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  68. package/dist/config/validators/auth.d.ts +2 -2
  69. package/dist/config/validators/auth.js +1 -1
  70. package/dist/config/validators/auth.js.map +1 -1
  71. package/dist/config/validators/icon-types.d.ts +2 -1
  72. package/dist/config/validators/icon-types.js +1852 -1
  73. package/dist/config/validators/icon-types.js.map +1 -1
  74. package/dist/config/validators/validate.d.ts +583 -2861
  75. package/dist/config/validators/validate.js +441 -18
  76. package/dist/config/validators/validate.js.map +1 -1
  77. package/dist/config/validators/validate.test.d.ts +1 -0
  78. package/dist/config/validators/validate.test.js +140 -0
  79. package/dist/config/validators/validate.test.js.map +1 -0
  80. package/dist/flat-config.d.ts +331 -0
  81. package/dist/index.d.ts +8 -5
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +1 -1
  85. package/dist/lib/MissingIcon.js.map +1 -1
  86. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  87. package/dist/lib/assets/language-icons/csharp.js +4 -0
  88. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  89. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  90. package/dist/lib/assets/language-icons/css.js +4 -0
  91. package/dist/lib/assets/language-icons/css.js.map +1 -0
  92. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  93. package/dist/lib/assets/language-icons/go.js +4 -0
  94. package/dist/lib/assets/language-icons/go.js.map +1 -0
  95. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  96. package/dist/lib/assets/language-icons/graphql.js +4 -0
  97. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  98. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  99. package/dist/lib/assets/language-icons/html.js +4 -0
  100. package/dist/lib/assets/language-icons/html.js.map +1 -0
  101. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  102. package/dist/lib/assets/language-icons/java.js +4 -0
  103. package/dist/lib/assets/language-icons/java.js.map +1 -0
  104. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  105. package/dist/lib/assets/language-icons/javascript.js +4 -0
  106. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  107. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  108. package/dist/lib/assets/language-icons/json.js +4 -0
  109. package/dist/lib/assets/language-icons/json.js.map +1 -0
  110. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  111. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  112. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  113. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  114. package/dist/lib/assets/language-icons/markdown.js +4 -0
  115. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  116. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  117. package/dist/lib/assets/language-icons/mdx.js +4 -0
  118. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  119. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  120. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  121. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  122. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  123. package/dist/lib/assets/language-icons/php.js +4 -0
  124. package/dist/lib/assets/language-icons/php.js.map +1 -0
  125. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  126. package/dist/lib/assets/language-icons/python.js +4 -0
  127. package/dist/lib/assets/language-icons/python.js.map +1 -0
  128. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  129. package/dist/lib/assets/language-icons/react.js +4 -0
  130. package/dist/lib/assets/language-icons/react.js.map +1 -0
  131. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  132. package/dist/lib/assets/language-icons/ruby.js +4 -0
  133. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  134. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  135. package/dist/lib/assets/language-icons/rust.js +4 -0
  136. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  137. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  138. package/dist/lib/assets/language-icons/shell.js +4 -0
  139. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  140. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  141. package/dist/lib/assets/language-icons/swift.js +4 -0
  142. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  143. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  144. package/dist/lib/assets/language-icons/toml.js +4 -0
  145. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  146. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  147. package/dist/lib/assets/language-icons/typescript.js +4 -0
  148. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  149. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  150. package/dist/lib/assets/language-icons/xml.js +4 -0
  151. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  152. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  153. package/dist/lib/assets/language-icons/yaml.js +4 -0
  154. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  155. package/dist/lib/auth/issuer.d.ts +2 -0
  156. package/dist/lib/auth/issuer.js +37 -0
  157. package/dist/lib/auth/issuer.js.map +1 -0
  158. package/dist/lib/auth/issuer.test.d.ts +1 -0
  159. package/dist/lib/auth/issuer.test.js +95 -0
  160. package/dist/lib/auth/issuer.test.js.map +1 -0
  161. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  162. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  163. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  164. package/dist/lib/authentication/authentication.d.ts +4 -6
  165. package/dist/lib/authentication/components/CallbackHandler.js +12 -10
  166. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  167. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  168. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  169. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  170. package/dist/lib/authentication/components/SignIn.js +4 -3
  171. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  172. package/dist/lib/authentication/components/SignOut.js +1 -1
  173. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  174. package/dist/lib/authentication/errors.d.ts +6 -12
  175. package/dist/lib/authentication/errors.js +2 -1
  176. package/dist/lib/authentication/errors.js.map +1 -1
  177. package/dist/lib/authentication/hook.d.ts +7 -0
  178. package/dist/lib/authentication/hook.js.map +1 -1
  179. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  180. package/dist/lib/authentication/providers/auth0.js +2 -2
  181. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  182. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  183. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  184. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  185. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  186. package/dist/lib/authentication/providers/clerk.js +66 -54
  187. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  188. package/dist/lib/authentication/providers/openid.d.ts +13 -15
  189. package/dist/lib/authentication/providers/openid.js +62 -27
  190. package/dist/lib/authentication/providers/openid.js.map +1 -1
  191. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  192. package/dist/lib/authentication/providers/supabase.js +6 -14
  193. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  194. package/dist/lib/authentication/state.d.ts +6 -5
  195. package/dist/lib/authentication/state.js +19 -6
  196. package/dist/lib/authentication/state.js.map +1 -1
  197. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  198. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  199. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  200. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  201. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  202. package/dist/lib/components/Autocomplete.js +3 -3
  203. package/dist/lib/components/Autocomplete.js.map +1 -1
  204. package/dist/lib/components/Banner.js +2 -2
  205. package/dist/lib/components/Banner.js.map +1 -1
  206. package/dist/lib/components/Bootstrap.js.map +1 -1
  207. package/dist/lib/components/BuildCheck.d.ts +2 -1
  208. package/dist/lib/components/BuildCheck.js +10 -3
  209. package/dist/lib/components/BuildCheck.js.map +1 -1
  210. package/dist/lib/components/CategoryHeading.js +1 -1
  211. package/dist/lib/components/CategoryHeading.js.map +1 -1
  212. package/dist/lib/components/ErrorPage.js +2 -2
  213. package/dist/lib/components/ErrorPage.js.map +1 -1
  214. package/dist/lib/components/Footer.js +6 -6
  215. package/dist/lib/components/Footer.js.map +1 -1
  216. package/dist/lib/components/Framed.d.ts +7 -0
  217. package/dist/lib/components/Framed.js +26 -0
  218. package/dist/lib/components/Framed.js.map +1 -0
  219. package/dist/lib/components/Header.js +25 -18
  220. package/dist/lib/components/Header.js.map +1 -1
  221. package/dist/lib/components/Heading.d.ts +7 -3
  222. package/dist/lib/components/Heading.js +8 -3
  223. package/dist/lib/components/Heading.js.map +1 -1
  224. package/dist/lib/components/InlineCode.js +1 -1
  225. package/dist/lib/components/InlineCode.js.map +1 -1
  226. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  227. package/dist/lib/components/LanguageIcon.js +118 -0
  228. package/dist/lib/components/LanguageIcon.js.map +1 -0
  229. package/dist/lib/components/Layout.js +5 -8
  230. package/dist/lib/components/Layout.js.map +1 -1
  231. package/dist/lib/components/Main.js +5 -5
  232. package/dist/lib/components/Main.js.map +1 -1
  233. package/dist/lib/components/Markdown.d.ts +0 -1
  234. package/dist/lib/components/Markdown.js +10 -6
  235. package/dist/lib/components/Markdown.js.map +1 -1
  236. package/dist/lib/components/Meta.d.ts +2 -0
  237. package/dist/lib/components/Meta.js +11 -0
  238. package/dist/lib/components/Meta.js.map +1 -0
  239. package/dist/lib/components/MobileTopNavigation.js +13 -6
  240. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  241. package/dist/lib/components/NotFoundPage.js +2 -2
  242. package/dist/lib/components/NotFoundPage.js.map +1 -1
  243. package/dist/lib/components/PageProgress.d.ts +1 -0
  244. package/dist/lib/components/PageProgress.js +20 -0
  245. package/dist/lib/components/PageProgress.js.map +1 -0
  246. package/dist/lib/components/Pagination.js +1 -1
  247. package/dist/lib/components/Pagination.js.map +1 -1
  248. package/dist/lib/components/PathRenderer.js +1 -1
  249. package/dist/lib/components/PathRenderer.js.map +1 -1
  250. package/dist/lib/components/Search.js +2 -2
  251. package/dist/lib/components/Search.js.map +1 -1
  252. package/dist/lib/components/Slot.d.ts +17 -0
  253. package/dist/lib/components/Slot.js +24 -0
  254. package/dist/lib/components/Slot.js.map +1 -0
  255. package/dist/lib/components/Slot.test.d.ts +1 -0
  256. package/dist/lib/components/Slot.test.js +172 -0
  257. package/dist/lib/components/Slot.test.js.map +1 -0
  258. package/dist/lib/components/StatusPage.js +4 -0
  259. package/dist/lib/components/StatusPage.js.map +1 -1
  260. package/dist/lib/components/TopNavigation.d.ts +7 -6
  261. package/dist/lib/components/TopNavigation.js +52 -54
  262. package/dist/lib/components/TopNavigation.js.map +1 -1
  263. package/dist/lib/components/Typography.d.ts +5 -0
  264. package/dist/lib/components/Typography.js +8 -0
  265. package/dist/lib/components/Typography.js.map +1 -0
  266. package/dist/lib/components/Zudoku.js +4 -4
  267. package/dist/lib/components/Zudoku.js.map +1 -1
  268. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  269. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  270. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  271. package/dist/lib/components/context/SlotProvider.js +83 -0
  272. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  273. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  274. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  275. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  276. package/dist/lib/components/context/ZudokuContext.js +56 -30
  277. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  278. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  279. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  280. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  281. package/dist/lib/components/index.d.ts +49 -49
  282. package/dist/lib/components/index.js +17 -22
  283. package/dist/lib/components/index.js.map +1 -1
  284. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  285. package/dist/lib/components/navigation/Navigation.js +12 -0
  286. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  287. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  288. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +3 -3
  289. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  290. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  291. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +22 -15
  292. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  293. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  294. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  295. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  296. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  297. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  298. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  299. package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
  300. package/dist/lib/components/navigation/Toc.js +1 -1
  301. package/dist/lib/components/navigation/Toc.js.map +1 -1
  302. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  303. package/dist/lib/components/navigation/utils.d.ts +16 -8
  304. package/dist/lib/components/navigation/utils.js +58 -27
  305. package/dist/lib/components/navigation/utils.js.map +1 -1
  306. package/dist/lib/core/RouteGuard.js +9 -9
  307. package/dist/lib/core/RouteGuard.js.map +1 -1
  308. package/dist/lib/core/ZudokuContext.d.ts +27 -20
  309. package/dist/lib/core/ZudokuContext.js +49 -14
  310. package/dist/lib/core/ZudokuContext.js.map +1 -1
  311. package/dist/lib/core/__internal.d.ts +37 -0
  312. package/dist/lib/core/__internal.js +26 -0
  313. package/dist/lib/core/__internal.js.map +1 -0
  314. package/dist/lib/core/plugins.d.ts +8 -4
  315. package/dist/lib/core/plugins.js +1 -0
  316. package/dist/lib/core/plugins.js.map +1 -1
  317. package/dist/lib/core/router.d.ts +1 -0
  318. package/dist/lib/core/router.js +2 -0
  319. package/dist/lib/core/router.js.map +1 -0
  320. package/dist/lib/errors/ErrorAlert.js +2 -4
  321. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  322. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  323. package/dist/lib/errors/TopLevelError.js +1 -2
  324. package/dist/lib/errors/TopLevelError.js.map +1 -1
  325. package/dist/lib/hooks/index.d.ts +25 -0
  326. package/dist/lib/hooks/index.js +11 -0
  327. package/dist/lib/hooks/index.js.map +1 -1
  328. package/dist/lib/hooks/useEvent.test.js +5 -3
  329. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  330. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  331. package/dist/lib/hooks/useHotkey.js +58 -0
  332. package/dist/lib/hooks/useHotkey.js.map +1 -0
  333. package/dist/lib/oas/graphql/circular.js +2 -2
  334. package/dist/lib/oas/graphql/circular.js.map +1 -1
  335. package/dist/lib/oas/graphql/index.js +22 -3
  336. package/dist/lib/oas/graphql/index.js.map +1 -1
  337. package/dist/lib/oas/parser/dereference/index.js +2 -1
  338. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  339. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  340. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  341. package/dist/lib/oas/parser/index.js +1 -1
  342. package/dist/lib/oas/parser/index.js.map +1 -1
  343. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  344. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  345. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  346. package/dist/lib/plugins/api-catalog/Catalog.js +8 -2
  347. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  348. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  349. package/dist/lib/plugins/api-catalog/index.js +10 -10
  350. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  351. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  352. package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
  353. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  354. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  355. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  356. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  357. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  358. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +146 -27
  359. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  360. package/dist/lib/plugins/api-keys/index.d.ts +29 -15
  361. package/dist/lib/plugins/api-keys/index.js +63 -33
  362. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  363. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  364. package/dist/lib/plugins/custom-pages/index.js +18 -10
  365. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  366. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  367. package/dist/lib/plugins/markdown/MdxPage.js +31 -11
  368. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  369. package/dist/lib/plugins/markdown/index.d.ts +12 -4
  370. package/dist/lib/plugins/markdown/index.js +9 -26
  371. package/dist/lib/plugins/markdown/index.js.map +1 -1
  372. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  373. package/dist/lib/plugins/openapi/ColorizedParam.js +5 -2
  374. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  375. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  376. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  377. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  378. package/dist/lib/plugins/openapi/MCPEndpoint.js +65 -0
  379. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  380. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  381. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  382. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  383. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  384. package/dist/lib/plugins/openapi/OperationList.js +23 -8
  385. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  386. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  387. package/dist/lib/plugins/openapi/OperationListItem.js +10 -7
  388. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  389. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  390. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  391. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  392. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  393. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  394. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  395. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  396. package/dist/lib/plugins/openapi/ParameterListItem.js +2 -2
  397. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  398. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  399. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -4
  400. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  401. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -2
  402. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  403. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  404. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  405. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  406. package/dist/lib/plugins/openapi/SchemaList.js +7 -7
  407. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  408. package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -2
  409. package/dist/lib/plugins/openapi/Sidecar.js +14 -92
  410. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  411. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -4
  412. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  413. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  414. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  415. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  416. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  417. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  418. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  419. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  420. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  421. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  422. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  423. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  424. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  425. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  426. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  427. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  428. package/dist/lib/plugins/openapi/graphql/gql.js +2 -3
  429. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  430. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +7 -3
  431. package/dist/lib/plugins/openapi/graphql/graphql.js +6 -2
  432. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  433. package/dist/lib/plugins/openapi/index.d.ts +5 -5
  434. package/dist/lib/plugins/openapi/index.js +52 -19
  435. package/dist/lib/plugins/openapi/index.js.map +1 -1
  436. package/dist/lib/plugins/openapi/interfaces.d.ts +7 -7
  437. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  438. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  439. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  440. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  441. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  442. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  443. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  444. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  445. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  446. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  447. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  448. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  449. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  450. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  451. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  452. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  453. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
  454. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  455. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  456. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  457. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  458. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  459. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  460. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  461. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -10
  462. package/dist/lib/plugins/openapi/playground/Playground.js +116 -94
  463. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  464. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  465. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  466. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  467. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  468. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  469. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  470. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  471. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  472. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  473. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  474. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  475. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  476. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  477. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  478. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  479. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  480. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  481. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  482. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  483. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  484. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  485. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  486. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  487. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  488. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  489. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  490. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  491. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  492. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  493. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  494. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  495. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  496. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  497. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  498. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  499. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  500. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  501. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  502. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  503. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  504. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  505. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  506. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  507. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  508. package/dist/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.d.ts → AllOfGroup/AllOfGroupItem.d.ts} +1 -3
  509. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  510. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  511. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +5 -0
  512. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  513. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  514. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  515. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  516. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  517. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +8 -17
  518. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  519. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -1
  520. package/dist/lib/plugins/openapi/schema/SchemaView.js +19 -14
  521. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  522. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  523. package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
  524. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  525. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  526. package/dist/lib/plugins/openapi/schema/union-helpers.js +72 -0
  527. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  528. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  529. package/dist/lib/plugins/openapi/schema/utils.js +3 -8
  530. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  531. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  532. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  533. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  534. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  535. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
  536. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  537. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  538. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +1 -2
  539. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  540. package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
  541. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  542. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  543. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  544. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  545. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  546. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  547. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  548. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  549. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  550. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
  551. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  552. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
  553. package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
  554. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  555. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  556. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  557. package/dist/lib/shiki.d.ts +10 -13
  558. package/dist/lib/shiki.js +14 -13
  559. package/dist/lib/shiki.js.map +1 -1
  560. package/dist/lib/ui/ActionButton.js +1 -1
  561. package/dist/lib/ui/ActionButton.js.map +1 -1
  562. package/dist/lib/ui/Alert.d.ts +6 -5
  563. package/dist/lib/ui/Alert.js +12 -10
  564. package/dist/lib/ui/Alert.js.map +1 -1
  565. package/dist/lib/ui/Badge.d.ts +2 -2
  566. package/dist/lib/ui/Badge.js +1 -1
  567. package/dist/lib/ui/Badge.js.map +1 -1
  568. package/dist/lib/ui/Breadcrumb.js +1 -1
  569. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  570. package/dist/lib/ui/Button.d.ts +2 -2
  571. package/dist/lib/ui/Button.js +8 -6
  572. package/dist/lib/ui/Button.js.map +1 -1
  573. package/dist/lib/ui/Callout.js +1 -1
  574. package/dist/lib/ui/Callout.js.map +1 -1
  575. package/dist/lib/ui/Card.js +1 -1
  576. package/dist/lib/ui/Carousel.js.map +1 -1
  577. package/dist/lib/ui/Checkbox.js +1 -1
  578. package/dist/lib/ui/Checkbox.js.map +1 -1
  579. package/dist/lib/ui/CodeBlock.d.ts +2 -3
  580. package/dist/lib/ui/CodeBlock.js +10 -10
  581. package/dist/lib/ui/CodeBlock.js.map +1 -1
  582. package/dist/lib/ui/Command.d.ts +2 -2
  583. package/dist/lib/ui/Command.js +3 -7
  584. package/dist/lib/ui/Command.js.map +1 -1
  585. package/dist/lib/ui/Dialog.d.ts +3 -1
  586. package/dist/lib/ui/Dialog.js +2 -2
  587. package/dist/lib/ui/Dialog.js.map +1 -1
  588. package/dist/lib/ui/DropdownMenu.js +4 -4
  589. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  590. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  591. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  592. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  593. package/dist/lib/ui/Form.d.ts +2 -2
  594. package/dist/lib/ui/HoverCard.js +1 -1
  595. package/dist/lib/ui/HoverCard.js.map +1 -1
  596. package/dist/lib/ui/Input.js +1 -1
  597. package/dist/lib/ui/Input.js.map +1 -1
  598. package/dist/lib/ui/Pagination.d.ts +1 -1
  599. package/dist/lib/ui/Pagination.js +1 -1
  600. package/dist/lib/ui/Pagination.js.map +1 -1
  601. package/dist/lib/ui/Popover.js +1 -1
  602. package/dist/lib/ui/Popover.js.map +1 -1
  603. package/dist/lib/ui/RadioGroup.js +1 -1
  604. package/dist/lib/ui/RadioGroup.js.map +1 -1
  605. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  606. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  607. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  608. package/dist/lib/ui/Secret.d.ts +12 -0
  609. package/dist/lib/ui/Secret.js +23 -0
  610. package/dist/lib/ui/Secret.js.map +1 -0
  611. package/dist/lib/ui/Select.js +2 -2
  612. package/dist/lib/ui/Select.js.map +1 -1
  613. package/dist/lib/ui/Slider.js +1 -1
  614. package/dist/lib/ui/Slider.js.map +1 -1
  615. package/dist/lib/ui/Switch.js +1 -1
  616. package/dist/lib/ui/Switch.js.map +1 -1
  617. package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
  618. package/dist/lib/ui/SyntaxHighlight.js +3 -2
  619. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  620. package/dist/lib/ui/Tabs.js +2 -2
  621. package/dist/lib/ui/Tabs.js.map +1 -1
  622. package/dist/lib/ui/Textarea.js +1 -1
  623. package/dist/lib/ui/Textarea.js.map +1 -1
  624. package/dist/lib/ui/Toggle.js +1 -1
  625. package/dist/lib/ui/Toggle.js.map +1 -1
  626. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  627. package/dist/lib/ui/Tooltip.d.ts +2 -1
  628. package/dist/lib/ui/Tooltip.js +2 -1
  629. package/dist/lib/ui/Tooltip.js.map +1 -1
  630. package/dist/lib/ui/Value.d.ts +5 -0
  631. package/dist/lib/ui/Value.js +13 -0
  632. package/dist/lib/ui/Value.js.map +1 -0
  633. package/dist/lib/util/MdxComponents.d.ts +10 -2
  634. package/dist/lib/util/MdxComponents.js +7 -3
  635. package/dist/lib/util/MdxComponents.js.map +1 -1
  636. package/dist/lib/util/cn.js.map +1 -1
  637. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  638. package/dist/lib/util/createVariantComponent.js.map +1 -1
  639. package/dist/lib/util/groupBy.js +1 -0
  640. package/dist/lib/util/groupBy.js.map +1 -1
  641. package/dist/lib/util/humanFileSize.d.ts +6 -0
  642. package/dist/lib/util/humanFileSize.js +14 -0
  643. package/dist/lib/util/humanFileSize.js.map +1 -0
  644. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  645. package/dist/lib/util/humanFileSize.test.js +22 -0
  646. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  647. package/dist/lib/util/invariant.d.ts +6 -5
  648. package/dist/lib/util/invariant.js +4 -2
  649. package/dist/lib/util/invariant.js.map +1 -1
  650. package/dist/lib/util/os.d.ts +2 -0
  651. package/dist/lib/util/os.js +21 -0
  652. package/dist/lib/util/os.js.map +1 -0
  653. package/dist/lib/util/pastellize.js +2 -2
  654. package/dist/lib/util/pastellize.js.map +1 -1
  655. package/dist/lib/util/traverse.d.ts +1 -0
  656. package/dist/lib/util/traverse.js +25 -0
  657. package/dist/lib/util/traverse.js.map +1 -1
  658. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  659. package/dist/lib/util/useCopyToClipboard.js +11 -0
  660. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  661. package/dist/lib/util/useExposedProps.d.ts +8 -1
  662. package/dist/lib/util/useExposedProps.js.map +1 -1
  663. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  664. package/dist/lib/util/useScrollToAnchor.js +5 -3
  665. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  666. package/dist/ts.js +3 -3
  667. package/dist/ts.js.map +1 -1
  668. package/dist/vite/api/SchemaManager.d.ts +4 -4
  669. package/dist/vite/api/SchemaManager.js +51 -28
  670. package/dist/vite/api/SchemaManager.js.map +1 -1
  671. package/dist/vite/api/SchemaManager.test.js +4 -4
  672. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  673. package/dist/vite/api/schema-codegen.js +71 -22
  674. package/dist/vite/api/schema-codegen.js.map +1 -1
  675. package/dist/vite/api/schema-codegen.test.js +156 -1
  676. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  677. package/dist/vite/build.js +22 -8
  678. package/dist/vite/build.js.map +1 -1
  679. package/dist/vite/config.d.ts +2 -9
  680. package/dist/vite/config.js +24 -98
  681. package/dist/vite/config.js.map +1 -1
  682. package/dist/vite/config.test.js +1 -1
  683. package/dist/vite/config.test.js.map +1 -1
  684. package/dist/vite/css/plugin.d.ts +1 -2
  685. package/dist/vite/css/plugin.js +14 -2
  686. package/dist/vite/css/plugin.js.map +1 -1
  687. package/dist/vite/dev-server.d.ts +0 -1
  688. package/dist/vite/dev-server.js +21 -15
  689. package/dist/vite/dev-server.js.map +1 -1
  690. package/dist/vite/error-handler.d.ts +2 -2
  691. package/dist/vite/error-handler.js.map +1 -1
  692. package/dist/vite/html.d.ts +2 -2
  693. package/dist/vite/html.js +5 -2
  694. package/dist/vite/html.js.map +1 -1
  695. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  696. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  697. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  698. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  699. package/dist/vite/mdx/remark-last-modified.js +28 -0
  700. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  701. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  702. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  703. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  704. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  705. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  706. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  707. package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
  708. package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
  709. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  710. package/dist/vite/mdx/utils.d.ts +2 -0
  711. package/dist/vite/mdx/utils.js +31 -0
  712. package/dist/vite/mdx/utils.js.map +1 -0
  713. package/dist/vite/output.d.ts +1 -1
  714. package/dist/vite/output.js +1 -1
  715. package/dist/vite/output.js.map +1 -1
  716. package/dist/vite/plugin-api-keys.d.ts +2 -3
  717. package/dist/vite/plugin-api-keys.js +10 -4
  718. package/dist/vite/plugin-api-keys.js.map +1 -1
  719. package/dist/vite/plugin-api.d.ts +1 -2
  720. package/dist/vite/plugin-api.js +17 -16
  721. package/dist/vite/plugin-api.js.map +1 -1
  722. package/dist/vite/plugin-auth.d.ts +2 -3
  723. package/dist/vite/plugin-auth.js +4 -3
  724. package/dist/vite/plugin-auth.js.map +1 -1
  725. package/dist/vite/plugin-component.d.ts +2 -3
  726. package/dist/vite/plugin-component.js +3 -2
  727. package/dist/vite/plugin-component.js.map +1 -1
  728. package/dist/vite/plugin-config-reload.d.ts +2 -3
  729. package/dist/vite/plugin-config-reload.js +23 -22
  730. package/dist/vite/plugin-config-reload.js.map +1 -1
  731. package/dist/vite/plugin-config.d.ts +2 -3
  732. package/dist/vite/plugin-config.js +6 -4
  733. package/dist/vite/plugin-config.js.map +1 -1
  734. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  735. package/dist/vite/plugin-custom-pages.js +6 -5
  736. package/dist/vite/plugin-custom-pages.js.map +1 -1
  737. package/dist/vite/plugin-docs.d.ts +1 -2
  738. package/dist/vite/plugin-docs.js +75 -63
  739. package/dist/vite/plugin-docs.js.map +1 -1
  740. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  741. package/dist/vite/plugin-frontmatter.js +10 -5
  742. package/dist/vite/plugin-frontmatter.js.map +1 -1
  743. package/dist/vite/plugin-mdx.d.ts +2 -3
  744. package/dist/vite/plugin-mdx.js +28 -65
  745. package/dist/vite/plugin-mdx.js.map +1 -1
  746. package/dist/vite/plugin-metadata.d.ts +1 -1
  747. package/dist/vite/plugin-navigation.d.ts +4 -0
  748. package/dist/vite/plugin-navigation.js +63 -0
  749. package/dist/vite/plugin-navigation.js.map +1 -0
  750. package/dist/vite/plugin-redirect.d.ts +2 -3
  751. package/dist/vite/plugin-redirect.js +4 -3
  752. package/dist/vite/plugin-redirect.js.map +1 -1
  753. package/dist/vite/plugin-search.d.ts +2 -3
  754. package/dist/vite/plugin-search.js +4 -3
  755. package/dist/vite/plugin-search.js.map +1 -1
  756. package/dist/vite/plugin-shiki-register.d.ts +1 -2
  757. package/dist/vite/plugin-shiki-register.js +3 -2
  758. package/dist/vite/plugin-shiki-register.js.map +1 -1
  759. package/dist/vite/plugin-theme.d.ts +8 -0
  760. package/dist/vite/plugin-theme.js +274 -0
  761. package/dist/vite/plugin-theme.js.map +1 -0
  762. package/dist/vite/plugin-theme.test.d.ts +1 -0
  763. package/dist/vite/plugin-theme.test.js +314 -0
  764. package/dist/vite/plugin-theme.test.js.map +1 -0
  765. package/dist/vite/plugin.d.ts +2 -3
  766. package/dist/vite/plugin.js +23 -24
  767. package/dist/vite/plugin.js.map +1 -1
  768. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  769. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  770. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  771. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  772. package/dist/vite/prerender/prerender.js +1 -1
  773. package/dist/vite/prerender/prerender.js.map +1 -1
  774. package/dist/vite/prerender/worker.d.ts +1 -1
  775. package/dist/vite/prerender/worker.js +5 -1
  776. package/dist/vite/prerender/worker.js.map +1 -1
  777. package/dist/vite/reporter.js +2 -2
  778. package/dist/vite/reporter.js.map +1 -1
  779. package/dist/vite/shadcn-registry.d.ts +20 -0
  780. package/dist/vite/shadcn-registry.js +29 -0
  781. package/dist/vite/shadcn-registry.js.map +1 -0
  782. package/dist/vite/sitemap.d.ts +1 -1
  783. package/dist/vite/sitemap.js +14 -13
  784. package/dist/vite/sitemap.js.map +1 -1
  785. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  786. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  787. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  788. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  789. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  790. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  791. package/dist/zuplo/policy-types.js +0 -1
  792. package/dist/zuplo/policy-types.js.map +1 -1
  793. package/dist/zuplo/with-zuplo-processors.js +2 -0
  794. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  795. package/dist/zuplo/with-zuplo.d.ts +2 -2
  796. package/dist/zuplo/with-zuplo.js +1 -1
  797. package/dist/zuplo/with-zuplo.js.map +1 -1
  798. package/lib/Button-DTDRi4CT.js +51 -0
  799. package/lib/Button-DTDRi4CT.js.map +1 -0
  800. package/lib/{Card-BlCYNw5W.js → Card-hTy9PAnh.js} +4 -4
  801. package/lib/{Card-BlCYNw5W.js.map → Card-hTy9PAnh.js.map} +1 -1
  802. package/lib/CategoryHeading-BGCNu3VK.js +17 -0
  803. package/lib/CategoryHeading-BGCNu3VK.js.map +1 -0
  804. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  805. package/lib/CodeBlock-i0BM_QFf.js +176 -0
  806. package/lib/CodeBlock-i0BM_QFf.js.map +1 -0
  807. package/lib/Command-TEBTONf1.js +134 -0
  808. package/lib/Command-TEBTONf1.js.map +1 -0
  809. package/lib/Dialog-VIMic7xI.js +114 -0
  810. package/lib/Dialog-VIMic7xI.js.map +1 -0
  811. package/lib/{Drawer-BPBxzel2.js → Drawer-DM9wJUC6.js} +87 -87
  812. package/lib/Drawer-DM9wJUC6.js.map +1 -0
  813. package/lib/ErrorAlert-Diu_w5Po.js +15522 -0
  814. package/lib/ErrorAlert-Diu_w5Po.js.map +1 -0
  815. package/lib/MdxPage-CDs_vtjC.js +111 -0
  816. package/lib/MdxPage-CDs_vtjC.js.map +1 -0
  817. package/lib/OAuthErrorPage-BbI9XJWR.js +150 -0
  818. package/lib/OAuthErrorPage-BbI9XJWR.js.map +1 -0
  819. package/lib/OasProvider-D3Cjaaxr.js +36 -0
  820. package/lib/OasProvider-D3Cjaaxr.js.map +1 -0
  821. package/lib/OperationList-BH4cFU-0.js +5454 -0
  822. package/lib/OperationList-BH4cFU-0.js.map +1 -0
  823. package/lib/Pagination-BKphudjx.js +37 -0
  824. package/lib/Pagination-BKphudjx.js.map +1 -0
  825. package/lib/RouteGuard-nFlgfJqk.js +56 -0
  826. package/lib/RouteGuard-nFlgfJqk.js.map +1 -0
  827. package/lib/RouterError-CnS5hYUh.js +41 -0
  828. package/lib/RouterError-CnS5hYUh.js.map +1 -0
  829. package/lib/SchemaList-BcJyi2sR.js +150 -0
  830. package/lib/SchemaList-BcJyi2sR.js.map +1 -0
  831. package/lib/SchemaView-DnTxmN15.js +458 -0
  832. package/lib/SchemaView-DnTxmN15.js.map +1 -0
  833. package/lib/{Select-HTio1oSE.js → Select-BPQp7Yqx.js} +116 -54
  834. package/lib/Select-BPQp7Yqx.js.map +1 -0
  835. package/lib/SignUp-tBtnwuXL.js +56 -0
  836. package/lib/SignUp-tBtnwuXL.js.map +1 -0
  837. package/lib/{Spinner-mNLZ6awP.js → Spinner-Cf6E803I.js} +2 -2
  838. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-Cf6E803I.js.map} +1 -1
  839. package/lib/{SyntaxHighlight-UxOF1xNb.js → SyntaxHighlight-Cqh6cwC3.js} +4659 -3459
  840. package/lib/SyntaxHighlight-Cqh6cwC3.js.map +1 -0
  841. package/lib/{Toc-Ax54Pw8S.js → Toc-Zzozy3eB.js} +6 -6
  842. package/lib/Toc-Zzozy3eB.js.map +1 -0
  843. package/lib/ZudokuContext-3cqbu21w.js +1285 -0
  844. package/lib/ZudokuContext-3cqbu21w.js.map +1 -0
  845. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  846. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  847. package/lib/{circular-B_TODp4H.js → circular-CokAagii.js} +1812 -1807
  848. package/lib/circular-CokAagii.js.map +1 -0
  849. package/lib/clsx-OuTLNxxd.js +17 -0
  850. package/lib/clsx-OuTLNxxd.js.map +1 -0
  851. package/lib/{cn-CwJPJKOE.js → cn-dYga0KKN.js} +1015 -562
  852. package/lib/cn-dYga0KKN.js.map +1 -0
  853. package/lib/{createServer-CXd8q7nF.js → createServer-DW4hIUUB.js} +2510 -2505
  854. package/lib/createServer-DW4hIUUB.js.map +1 -0
  855. package/lib/csharp-rrJEDRrV.js +53 -0
  856. package/lib/csharp-rrJEDRrV.js.map +1 -0
  857. package/lib/css-Dpk9bCql.js +54 -0
  858. package/lib/css-Dpk9bCql.js.map +1 -0
  859. package/lib/errors-CQLQ5016.js +45 -0
  860. package/lib/errors-CQLQ5016.js.map +1 -0
  861. package/lib/go-D8SJIQ0Z.js +25 -0
  862. package/lib/go-D8SJIQ0Z.js.map +1 -0
  863. package/lib/graphql-aeVKJNa2.js +25 -0
  864. package/lib/graphql-aeVKJNa2.js.map +1 -0
  865. package/lib/hook-ChlxzJwv.js +247 -0
  866. package/lib/hook-ChlxzJwv.js.map +1 -0
  867. package/lib/html-D_7om-nA.js +33 -0
  868. package/lib/html-D_7om-nA.js.map +1 -0
  869. package/lib/index-7FEjMkZ_.js +1058 -0
  870. package/lib/index-7FEjMkZ_.js.map +1 -0
  871. package/lib/{index-BvvmIczU.js → index-CF3Ls1wd.js} +2 -2
  872. package/lib/{index-BvvmIczU.js.map → index-CF3Ls1wd.js.map} +1 -1
  873. package/lib/index-CrcNWbel.js.map +1 -1
  874. package/lib/{index-Z13x6tPX.js → index-DI5SPFK9.js} +2 -2
  875. package/lib/{index-Z13x6tPX.js.map → index-DI5SPFK9.js.map} +1 -1
  876. package/lib/index-QwGs6inR.js +3397 -0
  877. package/lib/index-QwGs6inR.js.map +1 -0
  878. package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
  879. package/lib/index-nGbmHh_A.js.map +1 -0
  880. package/lib/{RouteGuard-lkdEJoDV.js → index.esm-BnYHxCYC.js} +232 -281
  881. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  882. package/lib/index.esm-CdzlRw50.js +1254 -0
  883. package/lib/index.esm-CdzlRw50.js.map +1 -0
  884. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  885. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  886. package/lib/java-DUh-EL8n.js +53 -0
  887. package/lib/java-DUh-EL8n.js.map +1 -0
  888. package/lib/javascript-CrY8dcGu.js +10 -0
  889. package/lib/javascript-CrY8dcGu.js.map +1 -0
  890. package/lib/json-DLK2_sdf.js +25 -0
  891. package/lib/json-DLK2_sdf.js.map +1 -0
  892. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +14 -14
  893. package/lib/{jsx-runtime-C5mzlN2N.js.map → jsx-runtime-DywqP_6a.js.map} +1 -1
  894. package/lib/kotlin-rJMOGl7D.js +37 -0
  895. package/lib/kotlin-rJMOGl7D.js.map +1 -0
  896. package/lib/markdown-BD9bIU5J.js +25 -0
  897. package/lib/markdown-BD9bIU5J.js.map +1 -0
  898. package/lib/mdx-G25UCvf3.js +32 -0
  899. package/lib/mdx-G25UCvf3.js.map +1 -0
  900. package/lib/{mutation-CL2MCRQL.js → mutation-DvBlWyBr.js} +2 -2
  901. package/lib/{mutation-CL2MCRQL.js.map → mutation-DvBlWyBr.js.map} +1 -1
  902. package/lib/objectivec-DDpj0aWX.js +32 -0
  903. package/lib/objectivec-DDpj0aWX.js.map +1 -0
  904. package/lib/php-BeG18bSy.js +25 -0
  905. package/lib/php-BeG18bSy.js.map +1 -0
  906. package/lib/processors/removeExtensions.js.map +1 -1
  907. package/lib/processors/removeParameters.js.map +1 -1
  908. package/lib/processors/removePaths.js.map +1 -1
  909. package/lib/processors/traverse.js.map +1 -1
  910. package/lib/python-BaF2byD-.js +32 -0
  911. package/lib/python-BaF2byD-.js.map +1 -0
  912. package/lib/react-CQvDN20M.js +24 -0
  913. package/lib/react-CQvDN20M.js.map +1 -0
  914. package/lib/ruby-CmxRVHMR.js +25 -0
  915. package/lib/ruby-CmxRVHMR.js.map +1 -0
  916. package/lib/rust-IfSC62c5.js +25 -0
  917. package/lib/rust-IfSC62c5.js.map +1 -0
  918. package/lib/shell-BFu0M6m4.js +25 -0
  919. package/lib/shell-BFu0M6m4.js.map +1 -0
  920. package/lib/swift-DckbsN4v.js +25 -0
  921. package/lib/swift-DckbsN4v.js.map +1 -0
  922. package/lib/toml-BJsCc8TC.js +32 -0
  923. package/lib/toml-BJsCc8TC.js.map +1 -0
  924. package/lib/typescript-7qOVMjOC.js +32 -0
  925. package/lib/typescript-7qOVMjOC.js.map +1 -0
  926. package/lib/ui/Accordion.js +2 -2
  927. package/lib/ui/Accordion.js.map +1 -1
  928. package/lib/ui/ActionButton.js +11 -11
  929. package/lib/ui/ActionButton.js.map +1 -1
  930. package/lib/ui/Alert.js +55 -39
  931. package/lib/ui/Alert.js.map +1 -1
  932. package/lib/ui/AlertDialog.js +2 -2
  933. package/lib/ui/AlertDialog.js.map +1 -1
  934. package/lib/ui/Badge.js +4 -4
  935. package/lib/ui/Badge.js.map +1 -1
  936. package/lib/ui/Breadcrumb.js +24 -23
  937. package/lib/ui/Breadcrumb.js.map +1 -1
  938. package/lib/ui/Button.js +20 -18
  939. package/lib/ui/Button.js.map +1 -1
  940. package/lib/ui/Callout.js +7 -6
  941. package/lib/ui/Callout.js.map +1 -1
  942. package/lib/ui/Card.js +9 -9
  943. package/lib/ui/Card.js.map +1 -1
  944. package/lib/ui/Carousel.js +2 -2
  945. package/lib/ui/Carousel.js.map +1 -1
  946. package/lib/ui/Checkbox.js +8 -8
  947. package/lib/ui/Checkbox.js.map +1 -1
  948. package/lib/ui/CodeBlock.js +6 -79
  949. package/lib/ui/CodeBlock.js.map +1 -1
  950. package/lib/ui/Command.js +51 -57
  951. package/lib/ui/Command.js.map +1 -1
  952. package/lib/ui/Dialog.js +74 -59
  953. package/lib/ui/Dialog.js.map +1 -1
  954. package/lib/ui/Drawer.js +3 -3
  955. package/lib/ui/DropdownMenu.js +35 -35
  956. package/lib/ui/DropdownMenu.js.map +1 -1
  957. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  958. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  959. package/lib/ui/Form.js +3 -3
  960. package/lib/ui/Form.js.map +1 -1
  961. package/lib/ui/HoverCard.js +6 -6
  962. package/lib/ui/HoverCard.js.map +1 -1
  963. package/lib/ui/Input.js +3 -3
  964. package/lib/ui/Input.js.map +1 -1
  965. package/lib/ui/Label.js +3 -3
  966. package/lib/ui/Label.js.map +1 -1
  967. package/lib/ui/Pagination.js +29 -30
  968. package/lib/ui/Pagination.js.map +1 -1
  969. package/lib/ui/Popover.js +3 -3
  970. package/lib/ui/Popover.js.map +1 -1
  971. package/lib/ui/Progress.js +2 -2
  972. package/lib/ui/Progress.js.map +1 -1
  973. package/lib/ui/RadioGroup.js +11 -11
  974. package/lib/ui/RadioGroup.js.map +1 -1
  975. package/lib/ui/ReactComponentDoc.js +28 -0
  976. package/lib/ui/ReactComponentDoc.js.map +1 -0
  977. package/lib/ui/ScrollArea.js +2 -2
  978. package/lib/ui/ScrollArea.js.map +1 -1
  979. package/lib/ui/Secret.js +96 -0
  980. package/lib/ui/Secret.js.map +1 -0
  981. package/lib/ui/Select.js +32 -32
  982. package/lib/ui/Select.js.map +1 -1
  983. package/lib/ui/Skeleton.js +2 -2
  984. package/lib/ui/Skeleton.js.map +1 -1
  985. package/lib/ui/Slider.js +6 -6
  986. package/lib/ui/Slider.js.map +1 -1
  987. package/lib/ui/Stepper.js +1 -1
  988. package/lib/ui/Stepper.js.map +1 -1
  989. package/lib/ui/Switch.js +6 -6
  990. package/lib/ui/Switch.js.map +1 -1
  991. package/lib/ui/SyntaxHighlight.js +7 -6
  992. package/lib/ui/SyntaxHighlight.js.map +1 -1
  993. package/lib/ui/Tabs.js +17 -17
  994. package/lib/ui/Tabs.js.map +1 -1
  995. package/lib/ui/Textarea.js +6 -6
  996. package/lib/ui/Textarea.js.map +1 -1
  997. package/lib/ui/Toggle.js +8 -8
  998. package/lib/ui/Toggle.js.map +1 -1
  999. package/lib/ui/ToggleGroup.js +2 -2
  1000. package/lib/ui/ToggleGroup.js.map +1 -1
  1001. package/lib/ui/Tooltip.js +15 -8
  1002. package/lib/ui/Tooltip.js.map +1 -1
  1003. package/lib/ui/Value.js +39 -0
  1004. package/lib/ui/Value.js.map +1 -0
  1005. package/lib/ui/util.js +1 -1
  1006. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1007. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1008. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1009. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1010. package/lib/useLatest-hmRS46UF.js.map +1 -1
  1011. package/lib/xml-DAaTIkBX.js +25 -0
  1012. package/lib/xml-DAaTIkBX.js.map +1 -0
  1013. package/lib/yaml-DUi-dbfu.js +32 -0
  1014. package/lib/yaml-DUi-dbfu.js.map +1 -0
  1015. package/lib/zudoku.__internal.js +2981 -0
  1016. package/lib/zudoku.__internal.js.map +1 -0
  1017. package/lib/zudoku.auth-auth0.js +2 -2
  1018. package/lib/zudoku.auth-auth0.js.map +1 -1
  1019. package/lib/zudoku.auth-azureb2c.js +137 -0
  1020. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1021. package/lib/zudoku.auth-clerk.js +97 -86
  1022. package/lib/zudoku.auth-clerk.js.map +1 -1
  1023. package/lib/zudoku.auth-openid.js +344 -330
  1024. package/lib/zudoku.auth-openid.js.map +1 -1
  1025. package/lib/zudoku.auth-supabase.js +98 -0
  1026. package/lib/zudoku.auth-supabase.js.map +1 -0
  1027. package/lib/zudoku.components.js +22 -28
  1028. package/lib/zudoku.hooks.js +21 -13
  1029. package/lib/zudoku.hooks.js.map +1 -1
  1030. package/lib/zudoku.icons.js +1 -1
  1031. package/lib/zudoku.icons.js.map +1 -1
  1032. package/lib/zudoku.plugin-api-catalog.js +67 -59
  1033. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  1034. package/lib/zudoku.plugin-api-keys.js +717 -192
  1035. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1036. package/lib/zudoku.plugin-custom-pages.js +15 -18
  1037. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1038. package/lib/zudoku.plugin-markdown.js +19 -69
  1039. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1040. package/lib/zudoku.plugin-openapi.js +6 -5
  1041. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1042. package/lib/zudoku.plugin-redirect.js +3 -3
  1043. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1044. package/lib/zudoku.plugin-search-inkeep.js +54 -57
  1045. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1046. package/lib/zudoku.plugin-search-pagefind.js +214 -119
  1047. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  1048. package/lib/zudoku.plugins.js +7 -6
  1049. package/lib/zudoku.plugins.js.map +1 -1
  1050. package/lib/zudoku.router.js +123 -0
  1051. package/lib/zudoku.router.js.map +1 -0
  1052. package/package.json +121 -104
  1053. package/src/app/ZuploBuildConfig.ts +7 -7
  1054. package/src/app/defaultTheme.css +73 -0
  1055. package/src/app/demo.tsx +25 -7
  1056. package/src/app/entry.client.tsx +7 -8
  1057. package/src/app/entry.server.tsx +4 -6
  1058. package/src/app/env.ts +10 -2
  1059. package/src/app/font.geist.css +73 -0
  1060. package/src/app/main.css +93 -162
  1061. package/src/app/main.tsx +45 -63
  1062. package/src/app/standalone.tsx +14 -8
  1063. package/src/lib/MissingIcon.tsx +1 -1
  1064. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1065. package/src/lib/assets/language-icons/css.tsx +36 -0
  1066. package/src/lib/assets/language-icons/go.tsx +19 -0
  1067. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1068. package/src/lib/assets/language-icons/html.tsx +24 -0
  1069. package/src/lib/assets/language-icons/java.tsx +35 -0
  1070. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1071. package/src/lib/assets/language-icons/json.tsx +19 -0
  1072. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1073. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1074. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1075. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1076. package/src/lib/assets/language-icons/php.tsx +19 -0
  1077. package/src/lib/assets/language-icons/python.tsx +23 -0
  1078. package/src/lib/assets/language-icons/react.tsx +21 -0
  1079. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1080. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1081. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1082. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1083. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1084. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1085. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1086. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1087. package/src/lib/auth/issuer.test.ts +121 -0
  1088. package/src/lib/auth/issuer.ts +41 -0
  1089. package/src/lib/authentication/AuthenticationPlugin.tsx +2 -2
  1090. package/src/lib/authentication/authentication.ts +6 -9
  1091. package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
  1092. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1093. package/src/lib/authentication/components/SignIn.tsx +5 -12
  1094. package/src/lib/authentication/components/SignOut.tsx +1 -1
  1095. package/src/lib/authentication/errors.ts +27 -13
  1096. package/src/lib/authentication/hook.ts +2 -0
  1097. package/src/lib/authentication/providers/auth0.tsx +11 -5
  1098. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1099. package/src/lib/authentication/providers/clerk.tsx +77 -59
  1100. package/src/lib/authentication/providers/openid.tsx +105 -34
  1101. package/src/lib/authentication/providers/supabase.tsx +14 -20
  1102. package/src/lib/authentication/state.ts +37 -7
  1103. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  1104. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1105. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1106. package/src/lib/components/AnchorLink.tsx +1 -1
  1107. package/src/lib/components/Autocomplete.tsx +4 -3
  1108. package/src/lib/components/Banner.tsx +2 -3
  1109. package/src/lib/components/Bootstrap.tsx +1 -0
  1110. package/src/lib/components/BuildCheck.tsx +14 -3
  1111. package/src/lib/components/CategoryHeading.tsx +4 -1
  1112. package/src/lib/components/ErrorPage.tsx +3 -3
  1113. package/src/lib/components/Footer.tsx +8 -11
  1114. package/src/lib/components/Framed.tsx +51 -0
  1115. package/src/lib/components/Header.tsx +46 -43
  1116. package/src/lib/components/Heading.tsx +17 -10
  1117. package/src/lib/components/InlineCode.tsx +1 -1
  1118. package/src/lib/components/LanguageIcon.tsx +136 -0
  1119. package/src/lib/components/Layout.tsx +6 -25
  1120. package/src/lib/components/Main.tsx +13 -13
  1121. package/src/lib/components/Markdown.tsx +23 -12
  1122. package/src/lib/components/Meta.tsx +45 -0
  1123. package/src/lib/components/MobileTopNavigation.tsx +71 -15
  1124. package/src/lib/components/NotFoundPage.tsx +6 -5
  1125. package/src/lib/components/PageProgress.tsx +28 -0
  1126. package/src/lib/components/Pagination.tsx +5 -10
  1127. package/src/lib/components/PathRenderer.tsx +2 -2
  1128. package/src/lib/components/Search.tsx +2 -2
  1129. package/src/lib/components/Slot.test.tsx +465 -0
  1130. package/src/lib/components/Slot.tsx +64 -0
  1131. package/src/lib/components/StatusPage.tsx +5 -0
  1132. package/src/lib/components/TopNavigation.tsx +80 -85
  1133. package/src/lib/components/Typography.tsx +14 -0
  1134. package/src/lib/components/Zudoku.tsx +11 -11
  1135. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1136. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1137. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1138. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1139. package/src/lib/components/context/ZudokuContext.ts +66 -41
  1140. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  1141. package/src/lib/components/index.ts +18 -28
  1142. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1143. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +2 -2
  1144. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +27 -18
  1145. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1146. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +9 -6
  1147. package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
  1148. package/src/lib/components/navigation/Toc.tsx +4 -4
  1149. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1150. package/src/lib/components/navigation/utils.ts +82 -42
  1151. package/src/lib/core/RouteGuard.tsx +13 -13
  1152. package/src/lib/core/ZudokuContext.ts +89 -29
  1153. package/src/lib/core/__internal.tsx +30 -0
  1154. package/src/lib/core/plugins.ts +13 -4
  1155. package/src/lib/core/router.ts +1 -0
  1156. package/src/lib/errors/ErrorAlert.tsx +8 -17
  1157. package/src/lib/errors/TopLevelError.tsx +2 -4
  1158. package/src/lib/hooks/index.ts +11 -0
  1159. package/src/lib/hooks/useEvent.test.tsx +9 -7
  1160. package/src/lib/hooks/useHotkey.ts +70 -0
  1161. package/src/lib/oas/graphql/circular.ts +3 -3
  1162. package/src/lib/oas/graphql/index.ts +20 -3
  1163. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1164. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1165. package/src/lib/oas/parser/index.ts +2 -2
  1166. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1167. package/src/lib/plugins/api-catalog/Catalog.tsx +9 -2
  1168. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  1169. package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
  1170. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1171. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +441 -122
  1172. package/src/lib/plugins/api-keys/index.tsx +143 -65
  1173. package/src/lib/plugins/custom-pages/index.tsx +24 -16
  1174. package/src/lib/plugins/markdown/MdxPage.tsx +81 -26
  1175. package/src/lib/plugins/markdown/index.tsx +30 -43
  1176. package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
  1177. package/src/lib/plugins/openapi/ColorizedParam.tsx +5 -3
  1178. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1179. package/src/lib/plugins/openapi/MCPEndpoint.tsx +293 -0
  1180. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1181. package/src/lib/plugins/openapi/OperationList.tsx +31 -29
  1182. package/src/lib/plugins/openapi/OperationListItem.tsx +96 -105
  1183. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1184. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1185. package/src/lib/plugins/openapi/ParameterListItem.tsx +12 -12
  1186. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +16 -8
  1187. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -2
  1188. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1189. package/src/lib/plugins/openapi/SchemaList.tsx +24 -18
  1190. package/src/lib/plugins/openapi/Sidecar.tsx +18 -102
  1191. package/src/lib/plugins/openapi/SidecarExamples.tsx +11 -11
  1192. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1193. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1194. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1195. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1196. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  1197. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1198. package/src/lib/plugins/openapi/context.tsx +1 -1
  1199. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -2
  1200. package/src/lib/plugins/openapi/graphql/gql.ts +8 -9
  1201. package/src/lib/plugins/openapi/graphql/graphql.ts +14 -7
  1202. package/src/lib/plugins/openapi/index.tsx +81 -30
  1203. package/src/lib/plugins/openapi/interfaces.ts +9 -7
  1204. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1205. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1206. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -4
  1207. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  1208. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
  1209. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +14 -17
  1210. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1211. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  1212. package/src/lib/plugins/openapi/playground/PathParams.tsx +5 -6
  1213. package/src/lib/plugins/openapi/playground/Playground.tsx +270 -293
  1214. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  1215. package/src/lib/plugins/openapi/playground/QueryParams.tsx +105 -59
  1216. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1217. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1218. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1219. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1220. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1221. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1222. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  1223. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -91
  1224. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1225. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1226. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1227. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1228. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1229. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupConnector.tsx → AllOfGroup/AllOfGroupConnector.tsx} +4 -25
  1230. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.tsx → AllOfGroup/AllOfGroupItem.tsx} +3 -11
  1231. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +42 -0
  1232. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -5
  1233. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +11 -30
  1234. package/src/lib/plugins/openapi/schema/SchemaView.tsx +44 -33
  1235. package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
  1236. package/src/lib/plugins/openapi/schema/union-helpers.ts +124 -0
  1237. package/src/lib/plugins/openapi/schema/utils.ts +3 -13
  1238. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1239. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
  1240. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +3 -4
  1241. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
  1242. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1243. package/src/lib/plugins/redirect/index.tsx +1 -1
  1244. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1245. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1246. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
  1247. package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
  1248. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1249. package/src/lib/shiki.ts +27 -22
  1250. package/src/lib/ui/ActionButton.tsx +3 -1
  1251. package/src/lib/ui/Alert.tsx +45 -39
  1252. package/src/lib/ui/Badge.tsx +2 -2
  1253. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1254. package/src/lib/ui/Button.tsx +9 -6
  1255. package/src/lib/ui/Callout.tsx +1 -0
  1256. package/src/lib/ui/Card.tsx +1 -1
  1257. package/src/lib/ui/Carousel.tsx +1 -0
  1258. package/src/lib/ui/Checkbox.tsx +1 -1
  1259. package/src/lib/ui/CodeBlock.tsx +37 -59
  1260. package/src/lib/ui/Command.tsx +6 -8
  1261. package/src/lib/ui/Dialog.tsx +20 -8
  1262. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1263. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1264. package/src/lib/ui/Form.tsx +4 -4
  1265. package/src/lib/ui/HoverCard.tsx +1 -1
  1266. package/src/lib/ui/Input.tsx +1 -1
  1267. package/src/lib/ui/Pagination.tsx +1 -2
  1268. package/src/lib/ui/Popover.tsx +1 -1
  1269. package/src/lib/ui/RadioGroup.tsx +1 -1
  1270. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1271. package/src/lib/ui/Secret.tsx +106 -0
  1272. package/src/lib/ui/Select.tsx +3 -3
  1273. package/src/lib/ui/Slider.tsx +1 -1
  1274. package/src/lib/ui/Switch.tsx +1 -1
  1275. package/src/lib/ui/SyntaxHighlight.tsx +11 -3
  1276. package/src/lib/ui/Tabs.tsx +2 -2
  1277. package/src/lib/ui/Textarea.tsx +1 -1
  1278. package/src/lib/ui/Toggle.tsx +1 -1
  1279. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1280. package/src/lib/ui/Tooltip.tsx +16 -1
  1281. package/src/lib/ui/Value.tsx +42 -0
  1282. package/src/lib/util/MdxComponents.tsx +25 -4
  1283. package/src/lib/util/cn.ts +1 -1
  1284. package/src/lib/util/createVariantComponent.tsx +2 -2
  1285. package/src/lib/util/groupBy.ts +1 -0
  1286. package/src/lib/util/humanFileSize.test.ts +24 -0
  1287. package/src/lib/util/humanFileSize.ts +15 -0
  1288. package/src/lib/util/invariant.ts +8 -5
  1289. package/src/lib/util/os.ts +18 -0
  1290. package/src/lib/util/pastellize.ts +2 -2
  1291. package/src/lib/util/traverse.ts +36 -0
  1292. package/src/lib/util/types.ts +1 -1
  1293. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1294. package/src/lib/util/useExposedProps.tsx +12 -1
  1295. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1296. package/src/lib/util/useScrollToAnchor.ts +6 -4
  1297. package/src/shiki/langs/vue-vine.js +1 -0
  1298. package/dist/app/tailwind.d.ts +0 -4
  1299. package/dist/app/tailwind.js +0 -97
  1300. package/dist/app/tailwind.js.map +0 -1
  1301. package/dist/config/common.d.ts +0 -10
  1302. package/dist/config/common.js +0 -2
  1303. package/dist/config/common.js.map +0 -1
  1304. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1305. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1306. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1307. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1308. package/dist/config/validators/SidebarSchema.js +0 -118
  1309. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1310. package/dist/config/validators/common.d.ts +0 -8001
  1311. package/dist/config/validators/common.js +0 -414
  1312. package/dist/config/validators/common.js.map +0 -1
  1313. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1314. package/dist/lib/components/ReactMarkdown.js +0 -182
  1315. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1316. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1317. package/dist/lib/components/SlotletProvider.js +0 -18
  1318. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1319. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1320. package/dist/lib/components/navigation/Sidebar.js +0 -10
  1321. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1322. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1323. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1324. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1325. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  1326. package/dist/lib/components/navigation/SidebarItem.js +0 -49
  1327. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1328. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1329. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1330. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1331. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1332. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1333. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1334. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1335. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1336. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1337. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1338. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1339. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1340. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1341. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1342. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1343. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1344. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1345. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1346. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1347. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1348. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1349. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1350. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1351. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1352. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1353. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1354. package/dist/vite/plugin-docs.test.js +0 -22
  1355. package/dist/vite/plugin-docs.test.js.map +0 -1
  1356. package/dist/vite/plugin-sidebar.d.ts +0 -5
  1357. package/dist/vite/plugin-sidebar.js +0 -62
  1358. package/dist/vite/plugin-sidebar.js.map +0 -1
  1359. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1360. package/dist/vite/plugin-theme-css.js +0 -117
  1361. package/dist/vite/plugin-theme-css.js.map +0 -1
  1362. package/dist/vite/remarkStaticGeneration.js.map +0 -1
  1363. package/lib/AuthenticationPlugin-UNaAuxNo.js +0 -90
  1364. package/lib/AuthenticationPlugin-UNaAuxNo.js.map +0 -1
  1365. package/lib/Button-Bdk_Ij3U.js +0 -49
  1366. package/lib/Button-Bdk_Ij3U.js.map +0 -1
  1367. package/lib/Callout-XadUe37J.js +0 -230
  1368. package/lib/Callout-XadUe37J.js.map +0 -1
  1369. package/lib/CategoryHeading-DZi-Szor.js +0 -10
  1370. package/lib/CategoryHeading-DZi-Szor.js.map +0 -1
  1371. package/lib/Dialog-CNf2oWXG.js +0 -98
  1372. package/lib/Dialog-CNf2oWXG.js.map +0 -1
  1373. package/lib/Drawer-BPBxzel2.js.map +0 -1
  1374. package/lib/Markdown-D96AphCL.js +0 -7691
  1375. package/lib/Markdown-D96AphCL.js.map +0 -1
  1376. package/lib/MdxPage-Sjv6y3cA.js +0 -84
  1377. package/lib/MdxPage-Sjv6y3cA.js.map +0 -1
  1378. package/lib/OasProvider-CzRXrs_-.js +0 -33
  1379. package/lib/OasProvider-CzRXrs_-.js.map +0 -1
  1380. package/lib/OperationList-DefCF3ZI.js +0 -5111
  1381. package/lib/OperationList-DefCF3ZI.js.map +0 -1
  1382. package/lib/Pagination-B89j9KJS.js +0 -48
  1383. package/lib/Pagination-B89j9KJS.js.map +0 -1
  1384. package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
  1385. package/lib/SchemaList-zHQ2Ekyw.js +0 -146
  1386. package/lib/SchemaList-zHQ2Ekyw.js.map +0 -1
  1387. package/lib/SchemaView-CqF4oMU-.js +0 -370
  1388. package/lib/SchemaView-CqF4oMU-.js.map +0 -1
  1389. package/lib/Select-HTio1oSE.js.map +0 -1
  1390. package/lib/SlotletProvider-CTgIBRWg.js +0 -257
  1391. package/lib/SlotletProvider-CTgIBRWg.js.map +0 -1
  1392. package/lib/SyntaxHighlight-UxOF1xNb.js.map +0 -1
  1393. package/lib/Toc-Ax54Pw8S.js.map +0 -1
  1394. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +0 -1839
  1395. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
  1396. package/lib/circular-B_TODp4H.js.map +0 -1
  1397. package/lib/cn-CwJPJKOE.js.map +0 -1
  1398. package/lib/createServer-CXd8q7nF.js.map +0 -1
  1399. package/lib/hook-BwOB_iZo.js +0 -1442
  1400. package/lib/hook-BwOB_iZo.js.map +0 -1
  1401. package/lib/index--oeBayMa.js +0 -86
  1402. package/lib/index--oeBayMa.js.map +0 -1
  1403. package/lib/index-BY8J3gEh.js +0 -3158
  1404. package/lib/index-BY8J3gEh.js.map +0 -1
  1405. package/lib/index-Bn6Lc9tq.js +0 -9
  1406. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1407. package/lib/index-CT2PstvH.js +0 -4982
  1408. package/lib/index-CT2PstvH.js.map +0 -1
  1409. package/lib/index-zddirpDj.js.map +0 -1
  1410. package/lib/index.esm-D2ZUREQN.js +0 -1216
  1411. package/lib/index.esm-D2ZUREQN.js.map +0 -1
  1412. package/lib/invariant-DAFpPywt.js.map +0 -1
  1413. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1414. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1415. package/lib/useExposedProps-DG8J6ewJ.js +0 -9
  1416. package/lib/useExposedProps-DG8J6ewJ.js.map +0 -1
  1417. package/src/app/tailwind.ts +0 -103
  1418. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1419. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1420. package/src/lib/components/SlotletProvider.tsx +0 -55
  1421. package/src/lib/components/navigation/Sidebar.tsx +0 -48
  1422. package/src/lib/components/navigation/SidebarItem.tsx +0 -117
  1423. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1424. package/src/lib/plugins/markdown/resolver.ts +0 -57
  1425. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1426. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1427. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1428. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1429. /package/dist/{vite/plugin-docs.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
@@ -0,0 +1,2981 @@
1
+ import { a as Fe, H as qe } from "./index.esm-BnYHxCYC.js";
2
+ import { j as a } from "./jsx-runtime-DywqP_6a.js";
3
+ import { S as Me, q as Qe, Q as _t, n as O, r as fe, v as pe, i as T, w as yt, x as wt, y as bt, z as zt, A as me, B as ge, D as xt, h as ve, E as _e, F as kt, G as Zt, g as $t, H as Le, e as jt, d as X, o as Pt, j as Ot } from "./ZudokuContext-3cqbu21w.js";
4
+ import { M as St } from "./mutation-DvBlWyBr.js";
5
+ import * as A from "react";
6
+ import { StrictMode as Be, useEffect as ee, useRef as Ke, useState as Et, Suspense as It } from "react";
7
+ import { h as Tt, m as Dt, aM as We, aQ as At, O as Nt } from "./chunk-QMGIS6GS-DqecZ6nq.js";
8
+ import * as Ct from "react-dom";
9
+ import { a as Rt, u as Ut, P as Ft, H as qt } from "./index-7FEjMkZ_.js";
10
+ import { B as He, R as Mt } from "./RouteGuard-nFlgfJqk.js";
11
+ import { CircleFadingArrowUpIcon as Qt, LoaderCircleIcon as Lt, ExternalLink as Bt, PanelLeftIcon as Kt } from "lucide-react";
12
+ import { Button as Wt } from "./ui/Button.js";
13
+ import { c as S } from "./cn-dYga0KKN.js";
14
+ import { a as N, A as Ht, s as Vt, N as ye, f as Jt, T as Gt, H as Yt, E as Xt } from "./ErrorAlert-Diu_w5Po.js";
15
+ import { d as E, b as en, c as tn } from "./Drawer-DM9wJUC6.js";
16
+ import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
17
+ import { S as rn } from "./Spinner-Cf6E803I.js";
18
+ import { C as on } from "./CategoryHeading-BGCNu3VK.js";
19
+ import { N as sn, R as an } from "./RouterError-CnS5hYUh.js";
20
+ var cn = class extends Me {
21
+ constructor(e = {}) {
22
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
23
+ }
24
+ #e;
25
+ build(e, t, n) {
26
+ const r = t.queryKey, o = t.queryHash ?? Qe(r, t);
27
+ let s = this.get(o);
28
+ return s || (s = new _t({
29
+ client: e,
30
+ queryKey: r,
31
+ queryHash: o,
32
+ options: e.defaultQueryOptions(t),
33
+ state: n,
34
+ defaultOptions: e.getQueryDefaults(r)
35
+ }), this.add(s)), s;
36
+ }
37
+ add(e) {
38
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
39
+ type: "added",
40
+ query: e
41
+ }));
42
+ }
43
+ remove(e) {
44
+ const t = this.#e.get(e.queryHash);
45
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
46
+ }
47
+ clear() {
48
+ O.batch(() => {
49
+ this.getAll().forEach((e) => {
50
+ this.remove(e);
51
+ });
52
+ });
53
+ }
54
+ get(e) {
55
+ return this.#e.get(e);
56
+ }
57
+ getAll() {
58
+ return [...this.#e.values()];
59
+ }
60
+ find(e) {
61
+ const t = { exact: !0, ...e };
62
+ return this.getAll().find(
63
+ (n) => fe(t, n)
64
+ );
65
+ }
66
+ findAll(e = {}) {
67
+ const t = this.getAll();
68
+ return Object.keys(e).length > 0 ? t.filter((n) => fe(e, n)) : t;
69
+ }
70
+ notify(e) {
71
+ O.batch(() => {
72
+ this.listeners.forEach((t) => {
73
+ t(e);
74
+ });
75
+ });
76
+ }
77
+ onFocus() {
78
+ O.batch(() => {
79
+ this.getAll().forEach((e) => {
80
+ e.onFocus();
81
+ });
82
+ });
83
+ }
84
+ onOnline() {
85
+ O.batch(() => {
86
+ this.getAll().forEach((e) => {
87
+ e.onOnline();
88
+ });
89
+ });
90
+ }
91
+ }, un = class extends Me {
92
+ constructor(e = {}) {
93
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
94
+ }
95
+ #e;
96
+ #t;
97
+ #n;
98
+ build(e, t, n) {
99
+ const r = new St({
100
+ mutationCache: this,
101
+ mutationId: ++this.#n,
102
+ options: e.defaultMutationOptions(t),
103
+ state: n
104
+ });
105
+ return this.add(r), r;
106
+ }
107
+ add(e) {
108
+ this.#e.add(e);
109
+ const t = W(e);
110
+ if (typeof t == "string") {
111
+ const n = this.#t.get(t);
112
+ n ? n.push(e) : this.#t.set(t, [e]);
113
+ }
114
+ this.notify({ type: "added", mutation: e });
115
+ }
116
+ remove(e) {
117
+ if (this.#e.delete(e)) {
118
+ const t = W(e);
119
+ if (typeof t == "string") {
120
+ const n = this.#t.get(t);
121
+ if (n)
122
+ if (n.length > 1) {
123
+ const r = n.indexOf(e);
124
+ r !== -1 && n.splice(r, 1);
125
+ } else n[0] === e && this.#t.delete(t);
126
+ }
127
+ }
128
+ this.notify({ type: "removed", mutation: e });
129
+ }
130
+ canRun(e) {
131
+ const t = W(e);
132
+ if (typeof t == "string") {
133
+ const r = this.#t.get(t)?.find(
134
+ (o) => o.state.status === "pending"
135
+ );
136
+ return !r || r === e;
137
+ } else
138
+ return !0;
139
+ }
140
+ runNext(e) {
141
+ const t = W(e);
142
+ return typeof t == "string" ? this.#t.get(t)?.find((r) => r !== e && r.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
143
+ }
144
+ clear() {
145
+ O.batch(() => {
146
+ this.#e.forEach((e) => {
147
+ this.notify({ type: "removed", mutation: e });
148
+ }), this.#e.clear(), this.#t.clear();
149
+ });
150
+ }
151
+ getAll() {
152
+ return Array.from(this.#e);
153
+ }
154
+ find(e) {
155
+ const t = { exact: !0, ...e };
156
+ return this.getAll().find(
157
+ (n) => pe(t, n)
158
+ );
159
+ }
160
+ findAll(e = {}) {
161
+ return this.getAll().filter((t) => pe(e, t));
162
+ }
163
+ notify(e) {
164
+ O.batch(() => {
165
+ this.listeners.forEach((t) => {
166
+ t(e);
167
+ });
168
+ });
169
+ }
170
+ resumePausedMutations() {
171
+ const e = this.getAll().filter((t) => t.state.isPaused);
172
+ return O.batch(
173
+ () => Promise.all(
174
+ e.map((t) => t.continue().catch(T))
175
+ )
176
+ );
177
+ }
178
+ };
179
+ function W(e) {
180
+ return e.options.scope?.id;
181
+ }
182
+ function we(e) {
183
+ return {
184
+ onFetch: (t, n) => {
185
+ const r = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
186
+ let u = { pages: [], pageParams: [] }, f = 0;
187
+ const d = async () => {
188
+ let g = !1;
189
+ const h = (v) => {
190
+ Object.defineProperty(v, "signal", {
191
+ enumerable: !0,
192
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
193
+ g = !0;
194
+ }), t.signal)
195
+ });
196
+ }, p = yt(t.options, t.fetchOptions), m = async (v, z, P) => {
197
+ if (g)
198
+ return Promise.reject();
199
+ if (z == null && v.pages.length)
200
+ return Promise.resolve(v);
201
+ const j = (() => {
202
+ const D = {
203
+ client: t.client,
204
+ queryKey: t.queryKey,
205
+ pageParam: z,
206
+ direction: P ? "backward" : "forward",
207
+ meta: t.options.meta
208
+ };
209
+ return h(D), D;
210
+ })(), b = await p(j), { maxPages: k } = t.options, q = P ? wt : bt;
211
+ return {
212
+ pages: q(v.pages, b, k),
213
+ pageParams: q(v.pageParams, z, k)
214
+ };
215
+ };
216
+ if (o && s.length) {
217
+ const v = o === "backward", z = v ? ln : be, P = {
218
+ pages: s,
219
+ pageParams: i
220
+ }, $ = z(r, P);
221
+ u = await m(P, $, v);
222
+ } else {
223
+ const v = e ?? s.length;
224
+ do {
225
+ const z = f === 0 ? i[0] ?? r.initialPageParam : be(r, u);
226
+ if (f > 0 && z == null)
227
+ break;
228
+ u = await m(u, z), f++;
229
+ } while (f < v);
230
+ }
231
+ return u;
232
+ };
233
+ t.options.persister ? t.fetchFn = () => t.options.persister?.(
234
+ d,
235
+ {
236
+ client: t.client,
237
+ queryKey: t.queryKey,
238
+ meta: t.options.meta,
239
+ signal: t.signal
240
+ },
241
+ n
242
+ ) : t.fetchFn = d;
243
+ }
244
+ };
245
+ }
246
+ function be(e, { pages: t, pageParams: n }) {
247
+ const r = t.length - 1;
248
+ return t.length > 0 ? e.getNextPageParam(
249
+ t[r],
250
+ t,
251
+ n[r],
252
+ n
253
+ ) : void 0;
254
+ }
255
+ function ln(e, { pages: t, pageParams: n }) {
256
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
257
+ }
258
+ var dn = class {
259
+ #e;
260
+ #t;
261
+ #n;
262
+ #o;
263
+ #s;
264
+ #r;
265
+ #i;
266
+ #a;
267
+ constructor(e = {}) {
268
+ this.#e = e.queryCache || new cn(), this.#t = e.mutationCache || new un(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
269
+ }
270
+ mount() {
271
+ this.#r++, this.#r === 1 && (this.#i = zt.subscribe(async (e) => {
272
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
273
+ }), this.#a = me.subscribe(async (e) => {
274
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
275
+ }));
276
+ }
277
+ unmount() {
278
+ this.#r--, this.#r === 0 && (this.#i?.(), this.#i = void 0, this.#a?.(), this.#a = void 0);
279
+ }
280
+ isFetching(e) {
281
+ return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
282
+ }
283
+ isMutating(e) {
284
+ return this.#t.findAll({ ...e, status: "pending" }).length;
285
+ }
286
+ /**
287
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
288
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
289
+ *
290
+ * Hint: Do not use this function inside a component, because it won't receive updates.
291
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
292
+ */
293
+ getQueryData(e) {
294
+ const t = this.defaultQueryOptions({ queryKey: e });
295
+ return this.#e.get(t.queryHash)?.state.data;
296
+ }
297
+ ensureQueryData(e) {
298
+ const t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
299
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ge(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
300
+ }
301
+ getQueriesData(e) {
302
+ return this.#e.findAll(e).map(({ queryKey: t, state: n }) => {
303
+ const r = n.data;
304
+ return [t, r];
305
+ });
306
+ }
307
+ setQueryData(e, t, n) {
308
+ const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
309
+ r.queryHash
310
+ )?.state.data, i = xt(t, s);
311
+ if (i !== void 0)
312
+ return this.#e.build(this, r).setData(i, { ...n, manual: !0 });
313
+ }
314
+ setQueriesData(e, t, n) {
315
+ return O.batch(
316
+ () => this.#e.findAll(e).map(({ queryKey: r }) => [
317
+ r,
318
+ this.setQueryData(r, t, n)
319
+ ])
320
+ );
321
+ }
322
+ getQueryState(e) {
323
+ const t = this.defaultQueryOptions({ queryKey: e });
324
+ return this.#e.get(
325
+ t.queryHash
326
+ )?.state;
327
+ }
328
+ removeQueries(e) {
329
+ const t = this.#e;
330
+ O.batch(() => {
331
+ t.findAll(e).forEach((n) => {
332
+ t.remove(n);
333
+ });
334
+ });
335
+ }
336
+ resetQueries(e, t) {
337
+ const n = this.#e;
338
+ return O.batch(() => (n.findAll(e).forEach((r) => {
339
+ r.reset();
340
+ }), this.refetchQueries(
341
+ {
342
+ type: "active",
343
+ ...e
344
+ },
345
+ t
346
+ )));
347
+ }
348
+ cancelQueries(e, t = {}) {
349
+ const n = { revert: !0, ...t }, r = O.batch(
350
+ () => this.#e.findAll(e).map((o) => o.cancel(n))
351
+ );
352
+ return Promise.all(r).then(T).catch(T);
353
+ }
354
+ invalidateQueries(e, t = {}) {
355
+ return O.batch(() => (this.#e.findAll(e).forEach((n) => {
356
+ n.invalidate();
357
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
358
+ {
359
+ ...e,
360
+ type: e?.refetchType ?? e?.type ?? "active"
361
+ },
362
+ t
363
+ )));
364
+ }
365
+ refetchQueries(e, t = {}) {
366
+ const n = {
367
+ ...t,
368
+ cancelRefetch: t.cancelRefetch ?? !0
369
+ }, r = O.batch(
370
+ () => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
371
+ let s = o.fetch(void 0, n);
372
+ return n.throwOnError || (s = s.catch(T)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
373
+ })
374
+ );
375
+ return Promise.all(r).then(T);
376
+ }
377
+ fetchQuery(e) {
378
+ const t = this.defaultQueryOptions(e);
379
+ t.retry === void 0 && (t.retry = !1);
380
+ const n = this.#e.build(this, t);
381
+ return n.isStaleByTime(
382
+ ge(t.staleTime, n)
383
+ ) ? n.fetch(t) : Promise.resolve(n.state.data);
384
+ }
385
+ prefetchQuery(e) {
386
+ return this.fetchQuery(e).then(T).catch(T);
387
+ }
388
+ fetchInfiniteQuery(e) {
389
+ return e.behavior = we(e.pages), this.fetchQuery(e);
390
+ }
391
+ prefetchInfiniteQuery(e) {
392
+ return this.fetchInfiniteQuery(e).then(T).catch(T);
393
+ }
394
+ ensureInfiniteQueryData(e) {
395
+ return e.behavior = we(e.pages), this.ensureQueryData(e);
396
+ }
397
+ resumePausedMutations() {
398
+ return me.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
399
+ }
400
+ getQueryCache() {
401
+ return this.#e;
402
+ }
403
+ getMutationCache() {
404
+ return this.#t;
405
+ }
406
+ getDefaultOptions() {
407
+ return this.#n;
408
+ }
409
+ setDefaultOptions(e) {
410
+ this.#n = e;
411
+ }
412
+ setQueryDefaults(e, t) {
413
+ this.#o.set(ve(e), {
414
+ queryKey: e,
415
+ defaultOptions: t
416
+ });
417
+ }
418
+ getQueryDefaults(e) {
419
+ const t = [...this.#o.values()], n = {};
420
+ return t.forEach((r) => {
421
+ _e(e, r.queryKey) && Object.assign(n, r.defaultOptions);
422
+ }), n;
423
+ }
424
+ setMutationDefaults(e, t) {
425
+ this.#s.set(ve(e), {
426
+ mutationKey: e,
427
+ defaultOptions: t
428
+ });
429
+ }
430
+ getMutationDefaults(e) {
431
+ const t = [...this.#s.values()], n = {};
432
+ return t.forEach((r) => {
433
+ _e(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
434
+ }), n;
435
+ }
436
+ defaultQueryOptions(e) {
437
+ if (e._defaulted)
438
+ return e;
439
+ const t = {
440
+ ...this.#n.queries,
441
+ ...this.getQueryDefaults(e.queryKey),
442
+ ...e,
443
+ _defaulted: !0
444
+ };
445
+ return t.queryHash || (t.queryHash = Qe(
446
+ t.queryKey,
447
+ t
448
+ )), 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.queryFn === kt && (t.enabled = !1), t;
449
+ }
450
+ defaultMutationOptions(e) {
451
+ return e?._defaulted ? e : {
452
+ ...this.#n.mutations,
453
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
454
+ ...e,
455
+ _defaulted: !0
456
+ };
457
+ }
458
+ clear() {
459
+ this.#e.clear(), this.#t.clear();
460
+ }
461
+ };
462
+ function hn(e) {
463
+ return e;
464
+ }
465
+ function ze(e, t, n) {
466
+ if (typeof t != "object" || t === null)
467
+ return;
468
+ const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? hn, i = t.mutations || [], u = t.queries || [];
469
+ i.forEach(({ state: f, ...d }) => {
470
+ r.build(
471
+ e,
472
+ {
473
+ ...e.getDefaultOptions().hydrate?.mutations,
474
+ ...n?.defaultOptions?.mutations,
475
+ ...d
476
+ },
477
+ f
478
+ );
479
+ }), u.forEach(
480
+ ({ queryKey: f, state: d, queryHash: g, meta: h, promise: p, dehydratedAt: m }) => {
481
+ const v = p ? Zt(p) : void 0, z = d.data === void 0 ? v?.data : d.data, P = z === void 0 ? z : s(z);
482
+ let $ = o.get(g);
483
+ const j = $?.state.status === "pending", b = $?.state.fetchStatus === "fetching";
484
+ if ($) {
485
+ const k = v && // We only need this undefined check to handle older dehydration
486
+ // payloads that might not have dehydratedAt
487
+ m !== void 0 && m > $.state.dataUpdatedAt;
488
+ if (d.dataUpdatedAt > $.state.dataUpdatedAt || k) {
489
+ const { fetchStatus: q, ...D } = d;
490
+ $.setState({
491
+ ...D,
492
+ data: P
493
+ });
494
+ }
495
+ } else
496
+ $ = o.build(
497
+ e,
498
+ {
499
+ ...e.getDefaultOptions().hydrate?.queries,
500
+ ...n?.defaultOptions?.queries,
501
+ queryKey: f,
502
+ queryHash: g,
503
+ meta: h
504
+ },
505
+ // Reset fetch status to idle to avoid
506
+ // query being stuck in fetching state upon hydration
507
+ {
508
+ ...d,
509
+ data: P,
510
+ fetchStatus: "idle",
511
+ status: P !== void 0 ? "success" : d.status
512
+ }
513
+ );
514
+ p && !j && !b && // Only hydrate if dehydration is newer than any existing data,
515
+ // this is always true for new queries
516
+ (m === void 0 || m > $.state.dataUpdatedAt) && $.fetch(void 0, {
517
+ // RSC transformed promises are not thenable
518
+ initialPromise: Promise.resolve(p).then(s)
519
+ });
520
+ }
521
+ );
522
+ }
523
+ var fn = ({
524
+ children: e,
525
+ options: t = {},
526
+ state: n,
527
+ queryClient: r
528
+ }) => {
529
+ const o = $t(r), s = A.useRef(t);
530
+ s.current = t;
531
+ const i = A.useMemo(() => {
532
+ if (n) {
533
+ if (typeof n != "object")
534
+ return;
535
+ const u = o.getQueryCache(), f = n.queries || [], d = [], g = [];
536
+ for (const h of f) {
537
+ const p = u.get(h.queryHash);
538
+ p ? (h.state.dataUpdatedAt > p.state.dataUpdatedAt || h.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && h.dehydratedAt !== void 0 && h.dehydratedAt > p.state.dataUpdatedAt) && g.push(h) : d.push(h);
539
+ }
540
+ if (d.length > 0 && ze(o, { queries: d }, s.current), g.length > 0)
541
+ return g;
542
+ }
543
+ }, [o, n]);
544
+ return A.useEffect(() => {
545
+ i && ze(o, { queries: i }, s.current);
546
+ }, [o, i]), e;
547
+ };
548
+ /**
549
+ * react-router v7.6.3
550
+ *
551
+ * Copyright (c) Remix Software Inc.
552
+ *
553
+ * This source code is licensed under the MIT license found in the
554
+ * LICENSE.md file in the root directory of this source tree.
555
+ *
556
+ * @license MIT
557
+ */
558
+ function pn(e) {
559
+ return /* @__PURE__ */ A.createElement(Tt, { flushSync: Ct.flushSync, ...e });
560
+ }
561
+ const mn = new dn({
562
+ defaultOptions: {
563
+ queries: {
564
+ staleTime: 1e3 * 60 * 5
565
+ }
566
+ }
567
+ }), gn = ({
568
+ router: e,
569
+ hydrate: t = !1
570
+ }) => /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(Le, { client: mn, children: /* @__PURE__ */ a.jsx(fn, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(He, { value: !1, children: /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Rt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(pn, { router: e }) }) }) }) }) }) }), vn = ({
571
+ router: e,
572
+ context: t,
573
+ queryClient: n,
574
+ helmetContext: r,
575
+ bypassProtection: o = !1
576
+ }) => /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(Le, { client: n, children: /* @__PURE__ */ a.jsx(Fe, { context: r, children: /* @__PURE__ */ a.jsx(He, { value: o, children: /* @__PURE__ */ a.jsx(Dt, { router: e, context: t }) }) }) }) });
577
+ function c(e, t, n) {
578
+ function r(u, f) {
579
+ var d;
580
+ Object.defineProperty(u, "_zod", {
581
+ value: u._zod ?? {},
582
+ enumerable: !1
583
+ }), (d = u._zod).traits ?? (d.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, f);
584
+ for (const g in i.prototype)
585
+ g in u || Object.defineProperty(u, g, { value: i.prototype[g].bind(u) });
586
+ u._zod.constr = i, u._zod.def = f;
587
+ }
588
+ const o = n?.Parent ?? Object;
589
+ class s extends o {
590
+ }
591
+ Object.defineProperty(s, "name", { value: e });
592
+ function i(u) {
593
+ var f;
594
+ const d = n?.Parent ? new s() : this;
595
+ r(d, u), (f = d._zod).deferred ?? (f.deferred = []);
596
+ for (const g of d._zod.deferred)
597
+ g();
598
+ return d;
599
+ }
600
+ return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
601
+ value: (u) => n?.Parent && u instanceof n.Parent ? !0 : u?._zod?.traits?.has(e)
602
+ }), Object.defineProperty(i, "name", { value: e }), i;
603
+ }
604
+ class L extends Error {
605
+ constructor() {
606
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
607
+ }
608
+ }
609
+ const Ve = {};
610
+ function C(e) {
611
+ return Ve;
612
+ }
613
+ function _n(e) {
614
+ const t = Object.values(e).filter((r) => typeof r == "number");
615
+ return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
616
+ }
617
+ function oe(e, t) {
618
+ return typeof t == "bigint" ? t.toString() : t;
619
+ }
620
+ function Je(e) {
621
+ return {
622
+ get value() {
623
+ {
624
+ const t = e();
625
+ return Object.defineProperty(this, "value", { value: t }), t;
626
+ }
627
+ }
628
+ };
629
+ }
630
+ function ue(e) {
631
+ return e == null;
632
+ }
633
+ function le(e) {
634
+ const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
635
+ return e.slice(t, n);
636
+ }
637
+ function _(e, t, n) {
638
+ Object.defineProperty(e, t, {
639
+ get() {
640
+ {
641
+ const r = n();
642
+ return e[t] = r, r;
643
+ }
644
+ },
645
+ set(r) {
646
+ Object.defineProperty(e, t, {
647
+ value: r
648
+ // configurable: true,
649
+ });
650
+ },
651
+ configurable: !0
652
+ });
653
+ }
654
+ function U(e, t, n) {
655
+ Object.defineProperty(e, t, {
656
+ value: n,
657
+ writable: !0,
658
+ enumerable: !0,
659
+ configurable: !0
660
+ });
661
+ }
662
+ function M(...e) {
663
+ const t = {};
664
+ for (const n of e) {
665
+ const r = Object.getOwnPropertyDescriptors(n);
666
+ Object.assign(t, r);
667
+ }
668
+ return Object.defineProperties({}, t);
669
+ }
670
+ function xe(e) {
671
+ return JSON.stringify(e);
672
+ }
673
+ const Ge = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
674
+ };
675
+ function se(e) {
676
+ return typeof e == "object" && e !== null && !Array.isArray(e);
677
+ }
678
+ const yn = Je(() => {
679
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
680
+ return !1;
681
+ try {
682
+ const e = Function;
683
+ return new e(""), !0;
684
+ } catch {
685
+ return !1;
686
+ }
687
+ });
688
+ function ie(e) {
689
+ if (se(e) === !1)
690
+ return !1;
691
+ const t = e.constructor;
692
+ if (t === void 0)
693
+ return !0;
694
+ const n = t.prototype;
695
+ return !(se(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
696
+ }
697
+ const wn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
698
+ function te(e) {
699
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
700
+ }
701
+ function F(e, t, n) {
702
+ const r = new e._zod.constr(t ?? e._zod.def);
703
+ return (!t || n?.parent) && (r._zod.parent = e), r;
704
+ }
705
+ function l(e) {
706
+ const t = e;
707
+ if (!t)
708
+ return {};
709
+ if (typeof t == "string")
710
+ return { error: () => t };
711
+ if (t?.message !== void 0) {
712
+ if (t?.error !== void 0)
713
+ throw new Error("Cannot specify both `message` and `error` params");
714
+ t.error = t.message;
715
+ }
716
+ return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
717
+ }
718
+ function bn(e) {
719
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
720
+ }
721
+ function zn(e, t) {
722
+ const n = e._zod.def, r = M(e._zod.def, {
723
+ get shape() {
724
+ const o = {};
725
+ for (const s in t) {
726
+ if (!(s in n.shape))
727
+ throw new Error(`Unrecognized key: "${s}"`);
728
+ t[s] && (o[s] = n.shape[s]);
729
+ }
730
+ return U(this, "shape", o), o;
731
+ },
732
+ checks: []
733
+ });
734
+ return F(e, r);
735
+ }
736
+ function xn(e, t) {
737
+ const n = e._zod.def, r = M(e._zod.def, {
738
+ get shape() {
739
+ const o = { ...e._zod.def.shape };
740
+ for (const s in t) {
741
+ if (!(s in n.shape))
742
+ throw new Error(`Unrecognized key: "${s}"`);
743
+ t[s] && delete o[s];
744
+ }
745
+ return U(this, "shape", o), o;
746
+ },
747
+ checks: []
748
+ });
749
+ return F(e, r);
750
+ }
751
+ function kn(e, t) {
752
+ if (!ie(t))
753
+ throw new Error("Invalid input to extend: expected a plain object");
754
+ const n = M(e._zod.def, {
755
+ get shape() {
756
+ const r = { ...e._zod.def.shape, ...t };
757
+ return U(this, "shape", r), r;
758
+ },
759
+ checks: []
760
+ });
761
+ return F(e, n);
762
+ }
763
+ function Zn(e, t) {
764
+ const n = M(e._zod.def, {
765
+ get shape() {
766
+ const r = { ...e._zod.def.shape, ...t._zod.def.shape };
767
+ return U(this, "shape", r), r;
768
+ },
769
+ get catchall() {
770
+ return t._zod.def.catchall;
771
+ },
772
+ checks: []
773
+ // delete existing checks
774
+ });
775
+ return F(e, n);
776
+ }
777
+ function $n(e, t, n) {
778
+ const r = M(t._zod.def, {
779
+ get shape() {
780
+ const o = t._zod.def.shape, s = { ...o };
781
+ if (n)
782
+ for (const i in n) {
783
+ if (!(i in o))
784
+ throw new Error(`Unrecognized key: "${i}"`);
785
+ n[i] && (s[i] = e ? new e({
786
+ type: "optional",
787
+ innerType: o[i]
788
+ }) : o[i]);
789
+ }
790
+ else
791
+ for (const i in o)
792
+ s[i] = e ? new e({
793
+ type: "optional",
794
+ innerType: o[i]
795
+ }) : o[i];
796
+ return U(this, "shape", s), s;
797
+ },
798
+ checks: []
799
+ });
800
+ return F(t, r);
801
+ }
802
+ function jn(e, t, n) {
803
+ const r = M(t._zod.def, {
804
+ get shape() {
805
+ const o = t._zod.def.shape, s = { ...o };
806
+ if (n)
807
+ for (const i in n) {
808
+ if (!(i in s))
809
+ throw new Error(`Unrecognized key: "${i}"`);
810
+ n[i] && (s[i] = new e({
811
+ type: "nonoptional",
812
+ innerType: o[i]
813
+ }));
814
+ }
815
+ else
816
+ for (const i in o)
817
+ s[i] = new e({
818
+ type: "nonoptional",
819
+ innerType: o[i]
820
+ });
821
+ return U(this, "shape", s), s;
822
+ },
823
+ checks: []
824
+ });
825
+ return F(t, r);
826
+ }
827
+ function Q(e, t = 0) {
828
+ for (let n = t; n < e.issues.length; n++)
829
+ if (e.issues[n]?.continue !== !0)
830
+ return !0;
831
+ return !1;
832
+ }
833
+ function Ye(e, t) {
834
+ return t.map((n) => {
835
+ var r;
836
+ return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
837
+ });
838
+ }
839
+ function H(e) {
840
+ return typeof e == "string" ? e : e?.message;
841
+ }
842
+ function R(e, t, n) {
843
+ const r = { ...e, path: e.path ?? [] };
844
+ if (!e.message) {
845
+ const o = H(e.inst?._zod.def?.error?.(e)) ?? H(t?.error?.(e)) ?? H(n.customError?.(e)) ?? H(n.localeError?.(e)) ?? "Invalid input";
846
+ r.message = o;
847
+ }
848
+ return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
849
+ }
850
+ function de(e) {
851
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
852
+ }
853
+ function B(...e) {
854
+ const [t, n, r] = e;
855
+ return typeof t == "string" ? {
856
+ message: t,
857
+ code: "custom",
858
+ input: n,
859
+ inst: r
860
+ } : { ...t };
861
+ }
862
+ const Xe = (e, t) => {
863
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
864
+ value: e._zod,
865
+ enumerable: !1
866
+ }), Object.defineProperty(e, "issues", {
867
+ value: t,
868
+ enumerable: !1
869
+ }), e.message = JSON.stringify(t, oe, 2), Object.defineProperty(e, "toString", {
870
+ value: () => e.message,
871
+ enumerable: !1
872
+ });
873
+ }, et = c("$ZodError", Xe), tt = c("$ZodError", Xe, { Parent: Error });
874
+ function Pn(e, t = (n) => n.message) {
875
+ const n = {}, r = [];
876
+ for (const o of e.issues)
877
+ o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
878
+ return { formErrors: r, fieldErrors: n };
879
+ }
880
+ function On(e, t) {
881
+ const n = t || function(s) {
882
+ return s.message;
883
+ }, r = { _errors: [] }, o = (s) => {
884
+ for (const i of s.issues)
885
+ if (i.code === "invalid_union" && i.errors.length)
886
+ i.errors.map((u) => o({ issues: u }));
887
+ else if (i.code === "invalid_key")
888
+ o({ issues: i.issues });
889
+ else if (i.code === "invalid_element")
890
+ o({ issues: i.issues });
891
+ else if (i.path.length === 0)
892
+ r._errors.push(n(i));
893
+ else {
894
+ let u = r, f = 0;
895
+ for (; f < i.path.length; ) {
896
+ const d = i.path[f];
897
+ f === i.path.length - 1 ? (u[d] = u[d] || { _errors: [] }, u[d]._errors.push(n(i))) : u[d] = u[d] || { _errors: [] }, u = u[d], f++;
898
+ }
899
+ }
900
+ };
901
+ return o(e), r;
902
+ }
903
+ const Sn = (e) => (t, n, r, o) => {
904
+ const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
905
+ if (i instanceof Promise)
906
+ throw new L();
907
+ if (i.issues.length) {
908
+ const u = new (o?.Err ?? e)(i.issues.map((f) => R(f, s, C())));
909
+ throw Ge(u, o?.callee), u;
910
+ }
911
+ return i.value;
912
+ }, En = (e) => async (t, n, r, o) => {
913
+ const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
914
+ let i = t._zod.run({ value: n, issues: [] }, s);
915
+ if (i instanceof Promise && (i = await i), i.issues.length) {
916
+ const u = new (o?.Err ?? e)(i.issues.map((f) => R(f, s, C())));
917
+ throw Ge(u, o?.callee), u;
918
+ }
919
+ return i.value;
920
+ }, nt = (e) => (t, n, r) => {
921
+ const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
922
+ if (s instanceof Promise)
923
+ throw new L();
924
+ return s.issues.length ? {
925
+ success: !1,
926
+ error: new (e ?? et)(s.issues.map((i) => R(i, o, C())))
927
+ } : { success: !0, data: s.value };
928
+ }, In = /* @__PURE__ */ nt(tt), rt = (e) => async (t, n, r) => {
929
+ const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
930
+ let s = t._zod.run({ value: n, issues: [] }, o);
931
+ return s instanceof Promise && (s = await s), s.issues.length ? {
932
+ success: !1,
933
+ error: new e(s.issues.map((i) => R(i, o, C())))
934
+ } : { success: !0, data: s.value };
935
+ }, Tn = /* @__PURE__ */ rt(tt), Dn = /^[cC][^\s-]{8,}$/, An = /^[0-9a-z]+$/, Nn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Cn = /^[0-9a-vA-V]{20}$/, Rn = /^[A-Za-z0-9]{27}$/, Un = /^[a-zA-Z0-9_-]{21}$/, Fn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, qn = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, ke = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, Mn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Qn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
936
+ function Ln() {
937
+ return new RegExp(Qn, "u");
938
+ }
939
+ const Bn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Kn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Wn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Hn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Vn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ot = /^[A-Za-z0-9_-]*$/, Jn = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, Gn = /^\+(?:[0-9]){6,14}[0-9]$/, st = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Yn = /* @__PURE__ */ new RegExp(`^${st}$`);
940
+ function it(e) {
941
+ const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
942
+ return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
943
+ }
944
+ function Xn(e) {
945
+ return new RegExp(`^${it(e)}$`);
946
+ }
947
+ function er(e) {
948
+ const t = it({ precision: e.precision }), n = ["Z"];
949
+ e.local && n.push(""), e.offset && n.push("([+-]\\d{2}:\\d{2})");
950
+ const r = `${t}(?:${n.join("|")})`;
951
+ return new RegExp(`^${st}T(?:${r})$`);
952
+ }
953
+ const tr = (e) => {
954
+ const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
955
+ return new RegExp(`^${t}$`);
956
+ }, nr = /^[^A-Z]*$/, rr = /^[^a-z]*$/, I = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
957
+ var n;
958
+ e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
959
+ }), or = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
960
+ var n;
961
+ I.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
962
+ const o = r.value;
963
+ return !ue(o) && o.length !== void 0;
964
+ }), e._zod.onattach.push((r) => {
965
+ const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
966
+ t.maximum < o && (r._zod.bag.maximum = t.maximum);
967
+ }), e._zod.check = (r) => {
968
+ const o = r.value;
969
+ if (o.length <= t.maximum)
970
+ return;
971
+ const i = de(o);
972
+ r.issues.push({
973
+ origin: i,
974
+ code: "too_big",
975
+ maximum: t.maximum,
976
+ inclusive: !0,
977
+ input: o,
978
+ inst: e,
979
+ continue: !t.abort
980
+ });
981
+ };
982
+ }), sr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
983
+ var n;
984
+ I.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
985
+ const o = r.value;
986
+ return !ue(o) && o.length !== void 0;
987
+ }), e._zod.onattach.push((r) => {
988
+ const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
989
+ t.minimum > o && (r._zod.bag.minimum = t.minimum);
990
+ }), e._zod.check = (r) => {
991
+ const o = r.value;
992
+ if (o.length >= t.minimum)
993
+ return;
994
+ const i = de(o);
995
+ r.issues.push({
996
+ origin: i,
997
+ code: "too_small",
998
+ minimum: t.minimum,
999
+ inclusive: !0,
1000
+ input: o,
1001
+ inst: e,
1002
+ continue: !t.abort
1003
+ });
1004
+ };
1005
+ }), ir = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
1006
+ var n;
1007
+ I.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1008
+ const o = r.value;
1009
+ return !ue(o) && o.length !== void 0;
1010
+ }), e._zod.onattach.push((r) => {
1011
+ const o = r._zod.bag;
1012
+ o.minimum = t.length, o.maximum = t.length, o.length = t.length;
1013
+ }), e._zod.check = (r) => {
1014
+ const o = r.value, s = o.length;
1015
+ if (s === t.length)
1016
+ return;
1017
+ const i = de(o), u = s > t.length;
1018
+ r.issues.push({
1019
+ origin: i,
1020
+ ...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1021
+ inclusive: !0,
1022
+ exact: !0,
1023
+ input: r.value,
1024
+ inst: e,
1025
+ continue: !t.abort
1026
+ });
1027
+ };
1028
+ }), ne = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
1029
+ var n, r;
1030
+ I.init(e, t), e._zod.onattach.push((o) => {
1031
+ const s = o._zod.bag;
1032
+ s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
1033
+ }), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
1034
+ t.pattern.lastIndex = 0, !t.pattern.test(o.value) && o.issues.push({
1035
+ origin: "string",
1036
+ code: "invalid_format",
1037
+ format: t.format,
1038
+ input: o.value,
1039
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
1040
+ inst: e,
1041
+ continue: !t.abort
1042
+ });
1043
+ }) : (r = e._zod).check ?? (r.check = () => {
1044
+ });
1045
+ }), ar = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1046
+ ne.init(e, t), e._zod.check = (n) => {
1047
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1048
+ origin: "string",
1049
+ code: "invalid_format",
1050
+ format: "regex",
1051
+ input: n.value,
1052
+ pattern: t.pattern.toString(),
1053
+ inst: e,
1054
+ continue: !t.abort
1055
+ });
1056
+ };
1057
+ }), cr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1058
+ t.pattern ?? (t.pattern = nr), ne.init(e, t);
1059
+ }), ur = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1060
+ t.pattern ?? (t.pattern = rr), ne.init(e, t);
1061
+ }), lr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1062
+ I.init(e, t);
1063
+ const n = te(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1064
+ t.pattern = r, e._zod.onattach.push((o) => {
1065
+ const s = o._zod.bag;
1066
+ s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
1067
+ }), e._zod.check = (o) => {
1068
+ o.value.includes(t.includes, t.position) || o.issues.push({
1069
+ origin: "string",
1070
+ code: "invalid_format",
1071
+ format: "includes",
1072
+ includes: t.includes,
1073
+ input: o.value,
1074
+ inst: e,
1075
+ continue: !t.abort
1076
+ });
1077
+ };
1078
+ }), dr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1079
+ I.init(e, t);
1080
+ const n = new RegExp(`^${te(t.prefix)}.*`);
1081
+ t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1082
+ const o = r._zod.bag;
1083
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
1084
+ }), e._zod.check = (r) => {
1085
+ r.value.startsWith(t.prefix) || r.issues.push({
1086
+ origin: "string",
1087
+ code: "invalid_format",
1088
+ format: "starts_with",
1089
+ prefix: t.prefix,
1090
+ input: r.value,
1091
+ inst: e,
1092
+ continue: !t.abort
1093
+ });
1094
+ };
1095
+ }), hr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1096
+ I.init(e, t);
1097
+ const n = new RegExp(`.*${te(t.suffix)}$`);
1098
+ t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1099
+ const o = r._zod.bag;
1100
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
1101
+ }), e._zod.check = (r) => {
1102
+ r.value.endsWith(t.suffix) || r.issues.push({
1103
+ origin: "string",
1104
+ code: "invalid_format",
1105
+ format: "ends_with",
1106
+ suffix: t.suffix,
1107
+ input: r.value,
1108
+ inst: e,
1109
+ continue: !t.abort
1110
+ });
1111
+ };
1112
+ }), fr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1113
+ I.init(e, t), e._zod.check = (n) => {
1114
+ n.value = t.tx(n.value);
1115
+ };
1116
+ });
1117
+ class pr {
1118
+ constructor(t = []) {
1119
+ this.content = [], this.indent = 0, this && (this.args = t);
1120
+ }
1121
+ indented(t) {
1122
+ this.indent += 1, t(this), this.indent -= 1;
1123
+ }
1124
+ write(t) {
1125
+ if (typeof t == "function") {
1126
+ t(this, { execution: "sync" }), t(this, { execution: "async" });
1127
+ return;
1128
+ }
1129
+ const r = t.split(`
1130
+ `).filter((i) => i), o = Math.min(...r.map((i) => i.length - i.trimStart().length)), s = r.map((i) => i.slice(o)).map((i) => " ".repeat(this.indent * 2) + i);
1131
+ for (const i of s)
1132
+ this.content.push(i);
1133
+ }
1134
+ compile() {
1135
+ const t = Function, n = this?.args, o = [...(this?.content ?? [""]).map((s) => ` ${s}`)];
1136
+ return new t(...n, o.join(`
1137
+ `));
1138
+ }
1139
+ }
1140
+ const mr = {
1141
+ major: 4,
1142
+ minor: 0,
1143
+ patch: 10
1144
+ }, x = /* @__PURE__ */ c("$ZodType", (e, t) => {
1145
+ var n;
1146
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = mr;
1147
+ const r = [...e._zod.def.checks ?? []];
1148
+ e._zod.traits.has("$ZodCheck") && r.unshift(e);
1149
+ for (const o of r)
1150
+ for (const s of o._zod.onattach)
1151
+ s(e);
1152
+ if (r.length === 0)
1153
+ (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
1154
+ e._zod.run = e._zod.parse;
1155
+ });
1156
+ else {
1157
+ const o = (s, i, u) => {
1158
+ let f = Q(s), d;
1159
+ for (const g of i) {
1160
+ if (g._zod.def.when) {
1161
+ if (!g._zod.def.when(s))
1162
+ continue;
1163
+ } else if (f)
1164
+ continue;
1165
+ const h = s.issues.length, p = g._zod.check(s);
1166
+ if (p instanceof Promise && u?.async === !1)
1167
+ throw new L();
1168
+ if (d || p instanceof Promise)
1169
+ d = (d ?? Promise.resolve()).then(async () => {
1170
+ await p, s.issues.length !== h && (f || (f = Q(s, h)));
1171
+ });
1172
+ else {
1173
+ if (s.issues.length === h)
1174
+ continue;
1175
+ f || (f = Q(s, h));
1176
+ }
1177
+ }
1178
+ return d ? d.then(() => s) : s;
1179
+ };
1180
+ e._zod.run = (s, i) => {
1181
+ const u = e._zod.parse(s, i);
1182
+ if (u instanceof Promise) {
1183
+ if (i.async === !1)
1184
+ throw new L();
1185
+ return u.then((f) => o(f, r, i));
1186
+ }
1187
+ return o(u, r, i);
1188
+ };
1189
+ }
1190
+ e["~standard"] = {
1191
+ validate: (o) => {
1192
+ try {
1193
+ const s = In(e, o);
1194
+ return s.success ? { value: s.data } : { issues: s.error?.issues };
1195
+ } catch {
1196
+ return Tn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
1197
+ }
1198
+ },
1199
+ vendor: "zod",
1200
+ version: 1
1201
+ };
1202
+ }), he = /* @__PURE__ */ c("$ZodString", (e, t) => {
1203
+ x.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tr(e._zod.bag), e._zod.parse = (n, r) => {
1204
+ if (t.coerce)
1205
+ try {
1206
+ n.value = String(n.value);
1207
+ } catch {
1208
+ }
1209
+ return typeof n.value == "string" || n.issues.push({
1210
+ expected: "string",
1211
+ code: "invalid_type",
1212
+ input: n.value,
1213
+ inst: e
1214
+ }), n;
1215
+ };
1216
+ }), y = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1217
+ ne.init(e, t), he.init(e, t);
1218
+ }), gr = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1219
+ t.pattern ?? (t.pattern = qn), y.init(e, t);
1220
+ }), vr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1221
+ if (t.version) {
1222
+ const r = {
1223
+ v1: 1,
1224
+ v2: 2,
1225
+ v3: 3,
1226
+ v4: 4,
1227
+ v5: 5,
1228
+ v6: 6,
1229
+ v7: 7,
1230
+ v8: 8
1231
+ }[t.version];
1232
+ if (r === void 0)
1233
+ throw new Error(`Invalid UUID version: "${t.version}"`);
1234
+ t.pattern ?? (t.pattern = ke(r));
1235
+ } else
1236
+ t.pattern ?? (t.pattern = ke());
1237
+ y.init(e, t);
1238
+ }), _r = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1239
+ t.pattern ?? (t.pattern = Mn), y.init(e, t);
1240
+ }), yr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1241
+ y.init(e, t), e._zod.check = (n) => {
1242
+ try {
1243
+ const r = n.value.trim(), o = new URL(r);
1244
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || n.issues.push({
1245
+ code: "invalid_format",
1246
+ format: "url",
1247
+ note: "Invalid hostname",
1248
+ pattern: Jn.source,
1249
+ input: n.value,
1250
+ inst: e,
1251
+ continue: !t.abort
1252
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(o.protocol.endsWith(":") ? o.protocol.slice(0, -1) : o.protocol) || n.issues.push({
1253
+ code: "invalid_format",
1254
+ format: "url",
1255
+ note: "Invalid protocol",
1256
+ pattern: t.protocol.source,
1257
+ input: n.value,
1258
+ inst: e,
1259
+ continue: !t.abort
1260
+ })), t.normalize ? n.value = o.href : n.value = r;
1261
+ return;
1262
+ } catch {
1263
+ n.issues.push({
1264
+ code: "invalid_format",
1265
+ format: "url",
1266
+ input: n.value,
1267
+ inst: e,
1268
+ continue: !t.abort
1269
+ });
1270
+ }
1271
+ };
1272
+ }), wr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1273
+ t.pattern ?? (t.pattern = Ln()), y.init(e, t);
1274
+ }), br = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
1275
+ t.pattern ?? (t.pattern = Un), y.init(e, t);
1276
+ }), zr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1277
+ t.pattern ?? (t.pattern = Dn), y.init(e, t);
1278
+ }), xr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
1279
+ t.pattern ?? (t.pattern = An), y.init(e, t);
1280
+ }), kr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1281
+ t.pattern ?? (t.pattern = Nn), y.init(e, t);
1282
+ }), Zr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1283
+ t.pattern ?? (t.pattern = Cn), y.init(e, t);
1284
+ }), $r = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1285
+ t.pattern ?? (t.pattern = Rn), y.init(e, t);
1286
+ }), jr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1287
+ t.pattern ?? (t.pattern = er(t)), y.init(e, t);
1288
+ }), Pr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1289
+ t.pattern ?? (t.pattern = Yn), y.init(e, t);
1290
+ }), Or = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1291
+ t.pattern ?? (t.pattern = Xn(t)), y.init(e, t);
1292
+ }), Sr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1293
+ t.pattern ?? (t.pattern = Fn), y.init(e, t);
1294
+ }), Er = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1295
+ t.pattern ?? (t.pattern = Bn), y.init(e, t), e._zod.onattach.push((n) => {
1296
+ const r = n._zod.bag;
1297
+ r.format = "ipv4";
1298
+ });
1299
+ }), Ir = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1300
+ t.pattern ?? (t.pattern = Kn), y.init(e, t), e._zod.onattach.push((n) => {
1301
+ const r = n._zod.bag;
1302
+ r.format = "ipv6";
1303
+ }), e._zod.check = (n) => {
1304
+ try {
1305
+ new URL(`http://[${n.value}]`);
1306
+ } catch {
1307
+ n.issues.push({
1308
+ code: "invalid_format",
1309
+ format: "ipv6",
1310
+ input: n.value,
1311
+ inst: e,
1312
+ continue: !t.abort
1313
+ });
1314
+ }
1315
+ };
1316
+ }), Tr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1317
+ t.pattern ?? (t.pattern = Wn), y.init(e, t);
1318
+ }), Dr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1319
+ t.pattern ?? (t.pattern = Hn), y.init(e, t), e._zod.check = (n) => {
1320
+ const [r, o] = n.value.split("/");
1321
+ try {
1322
+ if (!o)
1323
+ throw new Error();
1324
+ const s = Number(o);
1325
+ if (`${s}` !== o)
1326
+ throw new Error();
1327
+ if (s < 0 || s > 128)
1328
+ throw new Error();
1329
+ new URL(`http://[${r}]`);
1330
+ } catch {
1331
+ n.issues.push({
1332
+ code: "invalid_format",
1333
+ format: "cidrv6",
1334
+ input: n.value,
1335
+ inst: e,
1336
+ continue: !t.abort
1337
+ });
1338
+ }
1339
+ };
1340
+ });
1341
+ function at(e) {
1342
+ if (e === "")
1343
+ return !0;
1344
+ if (e.length % 4 !== 0)
1345
+ return !1;
1346
+ try {
1347
+ return atob(e), !0;
1348
+ } catch {
1349
+ return !1;
1350
+ }
1351
+ }
1352
+ const Ar = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1353
+ t.pattern ?? (t.pattern = Vn), y.init(e, t), e._zod.onattach.push((n) => {
1354
+ n._zod.bag.contentEncoding = "base64";
1355
+ }), e._zod.check = (n) => {
1356
+ at(n.value) || n.issues.push({
1357
+ code: "invalid_format",
1358
+ format: "base64",
1359
+ input: n.value,
1360
+ inst: e,
1361
+ continue: !t.abort
1362
+ });
1363
+ };
1364
+ });
1365
+ function Nr(e) {
1366
+ if (!ot.test(e))
1367
+ return !1;
1368
+ const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1369
+ return at(n);
1370
+ }
1371
+ const Cr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1372
+ t.pattern ?? (t.pattern = ot), y.init(e, t), e._zod.onattach.push((n) => {
1373
+ n._zod.bag.contentEncoding = "base64url";
1374
+ }), e._zod.check = (n) => {
1375
+ Nr(n.value) || n.issues.push({
1376
+ code: "invalid_format",
1377
+ format: "base64url",
1378
+ input: n.value,
1379
+ inst: e,
1380
+ continue: !t.abort
1381
+ });
1382
+ };
1383
+ }), Rr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1384
+ t.pattern ?? (t.pattern = Gn), y.init(e, t);
1385
+ });
1386
+ function Ur(e, t = null) {
1387
+ try {
1388
+ const n = e.split(".");
1389
+ if (n.length !== 3)
1390
+ return !1;
1391
+ const [r] = n;
1392
+ if (!r)
1393
+ return !1;
1394
+ const o = JSON.parse(atob(r));
1395
+ return !("typ" in o && o?.typ !== "JWT" || !o.alg || t && (!("alg" in o) || o.alg !== t));
1396
+ } catch {
1397
+ return !1;
1398
+ }
1399
+ }
1400
+ const Fr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1401
+ y.init(e, t), e._zod.check = (n) => {
1402
+ Ur(n.value, t.alg) || n.issues.push({
1403
+ code: "invalid_format",
1404
+ format: "jwt",
1405
+ input: n.value,
1406
+ inst: e,
1407
+ continue: !t.abort
1408
+ });
1409
+ };
1410
+ }), qr = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1411
+ x.init(e, t), e._zod.parse = (n) => n;
1412
+ }), Mr = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1413
+ x.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1414
+ expected: "never",
1415
+ code: "invalid_type",
1416
+ input: n.value,
1417
+ inst: e
1418
+ }), n);
1419
+ });
1420
+ function Ze(e, t, n) {
1421
+ e.issues.length && t.issues.push(...Ye(n, e.issues)), t.value[n] = e.value;
1422
+ }
1423
+ const Qr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1424
+ x.init(e, t), e._zod.parse = (n, r) => {
1425
+ const o = n.value;
1426
+ if (!Array.isArray(o))
1427
+ return n.issues.push({
1428
+ expected: "array",
1429
+ code: "invalid_type",
1430
+ input: o,
1431
+ inst: e
1432
+ }), n;
1433
+ n.value = Array(o.length);
1434
+ const s = [];
1435
+ for (let i = 0; i < o.length; i++) {
1436
+ const u = o[i], f = t.element._zod.run({
1437
+ value: u,
1438
+ issues: []
1439
+ }, r);
1440
+ f instanceof Promise ? s.push(f.then((d) => Ze(d, n, i))) : Ze(f, n, i);
1441
+ }
1442
+ return s.length ? Promise.all(s).then(() => n) : n;
1443
+ };
1444
+ });
1445
+ function V(e, t, n, r) {
1446
+ e.issues.length && t.issues.push(...Ye(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1447
+ }
1448
+ const Lr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1449
+ x.init(e, t);
1450
+ const n = Je(() => {
1451
+ const h = Object.keys(t.shape);
1452
+ for (const m of h)
1453
+ if (!(t.shape[m] instanceof x))
1454
+ throw new Error(`Invalid element at key "${m}": expected a Zod schema`);
1455
+ const p = bn(t.shape);
1456
+ return {
1457
+ shape: t.shape,
1458
+ keys: h,
1459
+ keySet: new Set(h),
1460
+ numKeys: h.length,
1461
+ optionalKeys: new Set(p)
1462
+ };
1463
+ });
1464
+ _(e._zod, "propValues", () => {
1465
+ const h = t.shape, p = {};
1466
+ for (const m in h) {
1467
+ const v = h[m]._zod;
1468
+ if (v.values) {
1469
+ p[m] ?? (p[m] = /* @__PURE__ */ new Set());
1470
+ for (const z of v.values)
1471
+ p[m].add(z);
1472
+ }
1473
+ }
1474
+ return p;
1475
+ });
1476
+ const r = (h) => {
1477
+ const p = new pr(["shape", "payload", "ctx"]), m = n.value, v = (j) => {
1478
+ const b = xe(j);
1479
+ return `shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`;
1480
+ };
1481
+ p.write("const input = payload.value;");
1482
+ const z = /* @__PURE__ */ Object.create(null);
1483
+ let P = 0;
1484
+ for (const j of m.keys)
1485
+ z[j] = `key_${P++}`;
1486
+ p.write("const newResult = {}");
1487
+ for (const j of m.keys) {
1488
+ const b = z[j], k = xe(j);
1489
+ p.write(`const ${b} = ${v(j)};`), p.write(`
1490
+ if (${b}.issues.length) {
1491
+ payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
1492
+ ...iss,
1493
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
1494
+ })));
1495
+ }
1496
+
1497
+ if (${b}.value === undefined) {
1498
+ if (${k} in input) {
1499
+ newResult[${k}] = undefined;
1500
+ }
1501
+ } else {
1502
+ newResult[${k}] = ${b}.value;
1503
+ }
1504
+ `);
1505
+ }
1506
+ p.write("payload.value = newResult;"), p.write("return payload;");
1507
+ const $ = p.compile();
1508
+ return (j, b) => $(h, j, b);
1509
+ };
1510
+ let o;
1511
+ const s = se, i = !Ve.jitless, f = i && yn.value, d = t.catchall;
1512
+ let g;
1513
+ e._zod.parse = (h, p) => {
1514
+ g ?? (g = n.value);
1515
+ const m = h.value;
1516
+ if (!s(m))
1517
+ return h.issues.push({
1518
+ expected: "object",
1519
+ code: "invalid_type",
1520
+ input: m,
1521
+ inst: e
1522
+ }), h;
1523
+ const v = [];
1524
+ if (i && f && p?.async === !1 && p.jitless !== !0)
1525
+ o || (o = r(t.shape)), h = o(h, p);
1526
+ else {
1527
+ h.value = {};
1528
+ const b = g.shape;
1529
+ for (const k of g.keys) {
1530
+ const D = b[k]._zod.run({ value: m[k], issues: [] }, p);
1531
+ D instanceof Promise ? v.push(D.then((vt) => V(vt, h, k, m))) : V(D, h, k, m);
1532
+ }
1533
+ }
1534
+ if (!d)
1535
+ return v.length ? Promise.all(v).then(() => h) : h;
1536
+ const z = [], P = g.keySet, $ = d._zod, j = $.def.type;
1537
+ for (const b of Object.keys(m)) {
1538
+ if (P.has(b))
1539
+ continue;
1540
+ if (j === "never") {
1541
+ z.push(b);
1542
+ continue;
1543
+ }
1544
+ const k = $.run({ value: m[b], issues: [] }, p);
1545
+ k instanceof Promise ? v.push(k.then((q) => V(q, h, b, m))) : V(k, h, b, m);
1546
+ }
1547
+ return z.length && h.issues.push({
1548
+ code: "unrecognized_keys",
1549
+ keys: z,
1550
+ input: m,
1551
+ inst: e
1552
+ }), v.length ? Promise.all(v).then(() => h) : h;
1553
+ };
1554
+ });
1555
+ function $e(e, t, n, r) {
1556
+ for (const s of e)
1557
+ if (s.issues.length === 0)
1558
+ return t.value = s.value, t;
1559
+ const o = e.filter((s) => !Q(s));
1560
+ return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
1561
+ code: "invalid_union",
1562
+ input: t.value,
1563
+ inst: n,
1564
+ errors: e.map((s) => s.issues.map((i) => R(i, r, C())))
1565
+ }), t);
1566
+ }
1567
+ const Br = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1568
+ x.init(e, t), _(e._zod, "optin", () => t.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
1569
+ if (t.options.every((n) => n._zod.values))
1570
+ return new Set(t.options.flatMap((n) => Array.from(n._zod.values)));
1571
+ }), _(e._zod, "pattern", () => {
1572
+ if (t.options.every((n) => n._zod.pattern)) {
1573
+ const n = t.options.map((r) => r._zod.pattern);
1574
+ return new RegExp(`^(${n.map((r) => le(r.source)).join("|")})$`);
1575
+ }
1576
+ }), e._zod.parse = (n, r) => {
1577
+ let o = !1;
1578
+ const s = [];
1579
+ for (const i of t.options) {
1580
+ const u = i._zod.run({
1581
+ value: n.value,
1582
+ issues: []
1583
+ }, r);
1584
+ if (u instanceof Promise)
1585
+ s.push(u), o = !0;
1586
+ else {
1587
+ if (u.issues.length === 0)
1588
+ return u;
1589
+ s.push(u);
1590
+ }
1591
+ }
1592
+ return o ? Promise.all(s).then((i) => $e(i, n, e, r)) : $e(s, n, e, r);
1593
+ };
1594
+ }), Kr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1595
+ x.init(e, t), e._zod.parse = (n, r) => {
1596
+ const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
1597
+ return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([f, d]) => je(n, f, d)) : je(n, s, i);
1598
+ };
1599
+ });
1600
+ function ae(e, t) {
1601
+ if (e === t)
1602
+ return { valid: !0, data: e };
1603
+ if (e instanceof Date && t instanceof Date && +e == +t)
1604
+ return { valid: !0, data: e };
1605
+ if (ie(e) && ie(t)) {
1606
+ const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
1607
+ for (const s of r) {
1608
+ const i = ae(e[s], t[s]);
1609
+ if (!i.valid)
1610
+ return {
1611
+ valid: !1,
1612
+ mergeErrorPath: [s, ...i.mergeErrorPath]
1613
+ };
1614
+ o[s] = i.data;
1615
+ }
1616
+ return { valid: !0, data: o };
1617
+ }
1618
+ if (Array.isArray(e) && Array.isArray(t)) {
1619
+ if (e.length !== t.length)
1620
+ return { valid: !1, mergeErrorPath: [] };
1621
+ const n = [];
1622
+ for (let r = 0; r < e.length; r++) {
1623
+ const o = e[r], s = t[r], i = ae(o, s);
1624
+ if (!i.valid)
1625
+ return {
1626
+ valid: !1,
1627
+ mergeErrorPath: [r, ...i.mergeErrorPath]
1628
+ };
1629
+ n.push(i.data);
1630
+ }
1631
+ return { valid: !0, data: n };
1632
+ }
1633
+ return { valid: !1, mergeErrorPath: [] };
1634
+ }
1635
+ function je(e, t, n) {
1636
+ if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), Q(e))
1637
+ return e;
1638
+ const r = ae(t.value, n.value);
1639
+ if (!r.valid)
1640
+ throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1641
+ return e.value = r.data, e;
1642
+ }
1643
+ const Wr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1644
+ x.init(e, t);
1645
+ const n = _n(t.entries), r = new Set(n);
1646
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => wn.has(typeof o)).map((o) => typeof o == "string" ? te(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1647
+ const i = o.value;
1648
+ return r.has(i) || o.issues.push({
1649
+ code: "invalid_value",
1650
+ values: n,
1651
+ input: i,
1652
+ inst: e
1653
+ }), o;
1654
+ };
1655
+ }), Hr = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1656
+ x.init(e, t), e._zod.parse = (n, r) => {
1657
+ const o = t.transform(n.value, n);
1658
+ if (r.async)
1659
+ return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
1660
+ if (o instanceof Promise)
1661
+ throw new L();
1662
+ return n.value = o, n;
1663
+ };
1664
+ }), Vr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1665
+ x.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
1666
+ const n = t.innerType._zod.pattern;
1667
+ return n ? new RegExp(`^(${le(n.source)})?$`) : void 0;
1668
+ }), e._zod.parse = (n, r) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(n, r) : n.value === void 0 ? n : t.innerType._zod.run(n, r);
1669
+ }), Jr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1670
+ x.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1671
+ const n = t.innerType._zod.pattern;
1672
+ return n ? new RegExp(`^(${le(n.source)}|null)$`) : void 0;
1673
+ }), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1674
+ }), Gr = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1675
+ x.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1676
+ if (n.value === void 0)
1677
+ return n.value = t.defaultValue, n;
1678
+ const o = t.innerType._zod.run(n, r);
1679
+ return o instanceof Promise ? o.then((s) => Pe(s, t)) : Pe(o, t);
1680
+ };
1681
+ });
1682
+ function Pe(e, t) {
1683
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1684
+ }
1685
+ const Yr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1686
+ x.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1687
+ }), Xr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1688
+ x.init(e, t), _(e._zod, "values", () => {
1689
+ const n = t.innerType._zod.values;
1690
+ return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1691
+ }), e._zod.parse = (n, r) => {
1692
+ const o = t.innerType._zod.run(n, r);
1693
+ return o instanceof Promise ? o.then((s) => Oe(s, e)) : Oe(o, e);
1694
+ };
1695
+ });
1696
+ function Oe(e, t) {
1697
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1698
+ code: "invalid_type",
1699
+ expected: "nonoptional",
1700
+ input: e.value,
1701
+ inst: t
1702
+ }), e;
1703
+ }
1704
+ const eo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1705
+ x.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1706
+ const o = t.innerType._zod.run(n, r);
1707
+ return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
1708
+ ...n,
1709
+ error: {
1710
+ issues: s.issues.map((i) => R(i, r, C()))
1711
+ },
1712
+ input: n.value
1713
+ }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1714
+ ...n,
1715
+ error: {
1716
+ issues: o.issues.map((s) => R(s, r, C()))
1717
+ },
1718
+ input: n.value
1719
+ }), n.issues = []), n);
1720
+ };
1721
+ }), to = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1722
+ x.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1723
+ const o = t.in._zod.run(n, r);
1724
+ return o instanceof Promise ? o.then((s) => Se(s, t, r)) : Se(o, t, r);
1725
+ };
1726
+ });
1727
+ function Se(e, t, n) {
1728
+ return e.issues.length ? e : t.out._zod.run({ value: e.value, issues: e.issues }, n);
1729
+ }
1730
+ const no = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1731
+ x.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1732
+ const o = t.innerType._zod.run(n, r);
1733
+ return o instanceof Promise ? o.then(Ee) : Ee(o);
1734
+ };
1735
+ });
1736
+ function Ee(e) {
1737
+ return e.value = Object.freeze(e.value), e;
1738
+ }
1739
+ const ro = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1740
+ I.init(e, t), x.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1741
+ const r = n.value, o = t.fn(r);
1742
+ if (o instanceof Promise)
1743
+ return o.then((s) => Ie(s, n, r, e));
1744
+ Ie(o, n, r, e);
1745
+ };
1746
+ });
1747
+ function Ie(e, t, n, r) {
1748
+ if (!e) {
1749
+ const o = {
1750
+ code: "custom",
1751
+ input: n,
1752
+ inst: r,
1753
+ // incorporates params.error into issue reporting
1754
+ path: [...r._zod.def.path ?? []],
1755
+ // incorporates params.error into issue reporting
1756
+ continue: !r._zod.def.abort
1757
+ // params: inst._zod.def.params,
1758
+ };
1759
+ r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(B(o));
1760
+ }
1761
+ }
1762
+ class oo {
1763
+ constructor() {
1764
+ this._map = /* @__PURE__ */ new Map(), this._idmap = /* @__PURE__ */ new Map();
1765
+ }
1766
+ add(t, ...n) {
1767
+ const r = n[0];
1768
+ if (this._map.set(t, r), r && typeof r == "object" && "id" in r) {
1769
+ if (this._idmap.has(r.id))
1770
+ throw new Error(`ID ${r.id} already exists in the registry`);
1771
+ this._idmap.set(r.id, t);
1772
+ }
1773
+ return this;
1774
+ }
1775
+ clear() {
1776
+ return this._map = /* @__PURE__ */ new Map(), this._idmap = /* @__PURE__ */ new Map(), this;
1777
+ }
1778
+ remove(t) {
1779
+ const n = this._map.get(t);
1780
+ return n && typeof n == "object" && "id" in n && this._idmap.delete(n.id), this._map.delete(t), this;
1781
+ }
1782
+ get(t) {
1783
+ const n = t._zod.parent;
1784
+ if (n) {
1785
+ const r = { ...this.get(n) ?? {} };
1786
+ delete r.id;
1787
+ const o = { ...r, ...this._map.get(t) };
1788
+ return Object.keys(o).length ? o : void 0;
1789
+ }
1790
+ return this._map.get(t);
1791
+ }
1792
+ has(t) {
1793
+ return this._map.has(t);
1794
+ }
1795
+ }
1796
+ function so() {
1797
+ return new oo();
1798
+ }
1799
+ const J = /* @__PURE__ */ so();
1800
+ function io(e, t) {
1801
+ return new e({
1802
+ type: "string",
1803
+ ...l(t)
1804
+ });
1805
+ }
1806
+ function ao(e, t) {
1807
+ return new e({
1808
+ type: "string",
1809
+ format: "email",
1810
+ check: "string_format",
1811
+ abort: !1,
1812
+ ...l(t)
1813
+ });
1814
+ }
1815
+ function Te(e, t) {
1816
+ return new e({
1817
+ type: "string",
1818
+ format: "guid",
1819
+ check: "string_format",
1820
+ abort: !1,
1821
+ ...l(t)
1822
+ });
1823
+ }
1824
+ function co(e, t) {
1825
+ return new e({
1826
+ type: "string",
1827
+ format: "uuid",
1828
+ check: "string_format",
1829
+ abort: !1,
1830
+ ...l(t)
1831
+ });
1832
+ }
1833
+ function uo(e, t) {
1834
+ return new e({
1835
+ type: "string",
1836
+ format: "uuid",
1837
+ check: "string_format",
1838
+ abort: !1,
1839
+ version: "v4",
1840
+ ...l(t)
1841
+ });
1842
+ }
1843
+ function lo(e, t) {
1844
+ return new e({
1845
+ type: "string",
1846
+ format: "uuid",
1847
+ check: "string_format",
1848
+ abort: !1,
1849
+ version: "v6",
1850
+ ...l(t)
1851
+ });
1852
+ }
1853
+ function ho(e, t) {
1854
+ return new e({
1855
+ type: "string",
1856
+ format: "uuid",
1857
+ check: "string_format",
1858
+ abort: !1,
1859
+ version: "v7",
1860
+ ...l(t)
1861
+ });
1862
+ }
1863
+ function fo(e, t) {
1864
+ return new e({
1865
+ type: "string",
1866
+ format: "url",
1867
+ check: "string_format",
1868
+ abort: !1,
1869
+ ...l(t)
1870
+ });
1871
+ }
1872
+ function po(e, t) {
1873
+ return new e({
1874
+ type: "string",
1875
+ format: "emoji",
1876
+ check: "string_format",
1877
+ abort: !1,
1878
+ ...l(t)
1879
+ });
1880
+ }
1881
+ function mo(e, t) {
1882
+ return new e({
1883
+ type: "string",
1884
+ format: "nanoid",
1885
+ check: "string_format",
1886
+ abort: !1,
1887
+ ...l(t)
1888
+ });
1889
+ }
1890
+ function go(e, t) {
1891
+ return new e({
1892
+ type: "string",
1893
+ format: "cuid",
1894
+ check: "string_format",
1895
+ abort: !1,
1896
+ ...l(t)
1897
+ });
1898
+ }
1899
+ function vo(e, t) {
1900
+ return new e({
1901
+ type: "string",
1902
+ format: "cuid2",
1903
+ check: "string_format",
1904
+ abort: !1,
1905
+ ...l(t)
1906
+ });
1907
+ }
1908
+ function _o(e, t) {
1909
+ return new e({
1910
+ type: "string",
1911
+ format: "ulid",
1912
+ check: "string_format",
1913
+ abort: !1,
1914
+ ...l(t)
1915
+ });
1916
+ }
1917
+ function yo(e, t) {
1918
+ return new e({
1919
+ type: "string",
1920
+ format: "xid",
1921
+ check: "string_format",
1922
+ abort: !1,
1923
+ ...l(t)
1924
+ });
1925
+ }
1926
+ function wo(e, t) {
1927
+ return new e({
1928
+ type: "string",
1929
+ format: "ksuid",
1930
+ check: "string_format",
1931
+ abort: !1,
1932
+ ...l(t)
1933
+ });
1934
+ }
1935
+ function bo(e, t) {
1936
+ return new e({
1937
+ type: "string",
1938
+ format: "ipv4",
1939
+ check: "string_format",
1940
+ abort: !1,
1941
+ ...l(t)
1942
+ });
1943
+ }
1944
+ function zo(e, t) {
1945
+ return new e({
1946
+ type: "string",
1947
+ format: "ipv6",
1948
+ check: "string_format",
1949
+ abort: !1,
1950
+ ...l(t)
1951
+ });
1952
+ }
1953
+ function xo(e, t) {
1954
+ return new e({
1955
+ type: "string",
1956
+ format: "cidrv4",
1957
+ check: "string_format",
1958
+ abort: !1,
1959
+ ...l(t)
1960
+ });
1961
+ }
1962
+ function ko(e, t) {
1963
+ return new e({
1964
+ type: "string",
1965
+ format: "cidrv6",
1966
+ check: "string_format",
1967
+ abort: !1,
1968
+ ...l(t)
1969
+ });
1970
+ }
1971
+ function Zo(e, t) {
1972
+ return new e({
1973
+ type: "string",
1974
+ format: "base64",
1975
+ check: "string_format",
1976
+ abort: !1,
1977
+ ...l(t)
1978
+ });
1979
+ }
1980
+ function $o(e, t) {
1981
+ return new e({
1982
+ type: "string",
1983
+ format: "base64url",
1984
+ check: "string_format",
1985
+ abort: !1,
1986
+ ...l(t)
1987
+ });
1988
+ }
1989
+ function jo(e, t) {
1990
+ return new e({
1991
+ type: "string",
1992
+ format: "e164",
1993
+ check: "string_format",
1994
+ abort: !1,
1995
+ ...l(t)
1996
+ });
1997
+ }
1998
+ function Po(e, t) {
1999
+ return new e({
2000
+ type: "string",
2001
+ format: "jwt",
2002
+ check: "string_format",
2003
+ abort: !1,
2004
+ ...l(t)
2005
+ });
2006
+ }
2007
+ function Oo(e, t) {
2008
+ return new e({
2009
+ type: "string",
2010
+ format: "datetime",
2011
+ check: "string_format",
2012
+ offset: !1,
2013
+ local: !1,
2014
+ precision: null,
2015
+ ...l(t)
2016
+ });
2017
+ }
2018
+ function So(e, t) {
2019
+ return new e({
2020
+ type: "string",
2021
+ format: "date",
2022
+ check: "string_format",
2023
+ ...l(t)
2024
+ });
2025
+ }
2026
+ function Eo(e, t) {
2027
+ return new e({
2028
+ type: "string",
2029
+ format: "time",
2030
+ check: "string_format",
2031
+ precision: null,
2032
+ ...l(t)
2033
+ });
2034
+ }
2035
+ function Io(e, t) {
2036
+ return new e({
2037
+ type: "string",
2038
+ format: "duration",
2039
+ check: "string_format",
2040
+ ...l(t)
2041
+ });
2042
+ }
2043
+ function To(e) {
2044
+ return new e({
2045
+ type: "unknown"
2046
+ });
2047
+ }
2048
+ function Do(e, t) {
2049
+ return new e({
2050
+ type: "never",
2051
+ ...l(t)
2052
+ });
2053
+ }
2054
+ function ct(e, t) {
2055
+ return new or({
2056
+ check: "max_length",
2057
+ ...l(t),
2058
+ maximum: e
2059
+ });
2060
+ }
2061
+ function Y(e, t) {
2062
+ return new sr({
2063
+ check: "min_length",
2064
+ ...l(t),
2065
+ minimum: e
2066
+ });
2067
+ }
2068
+ function ut(e, t) {
2069
+ return new ir({
2070
+ check: "length_equals",
2071
+ ...l(t),
2072
+ length: e
2073
+ });
2074
+ }
2075
+ function Ao(e, t) {
2076
+ return new ar({
2077
+ check: "string_format",
2078
+ format: "regex",
2079
+ ...l(t),
2080
+ pattern: e
2081
+ });
2082
+ }
2083
+ function No(e) {
2084
+ return new cr({
2085
+ check: "string_format",
2086
+ format: "lowercase",
2087
+ ...l(e)
2088
+ });
2089
+ }
2090
+ function Co(e) {
2091
+ return new ur({
2092
+ check: "string_format",
2093
+ format: "uppercase",
2094
+ ...l(e)
2095
+ });
2096
+ }
2097
+ function Ro(e, t) {
2098
+ return new lr({
2099
+ check: "string_format",
2100
+ format: "includes",
2101
+ ...l(t),
2102
+ includes: e
2103
+ });
2104
+ }
2105
+ function Uo(e, t) {
2106
+ return new dr({
2107
+ check: "string_format",
2108
+ format: "starts_with",
2109
+ ...l(t),
2110
+ prefix: e
2111
+ });
2112
+ }
2113
+ function Fo(e, t) {
2114
+ return new hr({
2115
+ check: "string_format",
2116
+ format: "ends_with",
2117
+ ...l(t),
2118
+ suffix: e
2119
+ });
2120
+ }
2121
+ function K(e) {
2122
+ return new fr({
2123
+ check: "overwrite",
2124
+ tx: e
2125
+ });
2126
+ }
2127
+ function qo(e) {
2128
+ return K((t) => t.normalize(e));
2129
+ }
2130
+ function Mo() {
2131
+ return K((e) => e.trim());
2132
+ }
2133
+ function Qo() {
2134
+ return K((e) => e.toLowerCase());
2135
+ }
2136
+ function Lo() {
2137
+ return K((e) => e.toUpperCase());
2138
+ }
2139
+ function Bo(e, t, n) {
2140
+ return new e({
2141
+ type: "array",
2142
+ element: t,
2143
+ // get element() {
2144
+ // return element;
2145
+ // },
2146
+ ...l(n)
2147
+ });
2148
+ }
2149
+ function Ko(e, t, n) {
2150
+ return new e({
2151
+ type: "custom",
2152
+ check: "custom",
2153
+ fn: t,
2154
+ ...l(n)
2155
+ });
2156
+ }
2157
+ const Wo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2158
+ jr.init(e, t), w.init(e, t);
2159
+ });
2160
+ function Ho(e) {
2161
+ return Oo(Wo, e);
2162
+ }
2163
+ const Vo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2164
+ Pr.init(e, t), w.init(e, t);
2165
+ });
2166
+ function Jo(e) {
2167
+ return So(Vo, e);
2168
+ }
2169
+ const Go = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2170
+ Or.init(e, t), w.init(e, t);
2171
+ });
2172
+ function Yo(e) {
2173
+ return Eo(Go, e);
2174
+ }
2175
+ const Xo = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2176
+ Sr.init(e, t), w.init(e, t);
2177
+ });
2178
+ function es(e) {
2179
+ return Io(Xo, e);
2180
+ }
2181
+ const ts = (e, t) => {
2182
+ et.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2183
+ format: {
2184
+ value: (n) => On(e, n)
2185
+ // enumerable: false,
2186
+ },
2187
+ flatten: {
2188
+ value: (n) => Pn(e, n)
2189
+ // enumerable: false,
2190
+ },
2191
+ addIssue: {
2192
+ value: (n) => {
2193
+ e.issues.push(n), e.message = JSON.stringify(e.issues, oe, 2);
2194
+ }
2195
+ // enumerable: false,
2196
+ },
2197
+ addIssues: {
2198
+ value: (n) => {
2199
+ e.issues.push(...n), e.message = JSON.stringify(e.issues, oe, 2);
2200
+ }
2201
+ // enumerable: false,
2202
+ },
2203
+ isEmpty: {
2204
+ get() {
2205
+ return e.issues.length === 0;
2206
+ }
2207
+ // enumerable: false,
2208
+ }
2209
+ });
2210
+ }, re = c("ZodError", ts, {
2211
+ Parent: Error
2212
+ }), ns = /* @__PURE__ */ Sn(re), rs = /* @__PURE__ */ En(re), os = /* @__PURE__ */ nt(re), ss = /* @__PURE__ */ rt(re), Z = /* @__PURE__ */ c("ZodType", (e, t) => (x.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(
2213
+ {
2214
+ ...t,
2215
+ checks: [
2216
+ ...t.checks ?? [],
2217
+ ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2218
+ ]
2219
+ }
2220
+ // { parent: true }
2221
+ ), e.clone = (n, r) => F(e, n, r), e.brand = () => e, e.register = (n, r) => (n.add(e, r), e), e.parse = (n, r) => ns(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => os(e, n, r), e.parseAsync = async (n, r) => rs(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ss(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(Js(n, r)), e.superRefine = (n) => e.check(Gs(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Ce(e), e.nullable = () => Re(e), e.nullish = () => Ce(Re(e)), e.nonoptional = (n) => Ms(e, n), e.array = () => Ps(e), e.or = (n) => Is([e, n]), e.and = (n) => Ds(e, n), e.transform = (n) => Ue(e, Ns(n)), e.default = (n) => Us(e, n), e.prefault = (n) => qs(e, n), e.catch = (n) => Ls(e, n), e.pipe = (n) => Ue(e, n), e.readonly = () => Ws(e), e.describe = (n) => {
2222
+ const r = e.clone();
2223
+ return J.add(r, { description: n }), r;
2224
+ }, Object.defineProperty(e, "description", {
2225
+ get() {
2226
+ return J.get(e)?.description;
2227
+ },
2228
+ configurable: !0
2229
+ }), e.meta = (...n) => {
2230
+ if (n.length === 0)
2231
+ return J.get(e);
2232
+ const r = e.clone();
2233
+ return J.add(r, n[0]), r;
2234
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), lt = /* @__PURE__ */ c("_ZodString", (e, t) => {
2235
+ he.init(e, t), Z.init(e, t);
2236
+ const n = e._zod.bag;
2237
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Ao(...r)), e.includes = (...r) => e.check(Ro(...r)), e.startsWith = (...r) => e.check(Uo(...r)), e.endsWith = (...r) => e.check(Fo(...r)), e.min = (...r) => e.check(Y(...r)), e.max = (...r) => e.check(ct(...r)), e.length = (...r) => e.check(ut(...r)), e.nonempty = (...r) => e.check(Y(1, ...r)), e.lowercase = (r) => e.check(No(r)), e.uppercase = (r) => e.check(Co(r)), e.trim = () => e.check(Mo()), e.normalize = (...r) => e.check(qo(...r)), e.toLowerCase = () => e.check(Qo()), e.toUpperCase = () => e.check(Lo());
2238
+ }), is = /* @__PURE__ */ c("ZodString", (e, t) => {
2239
+ he.init(e, t), lt.init(e, t), e.email = (n) => e.check(ao(as, n)), e.url = (n) => e.check(fo(cs, n)), e.jwt = (n) => e.check(Po(xs, n)), e.emoji = (n) => e.check(po(us, n)), e.guid = (n) => e.check(Te(Ae, n)), e.uuid = (n) => e.check(co(G, n)), e.uuidv4 = (n) => e.check(uo(G, n)), e.uuidv6 = (n) => e.check(lo(G, n)), e.uuidv7 = (n) => e.check(ho(G, n)), e.nanoid = (n) => e.check(mo(ls, n)), e.guid = (n) => e.check(Te(Ae, n)), e.cuid = (n) => e.check(go(ds, n)), e.cuid2 = (n) => e.check(vo(hs, n)), e.ulid = (n) => e.check(_o(fs, n)), e.base64 = (n) => e.check(Zo(ws, n)), e.base64url = (n) => e.check($o(bs, n)), e.xid = (n) => e.check(yo(ps, n)), e.ksuid = (n) => e.check(wo(ms, n)), e.ipv4 = (n) => e.check(bo(gs, n)), e.ipv6 = (n) => e.check(zo(vs, n)), e.cidrv4 = (n) => e.check(xo(_s, n)), e.cidrv6 = (n) => e.check(ko(ys, n)), e.e164 = (n) => e.check(jo(zs, n)), e.datetime = (n) => e.check(Ho(n)), e.date = (n) => e.check(Jo(n)), e.time = (n) => e.check(Yo(n)), e.duration = (n) => e.check(es(n));
2240
+ });
2241
+ function De(e) {
2242
+ return io(is, e);
2243
+ }
2244
+ const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2245
+ y.init(e, t), lt.init(e, t);
2246
+ }), as = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2247
+ _r.init(e, t), w.init(e, t);
2248
+ }), Ae = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2249
+ gr.init(e, t), w.init(e, t);
2250
+ }), G = /* @__PURE__ */ c("ZodUUID", (e, t) => {
2251
+ vr.init(e, t), w.init(e, t);
2252
+ }), cs = /* @__PURE__ */ c("ZodURL", (e, t) => {
2253
+ yr.init(e, t), w.init(e, t);
2254
+ }), us = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2255
+ wr.init(e, t), w.init(e, t);
2256
+ }), ls = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2257
+ br.init(e, t), w.init(e, t);
2258
+ }), ds = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2259
+ zr.init(e, t), w.init(e, t);
2260
+ }), hs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2261
+ xr.init(e, t), w.init(e, t);
2262
+ }), fs = /* @__PURE__ */ c("ZodULID", (e, t) => {
2263
+ kr.init(e, t), w.init(e, t);
2264
+ }), ps = /* @__PURE__ */ c("ZodXID", (e, t) => {
2265
+ Zr.init(e, t), w.init(e, t);
2266
+ }), ms = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2267
+ $r.init(e, t), w.init(e, t);
2268
+ }), gs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2269
+ Er.init(e, t), w.init(e, t);
2270
+ }), vs = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2271
+ Ir.init(e, t), w.init(e, t);
2272
+ }), _s = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2273
+ Tr.init(e, t), w.init(e, t);
2274
+ }), ys = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2275
+ Dr.init(e, t), w.init(e, t);
2276
+ }), ws = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2277
+ Ar.init(e, t), w.init(e, t);
2278
+ }), bs = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2279
+ Cr.init(e, t), w.init(e, t);
2280
+ }), zs = /* @__PURE__ */ c("ZodE164", (e, t) => {
2281
+ Rr.init(e, t), w.init(e, t);
2282
+ }), xs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2283
+ Fr.init(e, t), w.init(e, t);
2284
+ }), ks = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2285
+ qr.init(e, t), Z.init(e, t);
2286
+ });
2287
+ function Ne() {
2288
+ return To(ks);
2289
+ }
2290
+ const Zs = /* @__PURE__ */ c("ZodNever", (e, t) => {
2291
+ Mr.init(e, t), Z.init(e, t);
2292
+ });
2293
+ function $s(e) {
2294
+ return Do(Zs, e);
2295
+ }
2296
+ const js = /* @__PURE__ */ c("ZodArray", (e, t) => {
2297
+ Qr.init(e, t), Z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(Y(n, r)), e.nonempty = (n) => e.check(Y(1, n)), e.max = (n, r) => e.check(ct(n, r)), e.length = (n, r) => e.check(ut(n, r)), e.unwrap = () => e.element;
2298
+ });
2299
+ function Ps(e, t) {
2300
+ return Bo(js, e, t);
2301
+ }
2302
+ const Os = /* @__PURE__ */ c("ZodObject", (e, t) => {
2303
+ Lr.init(e, t), Z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => dt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ne() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ne() }), e.strict = () => e.clone({ ...e._zod.def, catchall: $s() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => kn(e, n), e.merge = (n) => Zn(e, n), e.pick = (n) => zn(e, n), e.omit = (n) => xn(e, n), e.partial = (...n) => $n(ht, e, n[0]), e.required = (...n) => jn(ft, e, n[0]);
2304
+ });
2305
+ function Ss(e, t) {
2306
+ const n = {
2307
+ type: "object",
2308
+ get shape() {
2309
+ return U(this, "shape", { ...e }), this.shape;
2310
+ },
2311
+ ...l(t)
2312
+ };
2313
+ return new Os(n);
2314
+ }
2315
+ const Es = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2316
+ Br.init(e, t), Z.init(e, t), e.options = t.options;
2317
+ });
2318
+ function Is(e, t) {
2319
+ return new Es({
2320
+ type: "union",
2321
+ options: e,
2322
+ ...l(t)
2323
+ });
2324
+ }
2325
+ const Ts = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2326
+ Kr.init(e, t), Z.init(e, t);
2327
+ });
2328
+ function Ds(e, t) {
2329
+ return new Ts({
2330
+ type: "intersection",
2331
+ left: e,
2332
+ right: t
2333
+ });
2334
+ }
2335
+ const ce = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2336
+ Wr.init(e, t), Z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2337
+ const n = new Set(Object.keys(t.entries));
2338
+ e.extract = (r, o) => {
2339
+ const s = {};
2340
+ for (const i of r)
2341
+ if (n.has(i))
2342
+ s[i] = t.entries[i];
2343
+ else
2344
+ throw new Error(`Key ${i} not found in enum`);
2345
+ return new ce({
2346
+ ...t,
2347
+ checks: [],
2348
+ ...l(o),
2349
+ entries: s
2350
+ });
2351
+ }, e.exclude = (r, o) => {
2352
+ const s = { ...t.entries };
2353
+ for (const i of r)
2354
+ if (n.has(i))
2355
+ delete s[i];
2356
+ else
2357
+ throw new Error(`Key ${i} not found in enum`);
2358
+ return new ce({
2359
+ ...t,
2360
+ checks: [],
2361
+ ...l(o),
2362
+ entries: s
2363
+ });
2364
+ };
2365
+ });
2366
+ function dt(e, t) {
2367
+ const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2368
+ return new ce({
2369
+ type: "enum",
2370
+ entries: n,
2371
+ ...l(t)
2372
+ });
2373
+ }
2374
+ const As = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2375
+ Hr.init(e, t), Z.init(e, t), e._zod.parse = (n, r) => {
2376
+ n.addIssue = (s) => {
2377
+ if (typeof s == "string")
2378
+ n.issues.push(B(s, n.value, t));
2379
+ else {
2380
+ const i = s;
2381
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(B(i));
2382
+ }
2383
+ };
2384
+ const o = t.transform(n.value, n);
2385
+ return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
2386
+ };
2387
+ });
2388
+ function Ns(e) {
2389
+ return new As({
2390
+ type: "transform",
2391
+ transform: e
2392
+ });
2393
+ }
2394
+ const ht = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2395
+ Vr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2396
+ });
2397
+ function Ce(e) {
2398
+ return new ht({
2399
+ type: "optional",
2400
+ innerType: e
2401
+ });
2402
+ }
2403
+ const Cs = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2404
+ Jr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2405
+ });
2406
+ function Re(e) {
2407
+ return new Cs({
2408
+ type: "nullable",
2409
+ innerType: e
2410
+ });
2411
+ }
2412
+ const Rs = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2413
+ Gr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2414
+ });
2415
+ function Us(e, t) {
2416
+ return new Rs({
2417
+ type: "default",
2418
+ innerType: e,
2419
+ get defaultValue() {
2420
+ return typeof t == "function" ? t() : t;
2421
+ }
2422
+ });
2423
+ }
2424
+ const Fs = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2425
+ Yr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2426
+ });
2427
+ function qs(e, t) {
2428
+ return new Fs({
2429
+ type: "prefault",
2430
+ innerType: e,
2431
+ get defaultValue() {
2432
+ return typeof t == "function" ? t() : t;
2433
+ }
2434
+ });
2435
+ }
2436
+ const ft = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2437
+ Xr.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2438
+ });
2439
+ function Ms(e, t) {
2440
+ return new ft({
2441
+ type: "nonoptional",
2442
+ innerType: e,
2443
+ ...l(t)
2444
+ });
2445
+ }
2446
+ const Qs = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2447
+ eo.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2448
+ });
2449
+ function Ls(e, t) {
2450
+ return new Qs({
2451
+ type: "catch",
2452
+ innerType: e,
2453
+ catchValue: typeof t == "function" ? t : () => t
2454
+ });
2455
+ }
2456
+ const Bs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2457
+ to.init(e, t), Z.init(e, t), e.in = t.in, e.out = t.out;
2458
+ });
2459
+ function Ue(e, t) {
2460
+ return new Bs({
2461
+ type: "pipe",
2462
+ in: e,
2463
+ out: t
2464
+ // ...util.normalizeParams(params),
2465
+ });
2466
+ }
2467
+ const Ks = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2468
+ no.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2469
+ });
2470
+ function Ws(e) {
2471
+ return new Ks({
2472
+ type: "readonly",
2473
+ innerType: e
2474
+ });
2475
+ }
2476
+ const Hs = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2477
+ ro.init(e, t), Z.init(e, t);
2478
+ });
2479
+ function Vs(e) {
2480
+ const t = new I({
2481
+ check: "custom"
2482
+ // ...util.normalizeParams(params),
2483
+ });
2484
+ return t._zod.check = e, t;
2485
+ }
2486
+ function Js(e, t = {}) {
2487
+ return Ko(Hs, e, t);
2488
+ }
2489
+ function Gs(e) {
2490
+ const t = Vs((n) => (n.addIssue = (r) => {
2491
+ if (typeof r == "string")
2492
+ n.issues.push(B(r, n.value, t._zod.def));
2493
+ else {
2494
+ const o = r;
2495
+ o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(B(o));
2496
+ }
2497
+ }, e(n.value, n)));
2498
+ return t;
2499
+ }
2500
+ const Ys = Ss({
2501
+ buildId: De(),
2502
+ timestamp: De(),
2503
+ status: dt(["in-progress", "success", "failed"])
2504
+ }), Xs = ({
2505
+ buildId: e,
2506
+ environmentType: t,
2507
+ endpoint: n = "/__zuplo/docs"
2508
+ }) => {
2509
+ const r = jt({
2510
+ queryKey: ["zuplo-build-check", e, n],
2511
+ refetchInterval: 3e3,
2512
+ enabled: e !== void 0 && t === "WORKING_COPY",
2513
+ retry: !1,
2514
+ queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
2515
+ if (!s.ok) throw new Error("Failed to fetch build status");
2516
+ return s.json();
2517
+ }).then((s) => Ys.parse(s))
2518
+ });
2519
+ if (ee(() => {
2520
+ r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
2521
+ }, [r.data]), r.isError || !r.data || r.data.buildId === e)
2522
+ return null;
2523
+ const o = r.data.status === "success";
2524
+ return /* @__PURE__ */ a.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
2525
+ o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2526
+ /* @__PURE__ */ a.jsx(Qt, { size: 16 }),
2527
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
2528
+ ] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2529
+ /* @__PURE__ */ a.jsx(Lt, { size: 16, className: "animate-spin" }),
2530
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
2531
+ ] }),
2532
+ /* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2533
+ /* @__PURE__ */ a.jsx(
2534
+ Wt,
2535
+ {
2536
+ variant: "outline",
2537
+ size: "sm",
2538
+ className: "w-full",
2539
+ onClick: () => {
2540
+ window.location.reload();
2541
+ },
2542
+ children: "Reload"
2543
+ }
2544
+ )
2545
+ ] });
2546
+ }, ei = () => {
2547
+ const e = We(), t = Ke(e.pathname);
2548
+ ee(() => {
2549
+ const n = t.current !== e.pathname, r = e.hash !== "";
2550
+ n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2551
+ }, [e.pathname, e.hash]);
2552
+ }, ti = ({
2553
+ icon: e
2554
+ }) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
2555
+ "img",
2556
+ {
2557
+ src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
2558
+ className: "size-5",
2559
+ alt: e
2560
+ }
2561
+ ) : e, ni = (e) => /^https?:/.test(e), ri = () => {
2562
+ const { site: e } = Ut(), t = e?.footer;
2563
+ return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2564
+ /* @__PURE__ */ a.jsxs(
2565
+ "div",
2566
+ {
2567
+ className: S("flex flex-row gap-8", {
2568
+ "justify-center": !t.position || t.position === "center",
2569
+ "justify-start": t.position === "start",
2570
+ "justify-end": t.position === "end"
2571
+ }),
2572
+ children: [
2573
+ /* @__PURE__ */ a.jsx(N.Target, { name: "footer-before" }),
2574
+ t.columns && /* @__PURE__ */ a.jsx(
2575
+ "div",
2576
+ {
2577
+ className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
2578
+ style: { "--columns": t.columns.length },
2579
+ children: t.columns.map((n) => /* @__PURE__ */ a.jsxs(
2580
+ "div",
2581
+ {
2582
+ className: S({
2583
+ "justify-self-center": !n.position || n.position === "center",
2584
+ "justify-self-start": n.position === "start",
2585
+ "justify-self-end": n.position === "end"
2586
+ }),
2587
+ children: [
2588
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2589
+ /* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2590
+ const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2591
+ return /* @__PURE__ */ a.jsx("li", { children: ni(r.href) ? /* @__PURE__ */ a.jsxs(
2592
+ "a",
2593
+ {
2594
+ href: r.href,
2595
+ target: "_blank",
2596
+ rel: "noopener noreferrer",
2597
+ className: o,
2598
+ children: [
2599
+ /* @__PURE__ */ a.jsx("span", { children: r.label }),
2600
+ /* @__PURE__ */ a.jsx(Bt, { size: 12 })
2601
+ ]
2602
+ }
2603
+ ) : /* @__PURE__ */ a.jsx(Ht, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2604
+ }) })
2605
+ ]
2606
+ },
2607
+ n.title
2608
+ ))
2609
+ }
2610
+ ),
2611
+ /* @__PURE__ */ a.jsx(N.Target, { name: "footer-after" })
2612
+ ]
2613
+ }
2614
+ ),
2615
+ /* @__PURE__ */ a.jsxs(
2616
+ "div",
2617
+ {
2618
+ className: S(
2619
+ "flex items-center justify-between",
2620
+ t.columns && "border-t mt-8 pt-8"
2621
+ ),
2622
+ children: [
2623
+ t.logo && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2624
+ /* @__PURE__ */ a.jsx(
2625
+ "img",
2626
+ {
2627
+ src: t.logo.src.light,
2628
+ alt: t.logo.alt,
2629
+ className: "w-8 dark:hidden",
2630
+ style: { width: t.logo.width }
2631
+ }
2632
+ ),
2633
+ /* @__PURE__ */ a.jsx(
2634
+ "img",
2635
+ {
2636
+ src: t.logo.src.dark,
2637
+ alt: t.logo.alt,
2638
+ className: "w-8 hidden dark:block",
2639
+ style: { width: t.logo.width }
2640
+ }
2641
+ )
2642
+ ] }),
2643
+ t.copyright && /* @__PURE__ */ a.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
2644
+ /* @__PURE__ */ a.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((n) => /* @__PURE__ */ a.jsxs(
2645
+ "a",
2646
+ {
2647
+ href: n.href,
2648
+ target: "_blank",
2649
+ rel: "noopener noreferrer",
2650
+ className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2651
+ children: [
2652
+ /* @__PURE__ */ a.jsx(ti, { icon: n.icon }),
2653
+ n.label
2654
+ ]
2655
+ },
2656
+ n.href
2657
+ )) })
2658
+ ]
2659
+ }
2660
+ )
2661
+ ] }) }) : null;
2662
+ }, pt = ({
2663
+ shouldScaleBackground: e = !0,
2664
+ ...t
2665
+ }) => /* @__PURE__ */ a.jsx(
2666
+ E.Root,
2667
+ {
2668
+ shouldScaleBackground: e,
2669
+ ...t
2670
+ }
2671
+ );
2672
+ pt.displayName = "Drawer";
2673
+ const oi = E.Trigger, si = E.Portal, mt = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2674
+ E.Overlay,
2675
+ {
2676
+ ref: n,
2677
+ className: S("fixed inset-0 z-50 bg-black/80", e),
2678
+ ...t
2679
+ }
2680
+ ));
2681
+ mt.displayName = E.Overlay.displayName;
2682
+ const ii = A.forwardRef(
2683
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(si, { children: [
2684
+ /* @__PURE__ */ a.jsx(mt, {}),
2685
+ /* @__PURE__ */ a.jsxs(
2686
+ E.Content,
2687
+ {
2688
+ ref: o,
2689
+ className: S(
2690
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2691
+ e
2692
+ ),
2693
+ ...r,
2694
+ children: [
2695
+ !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2696
+ t
2697
+ ]
2698
+ }
2699
+ )
2700
+ ] })
2701
+ );
2702
+ ii.displayName = "DrawerContent";
2703
+ const ai = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2704
+ E.Title,
2705
+ {
2706
+ ref: n,
2707
+ className: S(
2708
+ "text-lg font-semibold leading-none tracking-tight",
2709
+ e
2710
+ ),
2711
+ ...t
2712
+ }
2713
+ ));
2714
+ ai.displayName = E.Title.displayName;
2715
+ const ci = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2716
+ E.Description,
2717
+ {
2718
+ ref: n,
2719
+ className: S("text-sm text-muted-foreground", e),
2720
+ ...t
2721
+ }
2722
+ ));
2723
+ ci.displayName = E.Description.displayName;
2724
+ const gt = ({
2725
+ children: e,
2726
+ className: t
2727
+ }) => {
2728
+ const { options: n } = X(), r = Ke(null);
2729
+ return ee(() => {
2730
+ const o = r.current?.querySelector('[aria-current="page"]');
2731
+ Vt(o ?? null);
2732
+ }, []), /* @__PURE__ */ a.jsxs(
2733
+ "div",
2734
+ {
2735
+ className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
2736
+ "data-pagefind-ignore": "all",
2737
+ children: [
2738
+ /* @__PURE__ */ a.jsx(
2739
+ "nav",
2740
+ {
2741
+ ref: r,
2742
+ className: S(
2743
+ "hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
2744
+ "-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
2745
+ // Revert the padding/margin on the first child
2746
+ "-mt-2.5",
2747
+ t
2748
+ ),
2749
+ style: {
2750
+ maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
2751
+ },
2752
+ children: e
2753
+ }
2754
+ ),
2755
+ /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Ft, {}) })
2756
+ ]
2757
+ }
2758
+ );
2759
+ };
2760
+ gt.displayName = "NavigationWrapper";
2761
+ const ui = ({
2762
+ onRequestClose: e,
2763
+ navigation: t
2764
+ }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2765
+ /* @__PURE__ */ a.jsxs(gt, { children: [
2766
+ /* @__PURE__ */ a.jsx(N.Target, { name: "navigation-before" }),
2767
+ t.map((n) => /* @__PURE__ */ a.jsx(
2768
+ ye,
2769
+ {
2770
+ item: n
2771
+ },
2772
+ n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
2773
+ )),
2774
+ /* @__PURE__ */ a.jsx(N.Target, { name: "navigation-after" })
2775
+ ] }),
2776
+ /* @__PURE__ */ a.jsx(
2777
+ en,
2778
+ {
2779
+ className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
2780
+ "aria-describedby": void 0,
2781
+ children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2782
+ /* @__PURE__ */ a.jsx(nn, { children: /* @__PURE__ */ a.jsx(tn, { children: "Navigation" }) }),
2783
+ t.map((n) => /* @__PURE__ */ a.jsx(
2784
+ ye,
2785
+ {
2786
+ item: n,
2787
+ onRequestClose: e
2788
+ },
2789
+ n.label
2790
+ ))
2791
+ ] })
2792
+ }
2793
+ )
2794
+ ] }), li = ({ children: e }) => {
2795
+ const [t, n] = Et(!1), { navigation: r } = Pt(), o = r.length > 0, s = At().state === "loading", { options: i } = X();
2796
+ return /* @__PURE__ */ a.jsxs(
2797
+ pt,
2798
+ {
2799
+ direction: i.site?.dir === "rtl" ? "right" : "left",
2800
+ open: t,
2801
+ onOpenChange: (u) => n(u),
2802
+ children: [
2803
+ o && /* @__PURE__ */ a.jsx(
2804
+ ui,
2805
+ {
2806
+ onRequestClose: () => n(!1),
2807
+ navigation: r
2808
+ }
2809
+ ),
2810
+ o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(oi, { className: "flex items-center gap-2 px-4", children: [
2811
+ /* @__PURE__ */ a.jsx(Kt, { size: 16, strokeWidth: 1.5 }),
2812
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
2813
+ ] }) }),
2814
+ /* @__PURE__ */ a.jsxs(
2815
+ "main",
2816
+ {
2817
+ "data-pagefind-body": !0,
2818
+ className: S(
2819
+ "px-4 lg:pe-8 lg:px-8",
2820
+ !o && "col-span-full",
2821
+ s && "animate-pulse"
2822
+ ),
2823
+ children: [
2824
+ /* @__PURE__ */ a.jsx(N.Target, { name: "content-before" }),
2825
+ e,
2826
+ /* @__PURE__ */ a.jsx(N.Target, { name: "content-after" })
2827
+ ]
2828
+ }
2829
+ )
2830
+ ]
2831
+ }
2832
+ );
2833
+ }, di = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(rn, {}) }), hi = ({ children: e }) => {
2834
+ const { authentication: t } = X();
2835
+ return Jt(), ei(), ee(() => {
2836
+ t?.onPageLoad?.();
2837
+ }, [t]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2838
+ /* @__PURE__ */ a.jsx(N.Target, { name: "layout-before-head" }),
2839
+ /* @__PURE__ */ a.jsx(qt, {}),
2840
+ /* @__PURE__ */ a.jsx(N.Target, { name: "layout-after-head" }),
2841
+ /* @__PURE__ */ a.jsx(
2842
+ "div",
2843
+ {
2844
+ className: S(
2845
+ "grid max-w-screen-2xl w-full lg:mx-auto",
2846
+ "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2847
+ "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2848
+ ),
2849
+ children: /* @__PURE__ */ a.jsx(It, { fallback: /* @__PURE__ */ a.jsx(di, {}), children: /* @__PURE__ */ a.jsx(li, { children: e ?? /* @__PURE__ */ a.jsx(Nt, {}) }) })
2850
+ }
2851
+ ),
2852
+ /* @__PURE__ */ a.jsx(ri, {})
2853
+ ] });
2854
+ }, fi = ({ children: e }) => {
2855
+ const { meta: t, options: n } = X(), r = We();
2856
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2857
+ /* @__PURE__ */ a.jsxs(qe, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2858
+ n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
2859
+ "link",
2860
+ {
2861
+ rel: "canonical",
2862
+ href: Ot(
2863
+ n.canonicalUrlOrigin,
2864
+ n.basePath,
2865
+ r.pathname
2866
+ )
2867
+ }
2868
+ ),
2869
+ t?.description && /* @__PURE__ */ a.jsx("meta", { name: "description", content: t.description }),
2870
+ t?.favicon && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: t.favicon }),
2871
+ t?.generator && /* @__PURE__ */ a.jsx("meta", { name: "generator", content: t.generator }),
2872
+ t?.applicationName && /* @__PURE__ */ a.jsx("meta", { name: "application-name", content: t.applicationName }),
2873
+ t?.referrer && /* @__PURE__ */ a.jsx("meta", { name: "referrer", content: t.referrer }),
2874
+ t?.keywords && t.keywords.length > 0 && /* @__PURE__ */ a.jsx("meta", { name: "keywords", content: t.keywords.join(", ") }),
2875
+ t?.authors?.map((o) => /* @__PURE__ */ a.jsx("meta", { name: "author", content: o }, o)),
2876
+ t?.creator && /* @__PURE__ */ a.jsx("meta", { name: "creator", content: t.creator }),
2877
+ t?.publisher && /* @__PURE__ */ a.jsx("meta", { name: "publisher", content: t.publisher })
2878
+ ] }),
2879
+ e
2880
+ ] });
2881
+ }, pi = ({
2882
+ title: e = "An error occurred",
2883
+ message: t,
2884
+ category: n
2885
+ }) => /* @__PURE__ */ a.jsxs(Gt, { className: "h-full pt-(--padding-content-top)", children: [
2886
+ n && /* @__PURE__ */ a.jsx(on, { children: n }),
2887
+ e && /* @__PURE__ */ a.jsx(Yt, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2888
+ /* @__PURE__ */ a.jsx("p", { children: t })
2889
+ ] }), mi = (e) => {
2890
+ switch (e) {
2891
+ case 400:
2892
+ return {
2893
+ title: "Bad Request",
2894
+ message: "The request could not be understood by the server due to malformed syntax."
2895
+ };
2896
+ case 403:
2897
+ return {
2898
+ title: "Forbidden",
2899
+ message: "You don't have permission to access this resource."
2900
+ };
2901
+ case 404:
2902
+ return {
2903
+ title: "Not Found",
2904
+ message: "The requested resource could not be found."
2905
+ };
2906
+ case 405:
2907
+ return {
2908
+ title: "Method Not Allowed",
2909
+ message: "The request method is not supported for the requested resource."
2910
+ };
2911
+ case 414:
2912
+ return {
2913
+ title: "Request URI Too Large",
2914
+ message: "The request URI is too large."
2915
+ };
2916
+ case 416:
2917
+ return {
2918
+ title: "Range Not Satisfiable",
2919
+ message: "The server cannot satisfy the request range."
2920
+ };
2921
+ case 500:
2922
+ return {
2923
+ title: "Internal Server Error",
2924
+ message: "An unexpected error occurred while processing your request."
2925
+ };
2926
+ case 501:
2927
+ return {
2928
+ title: "Not Implemented",
2929
+ message: "The server does not support the functionality required to fulfill the request."
2930
+ };
2931
+ case 502:
2932
+ return {
2933
+ title: "Bad Gateway",
2934
+ message: "The server received an invalid response from the upstream server."
2935
+ };
2936
+ case 503:
2937
+ return {
2938
+ title: "Service Unavailable",
2939
+ message: "The server is temporarily unable to handle the request."
2940
+ };
2941
+ case 504:
2942
+ return {
2943
+ title: "Gateway Timeout",
2944
+ message: "The server did not receive a timely response from the upstream server."
2945
+ };
2946
+ default:
2947
+ return {
2948
+ title: "An error occurred",
2949
+ message: "Something went wrong while processing your request."
2950
+ };
2951
+ }
2952
+ }, gi = ({ statusCode: e, message: t }) => {
2953
+ if (e === 404)
2954
+ return /* @__PURE__ */ a.jsx(sn, {});
2955
+ const n = mi(e);
2956
+ return /* @__PURE__ */ a.jsx(
2957
+ pi,
2958
+ {
2959
+ title: n.title,
2960
+ message: t ?? n.message,
2961
+ category: e
2962
+ }
2963
+ );
2964
+ };
2965
+ function vi({ error: e }) {
2966
+ return /* @__PURE__ */ a.jsx(Xt, { error: e });
2967
+ }
2968
+ const Ai = hi, Ni = an, Ci = vi, Ri = gn, Ui = vn, Fi = Mt, qi = qe, Mi = gi, Qi = Xs, Li = fi;
2969
+ export {
2970
+ Ri as Bootstrap,
2971
+ Ui as BootstrapStatic,
2972
+ Qi as BuildCheck,
2973
+ qi as Head,
2974
+ Ai as Layout,
2975
+ Li as Meta,
2976
+ Fi as RouteGuard,
2977
+ Ni as RouterError,
2978
+ Ci as ServerError,
2979
+ Mi as StatusPage
2980
+ };
2981
+ //# sourceMappingURL=zudoku.__internal.js.map