@semiont/frontend 0.3.2 → 0.3.4
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/package.json +1 -1
- package/standalone/apps/frontend/.next/BUILD_ID +1 -1
- package/standalone/apps/frontend/.next/app-path-routes-manifest.json +5 -5
- package/standalone/apps/frontend/.next/build-manifest.json +6 -6
- package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
- package/standalone/apps/frontend/.next/react-loadable-manifest.json +2 -2
- package/standalone/apps/frontend/.next/required-server-files.json +18 -6
- package/standalone/apps/frontend/.next/routes-manifest.json +1 -0
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +776 -516
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +1718 -1455
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js +724 -461
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +370 -109
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +581 -318
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +449 -186
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +430 -168
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +31 -16
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +388 -126
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +537 -275
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +388 -126
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +745 -482
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +366 -103
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +600 -339
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +956 -691
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1699 -1436
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js +390 -127
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +1779 -1518
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +1601 -1338
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +2048 -1785
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js +462 -204
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +476 -216
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +489 -229
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error/page.js +627 -240
- package/standalone/apps/frontend/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.html +1 -2
- package/standalone/apps/frontend/.next/server/app/_global-error.rsc +13 -9
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +13 -9
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js +814 -559
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.rsc +8 -6
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +8 -6
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +54 -39
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +49 -34
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +24 -9
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +24 -9
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app-paths-manifest.json +5 -5
- package/standalone/apps/frontend/.next/server/chunks/2617.js +43 -7
- package/standalone/apps/frontend/.next/server/chunks/3144.js +7 -3
- package/standalone/apps/frontend/.next/server/chunks/4741.js +60 -252
- package/standalone/apps/frontend/.next/server/chunks/730.js +1 -1
- package/standalone/apps/frontend/.next/server/chunks/7420.js +21 -288
- package/standalone/apps/frontend/.next/server/chunks/7873.js +24 -2
- package/standalone/apps/frontend/.next/server/chunks/{7246.js → 8569.js} +1169 -282
- package/standalone/apps/frontend/.next/server/chunks/{2628.js → 9927.js} +11422 -4290
- package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware.js +17991 -10692
- package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
- package/standalone/apps/frontend/.next/server/pages/500.html +1 -2
- package/standalone/apps/frontend/.next/server/prefetch-hints.json +1 -0
- package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
- package/standalone/apps/frontend/.next/static/I_XveRdyStDMqYJPcAAy5/_buildManifest.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/1315.3f76aa23520d903e.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{432.4c1d971431c60454.js → 432.8cb455bfe72957a9.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/87c73c54-e11922cda838f8cc.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{891cff7f-c20ce667b1225aa7.js → 891cff7f-d7677a8f46c597cc.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/{layout-4b67f7b5d5ba4728.js → layout-956ba0ffa1199bff.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{layout-f76e1916749e66f6.js → layout-262d8dd6c6e33738.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-a403fd7a4877cc04.js → layout-c072ce8c7aeaa92e.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{layout-2d4e9c2be4b4a4c7.js → layout-b60605082e447f42.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/common-42653c14d34c8864.js +69 -0
- package/standalone/apps/frontend/.next/static/chunks/framework-b879567b90d34fb5.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/vendors-63213253c18580f4.js +40 -0
- package/standalone/apps/frontend/.next/static/chunks/{webpack-abf2ad17f175f867.js → webpack-a0284d55d288650f.js} +1 -1
- package/standalone/apps/frontend/package.json +5 -5
- package/standalone/apps/frontend/server.js +1 -1
- package/standalone/node_modules/@next/env/package.json +1 -1
- package/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
- package/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +78 -63
- package/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +64 -40
- package/standalone/node_modules/next/dist/build/create-compiler-aliases.js +2 -0
- package/standalone/node_modules/next/dist/build/define-env.js +29 -11
- package/standalone/node_modules/next/dist/build/duration-to-string.js +1 -1
- package/standalone/node_modules/next/dist/build/entries.js +55 -295
- package/standalone/node_modules/next/dist/build/file-classifier.js +76 -0
- package/standalone/node_modules/next/dist/build/get-supported-browsers.js +38 -0
- package/standalone/node_modules/next/dist/build/load-jsconfig.js +7 -7
- package/standalone/node_modules/next/dist/build/lockfile.js +90 -9
- package/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +128 -49
- package/standalone/node_modules/next/dist/build/print-build-errors.js +72 -0
- package/standalone/node_modules/next/dist/build/route-discovery.js +353 -0
- package/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +34 -17
- package/standalone/node_modules/next/dist/build/static-paths/app.js +68 -15
- package/standalone/node_modules/next/dist/build/static-paths/pages.js +3 -3
- package/standalone/node_modules/next/dist/build/swc/index.js +125 -48
- package/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
- package/standalone/node_modules/next/dist/build/swc/options.js +23 -6
- package/standalone/node_modules/next/dist/build/utils.js +48 -94
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +14 -3
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +4 -2
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +4 -2
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +5 -5
- package/standalone/node_modules/next/dist/build/webpack/config/index.js +3 -2
- package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +2 -1
- package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +8 -1
- package/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +13 -4
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +3 -1
- package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +2 -16
- package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +2 -2
- package/standalone/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +106 -0
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +16 -8
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +24 -11
- package/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +21 -2
- package/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +6 -5
- package/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +10 -14
- package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +18 -4
- package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +5 -4
- package/standalone/node_modules/next/dist/build/webpack-config.js +18 -8
- package/standalone/node_modules/next/dist/cli/next-test.js +4 -3
- package/standalone/node_modules/next/dist/client/app-find-source-map-url.js +2 -1
- package/standalone/node_modules/next/dist/client/components/app-router-headers.js +10 -0
- package/standalone/node_modules/next/dist/client/components/app-router-instance.js +82 -4
- package/standalone/node_modules/next/dist/client/components/app-router.js +39 -20
- package/standalone/node_modules/next/dist/client/components/builtin/app-error.js +29 -65
- package/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
- package/standalone/node_modules/next/dist/client/components/builtin/global-error.js +56 -38
- package/standalone/node_modules/next/dist/client/components/error-boundary.js +16 -6
- package/standalone/node_modules/next/dist/client/components/forbidden.js +1 -1
- package/standalone/node_modules/next/dist/client/components/handle-isr-error.js +3 -4
- package/standalone/node_modules/next/dist/client/components/links.js +7 -0
- package/standalone/node_modules/next/dist/client/components/navigation-untracked.js +2 -0
- package/standalone/node_modules/next/dist/client/components/navigation.js +27 -0
- package/standalone/node_modules/next/dist/client/components/navigation.react-server.js +5 -2
- package/standalone/node_modules/next/dist/client/components/not-found.js +1 -1
- package/standalone/node_modules/next/dist/client/components/redirect-boundary.js +1 -1
- package/standalone/node_modules/next/dist/client/components/redirect-error.js +0 -9
- package/standalone/node_modules/next/dist/client/components/redirect.js +2 -2
- package/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +73 -0
- package/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +102 -8
- package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +165 -48
- package/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +19 -11
- package/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +669 -457
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +19 -20
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -117
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +34 -19
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +16 -32
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +85 -57
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +12 -10
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +10 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +1 -1
- package/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +732 -231
- package/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +13 -6
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +388 -250
- package/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +154 -55
- package/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +63 -1
- package/standalone/node_modules/next/dist/client/components/unauthorized.js +1 -1
- package/standalone/node_modules/next/dist/client/components/use-action-queue.js +49 -3
- package/standalone/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +9 -1
- package/standalone/node_modules/next/dist/client/flight-data-helpers.js +42 -29
- package/standalone/node_modules/next/dist/client/lib/javascript-url.js +32 -0
- package/standalone/node_modules/next/dist/client/lib/promise.js +53 -0
- package/standalone/node_modules/next/dist/client/{app-build-id.js → navigation-build-id.js} +17 -13
- package/standalone/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +14 -0
- package/standalone/node_modules/next/dist/client/route-loader.js +9 -46
- package/standalone/node_modules/next/dist/client/router.js +1 -1
- package/standalone/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +74 -3
- package/standalone/node_modules/next/dist/compiled/babel/bundle.js +1 -1
- package/standalone/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +4 -4
- package/standalone/node_modules/next/dist/compiled/browserslist/index.js +1 -1
- package/standalone/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
- package/standalone/node_modules/next/dist/compiled/next-devtools/index.js +2209 -23
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
- package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/standalone/node_modules/next/dist/compiled/tar/index.min.js +1 -0
- package/standalone/node_modules/next/dist/compiled/tar/package.json +1 -1
- package/standalone/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
- package/standalone/node_modules/next/dist/lib/bundler.js +97 -0
- package/standalone/node_modules/next/dist/lib/constants.js +19 -4
- package/standalone/node_modules/next/dist/lib/download-swc.js +2 -2
- package/standalone/node_modules/next/dist/lib/find-root.js +11 -7
- package/standalone/node_modules/next/dist/lib/format-server-error.js +1 -0
- package/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +3 -20
- package/standalone/node_modules/next/dist/lib/interop-default.js +1 -0
- package/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
- package/standalone/node_modules/next/dist/lib/load-custom-routes.js +49 -5
- package/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
- package/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +11 -2
- package/standalone/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
- package/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +5 -5
- package/standalone/node_modules/next/dist/lib/try-to-parse-path.js +1 -2
- package/standalone/node_modules/next/dist/lib/turbopack-warning.js +0 -1
- package/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +6 -3
- package/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +1 -1
- package/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -1
- package/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +6 -8
- package/standalone/node_modules/next/dist/lib/typescript/type-paths.js +7 -12
- package/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +17 -7
- package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +9 -12
- package/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +66 -16
- package/standalone/node_modules/next/dist/next-devtools/server/shared.js +6 -10
- package/standalone/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +4 -4
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +22 -4
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +7 -1
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +18 -13
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +7 -4
- package/standalone/node_modules/next/dist/server/app-render/action-handler.js +83 -15
- package/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -82
- package/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +45 -81
- package/standalone/node_modules/next/dist/server/app-render/app-render.js +1746 -803
- package/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +136 -50
- package/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +6 -4
- package/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +52 -26
- package/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +14 -3
- package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
- package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
- package/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +353 -37
- package/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +2 -2
- package/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
- package/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +8 -1
- package/standalone/node_modules/next/dist/server/app-render/postponed-state.js +2 -1
- package/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +1 -0
- package/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +35 -10
- package/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +142 -72
- package/standalone/node_modules/next/dist/server/app-render/stale-time.js +111 -0
- package/standalone/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
- package/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
- package/standalone/node_modules/next/dist/server/app-render/types.js +10 -4
- package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +3 -1
- package/standalone/node_modules/next/dist/server/app-render/vary-params.js +336 -0
- package/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +59 -12
- package/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +54 -26
- package/standalone/node_modules/next/dist/server/async-storage/request-store.js +4 -4
- package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -5
- package/standalone/node_modules/next/dist/server/base-server.js +65 -53
- package/standalone/node_modules/next/dist/server/config-schema.js +93 -8
- package/standalone/node_modules/next/dist/server/config-shared.js +57 -7
- package/standalone/node_modules/next/dist/server/config.js +96 -25
- package/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +9 -6
- package/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +46 -0
- package/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +1 -4
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +264 -33
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +8 -4
- package/standalone/node_modules/next/dist/server/dev/log-requests.js +10 -2
- package/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +20 -10
- package/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +13 -3
- package/standalone/node_modules/next/dist/server/dev/next-dev-server.js +19 -6
- package/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +69 -0
- package/standalone/node_modules/next/dist/server/dev/require-cache.js +51 -21
- package/standalone/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
- package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +1 -0
- package/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +6 -15
- package/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +22 -0
- package/standalone/node_modules/next/dist/server/image-optimizer.js +157 -27
- package/standalone/node_modules/next/dist/server/lib/app-info-log.js +16 -38
- package/standalone/node_modules/next/dist/server/lib/cache-control.js +1 -1
- package/standalone/node_modules/next/dist/server/lib/clone-response.js +16 -16
- package/standalone/node_modules/next/dist/server/lib/cpu-profile.js +47 -16
- package/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +2 -2
- package/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
- package/standalone/node_modules/next/dist/server/lib/find-page-file.js +27 -7
- package/standalone/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +5 -3
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +32 -10
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +18 -1
- package/standalone/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
- package/standalone/node_modules/next/dist/server/lib/lru-cache.js +9 -1
- package/standalone/node_modules/next/dist/server/lib/patch-fetch.js +40 -7
- package/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
- package/standalone/node_modules/next/dist/server/lib/render-server.js +4 -1
- package/standalone/node_modules/next/dist/server/lib/router-server.js +24 -13
- package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
- package/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +16 -15
- package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +32 -11
- package/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +71 -71
- package/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +247 -2
- package/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +2 -1
- package/standalone/node_modules/next/dist/server/lib/start-server.js +73 -39
- package/standalone/node_modules/next/dist/server/lib/trace/tracer.js +11 -1
- package/standalone/node_modules/next/dist/server/lib/utils.js +40 -11
- package/standalone/node_modules/next/dist/server/load-components.js +2 -0
- package/standalone/node_modules/next/dist/server/load-manifest.external.js +37 -17
- package/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +11 -4
- package/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +9 -3
- package/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +52 -44
- package/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +6 -2
- package/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +44 -79
- package/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +12 -4
- package/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +62 -72
- package/standalone/node_modules/next/dist/server/next-server.js +69 -99
- package/standalone/node_modules/next/dist/server/next.js +3 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +61 -6
- package/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +4 -4
- package/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +13 -6
- package/standalone/node_modules/next/dist/server/node-environment-extensions/{utils.js → io-utils.js} +14 -5
- package/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +8 -8
- package/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +2 -2
- package/standalone/node_modules/next/dist/server/node-environment-extensions/{unhandled-rejection.js → unhandled-rejection.external.js} +23 -4
- package/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +3 -3
- package/standalone/node_modules/next/dist/server/node-environment.js +1 -1
- package/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +2 -1
- package/standalone/node_modules/next/dist/server/patch-error-inspect.js +37 -20
- package/standalone/node_modules/next/dist/server/render-result.js +9 -0
- package/standalone/node_modules/next/dist/server/render.js +27 -25
- package/standalone/node_modules/next/dist/server/require-hook.js +19 -8
- package/standalone/node_modules/next/dist/server/response-cache/utils.js +1 -0
- package/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +35 -23
- package/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +16 -7
- package/standalone/node_modules/next/dist/server/revalidation-utils.js +12 -7
- package/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +2 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +4 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +31 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
- package/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +31 -8
- package/standalone/node_modules/next/dist/server/route-modules/route-module.js +71 -18
- package/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +8 -0
- package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +239 -58
- package/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +7 -2
- package/standalone/node_modules/next/dist/server/typescript/constant.js +1 -0
- package/standalone/node_modules/next/dist/server/typescript/rules/config.js +14 -3
- package/standalone/node_modules/next/dist/server/web/adapter.js +7 -3
- package/standalone/node_modules/next/dist/server/web/next-url.js +6 -2
- package/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +3 -0
- package/standalone/node_modules/next/dist/shared/lib/app-router-types.js +30 -11
- package/standalone/node_modules/next/dist/shared/lib/constants.js +7 -7
- package/standalone/node_modules/next/dist/shared/lib/deployment-id.js +37 -10
- package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
- package/standalone/node_modules/next/dist/shared/lib/format-webpack-messages.js +22 -2
- package/standalone/node_modules/next/dist/shared/lib/image-config.js +3 -1
- package/standalone/node_modules/next/dist/shared/lib/is-internal.js +2 -0
- package/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +6 -6
- package/standalone/node_modules/next/dist/shared/lib/router/router.js +32 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +11 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +11 -4
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +3 -2
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +9 -2
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +8 -2
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
- package/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +4 -0
- package/standalone/node_modules/next/dist/shared/lib/size-limit.js +6 -1
- package/standalone/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -10
- package/standalone/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +90 -116
- package/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +14 -26
- package/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
- package/standalone/node_modules/next/dist/shared/lib/utils.js +2 -2
- package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/standalone/node_modules/next/dist/trace/index.js +4 -0
- package/standalone/node_modules/next/dist/trace/report/to-json-build.js +11 -108
- package/standalone/node_modules/next/dist/trace/report/to-json.js +52 -38
- package/standalone/node_modules/next/dist/trace/trace.js +15 -1
- package/standalone/node_modules/next/package.json +21 -23
- package/standalone/node_modules/react/cjs/react.development.js +1284 -0
- package/standalone/package.json +3 -3
- package/standalone/packages/core/package.json +1 -1
- package/standalone/apps/frontend/.next/static/chunks/1315.18c68981a2eab4fe.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/87c73c54-c5fda2db2a4bd732.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/common-d9b436492e46bb05.js +0 -69
- package/standalone/apps/frontend/.next/static/chunks/framework-86c2a58f458066a5.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/vendors-c7197feb11002a6e.js +0 -10
- package/standalone/apps/frontend/.next/static/kMwuefB4Z1_6Xta5NPqs1/_buildManifest.js +0 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +0 -66
- package/standalone/node_modules/next/dist/compiled/babel/code-frame.js +0 -1
- package/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +0 -1
- package/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +0 -1
- package/standalone/node_modules/next/dist/compiled/tar/index.js +0 -1
- package/standalone/node_modules/next/dist/server/app-render/staged-validation.js +0 -32
- package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +0 -76
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +0 -52
- package/standalone/node_modules/typescript/lib/typescript.js +0 -200276
- package/standalone/node_modules/typescript/package.json +0 -120
- /package/standalone/apps/frontend/.next/static/{kMwuefB4Z1_6Xta5NPqs1 → I_XveRdyStDMqYJPcAAy5}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
"production" !== process.env.NODE_ENV &&
|
|
13
|
+
(function () {
|
|
14
|
+
function defineDeprecationWarning(methodName, info) {
|
|
15
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
16
|
+
get: function () {
|
|
17
|
+
console.warn(
|
|
18
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
19
|
+
info[0],
|
|
20
|
+
info[1]
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function getIteratorFn(maybeIterable) {
|
|
26
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
27
|
+
return null;
|
|
28
|
+
maybeIterable =
|
|
29
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
30
|
+
maybeIterable["@@iterator"];
|
|
31
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
32
|
+
}
|
|
33
|
+
function warnNoop(publicInstance, callerName) {
|
|
34
|
+
publicInstance =
|
|
35
|
+
((publicInstance = publicInstance.constructor) &&
|
|
36
|
+
(publicInstance.displayName || publicInstance.name)) ||
|
|
37
|
+
"ReactClass";
|
|
38
|
+
var warningKey = publicInstance + "." + callerName;
|
|
39
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] ||
|
|
40
|
+
(console.error(
|
|
41
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
42
|
+
callerName,
|
|
43
|
+
publicInstance
|
|
44
|
+
),
|
|
45
|
+
(didWarnStateUpdateForUnmountedComponent[warningKey] = !0));
|
|
46
|
+
}
|
|
47
|
+
function Component(props, context, updater) {
|
|
48
|
+
this.props = props;
|
|
49
|
+
this.context = context;
|
|
50
|
+
this.refs = emptyObject;
|
|
51
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
52
|
+
}
|
|
53
|
+
function ComponentDummy() {}
|
|
54
|
+
function PureComponent(props, context, updater) {
|
|
55
|
+
this.props = props;
|
|
56
|
+
this.context = context;
|
|
57
|
+
this.refs = emptyObject;
|
|
58
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
59
|
+
}
|
|
60
|
+
function noop() {}
|
|
61
|
+
function testStringCoercion(value) {
|
|
62
|
+
return "" + value;
|
|
63
|
+
}
|
|
64
|
+
function checkKeyStringCoercion(value) {
|
|
65
|
+
try {
|
|
66
|
+
testStringCoercion(value);
|
|
67
|
+
var JSCompiler_inline_result = !1;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
JSCompiler_inline_result = !0;
|
|
70
|
+
}
|
|
71
|
+
if (JSCompiler_inline_result) {
|
|
72
|
+
JSCompiler_inline_result = console;
|
|
73
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
74
|
+
var JSCompiler_inline_result$jscomp$0 =
|
|
75
|
+
("function" === typeof Symbol &&
|
|
76
|
+
Symbol.toStringTag &&
|
|
77
|
+
value[Symbol.toStringTag]) ||
|
|
78
|
+
value.constructor.name ||
|
|
79
|
+
"Object";
|
|
80
|
+
JSCompiler_temp_const.call(
|
|
81
|
+
JSCompiler_inline_result,
|
|
82
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
83
|
+
JSCompiler_inline_result$jscomp$0
|
|
84
|
+
);
|
|
85
|
+
return testStringCoercion(value);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function getComponentNameFromType(type) {
|
|
89
|
+
if (null == type) return null;
|
|
90
|
+
if ("function" === typeof type)
|
|
91
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
92
|
+
? null
|
|
93
|
+
: type.displayName || type.name || null;
|
|
94
|
+
if ("string" === typeof type) return type;
|
|
95
|
+
switch (type) {
|
|
96
|
+
case REACT_FRAGMENT_TYPE:
|
|
97
|
+
return "Fragment";
|
|
98
|
+
case REACT_PROFILER_TYPE:
|
|
99
|
+
return "Profiler";
|
|
100
|
+
case REACT_STRICT_MODE_TYPE:
|
|
101
|
+
return "StrictMode";
|
|
102
|
+
case REACT_SUSPENSE_TYPE:
|
|
103
|
+
return "Suspense";
|
|
104
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
105
|
+
return "SuspenseList";
|
|
106
|
+
case REACT_ACTIVITY_TYPE:
|
|
107
|
+
return "Activity";
|
|
108
|
+
}
|
|
109
|
+
if ("object" === typeof type)
|
|
110
|
+
switch (
|
|
111
|
+
("number" === typeof type.tag &&
|
|
112
|
+
console.error(
|
|
113
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
114
|
+
),
|
|
115
|
+
type.$$typeof)
|
|
116
|
+
) {
|
|
117
|
+
case REACT_PORTAL_TYPE:
|
|
118
|
+
return "Portal";
|
|
119
|
+
case REACT_CONTEXT_TYPE:
|
|
120
|
+
return type.displayName || "Context";
|
|
121
|
+
case REACT_CONSUMER_TYPE:
|
|
122
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
123
|
+
case REACT_FORWARD_REF_TYPE:
|
|
124
|
+
var innerType = type.render;
|
|
125
|
+
type = type.displayName;
|
|
126
|
+
type ||
|
|
127
|
+
((type = innerType.displayName || innerType.name || ""),
|
|
128
|
+
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
129
|
+
return type;
|
|
130
|
+
case REACT_MEMO_TYPE:
|
|
131
|
+
return (
|
|
132
|
+
(innerType = type.displayName || null),
|
|
133
|
+
null !== innerType
|
|
134
|
+
? innerType
|
|
135
|
+
: getComponentNameFromType(type.type) || "Memo"
|
|
136
|
+
);
|
|
137
|
+
case REACT_LAZY_TYPE:
|
|
138
|
+
innerType = type._payload;
|
|
139
|
+
type = type._init;
|
|
140
|
+
try {
|
|
141
|
+
return getComponentNameFromType(type(innerType));
|
|
142
|
+
} catch (x) {}
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
function getTaskName(type) {
|
|
147
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
148
|
+
if (
|
|
149
|
+
"object" === typeof type &&
|
|
150
|
+
null !== type &&
|
|
151
|
+
type.$$typeof === REACT_LAZY_TYPE
|
|
152
|
+
)
|
|
153
|
+
return "<...>";
|
|
154
|
+
try {
|
|
155
|
+
var name = getComponentNameFromType(type);
|
|
156
|
+
return name ? "<" + name + ">" : "<...>";
|
|
157
|
+
} catch (x) {
|
|
158
|
+
return "<...>";
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function getOwner() {
|
|
162
|
+
var dispatcher = ReactSharedInternals.A;
|
|
163
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
164
|
+
}
|
|
165
|
+
function UnknownOwner() {
|
|
166
|
+
return Error("react-stack-top-frame");
|
|
167
|
+
}
|
|
168
|
+
function hasValidKey(config) {
|
|
169
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
170
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
171
|
+
if (getter && getter.isReactWarning) return !1;
|
|
172
|
+
}
|
|
173
|
+
return void 0 !== config.key;
|
|
174
|
+
}
|
|
175
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
176
|
+
function warnAboutAccessingKey() {
|
|
177
|
+
specialPropKeyWarningShown ||
|
|
178
|
+
((specialPropKeyWarningShown = !0),
|
|
179
|
+
console.error(
|
|
180
|
+
"%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://react.dev/link/special-props)",
|
|
181
|
+
displayName
|
|
182
|
+
));
|
|
183
|
+
}
|
|
184
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
185
|
+
Object.defineProperty(props, "key", {
|
|
186
|
+
get: warnAboutAccessingKey,
|
|
187
|
+
configurable: !0
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
191
|
+
var componentName = getComponentNameFromType(this.type);
|
|
192
|
+
didWarnAboutElementRef[componentName] ||
|
|
193
|
+
((didWarnAboutElementRef[componentName] = !0),
|
|
194
|
+
console.error(
|
|
195
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
196
|
+
));
|
|
197
|
+
componentName = this.props.ref;
|
|
198
|
+
return void 0 !== componentName ? componentName : null;
|
|
199
|
+
}
|
|
200
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
201
|
+
var refProp = props.ref;
|
|
202
|
+
type = {
|
|
203
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
204
|
+
type: type,
|
|
205
|
+
key: key,
|
|
206
|
+
props: props,
|
|
207
|
+
_owner: owner
|
|
208
|
+
};
|
|
209
|
+
null !== (void 0 !== refProp ? refProp : null)
|
|
210
|
+
? Object.defineProperty(type, "ref", {
|
|
211
|
+
enumerable: !1,
|
|
212
|
+
get: elementRefGetterWithDeprecationWarning
|
|
213
|
+
})
|
|
214
|
+
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
|
215
|
+
type._store = {};
|
|
216
|
+
Object.defineProperty(type._store, "validated", {
|
|
217
|
+
configurable: !1,
|
|
218
|
+
enumerable: !1,
|
|
219
|
+
writable: !0,
|
|
220
|
+
value: 0
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
223
|
+
configurable: !1,
|
|
224
|
+
enumerable: !1,
|
|
225
|
+
writable: !0,
|
|
226
|
+
value: null
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(type, "_debugStack", {
|
|
229
|
+
configurable: !1,
|
|
230
|
+
enumerable: !1,
|
|
231
|
+
writable: !0,
|
|
232
|
+
value: debugStack
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(type, "_debugTask", {
|
|
235
|
+
configurable: !1,
|
|
236
|
+
enumerable: !1,
|
|
237
|
+
writable: !0,
|
|
238
|
+
value: debugTask
|
|
239
|
+
});
|
|
240
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
241
|
+
return type;
|
|
242
|
+
}
|
|
243
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
244
|
+
newKey = ReactElement(
|
|
245
|
+
oldElement.type,
|
|
246
|
+
newKey,
|
|
247
|
+
oldElement.props,
|
|
248
|
+
oldElement._owner,
|
|
249
|
+
oldElement._debugStack,
|
|
250
|
+
oldElement._debugTask
|
|
251
|
+
);
|
|
252
|
+
oldElement._store &&
|
|
253
|
+
(newKey._store.validated = oldElement._store.validated);
|
|
254
|
+
return newKey;
|
|
255
|
+
}
|
|
256
|
+
function validateChildKeys(node) {
|
|
257
|
+
isValidElement(node)
|
|
258
|
+
? node._store && (node._store.validated = 1)
|
|
259
|
+
: "object" === typeof node &&
|
|
260
|
+
null !== node &&
|
|
261
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
|
262
|
+
("fulfilled" === node._payload.status
|
|
263
|
+
? isValidElement(node._payload.value) &&
|
|
264
|
+
node._payload.value._store &&
|
|
265
|
+
(node._payload.value._store.validated = 1)
|
|
266
|
+
: node._store && (node._store.validated = 1));
|
|
267
|
+
}
|
|
268
|
+
function isValidElement(object) {
|
|
269
|
+
return (
|
|
270
|
+
"object" === typeof object &&
|
|
271
|
+
null !== object &&
|
|
272
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
function escape(key) {
|
|
276
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
277
|
+
return (
|
|
278
|
+
"$" +
|
|
279
|
+
key.replace(/[=:]/g, function (match) {
|
|
280
|
+
return escaperLookup[match];
|
|
281
|
+
})
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
function getElementKey(element, index) {
|
|
285
|
+
return "object" === typeof element &&
|
|
286
|
+
null !== element &&
|
|
287
|
+
null != element.key
|
|
288
|
+
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
289
|
+
: index.toString(36);
|
|
290
|
+
}
|
|
291
|
+
function resolveThenable(thenable) {
|
|
292
|
+
switch (thenable.status) {
|
|
293
|
+
case "fulfilled":
|
|
294
|
+
return thenable.value;
|
|
295
|
+
case "rejected":
|
|
296
|
+
throw thenable.reason;
|
|
297
|
+
default:
|
|
298
|
+
switch (
|
|
299
|
+
("string" === typeof thenable.status
|
|
300
|
+
? thenable.then(noop, noop)
|
|
301
|
+
: ((thenable.status = "pending"),
|
|
302
|
+
thenable.then(
|
|
303
|
+
function (fulfilledValue) {
|
|
304
|
+
"pending" === thenable.status &&
|
|
305
|
+
((thenable.status = "fulfilled"),
|
|
306
|
+
(thenable.value = fulfilledValue));
|
|
307
|
+
},
|
|
308
|
+
function (error) {
|
|
309
|
+
"pending" === thenable.status &&
|
|
310
|
+
((thenable.status = "rejected"),
|
|
311
|
+
(thenable.reason = error));
|
|
312
|
+
}
|
|
313
|
+
)),
|
|
314
|
+
thenable.status)
|
|
315
|
+
) {
|
|
316
|
+
case "fulfilled":
|
|
317
|
+
return thenable.value;
|
|
318
|
+
case "rejected":
|
|
319
|
+
throw thenable.reason;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
throw thenable;
|
|
323
|
+
}
|
|
324
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
325
|
+
var type = typeof children;
|
|
326
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
327
|
+
var invokeCallback = !1;
|
|
328
|
+
if (null === children) invokeCallback = !0;
|
|
329
|
+
else
|
|
330
|
+
switch (type) {
|
|
331
|
+
case "bigint":
|
|
332
|
+
case "string":
|
|
333
|
+
case "number":
|
|
334
|
+
invokeCallback = !0;
|
|
335
|
+
break;
|
|
336
|
+
case "object":
|
|
337
|
+
switch (children.$$typeof) {
|
|
338
|
+
case REACT_ELEMENT_TYPE:
|
|
339
|
+
case REACT_PORTAL_TYPE:
|
|
340
|
+
invokeCallback = !0;
|
|
341
|
+
break;
|
|
342
|
+
case REACT_LAZY_TYPE:
|
|
343
|
+
return (
|
|
344
|
+
(invokeCallback = children._init),
|
|
345
|
+
mapIntoArray(
|
|
346
|
+
invokeCallback(children._payload),
|
|
347
|
+
array,
|
|
348
|
+
escapedPrefix,
|
|
349
|
+
nameSoFar,
|
|
350
|
+
callback
|
|
351
|
+
)
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (invokeCallback) {
|
|
356
|
+
invokeCallback = children;
|
|
357
|
+
callback = callback(invokeCallback);
|
|
358
|
+
var childKey =
|
|
359
|
+
"" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
360
|
+
isArrayImpl(callback)
|
|
361
|
+
? ((escapedPrefix = ""),
|
|
362
|
+
null != childKey &&
|
|
363
|
+
(escapedPrefix =
|
|
364
|
+
childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
365
|
+
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
366
|
+
return c;
|
|
367
|
+
}))
|
|
368
|
+
: null != callback &&
|
|
369
|
+
(isValidElement(callback) &&
|
|
370
|
+
(null != callback.key &&
|
|
371
|
+
((invokeCallback && invokeCallback.key === callback.key) ||
|
|
372
|
+
checkKeyStringCoercion(callback.key)),
|
|
373
|
+
(escapedPrefix = cloneAndReplaceKey(
|
|
374
|
+
callback,
|
|
375
|
+
escapedPrefix +
|
|
376
|
+
(null == callback.key ||
|
|
377
|
+
(invokeCallback && invokeCallback.key === callback.key)
|
|
378
|
+
? ""
|
|
379
|
+
: ("" + callback.key).replace(
|
|
380
|
+
userProvidedKeyEscapeRegex,
|
|
381
|
+
"$&/"
|
|
382
|
+
) + "/") +
|
|
383
|
+
childKey
|
|
384
|
+
)),
|
|
385
|
+
"" !== nameSoFar &&
|
|
386
|
+
null != invokeCallback &&
|
|
387
|
+
isValidElement(invokeCallback) &&
|
|
388
|
+
null == invokeCallback.key &&
|
|
389
|
+
invokeCallback._store &&
|
|
390
|
+
!invokeCallback._store.validated &&
|
|
391
|
+
(escapedPrefix._store.validated = 2),
|
|
392
|
+
(callback = escapedPrefix)),
|
|
393
|
+
array.push(callback));
|
|
394
|
+
return 1;
|
|
395
|
+
}
|
|
396
|
+
invokeCallback = 0;
|
|
397
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
398
|
+
if (isArrayImpl(children))
|
|
399
|
+
for (var i = 0; i < children.length; i++)
|
|
400
|
+
(nameSoFar = children[i]),
|
|
401
|
+
(type = childKey + getElementKey(nameSoFar, i)),
|
|
402
|
+
(invokeCallback += mapIntoArray(
|
|
403
|
+
nameSoFar,
|
|
404
|
+
array,
|
|
405
|
+
escapedPrefix,
|
|
406
|
+
type,
|
|
407
|
+
callback
|
|
408
|
+
));
|
|
409
|
+
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
410
|
+
for (
|
|
411
|
+
i === children.entries &&
|
|
412
|
+
(didWarnAboutMaps ||
|
|
413
|
+
console.warn(
|
|
414
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
415
|
+
),
|
|
416
|
+
(didWarnAboutMaps = !0)),
|
|
417
|
+
children = i.call(children),
|
|
418
|
+
i = 0;
|
|
419
|
+
!(nameSoFar = children.next()).done;
|
|
420
|
+
|
|
421
|
+
)
|
|
422
|
+
(nameSoFar = nameSoFar.value),
|
|
423
|
+
(type = childKey + getElementKey(nameSoFar, i++)),
|
|
424
|
+
(invokeCallback += mapIntoArray(
|
|
425
|
+
nameSoFar,
|
|
426
|
+
array,
|
|
427
|
+
escapedPrefix,
|
|
428
|
+
type,
|
|
429
|
+
callback
|
|
430
|
+
));
|
|
431
|
+
else if ("object" === type) {
|
|
432
|
+
if ("function" === typeof children.then)
|
|
433
|
+
return mapIntoArray(
|
|
434
|
+
resolveThenable(children),
|
|
435
|
+
array,
|
|
436
|
+
escapedPrefix,
|
|
437
|
+
nameSoFar,
|
|
438
|
+
callback
|
|
439
|
+
);
|
|
440
|
+
array = String(children);
|
|
441
|
+
throw Error(
|
|
442
|
+
"Objects are not valid as a React child (found: " +
|
|
443
|
+
("[object Object]" === array
|
|
444
|
+
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
445
|
+
: array) +
|
|
446
|
+
"). If you meant to render a collection of children, use an array instead."
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
return invokeCallback;
|
|
450
|
+
}
|
|
451
|
+
function mapChildren(children, func, context) {
|
|
452
|
+
if (null == children) return children;
|
|
453
|
+
var result = [],
|
|
454
|
+
count = 0;
|
|
455
|
+
mapIntoArray(children, result, "", "", function (child) {
|
|
456
|
+
return func.call(context, child, count++);
|
|
457
|
+
});
|
|
458
|
+
return result;
|
|
459
|
+
}
|
|
460
|
+
function lazyInitializer(payload) {
|
|
461
|
+
if (-1 === payload._status) {
|
|
462
|
+
var ioInfo = payload._ioInfo;
|
|
463
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
464
|
+
ioInfo = payload._result;
|
|
465
|
+
var thenable = ioInfo();
|
|
466
|
+
thenable.then(
|
|
467
|
+
function (moduleObject) {
|
|
468
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
469
|
+
payload._status = 1;
|
|
470
|
+
payload._result = moduleObject;
|
|
471
|
+
var _ioInfo = payload._ioInfo;
|
|
472
|
+
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
473
|
+
void 0 === thenable.status &&
|
|
474
|
+
((thenable.status = "fulfilled"),
|
|
475
|
+
(thenable.value = moduleObject));
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
function (error) {
|
|
479
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
480
|
+
payload._status = 2;
|
|
481
|
+
payload._result = error;
|
|
482
|
+
var _ioInfo2 = payload._ioInfo;
|
|
483
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
484
|
+
void 0 === thenable.status &&
|
|
485
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
);
|
|
489
|
+
ioInfo = payload._ioInfo;
|
|
490
|
+
if (null != ioInfo) {
|
|
491
|
+
ioInfo.value = thenable;
|
|
492
|
+
var displayName = thenable.displayName;
|
|
493
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
494
|
+
}
|
|
495
|
+
-1 === payload._status &&
|
|
496
|
+
((payload._status = 0), (payload._result = thenable));
|
|
497
|
+
}
|
|
498
|
+
if (1 === payload._status)
|
|
499
|
+
return (
|
|
500
|
+
(ioInfo = payload._result),
|
|
501
|
+
void 0 === ioInfo &&
|
|
502
|
+
console.error(
|
|
503
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
504
|
+
ioInfo
|
|
505
|
+
),
|
|
506
|
+
"default" in ioInfo ||
|
|
507
|
+
console.error(
|
|
508
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
509
|
+
ioInfo
|
|
510
|
+
),
|
|
511
|
+
ioInfo.default
|
|
512
|
+
);
|
|
513
|
+
throw payload._result;
|
|
514
|
+
}
|
|
515
|
+
function resolveDispatcher() {
|
|
516
|
+
var dispatcher = ReactSharedInternals.H;
|
|
517
|
+
null === dispatcher &&
|
|
518
|
+
console.error(
|
|
519
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
520
|
+
);
|
|
521
|
+
return dispatcher;
|
|
522
|
+
}
|
|
523
|
+
function releaseAsyncTransition() {
|
|
524
|
+
ReactSharedInternals.asyncTransitions--;
|
|
525
|
+
}
|
|
526
|
+
function enqueueTask(task) {
|
|
527
|
+
if (null === enqueueTaskImpl)
|
|
528
|
+
try {
|
|
529
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
530
|
+
enqueueTaskImpl = (module && module[requireString]).call(
|
|
531
|
+
module,
|
|
532
|
+
"timers"
|
|
533
|
+
).setImmediate;
|
|
534
|
+
} catch (_err) {
|
|
535
|
+
enqueueTaskImpl = function (callback) {
|
|
536
|
+
!1 === didWarnAboutMessageChannel &&
|
|
537
|
+
((didWarnAboutMessageChannel = !0),
|
|
538
|
+
"undefined" === typeof MessageChannel &&
|
|
539
|
+
console.error(
|
|
540
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
541
|
+
));
|
|
542
|
+
var channel = new MessageChannel();
|
|
543
|
+
channel.port1.onmessage = callback;
|
|
544
|
+
channel.port2.postMessage(void 0);
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
return enqueueTaskImpl(task);
|
|
548
|
+
}
|
|
549
|
+
function aggregateErrors(errors) {
|
|
550
|
+
return 1 < errors.length && "function" === typeof AggregateError
|
|
551
|
+
? new AggregateError(errors)
|
|
552
|
+
: errors[0];
|
|
553
|
+
}
|
|
554
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
555
|
+
prevActScopeDepth !== actScopeDepth - 1 &&
|
|
556
|
+
console.error(
|
|
557
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
558
|
+
);
|
|
559
|
+
actScopeDepth = prevActScopeDepth;
|
|
560
|
+
}
|
|
561
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
562
|
+
var queue = ReactSharedInternals.actQueue;
|
|
563
|
+
if (null !== queue)
|
|
564
|
+
if (0 !== queue.length)
|
|
565
|
+
try {
|
|
566
|
+
flushActQueue(queue);
|
|
567
|
+
enqueueTask(function () {
|
|
568
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
569
|
+
});
|
|
570
|
+
return;
|
|
571
|
+
} catch (error) {
|
|
572
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
573
|
+
}
|
|
574
|
+
else ReactSharedInternals.actQueue = null;
|
|
575
|
+
0 < ReactSharedInternals.thrownErrors.length
|
|
576
|
+
? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
577
|
+
(ReactSharedInternals.thrownErrors.length = 0),
|
|
578
|
+
reject(queue))
|
|
579
|
+
: resolve(returnValue);
|
|
580
|
+
}
|
|
581
|
+
function flushActQueue(queue) {
|
|
582
|
+
if (!isFlushing) {
|
|
583
|
+
isFlushing = !0;
|
|
584
|
+
var i = 0;
|
|
585
|
+
try {
|
|
586
|
+
for (; i < queue.length; i++) {
|
|
587
|
+
var callback = queue[i];
|
|
588
|
+
do {
|
|
589
|
+
ReactSharedInternals.didUsePromise = !1;
|
|
590
|
+
var continuation = callback(!1);
|
|
591
|
+
if (null !== continuation) {
|
|
592
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
593
|
+
queue[i] = callback;
|
|
594
|
+
queue.splice(0, i);
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
callback = continuation;
|
|
598
|
+
} else break;
|
|
599
|
+
} while (1);
|
|
600
|
+
}
|
|
601
|
+
queue.length = 0;
|
|
602
|
+
} catch (error) {
|
|
603
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
604
|
+
} finally {
|
|
605
|
+
isFlushing = !1;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
610
|
+
"function" ===
|
|
611
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
612
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
613
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
614
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
615
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
616
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
617
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
618
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
619
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
620
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
621
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
622
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
623
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
624
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
625
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
626
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
627
|
+
didWarnStateUpdateForUnmountedComponent = {},
|
|
628
|
+
ReactNoopUpdateQueue = {
|
|
629
|
+
isMounted: function () {
|
|
630
|
+
return !1;
|
|
631
|
+
},
|
|
632
|
+
enqueueForceUpdate: function (publicInstance) {
|
|
633
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
634
|
+
},
|
|
635
|
+
enqueueReplaceState: function (publicInstance) {
|
|
636
|
+
warnNoop(publicInstance, "replaceState");
|
|
637
|
+
},
|
|
638
|
+
enqueueSetState: function (publicInstance) {
|
|
639
|
+
warnNoop(publicInstance, "setState");
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
assign = Object.assign,
|
|
643
|
+
emptyObject = {};
|
|
644
|
+
Object.freeze(emptyObject);
|
|
645
|
+
Component.prototype.isReactComponent = {};
|
|
646
|
+
Component.prototype.setState = function (partialState, callback) {
|
|
647
|
+
if (
|
|
648
|
+
"object" !== typeof partialState &&
|
|
649
|
+
"function" !== typeof partialState &&
|
|
650
|
+
null != partialState
|
|
651
|
+
)
|
|
652
|
+
throw Error(
|
|
653
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
654
|
+
);
|
|
655
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
656
|
+
};
|
|
657
|
+
Component.prototype.forceUpdate = function (callback) {
|
|
658
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
659
|
+
};
|
|
660
|
+
var deprecatedAPIs = {
|
|
661
|
+
isMounted: [
|
|
662
|
+
"isMounted",
|
|
663
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
664
|
+
],
|
|
665
|
+
replaceState: [
|
|
666
|
+
"replaceState",
|
|
667
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
668
|
+
]
|
|
669
|
+
};
|
|
670
|
+
for (fnName in deprecatedAPIs)
|
|
671
|
+
deprecatedAPIs.hasOwnProperty(fnName) &&
|
|
672
|
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
673
|
+
ComponentDummy.prototype = Component.prototype;
|
|
674
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
675
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
676
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
677
|
+
deprecatedAPIs.isPureReactComponent = !0;
|
|
678
|
+
var isArrayImpl = Array.isArray,
|
|
679
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
680
|
+
ReactSharedInternals = {
|
|
681
|
+
H: null,
|
|
682
|
+
A: null,
|
|
683
|
+
T: null,
|
|
684
|
+
S: null,
|
|
685
|
+
actQueue: null,
|
|
686
|
+
asyncTransitions: 0,
|
|
687
|
+
isBatchingLegacy: !1,
|
|
688
|
+
didScheduleLegacyUpdate: !1,
|
|
689
|
+
didUsePromise: !1,
|
|
690
|
+
thrownErrors: [],
|
|
691
|
+
getCurrentStack: null,
|
|
692
|
+
recentlyCreatedOwnerStacks: 0
|
|
693
|
+
},
|
|
694
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
695
|
+
createTask = console.createTask
|
|
696
|
+
? console.createTask
|
|
697
|
+
: function () {
|
|
698
|
+
return null;
|
|
699
|
+
};
|
|
700
|
+
deprecatedAPIs = {
|
|
701
|
+
react_stack_bottom_frame: function (callStackForError) {
|
|
702
|
+
return callStackForError();
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
706
|
+
var didWarnAboutElementRef = {};
|
|
707
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
708
|
+
deprecatedAPIs,
|
|
709
|
+
UnknownOwner
|
|
710
|
+
)();
|
|
711
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
712
|
+
var didWarnAboutMaps = !1,
|
|
713
|
+
userProvidedKeyEscapeRegex = /\/+/g,
|
|
714
|
+
reportGlobalError =
|
|
715
|
+
"function" === typeof reportError
|
|
716
|
+
? reportError
|
|
717
|
+
: function (error) {
|
|
718
|
+
if (
|
|
719
|
+
"object" === typeof window &&
|
|
720
|
+
"function" === typeof window.ErrorEvent
|
|
721
|
+
) {
|
|
722
|
+
var event = new window.ErrorEvent("error", {
|
|
723
|
+
bubbles: !0,
|
|
724
|
+
cancelable: !0,
|
|
725
|
+
message:
|
|
726
|
+
"object" === typeof error &&
|
|
727
|
+
null !== error &&
|
|
728
|
+
"string" === typeof error.message
|
|
729
|
+
? String(error.message)
|
|
730
|
+
: String(error),
|
|
731
|
+
error: error
|
|
732
|
+
});
|
|
733
|
+
if (!window.dispatchEvent(event)) return;
|
|
734
|
+
} else if (
|
|
735
|
+
"object" === typeof process &&
|
|
736
|
+
"function" === typeof process.emit
|
|
737
|
+
) {
|
|
738
|
+
process.emit("uncaughtException", error);
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
console.error(error);
|
|
742
|
+
},
|
|
743
|
+
didWarnAboutMessageChannel = !1,
|
|
744
|
+
enqueueTaskImpl = null,
|
|
745
|
+
actScopeDepth = 0,
|
|
746
|
+
didWarnNoAwaitAct = !1,
|
|
747
|
+
isFlushing = !1,
|
|
748
|
+
queueSeveralMicrotasks =
|
|
749
|
+
"function" === typeof queueMicrotask
|
|
750
|
+
? function (callback) {
|
|
751
|
+
queueMicrotask(function () {
|
|
752
|
+
return queueMicrotask(callback);
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
: enqueueTask;
|
|
756
|
+
deprecatedAPIs = Object.freeze({
|
|
757
|
+
__proto__: null,
|
|
758
|
+
c: function (size) {
|
|
759
|
+
return resolveDispatcher().useMemoCache(size);
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
var fnName = {
|
|
763
|
+
map: mapChildren,
|
|
764
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
765
|
+
mapChildren(
|
|
766
|
+
children,
|
|
767
|
+
function () {
|
|
768
|
+
forEachFunc.apply(this, arguments);
|
|
769
|
+
},
|
|
770
|
+
forEachContext
|
|
771
|
+
);
|
|
772
|
+
},
|
|
773
|
+
count: function (children) {
|
|
774
|
+
var n = 0;
|
|
775
|
+
mapChildren(children, function () {
|
|
776
|
+
n++;
|
|
777
|
+
});
|
|
778
|
+
return n;
|
|
779
|
+
},
|
|
780
|
+
toArray: function (children) {
|
|
781
|
+
return (
|
|
782
|
+
mapChildren(children, function (child) {
|
|
783
|
+
return child;
|
|
784
|
+
}) || []
|
|
785
|
+
);
|
|
786
|
+
},
|
|
787
|
+
only: function (children) {
|
|
788
|
+
if (!isValidElement(children))
|
|
789
|
+
throw Error(
|
|
790
|
+
"React.Children.only expected to receive a single React element child."
|
|
791
|
+
);
|
|
792
|
+
return children;
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
796
|
+
exports.Children = fnName;
|
|
797
|
+
exports.Component = Component;
|
|
798
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
799
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
800
|
+
exports.PureComponent = PureComponent;
|
|
801
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
802
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
803
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
804
|
+
ReactSharedInternals;
|
|
805
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
806
|
+
exports.act = function (callback) {
|
|
807
|
+
var prevActQueue = ReactSharedInternals.actQueue,
|
|
808
|
+
prevActScopeDepth = actScopeDepth;
|
|
809
|
+
actScopeDepth++;
|
|
810
|
+
var queue = (ReactSharedInternals.actQueue =
|
|
811
|
+
null !== prevActQueue ? prevActQueue : []),
|
|
812
|
+
didAwaitActCall = !1;
|
|
813
|
+
try {
|
|
814
|
+
var result = callback();
|
|
815
|
+
} catch (error) {
|
|
816
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
817
|
+
}
|
|
818
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
819
|
+
throw (
|
|
820
|
+
(popActScope(prevActQueue, prevActScopeDepth),
|
|
821
|
+
(callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
822
|
+
(ReactSharedInternals.thrownErrors.length = 0),
|
|
823
|
+
callback)
|
|
824
|
+
);
|
|
825
|
+
if (
|
|
826
|
+
null !== result &&
|
|
827
|
+
"object" === typeof result &&
|
|
828
|
+
"function" === typeof result.then
|
|
829
|
+
) {
|
|
830
|
+
var thenable = result;
|
|
831
|
+
queueSeveralMicrotasks(function () {
|
|
832
|
+
didAwaitActCall ||
|
|
833
|
+
didWarnNoAwaitAct ||
|
|
834
|
+
((didWarnNoAwaitAct = !0),
|
|
835
|
+
console.error(
|
|
836
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
837
|
+
));
|
|
838
|
+
});
|
|
839
|
+
return {
|
|
840
|
+
then: function (resolve, reject) {
|
|
841
|
+
didAwaitActCall = !0;
|
|
842
|
+
thenable.then(
|
|
843
|
+
function (returnValue) {
|
|
844
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
845
|
+
if (0 === prevActScopeDepth) {
|
|
846
|
+
try {
|
|
847
|
+
flushActQueue(queue),
|
|
848
|
+
enqueueTask(function () {
|
|
849
|
+
return recursivelyFlushAsyncActWork(
|
|
850
|
+
returnValue,
|
|
851
|
+
resolve,
|
|
852
|
+
reject
|
|
853
|
+
);
|
|
854
|
+
});
|
|
855
|
+
} catch (error$0) {
|
|
856
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
857
|
+
}
|
|
858
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
859
|
+
var _thrownError = aggregateErrors(
|
|
860
|
+
ReactSharedInternals.thrownErrors
|
|
861
|
+
);
|
|
862
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
863
|
+
reject(_thrownError);
|
|
864
|
+
}
|
|
865
|
+
} else resolve(returnValue);
|
|
866
|
+
},
|
|
867
|
+
function (error) {
|
|
868
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
869
|
+
0 < ReactSharedInternals.thrownErrors.length
|
|
870
|
+
? ((error = aggregateErrors(
|
|
871
|
+
ReactSharedInternals.thrownErrors
|
|
872
|
+
)),
|
|
873
|
+
(ReactSharedInternals.thrownErrors.length = 0),
|
|
874
|
+
reject(error))
|
|
875
|
+
: reject(error);
|
|
876
|
+
}
|
|
877
|
+
);
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
var returnValue$jscomp$0 = result;
|
|
882
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
883
|
+
0 === prevActScopeDepth &&
|
|
884
|
+
(flushActQueue(queue),
|
|
885
|
+
0 !== queue.length &&
|
|
886
|
+
queueSeveralMicrotasks(function () {
|
|
887
|
+
didAwaitActCall ||
|
|
888
|
+
didWarnNoAwaitAct ||
|
|
889
|
+
((didWarnNoAwaitAct = !0),
|
|
890
|
+
console.error(
|
|
891
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
892
|
+
));
|
|
893
|
+
}),
|
|
894
|
+
(ReactSharedInternals.actQueue = null));
|
|
895
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
896
|
+
throw (
|
|
897
|
+
((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
898
|
+
(ReactSharedInternals.thrownErrors.length = 0),
|
|
899
|
+
callback)
|
|
900
|
+
);
|
|
901
|
+
return {
|
|
902
|
+
then: function (resolve, reject) {
|
|
903
|
+
didAwaitActCall = !0;
|
|
904
|
+
0 === prevActScopeDepth
|
|
905
|
+
? ((ReactSharedInternals.actQueue = queue),
|
|
906
|
+
enqueueTask(function () {
|
|
907
|
+
return recursivelyFlushAsyncActWork(
|
|
908
|
+
returnValue$jscomp$0,
|
|
909
|
+
resolve,
|
|
910
|
+
reject
|
|
911
|
+
);
|
|
912
|
+
}))
|
|
913
|
+
: resolve(returnValue$jscomp$0);
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
exports.cache = function (fn) {
|
|
918
|
+
return function () {
|
|
919
|
+
return fn.apply(null, arguments);
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
exports.cacheSignal = function () {
|
|
923
|
+
return null;
|
|
924
|
+
};
|
|
925
|
+
exports.captureOwnerStack = function () {
|
|
926
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
927
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
928
|
+
};
|
|
929
|
+
exports.cloneElement = function (element, config, children) {
|
|
930
|
+
if (null === element || void 0 === element)
|
|
931
|
+
throw Error(
|
|
932
|
+
"The argument must be a React element, but you passed " +
|
|
933
|
+
element +
|
|
934
|
+
"."
|
|
935
|
+
);
|
|
936
|
+
var props = assign({}, element.props),
|
|
937
|
+
key = element.key,
|
|
938
|
+
owner = element._owner;
|
|
939
|
+
if (null != config) {
|
|
940
|
+
var JSCompiler_inline_result;
|
|
941
|
+
a: {
|
|
942
|
+
if (
|
|
943
|
+
hasOwnProperty.call(config, "ref") &&
|
|
944
|
+
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
945
|
+
config,
|
|
946
|
+
"ref"
|
|
947
|
+
).get) &&
|
|
948
|
+
JSCompiler_inline_result.isReactWarning
|
|
949
|
+
) {
|
|
950
|
+
JSCompiler_inline_result = !1;
|
|
951
|
+
break a;
|
|
952
|
+
}
|
|
953
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
954
|
+
}
|
|
955
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
956
|
+
hasValidKey(config) &&
|
|
957
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key));
|
|
958
|
+
for (propName in config)
|
|
959
|
+
!hasOwnProperty.call(config, propName) ||
|
|
960
|
+
"key" === propName ||
|
|
961
|
+
"__self" === propName ||
|
|
962
|
+
"__source" === propName ||
|
|
963
|
+
("ref" === propName && void 0 === config.ref) ||
|
|
964
|
+
(props[propName] = config[propName]);
|
|
965
|
+
}
|
|
966
|
+
var propName = arguments.length - 2;
|
|
967
|
+
if (1 === propName) props.children = children;
|
|
968
|
+
else if (1 < propName) {
|
|
969
|
+
JSCompiler_inline_result = Array(propName);
|
|
970
|
+
for (var i = 0; i < propName; i++)
|
|
971
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
972
|
+
props.children = JSCompiler_inline_result;
|
|
973
|
+
}
|
|
974
|
+
props = ReactElement(
|
|
975
|
+
element.type,
|
|
976
|
+
key,
|
|
977
|
+
props,
|
|
978
|
+
owner,
|
|
979
|
+
element._debugStack,
|
|
980
|
+
element._debugTask
|
|
981
|
+
);
|
|
982
|
+
for (key = 2; key < arguments.length; key++)
|
|
983
|
+
validateChildKeys(arguments[key]);
|
|
984
|
+
return props;
|
|
985
|
+
};
|
|
986
|
+
exports.createContext = function (defaultValue) {
|
|
987
|
+
defaultValue = {
|
|
988
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
989
|
+
_currentValue: defaultValue,
|
|
990
|
+
_currentValue2: defaultValue,
|
|
991
|
+
_threadCount: 0,
|
|
992
|
+
Provider: null,
|
|
993
|
+
Consumer: null
|
|
994
|
+
};
|
|
995
|
+
defaultValue.Provider = defaultValue;
|
|
996
|
+
defaultValue.Consumer = {
|
|
997
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
998
|
+
_context: defaultValue
|
|
999
|
+
};
|
|
1000
|
+
defaultValue._currentRenderer = null;
|
|
1001
|
+
defaultValue._currentRenderer2 = null;
|
|
1002
|
+
return defaultValue;
|
|
1003
|
+
};
|
|
1004
|
+
exports.createElement = function (type, config, children) {
|
|
1005
|
+
for (var i = 2; i < arguments.length; i++)
|
|
1006
|
+
validateChildKeys(arguments[i]);
|
|
1007
|
+
i = {};
|
|
1008
|
+
var key = null;
|
|
1009
|
+
if (null != config)
|
|
1010
|
+
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
1011
|
+
!("__self" in config) ||
|
|
1012
|
+
"key" in config ||
|
|
1013
|
+
((didWarnAboutOldJSXRuntime = !0),
|
|
1014
|
+
console.warn(
|
|
1015
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1016
|
+
)),
|
|
1017
|
+
hasValidKey(config) &&
|
|
1018
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
|
1019
|
+
config))
|
|
1020
|
+
hasOwnProperty.call(config, propName) &&
|
|
1021
|
+
"key" !== propName &&
|
|
1022
|
+
"__self" !== propName &&
|
|
1023
|
+
"__source" !== propName &&
|
|
1024
|
+
(i[propName] = config[propName]);
|
|
1025
|
+
var childrenLength = arguments.length - 2;
|
|
1026
|
+
if (1 === childrenLength) i.children = children;
|
|
1027
|
+
else if (1 < childrenLength) {
|
|
1028
|
+
for (
|
|
1029
|
+
var childArray = Array(childrenLength), _i = 0;
|
|
1030
|
+
_i < childrenLength;
|
|
1031
|
+
_i++
|
|
1032
|
+
)
|
|
1033
|
+
childArray[_i] = arguments[_i + 2];
|
|
1034
|
+
Object.freeze && Object.freeze(childArray);
|
|
1035
|
+
i.children = childArray;
|
|
1036
|
+
}
|
|
1037
|
+
if (type && type.defaultProps)
|
|
1038
|
+
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
1039
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1040
|
+
key &&
|
|
1041
|
+
defineKeyPropWarningGetter(
|
|
1042
|
+
i,
|
|
1043
|
+
"function" === typeof type
|
|
1044
|
+
? type.displayName || type.name || "Unknown"
|
|
1045
|
+
: type
|
|
1046
|
+
);
|
|
1047
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1048
|
+
return ReactElement(
|
|
1049
|
+
type,
|
|
1050
|
+
key,
|
|
1051
|
+
i,
|
|
1052
|
+
getOwner(),
|
|
1053
|
+
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1054
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1055
|
+
);
|
|
1056
|
+
};
|
|
1057
|
+
exports.createRef = function () {
|
|
1058
|
+
var refObject = { current: null };
|
|
1059
|
+
Object.seal(refObject);
|
|
1060
|
+
return refObject;
|
|
1061
|
+
};
|
|
1062
|
+
exports.forwardRef = function (render) {
|
|
1063
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE
|
|
1064
|
+
? console.error(
|
|
1065
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1066
|
+
)
|
|
1067
|
+
: "function" !== typeof render
|
|
1068
|
+
? console.error(
|
|
1069
|
+
"forwardRef requires a render function but was given %s.",
|
|
1070
|
+
null === render ? "null" : typeof render
|
|
1071
|
+
)
|
|
1072
|
+
: 0 !== render.length &&
|
|
1073
|
+
2 !== render.length &&
|
|
1074
|
+
console.error(
|
|
1075
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1076
|
+
1 === render.length
|
|
1077
|
+
? "Did you forget to use the ref parameter?"
|
|
1078
|
+
: "Any additional parameter will be undefined."
|
|
1079
|
+
);
|
|
1080
|
+
null != render &&
|
|
1081
|
+
null != render.defaultProps &&
|
|
1082
|
+
console.error(
|
|
1083
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1084
|
+
);
|
|
1085
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
|
1086
|
+
ownName;
|
|
1087
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1088
|
+
enumerable: !1,
|
|
1089
|
+
configurable: !0,
|
|
1090
|
+
get: function () {
|
|
1091
|
+
return ownName;
|
|
1092
|
+
},
|
|
1093
|
+
set: function (name) {
|
|
1094
|
+
ownName = name;
|
|
1095
|
+
render.name ||
|
|
1096
|
+
render.displayName ||
|
|
1097
|
+
(Object.defineProperty(render, "name", { value: name }),
|
|
1098
|
+
(render.displayName = name));
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
return elementType;
|
|
1102
|
+
};
|
|
1103
|
+
exports.isValidElement = isValidElement;
|
|
1104
|
+
exports.lazy = function (ctor) {
|
|
1105
|
+
ctor = { _status: -1, _result: ctor };
|
|
1106
|
+
var lazyType = {
|
|
1107
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1108
|
+
_payload: ctor,
|
|
1109
|
+
_init: lazyInitializer
|
|
1110
|
+
},
|
|
1111
|
+
ioInfo = {
|
|
1112
|
+
name: "lazy",
|
|
1113
|
+
start: -1,
|
|
1114
|
+
end: -1,
|
|
1115
|
+
value: null,
|
|
1116
|
+
owner: null,
|
|
1117
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1118
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1119
|
+
};
|
|
1120
|
+
ctor._ioInfo = ioInfo;
|
|
1121
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1122
|
+
return lazyType;
|
|
1123
|
+
};
|
|
1124
|
+
exports.memo = function (type, compare) {
|
|
1125
|
+
null == type &&
|
|
1126
|
+
console.error(
|
|
1127
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1128
|
+
null === type ? "null" : typeof type
|
|
1129
|
+
);
|
|
1130
|
+
compare = {
|
|
1131
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1132
|
+
type: type,
|
|
1133
|
+
compare: void 0 === compare ? null : compare
|
|
1134
|
+
};
|
|
1135
|
+
var ownName;
|
|
1136
|
+
Object.defineProperty(compare, "displayName", {
|
|
1137
|
+
enumerable: !1,
|
|
1138
|
+
configurable: !0,
|
|
1139
|
+
get: function () {
|
|
1140
|
+
return ownName;
|
|
1141
|
+
},
|
|
1142
|
+
set: function (name) {
|
|
1143
|
+
ownName = name;
|
|
1144
|
+
type.name ||
|
|
1145
|
+
type.displayName ||
|
|
1146
|
+
(Object.defineProperty(type, "name", { value: name }),
|
|
1147
|
+
(type.displayName = name));
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
return compare;
|
|
1151
|
+
};
|
|
1152
|
+
exports.startTransition = function (scope) {
|
|
1153
|
+
var prevTransition = ReactSharedInternals.T,
|
|
1154
|
+
currentTransition = {};
|
|
1155
|
+
currentTransition._updatedFibers = new Set();
|
|
1156
|
+
ReactSharedInternals.T = currentTransition;
|
|
1157
|
+
try {
|
|
1158
|
+
var returnValue = scope(),
|
|
1159
|
+
onStartTransitionFinish = ReactSharedInternals.S;
|
|
1160
|
+
null !== onStartTransitionFinish &&
|
|
1161
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
|
1162
|
+
"object" === typeof returnValue &&
|
|
1163
|
+
null !== returnValue &&
|
|
1164
|
+
"function" === typeof returnValue.then &&
|
|
1165
|
+
(ReactSharedInternals.asyncTransitions++,
|
|
1166
|
+
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
|
1167
|
+
returnValue.then(noop, reportGlobalError));
|
|
1168
|
+
} catch (error) {
|
|
1169
|
+
reportGlobalError(error);
|
|
1170
|
+
} finally {
|
|
1171
|
+
null === prevTransition &&
|
|
1172
|
+
currentTransition._updatedFibers &&
|
|
1173
|
+
((scope = currentTransition._updatedFibers.size),
|
|
1174
|
+
currentTransition._updatedFibers.clear(),
|
|
1175
|
+
10 < scope &&
|
|
1176
|
+
console.warn(
|
|
1177
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1178
|
+
)),
|
|
1179
|
+
null !== prevTransition &&
|
|
1180
|
+
null !== currentTransition.types &&
|
|
1181
|
+
(null !== prevTransition.types &&
|
|
1182
|
+
prevTransition.types !== currentTransition.types &&
|
|
1183
|
+
console.error(
|
|
1184
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1185
|
+
),
|
|
1186
|
+
(prevTransition.types = currentTransition.types)),
|
|
1187
|
+
(ReactSharedInternals.T = prevTransition);
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
exports.unstable_useCacheRefresh = function () {
|
|
1191
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1192
|
+
};
|
|
1193
|
+
exports.use = function (usable) {
|
|
1194
|
+
return resolveDispatcher().use(usable);
|
|
1195
|
+
};
|
|
1196
|
+
exports.useActionState = function (action, initialState, permalink) {
|
|
1197
|
+
return resolveDispatcher().useActionState(
|
|
1198
|
+
action,
|
|
1199
|
+
initialState,
|
|
1200
|
+
permalink
|
|
1201
|
+
);
|
|
1202
|
+
};
|
|
1203
|
+
exports.useCallback = function (callback, deps) {
|
|
1204
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1205
|
+
};
|
|
1206
|
+
exports.useContext = function (Context) {
|
|
1207
|
+
var dispatcher = resolveDispatcher();
|
|
1208
|
+
Context.$$typeof === REACT_CONSUMER_TYPE &&
|
|
1209
|
+
console.error(
|
|
1210
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1211
|
+
);
|
|
1212
|
+
return dispatcher.useContext(Context);
|
|
1213
|
+
};
|
|
1214
|
+
exports.useDebugValue = function (value, formatterFn) {
|
|
1215
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1216
|
+
};
|
|
1217
|
+
exports.useDeferredValue = function (value, initialValue) {
|
|
1218
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1219
|
+
};
|
|
1220
|
+
exports.useEffect = function (create, deps) {
|
|
1221
|
+
null == create &&
|
|
1222
|
+
console.warn(
|
|
1223
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1224
|
+
);
|
|
1225
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
1226
|
+
};
|
|
1227
|
+
exports.useEffectEvent = function (callback) {
|
|
1228
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
1229
|
+
};
|
|
1230
|
+
exports.useId = function () {
|
|
1231
|
+
return resolveDispatcher().useId();
|
|
1232
|
+
};
|
|
1233
|
+
exports.useImperativeHandle = function (ref, create, deps) {
|
|
1234
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1235
|
+
};
|
|
1236
|
+
exports.useInsertionEffect = function (create, deps) {
|
|
1237
|
+
null == create &&
|
|
1238
|
+
console.warn(
|
|
1239
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1240
|
+
);
|
|
1241
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1242
|
+
};
|
|
1243
|
+
exports.useLayoutEffect = function (create, deps) {
|
|
1244
|
+
null == create &&
|
|
1245
|
+
console.warn(
|
|
1246
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1247
|
+
);
|
|
1248
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1249
|
+
};
|
|
1250
|
+
exports.useMemo = function (create, deps) {
|
|
1251
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1252
|
+
};
|
|
1253
|
+
exports.useOptimistic = function (passthrough, reducer) {
|
|
1254
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1255
|
+
};
|
|
1256
|
+
exports.useReducer = function (reducer, initialArg, init) {
|
|
1257
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1258
|
+
};
|
|
1259
|
+
exports.useRef = function (initialValue) {
|
|
1260
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1261
|
+
};
|
|
1262
|
+
exports.useState = function (initialState) {
|
|
1263
|
+
return resolveDispatcher().useState(initialState);
|
|
1264
|
+
};
|
|
1265
|
+
exports.useSyncExternalStore = function (
|
|
1266
|
+
subscribe,
|
|
1267
|
+
getSnapshot,
|
|
1268
|
+
getServerSnapshot
|
|
1269
|
+
) {
|
|
1270
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1271
|
+
subscribe,
|
|
1272
|
+
getSnapshot,
|
|
1273
|
+
getServerSnapshot
|
|
1274
|
+
);
|
|
1275
|
+
};
|
|
1276
|
+
exports.useTransition = function () {
|
|
1277
|
+
return resolveDispatcher().useTransition();
|
|
1278
|
+
};
|
|
1279
|
+
exports.version = "19.2.4";
|
|
1280
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1281
|
+
"function" ===
|
|
1282
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
1283
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1284
|
+
})();
|