zudoku 0.57.0 → 0.58.0

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