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