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
|
@@ -32,6 +32,7 @@ var util = require("util"),
|
|
|
32
32
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
33
33
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
34
34
|
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
35
|
+
REACT_RECOVERABLE_TYPE = Symbol.for("react.recoverable"),
|
|
35
36
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
36
37
|
function getIteratorFn(maybeIterable) {
|
|
37
38
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -40,7 +41,8 @@ function getIteratorFn(maybeIterable) {
|
|
|
40
41
|
maybeIterable["@@iterator"];
|
|
41
42
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
42
43
|
}
|
|
43
|
-
var
|
|
44
|
+
var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
45
|
+
isArrayImpl = Array.isArray,
|
|
44
46
|
scheduleMicrotask = queueMicrotask;
|
|
45
47
|
function flushBuffered(destination) {
|
|
46
48
|
"function" === typeof destination.flush && destination.flush();
|
|
@@ -51,13 +53,13 @@ var currentView = null,
|
|
|
51
53
|
function writeChunk(destination, chunk) {
|
|
52
54
|
if ("string" === typeof chunk) {
|
|
53
55
|
if (0 !== chunk.length)
|
|
54
|
-
if (
|
|
56
|
+
if (4096 < 3 * chunk.length)
|
|
55
57
|
0 < writtenBytes &&
|
|
56
58
|
(writeToDestination(
|
|
57
59
|
destination,
|
|
58
60
|
currentView.subarray(0, writtenBytes)
|
|
59
61
|
),
|
|
60
|
-
(currentView = new Uint8Array(
|
|
62
|
+
(currentView = new Uint8Array(4096)),
|
|
61
63
|
(writtenBytes = 0)),
|
|
62
64
|
writeToDestination(destination, chunk);
|
|
63
65
|
else {
|
|
@@ -71,25 +73,25 @@ function writeChunk(destination, chunk) {
|
|
|
71
73
|
destination,
|
|
72
74
|
currentView.subarray(0, writtenBytes)
|
|
73
75
|
),
|
|
74
|
-
(currentView = new Uint8Array(
|
|
76
|
+
(currentView = new Uint8Array(4096)),
|
|
75
77
|
(writtenBytes = textEncoder.encodeInto(
|
|
76
78
|
chunk.slice(read),
|
|
77
79
|
currentView
|
|
78
80
|
).written));
|
|
79
|
-
|
|
81
|
+
4096 === writtenBytes &&
|
|
80
82
|
(writeToDestination(destination, currentView),
|
|
81
|
-
(currentView = new Uint8Array(
|
|
83
|
+
(currentView = new Uint8Array(4096)),
|
|
82
84
|
(writtenBytes = 0));
|
|
83
85
|
}
|
|
84
86
|
} else
|
|
85
87
|
0 !== chunk.byteLength &&
|
|
86
|
-
(
|
|
88
|
+
(4096 < chunk.byteLength
|
|
87
89
|
? (0 < writtenBytes &&
|
|
88
90
|
(writeToDestination(
|
|
89
91
|
destination,
|
|
90
92
|
currentView.subarray(0, writtenBytes)
|
|
91
93
|
),
|
|
92
|
-
(currentView = new Uint8Array(
|
|
94
|
+
(currentView = new Uint8Array(4096)),
|
|
93
95
|
(writtenBytes = 0)),
|
|
94
96
|
writeToDestination(destination, chunk))
|
|
95
97
|
: ((target = currentView.length - writtenBytes),
|
|
@@ -100,13 +102,13 @@ function writeChunk(destination, chunk) {
|
|
|
100
102
|
(writtenBytes += target),
|
|
101
103
|
writeToDestination(destination, currentView),
|
|
102
104
|
(chunk = chunk.subarray(target))),
|
|
103
|
-
(currentView = new Uint8Array(
|
|
105
|
+
(currentView = new Uint8Array(4096)),
|
|
104
106
|
(writtenBytes = 0)),
|
|
105
107
|
currentView.set(chunk, writtenBytes),
|
|
106
108
|
(writtenBytes += chunk.byteLength),
|
|
107
|
-
|
|
109
|
+
4096 === writtenBytes &&
|
|
108
110
|
(writeToDestination(destination, currentView),
|
|
109
|
-
(currentView = new Uint8Array(
|
|
111
|
+
(currentView = new Uint8Array(4096)),
|
|
110
112
|
(writtenBytes = 0))));
|
|
111
113
|
}
|
|
112
114
|
function writeToDestination(destination, view) {
|
|
@@ -195,6 +197,7 @@ var unitlessNumbers = new Set(
|
|
|
195
197
|
["markerEnd", "marker-end"],
|
|
196
198
|
["markerMid", "marker-mid"],
|
|
197
199
|
["markerStart", "marker-start"],
|
|
200
|
+
["maskType", "mask-type"],
|
|
198
201
|
["overlinePosition", "overline-position"],
|
|
199
202
|
["overlineThickness", "overline-thickness"],
|
|
200
203
|
["paintOrder", "paint-order"],
|
|
@@ -368,7 +371,15 @@ function createRenderState(
|
|
|
368
371
|
));
|
|
369
372
|
bootstrapScriptContent = [];
|
|
370
373
|
void 0 !== importMap &&
|
|
371
|
-
(bootstrapScriptContent.push(
|
|
374
|
+
(bootstrapScriptContent.push(
|
|
375
|
+
void 0 === externalRuntimeConfig
|
|
376
|
+
? importMapScriptStart
|
|
377
|
+
: stringToPrecomputedChunk(
|
|
378
|
+
'<script type="importmap" nonce="' +
|
|
379
|
+
escapeTextForBrowser(externalRuntimeConfig) +
|
|
380
|
+
'">'
|
|
381
|
+
)
|
|
382
|
+
),
|
|
372
383
|
bootstrapScriptContent.push(
|
|
373
384
|
("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer)
|
|
374
385
|
),
|
|
@@ -627,7 +638,8 @@ function getChildFormatContext(parentContext, type, props) {
|
|
|
627
638
|
}
|
|
628
639
|
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
|
|
629
640
|
? createFormatContext(2, null, subtreeScope, null)
|
|
630
|
-
: parentContext.
|
|
641
|
+
: null !== parentContext.viewTransition ||
|
|
642
|
+
parentContext.tagScope !== subtreeScope
|
|
631
643
|
? createFormatContext(
|
|
632
644
|
parentContext.insertionMode,
|
|
633
645
|
parentContext.selectedValue,
|
|
@@ -644,6 +656,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
|
644
656
|
enter: "none",
|
|
645
657
|
exit: "none",
|
|
646
658
|
share: parentViewTransition.update,
|
|
659
|
+
parentEnter: "none",
|
|
660
|
+
parentExit: "none",
|
|
647
661
|
name: parentViewTransition.autoName,
|
|
648
662
|
autoName: parentViewTransition.autoName,
|
|
649
663
|
nameIdx: 0
|
|
@@ -671,6 +685,11 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
|
671
685
|
resumableState
|
|
672
686
|
);
|
|
673
687
|
}
|
|
688
|
+
function makeId(resumableState, treeId, localId) {
|
|
689
|
+
resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
690
|
+
0 < localId && (resumableState += "H" + localId.toString(32));
|
|
691
|
+
return resumableState + "_";
|
|
692
|
+
}
|
|
674
693
|
var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
|
|
675
694
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
676
695
|
if ("" === text) return textEmbedded;
|
|
@@ -678,6 +697,26 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
|
678
697
|
target.push(escapeTextForBrowser(text));
|
|
679
698
|
return !0;
|
|
680
699
|
}
|
|
700
|
+
function pushViewTransitionAttributes(target, formatContext) {
|
|
701
|
+
formatContext = formatContext.viewTransition;
|
|
702
|
+
null !== formatContext &&
|
|
703
|
+
("auto" !== formatContext.name &&
|
|
704
|
+
(pushStringAttribute(
|
|
705
|
+
target,
|
|
706
|
+
"vt-name",
|
|
707
|
+
0 === formatContext.nameIdx
|
|
708
|
+
? formatContext.name
|
|
709
|
+
: formatContext.name + "_" + formatContext.nameIdx
|
|
710
|
+
),
|
|
711
|
+
formatContext.nameIdx++),
|
|
712
|
+
pushStringAttribute(target, "vt-update", formatContext.update),
|
|
713
|
+
"none" !== formatContext.enter &&
|
|
714
|
+
pushStringAttribute(target, "vt-enter", formatContext.enter),
|
|
715
|
+
"none" !== formatContext.exit &&
|
|
716
|
+
pushStringAttribute(target, "vt-exit", formatContext.exit),
|
|
717
|
+
"none" !== formatContext.share &&
|
|
718
|
+
pushStringAttribute(target, "vt-share", formatContext.share));
|
|
719
|
+
}
|
|
681
720
|
var styleNameCache = new Map(),
|
|
682
721
|
styleAttributeStart = stringToPrecomputedChunk(' style="'),
|
|
683
722
|
styleAssign = stringToPrecomputedChunk(":"),
|
|
@@ -917,6 +956,7 @@ function pushAttribute(target, name, value) {
|
|
|
917
956
|
case "async":
|
|
918
957
|
case "autoPlay":
|
|
919
958
|
case "controls":
|
|
959
|
+
case "credentialless":
|
|
920
960
|
case "default":
|
|
921
961
|
case "defer":
|
|
922
962
|
case "disabled":
|
|
@@ -1061,7 +1101,7 @@ function flattenOptionChildren(children) {
|
|
|
1061
1101
|
}
|
|
1062
1102
|
var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
|
|
1063
1103
|
formReplayingRuntimeScript = stringToPrecomputedChunk(
|
|
1064
|
-
'addEventListener("submit",function(a){if(!a.defaultPrevented){var
|
|
1104
|
+
'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))}});'
|
|
1065
1105
|
);
|
|
1066
1106
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
1067
1107
|
if (0 === (resumableState.instructions & 16)) {
|
|
@@ -1109,7 +1149,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
|
|
|
1109
1149
|
function styleReplacer(match, prefix, s, suffix) {
|
|
1110
1150
|
return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
|
|
1111
1151
|
}
|
|
1112
|
-
function pushSelfClosing(target, props, tag) {
|
|
1152
|
+
function pushSelfClosing(target, props, tag, formatContext) {
|
|
1113
1153
|
target.push(startChunkForTag(tag));
|
|
1114
1154
|
for (var propKey in props)
|
|
1115
1155
|
if (hasOwnProperty.call(props, propKey)) {
|
|
@@ -1126,6 +1166,7 @@ function pushSelfClosing(target, props, tag) {
|
|
|
1126
1166
|
pushAttribute(target, propKey, propValue);
|
|
1127
1167
|
}
|
|
1128
1168
|
}
|
|
1169
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1129
1170
|
target.push(endOfStartTagSelfClosing);
|
|
1130
1171
|
return null;
|
|
1131
1172
|
}
|
|
@@ -1195,7 +1236,7 @@ function pushScriptImpl(target, props) {
|
|
|
1195
1236
|
target.push(endChunkForTag("script"));
|
|
1196
1237
|
return null;
|
|
1197
1238
|
}
|
|
1198
|
-
function pushStartSingletonElement(target, props, tag) {
|
|
1239
|
+
function pushStartSingletonElement(target, props, tag, formatContext) {
|
|
1199
1240
|
target.push(startChunkForTag(tag));
|
|
1200
1241
|
var innerHTML = (tag = null),
|
|
1201
1242
|
propKey;
|
|
@@ -1214,11 +1255,12 @@ function pushStartSingletonElement(target, props, tag) {
|
|
|
1214
1255
|
pushAttribute(target, propKey, propValue);
|
|
1215
1256
|
}
|
|
1216
1257
|
}
|
|
1258
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1217
1259
|
target.push(endOfStartTag);
|
|
1218
1260
|
pushInnerHTML(target, innerHTML, tag);
|
|
1219
1261
|
return tag;
|
|
1220
1262
|
}
|
|
1221
|
-
function pushStartGenericElement(target, props, tag) {
|
|
1263
|
+
function pushStartGenericElement(target, props, tag, formatContext) {
|
|
1222
1264
|
target.push(startChunkForTag(tag));
|
|
1223
1265
|
var innerHTML = (tag = null),
|
|
1224
1266
|
propKey;
|
|
@@ -1237,6 +1279,7 @@ function pushStartGenericElement(target, props, tag) {
|
|
|
1237
1279
|
pushAttribute(target, propKey, propValue);
|
|
1238
1280
|
}
|
|
1239
1281
|
}
|
|
1282
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1240
1283
|
target.push(endOfStartTag);
|
|
1241
1284
|
pushInnerHTML(target, innerHTML, tag);
|
|
1242
1285
|
return "string" === typeof tag
|
|
@@ -1298,6 +1341,7 @@ function pushStartInstance(
|
|
|
1298
1341
|
pushAttribute(target$jscomp$0, propKey, propValue);
|
|
1299
1342
|
}
|
|
1300
1343
|
}
|
|
1344
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1301
1345
|
target$jscomp$0.push(endOfStartTag);
|
|
1302
1346
|
pushInnerHTML(target$jscomp$0, innerHTML, children);
|
|
1303
1347
|
if ("string" === typeof children) {
|
|
@@ -1336,6 +1380,7 @@ function pushStartInstance(
|
|
|
1336
1380
|
);
|
|
1337
1381
|
}
|
|
1338
1382
|
}
|
|
1383
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1339
1384
|
target$jscomp$0.push(endOfStartTag);
|
|
1340
1385
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
|
|
1341
1386
|
return children$jscomp$0;
|
|
@@ -1425,6 +1470,7 @@ function pushStartInstance(
|
|
|
1425
1470
|
null === value$jscomp$0 &&
|
|
1426
1471
|
null !== defaultValue &&
|
|
1427
1472
|
(value$jscomp$0 = defaultValue);
|
|
1473
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1428
1474
|
target$jscomp$0.push(endOfStartTag);
|
|
1429
1475
|
if (null != children$jscomp$2) {
|
|
1430
1476
|
if (null != value$jscomp$0)
|
|
@@ -1519,6 +1565,7 @@ function pushStartInstance(
|
|
|
1519
1565
|
? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
|
|
1520
1566
|
: null !== defaultValue$jscomp$0 &&
|
|
1521
1567
|
pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
|
|
1568
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1522
1569
|
target$jscomp$0.push(endOfStartTagSelfClosing);
|
|
1523
1570
|
null != formData &&
|
|
1524
1571
|
formData.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -1577,6 +1624,7 @@ function pushStartInstance(
|
|
|
1577
1624
|
formTarget$jscomp$0,
|
|
1578
1625
|
name$jscomp$0
|
|
1579
1626
|
);
|
|
1627
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1580
1628
|
target$jscomp$0.push(endOfStartTag);
|
|
1581
1629
|
null != formData$jscomp$0 &&
|
|
1582
1630
|
formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -1662,6 +1710,7 @@ function pushStartInstance(
|
|
|
1662
1710
|
pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
|
|
1663
1711
|
null != formTarget$jscomp$1 &&
|
|
1664
1712
|
pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
|
|
1713
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1665
1714
|
target$jscomp$0.push(endOfStartTag);
|
|
1666
1715
|
null !== formActionName &&
|
|
1667
1716
|
(target$jscomp$0.push(startHiddenInputChunk),
|
|
@@ -1695,6 +1744,7 @@ function pushStartInstance(
|
|
|
1695
1744
|
);
|
|
1696
1745
|
}
|
|
1697
1746
|
}
|
|
1747
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1698
1748
|
target$jscomp$0.push(endOfStartTag);
|
|
1699
1749
|
return null;
|
|
1700
1750
|
case "object":
|
|
@@ -1732,6 +1782,7 @@ function pushStartInstance(
|
|
|
1732
1782
|
);
|
|
1733
1783
|
}
|
|
1734
1784
|
}
|
|
1785
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1735
1786
|
target$jscomp$0.push(endOfStartTag);
|
|
1736
1787
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
1737
1788
|
if ("string" === typeof children$jscomp$5) {
|
|
@@ -2003,17 +2054,33 @@ function pushStartInstance(
|
|
|
2003
2054
|
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
|
2004
2055
|
target$jscomp$0,
|
|
2005
2056
|
props,
|
|
2006
|
-
"meta"
|
|
2057
|
+
"meta",
|
|
2058
|
+
formatContext
|
|
2007
2059
|
);
|
|
2008
2060
|
else
|
|
2009
2061
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2010
2062
|
(JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
|
|
2011
2063
|
? null
|
|
2012
2064
|
: "string" === typeof props.charSet
|
|
2013
|
-
? pushSelfClosing(
|
|
2065
|
+
? pushSelfClosing(
|
|
2066
|
+
renderState.charsetChunks,
|
|
2067
|
+
props,
|
|
2068
|
+
"meta",
|
|
2069
|
+
formatContext
|
|
2070
|
+
)
|
|
2014
2071
|
: "viewport" === props.name
|
|
2015
|
-
? pushSelfClosing(
|
|
2016
|
-
|
|
2072
|
+
? pushSelfClosing(
|
|
2073
|
+
renderState.viewportChunks,
|
|
2074
|
+
props,
|
|
2075
|
+
"meta",
|
|
2076
|
+
formatContext
|
|
2077
|
+
)
|
|
2078
|
+
: pushSelfClosing(
|
|
2079
|
+
renderState.hoistableChunks,
|
|
2080
|
+
props,
|
|
2081
|
+
"meta",
|
|
2082
|
+
formatContext
|
|
2083
|
+
));
|
|
2017
2084
|
return JSCompiler_inline_result$jscomp$7;
|
|
2018
2085
|
case "listing":
|
|
2019
2086
|
case "pre":
|
|
@@ -2040,6 +2107,7 @@ function pushStartInstance(
|
|
|
2040
2107
|
);
|
|
2041
2108
|
}
|
|
2042
2109
|
}
|
|
2110
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2043
2111
|
target$jscomp$0.push(endOfStartTag);
|
|
2044
2112
|
if (null != innerHTML$jscomp$7) {
|
|
2045
2113
|
if (null != children$jscomp$8)
|
|
@@ -2130,7 +2198,7 @@ function pushStartInstance(
|
|
|
2130
2198
|
nonce: props.nonce,
|
|
2131
2199
|
type: props.type,
|
|
2132
2200
|
fetchPriority: props.fetchPriority,
|
|
2133
|
-
referrerPolicy: props.
|
|
2201
|
+
referrerPolicy: props.referrerPolicy
|
|
2134
2202
|
})),
|
|
2135
2203
|
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
2136
2204
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
@@ -2156,7 +2224,7 @@ function pushStartInstance(
|
|
|
2156
2224
|
promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
|
|
2157
2225
|
}
|
|
2158
2226
|
}
|
|
2159
|
-
return pushSelfClosing(target$jscomp$0, props, "img");
|
|
2227
|
+
return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
|
|
2160
2228
|
case "base":
|
|
2161
2229
|
case "area":
|
|
2162
2230
|
case "br":
|
|
@@ -2168,7 +2236,7 @@ function pushStartInstance(
|
|
|
2168
2236
|
case "source":
|
|
2169
2237
|
case "track":
|
|
2170
2238
|
case "wbr":
|
|
2171
|
-
return pushSelfClosing(target$jscomp$0, props, type);
|
|
2239
|
+
return pushSelfClosing(target$jscomp$0, props, type, formatContext);
|
|
2172
2240
|
case "annotation-xml":
|
|
2173
2241
|
case "color-profile":
|
|
2174
2242
|
case "font-face":
|
|
@@ -2189,13 +2257,15 @@ function pushStartInstance(
|
|
|
2189
2257
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
2190
2258
|
preamble.headChunks,
|
|
2191
2259
|
props,
|
|
2192
|
-
"head"
|
|
2260
|
+
"head",
|
|
2261
|
+
formatContext
|
|
2193
2262
|
);
|
|
2194
2263
|
} else
|
|
2195
2264
|
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2196
2265
|
target$jscomp$0,
|
|
2197
2266
|
props,
|
|
2198
|
-
"head"
|
|
2267
|
+
"head",
|
|
2268
|
+
formatContext
|
|
2199
2269
|
);
|
|
2200
2270
|
return JSCompiler_inline_result$jscomp$9;
|
|
2201
2271
|
case "body":
|
|
@@ -2209,13 +2279,15 @@ function pushStartInstance(
|
|
|
2209
2279
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
2210
2280
|
preamble$jscomp$0.bodyChunks,
|
|
2211
2281
|
props,
|
|
2212
|
-
"body"
|
|
2282
|
+
"body",
|
|
2283
|
+
formatContext
|
|
2213
2284
|
);
|
|
2214
2285
|
} else
|
|
2215
2286
|
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2216
2287
|
target$jscomp$0,
|
|
2217
2288
|
props,
|
|
2218
|
-
"body"
|
|
2289
|
+
"body",
|
|
2290
|
+
formatContext
|
|
2219
2291
|
);
|
|
2220
2292
|
return JSCompiler_inline_result$jscomp$10;
|
|
2221
2293
|
case "html":
|
|
@@ -2229,13 +2301,15 @@ function pushStartInstance(
|
|
|
2229
2301
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
2230
2302
|
preamble$jscomp$1.htmlChunks,
|
|
2231
2303
|
props,
|
|
2232
|
-
"html"
|
|
2304
|
+
"html",
|
|
2305
|
+
formatContext
|
|
2233
2306
|
);
|
|
2234
2307
|
} else
|
|
2235
2308
|
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
2236
2309
|
target$jscomp$0,
|
|
2237
2310
|
props,
|
|
2238
|
-
"html"
|
|
2311
|
+
"html",
|
|
2312
|
+
formatContext
|
|
2239
2313
|
);
|
|
2240
2314
|
return JSCompiler_inline_result$jscomp$11;
|
|
2241
2315
|
default:
|
|
@@ -2285,12 +2359,13 @@ function pushStartInstance(
|
|
|
2285
2359
|
}
|
|
2286
2360
|
}
|
|
2287
2361
|
}
|
|
2362
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2288
2363
|
target$jscomp$0.push(endOfStartTag);
|
|
2289
2364
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
2290
2365
|
return children$jscomp$9;
|
|
2291
2366
|
}
|
|
2292
2367
|
}
|
|
2293
|
-
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
2368
|
+
return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
|
|
2294
2369
|
}
|
|
2295
2370
|
var endTagCache = new Map();
|
|
2296
2371
|
function endChunkForTag(tag) {
|
|
@@ -2490,14 +2565,15 @@ stringToPrecomputedChunk('<template data-rri="" data-bid="');
|
|
|
2490
2565
|
stringToPrecomputedChunk('" data-sid="');
|
|
2491
2566
|
stringToPrecomputedChunk('" data-sty="');
|
|
2492
2567
|
var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
|
|
2493
|
-
'$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())};'
|
|
2568
|
+
'$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())};'
|
|
2494
2569
|
),
|
|
2495
2570
|
clientRenderScript1Full = stringToPrecomputedChunk(
|
|
2496
|
-
'$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("'
|
|
2571
|
+
'$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("'
|
|
2497
2572
|
),
|
|
2498
2573
|
clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
|
|
2499
2574
|
clientRenderScript1A = stringToPrecomputedChunk('"'),
|
|
2500
2575
|
clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(","),
|
|
2576
|
+
clientRenderErrorScriptNull = stringToPrecomputedChunk("null"),
|
|
2501
2577
|
clientRenderScriptEnd = stringToPrecomputedChunk(")\x3c/script>");
|
|
2502
2578
|
stringToPrecomputedChunk('<template data-rxi="" data-bid="');
|
|
2503
2579
|
stringToPrecomputedChunk('" data-dgst="');
|
|
@@ -3013,7 +3089,7 @@ function preloadModule(href, options) {
|
|
|
3013
3089
|
break;
|
|
3014
3090
|
default:
|
|
3015
3091
|
if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
|
|
3016
|
-
var resources = resumableState.
|
|
3092
|
+
var resources = resumableState.moduleUnknownResources[as];
|
|
3017
3093
|
if (resources.hasOwnProperty(href)) return;
|
|
3018
3094
|
} else
|
|
3019
3095
|
(resources = {}),
|
|
@@ -3195,8 +3271,10 @@ function hoistHoistables(parentState, childState) {
|
|
|
3195
3271
|
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
|
3196
3272
|
childState.suspenseyImages && (parentState.suspenseyImages = !0);
|
|
3197
3273
|
}
|
|
3198
|
-
function hasSuspenseyContent(hoistableState) {
|
|
3199
|
-
return
|
|
3274
|
+
function hasSuspenseyContent(hoistableState, flushingInShell) {
|
|
3275
|
+
return flushingInShell
|
|
3276
|
+
? hoistableState.suspenseyImages
|
|
3277
|
+
: 0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages;
|
|
3200
3278
|
}
|
|
3201
3279
|
var bind = Function.prototype.bind,
|
|
3202
3280
|
requestStorage = new async_hooks.AsyncLocalStorage(),
|
|
@@ -3221,6 +3299,8 @@ function getComponentNameFromType(type) {
|
|
|
3221
3299
|
return "SuspenseList";
|
|
3222
3300
|
case REACT_ACTIVITY_TYPE:
|
|
3223
3301
|
return "Activity";
|
|
3302
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
3303
|
+
return "ViewTransition";
|
|
3224
3304
|
}
|
|
3225
3305
|
if ("object" === typeof type)
|
|
3226
3306
|
switch (type.$$typeof) {
|
|
@@ -3334,6 +3414,11 @@ var classComponentUpdater = {
|
|
|
3334
3414
|
enqueueForceUpdate: function () {}
|
|
3335
3415
|
},
|
|
3336
3416
|
emptyTreeContext = { id: 1, overflow: "" };
|
|
3417
|
+
function getTreeId(context) {
|
|
3418
|
+
var overflow = context.overflow;
|
|
3419
|
+
context = context.id;
|
|
3420
|
+
return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
|
|
3421
|
+
}
|
|
3337
3422
|
function pushTreeContext(baseContext, totalChildren, index) {
|
|
3338
3423
|
var baseIdWithLeadingBit = baseContext.id;
|
|
3339
3424
|
baseContext = baseContext.overflow;
|
|
@@ -3382,7 +3467,12 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
|
3382
3467
|
case "fulfilled":
|
|
3383
3468
|
return thenable.value;
|
|
3384
3469
|
case "rejected":
|
|
3385
|
-
|
|
3470
|
+
thenableState = thenable.reason;
|
|
3471
|
+
if (void 0 === thenableState && !("reason" in thenable))
|
|
3472
|
+
throw Error(
|
|
3473
|
+
"A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."
|
|
3474
|
+
);
|
|
3475
|
+
throw thenableState;
|
|
3386
3476
|
default:
|
|
3387
3477
|
"string" === typeof thenable.status
|
|
3388
3478
|
? thenable.then(noop, noop)
|
|
@@ -3440,8 +3530,50 @@ var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
|
3440
3530
|
actionStateCounter = 0,
|
|
3441
3531
|
actionStateMatchingIndex = -1,
|
|
3442
3532
|
thenableIndexCounter = 0,
|
|
3443
|
-
thenableState = null
|
|
3444
|
-
|
|
3533
|
+
thenableState = null;
|
|
3534
|
+
function createRecoverableError(recoverable) {
|
|
3535
|
+
recoverable = recoverable._reason;
|
|
3536
|
+
if ("function" === typeof recoverable)
|
|
3537
|
+
try {
|
|
3538
|
+
var initializedReason = recoverable();
|
|
3539
|
+
} catch ($jscomp$unused$catch) {
|
|
3540
|
+
initializedReason =
|
|
3541
|
+
"The reason for browser-only rendering could not be determined because its initializer threw.";
|
|
3542
|
+
}
|
|
3543
|
+
else initializedReason = recoverable;
|
|
3544
|
+
initializedReason = Error(
|
|
3545
|
+
"Browser-only rendering was requested by `browser()`.",
|
|
3546
|
+
void 0 === recoverable ? void 0 : { cause: initializedReason }
|
|
3547
|
+
);
|
|
3548
|
+
Object.defineProperty(initializedReason, REACT_RECOVERABLE_TYPE, {
|
|
3549
|
+
value: !0
|
|
3550
|
+
});
|
|
3551
|
+
return initializedReason;
|
|
3552
|
+
}
|
|
3553
|
+
function isRecoverableError(error) {
|
|
3554
|
+
return "object" !== typeof error || null === error
|
|
3555
|
+
? !1
|
|
3556
|
+
: !0 === error[REACT_RECOVERABLE_TYPE];
|
|
3557
|
+
}
|
|
3558
|
+
function cloneRecoverableErrorAsFatal(recoverableError) {
|
|
3559
|
+
var fatalRecoverableError = Error(
|
|
3560
|
+
"The server render could not complete because client rendering was requested outside a Suspense boundary. See this error's cause for additional details.",
|
|
3561
|
+
hasOwnProperty.call(recoverableError, "cause")
|
|
3562
|
+
? { cause: recoverableError.cause }
|
|
3563
|
+
: void 0
|
|
3564
|
+
);
|
|
3565
|
+
recoverableError = recoverableError.stack;
|
|
3566
|
+
if (void 0 !== recoverableError) {
|
|
3567
|
+
var frameStart = recoverableError.indexOf("\n");
|
|
3568
|
+
fatalRecoverableError.stack =
|
|
3569
|
+
fatalRecoverableError.name +
|
|
3570
|
+
": " +
|
|
3571
|
+
fatalRecoverableError.message +
|
|
3572
|
+
(-1 === frameStart ? "" : recoverableError.slice(frameStart));
|
|
3573
|
+
} else fatalRecoverableError.stack = void 0;
|
|
3574
|
+
return fatalRecoverableError;
|
|
3575
|
+
}
|
|
3576
|
+
var renderPhaseUpdates = null,
|
|
3445
3577
|
numberOfReRenders = 0;
|
|
3446
3578
|
function resolveCurrentlyRenderingComponent() {
|
|
3447
3579
|
if (null === currentlyRenderingComponent)
|
|
@@ -3651,6 +3783,8 @@ var HooksDispatcher = {
|
|
|
3651
3783
|
use: function (usable) {
|
|
3652
3784
|
if (null !== usable && "object" === typeof usable) {
|
|
3653
3785
|
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
3786
|
+
if (usable.$$typeof === REACT_RECOVERABLE_TYPE)
|
|
3787
|
+
throw createRecoverableError(usable);
|
|
3654
3788
|
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
|
3655
3789
|
}
|
|
3656
3790
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
@@ -3692,24 +3826,14 @@ var HooksDispatcher = {
|
|
|
3692
3826
|
return [!1, unsupportedStartTransition];
|
|
3693
3827
|
},
|
|
3694
3828
|
useId: function () {
|
|
3695
|
-
var
|
|
3696
|
-
|
|
3697
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3698
|
-
JSCompiler_inline_result =
|
|
3699
|
-
(
|
|
3700
|
-
JSCompiler_inline_result &
|
|
3701
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3702
|
-
).toString(32) + overflow;
|
|
3703
|
-
var resumableState = currentResumableState;
|
|
3829
|
+
var treeId = getTreeId(currentlyRenderingTask.treeContext),
|
|
3830
|
+
resumableState = currentResumableState;
|
|
3704
3831
|
if (null === resumableState)
|
|
3705
3832
|
throw Error(
|
|
3706
3833
|
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
3707
3834
|
);
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
"_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
|
|
3711
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3712
|
-
return JSCompiler_inline_result + "_";
|
|
3835
|
+
var localId = localIdCounter++;
|
|
3836
|
+
return makeId(resumableState, treeId, localId);
|
|
3713
3837
|
},
|
|
3714
3838
|
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3715
3839
|
if (void 0 === getServerSnapshot)
|
|
@@ -3804,7 +3928,26 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3804
3928
|
} catch (x$24) {
|
|
3805
3929
|
control = x$24;
|
|
3806
3930
|
}
|
|
3807
|
-
|
|
3931
|
+
Fake = !1;
|
|
3932
|
+
try {
|
|
3933
|
+
var prevProps = Object.getOwnPropertyDescriptor(
|
|
3934
|
+
fn.prototype,
|
|
3935
|
+
"props"
|
|
3936
|
+
);
|
|
3937
|
+
Object.defineProperty(fn.prototype, "props", {
|
|
3938
|
+
configurable: !0,
|
|
3939
|
+
set: function () {
|
|
3940
|
+
throw Error();
|
|
3941
|
+
}
|
|
3942
|
+
});
|
|
3943
|
+
Fake = !0;
|
|
3944
|
+
new fn();
|
|
3945
|
+
} finally {
|
|
3946
|
+
Fake &&
|
|
3947
|
+
(void 0 !== prevProps
|
|
3948
|
+
? Object.defineProperty(fn.prototype, "props", prevProps)
|
|
3949
|
+
: delete fn.prototype.props);
|
|
3950
|
+
}
|
|
3808
3951
|
}
|
|
3809
3952
|
} else {
|
|
3810
3953
|
try {
|
|
@@ -3966,13 +4109,34 @@ function describeComponentStackByType(type) {
|
|
|
3966
4109
|
return describeBuiltInComponentFrame("SuspenseList");
|
|
3967
4110
|
case REACT_SUSPENSE_TYPE:
|
|
3968
4111
|
return describeBuiltInComponentFrame("Suspense");
|
|
4112
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
4113
|
+
return describeBuiltInComponentFrame("ViewTransition");
|
|
3969
4114
|
}
|
|
3970
4115
|
return "";
|
|
3971
4116
|
}
|
|
4117
|
+
function getViewTransitionClassName(defaultClass, eventClass) {
|
|
4118
|
+
defaultClass =
|
|
4119
|
+
null == defaultClass || "string" === typeof defaultClass
|
|
4120
|
+
? defaultClass
|
|
4121
|
+
: defaultClass.default;
|
|
4122
|
+
eventClass =
|
|
4123
|
+
null == eventClass || "string" === typeof eventClass
|
|
4124
|
+
? eventClass
|
|
4125
|
+
: eventClass.default;
|
|
4126
|
+
return null == eventClass
|
|
4127
|
+
? "auto" === defaultClass
|
|
4128
|
+
? null
|
|
4129
|
+
: defaultClass
|
|
4130
|
+
: "auto" === eventClass
|
|
4131
|
+
? null
|
|
4132
|
+
: eventClass;
|
|
4133
|
+
}
|
|
3972
4134
|
function isEligibleForOutlining(request, boundary) {
|
|
3973
4135
|
return (
|
|
3974
|
-
(500 < boundary.byteSize ||
|
|
3975
|
-
|
|
4136
|
+
(500 < boundary.byteSize ||
|
|
4137
|
+
hasSuspenseyContent(boundary.contentState, !1) ||
|
|
4138
|
+
boundary.defer) &&
|
|
4139
|
+
null === boundary.preamble
|
|
3976
4140
|
);
|
|
3977
4141
|
}
|
|
3978
4142
|
function defaultErrorHandler(error) {
|
|
@@ -4012,11 +4176,11 @@ function RequestInstance(
|
|
|
4012
4176
|
rootFormatContext,
|
|
4013
4177
|
progressiveChunkSize,
|
|
4014
4178
|
onError,
|
|
4179
|
+
onBrowserBailout,
|
|
4015
4180
|
onAllReady,
|
|
4016
4181
|
onShellReady,
|
|
4017
4182
|
onShellError,
|
|
4018
4183
|
onFatalError,
|
|
4019
|
-
onPostpone,
|
|
4020
4184
|
formState
|
|
4021
4185
|
) {
|
|
4022
4186
|
var abortSet = new Set();
|
|
@@ -4029,21 +4193,24 @@ function RequestInstance(
|
|
|
4029
4193
|
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
4030
4194
|
this.status = 10;
|
|
4031
4195
|
this.fatalError = null;
|
|
4196
|
+
this.aborted = !1;
|
|
4032
4197
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4033
4198
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
4034
4199
|
this.byteSize = 0;
|
|
4035
4200
|
this.abortableTasks = abortSet;
|
|
4036
4201
|
this.pingedTasks = [];
|
|
4202
|
+
this.currentTask = null;
|
|
4037
4203
|
this.clientRenderedBoundaries = [];
|
|
4038
4204
|
this.completedBoundaries = [];
|
|
4039
4205
|
this.partialBoundaries = [];
|
|
4040
|
-
this.trackedPostpones = null;
|
|
4206
|
+
this.postponedState = this.trackedPostpones = null;
|
|
4041
4207
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
4042
|
-
this.
|
|
4208
|
+
this.onBrowserBailout = void 0 === onBrowserBailout ? noop : onBrowserBailout;
|
|
4043
4209
|
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
|
4044
4210
|
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
4045
4211
|
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
4046
4212
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
4213
|
+
this.renderLifetimeController = null;
|
|
4047
4214
|
this.formState = void 0 === formState ? null : formState;
|
|
4048
4215
|
}
|
|
4049
4216
|
function createRequest(
|
|
@@ -4053,11 +4220,11 @@ function createRequest(
|
|
|
4053
4220
|
rootFormatContext,
|
|
4054
4221
|
progressiveChunkSize,
|
|
4055
4222
|
onError,
|
|
4223
|
+
onBrowserBailout,
|
|
4056
4224
|
onAllReady,
|
|
4057
4225
|
onShellReady,
|
|
4058
4226
|
onShellError,
|
|
4059
4227
|
onFatalError,
|
|
4060
|
-
onPostpone,
|
|
4061
4228
|
formState
|
|
4062
4229
|
) {
|
|
4063
4230
|
resumableState = new RequestInstance(
|
|
@@ -4066,11 +4233,11 @@ function createRequest(
|
|
|
4066
4233
|
rootFormatContext,
|
|
4067
4234
|
progressiveChunkSize,
|
|
4068
4235
|
onError,
|
|
4236
|
+
onBrowserBailout,
|
|
4069
4237
|
onAllReady,
|
|
4070
4238
|
onShellReady,
|
|
4071
4239
|
onShellError,
|
|
4072
4240
|
onFatalError,
|
|
4073
|
-
onPostpone,
|
|
4074
4241
|
formState
|
|
4075
4242
|
);
|
|
4076
4243
|
renderState = createPendingSegment(
|
|
@@ -4110,11 +4277,11 @@ function createPrerenderRequest(
|
|
|
4110
4277
|
rootFormatContext,
|
|
4111
4278
|
progressiveChunkSize,
|
|
4112
4279
|
onError,
|
|
4280
|
+
onBrowserBailout,
|
|
4113
4281
|
onAllReady,
|
|
4114
4282
|
onShellReady,
|
|
4115
4283
|
onShellError,
|
|
4116
|
-
onFatalError
|
|
4117
|
-
onPostpone
|
|
4284
|
+
onFatalError
|
|
4118
4285
|
) {
|
|
4119
4286
|
children = createRequest(
|
|
4120
4287
|
children,
|
|
@@ -4123,11 +4290,11 @@ function createPrerenderRequest(
|
|
|
4123
4290
|
rootFormatContext,
|
|
4124
4291
|
progressiveChunkSize,
|
|
4125
4292
|
onError,
|
|
4293
|
+
onBrowserBailout,
|
|
4126
4294
|
onAllReady,
|
|
4127
4295
|
onShellReady,
|
|
4128
4296
|
onShellError,
|
|
4129
4297
|
onFatalError,
|
|
4130
|
-
onPostpone,
|
|
4131
4298
|
void 0
|
|
4132
4299
|
);
|
|
4133
4300
|
children.trackedPostpones = {
|
|
@@ -4142,11 +4309,11 @@ function resumeRequest(
|
|
|
4142
4309
|
postponedState,
|
|
4143
4310
|
renderState,
|
|
4144
4311
|
onError,
|
|
4312
|
+
onBrowserBailout,
|
|
4145
4313
|
onAllReady,
|
|
4146
4314
|
onShellReady,
|
|
4147
4315
|
onShellError,
|
|
4148
|
-
onFatalError
|
|
4149
|
-
onPostpone
|
|
4316
|
+
onFatalError
|
|
4150
4317
|
) {
|
|
4151
4318
|
renderState = new RequestInstance(
|
|
4152
4319
|
postponedState.resumableState,
|
|
@@ -4154,11 +4321,11 @@ function resumeRequest(
|
|
|
4154
4321
|
postponedState.rootFormatContext,
|
|
4155
4322
|
postponedState.progressiveChunkSize,
|
|
4156
4323
|
onError,
|
|
4324
|
+
onBrowserBailout,
|
|
4157
4325
|
onAllReady,
|
|
4158
4326
|
onShellReady,
|
|
4159
4327
|
onShellError,
|
|
4160
4328
|
onFatalError,
|
|
4161
|
-
onPostpone,
|
|
4162
4329
|
null
|
|
4163
4330
|
);
|
|
4164
4331
|
renderState.nextSegmentId = postponedState.nextSegmentId;
|
|
@@ -4223,22 +4390,22 @@ function resumeAndPrerenderRequest(
|
|
|
4223
4390
|
postponedState,
|
|
4224
4391
|
renderState,
|
|
4225
4392
|
onError,
|
|
4393
|
+
onBrowserBailout,
|
|
4226
4394
|
onAllReady,
|
|
4227
4395
|
onShellReady,
|
|
4228
4396
|
onShellError,
|
|
4229
|
-
onFatalError
|
|
4230
|
-
onPostpone
|
|
4397
|
+
onFatalError
|
|
4231
4398
|
) {
|
|
4232
4399
|
children = resumeRequest(
|
|
4233
4400
|
children,
|
|
4234
4401
|
postponedState,
|
|
4235
4402
|
renderState,
|
|
4236
4403
|
onError,
|
|
4404
|
+
onBrowserBailout,
|
|
4237
4405
|
onAllReady,
|
|
4238
4406
|
onShellReady,
|
|
4239
4407
|
onShellError,
|
|
4240
|
-
onFatalError
|
|
4241
|
-
onPostpone
|
|
4408
|
+
onFatalError
|
|
4242
4409
|
);
|
|
4243
4410
|
children.trackedPostpones = {
|
|
4244
4411
|
workingMap: new Map(),
|
|
@@ -4269,8 +4436,8 @@ function createSuspenseBoundary(
|
|
|
4269
4436
|
request,
|
|
4270
4437
|
row,
|
|
4271
4438
|
fallbackAbortableTasks,
|
|
4272
|
-
|
|
4273
|
-
|
|
4439
|
+
preamble,
|
|
4440
|
+
defer
|
|
4274
4441
|
) {
|
|
4275
4442
|
fallbackAbortableTasks = {
|
|
4276
4443
|
status: 0,
|
|
@@ -4280,22 +4447,21 @@ function createSuspenseBoundary(
|
|
|
4280
4447
|
row: row,
|
|
4281
4448
|
completedSegments: [],
|
|
4282
4449
|
byteSize: 0,
|
|
4450
|
+
defer: defer,
|
|
4283
4451
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
4284
4452
|
errorDigest: null,
|
|
4285
4453
|
contentState: createHoistableState(),
|
|
4286
4454
|
fallbackState: createHoistableState(),
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
trackedContentKeyPath: null,
|
|
4290
|
-
trackedFallbackNode: null
|
|
4455
|
+
preamble: preamble,
|
|
4456
|
+
tracked: null
|
|
4291
4457
|
};
|
|
4292
4458
|
null !== row &&
|
|
4293
4459
|
(row.pendingTasks++,
|
|
4294
|
-
(
|
|
4295
|
-
null !==
|
|
4460
|
+
(preamble = row.boundaries),
|
|
4461
|
+
null !== preamble &&
|
|
4296
4462
|
(request.allPendingTasks++,
|
|
4297
4463
|
fallbackAbortableTasks.pendingTasks++,
|
|
4298
|
-
|
|
4464
|
+
preamble.push(fallbackAbortableTasks)),
|
|
4299
4465
|
(request = row.inheritedHoistables),
|
|
4300
4466
|
null !== request &&
|
|
4301
4467
|
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
|
@@ -4327,8 +4493,16 @@ function createRenderTask(
|
|
|
4327
4493
|
replay: null,
|
|
4328
4494
|
node: node,
|
|
4329
4495
|
childIndex: childIndex,
|
|
4330
|
-
ping:
|
|
4331
|
-
|
|
4496
|
+
ping: {
|
|
4497
|
+
resolve: function () {
|
|
4498
|
+
return pingTask(request, task);
|
|
4499
|
+
},
|
|
4500
|
+
reject: function (error) {
|
|
4501
|
+
request.aborted
|
|
4502
|
+
? task.abortSet.delete(task) &&
|
|
4503
|
+
finishAbortedTask(task, request, error)
|
|
4504
|
+
: pingTask(request, task);
|
|
4505
|
+
}
|
|
4332
4506
|
},
|
|
4333
4507
|
blockedBoundary: blockedBoundary,
|
|
4334
4508
|
blockedSegment: blockedSegment,
|
|
@@ -4372,8 +4546,16 @@ function createReplayTask(
|
|
|
4372
4546
|
replay: replay,
|
|
4373
4547
|
node: node,
|
|
4374
4548
|
childIndex: childIndex,
|
|
4375
|
-
ping:
|
|
4376
|
-
|
|
4549
|
+
ping: {
|
|
4550
|
+
resolve: function () {
|
|
4551
|
+
return pingTask(request, task);
|
|
4552
|
+
},
|
|
4553
|
+
reject: function (error) {
|
|
4554
|
+
request.aborted
|
|
4555
|
+
? task.abortSet.delete(task) &&
|
|
4556
|
+
finishAbortedTask(task, request, error)
|
|
4557
|
+
: pingTask(request, task);
|
|
4558
|
+
}
|
|
4377
4559
|
},
|
|
4378
4560
|
blockedBoundary: blockedBoundary,
|
|
4379
4561
|
blockedSegment: null,
|
|
@@ -4456,18 +4638,22 @@ function getThrownInfo(node$jscomp$0) {
|
|
|
4456
4638
|
return errorInfo;
|
|
4457
4639
|
}
|
|
4458
4640
|
function logRecoverableError(request, error, errorInfo) {
|
|
4641
|
+
if (isRecoverableError(error))
|
|
4642
|
+
return (request = request.onBrowserBailout), request(error, errorInfo), "";
|
|
4459
4643
|
request = request.onError;
|
|
4460
4644
|
error = request(error, errorInfo);
|
|
4461
|
-
if (null == error || "string" === typeof error)
|
|
4645
|
+
if (null == error || "string" === typeof error)
|
|
4646
|
+
return "" === error ? void 0 : error;
|
|
4462
4647
|
}
|
|
4463
4648
|
function fatalError(request, error) {
|
|
4464
4649
|
var onShellError = request.onShellError,
|
|
4465
4650
|
onFatalError = request.onFatalError;
|
|
4466
|
-
onShellError(error);
|
|
4651
|
+
0 !== request.pendingRootTasks && onShellError(error);
|
|
4467
4652
|
onFatalError(error);
|
|
4653
|
+
endRenderLifetime(request);
|
|
4468
4654
|
null !== request.destination
|
|
4469
|
-
? ((request.status =
|
|
4470
|
-
: ((request.status =
|
|
4655
|
+
? ((request.status = 13), request.destination.destroy(error))
|
|
4656
|
+
: ((request.status = 12), request.aborted || (request.fatalError = error));
|
|
4471
4657
|
}
|
|
4472
4658
|
function finishSuspenseListRow(request, row) {
|
|
4473
4659
|
unblockSuspenseListRow(request, row.next, row.hoistables);
|
|
@@ -4587,43 +4773,46 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
4587
4773
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4588
4774
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4589
4775
|
else {
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
for (
|
|
4594
|
-
|
|
4776
|
+
resumeSlots = task.blockedSegment;
|
|
4777
|
+
n = resumeSlots.children.length;
|
|
4778
|
+
i = resumeSlots.chunks.length;
|
|
4779
|
+
for (node = 0; node < keyPath; node++) {
|
|
4780
|
+
resumeSegmentID =
|
|
4781
|
+
"unstable_legacy-backwards" === revealOrder ? keyPath - 1 - node : node;
|
|
4782
|
+
var node$40 = rows[resumeSegmentID];
|
|
4595
4783
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
4596
4784
|
previousSuspenseListRow
|
|
4597
4785
|
);
|
|
4598
|
-
task.treeContext = pushTreeContext(
|
|
4599
|
-
|
|
4786
|
+
task.treeContext = pushTreeContext(
|
|
4787
|
+
prevTreeContext,
|
|
4788
|
+
keyPath,
|
|
4789
|
+
resumeSegmentID
|
|
4790
|
+
);
|
|
4791
|
+
var newSegment = createPendingSegment(
|
|
4600
4792
|
request,
|
|
4601
|
-
|
|
4793
|
+
i,
|
|
4602
4794
|
null,
|
|
4603
4795
|
task.formatContext,
|
|
4604
|
-
0 ===
|
|
4796
|
+
0 === resumeSegmentID ? resumeSlots.lastPushedText : !0,
|
|
4605
4797
|
!0
|
|
4606
4798
|
);
|
|
4607
|
-
|
|
4608
|
-
task.blockedSegment =
|
|
4799
|
+
resumeSlots.children.splice(n, 0, newSegment);
|
|
4800
|
+
task.blockedSegment = newSegment;
|
|
4609
4801
|
try {
|
|
4610
|
-
renderNode(request, task, node,
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
(
|
|
4615
|
-
finishedSegment(request, task.blockedBoundary,
|
|
4802
|
+
renderNode(request, task, node$40, resumeSegmentID),
|
|
4803
|
+
newSegment.lastPushedText &&
|
|
4804
|
+
newSegment.textEmbedded &&
|
|
4805
|
+
newSegment.chunks.push(textSeparator),
|
|
4806
|
+
(newSegment.status = 1),
|
|
4807
|
+
finishedSegment(request, task.blockedBoundary, newSegment),
|
|
4616
4808
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
4617
4809
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
4618
4810
|
} catch (thrownValue) {
|
|
4619
|
-
throw (
|
|
4620
|
-
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
|
4621
|
-
thrownValue)
|
|
4622
|
-
);
|
|
4811
|
+
throw ((newSegment.status = request.aborted ? 3 : 4), thrownValue);
|
|
4623
4812
|
}
|
|
4624
4813
|
}
|
|
4625
|
-
task.blockedSegment =
|
|
4626
|
-
|
|
4814
|
+
task.blockedSegment = resumeSlots;
|
|
4815
|
+
resumeSlots.lastPushedText = !1;
|
|
4627
4816
|
}
|
|
4628
4817
|
null !== prevRow &&
|
|
4629
4818
|
null !== previousSuspenseListRow &&
|
|
@@ -4700,113 +4889,143 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4700
4889
|
var defaultProps = type.defaultProps;
|
|
4701
4890
|
if (defaultProps) {
|
|
4702
4891
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
4703
|
-
for (var propName$
|
|
4704
|
-
void 0 === newProps[propName$
|
|
4705
|
-
(newProps[propName$
|
|
4892
|
+
for (var propName$45 in defaultProps)
|
|
4893
|
+
void 0 === newProps[propName$45] &&
|
|
4894
|
+
(newProps[propName$45] = defaultProps[propName$45]);
|
|
4706
4895
|
}
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
"object" === typeof
|
|
4711
|
-
null !==
|
|
4712
|
-
(
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4896
|
+
var JSCompiler_inline_result = newProps;
|
|
4897
|
+
var context = emptyContextObject,
|
|
4898
|
+
contextType = type.contextType;
|
|
4899
|
+
"object" === typeof contextType &&
|
|
4900
|
+
null !== contextType &&
|
|
4901
|
+
(context = contextType._currentValue);
|
|
4902
|
+
var JSCompiler_inline_result$jscomp$0 = new type(
|
|
4903
|
+
JSCompiler_inline_result,
|
|
4904
|
+
context
|
|
4905
|
+
);
|
|
4906
|
+
var initialState =
|
|
4907
|
+
void 0 !== JSCompiler_inline_result$jscomp$0.state
|
|
4908
|
+
? JSCompiler_inline_result$jscomp$0.state
|
|
4909
|
+
: null;
|
|
4910
|
+
JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
|
|
4911
|
+
JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
|
|
4912
|
+
JSCompiler_inline_result$jscomp$0.state = initialState;
|
|
4913
|
+
var internalInstance = { queue: [], replace: !1 };
|
|
4914
|
+
JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
|
|
4915
|
+
var contextType$jscomp$0 = type.contextType;
|
|
4916
|
+
JSCompiler_inline_result$jscomp$0.context =
|
|
4917
|
+
"object" === typeof contextType$jscomp$0 &&
|
|
4918
|
+
null !== contextType$jscomp$0
|
|
4919
|
+
? contextType$jscomp$0._currentValue
|
|
4724
4920
|
: emptyContextObject;
|
|
4725
|
-
|
|
4726
|
-
"function" === typeof
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4921
|
+
var getDerivedStateFromProps = type.getDerivedStateFromProps;
|
|
4922
|
+
if ("function" === typeof getDerivedStateFromProps) {
|
|
4923
|
+
var partialState = getDerivedStateFromProps(
|
|
4924
|
+
JSCompiler_inline_result,
|
|
4925
|
+
initialState
|
|
4926
|
+
);
|
|
4927
|
+
var JSCompiler_inline_result$jscomp$1 =
|
|
4928
|
+
null === partialState || void 0 === partialState
|
|
4730
4929
|
? initialState
|
|
4731
|
-
: assign({}, initialState,
|
|
4732
|
-
|
|
4930
|
+
: assign({}, initialState, partialState);
|
|
4931
|
+
JSCompiler_inline_result$jscomp$0.state =
|
|
4932
|
+
JSCompiler_inline_result$jscomp$1;
|
|
4933
|
+
}
|
|
4733
4934
|
if (
|
|
4734
4935
|
"function" !== typeof type.getDerivedStateFromProps &&
|
|
4735
|
-
"function" !==
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4936
|
+
"function" !==
|
|
4937
|
+
typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
|
|
4938
|
+
("function" ===
|
|
4939
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
|
|
4940
|
+
"function" ===
|
|
4941
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
|
|
4942
|
+
) {
|
|
4943
|
+
var oldState = JSCompiler_inline_result$jscomp$0.state;
|
|
4944
|
+
"function" ===
|
|
4945
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
|
|
4946
|
+
JSCompiler_inline_result$jscomp$0.componentWillMount();
|
|
4947
|
+
"function" ===
|
|
4948
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
|
|
4949
|
+
JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
|
|
4950
|
+
oldState !== JSCompiler_inline_result$jscomp$0.state &&
|
|
4951
|
+
classComponentUpdater.enqueueReplaceState(
|
|
4952
|
+
JSCompiler_inline_result$jscomp$0,
|
|
4953
|
+
JSCompiler_inline_result$jscomp$0.state,
|
|
4954
|
+
null
|
|
4955
|
+
);
|
|
4739
4956
|
if (
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
null
|
|
4750
|
-
),
|
|
4751
|
-
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
|
4752
|
-
)
|
|
4753
|
-
if (
|
|
4754
|
-
((type = defaultProps.queue),
|
|
4755
|
-
(ref = defaultProps.replace),
|
|
4756
|
-
(defaultProps.queue = null),
|
|
4757
|
-
(defaultProps.replace = !1),
|
|
4758
|
-
ref && 1 === type.length)
|
|
4759
|
-
)
|
|
4760
|
-
newProps.state = type[0];
|
|
4957
|
+
null !== internalInstance.queue &&
|
|
4958
|
+
0 < internalInstance.queue.length
|
|
4959
|
+
) {
|
|
4960
|
+
var oldQueue = internalInstance.queue,
|
|
4961
|
+
oldReplace = internalInstance.replace;
|
|
4962
|
+
internalInstance.queue = null;
|
|
4963
|
+
internalInstance.replace = !1;
|
|
4964
|
+
if (oldReplace && 1 === oldQueue.length)
|
|
4965
|
+
JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
|
|
4761
4966
|
else {
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4967
|
+
for (
|
|
4968
|
+
var nextState = oldReplace
|
|
4969
|
+
? oldQueue[0]
|
|
4970
|
+
: JSCompiler_inline_result$jscomp$0.state,
|
|
4971
|
+
dontMutate = !0,
|
|
4972
|
+
i = oldReplace ? 1 : 0;
|
|
4973
|
+
i < oldQueue.length;
|
|
4974
|
+
i++
|
|
4975
|
+
) {
|
|
4976
|
+
var partial = oldQueue[i],
|
|
4977
|
+
partialState$jscomp$0 =
|
|
4978
|
+
"function" === typeof partial
|
|
4979
|
+
? partial.call(
|
|
4980
|
+
JSCompiler_inline_result$jscomp$0,
|
|
4981
|
+
nextState,
|
|
4982
|
+
JSCompiler_inline_result,
|
|
4983
|
+
void 0
|
|
4984
|
+
)
|
|
4985
|
+
: partial;
|
|
4986
|
+
null != partialState$jscomp$0 &&
|
|
4987
|
+
(dontMutate
|
|
4988
|
+
? ((dontMutate = !1),
|
|
4989
|
+
(nextState = assign({}, nextState, partialState$jscomp$0)))
|
|
4990
|
+
: assign(nextState, partialState$jscomp$0));
|
|
4991
|
+
}
|
|
4992
|
+
JSCompiler_inline_result$jscomp$0.state = nextState;
|
|
4776
4993
|
}
|
|
4777
|
-
else
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4994
|
+
} else internalInstance.queue = null;
|
|
4995
|
+
}
|
|
4996
|
+
var nextChildren = JSCompiler_inline_result$jscomp$0.render();
|
|
4997
|
+
if (request.aborted) throw null;
|
|
4998
|
+
var prevKeyPath = task.keyPath;
|
|
4781
4999
|
task.keyPath = keyPath;
|
|
4782
|
-
renderNodeDestructive(request, task,
|
|
4783
|
-
task.keyPath =
|
|
5000
|
+
renderNodeDestructive(request, task, nextChildren, -1);
|
|
5001
|
+
task.keyPath = prevKeyPath;
|
|
4784
5002
|
} else {
|
|
4785
|
-
|
|
4786
|
-
if (
|
|
5003
|
+
var value = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
5004
|
+
if (request.aborted) throw null;
|
|
4787
5005
|
finishFunctionComponent(
|
|
4788
5006
|
request,
|
|
4789
5007
|
task,
|
|
4790
5008
|
keyPath,
|
|
4791
|
-
|
|
5009
|
+
value,
|
|
4792
5010
|
0 !== localIdCounter,
|
|
4793
5011
|
actionStateCounter,
|
|
4794
5012
|
actionStateMatchingIndex
|
|
4795
5013
|
);
|
|
4796
5014
|
}
|
|
4797
|
-
else if ("string" === typeof type)
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
5015
|
+
else if ("string" === typeof type) {
|
|
5016
|
+
var segment = task.blockedSegment;
|
|
5017
|
+
if (null === segment) {
|
|
5018
|
+
var children = props.children,
|
|
5019
|
+
prevContext = task.formatContext,
|
|
5020
|
+
prevKeyPath$jscomp$0 = task.keyPath;
|
|
5021
|
+
task.formatContext = getChildFormatContext(prevContext, type, props);
|
|
5022
|
+
task.keyPath = keyPath;
|
|
5023
|
+
renderNode(request, task, children, -1);
|
|
5024
|
+
task.formatContext = prevContext;
|
|
5025
|
+
task.keyPath = prevKeyPath$jscomp$0;
|
|
5026
|
+
} else {
|
|
5027
|
+
var children$42 = pushStartInstance(
|
|
5028
|
+
segment.chunks,
|
|
4810
5029
|
type,
|
|
4811
5030
|
props,
|
|
4812
5031
|
request.resumableState,
|
|
@@ -4814,18 +5033,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4814
5033
|
task.blockedPreamble,
|
|
4815
5034
|
task.hoistableState,
|
|
4816
5035
|
task.formatContext,
|
|
4817
|
-
|
|
5036
|
+
segment.lastPushedText
|
|
4818
5037
|
);
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
5038
|
+
segment.lastPushedText = !1;
|
|
5039
|
+
var prevContext$43 = task.formatContext,
|
|
5040
|
+
prevKeyPath$44 = task.keyPath;
|
|
4822
5041
|
task.keyPath = keyPath;
|
|
4823
5042
|
if (
|
|
4824
5043
|
3 ===
|
|
4825
|
-
(task.formatContext = getChildFormatContext(
|
|
4826
|
-
|
|
5044
|
+
(task.formatContext = getChildFormatContext(
|
|
5045
|
+
prevContext$43,
|
|
5046
|
+
type,
|
|
5047
|
+
props
|
|
5048
|
+
)).insertionMode
|
|
4827
5049
|
) {
|
|
4828
|
-
|
|
5050
|
+
var preambleSegment = createPendingSegment(
|
|
4829
5051
|
request,
|
|
4830
5052
|
0,
|
|
4831
5053
|
null,
|
|
@@ -4833,25 +5055,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4833
5055
|
!1,
|
|
4834
5056
|
!1
|
|
4835
5057
|
);
|
|
4836
|
-
|
|
4837
|
-
task.blockedSegment =
|
|
5058
|
+
segment.preambleChildren.push(preambleSegment);
|
|
5059
|
+
task.blockedSegment = preambleSegment;
|
|
4838
5060
|
try {
|
|
4839
|
-
(
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
(
|
|
4845
|
-
finishedSegment(request, task.blockedBoundary, keyPath);
|
|
5061
|
+
renderNode(request, task, children$42, -1),
|
|
5062
|
+
preambleSegment.lastPushedText &&
|
|
5063
|
+
preambleSegment.textEmbedded &&
|
|
5064
|
+
preambleSegment.chunks.push(textSeparator),
|
|
5065
|
+
(preambleSegment.status = 1),
|
|
5066
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
|
4846
5067
|
} finally {
|
|
4847
|
-
task.blockedSegment =
|
|
5068
|
+
task.blockedSegment = segment;
|
|
4848
5069
|
}
|
|
4849
|
-
} else renderNode(request, task,
|
|
4850
|
-
task.formatContext =
|
|
4851
|
-
task.keyPath =
|
|
5070
|
+
} else renderNode(request, task, children$42, -1);
|
|
5071
|
+
task.formatContext = prevContext$43;
|
|
5072
|
+
task.keyPath = prevKeyPath$44;
|
|
4852
5073
|
a: {
|
|
4853
|
-
|
|
4854
|
-
|
|
5074
|
+
var target = segment.chunks,
|
|
5075
|
+
resumableState = request.resumableState;
|
|
4855
5076
|
switch (type) {
|
|
4856
5077
|
case "title":
|
|
4857
5078
|
case "style":
|
|
@@ -4873,157 +5094,239 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4873
5094
|
case "wbr":
|
|
4874
5095
|
break a;
|
|
4875
5096
|
case "body":
|
|
4876
|
-
if (1 >=
|
|
4877
|
-
|
|
5097
|
+
if (1 >= prevContext$43.insertionMode) {
|
|
5098
|
+
resumableState.hasBody = !0;
|
|
4878
5099
|
break a;
|
|
4879
5100
|
}
|
|
4880
5101
|
break;
|
|
4881
5102
|
case "html":
|
|
4882
|
-
if (0 ===
|
|
4883
|
-
|
|
5103
|
+
if (0 === prevContext$43.insertionMode) {
|
|
5104
|
+
resumableState.hasHtml = !0;
|
|
4884
5105
|
break a;
|
|
4885
5106
|
}
|
|
4886
5107
|
break;
|
|
4887
5108
|
case "head":
|
|
4888
|
-
if (1 >=
|
|
5109
|
+
if (1 >= prevContext$43.insertionMode) break a;
|
|
4889
5110
|
}
|
|
4890
|
-
|
|
5111
|
+
target.push(endChunkForTag(type));
|
|
4891
5112
|
}
|
|
4892
|
-
|
|
5113
|
+
segment.lastPushedText = !1;
|
|
4893
5114
|
}
|
|
4894
|
-
else {
|
|
5115
|
+
} else {
|
|
4895
5116
|
switch (type) {
|
|
4896
5117
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
4897
5118
|
case REACT_STRICT_MODE_TYPE:
|
|
4898
5119
|
case REACT_PROFILER_TYPE:
|
|
4899
5120
|
case REACT_FRAGMENT_TYPE:
|
|
4900
|
-
|
|
5121
|
+
var prevKeyPath$jscomp$1 = task.keyPath;
|
|
4901
5122
|
task.keyPath = keyPath;
|
|
4902
5123
|
renderNodeDestructive(request, task, props.children, -1);
|
|
4903
|
-
task.keyPath =
|
|
5124
|
+
task.keyPath = prevKeyPath$jscomp$1;
|
|
4904
5125
|
return;
|
|
4905
5126
|
case REACT_ACTIVITY_TYPE:
|
|
4906
|
-
|
|
4907
|
-
null ===
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
renderNode(request, task, props.children, -1)
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
5127
|
+
var segment$jscomp$0 = task.blockedSegment;
|
|
5128
|
+
if (null === segment$jscomp$0) {
|
|
5129
|
+
if ("hidden" !== props.mode) {
|
|
5130
|
+
var prevKeyPath$jscomp$2 = task.keyPath;
|
|
5131
|
+
task.keyPath = keyPath;
|
|
5132
|
+
renderNode(request, task, props.children, -1);
|
|
5133
|
+
task.keyPath = prevKeyPath$jscomp$2;
|
|
5134
|
+
}
|
|
5135
|
+
} else if ("hidden" !== props.mode) {
|
|
5136
|
+
segment$jscomp$0.chunks.push(startActivityBoundary);
|
|
5137
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5138
|
+
var prevKeyPath$47 = task.keyPath;
|
|
5139
|
+
task.keyPath = keyPath;
|
|
5140
|
+
renderNode(request, task, props.children, -1);
|
|
5141
|
+
task.keyPath = prevKeyPath$47;
|
|
5142
|
+
segment$jscomp$0.chunks.push(endActivityBoundary);
|
|
5143
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5144
|
+
}
|
|
4922
5145
|
return;
|
|
4923
5146
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
4924
5147
|
a: {
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
if (
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
5148
|
+
var children$jscomp$0 = props.children,
|
|
5149
|
+
revealOrder = props.revealOrder;
|
|
5150
|
+
if ("independent" !== revealOrder && "together" !== revealOrder) {
|
|
5151
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
5152
|
+
renderSuspenseListRows(
|
|
5153
|
+
request,
|
|
5154
|
+
task,
|
|
5155
|
+
keyPath,
|
|
5156
|
+
children$jscomp$0,
|
|
5157
|
+
revealOrder
|
|
5158
|
+
);
|
|
4934
5159
|
break a;
|
|
4935
5160
|
}
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
5161
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
5162
|
+
if (iteratorFn) {
|
|
5163
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
5164
|
+
if (iterator) {
|
|
5165
|
+
var step = iterator.next();
|
|
5166
|
+
if (!step.done) {
|
|
5167
|
+
do step = iterator.next();
|
|
5168
|
+
while (!step.done);
|
|
5169
|
+
renderSuspenseListRows(
|
|
5170
|
+
request,
|
|
5171
|
+
task,
|
|
5172
|
+
keyPath,
|
|
5173
|
+
children$jscomp$0,
|
|
5174
|
+
revealOrder
|
|
5175
|
+
);
|
|
4943
5176
|
}
|
|
4944
5177
|
break a;
|
|
4945
5178
|
}
|
|
5179
|
+
}
|
|
5180
|
+
}
|
|
5181
|
+
if ("together" === revealOrder) {
|
|
5182
|
+
var prevKeyPath$41 = task.keyPath,
|
|
5183
|
+
prevRow = task.row,
|
|
5184
|
+
newRow = (task.row = createSuspenseListRow(null));
|
|
5185
|
+
newRow.boundaries = [];
|
|
5186
|
+
newRow.together = !0;
|
|
5187
|
+
task.keyPath = keyPath;
|
|
5188
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5189
|
+
0 === --newRow.pendingTasks &&
|
|
5190
|
+
finishSuspenseListRow(request, newRow);
|
|
5191
|
+
task.keyPath = prevKeyPath$41;
|
|
5192
|
+
task.row = prevRow;
|
|
5193
|
+
null !== prevRow &&
|
|
5194
|
+
0 < newRow.pendingTasks &&
|
|
5195
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
|
5196
|
+
} else {
|
|
5197
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
5198
|
+
task.keyPath = keyPath;
|
|
5199
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5200
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
4946
5201
|
}
|
|
4947
|
-
"together" === props
|
|
4948
|
-
? ((props = task.keyPath),
|
|
4949
|
-
(newProps = task.row),
|
|
4950
|
-
(defaultProps = task.row = createSuspenseListRow(null)),
|
|
4951
|
-
(defaultProps.boundaries = []),
|
|
4952
|
-
(defaultProps.together = !0),
|
|
4953
|
-
(task.keyPath = keyPath),
|
|
4954
|
-
renderNodeDestructive(request, task, type, -1),
|
|
4955
|
-
0 === --defaultProps.pendingTasks &&
|
|
4956
|
-
finishSuspenseListRow(request, defaultProps),
|
|
4957
|
-
(task.keyPath = props),
|
|
4958
|
-
(task.row = newProps),
|
|
4959
|
-
null !== newProps &&
|
|
4960
|
-
0 < defaultProps.pendingTasks &&
|
|
4961
|
-
(newProps.pendingTasks++, (defaultProps.next = newProps)))
|
|
4962
|
-
: ((props = task.keyPath),
|
|
4963
|
-
(task.keyPath = keyPath),
|
|
4964
|
-
renderNodeDestructive(request, task, type, -1),
|
|
4965
|
-
(task.keyPath = props));
|
|
4966
5202
|
}
|
|
4967
5203
|
return;
|
|
4968
5204
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
5205
|
+
var prevContext$jscomp$0 = task.formatContext,
|
|
5206
|
+
prevKeyPath$jscomp$4 = task.keyPath;
|
|
5207
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
5208
|
+
if (null != props.name && "auto" !== props.name)
|
|
5209
|
+
var JSCompiler_inline_result$jscomp$2 = props.name;
|
|
5210
|
+
else {
|
|
5211
|
+
var treeId = getTreeId(task.treeContext);
|
|
5212
|
+
JSCompiler_inline_result$jscomp$2 = makeId(
|
|
5213
|
+
resumableState$jscomp$0,
|
|
5214
|
+
treeId,
|
|
5215
|
+
0
|
|
5216
|
+
);
|
|
5217
|
+
}
|
|
5218
|
+
var autoName = JSCompiler_inline_result$jscomp$2,
|
|
5219
|
+
resumableState$jscomp$1 = request.resumableState,
|
|
5220
|
+
update = getViewTransitionClassName(props.default, props.update),
|
|
5221
|
+
enter = getViewTransitionClassName(props.default, props.enter),
|
|
5222
|
+
exit = getViewTransitionClassName(props.default, props.exit),
|
|
5223
|
+
share = getViewTransitionClassName(props.default, props.share),
|
|
5224
|
+
name = props.name;
|
|
5225
|
+
null == update && (update = "auto");
|
|
5226
|
+
null == enter && (enter = "auto");
|
|
5227
|
+
null == exit && (exit = "auto");
|
|
5228
|
+
if (null == name) {
|
|
5229
|
+
var parentViewTransition = prevContext$jscomp$0.viewTransition;
|
|
5230
|
+
null !== parentViewTransition
|
|
5231
|
+
? ((name = parentViewTransition.name),
|
|
5232
|
+
(share = parentViewTransition.share))
|
|
5233
|
+
: ((name = "auto"), (share = "none"));
|
|
5234
|
+
} else
|
|
5235
|
+
null == share && (share = "auto"),
|
|
5236
|
+
prevContext$jscomp$0.tagScope & 4 &&
|
|
5237
|
+
(resumableState$jscomp$1.instructions |= 128);
|
|
5238
|
+
prevContext$jscomp$0.tagScope & 8
|
|
5239
|
+
? (resumableState$jscomp$1.instructions |= 128)
|
|
5240
|
+
: (exit = "none");
|
|
5241
|
+
prevContext$jscomp$0.tagScope & 16
|
|
5242
|
+
? (resumableState$jscomp$1.instructions |= 128)
|
|
5243
|
+
: (enter = "none");
|
|
5244
|
+
var viewTransition = {
|
|
5245
|
+
update: update,
|
|
5246
|
+
enter: enter,
|
|
5247
|
+
exit: exit,
|
|
5248
|
+
share: share,
|
|
5249
|
+
parentEnter: "none",
|
|
5250
|
+
parentExit: "none",
|
|
5251
|
+
name: name,
|
|
5252
|
+
autoName: autoName,
|
|
5253
|
+
nameIdx: 0
|
|
5254
|
+
},
|
|
5255
|
+
subtreeScope = prevContext$jscomp$0.tagScope & -25;
|
|
5256
|
+
subtreeScope =
|
|
5257
|
+
"none" !== update ? subtreeScope | 32 : subtreeScope & -33;
|
|
5258
|
+
"none" !== enter && (subtreeScope |= 64);
|
|
5259
|
+
var JSCompiler_inline_result$jscomp$3 = createFormatContext(
|
|
5260
|
+
prevContext$jscomp$0.insertionMode,
|
|
5261
|
+
prevContext$jscomp$0.selectedValue,
|
|
5262
|
+
subtreeScope,
|
|
5263
|
+
viewTransition
|
|
5264
|
+
);
|
|
5265
|
+
task.formatContext = JSCompiler_inline_result$jscomp$3;
|
|
5266
|
+
task.keyPath = keyPath;
|
|
5267
|
+
if (null != props.name && "auto" !== props.name)
|
|
5268
|
+
renderNodeDestructive(request, task, props.children, -1);
|
|
5269
|
+
else {
|
|
5270
|
+
var prevTreeContext = task.treeContext;
|
|
5271
|
+
task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
|
|
5272
|
+
renderNode(request, task, props.children, -1);
|
|
5273
|
+
task.treeContext = prevTreeContext;
|
|
5274
|
+
}
|
|
5275
|
+
task.formatContext = prevContext$jscomp$0;
|
|
5276
|
+
task.keyPath = prevKeyPath$jscomp$4;
|
|
5277
|
+
return;
|
|
4969
5278
|
case REACT_SCOPE_TYPE:
|
|
4970
5279
|
throw Error("ReactDOMServer does not yet support scope components.");
|
|
4971
5280
|
case REACT_SUSPENSE_TYPE:
|
|
4972
5281
|
a: if (null !== task.replay) {
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
5282
|
+
var prevKeyPath$27 = task.keyPath,
|
|
5283
|
+
prevContext$28 = task.formatContext,
|
|
5284
|
+
prevRow$29 = task.row;
|
|
4976
5285
|
task.keyPath = keyPath;
|
|
4977
5286
|
task.formatContext = getSuspenseContentFormatContext(
|
|
4978
5287
|
request.resumableState,
|
|
4979
|
-
|
|
5288
|
+
prevContext$28
|
|
4980
5289
|
);
|
|
4981
5290
|
task.row = null;
|
|
4982
|
-
|
|
5291
|
+
var content$30 = props.children;
|
|
4983
5292
|
try {
|
|
4984
|
-
renderNode(request, task,
|
|
5293
|
+
renderNode(request, task, content$30, -1);
|
|
4985
5294
|
} finally {
|
|
4986
|
-
(task.keyPath =
|
|
4987
|
-
(task.formatContext =
|
|
4988
|
-
(task.row =
|
|
5295
|
+
(task.keyPath = prevKeyPath$27),
|
|
5296
|
+
(task.formatContext = prevContext$28),
|
|
5297
|
+
(task.row = prevRow$29);
|
|
4989
5298
|
}
|
|
4990
5299
|
} else {
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
5300
|
+
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
5301
|
+
prevContext$jscomp$1 = task.formatContext,
|
|
5302
|
+
prevRow$jscomp$0 = task.row,
|
|
5303
|
+
parentBoundary = task.blockedBoundary,
|
|
5304
|
+
parentPreamble = task.blockedPreamble,
|
|
5305
|
+
parentHoistableState = task.hoistableState,
|
|
4997
5306
|
parentSegment = task.blockedSegment,
|
|
4998
|
-
fallback = props.fallback
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
parentSegment.chunks.length,
|
|
5022
|
-
newBoundary,
|
|
5023
|
-
task.formatContext,
|
|
5024
|
-
!1,
|
|
5025
|
-
!1
|
|
5026
|
-
);
|
|
5307
|
+
fallback = props.fallback,
|
|
5308
|
+
content = props.children,
|
|
5309
|
+
fallbackAbortSet = new Set(),
|
|
5310
|
+
newBoundary = createSuspenseBoundary(
|
|
5311
|
+
request,
|
|
5312
|
+
task.row,
|
|
5313
|
+
fallbackAbortSet,
|
|
5314
|
+
2 > task.formatContext.insertionMode
|
|
5315
|
+
? {
|
|
5316
|
+
content: createPreambleState(),
|
|
5317
|
+
fallback: createPreambleState()
|
|
5318
|
+
}
|
|
5319
|
+
: null,
|
|
5320
|
+
!1
|
|
5321
|
+
),
|
|
5322
|
+
boundarySegment = createPendingSegment(
|
|
5323
|
+
request,
|
|
5324
|
+
parentSegment.chunks.length,
|
|
5325
|
+
newBoundary,
|
|
5326
|
+
task.formatContext,
|
|
5327
|
+
!1,
|
|
5328
|
+
!1
|
|
5329
|
+
);
|
|
5027
5330
|
parentSegment.children.push(boundarySegment);
|
|
5028
5331
|
parentSegment.lastPushedText = !1;
|
|
5029
5332
|
var contentRootSegment = createPendingSegment(
|
|
@@ -5035,48 +5338,68 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5035
5338
|
!1
|
|
5036
5339
|
);
|
|
5037
5340
|
contentRootSegment.parentFlushed = !0;
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5341
|
+
var trackedPostpones = request.trackedPostpones;
|
|
5342
|
+
if (null !== trackedPostpones) {
|
|
5343
|
+
var suspenseComponentStack = task.componentStack,
|
|
5344
|
+
fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
5345
|
+
if (null !== trackedPostpones) {
|
|
5346
|
+
var fallbackReplayNode = [
|
|
5347
|
+
fallbackKeyPath[1],
|
|
5348
|
+
fallbackKeyPath[2],
|
|
5349
|
+
[],
|
|
5350
|
+
null
|
|
5351
|
+
];
|
|
5352
|
+
trackedPostpones.workingMap.set(
|
|
5353
|
+
fallbackKeyPath,
|
|
5354
|
+
fallbackReplayNode
|
|
5355
|
+
);
|
|
5356
|
+
newBoundary.tracked = {
|
|
5357
|
+
contentKeyPath: keyPath,
|
|
5358
|
+
fallbackNode: fallbackReplayNode
|
|
5359
|
+
};
|
|
5360
|
+
}
|
|
5044
5361
|
task.blockedSegment = boundarySegment;
|
|
5045
|
-
task.blockedPreamble =
|
|
5046
|
-
|
|
5362
|
+
task.blockedPreamble =
|
|
5363
|
+
null === newBoundary.preamble
|
|
5364
|
+
? null
|
|
5365
|
+
: newBoundary.preamble.fallback;
|
|
5366
|
+
task.keyPath = fallbackKeyPath;
|
|
5047
5367
|
task.formatContext = getSuspenseFallbackFormatContext(
|
|
5048
5368
|
request.resumableState,
|
|
5049
|
-
|
|
5369
|
+
prevContext$jscomp$1
|
|
5050
5370
|
);
|
|
5051
5371
|
task.componentStack =
|
|
5052
|
-
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5053
|
-
|
|
5372
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5373
|
+
suspenseComponentStack
|
|
5374
|
+
);
|
|
5054
5375
|
try {
|
|
5055
5376
|
renderNode(request, task, fallback, -1),
|
|
5056
5377
|
boundarySegment.lastPushedText &&
|
|
5057
5378
|
boundarySegment.textEmbedded &&
|
|
5058
5379
|
boundarySegment.chunks.push(textSeparator),
|
|
5059
5380
|
(boundarySegment.status = 1),
|
|
5060
|
-
finishedSegment(request,
|
|
5381
|
+
finishedSegment(request, parentBoundary, boundarySegment);
|
|
5061
5382
|
} catch (thrownValue) {
|
|
5062
5383
|
throw (
|
|
5063
|
-
((boundarySegment.status =
|
|
5384
|
+
((boundarySegment.status = request.aborted ? 3 : 4),
|
|
5064
5385
|
thrownValue)
|
|
5065
5386
|
);
|
|
5066
5387
|
} finally {
|
|
5067
5388
|
(task.blockedSegment = parentSegment),
|
|
5068
|
-
(task.blockedPreamble =
|
|
5069
|
-
(task.keyPath =
|
|
5070
|
-
(task.formatContext =
|
|
5389
|
+
(task.blockedPreamble = parentPreamble),
|
|
5390
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5391
|
+
(task.formatContext = prevContext$jscomp$1);
|
|
5071
5392
|
}
|
|
5072
|
-
|
|
5393
|
+
var suspendedPrimaryTask = createRenderTask(
|
|
5073
5394
|
request,
|
|
5074
5395
|
null,
|
|
5075
|
-
|
|
5396
|
+
content,
|
|
5076
5397
|
-1,
|
|
5077
5398
|
newBoundary,
|
|
5078
5399
|
contentRootSegment,
|
|
5079
|
-
newBoundary.
|
|
5400
|
+
null === newBoundary.preamble
|
|
5401
|
+
? null
|
|
5402
|
+
: newBoundary.preamble.content,
|
|
5080
5403
|
newBoundary.contentState,
|
|
5081
5404
|
task.abortSet,
|
|
5082
5405
|
keyPath,
|
|
@@ -5087,25 +5410,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5087
5410
|
task.context,
|
|
5088
5411
|
task.treeContext,
|
|
5089
5412
|
null,
|
|
5090
|
-
|
|
5413
|
+
suspenseComponentStack
|
|
5091
5414
|
);
|
|
5092
|
-
pushComponentStack(
|
|
5093
|
-
request.pingedTasks.push(
|
|
5415
|
+
pushComponentStack(suspendedPrimaryTask);
|
|
5416
|
+
request.pingedTasks.push(suspendedPrimaryTask);
|
|
5094
5417
|
} else {
|
|
5095
5418
|
task.blockedBoundary = newBoundary;
|
|
5096
|
-
task.blockedPreamble =
|
|
5419
|
+
task.blockedPreamble =
|
|
5420
|
+
null === newBoundary.preamble
|
|
5421
|
+
? null
|
|
5422
|
+
: newBoundary.preamble.content;
|
|
5097
5423
|
task.hoistableState = newBoundary.contentState;
|
|
5098
5424
|
task.blockedSegment = contentRootSegment;
|
|
5099
5425
|
task.keyPath = keyPath;
|
|
5100
5426
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5101
5427
|
request.resumableState,
|
|
5102
|
-
|
|
5428
|
+
prevContext$jscomp$1
|
|
5103
5429
|
);
|
|
5104
5430
|
task.row = null;
|
|
5105
|
-
contentRootSegment.status = 6;
|
|
5106
5431
|
try {
|
|
5107
5432
|
if (
|
|
5108
|
-
(renderNode(request, task,
|
|
5433
|
+
(renderNode(request, task, content, -1),
|
|
5109
5434
|
contentRootSegment.lastPushedText &&
|
|
5110
5435
|
contentRootSegment.textEmbedded &&
|
|
5111
5436
|
contentRootSegment.chunks.push(textSeparator),
|
|
@@ -5118,50 +5443,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5118
5443
|
((newBoundary.status = 1),
|
|
5119
5444
|
!isEligibleForOutlining(request, newBoundary))
|
|
5120
5445
|
) {
|
|
5121
|
-
null !== prevRow &&
|
|
5122
|
-
0 === --prevRow.pendingTasks &&
|
|
5123
|
-
finishSuspenseListRow(request, prevRow);
|
|
5446
|
+
null !== prevRow$jscomp$0 &&
|
|
5447
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
5448
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
|
5124
5449
|
0 === request.pendingRootTasks &&
|
|
5125
5450
|
task.blockedPreamble &&
|
|
5126
5451
|
preparePreamble(request);
|
|
5127
5452
|
break a;
|
|
5128
5453
|
}
|
|
5129
5454
|
} else
|
|
5130
|
-
null !== prevRow &&
|
|
5131
|
-
prevRow.together &&
|
|
5132
|
-
tryToResolveTogetherRow(request, prevRow);
|
|
5455
|
+
null !== prevRow$jscomp$0 &&
|
|
5456
|
+
prevRow$jscomp$0.together &&
|
|
5457
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
|
5133
5458
|
} catch (thrownValue$31) {
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
newProps,
|
|
5144
|
-
defaultProps
|
|
5145
|
-
)),
|
|
5146
|
-
(newBoundary.errorDigest = initialState),
|
|
5147
|
-
untrackBoundary(request, newBoundary);
|
|
5459
|
+
newBoundary.status = 4;
|
|
5460
|
+
if (request.aborted) {
|
|
5461
|
+
contentRootSegment.status = 3;
|
|
5462
|
+
var error = request.fatalError;
|
|
5463
|
+
} else (contentRootSegment.status = 4), (error = thrownValue$31);
|
|
5464
|
+
var thrownInfo = getThrownInfo(task.componentStack),
|
|
5465
|
+
errorDigest = logRecoverableError(request, error, thrownInfo);
|
|
5466
|
+
newBoundary.errorDigest = errorDigest;
|
|
5467
|
+
untrackBoundary(request, newBoundary);
|
|
5148
5468
|
} finally {
|
|
5149
|
-
(task.blockedBoundary =
|
|
5150
|
-
(task.blockedPreamble =
|
|
5469
|
+
(task.blockedBoundary = parentBoundary),
|
|
5470
|
+
(task.blockedPreamble = parentPreamble),
|
|
5151
5471
|
(task.hoistableState = parentHoistableState),
|
|
5152
5472
|
(task.blockedSegment = parentSegment),
|
|
5153
|
-
(task.keyPath =
|
|
5154
|
-
(task.formatContext =
|
|
5155
|
-
(task.row = prevRow);
|
|
5473
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5474
|
+
(task.formatContext = prevContext$jscomp$1),
|
|
5475
|
+
(task.row = prevRow$jscomp$0);
|
|
5156
5476
|
}
|
|
5157
|
-
|
|
5477
|
+
var suspendedFallbackTask = createRenderTask(
|
|
5158
5478
|
request,
|
|
5159
5479
|
null,
|
|
5160
5480
|
fallback,
|
|
5161
5481
|
-1,
|
|
5162
|
-
|
|
5482
|
+
parentBoundary,
|
|
5163
5483
|
boundarySegment,
|
|
5164
|
-
newBoundary.
|
|
5484
|
+
null === newBoundary.preamble
|
|
5485
|
+
? null
|
|
5486
|
+
: newBoundary.preamble.fallback,
|
|
5165
5487
|
newBoundary.fallbackState,
|
|
5166
5488
|
fallbackAbortSet,
|
|
5167
5489
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
@@ -5176,8 +5498,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5176
5498
|
task.componentStack
|
|
5177
5499
|
)
|
|
5178
5500
|
);
|
|
5179
|
-
pushComponentStack(
|
|
5180
|
-
request.pingedTasks.push(
|
|
5501
|
+
pushComponentStack(suspendedFallbackTask);
|
|
5502
|
+
request.pingedTasks.push(suspendedFallbackTask);
|
|
5181
5503
|
}
|
|
5182
5504
|
}
|
|
5183
5505
|
return;
|
|
@@ -5185,24 +5507,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5185
5507
|
if ("object" === typeof type && null !== type)
|
|
5186
5508
|
switch (type.$$typeof) {
|
|
5187
5509
|
case REACT_FORWARD_REF_TYPE:
|
|
5188
|
-
if ("ref" in props)
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
else
|
|
5193
|
-
|
|
5510
|
+
if ("ref" in props) {
|
|
5511
|
+
var propsWithoutRef = {};
|
|
5512
|
+
for (var key in props)
|
|
5513
|
+
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
5514
|
+
} else propsWithoutRef = props;
|
|
5515
|
+
var children$jscomp$1 = renderWithHooks(
|
|
5194
5516
|
request,
|
|
5195
5517
|
task,
|
|
5196
5518
|
keyPath,
|
|
5197
5519
|
type.render,
|
|
5198
|
-
|
|
5520
|
+
propsWithoutRef,
|
|
5199
5521
|
ref
|
|
5200
5522
|
);
|
|
5201
5523
|
finishFunctionComponent(
|
|
5202
5524
|
request,
|
|
5203
5525
|
task,
|
|
5204
5526
|
keyPath,
|
|
5205
|
-
|
|
5527
|
+
children$jscomp$1,
|
|
5206
5528
|
0 !== localIdCounter,
|
|
5207
5529
|
actionStateCounter,
|
|
5208
5530
|
actionStateMatchingIndex
|
|
@@ -5212,45 +5534,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5212
5534
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
5213
5535
|
return;
|
|
5214
5536
|
case REACT_CONTEXT_TYPE:
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
type._currentValue =
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5537
|
+
var children$jscomp$2 = props.children,
|
|
5538
|
+
prevKeyPath$jscomp$6 = task.keyPath,
|
|
5539
|
+
nextValue = props.value;
|
|
5540
|
+
var prevValue = type._currentValue;
|
|
5541
|
+
type._currentValue = nextValue;
|
|
5542
|
+
var prevNode = currentActiveSnapshot,
|
|
5543
|
+
newNode = {
|
|
5544
|
+
parent: prevNode,
|
|
5545
|
+
depth: null === prevNode ? 0 : prevNode.depth + 1,
|
|
5546
|
+
context: type,
|
|
5547
|
+
parentValue: prevValue,
|
|
5548
|
+
value: nextValue
|
|
5549
|
+
};
|
|
5550
|
+
currentActiveSnapshot = newNode;
|
|
5551
|
+
task.context = newNode;
|
|
5229
5552
|
task.keyPath = keyPath;
|
|
5230
|
-
renderNodeDestructive(request, task,
|
|
5231
|
-
|
|
5232
|
-
if (null ===
|
|
5553
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
5554
|
+
var prevSnapshot = currentActiveSnapshot;
|
|
5555
|
+
if (null === prevSnapshot)
|
|
5233
5556
|
throw Error(
|
|
5234
5557
|
"Tried to pop a Context at the root of the app. This is a bug in React."
|
|
5235
5558
|
);
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
task.
|
|
5559
|
+
prevSnapshot.context._currentValue = prevSnapshot.parentValue;
|
|
5560
|
+
var JSCompiler_inline_result$jscomp$4 = (currentActiveSnapshot =
|
|
5561
|
+
prevSnapshot.parent);
|
|
5562
|
+
task.context = JSCompiler_inline_result$jscomp$4;
|
|
5563
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
5240
5564
|
return;
|
|
5241
5565
|
case REACT_CONSUMER_TYPE:
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5566
|
+
var render = props.children,
|
|
5567
|
+
newChildren = render(type._context._currentValue),
|
|
5568
|
+
prevKeyPath$jscomp$7 = task.keyPath;
|
|
5245
5569
|
task.keyPath = keyPath;
|
|
5246
|
-
renderNodeDestructive(request, task,
|
|
5247
|
-
task.keyPath =
|
|
5570
|
+
renderNodeDestructive(request, task, newChildren, -1);
|
|
5571
|
+
task.keyPath = prevKeyPath$jscomp$7;
|
|
5248
5572
|
return;
|
|
5249
5573
|
case REACT_LAZY_TYPE:
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
if (
|
|
5253
|
-
renderElement(request, task, keyPath,
|
|
5574
|
+
var init = type._init;
|
|
5575
|
+
var Component = init(type._payload);
|
|
5576
|
+
if (request.aborted) throw null;
|
|
5577
|
+
renderElement(request, task, keyPath, Component, props, ref);
|
|
5254
5578
|
return;
|
|
5255
5579
|
}
|
|
5256
5580
|
throw Error(
|
|
@@ -5311,7 +5635,11 @@ function retryNode(request, task) {
|
|
|
5311
5635
|
var ref = void 0 !== node ? node : null,
|
|
5312
5636
|
name = getComponentNameFromType(type),
|
|
5313
5637
|
keyOrIndex =
|
|
5314
|
-
null == key
|
|
5638
|
+
null == key || key === REACT_OPTIMISTIC_KEY
|
|
5639
|
+
? -1 === childIndex
|
|
5640
|
+
? 0
|
|
5641
|
+
: childIndex
|
|
5642
|
+
: key;
|
|
5315
5643
|
key = [task.keyPath, name, keyOrIndex];
|
|
5316
5644
|
if (null !== task.replay)
|
|
5317
5645
|
a: {
|
|
@@ -5329,12 +5657,12 @@ function retryNode(request, task) {
|
|
|
5329
5657
|
name +
|
|
5330
5658
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
5331
5659
|
);
|
|
5332
|
-
var childNodes = node$jscomp$0[2]
|
|
5333
|
-
|
|
5334
|
-
|
|
5660
|
+
var childNodes = node$jscomp$0[2],
|
|
5661
|
+
childSlots = node$jscomp$0[3],
|
|
5662
|
+
currentNode = task.node;
|
|
5335
5663
|
task.replay = {
|
|
5336
5664
|
nodes: childNodes,
|
|
5337
|
-
slots:
|
|
5665
|
+
slots: childSlots,
|
|
5338
5666
|
pendingTasks: 1
|
|
5339
5667
|
};
|
|
5340
5668
|
try {
|
|
@@ -5352,27 +5680,28 @@ function retryNode(request, task) {
|
|
|
5352
5680
|
"object" === typeof x &&
|
|
5353
5681
|
null !== x &&
|
|
5354
5682
|
(x === SuspenseException ||
|
|
5355
|
-
"function" === typeof x.then
|
|
5683
|
+
"function" === typeof x.then ||
|
|
5684
|
+
"Maximum call stack size exceeded" === x.message)
|
|
5356
5685
|
)
|
|
5357
5686
|
throw (
|
|
5358
|
-
(task.node ===
|
|
5687
|
+
(task.node === currentNode
|
|
5359
5688
|
? (task.replay = replay)
|
|
5360
5689
|
: childIndex.splice(node, 1),
|
|
5361
5690
|
x)
|
|
5362
5691
|
);
|
|
5363
5692
|
task.replay.pendingTasks--;
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5693
|
+
key = getThrownInfo(task.componentStack);
|
|
5694
|
+
currentNode = request;
|
|
5695
|
+
props = task.blockedBoundary;
|
|
5696
|
+
request = request.aborted ? request.fatalError : x;
|
|
5697
|
+
key = logRecoverableError(currentNode, request, key);
|
|
5369
5698
|
abortRemainingReplayNodes(
|
|
5370
|
-
|
|
5371
|
-
|
|
5699
|
+
currentNode,
|
|
5700
|
+
props,
|
|
5372
5701
|
childNodes,
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5702
|
+
childSlots,
|
|
5703
|
+
request,
|
|
5704
|
+
key
|
|
5376
5705
|
);
|
|
5377
5706
|
}
|
|
5378
5707
|
task.replay = replay;
|
|
@@ -5384,43 +5713,38 @@ function retryNode(request, task) {
|
|
|
5384
5713
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
5385
5714
|
);
|
|
5386
5715
|
b: {
|
|
5387
|
-
replay =
|
|
5388
|
-
type = node$jscomp$0[
|
|
5389
|
-
ref = node$jscomp$0[
|
|
5390
|
-
name =
|
|
5391
|
-
keyOrIndex =
|
|
5716
|
+
replay = node$jscomp$0[5];
|
|
5717
|
+
type = node$jscomp$0[2];
|
|
5718
|
+
ref = node$jscomp$0[3];
|
|
5719
|
+
name =
|
|
5392
5720
|
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
|
5393
5721
|
node$jscomp$0 =
|
|
5394
5722
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
5395
|
-
|
|
5396
|
-
|
|
5723
|
+
keyOrIndex = task.keyPath;
|
|
5724
|
+
var prevContext = task.formatContext,
|
|
5397
5725
|
prevRow = task.row,
|
|
5398
5726
|
previousReplaySet = task.replay,
|
|
5399
5727
|
parentBoundary = task.blockedBoundary,
|
|
5400
5728
|
parentHoistableState = task.hoistableState,
|
|
5401
|
-
content = props.children
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
props.parentFlushed = !0;
|
|
5421
|
-
props.rootSegmentID = type;
|
|
5422
|
-
task.blockedBoundary = props;
|
|
5423
|
-
task.hoistableState = props.contentState;
|
|
5729
|
+
content = props.children;
|
|
5730
|
+
props = props.fallback;
|
|
5731
|
+
var fallbackAbortSet = new Set(),
|
|
5732
|
+
resumedBoundary = createSuspenseBoundary(
|
|
5733
|
+
request,
|
|
5734
|
+
task.row,
|
|
5735
|
+
fallbackAbortSet,
|
|
5736
|
+
2 > task.formatContext.insertionMode
|
|
5737
|
+
? {
|
|
5738
|
+
content: createPreambleState(),
|
|
5739
|
+
fallback: createPreambleState()
|
|
5740
|
+
}
|
|
5741
|
+
: null,
|
|
5742
|
+
!1
|
|
5743
|
+
);
|
|
5744
|
+
resumedBoundary.parentFlushed = !0;
|
|
5745
|
+
resumedBoundary.rootSegmentID = replay;
|
|
5746
|
+
task.blockedBoundary = resumedBoundary;
|
|
5747
|
+
task.hoistableState = resumedBoundary.contentState;
|
|
5424
5748
|
task.keyPath = key;
|
|
5425
5749
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5426
5750
|
request.resumableState,
|
|
@@ -5428,8 +5752,8 @@ function retryNode(request, task) {
|
|
|
5428
5752
|
);
|
|
5429
5753
|
task.row = null;
|
|
5430
5754
|
task.replay = {
|
|
5431
|
-
nodes:
|
|
5432
|
-
slots:
|
|
5755
|
+
nodes: type,
|
|
5756
|
+
slots: ref,
|
|
5433
5757
|
pendingTasks: 1
|
|
5434
5758
|
};
|
|
5435
5759
|
try {
|
|
@@ -5442,42 +5766,46 @@ function retryNode(request, task) {
|
|
|
5442
5766
|
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5443
5767
|
);
|
|
5444
5768
|
task.replay.pendingTasks--;
|
|
5445
|
-
if (
|
|
5446
|
-
|
|
5447
|
-
|
|
5769
|
+
if (
|
|
5770
|
+
0 === resumedBoundary.pendingTasks &&
|
|
5771
|
+
0 === resumedBoundary.status
|
|
5772
|
+
) {
|
|
5773
|
+
resumedBoundary.status = 1;
|
|
5774
|
+
request.completedBoundaries.push(resumedBoundary);
|
|
5448
5775
|
break b;
|
|
5449
5776
|
}
|
|
5450
|
-
} catch (
|
|
5451
|
-
(
|
|
5452
|
-
(childNodes =
|
|
5453
|
-
|
|
5777
|
+
} catch (thrownValue) {
|
|
5778
|
+
(resumedBoundary.status = 4),
|
|
5779
|
+
(childNodes = request.aborted
|
|
5780
|
+
? request.fatalError
|
|
5781
|
+
: thrownValue),
|
|
5782
|
+
(childSlots = getThrownInfo(task.componentStack)),
|
|
5783
|
+
(currentNode = logRecoverableError(
|
|
5454
5784
|
request,
|
|
5455
|
-
|
|
5456
|
-
|
|
5785
|
+
childNodes,
|
|
5786
|
+
childSlots
|
|
5457
5787
|
)),
|
|
5458
|
-
(
|
|
5788
|
+
(resumedBoundary.errorDigest = currentNode),
|
|
5459
5789
|
task.replay.pendingTasks--,
|
|
5460
|
-
request.clientRenderedBoundaries.push(
|
|
5790
|
+
request.clientRenderedBoundaries.push(
|
|
5791
|
+
resumedBoundary
|
|
5792
|
+
);
|
|
5461
5793
|
} finally {
|
|
5462
5794
|
(task.blockedBoundary = parentBoundary),
|
|
5463
5795
|
(task.hoistableState = parentHoistableState),
|
|
5464
5796
|
(task.replay = previousReplaySet),
|
|
5465
|
-
(task.keyPath =
|
|
5797
|
+
(task.keyPath = keyOrIndex),
|
|
5466
5798
|
(task.formatContext = prevContext),
|
|
5467
5799
|
(task.row = prevRow);
|
|
5468
5800
|
}
|
|
5469
5801
|
childNodes = createReplayTask(
|
|
5470
5802
|
request,
|
|
5471
5803
|
null,
|
|
5472
|
-
{
|
|
5473
|
-
|
|
5474
|
-
slots: node$jscomp$0,
|
|
5475
|
-
pendingTasks: 0
|
|
5476
|
-
},
|
|
5477
|
-
fallback,
|
|
5804
|
+
{ nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
|
|
5805
|
+
props,
|
|
5478
5806
|
-1,
|
|
5479
5807
|
parentBoundary,
|
|
5480
|
-
|
|
5808
|
+
resumedBoundary.fallbackState,
|
|
5481
5809
|
fallbackAbortSet,
|
|
5482
5810
|
[key[0], "Suspense Fallback", key[2]],
|
|
5483
5811
|
getSuspenseFallbackFormatContext(
|
|
@@ -5509,7 +5837,7 @@ function retryNode(request, task) {
|
|
|
5509
5837
|
case REACT_LAZY_TYPE:
|
|
5510
5838
|
childNodes = node._init;
|
|
5511
5839
|
node = childNodes(node._payload);
|
|
5512
|
-
if (
|
|
5840
|
+
if (request.aborted) throw null;
|
|
5513
5841
|
renderNodeDestructive(request, task, node, childIndex);
|
|
5514
5842
|
return;
|
|
5515
5843
|
}
|
|
@@ -5521,10 +5849,10 @@ function retryNode(request, task) {
|
|
|
5521
5849
|
if ((childNodes = childNodes.call(node))) {
|
|
5522
5850
|
node = childNodes.next();
|
|
5523
5851
|
if (!node.done) {
|
|
5524
|
-
|
|
5525
|
-
do
|
|
5852
|
+
childSlots = [];
|
|
5853
|
+
do childSlots.push(node.value), (node = childNodes.next());
|
|
5526
5854
|
while (!node.done);
|
|
5527
|
-
renderChildrenArray(request, task,
|
|
5855
|
+
renderChildrenArray(request, task, childSlots, childIndex);
|
|
5528
5856
|
}
|
|
5529
5857
|
return;
|
|
5530
5858
|
}
|
|
@@ -5601,17 +5929,18 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
5601
5929
|
)
|
|
5602
5930
|
throw x;
|
|
5603
5931
|
task.replay.pendingTasks--;
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5932
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
|
5933
|
+
children = request;
|
|
5934
|
+
var boundary = task.blockedBoundary;
|
|
5935
|
+
request = request.aborted ? request.fatalError : x;
|
|
5936
|
+
thrownInfo = logRecoverableError(children, request, thrownInfo);
|
|
5608
5937
|
abortRemainingReplayNodes(
|
|
5609
|
-
|
|
5938
|
+
children,
|
|
5610
5939
|
boundary,
|
|
5611
5940
|
childIndex,
|
|
5612
5941
|
node,
|
|
5613
|
-
|
|
5614
|
-
|
|
5942
|
+
request,
|
|
5943
|
+
thrownInfo
|
|
5615
5944
|
);
|
|
5616
5945
|
}
|
|
5617
5946
|
task.replay = replay;
|
|
@@ -5650,13 +5979,18 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
5650
5979
|
function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
5651
5980
|
boundary.status = 5;
|
|
5652
5981
|
boundary.rootSegmentID = request.nextSegmentId++;
|
|
5653
|
-
|
|
5982
|
+
var tracked = boundary.tracked;
|
|
5983
|
+
if (null === tracked)
|
|
5984
|
+
throw Error(
|
|
5985
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
|
5986
|
+
);
|
|
5987
|
+
request = tracked.contentKeyPath;
|
|
5654
5988
|
if (null === request)
|
|
5655
5989
|
throw Error(
|
|
5656
5990
|
"It should not be possible to postpone at the root. This is a bug in React."
|
|
5657
5991
|
);
|
|
5658
|
-
|
|
5659
|
-
|
|
5992
|
+
tracked = tracked.fallbackNode;
|
|
5993
|
+
var children = [],
|
|
5660
5994
|
boundaryNode = trackedPostpones.workingMap.get(request);
|
|
5661
5995
|
if (void 0 === boundaryNode)
|
|
5662
5996
|
return (
|
|
@@ -5665,14 +5999,14 @@ function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
|
5665
5999
|
request[2],
|
|
5666
6000
|
children,
|
|
5667
6001
|
null,
|
|
5668
|
-
|
|
6002
|
+
tracked,
|
|
5669
6003
|
boundary.rootSegmentID
|
|
5670
6004
|
]),
|
|
5671
6005
|
trackedPostpones.workingMap.set(request, boundary),
|
|
5672
6006
|
addToReplayParent(boundary, request[0], trackedPostpones),
|
|
5673
6007
|
boundary
|
|
5674
6008
|
);
|
|
5675
|
-
boundaryNode[4] =
|
|
6009
|
+
boundaryNode[4] = tracked;
|
|
5676
6010
|
boundaryNode[5] = boundary.rootSegmentID;
|
|
5677
6011
|
return boundaryNode;
|
|
5678
6012
|
}
|
|
@@ -5693,7 +6027,8 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
5693
6027
|
boundary
|
|
5694
6028
|
);
|
|
5695
6029
|
if (
|
|
5696
|
-
boundary.
|
|
6030
|
+
null !== boundary.tracked &&
|
|
6031
|
+
boundary.tracked.contentKeyPath === keyPath &&
|
|
5697
6032
|
-1 === task.childIndex
|
|
5698
6033
|
) {
|
|
5699
6034
|
-1 === segment.id &&
|
|
@@ -5749,11 +6084,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
5749
6084
|
function untrackBoundary(request, boundary) {
|
|
5750
6085
|
request = request.trackedPostpones;
|
|
5751
6086
|
null !== request &&
|
|
5752
|
-
((boundary = boundary.
|
|
6087
|
+
((boundary = boundary.tracked),
|
|
5753
6088
|
null !== boundary &&
|
|
5754
|
-
((boundary =
|
|
5755
|
-
|
|
5756
|
-
((
|
|
6089
|
+
((boundary = boundary.contentKeyPath),
|
|
6090
|
+
null !== boundary &&
|
|
6091
|
+
((request = request.workingMap.get(boundary)),
|
|
6092
|
+
void 0 !== request &&
|
|
6093
|
+
((request.length = 4), (request[2] = []), (request[3] = null)))));
|
|
5757
6094
|
}
|
|
5758
6095
|
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
5759
6096
|
return createReplayTask(
|
|
@@ -5821,7 +6158,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5821
6158
|
thrownValue === SuspenseException
|
|
5822
6159
|
? getSuspendedThenable()
|
|
5823
6160
|
: thrownValue),
|
|
5824
|
-
|
|
6161
|
+
!request.aborted && "object" === typeof node && null !== node)
|
|
5825
6162
|
) {
|
|
5826
6163
|
if ("function" === typeof node.then) {
|
|
5827
6164
|
childIndex =
|
|
@@ -5829,7 +6166,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5829
6166
|
? getThenableStateAfterSuspending()
|
|
5830
6167
|
: null;
|
|
5831
6168
|
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
5832
|
-
node.then(request, request);
|
|
6169
|
+
node.then(request.resolve, request.reject);
|
|
5833
6170
|
task.formatContext = previousFormatContext;
|
|
5834
6171
|
task.context = previousContext;
|
|
5835
6172
|
task.keyPath = previousKeyPath;
|
|
@@ -5862,25 +6199,25 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5862
6199
|
chunkLength = segment.chunks.length;
|
|
5863
6200
|
try {
|
|
5864
6201
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
5865
|
-
} catch (thrownValue$
|
|
6202
|
+
} catch (thrownValue$64) {
|
|
5866
6203
|
if (
|
|
5867
6204
|
(resetHooksState(),
|
|
5868
6205
|
(segment.children.length = childrenLength),
|
|
5869
6206
|
(segment.chunks.length = chunkLength),
|
|
5870
6207
|
(node =
|
|
5871
|
-
thrownValue$
|
|
6208
|
+
thrownValue$64 === SuspenseException
|
|
5872
6209
|
? getSuspendedThenable()
|
|
5873
|
-
: thrownValue$
|
|
5874
|
-
|
|
6210
|
+
: thrownValue$64),
|
|
6211
|
+
!request.aborted && "object" === typeof node && null !== node)
|
|
5875
6212
|
) {
|
|
5876
6213
|
if ("function" === typeof node.then) {
|
|
5877
6214
|
segment = node;
|
|
5878
6215
|
node =
|
|
5879
|
-
thrownValue$
|
|
6216
|
+
thrownValue$64 === SuspenseException
|
|
5880
6217
|
? getThenableStateAfterSuspending()
|
|
5881
6218
|
: null;
|
|
5882
6219
|
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
5883
|
-
segment.then(request, request);
|
|
6220
|
+
segment.then(request.resolve, request.reject);
|
|
5884
6221
|
task.formatContext = previousFormatContext;
|
|
5885
6222
|
task.context = previousContext;
|
|
5886
6223
|
task.keyPath = previousKeyPath;
|
|
@@ -5891,7 +6228,7 @@ function renderNode(request, task, node, childIndex) {
|
|
|
5891
6228
|
}
|
|
5892
6229
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
5893
6230
|
segment =
|
|
5894
|
-
thrownValue$
|
|
6231
|
+
thrownValue$64 === SuspenseException
|
|
5895
6232
|
? getThenableStateAfterSuspending()
|
|
5896
6233
|
: null;
|
|
5897
6234
|
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
@@ -5948,7 +6285,7 @@ function abortRemainingReplayNodes(
|
|
|
5948
6285
|
null,
|
|
5949
6286
|
new Set(),
|
|
5950
6287
|
null,
|
|
5951
|
-
|
|
6288
|
+
!1
|
|
5952
6289
|
);
|
|
5953
6290
|
resumedBoundary.parentFlushed = !0;
|
|
5954
6291
|
resumedBoundary.rootSegmentID = node;
|
|
@@ -5972,78 +6309,104 @@ function abortRemainingReplayNodes(
|
|
|
5972
6309
|
if ("object" === typeof slots) for (var index in slots) delete slots[index];
|
|
5973
6310
|
}
|
|
5974
6311
|
}
|
|
5975
|
-
function abortTask(task, request
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
6312
|
+
function abortTask(task, request) {
|
|
6313
|
+
if (task !== request.currentTask) {
|
|
6314
|
+
var boundary = task.blockedBoundary;
|
|
6315
|
+
task = task.blockedSegment;
|
|
6316
|
+
null !== task && (task.status = 3);
|
|
6317
|
+
null !== boundary &&
|
|
6318
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6319
|
+
return abortTask(fallbackTask, request);
|
|
6320
|
+
});
|
|
5981
6321
|
}
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
6322
|
+
}
|
|
6323
|
+
function finishAbortedTask(task, request, error) {
|
|
6324
|
+
if (task !== request.currentTask) {
|
|
6325
|
+
var boundary = task.blockedBoundary,
|
|
6326
|
+
segment = task.blockedSegment;
|
|
6327
|
+
if (null === segment || 3 === segment.status) {
|
|
6328
|
+
var errorInfo = getThrownInfo(task.componentStack),
|
|
6329
|
+
isRecoverableReason = isRecoverableError(error);
|
|
5986
6330
|
if (null === boundary) {
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
6331
|
+
boundary = task.replay;
|
|
6332
|
+
if (null === boundary) {
|
|
6333
|
+
isRecoverableReason ||
|
|
6334
|
+
null === request.trackedPostpones ||
|
|
6335
|
+
null === segment
|
|
6336
|
+
? isRecoverableReason
|
|
6337
|
+
? ((task = cloneRecoverableErrorAsFatal(error)),
|
|
6338
|
+
logRecoverableError(request, task, errorInfo),
|
|
6339
|
+
12 !== request.status &&
|
|
6340
|
+
13 !== request.status &&
|
|
6341
|
+
fatalError(request, task))
|
|
6342
|
+
: (logRecoverableError(request, error, errorInfo),
|
|
6343
|
+
12 !== request.status &&
|
|
6344
|
+
13 !== request.status &&
|
|
6345
|
+
fatalError(request, error))
|
|
6346
|
+
: ((boundary = request.trackedPostpones),
|
|
6347
|
+
logRecoverableError(request, error, errorInfo),
|
|
6348
|
+
trackPostpone(request, boundary, task, segment),
|
|
6349
|
+
finishedTask(request, null, task.row, segment));
|
|
6350
|
+
return;
|
|
6351
|
+
}
|
|
6352
|
+
12 !== request.status &&
|
|
6353
|
+
13 !== request.status &&
|
|
6354
|
+
(boundary.pendingTasks--,
|
|
6355
|
+
0 === boundary.pendingTasks &&
|
|
6356
|
+
0 < boundary.nodes.length &&
|
|
6357
|
+
((errorInfo = logRecoverableError(request, error, errorInfo)),
|
|
6358
|
+
abortRemainingReplayNodes(
|
|
6359
|
+
request,
|
|
6360
|
+
null,
|
|
6361
|
+
boundary.nodes,
|
|
6362
|
+
boundary.slots,
|
|
6363
|
+
error,
|
|
6364
|
+
errorInfo
|
|
6365
|
+
)),
|
|
6366
|
+
request.pendingRootTasks--,
|
|
6367
|
+
0 === request.pendingRootTasks && completeShell(request));
|
|
6368
|
+
} else {
|
|
6369
|
+
var trackedPostpones$65 = request.trackedPostpones;
|
|
6370
|
+
if (4 !== boundary.status) {
|
|
6371
|
+
if (
|
|
6372
|
+
!isRecoverableReason &&
|
|
6373
|
+
null !== trackedPostpones$65 &&
|
|
6374
|
+
null !== segment
|
|
6375
|
+
)
|
|
6376
|
+
return (
|
|
6377
|
+
logRecoverableError(request, error, errorInfo),
|
|
6378
|
+
trackPostpone(request, trackedPostpones$65, task, segment),
|
|
6379
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6380
|
+
return finishAbortedTask(fallbackTask, request, error);
|
|
6381
|
+
}),
|
|
6382
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
6383
|
+
finishedTask(request, boundary, task.row, segment)
|
|
6384
|
+
);
|
|
6385
|
+
boundary.status = 4;
|
|
6386
|
+
errorInfo = logRecoverableError(request, error, errorInfo);
|
|
6387
|
+
boundary.errorDigest = errorInfo;
|
|
6388
|
+
untrackBoundary(request, boundary);
|
|
6389
|
+
boundary.parentFlushed &&
|
|
6390
|
+
request.clientRenderedBoundaries.push(boundary);
|
|
6391
|
+
}
|
|
6392
|
+
boundary.pendingTasks--;
|
|
6393
|
+
errorInfo = boundary.row;
|
|
6394
|
+
null !== errorInfo &&
|
|
6395
|
+
0 === --errorInfo.pendingTasks &&
|
|
6396
|
+
finishSuspenseListRow(request, errorInfo);
|
|
6397
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6398
|
+
return finishAbortedTask(fallbackTask, request, error);
|
|
6399
|
+
});
|
|
6400
|
+
boundary.fallbackAbortableTasks.clear();
|
|
5995
6401
|
}
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
0
|
|
5999
|
-
(
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
null,
|
|
6003
|
-
boundary.nodes,
|
|
6004
|
-
boundary.slots,
|
|
6005
|
-
error,
|
|
6006
|
-
segment
|
|
6007
|
-
));
|
|
6008
|
-
request.pendingRootTasks--;
|
|
6009
|
-
0 === request.pendingRootTasks && completeShell(request);
|
|
6010
|
-
}
|
|
6011
|
-
} else {
|
|
6012
|
-
var trackedPostpones$64 = request.trackedPostpones;
|
|
6013
|
-
if (4 !== boundary.status) {
|
|
6014
|
-
if (null !== trackedPostpones$64 && null !== segment)
|
|
6015
|
-
return (
|
|
6016
|
-
logRecoverableError(request, error, errorInfo),
|
|
6017
|
-
trackPostpone(request, trackedPostpones$64, task, segment),
|
|
6018
|
-
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6019
|
-
return abortTask(fallbackTask, request, error);
|
|
6020
|
-
}),
|
|
6021
|
-
boundary.fallbackAbortableTasks.clear(),
|
|
6022
|
-
finishedTask(request, boundary, task.row, segment)
|
|
6023
|
-
);
|
|
6024
|
-
boundary.status = 4;
|
|
6025
|
-
segment = logRecoverableError(request, error, errorInfo);
|
|
6026
|
-
boundary.status = 4;
|
|
6027
|
-
boundary.errorDigest = segment;
|
|
6028
|
-
untrackBoundary(request, boundary);
|
|
6029
|
-
boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
|
|
6402
|
+
task = task.row;
|
|
6403
|
+
null !== task &&
|
|
6404
|
+
0 === --task.pendingTasks &&
|
|
6405
|
+
finishSuspenseListRow(request, task);
|
|
6406
|
+
request.allPendingTasks--;
|
|
6407
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6030
6408
|
}
|
|
6031
|
-
boundary.pendingTasks--;
|
|
6032
|
-
segment = boundary.row;
|
|
6033
|
-
null !== segment &&
|
|
6034
|
-
0 === --segment.pendingTasks &&
|
|
6035
|
-
finishSuspenseListRow(request, segment);
|
|
6036
|
-
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
6037
|
-
return abortTask(fallbackTask, request, error);
|
|
6038
|
-
});
|
|
6039
|
-
boundary.fallbackAbortableTasks.clear();
|
|
6040
6409
|
}
|
|
6041
|
-
task = task.row;
|
|
6042
|
-
null !== task &&
|
|
6043
|
-
0 === --task.pendingTasks &&
|
|
6044
|
-
finishSuspenseListRow(request, task);
|
|
6045
|
-
request.allPendingTasks--;
|
|
6046
|
-
0 === request.allPendingTasks && completeAll(request);
|
|
6047
6410
|
}
|
|
6048
6411
|
function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
6049
6412
|
try {
|
|
@@ -6109,7 +6472,6 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
6109
6472
|
function completeShell(request) {
|
|
6110
6473
|
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
|
|
6111
6474
|
null === request.trackedPostpones && preparePreamble(request);
|
|
6112
|
-
request.onShellError = noop;
|
|
6113
6475
|
request = request.onShellReady;
|
|
6114
6476
|
request();
|
|
6115
6477
|
}
|
|
@@ -6182,14 +6544,16 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6182
6544
|
null !== row &&
|
|
6183
6545
|
hoistHoistables(row.hoistables, boundary.contentState),
|
|
6184
6546
|
isEligibleForOutlining(request, boundary) ||
|
|
6185
|
-
(
|
|
6547
|
+
(request.allPendingTasks++,
|
|
6548
|
+
boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
|
|
6186
6549
|
boundary.fallbackAbortableTasks.clear(),
|
|
6187
6550
|
null !== row &&
|
|
6188
6551
|
0 === --row.pendingTasks &&
|
|
6189
|
-
finishSuspenseListRow(request, row)
|
|
6552
|
+
finishSuspenseListRow(request, row),
|
|
6553
|
+
request.allPendingTasks--),
|
|
6190
6554
|
0 === request.pendingRootTasks &&
|
|
6191
6555
|
null === request.trackedPostpones &&
|
|
6192
|
-
null !== boundary.
|
|
6556
|
+
null !== boundary.preamble &&
|
|
6193
6557
|
preparePreamble(request);
|
|
6194
6558
|
else {
|
|
6195
6559
|
if (
|
|
@@ -6213,8 +6577,10 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6213
6577
|
finishedTask(request, postponedBoundary, null, null);
|
|
6214
6578
|
}
|
|
6215
6579
|
}
|
|
6580
|
+
request.allPendingTasks++;
|
|
6216
6581
|
0 === --boundary.pendingTasks &&
|
|
6217
6582
|
finishSuspenseListRow(request, boundary);
|
|
6583
|
+
request.allPendingTasks--;
|
|
6218
6584
|
}
|
|
6219
6585
|
}
|
|
6220
6586
|
else
|
|
@@ -6231,209 +6597,257 @@ function finishedTask(request, boundary, row, segment) {
|
|
|
6231
6597
|
tryToResolveTogetherRow(request, boundary);
|
|
6232
6598
|
0 === request.allPendingTasks && completeAll(request);
|
|
6233
6599
|
}
|
|
6234
|
-
function performWork(request$jscomp$
|
|
6235
|
-
if (
|
|
6600
|
+
function performWork(request$jscomp$1) {
|
|
6601
|
+
if (!(request$jscomp$1.aborted || 11 < request$jscomp$1.status)) {
|
|
6236
6602
|
var prevContext = currentActiveSnapshot,
|
|
6237
6603
|
prevDispatcher = ReactSharedInternals.H;
|
|
6238
6604
|
ReactSharedInternals.H = HooksDispatcher;
|
|
6239
6605
|
var prevAsyncDispatcher = ReactSharedInternals.A;
|
|
6240
6606
|
ReactSharedInternals.A = DefaultAsyncDispatcher;
|
|
6241
6607
|
var prevRequest = currentRequest;
|
|
6242
|
-
currentRequest = request$jscomp$
|
|
6608
|
+
currentRequest = request$jscomp$1;
|
|
6243
6609
|
var prevResumableState = currentResumableState;
|
|
6244
|
-
currentResumableState = request$jscomp$
|
|
6610
|
+
currentResumableState = request$jscomp$1.resumableState;
|
|
6245
6611
|
try {
|
|
6246
|
-
var pingedTasks = request$jscomp$
|
|
6612
|
+
var pingedTasks = request$jscomp$1.pingedTasks,
|
|
6247
6613
|
i;
|
|
6248
6614
|
for (i = 0; i < pingedTasks.length; i++) {
|
|
6249
6615
|
var task = pingedTasks[i],
|
|
6250
|
-
request = request$jscomp$
|
|
6616
|
+
request = request$jscomp$1,
|
|
6251
6617
|
segment = task.blockedSegment;
|
|
6252
|
-
if (null === segment)
|
|
6253
|
-
|
|
6254
|
-
|
|
6618
|
+
if (null === segment)
|
|
6619
|
+
a: {
|
|
6620
|
+
if (0 !== task.replay.pendingTasks) {
|
|
6621
|
+
var prevTask = request.currentTask;
|
|
6622
|
+
request.currentTask = task;
|
|
6623
|
+
switchContext(task.context);
|
|
6624
|
+
var startNode = task.node;
|
|
6625
|
+
try {
|
|
6626
|
+
"number" === typeof task.replay.slots
|
|
6627
|
+
? resumeNode(
|
|
6628
|
+
request,
|
|
6629
|
+
task,
|
|
6630
|
+
task.replay.slots,
|
|
6631
|
+
task.node,
|
|
6632
|
+
task.childIndex
|
|
6633
|
+
)
|
|
6634
|
+
: retryNode(request, task);
|
|
6635
|
+
if (
|
|
6636
|
+
1 === task.replay.pendingTasks &&
|
|
6637
|
+
0 < task.replay.nodes.length
|
|
6638
|
+
)
|
|
6639
|
+
throw Error(
|
|
6640
|
+
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
6641
|
+
);
|
|
6642
|
+
task.replay.pendingTasks--;
|
|
6643
|
+
task.abortSet.delete(task);
|
|
6644
|
+
finishedTask(request, task.blockedBoundary, task.row, null);
|
|
6645
|
+
} catch (thrownValue) {
|
|
6646
|
+
resetHooksState();
|
|
6647
|
+
var x =
|
|
6648
|
+
thrownValue === SuspenseException
|
|
6649
|
+
? getSuspendedThenable()
|
|
6650
|
+
: thrownValue;
|
|
6651
|
+
if (request.aborted) {
|
|
6652
|
+
thrownValue === SuspenseException &&
|
|
6653
|
+
(task.thenableState = getThenableStateAfterSuspending());
|
|
6654
|
+
request.currentTask = prevTask;
|
|
6655
|
+
var request$jscomp$0 = request;
|
|
6656
|
+
abortTask(task, request$jscomp$0);
|
|
6657
|
+
task.abortSet.delete(task);
|
|
6658
|
+
finishAbortedTask(
|
|
6659
|
+
task,
|
|
6660
|
+
request$jscomp$0,
|
|
6661
|
+
request$jscomp$0.fatalError
|
|
6662
|
+
);
|
|
6663
|
+
} else {
|
|
6664
|
+
if ("object" === typeof x && null !== x) {
|
|
6665
|
+
if ("function" === typeof x.then) {
|
|
6666
|
+
var ping = task.ping;
|
|
6667
|
+
x.then(ping.resolve, ping.reject);
|
|
6668
|
+
task.thenableState =
|
|
6669
|
+
thrownValue === SuspenseException
|
|
6670
|
+
? getThenableStateAfterSuspending()
|
|
6671
|
+
: null;
|
|
6672
|
+
break a;
|
|
6673
|
+
}
|
|
6674
|
+
if (
|
|
6675
|
+
"Maximum call stack size exceeded" === x.message &&
|
|
6676
|
+
task.node !== startNode
|
|
6677
|
+
) {
|
|
6678
|
+
task.thenableState = null;
|
|
6679
|
+
request.pingedTasks.push(task);
|
|
6680
|
+
break a;
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6683
|
+
task.replay.pendingTasks--;
|
|
6684
|
+
task.abortSet.delete(task);
|
|
6685
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
6686
|
+
request$jscomp$0 = request;
|
|
6687
|
+
var boundary = task.blockedBoundary,
|
|
6688
|
+
error$jscomp$0 = request.aborted ? request.fatalError : x,
|
|
6689
|
+
replayNodes = task.replay.nodes,
|
|
6690
|
+
resumeSlots = task.replay.slots,
|
|
6691
|
+
errorDigest = logRecoverableError(
|
|
6692
|
+
request$jscomp$0,
|
|
6693
|
+
error$jscomp$0,
|
|
6694
|
+
errorInfo
|
|
6695
|
+
);
|
|
6696
|
+
abortRemainingReplayNodes(
|
|
6697
|
+
request$jscomp$0,
|
|
6698
|
+
boundary,
|
|
6699
|
+
replayNodes,
|
|
6700
|
+
resumeSlots,
|
|
6701
|
+
error$jscomp$0,
|
|
6702
|
+
errorDigest
|
|
6703
|
+
);
|
|
6704
|
+
request.pendingRootTasks--;
|
|
6705
|
+
0 === request.pendingRootTasks && completeShell(request);
|
|
6706
|
+
request.allPendingTasks--;
|
|
6707
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6708
|
+
}
|
|
6709
|
+
} finally {
|
|
6710
|
+
request.currentTask = prevTask;
|
|
6711
|
+
}
|
|
6712
|
+
}
|
|
6713
|
+
}
|
|
6714
|
+
else
|
|
6715
|
+
a: if (
|
|
6716
|
+
((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
|
|
6717
|
+
) {
|
|
6718
|
+
var prevTask$jscomp$0 = request.currentTask;
|
|
6719
|
+
request.currentTask = task;
|
|
6255
6720
|
switchContext(task.context);
|
|
6721
|
+
var childrenLength = request$jscomp$0.children.length,
|
|
6722
|
+
chunkLength = request$jscomp$0.chunks.length,
|
|
6723
|
+
startNode$jscomp$0 = task.node;
|
|
6256
6724
|
try {
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6725
|
+
retryNode(request, task),
|
|
6726
|
+
request$jscomp$0.lastPushedText &&
|
|
6727
|
+
request$jscomp$0.textEmbedded &&
|
|
6728
|
+
request$jscomp$0.chunks.push(textSeparator),
|
|
6729
|
+
task.abortSet.delete(task),
|
|
6730
|
+
(request$jscomp$0.status = 1),
|
|
6731
|
+
finishedSegment(
|
|
6732
|
+
request,
|
|
6733
|
+
task.blockedBoundary,
|
|
6734
|
+
request$jscomp$0
|
|
6735
|
+
),
|
|
6736
|
+
finishedTask(
|
|
6737
|
+
request,
|
|
6738
|
+
task.blockedBoundary,
|
|
6739
|
+
task.row,
|
|
6740
|
+
request$jscomp$0
|
|
6272
6741
|
);
|
|
6273
|
-
task.replay.pendingTasks--;
|
|
6274
|
-
task.abortSet.delete(task);
|
|
6275
|
-
finishedTask(
|
|
6276
|
-
request$jscomp$0,
|
|
6277
|
-
task.blockedBoundary,
|
|
6278
|
-
task.row,
|
|
6279
|
-
null
|
|
6280
|
-
);
|
|
6281
6742
|
} catch (thrownValue) {
|
|
6282
6743
|
resetHooksState();
|
|
6283
|
-
|
|
6744
|
+
request$jscomp$0.children.length = childrenLength;
|
|
6745
|
+
request$jscomp$0.chunks.length = chunkLength;
|
|
6746
|
+
var x$jscomp$0 =
|
|
6284
6747
|
thrownValue === SuspenseException
|
|
6285
6748
|
? getSuspendedThenable()
|
|
6286
6749
|
: thrownValue;
|
|
6287
|
-
if (
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6750
|
+
if (request.aborted)
|
|
6751
|
+
thrownValue === SuspenseException &&
|
|
6752
|
+
(task.thenableState = getThenableStateAfterSuspending()),
|
|
6753
|
+
(request.currentTask = prevTask$jscomp$0),
|
|
6754
|
+
(request$jscomp$0 = request),
|
|
6755
|
+
abortTask(task, request$jscomp$0),
|
|
6756
|
+
task.abortSet.delete(task),
|
|
6757
|
+
finishAbortedTask(
|
|
6758
|
+
task,
|
|
6759
|
+
request$jscomp$0,
|
|
6760
|
+
request$jscomp$0.fatalError
|
|
6761
|
+
);
|
|
6762
|
+
else {
|
|
6763
|
+
if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
|
|
6764
|
+
if ("function" === typeof x$jscomp$0.then) {
|
|
6765
|
+
request$jscomp$0.status = 0;
|
|
6766
|
+
task.thenableState =
|
|
6767
|
+
thrownValue === SuspenseException
|
|
6768
|
+
? getThenableStateAfterSuspending()
|
|
6769
|
+
: null;
|
|
6770
|
+
var ping$jscomp$0 = task.ping;
|
|
6771
|
+
x$jscomp$0.then(
|
|
6772
|
+
ping$jscomp$0.resolve,
|
|
6773
|
+
ping$jscomp$0.reject
|
|
6774
|
+
);
|
|
6775
|
+
break a;
|
|
6776
|
+
}
|
|
6777
|
+
if (
|
|
6778
|
+
"Maximum call stack size exceeded" === x$jscomp$0.message &&
|
|
6779
|
+
task.node !== startNode$jscomp$0
|
|
6780
|
+
) {
|
|
6781
|
+
request$jscomp$0.status = 0;
|
|
6782
|
+
task.thenableState = null;
|
|
6783
|
+
request.pingedTasks.push(task);
|
|
6784
|
+
break a;
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6787
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
6300
6788
|
task.abortSet.delete(task);
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6789
|
+
request$jscomp$0.status = 4;
|
|
6790
|
+
var boundary$jscomp$0 = task.blockedBoundary,
|
|
6791
|
+
row = task.row;
|
|
6792
|
+
null !== row &&
|
|
6793
|
+
0 === --row.pendingTasks &&
|
|
6794
|
+
finishSuspenseListRow(request, row);
|
|
6795
|
+
request.allPendingTasks--;
|
|
6796
|
+
if (null === boundary$jscomp$0)
|
|
6797
|
+
if (isRecoverableError(x$jscomp$0)) {
|
|
6798
|
+
var fatalRecoverableError =
|
|
6799
|
+
cloneRecoverableErrorAsFatal(x$jscomp$0);
|
|
6800
|
+
logRecoverableError(
|
|
6801
|
+
request,
|
|
6802
|
+
fatalRecoverableError,
|
|
6803
|
+
errorInfo$jscomp$0
|
|
6804
|
+
);
|
|
6805
|
+
fatalError(request, fatalRecoverableError);
|
|
6806
|
+
} else
|
|
6807
|
+
logRecoverableError(
|
|
6808
|
+
request,
|
|
6809
|
+
x$jscomp$0,
|
|
6810
|
+
errorInfo$jscomp$0
|
|
6811
|
+
),
|
|
6812
|
+
fatalError(request, x$jscomp$0);
|
|
6813
|
+
else {
|
|
6814
|
+
var errorDigest$jscomp$0 = logRecoverableError(
|
|
6815
|
+
request,
|
|
6816
|
+
x$jscomp$0,
|
|
6817
|
+
errorInfo$jscomp$0
|
|
6818
|
+
);
|
|
6819
|
+
boundary$jscomp$0.pendingTasks--;
|
|
6820
|
+
if (4 !== boundary$jscomp$0.status) {
|
|
6821
|
+
boundary$jscomp$0.status = 4;
|
|
6822
|
+
boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
|
|
6823
|
+
untrackBoundary(request, boundary$jscomp$0);
|
|
6824
|
+
var boundaryRow = boundary$jscomp$0.row;
|
|
6825
|
+
null !== boundaryRow &&
|
|
6826
|
+
(request.allPendingTasks++,
|
|
6827
|
+
0 === --boundaryRow.pendingTasks &&
|
|
6828
|
+
finishSuspenseListRow(request, boundaryRow),
|
|
6829
|
+
request.allPendingTasks--);
|
|
6830
|
+
boundary$jscomp$0.parentFlushed &&
|
|
6831
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
6832
|
+
0 === request.pendingRootTasks &&
|
|
6833
|
+
null === request.trackedPostpones &&
|
|
6834
|
+
null !== boundary$jscomp$0.preamble &&
|
|
6835
|
+
preparePreamble(request);
|
|
6836
|
+
}
|
|
6837
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
6838
|
+
}
|
|
6330
6839
|
}
|
|
6331
6840
|
} finally {
|
|
6841
|
+
request.currentTask = prevTask$jscomp$0;
|
|
6332
6842
|
}
|
|
6333
6843
|
}
|
|
6334
|
-
} else if (
|
|
6335
|
-
((request$jscomp$0 = void 0),
|
|
6336
|
-
(request$jscomp$1 = segment),
|
|
6337
|
-
0 === request$jscomp$1.status)
|
|
6338
|
-
) {
|
|
6339
|
-
request$jscomp$1.status = 6;
|
|
6340
|
-
switchContext(task.context);
|
|
6341
|
-
var childrenLength = request$jscomp$1.children.length,
|
|
6342
|
-
chunkLength = request$jscomp$1.chunks.length;
|
|
6343
|
-
try {
|
|
6344
|
-
retryNode(request, task),
|
|
6345
|
-
request$jscomp$1.lastPushedText &&
|
|
6346
|
-
request$jscomp$1.textEmbedded &&
|
|
6347
|
-
request$jscomp$1.chunks.push(textSeparator),
|
|
6348
|
-
task.abortSet.delete(task),
|
|
6349
|
-
(request$jscomp$1.status = 1),
|
|
6350
|
-
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
|
6351
|
-
finishedTask(
|
|
6352
|
-
request,
|
|
6353
|
-
task.blockedBoundary,
|
|
6354
|
-
task.row,
|
|
6355
|
-
request$jscomp$1
|
|
6356
|
-
);
|
|
6357
|
-
} catch (thrownValue) {
|
|
6358
|
-
resetHooksState();
|
|
6359
|
-
request$jscomp$1.children.length = childrenLength;
|
|
6360
|
-
request$jscomp$1.chunks.length = chunkLength;
|
|
6361
|
-
var x$jscomp$0 =
|
|
6362
|
-
thrownValue === SuspenseException
|
|
6363
|
-
? getSuspendedThenable()
|
|
6364
|
-
: 12 === request.status
|
|
6365
|
-
? request.fatalError
|
|
6366
|
-
: thrownValue;
|
|
6367
|
-
if (12 === request.status && null !== request.trackedPostpones) {
|
|
6368
|
-
var trackedPostpones = request.trackedPostpones,
|
|
6369
|
-
thrownInfo = getThrownInfo(task.componentStack);
|
|
6370
|
-
task.abortSet.delete(task);
|
|
6371
|
-
logRecoverableError(request, x$jscomp$0, thrownInfo);
|
|
6372
|
-
trackPostpone(request, trackedPostpones, task, request$jscomp$1);
|
|
6373
|
-
finishedTask(
|
|
6374
|
-
request,
|
|
6375
|
-
task.blockedBoundary,
|
|
6376
|
-
task.row,
|
|
6377
|
-
request$jscomp$1
|
|
6378
|
-
);
|
|
6379
|
-
} else if (
|
|
6380
|
-
"object" === typeof x$jscomp$0 &&
|
|
6381
|
-
null !== x$jscomp$0 &&
|
|
6382
|
-
"function" === typeof x$jscomp$0.then
|
|
6383
|
-
) {
|
|
6384
|
-
request$jscomp$1.status = 0;
|
|
6385
|
-
task.thenableState =
|
|
6386
|
-
thrownValue === SuspenseException
|
|
6387
|
-
? getThenableStateAfterSuspending()
|
|
6388
|
-
: null;
|
|
6389
|
-
var ping$jscomp$0 = task.ping;
|
|
6390
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6391
|
-
} else {
|
|
6392
|
-
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
6393
|
-
task.abortSet.delete(task);
|
|
6394
|
-
request$jscomp$1.status = 4;
|
|
6395
|
-
var boundary$jscomp$0 = task.blockedBoundary,
|
|
6396
|
-
row = task.row;
|
|
6397
|
-
null !== row &&
|
|
6398
|
-
0 === --row.pendingTasks &&
|
|
6399
|
-
finishSuspenseListRow(request, row);
|
|
6400
|
-
request.allPendingTasks--;
|
|
6401
|
-
request$jscomp$0 = logRecoverableError(
|
|
6402
|
-
request,
|
|
6403
|
-
x$jscomp$0,
|
|
6404
|
-
errorInfo$jscomp$0
|
|
6405
|
-
);
|
|
6406
|
-
if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
|
|
6407
|
-
else if (
|
|
6408
|
-
(boundary$jscomp$0.pendingTasks--,
|
|
6409
|
-
4 !== boundary$jscomp$0.status)
|
|
6410
|
-
) {
|
|
6411
|
-
boundary$jscomp$0.status = 4;
|
|
6412
|
-
boundary$jscomp$0.errorDigest = request$jscomp$0;
|
|
6413
|
-
untrackBoundary(request, boundary$jscomp$0);
|
|
6414
|
-
var boundaryRow = boundary$jscomp$0.row;
|
|
6415
|
-
null !== boundaryRow &&
|
|
6416
|
-
0 === --boundaryRow.pendingTasks &&
|
|
6417
|
-
finishSuspenseListRow(request, boundaryRow);
|
|
6418
|
-
boundary$jscomp$0.parentFlushed &&
|
|
6419
|
-
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
6420
|
-
0 === request.pendingRootTasks &&
|
|
6421
|
-
null === request.trackedPostpones &&
|
|
6422
|
-
null !== boundary$jscomp$0.contentPreamble &&
|
|
6423
|
-
preparePreamble(request);
|
|
6424
|
-
}
|
|
6425
|
-
0 === request.allPendingTasks && completeAll(request);
|
|
6426
|
-
}
|
|
6427
|
-
} finally {
|
|
6428
|
-
}
|
|
6429
|
-
}
|
|
6430
6844
|
}
|
|
6431
6845
|
pingedTasks.splice(0, i);
|
|
6432
|
-
null !== request$jscomp$
|
|
6433
|
-
flushCompletedQueues(request$jscomp$
|
|
6846
|
+
null !== request$jscomp$1.destination &&
|
|
6847
|
+
flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
|
|
6434
6848
|
} catch (error) {
|
|
6435
|
-
logRecoverableError(request$jscomp$
|
|
6436
|
-
fatalError(request$jscomp$
|
|
6849
|
+
logRecoverableError(request$jscomp$1, error, {}),
|
|
6850
|
+
fatalError(request$jscomp$1, error);
|
|
6437
6851
|
} finally {
|
|
6438
6852
|
(currentResumableState = prevResumableState),
|
|
6439
6853
|
(ReactSharedInternals.H = prevDispatcher),
|
|
@@ -6471,12 +6885,11 @@ function preparePreambleFromSegment(
|
|
|
6471
6885
|
segment,
|
|
6472
6886
|
collectedPreambleSegments
|
|
6473
6887
|
);
|
|
6474
|
-
var preamble = boundary.
|
|
6475
|
-
|
|
6476
|
-
if (null === preamble || null === fallbackPreamble) return !1;
|
|
6888
|
+
var preamble = boundary.preamble;
|
|
6889
|
+
if (null === preamble) return !1;
|
|
6477
6890
|
switch (boundary.status) {
|
|
6478
6891
|
case 1:
|
|
6479
|
-
hoistPreambleState(request.renderState, preamble);
|
|
6892
|
+
hoistPreambleState(request.renderState, preamble.content);
|
|
6480
6893
|
request.byteSize += boundary.byteSize;
|
|
6481
6894
|
segment = boundary.completedSegments[0];
|
|
6482
6895
|
if (!segment)
|
|
@@ -6493,7 +6906,7 @@ function preparePreambleFromSegment(
|
|
|
6493
6906
|
case 4:
|
|
6494
6907
|
if (1 === segment.status)
|
|
6495
6908
|
return (
|
|
6496
|
-
hoistPreambleState(request.renderState,
|
|
6909
|
+
hoistPreambleState(request.renderState, preamble.fallback),
|
|
6497
6910
|
preparePreambleFromSubtree(
|
|
6498
6911
|
request,
|
|
6499
6912
|
segment,
|
|
@@ -6568,6 +6981,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6568
6981
|
var boundary = segment.boundary;
|
|
6569
6982
|
if (null === boundary)
|
|
6570
6983
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
6984
|
+
segment.boundary = null;
|
|
6571
6985
|
boundary.parentFlushed = !0;
|
|
6572
6986
|
if (4 === boundary.status) {
|
|
6573
6987
|
var row = boundary.row;
|
|
@@ -6577,7 +6991,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6577
6991
|
boundary = boundary.errorDigest;
|
|
6578
6992
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
6579
6993
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
6580
|
-
boundary &&
|
|
6994
|
+
null != boundary &&
|
|
6581
6995
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
|
6582
6996
|
writeChunk(destination, escapeTextForBrowser(boundary)),
|
|
6583
6997
|
writeChunk(
|
|
@@ -6601,7 +7015,8 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6601
7015
|
!flushingPartialBoundaries &&
|
|
6602
7016
|
isEligibleForOutlining(request, boundary) &&
|
|
6603
7017
|
(flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
|
|
6604
|
-
hasSuspenseyContent(boundary.contentState)
|
|
7018
|
+
hasSuspenseyContent(boundary.contentState, flushingShell) ||
|
|
7019
|
+
boundary.defer)
|
|
6605
7020
|
)
|
|
6606
7021
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
6607
7022
|
request.completedBoundaries.push(boundary),
|
|
@@ -6667,7 +7082,8 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6667
7082
|
request = request.renderState;
|
|
6668
7083
|
i = boundary.rootSegmentID;
|
|
6669
7084
|
boundary = boundary.contentState;
|
|
6670
|
-
var requiresStyleInsertion = request.stylesToHoist
|
|
7085
|
+
var requiresStyleInsertion = request.stylesToHoist,
|
|
7086
|
+
requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
|
|
6671
7087
|
request.stylesToHoist = !1;
|
|
6672
7088
|
writeChunk(destination, request.startInlineScript);
|
|
6673
7089
|
writeChunk(destination, endOfStartTag);
|
|
@@ -6678,6 +7094,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6678
7094
|
0 === (completedSegments.instructions & 2) &&
|
|
6679
7095
|
((completedSegments.instructions |= 2),
|
|
6680
7096
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
7097
|
+
requiresViewTransitions &&
|
|
7098
|
+
0 === (completedSegments.instructions & 256) &&
|
|
7099
|
+
((completedSegments.instructions |= 256),
|
|
7100
|
+
writeChunk(
|
|
7101
|
+
destination,
|
|
7102
|
+
'$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);'
|
|
7103
|
+
)),
|
|
6681
7104
|
0 === (completedSegments.instructions & 8)
|
|
6682
7105
|
? ((completedSegments.instructions |= 8),
|
|
6683
7106
|
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
|
@@ -6685,6 +7108,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6685
7108
|
: (0 === (completedSegments.instructions & 2) &&
|
|
6686
7109
|
((completedSegments.instructions |= 2),
|
|
6687
7110
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
7111
|
+
requiresViewTransitions &&
|
|
7112
|
+
0 === (completedSegments.instructions & 256) &&
|
|
7113
|
+
((completedSegments.instructions |= 256),
|
|
7114
|
+
writeChunk(
|
|
7115
|
+
destination,
|
|
7116
|
+
'$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);'
|
|
7117
|
+
)),
|
|
6688
7118
|
writeChunk(destination, completeBoundaryScript1Partial));
|
|
6689
7119
|
completedSegments = i.toString(16);
|
|
6690
7120
|
writeChunk(destination, request.boundaryPrefix);
|
|
@@ -6735,9 +7165,10 @@ function flushPartiallyCompletedSegment(
|
|
|
6735
7165
|
destination = writeChunkAndReturn(destination, completeSegmentScriptEnd);
|
|
6736
7166
|
return destination;
|
|
6737
7167
|
}
|
|
6738
|
-
var flushingPartialBoundaries = !1
|
|
7168
|
+
var flushingPartialBoundaries = !1,
|
|
7169
|
+
flushingShell = !1;
|
|
6739
7170
|
function flushCompletedQueues(request, destination) {
|
|
6740
|
-
currentView = new Uint8Array(
|
|
7171
|
+
currentView = new Uint8Array(4096);
|
|
6741
7172
|
writtenBytes = 0;
|
|
6742
7173
|
destinationHasCapacity$1 = !0;
|
|
6743
7174
|
try {
|
|
@@ -6818,7 +7249,9 @@ function flushCompletedQueues(request, destination) {
|
|
|
6818
7249
|
completedPreambleSegments++
|
|
6819
7250
|
)
|
|
6820
7251
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
7252
|
+
flushingShell = !0;
|
|
6821
7253
|
flushSegment(request, destination, completedRootSegment, null);
|
|
7254
|
+
flushingShell = !1;
|
|
6822
7255
|
request.completedRootSegment = null;
|
|
6823
7256
|
var renderState$jscomp$0 = request.renderState;
|
|
6824
7257
|
if (
|
|
@@ -6899,15 +7332,17 @@ function flushCompletedQueues(request, destination) {
|
|
|
6899
7332
|
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
|
6900
7333
|
writeChunk(renderState$jscomp$1, id.toString(16));
|
|
6901
7334
|
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
|
6902
|
-
errorDigest &&
|
|
7335
|
+
null != errorDigest &&
|
|
6903
7336
|
(writeChunk(
|
|
6904
7337
|
renderState$jscomp$1,
|
|
6905
7338
|
clientRenderErrorScriptArgInterstitial
|
|
6906
7339
|
),
|
|
6907
|
-
|
|
6908
|
-
renderState$jscomp$1,
|
|
6909
|
-
|
|
6910
|
-
|
|
7340
|
+
null == errorDigest
|
|
7341
|
+
? writeChunk(renderState$jscomp$1, clientRenderErrorScriptNull)
|
|
7342
|
+
: writeChunk(
|
|
7343
|
+
renderState$jscomp$1,
|
|
7344
|
+
escapeJSStringsForInstructionScripts(errorDigest)
|
|
7345
|
+
));
|
|
6911
7346
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
|
6912
7347
|
renderState$jscomp$1,
|
|
6913
7348
|
clientRenderScriptEnd
|
|
@@ -6932,17 +7367,17 @@ function flushCompletedQueues(request, destination) {
|
|
|
6932
7367
|
}
|
|
6933
7368
|
completedBoundaries.splice(0, i);
|
|
6934
7369
|
completeWriting(destination);
|
|
6935
|
-
currentView = new Uint8Array(
|
|
7370
|
+
currentView = new Uint8Array(4096);
|
|
6936
7371
|
writtenBytes = 0;
|
|
6937
7372
|
flushingPartialBoundaries = destinationHasCapacity$1 = !0;
|
|
6938
7373
|
var partialBoundaries = request.partialBoundaries;
|
|
6939
7374
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
6940
|
-
var boundary$
|
|
7375
|
+
var boundary$71 = partialBoundaries[i];
|
|
6941
7376
|
a: {
|
|
6942
7377
|
clientRenderedBoundaries = request;
|
|
6943
7378
|
boundary = destination;
|
|
6944
|
-
flushedByteSize = boundary$
|
|
6945
|
-
var completedSegments = boundary$
|
|
7379
|
+
flushedByteSize = boundary$71.byteSize;
|
|
7380
|
+
var completedSegments = boundary$71.completedSegments;
|
|
6946
7381
|
for (
|
|
6947
7382
|
JSCompiler_inline_result = 0;
|
|
6948
7383
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -6952,7 +7387,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
6952
7387
|
!flushPartiallyCompletedSegment(
|
|
6953
7388
|
clientRenderedBoundaries,
|
|
6954
7389
|
boundary,
|
|
6955
|
-
boundary$
|
|
7390
|
+
boundary$71,
|
|
6956
7391
|
completedSegments[JSCompiler_inline_result]
|
|
6957
7392
|
)
|
|
6958
7393
|
) {
|
|
@@ -6962,10 +7397,10 @@ function flushCompletedQueues(request, destination) {
|
|
|
6962
7397
|
break a;
|
|
6963
7398
|
}
|
|
6964
7399
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
6965
|
-
var row = boundary$
|
|
7400
|
+
var row = boundary$71.row;
|
|
6966
7401
|
null !== row &&
|
|
6967
7402
|
row.together &&
|
|
6968
|
-
1 === boundary$
|
|
7403
|
+
1 === boundary$71.pendingTasks &&
|
|
6969
7404
|
(1 === row.pendingTasks
|
|
6970
7405
|
? unblockSuspenseListRow(
|
|
6971
7406
|
clientRenderedBoundaries,
|
|
@@ -6975,7 +7410,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
6975
7410
|
: row.pendingTasks--);
|
|
6976
7411
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
6977
7412
|
boundary,
|
|
6978
|
-
boundary$
|
|
7413
|
+
boundary$71.contentState,
|
|
6979
7414
|
clientRenderedBoundaries.renderState
|
|
6980
7415
|
);
|
|
6981
7416
|
}
|
|
@@ -7000,6 +7435,8 @@ function flushCompletedQueues(request, destination) {
|
|
|
7000
7435
|
}
|
|
7001
7436
|
} finally {
|
|
7002
7437
|
(flushingPartialBoundaries = !1),
|
|
7438
|
+
(i = request.postponedState),
|
|
7439
|
+
null !== i && (i.nextSegmentId = request.nextSegmentId),
|
|
7003
7440
|
0 === request.allPendingTasks &&
|
|
7004
7441
|
0 === request.clientRenderedBoundaries.length &&
|
|
7005
7442
|
0 === request.completedBoundaries.length
|
|
@@ -7009,7 +7446,8 @@ function flushCompletedQueues(request, destination) {
|
|
|
7009
7446
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
7010
7447
|
completeWriting(destination),
|
|
7011
7448
|
flushBuffered(destination),
|
|
7012
|
-
(request
|
|
7449
|
+
endRenderLifetime(request),
|
|
7450
|
+
(request.status = 13),
|
|
7013
7451
|
destination.end(),
|
|
7014
7452
|
(request.destination = null))
|
|
7015
7453
|
: (completeWriting(destination), flushBuffered(destination));
|
|
@@ -7046,40 +7484,79 @@ function enqueueFlush(request) {
|
|
|
7046
7484
|
}));
|
|
7047
7485
|
}
|
|
7048
7486
|
function startFlowing(request, destination) {
|
|
7049
|
-
if (
|
|
7050
|
-
(request.status =
|
|
7051
|
-
|
|
7487
|
+
if (12 === request.status)
|
|
7488
|
+
(request.status = 13),
|
|
7489
|
+
(request = request.fatalError),
|
|
7490
|
+
isRecoverableError(request) &&
|
|
7491
|
+
(request = cloneRecoverableErrorAsFatal(request)),
|
|
7492
|
+
destination.destroy(request);
|
|
7493
|
+
else if (13 !== request.status && null === request.destination) {
|
|
7052
7494
|
request.destination = destination;
|
|
7053
7495
|
try {
|
|
7054
7496
|
flushCompletedQueues(request, destination);
|
|
7055
|
-
} catch (error) {
|
|
7056
|
-
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
7497
|
+
} catch (error$73) {
|
|
7498
|
+
logRecoverableError(request, error$73, {}), fatalError(request, error$73);
|
|
7057
7499
|
}
|
|
7058
7500
|
}
|
|
7059
7501
|
}
|
|
7060
|
-
function
|
|
7061
|
-
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
7502
|
+
function finishAbort(request, abortableTasks) {
|
|
7062
7503
|
try {
|
|
7063
|
-
var abortableTasks = request.abortableTasks;
|
|
7064
7504
|
if (0 < abortableTasks.size) {
|
|
7065
|
-
var error =
|
|
7066
|
-
void 0 === reason
|
|
7067
|
-
? Error("The render was aborted by the server without a reason.")
|
|
7068
|
-
: "object" === typeof reason &&
|
|
7069
|
-
null !== reason &&
|
|
7070
|
-
"function" === typeof reason.then
|
|
7071
|
-
? Error("The render was aborted by the server with a promise.")
|
|
7072
|
-
: reason;
|
|
7073
|
-
request.fatalError = error;
|
|
7505
|
+
var error = request.fatalError;
|
|
7074
7506
|
abortableTasks.forEach(function (task) {
|
|
7075
|
-
return
|
|
7507
|
+
return finishAbortedTask(task, request, error);
|
|
7076
7508
|
});
|
|
7077
7509
|
abortableTasks.clear();
|
|
7078
7510
|
}
|
|
7079
7511
|
null !== request.destination &&
|
|
7080
7512
|
flushCompletedQueues(request, request.destination);
|
|
7081
|
-
} catch (error$
|
|
7082
|
-
logRecoverableError(request, error$
|
|
7513
|
+
} catch (error$74) {
|
|
7514
|
+
logRecoverableError(request, error$74, {}), fatalError(request, error$74);
|
|
7515
|
+
}
|
|
7516
|
+
}
|
|
7517
|
+
function endRenderLifetime(request) {
|
|
7518
|
+
request = request.renderLifetimeController;
|
|
7519
|
+
null !== request && request.abort("The render ended.");
|
|
7520
|
+
}
|
|
7521
|
+
function attachAbortSignal(request, signal) {
|
|
7522
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
7523
|
+
else {
|
|
7524
|
+
var renderLifetimeController = new AbortController();
|
|
7525
|
+
request.renderLifetimeController = renderLifetimeController;
|
|
7526
|
+
signal.addEventListener(
|
|
7527
|
+
"abort",
|
|
7528
|
+
function () {
|
|
7529
|
+
abort(request, signal.reason);
|
|
7530
|
+
},
|
|
7531
|
+
{ signal: renderLifetimeController.signal }
|
|
7532
|
+
);
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
function abort(request, reason) {
|
|
7536
|
+
if (!(request.aborted || (11 !== request.status && 10 !== request.status))) {
|
|
7537
|
+
endRenderLifetime(request);
|
|
7538
|
+
var isRecoverableReason =
|
|
7539
|
+
"object" === typeof reason &&
|
|
7540
|
+
null !== reason &&
|
|
7541
|
+
reason.$$typeof === REACT_RECOVERABLE_TYPE;
|
|
7542
|
+
request.aborted = !0;
|
|
7543
|
+
reason = isRecoverableReason
|
|
7544
|
+
? createRecoverableError(reason)
|
|
7545
|
+
: void 0 === reason
|
|
7546
|
+
? Error("The render was aborted by the server without a reason.")
|
|
7547
|
+
: "object" === typeof reason &&
|
|
7548
|
+
null !== reason &&
|
|
7549
|
+
"function" === typeof reason.then
|
|
7550
|
+
? Error("The render was aborted by the server with a promise.")
|
|
7551
|
+
: reason;
|
|
7552
|
+
request.fatalError = reason;
|
|
7553
|
+
var abortableTasks = request.abortableTasks;
|
|
7554
|
+
abortableTasks.forEach(function (task) {
|
|
7555
|
+
return abortTask(task, request);
|
|
7556
|
+
});
|
|
7557
|
+
setImmediate(function () {
|
|
7558
|
+
return finishAbort(request, abortableTasks);
|
|
7559
|
+
});
|
|
7083
7560
|
}
|
|
7084
7561
|
}
|
|
7085
7562
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -7102,11 +7579,11 @@ function getPostponedState(request) {
|
|
|
7102
7579
|
null === trackedPostpones.rootSlots)
|
|
7103
7580
|
)
|
|
7104
7581
|
return (request.trackedPostpones = null);
|
|
7105
|
-
|
|
7582
|
+
var hasFlushableShell =
|
|
7106
7583
|
null === request.completedRootSegment ||
|
|
7107
7584
|
(5 !== request.completedRootSegment.status &&
|
|
7108
|
-
null !== request.completedPreambleSegments)
|
|
7109
|
-
) {
|
|
7585
|
+
null !== request.completedPreambleSegments);
|
|
7586
|
+
if (hasFlushableShell) {
|
|
7110
7587
|
var nextSegmentId = request.nextSegmentId;
|
|
7111
7588
|
var replaySlots = trackedPostpones.rootSlots;
|
|
7112
7589
|
var resumableState = request.resumableState;
|
|
@@ -7131,7 +7608,7 @@ function getPostponedState(request) {
|
|
|
7131
7608
|
resumableState.moduleScriptResources = {};
|
|
7132
7609
|
resumableState.instructions = 0;
|
|
7133
7610
|
}
|
|
7134
|
-
|
|
7611
|
+
trackedPostpones = {
|
|
7135
7612
|
nextSegmentId: nextSegmentId,
|
|
7136
7613
|
rootFormatContext: request.rootFormatContext,
|
|
7137
7614
|
progressiveChunkSize: request.progressiveChunkSize,
|
|
@@ -7139,14 +7616,16 @@ function getPostponedState(request) {
|
|
|
7139
7616
|
replayNodes: trackedPostpones.rootNodes,
|
|
7140
7617
|
replaySlots: replaySlots
|
|
7141
7618
|
};
|
|
7619
|
+
hasFlushableShell && (request.postponedState = trackedPostpones);
|
|
7620
|
+
return trackedPostpones;
|
|
7142
7621
|
}
|
|
7143
7622
|
function ensureCorrectIsomorphicReactVersion() {
|
|
7144
7623
|
var isomorphicReactPackageVersion = React.version;
|
|
7145
|
-
if ("19.
|
|
7624
|
+
if ("19.3.0" !== isomorphicReactPackageVersion)
|
|
7146
7625
|
throw Error(
|
|
7147
7626
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7148
7627
|
(isomorphicReactPackageVersion +
|
|
7149
|
-
"\n - react-dom: 19.
|
|
7628
|
+
"\n - react-dom: 19.3.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7150
7629
|
);
|
|
7151
7630
|
}
|
|
7152
7631
|
ensureCorrectIsomorphicReactVersion();
|
|
@@ -7183,11 +7662,11 @@ function createRequestImpl(children, options) {
|
|
|
7183
7662
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7184
7663
|
options ? options.progressiveChunkSize : void 0,
|
|
7185
7664
|
options ? options.onError : void 0,
|
|
7665
|
+
options ? options.onBrowserBailout : void 0,
|
|
7186
7666
|
options ? options.onAllReady : void 0,
|
|
7187
7667
|
options ? options.onShellReady : void 0,
|
|
7188
7668
|
options ? options.onShellError : void 0,
|
|
7189
7669
|
void 0,
|
|
7190
|
-
options ? options.onPostpone : void 0,
|
|
7191
7670
|
options ? options.formState : void 0
|
|
7192
7671
|
);
|
|
7193
7672
|
}
|
|
@@ -7221,11 +7700,11 @@ function resumeRequestImpl(children, postponedState, options) {
|
|
|
7221
7700
|
void 0
|
|
7222
7701
|
),
|
|
7223
7702
|
options ? options.onError : void 0,
|
|
7703
|
+
options ? options.onBrowserBailout : void 0,
|
|
7224
7704
|
options ? options.onAllReady : void 0,
|
|
7225
7705
|
options ? options.onShellReady : void 0,
|
|
7226
7706
|
options ? options.onShellError : void 0,
|
|
7227
|
-
void 0
|
|
7228
|
-
options ? options.onPostpone : void 0
|
|
7707
|
+
void 0
|
|
7229
7708
|
);
|
|
7230
7709
|
}
|
|
7231
7710
|
ensureCorrectIsomorphicReactVersion();
|
|
@@ -7288,6 +7767,7 @@ exports.prerender = function (children, options) {
|
|
|
7288
7767
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7289
7768
|
options ? options.progressiveChunkSize : void 0,
|
|
7290
7769
|
options ? options.onError : void 0,
|
|
7770
|
+
options ? options.onBrowserBailout : void 0,
|
|
7291
7771
|
function () {
|
|
7292
7772
|
var writable,
|
|
7293
7773
|
stream = new ReadableStream(
|
|
@@ -7312,20 +7792,9 @@ exports.prerender = function (children, options) {
|
|
|
7312
7792
|
},
|
|
7313
7793
|
void 0,
|
|
7314
7794
|
void 0,
|
|
7315
|
-
reject
|
|
7316
|
-
options ? options.onPostpone : void 0
|
|
7795
|
+
reject
|
|
7317
7796
|
);
|
|
7318
|
-
|
|
7319
|
-
var signal = options.signal;
|
|
7320
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7321
|
-
else {
|
|
7322
|
-
var listener = function () {
|
|
7323
|
-
abort(request, signal.reason);
|
|
7324
|
-
signal.removeEventListener("abort", listener);
|
|
7325
|
-
};
|
|
7326
|
-
signal.addEventListener("abort", listener);
|
|
7327
|
-
}
|
|
7328
|
-
}
|
|
7797
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7329
7798
|
startWork(request);
|
|
7330
7799
|
});
|
|
7331
7800
|
};
|
|
@@ -7352,6 +7821,7 @@ exports.prerenderToNodeStream = function (children, options) {
|
|
|
7352
7821
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7353
7822
|
options ? options.progressiveChunkSize : void 0,
|
|
7354
7823
|
options ? options.onError : void 0,
|
|
7824
|
+
options ? options.onBrowserBailout : void 0,
|
|
7355
7825
|
function () {
|
|
7356
7826
|
var readable = new stream.Readable({
|
|
7357
7827
|
read: function () {
|
|
@@ -7367,20 +7837,9 @@ exports.prerenderToNodeStream = function (children, options) {
|
|
|
7367
7837
|
},
|
|
7368
7838
|
void 0,
|
|
7369
7839
|
void 0,
|
|
7370
|
-
reject
|
|
7371
|
-
options ? options.onPostpone : void 0
|
|
7840
|
+
reject
|
|
7372
7841
|
);
|
|
7373
|
-
|
|
7374
|
-
var signal = options.signal;
|
|
7375
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7376
|
-
else {
|
|
7377
|
-
var listener = function () {
|
|
7378
|
-
abort(request, signal.reason);
|
|
7379
|
-
signal.removeEventListener("abort", listener);
|
|
7380
|
-
};
|
|
7381
|
-
signal.addEventListener("abort", listener);
|
|
7382
|
-
}
|
|
7383
|
-
}
|
|
7842
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7384
7843
|
startWork(request);
|
|
7385
7844
|
});
|
|
7386
7845
|
};
|
|
@@ -7458,6 +7917,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7458
7917
|
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
7459
7918
|
options ? options.progressiveChunkSize : void 0,
|
|
7460
7919
|
options ? options.onError : void 0,
|
|
7920
|
+
options ? options.onBrowserBailout : void 0,
|
|
7461
7921
|
onAllReady,
|
|
7462
7922
|
function () {
|
|
7463
7923
|
var writable,
|
|
@@ -7488,20 +7948,9 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7488
7948
|
reject(error);
|
|
7489
7949
|
},
|
|
7490
7950
|
onFatalError,
|
|
7491
|
-
options ? options.onPostpone : void 0,
|
|
7492
7951
|
options ? options.formState : void 0
|
|
7493
7952
|
);
|
|
7494
|
-
|
|
7495
|
-
var signal = options.signal;
|
|
7496
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7497
|
-
else {
|
|
7498
|
-
var listener = function () {
|
|
7499
|
-
abort(request, signal.reason);
|
|
7500
|
-
signal.removeEventListener("abort", listener);
|
|
7501
|
-
};
|
|
7502
|
-
signal.addEventListener("abort", listener);
|
|
7503
|
-
}
|
|
7504
|
-
}
|
|
7953
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7505
7954
|
startWork(request);
|
|
7506
7955
|
});
|
|
7507
7956
|
};
|
|
@@ -7525,6 +7974,7 @@ exports.resume = function (children, postponedState, options) {
|
|
|
7525
7974
|
void 0
|
|
7526
7975
|
),
|
|
7527
7976
|
options ? options.onError : void 0,
|
|
7977
|
+
options ? options.onBrowserBailout : void 0,
|
|
7528
7978
|
onAllReady,
|
|
7529
7979
|
function () {
|
|
7530
7980
|
var writable,
|
|
@@ -7554,20 +8004,9 @@ exports.resume = function (children, postponedState, options) {
|
|
|
7554
8004
|
allReady.catch(function () {});
|
|
7555
8005
|
reject(error);
|
|
7556
8006
|
},
|
|
7557
|
-
onFatalError
|
|
7558
|
-
options ? options.onPostpone : void 0
|
|
8007
|
+
onFatalError
|
|
7559
8008
|
);
|
|
7560
|
-
|
|
7561
|
-
var signal = options.signal;
|
|
7562
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7563
|
-
else {
|
|
7564
|
-
var listener = function () {
|
|
7565
|
-
abort(request, signal.reason);
|
|
7566
|
-
signal.removeEventListener("abort", listener);
|
|
7567
|
-
};
|
|
7568
|
-
signal.addEventListener("abort", listener);
|
|
7569
|
-
}
|
|
7570
|
-
}
|
|
8009
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7571
8010
|
startWork(request);
|
|
7572
8011
|
});
|
|
7573
8012
|
};
|
|
@@ -7585,6 +8024,7 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
|
7585
8024
|
void 0
|
|
7586
8025
|
),
|
|
7587
8026
|
options ? options.onError : void 0,
|
|
8027
|
+
options ? options.onBrowserBailout : void 0,
|
|
7588
8028
|
function () {
|
|
7589
8029
|
var writable,
|
|
7590
8030
|
stream = new ReadableStream(
|
|
@@ -7609,20 +8049,9 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
|
7609
8049
|
},
|
|
7610
8050
|
void 0,
|
|
7611
8051
|
void 0,
|
|
7612
|
-
reject
|
|
7613
|
-
options ? options.onPostpone : void 0
|
|
8052
|
+
reject
|
|
7614
8053
|
);
|
|
7615
|
-
|
|
7616
|
-
var signal = options.signal;
|
|
7617
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7618
|
-
else {
|
|
7619
|
-
var listener = function () {
|
|
7620
|
-
abort(request, signal.reason);
|
|
7621
|
-
signal.removeEventListener("abort", listener);
|
|
7622
|
-
};
|
|
7623
|
-
signal.addEventListener("abort", listener);
|
|
7624
|
-
}
|
|
7625
|
-
}
|
|
8054
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7626
8055
|
startWork(request);
|
|
7627
8056
|
});
|
|
7628
8057
|
};
|
|
@@ -7644,6 +8073,7 @@ exports.resumeAndPrerenderToNodeStream = function (
|
|
|
7644
8073
|
void 0
|
|
7645
8074
|
),
|
|
7646
8075
|
options ? options.onError : void 0,
|
|
8076
|
+
options ? options.onBrowserBailout : void 0,
|
|
7647
8077
|
function () {
|
|
7648
8078
|
var readable = new stream.Readable({
|
|
7649
8079
|
read: function () {
|
|
@@ -7656,20 +8086,9 @@ exports.resumeAndPrerenderToNodeStream = function (
|
|
|
7656
8086
|
},
|
|
7657
8087
|
void 0,
|
|
7658
8088
|
void 0,
|
|
7659
|
-
reject
|
|
7660
|
-
options ? options.onPostpone : void 0
|
|
8089
|
+
reject
|
|
7661
8090
|
);
|
|
7662
|
-
|
|
7663
|
-
var signal = options.signal;
|
|
7664
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
7665
|
-
else {
|
|
7666
|
-
var listener = function () {
|
|
7667
|
-
abort(request, signal.reason);
|
|
7668
|
-
signal.removeEventListener("abort", listener);
|
|
7669
|
-
};
|
|
7670
|
-
signal.addEventListener("abort", listener);
|
|
7671
|
-
}
|
|
7672
|
-
}
|
|
8091
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
7673
8092
|
startWork(request);
|
|
7674
8093
|
});
|
|
7675
8094
|
};
|
|
@@ -7704,4 +8123,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) {
|
|
|
7704
8123
|
}
|
|
7705
8124
|
};
|
|
7706
8125
|
};
|
|
7707
|
-
exports.version = "19.
|
|
8126
|
+
exports.version = "19.3.0";
|