zudoku 0.0.0-fabd0c1 → 0.0.0-fb5b775d

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