failproofai 1.0.5 → 1.0.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +5 -5
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +4 -4
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[externals]__0sds_16._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
- package/.next/standalone/.next/server/chunks/_09dz7xv._.js +3 -3
- package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js +2 -2
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__15k-dqb._.js → [root-of-the-server]__1i26dsw._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0sz_5na._.js → [root-of-the-server]__1ouobn4._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qapotl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0-yi74u._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_1b78kcp._.js → _09hs6ms._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_0guaevg._.js → _0lbwa8m._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0wso5d3._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1-3unkg._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1ddpc5g._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1es2j7i._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/_1u8-lu2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1zopuov._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_components_project-list_tsx_1ke6anr._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_1hl81y4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuzn._.js +2 -2
- package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +19 -19
- package/.next/standalone/.next/static/chunks/{3w46euc60dx39.js → 03n_qjih7-w6q.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2zafgs90r_leq.js → 06jxjnw8bfczc.js} +1 -1
- package/.next/standalone/.next/static/chunks/{252xreaecy80h.js → 0vanab2g65op_.js} +1 -1
- package/.next/standalone/.next/static/chunks/17pjz_h45j10c.js +1 -0
- package/.next/standalone/.next/static/chunks/1ekh-hj_iom84.js +1 -0
- package/.next/standalone/.next/static/chunks/{021ydrq6rhpsi.js → 1so_3s0q4c4j1.js} +1 -1
- package/.next/standalone/.next/static/chunks/1xacnwjkbekn7.js +1 -0
- package/.next/standalone/.next/static/chunks/2hg_bp8z_vm2g.js +1 -0
- package/.next/standalone/.next/static/chunks/{3bleyy40s99f2.js → 2u0kol_boahtv.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1vb33xa6j9y2q.js → 3_vesf83-0903.js} +1 -1
- package/.next/standalone/.next/static/chunks/3d3hzhcnns6ww.js +1 -0
- package/.next/standalone/.next/static/chunks/3iasus89n8mg1.js +6 -0
- package/.next/standalone/.next/static/chunks/{11s_v03ub6nss.js → 44_cj1_i_aa2z.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-3p73obe0xmrxm.js → turbopack-38nzuvp95_2rv.js} +1 -1
- package/.next/standalone/fp-cloud-cli/uv.lock +3 -3
- package/.next/standalone/hermes-plugin/README.md +133 -0
- package/.next/standalone/hermes-plugin/__init__.py +248 -0
- package/.next/standalone/hermes-plugin/client.py +134 -0
- package/.next/standalone/hermes-plugin/ledger.py +187 -0
- package/.next/standalone/hermes-plugin/plugin.yaml +37 -0
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/image-optimizer.js +14 -0
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +7 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +6 -1
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +10 -10
- package/.next/standalone/node_modules/react/cjs/react.development.js +92 -46
- package/.next/standalone/node_modules/react/cjs/react.production.js +112 -89
- package/.next/standalone/node_modules/react/package.json +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1165 -790
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1171 -791
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +1294 -862
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +1305 -868
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +1315 -896
- package/.next/standalone/node_modules/react-dom/cjs/react-dom.production.js +24 -5
- package/.next/standalone/node_modules/react-dom/package.json +4 -4
- package/.next/standalone/package.json +13 -12
- package/.next/standalone/sdk/python/uv.lock +18 -18
- package/.next/standalone/server.js +1 -1
- package/README.md +29 -13
- package/bin/failproofai.mjs +3 -1
- package/dist/cli.mjs +420 -178
- package/dist/worker.mjs +17 -3
- package/hermes-plugin/README.md +133 -0
- package/hermes-plugin/__init__.py +248 -0
- package/hermes-plugin/client.py +134 -0
- package/hermes-plugin/ledger.py +187 -0
- package/hermes-plugin/plugin.yaml +37 -0
- package/package.json +13 -12
- package/scripts/translate-docs/validate-translation.ts +48 -0
- package/src/hooks/handler.ts +29 -1
- package/src/hooks/integrations.ts +264 -73
- package/src/hooks/manager.ts +17 -5
- package/src/hooks/types.ts +8 -8
- package/src/hooks/worker-server.ts +1 -0
- package/.next/standalone/.next/server/chunks/[externals]__157pf8j._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_13n822a._.js +0 -3
- package/.next/standalone/.next/static/chunks/0y8_1s45gbqmn.js +0 -6
- package/.next/standalone/.next/static/chunks/14b3ezufe5411.js +0 -1
- package/.next/standalone/.next/static/chunks/1oskk7pdo8aon.js +0 -1
- package/.next/standalone/.next/static/chunks/2xycd6mjg00fb.js +0 -1
- package/.next/standalone/.next/static/chunks/3l36d73kj18zw.js +0 -1
- package/.next/standalone/.next/static/chunks/40lpt2o2b283e.js +0 -1
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_ssgManifest.js +0 -0
|
@@ -67,6 +67,7 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
|
67
67
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
68
68
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
69
69
|
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
70
|
+
REACT_RECOVERABLE_TYPE = Symbol.for("react.recoverable"),
|
|
70
71
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
71
72
|
function getIteratorFn(maybeIterable) {
|
|
72
73
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -75,7 +76,8 @@ function getIteratorFn(maybeIterable) {
|
|
|
75
76
|
maybeIterable["@@iterator"];
|
|
76
77
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
77
78
|
}
|
|
78
|
-
var
|
|
79
|
+
var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
80
|
+
isArrayImpl = Array.isArray;
|
|
79
81
|
function murmurhash3_32_gc(key, seed) {
|
|
80
82
|
var remainder = key.length & 3;
|
|
81
83
|
var bytes = key.length - remainder;
|
|
@@ -266,6 +268,7 @@ var unitlessNumbers = new Set(
|
|
|
266
268
|
["markerEnd", "marker-end"],
|
|
267
269
|
["markerMid", "marker-mid"],
|
|
268
270
|
["markerStart", "marker-start"],
|
|
271
|
+
["maskType", "mask-type"],
|
|
269
272
|
["overlinePosition", "overline-position"],
|
|
270
273
|
["overlineThickness", "overline-thickness"],
|
|
271
274
|
["paintOrder", "paint-order"],
|
|
@@ -441,7 +444,15 @@ function createRenderState(
|
|
|
441
444
|
));
|
|
442
445
|
bootstrapScriptContent = [];
|
|
443
446
|
void 0 !== importMap &&
|
|
444
|
-
(bootstrapScriptContent.push(
|
|
447
|
+
(bootstrapScriptContent.push(
|
|
448
|
+
void 0 === externalRuntimeConfig
|
|
449
|
+
? importMapScriptStart
|
|
450
|
+
: stringToPrecomputedChunk(
|
|
451
|
+
'<script type="importmap" nonce="' +
|
|
452
|
+
escapeTextForBrowser(externalRuntimeConfig) +
|
|
453
|
+
'">'
|
|
454
|
+
)
|
|
455
|
+
),
|
|
445
456
|
bootstrapScriptContent.push(
|
|
446
457
|
stringToChunk(
|
|
447
458
|
("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer)
|
|
@@ -702,7 +713,8 @@ function getChildFormatContext(parentContext, type, props) {
|
|
|
702
713
|
}
|
|
703
714
|
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
|
|
704
715
|
? createFormatContext(2, null, subtreeScope, null)
|
|
705
|
-
: parentContext.
|
|
716
|
+
: null !== parentContext.viewTransition ||
|
|
717
|
+
parentContext.tagScope !== subtreeScope
|
|
706
718
|
? createFormatContext(
|
|
707
719
|
parentContext.insertionMode,
|
|
708
720
|
parentContext.selectedValue,
|
|
@@ -719,6 +731,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
|
719
731
|
enter: "none",
|
|
720
732
|
exit: "none",
|
|
721
733
|
share: parentViewTransition.update,
|
|
734
|
+
parentEnter: "none",
|
|
735
|
+
parentExit: "none",
|
|
722
736
|
name: parentViewTransition.autoName,
|
|
723
737
|
autoName: parentViewTransition.autoName,
|
|
724
738
|
nameIdx: 0
|
|
@@ -746,6 +760,11 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
|
746
760
|
resumableState
|
|
747
761
|
);
|
|
748
762
|
}
|
|
763
|
+
function makeId(resumableState, treeId, localId) {
|
|
764
|
+
resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
765
|
+
0 < localId && (resumableState += "H" + localId.toString(32));
|
|
766
|
+
return resumableState + "_";
|
|
767
|
+
}
|
|
749
768
|
var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
|
|
750
769
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
751
770
|
if ("" === text) return textEmbedded;
|
|
@@ -753,6 +772,26 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
|
753
772
|
target.push(stringToChunk(escapeTextForBrowser(text)));
|
|
754
773
|
return !0;
|
|
755
774
|
}
|
|
775
|
+
function pushViewTransitionAttributes(target, formatContext) {
|
|
776
|
+
formatContext = formatContext.viewTransition;
|
|
777
|
+
null !== formatContext &&
|
|
778
|
+
("auto" !== formatContext.name &&
|
|
779
|
+
(pushStringAttribute(
|
|
780
|
+
target,
|
|
781
|
+
"vt-name",
|
|
782
|
+
0 === formatContext.nameIdx
|
|
783
|
+
? formatContext.name
|
|
784
|
+
: formatContext.name + "_" + formatContext.nameIdx
|
|
785
|
+
),
|
|
786
|
+
formatContext.nameIdx++),
|
|
787
|
+
pushStringAttribute(target, "vt-update", formatContext.update),
|
|
788
|
+
"none" !== formatContext.enter &&
|
|
789
|
+
pushStringAttribute(target, "vt-enter", formatContext.enter),
|
|
790
|
+
"none" !== formatContext.exit &&
|
|
791
|
+
pushStringAttribute(target, "vt-exit", formatContext.exit),
|
|
792
|
+
"none" !== formatContext.share &&
|
|
793
|
+
pushStringAttribute(target, "vt-share", formatContext.share));
|
|
794
|
+
}
|
|
756
795
|
var styleNameCache = new Map(),
|
|
757
796
|
styleAttributeStart = stringToPrecomputedChunk(' style="'),
|
|
758
797
|
styleAssign = stringToPrecomputedChunk(":"),
|
|
@@ -990,6 +1029,7 @@ function pushAttribute(target, name, value) {
|
|
|
990
1029
|
case "async":
|
|
991
1030
|
case "autoPlay":
|
|
992
1031
|
case "controls":
|
|
1032
|
+
case "credentialless":
|
|
993
1033
|
case "default":
|
|
994
1034
|
case "defer":
|
|
995
1035
|
case "disabled":
|
|
@@ -1139,7 +1179,7 @@ function flattenOptionChildren(children) {
|
|
|
1139
1179
|
}
|
|
1140
1180
|
var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
|
|
1141
1181
|
formReplayingRuntimeScript = stringToPrecomputedChunk(
|
|
1142
|
-
'addEventListener("submit",function(a){if(!a.defaultPrevented){var
|
|
1182
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});'
|
|
1143
1183
|
);
|
|
1144
1184
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
1145
1185
|
if (0 === (resumableState.instructions & 16)) {
|
|
@@ -1185,7 +1225,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
|
|
|
1185
1225
|
function styleReplacer(match, prefix, s, suffix) {
|
|
1186
1226
|
return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
|
|
1187
1227
|
}
|
|
1188
|
-
function pushSelfClosing(target, props, tag) {
|
|
1228
|
+
function pushSelfClosing(target, props, tag, formatContext) {
|
|
1189
1229
|
target.push(startChunkForTag(tag));
|
|
1190
1230
|
for (var propKey in props)
|
|
1191
1231
|
if (hasOwnProperty.call(props, propKey)) {
|
|
@@ -1199,6 +1239,7 @@ function pushSelfClosing(target, props, tag) {
|
|
|
1199
1239
|
pushAttribute(target, propKey, propValue);
|
|
1200
1240
|
}
|
|
1201
1241
|
}
|
|
1242
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1202
1243
|
target.push(endOfStartTagSelfClosing);
|
|
1203
1244
|
return null;
|
|
1204
1245
|
}
|
|
@@ -1270,7 +1311,7 @@ function pushScriptImpl(target, props) {
|
|
|
1270
1311
|
target.push(endChunkForTag("script"));
|
|
1271
1312
|
return null;
|
|
1272
1313
|
}
|
|
1273
|
-
function pushStartSingletonElement(target, props, tag) {
|
|
1314
|
+
function pushStartSingletonElement(target, props, tag, formatContext) {
|
|
1274
1315
|
target.push(startChunkForTag(tag));
|
|
1275
1316
|
var innerHTML = (tag = null),
|
|
1276
1317
|
propKey;
|
|
@@ -1289,11 +1330,12 @@ function pushStartSingletonElement(target, props, tag) {
|
|
|
1289
1330
|
pushAttribute(target, propKey, propValue);
|
|
1290
1331
|
}
|
|
1291
1332
|
}
|
|
1333
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1292
1334
|
target.push(endOfStartTag);
|
|
1293
1335
|
pushInnerHTML(target, innerHTML, tag);
|
|
1294
1336
|
return tag;
|
|
1295
1337
|
}
|
|
1296
|
-
function pushStartGenericElement(target, props, tag) {
|
|
1338
|
+
function pushStartGenericElement(target, props, tag, formatContext) {
|
|
1297
1339
|
target.push(startChunkForTag(tag));
|
|
1298
1340
|
var innerHTML = (tag = null),
|
|
1299
1341
|
propKey;
|
|
@@ -1312,6 +1354,7 @@ function pushStartGenericElement(target, props, tag) {
|
|
|
1312
1354
|
pushAttribute(target, propKey, propValue);
|
|
1313
1355
|
}
|
|
1314
1356
|
}
|
|
1357
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1315
1358
|
target.push(endOfStartTag);
|
|
1316
1359
|
pushInnerHTML(target, innerHTML, tag);
|
|
1317
1360
|
return "string" === typeof tag
|
|
@@ -1374,6 +1417,7 @@ function pushStartInstance(
|
|
|
1374
1417
|
pushAttribute(target$jscomp$0, propKey, propValue);
|
|
1375
1418
|
}
|
|
1376
1419
|
}
|
|
1420
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1377
1421
|
target$jscomp$0.push(endOfStartTag);
|
|
1378
1422
|
pushInnerHTML(target$jscomp$0, innerHTML, children);
|
|
1379
1423
|
if ("string" === typeof children) {
|
|
@@ -1412,6 +1456,7 @@ function pushStartInstance(
|
|
|
1412
1456
|
);
|
|
1413
1457
|
}
|
|
1414
1458
|
}
|
|
1459
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1415
1460
|
target$jscomp$0.push(endOfStartTag);
|
|
1416
1461
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
|
|
1417
1462
|
return children$jscomp$0;
|
|
@@ -1499,6 +1544,7 @@ function pushStartInstance(
|
|
|
1499
1544
|
null === value$jscomp$0 &&
|
|
1500
1545
|
null !== defaultValue &&
|
|
1501
1546
|
(value$jscomp$0 = defaultValue);
|
|
1547
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1502
1548
|
target$jscomp$0.push(endOfStartTag);
|
|
1503
1549
|
if (null != children$jscomp$2) {
|
|
1504
1550
|
if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92));
|
|
@@ -1590,6 +1636,7 @@ function pushStartInstance(
|
|
|
1590
1636
|
? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
|
|
1591
1637
|
: null !== defaultValue$jscomp$0 &&
|
|
1592
1638
|
pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
|
|
1639
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1593
1640
|
target$jscomp$0.push(endOfStartTagSelfClosing);
|
|
1594
1641
|
null != formData &&
|
|
1595
1642
|
formData.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -1648,6 +1695,7 @@ function pushStartInstance(
|
|
|
1648
1695
|
formTarget$jscomp$0,
|
|
1649
1696
|
name$jscomp$0
|
|
1650
1697
|
);
|
|
1698
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1651
1699
|
target$jscomp$0.push(endOfStartTag);
|
|
1652
1700
|
null != formData$jscomp$0 &&
|
|
1653
1701
|
formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -1735,6 +1783,7 @@ function pushStartInstance(
|
|
|
1735
1783
|
pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
|
|
1736
1784
|
null != formTarget$jscomp$1 &&
|
|
1737
1785
|
pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
|
|
1786
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1738
1787
|
target$jscomp$0.push(endOfStartTag);
|
|
1739
1788
|
null !== formActionName &&
|
|
1740
1789
|
(target$jscomp$0.push(startHiddenInputChunk),
|
|
@@ -1768,6 +1817,7 @@ function pushStartInstance(
|
|
|
1768
1817
|
);
|
|
1769
1818
|
}
|
|
1770
1819
|
}
|
|
1820
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1771
1821
|
target$jscomp$0.push(endOfStartTag);
|
|
1772
1822
|
return null;
|
|
1773
1823
|
case "object":
|
|
@@ -1805,6 +1855,7 @@ function pushStartInstance(
|
|
|
1805
1855
|
);
|
|
1806
1856
|
}
|
|
1807
1857
|
}
|
|
1858
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1808
1859
|
target$jscomp$0.push(endOfStartTag);
|
|
1809
1860
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
1810
1861
|
if ("string" === typeof children$jscomp$5) {
|
|
@@ -2086,17 +2137,33 @@ function pushStartInstance(
|
|
|
2086
2137
|
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
|
2087
2138
|
target$jscomp$0,
|
|
2088
2139
|
props,
|
|
2089
|
-
"meta"
|
|
2140
|
+
"meta",
|
|
2141
|
+
formatContext
|
|
2090
2142
|
);
|
|
2091
2143
|
else
|
|
2092
2144
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2093
2145
|
(JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
|
|
2094
2146
|
? null
|
|
2095
2147
|
: "string" === typeof props.charSet
|
|
2096
|
-
? pushSelfClosing(
|
|
2148
|
+
? pushSelfClosing(
|
|
2149
|
+
renderState.charsetChunks,
|
|
2150
|
+
props,
|
|
2151
|
+
"meta",
|
|
2152
|
+
formatContext
|
|
2153
|
+
)
|
|
2097
2154
|
: "viewport" === props.name
|
|
2098
|
-
? pushSelfClosing(
|
|
2099
|
-
|
|
2155
|
+
? pushSelfClosing(
|
|
2156
|
+
renderState.viewportChunks,
|
|
2157
|
+
props,
|
|
2158
|
+
"meta",
|
|
2159
|
+
formatContext
|
|
2160
|
+
)
|
|
2161
|
+
: pushSelfClosing(
|
|
2162
|
+
renderState.hoistableChunks,
|
|
2163
|
+
props,
|
|
2164
|
+
"meta",
|
|
2165
|
+
formatContext
|
|
2166
|
+
));
|
|
2100
2167
|
return JSCompiler_inline_result$jscomp$7;
|
|
2101
2168
|
case "listing":
|
|
2102
2169
|
case "pre":
|
|
@@ -2123,6 +2190,7 @@ function pushStartInstance(
|
|
|
2123
2190
|
);
|
|
2124
2191
|
}
|
|
2125
2192
|
}
|
|
2193
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2126
2194
|
target$jscomp$0.push(endOfStartTag);
|
|
2127
2195
|
if (null != innerHTML$jscomp$7) {
|
|
2128
2196
|
if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
|
|
@@ -2208,7 +2276,7 @@ function pushStartInstance(
|
|
|
2208
2276
|
nonce: props.nonce,
|
|
2209
2277
|
type: props.type,
|
|
2210
2278
|
fetchPriority: props.fetchPriority,
|
|
2211
|
-
referrerPolicy: props.
|
|
2279
|
+
referrerPolicy: props.referrerPolicy
|
|
2212
2280
|
})),
|
|
2213
2281
|
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
2214
2282
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
@@ -2234,7 +2302,7 @@ function pushStartInstance(
|
|
|
2234
2302
|
promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
|
|
2235
2303
|
}
|
|
2236
2304
|
}
|
|
2237
|
-
return pushSelfClosing(target$jscomp$0, props, "img");
|
|
2305
|
+
return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
|
|
2238
2306
|
case "base":
|
|
2239
2307
|
case "area":
|
|
2240
2308
|
case "br":
|
|
@@ -2246,7 +2314,7 @@ function pushStartInstance(
|
|
|
2246
2314
|
case "source":
|
|
2247
2315
|
case "track":
|
|
2248
2316
|
case "wbr":
|
|
2249
|
-
return pushSelfClosing(target$jscomp$0, props, type);
|
|
2317
|
+
return pushSelfClosing(target$jscomp$0, props, type, formatContext);
|
|
2250
2318
|
case "annotation-xml":
|
|
2251
2319
|
case "color-profile":
|
|
2252
2320
|
case "font-face":
|
|
@@ -2267,13 +2335,15 @@ function pushStartInstance(
|
|
|
2267
2335
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
2268
2336
|
preamble.headChunks,
|
|
2269
2337
|
props,
|
|
2270
|
-
"head"
|
|
2338
|
+
"head",
|
|
2339
|
+
formatContext
|
|
2271
2340
|
);
|
|
2272
2341
|
} else
|
|
2273
2342
|
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2274
2343
|
target$jscomp$0,
|
|
2275
2344
|
props,
|
|
2276
|
-
"head"
|
|
2345
|
+
"head",
|
|
2346
|
+
formatContext
|
|
2277
2347
|
);
|
|
2278
2348
|
return JSCompiler_inline_result$jscomp$9;
|
|
2279
2349
|
case "body":
|
|
@@ -2287,13 +2357,15 @@ function pushStartInstance(
|
|
|
2287
2357
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
2288
2358
|
preamble$jscomp$0.bodyChunks,
|
|
2289
2359
|
props,
|
|
2290
|
-
"body"
|
|
2360
|
+
"body",
|
|
2361
|
+
formatContext
|
|
2291
2362
|
);
|
|
2292
2363
|
} else
|
|
2293
2364
|
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2294
2365
|
target$jscomp$0,
|
|
2295
2366
|
props,
|
|
2296
|
-
"body"
|
|
2367
|
+
"body",
|
|
2368
|
+
formatContext
|
|
2297
2369
|
);
|
|
2298
2370
|
return JSCompiler_inline_result$jscomp$10;
|
|
2299
2371
|
case "html":
|
|
@@ -2307,13 +2379,15 @@ function pushStartInstance(
|
|
|
2307
2379
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
2308
2380
|
preamble$jscomp$1.htmlChunks,
|
|
2309
2381
|
props,
|
|
2310
|
-
"html"
|
|
2382
|
+
"html",
|
|
2383
|
+
formatContext
|
|
2311
2384
|
);
|
|
2312
2385
|
} else
|
|
2313
2386
|
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
2314
2387
|
target$jscomp$0,
|
|
2315
2388
|
props,
|
|
2316
|
-
"html"
|
|
2389
|
+
"html",
|
|
2390
|
+
formatContext
|
|
2317
2391
|
);
|
|
2318
2392
|
return JSCompiler_inline_result$jscomp$11;
|
|
2319
2393
|
default:
|
|
@@ -2363,12 +2437,13 @@ function pushStartInstance(
|
|
|
2363
2437
|
}
|
|
2364
2438
|
}
|
|
2365
2439
|
}
|
|
2440
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2366
2441
|
target$jscomp$0.push(endOfStartTag);
|
|
2367
2442
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
2368
2443
|
return children$jscomp$9;
|
|
2369
2444
|
}
|
|
2370
2445
|
}
|
|
2371
|
-
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
2446
|
+
return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
|
|
2372
2447
|
}
|
|
2373
2448
|
var endTagCache = new Map();
|
|
2374
2449
|
function endChunkForTag(tag) {
|
|
@@ -2549,12 +2624,12 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
|
|
|
2549
2624
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
|
2550
2625
|
stringToPrecomputedChunk('" data-pid="');
|
|
2551
2626
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
|
2552
|
-
|
|
2553
|
-
)
|
|
2554
|
-
stringToChunk(
|
|
2555
|
-
|
|
2556
|
-
)
|
|
2557
|
-
|
|
2627
|
+
'$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
|
|
2628
|
+
),
|
|
2629
|
+
completeBoundaryUpgradeToViewTransitionsInstruction = stringToChunk(
|
|
2630
|
+
'$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),\nz=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");\nM&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&\nq.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});\nA.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);'
|
|
2631
|
+
),
|
|
2632
|
+
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
|
2558
2633
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
|
2559
2634
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
|
2560
2635
|
),
|
|
@@ -2568,14 +2643,15 @@ stringToPrecomputedChunk('<template data-rri="" data-bid="');
|
|
|
2568
2643
|
stringToPrecomputedChunk('" data-sid="');
|
|
2569
2644
|
stringToPrecomputedChunk('" data-sty="');
|
|
2570
2645
|
var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
|
|
2571
|
-
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
|
|
2646
|
+
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
|
|
2572
2647
|
),
|
|
2573
2648
|
clientRenderScript1Full = stringToPrecomputedChunk(
|
|
2574
|
-
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
|
|
2649
|
+
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
|
|
2575
2650
|
),
|
|
2576
2651
|
clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
|
|
2577
2652
|
clientRenderScript1A = stringToPrecomputedChunk('"'),
|
|
2578
2653
|
clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(","),
|
|
2654
|
+
clientRenderErrorScriptNull = stringToPrecomputedChunk("null"),
|
|
2579
2655
|
clientRenderScriptEnd = stringToPrecomputedChunk(")\x3c/script>");
|
|
2580
2656
|
stringToPrecomputedChunk('<template data-rxi="" data-bid="');
|
|
2581
2657
|
stringToPrecomputedChunk('" data-dgst="');
|
|
@@ -3097,7 +3173,7 @@ function preloadModule(href, options) {
|
|
|
3097
3173
|
break;
|
|
3098
3174
|
default:
|
|
3099
3175
|
if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
|
|
3100
|
-
var resources = resumableState.
|
|
3176
|
+
var resources = resumableState.moduleUnknownResources[as];
|
|
3101
3177
|
if (resources.hasOwnProperty(href)) return;
|
|
3102
3178
|
} else
|
|
3103
3179
|
(resources = {}),
|
|
@@ -3279,8 +3355,10 @@ function hoistHoistables(parentState, childState) {
|
|
|
3279
3355
|
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
|
3280
3356
|
childState.suspenseyImages && (parentState.suspenseyImages = !0);
|
|
3281
3357
|
}
|
|
3282
|
-
function hasSuspenseyContent(hoistableState) {
|
|
3283
|
-
return
|
|
3358
|
+
function hasSuspenseyContent(hoistableState, flushingInShell) {
|
|
3359
|
+
return flushingInShell
|
|
3360
|
+
? hoistableState.suspenseyImages
|
|
3361
|
+
: 0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages;
|
|
3284
3362
|
}
|
|
3285
3363
|
var bind = Function.prototype.bind,
|
|
3286
3364
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
@@ -3304,6 +3382,8 @@ function getComponentNameFromType(type) {
|
|
|
3304
3382
|
return "SuspenseList";
|
|
3305
3383
|
case REACT_ACTIVITY_TYPE:
|
|
3306
3384
|
return "Activity";
|
|
3385
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
3386
|
+
return "ViewTransition";
|
|
3307
3387
|
}
|
|
3308
3388
|
if ("object" === typeof type)
|
|
3309
3389
|
switch (type.$$typeof) {
|
|
@@ -3405,6 +3485,11 @@ var classComponentUpdater = {
|
|
|
3405
3485
|
enqueueForceUpdate: function () {}
|
|
3406
3486
|
},
|
|
3407
3487
|
emptyTreeContext = { id: 1, overflow: "" };
|
|
3488
|
+
function getTreeId(context) {
|
|
3489
|
+
var overflow = context.overflow;
|
|
3490
|
+
context = context.id;
|
|
3491
|
+
return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
|
|
3492
|
+
}
|
|
3408
3493
|
function pushTreeContext(baseContext, totalChildren, index) {
|
|
3409
3494
|
var baseIdWithLeadingBit = baseContext.id;
|
|
3410
3495
|
baseContext = baseContext.overflow;
|
|
@@ -3451,7 +3536,10 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
|
3451
3536
|
case "fulfilled":
|
|
3452
3537
|
return thenable.value;
|
|
3453
3538
|
case "rejected":
|
|
3454
|
-
|
|
3539
|
+
thenableState = thenable.reason;
|
|
3540
|
+
if (void 0 === thenableState && !("reason" in thenable))
|
|
3541
|
+
throw Error(formatProdErrorMessage(600));
|
|
3542
|
+
throw thenableState;
|
|
3455
3543
|
default:
|
|
3456
3544
|
"string" === typeof thenable.status
|
|
3457
3545
|
? thenable.then(noop, noop)
|
|
@@ -3506,8 +3594,50 @@ var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
|
3506
3594
|
actionStateCounter = 0,
|
|
3507
3595
|
actionStateMatchingIndex = -1,
|
|
3508
3596
|
thenableIndexCounter = 0,
|
|
3509
|
-
thenableState = null
|
|
3510
|
-
|
|
3597
|
+
thenableState = null;
|
|
3598
|
+
function createRecoverableError(recoverable) {
|
|
3599
|
+
recoverable = recoverable._reason;
|
|
3600
|
+
if ("function" === typeof recoverable)
|
|
3601
|
+
try {
|
|
3602
|
+
var initializedReason = recoverable();
|
|
3603
|
+
} catch ($jscomp$unused$catch) {
|
|
3604
|
+
initializedReason =
|
|
3605
|
+
"The reason for browser-only rendering could not be determined because its initializer threw.";
|
|
3606
|
+
}
|
|
3607
|
+
else initializedReason = recoverable;
|
|
3608
|
+
initializedReason = Error(
|
|
3609
|
+
formatProdErrorMessage(603),
|
|
3610
|
+
void 0 === recoverable ? void 0 : { cause: initializedReason }
|
|
3611
|
+
);
|
|
3612
|
+
Object.defineProperty(initializedReason, REACT_RECOVERABLE_TYPE, {
|
|
3613
|
+
value: !0
|
|
3614
|
+
});
|
|
3615
|
+
return initializedReason;
|
|
3616
|
+
}
|
|
3617
|
+
function isRecoverableError(error) {
|
|
3618
|
+
return "object" !== typeof error || null === error
|
|
3619
|
+
? !1
|
|
3620
|
+
: !0 === error[REACT_RECOVERABLE_TYPE];
|
|
3621
|
+
}
|
|
3622
|
+
function cloneRecoverableErrorAsFatal(recoverableError) {
|
|
3623
|
+
var fatalRecoverableError = Error(
|
|
3624
|
+
formatProdErrorMessage(604),
|
|
3625
|
+
hasOwnProperty.call(recoverableError, "cause")
|
|
3626
|
+
? { cause: recoverableError.cause }
|
|
3627
|
+
: void 0
|
|
3628
|
+
);
|
|
3629
|
+
recoverableError = recoverableError.stack;
|
|
3630
|
+
if (void 0 !== recoverableError) {
|
|
3631
|
+
var frameStart = recoverableError.indexOf("\n");
|
|
3632
|
+
fatalRecoverableError.stack =
|
|
3633
|
+
fatalRecoverableError.name +
|
|
3634
|
+
": " +
|
|
3635
|
+
fatalRecoverableError.message +
|
|
3636
|
+
(-1 === frameStart ? "" : recoverableError.slice(frameStart));
|
|
3637
|
+
} else fatalRecoverableError.stack = void 0;
|
|
3638
|
+
return fatalRecoverableError;
|
|
3639
|
+
}
|
|
3640
|
+
var renderPhaseUpdates = null,
|
|
3511
3641
|
numberOfReRenders = 0;
|
|
3512
3642
|
function resolveCurrentlyRenderingComponent() {
|
|
3513
3643
|
if (null === currentlyRenderingComponent)
|
|
@@ -3712,6 +3842,8 @@ var HooksDispatcher = {
|
|
|
3712
3842
|
use: function (usable) {
|
|
3713
3843
|
if (null !== usable && "object" === typeof usable) {
|
|
3714
3844
|
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
3845
|
+
if (usable.$$typeof === REACT_RECOVERABLE_TYPE)
|
|
3846
|
+
throw createRecoverableError(usable);
|
|
3715
3847
|
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
|
3716
3848
|
}
|
|
3717
3849
|
throw Error(formatProdErrorMessage(438, String(usable)));
|
|
@@ -3753,21 +3885,11 @@ var HooksDispatcher = {
|
|
|
3753
3885
|
return [!1, unsupportedStartTransition];
|
|
3754
3886
|
},
|
|
3755
3887
|
useId: function () {
|
|
3756
|
-
var
|
|
3757
|
-
|
|
3758
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3759
|
-
JSCompiler_inline_result =
|
|
3760
|
-
(
|
|
3761
|
-
JSCompiler_inline_result &
|
|
3762
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3763
|
-
).toString(32) + overflow;
|
|
3764
|
-
var resumableState = currentResumableState;
|
|
3888
|
+
var treeId = getTreeId(currentlyRenderingTask.treeContext),
|
|
3889
|
+
resumableState = currentResumableState;
|
|
3765
3890
|
if (null === resumableState) throw Error(formatProdErrorMessage(404));
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
"_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
|
|
3769
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3770
|
-
return JSCompiler_inline_result + "_";
|
|
3891
|
+
var localId = localIdCounter++;
|
|
3892
|
+
return makeId(resumableState, treeId, localId);
|
|
3771
3893
|
},
|
|
3772
3894
|
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3773
3895
|
if (void 0 === getServerSnapshot)
|
|
@@ -3855,7 +3977,26 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3855
3977
|
} catch (x$24) {
|
|
3856
3978
|
control = x$24;
|
|
3857
3979
|
}
|
|
3858
|
-
|
|
3980
|
+
Fake = !1;
|
|
3981
|
+
try {
|
|
3982
|
+
var prevProps = Object.getOwnPropertyDescriptor(
|
|
3983
|
+
fn.prototype,
|
|
3984
|
+
"props"
|
|
3985
|
+
);
|
|
3986
|
+
Object.defineProperty(fn.prototype, "props", {
|
|
3987
|
+
configurable: !0,
|
|
3988
|
+
set: function () {
|
|
3989
|
+
throw Error();
|
|
3990
|
+
}
|
|
3991
|
+
});
|
|
3992
|
+
Fake = !0;
|
|
3993
|
+
new fn();
|
|
3994
|
+
} finally {
|
|
3995
|
+
Fake &&
|
|
3996
|
+
(void 0 !== prevProps
|
|
3997
|
+
? Object.defineProperty(fn.prototype, "props", prevProps)
|
|
3998
|
+
: delete fn.prototype.props);
|
|
3999
|
+
}
|
|
3859
4000
|
}
|
|
3860
4001
|
} else {
|
|
3861
4002
|
try {
|
|
@@ -4017,13 +4158,34 @@ function describeComponentStackByType(type) {
|
|
|
4017
4158
|
return describeBuiltInComponentFrame("SuspenseList");
|
|
4018
4159
|
case REACT_SUSPENSE_TYPE:
|
|
4019
4160
|
return describeBuiltInComponentFrame("Suspense");
|
|
4161
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
4162
|
+
return describeBuiltInComponentFrame("ViewTransition");
|
|
4020
4163
|
}
|
|
4021
4164
|
return "";
|
|
4022
4165
|
}
|
|
4166
|
+
function getViewTransitionClassName(defaultClass, eventClass) {
|
|
4167
|
+
defaultClass =
|
|
4168
|
+
null == defaultClass || "string" === typeof defaultClass
|
|
4169
|
+
? defaultClass
|
|
4170
|
+
: defaultClass.default;
|
|
4171
|
+
eventClass =
|
|
4172
|
+
null == eventClass || "string" === typeof eventClass
|
|
4173
|
+
? eventClass
|
|
4174
|
+
: eventClass.default;
|
|
4175
|
+
return null == eventClass
|
|
4176
|
+
? "auto" === defaultClass
|
|
4177
|
+
? null
|
|
4178
|
+
: defaultClass
|
|
4179
|
+
: "auto" === eventClass
|
|
4180
|
+
? null
|
|
4181
|
+
: eventClass;
|
|
4182
|
+
}
|
|
4023
4183
|
function isEligibleForOutlining(request, boundary) {
|
|
4024
4184
|
return (
|
|
4025
|
-
(500 < boundary.byteSize ||
|
|
4026
|
-
|
|
4185
|
+
(500 < boundary.byteSize ||
|
|
4186
|
+
hasSuspenseyContent(boundary.contentState, !1) ||
|
|
4187
|
+
boundary.defer) &&
|
|
4188
|
+
null === boundary.preamble
|
|
4027
4189
|
);
|
|
4028
4190
|
}
|
|
4029
4191
|
function defaultErrorHandler(error) {
|
|
@@ -4063,11 +4225,11 @@ function RequestInstance(
|
|
|
4063
4225
|
rootFormatContext,
|
|
4064
4226
|
progressiveChunkSize,
|
|
4065
4227
|
onError,
|
|
4228
|
+
onBrowserBailout,
|
|
4066
4229
|
onAllReady,
|
|
4067
4230
|
onShellReady,
|
|
4068
4231
|
onShellError,
|
|
4069
4232
|
onFatalError,
|
|
4070
|
-
onPostpone,
|
|
4071
4233
|
formState
|
|
4072
4234
|
) {
|
|
4073
4235
|
var abortSet = new Set();
|
|
@@ -4080,21 +4242,24 @@ function RequestInstance(
|
|
|
4080
4242
|
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
4081
4243
|
this.status = 10;
|
|
4082
4244
|
this.fatalError = null;
|
|
4245
|
+
this.aborted = !1;
|
|
4083
4246
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4084
4247
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
4085
4248
|
this.byteSize = 0;
|
|
4086
4249
|
this.abortableTasks = abortSet;
|
|
4087
4250
|
this.pingedTasks = [];
|
|
4251
|
+
this.currentTask = null;
|
|
4088
4252
|
this.clientRenderedBoundaries = [];
|
|
4089
4253
|
this.completedBoundaries = [];
|
|
4090
4254
|
this.partialBoundaries = [];
|
|
4091
|
-
this.trackedPostpones = null;
|
|
4255
|
+
this.postponedState = this.trackedPostpones = null;
|
|
4092
4256
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
4093
|
-
this.
|
|
4257
|
+
this.onBrowserBailout = void 0 === onBrowserBailout ? noop : onBrowserBailout;
|
|
4094
4258
|
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
|
4095
4259
|
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
4096
4260
|
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
4097
4261
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
4262
|
+
this.renderLifetimeController = null;
|
|
4098
4263
|
this.formState = void 0 === formState ? null : formState;
|
|
4099
4264
|
}
|
|
4100
4265
|
function createRequest(
|
|
@@ -4104,11 +4269,11 @@ function createRequest(
|
|
|
4104
4269
|
rootFormatContext,
|
|
4105
4270
|
progressiveChunkSize,
|
|
4106
4271
|
onError,
|
|
4272
|
+
onBrowserBailout,
|
|
4107
4273
|
onAllReady,
|
|
4108
4274
|
onShellReady,
|
|
4109
4275
|
onShellError,
|
|
4110
4276
|
onFatalError,
|
|
4111
|
-
onPostpone,
|
|
4112
4277
|
formState
|
|
4113
4278
|
) {
|
|
4114
4279
|
resumableState = new RequestInstance(
|
|
@@ -4117,11 +4282,11 @@ function createRequest(
|
|
|
4117
4282
|
rootFormatContext,
|
|
4118
4283
|
progressiveChunkSize,
|
|
4119
4284
|
onError,
|
|
4285
|
+
onBrowserBailout,
|
|
4120
4286
|
onAllReady,
|
|
4121
4287
|
onShellReady,
|
|
4122
4288
|
onShellError,
|
|
4123
4289
|
onFatalError,
|
|
4124
|
-
onPostpone,
|
|
4125
4290
|
formState
|
|
4126
4291
|
);
|
|
4127
4292
|
renderState = createPendingSegment(
|
|
@@ -4161,11 +4326,11 @@ function createPrerenderRequest(
|
|
|
4161
4326
|
rootFormatContext,
|
|
4162
4327
|
progressiveChunkSize,
|
|
4163
4328
|
onError,
|
|
4329
|
+
onBrowserBailout,
|
|
4164
4330
|
onAllReady,
|
|
4165
4331
|
onShellReady,
|
|
4166
4332
|
onShellError,
|
|
4167
|
-
onFatalError
|
|
4168
|
-
onPostpone
|
|
4333
|
+
onFatalError
|
|
4169
4334
|
) {
|
|
4170
4335
|
children = createRequest(
|
|
4171
4336
|
children,
|
|
@@ -4174,11 +4339,11 @@ function createPrerenderRequest(
|
|
|
4174
4339
|
rootFormatContext,
|
|
4175
4340
|
progressiveChunkSize,
|
|
4176
4341
|
onError,
|
|
4342
|
+
onBrowserBailout,
|
|
4177
4343
|
onAllReady,
|
|
4178
4344
|
onShellReady,
|
|
4179
4345
|
onShellError,
|
|
4180
4346
|
onFatalError,
|
|
4181
|
-
onPostpone,
|
|
4182
4347
|
void 0
|
|
4183
4348
|
);
|
|
4184
4349
|
children.trackedPostpones = {
|
|
@@ -4193,11 +4358,11 @@ function resumeRequest(
|
|
|
4193
4358
|
postponedState,
|
|
4194
4359
|
renderState,
|
|
4195
4360
|
onError,
|
|
4361
|
+
onBrowserBailout,
|
|
4196
4362
|
onAllReady,
|
|
4197
4363
|
onShellReady,
|
|
4198
4364
|
onShellError,
|
|
4199
|
-
onFatalError
|
|
4200
|
-
onPostpone
|
|
4365
|
+
onFatalError
|
|
4201
4366
|
) {
|
|
4202
4367
|
renderState = new RequestInstance(
|
|
4203
4368
|
postponedState.resumableState,
|
|
@@ -4205,11 +4370,11 @@ function resumeRequest(
|
|
|
4205
4370
|
postponedState.rootFormatContext,
|
|
4206
4371
|
postponedState.progressiveChunkSize,
|
|
4207
4372
|
onError,
|
|
4373
|
+
onBrowserBailout,
|
|
4208
4374
|
onAllReady,
|
|
4209
4375
|
onShellReady,
|
|
4210
4376
|
onShellError,
|
|
4211
4377
|
onFatalError,
|
|
4212
|
-
onPostpone,
|
|
4213
4378
|
null
|
|
4214
4379
|
);
|
|
4215
4380
|
renderState.nextSegmentId = postponedState.nextSegmentId;
|
|
@@ -4274,22 +4439,22 @@ function resumeAndPrerenderRequest(
|
|
|
4274
4439
|
postponedState,
|
|
4275
4440
|
renderState,
|
|
4276
4441
|
onError,
|
|
4442
|
+
onBrowserBailout,
|
|
4277
4443
|
onAllReady,
|
|
4278
4444
|
onShellReady,
|
|
4279
4445
|
onShellError,
|
|
4280
|
-
onFatalError
|
|
4281
|
-
onPostpone
|
|
4446
|
+
onFatalError
|
|
4282
4447
|
) {
|
|
4283
4448
|
children = resumeRequest(
|
|
4284
4449
|
children,
|
|
4285
4450
|
postponedState,
|
|
4286
4451
|
renderState,
|
|
4287
4452
|
onError,
|
|
4453
|
+
onBrowserBailout,
|
|
4288
4454
|
onAllReady,
|
|
4289
4455
|
onShellReady,
|
|
4290
4456
|
onShellError,
|
|
4291
|
-
onFatalError
|
|
4292
|
-
onPostpone
|
|
4457
|
+
onFatalError
|
|
4293
4458
|
);
|
|
4294
4459
|
children.trackedPostpones = {
|
|
4295
4460
|
workingMap: new Map(),
|
|
@@ -4315,8 +4480,8 @@ function createSuspenseBoundary(
|
|
|
4315
4480
|
request,
|
|
4316
4481
|
row,
|
|
4317
4482
|
fallbackAbortableTasks,
|
|
4318
|
-
|
|
4319
|
-
|
|
4483
|
+
preamble,
|
|
4484
|
+
defer
|
|
4320
4485
|
) {
|
|
4321
4486
|
fallbackAbortableTasks = {
|
|
4322
4487
|
status: 0,
|
|
@@ -4326,22 +4491,21 @@ function createSuspenseBoundary(
|
|
|
4326
4491
|
row: row,
|
|
4327
4492
|
completedSegments: [],
|
|
4328
4493
|
byteSize: 0,
|
|
4494
|
+
defer: defer,
|
|
4329
4495
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
4330
4496
|
errorDigest: null,
|
|
4331
4497
|
contentState: createHoistableState(),
|
|
4332
4498
|
fallbackState: createHoistableState(),
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
trackedContentKeyPath: null,
|
|
4336
|
-
trackedFallbackNode: null
|
|
4499
|
+
preamble: preamble,
|
|
4500
|
+
tracked: null
|
|
4337
4501
|
};
|
|
4338
4502
|
null !== row &&
|
|
4339
4503
|
(row.pendingTasks++,
|
|
4340
|
-
(
|
|
4341
|
-
null !==
|
|
4504
|
+
(preamble = row.boundaries),
|
|
4505
|
+
null !== preamble &&
|
|
4342
4506
|
(request.allPendingTasks++,
|
|
4343
4507
|
fallbackAbortableTasks.pendingTasks++,
|
|
4344
|
-
|
|
4508
|
+
preamble.push(fallbackAbortableTasks)),
|
|
4345
4509
|
(request = row.inheritedHoistables),
|
|
4346
4510
|
null !== request &&
|
|
4347
4511
|
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
|
@@ -4373,8 +4537,16 @@ function createRenderTask(
|
|
|
4373
4537
|
replay: null,
|
|
4374
4538
|
node: node,
|
|
4375
4539
|
childIndex: childIndex,
|
|
4376
|
-
ping:
|
|
4377
|
-
|
|
4540
|
+
ping: {
|
|
4541
|
+
resolve: function () {
|
|
4542
|
+
return pingTask(request, task);
|
|
4543
|
+
},
|
|
4544
|
+
reject: function (error) {
|
|
4545
|
+
request.aborted
|
|
4546
|
+
? task.abortSet.delete(task) &&
|
|
4547
|
+
finishAbortedTask(task, request, error)
|
|
4548
|
+
: pingTask(request, task);
|
|
4549
|
+
}
|
|
4378
4550
|
},
|
|
4379
4551
|
blockedBoundary: blockedBoundary,
|
|
4380
4552
|
blockedSegment: blockedSegment,
|
|
@@ -4418,8 +4590,16 @@ function createReplayTask(
|
|
|
4418
4590
|
replay: replay,
|
|
4419
4591
|
node: node,
|
|
4420
4592
|
childIndex: childIndex,
|
|
4421
|
-
ping:
|
|
4422
|
-
|
|
4593
|
+
ping: {
|
|
4594
|
+
resolve: function () {
|
|
4595
|
+
return pingTask(request, task);
|
|
4596
|
+
},
|
|
4597
|
+
reject: function (error) {
|
|
4598
|
+
request.aborted
|
|
4599
|
+
? task.abortSet.delete(task) &&
|
|
4600
|
+
finishAbortedTask(task, request, error)
|
|
4601
|
+
: pingTask(request, task);
|
|
4602
|
+
}
|
|
4423
4603
|
},
|
|
4424
4604
|
blockedBoundary: blockedBoundary,
|
|
4425
4605
|
blockedSegment: null,
|
|
@@ -4502,18 +4682,22 @@ function getThrownInfo(node$jscomp$0) {
|
|
|
4502
4682
|
return errorInfo;
|
|
4503
4683
|
}
|
|
4504
4684
|
function logRecoverableError(request, error, errorInfo) {
|
|
4685
|
+
if (isRecoverableError(error))
|
|
4686
|
+
return (request = request.onBrowserBailout), request(error, errorInfo), "";
|
|
4505
4687
|
request = request.onError;
|
|
4506
4688
|
error = request(error, errorInfo);
|
|
4507
|
-
if (null == error || "string" === typeof error)
|
|
4689
|
+
if (null == error || "string" === typeof error)
|
|
4690
|
+
return "" === error ? void 0 : error;
|
|
4508
4691
|
}
|
|
4509
4692
|
function fatalError(request, error) {
|
|
4510
4693
|
var onShellError = request.onShellError,
|
|
4511
4694
|
onFatalError = request.onFatalError;
|
|
4512
|
-
onShellError(error);
|
|
4695
|
+
0 !== request.pendingRootTasks && onShellError(error);
|
|
4513
4696
|
onFatalError(error);
|
|
4697
|
+
endRenderLifetime(request);
|
|
4514
4698
|
null !== request.destination
|
|
4515
|
-
? ((request.status =
|
|
4516
|
-
: ((request.status =
|
|
4699
|
+
? ((request.status = 13), closeWithError(request.destination, error))
|
|
4700
|
+
: ((request.status = 12), request.aborted || (request.fatalError = error));
|
|
4517
4701
|
}
|
|
4518
4702
|
function finishSuspenseListRow(request, row) {
|
|
4519
4703
|
unblockSuspenseListRow(request, row.next, row.hoistables);
|
|
@@ -4633,43 +4817,46 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
4633
4817
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4634
4818
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4635
4819
|
else {
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
for (
|
|
4640
|
-
|
|
4820
|
+
resumeSlots = task.blockedSegment;
|
|
4821
|
+
n = resumeSlots.children.length;
|
|
4822
|
+
i = resumeSlots.chunks.length;
|
|
4823
|
+
for (node = 0; node < keyPath; node++) {
|
|
4824
|
+
resumeSegmentID =
|
|
4825
|
+
"unstable_legacy-backwards" === revealOrder ? keyPath - 1 - node : node;
|
|
4826
|
+
var node$40 = rows[resumeSegmentID];
|
|
4641
4827
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
4642
4828
|
previousSuspenseListRow
|
|
4643
4829
|
);
|
|
4644
|
-
task.treeContext = pushTreeContext(
|
|
4645
|
-
|
|
4830
|
+
task.treeContext = pushTreeContext(
|
|
4831
|
+
prevTreeContext,
|
|
4832
|
+
keyPath,
|
|
4833
|
+
resumeSegmentID
|
|
4834
|
+
);
|
|
4835
|
+
var newSegment = createPendingSegment(
|
|
4646
4836
|
request,
|
|
4647
|
-
|
|
4837
|
+
i,
|
|
4648
4838
|
null,
|
|
4649
4839
|
task.formatContext,
|
|
4650
|
-
0 ===
|
|
4840
|
+
0 === resumeSegmentID ? resumeSlots.lastPushedText : !0,
|
|
4651
4841
|
!0
|
|
4652
4842
|
);
|
|
4653
|
-
|
|
4654
|
-
task.blockedSegment =
|
|
4843
|
+
resumeSlots.children.splice(n, 0, newSegment);
|
|
4844
|
+
task.blockedSegment = newSegment;
|
|
4655
4845
|
try {
|
|
4656
|
-
renderNode(request, task, node,
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
(
|
|
4661
|
-
finishedSegment(request, task.blockedBoundary,
|
|
4846
|
+
renderNode(request, task, node$40, resumeSegmentID),
|
|
4847
|
+
newSegment.lastPushedText &&
|
|
4848
|
+
newSegment.textEmbedded &&
|
|
4849
|
+
newSegment.chunks.push(textSeparator),
|
|
4850
|
+
(newSegment.status = 1),
|
|
4851
|
+
finishedSegment(request, task.blockedBoundary, newSegment),
|
|
4662
4852
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4663
4853
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4664
4854
|
} catch (thrownValue) {
|
|
4665
|
-
throw (
|
|
4666
|
-
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
|
4667
|
-
thrownValue)
|
|
4668
|
-
);
|
|
4855
|
+
throw ((newSegment.status = request.aborted ? 3 : 4), thrownValue);
|
|
4669
4856
|
}
|
|
4670
4857
|
}
|
|
4671
|
-
task.blockedSegment =
|
|
4672
|
-
|
|
4858
|
+
task.blockedSegment = resumeSlots;
|
|
4859
|
+
resumeSlots.lastPushedText = !1;
|
|
4673
4860
|
}
|
|
4674
4861
|
null !== prevRow &&
|
|
4675
4862
|
null !== previousSuspenseListRow &&
|
|
@@ -4746,113 +4933,143 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4746
4933
|
var defaultProps = type.defaultProps;
|
|
4747
4934
|
if (defaultProps) {
|
|
4748
4935
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
4749
|
-
for (var propName$
|
|
4750
|
-
void 0 === newProps[propName$
|
|
4751
|
-
(newProps[propName$
|
|
4936
|
+
for (var propName$45 in defaultProps)
|
|
4937
|
+
void 0 === newProps[propName$45] &&
|
|
4938
|
+
(newProps[propName$45] = defaultProps[propName$45]);
|
|
4752
4939
|
}
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
"object" === typeof
|
|
4757
|
-
null !==
|
|
4758
|
-
(
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4940
|
+
var JSCompiler_inline_result = newProps;
|
|
4941
|
+
var context = emptyContextObject,
|
|
4942
|
+
contextType = type.contextType;
|
|
4943
|
+
"object" === typeof contextType &&
|
|
4944
|
+
null !== contextType &&
|
|
4945
|
+
(context = contextType._currentValue);
|
|
4946
|
+
var JSCompiler_inline_result$jscomp$0 = new type(
|
|
4947
|
+
JSCompiler_inline_result,
|
|
4948
|
+
context
|
|
4949
|
+
);
|
|
4950
|
+
var initialState =
|
|
4951
|
+
void 0 !== JSCompiler_inline_result$jscomp$0.state
|
|
4952
|
+
? JSCompiler_inline_result$jscomp$0.state
|
|
4953
|
+
: null;
|
|
4954
|
+
JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
|
|
4955
|
+
JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
|
|
4956
|
+
JSCompiler_inline_result$jscomp$0.state = initialState;
|
|
4957
|
+
var internalInstance = { queue: [], replace: !1 };
|
|
4958
|
+
JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
|
|
4959
|
+
var contextType$jscomp$0 = type.contextType;
|
|
4960
|
+
JSCompiler_inline_result$jscomp$0.context =
|
|
4961
|
+
"object" === typeof contextType$jscomp$0 &&
|
|
4962
|
+
null !== contextType$jscomp$0
|
|
4963
|
+
? contextType$jscomp$0._currentValue
|
|
4770
4964
|
: emptyContextObject;
|
|
4771
|
-
|
|
4772
|
-
"function" === typeof
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4965
|
+
var getDerivedStateFromProps = type.getDerivedStateFromProps;
|
|
4966
|
+
if ("function" === typeof getDerivedStateFromProps) {
|
|
4967
|
+
var partialState = getDerivedStateFromProps(
|
|
4968
|
+
JSCompiler_inline_result,
|
|
4969
|
+
initialState
|
|
4970
|
+
);
|
|
4971
|
+
var JSCompiler_inline_result$jscomp$1 =
|
|
4972
|
+
null === partialState || void 0 === partialState
|
|
4776
4973
|
? initialState
|
|
4777
|
-
: assign({}, initialState,
|
|
4778
|
-
|
|
4974
|
+
: assign({}, initialState, partialState);
|
|
4975
|
+
JSCompiler_inline_result$jscomp$0.state =
|
|
4976
|
+
JSCompiler_inline_result$jscomp$1;
|
|
4977
|
+
}
|
|
4779
4978
|
if (
|
|
4780
4979
|
"function" !== typeof type.getDerivedStateFromProps &&
|
|
4781
|
-
"function" !==
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4980
|
+
"function" !==
|
|
4981
|
+
typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
|
|
4982
|
+
("function" ===
|
|
4983
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
|
|
4984
|
+
"function" ===
|
|
4985
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
|
|
4986
|
+
) {
|
|
4987
|
+
var oldState = JSCompiler_inline_result$jscomp$0.state;
|
|
4988
|
+
"function" ===
|
|
4989
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
|
|
4990
|
+
JSCompiler_inline_result$jscomp$0.componentWillMount();
|
|
4991
|
+
"function" ===
|
|
4992
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
|
|
4993
|
+
JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
|
|
4994
|
+
oldState !== JSCompiler_inline_result$jscomp$0.state &&
|
|
4995
|
+
classComponentUpdater.enqueueReplaceState(
|
|
4996
|
+
JSCompiler_inline_result$jscomp$0,
|
|
4997
|
+
JSCompiler_inline_result$jscomp$0.state,
|
|
4998
|
+
null
|
|
4999
|
+
);
|
|
4785
5000
|
if (
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
null
|
|
4796
|
-
),
|
|
4797
|
-
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
|
4798
|
-
)
|
|
4799
|
-
if (
|
|
4800
|
-
((type = defaultProps.queue),
|
|
4801
|
-
(ref = defaultProps.replace),
|
|
4802
|
-
(defaultProps.queue = null),
|
|
4803
|
-
(defaultProps.replace = !1),
|
|
4804
|
-
ref && 1 === type.length)
|
|
4805
|
-
)
|
|
4806
|
-
newProps.state = type[0];
|
|
5001
|
+
null !== internalInstance.queue &&
|
|
5002
|
+
0 < internalInstance.queue.length
|
|
5003
|
+
) {
|
|
5004
|
+
var oldQueue = internalInstance.queue,
|
|
5005
|
+
oldReplace = internalInstance.replace;
|
|
5006
|
+
internalInstance.queue = null;
|
|
5007
|
+
internalInstance.replace = !1;
|
|
5008
|
+
if (oldReplace && 1 === oldQueue.length)
|
|
5009
|
+
JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
|
|
4807
5010
|
else {
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
5011
|
+
for (
|
|
5012
|
+
var nextState = oldReplace
|
|
5013
|
+
? oldQueue[0]
|
|
5014
|
+
: JSCompiler_inline_result$jscomp$0.state,
|
|
5015
|
+
dontMutate = !0,
|
|
5016
|
+
i = oldReplace ? 1 : 0;
|
|
5017
|
+
i < oldQueue.length;
|
|
5018
|
+
i++
|
|
5019
|
+
) {
|
|
5020
|
+
var partial = oldQueue[i],
|
|
5021
|
+
partialState$jscomp$0 =
|
|
5022
|
+
"function" === typeof partial
|
|
5023
|
+
? partial.call(
|
|
5024
|
+
JSCompiler_inline_result$jscomp$0,
|
|
5025
|
+
nextState,
|
|
5026
|
+
JSCompiler_inline_result,
|
|
5027
|
+
void 0
|
|
5028
|
+
)
|
|
5029
|
+
: partial;
|
|
5030
|
+
null != partialState$jscomp$0 &&
|
|
5031
|
+
(dontMutate
|
|
5032
|
+
? ((dontMutate = !1),
|
|
5033
|
+
(nextState = assign({}, nextState, partialState$jscomp$0)))
|
|
5034
|
+
: assign(nextState, partialState$jscomp$0));
|
|
5035
|
+
}
|
|
5036
|
+
JSCompiler_inline_result$jscomp$0.state = nextState;
|
|
4822
5037
|
}
|
|
4823
|
-
else
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
5038
|
+
} else internalInstance.queue = null;
|
|
5039
|
+
}
|
|
5040
|
+
var nextChildren = JSCompiler_inline_result$jscomp$0.render();
|
|
5041
|
+
if (request.aborted) throw null;
|
|
5042
|
+
var prevKeyPath = task.keyPath;
|
|
4827
5043
|
task.keyPath = keyPath;
|
|
4828
|
-
renderNodeDestructive(request, task,
|
|
4829
|
-
task.keyPath =
|
|
5044
|
+
renderNodeDestructive(request, task, nextChildren, -1);
|
|
5045
|
+
task.keyPath = prevKeyPath;
|
|
4830
5046
|
} else {
|
|
4831
|
-
|
|
4832
|
-
if (
|
|
5047
|
+
var value = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
5048
|
+
if (request.aborted) throw null;
|
|
4833
5049
|
finishFunctionComponent(
|
|
4834
5050
|
request,
|
|
4835
5051
|
task,
|
|
4836
5052
|
keyPath,
|
|
4837
|
-
|
|
5053
|
+
value,
|
|
4838
5054
|
0 !== localIdCounter,
|
|
4839
5055
|
actionStateCounter,
|
|
4840
5056
|
actionStateMatchingIndex
|
|
4841
5057
|
);
|
|
4842
5058
|
}
|
|
4843
|
-
else if ("string" === typeof type)
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
5059
|
+
else if ("string" === typeof type) {
|
|
5060
|
+
var segment = task.blockedSegment;
|
|
5061
|
+
if (null === segment) {
|
|
5062
|
+
var children = props.children,
|
|
5063
|
+
prevContext = task.formatContext,
|
|
5064
|
+
prevKeyPath$jscomp$0 = task.keyPath;
|
|
5065
|
+
task.formatContext = getChildFormatContext(prevContext, type, props);
|
|
5066
|
+
task.keyPath = keyPath;
|
|
5067
|
+
renderNode(request, task, children, -1);
|
|
5068
|
+
task.formatContext = prevContext;
|
|
5069
|
+
task.keyPath = prevKeyPath$jscomp$0;
|
|
5070
|
+
} else {
|
|
5071
|
+
var children$42 = pushStartInstance(
|
|
5072
|
+
segment.chunks,
|
|
4856
5073
|
type,
|
|
4857
5074
|
props,
|
|
4858
5075
|
request.resumableState,
|
|
@@ -4860,18 +5077,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4860
5077
|
task.blockedPreamble,
|
|
4861
5078
|
task.hoistableState,
|
|
4862
5079
|
task.formatContext,
|
|
4863
|
-
|
|
5080
|
+
segment.lastPushedText
|
|
4864
5081
|
);
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
5082
|
+
segment.lastPushedText = !1;
|
|
5083
|
+
var prevContext$43 = task.formatContext,
|
|
5084
|
+
prevKeyPath$44 = task.keyPath;
|
|
4868
5085
|
task.keyPath = keyPath;
|
|
4869
5086
|
if (
|
|
4870
5087
|
3 ===
|
|
4871
|
-
(task.formatContext = getChildFormatContext(
|
|
4872
|
-
|
|
5088
|
+
(task.formatContext = getChildFormatContext(
|
|
5089
|
+
prevContext$43,
|
|
5090
|
+
type,
|
|
5091
|
+
props
|
|
5092
|
+
)).insertionMode
|
|
4873
5093
|
) {
|
|
4874
|
-
|
|
5094
|
+
var preambleSegment = createPendingSegment(
|
|
4875
5095
|
request,
|
|
4876
5096
|
0,
|
|
4877
5097
|
null,
|
|
@@ -4879,25 +5099,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4879
5099
|
!1,
|
|
4880
5100
|
!1
|
|
4881
5101
|
);
|
|
4882
|
-
|
|
4883
|
-
task.blockedSegment =
|
|
5102
|
+
segment.preambleChildren.push(preambleSegment);
|
|
5103
|
+
task.blockedSegment = preambleSegment;
|
|
4884
5104
|
try {
|
|
4885
|
-
(
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
(
|
|
4891
|
-
finishedSegment(request, task.blockedBoundary, keyPath);
|
|
5105
|
+
renderNode(request, task, children$42, -1),
|
|
5106
|
+
preambleSegment.lastPushedText &&
|
|
5107
|
+
preambleSegment.textEmbedded &&
|
|
5108
|
+
preambleSegment.chunks.push(textSeparator),
|
|
5109
|
+
(preambleSegment.status = 1),
|
|
5110
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
|
4892
5111
|
} finally {
|
|
4893
|
-
task.blockedSegment =
|
|
5112
|
+
task.blockedSegment = segment;
|
|
4894
5113
|
}
|
|
4895
|
-
} else renderNode(request, task,
|
|
4896
|
-
task.formatContext =
|
|
4897
|
-
task.keyPath =
|
|
5114
|
+
} else renderNode(request, task, children$42, -1);
|
|
5115
|
+
task.formatContext = prevContext$43;
|
|
5116
|
+
task.keyPath = prevKeyPath$44;
|
|
4898
5117
|
a: {
|
|
4899
|
-
|
|
4900
|
-
|
|
5118
|
+
var target = segment.chunks,
|
|
5119
|
+
resumableState = request.resumableState;
|
|
4901
5120
|
switch (type) {
|
|
4902
5121
|
case "title":
|
|
4903
5122
|
case "style":
|
|
@@ -4919,157 +5138,239 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4919
5138
|
case "wbr":
|
|
4920
5139
|
break a;
|
|
4921
5140
|
case "body":
|
|
4922
|
-
if (1 >=
|
|
4923
|
-
|
|
5141
|
+
if (1 >= prevContext$43.insertionMode) {
|
|
5142
|
+
resumableState.hasBody = !0;
|
|
4924
5143
|
break a;
|
|
4925
5144
|
}
|
|
4926
5145
|
break;
|
|
4927
5146
|
case "html":
|
|
4928
|
-
if (0 ===
|
|
4929
|
-
|
|
5147
|
+
if (0 === prevContext$43.insertionMode) {
|
|
5148
|
+
resumableState.hasHtml = !0;
|
|
4930
5149
|
break a;
|
|
4931
5150
|
}
|
|
4932
5151
|
break;
|
|
4933
5152
|
case "head":
|
|
4934
|
-
if (1 >=
|
|
5153
|
+
if (1 >= prevContext$43.insertionMode) break a;
|
|
4935
5154
|
}
|
|
4936
|
-
|
|
5155
|
+
target.push(endChunkForTag(type));
|
|
4937
5156
|
}
|
|
4938
|
-
|
|
5157
|
+
segment.lastPushedText = !1;
|
|
4939
5158
|
}
|
|
4940
|
-
else {
|
|
5159
|
+
} else {
|
|
4941
5160
|
switch (type) {
|
|
4942
5161
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
4943
5162
|
case REACT_STRICT_MODE_TYPE:
|
|
4944
5163
|
case REACT_PROFILER_TYPE:
|
|
4945
5164
|
case REACT_FRAGMENT_TYPE:
|
|
4946
|
-
|
|
5165
|
+
var prevKeyPath$jscomp$1 = task.keyPath;
|
|
4947
5166
|
task.keyPath = keyPath;
|
|
4948
5167
|
renderNodeDestructive(request, task, props.children, -1);
|
|
4949
|
-
task.keyPath =
|
|
5168
|
+
task.keyPath = prevKeyPath$jscomp$1;
|
|
4950
5169
|
return;
|
|
4951
5170
|
case REACT_ACTIVITY_TYPE:
|
|
4952
|
-
|
|
4953
|
-
null ===
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
renderNode(request, task, props.children, -1)
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
5171
|
+
var segment$jscomp$0 = task.blockedSegment;
|
|
5172
|
+
if (null === segment$jscomp$0) {
|
|
5173
|
+
if ("hidden" !== props.mode) {
|
|
5174
|
+
var prevKeyPath$jscomp$2 = task.keyPath;
|
|
5175
|
+
task.keyPath = keyPath;
|
|
5176
|
+
renderNode(request, task, props.children, -1);
|
|
5177
|
+
task.keyPath = prevKeyPath$jscomp$2;
|
|
5178
|
+
}
|
|
5179
|
+
} else if ("hidden" !== props.mode) {
|
|
5180
|
+
segment$jscomp$0.chunks.push(startActivityBoundary);
|
|
5181
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5182
|
+
var prevKeyPath$47 = task.keyPath;
|
|
5183
|
+
task.keyPath = keyPath;
|
|
5184
|
+
renderNode(request, task, props.children, -1);
|
|
5185
|
+
task.keyPath = prevKeyPath$47;
|
|
5186
|
+
segment$jscomp$0.chunks.push(endActivityBoundary);
|
|
5187
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5188
|
+
}
|
|
4968
5189
|
return;
|
|
4969
5190
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
4970
5191
|
a: {
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
if (
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
5192
|
+
var children$jscomp$0 = props.children,
|
|
5193
|
+
revealOrder = props.revealOrder;
|
|
5194
|
+
if ("independent" !== revealOrder && "together" !== revealOrder) {
|
|
5195
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
5196
|
+
renderSuspenseListRows(
|
|
5197
|
+
request,
|
|
5198
|
+
task,
|
|
5199
|
+
keyPath,
|
|
5200
|
+
children$jscomp$0,
|
|
5201
|
+
revealOrder
|
|
5202
|
+
);
|
|
4980
5203
|
break a;
|
|
4981
5204
|
}
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
5205
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
5206
|
+
if (iteratorFn) {
|
|
5207
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
5208
|
+
if (iterator) {
|
|
5209
|
+
var step = iterator.next();
|
|
5210
|
+
if (!step.done) {
|
|
5211
|
+
do step = iterator.next();
|
|
5212
|
+
while (!step.done);
|
|
5213
|
+
renderSuspenseListRows(
|
|
5214
|
+
request,
|
|
5215
|
+
task,
|
|
5216
|
+
keyPath,
|
|
5217
|
+
children$jscomp$0,
|
|
5218
|
+
revealOrder
|
|
5219
|
+
);
|
|
4989
5220
|
}
|
|
4990
5221
|
break a;
|
|
4991
5222
|
}
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
if ("together" === revealOrder) {
|
|
5226
|
+
var prevKeyPath$41 = task.keyPath,
|
|
5227
|
+
prevRow = task.row,
|
|
5228
|
+
newRow = (task.row = createSuspenseListRow(null));
|
|
5229
|
+
newRow.boundaries = [];
|
|
5230
|
+
newRow.together = !0;
|
|
5231
|
+
task.keyPath = keyPath;
|
|
5232
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5233
|
+
0 === --newRow.pendingTasks &&
|
|
5234
|
+
finishSuspenseListRow(request, newRow);
|
|
5235
|
+
task.keyPath = prevKeyPath$41;
|
|
5236
|
+
task.row = prevRow;
|
|
5237
|
+
null !== prevRow &&
|
|
5238
|
+
0 < newRow.pendingTasks &&
|
|
5239
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
|
5240
|
+
} else {
|
|
5241
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
5242
|
+
task.keyPath = keyPath;
|
|
5243
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5244
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
4992
5245
|
}
|
|
4993
|
-
"together" === props
|
|
4994
|
-
? ((props = task.keyPath),
|
|
4995
|
-
(newProps = task.row),
|
|
4996
|
-
(defaultProps = task.row = createSuspenseListRow(null)),
|
|
4997
|
-
(defaultProps.boundaries = []),
|
|
4998
|
-
(defaultProps.together = !0),
|
|
4999
|
-
(task.keyPath = keyPath),
|
|
5000
|
-
renderNodeDestructive(request, task, type, -1),
|
|
5001
|
-
0 === --defaultProps.pendingTasks &&
|
|
5002
|
-
finishSuspenseListRow(request, defaultProps),
|
|
5003
|
-
(task.keyPath = props),
|
|
5004
|
-
(task.row = newProps),
|
|
5005
|
-
null !== newProps &&
|
|
5006
|
-
0 < defaultProps.pendingTasks &&
|
|
5007
|
-
(newProps.pendingTasks++, (defaultProps.next = newProps)))
|
|
5008
|
-
: ((props = task.keyPath),
|
|
5009
|
-
(task.keyPath = keyPath),
|
|
5010
|
-
renderNodeDestructive(request, task, type, -1),
|
|
5011
|
-
(task.keyPath = props));
|
|
5012
5246
|
}
|
|
5013
5247
|
return;
|
|
5014
5248
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
5249
|
+
var prevContext$jscomp$0 = task.formatContext,
|
|
5250
|
+
prevKeyPath$jscomp$4 = task.keyPath;
|
|
5251
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
5252
|
+
if (null != props.name && "auto" !== props.name)
|
|
5253
|
+
var JSCompiler_inline_result$jscomp$2 = props.name;
|
|
5254
|
+
else {
|
|
5255
|
+
var treeId = getTreeId(task.treeContext);
|
|
5256
|
+
JSCompiler_inline_result$jscomp$2 = makeId(
|
|
5257
|
+
resumableState$jscomp$0,
|
|
5258
|
+
treeId,
|
|
5259
|
+
0
|
|
5260
|
+
);
|
|
5261
|
+
}
|
|
5262
|
+
var autoName = JSCompiler_inline_result$jscomp$2,
|
|
5263
|
+
resumableState$jscomp$1 = request.resumableState,
|
|
5264
|
+
update = getViewTransitionClassName(props.default, props.update),
|
|
5265
|
+
enter = getViewTransitionClassName(props.default, props.enter),
|
|
5266
|
+
exit = getViewTransitionClassName(props.default, props.exit),
|
|
5267
|
+
share = getViewTransitionClassName(props.default, props.share),
|
|
5268
|
+
name = props.name;
|
|
5269
|
+
null == update && (update = "auto");
|
|
5270
|
+
null == enter && (enter = "auto");
|
|
5271
|
+
null == exit && (exit = "auto");
|
|
5272
|
+
if (null == name) {
|
|
5273
|
+
var parentViewTransition = prevContext$jscomp$0.viewTransition;
|
|
5274
|
+
null !== parentViewTransition
|
|
5275
|
+
? ((name = parentViewTransition.name),
|
|
5276
|
+
(share = parentViewTransition.share))
|
|
5277
|
+
: ((name = "auto"), (share = "none"));
|
|
5278
|
+
} else
|
|
5279
|
+
null == share && (share = "auto"),
|
|
5280
|
+
prevContext$jscomp$0.tagScope & 4 &&
|
|
5281
|
+
(resumableState$jscomp$1.instructions |= 128);
|
|
5282
|
+
prevContext$jscomp$0.tagScope & 8
|
|
5283
|
+
? (resumableState$jscomp$1.instructions |= 128)
|
|
5284
|
+
: (exit = "none");
|
|
5285
|
+
prevContext$jscomp$0.tagScope & 16
|
|
5286
|
+
? (resumableState$jscomp$1.instructions |= 128)
|
|
5287
|
+
: (enter = "none");
|
|
5288
|
+
var viewTransition = {
|
|
5289
|
+
update: update,
|
|
5290
|
+
enter: enter,
|
|
5291
|
+
exit: exit,
|
|
5292
|
+
share: share,
|
|
5293
|
+
parentEnter: "none",
|
|
5294
|
+
parentExit: "none",
|
|
5295
|
+
name: name,
|
|
5296
|
+
autoName: autoName,
|
|
5297
|
+
nameIdx: 0
|
|
5298
|
+
},
|
|
5299
|
+
subtreeScope = prevContext$jscomp$0.tagScope & -25;
|
|
5300
|
+
subtreeScope =
|
|
5301
|
+
"none" !== update ? subtreeScope | 32 : subtreeScope & -33;
|
|
5302
|
+
"none" !== enter && (subtreeScope |= 64);
|
|
5303
|
+
var JSCompiler_inline_result$jscomp$3 = createFormatContext(
|
|
5304
|
+
prevContext$jscomp$0.insertionMode,
|
|
5305
|
+
prevContext$jscomp$0.selectedValue,
|
|
5306
|
+
subtreeScope,
|
|
5307
|
+
viewTransition
|
|
5308
|
+
);
|
|
5309
|
+
task.formatContext = JSCompiler_inline_result$jscomp$3;
|
|
5310
|
+
task.keyPath = keyPath;
|
|
5311
|
+
if (null != props.name && "auto" !== props.name)
|
|
5312
|
+
renderNodeDestructive(request, task, props.children, -1);
|
|
5313
|
+
else {
|
|
5314
|
+
var prevTreeContext = task.treeContext;
|
|
5315
|
+
task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
|
|
5316
|
+
renderNode(request, task, props.children, -1);
|
|
5317
|
+
task.treeContext = prevTreeContext;
|
|
5318
|
+
}
|
|
5319
|
+
task.formatContext = prevContext$jscomp$0;
|
|
5320
|
+
task.keyPath = prevKeyPath$jscomp$4;
|
|
5321
|
+
return;
|
|
5015
5322
|
case REACT_SCOPE_TYPE:
|
|
5016
5323
|
throw Error(formatProdErrorMessage(343));
|
|
5017
5324
|
case REACT_SUSPENSE_TYPE:
|
|
5018
5325
|
a: if (null !== task.replay) {
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5326
|
+
var prevKeyPath$27 = task.keyPath,
|
|
5327
|
+
prevContext$28 = task.formatContext,
|
|
5328
|
+
prevRow$29 = task.row;
|
|
5022
5329
|
task.keyPath = keyPath;
|
|
5023
5330
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5024
5331
|
request.resumableState,
|
|
5025
|
-
|
|
5332
|
+
prevContext$28
|
|
5026
5333
|
);
|
|
5027
5334
|
task.row = null;
|
|
5028
|
-
|
|
5335
|
+
var content$30 = props.children;
|
|
5029
5336
|
try {
|
|
5030
|
-
renderNode(request, task,
|
|
5337
|
+
renderNode(request, task, content$30, -1);
|
|
5031
5338
|
} finally {
|
|
5032
|
-
(task.keyPath =
|
|
5033
|
-
(task.formatContext =
|
|
5034
|
-
(task.row =
|
|
5339
|
+
(task.keyPath = prevKeyPath$27),
|
|
5340
|
+
(task.formatContext = prevContext$28),
|
|
5341
|
+
(task.row = prevRow$29);
|
|
5035
5342
|
}
|
|
5036
5343
|
} else {
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5344
|
+
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
5345
|
+
prevContext$jscomp$1 = task.formatContext,
|
|
5346
|
+
prevRow$jscomp$0 = task.row,
|
|
5347
|
+
parentBoundary = task.blockedBoundary,
|
|
5348
|
+
parentPreamble = task.blockedPreamble,
|
|
5349
|
+
parentHoistableState = task.hoistableState,
|
|
5043
5350
|
parentSegment = task.blockedSegment,
|
|
5044
|
-
fallback = props.fallback
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
parentSegment.chunks.length,
|
|
5068
|
-
newBoundary,
|
|
5069
|
-
task.formatContext,
|
|
5070
|
-
!1,
|
|
5071
|
-
!1
|
|
5072
|
-
);
|
|
5351
|
+
fallback = props.fallback,
|
|
5352
|
+
content = props.children,
|
|
5353
|
+
fallbackAbortSet = new Set(),
|
|
5354
|
+
newBoundary = createSuspenseBoundary(
|
|
5355
|
+
request,
|
|
5356
|
+
task.row,
|
|
5357
|
+
fallbackAbortSet,
|
|
5358
|
+
2 > task.formatContext.insertionMode
|
|
5359
|
+
? {
|
|
5360
|
+
content: createPreambleState(),
|
|
5361
|
+
fallback: createPreambleState()
|
|
5362
|
+
}
|
|
5363
|
+
: null,
|
|
5364
|
+
!1
|
|
5365
|
+
),
|
|
5366
|
+
boundarySegment = createPendingSegment(
|
|
5367
|
+
request,
|
|
5368
|
+
parentSegment.chunks.length,
|
|
5369
|
+
newBoundary,
|
|
5370
|
+
task.formatContext,
|
|
5371
|
+
!1,
|
|
5372
|
+
!1
|
|
5373
|
+
);
|
|
5073
5374
|
parentSegment.children.push(boundarySegment);
|
|
5074
5375
|
parentSegment.lastPushedText = !1;
|
|
5075
5376
|
var contentRootSegment = createPendingSegment(
|
|
@@ -5081,48 +5382,68 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5081
5382
|
!1
|
|
5082
5383
|
);
|
|
5083
5384
|
contentRootSegment.parentFlushed = !0;
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5385
|
+
var trackedPostpones = request.trackedPostpones;
|
|
5386
|
+
if (null !== trackedPostpones) {
|
|
5387
|
+
var suspenseComponentStack = task.componentStack,
|
|
5388
|
+
fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
5389
|
+
if (null !== trackedPostpones) {
|
|
5390
|
+
var fallbackReplayNode = [
|
|
5391
|
+
fallbackKeyPath[1],
|
|
5392
|
+
fallbackKeyPath[2],
|
|
5393
|
+
[],
|
|
5394
|
+
null
|
|
5395
|
+
];
|
|
5396
|
+
trackedPostpones.workingMap.set(
|
|
5397
|
+
fallbackKeyPath,
|
|
5398
|
+
fallbackReplayNode
|
|
5399
|
+
);
|
|
5400
|
+
newBoundary.tracked = {
|
|
5401
|
+
contentKeyPath: keyPath,
|
|
5402
|
+
fallbackNode: fallbackReplayNode
|
|
5403
|
+
};
|
|
5404
|
+
}
|
|
5090
5405
|
task.blockedSegment = boundarySegment;
|
|
5091
|
-
task.blockedPreamble =
|
|
5092
|
-
|
|
5406
|
+
task.blockedPreamble =
|
|
5407
|
+
null === newBoundary.preamble
|
|
5408
|
+
? null
|
|
5409
|
+
: newBoundary.preamble.fallback;
|
|
5410
|
+
task.keyPath = fallbackKeyPath;
|
|
5093
5411
|
task.formatContext = getSuspenseFallbackFormatContext(
|
|
5094
5412
|
request.resumableState,
|
|
5095
|
-
|
|
5413
|
+
prevContext$jscomp$1
|
|
5096
5414
|
);
|
|
5097
5415
|
task.componentStack =
|
|
5098
|
-
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5099
|
-
|
|
5416
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5417
|
+
suspenseComponentStack
|
|
5418
|
+
);
|
|
5100
5419
|
try {
|
|
5101
5420
|
renderNode(request, task, fallback, -1),
|
|
5102
5421
|
boundarySegment.lastPushedText &&
|
|
5103
5422
|
boundarySegment.textEmbedded &&
|
|
5104
5423
|
boundarySegment.chunks.push(textSeparator),
|
|
5105
5424
|
(boundarySegment.status = 1),
|
|
5106
|
-
finishedSegment(request,
|
|
5425
|
+
finishedSegment(request, parentBoundary, boundarySegment);
|
|
5107
5426
|
} catch (thrownValue) {
|
|
5108
5427
|
throw (
|
|
5109
|
-
((boundarySegment.status =
|
|
5428
|
+
((boundarySegment.status = request.aborted ? 3 : 4),
|
|
5110
5429
|
thrownValue)
|
|
5111
5430
|
);
|
|
5112
5431
|
} finally {
|
|
5113
5432
|
(task.blockedSegment = parentSegment),
|
|
5114
|
-
(task.blockedPreamble =
|
|
5115
|
-
(task.keyPath =
|
|
5116
|
-
(task.formatContext =
|
|
5433
|
+
(task.blockedPreamble = parentPreamble),
|
|
5434
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5435
|
+
(task.formatContext = prevContext$jscomp$1);
|
|
5117
5436
|
}
|
|
5118
|
-
|
|
5437
|
+
var suspendedPrimaryTask = createRenderTask(
|
|
5119
5438
|
request,
|
|
5120
5439
|
null,
|
|
5121
|
-
|
|
5440
|
+
content,
|
|
5122
5441
|
-1,
|
|
5123
5442
|
newBoundary,
|
|
5124
5443
|
contentRootSegment,
|
|
5125
|
-
newBoundary.
|
|
5444
|
+
null === newBoundary.preamble
|
|
5445
|
+
? null
|
|
5446
|
+
: newBoundary.preamble.content,
|
|
5126
5447
|
newBoundary.contentState,
|
|
5127
5448
|
task.abortSet,
|
|
5128
5449
|
keyPath,
|
|
@@ -5133,25 +5454,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5133
5454
|
task.context,
|
|
5134
5455
|
task.treeContext,
|
|
5135
5456
|
null,
|
|
5136
|
-
|
|
5457
|
+
suspenseComponentStack
|
|
5137
5458
|
);
|
|
5138
|
-
pushComponentStack(
|
|
5139
|
-
request.pingedTasks.push(
|
|
5459
|
+
pushComponentStack(suspendedPrimaryTask);
|
|
5460
|
+
request.pingedTasks.push(suspendedPrimaryTask);
|
|
5140
5461
|
} else {
|
|
5141
5462
|
task.blockedBoundary = newBoundary;
|
|
5142
|
-
task.blockedPreamble =
|
|
5463
|
+
task.blockedPreamble =
|
|
5464
|
+
null === newBoundary.preamble
|
|
5465
|
+
? null
|
|
5466
|
+
: newBoundary.preamble.content;
|
|
5143
5467
|
task.hoistableState = newBoundary.contentState;
|
|
5144
5468
|
task.blockedSegment = contentRootSegment;
|
|
5145
5469
|
task.keyPath = keyPath;
|
|
5146
5470
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5147
5471
|
request.resumableState,
|
|
5148
|
-
|
|
5472
|
+
prevContext$jscomp$1
|
|
5149
5473
|
);
|
|
5150
5474
|
task.row = null;
|
|
5151
|
-
contentRootSegment.status = 6;
|
|
5152
5475
|
try {
|
|
5153
5476
|
if (
|
|
5154
|
-
(renderNode(request, task,
|
|
5477
|
+
(renderNode(request, task, content, -1),
|
|
5155
5478
|
contentRootSegment.lastPushedText &&
|
|
5156
5479
|
contentRootSegment.textEmbedded &&
|
|
5157
5480
|
contentRootSegment.chunks.push(textSeparator),
|
|
@@ -5164,50 +5487,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5164
5487
|
((newBoundary.status = 1),
|
|
5165
5488
|
!isEligibleForOutlining(request, newBoundary))
|
|
5166
5489
|
) {
|
|
5167
|
-
null !== prevRow &&
|
|
5168
|
-
0 === --prevRow.pendingTasks &&
|
|
5169
|
-
finishSuspenseListRow(request, prevRow);
|
|
5490
|
+
null !== prevRow$jscomp$0 &&
|
|
5491
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
5492
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
|
5170
5493
|
0 === request.pendingRootTasks &&
|
|
5171
5494
|
task.blockedPreamble &&
|
|
5172
5495
|
preparePreamble(request);
|
|
5173
5496
|
break a;
|
|
5174
5497
|
}
|
|
5175
5498
|
} else
|
|
5176
|
-
null !== prevRow &&
|
|
5177
|
-
prevRow.together &&
|
|
5178
|
-
tryToResolveTogetherRow(request, prevRow);
|
|
5499
|
+
null !== prevRow$jscomp$0 &&
|
|
5500
|
+
prevRow$jscomp$0.together &&
|
|
5501
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
|
5179
5502
|
} catch (thrownValue$31) {
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
newProps,
|
|
5190
|
-
defaultProps
|
|
5191
|
-
)),
|
|
5192
|
-
(newBoundary.errorDigest = initialState),
|
|
5193
|
-
untrackBoundary(request, newBoundary);
|
|
5503
|
+
newBoundary.status = 4;
|
|
5504
|
+
if (request.aborted) {
|
|
5505
|
+
contentRootSegment.status = 3;
|
|
5506
|
+
var error = request.fatalError;
|
|
5507
|
+
} else (contentRootSegment.status = 4), (error = thrownValue$31);
|
|
5508
|
+
var thrownInfo = getThrownInfo(task.componentStack),
|
|
5509
|
+
errorDigest = logRecoverableError(request, error, thrownInfo);
|
|
5510
|
+
newBoundary.errorDigest = errorDigest;
|
|
5511
|
+
untrackBoundary(request, newBoundary);
|
|
5194
5512
|
} finally {
|
|
5195
|
-
(task.blockedBoundary =
|
|
5196
|
-
(task.blockedPreamble =
|
|
5513
|
+
(task.blockedBoundary = parentBoundary),
|
|
5514
|
+
(task.blockedPreamble = parentPreamble),
|
|
5197
5515
|
(task.hoistableState = parentHoistableState),
|
|
5198
5516
|
(task.blockedSegment = parentSegment),
|
|
5199
|
-
(task.keyPath =
|
|
5200
|
-
(task.formatContext =
|
|
5201
|
-
(task.row = prevRow);
|
|
5517
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5518
|
+
(task.formatContext = prevContext$jscomp$1),
|
|
5519
|
+
(task.row = prevRow$jscomp$0);
|
|
5202
5520
|
}
|
|
5203
|
-
|
|
5521
|
+
var suspendedFallbackTask = createRenderTask(
|
|
5204
5522
|
request,
|
|
5205
5523
|
null,
|
|
5206
5524
|
fallback,
|
|
5207
5525
|
-1,
|
|
5208
|
-
|
|
5526
|
+
parentBoundary,
|
|
5209
5527
|
boundarySegment,
|
|
5210
|
-
newBoundary.
|
|
5528
|
+
null === newBoundary.preamble
|
|
5529
|
+
? null
|
|
5530
|
+
: newBoundary.preamble.fallback,
|
|
5211
5531
|
newBoundary.fallbackState,
|
|
5212
5532
|
fallbackAbortSet,
|
|
5213
5533
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
@@ -5222,8 +5542,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5222
5542
|
task.componentStack
|
|
5223
5543
|
)
|
|
5224
5544
|
);
|
|
5225
|
-
pushComponentStack(
|
|
5226
|
-
request.pingedTasks.push(
|
|
5545
|
+
pushComponentStack(suspendedFallbackTask);
|
|
5546
|
+
request.pingedTasks.push(suspendedFallbackTask);
|
|
5227
5547
|
}
|
|
5228
5548
|
}
|
|
5229
5549
|
return;
|
|
@@ -5231,24 +5551,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5231
5551
|
if ("object" === typeof type && null !== type)
|
|
5232
5552
|
switch (type.$$typeof) {
|
|
5233
5553
|
case REACT_FORWARD_REF_TYPE:
|
|
5234
|
-
if ("ref" in props)
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
else
|
|
5239
|
-
|
|
5554
|
+
if ("ref" in props) {
|
|
5555
|
+
var propsWithoutRef = {};
|
|
5556
|
+
for (var key in props)
|
|
5557
|
+
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
5558
|
+
} else propsWithoutRef = props;
|
|
5559
|
+
var children$jscomp$1 = renderWithHooks(
|
|
5240
5560
|
request,
|
|
5241
5561
|
task,
|
|
5242
5562
|
keyPath,
|
|
5243
5563
|
type.render,
|
|
5244
|
-
|
|
5564
|
+
propsWithoutRef,
|
|
5245
5565
|
ref
|
|
5246
5566
|
);
|
|
5247
5567
|
finishFunctionComponent(
|
|
5248
5568
|
request,
|
|
5249
5569
|
task,
|
|
5250
5570
|
keyPath,
|
|
5251
|
-
|
|
5571
|
+
children$jscomp$1,
|
|
5252
5572
|
0 !== localIdCounter,
|
|
5253
5573
|
actionStateCounter,
|
|
5254
5574
|
actionStateMatchingIndex
|
|
@@ -5258,42 +5578,44 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5258
5578
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
5259
5579
|
return;
|
|
5260
5580
|
case REACT_CONTEXT_TYPE:
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
type._currentValue =
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5581
|
+
var children$jscomp$2 = props.children,
|
|
5582
|
+
prevKeyPath$jscomp$6 = task.keyPath,
|
|
5583
|
+
nextValue = props.value;
|
|
5584
|
+
var prevValue = type._currentValue;
|
|
5585
|
+
type._currentValue = nextValue;
|
|
5586
|
+
var prevNode = currentActiveSnapshot,
|
|
5587
|
+
newNode = {
|
|
5588
|
+
parent: prevNode,
|
|
5589
|
+
depth: null === prevNode ? 0 : prevNode.depth + 1,
|
|
5590
|
+
context: type,
|
|
5591
|
+
parentValue: prevValue,
|
|
5592
|
+
value: nextValue
|
|
5593
|
+
};
|
|
5594
|
+
currentActiveSnapshot = newNode;
|
|
5595
|
+
task.context = newNode;
|
|
5275
5596
|
task.keyPath = keyPath;
|
|
5276
|
-
renderNodeDestructive(request, task,
|
|
5277
|
-
|
|
5278
|
-
if (null ===
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
task.
|
|
5597
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
5598
|
+
var prevSnapshot = currentActiveSnapshot;
|
|
5599
|
+
if (null === prevSnapshot) throw Error(formatProdErrorMessage(403));
|
|
5600
|
+
prevSnapshot.context._currentValue = prevSnapshot.parentValue;
|
|
5601
|
+
var JSCompiler_inline_result$jscomp$4 = (currentActiveSnapshot =
|
|
5602
|
+
prevSnapshot.parent);
|
|
5603
|
+
task.context = JSCompiler_inline_result$jscomp$4;
|
|
5604
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
5283
5605
|
return;
|
|
5284
5606
|
case REACT_CONSUMER_TYPE:
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5607
|
+
var render = props.children,
|
|
5608
|
+
newChildren = render(type._context._currentValue),
|
|
5609
|
+
prevKeyPath$jscomp$7 = task.keyPath;
|
|
5288
5610
|
task.keyPath = keyPath;
|
|
5289
|
-
renderNodeDestructive(request, task,
|
|
5290
|
-
task.keyPath =
|
|
5611
|
+
renderNodeDestructive(request, task, newChildren, -1);
|
|
5612
|
+
task.keyPath = prevKeyPath$jscomp$7;
|
|
5291
5613
|
return;
|
|
5292
5614
|
case REACT_LAZY_TYPE:
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
if (
|
|
5296
|
-
renderElement(request, task, keyPath,
|
|
5615
|
+
var init = type._init;
|
|
5616
|
+
var Component = init(type._payload);
|
|
5617
|
+
if (request.aborted) throw null;
|
|
5618
|
+
renderElement(request, task, keyPath, Component, props, ref);
|
|
5297
5619
|
return;
|
|
5298
5620
|
}
|
|
5299
5621
|
throw Error(
|
|
@@ -5353,7 +5675,11 @@ function retryNode(request, task) {
|
|
|
5353
5675
|
var ref = void 0 !== node ? node : null,
|
|
5354
5676
|
name = getComponentNameFromType(type),
|
|
5355
5677
|
keyOrIndex =
|
|
5356
|
-
null == key
|
|
5678
|
+
null == key || key === REACT_OPTIMISTIC_KEY
|
|
5679
|
+
? -1 === childIndex
|
|
5680
|
+
? 0
|
|
5681
|
+
: childIndex
|
|
5682
|
+
: key;
|
|
5357
5683
|
key = [task.keyPath, name, keyOrIndex];
|
|
5358
5684
|
if (null !== task.replay)
|
|
5359
5685
|
a: {
|
|
@@ -5367,12 +5693,12 @@ function retryNode(request, task) {
|
|
|
5367
5693
|
throw Error(
|
|
5368
5694
|
formatProdErrorMessage(490, node$jscomp$0[0], name)
|
|
5369
5695
|
);
|
|
5370
|
-
var childNodes = node$jscomp$0[2]
|
|
5371
|
-
|
|
5372
|
-
|
|
5696
|
+
var childNodes = node$jscomp$0[2],
|
|
5697
|
+
childSlots = node$jscomp$0[3],
|
|
5698
|
+
currentNode = task.node;
|
|
5373
5699
|
task.replay = {
|
|
5374
5700
|
nodes: childNodes,
|
|
5375
|
-
slots:
|
|
5701
|
+
slots: childSlots,
|
|
5376
5702
|
pendingTasks: 1
|
|
5377
5703
|
};
|
|
5378
5704
|
try {
|
|
@@ -5388,27 +5714,28 @@ function retryNode(request, task) {
|
|
|
5388
5714
|
"object" === typeof x &&
|
|
5389
5715
|
null !== x &&
|
|
5390
5716
|
(x === SuspenseException ||
|
|
5391
|
-
"function" === typeof x.then
|
|
5717
|
+
"function" === typeof x.then ||
|
|
5718
|
+
"Maximum call stack size exceeded" === x.message)
|
|
5392
5719
|
)
|
|
5393
5720
|
throw (
|
|
5394
|
-
(task.node ===
|
|
5721
|
+
(task.node === currentNode
|
|
5395
5722
|
? (task.replay = replay)
|
|
5396
5723
|
: childIndex.splice(node, 1),
|
|
5397
5724
|
x)
|
|
5398
5725
|
);
|
|
5399
5726
|
task.replay.pendingTasks--;
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5727
|
+
key = getThrownInfo(task.componentStack);
|
|
5728
|
+
currentNode = request;
|
|
5729
|
+
props = task.blockedBoundary;
|
|
5730
|
+
request = request.aborted ? request.fatalError : x;
|
|
5731
|
+
key = logRecoverableError(currentNode, request, key);
|
|
5405
5732
|
abortRemainingReplayNodes(
|
|
5406
|
-
|
|
5407
|
-
|
|
5733
|
+
currentNode,
|
|
5734
|
+
props,
|
|
5408
5735
|
childNodes,
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5736
|
+
childSlots,
|
|
5737
|
+
request,
|
|
5738
|
+
key
|
|
5412
5739
|
);
|
|
5413
5740
|
}
|
|
5414
5741
|
task.replay = replay;
|
|
@@ -5422,43 +5749,38 @@ function retryNode(request, task) {
|
|
|
5422
5749
|
)
|
|
5423
5750
|
);
|
|
5424
5751
|
b: {
|
|
5425
|
-
replay =
|
|
5426
|
-
type = node$jscomp$0[
|
|
5427
|
-
ref = node$jscomp$0[
|
|
5428
|
-
name =
|
|
5429
|
-
keyOrIndex =
|
|
5752
|
+
replay = node$jscomp$0[5];
|
|
5753
|
+
type = node$jscomp$0[2];
|
|
5754
|
+
ref = node$jscomp$0[3];
|
|
5755
|
+
name =
|
|
5430
5756
|
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
|
5431
5757
|
node$jscomp$0 =
|
|
5432
5758
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
5433
|
-
|
|
5434
|
-
|
|
5759
|
+
keyOrIndex = task.keyPath;
|
|
5760
|
+
var prevContext = task.formatContext,
|
|
5435
5761
|
prevRow = task.row,
|
|
5436
5762
|
previousReplaySet = task.replay,
|
|
5437
5763
|
parentBoundary = task.blockedBoundary,
|
|
5438
5764
|
parentHoistableState = task.hoistableState,
|
|
5439
|
-
content = props.children
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
props.parentFlushed = !0;
|
|
5459
|
-
props.rootSegmentID = type;
|
|
5460
|
-
task.blockedBoundary = props;
|
|
5461
|
-
task.hoistableState = props.contentState;
|
|
5765
|
+
content = props.children;
|
|
5766
|
+
props = props.fallback;
|
|
5767
|
+
var fallbackAbortSet = new Set(),
|
|
5768
|
+
resumedBoundary = createSuspenseBoundary(
|
|
5769
|
+
request,
|
|
5770
|
+
task.row,
|
|
5771
|
+
fallbackAbortSet,
|
|
5772
|
+
2 > task.formatContext.insertionMode
|
|
5773
|
+
? {
|
|
5774
|
+
content: createPreambleState(),
|
|
5775
|
+
fallback: createPreambleState()
|
|
5776
|
+
}
|
|
5777
|
+
: null,
|
|
5778
|
+
!1
|
|
5779
|
+
);
|
|
5780
|
+
resumedBoundary.parentFlushed = !0;
|
|
5781
|
+
resumedBoundary.rootSegmentID = replay;
|
|
5782
|
+
task.blockedBoundary = resumedBoundary;
|
|
5783
|
+
task.hoistableState = resumedBoundary.contentState;
|
|
5462
5784
|
task.keyPath = key;
|
|
5463
5785
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5464
5786
|
request.resumableState,
|
|
@@ -5466,8 +5788,8 @@ function retryNode(request, task) {
|
|
|
5466
5788
|
);
|
|
5467
5789
|
task.row = null;
|
|
5468
5790
|
task.replay = {
|
|
5469
|
-
nodes:
|
|
5470
|
-
slots:
|
|
5791
|
+
nodes: type,
|
|
5792
|
+
slots: ref,
|
|
5471
5793
|
pendingTasks: 1
|
|
5472
5794
|
};
|
|
5473
5795
|
try {
|
|
@@ -5478,42 +5800,46 @@ function retryNode(request, task) {
|
|
|
5478
5800
|
)
|
|
5479
5801
|
throw Error(formatProdErrorMessage(488));
|
|
5480
5802
|
task.replay.pendingTasks--;
|
|
5481
|
-
if (
|
|
5482
|
-
|
|
5483
|
-
|
|
5803
|
+
if (
|
|
5804
|
+
0 === resumedBoundary.pendingTasks &&
|
|
5805
|
+
0 === resumedBoundary.status
|
|
5806
|
+
) {
|
|
5807
|
+
resumedBoundary.status = 1;
|
|
5808
|
+
request.completedBoundaries.push(resumedBoundary);
|
|
5484
5809
|
break b;
|
|
5485
5810
|
}
|
|
5486
|
-
} catch (
|
|
5487
|
-
(
|
|
5488
|
-
(childNodes =
|
|
5489
|
-
|
|
5811
|
+
} catch (thrownValue) {
|
|
5812
|
+
(resumedBoundary.status = 4),
|
|
5813
|
+
(childNodes = request.aborted
|
|
5814
|
+
? request.fatalError
|
|
5815
|
+
: thrownValue),
|
|
5816
|
+
(childSlots = getThrownInfo(task.componentStack)),
|
|
5817
|
+
(currentNode = logRecoverableError(
|
|
5490
5818
|
request,
|
|
5491
|
-
|
|
5492
|
-
|
|
5819
|
+
childNodes,
|
|
5820
|
+
childSlots
|
|
5493
5821
|
)),
|
|
5494
|
-
(
|
|
5822
|
+
(resumedBoundary.errorDigest = currentNode),
|
|
5495
5823
|
task.replay.pendingTasks--,
|
|
5496
|
-
request.clientRenderedBoundaries.push(
|
|
5824
|
+
request.clientRenderedBoundaries.push(
|
|
5825
|
+
resumedBoundary
|
|
5826
|
+
);
|
|
5497
5827
|
} finally {
|
|
5498
5828
|
(task.blockedBoundary = parentBoundary),
|
|
5499
5829
|
(task.hoistableState = parentHoistableState),
|
|
5500
5830
|
(task.replay = previousReplaySet),
|
|
5501
|
-
(task.keyPath =
|
|
5831
|
+
(task.keyPath = keyOrIndex),
|
|
5502
5832
|
(task.formatContext = prevContext),
|
|
5503
5833
|
(task.row = prevRow);
|
|
5504
5834
|
}
|
|
5505
5835
|
childNodes = createReplayTask(
|
|
5506
5836
|
request,
|
|
5507
5837
|
null,
|
|
5508
|
-
{
|
|
5509
|
-
|
|
5510
|
-
slots: node$jscomp$0,
|
|
5511
|
-
pendingTasks: 0
|
|
5512
|
-
},
|
|
5513
|
-
fallback,
|
|
5838
|
+
{ nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
|
|
5839
|
+
props,
|
|
5514
5840
|
-1,
|
|
5515
5841
|
parentBoundary,
|
|
5516
|
-
|
|
5842
|
+
resumedBoundary.fallbackState,
|
|
5517
5843
|
fallbackAbortSet,
|
|
5518
5844
|
[key[0], "Suspense Fallback", key[2]],
|
|
5519
5845
|
getSuspenseFallbackFormatContext(
|
|
@@ -5543,7 +5869,7 @@ function retryNode(request, task) {
|
|
|
5543
5869
|
case REACT_LAZY_TYPE:
|
|
5544
5870
|
childNodes = node._init;
|
|
5545
5871
|
node = childNodes(node._payload);
|
|
5546
|
-
if (
|
|
5872
|
+
if (request.aborted) throw null;
|
|
5547
5873
|
renderNodeDestructive(request, task, node, childIndex);
|
|
5548
5874
|
return;
|
|
5549
5875
|
}
|
|
@@ -5555,10 +5881,10 @@ function retryNode(request, task) {
|
|
|
5555
5881
|
if ((childNodes = childNodes.call(node))) {
|
|
5556
5882
|
node = childNodes.next();
|
|
5557
5883
|
if (!node.done) {
|
|
5558
|
-
|
|
5559
|
-
do
|
|
5884
|
+
childSlots = [];
|
|
5885
|
+
do childSlots.push(node.value), (node = childNodes.next());
|
|
5560
5886
|
while (!node.done);
|
|
5561
|
-
renderChildrenArray(request, task,
|
|
5887
|
+
renderChildrenArray(request, task, childSlots, childIndex);
|
|
5562
5888
|
}
|
|
5563
5889
|
return;
|
|
5564
5890
|
}
|
|
@@ -5634,17 +5960,18 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
5634
5960
|
)
|
|
5635
5961
|
throw x;
|
|
5636
5962
|
task.replay.pendingTasks--;
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5963
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
|
5964
|
+
children = request;
|
|
5965
|
+
var boundary = task.blockedBoundary;
|
|
5966
|
+
request = request.aborted ? request.fatalError : x;
|
|
5967
|
+
thrownInfo = logRecoverableError(children, request, thrownInfo);
|
|
5641
5968
|
abortRemainingReplayNodes(
|
|
5642
|
-
|
|
5969
|
+
children,
|
|
5643
5970
|
boundary,
|
|
5644
5971
|
childIndex,
|
|
5645
5972
|
node,
|
|
5646
|
-
|
|
5647
|
-
|
|
5973
|
+
request,
|
|
5974
|
+
thrownInfo
|
|
5648
5975
|
);
|
|
5649
5976
|
}
|
|
5650
5977
|
task.replay = replay;
|
|
@@ -5683,10 +6010,12 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
5683
6010
|
function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
5684
6011
|
boundary.status = 5;
|
|
5685
6012
|
boundary.rootSegmentID = request.nextSegmentId++;
|
|
5686
|
-
|
|
6013
|
+
var tracked = boundary.tracked;
|
|
6014
|
+
if (null === tracked) throw Error(formatProdErrorMessage(486));
|
|
6015
|
+
request = tracked.contentKeyPath;
|
|
5687
6016
|
if (null === request) throw Error(formatProdErrorMessage(486));
|
|
5688
|
-
|
|
5689
|
-
|
|
6017
|
+
tracked = tracked.fallbackNode;
|
|
6018
|
+
var children = [],
|
|
5690
6019
|
boundaryNode = trackedPostpones.workingMap.get(request);
|
|
5691
6020
|
if (void 0 === boundaryNode)
|
|
5692
6021
|
return (
|
|
@@ -5695,14 +6024,14 @@ function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
|
5695
6024
|
request[2],
|
|
5696
6025
|
children,
|
|
5697
6026
|
null,
|
|
5698
|
-
|
|
6027
|
+
tracked,
|
|
5699
6028
|
boundary.rootSegmentID
|
|
5700
6029
|
]),
|
|
5701
6030
|
trackedPostpones.workingMap.set(request, boundary),
|
|
5702
6031
|
addToReplayParent(boundary, request[0], trackedPostpones),
|
|
5703
6032
|
boundary
|
|
5704
6033
|
);
|
|
5705
|
-
boundaryNode[4] =
|
|
6034
|
+
boundaryNode[4] = tracked;
|
|
5706
6035
|
boundaryNode[5] = boundary.rootSegmentID;
|
|
5707
6036
|
return boundaryNode;
|
|
5708
6037
|
}
|
|
@@ -5723,7 +6052,8 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
5723
6052
|
boundary
|
|
5724
6053
|
);
|
|
5725
6054
|
if (
|
|
5726
|
-
boundary.
|
|
6055
|
+
null !== boundary.tracked &&
|
|
6056
|
+
boundary.tracked.contentKeyPath === keyPath &&
|
|
5727
6057
|
-1 === task.childIndex
|
|
5728
6058
|
) {
|
|
5729
6059
|
-1 === segment.id &&
|
|
@@ -5775,11 +6105,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
5775
6105
|
function untrackBoundary(request, boundary) {
|
|
5776
6106
|
request = request.trackedPostpones;
|
|
5777
6107
|
null !== request &&
|
|
5778
|
-
((boundary = boundary.
|
|
6108
|
+
((boundary = boundary.tracked),
|
|
5779
6109
|
null !== boundary &&
|
|
5780
|
-
((boundary =
|
|
5781
|
-
|
|
5782
|
-
((
|
|
6110
|
+
((boundary = boundary.contentKeyPath),
|
|
6111
|
+
null !== boundary &&
|
|
6112
|
+
((request = request.workingMap.get(boundary)),
|
|
6113
|
+
void 0 !== request &&
|
|
6114
|
+
((request.length = 4), (request[2] = []), (request[3] = null)))));
|
|
5783
6115
|
}
|
|
5784
6116
|
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
5785
6117
|
return createReplayTask(
|
|
@@ -5847,7 +6179,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5847
6179
|
thrownValue === SuspenseException
|
|
5848
6180
|
? getSuspendedThenable()
|
|
5849
6181
|
: thrownValue),
|
|
5850
|
-
|
|
6182
|
+
!request.aborted && "object" === typeof node && null !== node)
|
|
5851
6183
|
) {
|
|
5852
6184
|
if ("function" === typeof node.then) {
|
|
5853
6185
|
childIndex =
|
|
@@ -5855,7 +6187,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5855
6187
|
? getThenableStateAfterSuspending()
|
|
5856
6188
|
: null;
|
|
5857
6189
|
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
5858
|
-
node.then(request, request);
|
|
6190
|
+
node.then(request.resolve, request.reject);
|
|
5859
6191
|
task.formatContext = previousFormatContext;
|
|
5860
6192
|
task.context = previousContext;
|
|
5861
6193
|
task.keyPath = previousKeyPath;
|
|
@@ -5888,25 +6220,25 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5888
6220
|
chunkLength = segment.chunks.length;
|
|
5889
6221
|
try {
|
|
5890
6222
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
5891
|
-
} catch (thrownValue$
|
|
6223
|
+
} catch (thrownValue$64) {
|
|
5892
6224
|
if (
|
|
5893
6225
|
(resetHooksState(),
|
|
5894
6226
|
(segment.children.length = childrenLength),
|
|
5895
6227
|
(segment.chunks.length = chunkLength),
|
|
5896
6228
|
(node =
|
|
5897
|
-
thrownValue$
|
|
6229
|
+
thrownValue$64 === SuspenseException
|
|
5898
6230
|
? getSuspendedThenable()
|
|
5899
|
-
: thrownValue$
|
|
5900
|
-
|
|
6231
|
+
: thrownValue$64),
|
|
6232
|
+
!request.aborted && "object" === typeof node && null !== node)
|
|
5901
6233
|
) {
|
|
5902
6234
|
if ("function" === typeof node.then) {
|
|
5903
6235
|
segment = node;
|
|
5904
6236
|
node =
|
|
5905
|
-
thrownValue$
|
|
6237
|
+
thrownValue$64 === SuspenseException
|
|
5906
6238
|
? getThenableStateAfterSuspending()
|
|
5907
6239
|
: null;
|
|
5908
6240
|
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
5909
|
-
segment.then(request, request);
|
|
6241
|
+
segment.then(request.resolve, request.reject);
|
|
5910
6242
|
task.formatContext = previousFormatContext;
|
|
5911
6243
|
task.context = previousContext;
|
|
5912
6244
|
task.keyPath = previousKeyPath;
|
|
@@ -5917,7 +6249,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5917
6249
|
}
|
|
5918
6250
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
5919
6251
|
segment =
|
|
5920
|
-
thrownValue$
|
|
6252
|
+
thrownValue$64 === SuspenseException
|
|
5921
6253
|
? getThenableStateAfterSuspending()
|
|
5922
6254
|
: null;
|
|
5923
6255
|
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
@@ -5974,7 +6306,7 @@ function abortRemainingReplayNodes(
|
|
|
5974
6306
|
null,
|
|
5975
6307
|
new Set(),
|
|
5976
6308
|
null,
|
|
5977
|
-
|
|
6309
|
+
!1
|
|
5978
6310
|
);
|
|
5979
6311
|
resumedBoundary.parentFlushed = !0;
|
|
5980
6312
|
resumedBoundary.rootSegmentID = node;
|
|
@@ -5995,78 +6327,104 @@ function abortRemainingReplayNodes(
|
|
|
5995
6327
|
if ("object" === typeof slots) for (var index in slots) delete slots[index];
|
|
5996
6328
|
}
|
|
5997
6329
|
}
|
|
5998
|
-
function abortTask(task, request
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6330
|
+
function abortTask(task, request) {
|
|
6331
|
+
if (task !== request.currentTask) {
|
|
6332
|
+
var boundary = task.blockedBoundary;
|
|
6333
|
+
task = task.blockedSegment;
|
|
6334
|
+
null !== task && (task.status = 3);
|
|
6335
|
+
null !== boundary &&
|
|
6336
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6337
|
+
return abortTask(fallbackTask, request);
|
|
6338
|
+
});
|
|
6004
6339
|
}
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6340
|
+
}
|
|
6341
|
+
function finishAbortedTask(task, request, error) {
|
|
6342
|
+
if (task !== request.currentTask) {
|
|
6343
|
+
var boundary = task.blockedBoundary,
|
|
6344
|
+
segment = task.blockedSegment;
|
|
6345
|
+
if (null === segment || 3 === segment.status) {
|
|
6346
|
+
var errorInfo = getThrownInfo(task.componentStack),
|
|
6347
|
+
isRecoverableReason = isRecoverableError(error);
|
|
6009
6348
|
if (null === boundary) {
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6349
|
+
boundary = task.replay;
|
|
6350
|
+
if (null === boundary) {
|
|
6351
|
+
isRecoverableReason ||
|
|
6352
|
+
null === request.trackedPostpones ||
|
|
6353
|
+
null === segment
|
|
6354
|
+
? isRecoverableReason
|
|
6355
|
+
? ((task = cloneRecoverableErrorAsFatal(error)),
|
|
6356
|
+
logRecoverableError(request, task, errorInfo),
|
|
6357
|
+
12 !== request.status &&
|
|
6358
|
+
13 !== request.status &&
|
|
6359
|
+
fatalError(request, task))
|
|
6360
|
+
: (logRecoverableError(request, error, errorInfo),
|
|
6361
|
+
12 !== request.status &&
|
|
6362
|
+
13 !== request.status &&
|
|
6363
|
+
fatalError(request, error))
|
|
6364
|
+
: ((boundary = request.trackedPostpones),
|
|
6365
|
+
logRecoverableError(request, error, errorInfo),
|
|
6366
|
+
trackPostpone(request, boundary, task, segment),
|
|
6367
|
+
finishedTask(request, null, task.row, segment));
|
|
6368
|
+
return;
|
|
6369
|
+
}
|
|
6370
|
+
12 !== request.status &&
|
|
6371
|
+
13 !== request.status &&
|
|
6372
|
+
(boundary.pendingTasks--,
|
|
6373
|
+
0 === boundary.pendingTasks &&
|
|
6374
|
+
0 < boundary.nodes.length &&
|
|
6375
|
+
((errorInfo = logRecoverableError(request, error, errorInfo)),
|
|
6376
|
+
abortRemainingReplayNodes(
|
|
6377
|
+
request,
|
|
6378
|
+
null,
|
|
6379
|
+
boundary.nodes,
|
|
6380
|
+
boundary.slots,
|
|
6381
|
+
error,
|
|
6382
|
+
errorInfo
|
|
6383
|
+
)),
|
|
6384
|
+
request.pendingRootTasks--,
|
|
6385
|
+
0 === request.pendingRootTasks && completeShell(request));
|
|
6386
|
+
} else {
|
|
6387
|
+
var trackedPostpones$65 = request.trackedPostpones;
|
|
6388
|
+
if (4 !== boundary.status) {
|
|
6389
|
+
if (
|
|
6390
|
+
!isRecoverableReason &&
|
|
6391
|
+
null !== trackedPostpones$65 &&
|
|
6392
|
+
null !== segment
|
|
6393
|
+
)
|
|
6394
|
+
return (
|
|
6395
|
+
logRecoverableError(request, error, errorInfo),
|
|
6396
|
+
trackPostpone(request, trackedPostpones$65, task, segment),
|
|
6397
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6398
|
+
return finishAbortedTask(fallbackTask, request, error);
|
|
6399
|
+
}),
|
|
6400
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
6401
|
+
finishedTask(request, boundary, task.row, segment)
|
|
6402
|
+
);
|
|
6403
|
+
boundary.status = 4;
|
|
6404
|
+
errorInfo = logRecoverableError(request, error, errorInfo);
|
|
6405
|
+
boundary.errorDigest = errorInfo;
|
|
6406
|
+
untrackBoundary(request, boundary);
|
|
6407
|
+
boundary.parentFlushed &&
|
|
6408
|
+
request.clientRenderedBoundaries.push(boundary);
|
|
6409
|
+
}
|
|
6410
|
+
boundary.pendingTasks--;
|
|
6411
|
+
errorInfo = boundary.row;
|
|
6412
|
+
null !== errorInfo &&
|
|
6413
|
+
0 === --errorInfo.pendingTasks &&
|
|
6414
|
+
finishSuspenseListRow(request, errorInfo);
|
|
6415
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6416
|
+
return finishAbortedTask(fallbackTask, request, error);
|
|
6417
|
+
});
|
|
6418
|
+
boundary.fallbackAbortableTasks.clear();
|
|
6018
6419
|
}
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
0
|
|
6022
|
-
(
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
null,
|
|
6026
|
-
boundary.nodes,
|
|
6027
|
-
boundary.slots,
|
|
6028
|
-
error,
|
|
6029
|
-
segment
|
|
6030
|
-
));
|
|
6031
|
-
request.pendingRootTasks--;
|
|
6032
|
-
0 === request.pendingRootTasks && completeShell(request);
|
|
6420
|
+
task = task.row;
|
|
6421
|
+
null !== task &&
|
|
6422
|
+
0 === --task.pendingTasks &&
|
|
6423
|
+
finishSuspenseListRow(request, task);
|
|
6424
|
+
request.allPendingTasks--;
|
|
6425
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6033
6426
|
}
|
|
6034
|
-
} else {
|
|
6035
|
-
var trackedPostpones$64 = request.trackedPostpones;
|
|
6036
|
-
if (4 !== boundary.status) {
|
|
6037
|
-
if (null !== trackedPostpones$64 && null !== segment)
|
|
6038
|
-
return (
|
|
6039
|
-
logRecoverableError(request, error, errorInfo),
|
|
6040
|
-
trackPostpone(request, trackedPostpones$64, task, segment),
|
|
6041
|
-
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6042
|
-
return abortTask(fallbackTask, request, error);
|
|
6043
|
-
}),
|
|
6044
|
-
boundary.fallbackAbortableTasks.clear(),
|
|
6045
|
-
finishedTask(request, boundary, task.row, segment)
|
|
6046
|
-
);
|
|
6047
|
-
boundary.status = 4;
|
|
6048
|
-
segment = logRecoverableError(request, error, errorInfo);
|
|
6049
|
-
boundary.status = 4;
|
|
6050
|
-
boundary.errorDigest = segment;
|
|
6051
|
-
untrackBoundary(request, boundary);
|
|
6052
|
-
boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
|
|
6053
|
-
}
|
|
6054
|
-
boundary.pendingTasks--;
|
|
6055
|
-
segment = boundary.row;
|
|
6056
|
-
null !== segment &&
|
|
6057
|
-
0 === --segment.pendingTasks &&
|
|
6058
|
-
finishSuspenseListRow(request, segment);
|
|
6059
|
-
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6060
|
-
return abortTask(fallbackTask, request, error);
|
|
6061
|
-
});
|
|
6062
|
-
boundary.fallbackAbortableTasks.clear();
|
|
6063
6427
|
}
|
|
6064
|
-
task = task.row;
|
|
6065
|
-
null !== task &&
|
|
6066
|
-
0 === --task.pendingTasks &&
|
|
6067
|
-
finishSuspenseListRow(request, task);
|
|
6068
|
-
request.allPendingTasks--;
|
|
6069
|
-
0 === request.allPendingTasks && completeAll(request);
|
|
6070
6428
|
}
|
|
6071
6429
|
function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
6072
6430
|
try {
|
|
@@ -6132,7 +6490,6 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
6132
6490
|
function completeShell(request) {
|
|
6133
6491
|
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
|
|
6134
6492
|
null === request.trackedPostpones && preparePreamble(request);
|
|
6135
|
-
request.onShellError = noop;
|
|
6136
6493
|
request = request.onShellReady;
|
|
6137
6494
|
request();
|
|
6138
6495
|
}
|
|
@@ -6203,14 +6560,16 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6203
6560
|
null !== row &&
|
|
6204
6561
|
hoistHoistables(row.hoistables, boundary.contentState),
|
|
6205
6562
|
isEligibleForOutlining(request, boundary) ||
|
|
6206
|
-
(
|
|
6563
|
+
(request.allPendingTasks++,
|
|
6564
|
+
boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
|
|
6207
6565
|
boundary.fallbackAbortableTasks.clear(),
|
|
6208
6566
|
null !== row &&
|
|
6209
6567
|
0 === --row.pendingTasks &&
|
|
6210
|
-
finishSuspenseListRow(request, row)
|
|
6568
|
+
finishSuspenseListRow(request, row),
|
|
6569
|
+
request.allPendingTasks--),
|
|
6211
6570
|
0 === request.pendingRootTasks &&
|
|
6212
6571
|
null === request.trackedPostpones &&
|
|
6213
|
-
null !== boundary.
|
|
6572
|
+
null !== boundary.preamble &&
|
|
6214
6573
|
preparePreamble(request);
|
|
6215
6574
|
else {
|
|
6216
6575
|
if (
|
|
@@ -6234,8 +6593,10 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6234
6593
|
finishedTask(request, postponedBoundary, null, null);
|
|
6235
6594
|
}
|
|
6236
6595
|
}
|
|
6596
|
+
request.allPendingTasks++;
|
|
6237
6597
|
0 === --boundary.pendingTasks &&
|
|
6238
6598
|
finishSuspenseListRow(request, boundary);
|
|
6599
|
+
request.allPendingTasks--;
|
|
6239
6600
|
}
|
|
6240
6601
|
}
|
|
6241
6602
|
else
|
|
@@ -6252,207 +6613,255 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6252
6613
|
tryToResolveTogetherRow(request, boundary);
|
|
6253
6614
|
0 === request.allPendingTasks && completeAll(request);
|
|
6254
6615
|
}
|
|
6255
|
-
function performWork(request$jscomp$
|
|
6256
|
-
if (
|
|
6616
|
+
function performWork(request$jscomp$1) {
|
|
6617
|
+
if (!(request$jscomp$1.aborted || 11 < request$jscomp$1.status)) {
|
|
6257
6618
|
var prevContext = currentActiveSnapshot,
|
|
6258
6619
|
prevDispatcher = ReactSharedInternals.H;
|
|
6259
6620
|
ReactSharedInternals.H = HooksDispatcher;
|
|
6260
6621
|
var prevAsyncDispatcher = ReactSharedInternals.A;
|
|
6261
6622
|
ReactSharedInternals.A = DefaultAsyncDispatcher;
|
|
6262
6623
|
var prevRequest = currentRequest;
|
|
6263
|
-
currentRequest = request$jscomp$
|
|
6624
|
+
currentRequest = request$jscomp$1;
|
|
6264
6625
|
var prevResumableState = currentResumableState;
|
|
6265
|
-
currentResumableState = request$jscomp$
|
|
6626
|
+
currentResumableState = request$jscomp$1.resumableState;
|
|
6266
6627
|
try {
|
|
6267
|
-
var pingedTasks = request$jscomp$
|
|
6628
|
+
var pingedTasks = request$jscomp$1.pingedTasks,
|
|
6268
6629
|
i;
|
|
6269
6630
|
for (i = 0; i < pingedTasks.length; i++) {
|
|
6270
6631
|
var task = pingedTasks[i],
|
|
6271
|
-
request = request$jscomp$
|
|
6632
|
+
request = request$jscomp$1,
|
|
6272
6633
|
segment = task.blockedSegment;
|
|
6273
|
-
if (null === segment)
|
|
6274
|
-
|
|
6275
|
-
|
|
6634
|
+
if (null === segment)
|
|
6635
|
+
a: {
|
|
6636
|
+
if (0 !== task.replay.pendingTasks) {
|
|
6637
|
+
var prevTask = request.currentTask;
|
|
6638
|
+
request.currentTask = task;
|
|
6639
|
+
switchContext(task.context);
|
|
6640
|
+
var startNode = task.node;
|
|
6641
|
+
try {
|
|
6642
|
+
"number" === typeof task.replay.slots
|
|
6643
|
+
? resumeNode(
|
|
6644
|
+
request,
|
|
6645
|
+
task,
|
|
6646
|
+
task.replay.slots,
|
|
6647
|
+
task.node,
|
|
6648
|
+
task.childIndex
|
|
6649
|
+
)
|
|
6650
|
+
: retryNode(request, task);
|
|
6651
|
+
if (
|
|
6652
|
+
1 === task.replay.pendingTasks &&
|
|
6653
|
+
0 < task.replay.nodes.length
|
|
6654
|
+
)
|
|
6655
|
+
throw Error(formatProdErrorMessage(488));
|
|
6656
|
+
task.replay.pendingTasks--;
|
|
6657
|
+
task.abortSet.delete(task);
|
|
6658
|
+
finishedTask(request, task.blockedBoundary, task.row, null);
|
|
6659
|
+
} catch (thrownValue) {
|
|
6660
|
+
resetHooksState();
|
|
6661
|
+
var x =
|
|
6662
|
+
thrownValue === SuspenseException
|
|
6663
|
+
? getSuspendedThenable()
|
|
6664
|
+
: thrownValue;
|
|
6665
|
+
if (request.aborted) {
|
|
6666
|
+
thrownValue === SuspenseException &&
|
|
6667
|
+
(task.thenableState = getThenableStateAfterSuspending());
|
|
6668
|
+
request.currentTask = prevTask;
|
|
6669
|
+
var request$jscomp$0 = request;
|
|
6670
|
+
abortTask(task, request$jscomp$0);
|
|
6671
|
+
task.abortSet.delete(task);
|
|
6672
|
+
finishAbortedTask(
|
|
6673
|
+
task,
|
|
6674
|
+
request$jscomp$0,
|
|
6675
|
+
request$jscomp$0.fatalError
|
|
6676
|
+
);
|
|
6677
|
+
} else {
|
|
6678
|
+
if ("object" === typeof x && null !== x) {
|
|
6679
|
+
if ("function" === typeof x.then) {
|
|
6680
|
+
var ping = task.ping;
|
|
6681
|
+
x.then(ping.resolve, ping.reject);
|
|
6682
|
+
task.thenableState =
|
|
6683
|
+
thrownValue === SuspenseException
|
|
6684
|
+
? getThenableStateAfterSuspending()
|
|
6685
|
+
: null;
|
|
6686
|
+
break a;
|
|
6687
|
+
}
|
|
6688
|
+
if (
|
|
6689
|
+
"Maximum call stack size exceeded" === x.message &&
|
|
6690
|
+
task.node !== startNode
|
|
6691
|
+
) {
|
|
6692
|
+
task.thenableState = null;
|
|
6693
|
+
request.pingedTasks.push(task);
|
|
6694
|
+
break a;
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6697
|
+
task.replay.pendingTasks--;
|
|
6698
|
+
task.abortSet.delete(task);
|
|
6699
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
6700
|
+
request$jscomp$0 = request;
|
|
6701
|
+
var boundary = task.blockedBoundary,
|
|
6702
|
+
error$jscomp$0 = request.aborted ? request.fatalError : x,
|
|
6703
|
+
replayNodes = task.replay.nodes,
|
|
6704
|
+
resumeSlots = task.replay.slots,
|
|
6705
|
+
errorDigest = logRecoverableError(
|
|
6706
|
+
request$jscomp$0,
|
|
6707
|
+
error$jscomp$0,
|
|
6708
|
+
errorInfo
|
|
6709
|
+
);
|
|
6710
|
+
abortRemainingReplayNodes(
|
|
6711
|
+
request$jscomp$0,
|
|
6712
|
+
boundary,
|
|
6713
|
+
replayNodes,
|
|
6714
|
+
resumeSlots,
|
|
6715
|
+
error$jscomp$0,
|
|
6716
|
+
errorDigest
|
|
6717
|
+
);
|
|
6718
|
+
request.pendingRootTasks--;
|
|
6719
|
+
0 === request.pendingRootTasks && completeShell(request);
|
|
6720
|
+
request.allPendingTasks--;
|
|
6721
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6722
|
+
}
|
|
6723
|
+
} finally {
|
|
6724
|
+
request.currentTask = prevTask;
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6728
|
+
else
|
|
6729
|
+
a: if (
|
|
6730
|
+
((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
|
|
6731
|
+
) {
|
|
6732
|
+
var prevTask$jscomp$0 = request.currentTask;
|
|
6733
|
+
request.currentTask = task;
|
|
6276
6734
|
switchContext(task.context);
|
|
6735
|
+
var childrenLength = request$jscomp$0.children.length,
|
|
6736
|
+
chunkLength = request$jscomp$0.chunks.length,
|
|
6737
|
+
startNode$jscomp$0 = task.node;
|
|
6277
6738
|
try {
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
request$jscomp$0,
|
|
6296
|
-
task.blockedBoundary,
|
|
6297
|
-
task.row,
|
|
6298
|
-
null
|
|
6299
|
-
);
|
|
6739
|
+
retryNode(request, task),
|
|
6740
|
+
request$jscomp$0.lastPushedText &&
|
|
6741
|
+
request$jscomp$0.textEmbedded &&
|
|
6742
|
+
request$jscomp$0.chunks.push(textSeparator),
|
|
6743
|
+
task.abortSet.delete(task),
|
|
6744
|
+
(request$jscomp$0.status = 1),
|
|
6745
|
+
finishedSegment(
|
|
6746
|
+
request,
|
|
6747
|
+
task.blockedBoundary,
|
|
6748
|
+
request$jscomp$0
|
|
6749
|
+
),
|
|
6750
|
+
finishedTask(
|
|
6751
|
+
request,
|
|
6752
|
+
task.blockedBoundary,
|
|
6753
|
+
task.row,
|
|
6754
|
+
request$jscomp$0
|
|
6755
|
+
);
|
|
6300
6756
|
} catch (thrownValue) {
|
|
6301
6757
|
resetHooksState();
|
|
6302
|
-
|
|
6758
|
+
request$jscomp$0.children.length = childrenLength;
|
|
6759
|
+
request$jscomp$0.chunks.length = chunkLength;
|
|
6760
|
+
var x$jscomp$0 =
|
|
6303
6761
|
thrownValue === SuspenseException
|
|
6304
6762
|
? getSuspendedThenable()
|
|
6305
6763
|
: thrownValue;
|
|
6306
|
-
if (
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6764
|
+
if (request.aborted)
|
|
6765
|
+
thrownValue === SuspenseException &&
|
|
6766
|
+
(task.thenableState = getThenableStateAfterSuspending()),
|
|
6767
|
+
(request.currentTask = prevTask$jscomp$0),
|
|
6768
|
+
(request$jscomp$0 = request),
|
|
6769
|
+
abortTask(task, request$jscomp$0),
|
|
6770
|
+
task.abortSet.delete(task),
|
|
6771
|
+
finishAbortedTask(
|
|
6772
|
+
task,
|
|
6773
|
+
request$jscomp$0,
|
|
6774
|
+
request$jscomp$0.fatalError
|
|
6775
|
+
);
|
|
6776
|
+
else {
|
|
6777
|
+
if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
|
|
6778
|
+
if ("function" === typeof x$jscomp$0.then) {
|
|
6779
|
+
request$jscomp$0.status = 0;
|
|
6780
|
+
task.thenableState =
|
|
6781
|
+
thrownValue === SuspenseException
|
|
6782
|
+
? getThenableStateAfterSuspending()
|
|
6783
|
+
: null;
|
|
6784
|
+
var ping$jscomp$0 = task.ping;
|
|
6785
|
+
x$jscomp$0.then(
|
|
6786
|
+
ping$jscomp$0.resolve,
|
|
6787
|
+
ping$jscomp$0.reject
|
|
6788
|
+
);
|
|
6789
|
+
break a;
|
|
6790
|
+
}
|
|
6791
|
+
if (
|
|
6792
|
+
"Maximum call stack size exceeded" === x$jscomp$0.message &&
|
|
6793
|
+
task.node !== startNode$jscomp$0
|
|
6794
|
+
) {
|
|
6795
|
+
request$jscomp$0.status = 0;
|
|
6796
|
+
task.thenableState = null;
|
|
6797
|
+
request.pingedTasks.push(task);
|
|
6798
|
+
break a;
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
6319
6802
|
task.abortSet.delete(task);
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6803
|
+
request$jscomp$0.status = 4;
|
|
6804
|
+
var boundary$jscomp$0 = task.blockedBoundary,
|
|
6805
|
+
row = task.row;
|
|
6806
|
+
null !== row &&
|
|
6807
|
+
0 === --row.pendingTasks &&
|
|
6808
|
+
finishSuspenseListRow(request, row);
|
|
6809
|
+
request.allPendingTasks--;
|
|
6810
|
+
if (null === boundary$jscomp$0)
|
|
6811
|
+
if (isRecoverableError(x$jscomp$0)) {
|
|
6812
|
+
var fatalRecoverableError =
|
|
6813
|
+
cloneRecoverableErrorAsFatal(x$jscomp$0);
|
|
6814
|
+
logRecoverableError(
|
|
6815
|
+
request,
|
|
6816
|
+
fatalRecoverableError,
|
|
6817
|
+
errorInfo$jscomp$0
|
|
6818
|
+
);
|
|
6819
|
+
fatalError(request, fatalRecoverableError);
|
|
6820
|
+
} else
|
|
6821
|
+
logRecoverableError(
|
|
6822
|
+
request,
|
|
6823
|
+
x$jscomp$0,
|
|
6824
|
+
errorInfo$jscomp$0
|
|
6825
|
+
),
|
|
6826
|
+
fatalError(request, x$jscomp$0);
|
|
6827
|
+
else {
|
|
6828
|
+
var errorDigest$jscomp$0 = logRecoverableError(
|
|
6829
|
+
request,
|
|
6830
|
+
x$jscomp$0,
|
|
6831
|
+
errorInfo$jscomp$0
|
|
6832
|
+
);
|
|
6833
|
+
boundary$jscomp$0.pendingTasks--;
|
|
6834
|
+
if (4 !== boundary$jscomp$0.status) {
|
|
6835
|
+
boundary$jscomp$0.status = 4;
|
|
6836
|
+
boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
|
|
6837
|
+
untrackBoundary(request, boundary$jscomp$0);
|
|
6838
|
+
var boundaryRow = boundary$jscomp$0.row;
|
|
6839
|
+
null !== boundaryRow &&
|
|
6840
|
+
(request.allPendingTasks++,
|
|
6841
|
+
0 === --boundaryRow.pendingTasks &&
|
|
6842
|
+
finishSuspenseListRow(request, boundaryRow),
|
|
6843
|
+
request.allPendingTasks--);
|
|
6844
|
+
boundary$jscomp$0.parentFlushed &&
|
|
6845
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
6846
|
+
0 === request.pendingRootTasks &&
|
|
6847
|
+
null === request.trackedPostpones &&
|
|
6848
|
+
null !== boundary$jscomp$0.preamble &&
|
|
6849
|
+
preparePreamble(request);
|
|
6850
|
+
}
|
|
6851
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6852
|
+
}
|
|
6349
6853
|
}
|
|
6350
6854
|
} finally {
|
|
6855
|
+
request.currentTask = prevTask$jscomp$0;
|
|
6351
6856
|
}
|
|
6352
6857
|
}
|
|
6353
|
-
} else if (
|
|
6354
|
-
((request$jscomp$0 = void 0),
|
|
6355
|
-
(request$jscomp$1 = segment),
|
|
6356
|
-
0 === request$jscomp$1.status)
|
|
6357
|
-
) {
|
|
6358
|
-
request$jscomp$1.status = 6;
|
|
6359
|
-
switchContext(task.context);
|
|
6360
|
-
var childrenLength = request$jscomp$1.children.length,
|
|
6361
|
-
chunkLength = request$jscomp$1.chunks.length;
|
|
6362
|
-
try {
|
|
6363
|
-
retryNode(request, task),
|
|
6364
|
-
request$jscomp$1.lastPushedText &&
|
|
6365
|
-
request$jscomp$1.textEmbedded &&
|
|
6366
|
-
request$jscomp$1.chunks.push(textSeparator),
|
|
6367
|
-
task.abortSet.delete(task),
|
|
6368
|
-
(request$jscomp$1.status = 1),
|
|
6369
|
-
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
|
6370
|
-
finishedTask(
|
|
6371
|
-
request,
|
|
6372
|
-
task.blockedBoundary,
|
|
6373
|
-
task.row,
|
|
6374
|
-
request$jscomp$1
|
|
6375
|
-
);
|
|
6376
|
-
} catch (thrownValue) {
|
|
6377
|
-
resetHooksState();
|
|
6378
|
-
request$jscomp$1.children.length = childrenLength;
|
|
6379
|
-
request$jscomp$1.chunks.length = chunkLength;
|
|
6380
|
-
var x$jscomp$0 =
|
|
6381
|
-
thrownValue === SuspenseException
|
|
6382
|
-
? getSuspendedThenable()
|
|
6383
|
-
: 12 === request.status
|
|
6384
|
-
? request.fatalError
|
|
6385
|
-
: thrownValue;
|
|
6386
|
-
if (12 === request.status && null !== request.trackedPostpones) {
|
|
6387
|
-
var trackedPostpones = request.trackedPostpones,
|
|
6388
|
-
thrownInfo = getThrownInfo(task.componentStack);
|
|
6389
|
-
task.abortSet.delete(task);
|
|
6390
|
-
logRecoverableError(request, x$jscomp$0, thrownInfo);
|
|
6391
|
-
trackPostpone(request, trackedPostpones, task, request$jscomp$1);
|
|
6392
|
-
finishedTask(
|
|
6393
|
-
request,
|
|
6394
|
-
task.blockedBoundary,
|
|
6395
|
-
task.row,
|
|
6396
|
-
request$jscomp$1
|
|
6397
|
-
);
|
|
6398
|
-
} else if (
|
|
6399
|
-
"object" === typeof x$jscomp$0 &&
|
|
6400
|
-
null !== x$jscomp$0 &&
|
|
6401
|
-
"function" === typeof x$jscomp$0.then
|
|
6402
|
-
) {
|
|
6403
|
-
request$jscomp$1.status = 0;
|
|
6404
|
-
task.thenableState =
|
|
6405
|
-
thrownValue === SuspenseException
|
|
6406
|
-
? getThenableStateAfterSuspending()
|
|
6407
|
-
: null;
|
|
6408
|
-
var ping$jscomp$0 = task.ping;
|
|
6409
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6410
|
-
} else {
|
|
6411
|
-
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
6412
|
-
task.abortSet.delete(task);
|
|
6413
|
-
request$jscomp$1.status = 4;
|
|
6414
|
-
var boundary$jscomp$0 = task.blockedBoundary,
|
|
6415
|
-
row = task.row;
|
|
6416
|
-
null !== row &&
|
|
6417
|
-
0 === --row.pendingTasks &&
|
|
6418
|
-
finishSuspenseListRow(request, row);
|
|
6419
|
-
request.allPendingTasks--;
|
|
6420
|
-
request$jscomp$0 = logRecoverableError(
|
|
6421
|
-
request,
|
|
6422
|
-
x$jscomp$0,
|
|
6423
|
-
errorInfo$jscomp$0
|
|
6424
|
-
);
|
|
6425
|
-
if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
|
|
6426
|
-
else if (
|
|
6427
|
-
(boundary$jscomp$0.pendingTasks--,
|
|
6428
|
-
4 !== boundary$jscomp$0.status)
|
|
6429
|
-
) {
|
|
6430
|
-
boundary$jscomp$0.status = 4;
|
|
6431
|
-
boundary$jscomp$0.errorDigest = request$jscomp$0;
|
|
6432
|
-
untrackBoundary(request, boundary$jscomp$0);
|
|
6433
|
-
var boundaryRow = boundary$jscomp$0.row;
|
|
6434
|
-
null !== boundaryRow &&
|
|
6435
|
-
0 === --boundaryRow.pendingTasks &&
|
|
6436
|
-
finishSuspenseListRow(request, boundaryRow);
|
|
6437
|
-
boundary$jscomp$0.parentFlushed &&
|
|
6438
|
-
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
6439
|
-
0 === request.pendingRootTasks &&
|
|
6440
|
-
null === request.trackedPostpones &&
|
|
6441
|
-
null !== boundary$jscomp$0.contentPreamble &&
|
|
6442
|
-
preparePreamble(request);
|
|
6443
|
-
}
|
|
6444
|
-
0 === request.allPendingTasks && completeAll(request);
|
|
6445
|
-
}
|
|
6446
|
-
} finally {
|
|
6447
|
-
}
|
|
6448
|
-
}
|
|
6449
6858
|
}
|
|
6450
6859
|
pingedTasks.splice(0, i);
|
|
6451
|
-
null !== request$jscomp$
|
|
6452
|
-
flushCompletedQueues(request$jscomp$
|
|
6860
|
+
null !== request$jscomp$1.destination &&
|
|
6861
|
+
flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
|
|
6453
6862
|
} catch (error) {
|
|
6454
|
-
logRecoverableError(request$jscomp$
|
|
6455
|
-
fatalError(request$jscomp$
|
|
6863
|
+
logRecoverableError(request$jscomp$1, error, {}),
|
|
6864
|
+
fatalError(request$jscomp$1, error);
|
|
6456
6865
|
} finally {
|
|
6457
6866
|
(currentResumableState = prevResumableState),
|
|
6458
6867
|
(ReactSharedInternals.H = prevDispatcher),
|
|
@@ -6490,12 +6899,11 @@ function preparePreambleFromSegment(
|
|
|
6490
6899
|
segment,
|
|
6491
6900
|
collectedPreambleSegments
|
|
6492
6901
|
);
|
|
6493
|
-
var preamble = boundary.
|
|
6494
|
-
|
|
6495
|
-
if (null === preamble || null === fallbackPreamble) return !1;
|
|
6902
|
+
var preamble = boundary.preamble;
|
|
6903
|
+
if (null === preamble) return !1;
|
|
6496
6904
|
switch (boundary.status) {
|
|
6497
6905
|
case 1:
|
|
6498
|
-
hoistPreambleState(request.renderState, preamble);
|
|
6906
|
+
hoistPreambleState(request.renderState, preamble.content);
|
|
6499
6907
|
request.byteSize += boundary.byteSize;
|
|
6500
6908
|
segment = boundary.completedSegments[0];
|
|
6501
6909
|
if (!segment) throw Error(formatProdErrorMessage(391));
|
|
@@ -6509,7 +6917,7 @@ function preparePreambleFromSegment(
|
|
|
6509
6917
|
case 4:
|
|
6510
6918
|
if (1 === segment.status)
|
|
6511
6919
|
return (
|
|
6512
|
-
hoistPreambleState(request.renderState,
|
|
6920
|
+
hoistPreambleState(request.renderState, preamble.fallback),
|
|
6513
6921
|
preparePreambleFromSubtree(
|
|
6514
6922
|
request,
|
|
6515
6923
|
segment,
|
|
@@ -6582,6 +6990,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6582
6990
|
var boundary = segment.boundary;
|
|
6583
6991
|
if (null === boundary)
|
|
6584
6992
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
6993
|
+
segment.boundary = null;
|
|
6585
6994
|
boundary.parentFlushed = !0;
|
|
6586
6995
|
if (4 === boundary.status) {
|
|
6587
6996
|
var row = boundary.row;
|
|
@@ -6591,7 +7000,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6591
7000
|
boundary = boundary.errorDigest;
|
|
6592
7001
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
6593
7002
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
6594
|
-
boundary &&
|
|
7003
|
+
null != boundary &&
|
|
6595
7004
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
|
6596
7005
|
writeChunk(destination, stringToChunk(escapeTextForBrowser(boundary))),
|
|
6597
7006
|
writeChunk(
|
|
@@ -6615,7 +7024,8 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6615
7024
|
!flushingPartialBoundaries &&
|
|
6616
7025
|
isEligibleForOutlining(request, boundary) &&
|
|
6617
7026
|
(flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
|
|
6618
|
-
hasSuspenseyContent(boundary.contentState)
|
|
7027
|
+
hasSuspenseyContent(boundary.contentState, flushingShell) ||
|
|
7028
|
+
boundary.defer)
|
|
6619
7029
|
)
|
|
6620
7030
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
6621
7031
|
request.completedBoundaries.push(boundary),
|
|
@@ -6678,7 +7088,8 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6678
7088
|
request = request.renderState;
|
|
6679
7089
|
i = boundary.rootSegmentID;
|
|
6680
7090
|
boundary = boundary.contentState;
|
|
6681
|
-
var requiresStyleInsertion = request.stylesToHoist
|
|
7091
|
+
var requiresStyleInsertion = request.stylesToHoist,
|
|
7092
|
+
requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
|
|
6682
7093
|
request.stylesToHoist = !1;
|
|
6683
7094
|
writeChunk(destination, request.startInlineScript);
|
|
6684
7095
|
writeChunk(destination, endOfStartTag);
|
|
@@ -6689,6 +7100,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6689
7100
|
0 === (completedSegments.instructions & 2) &&
|
|
6690
7101
|
((completedSegments.instructions |= 2),
|
|
6691
7102
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
7103
|
+
requiresViewTransitions &&
|
|
7104
|
+
0 === (completedSegments.instructions & 256) &&
|
|
7105
|
+
((completedSegments.instructions |= 256),
|
|
7106
|
+
writeChunk(
|
|
7107
|
+
destination,
|
|
7108
|
+
completeBoundaryUpgradeToViewTransitionsInstruction
|
|
7109
|
+
)),
|
|
6692
7110
|
0 === (completedSegments.instructions & 8)
|
|
6693
7111
|
? ((completedSegments.instructions |= 8),
|
|
6694
7112
|
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
|
@@ -6696,6 +7114,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6696
7114
|
: (0 === (completedSegments.instructions & 2) &&
|
|
6697
7115
|
((completedSegments.instructions |= 2),
|
|
6698
7116
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
7117
|
+
requiresViewTransitions &&
|
|
7118
|
+
0 === (completedSegments.instructions & 256) &&
|
|
7119
|
+
((completedSegments.instructions |= 256),
|
|
7120
|
+
writeChunk(
|
|
7121
|
+
destination,
|
|
7122
|
+
completeBoundaryUpgradeToViewTransitionsInstruction
|
|
7123
|
+
)),
|
|
6699
7124
|
writeChunk(destination, completeBoundaryScript1Partial));
|
|
6700
7125
|
completedSegments = stringToChunk(i.toString(16));
|
|
6701
7126
|
writeChunk(destination, request.boundaryPrefix);
|
|
@@ -6744,7 +7169,8 @@ function flushPartiallyCompletedSegment(
|
|
|
6744
7169
|
destination = writeChunkAndReturn(destination, completeSegmentScriptEnd);
|
|
6745
7170
|
return destination;
|
|
6746
7171
|
}
|
|
6747
|
-
var flushingPartialBoundaries = !1
|
|
7172
|
+
var flushingPartialBoundaries = !1,
|
|
7173
|
+
flushingShell = !1;
|
|
6748
7174
|
function flushCompletedQueues(request, destination) {
|
|
6749
7175
|
currentView = new Uint8Array(2048);
|
|
6750
7176
|
writtenBytes = 0;
|
|
@@ -6826,7 +7252,9 @@ function flushCompletedQueues(request, destination) {
|
|
|
6826
7252
|
completedPreambleSegments++
|
|
6827
7253
|
)
|
|
6828
7254
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
7255
|
+
flushingShell = !0;
|
|
6829
7256
|
flushSegment(request, destination, completedRootSegment, null);
|
|
7257
|
+
flushingShell = !1;
|
|
6830
7258
|
request.completedRootSegment = null;
|
|
6831
7259
|
var renderState$jscomp$0 = request.renderState;
|
|
6832
7260
|
if (
|
|
@@ -6910,17 +7338,17 @@ function flushCompletedQueues(request, destination) {
|
|
|
6910
7338
|
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
|
6911
7339
|
writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
|
|
6912
7340
|
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
|
6913
|
-
errorDigest &&
|
|
7341
|
+
null != errorDigest &&
|
|
6914
7342
|
(writeChunk(
|
|
6915
7343
|
renderState$jscomp$1,
|
|
6916
7344
|
clientRenderErrorScriptArgInterstitial
|
|
6917
7345
|
),
|
|
6918
|
-
|
|
6919
|
-
renderState$jscomp$1,
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
7346
|
+
null == errorDigest
|
|
7347
|
+
? writeChunk(renderState$jscomp$1, clientRenderErrorScriptNull)
|
|
7348
|
+
: writeChunk(
|
|
7349
|
+
renderState$jscomp$1,
|
|
7350
|
+
stringToChunk(escapeJSStringsForInstructionScripts(errorDigest))
|
|
7351
|
+
));
|
|
6924
7352
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
|
6925
7353
|
renderState$jscomp$1,
|
|
6926
7354
|
clientRenderScriptEnd
|
|
@@ -6950,12 +7378,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
6950
7378
|
flushingPartialBoundaries = !0;
|
|
6951
7379
|
var partialBoundaries = request.partialBoundaries;
|
|
6952
7380
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
6953
|
-
var boundary$
|
|
7381
|
+
var boundary$71 = partialBoundaries[i];
|
|
6954
7382
|
a: {
|
|
6955
7383
|
clientRenderedBoundaries = request;
|
|
6956
7384
|
boundary = destination;
|
|
6957
|
-
flushedByteSize = boundary$
|
|
6958
|
-
var completedSegments = boundary$
|
|
7385
|
+
flushedByteSize = boundary$71.byteSize;
|
|
7386
|
+
var completedSegments = boundary$71.completedSegments;
|
|
6959
7387
|
for (
|
|
6960
7388
|
JSCompiler_inline_result = 0;
|
|
6961
7389
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -6965,7 +7393,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
6965
7393
|
!flushPartiallyCompletedSegment(
|
|
6966
7394
|
clientRenderedBoundaries,
|
|
6967
7395
|
boundary,
|
|
6968
|
-
boundary$
|
|
7396
|
+
boundary$71,
|
|
6969
7397
|
completedSegments[JSCompiler_inline_result]
|
|
6970
7398
|
)
|
|
6971
7399
|
) {
|
|
@@ -6975,10 +7403,10 @@ function flushCompletedQueues(request, destination) {
|
|
|
6975
7403
|
break a;
|
|
6976
7404
|
}
|
|
6977
7405
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
6978
|
-
var row = boundary$
|
|
7406
|
+
var row = boundary$71.row;
|
|
6979
7407
|
null !== row &&
|
|
6980
7408
|
row.together &&
|
|
6981
|
-
1 === boundary$
|
|
7409
|
+
1 === boundary$71.pendingTasks &&
|
|
6982
7410
|
(1 === row.pendingTasks
|
|
6983
7411
|
? unblockSuspenseListRow(
|
|
6984
7412
|
clientRenderedBoundaries,
|
|
@@ -6988,7 +7416,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
6988
7416
|
: row.pendingTasks--);
|
|
6989
7417
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
6990
7418
|
boundary,
|
|
6991
|
-
boundary$
|
|
7419
|
+
boundary$71.contentState,
|
|
6992
7420
|
clientRenderedBoundaries.renderState
|
|
6993
7421
|
);
|
|
6994
7422
|
}
|
|
@@ -7013,6 +7441,8 @@ function flushCompletedQueues(request, destination) {
|
|
|
7013
7441
|
}
|
|
7014
7442
|
} finally {
|
|
7015
7443
|
(flushingPartialBoundaries = !1),
|
|
7444
|
+
(i = request.postponedState),
|
|
7445
|
+
null !== i && (i.nextSegmentId = request.nextSegmentId),
|
|
7016
7446
|
0 === request.allPendingTasks &&
|
|
7017
7447
|
0 === request.clientRenderedBoundaries.length &&
|
|
7018
7448
|
0 === request.completedBoundaries.length
|
|
@@ -7021,7 +7451,8 @@ function flushCompletedQueues(request, destination) {
|
|
|
7021
7451
|
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
|
7022
7452
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
7023
7453
|
completeWriting(destination),
|
|
7024
|
-
(request
|
|
7454
|
+
endRenderLifetime(request),
|
|
7455
|
+
(request.status = 13),
|
|
7025
7456
|
destination.close(),
|
|
7026
7457
|
(request.destination = null))
|
|
7027
7458
|
: completeWriting(destination);
|
|
@@ -7051,40 +7482,79 @@ function enqueueFlush(request) {
|
|
|
7051
7482
|
}));
|
|
7052
7483
|
}
|
|
7053
7484
|
function startFlowing(request, destination) {
|
|
7054
|
-
if (
|
|
7055
|
-
(request.status =
|
|
7056
|
-
|
|
7485
|
+
if (12 === request.status)
|
|
7486
|
+
(request.status = 13),
|
|
7487
|
+
(request = request.fatalError),
|
|
7488
|
+
isRecoverableError(request) &&
|
|
7489
|
+
(request = cloneRecoverableErrorAsFatal(request)),
|
|
7490
|
+
closeWithError(destination, request);
|
|
7491
|
+
else if (13 !== request.status && null === request.destination) {
|
|
7057
7492
|
request.destination = destination;
|
|
7058
7493
|
try {
|
|
7059
7494
|
flushCompletedQueues(request, destination);
|
|
7060
|
-
} catch (error) {
|
|
7061
|
-
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
7495
|
+
} catch (error$73) {
|
|
7496
|
+
logRecoverableError(request, error$73, {}), fatalError(request, error$73);
|
|
7062
7497
|
}
|
|
7063
7498
|
}
|
|
7064
7499
|
}
|
|
7065
|
-
function
|
|
7066
|
-
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
7500
|
+
function finishAbort(request, abortableTasks) {
|
|
7067
7501
|
try {
|
|
7068
|
-
var abortableTasks = request.abortableTasks;
|
|
7069
7502
|
if (0 < abortableTasks.size) {
|
|
7070
|
-
var error =
|
|
7071
|
-
void 0 === reason
|
|
7072
|
-
? Error(formatProdErrorMessage(432))
|
|
7073
|
-
: "object" === typeof reason &&
|
|
7074
|
-
null !== reason &&
|
|
7075
|
-
"function" === typeof reason.then
|
|
7076
|
-
? Error(formatProdErrorMessage(530))
|
|
7077
|
-
: reason;
|
|
7078
|
-
request.fatalError = error;
|
|
7503
|
+
var error = request.fatalError;
|
|
7079
7504
|
abortableTasks.forEach(function (task) {
|
|
7080
|
-
return
|
|
7505
|
+
return finishAbortedTask(task, request, error);
|
|
7081
7506
|
});
|
|
7082
7507
|
abortableTasks.clear();
|
|
7083
7508
|
}
|
|
7084
7509
|
null !== request.destination &&
|
|
7085
7510
|
flushCompletedQueues(request, request.destination);
|
|
7086
|
-
} catch (error$
|
|
7087
|
-
logRecoverableError(request, error$
|
|
7511
|
+
} catch (error$74) {
|
|
7512
|
+
logRecoverableError(request, error$74, {}), fatalError(request, error$74);
|
|
7513
|
+
}
|
|
7514
|
+
}
|
|
7515
|
+
function endRenderLifetime(request) {
|
|
7516
|
+
request = request.renderLifetimeController;
|
|
7517
|
+
null !== request && request.abort("The render ended.");
|
|
7518
|
+
}
|
|
7519
|
+
function attachAbortSignal(request, signal) {
|
|
7520
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
7521
|
+
else {
|
|
7522
|
+
var renderLifetimeController = new AbortController();
|
|
7523
|
+
request.renderLifetimeController = renderLifetimeController;
|
|
7524
|
+
signal.addEventListener(
|
|
7525
|
+
"abort",
|
|
7526
|
+
function () {
|
|
7527
|
+
abort(request, signal.reason);
|
|
7528
|
+
},
|
|
7529
|
+
{ signal: renderLifetimeController.signal }
|
|
7530
|
+
);
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7533
|
+
function abort(request, reason) {
|
|
7534
|
+
if (!(request.aborted || (11 !== request.status && 10 !== request.status))) {
|
|
7535
|
+
endRenderLifetime(request);
|
|
7536
|
+
var isRecoverableReason =
|
|
7537
|
+
"object" === typeof reason &&
|
|
7538
|
+
null !== reason &&
|
|
7539
|
+
reason.$$typeof === REACT_RECOVERABLE_TYPE;
|
|
7540
|
+
request.aborted = !0;
|
|
7541
|
+
reason = isRecoverableReason
|
|
7542
|
+
? createRecoverableError(reason)
|
|
7543
|
+
: void 0 === reason
|
|
7544
|
+
? Error(formatProdErrorMessage(432))
|
|
7545
|
+
: "object" === typeof reason &&
|
|
7546
|
+
null !== reason &&
|
|
7547
|
+
"function" === typeof reason.then
|
|
7548
|
+
? Error(formatProdErrorMessage(530))
|
|
7549
|
+
: reason;
|
|
7550
|
+
request.fatalError = reason;
|
|
7551
|
+
var abortableTasks = request.abortableTasks;
|
|
7552
|
+
abortableTasks.forEach(function (task) {
|
|
7553
|
+
return abortTask(task, request);
|
|
7554
|
+
});
|
|
7555
|
+
scheduleWork(function () {
|
|
7556
|
+
return finishAbort(request, abortableTasks);
|
|
7557
|
+
});
|
|
7088
7558
|
}
|
|
7089
7559
|
}
|
|
7090
7560
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -7107,11 +7577,11 @@ function getPostponedState(request) {
|
|
|
7107
7577
|
null === trackedPostpones.rootSlots)
|
|
7108
7578
|
)
|
|
7109
7579
|
return (request.trackedPostpones = null);
|
|
7110
|
-
|
|
7580
|
+
var hasFlushableShell =
|
|
7111
7581
|
null === request.completedRootSegment ||
|
|
7112
7582
|
(5 !== request.completedRootSegment.status &&
|
|
7113
|
-
null !== request.completedPreambleSegments)
|
|
7114
|
-
) {
|
|
7583
|
+
null !== request.completedPreambleSegments);
|
|
7584
|
+
if (hasFlushableShell) {
|
|
7115
7585
|
var nextSegmentId = request.nextSegmentId;
|
|
7116
7586
|
var replaySlots = trackedPostpones.rootSlots;
|
|
7117
7587
|
var resumableState = request.resumableState;
|
|
@@ -7136,7 +7606,7 @@ function getPostponedState(request) {
|
|
|
7136
7606
|
resumableState.moduleScriptResources = {};
|
|
7137
7607
|
resumableState.instructions = 0;
|
|
7138
7608
|
}
|
|
7139
|
-
|
|
7609
|
+
trackedPostpones = {
|
|
7140
7610
|
nextSegmentId: nextSegmentId,
|
|
7141
7611
|
rootFormatContext: request.rootFormatContext,
|
|
7142
7612
|
progressiveChunkSize: request.progressiveChunkSize,
|
|
@@ -7144,15 +7614,17 @@ function getPostponedState(request) {
|
|
|
7144
7614
|
replayNodes: trackedPostpones.rootNodes,
|
|
7145
7615
|
replaySlots: replaySlots
|
|
7146
7616
|
};
|
|
7617
|
+
hasFlushableShell && (request.postponedState = trackedPostpones);
|
|
7618
|
+
return trackedPostpones;
|
|
7147
7619
|
}
|
|
7148
7620
|
function ensureCorrectIsomorphicReactVersion() {
|
|
7149
7621
|
var isomorphicReactPackageVersion = React.version;
|
|
7150
|
-
if ("19.
|
|
7622
|
+
if ("19.3.0" !== isomorphicReactPackageVersion)
|
|
7151
7623
|
throw Error(
|
|
7152
7624
|
formatProdErrorMessage(
|
|
7153
7625
|
527,
|
|
7154
7626
|
isomorphicReactPackageVersion,
|
|
7155
|
-
"19.
|
|
7627
|
+
"19.3.0"
|
|
7156
7628
|
)
|
|
7157
7629
|
);
|
|
7158
7630
|
}
|
|
@@ -7187,6 +7659,7 @@ exports.prerender = function (children, options) {
|
|
|
7187
7659
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7188
7660
|
options ? options.progressiveChunkSize : void 0,
|
|
7189
7661
|
options ? options.onError : void 0,
|
|
7662
|
+
options ? options.onBrowserBailout : void 0,
|
|
7190
7663
|
function () {
|
|
7191
7664
|
var stream = new ReadableStream(
|
|
7192
7665
|
{
|
|
@@ -7206,20 +7679,9 @@ exports.prerender = function (children, options) {
|
|
|
7206
7679
|
},
|
|
7207
7680
|
void 0,
|
|
7208
7681
|
void 0,
|
|
7209
|
-
reject
|
|
7210
|
-
options ? options.onPostpone : void 0
|
|
7682
|
+
reject
|
|
7211
7683
|
);
|
|
7212
|
-
|
|
7213
|
-
var signal = options.signal;
|
|
7214
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7215
|
-
else {
|
|
7216
|
-
var listener = function () {
|
|
7217
|
-
abort(request, signal.reason);
|
|
7218
|
-
signal.removeEventListener("abort", listener);
|
|
7219
|
-
};
|
|
7220
|
-
signal.addEventListener("abort", listener);
|
|
7221
|
-
}
|
|
7222
|
-
}
|
|
7684
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7223
7685
|
startWork(request);
|
|
7224
7686
|
});
|
|
7225
7687
|
};
|
|
@@ -7258,6 +7720,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7258
7720
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7259
7721
|
options ? options.progressiveChunkSize : void 0,
|
|
7260
7722
|
options ? options.onError : void 0,
|
|
7723
|
+
options ? options.onBrowserBailout : void 0,
|
|
7261
7724
|
onAllReady,
|
|
7262
7725
|
function () {
|
|
7263
7726
|
var stream = new ReadableStream(
|
|
@@ -7281,20 +7744,9 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7281
7744
|
reject(error);
|
|
7282
7745
|
},
|
|
7283
7746
|
onFatalError,
|
|
7284
|
-
options ? options.onPostpone : void 0,
|
|
7285
7747
|
options ? options.formState : void 0
|
|
7286
7748
|
);
|
|
7287
|
-
|
|
7288
|
-
var signal = options.signal;
|
|
7289
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7290
|
-
else {
|
|
7291
|
-
var listener = function () {
|
|
7292
|
-
abort(request, signal.reason);
|
|
7293
|
-
signal.removeEventListener("abort", listener);
|
|
7294
|
-
};
|
|
7295
|
-
signal.addEventListener("abort", listener);
|
|
7296
|
-
}
|
|
7297
|
-
}
|
|
7749
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7298
7750
|
startWork(request);
|
|
7299
7751
|
});
|
|
7300
7752
|
};
|
|
@@ -7318,6 +7770,7 @@ exports.resume = function (children, postponedState, options) {
|
|
|
7318
7770
|
void 0
|
|
7319
7771
|
),
|
|
7320
7772
|
options ? options.onError : void 0,
|
|
7773
|
+
options ? options.onBrowserBailout : void 0,
|
|
7321
7774
|
onAllReady,
|
|
7322
7775
|
function () {
|
|
7323
7776
|
var stream = new ReadableStream(
|
|
@@ -7340,20 +7793,9 @@ exports.resume = function (children, postponedState, options) {
|
|
|
7340
7793
|
allReady.catch(function () {});
|
|
7341
7794
|
reject(error);
|
|
7342
7795
|
},
|
|
7343
|
-
onFatalError
|
|
7344
|
-
options ? options.onPostpone : void 0
|
|
7796
|
+
onFatalError
|
|
7345
7797
|
);
|
|
7346
|
-
|
|
7347
|
-
var signal = options.signal;
|
|
7348
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7349
|
-
else {
|
|
7350
|
-
var listener = function () {
|
|
7351
|
-
abort(request, signal.reason);
|
|
7352
|
-
signal.removeEventListener("abort", listener);
|
|
7353
|
-
};
|
|
7354
|
-
signal.addEventListener("abort", listener);
|
|
7355
|
-
}
|
|
7356
|
-
}
|
|
7798
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7357
7799
|
startWork(request);
|
|
7358
7800
|
});
|
|
7359
7801
|
};
|
|
@@ -7371,6 +7813,7 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
|
7371
7813
|
void 0
|
|
7372
7814
|
),
|
|
7373
7815
|
options ? options.onError : void 0,
|
|
7816
|
+
options ? options.onBrowserBailout : void 0,
|
|
7374
7817
|
function () {
|
|
7375
7818
|
var stream = new ReadableStream(
|
|
7376
7819
|
{
|
|
@@ -7390,21 +7833,10 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
|
7390
7833
|
},
|
|
7391
7834
|
void 0,
|
|
7392
7835
|
void 0,
|
|
7393
|
-
reject
|
|
7394
|
-
options ? options.onPostpone : void 0
|
|
7836
|
+
reject
|
|
7395
7837
|
);
|
|
7396
|
-
|
|
7397
|
-
var signal = options.signal;
|
|
7398
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7399
|
-
else {
|
|
7400
|
-
var listener = function () {
|
|
7401
|
-
abort(request, signal.reason);
|
|
7402
|
-
signal.removeEventListener("abort", listener);
|
|
7403
|
-
};
|
|
7404
|
-
signal.addEventListener("abort", listener);
|
|
7405
|
-
}
|
|
7406
|
-
}
|
|
7838
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7407
7839
|
startWork(request);
|
|
7408
7840
|
});
|
|
7409
7841
|
};
|
|
7410
|
-
exports.version = "19.
|
|
7842
|
+
exports.version = "19.3.0";
|