zudoku 0.0.0-z7b86faab → 0.0.0-z8ac421f0

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