zudoku 0.0.0-zce59fc03 → 0.0.0-zd57c18df

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 (232) 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 +118 -68
  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/validate.d.ts +5 -4
  15. package/dist/config/validators/validate.js +2 -0
  16. package/dist/config/validators/validate.js.map +1 -1
  17. package/dist/flat-config.d.ts +12 -0
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/lib/components/Bootstrap.js +1 -2
  22. package/dist/lib/components/Bootstrap.js.map +1 -1
  23. package/dist/lib/components/MobileTopNavigation.js +2 -1
  24. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  25. package/dist/lib/components/Slot.test.js +1 -1
  26. package/dist/lib/components/Slot.test.js.map +1 -1
  27. package/dist/lib/components/TopNavigation.d.ts +7 -1
  28. package/dist/lib/components/TopNavigation.js +7 -2
  29. package/dist/lib/components/TopNavigation.js.map +1 -1
  30. package/dist/lib/components/Zudoku.d.ts +4 -1
  31. package/dist/lib/components/Zudoku.js +4 -7
  32. package/dist/lib/components/Zudoku.js.map +1 -1
  33. package/dist/lib/components/context/ZudokuContext.d.ts +9 -4
  34. package/dist/lib/components/context/ZudokuContext.js +4 -2
  35. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  36. package/dist/lib/components/context/ZudokuProvider.js +1 -1
  37. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  38. package/dist/lib/components/context/ZudokuReactContext.d.ts +11 -0
  39. package/dist/lib/components/context/ZudokuReactContext.js +4 -0
  40. package/dist/lib/components/context/ZudokuReactContext.js.map +1 -0
  41. package/dist/lib/components/navigation/Navigation.js +4 -3
  42. package/dist/lib/components/navigation/Navigation.js.map +1 -1
  43. package/dist/lib/components/navigation/NavigationCategory.js +8 -0
  44. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  45. package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
  46. package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
  47. package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
  48. package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
  49. package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
  50. package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
  51. package/dist/lib/components/navigation/NavigationItem.js +11 -1
  52. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  53. package/dist/lib/components/navigation/utils.d.ts +2 -1
  54. package/dist/lib/components/navigation/utils.js +22 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  57. package/dist/lib/core/ZudokuContext.js +3 -1
  58. package/dist/lib/core/ZudokuContext.js.map +1 -1
  59. package/dist/lib/core/__internal.d.ts +1 -0
  60. package/dist/lib/core/__internal.js +2 -0
  61. package/dist/lib/core/__internal.js.map +1 -1
  62. package/dist/lib/core/plugins.d.ts +5 -1
  63. package/dist/lib/core/plugins.js.map +1 -1
  64. package/dist/lib/core/transform-config.d.ts +4 -2
  65. package/dist/lib/core/transform-config.js +33 -13
  66. package/dist/lib/core/transform-config.js.map +1 -1
  67. package/dist/lib/core/transform-config.test.d.ts +1 -0
  68. package/dist/lib/core/transform-config.test.js +83 -0
  69. package/dist/lib/core/transform-config.test.js.map +1 -0
  70. package/dist/lib/errors/ErrorAlert.js +1 -2
  71. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  72. package/dist/lib/hooks/useEvent.test.js +1 -1
  73. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  74. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +1 -0
  75. package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
  76. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
  77. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
  78. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
  79. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
  80. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
  81. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  82. package/dist/lib/ui/Alert.d.ts +3 -2
  83. package/dist/lib/ui/Alert.js +9 -5
  84. package/dist/lib/ui/Alert.js.map +1 -1
  85. package/dist/lib/ui/InputGroup.d.ts +16 -0
  86. package/dist/lib/ui/InputGroup.js +65 -0
  87. package/dist/lib/ui/InputGroup.js.map +1 -0
  88. package/dist/lib/ui/Secret.js +2 -2
  89. package/dist/lib/ui/Secret.js.map +1 -1
  90. package/dist/vite/config.js +5 -2
  91. package/dist/vite/config.js.map +1 -1
  92. package/dist/vite/plugin-config.js +16 -4
  93. package/dist/vite/plugin-config.js.map +1 -1
  94. package/dist/vite/plugin-theme.js +2 -1
  95. package/dist/vite/plugin-theme.js.map +1 -1
  96. package/dist/vite/prerender/prerender.js +3 -1
  97. package/dist/vite/prerender/prerender.js.map +1 -1
  98. package/dist/vite/prerender/worker.js +3 -1
  99. package/dist/vite/prerender/worker.js.map +1 -1
  100. package/lib/{ClaudeLogo-C6q-Xn_l.js → ClaudeLogo-Br8C_vTq.js} +3 -3
  101. package/lib/{ClaudeLogo-C6q-Xn_l.js.map → ClaudeLogo-Br8C_vTq.js.map} +1 -1
  102. package/lib/{HydrationBoundary-CNF2ZV3E.js → HydrationBoundary-CJu4vUlG.js} +6 -6
  103. package/lib/{HydrationBoundary-CNF2ZV3E.js.map → HydrationBoundary-CJu4vUlG.js.map} +1 -1
  104. package/lib/{MdxPage-B1G4W1TK.js → MdxPage-C0QFAsgv.js} +6 -6
  105. package/lib/{MdxPage-B1G4W1TK.js.map → MdxPage-C0QFAsgv.js.map} +1 -1
  106. package/lib/Mermaid-Chx5BPHn.js +104 -0
  107. package/lib/Mermaid-Chx5BPHn.js.map +1 -0
  108. package/lib/{OAuthErrorPage-01Ke086W.js → OAuthErrorPage-CFz_gBFx.js} +11 -10
  109. package/lib/{OAuthErrorPage-01Ke086W.js.map → OAuthErrorPage-CFz_gBFx.js.map} +1 -1
  110. package/lib/{OasProvider-oHPiMJZg.js → OasProvider-BQ60YgAd.js} +3 -3
  111. package/lib/{OasProvider-oHPiMJZg.js.map → OasProvider-BQ60YgAd.js.map} +1 -1
  112. package/lib/{OperationList-CZ4OK8Pm.js → OperationList-D31urxqy.js} +40 -39
  113. package/lib/{OperationList-CZ4OK8Pm.js.map → OperationList-D31urxqy.js.map} +1 -1
  114. package/lib/{RouteGuard-B1lCR0C_.js → RouteGuard-CVs3yvEs.js} +3 -3
  115. package/lib/{RouteGuard-B1lCR0C_.js.map → RouteGuard-CVs3yvEs.js.map} +1 -1
  116. package/lib/{SchemaList-DoQFkJgM.js → SchemaList-CSVFH585.js} +7 -7
  117. package/lib/{SchemaList-DoQFkJgM.js.map → SchemaList-CSVFH585.js.map} +1 -1
  118. package/lib/{SchemaView-D2k6ZJck.js → SchemaView-D4marpgk.js} +3 -3
  119. package/lib/{SchemaView-D2k6ZJck.js.map → SchemaView-D4marpgk.js.map} +1 -1
  120. package/lib/{Secret-BDBqq4p3.js → Secret-DUpgv4V3.js} +92 -72
  121. package/lib/Secret-DUpgv4V3.js.map +1 -0
  122. package/lib/{SignUp-8kDBaLbO.js → SignUp-Dug1jAGC.js} +4 -4
  123. package/lib/{SignUp-8kDBaLbO.js.map → SignUp-Dug1jAGC.js.map} +1 -1
  124. package/lib/{SyntaxHighlight-hZOFnYl0.js → SyntaxHighlight-BMu0b_hF.js} +8 -8
  125. package/lib/{SyntaxHighlight-hZOFnYl0.js.map → SyntaxHighlight-BMu0b_hF.js.map} +1 -1
  126. package/lib/{Toc-qEIii_-W.js → Toc-BiJ2YL0O.js} +2 -2
  127. package/lib/{Toc-qEIii_-W.js.map → Toc-BiJ2YL0O.js.map} +1 -1
  128. package/lib/{Zudoku-DUsdmPME.js → Zudoku-iyiXgWFY.js} +2777 -2622
  129. package/lib/Zudoku-iyiXgWFY.js.map +1 -0
  130. package/lib/ZudokuContext-CYyb_PB_.js +175 -0
  131. package/lib/ZudokuContext-CYyb_PB_.js.map +1 -0
  132. package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
  133. package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
  134. package/lib/{circular-D9tSKG2c.js → circular-cPOX8BVJ.js} +2 -2
  135. package/lib/{circular-D9tSKG2c.js.map → circular-cPOX8BVJ.js.map} +1 -1
  136. package/lib/{createServer-BprC4n85.js → createServer-SJT25uZH.js} +4 -4
  137. package/lib/{createServer-BprC4n85.js.map → createServer-SJT25uZH.js.map} +1 -1
  138. package/lib/{errors-7hgPDs1h.js → errors-B77S9iOc.js} +2 -2
  139. package/lib/{errors-7hgPDs1h.js.map → errors-B77S9iOc.js.map} +1 -1
  140. package/lib/{firebase-Dwn-2ju-.js → firebase-C7XKRGLf.js} +25 -24
  141. package/lib/{firebase-Dwn-2ju-.js.map → firebase-C7XKRGLf.js.map} +1 -1
  142. package/lib/{hook-ZEd1Es7D.js → hook-Dz_n9SoE.js} +16 -15
  143. package/lib/{hook-ZEd1Es7D.js.map → hook-Dz_n9SoE.js.map} +1 -1
  144. package/lib/{index-Dxdhrp-I.js → index-BDp2MTiq.js} +2 -2
  145. package/lib/{index-Dxdhrp-I.js.map → index-BDp2MTiq.js.map} +1 -1
  146. package/lib/{index-CyIW9rHv.js → index-Bc2mE-53.js} +642 -606
  147. package/lib/index-Bc2mE-53.js.map +1 -0
  148. package/lib/{index.esm-DG4KaDKR.js → index.esm-Cth49JBv.js} +2 -2
  149. package/lib/index.esm-Cth49JBv.js.map +1 -0
  150. package/lib/{mutation-BISOc7OM.js → mutation-B7eFBLZY.js} +2 -2
  151. package/lib/{mutation-BISOc7OM.js.map → mutation-B7eFBLZY.js.map} +1 -1
  152. package/lib/ui/Alert.js +32 -20
  153. package/lib/ui/Alert.js.map +1 -1
  154. package/lib/ui/InputGroup.js +155 -0
  155. package/lib/ui/InputGroup.js.map +1 -0
  156. package/lib/ui/Secret.js +2 -2
  157. package/lib/ui/Secret.js.map +1 -1
  158. package/lib/ui/SyntaxHighlight.js +2 -2
  159. package/lib/{useMutation-CFMGlAMW.js → useMutation-CErliDZ9.js} +5 -5
  160. package/lib/{useMutation-CFMGlAMW.js.map → useMutation-CErliDZ9.js.map} +1 -1
  161. package/lib/{useSuspenseQuery-CSB_rVek.js → useQuery-ht7aWJ3S.js} +432 -446
  162. package/lib/useQuery-ht7aWJ3S.js.map +1 -0
  163. package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
  164. package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
  165. package/lib/zudoku.__internal.js +524 -500
  166. package/lib/zudoku.__internal.js.map +1 -1
  167. package/lib/zudoku.auth-auth0.js +6 -5
  168. package/lib/zudoku.auth-auth0.js.map +1 -1
  169. package/lib/zudoku.auth-azureb2c.js +14 -13
  170. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  171. package/lib/zudoku.auth-clerk.js +2 -2
  172. package/lib/zudoku.auth-firebase.js +4 -4
  173. package/lib/zudoku.auth-openid.js +7 -6
  174. package/lib/zudoku.auth-openid.js.map +1 -1
  175. package/lib/zudoku.auth-supabase.js +4 -4
  176. package/lib/zudoku.components.js +3 -3
  177. package/lib/zudoku.hooks.js +3 -3
  178. package/lib/zudoku.mermaid.js +3 -3
  179. package/lib/zudoku.plugin-api-catalog.js +28 -27
  180. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  181. package/lib/zudoku.plugin-api-keys.js +98 -96
  182. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  183. package/lib/zudoku.plugin-custom-pages.js +1 -1
  184. package/lib/zudoku.plugin-markdown.js +1 -1
  185. package/lib/zudoku.plugin-openapi.js +2 -2
  186. package/lib/zudoku.plugin-search-pagefind.js +19 -18
  187. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  188. package/lib/zudoku.plugins.js.map +1 -1
  189. package/lib/zudoku.react-query.js +26 -25
  190. package/lib/zudoku.react-query.js.map +1 -1
  191. package/package.json +10 -4
  192. package/src/app/defaultTheme.css +4 -0
  193. package/src/app/main.css +2 -0
  194. package/src/app/main.tsx +1 -1
  195. package/src/lib/components/Bootstrap.tsx +1 -4
  196. package/src/lib/components/MobileTopNavigation.tsx +13 -8
  197. package/src/lib/components/Slot.test.tsx +1 -1
  198. package/src/lib/components/TopNavigation.tsx +25 -7
  199. package/src/lib/components/Zudoku.tsx +18 -14
  200. package/src/lib/components/context/ZudokuContext.ts +3 -6
  201. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  202. package/src/lib/components/context/ZudokuReactContext.tsx +17 -0
  203. package/src/lib/components/navigation/Navigation.tsx +4 -3
  204. package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
  205. package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
  206. package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
  207. package/src/lib/components/navigation/NavigationItem.tsx +17 -1
  208. package/src/lib/components/navigation/utils.ts +32 -1
  209. package/src/lib/core/ZudokuContext.ts +7 -1
  210. package/src/lib/core/__internal.tsx +2 -0
  211. package/src/lib/core/plugins.ts +7 -3
  212. package/src/lib/core/transform-config.test.tsx +99 -0
  213. package/src/lib/core/transform-config.ts +57 -19
  214. package/src/lib/errors/ErrorAlert.tsx +1 -6
  215. package/src/lib/hooks/useEvent.test.tsx +1 -1
  216. package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
  217. package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
  218. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
  219. package/src/lib/ui/Alert.tsx +17 -5
  220. package/src/lib/ui/InputGroup.tsx +168 -0
  221. package/src/lib/ui/Secret.tsx +2 -2
  222. package/lib/Mermaid-B1xNo-pf.js +0 -103
  223. package/lib/Mermaid-B1xNo-pf.js.map +0 -1
  224. package/lib/Secret-BDBqq4p3.js.map +0 -1
  225. package/lib/Separator-BXt1LYnm.js +0 -27
  226. package/lib/Separator-BXt1LYnm.js.map +0 -1
  227. package/lib/Zudoku-DUsdmPME.js.map +0 -1
  228. package/lib/ZudokuContext-BBI06sOx.js +0 -387
  229. package/lib/ZudokuContext-BBI06sOx.js.map +0 -1
  230. package/lib/index-CyIW9rHv.js.map +0 -1
  231. package/lib/index.esm-DG4KaDKR.js.map +0 -1
  232. package/lib/useSuspenseQuery-CSB_rVek.js.map +0 -1
@@ -1,22 +1,24 @@
1
- import { a as Ae, H as De } from "./index.esm-Ca5zvoff.js";
1
+ import { a as De, H as Ce } from "./index.esm-Ca5zvoff.js";
2
2
  import { j as c } from "./jsx-runtime-BzflLqGi.js";
3
- import { b as xt, H as Zt } from "./HydrationBoundary-CNF2ZV3E.js";
4
- import { M as Ce, e as Ot } from "./useSuspenseQuery-CSB_rVek.js";
5
- import * as q from "react";
6
- import { StrictMode as Ue, useEffect as te, useRef as Fe, useState as St, Suspense as Pt } from "react";
7
- import { n as Tt, S as Et, a as Je, b3 as Nt, O as It, d as Rt, L as At, h as Dt, w as Ct } from "./chunk-EPOLDU6W-C6C8jAwd.js";
8
- import * as Ut from "react-dom";
9
- import { d as Ft, a as N, A as Jt, s as Lt, P as Mt, N as ge, f as Bt, g as qt, h as Vt, T as Le, H as Me, D as Wt, i as Be } from "./Zudoku-DUsdmPME.js";
10
- import { B as qe, R as Kt } from "./RouteGuard-B1lCR0C_.js";
11
- import { CircleFadingArrowUpIcon as Ht, LoaderCircleIcon as Gt, ExternalLink as Yt, PanelLeftIcon as Qt, UnlinkIcon as Xt } from "lucide-react";
12
- import { Button as en } from "./ui/Button.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
13
  import { c as S } from "./cn-5-Gd1Dss.js";
14
- import { a as V, e as tn, j as nn } from "./ZudokuContext-BBI06sOx.js";
14
+ import { a as q, d as on, j as sn } from "./ZudokuContext-CYyb_PB_.js";
15
15
  import "./index-DAWHN3cH.js";
16
- import { D as T, a as rn, b as on } from "./Drawer-Ch7927PF.js";
17
- import { VisuallyHidden as sn } from "@radix-ui/react-visually-hidden";
18
- import { S as an } from "./Spinner-CI6bRyZw.js";
19
- import { C as Ve } from "./CategoryHeading-DhmodDcq.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";
20
22
  /**
21
23
  * react-router v7.12.0
22
24
  *
@@ -27,25 +29,25 @@ import { C as Ve } from "./CategoryHeading-DhmodDcq.js";
27
29
  *
28
30
  * @license MIT
29
31
  */
30
- function cn(e) {
31
- return /* @__PURE__ */ q.createElement(Tt, { flushSync: Ut.flushSync, ...e });
32
+ function fn(e) {
33
+ return /* @__PURE__ */ V.createElement(It, { flushSync: Lt.flushSync, ...e });
32
34
  }
33
- const un = new xt({
35
+ const pn = new Ot({
34
36
  defaultOptions: {
35
37
  queries: {
36
38
  staleTime: 1e3 * 60 * 5
37
39
  }
38
40
  }
39
- }), ln = ({
41
+ }), hn = ({
40
42
  router: e,
41
43
  hydrate: t = !1
42
- }) => /* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(Ce, { client: un, children: /* @__PURE__ */ c.jsx(Zt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ c.jsx(qe, { value: !1, children: /* @__PURE__ */ c.jsx(Ae, { children: /* @__PURE__ */ c.jsx(Ft.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ c.jsx(cn, { router: e }) }) }) }) }) }) }), dn = ({
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 = ({
43
45
  router: e,
44
46
  context: t,
45
47
  queryClient: n,
46
48
  helmetContext: r,
47
49
  bypassProtection: o = !1
48
- }) => /* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(Ce, { client: n, children: /* @__PURE__ */ c.jsx(Ae, { context: r, children: /* @__PURE__ */ c.jsx(qe, { value: o, children: /* @__PURE__ */ c.jsx(Et, { router: e, context: t }) }) }) }) });
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 }) }) }) }) });
49
51
  function u(e, t, n) {
50
52
  function r(a, l) {
51
53
  if (a._zod || Object.defineProperty(a, "_zod", {
@@ -85,16 +87,16 @@ class F extends Error {
85
87
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
86
88
  }
87
89
  }
88
- class We extends Error {
90
+ class Ke extends Error {
89
91
  constructor(t) {
90
92
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
91
93
  }
92
94
  }
93
- const Ke = {};
94
- function A(e) {
95
- return Ke;
95
+ const He = {};
96
+ function R(e) {
97
+ return He;
96
98
  }
97
- function He(e) {
99
+ function Ge(e) {
98
100
  const t = Object.values(e).filter((r) => typeof r == "number");
99
101
  return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
100
102
  }
@@ -154,15 +156,15 @@ function I(...e) {
154
156
  function ve(e) {
155
157
  return JSON.stringify(e);
156
158
  }
157
- function fn(e) {
159
+ function gn(e) {
158
160
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
159
161
  }
160
- const Ge = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
162
+ const Ye = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
161
163
  };
162
164
  function Y(e) {
163
165
  return typeof e == "object" && e !== null && !Array.isArray(e);
164
166
  }
165
- const pn = ue(() => {
167
+ const _n = ue(() => {
166
168
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
167
169
  return !1;
168
170
  try {
@@ -181,14 +183,14 @@ function M(e) {
181
183
  const n = t.prototype;
182
184
  return !(Y(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
183
185
  }
184
- function Ye(e) {
186
+ function Qe(e) {
185
187
  return M(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
186
188
  }
187
- const hn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
189
+ const vn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
188
190
  function ne(e) {
189
191
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
190
192
  }
191
- function R(e, t, n) {
193
+ function A(e, t, n) {
192
194
  const r = new e._zod.constr(t ?? e._zod.def);
193
195
  return (!t || n?.parent) && (r._zod.parent = e), r;
194
196
  }
@@ -205,10 +207,10 @@ function p(e) {
205
207
  }
206
208
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
207
209
  }
208
- function mn(e) {
210
+ function yn(e) {
209
211
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
210
212
  }
211
- function gn(e, t) {
213
+ function wn(e, t) {
212
214
  const n = e._zod.def, r = n.checks;
213
215
  if (r && r.length > 0)
214
216
  throw new Error(".pick() cannot be used on object schemas containing refinements");
@@ -224,9 +226,9 @@ function gn(e, t) {
224
226
  },
225
227
  checks: []
226
228
  });
227
- return R(e, i);
229
+ return A(e, i);
228
230
  }
229
- function _n(e, t) {
231
+ function zn(e, t) {
230
232
  const n = e._zod.def, r = n.checks;
231
233
  if (r && r.length > 0)
232
234
  throw new Error(".omit() cannot be used on object schemas containing refinements");
@@ -242,9 +244,9 @@ function _n(e, t) {
242
244
  },
243
245
  checks: []
244
246
  });
245
- return R(e, i);
247
+ return A(e, i);
246
248
  }
247
- function vn(e, t) {
249
+ function bn(e, t) {
248
250
  if (!M(t))
249
251
  throw new Error("Invalid input to extend: expected a plain object");
250
252
  const n = e._zod.def.checks;
@@ -260,9 +262,9 @@ function vn(e, t) {
260
262
  return C(this, "shape", i), i;
261
263
  }
262
264
  });
263
- return R(e, o);
265
+ return A(e, o);
264
266
  }
265
- function yn(e, t) {
267
+ function kn(e, t) {
266
268
  if (!M(t))
267
269
  throw new Error("Invalid input to safeExtend: expected a plain object");
268
270
  const n = I(e._zod.def, {
@@ -271,9 +273,9 @@ function yn(e, t) {
271
273
  return C(this, "shape", r), r;
272
274
  }
273
275
  });
274
- return R(e, n);
276
+ return A(e, n);
275
277
  }
276
- function wn(e, t) {
278
+ function $n(e, t) {
277
279
  const n = I(e._zod.def, {
278
280
  get shape() {
279
281
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
@@ -285,9 +287,9 @@ function wn(e, t) {
285
287
  checks: []
286
288
  // delete existing checks
287
289
  });
288
- return R(e, n);
290
+ return A(e, n);
289
291
  }
290
- function zn(e, t, n) {
292
+ function jn(e, t, n) {
291
293
  const o = t._zod.def.checks;
292
294
  if (o && o.length > 0)
293
295
  throw new Error(".partial() cannot be used on object schemas containing refinements");
@@ -313,9 +315,9 @@ function zn(e, t, n) {
313
315
  },
314
316
  checks: []
315
317
  });
316
- return R(t, s);
318
+ return A(t, s);
317
319
  }
318
- function bn(e, t, n) {
320
+ function xn(e, t, n) {
319
321
  const r = I(t._zod.def, {
320
322
  get shape() {
321
323
  const o = t._zod.def.shape, i = { ...o };
@@ -337,7 +339,7 @@ function bn(e, t, n) {
337
339
  return C(this, "shape", i), i;
338
340
  }
339
341
  });
340
- return R(t, r);
342
+ return A(t, r);
341
343
  }
342
344
  function U(e, t = 0) {
343
345
  if (e.aborted === !0)
@@ -347,7 +349,7 @@ function U(e, t = 0) {
347
349
  return !0;
348
350
  return !1;
349
351
  }
350
- function Qe(e, t) {
352
+ function Xe(e, t) {
351
353
  return t.map((n) => {
352
354
  var r;
353
355
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -376,7 +378,7 @@ function B(...e) {
376
378
  inst: r
377
379
  } : { ...t };
378
380
  }
379
- const Xe = (e, t) => {
381
+ const et = (e, t) => {
380
382
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
381
383
  value: e._zod,
382
384
  enumerable: !1
@@ -387,14 +389,14 @@ const Xe = (e, t) => {
387
389
  value: () => e.message,
388
390
  enumerable: !1
389
391
  });
390
- }, et = u("$ZodError", Xe), tt = u("$ZodError", Xe, { Parent: Error });
391
- function kn(e, t = (n) => n.message) {
392
+ }, tt = u("$ZodError", et), nt = u("$ZodError", et, { Parent: Error });
393
+ function Zn(e, t = (n) => n.message) {
392
394
  const n = {}, r = [];
393
395
  for (const o of e.issues)
394
396
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
395
397
  return { formErrors: r, fieldErrors: n };
396
398
  }
397
- function $n(e, t = (n) => n.message) {
399
+ function On(e, t = (n) => n.message) {
398
400
  const n = { _errors: [] }, r = (o) => {
399
401
  for (const i of o.issues)
400
402
  if (i.code === "invalid_union" && i.errors.length)
@@ -420,16 +422,16 @@ const pe = (e) => (t, n, r, o) => {
420
422
  if (s instanceof Promise)
421
423
  throw new F();
422
424
  if (s.issues.length) {
423
- const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, A())));
424
- throw Ge(a, o?.callee), a;
425
+ const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, R())));
426
+ throw Ye(a, o?.callee), a;
425
427
  }
426
428
  return s.value;
427
429
  }, he = (e) => async (t, n, r, o) => {
428
430
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
429
431
  let s = t._zod.run({ value: n, issues: [] }, i);
430
432
  if (s instanceof Promise && (s = await s), s.issues.length) {
431
- const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, A())));
432
- throw Ge(a, o?.callee), a;
433
+ const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, R())));
434
+ throw Ye(a, o?.callee), a;
433
435
  }
434
436
  return s.value;
435
437
  }, re = (e) => (t, n, r) => {
@@ -438,52 +440,52 @@ const pe = (e) => (t, n, r, o) => {
438
440
  throw new F();
439
441
  return i.issues.length ? {
440
442
  success: !1,
441
- error: new (e ?? et)(i.issues.map((s) => D(s, o, A())))
443
+ error: new (e ?? tt)(i.issues.map((s) => D(s, o, R())))
442
444
  } : { success: !0, data: i.value };
443
- }, jn = /* @__PURE__ */ re(tt), oe = (e) => async (t, n, r) => {
445
+ }, Sn = /* @__PURE__ */ re(nt), oe = (e) => async (t, n, r) => {
444
446
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
445
447
  let i = t._zod.run({ value: n, issues: [] }, o);
446
448
  return i instanceof Promise && (i = await i), i.issues.length ? {
447
449
  success: !1,
448
- error: new e(i.issues.map((s) => D(s, o, A())))
450
+ error: new e(i.issues.map((s) => D(s, o, R())))
449
451
  } : { success: !0, data: i.value };
450
- }, xn = /* @__PURE__ */ oe(tt), Zn = (e) => (t, n, r) => {
452
+ }, Pn = /* @__PURE__ */ oe(nt), Tn = (e) => (t, n, r) => {
451
453
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
452
454
  return pe(e)(t, n, o);
453
- }, On = (e) => (t, n, r) => pe(e)(t, n, r), Sn = (e) => async (t, n, r) => {
455
+ }, En = (e) => (t, n, r) => pe(e)(t, n, r), Nn = (e) => async (t, n, r) => {
454
456
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
455
457
  return he(e)(t, n, o);
456
- }, Pn = (e) => async (t, n, r) => he(e)(t, n, r), Tn = (e) => (t, n, r) => {
458
+ }, In = (e) => async (t, n, r) => he(e)(t, n, r), An = (e) => (t, n, r) => {
457
459
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
458
460
  return re(e)(t, n, o);
459
- }, En = (e) => (t, n, r) => re(e)(t, n, r), Nn = (e) => async (t, n, r) => {
461
+ }, Rn = (e) => (t, n, r) => re(e)(t, n, r), Dn = (e) => async (t, n, r) => {
460
462
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
461
463
  return oe(e)(t, n, o);
462
- }, In = (e) => async (t, n, r) => oe(e)(t, n, r), Rn = /^[cC][^\s-]{8,}$/, An = /^[0-9a-z]+$/, Dn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Cn = /^[0-9a-vA-V]{20}$/, Un = /^[A-Za-z0-9]{27}$/, Fn = /^[a-zA-Z0-9_-]{21}$/, Jn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ln = /^([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)$/, Mn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Bn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
463
- function qn() {
464
- return new RegExp(Bn, "u");
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");
465
467
  }
466
- const Vn = /^(?:(?: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])$/, Wn = /^(([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}|:))$/, Kn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Hn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Gn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, nt = /^[A-Za-z0-9_-]*$/, Yn = /^\+[1-9]\d{6,14}$/, rt = "(?:(?:\\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])))", Qn = /* @__PURE__ */ new RegExp(`^${rt}$`);
467
- function ot(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) {
468
470
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
469
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+)?)?`;
470
472
  }
471
- function Xn(e) {
472
- return new RegExp(`^${ot(e)}$`);
473
+ function rr(e) {
474
+ return new RegExp(`^${st(e)}$`);
473
475
  }
474
- function er(e) {
475
- const t = ot({ precision: e.precision }), n = ["Z"];
476
+ function or(e) {
477
+ const t = st({ precision: e.precision }), n = ["Z"];
476
478
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
477
479
  const r = `${t}(?:${n.join("|")})`;
478
- return new RegExp(`^${rt}T(?:${r})$`);
480
+ return new RegExp(`^${ot}T(?:${r})$`);
479
481
  }
480
- const tr = (e) => {
482
+ const sr = (e) => {
481
483
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
482
484
  return new RegExp(`^${t}$`);
483
- }, nr = /^[^A-Z]*$/, rr = /^[^a-z]*$/, E = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
485
+ }, ir = /^[^A-Z]*$/, ar = /^[^a-z]*$/, E = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
484
486
  var n;
485
487
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
486
- }), or = /* @__PURE__ */ u("$ZodCheckMaxLength", (e, t) => {
488
+ }), cr = /* @__PURE__ */ u("$ZodCheckMaxLength", (e, t) => {
487
489
  var n;
488
490
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
489
491
  const o = r.value;
@@ -506,7 +508,7 @@ const tr = (e) => {
506
508
  continue: !t.abort
507
509
  });
508
510
  };
509
- }), sr = /* @__PURE__ */ u("$ZodCheckMinLength", (e, t) => {
511
+ }), ur = /* @__PURE__ */ u("$ZodCheckMinLength", (e, t) => {
510
512
  var n;
511
513
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
512
514
  const o = r.value;
@@ -529,7 +531,7 @@ const tr = (e) => {
529
531
  continue: !t.abort
530
532
  });
531
533
  };
532
- }), ir = /* @__PURE__ */ u("$ZodCheckLengthEquals", (e, t) => {
534
+ }), lr = /* @__PURE__ */ u("$ZodCheckLengthEquals", (e, t) => {
533
535
  var n;
534
536
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
535
537
  const o = r.value;
@@ -569,7 +571,7 @@ const tr = (e) => {
569
571
  });
570
572
  }) : (r = e._zod).check ?? (r.check = () => {
571
573
  });
572
- }), ar = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
574
+ }), dr = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
573
575
  se.init(e, t), e._zod.check = (n) => {
574
576
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
575
577
  origin: "string",
@@ -581,11 +583,11 @@ const tr = (e) => {
581
583
  continue: !t.abort
582
584
  });
583
585
  };
584
- }), cr = /* @__PURE__ */ u("$ZodCheckLowerCase", (e, t) => {
585
- t.pattern ?? (t.pattern = nr), se.init(e, t);
586
- }), ur = /* @__PURE__ */ u("$ZodCheckUpperCase", (e, t) => {
587
- t.pattern ?? (t.pattern = rr), se.init(e, t);
588
- }), lr = /* @__PURE__ */ u("$ZodCheckIncludes", (e, t) => {
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) => {
589
591
  E.init(e, t);
590
592
  const n = ne(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
591
593
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -602,7 +604,7 @@ const tr = (e) => {
602
604
  continue: !t.abort
603
605
  });
604
606
  };
605
- }), dr = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
607
+ }), mr = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
606
608
  E.init(e, t);
607
609
  const n = new RegExp(`^${ne(t.prefix)}.*`);
608
610
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -619,7 +621,7 @@ const tr = (e) => {
619
621
  continue: !t.abort
620
622
  });
621
623
  };
622
- }), fr = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
624
+ }), gr = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
623
625
  E.init(e, t);
624
626
  const n = new RegExp(`.*${ne(t.suffix)}$`);
625
627
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -636,12 +638,12 @@ const tr = (e) => {
636
638
  continue: !t.abort
637
639
  });
638
640
  };
639
- }), pr = /* @__PURE__ */ u("$ZodCheckOverwrite", (e, t) => {
641
+ }), _r = /* @__PURE__ */ u("$ZodCheckOverwrite", (e, t) => {
640
642
  E.init(e, t), e._zod.check = (n) => {
641
643
  n.value = t.tx(n.value);
642
644
  };
643
645
  });
644
- class hr {
646
+ class vr {
645
647
  constructor(t = []) {
646
648
  this.content = [], this.indent = 0, this && (this.args = t);
647
649
  }
@@ -664,13 +666,13 @@ class hr {
664
666
  `));
665
667
  }
666
668
  }
667
- const mr = {
669
+ const yr = {
668
670
  major: 4,
669
671
  minor: 3,
670
672
  patch: 6
671
673
  }, w = /* @__PURE__ */ u("$ZodType", (e, t) => {
672
674
  var n;
673
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = mr;
675
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = yr;
674
676
  const r = [...e._zod.def.checks ?? []];
675
677
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
676
678
  for (const o of r)
@@ -733,17 +735,17 @@ const mr = {
733
735
  _(e, "~standard", () => ({
734
736
  validate: (o) => {
735
737
  try {
736
- const i = jn(e, o);
738
+ const i = Sn(e, o);
737
739
  return i.success ? { value: i.data } : { issues: i.error?.issues };
738
740
  } catch {
739
- return xn(e, o).then((s) => s.success ? { value: s.data } : { issues: s.error?.issues });
741
+ return Pn(e, o).then((s) => s.success ? { value: s.data } : { issues: s.error?.issues });
740
742
  }
741
743
  },
742
744
  vendor: "zod",
743
745
  version: 1
744
746
  }));
745
747
  }), me = /* @__PURE__ */ u("$ZodString", (e, t) => {
746
- w.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tr(e._zod.bag), e._zod.parse = (n, r) => {
748
+ w.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? sr(e._zod.bag), e._zod.parse = (n, r) => {
747
749
  if (t.coerce)
748
750
  try {
749
751
  n.value = String(n.value);
@@ -758,9 +760,9 @@ const mr = {
758
760
  };
759
761
  }), v = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
760
762
  se.init(e, t), me.init(e, t);
761
- }), gr = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
762
- t.pattern ?? (t.pattern = Ln), v.init(e, t);
763
- }), _r = /* @__PURE__ */ u("$ZodUUID", (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) => {
764
766
  if (t.version) {
765
767
  const r = {
766
768
  v1: 1,
@@ -778,9 +780,9 @@ const mr = {
778
780
  } else
779
781
  t.pattern ?? (t.pattern = ye());
780
782
  v.init(e, t);
781
- }), vr = /* @__PURE__ */ u("$ZodEmail", (e, t) => {
782
- t.pattern ?? (t.pattern = Mn), v.init(e, t);
783
- }), yr = /* @__PURE__ */ u("$ZodURL", (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) => {
784
786
  v.init(e, t), e._zod.check = (n) => {
785
787
  try {
786
788
  const r = n.value.trim(), o = new URL(r);
@@ -812,32 +814,32 @@ const mr = {
812
814
  });
813
815
  }
814
816
  };
815
- }), wr = /* @__PURE__ */ u("$ZodEmoji", (e, t) => {
816
- t.pattern ?? (t.pattern = qn()), v.init(e, t);
817
- }), zr = /* @__PURE__ */ u("$ZodNanoID", (e, t) => {
818
- t.pattern ?? (t.pattern = Fn), v.init(e, t);
819
- }), br = /* @__PURE__ */ u("$ZodCUID", (e, t) => {
820
- t.pattern ?? (t.pattern = Rn), v.init(e, t);
821
- }), kr = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
822
- t.pattern ?? (t.pattern = An), v.init(e, t);
823
- }), $r = /* @__PURE__ */ u("$ZodULID", (e, t) => {
824
- t.pattern ?? (t.pattern = Dn), v.init(e, t);
825
- }), jr = /* @__PURE__ */ u("$ZodXID", (e, t) => {
826
- t.pattern ?? (t.pattern = Cn), v.init(e, t);
827
- }), xr = /* @__PURE__ */ u("$ZodKSUID", (e, t) => {
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) => {
828
822
  t.pattern ?? (t.pattern = Un), v.init(e, t);
829
- }), Zr = /* @__PURE__ */ u("$ZodISODateTime", (e, t) => {
830
- t.pattern ?? (t.pattern = er(t)), v.init(e, t);
831
- }), Or = /* @__PURE__ */ u("$ZodISODate", (e, t) => {
832
- t.pattern ?? (t.pattern = Qn), v.init(e, t);
833
- }), Sr = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
834
- t.pattern ?? (t.pattern = Xn(t)), v.init(e, t);
835
- }), Pr = /* @__PURE__ */ u("$ZodISODuration", (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) => {
836
826
  t.pattern ?? (t.pattern = Jn), v.init(e, t);
837
- }), Tr = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
838
- t.pattern ?? (t.pattern = Vn), v.init(e, t), e._zod.bag.format = "ipv4";
839
- }), Er = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
840
- t.pattern ?? (t.pattern = Wn), v.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
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) => {
841
843
  try {
842
844
  new URL(`http://[${n.value}]`);
843
845
  } catch {
@@ -850,10 +852,10 @@ const mr = {
850
852
  });
851
853
  }
852
854
  };
853
- }), Nr = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
854
- t.pattern ?? (t.pattern = Kn), v.init(e, t);
855
- }), Ir = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
856
- t.pattern ?? (t.pattern = Hn), v.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) => {
857
859
  const r = n.value.split("/");
858
860
  try {
859
861
  if (r.length !== 2)
@@ -878,7 +880,7 @@ const mr = {
878
880
  }
879
881
  };
880
882
  });
881
- function st(e) {
883
+ function it(e) {
882
884
  if (e === "")
883
885
  return !0;
884
886
  if (e.length % 4 !== 0)
@@ -889,9 +891,9 @@ function st(e) {
889
891
  return !1;
890
892
  }
891
893
  }
892
- const Rr = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
893
- t.pattern ?? (t.pattern = Gn), v.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
894
- st(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({
895
897
  code: "invalid_format",
896
898
  format: "base64",
897
899
  input: n.value,
@@ -900,15 +902,15 @@ const Rr = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
900
902
  });
901
903
  };
902
904
  });
903
- function Ar(e) {
904
- if (!nt.test(e))
905
+ function Fr(e) {
906
+ if (!rt.test(e))
905
907
  return !1;
906
908
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
907
- return st(n);
909
+ return it(n);
908
910
  }
909
- const Dr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
910
- t.pattern ?? (t.pattern = nt), v.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
911
- Ar(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({
912
914
  code: "invalid_format",
913
915
  format: "base64url",
914
916
  input: n.value,
@@ -916,10 +918,10 @@ const Dr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
916
918
  continue: !t.abort
917
919
  });
918
920
  };
919
- }), Cr = /* @__PURE__ */ u("$ZodE164", (e, t) => {
920
- t.pattern ?? (t.pattern = Yn), v.init(e, t);
921
+ }), Lr = /* @__PURE__ */ u("$ZodE164", (e, t) => {
922
+ t.pattern ?? (t.pattern = tr), v.init(e, t);
921
923
  });
922
- function Ur(e, t = null) {
924
+ function Mr(e, t = null) {
923
925
  try {
924
926
  const n = e.split(".");
925
927
  if (n.length !== 3)
@@ -933,9 +935,9 @@ function Ur(e, t = null) {
933
935
  return !1;
934
936
  }
935
937
  }
936
- const Fr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
938
+ const Br = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
937
939
  v.init(e, t), e._zod.check = (n) => {
938
- Ur(n.value, t.alg) || n.issues.push({
940
+ Mr(n.value, t.alg) || n.issues.push({
939
941
  code: "invalid_format",
940
942
  format: "jwt",
941
943
  input: n.value,
@@ -943,9 +945,9 @@ const Fr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
943
945
  continue: !t.abort
944
946
  });
945
947
  };
946
- }), Jr = /* @__PURE__ */ u("$ZodUnknown", (e, t) => {
948
+ }), Vr = /* @__PURE__ */ u("$ZodUnknown", (e, t) => {
947
949
  w.init(e, t), e._zod.parse = (n) => n;
948
- }), Lr = /* @__PURE__ */ u("$ZodNever", (e, t) => {
950
+ }), qr = /* @__PURE__ */ u("$ZodNever", (e, t) => {
949
951
  w.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
950
952
  expected: "never",
951
953
  code: "invalid_type",
@@ -954,9 +956,9 @@ const Fr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
954
956
  }), n);
955
957
  });
956
958
  function we(e, t, n) {
957
- e.issues.length && t.issues.push(...Qe(n, e.issues)), t.value[n] = e.value;
959
+ e.issues.length && t.issues.push(...Xe(n, e.issues)), t.value[n] = e.value;
958
960
  }
959
- const Mr = /* @__PURE__ */ u("$ZodArray", (e, t) => {
961
+ const Wr = /* @__PURE__ */ u("$ZodArray", (e, t) => {
960
962
  w.init(e, t), e._zod.parse = (n, r) => {
961
963
  const o = n.value;
962
964
  if (!Array.isArray(o))
@@ -982,16 +984,16 @@ function Q(e, t, n, r, o) {
982
984
  if (e.issues.length) {
983
985
  if (o && !(n in r))
984
986
  return;
985
- t.issues.push(...Qe(n, e.issues));
987
+ t.issues.push(...Xe(n, e.issues));
986
988
  }
987
989
  e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
988
990
  }
989
- function it(e) {
991
+ function at(e) {
990
992
  const t = Object.keys(e.shape);
991
993
  for (const r of t)
992
994
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
993
995
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
994
- const n = mn(e.shape);
996
+ const n = yn(e.shape);
995
997
  return {
996
998
  ...e,
997
999
  keys: t,
@@ -1000,7 +1002,7 @@ function it(e) {
1000
1002
  optionalKeys: new Set(n)
1001
1003
  };
1002
1004
  }
1003
- function at(e, t, n, r, o, i) {
1005
+ function ct(e, t, n, r, o, i) {
1004
1006
  const s = [], a = o.keySet, l = o.catchall._zod, d = l.def.type, f = l.optout === "optional";
1005
1007
  for (const g in t) {
1006
1008
  if (a.has(g))
@@ -1019,7 +1021,7 @@ function at(e, t, n, r, o, i) {
1019
1021
  inst: i
1020
1022
  }), e.length ? Promise.all(e).then(() => n) : n;
1021
1023
  }
1022
- const Br = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1024
+ const Kr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1023
1025
  if (w.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1024
1026
  const a = t.shape;
1025
1027
  Object.defineProperty(t, "shape", {
@@ -1031,7 +1033,7 @@ const Br = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1031
1033
  }
1032
1034
  });
1033
1035
  }
1034
- const r = ue(() => it(t));
1036
+ const r = ue(() => at(t));
1035
1037
  _(e._zod, "propValues", () => {
1036
1038
  const a = t.shape, l = {};
1037
1039
  for (const d in a) {
@@ -1062,24 +1064,24 @@ const Br = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1062
1064
  const m = g[h], $ = m._zod.optout === "optional", b = m._zod.run({ value: d[h], issues: [] }, l);
1063
1065
  b instanceof Promise ? f.push(b.then((W) => Q(W, a, h, d, $))) : Q(b, a, h, d, $);
1064
1066
  }
1065
- return i ? at(f, d, a, l, r.value, e) : f.length ? Promise.all(f).then(() => a) : a;
1067
+ return i ? ct(f, d, a, l, r.value, e) : f.length ? Promise.all(f).then(() => a) : a;
1066
1068
  };
1067
- }), qr = /* @__PURE__ */ u("$ZodObjectJIT", (e, t) => {
1068
- Br.init(e, t);
1069
- const n = e._zod.parse, r = ue(() => it(t)), o = (h) => {
1070
- const m = new hr(["shape", "payload", "ctx"]), $ = r.value, b = (P) => {
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) => {
1071
1073
  const x = ve(P);
1072
1074
  return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1073
1075
  };
1074
1076
  m.write("const input = payload.value;");
1075
1077
  const W = /* @__PURE__ */ Object.create(null);
1076
- let kt = 0;
1078
+ let jt = 0;
1077
1079
  for (const P of $.keys)
1078
- W[P] = `key_${kt++}`;
1080
+ W[P] = `key_${jt++}`;
1079
1081
  m.write("const newResult = {};");
1080
1082
  for (const P of $.keys) {
1081
- const x = W[P], O = ve(P), jt = h[P]?._zod?.optout === "optional";
1082
- m.write(`const ${x} = ${b(P)};`), jt ? m.write(`
1083
+ const x = W[P], O = ve(P), Zt = h[P]?._zod?.optout === "optional";
1084
+ m.write(`const ${x} = ${b(P)};`), Zt ? m.write(`
1083
1085
  if (${x}.issues.length) {
1084
1086
  if (${O} in input) {
1085
1087
  payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
@@ -1116,16 +1118,16 @@ const Br = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1116
1118
  `);
1117
1119
  }
1118
1120
  m.write("payload.value = newResult;"), m.write("return payload;");
1119
- const $t = m.compile();
1120
- return (P, x) => $t(h, P, x);
1121
+ const xt = m.compile();
1122
+ return (P, x) => xt(h, P, x);
1121
1123
  };
1122
1124
  let i;
1123
- const s = Y, a = !Ke.jitless, d = a && pn.value, f = t.catchall;
1125
+ const s = Y, a = !He.jitless, d = a && _n.value, f = t.catchall;
1124
1126
  let g;
1125
1127
  e._zod.parse = (h, m) => {
1126
1128
  g ?? (g = r.value);
1127
1129
  const $ = h.value;
1128
- return s($) ? a && d && m?.async === !1 && m.jitless !== !0 ? (i || (i = o(t.shape)), h = i(h, m), f ? at([], $, h, m, g, e) : h) : n(h, m) : (h.issues.push({
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({
1129
1131
  expected: "object",
1130
1132
  code: "invalid_type",
1131
1133
  input: $,
@@ -1142,10 +1144,10 @@ function ze(e, t, n, r) {
1142
1144
  code: "invalid_union",
1143
1145
  input: t.value,
1144
1146
  inst: n,
1145
- errors: e.map((i) => i.issues.map((s) => D(s, r, A())))
1147
+ errors: e.map((i) => i.issues.map((s) => D(s, r, R())))
1146
1148
  }), t);
1147
1149
  }
1148
- const Vr = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1150
+ const Gr = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1149
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", () => {
1150
1152
  if (t.options.every((o) => o._zod.values))
1151
1153
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -1176,7 +1178,7 @@ const Vr = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1176
1178
  }
1177
1179
  return s ? Promise.all(a).then((l) => ze(l, o, e, i)) : ze(a, o, e, i);
1178
1180
  };
1179
- }), Wr = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1181
+ }), Yr = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1180
1182
  w.init(e, t), e._zod.parse = (n, r) => {
1181
1183
  const o = n.value, i = t.left._zod.run({ value: o, issues: [] }, r), s = t.right._zod.run({ value: o, issues: [] }, r);
1182
1184
  return i instanceof Promise || s instanceof Promise ? Promise.all([i, s]).then(([l, d]) => be(n, l, d)) : be(n, i, s);
@@ -1241,10 +1243,10 @@ function be(e, t, n) {
1241
1243
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);
1242
1244
  return e.value = s.data, e;
1243
1245
  }
1244
- const Kr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1246
+ const Qr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1245
1247
  w.init(e, t);
1246
- const n = He(t.entries), r = new Set(n);
1247
- e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => hn.has(typeof o)).map((o) => typeof o == "string" ? ne(o) : o.toString()).join("|")})$`), e._zod.parse = (o, i) => {
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) => {
1248
1250
  const s = o.value;
1249
1251
  return r.has(s) || o.issues.push({
1250
1252
  code: "invalid_value",
@@ -1253,10 +1255,10 @@ const Kr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1253
1255
  inst: e
1254
1256
  }), o;
1255
1257
  };
1256
- }), Hr = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1258
+ }), Xr = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1257
1259
  w.init(e, t), e._zod.parse = (n, r) => {
1258
1260
  if (r.direction === "backward")
1259
- throw new We(e.constructor.name);
1261
+ throw new Ke(e.constructor.name);
1260
1262
  const o = t.transform(n.value, n);
1261
1263
  if (r.async)
1262
1264
  return (o instanceof Promise ? o : Promise.resolve(o)).then((s) => (n.value = s, n));
@@ -1268,7 +1270,7 @@ const Kr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1268
1270
  function ke(e, t) {
1269
1271
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1270
1272
  }
1271
- const ct = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1273
+ const ut = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1272
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", () => {
1273
1275
  const n = t.innerType._zod.pattern;
1274
1276
  return n ? new RegExp(`^(${de(n.source)})?$`) : void 0;
@@ -1279,14 +1281,14 @@ const ct = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1279
1281
  }
1280
1282
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1281
1283
  };
1282
- }), Gr = /* @__PURE__ */ u("$ZodExactOptional", (e, t) => {
1283
- ct.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);
1284
- }), Yr = /* @__PURE__ */ u("$ZodNullable", (e, t) => {
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) => {
1285
1287
  w.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1286
1288
  const n = t.innerType._zod.pattern;
1287
1289
  return n ? new RegExp(`^(${de(n.source)}|null)$`) : void 0;
1288
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);
1289
- }), Qr = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
1291
+ }), no = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
1290
1292
  w.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1291
1293
  if (r.direction === "backward")
1292
1294
  return t.innerType._zod.run(n, r);
@@ -1299,9 +1301,9 @@ const ct = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1299
1301
  function $e(e, t) {
1300
1302
  return e.value === void 0 && (e.value = t.defaultValue), e;
1301
1303
  }
1302
- const Xr = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
1304
+ const ro = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
1303
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));
1304
- }), eo = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
1306
+ }), oo = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
1305
1307
  w.init(e, t), _(e._zod, "values", () => {
1306
1308
  const n = t.innerType._zod.values;
1307
1309
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
@@ -1318,7 +1320,7 @@ function je(e, t) {
1318
1320
  inst: t
1319
1321
  }), e;
1320
1322
  }
1321
- const to = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1323
+ const so = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1322
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) => {
1323
1325
  if (r.direction === "backward")
1324
1326
  return t.innerType._zod.run(n, r);
@@ -1326,18 +1328,18 @@ const to = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1326
1328
  return o instanceof Promise ? o.then((i) => (n.value = i.value, i.issues.length && (n.value = t.catchValue({
1327
1329
  ...n,
1328
1330
  error: {
1329
- issues: i.issues.map((s) => D(s, r, A()))
1331
+ issues: i.issues.map((s) => D(s, r, R()))
1330
1332
  },
1331
1333
  input: n.value
1332
1334
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1333
1335
  ...n,
1334
1336
  error: {
1335
- issues: o.issues.map((i) => D(i, r, A()))
1337
+ issues: o.issues.map((i) => D(i, r, R()))
1336
1338
  },
1337
1339
  input: n.value
1338
1340
  }), n.issues = []), n);
1339
1341
  };
1340
- }), no = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
1342
+ }), io = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
1341
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) => {
1342
1344
  if (r.direction === "backward") {
1343
1345
  const i = t.out._zod.run(n, r);
@@ -1350,7 +1352,7 @@ const to = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1350
1352
  function H(e, t, n) {
1351
1353
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1352
1354
  }
1353
- const ro = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1355
+ const ao = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1354
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) => {
1355
1357
  if (r.direction === "backward")
1356
1358
  return t.innerType._zod.run(n, r);
@@ -1361,7 +1363,7 @@ const ro = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1361
1363
  function xe(e) {
1362
1364
  return e.value = Object.freeze(e.value), e;
1363
1365
  }
1364
- const oo = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
1366
+ const co = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
1365
1367
  E.init(e, t), w.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1366
1368
  const r = n.value, o = t.fn(r);
1367
1369
  if (o instanceof Promise)
@@ -1385,7 +1387,7 @@ function Ze(e, t, n, r) {
1385
1387
  }
1386
1388
  }
1387
1389
  var Oe;
1388
- class so {
1390
+ class uo {
1389
1391
  constructor() {
1390
1392
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1391
1393
  }
@@ -1414,20 +1416,20 @@ class so {
1414
1416
  return this._map.has(t);
1415
1417
  }
1416
1418
  }
1417
- function io() {
1418
- return new so();
1419
+ function lo() {
1420
+ return new uo();
1419
1421
  }
1420
- (Oe = globalThis).__zod_globalRegistry ?? (Oe.__zod_globalRegistry = io());
1422
+ (Oe = globalThis).__zod_globalRegistry ?? (Oe.__zod_globalRegistry = lo());
1421
1423
  const L = globalThis.__zod_globalRegistry;
1422
1424
  // @__NO_SIDE_EFFECTS__
1423
- function ao(e, t) {
1425
+ function fo(e, t) {
1424
1426
  return new e({
1425
1427
  type: "string",
1426
1428
  ...p(t)
1427
1429
  });
1428
1430
  }
1429
1431
  // @__NO_SIDE_EFFECTS__
1430
- function co(e, t) {
1432
+ function po(e, t) {
1431
1433
  return new e({
1432
1434
  type: "string",
1433
1435
  format: "email",
@@ -1447,7 +1449,7 @@ function Se(e, t) {
1447
1449
  });
1448
1450
  }
1449
1451
  // @__NO_SIDE_EFFECTS__
1450
- function uo(e, t) {
1452
+ function ho(e, t) {
1451
1453
  return new e({
1452
1454
  type: "string",
1453
1455
  format: "uuid",
@@ -1457,7 +1459,7 @@ function uo(e, t) {
1457
1459
  });
1458
1460
  }
1459
1461
  // @__NO_SIDE_EFFECTS__
1460
- function lo(e, t) {
1462
+ function mo(e, t) {
1461
1463
  return new e({
1462
1464
  type: "string",
1463
1465
  format: "uuid",
@@ -1468,7 +1470,7 @@ function lo(e, t) {
1468
1470
  });
1469
1471
  }
1470
1472
  // @__NO_SIDE_EFFECTS__
1471
- function fo(e, t) {
1473
+ function go(e, t) {
1472
1474
  return new e({
1473
1475
  type: "string",
1474
1476
  format: "uuid",
@@ -1479,7 +1481,7 @@ function fo(e, t) {
1479
1481
  });
1480
1482
  }
1481
1483
  // @__NO_SIDE_EFFECTS__
1482
- function po(e, t) {
1484
+ function _o(e, t) {
1483
1485
  return new e({
1484
1486
  type: "string",
1485
1487
  format: "uuid",
@@ -1490,7 +1492,7 @@ function po(e, t) {
1490
1492
  });
1491
1493
  }
1492
1494
  // @__NO_SIDE_EFFECTS__
1493
- function ho(e, t) {
1495
+ function vo(e, t) {
1494
1496
  return new e({
1495
1497
  type: "string",
1496
1498
  format: "url",
@@ -1500,7 +1502,7 @@ function ho(e, t) {
1500
1502
  });
1501
1503
  }
1502
1504
  // @__NO_SIDE_EFFECTS__
1503
- function mo(e, t) {
1505
+ function yo(e, t) {
1504
1506
  return new e({
1505
1507
  type: "string",
1506
1508
  format: "emoji",
@@ -1510,7 +1512,7 @@ function mo(e, t) {
1510
1512
  });
1511
1513
  }
1512
1514
  // @__NO_SIDE_EFFECTS__
1513
- function go(e, t) {
1515
+ function wo(e, t) {
1514
1516
  return new e({
1515
1517
  type: "string",
1516
1518
  format: "nanoid",
@@ -1520,7 +1522,7 @@ function go(e, t) {
1520
1522
  });
1521
1523
  }
1522
1524
  // @__NO_SIDE_EFFECTS__
1523
- function _o(e, t) {
1525
+ function zo(e, t) {
1524
1526
  return new e({
1525
1527
  type: "string",
1526
1528
  format: "cuid",
@@ -1530,7 +1532,7 @@ function _o(e, t) {
1530
1532
  });
1531
1533
  }
1532
1534
  // @__NO_SIDE_EFFECTS__
1533
- function vo(e, t) {
1535
+ function bo(e, t) {
1534
1536
  return new e({
1535
1537
  type: "string",
1536
1538
  format: "cuid2",
@@ -1540,7 +1542,7 @@ function vo(e, t) {
1540
1542
  });
1541
1543
  }
1542
1544
  // @__NO_SIDE_EFFECTS__
1543
- function yo(e, t) {
1545
+ function ko(e, t) {
1544
1546
  return new e({
1545
1547
  type: "string",
1546
1548
  format: "ulid",
@@ -1550,7 +1552,7 @@ function yo(e, t) {
1550
1552
  });
1551
1553
  }
1552
1554
  // @__NO_SIDE_EFFECTS__
1553
- function wo(e, t) {
1555
+ function $o(e, t) {
1554
1556
  return new e({
1555
1557
  type: "string",
1556
1558
  format: "xid",
@@ -1560,7 +1562,7 @@ function wo(e, t) {
1560
1562
  });
1561
1563
  }
1562
1564
  // @__NO_SIDE_EFFECTS__
1563
- function zo(e, t) {
1565
+ function jo(e, t) {
1564
1566
  return new e({
1565
1567
  type: "string",
1566
1568
  format: "ksuid",
@@ -1570,7 +1572,7 @@ function zo(e, t) {
1570
1572
  });
1571
1573
  }
1572
1574
  // @__NO_SIDE_EFFECTS__
1573
- function bo(e, t) {
1575
+ function xo(e, t) {
1574
1576
  return new e({
1575
1577
  type: "string",
1576
1578
  format: "ipv4",
@@ -1580,7 +1582,7 @@ function bo(e, t) {
1580
1582
  });
1581
1583
  }
1582
1584
  // @__NO_SIDE_EFFECTS__
1583
- function ko(e, t) {
1585
+ function Zo(e, t) {
1584
1586
  return new e({
1585
1587
  type: "string",
1586
1588
  format: "ipv6",
@@ -1590,7 +1592,7 @@ function ko(e, t) {
1590
1592
  });
1591
1593
  }
1592
1594
  // @__NO_SIDE_EFFECTS__
1593
- function $o(e, t) {
1595
+ function Oo(e, t) {
1594
1596
  return new e({
1595
1597
  type: "string",
1596
1598
  format: "cidrv4",
@@ -1600,7 +1602,7 @@ function $o(e, t) {
1600
1602
  });
1601
1603
  }
1602
1604
  // @__NO_SIDE_EFFECTS__
1603
- function jo(e, t) {
1605
+ function So(e, t) {
1604
1606
  return new e({
1605
1607
  type: "string",
1606
1608
  format: "cidrv6",
@@ -1610,7 +1612,7 @@ function jo(e, t) {
1610
1612
  });
1611
1613
  }
1612
1614
  // @__NO_SIDE_EFFECTS__
1613
- function xo(e, t) {
1615
+ function Po(e, t) {
1614
1616
  return new e({
1615
1617
  type: "string",
1616
1618
  format: "base64",
@@ -1620,7 +1622,7 @@ function xo(e, t) {
1620
1622
  });
1621
1623
  }
1622
1624
  // @__NO_SIDE_EFFECTS__
1623
- function Zo(e, t) {
1625
+ function To(e, t) {
1624
1626
  return new e({
1625
1627
  type: "string",
1626
1628
  format: "base64url",
@@ -1630,7 +1632,7 @@ function Zo(e, t) {
1630
1632
  });
1631
1633
  }
1632
1634
  // @__NO_SIDE_EFFECTS__
1633
- function Oo(e, t) {
1635
+ function Eo(e, t) {
1634
1636
  return new e({
1635
1637
  type: "string",
1636
1638
  format: "e164",
@@ -1640,7 +1642,7 @@ function Oo(e, t) {
1640
1642
  });
1641
1643
  }
1642
1644
  // @__NO_SIDE_EFFECTS__
1643
- function So(e, t) {
1645
+ function No(e, t) {
1644
1646
  return new e({
1645
1647
  type: "string",
1646
1648
  format: "jwt",
@@ -1650,7 +1652,7 @@ function So(e, t) {
1650
1652
  });
1651
1653
  }
1652
1654
  // @__NO_SIDE_EFFECTS__
1653
- function Po(e, t) {
1655
+ function Io(e, t) {
1654
1656
  return new e({
1655
1657
  type: "string",
1656
1658
  format: "datetime",
@@ -1662,7 +1664,7 @@ function Po(e, t) {
1662
1664
  });
1663
1665
  }
1664
1666
  // @__NO_SIDE_EFFECTS__
1665
- function To(e, t) {
1667
+ function Ao(e, t) {
1666
1668
  return new e({
1667
1669
  type: "string",
1668
1670
  format: "date",
@@ -1671,7 +1673,7 @@ function To(e, t) {
1671
1673
  });
1672
1674
  }
1673
1675
  // @__NO_SIDE_EFFECTS__
1674
- function Eo(e, t) {
1676
+ function Ro(e, t) {
1675
1677
  return new e({
1676
1678
  type: "string",
1677
1679
  format: "time",
@@ -1681,7 +1683,7 @@ function Eo(e, t) {
1681
1683
  });
1682
1684
  }
1683
1685
  // @__NO_SIDE_EFFECTS__
1684
- function No(e, t) {
1686
+ function Do(e, t) {
1685
1687
  return new e({
1686
1688
  type: "string",
1687
1689
  format: "duration",
@@ -1690,21 +1692,21 @@ function No(e, t) {
1690
1692
  });
1691
1693
  }
1692
1694
  // @__NO_SIDE_EFFECTS__
1693
- function Io(e) {
1695
+ function Co(e) {
1694
1696
  return new e({
1695
1697
  type: "unknown"
1696
1698
  });
1697
1699
  }
1698
1700
  // @__NO_SIDE_EFFECTS__
1699
- function Ro(e, t) {
1701
+ function Uo(e, t) {
1700
1702
  return new e({
1701
1703
  type: "never",
1702
1704
  ...p(t)
1703
1705
  });
1704
1706
  }
1705
1707
  // @__NO_SIDE_EFFECTS__
1706
- function ut(e, t) {
1707
- return new or({
1708
+ function lt(e, t) {
1709
+ return new cr({
1708
1710
  check: "max_length",
1709
1711
  ...p(t),
1710
1712
  maximum: e
@@ -1712,23 +1714,23 @@ function ut(e, t) {
1712
1714
  }
1713
1715
  // @__NO_SIDE_EFFECTS__
1714
1716
  function X(e, t) {
1715
- return new sr({
1717
+ return new ur({
1716
1718
  check: "min_length",
1717
1719
  ...p(t),
1718
1720
  minimum: e
1719
1721
  });
1720
1722
  }
1721
1723
  // @__NO_SIDE_EFFECTS__
1722
- function lt(e, t) {
1723
- return new ir({
1724
+ function dt(e, t) {
1725
+ return new lr({
1724
1726
  check: "length_equals",
1725
1727
  ...p(t),
1726
1728
  length: e
1727
1729
  });
1728
1730
  }
1729
1731
  // @__NO_SIDE_EFFECTS__
1730
- function Ao(e, t) {
1731
- return new ar({
1732
+ function Fo(e, t) {
1733
+ return new dr({
1732
1734
  check: "string_format",
1733
1735
  format: "regex",
1734
1736
  ...p(t),
@@ -1736,24 +1738,24 @@ function Ao(e, t) {
1736
1738
  });
1737
1739
  }
1738
1740
  // @__NO_SIDE_EFFECTS__
1739
- function Do(e) {
1740
- return new cr({
1741
+ function Jo(e) {
1742
+ return new fr({
1741
1743
  check: "string_format",
1742
1744
  format: "lowercase",
1743
1745
  ...p(e)
1744
1746
  });
1745
1747
  }
1746
1748
  // @__NO_SIDE_EFFECTS__
1747
- function Co(e) {
1748
- return new ur({
1749
+ function Lo(e) {
1750
+ return new pr({
1749
1751
  check: "string_format",
1750
1752
  format: "uppercase",
1751
1753
  ...p(e)
1752
1754
  });
1753
1755
  }
1754
1756
  // @__NO_SIDE_EFFECTS__
1755
- function Uo(e, t) {
1756
- return new lr({
1757
+ function Mo(e, t) {
1758
+ return new hr({
1757
1759
  check: "string_format",
1758
1760
  format: "includes",
1759
1761
  ...p(t),
@@ -1761,8 +1763,8 @@ function Uo(e, t) {
1761
1763
  });
1762
1764
  }
1763
1765
  // @__NO_SIDE_EFFECTS__
1764
- function Fo(e, t) {
1765
- return new dr({
1766
+ function Bo(e, t) {
1767
+ return new mr({
1766
1768
  check: "string_format",
1767
1769
  format: "starts_with",
1768
1770
  ...p(t),
@@ -1770,8 +1772,8 @@ function Fo(e, t) {
1770
1772
  });
1771
1773
  }
1772
1774
  // @__NO_SIDE_EFFECTS__
1773
- function Jo(e, t) {
1774
- return new fr({
1775
+ function Vo(e, t) {
1776
+ return new gr({
1775
1777
  check: "string_format",
1776
1778
  format: "ends_with",
1777
1779
  ...p(t),
@@ -1780,33 +1782,33 @@ function Jo(e, t) {
1780
1782
  }
1781
1783
  // @__NO_SIDE_EFFECTS__
1782
1784
  function J(e) {
1783
- return new pr({
1785
+ return new _r({
1784
1786
  check: "overwrite",
1785
1787
  tx: e
1786
1788
  });
1787
1789
  }
1788
1790
  // @__NO_SIDE_EFFECTS__
1789
- function Lo(e) {
1791
+ function qo(e) {
1790
1792
  return /* @__PURE__ */ J((t) => t.normalize(e));
1791
1793
  }
1792
1794
  // @__NO_SIDE_EFFECTS__
1793
- function Mo() {
1795
+ function Wo() {
1794
1796
  return /* @__PURE__ */ J((e) => e.trim());
1795
1797
  }
1796
1798
  // @__NO_SIDE_EFFECTS__
1797
- function Bo() {
1799
+ function Ko() {
1798
1800
  return /* @__PURE__ */ J((e) => e.toLowerCase());
1799
1801
  }
1800
1802
  // @__NO_SIDE_EFFECTS__
1801
- function qo() {
1803
+ function Ho() {
1802
1804
  return /* @__PURE__ */ J((e) => e.toUpperCase());
1803
1805
  }
1804
1806
  // @__NO_SIDE_EFFECTS__
1805
- function Vo() {
1806
- return /* @__PURE__ */ J((e) => fn(e));
1807
+ function Go() {
1808
+ return /* @__PURE__ */ J((e) => gn(e));
1807
1809
  }
1808
1810
  // @__NO_SIDE_EFFECTS__
1809
- function Wo(e, t, n) {
1811
+ function Yo(e, t, n) {
1810
1812
  return new e({
1811
1813
  type: "array",
1812
1814
  element: t,
@@ -1817,7 +1819,7 @@ function Wo(e, t, n) {
1817
1819
  });
1818
1820
  }
1819
1821
  // @__NO_SIDE_EFFECTS__
1820
- function Ko(e, t, n) {
1822
+ function Qo(e, t, n) {
1821
1823
  return new e({
1822
1824
  type: "custom",
1823
1825
  check: "custom",
@@ -1826,8 +1828,8 @@ function Ko(e, t, n) {
1826
1828
  });
1827
1829
  }
1828
1830
  // @__NO_SIDE_EFFECTS__
1829
- function Ho(e) {
1830
- const t = /* @__PURE__ */ Go((n) => (n.addIssue = (r) => {
1831
+ function Xo(e) {
1832
+ const t = /* @__PURE__ */ es((n) => (n.addIssue = (r) => {
1831
1833
  if (typeof r == "string")
1832
1834
  n.issues.push(B(r, n.value, t._zod.def));
1833
1835
  else {
@@ -1838,14 +1840,14 @@ function Ho(e) {
1838
1840
  return t;
1839
1841
  }
1840
1842
  // @__NO_SIDE_EFFECTS__
1841
- function Go(e, t) {
1843
+ function es(e, t) {
1842
1844
  const n = new E({
1843
1845
  check: "custom",
1844
1846
  ...p(t)
1845
1847
  });
1846
1848
  return n._zod.check = e, n;
1847
1849
  }
1848
- function dt(e) {
1850
+ function ft(e) {
1849
1851
  let t = e?.target ?? "draft-2020-12";
1850
1852
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
1851
1853
  processors: e.processors ?? {},
@@ -1892,7 +1894,7 @@ function k(e, t, n = { path: [], schemaPath: [] }) {
1892
1894
  const l = t.metadataRegistry.get(e);
1893
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;
1894
1896
  }
1895
- function ft(e, t) {
1897
+ function pt(e, t) {
1896
1898
  const n = e.seen.get(t);
1897
1899
  if (!n)
1898
1900
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -1964,7 +1966,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1964
1966
  }
1965
1967
  }
1966
1968
  }
1967
- function pt(e, t) {
1969
+ function ht(e, t) {
1968
1970
  const n = e.seen.get(t);
1969
1971
  if (!n)
1970
1972
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -2072,24 +2074,24 @@ function j(e, t) {
2072
2074
  }
2073
2075
  return !1;
2074
2076
  }
2075
- const Yo = (e, t = {}) => (n) => {
2076
- const r = dt({ ...n, processors: t });
2077
- return k(e, r), ft(r, e), pt(r, e);
2077
+ const ts = (e, t = {}) => (n) => {
2078
+ const r = ft({ ...n, processors: t });
2079
+ return k(e, r), pt(r, e), ht(r, e);
2078
2080
  }, ee = (e, t, n = {}) => (r) => {
2079
- const { libraryOptions: o, target: i } = r ?? {}, s = dt({ ...o ?? {}, target: i, io: t, processors: n });
2080
- return k(e, s), ft(s, e), pt(s, e);
2081
- }, Qo = {
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 = {
2082
2084
  guid: "uuid",
2083
2085
  url: "uri",
2084
2086
  datetime: "date-time",
2085
2087
  json_string: "json-string",
2086
2088
  regex: ""
2087
2089
  // do not set
2088
- }, Xo = (e, t, n, r) => {
2090
+ }, rs = (e, t, n, r) => {
2089
2091
  const o = n;
2090
2092
  o.type = "string";
2091
2093
  const { minimum: i, maximum: s, format: a, patterns: l, contentEncoding: d } = e._zod.bag;
2092
- if (typeof i == "number" && (o.minLength = i), typeof s == "number" && (o.maxLength = s), a && (o.format = Qo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), d && (o.contentEncoding = d), l && l.size > 0) {
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) {
2093
2095
  const f = [...l];
2094
2096
  f.length === 1 ? o.pattern = f[0].source : f.length > 1 && (o.allOf = [
2095
2097
  ...f.map((g) => ({
@@ -2098,22 +2100,22 @@ const Yo = (e, t = {}) => (n) => {
2098
2100
  }))
2099
2101
  ]);
2100
2102
  }
2101
- }, es = (e, t, n, r) => {
2103
+ }, os = (e, t, n, r) => {
2102
2104
  n.not = {};
2103
- }, ts = (e, t, n, r) => {
2104
- }, ns = (e, t, n, r) => {
2105
- const o = e._zod.def, i = He(o.entries);
2105
+ }, ss = (e, t, n, r) => {
2106
+ }, is = (e, t, n, r) => {
2107
+ const o = e._zod.def, i = Ge(o.entries);
2106
2108
  i.every((s) => typeof s == "number") && (n.type = "number"), i.every((s) => typeof s == "string") && (n.type = "string"), n.enum = i;
2107
- }, rs = (e, t, n, r) => {
2109
+ }, as = (e, t, n, r) => {
2108
2110
  if (t.unrepresentable === "throw")
2109
2111
  throw new Error("Custom types cannot be represented in JSON Schema");
2110
- }, os = (e, t, n, r) => {
2112
+ }, cs = (e, t, n, r) => {
2111
2113
  if (t.unrepresentable === "throw")
2112
2114
  throw new Error("Transforms cannot be represented in JSON Schema");
2113
- }, ss = (e, t, n, r) => {
2115
+ }, us = (e, t, n, r) => {
2114
2116
  const o = n, i = e._zod.def, { minimum: s, maximum: a } = e._zod.bag;
2115
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"] });
2116
- }, is = (e, t, n, r) => {
2118
+ }, ls = (e, t, n, r) => {
2117
2119
  const o = n, i = e._zod.def;
2118
2120
  o.type = "object", o.properties = {};
2119
2121
  const s = i.shape;
@@ -2130,13 +2132,13 @@ const Yo = (e, t = {}) => (n) => {
2130
2132
  ...r,
2131
2133
  path: [...r.path, "additionalProperties"]
2132
2134
  })) : t.io === "output" && (o.additionalProperties = !1);
2133
- }, as = (e, t, n, r) => {
2135
+ }, ds = (e, t, n, r) => {
2134
2136
  const o = e._zod.def, i = o.inclusive === !1, s = o.options.map((a, l) => k(a, t, {
2135
2137
  ...r,
2136
2138
  path: [...r.path, i ? "oneOf" : "anyOf", l]
2137
2139
  }));
2138
2140
  i ? n.oneOf = s : n.anyOf = s;
2139
- }, cs = (e, t, n, r) => {
2141
+ }, fs = (e, t, n, r) => {
2140
2142
  const o = e._zod.def, i = k(o.left, t, {
2141
2143
  ...r,
2142
2144
  path: [...r.path, "allOf", 0]
@@ -2148,25 +2150,25 @@ const Yo = (e, t = {}) => (n) => {
2148
2150
  ...a(s) ? s.allOf : [s]
2149
2151
  ];
2150
2152
  n.allOf = l;
2151
- }, us = (e, t, n, r) => {
2153
+ }, ps = (e, t, n, r) => {
2152
2154
  const o = e._zod.def, i = k(o.innerType, t, r), s = t.seen.get(e);
2153
2155
  t.target === "openapi-3.0" ? (s.ref = o.innerType, n.nullable = !0) : n.anyOf = [i, { type: "null" }];
2154
- }, ls = (e, t, n, r) => {
2156
+ }, hs = (e, t, n, r) => {
2155
2157
  const o = e._zod.def;
2156
2158
  k(o.innerType, t, r);
2157
2159
  const i = t.seen.get(e);
2158
2160
  i.ref = o.innerType;
2159
- }, ds = (e, t, n, r) => {
2161
+ }, ms = (e, t, n, r) => {
2160
2162
  const o = e._zod.def;
2161
2163
  k(o.innerType, t, r);
2162
2164
  const i = t.seen.get(e);
2163
2165
  i.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
2164
- }, fs = (e, t, n, r) => {
2166
+ }, gs = (e, t, n, r) => {
2165
2167
  const o = e._zod.def;
2166
2168
  k(o.innerType, t, r);
2167
2169
  const i = t.seen.get(e);
2168
2170
  i.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
2169
- }, ps = (e, t, n, r) => {
2171
+ }, _s = (e, t, n, r) => {
2170
2172
  const o = e._zod.def;
2171
2173
  k(o.innerType, t, r);
2172
2174
  const i = t.seen.get(e);
@@ -2178,53 +2180,53 @@ const Yo = (e, t = {}) => (n) => {
2178
2180
  throw new Error("Dynamic catch values are not supported in JSON Schema");
2179
2181
  }
2180
2182
  n.default = s;
2181
- }, hs = (e, t, n, r) => {
2183
+ }, vs = (e, t, n, r) => {
2182
2184
  const o = e._zod.def, i = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
2183
2185
  k(i, t, r);
2184
2186
  const s = t.seen.get(e);
2185
2187
  s.ref = i;
2186
- }, ms = (e, t, n, r) => {
2188
+ }, ys = (e, t, n, r) => {
2187
2189
  const o = e._zod.def;
2188
2190
  k(o.innerType, t, r);
2189
2191
  const i = t.seen.get(e);
2190
2192
  i.ref = o.innerType, n.readOnly = !0;
2191
- }, ht = (e, t, n, r) => {
2193
+ }, mt = (e, t, n, r) => {
2192
2194
  const o = e._zod.def;
2193
2195
  k(o.innerType, t, r);
2194
2196
  const i = t.seen.get(e);
2195
2197
  i.ref = o.innerType;
2196
- }, gs = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
2197
- Zr.init(e, t), y.init(e, t);
2198
+ }, ws = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
2199
+ Tr.init(e, t), y.init(e, t);
2198
2200
  });
2199
- function _s(e) {
2200
- return /* @__PURE__ */ Po(gs, e);
2201
+ function zs(e) {
2202
+ return /* @__PURE__ */ Io(ws, e);
2201
2203
  }
2202
- const vs = /* @__PURE__ */ u("ZodISODate", (e, t) => {
2203
- Or.init(e, t), y.init(e, t);
2204
+ const bs = /* @__PURE__ */ u("ZodISODate", (e, t) => {
2205
+ Er.init(e, t), y.init(e, t);
2204
2206
  });
2205
- function ys(e) {
2206
- return /* @__PURE__ */ To(vs, e);
2207
+ function ks(e) {
2208
+ return /* @__PURE__ */ Ao(bs, e);
2207
2209
  }
2208
- const ws = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
2209
- Sr.init(e, t), y.init(e, t);
2210
+ const $s = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
2211
+ Nr.init(e, t), y.init(e, t);
2210
2212
  });
2211
- function zs(e) {
2212
- return /* @__PURE__ */ Eo(ws, e);
2213
+ function js(e) {
2214
+ return /* @__PURE__ */ Ro($s, e);
2213
2215
  }
2214
- const bs = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
2215
- Pr.init(e, t), y.init(e, t);
2216
+ const xs = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
2217
+ Ir.init(e, t), y.init(e, t);
2216
2218
  });
2217
- function ks(e) {
2218
- return /* @__PURE__ */ No(bs, e);
2219
+ function Zs(e) {
2220
+ return /* @__PURE__ */ Do(xs, e);
2219
2221
  }
2220
- const $s = (e, t) => {
2221
- et.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, {
2222
2224
  format: {
2223
- value: (n) => $n(e, n)
2225
+ value: (n) => On(e, n)
2224
2226
  // enumerable: false,
2225
2227
  },
2226
2228
  flatten: {
2227
- value: (n) => kn(e, n)
2229
+ value: (n) => Zn(e, n)
2228
2230
  // enumerable: false,
2229
2231
  },
2230
2232
  addIssue: {
@@ -2246,21 +2248,21 @@ const $s = (e, t) => {
2246
2248
  // enumerable: false,
2247
2249
  }
2248
2250
  });
2249
- }, Z = u("ZodError", $s, {
2251
+ }, Z = u("ZodError", Os, {
2250
2252
  Parent: Error
2251
- }), js = /* @__PURE__ */ pe(Z), xs = /* @__PURE__ */ he(Z), Zs = /* @__PURE__ */ re(Z), Os = /* @__PURE__ */ oe(Z), Ss = /* @__PURE__ */ Zn(Z), Ps = /* @__PURE__ */ On(Z), Ts = /* @__PURE__ */ Sn(Z), Es = /* @__PURE__ */ Pn(Z), Ns = /* @__PURE__ */ Tn(Z), Is = /* @__PURE__ */ En(Z), Rs = /* @__PURE__ */ Nn(Z), As = /* @__PURE__ */ In(Z), z = /* @__PURE__ */ u("ZodType", (e, t) => (w.init(e, t), Object.assign(e["~standard"], {
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"], {
2252
2254
  jsonSchema: {
2253
2255
  input: ee(e, "input"),
2254
2256
  output: ee(e, "output")
2255
2257
  }
2256
- }), e.toJSONSchema = Yo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(I(t, {
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, {
2257
2259
  checks: [
2258
2260
  ...t.checks ?? [],
2259
2261
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2260
2262
  ]
2261
2263
  }), {
2262
2264
  parent: !0
2263
- }), e.with = e.check, e.clone = (n, r) => R(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => js(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Zs(e, n, r), e.parseAsync = async (n, r) => xs(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Os(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Ss(e, n, r), e.decode = (n, r) => Ps(e, n, r), e.encodeAsync = async (n, r) => Ts(e, n, r), e.decodeAsync = async (n, r) => Es(e, n, r), e.safeEncode = (n, r) => Ns(e, n, r), e.safeDecode = (n, r) => Is(e, n, r), e.safeEncodeAsync = async (n, r) => Rs(e, n, r), e.safeDecodeAsync = async (n, r) => As(e, n, r), e.refine = (n, r) => e.check(Oi(n, r)), e.superRefine = (n) => e.check(Si(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ J(n)), e.optional = () => Ne(e), e.exactOptional = () => mi(e), e.nullable = () => Ie(e), e.nullish = () => Ne(Ie(e)), e.nonoptional = (n) => zi(e, n), e.array = () => si(e), e.or = (n) => ui([e, n]), e.and = (n) => di(e, n), e.transform = (n) => Re(e, pi(n)), e.default = (n) => vi(e, n), e.prefault = (n) => wi(e, n), e.catch = (n) => ki(e, n), e.pipe = (n) => Re(e, n), e.readonly = () => xi(e), e.describe = (n) => {
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) => {
2264
2266
  const r = e.clone();
2265
2267
  return L.add(r, { description: n }), r;
2266
2268
  }, Object.defineProperty(e, "description", {
@@ -2273,107 +2275,107 @@ const $s = (e, t) => {
2273
2275
  return L.get(e);
2274
2276
  const r = e.clone();
2275
2277
  return L.add(r, n[0]), r;
2276
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), mt = /* @__PURE__ */ u("_ZodString", (e, t) => {
2277
- me.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => Xo(e, r, o);
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);
2278
2280
  const n = e._zod.bag;
2279
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ Ao(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ Uo(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ Fo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ Jo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ X(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ut(...r)), e.length = (...r) => e.check(/* @__PURE__ */ lt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ X(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ Do(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ Co(r)), e.trim = () => e.check(/* @__PURE__ */ Mo()), e.normalize = (...r) => e.check(/* @__PURE__ */ Lo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ Bo()), e.toUpperCase = () => e.check(/* @__PURE__ */ qo()), e.slugify = () => e.check(/* @__PURE__ */ Vo());
2280
- }), Ds = /* @__PURE__ */ u("ZodString", (e, t) => {
2281
- me.init(e, t), mt.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ co(Cs, n)), e.url = (n) => e.check(/* @__PURE__ */ ho(Us, n)), e.jwt = (n) => e.check(/* @__PURE__ */ So(ei, n)), e.emoji = (n) => e.check(/* @__PURE__ */ mo(Fs, n)), e.guid = (n) => e.check(/* @__PURE__ */ Se(Te, n)), e.uuid = (n) => e.check(/* @__PURE__ */ uo(G, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ lo(G, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ fo(G, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ po(G, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ go(Js, n)), e.guid = (n) => e.check(/* @__PURE__ */ Se(Te, n)), e.cuid = (n) => e.check(/* @__PURE__ */ _o(Ls, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ vo(Ms, n)), e.ulid = (n) => e.check(/* @__PURE__ */ yo(Bs, n)), e.base64 = (n) => e.check(/* @__PURE__ */ xo(Ys, n)), e.base64url = (n) => e.check(/* @__PURE__ */ Zo(Qs, n)), e.xid = (n) => e.check(/* @__PURE__ */ wo(qs, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ zo(Vs, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ bo(Ws, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ ko(Ks, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ $o(Hs, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ jo(Gs, n)), e.e164 = (n) => e.check(/* @__PURE__ */ Oo(Xs, n)), e.datetime = (n) => e.check(_s(n)), e.date = (n) => e.check(ys(n)), e.time = (n) => e.check(zs(n)), e.duration = (n) => e.check(ks(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));
2282
2284
  });
2283
2285
  function Pe(e) {
2284
- return /* @__PURE__ */ ao(Ds, e);
2286
+ return /* @__PURE__ */ fo(Js, e);
2285
2287
  }
2286
2288
  const y = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
2287
- v.init(e, t), mt.init(e, t);
2288
- }), Cs = /* @__PURE__ */ u("ZodEmail", (e, t) => {
2289
- vr.init(e, t), y.init(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);
2290
2292
  }), Te = /* @__PURE__ */ u("ZodGUID", (e, t) => {
2291
- gr.init(e, t), y.init(e, t);
2292
- }), G = /* @__PURE__ */ u("ZodUUID", (e, t) => {
2293
- _r.init(e, t), y.init(e, t);
2294
- }), Us = /* @__PURE__ */ u("ZodURL", (e, t) => {
2295
- yr.init(e, t), y.init(e, t);
2296
- }), Fs = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
2297
2293
  wr.init(e, t), y.init(e, t);
2298
- }), Js = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
2294
+ }), G = /* @__PURE__ */ u("ZodUUID", (e, t) => {
2299
2295
  zr.init(e, t), y.init(e, t);
2300
- }), Ls = /* @__PURE__ */ u("ZodCUID", (e, t) => {
2301
- br.init(e, t), y.init(e, t);
2302
- }), Ms = /* @__PURE__ */ u("ZodCUID2", (e, t) => {
2296
+ }), Ms = /* @__PURE__ */ u("ZodURL", (e, t) => {
2303
2297
  kr.init(e, t), y.init(e, t);
2304
- }), Bs = /* @__PURE__ */ u("ZodULID", (e, t) => {
2298
+ }), Bs = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
2305
2299
  $r.init(e, t), y.init(e, t);
2306
- }), qs = /* @__PURE__ */ u("ZodXID", (e, t) => {
2300
+ }), Vs = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
2307
2301
  jr.init(e, t), y.init(e, t);
2308
- }), Vs = /* @__PURE__ */ u("ZodKSUID", (e, t) => {
2302
+ }), qs = /* @__PURE__ */ u("ZodCUID", (e, t) => {
2309
2303
  xr.init(e, t), y.init(e, t);
2310
- }), Ws = /* @__PURE__ */ u("ZodIPv4", (e, t) => {
2311
- Tr.init(e, t), y.init(e, t);
2312
- }), Ks = /* @__PURE__ */ u("ZodIPv6", (e, t) => {
2313
- Er.init(e, t), y.init(e, t);
2314
- }), Hs = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
2315
- Nr.init(e, t), y.init(e, t);
2316
- }), Gs = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
2317
- Ir.init(e, t), y.init(e, t);
2318
- }), Ys = /* @__PURE__ */ u("ZodBase64", (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) => {
2319
2315
  Rr.init(e, t), y.init(e, t);
2320
- }), Qs = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
2316
+ }), Xs = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
2321
2317
  Dr.init(e, t), y.init(e, t);
2322
- }), Xs = /* @__PURE__ */ u("ZodE164", (e, t) => {
2318
+ }), ei = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
2323
2319
  Cr.init(e, t), y.init(e, t);
2324
- }), ei = /* @__PURE__ */ u("ZodJWT", (e, t) => {
2325
- Fr.init(e, t), y.init(e, t);
2326
- }), ti = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
2327
- Jr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ts();
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();
2328
2330
  });
2329
2331
  function Ee() {
2330
- return /* @__PURE__ */ Io(ti);
2332
+ return /* @__PURE__ */ Co(si);
2331
2333
  }
2332
- const ni = /* @__PURE__ */ u("ZodNever", (e, t) => {
2333
- Lr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => es(e, n, r);
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);
2334
2336
  });
2335
- function ri(e) {
2336
- return /* @__PURE__ */ Ro(ni, e);
2337
+ function ai(e) {
2338
+ return /* @__PURE__ */ Uo(ii, e);
2337
2339
  }
2338
- const oi = /* @__PURE__ */ u("ZodArray", (e, t) => {
2339
- Mr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ss(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__ */ ut(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ lt(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;
2340
2342
  });
2341
- function si(e, t) {
2342
- return /* @__PURE__ */ Wo(oi, e, t);
2343
+ function ui(e, t) {
2344
+ return /* @__PURE__ */ Yo(ci, e, t);
2343
2345
  }
2344
- const ii = /* @__PURE__ */ u("ZodObject", (e, t) => {
2345
- qr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => is(e, n, r, o), _(e, "shape", () => t.shape), e.keyof = () => gt(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: ri() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => vn(e, n), e.safeExtend = (n) => yn(e, n), e.merge = (n) => wn(e, n), e.pick = (n) => gn(e, n), e.omit = (n) => _n(e, n), e.partial = (...n) => zn(_t, e, n[0]), e.required = (...n) => bn(vt, 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]);
2346
2348
  });
2347
- function ai(e, t) {
2349
+ function di(e, t) {
2348
2350
  const n = {
2349
2351
  type: "object",
2350
2352
  shape: e ?? {},
2351
2353
  ...p(t)
2352
2354
  };
2353
- return new ii(n);
2355
+ return new li(n);
2354
2356
  }
2355
- const ci = /* @__PURE__ */ u("ZodUnion", (e, t) => {
2356
- Vr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => as(e, n, r, o), 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;
2357
2359
  });
2358
- function ui(e, t) {
2359
- return new ci({
2360
+ function pi(e, t) {
2361
+ return new fi({
2360
2362
  type: "union",
2361
2363
  options: e,
2362
2364
  ...p(t)
2363
2365
  });
2364
2366
  }
2365
- const li = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
2366
- Wr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => cs(e, n, r, o);
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);
2367
2369
  });
2368
- function di(e, t) {
2369
- return new li({
2370
+ function mi(e, t) {
2371
+ return new hi({
2370
2372
  type: "intersection",
2371
2373
  left: e,
2372
2374
  right: t
2373
2375
  });
2374
2376
  }
2375
2377
  const ce = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2376
- Kr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => ns(e, r, o), e.enum = t.entries, e.options = Object.values(t.entries);
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);
2377
2379
  const n = new Set(Object.keys(t.entries));
2378
2380
  e.extract = (r, o) => {
2379
2381
  const i = {};
@@ -2403,7 +2405,7 @@ const ce = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2403
2405
  });
2404
2406
  };
2405
2407
  });
2406
- function gt(e, t) {
2408
+ function _t(e, t) {
2407
2409
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2408
2410
  return new ce({
2409
2411
  type: "enum",
@@ -2411,10 +2413,10 @@ function gt(e, t) {
2411
2413
  ...p(t)
2412
2414
  });
2413
2415
  }
2414
- const fi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2415
- Hr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => os(e, n), 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) => {
2416
2418
  if (r.direction === "backward")
2417
- throw new We(e.constructor.name);
2419
+ throw new Ke(e.constructor.name);
2418
2420
  n.addIssue = (i) => {
2419
2421
  if (typeof i == "string")
2420
2422
  n.issues.push(B(i, n.value, t));
@@ -2427,122 +2429,122 @@ const fi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2427
2429
  return o instanceof Promise ? o.then((i) => (n.value = i, n)) : (n.value = o, n);
2428
2430
  };
2429
2431
  });
2430
- function pi(e) {
2431
- return new fi({
2432
+ function _i(e) {
2433
+ return new gi({
2432
2434
  type: "transform",
2433
2435
  transform: e
2434
2436
  });
2435
2437
  }
2436
- const _t = /* @__PURE__ */ u("ZodOptional", (e, t) => {
2437
- ct.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ht(e, n, r, o), 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;
2438
2440
  });
2439
2441
  function Ne(e) {
2440
- return new _t({
2442
+ return new vt({
2441
2443
  type: "optional",
2442
2444
  innerType: e
2443
2445
  });
2444
2446
  }
2445
- const hi = /* @__PURE__ */ u("ZodExactOptional", (e, t) => {
2446
- Gr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ht(e, n, r, o), 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;
2447
2449
  });
2448
- function mi(e) {
2449
- return new hi({
2450
+ function yi(e) {
2451
+ return new vi({
2450
2452
  type: "optional",
2451
2453
  innerType: e
2452
2454
  });
2453
2455
  }
2454
- const gi = /* @__PURE__ */ u("ZodNullable", (e, t) => {
2455
- Yr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => us(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
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;
2456
2458
  });
2457
2459
  function Ie(e) {
2458
- return new gi({
2460
+ return new wi({
2459
2461
  type: "nullable",
2460
2462
  innerType: e
2461
2463
  });
2462
2464
  }
2463
- const _i = /* @__PURE__ */ u("ZodDefault", (e, t) => {
2464
- Qr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ds(e, n, r, o), 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;
2465
2467
  });
2466
- function vi(e, t) {
2467
- return new _i({
2468
+ function bi(e, t) {
2469
+ return new zi({
2468
2470
  type: "default",
2469
2471
  innerType: e,
2470
2472
  get defaultValue() {
2471
- return typeof t == "function" ? t() : Ye(t);
2473
+ return typeof t == "function" ? t() : Qe(t);
2472
2474
  }
2473
2475
  });
2474
2476
  }
2475
- const yi = /* @__PURE__ */ u("ZodPrefault", (e, t) => {
2476
- Xr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => fs(e, n, r, o), 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;
2477
2479
  });
2478
- function wi(e, t) {
2479
- return new yi({
2480
+ function $i(e, t) {
2481
+ return new ki({
2480
2482
  type: "prefault",
2481
2483
  innerType: e,
2482
2484
  get defaultValue() {
2483
- return typeof t == "function" ? t() : Ye(t);
2485
+ return typeof t == "function" ? t() : Qe(t);
2484
2486
  }
2485
2487
  });
2486
2488
  }
2487
- const vt = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
2488
- eo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ls(e, n, r, o), 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;
2489
2491
  });
2490
- function zi(e, t) {
2491
- return new vt({
2492
+ function ji(e, t) {
2493
+ return new yt({
2492
2494
  type: "nonoptional",
2493
2495
  innerType: e,
2494
2496
  ...p(t)
2495
2497
  });
2496
2498
  }
2497
- const bi = /* @__PURE__ */ u("ZodCatch", (e, t) => {
2498
- 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, 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;
2499
2501
  });
2500
- function ki(e, t) {
2501
- return new bi({
2502
+ function Zi(e, t) {
2503
+ return new xi({
2502
2504
  type: "catch",
2503
2505
  innerType: e,
2504
2506
  catchValue: typeof t == "function" ? t : () => t
2505
2507
  });
2506
2508
  }
2507
- const $i = /* @__PURE__ */ u("ZodPipe", (e, t) => {
2508
- no.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => hs(e, n, r, o), 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;
2509
2511
  });
2510
- function Re(e, t) {
2511
- return new $i({
2512
+ function Ae(e, t) {
2513
+ return new Oi({
2512
2514
  type: "pipe",
2513
2515
  in: e,
2514
2516
  out: t
2515
2517
  // ...util.normalizeParams(params),
2516
2518
  });
2517
2519
  }
2518
- const ji = /* @__PURE__ */ u("ZodReadonly", (e, t) => {
2519
- ro.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ms(e, n, r, o), 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;
2520
2522
  });
2521
- function xi(e) {
2522
- return new ji({
2523
+ function Pi(e) {
2524
+ return new Si({
2523
2525
  type: "readonly",
2524
2526
  innerType: e
2525
2527
  });
2526
2528
  }
2527
- const Zi = /* @__PURE__ */ u("ZodCustom", (e, t) => {
2528
- oo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => rs(e, n);
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);
2529
2531
  });
2530
- function Oi(e, t = {}) {
2531
- return /* @__PURE__ */ Ko(Zi, e, t);
2532
+ function Ei(e, t = {}) {
2533
+ return /* @__PURE__ */ Qo(Ti, e, t);
2532
2534
  }
2533
- function Si(e) {
2534
- return /* @__PURE__ */ Ho(e);
2535
+ function Ni(e) {
2536
+ return /* @__PURE__ */ Xo(e);
2535
2537
  }
2536
- const Pi = ai({
2538
+ const Ii = di({
2537
2539
  buildId: Pe(),
2538
2540
  timestamp: Pe(),
2539
- status: gt(["in-progress", "success", "failed"])
2540
- }), Ti = ({
2541
+ status: _t(["in-progress", "success", "failed"])
2542
+ }), Ai = ({
2541
2543
  buildId: e,
2542
2544
  environmentType: t,
2543
2545
  endpoint: n = "/__zuplo/docs"
2544
2546
  }) => {
2545
- const r = Ot({
2547
+ const r = Pt({
2546
2548
  queryKey: ["zuplo-build-check", e, n],
2547
2549
  refetchInterval: 3e3,
2548
2550
  enabled: e !== void 0 && t === "WORKING_COPY",
@@ -2550,7 +2552,7 @@ const Pi = ai({
2550
2552
  queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((i) => {
2551
2553
  if (!i.ok) throw new Error("Failed to fetch build status");
2552
2554
  return i.json();
2553
- }).then((i) => Pi.parse(i))
2555
+ }).then((i) => Ii.parse(i))
2554
2556
  });
2555
2557
  if (te(() => {
2556
2558
  r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
@@ -2559,15 +2561,15 @@ const Pi = ai({
2559
2561
  const o = r.data.status === "success";
2560
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: [
2561
2563
  o ? /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2562
- /* @__PURE__ */ c.jsx(Ht, { size: 16 }),
2564
+ /* @__PURE__ */ c.jsx(Bt, { size: 16 }),
2563
2565
  /* @__PURE__ */ c.jsx("span", { className: "text-sm", children: "New version available" })
2564
2566
  ] }) : /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2565
- /* @__PURE__ */ c.jsx(Gt, { size: 16, className: "animate-spin" }),
2567
+ /* @__PURE__ */ c.jsx(Vt, { size: 16, className: "animate-spin" }),
2566
2568
  /* @__PURE__ */ c.jsx("span", { className: "text-sm", children: "Building new version..." })
2567
2569
  ] }),
2568
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." }),
2569
2571
  o && /* @__PURE__ */ c.jsx(
2570
- en,
2572
+ Ht,
2571
2573
  {
2572
2574
  variant: "outline",
2573
2575
  size: "sm",
@@ -2579,13 +2581,13 @@ const Pi = ai({
2579
2581
  }
2580
2582
  )
2581
2583
  ] });
2582
- }, Ei = () => {
2583
- const e = Je(), t = Fe(e.pathname);
2584
+ }, Ri = () => {
2585
+ const e = Le(), t = Je(e.pathname);
2584
2586
  te(() => {
2585
2587
  const n = t.current !== e.pathname, r = e.hash !== "";
2586
2588
  n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2587
2589
  }, [e.pathname, e.hash]);
2588
- }, Ni = ({
2590
+ }, Di = ({
2589
2591
  icon: e
2590
2592
  }) => typeof e == "string" ? /* @__PURE__ */ c.jsx(
2591
2593
  "img",
@@ -2594,8 +2596,8 @@ const Pi = ai({
2594
2596
  className: "size-5",
2595
2597
  alt: e
2596
2598
  }
2597
- ) : e, Ii = (e) => /^https?:/.test(e), Ri = () => {
2598
- const { site: e } = V(), t = e?.footer;
2599
+ ) : e, Ci = (e) => /^https?:/.test(e), Ui = () => {
2600
+ const { site: e } = q(), t = e?.footer;
2599
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: [
2600
2602
  /* @__PURE__ */ c.jsxs(
2601
2603
  "div",
@@ -2624,7 +2626,7 @@ const Pi = ai({
2624
2626
  /* @__PURE__ */ c.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2625
2627
  /* @__PURE__ */ c.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2626
2628
  const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2627
- return /* @__PURE__ */ c.jsx("li", { children: Ii(r.href) ? /* @__PURE__ */ c.jsxs(
2629
+ return /* @__PURE__ */ c.jsx("li", { children: Ci(r.href) ? /* @__PURE__ */ c.jsxs(
2628
2630
  "a",
2629
2631
  {
2630
2632
  href: r.href,
@@ -2633,10 +2635,10 @@ const Pi = ai({
2633
2635
  className: o,
2634
2636
  children: [
2635
2637
  /* @__PURE__ */ c.jsx("span", { children: r.label }),
2636
- /* @__PURE__ */ c.jsx(Yt, { size: 12 })
2638
+ /* @__PURE__ */ c.jsx(qt, { size: 12 })
2637
2639
  ]
2638
2640
  }
2639
- ) : /* @__PURE__ */ c.jsx(Jt, { to: r.href, className: o, children: /* @__PURE__ */ c.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);
2640
2642
  }) })
2641
2643
  ]
2642
2644
  },
@@ -2685,7 +2687,7 @@ const Pi = ai({
2685
2687
  rel: "noopener noreferrer",
2686
2688
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2687
2689
  children: [
2688
- /* @__PURE__ */ c.jsx(Ni, { icon: n.icon }),
2690
+ /* @__PURE__ */ c.jsx(Di, { icon: n.icon }),
2689
2691
  n.label
2690
2692
  ]
2691
2693
  },
@@ -2695,7 +2697,7 @@ const Pi = ai({
2695
2697
  }
2696
2698
  )
2697
2699
  ] }) }) : null;
2698
- }, yt = ({
2700
+ }, wt = ({
2699
2701
  shouldScaleBackground: e = !0,
2700
2702
  ...t
2701
2703
  }) => /* @__PURE__ */ c.jsx(
@@ -2705,8 +2707,8 @@ const Pi = ai({
2705
2707
  ...t
2706
2708
  }
2707
2709
  );
2708
- yt.displayName = "Drawer";
2709
- const Ai = T.Trigger, Di = T.Portal, wt = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2710
+ wt.displayName = "Drawer";
2711
+ const Fi = T.Trigger, Ji = T.Portal, zt = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2710
2712
  T.Overlay,
2711
2713
  {
2712
2714
  ref: n,
@@ -2714,10 +2716,10 @@ const Ai = T.Trigger, Di = T.Portal, wt = q.forwardRef(({ className: e, ...t },
2714
2716
  ...t
2715
2717
  }
2716
2718
  ));
2717
- wt.displayName = T.Overlay.displayName;
2718
- const Ci = q.forwardRef(
2719
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ c.jsxs(Di, { children: [
2720
- /* @__PURE__ */ c.jsx(wt, {}),
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, {}),
2721
2723
  /* @__PURE__ */ c.jsxs(
2722
2724
  T.Content,
2723
2725
  {
@@ -2735,8 +2737,8 @@ const Ci = q.forwardRef(
2735
2737
  )
2736
2738
  ] })
2737
2739
  );
2738
- Ci.displayName = "DrawerContent";
2739
- const Ui = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2740
+ Li.displayName = "DrawerContent";
2741
+ const Mi = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2740
2742
  T.Title,
2741
2743
  {
2742
2744
  ref: n,
@@ -2747,8 +2749,8 @@ const Ui = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2747
2749
  ...t
2748
2750
  }
2749
2751
  ));
2750
- Ui.displayName = T.Title.displayName;
2751
- const Fi = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2752
+ Mi.displayName = T.Title.displayName;
2753
+ const Bi = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2752
2754
  T.Description,
2753
2755
  {
2754
2756
  ref: n,
@@ -2756,15 +2758,15 @@ const Fi = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2756
2758
  ...t
2757
2759
  }
2758
2760
  ));
2759
- Fi.displayName = T.Description.displayName;
2760
- const zt = ({
2761
+ Bi.displayName = T.Description.displayName;
2762
+ const bt = ({
2761
2763
  children: e,
2762
2764
  className: t
2763
2765
  }) => {
2764
- const { options: n } = V(), r = Fe(null);
2766
+ const { options: n } = q(), r = Je(null);
2765
2767
  return te(() => {
2766
2768
  const o = r.current?.querySelector('[aria-current="page"]');
2767
- Lt(o ?? null);
2769
+ Yt(o ?? null);
2768
2770
  }, []), /* @__PURE__ */ c.jsxs(
2769
2771
  "div",
2770
2772
  {
@@ -2788,17 +2790,17 @@ const zt = ({
2788
2790
  children: e
2789
2791
  }
2790
2792
  ),
2791
- /* @__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(Mt, {}) })
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, {}) })
2792
2794
  ]
2793
2795
  }
2794
2796
  );
2795
2797
  };
2796
- zt.displayName = "NavigationWrapper";
2797
- const Ji = ({
2798
+ bt.displayName = "NavigationWrapper";
2799
+ const Vi = ({
2798
2800
  onRequestClose: e,
2799
2801
  navigation: t
2800
- }) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2801
- /* @__PURE__ */ c.jsxs(zt, { children: [
2802
+ }) => /* @__PURE__ */ c.jsxs(Xt, { children: [
2803
+ /* @__PURE__ */ c.jsxs(bt, { children: [
2802
2804
  /* @__PURE__ */ c.jsx(N.Target, { name: "navigation-before" }),
2803
2805
  t.map((n) => /* @__PURE__ */ c.jsx(
2804
2806
  ge,
@@ -2810,12 +2812,12 @@ const Ji = ({
2810
2812
  /* @__PURE__ */ c.jsx(N.Target, { name: "navigation-after" })
2811
2813
  ] }),
2812
2814
  /* @__PURE__ */ c.jsx(
2813
- rn,
2815
+ an,
2814
2816
  {
2815
- className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
2817
+ className: "lg:hidden h-dvh start-0 w-[320px] rounded-none",
2816
2818
  "aria-describedby": void 0,
2817
2819
  children: /* @__PURE__ */ c.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2818
- /* @__PURE__ */ c.jsx(sn, { children: /* @__PURE__ */ c.jsx(on, { children: "Navigation" }) }),
2820
+ /* @__PURE__ */ c.jsx(un, { children: /* @__PURE__ */ c.jsx(cn, { children: "Navigation" }) }),
2819
2821
  t.map((n) => /* @__PURE__ */ c.jsx(
2820
2822
  ge,
2821
2823
  {
@@ -2827,24 +2829,24 @@ const Ji = ({
2827
2829
  ] })
2828
2830
  }
2829
2831
  )
2830
- ] }), Li = ({ children: e }) => {
2831
- const [t, n] = St(!1), { navigation: r } = tn(), o = r.length > 0, i = Nt().state === "loading", { options: s } = V();
2832
+ ] }), qi = ({ children: e }) => {
2833
+ const [t, n] = Tt(!1), { navigation: r } = on(), o = r.length > 0, i = Rt().state === "loading", { options: s } = q();
2832
2834
  return /* @__PURE__ */ c.jsxs(
2833
- yt,
2835
+ wt,
2834
2836
  {
2835
2837
  direction: s.site?.dir === "rtl" ? "right" : "left",
2836
2838
  open: t,
2837
2839
  onOpenChange: (a) => n(a),
2838
2840
  children: [
2839
2841
  o && /* @__PURE__ */ c.jsx(
2840
- Ji,
2842
+ Vi,
2841
2843
  {
2842
2844
  onRequestClose: () => n(!1),
2843
2845
  navigation: r
2844
2846
  }
2845
2847
  ),
2846
- 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(Ai, { className: "flex items-center gap-2 px-4", children: [
2847
- /* @__PURE__ */ c.jsx(Qt, { size: 16, strokeWidth: 1.5 }),
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 }),
2848
2850
  /* @__PURE__ */ c.jsx("span", { className: "text-sm", children: "Menu" })
2849
2851
  ] }) }),
2850
2852
  /* @__PURE__ */ c.jsxs(
@@ -2866,13 +2868,13 @@ const Ji = ({
2866
2868
  ]
2867
2869
  }
2868
2870
  );
2869
- }, Mi = () => /* @__PURE__ */ c.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ c.jsx(an, {}) }), Bi = ({ children: e }) => {
2870
- const { authentication: t } = V();
2871
- return Bt(), Ei(), te(() => {
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(() => {
2872
2874
  t?.onPageLoad?.();
2873
- }, [t]), /* @__PURE__ */ c.jsxs(qt, { children: [
2875
+ }, [t]), /* @__PURE__ */ c.jsxs(tn, { children: [
2874
2876
  /* @__PURE__ */ c.jsx(N.Target, { name: "layout-before-head" }),
2875
- /* @__PURE__ */ c.jsx(Vt, {}),
2877
+ /* @__PURE__ */ c.jsx(nn, {}),
2876
2878
  /* @__PURE__ */ c.jsx(N.Target, { name: "layout-after-head" }),
2877
2879
  /* @__PURE__ */ c.jsx(
2878
2880
  "div",
@@ -2882,20 +2884,20 @@ const Ji = ({
2882
2884
  "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2883
2885
  "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2884
2886
  ),
2885
- children: /* @__PURE__ */ c.jsx(Pt, { fallback: /* @__PURE__ */ c.jsx(Mi, {}), children: /* @__PURE__ */ c.jsx(Li, { children: e ?? /* @__PURE__ */ c.jsx(It, {}) }) })
2887
+ children: /* @__PURE__ */ c.jsx(Et, { fallback: /* @__PURE__ */ c.jsx(Wi, {}), children: /* @__PURE__ */ c.jsx(qi, { children: e ?? /* @__PURE__ */ c.jsx(Dt, {}) }) })
2886
2888
  }
2887
2889
  ),
2888
- /* @__PURE__ */ c.jsx(Ri, {})
2890
+ /* @__PURE__ */ c.jsx(Ui, {})
2889
2891
  ] });
2890
- }, qi = ({ children: e }) => {
2891
- const { meta: t, options: n } = V(), r = Je();
2892
+ }, Hi = ({ children: e }) => {
2893
+ const { meta: t, options: n } = q(), r = Le();
2892
2894
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2893
- /* @__PURE__ */ c.jsxs(De, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2895
+ /* @__PURE__ */ c.jsxs(Ce, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2894
2896
  n.canonicalUrlOrigin && /* @__PURE__ */ c.jsx(
2895
2897
  "link",
2896
2898
  {
2897
2899
  rel: "canonical",
2898
- href: nn(
2900
+ href: sn(
2899
2901
  n.canonicalUrlOrigin,
2900
2902
  n.basePath,
2901
2903
  r.pathname
@@ -2914,23 +2916,23 @@ const Ji = ({
2914
2916
  ] }),
2915
2917
  e
2916
2918
  ] });
2917
- }, Vi = ({
2919
+ }, Gi = ({
2918
2920
  title: e = "An error occurred",
2919
2921
  message: t,
2920
2922
  category: n
2921
- }) => /* @__PURE__ */ c.jsxs(Le, { className: "h-full pt-(--padding-content-top)", children: [
2922
- n && /* @__PURE__ */ c.jsx(Ve, { children: n }),
2923
- e && /* @__PURE__ */ c.jsx(Me, { level: 1, className: "flex gap-3.5 items-center", children: e }),
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 }),
2924
2926
  /* @__PURE__ */ c.jsx("p", { children: t })
2925
- ] }), bt = () => {
2926
- const e = Rt();
2927
- return /* @__PURE__ */ c.jsxs(Le, { className: "h-full pt-(--padding-content-top)", children: [
2928
- /* @__PURE__ */ c.jsx(Ve, { children: "404" }),
2929
- /* @__PURE__ */ c.jsxs(Me, { level: 1, className: "flex gap-3.5 items-center", children: [
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: [
2930
2932
  "Page not found",
2931
- /* @__PURE__ */ c.jsx(Xt, { size: 24 })
2933
+ /* @__PURE__ */ c.jsx(Kt, { size: 24 })
2932
2934
  ] }),
2933
- /* @__PURE__ */ c.jsxs(Wt, { children: [
2935
+ /* @__PURE__ */ c.jsxs(rn, { children: [
2934
2936
  "Start by adding a file at",
2935
2937
  " ",
2936
2938
  /* @__PURE__ */ c.jsxs("code", { children: [
@@ -2946,9 +2948,9 @@ const Ji = ({
2946
2948
  " is the `pages` directory."
2947
2949
  ] }),
2948
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." }),
2949
- /* @__PURE__ */ c.jsx(At, { to: "/", children: "Go back home" })
2951
+ /* @__PURE__ */ c.jsx(Ut, { to: "/", children: "Go back home" })
2950
2952
  ] });
2951
- }, Wi = (e) => {
2953
+ }, Yi = (e) => {
2952
2954
  switch (e) {
2953
2955
  case 400:
2954
2956
  return {
@@ -3011,12 +3013,12 @@ const Ji = ({
3011
3013
  message: "Something went wrong while processing your request."
3012
3014
  };
3013
3015
  }
3014
- }, Ki = ({ statusCode: e, message: t }) => {
3016
+ }, Qi = ({ statusCode: e, message: t }) => {
3015
3017
  if (e === 404)
3016
- return /* @__PURE__ */ c.jsx(bt, {});
3017
- const n = Wi(e);
3018
+ return /* @__PURE__ */ c.jsx(kt, {});
3019
+ const n = Yi(e);
3018
3020
  return /* @__PURE__ */ c.jsx(
3019
- Vi,
3021
+ Gi,
3020
3022
  {
3021
3023
  title: n.title,
3022
3024
  message: t ?? n.message,
@@ -3024,24 +3026,46 @@ const Ji = ({
3024
3026
  }
3025
3027
  );
3026
3028
  };
3027
- function Hi({ className: e }) {
3028
- const t = Dt();
3029
- return Ct(t) && t.status === 404 ? /* @__PURE__ */ c.jsx(bt, {}) : /* @__PURE__ */ c.jsx("div", { className: S("mx-4 max-w-2xl", e), children: /* @__PURE__ */ c.jsx(Be, { error: t }) });
3030
- }
3031
- function Gi({ error: e }) {
3032
- return /* @__PURE__ */ c.jsx(Be, { error: e });
3033
- }
3034
- const ma = Bi, ga = Hi, _a = Gi, va = ln, ya = dn, wa = Kt, za = De, ba = Ki, ka = Ti, $a = qi;
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;
3035
3058
  export {
3036
- va as Bootstrap,
3037
- ya as BootstrapStatic,
3038
- ka as BuildCheck,
3039
- za as Head,
3040
- ma as Layout,
3041
- $a as Meta,
3042
- wa as RouteGuard,
3043
- ga as RouterError,
3044
- _a as ServerError,
3045
- ba 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
3046
3070
  };
3047
3071
  //# sourceMappingURL=zudoku.__internal.js.map