zudoku 0.3.0-dev.8 → 0.3.0-dev.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/App.d.ts +1 -2
- package/dist/app/App.js +1 -29
- package/dist/app/App.js.map +1 -1
- package/dist/app/demo.d.ts +2 -0
- package/dist/app/demo.js +32 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/entry.client.d.ts +2 -0
- package/dist/app/entry.client.js +35 -0
- package/dist/app/entry.client.js.map +1 -0
- package/dist/app/entry.server.d.ts +14 -0
- package/dist/app/entry.server.js +105 -0
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +6 -1
- package/dist/app/main.js +72 -12
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +37 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -4
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +3 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +19 -45
- package/dist/config/validators/validate.d.ts +911 -2
- package/dist/config/validators/validate.js +151 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +2 -0
- package/dist/internal.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
- package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +10 -9
- package/dist/lib/authentication/components/SignIn.d.ts +1 -0
- package/dist/lib/authentication/components/SignIn.js +14 -0
- package/dist/lib/authentication/components/SignIn.js.map +1 -0
- package/dist/lib/authentication/components/SignOut.d.ts +1 -0
- package/dist/lib/authentication/components/SignOut.js +12 -0
- package/dist/lib/authentication/components/SignOut.js.map +1 -0
- package/dist/lib/authentication/components/SignUp.d.ts +1 -0
- package/dist/lib/authentication/components/SignUp.js +10 -0
- package/dist/lib/authentication/components/SignUp.js.map +1 -0
- package/dist/lib/authentication/hook.js +2 -2
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -6
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +59 -30
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +30 -7
- package/dist/lib/authentication/providers/openid.js +78 -29
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.js +1 -1
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +13 -0
- package/dist/lib/components/Bootstrap.js +12 -0
- package/dist/lib/components/Bootstrap.js.map +1 -0
- package/dist/lib/components/DevPortal.d.ts +5 -19
- package/dist/lib/components/DevPortal.js +57 -15
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/DeveloperHint.d.ts +5 -0
- package/dist/lib/components/DeveloperHint.js +10 -0
- package/dist/lib/components/DeveloperHint.js.map +1 -0
- package/dist/lib/components/ErrorPage.d.ts +6 -0
- package/dist/lib/components/ErrorPage.js +9 -0
- package/dist/lib/components/ErrorPage.js.map +1 -0
- package/dist/lib/components/Header.js +21 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +5 -0
- package/dist/lib/components/InlineCode.js +4 -0
- package/dist/lib/components/InlineCode.js.map +1 -0
- package/dist/lib/components/Layout.js +4 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/NotFoundPage.d.ts +1 -0
- package/dist/lib/components/NotFoundPage.js +12 -0
- package/dist/lib/components/NotFoundPage.js.map +1 -0
- package/dist/lib/components/SlotletProvider.d.ts +9 -0
- package/dist/lib/components/SlotletProvider.js +11 -0
- package/dist/lib/components/SlotletProvider.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
- package/dist/lib/components/SyntaxHighlight.js +24 -22
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +5 -1
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +20 -3
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +32 -3
- package/dist/lib/components/index.js +21 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigation.js +3 -2
- package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationCategory.js +3 -3
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -4
- package/dist/lib/components/navigation/SideNavigationItem.js +4 -4
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +4 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js +17 -5
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +52 -13
- package/dist/lib/core/DevPortalContext.js +10 -14
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +22 -5
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +12 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/ServerError.d.ts +3 -0
- package/dist/lib/errors/ServerError.js +6 -0
- package/dist/lib/errors/ServerError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +8 -5
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +38 -12
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +2 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +40 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
- package/dist/lib/plugins/{api-key → api-keys}/index.js +12 -20
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/custom-page/index.d.ts +8 -0
- package/dist/lib/plugins/custom-page/index.js +12 -0
- package/dist/lib/plugins/custom-page/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +7 -6
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +17 -9
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +3 -7
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +17 -5
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.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/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +23 -0
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +3 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +19 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +4 -0
- package/dist/lib/plugins/openapi/Sidecar.js +43 -19
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
- package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/createServer.js +30 -0
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
- package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
- package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +4 -18
- package/dist/lib/plugins/openapi/index.js +62 -21
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +4 -5
- package/dist/lib/plugins/openapi/playground/PathParams.js +9 -13
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +26 -14
- package/dist/lib/plugins/openapi/playground/Playground.js +53 -25
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -12
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +1 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +0 -1
- package/dist/lib/plugins/redirect/index.js +3 -4
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +5 -1
- package/dist/lib/ui/Button.js +24 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.js +2 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.d.ts +27 -0
- package/dist/lib/ui/DropdownMenu.js +36 -0
- package/dist/lib/ui/DropdownMenu.js.map +1 -0
- package/dist/lib/ui/Input.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +2 -2
- package/dist/lib/util/MdxComponents.js +7 -5
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/fetchTimeout.d.ts +1 -0
- package/dist/lib/util/fetchTimeout.js +14 -0
- package/dist/lib/util/fetchTimeout.js.map +1 -0
- package/dist/lib/util/groupBy.d.ts +1 -6
- package/dist/lib/util/groupBy.js +10 -8
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -0
- package/dist/lib/util/invariant.js +21 -0
- package/dist/lib/util/invariant.js.map +1 -0
- package/dist/lib/util/joinPath.js +2 -1
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/logInit.d.ts +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
- package/dist/vite/build.js +30 -7
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +21 -12
- package/dist/vite/config.js +107 -55
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +6 -3
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +2 -1
- package/dist/vite/dev-server.js +44 -15
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +18 -5
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +7 -8
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +9 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +5 -6
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.js +5 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +0 -2
- package/dist/vite/plugin-config.js +2 -13
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +6 -0
- package/dist/vite/plugin-custom-css.js +54 -0
- package/dist/vite/plugin-custom-css.js.map +1 -0
- package/dist/vite/plugin-docs.js +15 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +5 -5
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.js +1 -1
- package/dist/vite/plugin-metadata.js.map +1 -1
- package/dist/vite/plugin-redirect.js +10 -10
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin.js +3 -5
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +17 -0
- package/dist/vite/prerender.js +79 -0
- package/dist/vite/prerender.js.map +1 -0
- package/lib/AnchorLink-BZcpTwOs.js +705 -0
- package/lib/AnchorLink-BZcpTwOs.js.map +1 -0
- package/lib/AuthenticationPlugin-XS0DoAhE.js +55 -0
- package/lib/AuthenticationPlugin-XS0DoAhE.js.map +1 -0
- package/lib/CategoryHeading-DCmchnA1.js +10 -0
- package/lib/CategoryHeading-DCmchnA1.js.map +1 -0
- package/lib/Combination-C442XfGG.js +2789 -0
- package/lib/Combination-C442XfGG.js.map +1 -0
- package/lib/DevPortalProvider-BWeAysxF.js +1126 -0
- package/lib/DevPortalProvider-BWeAysxF.js.map +1 -0
- package/lib/DeveloperHint-DQVwIery.js +10 -0
- package/lib/DeveloperHint-DQVwIery.js.map +1 -0
- package/lib/Input-3IEt27jb.js +2239 -0
- package/lib/Input-3IEt27jb.js.map +1 -0
- package/lib/Markdown-QsZ-PHET.js +14124 -0
- package/lib/Markdown-QsZ-PHET.js.map +1 -0
- package/lib/MdxPage-CA1WmW14.js +201 -0
- package/lib/MdxPage-CA1WmW14.js.map +1 -0
- package/lib/OperationList-rv6Z3wD3.js +431 -0
- package/lib/OperationList-rv6Z3wD3.js.map +1 -0
- package/lib/Route-Clw81GSR.js +13 -0
- package/lib/Route-Clw81GSR.js.map +1 -0
- package/lib/SlotletProvider-B71hNEUL.js +82 -0
- package/lib/SlotletProvider-B71hNEUL.js.map +1 -0
- package/lib/Spinner-Coi7ORUV.js +244 -0
- package/lib/Spinner-Coi7ORUV.js.map +1 -0
- package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
- package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +1 -0
- package/lib/assets/index-BPdJm2ty.js.map +1 -0
- package/lib/assets/{worker-BCcpCNJ7.js → worker-CyHZIIfE.js} +10727 -10300
- package/lib/assets/worker-CyHZIIfE.js.map +1 -0
- package/lib/index-BH-Ub36F.js +124 -0
- package/lib/index-BH-Ub36F.js.map +1 -0
- package/lib/index-CLkuJSxj.js +5950 -0
- package/lib/index-CLkuJSxj.js.map +1 -0
- package/lib/index-Dt-pU7Vu.js +916 -0
- package/lib/index-Dt-pU7Vu.js.map +1 -0
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/index-pI9JkN46.js.map +1 -0
- package/lib/jsx-runtime-CJBdjYYx.js +1526 -0
- package/lib/jsx-runtime-CJBdjYYx.js.map +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
- package/lib/prism-java.min-d5iT_mOd.js +1 -0
- package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
- package/lib/prism-json.min-B1GJqK1k.js +1 -0
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
- package/lib/prism-php.min-o7FpoMP_.js +1 -0
- package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
- package/lib/router-BiRCp01d.js +2971 -0
- package/lib/router-BiRCp01d.js.map +1 -0
- package/lib/slugify-CiPVjteN.js +28 -0
- package/lib/slugify-CiPVjteN.js.map +1 -0
- package/lib/state-DsXXkBLH.js +288 -0
- package/lib/state-DsXXkBLH.js.map +1 -0
- package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -2
- package/lib/urql-DrBfkb92.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +31 -20
- package/lib/zudoku.auth-auth0.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +59 -29
- package/lib/zudoku.auth-clerk.js.map +1 -0
- package/lib/zudoku.auth-openid.js +740 -573
- package/lib/zudoku.auth-openid.js.map +1 -0
- package/lib/zudoku.components.js +1854 -535
- package/lib/zudoku.components.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +15035 -146
- package/lib/zudoku.openapi-worker.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +303 -0
- package/lib/zudoku.plugin-api-keys.js.map +1 -0
- package/lib/zudoku.plugin-custom-page.js +13 -0
- package/lib/zudoku.plugin-custom-page.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +48 -0
- package/lib/zudoku.plugin-markdown.js.map +1 -0
- package/lib/zudoku.plugin-openapi.js +12 -0
- package/lib/zudoku.plugin-openapi.js.map +1 -0
- package/lib/zudoku.plugin-redirect.js +11 -0
- package/lib/zudoku.plugin-redirect.js.map +1 -0
- package/package.json +60 -25
- package/src/app/App.tsx +0 -41
- package/src/app/demo-cdn.html +26 -0
- package/src/app/demo.html +18 -0
- package/src/app/demo.tsx +45 -0
- package/src/app/entry.client.tsx +47 -0
- package/src/app/entry.server.tsx +160 -0
- package/src/app/main.css +85 -5
- package/src/app/main.tsx +85 -15
- package/src/app/standalone.html +20 -0
- package/src/app/standalone.tsx +51 -0
- package/src/app/tailwind.ts +2 -6
- package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
- package/src/lib/authentication/authentication.ts +6 -12
- package/src/lib/authentication/components/SignIn.tsx +15 -0
- package/src/lib/authentication/components/SignOut.tsx +13 -0
- package/src/lib/authentication/components/SignUp.tsx +11 -0
- package/src/lib/authentication/hook.ts +2 -2
- package/src/lib/authentication/providers/auth0.tsx +16 -6
- package/src/lib/authentication/providers/clerk.tsx +63 -31
- package/src/lib/authentication/providers/openid.tsx +105 -34
- package/src/lib/authentication/state.ts +1 -1
- package/src/lib/components/Bootstrap.tsx +44 -0
- package/src/lib/components/DevPortal.tsx +88 -53
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/ErrorPage.tsx +28 -0
- package/src/lib/components/Header.tsx +103 -30
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/InlineCode.tsx +19 -0
- package/src/lib/components/Layout.tsx +12 -7
- package/src/lib/components/NotFoundPage.tsx +33 -0
- package/src/lib/components/SlotletProvider.tsx +25 -0
- package/src/lib/components/SyntaxHighlight.tsx +53 -44
- package/src/lib/components/TopNavigation.tsx +6 -1
- package/src/lib/components/context/DevPortalProvider.ts +24 -4
- package/src/lib/components/index.ts +25 -3
- package/src/lib/components/navigation/SideNavigation.tsx +3 -0
- package/src/lib/components/navigation/SideNavigationCategory.tsx +5 -9
- package/src/lib/components/navigation/SideNavigationItem.tsx +5 -9
- package/src/lib/components/navigation/useNavigationCollapsibleState.ts +21 -6
- package/src/lib/core/DevPortalContext.ts +64 -28
- package/src/lib/core/plugins.ts +37 -6
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +13 -0
- package/src/lib/errors/ServerError.tsx +5 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/graphql/index.ts +11 -6
- package/src/lib/oas/parser/index.ts +41 -20
- package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
- package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -9
- package/src/lib/plugins/{api-key → api-keys}/index.tsx +17 -41
- package/src/lib/plugins/custom-page/index.tsx +22 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
- package/src/lib/plugins/markdown/Toc.tsx +53 -40
- package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
- package/src/lib/plugins/markdown/index.tsx +10 -7
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
- package/src/lib/plugins/openapi/OperationList.tsx +46 -10
- package/src/lib/plugins/openapi/OperationListItem.tsx +68 -42
- package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +39 -0
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -15
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -2
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +113 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +62 -28
- package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
- package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
- package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
- package/src/lib/plugins/openapi/client/createServer.ts +33 -0
- package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
- package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
- package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
- package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
- package/src/lib/plugins/openapi/index.tsx +117 -53
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +76 -50
- package/src/lib/plugins/openapi/playground/Playground.tsx +239 -229
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +40 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +107 -66
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
- package/src/lib/plugins/openapi/playground/createUrl.ts +12 -15
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi-worker.ts +1 -1
- package/src/lib/plugins/redirect/index.tsx +3 -4
- package/src/lib/ui/Button.tsx +32 -2
- package/src/lib/ui/Callout.tsx +4 -4
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/DropdownMenu.tsx +199 -0
- package/src/lib/util/MdxComponents.tsx +7 -15
- package/src/lib/util/fetchTimeout.tsx +21 -0
- package/src/lib/util/groupBy.ts +7 -12
- package/src/lib/util/invariant.ts +26 -0
- package/src/lib/util/joinPath.tsx +2 -1
- package/src/lib/util/logInit.ts +9 -0
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
- package/dist/lib/authentication/Callback.d.ts +0 -3
- package/dist/lib/authentication/Callback.js +0 -34
- package/dist/lib/authentication/Callback.js.map +0 -1
- package/dist/lib/components/Input.js.map +0 -1
- package/dist/lib/components/Link.d.ts +0 -1
- package/dist/lib/components/Link.js +0 -2
- package/dist/lib/components/Link.js.map +0 -1
- package/dist/lib/components/Router.d.ts +0 -4
- package/dist/lib/components/Router.js +0 -20
- package/dist/lib/components/Router.js.map +0 -1
- package/dist/lib/core/helmet.d.ts +0 -4
- package/dist/lib/core/helmet.js +0 -5
- package/dist/lib/core/helmet.js.map +0 -1
- package/dist/lib/core/icons.d.ts +0 -1
- package/dist/lib/core/icons.js +0 -2
- package/dist/lib/core/icons.js.map +0 -1
- package/dist/lib/core/router.d.ts +0 -1
- package/dist/lib/core/router.js +0 -2
- package/dist/lib/core/router.js.map +0 -1
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +0 -43
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/lib/plugins/openapi/Select.js +0 -5
- package/dist/lib/plugins/openapi/Select.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
- package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
- package/dist/lib/ui/button-variants.d.ts +0 -4
- package/dist/lib/ui/button-variants.js +0 -24
- package/dist/lib/ui/button-variants.js.map +0 -1
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/dist/vite/plugin-html.d.ts +0 -3
- package/dist/vite/plugin-html.js +0 -47
- package/dist/vite/plugin-html.js.map +0 -1
- package/dist/vite/plugin-openapi-worker.d.ts +0 -4
- package/dist/vite/plugin-openapi-worker.js +0 -28
- package/dist/vite/plugin-openapi-worker.js.map +0 -1
- package/lib/Spinner-BewqqUU-.js +0 -8413
- package/lib/clerk-Wslx_mPo.js +0 -19685
- package/lib/index-PyGcnQFX.js +0 -3462
- package/lib/loglevel-CoH7VSwE.js +0 -152
- package/lib/state-2Hu1renZ.js +0 -313
- package/lib/zudoku.plugins.js +0 -19902
- package/src/lib/authentication/Callback.tsx +0 -60
- package/src/lib/components/Link.tsx +0 -1
- package/src/lib/components/Router.tsx +0 -28
- package/src/lib/core/helmet.ts +0 -5
- package/src/lib/core/icons.tsx +0 -1
- package/src/lib/core/router.tsx +0 -1
- package/src/lib/plugins/index.ts +0 -4
- package/src/lib/plugins/openapi/MakeRequest.tsx +0 -63
- package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
- package/src/lib/ui/button-variants.ts +0 -31
- /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
- /package/dist/lib/{components → ui}/Input.d.ts +0 -0
- /package/dist/lib/{components → ui}/Input.js +0 -0
- /package/src/lib/{components → ui}/Input.tsx +0 -0
|
@@ -0,0 +1,1526 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import it from "react";
|
|
3
|
+
import { b as R, j as le, g as Oe, w as V, c as Ne, d as st, A as xe, p as Pe, s as _e, i as ut, m as lt, e as or, f as ir, I as sr, h as ct, k as ft, l as ur, n as lr, o as cr, q as fr, t as dr, a as pr, u as vr, v as hr } from "./router-BiRCp01d.js";
|
|
4
|
+
/**
|
|
5
|
+
* React Router v6.25.1
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Remix Software Inc.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
+
*
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
function B() {
|
|
15
|
+
return B = Object.assign ? Object.assign.bind() : function(t) {
|
|
16
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
17
|
+
var n = arguments[r];
|
|
18
|
+
for (var i in n)
|
|
19
|
+
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
}, B.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
const q = /* @__PURE__ */ a.createContext(null);
|
|
25
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "DataRouter");
|
|
26
|
+
const fe = /* @__PURE__ */ a.createContext(null);
|
|
27
|
+
process.env.NODE_ENV !== "production" && (fe.displayName = "DataRouterState");
|
|
28
|
+
const re = /* @__PURE__ */ a.createContext(null);
|
|
29
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "Await");
|
|
30
|
+
const M = /* @__PURE__ */ a.createContext(null);
|
|
31
|
+
process.env.NODE_ENV !== "production" && (M.displayName = "Navigation");
|
|
32
|
+
const z = /* @__PURE__ */ a.createContext(null);
|
|
33
|
+
process.env.NODE_ENV !== "production" && (z.displayName = "Location");
|
|
34
|
+
const U = /* @__PURE__ */ a.createContext({
|
|
35
|
+
outlet: null,
|
|
36
|
+
matches: [],
|
|
37
|
+
isDataRoute: !1
|
|
38
|
+
});
|
|
39
|
+
process.env.NODE_ENV !== "production" && (U.displayName = "Route");
|
|
40
|
+
const De = /* @__PURE__ */ a.createContext(null);
|
|
41
|
+
process.env.NODE_ENV !== "production" && (De.displayName = "RouteError");
|
|
42
|
+
function mr(t, r) {
|
|
43
|
+
let {
|
|
44
|
+
relative: n
|
|
45
|
+
} = r === void 0 ? {} : r;
|
|
46
|
+
Y() || (process.env.NODE_ENV !== "production" ? R(
|
|
47
|
+
!1,
|
|
48
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
49
|
+
// router loaded. We can help them understand how to avoid that.
|
|
50
|
+
"useHref() may be used only in the context of a <Router> component."
|
|
51
|
+
) : R(!1));
|
|
52
|
+
let {
|
|
53
|
+
basename: i,
|
|
54
|
+
navigator: u
|
|
55
|
+
} = a.useContext(M), {
|
|
56
|
+
hash: f,
|
|
57
|
+
pathname: l,
|
|
58
|
+
search: h
|
|
59
|
+
} = Et(t, {
|
|
60
|
+
relative: n
|
|
61
|
+
}), v = l;
|
|
62
|
+
return i !== "/" && (v = l === "/" ? i : le([i, l])), u.createHref({
|
|
63
|
+
pathname: v,
|
|
64
|
+
search: h,
|
|
65
|
+
hash: f
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function Y() {
|
|
69
|
+
return a.useContext(z) != null;
|
|
70
|
+
}
|
|
71
|
+
function G() {
|
|
72
|
+
return Y() || (process.env.NODE_ENV !== "production" ? R(
|
|
73
|
+
!1,
|
|
74
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
75
|
+
// router loaded. We can help them understand how to avoid that.
|
|
76
|
+
"useLocation() may be used only in the context of a <Router> component."
|
|
77
|
+
) : R(!1)), a.useContext(z).location;
|
|
78
|
+
}
|
|
79
|
+
function Er() {
|
|
80
|
+
return a.useContext(z).navigationType;
|
|
81
|
+
}
|
|
82
|
+
function yr(t) {
|
|
83
|
+
Y() || (process.env.NODE_ENV !== "production" ? R(
|
|
84
|
+
!1,
|
|
85
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
86
|
+
// router loaded. We can help them understand how to avoid that.
|
|
87
|
+
"useMatch() may be used only in the context of a <Router> component."
|
|
88
|
+
) : R(!1));
|
|
89
|
+
let {
|
|
90
|
+
pathname: r
|
|
91
|
+
} = G();
|
|
92
|
+
return a.useMemo(() => lt(t, or(r)), [r, t]);
|
|
93
|
+
}
|
|
94
|
+
const dt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
95
|
+
function pt(t) {
|
|
96
|
+
a.useContext(M).static || a.useLayoutEffect(t);
|
|
97
|
+
}
|
|
98
|
+
function vt() {
|
|
99
|
+
let {
|
|
100
|
+
isDataRoute: t
|
|
101
|
+
} = a.useContext(U);
|
|
102
|
+
return t ? Vr() : gr();
|
|
103
|
+
}
|
|
104
|
+
function gr() {
|
|
105
|
+
Y() || (process.env.NODE_ENV !== "production" ? R(
|
|
106
|
+
!1,
|
|
107
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
108
|
+
// router loaded. We can help them understand how to avoid that.
|
|
109
|
+
"useNavigate() may be used only in the context of a <Router> component."
|
|
110
|
+
) : R(!1));
|
|
111
|
+
let t = a.useContext(q), {
|
|
112
|
+
basename: r,
|
|
113
|
+
future: n,
|
|
114
|
+
navigator: i
|
|
115
|
+
} = a.useContext(M), {
|
|
116
|
+
matches: u
|
|
117
|
+
} = a.useContext(U), {
|
|
118
|
+
pathname: f
|
|
119
|
+
} = G(), l = JSON.stringify(Oe(u, n.v7_relativeSplatPath)), h = a.useRef(!1);
|
|
120
|
+
return pt(() => {
|
|
121
|
+
h.current = !0;
|
|
122
|
+
}), a.useCallback(function(m, d) {
|
|
123
|
+
if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && V(h.current, dt), !h.current) return;
|
|
124
|
+
if (typeof m == "number") {
|
|
125
|
+
i.go(m);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
let c = Ne(m, JSON.parse(l), f, d.relative === "path");
|
|
129
|
+
t == null && r !== "/" && (c.pathname = c.pathname === "/" ? r : le([r, c.pathname])), (d.replace ? i.replace : i.push)(c, d.state, d);
|
|
130
|
+
}, [r, i, l, f, t]);
|
|
131
|
+
}
|
|
132
|
+
const ht = /* @__PURE__ */ a.createContext(null);
|
|
133
|
+
function br() {
|
|
134
|
+
return a.useContext(ht);
|
|
135
|
+
}
|
|
136
|
+
function mt(t) {
|
|
137
|
+
let r = a.useContext(U).outlet;
|
|
138
|
+
return r && /* @__PURE__ */ a.createElement(ht.Provider, {
|
|
139
|
+
value: t
|
|
140
|
+
}, r);
|
|
141
|
+
}
|
|
142
|
+
function Rr() {
|
|
143
|
+
let {
|
|
144
|
+
matches: t
|
|
145
|
+
} = a.useContext(U), r = t[t.length - 1];
|
|
146
|
+
return r ? r.params : {};
|
|
147
|
+
}
|
|
148
|
+
function Et(t, r) {
|
|
149
|
+
let {
|
|
150
|
+
relative: n
|
|
151
|
+
} = r === void 0 ? {} : r, {
|
|
152
|
+
future: i
|
|
153
|
+
} = a.useContext(M), {
|
|
154
|
+
matches: u
|
|
155
|
+
} = a.useContext(U), {
|
|
156
|
+
pathname: f
|
|
157
|
+
} = G(), l = JSON.stringify(Oe(u, i.v7_relativeSplatPath));
|
|
158
|
+
return a.useMemo(() => Ne(t, JSON.parse(l), f, n === "path"), [t, l, f, n]);
|
|
159
|
+
}
|
|
160
|
+
function yt(t, r) {
|
|
161
|
+
return Se(t, r);
|
|
162
|
+
}
|
|
163
|
+
function Se(t, r, n, i) {
|
|
164
|
+
Y() || (process.env.NODE_ENV !== "production" ? R(
|
|
165
|
+
!1,
|
|
166
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
167
|
+
// router loaded. We can help them understand how to avoid that.
|
|
168
|
+
"useRoutes() may be used only in the context of a <Router> component."
|
|
169
|
+
) : R(!1));
|
|
170
|
+
let {
|
|
171
|
+
navigator: u
|
|
172
|
+
} = a.useContext(M), {
|
|
173
|
+
matches: f
|
|
174
|
+
} = a.useContext(U), l = f[f.length - 1], h = l ? l.params : {}, v = l ? l.pathname : "/", m = l ? l.pathnameBase : "/", d = l && l.route;
|
|
175
|
+
if (process.env.NODE_ENV !== "production") {
|
|
176
|
+
let E = d && d.path || "";
|
|
177
|
+
_t(v, !d || E.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + v + '" (under <Route path="' + E + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
178
|
+
|
|
179
|
+
` + ('Please change the parent <Route path="' + E + '"> to <Route ') + ('path="' + (E === "/" ? "*" : E + "/*") + '">.'));
|
|
180
|
+
}
|
|
181
|
+
let c = G(), y;
|
|
182
|
+
if (r) {
|
|
183
|
+
var O;
|
|
184
|
+
let E = typeof r == "string" ? Pe(r) : r;
|
|
185
|
+
m === "/" || (O = E.pathname) != null && O.startsWith(m) || (process.env.NODE_ENV !== "production" ? R(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + m + '" ') + ('but pathname "' + E.pathname + '" was given in the `location` prop.')) : R(!1)), y = E;
|
|
186
|
+
} else
|
|
187
|
+
y = c;
|
|
188
|
+
let S = y.pathname || "/", j = S;
|
|
189
|
+
if (m !== "/") {
|
|
190
|
+
let E = m.replace(/^\//, "").split("/");
|
|
191
|
+
j = "/" + S.replace(/^\//, "").split("/").slice(E.length).join("/");
|
|
192
|
+
}
|
|
193
|
+
let P = st(t, {
|
|
194
|
+
pathname: j
|
|
195
|
+
});
|
|
196
|
+
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && V(d || P != null, 'No routes matched location "' + y.pathname + y.search + y.hash + '" '), process.env.NODE_ENV !== "production" && V(P == null || P[P.length - 1].route.element !== void 0 || P[P.length - 1].route.Component !== void 0 || P[P.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + y.pathname + y.search + y.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
|
|
197
|
+
let k = gt(P && P.map((E) => Object.assign({}, E, {
|
|
198
|
+
params: Object.assign({}, h, E.params),
|
|
199
|
+
pathname: le([
|
|
200
|
+
m,
|
|
201
|
+
// Re-encode pathnames that were decoded inside matchRoutes
|
|
202
|
+
u.encodeLocation ? u.encodeLocation(E.pathname).pathname : E.pathname
|
|
203
|
+
]),
|
|
204
|
+
pathnameBase: E.pathnameBase === "/" ? m : le([
|
|
205
|
+
m,
|
|
206
|
+
// Re-encode pathnames that were decoded inside matchRoutes
|
|
207
|
+
u.encodeLocation ? u.encodeLocation(E.pathnameBase).pathname : E.pathnameBase
|
|
208
|
+
])
|
|
209
|
+
})), f, n, i);
|
|
210
|
+
return r && k ? /* @__PURE__ */ a.createElement(z.Provider, {
|
|
211
|
+
value: {
|
|
212
|
+
location: B({
|
|
213
|
+
pathname: "/",
|
|
214
|
+
search: "",
|
|
215
|
+
hash: "",
|
|
216
|
+
state: null,
|
|
217
|
+
key: "default"
|
|
218
|
+
}, y),
|
|
219
|
+
navigationType: xe.Pop
|
|
220
|
+
}
|
|
221
|
+
}, k) : k;
|
|
222
|
+
}
|
|
223
|
+
function _r() {
|
|
224
|
+
let t = bt(), r = ut(t) ? t.status + " " + t.statusText : t instanceof Error ? t.message : JSON.stringify(t), n = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", u = {
|
|
225
|
+
padding: "0.5rem",
|
|
226
|
+
backgroundColor: i
|
|
227
|
+
}, f = {
|
|
228
|
+
padding: "2px 4px",
|
|
229
|
+
backgroundColor: i
|
|
230
|
+
}, l = null;
|
|
231
|
+
return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", t), l = /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ a.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ a.createElement("code", {
|
|
232
|
+
style: f
|
|
233
|
+
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */ a.createElement("code", {
|
|
234
|
+
style: f
|
|
235
|
+
}, "errorElement"), " prop on your route."))), /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ a.createElement("h3", {
|
|
236
|
+
style: {
|
|
237
|
+
fontStyle: "italic"
|
|
238
|
+
}
|
|
239
|
+
}, r), n ? /* @__PURE__ */ a.createElement("pre", {
|
|
240
|
+
style: u
|
|
241
|
+
}, n) : null, l);
|
|
242
|
+
}
|
|
243
|
+
const Cr = /* @__PURE__ */ a.createElement(_r, null);
|
|
244
|
+
class Or extends a.Component {
|
|
245
|
+
constructor(r) {
|
|
246
|
+
super(r), this.state = {
|
|
247
|
+
location: r.location,
|
|
248
|
+
revalidation: r.revalidation,
|
|
249
|
+
error: r.error
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
static getDerivedStateFromError(r) {
|
|
253
|
+
return {
|
|
254
|
+
error: r
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
static getDerivedStateFromProps(r, n) {
|
|
258
|
+
return n.location !== r.location || n.revalidation !== "idle" && r.revalidation === "idle" ? {
|
|
259
|
+
error: r.error,
|
|
260
|
+
location: r.location,
|
|
261
|
+
revalidation: r.revalidation
|
|
262
|
+
} : {
|
|
263
|
+
error: r.error !== void 0 ? r.error : n.error,
|
|
264
|
+
location: n.location,
|
|
265
|
+
revalidation: r.revalidation || n.revalidation
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
componentDidCatch(r, n) {
|
|
269
|
+
console.error("React Router caught the following error during render", r, n);
|
|
270
|
+
}
|
|
271
|
+
render() {
|
|
272
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ a.createElement(U.Provider, {
|
|
273
|
+
value: this.props.routeContext
|
|
274
|
+
}, /* @__PURE__ */ a.createElement(De.Provider, {
|
|
275
|
+
value: this.state.error,
|
|
276
|
+
children: this.props.component
|
|
277
|
+
})) : this.props.children;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function Nr(t) {
|
|
281
|
+
let {
|
|
282
|
+
routeContext: r,
|
|
283
|
+
match: n,
|
|
284
|
+
children: i
|
|
285
|
+
} = t, u = a.useContext(q);
|
|
286
|
+
return u && u.static && u.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (u.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ a.createElement(U.Provider, {
|
|
287
|
+
value: r
|
|
288
|
+
}, i);
|
|
289
|
+
}
|
|
290
|
+
function gt(t, r, n, i) {
|
|
291
|
+
var u;
|
|
292
|
+
if (r === void 0 && (r = []), n === void 0 && (n = null), i === void 0 && (i = null), t == null) {
|
|
293
|
+
var f;
|
|
294
|
+
if ((f = n) != null && f.errors)
|
|
295
|
+
t = n.matches;
|
|
296
|
+
else
|
|
297
|
+
return null;
|
|
298
|
+
}
|
|
299
|
+
let l = t, h = (u = n) == null ? void 0 : u.errors;
|
|
300
|
+
if (h != null) {
|
|
301
|
+
let d = l.findIndex((c) => c.route.id && (h == null ? void 0 : h[c.route.id]) !== void 0);
|
|
302
|
+
d >= 0 || (process.env.NODE_ENV !== "production" ? R(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(h).join(",")) : R(!1)), l = l.slice(0, Math.min(l.length, d + 1));
|
|
303
|
+
}
|
|
304
|
+
let v = !1, m = -1;
|
|
305
|
+
if (n && i && i.v7_partialHydration)
|
|
306
|
+
for (let d = 0; d < l.length; d++) {
|
|
307
|
+
let c = l[d];
|
|
308
|
+
if ((c.route.HydrateFallback || c.route.hydrateFallbackElement) && (m = d), c.route.id) {
|
|
309
|
+
let {
|
|
310
|
+
loaderData: y,
|
|
311
|
+
errors: O
|
|
312
|
+
} = n, S = c.route.loader && y[c.route.id] === void 0 && (!O || O[c.route.id] === void 0);
|
|
313
|
+
if (c.route.lazy || S) {
|
|
314
|
+
v = !0, m >= 0 ? l = l.slice(0, m + 1) : l = [l[0]];
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return l.reduceRight((d, c, y) => {
|
|
320
|
+
let O, S = !1, j = null, P = null;
|
|
321
|
+
n && (O = h && c.route.id ? h[c.route.id] : void 0, j = c.route.errorElement || Cr, v && (m < 0 && y === 0 ? (_t("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), S = !0, P = null) : m === y && (S = !0, P = c.route.hydrateFallbackElement || null)));
|
|
322
|
+
let k = r.concat(l.slice(0, y + 1)), E = () => {
|
|
323
|
+
let L;
|
|
324
|
+
return O ? L = j : S ? L = P : c.route.Component ? L = /* @__PURE__ */ a.createElement(c.route.Component, null) : c.route.element ? L = c.route.element : L = d, /* @__PURE__ */ a.createElement(Nr, {
|
|
325
|
+
match: c,
|
|
326
|
+
routeContext: {
|
|
327
|
+
outlet: d,
|
|
328
|
+
matches: k,
|
|
329
|
+
isDataRoute: n != null
|
|
330
|
+
},
|
|
331
|
+
children: L
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
return n && (c.route.ErrorBoundary || c.route.errorElement || y === 0) ? /* @__PURE__ */ a.createElement(Or, {
|
|
335
|
+
location: n.location,
|
|
336
|
+
revalidation: n.revalidation,
|
|
337
|
+
component: j,
|
|
338
|
+
error: O,
|
|
339
|
+
children: E(),
|
|
340
|
+
routeContext: {
|
|
341
|
+
outlet: null,
|
|
342
|
+
matches: k,
|
|
343
|
+
isDataRoute: !0
|
|
344
|
+
}
|
|
345
|
+
}) : E();
|
|
346
|
+
}, null);
|
|
347
|
+
}
|
|
348
|
+
var de = /* @__PURE__ */ function(t) {
|
|
349
|
+
return t.UseBlocker = "useBlocker", t.UseRevalidator = "useRevalidator", t.UseNavigateStable = "useNavigate", t;
|
|
350
|
+
}(de || {}), w = /* @__PURE__ */ function(t) {
|
|
351
|
+
return t.UseBlocker = "useBlocker", t.UseLoaderData = "useLoaderData", t.UseActionData = "useActionData", t.UseRouteError = "useRouteError", t.UseNavigation = "useNavigation", t.UseRouteLoaderData = "useRouteLoaderData", t.UseMatches = "useMatches", t.UseRevalidator = "useRevalidator", t.UseNavigateStable = "useNavigate", t.UseRouteId = "useRouteId", t;
|
|
352
|
+
}(w || {});
|
|
353
|
+
function Te(t) {
|
|
354
|
+
return t + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
355
|
+
}
|
|
356
|
+
function we(t) {
|
|
357
|
+
let r = a.useContext(q);
|
|
358
|
+
return r || (process.env.NODE_ENV !== "production" ? R(!1, Te(t)) : R(!1)), r;
|
|
359
|
+
}
|
|
360
|
+
function W(t) {
|
|
361
|
+
let r = a.useContext(fe);
|
|
362
|
+
return r || (process.env.NODE_ENV !== "production" ? R(!1, Te(t)) : R(!1)), r;
|
|
363
|
+
}
|
|
364
|
+
function xr(t) {
|
|
365
|
+
let r = a.useContext(U);
|
|
366
|
+
return r || (process.env.NODE_ENV !== "production" ? R(!1, Te(t)) : R(!1)), r;
|
|
367
|
+
}
|
|
368
|
+
function ae(t) {
|
|
369
|
+
let r = xr(t), n = r.matches[r.matches.length - 1];
|
|
370
|
+
return n.route.id || (process.env.NODE_ENV !== "production" ? R(!1, t + ' can only be used on routes that contain a unique "id"') : R(!1)), n.route.id;
|
|
371
|
+
}
|
|
372
|
+
function Pr() {
|
|
373
|
+
return ae(w.UseRouteId);
|
|
374
|
+
}
|
|
375
|
+
function Dr() {
|
|
376
|
+
return W(w.UseNavigation).navigation;
|
|
377
|
+
}
|
|
378
|
+
function Sr() {
|
|
379
|
+
let t = we(de.UseRevalidator), r = W(w.UseRevalidator);
|
|
380
|
+
return a.useMemo(() => ({
|
|
381
|
+
revalidate: t.router.revalidate,
|
|
382
|
+
state: r.revalidation
|
|
383
|
+
}), [t.router.revalidate, r.revalidation]);
|
|
384
|
+
}
|
|
385
|
+
function Tr() {
|
|
386
|
+
let {
|
|
387
|
+
matches: t,
|
|
388
|
+
loaderData: r
|
|
389
|
+
} = W(w.UseMatches);
|
|
390
|
+
return a.useMemo(() => t.map((n) => ir(n, r)), [t, r]);
|
|
391
|
+
}
|
|
392
|
+
function wr() {
|
|
393
|
+
let t = W(w.UseLoaderData), r = ae(w.UseLoaderData);
|
|
394
|
+
if (t.errors && t.errors[r] != null) {
|
|
395
|
+
console.error("You cannot `useLoaderData` in an errorElement (routeId: " + r + ")");
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
return t.loaderData[r];
|
|
399
|
+
}
|
|
400
|
+
function kr(t) {
|
|
401
|
+
return W(w.UseRouteLoaderData).loaderData[t];
|
|
402
|
+
}
|
|
403
|
+
function jr() {
|
|
404
|
+
let t = W(w.UseActionData), r = ae(w.UseLoaderData);
|
|
405
|
+
return t.actionData ? t.actionData[r] : void 0;
|
|
406
|
+
}
|
|
407
|
+
function bt() {
|
|
408
|
+
var t;
|
|
409
|
+
let r = a.useContext(De), n = W(w.UseRouteError), i = ae(w.UseRouteError);
|
|
410
|
+
return r !== void 0 ? r : (t = n.errors) == null ? void 0 : t[i];
|
|
411
|
+
}
|
|
412
|
+
function Rt() {
|
|
413
|
+
let t = a.useContext(re);
|
|
414
|
+
return t == null ? void 0 : t._data;
|
|
415
|
+
}
|
|
416
|
+
function Fr() {
|
|
417
|
+
let t = a.useContext(re);
|
|
418
|
+
return t == null ? void 0 : t._error;
|
|
419
|
+
}
|
|
420
|
+
let Ir = 0;
|
|
421
|
+
function Ur(t) {
|
|
422
|
+
let {
|
|
423
|
+
router: r,
|
|
424
|
+
basename: n
|
|
425
|
+
} = we(de.UseBlocker), i = W(w.UseBlocker), [u, f] = a.useState(""), l = a.useCallback((h) => {
|
|
426
|
+
if (typeof t != "function")
|
|
427
|
+
return !!t;
|
|
428
|
+
if (n === "/")
|
|
429
|
+
return t(h);
|
|
430
|
+
let {
|
|
431
|
+
currentLocation: v,
|
|
432
|
+
nextLocation: m,
|
|
433
|
+
historyAction: d
|
|
434
|
+
} = h;
|
|
435
|
+
return t({
|
|
436
|
+
currentLocation: B({}, v, {
|
|
437
|
+
pathname: _e(v.pathname, n) || v.pathname
|
|
438
|
+
}),
|
|
439
|
+
nextLocation: B({}, m, {
|
|
440
|
+
pathname: _e(m.pathname, n) || m.pathname
|
|
441
|
+
}),
|
|
442
|
+
historyAction: d
|
|
443
|
+
});
|
|
444
|
+
}, [n, t]);
|
|
445
|
+
return a.useEffect(() => {
|
|
446
|
+
let h = String(++Ir);
|
|
447
|
+
return f(h), () => r.deleteBlocker(h);
|
|
448
|
+
}, [r]), a.useEffect(() => {
|
|
449
|
+
u !== "" && r.getBlocker(u, l);
|
|
450
|
+
}, [r, u, l]), u && i.blockers.has(u) ? i.blockers.get(u) : sr;
|
|
451
|
+
}
|
|
452
|
+
function Vr() {
|
|
453
|
+
let {
|
|
454
|
+
router: t
|
|
455
|
+
} = we(de.UseNavigateStable), r = ae(w.UseNavigateStable), n = a.useRef(!1);
|
|
456
|
+
return pt(() => {
|
|
457
|
+
n.current = !0;
|
|
458
|
+
}), a.useCallback(function(u, f) {
|
|
459
|
+
f === void 0 && (f = {}), process.env.NODE_ENV !== "production" && V(n.current, dt), n.current && (typeof u == "number" ? t.navigate(u) : t.navigate(u, B({
|
|
460
|
+
fromRouteId: r
|
|
461
|
+
}, f)));
|
|
462
|
+
}, [t, r]);
|
|
463
|
+
}
|
|
464
|
+
const nt = {};
|
|
465
|
+
function _t(t, r, n) {
|
|
466
|
+
!r && !nt[t] && (nt[t] = !0, process.env.NODE_ENV !== "production" && V(!1, n));
|
|
467
|
+
}
|
|
468
|
+
const Ar = "startTransition", ce = a[Ar];
|
|
469
|
+
function Lr(t) {
|
|
470
|
+
let {
|
|
471
|
+
fallbackElement: r,
|
|
472
|
+
router: n,
|
|
473
|
+
future: i
|
|
474
|
+
} = t, [u, f] = a.useState(n.state), {
|
|
475
|
+
v7_startTransition: l
|
|
476
|
+
} = i || {}, h = a.useCallback((c) => {
|
|
477
|
+
l && ce ? ce(() => f(c)) : f(c);
|
|
478
|
+
}, [f, l]);
|
|
479
|
+
a.useLayoutEffect(() => n.subscribe(h), [n, h]), a.useEffect(() => {
|
|
480
|
+
process.env.NODE_ENV !== "production" && V(r == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
481
|
+
}, []);
|
|
482
|
+
let v = a.useMemo(() => ({
|
|
483
|
+
createHref: n.createHref,
|
|
484
|
+
encodeLocation: n.encodeLocation,
|
|
485
|
+
go: (c) => n.navigate(c),
|
|
486
|
+
push: (c, y, O) => n.navigate(c, {
|
|
487
|
+
state: y,
|
|
488
|
+
preventScrollReset: O == null ? void 0 : O.preventScrollReset
|
|
489
|
+
}),
|
|
490
|
+
replace: (c, y, O) => n.navigate(c, {
|
|
491
|
+
replace: !0,
|
|
492
|
+
state: y,
|
|
493
|
+
preventScrollReset: O == null ? void 0 : O.preventScrollReset
|
|
494
|
+
})
|
|
495
|
+
}), [n]), m = n.basename || "/", d = a.useMemo(() => ({
|
|
496
|
+
router: n,
|
|
497
|
+
navigator: v,
|
|
498
|
+
static: !1,
|
|
499
|
+
basename: m
|
|
500
|
+
}), [n, v, m]);
|
|
501
|
+
return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(q.Provider, {
|
|
502
|
+
value: d
|
|
503
|
+
}, /* @__PURE__ */ a.createElement(fe.Provider, {
|
|
504
|
+
value: u
|
|
505
|
+
}, /* @__PURE__ */ a.createElement(ke, {
|
|
506
|
+
basename: m,
|
|
507
|
+
location: u.location,
|
|
508
|
+
navigationType: u.historyAction,
|
|
509
|
+
navigator: v,
|
|
510
|
+
future: {
|
|
511
|
+
v7_relativeSplatPath: n.future.v7_relativeSplatPath
|
|
512
|
+
}
|
|
513
|
+
}, u.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ a.createElement(Mr, {
|
|
514
|
+
routes: n.routes,
|
|
515
|
+
future: n.future,
|
|
516
|
+
state: u
|
|
517
|
+
}) : r))), null);
|
|
518
|
+
}
|
|
519
|
+
function Mr(t) {
|
|
520
|
+
let {
|
|
521
|
+
routes: r,
|
|
522
|
+
future: n,
|
|
523
|
+
state: i
|
|
524
|
+
} = t;
|
|
525
|
+
return Se(r, void 0, i, n);
|
|
526
|
+
}
|
|
527
|
+
function Br(t) {
|
|
528
|
+
let {
|
|
529
|
+
basename: r,
|
|
530
|
+
children: n,
|
|
531
|
+
initialEntries: i,
|
|
532
|
+
initialIndex: u,
|
|
533
|
+
future: f
|
|
534
|
+
} = t, l = a.useRef();
|
|
535
|
+
l.current == null && (l.current = ct({
|
|
536
|
+
initialEntries: i,
|
|
537
|
+
initialIndex: u,
|
|
538
|
+
v5Compat: !0
|
|
539
|
+
}));
|
|
540
|
+
let h = l.current, [v, m] = a.useState({
|
|
541
|
+
action: h.action,
|
|
542
|
+
location: h.location
|
|
543
|
+
}), {
|
|
544
|
+
v7_startTransition: d
|
|
545
|
+
} = f || {}, c = a.useCallback((y) => {
|
|
546
|
+
d && ce ? ce(() => m(y)) : m(y);
|
|
547
|
+
}, [m, d]);
|
|
548
|
+
return a.useLayoutEffect(() => h.listen(c), [h, c]), /* @__PURE__ */ a.createElement(ke, {
|
|
549
|
+
basename: r,
|
|
550
|
+
children: n,
|
|
551
|
+
location: v.location,
|
|
552
|
+
navigationType: v.action,
|
|
553
|
+
navigator: h,
|
|
554
|
+
future: f
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
function Yr(t) {
|
|
558
|
+
let {
|
|
559
|
+
to: r,
|
|
560
|
+
replace: n,
|
|
561
|
+
state: i,
|
|
562
|
+
relative: u
|
|
563
|
+
} = t;
|
|
564
|
+
Y() || (process.env.NODE_ENV !== "production" ? R(
|
|
565
|
+
!1,
|
|
566
|
+
// TODO: This error is probably because they somehow have 2 versions of
|
|
567
|
+
// the router loaded. We can help them understand how to avoid that.
|
|
568
|
+
"<Navigate> may be used only in the context of a <Router> component."
|
|
569
|
+
) : R(!1));
|
|
570
|
+
let {
|
|
571
|
+
future: f,
|
|
572
|
+
static: l
|
|
573
|
+
} = a.useContext(M);
|
|
574
|
+
process.env.NODE_ENV !== "production" && V(!l, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
575
|
+
let {
|
|
576
|
+
matches: h
|
|
577
|
+
} = a.useContext(U), {
|
|
578
|
+
pathname: v
|
|
579
|
+
} = G(), m = vt(), d = Ne(r, Oe(h, f.v7_relativeSplatPath), v, u === "path"), c = JSON.stringify(d);
|
|
580
|
+
return a.useEffect(() => m(JSON.parse(c), {
|
|
581
|
+
replace: n,
|
|
582
|
+
state: i,
|
|
583
|
+
relative: u
|
|
584
|
+
}), [m, c, u, n, i]), null;
|
|
585
|
+
}
|
|
586
|
+
function Wr(t) {
|
|
587
|
+
return mt(t.context);
|
|
588
|
+
}
|
|
589
|
+
function Ct(t) {
|
|
590
|
+
process.env.NODE_ENV !== "production" ? R(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : R(!1);
|
|
591
|
+
}
|
|
592
|
+
function ke(t) {
|
|
593
|
+
let {
|
|
594
|
+
basename: r = "/",
|
|
595
|
+
children: n = null,
|
|
596
|
+
location: i,
|
|
597
|
+
navigationType: u = xe.Pop,
|
|
598
|
+
navigator: f,
|
|
599
|
+
static: l = !1,
|
|
600
|
+
future: h
|
|
601
|
+
} = t;
|
|
602
|
+
Y() && (process.env.NODE_ENV !== "production" ? R(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : R(!1));
|
|
603
|
+
let v = r.replace(/^\/*/, "/"), m = a.useMemo(() => ({
|
|
604
|
+
basename: v,
|
|
605
|
+
navigator: f,
|
|
606
|
+
static: l,
|
|
607
|
+
future: B({
|
|
608
|
+
v7_relativeSplatPath: !1
|
|
609
|
+
}, h)
|
|
610
|
+
}), [v, h, f, l]);
|
|
611
|
+
typeof i == "string" && (i = Pe(i));
|
|
612
|
+
let {
|
|
613
|
+
pathname: d = "/",
|
|
614
|
+
search: c = "",
|
|
615
|
+
hash: y = "",
|
|
616
|
+
state: O = null,
|
|
617
|
+
key: S = "default"
|
|
618
|
+
} = i, j = a.useMemo(() => {
|
|
619
|
+
let P = _e(d, v);
|
|
620
|
+
return P == null ? null : {
|
|
621
|
+
location: {
|
|
622
|
+
pathname: P,
|
|
623
|
+
search: c,
|
|
624
|
+
hash: y,
|
|
625
|
+
state: O,
|
|
626
|
+
key: S
|
|
627
|
+
},
|
|
628
|
+
navigationType: u
|
|
629
|
+
};
|
|
630
|
+
}, [v, d, c, y, O, S, u]);
|
|
631
|
+
return process.env.NODE_ENV !== "production" && V(j != null, '<Router basename="' + v + '"> is not able to match the URL ' + ('"' + d + c + y + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), j == null ? null : /* @__PURE__ */ a.createElement(M.Provider, {
|
|
632
|
+
value: m
|
|
633
|
+
}, /* @__PURE__ */ a.createElement(z.Provider, {
|
|
634
|
+
children: n,
|
|
635
|
+
value: j
|
|
636
|
+
}));
|
|
637
|
+
}
|
|
638
|
+
function $r(t) {
|
|
639
|
+
let {
|
|
640
|
+
children: r,
|
|
641
|
+
location: n
|
|
642
|
+
} = t;
|
|
643
|
+
return yt(ne(r), n);
|
|
644
|
+
}
|
|
645
|
+
function Jr(t) {
|
|
646
|
+
let {
|
|
647
|
+
children: r,
|
|
648
|
+
errorElement: n,
|
|
649
|
+
resolve: i
|
|
650
|
+
} = t;
|
|
651
|
+
return /* @__PURE__ */ a.createElement(Hr, {
|
|
652
|
+
resolve: i,
|
|
653
|
+
errorElement: n
|
|
654
|
+
}, /* @__PURE__ */ a.createElement(Kr, null, r));
|
|
655
|
+
}
|
|
656
|
+
var I = /* @__PURE__ */ function(t) {
|
|
657
|
+
return t[t.pending = 0] = "pending", t[t.success = 1] = "success", t[t.error = 2] = "error", t;
|
|
658
|
+
}(I || {});
|
|
659
|
+
const zr = new Promise(() => {
|
|
660
|
+
});
|
|
661
|
+
class Hr extends a.Component {
|
|
662
|
+
constructor(r) {
|
|
663
|
+
super(r), this.state = {
|
|
664
|
+
error: null
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
static getDerivedStateFromError(r) {
|
|
668
|
+
return {
|
|
669
|
+
error: r
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
componentDidCatch(r, n) {
|
|
673
|
+
console.error("<Await> caught the following error during render", r, n);
|
|
674
|
+
}
|
|
675
|
+
render() {
|
|
676
|
+
let {
|
|
677
|
+
children: r,
|
|
678
|
+
errorElement: n,
|
|
679
|
+
resolve: i
|
|
680
|
+
} = this.props, u = null, f = I.pending;
|
|
681
|
+
if (!(i instanceof Promise))
|
|
682
|
+
f = I.success, u = Promise.resolve(), Object.defineProperty(u, "_tracked", {
|
|
683
|
+
get: () => !0
|
|
684
|
+
}), Object.defineProperty(u, "_data", {
|
|
685
|
+
get: () => i
|
|
686
|
+
});
|
|
687
|
+
else if (this.state.error) {
|
|
688
|
+
f = I.error;
|
|
689
|
+
let l = this.state.error;
|
|
690
|
+
u = Promise.reject().catch(() => {
|
|
691
|
+
}), Object.defineProperty(u, "_tracked", {
|
|
692
|
+
get: () => !0
|
|
693
|
+
}), Object.defineProperty(u, "_error", {
|
|
694
|
+
get: () => l
|
|
695
|
+
});
|
|
696
|
+
} else i._tracked ? (u = i, f = "_error" in u ? I.error : "_data" in u ? I.success : I.pending) : (f = I.pending, Object.defineProperty(i, "_tracked", {
|
|
697
|
+
get: () => !0
|
|
698
|
+
}), u = i.then((l) => Object.defineProperty(i, "_data", {
|
|
699
|
+
get: () => l
|
|
700
|
+
}), (l) => Object.defineProperty(i, "_error", {
|
|
701
|
+
get: () => l
|
|
702
|
+
})));
|
|
703
|
+
if (f === I.error && u._error instanceof ft)
|
|
704
|
+
throw zr;
|
|
705
|
+
if (f === I.error && !n)
|
|
706
|
+
throw u._error;
|
|
707
|
+
if (f === I.error)
|
|
708
|
+
return /* @__PURE__ */ a.createElement(re.Provider, {
|
|
709
|
+
value: u,
|
|
710
|
+
children: n
|
|
711
|
+
});
|
|
712
|
+
if (f === I.success)
|
|
713
|
+
return /* @__PURE__ */ a.createElement(re.Provider, {
|
|
714
|
+
value: u,
|
|
715
|
+
children: r
|
|
716
|
+
});
|
|
717
|
+
throw u;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function Kr(t) {
|
|
721
|
+
let {
|
|
722
|
+
children: r
|
|
723
|
+
} = t, n = Rt(), i = typeof r == "function" ? r(n) : r;
|
|
724
|
+
return /* @__PURE__ */ a.createElement(a.Fragment, null, i);
|
|
725
|
+
}
|
|
726
|
+
function ne(t, r) {
|
|
727
|
+
r === void 0 && (r = []);
|
|
728
|
+
let n = [];
|
|
729
|
+
return a.Children.forEach(t, (i, u) => {
|
|
730
|
+
if (!/* @__PURE__ */ a.isValidElement(i))
|
|
731
|
+
return;
|
|
732
|
+
let f = [...r, u];
|
|
733
|
+
if (i.type === a.Fragment) {
|
|
734
|
+
n.push.apply(n, ne(i.props.children, f));
|
|
735
|
+
return;
|
|
736
|
+
}
|
|
737
|
+
i.type !== Ct && (process.env.NODE_ENV !== "production" ? R(!1, "[" + (typeof i.type == "string" ? i.type : i.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : R(!1)), !i.props.index || !i.props.children || (process.env.NODE_ENV !== "production" ? R(!1, "An index route cannot have child routes.") : R(!1));
|
|
738
|
+
let l = {
|
|
739
|
+
id: i.props.id || f.join("-"),
|
|
740
|
+
caseSensitive: i.props.caseSensitive,
|
|
741
|
+
element: i.props.element,
|
|
742
|
+
Component: i.props.Component,
|
|
743
|
+
index: i.props.index,
|
|
744
|
+
path: i.props.path,
|
|
745
|
+
loader: i.props.loader,
|
|
746
|
+
action: i.props.action,
|
|
747
|
+
errorElement: i.props.errorElement,
|
|
748
|
+
ErrorBoundary: i.props.ErrorBoundary,
|
|
749
|
+
hasErrorBoundary: i.props.ErrorBoundary != null || i.props.errorElement != null,
|
|
750
|
+
shouldRevalidate: i.props.shouldRevalidate,
|
|
751
|
+
handle: i.props.handle,
|
|
752
|
+
lazy: i.props.lazy
|
|
753
|
+
};
|
|
754
|
+
i.props.children && (l.children = ne(i.props.children, f)), n.push(l);
|
|
755
|
+
}), n;
|
|
756
|
+
}
|
|
757
|
+
function qr(t) {
|
|
758
|
+
return gt(t);
|
|
759
|
+
}
|
|
760
|
+
function Ot(t) {
|
|
761
|
+
let r = {
|
|
762
|
+
// Note: this check also occurs in createRoutesFromChildren so update
|
|
763
|
+
// there if you change this -- please and thank you!
|
|
764
|
+
hasErrorBoundary: t.ErrorBoundary != null || t.errorElement != null
|
|
765
|
+
};
|
|
766
|
+
return t.Component && (process.env.NODE_ENV !== "production" && t.element && process.env.NODE_ENV !== "production" && V(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(r, {
|
|
767
|
+
element: /* @__PURE__ */ a.createElement(t.Component),
|
|
768
|
+
Component: void 0
|
|
769
|
+
})), t.HydrateFallback && (process.env.NODE_ENV !== "production" && t.hydrateFallbackElement && process.env.NODE_ENV !== "production" && V(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(r, {
|
|
770
|
+
hydrateFallbackElement: /* @__PURE__ */ a.createElement(t.HydrateFallback),
|
|
771
|
+
HydrateFallback: void 0
|
|
772
|
+
})), t.ErrorBoundary && (process.env.NODE_ENV !== "production" && t.errorElement && process.env.NODE_ENV !== "production" && V(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(r, {
|
|
773
|
+
errorElement: /* @__PURE__ */ a.createElement(t.ErrorBoundary),
|
|
774
|
+
ErrorBoundary: void 0
|
|
775
|
+
})), r;
|
|
776
|
+
}
|
|
777
|
+
function Gr(t, r) {
|
|
778
|
+
return ur({
|
|
779
|
+
basename: r == null ? void 0 : r.basename,
|
|
780
|
+
future: B({}, r == null ? void 0 : r.future, {
|
|
781
|
+
v7_prependBasename: !0
|
|
782
|
+
}),
|
|
783
|
+
history: ct({
|
|
784
|
+
initialEntries: r == null ? void 0 : r.initialEntries,
|
|
785
|
+
initialIndex: r == null ? void 0 : r.initialIndex
|
|
786
|
+
}),
|
|
787
|
+
hydrationData: r == null ? void 0 : r.hydrationData,
|
|
788
|
+
routes: t,
|
|
789
|
+
mapRouteProperties: Ot,
|
|
790
|
+
unstable_dataStrategy: r == null ? void 0 : r.unstable_dataStrategy,
|
|
791
|
+
unstable_patchRoutesOnMiss: r == null ? void 0 : r.unstable_patchRoutesOnMiss
|
|
792
|
+
}).initialize();
|
|
793
|
+
}
|
|
794
|
+
const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
795
|
+
__proto__: null,
|
|
796
|
+
AbortedDeferredError: ft,
|
|
797
|
+
Await: Jr,
|
|
798
|
+
MemoryRouter: Br,
|
|
799
|
+
Navigate: Yr,
|
|
800
|
+
get NavigationType() {
|
|
801
|
+
return xe;
|
|
802
|
+
},
|
|
803
|
+
Outlet: Wr,
|
|
804
|
+
Route: Ct,
|
|
805
|
+
Router: ke,
|
|
806
|
+
RouterProvider: Lr,
|
|
807
|
+
Routes: $r,
|
|
808
|
+
UNSAFE_DataRouterContext: q,
|
|
809
|
+
UNSAFE_DataRouterStateContext: fe,
|
|
810
|
+
UNSAFE_LocationContext: z,
|
|
811
|
+
UNSAFE_NavigationContext: M,
|
|
812
|
+
UNSAFE_RouteContext: U,
|
|
813
|
+
UNSAFE_mapRouteProperties: Ot,
|
|
814
|
+
UNSAFE_useRouteId: Pr,
|
|
815
|
+
UNSAFE_useRoutesImpl: Se,
|
|
816
|
+
createMemoryRouter: Gr,
|
|
817
|
+
createPath: lr,
|
|
818
|
+
createRoutesFromChildren: ne,
|
|
819
|
+
createRoutesFromElements: ne,
|
|
820
|
+
defer: cr,
|
|
821
|
+
generatePath: fr,
|
|
822
|
+
isRouteErrorResponse: ut,
|
|
823
|
+
json: dr,
|
|
824
|
+
matchPath: lt,
|
|
825
|
+
matchRoutes: st,
|
|
826
|
+
parsePath: Pe,
|
|
827
|
+
redirect: pr,
|
|
828
|
+
redirectDocument: vr,
|
|
829
|
+
renderMatches: qr,
|
|
830
|
+
resolvePath: hr,
|
|
831
|
+
useActionData: jr,
|
|
832
|
+
useAsyncError: Fr,
|
|
833
|
+
useAsyncValue: Rt,
|
|
834
|
+
useBlocker: Ur,
|
|
835
|
+
useHref: mr,
|
|
836
|
+
useInRouterContext: Y,
|
|
837
|
+
useLoaderData: wr,
|
|
838
|
+
useLocation: G,
|
|
839
|
+
useMatch: yr,
|
|
840
|
+
useMatches: Tr,
|
|
841
|
+
useNavigate: vt,
|
|
842
|
+
useNavigation: Dr,
|
|
843
|
+
useNavigationType: Er,
|
|
844
|
+
useOutlet: mt,
|
|
845
|
+
useOutletContext: br,
|
|
846
|
+
useParams: Rr,
|
|
847
|
+
useResolvedPath: Et,
|
|
848
|
+
useRevalidator: Sr,
|
|
849
|
+
useRouteError: bt,
|
|
850
|
+
useRouteLoaderData: kr,
|
|
851
|
+
useRoutes: yt
|
|
852
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
853
|
+
var Ce = { exports: {} }, ee = {};
|
|
854
|
+
/**
|
|
855
|
+
* @license React
|
|
856
|
+
* react-jsx-runtime.production.min.js
|
|
857
|
+
*
|
|
858
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
859
|
+
*
|
|
860
|
+
* This source code is licensed under the MIT license found in the
|
|
861
|
+
* LICENSE file in the root directory of this source tree.
|
|
862
|
+
*/
|
|
863
|
+
var at;
|
|
864
|
+
function Xr() {
|
|
865
|
+
if (at) return ee;
|
|
866
|
+
at = 1;
|
|
867
|
+
var t = it, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, u = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
868
|
+
function l(h, v, m) {
|
|
869
|
+
var d, c = {}, y = null, O = null;
|
|
870
|
+
m !== void 0 && (y = "" + m), v.key !== void 0 && (y = "" + v.key), v.ref !== void 0 && (O = v.ref);
|
|
871
|
+
for (d in v) i.call(v, d) && !f.hasOwnProperty(d) && (c[d] = v[d]);
|
|
872
|
+
if (h && h.defaultProps) for (d in v = h.defaultProps, v) c[d] === void 0 && (c[d] = v[d]);
|
|
873
|
+
return { $$typeof: r, type: h, key: y, ref: O, props: c, _owner: u.current };
|
|
874
|
+
}
|
|
875
|
+
return ee.Fragment = n, ee.jsx = l, ee.jsxs = l, ee;
|
|
876
|
+
}
|
|
877
|
+
var te = {};
|
|
878
|
+
/**
|
|
879
|
+
* @license React
|
|
880
|
+
* react-jsx-runtime.development.js
|
|
881
|
+
*
|
|
882
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
883
|
+
*
|
|
884
|
+
* This source code is licensed under the MIT license found in the
|
|
885
|
+
* LICENSE file in the root directory of this source tree.
|
|
886
|
+
*/
|
|
887
|
+
var ot;
|
|
888
|
+
function Zr() {
|
|
889
|
+
return ot || (ot = 1, process.env.NODE_ENV !== "production" && function() {
|
|
890
|
+
var t = it, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), S = Symbol.iterator, j = "@@iterator";
|
|
891
|
+
function P(e) {
|
|
892
|
+
if (e === null || typeof e != "object")
|
|
893
|
+
return null;
|
|
894
|
+
var o = S && e[S] || e[j];
|
|
895
|
+
return typeof o == "function" ? o : null;
|
|
896
|
+
}
|
|
897
|
+
var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
898
|
+
function E(e) {
|
|
899
|
+
{
|
|
900
|
+
for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++)
|
|
901
|
+
s[p - 1] = arguments[p];
|
|
902
|
+
L("error", e, s);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function L(e, o, s) {
|
|
906
|
+
{
|
|
907
|
+
var p = k.ReactDebugCurrentFrame, _ = p.getStackAddendum();
|
|
908
|
+
_ !== "" && (o += "%s", s = s.concat([_]));
|
|
909
|
+
var C = s.map(function(b) {
|
|
910
|
+
return String(b);
|
|
911
|
+
});
|
|
912
|
+
C.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, C);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
var Nt = !1, xt = !1, Pt = !1, Dt = !1, St = !1, je;
|
|
916
|
+
je = Symbol.for("react.module.reference");
|
|
917
|
+
function Tt(e) {
|
|
918
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === f || St || e === u || e === m || e === d || Dt || e === O || Nt || xt || Pt || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === c || e.$$typeof === l || e.$$typeof === h || e.$$typeof === v || // This needs to include all possible module reference object
|
|
919
|
+
// types supported by any Flight configuration anywhere since
|
|
920
|
+
// we don't know which Flight build this will end up being used
|
|
921
|
+
// with.
|
|
922
|
+
e.$$typeof === je || e.getModuleId !== void 0));
|
|
923
|
+
}
|
|
924
|
+
function wt(e, o, s) {
|
|
925
|
+
var p = e.displayName;
|
|
926
|
+
if (p)
|
|
927
|
+
return p;
|
|
928
|
+
var _ = o.displayName || o.name || "";
|
|
929
|
+
return _ !== "" ? s + "(" + _ + ")" : s;
|
|
930
|
+
}
|
|
931
|
+
function Fe(e) {
|
|
932
|
+
return e.displayName || "Context";
|
|
933
|
+
}
|
|
934
|
+
function A(e) {
|
|
935
|
+
if (e == null)
|
|
936
|
+
return null;
|
|
937
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
938
|
+
return e.displayName || e.name || null;
|
|
939
|
+
if (typeof e == "string")
|
|
940
|
+
return e;
|
|
941
|
+
switch (e) {
|
|
942
|
+
case i:
|
|
943
|
+
return "Fragment";
|
|
944
|
+
case n:
|
|
945
|
+
return "Portal";
|
|
946
|
+
case f:
|
|
947
|
+
return "Profiler";
|
|
948
|
+
case u:
|
|
949
|
+
return "StrictMode";
|
|
950
|
+
case m:
|
|
951
|
+
return "Suspense";
|
|
952
|
+
case d:
|
|
953
|
+
return "SuspenseList";
|
|
954
|
+
}
|
|
955
|
+
if (typeof e == "object")
|
|
956
|
+
switch (e.$$typeof) {
|
|
957
|
+
case h:
|
|
958
|
+
var o = e;
|
|
959
|
+
return Fe(o) + ".Consumer";
|
|
960
|
+
case l:
|
|
961
|
+
var s = e;
|
|
962
|
+
return Fe(s._context) + ".Provider";
|
|
963
|
+
case v:
|
|
964
|
+
return wt(e, e.render, "ForwardRef");
|
|
965
|
+
case c:
|
|
966
|
+
var p = e.displayName || null;
|
|
967
|
+
return p !== null ? p : A(e.type) || "Memo";
|
|
968
|
+
case y: {
|
|
969
|
+
var _ = e, C = _._payload, b = _._init;
|
|
970
|
+
try {
|
|
971
|
+
return A(b(C));
|
|
972
|
+
} catch {
|
|
973
|
+
return null;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
return null;
|
|
978
|
+
}
|
|
979
|
+
var $ = Object.assign, X = 0, Ie, Ue, Ve, Ae, Le, Me, Be;
|
|
980
|
+
function Ye() {
|
|
981
|
+
}
|
|
982
|
+
Ye.__reactDisabledLog = !0;
|
|
983
|
+
function kt() {
|
|
984
|
+
{
|
|
985
|
+
if (X === 0) {
|
|
986
|
+
Ie = console.log, Ue = console.info, Ve = console.warn, Ae = console.error, Le = console.group, Me = console.groupCollapsed, Be = console.groupEnd;
|
|
987
|
+
var e = {
|
|
988
|
+
configurable: !0,
|
|
989
|
+
enumerable: !0,
|
|
990
|
+
value: Ye,
|
|
991
|
+
writable: !0
|
|
992
|
+
};
|
|
993
|
+
Object.defineProperties(console, {
|
|
994
|
+
info: e,
|
|
995
|
+
log: e,
|
|
996
|
+
warn: e,
|
|
997
|
+
error: e,
|
|
998
|
+
group: e,
|
|
999
|
+
groupCollapsed: e,
|
|
1000
|
+
groupEnd: e
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
X++;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
function jt() {
|
|
1007
|
+
{
|
|
1008
|
+
if (X--, X === 0) {
|
|
1009
|
+
var e = {
|
|
1010
|
+
configurable: !0,
|
|
1011
|
+
enumerable: !0,
|
|
1012
|
+
writable: !0
|
|
1013
|
+
};
|
|
1014
|
+
Object.defineProperties(console, {
|
|
1015
|
+
log: $({}, e, {
|
|
1016
|
+
value: Ie
|
|
1017
|
+
}),
|
|
1018
|
+
info: $({}, e, {
|
|
1019
|
+
value: Ue
|
|
1020
|
+
}),
|
|
1021
|
+
warn: $({}, e, {
|
|
1022
|
+
value: Ve
|
|
1023
|
+
}),
|
|
1024
|
+
error: $({}, e, {
|
|
1025
|
+
value: Ae
|
|
1026
|
+
}),
|
|
1027
|
+
group: $({}, e, {
|
|
1028
|
+
value: Le
|
|
1029
|
+
}),
|
|
1030
|
+
groupCollapsed: $({}, e, {
|
|
1031
|
+
value: Me
|
|
1032
|
+
}),
|
|
1033
|
+
groupEnd: $({}, e, {
|
|
1034
|
+
value: Be
|
|
1035
|
+
})
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
X < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
var pe = k.ReactCurrentDispatcher, ve;
|
|
1042
|
+
function oe(e, o, s) {
|
|
1043
|
+
{
|
|
1044
|
+
if (ve === void 0)
|
|
1045
|
+
try {
|
|
1046
|
+
throw Error();
|
|
1047
|
+
} catch (_) {
|
|
1048
|
+
var p = _.stack.trim().match(/\n( *(at )?)/);
|
|
1049
|
+
ve = p && p[1] || "";
|
|
1050
|
+
}
|
|
1051
|
+
return `
|
|
1052
|
+
` + ve + e;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
var he = !1, ie;
|
|
1056
|
+
{
|
|
1057
|
+
var Ft = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1058
|
+
ie = new Ft();
|
|
1059
|
+
}
|
|
1060
|
+
function We(e, o) {
|
|
1061
|
+
if (!e || he)
|
|
1062
|
+
return "";
|
|
1063
|
+
{
|
|
1064
|
+
var s = ie.get(e);
|
|
1065
|
+
if (s !== void 0)
|
|
1066
|
+
return s;
|
|
1067
|
+
}
|
|
1068
|
+
var p;
|
|
1069
|
+
he = !0;
|
|
1070
|
+
var _ = Error.prepareStackTrace;
|
|
1071
|
+
Error.prepareStackTrace = void 0;
|
|
1072
|
+
var C;
|
|
1073
|
+
C = pe.current, pe.current = null, kt();
|
|
1074
|
+
try {
|
|
1075
|
+
if (o) {
|
|
1076
|
+
var b = function() {
|
|
1077
|
+
throw Error();
|
|
1078
|
+
};
|
|
1079
|
+
if (Object.defineProperty(b.prototype, "props", {
|
|
1080
|
+
set: function() {
|
|
1081
|
+
throw Error();
|
|
1082
|
+
}
|
|
1083
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1084
|
+
try {
|
|
1085
|
+
Reflect.construct(b, []);
|
|
1086
|
+
} catch (T) {
|
|
1087
|
+
p = T;
|
|
1088
|
+
}
|
|
1089
|
+
Reflect.construct(e, [], b);
|
|
1090
|
+
} else {
|
|
1091
|
+
try {
|
|
1092
|
+
b.call();
|
|
1093
|
+
} catch (T) {
|
|
1094
|
+
p = T;
|
|
1095
|
+
}
|
|
1096
|
+
e.call(b.prototype);
|
|
1097
|
+
}
|
|
1098
|
+
} else {
|
|
1099
|
+
try {
|
|
1100
|
+
throw Error();
|
|
1101
|
+
} catch (T) {
|
|
1102
|
+
p = T;
|
|
1103
|
+
}
|
|
1104
|
+
e();
|
|
1105
|
+
}
|
|
1106
|
+
} catch (T) {
|
|
1107
|
+
if (T && p && typeof T.stack == "string") {
|
|
1108
|
+
for (var g = T.stack.split(`
|
|
1109
|
+
`), D = p.stack.split(`
|
|
1110
|
+
`), N = g.length - 1, x = D.length - 1; N >= 1 && x >= 0 && g[N] !== D[x]; )
|
|
1111
|
+
x--;
|
|
1112
|
+
for (; N >= 1 && x >= 0; N--, x--)
|
|
1113
|
+
if (g[N] !== D[x]) {
|
|
1114
|
+
if (N !== 1 || x !== 1)
|
|
1115
|
+
do
|
|
1116
|
+
if (N--, x--, x < 0 || g[N] !== D[x]) {
|
|
1117
|
+
var F = `
|
|
1118
|
+
` + g[N].replace(" at new ", " at ");
|
|
1119
|
+
return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && ie.set(e, F), F;
|
|
1120
|
+
}
|
|
1121
|
+
while (N >= 1 && x >= 0);
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
} finally {
|
|
1126
|
+
he = !1, pe.current = C, jt(), Error.prepareStackTrace = _;
|
|
1127
|
+
}
|
|
1128
|
+
var K = e ? e.displayName || e.name : "", J = K ? oe(K) : "";
|
|
1129
|
+
return typeof e == "function" && ie.set(e, J), J;
|
|
1130
|
+
}
|
|
1131
|
+
function It(e, o, s) {
|
|
1132
|
+
return We(e, !1);
|
|
1133
|
+
}
|
|
1134
|
+
function Ut(e) {
|
|
1135
|
+
var o = e.prototype;
|
|
1136
|
+
return !!(o && o.isReactComponent);
|
|
1137
|
+
}
|
|
1138
|
+
function se(e, o, s) {
|
|
1139
|
+
if (e == null)
|
|
1140
|
+
return "";
|
|
1141
|
+
if (typeof e == "function")
|
|
1142
|
+
return We(e, Ut(e));
|
|
1143
|
+
if (typeof e == "string")
|
|
1144
|
+
return oe(e);
|
|
1145
|
+
switch (e) {
|
|
1146
|
+
case m:
|
|
1147
|
+
return oe("Suspense");
|
|
1148
|
+
case d:
|
|
1149
|
+
return oe("SuspenseList");
|
|
1150
|
+
}
|
|
1151
|
+
if (typeof e == "object")
|
|
1152
|
+
switch (e.$$typeof) {
|
|
1153
|
+
case v:
|
|
1154
|
+
return It(e.render);
|
|
1155
|
+
case c:
|
|
1156
|
+
return se(e.type, o, s);
|
|
1157
|
+
case y: {
|
|
1158
|
+
var p = e, _ = p._payload, C = p._init;
|
|
1159
|
+
try {
|
|
1160
|
+
return se(C(_), o, s);
|
|
1161
|
+
} catch {
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
return "";
|
|
1166
|
+
}
|
|
1167
|
+
var Z = Object.prototype.hasOwnProperty, $e = {}, Je = k.ReactDebugCurrentFrame;
|
|
1168
|
+
function ue(e) {
|
|
1169
|
+
if (e) {
|
|
1170
|
+
var o = e._owner, s = se(e.type, e._source, o ? o.type : null);
|
|
1171
|
+
Je.setExtraStackFrame(s);
|
|
1172
|
+
} else
|
|
1173
|
+
Je.setExtraStackFrame(null);
|
|
1174
|
+
}
|
|
1175
|
+
function Vt(e, o, s, p, _) {
|
|
1176
|
+
{
|
|
1177
|
+
var C = Function.call.bind(Z);
|
|
1178
|
+
for (var b in e)
|
|
1179
|
+
if (C(e, b)) {
|
|
1180
|
+
var g = void 0;
|
|
1181
|
+
try {
|
|
1182
|
+
if (typeof e[b] != "function") {
|
|
1183
|
+
var D = Error((p || "React class") + ": " + s + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1184
|
+
throw D.name = "Invariant Violation", D;
|
|
1185
|
+
}
|
|
1186
|
+
g = e[b](o, b, p, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1187
|
+
} catch (N) {
|
|
1188
|
+
g = N;
|
|
1189
|
+
}
|
|
1190
|
+
g && !(g instanceof Error) && (ue(_), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", s, b, typeof g), ue(null)), g instanceof Error && !(g.message in $e) && ($e[g.message] = !0, ue(_), E("Failed %s type: %s", s, g.message), ue(null));
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
var At = Array.isArray;
|
|
1195
|
+
function me(e) {
|
|
1196
|
+
return At(e);
|
|
1197
|
+
}
|
|
1198
|
+
function Lt(e) {
|
|
1199
|
+
{
|
|
1200
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, s = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1201
|
+
return s;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
function Mt(e) {
|
|
1205
|
+
try {
|
|
1206
|
+
return ze(e), !1;
|
|
1207
|
+
} catch {
|
|
1208
|
+
return !0;
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
function ze(e) {
|
|
1212
|
+
return "" + e;
|
|
1213
|
+
}
|
|
1214
|
+
function He(e) {
|
|
1215
|
+
if (Mt(e))
|
|
1216
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lt(e)), ze(e);
|
|
1217
|
+
}
|
|
1218
|
+
var Q = k.ReactCurrentOwner, Bt = {
|
|
1219
|
+
key: !0,
|
|
1220
|
+
ref: !0,
|
|
1221
|
+
__self: !0,
|
|
1222
|
+
__source: !0
|
|
1223
|
+
}, Ke, qe, Ee;
|
|
1224
|
+
Ee = {};
|
|
1225
|
+
function Yt(e) {
|
|
1226
|
+
if (Z.call(e, "ref")) {
|
|
1227
|
+
var o = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1228
|
+
if (o && o.isReactWarning)
|
|
1229
|
+
return !1;
|
|
1230
|
+
}
|
|
1231
|
+
return e.ref !== void 0;
|
|
1232
|
+
}
|
|
1233
|
+
function Wt(e) {
|
|
1234
|
+
if (Z.call(e, "key")) {
|
|
1235
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1236
|
+
if (o && o.isReactWarning)
|
|
1237
|
+
return !1;
|
|
1238
|
+
}
|
|
1239
|
+
return e.key !== void 0;
|
|
1240
|
+
}
|
|
1241
|
+
function $t(e, o) {
|
|
1242
|
+
if (typeof e.ref == "string" && Q.current && o && Q.current.stateNode !== o) {
|
|
1243
|
+
var s = A(Q.current.type);
|
|
1244
|
+
Ee[s] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(Q.current.type), e.ref), Ee[s] = !0);
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
function Jt(e, o) {
|
|
1248
|
+
{
|
|
1249
|
+
var s = function() {
|
|
1250
|
+
Ke || (Ke = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
1251
|
+
};
|
|
1252
|
+
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1253
|
+
get: s,
|
|
1254
|
+
configurable: !0
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
function zt(e, o) {
|
|
1259
|
+
{
|
|
1260
|
+
var s = function() {
|
|
1261
|
+
qe || (qe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
1262
|
+
};
|
|
1263
|
+
s.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
1264
|
+
get: s,
|
|
1265
|
+
configurable: !0
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
var Ht = function(e, o, s, p, _, C, b) {
|
|
1270
|
+
var g = {
|
|
1271
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
1272
|
+
$$typeof: r,
|
|
1273
|
+
// Built-in properties that belong on the element
|
|
1274
|
+
type: e,
|
|
1275
|
+
key: o,
|
|
1276
|
+
ref: s,
|
|
1277
|
+
props: b,
|
|
1278
|
+
// Record the component responsible for creating this element.
|
|
1279
|
+
_owner: C
|
|
1280
|
+
};
|
|
1281
|
+
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
1282
|
+
configurable: !1,
|
|
1283
|
+
enumerable: !1,
|
|
1284
|
+
writable: !0,
|
|
1285
|
+
value: !1
|
|
1286
|
+
}), Object.defineProperty(g, "_self", {
|
|
1287
|
+
configurable: !1,
|
|
1288
|
+
enumerable: !1,
|
|
1289
|
+
writable: !1,
|
|
1290
|
+
value: p
|
|
1291
|
+
}), Object.defineProperty(g, "_source", {
|
|
1292
|
+
configurable: !1,
|
|
1293
|
+
enumerable: !1,
|
|
1294
|
+
writable: !1,
|
|
1295
|
+
value: _
|
|
1296
|
+
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
1297
|
+
};
|
|
1298
|
+
function Kt(e, o, s, p, _) {
|
|
1299
|
+
{
|
|
1300
|
+
var C, b = {}, g = null, D = null;
|
|
1301
|
+
s !== void 0 && (He(s), g = "" + s), Wt(o) && (He(o.key), g = "" + o.key), Yt(o) && (D = o.ref, $t(o, _));
|
|
1302
|
+
for (C in o)
|
|
1303
|
+
Z.call(o, C) && !Bt.hasOwnProperty(C) && (b[C] = o[C]);
|
|
1304
|
+
if (e && e.defaultProps) {
|
|
1305
|
+
var N = e.defaultProps;
|
|
1306
|
+
for (C in N)
|
|
1307
|
+
b[C] === void 0 && (b[C] = N[C]);
|
|
1308
|
+
}
|
|
1309
|
+
if (g || D) {
|
|
1310
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1311
|
+
g && Jt(b, x), D && zt(b, x);
|
|
1312
|
+
}
|
|
1313
|
+
return Ht(e, g, D, _, p, Q.current, b);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
var ye = k.ReactCurrentOwner, Ge = k.ReactDebugCurrentFrame;
|
|
1317
|
+
function H(e) {
|
|
1318
|
+
if (e) {
|
|
1319
|
+
var o = e._owner, s = se(e.type, e._source, o ? o.type : null);
|
|
1320
|
+
Ge.setExtraStackFrame(s);
|
|
1321
|
+
} else
|
|
1322
|
+
Ge.setExtraStackFrame(null);
|
|
1323
|
+
}
|
|
1324
|
+
var ge;
|
|
1325
|
+
ge = !1;
|
|
1326
|
+
function be(e) {
|
|
1327
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
1328
|
+
}
|
|
1329
|
+
function Xe() {
|
|
1330
|
+
{
|
|
1331
|
+
if (ye.current) {
|
|
1332
|
+
var e = A(ye.current.type);
|
|
1333
|
+
if (e)
|
|
1334
|
+
return `
|
|
1335
|
+
|
|
1336
|
+
Check the render method of \`` + e + "`.";
|
|
1337
|
+
}
|
|
1338
|
+
return "";
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
function qt(e) {
|
|
1342
|
+
return "";
|
|
1343
|
+
}
|
|
1344
|
+
var Ze = {};
|
|
1345
|
+
function Gt(e) {
|
|
1346
|
+
{
|
|
1347
|
+
var o = Xe();
|
|
1348
|
+
if (!o) {
|
|
1349
|
+
var s = typeof e == "string" ? e : e.displayName || e.name;
|
|
1350
|
+
s && (o = `
|
|
1351
|
+
|
|
1352
|
+
Check the top-level render call using <` + s + ">.");
|
|
1353
|
+
}
|
|
1354
|
+
return o;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
function Qe(e, o) {
|
|
1358
|
+
{
|
|
1359
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
1360
|
+
return;
|
|
1361
|
+
e._store.validated = !0;
|
|
1362
|
+
var s = Gt(o);
|
|
1363
|
+
if (Ze[s])
|
|
1364
|
+
return;
|
|
1365
|
+
Ze[s] = !0;
|
|
1366
|
+
var p = "";
|
|
1367
|
+
e && e._owner && e._owner !== ye.current && (p = " It was passed a child from " + A(e._owner.type) + "."), H(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, p), H(null);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
function et(e, o) {
|
|
1371
|
+
{
|
|
1372
|
+
if (typeof e != "object")
|
|
1373
|
+
return;
|
|
1374
|
+
if (me(e))
|
|
1375
|
+
for (var s = 0; s < e.length; s++) {
|
|
1376
|
+
var p = e[s];
|
|
1377
|
+
be(p) && Qe(p, o);
|
|
1378
|
+
}
|
|
1379
|
+
else if (be(e))
|
|
1380
|
+
e._store && (e._store.validated = !0);
|
|
1381
|
+
else if (e) {
|
|
1382
|
+
var _ = P(e);
|
|
1383
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
1384
|
+
for (var C = _.call(e), b; !(b = C.next()).done; )
|
|
1385
|
+
be(b.value) && Qe(b.value, o);
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
function Xt(e) {
|
|
1390
|
+
{
|
|
1391
|
+
var o = e.type;
|
|
1392
|
+
if (o == null || typeof o == "string")
|
|
1393
|
+
return;
|
|
1394
|
+
var s;
|
|
1395
|
+
if (typeof o == "function")
|
|
1396
|
+
s = o.propTypes;
|
|
1397
|
+
else if (typeof o == "object" && (o.$$typeof === v || // Note: Memo only checks outer props here.
|
|
1398
|
+
// Inner props are checked in the reconciler.
|
|
1399
|
+
o.$$typeof === c))
|
|
1400
|
+
s = o.propTypes;
|
|
1401
|
+
else
|
|
1402
|
+
return;
|
|
1403
|
+
if (s) {
|
|
1404
|
+
var p = A(o);
|
|
1405
|
+
Vt(s, e.props, "prop", p, e);
|
|
1406
|
+
} else if (o.PropTypes !== void 0 && !ge) {
|
|
1407
|
+
ge = !0;
|
|
1408
|
+
var _ = A(o);
|
|
1409
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
1410
|
+
}
|
|
1411
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
function Zt(e) {
|
|
1415
|
+
{
|
|
1416
|
+
for (var o = Object.keys(e.props), s = 0; s < o.length; s++) {
|
|
1417
|
+
var p = o[s];
|
|
1418
|
+
if (p !== "children" && p !== "key") {
|
|
1419
|
+
H(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), H(null);
|
|
1420
|
+
break;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
e.ref !== null && (H(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), H(null));
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
var tt = {};
|
|
1427
|
+
function rt(e, o, s, p, _, C) {
|
|
1428
|
+
{
|
|
1429
|
+
var b = Tt(e);
|
|
1430
|
+
if (!b) {
|
|
1431
|
+
var g = "";
|
|
1432
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1433
|
+
var D = qt();
|
|
1434
|
+
D ? g += D : g += Xe();
|
|
1435
|
+
var N;
|
|
1436
|
+
e === null ? N = "null" : me(e) ? N = "array" : e !== void 0 && e.$$typeof === r ? (N = "<" + (A(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, g);
|
|
1437
|
+
}
|
|
1438
|
+
var x = Kt(e, o, s, _, C);
|
|
1439
|
+
if (x == null)
|
|
1440
|
+
return x;
|
|
1441
|
+
if (b) {
|
|
1442
|
+
var F = o.children;
|
|
1443
|
+
if (F !== void 0)
|
|
1444
|
+
if (p)
|
|
1445
|
+
if (me(F)) {
|
|
1446
|
+
for (var K = 0; K < F.length; K++)
|
|
1447
|
+
et(F[K], e);
|
|
1448
|
+
Object.freeze && Object.freeze(F);
|
|
1449
|
+
} else
|
|
1450
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1451
|
+
else
|
|
1452
|
+
et(F, e);
|
|
1453
|
+
}
|
|
1454
|
+
if (Z.call(o, "key")) {
|
|
1455
|
+
var J = A(e), T = Object.keys(o).filter(function(ar) {
|
|
1456
|
+
return ar !== "key";
|
|
1457
|
+
}), Re = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1458
|
+
if (!tt[J + Re]) {
|
|
1459
|
+
var nr = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
1460
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
|
1461
|
+
let props = %s;
|
|
1462
|
+
<%s {...props} />
|
|
1463
|
+
React keys must be passed directly to JSX without using spread:
|
|
1464
|
+
let props = %s;
|
|
1465
|
+
<%s key={someKey} {...props} />`, Re, J, nr, J), tt[J + Re] = !0;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
return e === i ? Zt(x) : Xt(x), x;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
function Qt(e, o, s) {
|
|
1472
|
+
return rt(e, o, s, !0);
|
|
1473
|
+
}
|
|
1474
|
+
function er(e, o, s) {
|
|
1475
|
+
return rt(e, o, s, !1);
|
|
1476
|
+
}
|
|
1477
|
+
var tr = er, rr = Qt;
|
|
1478
|
+
te.Fragment = i, te.jsx = tr, te.jsxs = rr;
|
|
1479
|
+
}()), te;
|
|
1480
|
+
}
|
|
1481
|
+
process.env.NODE_ENV === "production" ? Ce.exports = Xr() : Ce.exports = Zr();
|
|
1482
|
+
var rn = Ce.exports;
|
|
1483
|
+
export {
|
|
1484
|
+
Jr as A,
|
|
1485
|
+
wr as B,
|
|
1486
|
+
yr as C,
|
|
1487
|
+
fe as D,
|
|
1488
|
+
Er as E,
|
|
1489
|
+
mt as F,
|
|
1490
|
+
br as G,
|
|
1491
|
+
Sr as H,
|
|
1492
|
+
kr as I,
|
|
1493
|
+
yt as J,
|
|
1494
|
+
z as L,
|
|
1495
|
+
Br as M,
|
|
1496
|
+
Yr as N,
|
|
1497
|
+
Wr as O,
|
|
1498
|
+
U as R,
|
|
1499
|
+
vt as a,
|
|
1500
|
+
Dr as b,
|
|
1501
|
+
Rr as c,
|
|
1502
|
+
tn as d,
|
|
1503
|
+
bt as e,
|
|
1504
|
+
M as f,
|
|
1505
|
+
mr as g,
|
|
1506
|
+
Et as h,
|
|
1507
|
+
Pr as i,
|
|
1508
|
+
rn as j,
|
|
1509
|
+
q as k,
|
|
1510
|
+
ke as l,
|
|
1511
|
+
Se as m,
|
|
1512
|
+
Ot as n,
|
|
1513
|
+
Tr as o,
|
|
1514
|
+
Ur as p,
|
|
1515
|
+
Ct as q,
|
|
1516
|
+
$r as r,
|
|
1517
|
+
Gr as s,
|
|
1518
|
+
ne as t,
|
|
1519
|
+
G as u,
|
|
1520
|
+
qr as v,
|
|
1521
|
+
jr as w,
|
|
1522
|
+
Fr as x,
|
|
1523
|
+
Rt as y,
|
|
1524
|
+
Y as z
|
|
1525
|
+
};
|
|
1526
|
+
//# sourceMappingURL=jsx-runtime-CJBdjYYx.js.map
|