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