@vitejs/plugin-rsc 0.5.34 → 0.5.35
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/README.md +15 -0
- package/dist/browser.d.ts +1 -1
- package/dist/{cjs-AWVWfddx.js → cjs-DhDj_zQT.js} +2 -2
- package/dist/client-Dq3oGLRS.d.ts +8 -0
- package/dist/{client-reference-DEZtXTv1.d.ts → client-reference-Bk5pzNGN.d.ts} +1 -1
- package/dist/client.node-BEQT2PT-.d.ts +9 -0
- package/dist/client.shared-D1HxyClg.js +10 -0
- package/dist/client.shared-VT232QCM.d.ts +16 -0
- package/dist/core/browser.js +1 -1
- package/dist/core/plugin.d.ts +2 -3
- package/dist/core/rsc.d.ts +1 -1
- package/dist/core/rsc.js +1 -1
- package/dist/core/ssr.d.ts +1 -7
- package/dist/core/ssr.js +1 -1
- package/dist/{index-C5IY2S-e.d.ts → index-CROaL0MT.d.ts} +34 -8
- package/dist/index.js +1 -1
- package/dist/{picocolors-391UXIDd.js → picocolors-DCTC64Zv.js} +1 -1
- package/dist/{plugin-Cbs9j6lP.js → plugin-CLvIS10V.js} +37 -27
- package/dist/plugin.js +1 -1
- package/dist/plugins/cjs.d.ts +2 -3
- package/dist/plugins/cjs.js +1 -1
- package/dist/react/browser.d.ts +10 -10
- package/dist/react/rsc/client.d.ts +1 -1
- package/dist/react/rsc/client.js +2 -5
- package/dist/react/rsc/client.node.d.ts +2 -0
- package/dist/react/rsc/client.node.js +16 -0
- package/dist/react/rsc/server.d.ts +2 -2
- package/dist/react/rsc/server.node.d.ts +3 -0
- package/dist/react/rsc/server.node.js +24 -0
- package/dist/react/rsc/static.d.ts +4 -5
- package/dist/react/rsc/static.node.d.ts +6 -0
- package/dist/react/rsc/static.node.js +11 -0
- package/dist/react/rsc.d.ts +3 -3
- package/dist/react/ssr.d.ts +9 -9
- package/dist/react/ssr.node.d.ts +12 -0
- package/dist/react/ssr.node.js +21 -0
- package/dist/rsc/client.d.ts +1 -1
- package/dist/rsc/client.node.d.ts +2 -0
- package/dist/rsc/client.node.js +3 -0
- package/dist/rsc/server.d.ts +5 -5
- package/dist/rsc/server.node.d.ts +19 -0
- package/dist/rsc/server.node.js +13 -0
- package/dist/rsc/static.d.ts +4 -5
- package/dist/rsc/static.node.d.ts +16 -0
- package/dist/rsc/static.node.js +12 -0
- package/dist/{rsc-C3UdJLOW.d.ts → rsc-D8UlANI2.d.ts} +1 -1
- package/dist/rsc.d.ts +3 -3
- package/dist/rsc.node.d.ts +6 -0
- package/dist/rsc.node.js +7 -0
- package/dist/{scope-Bdx33sQv.js → scope-Ck0n25my.js} +2 -4
- package/dist/{server-ZBjqNTqU.d.ts → server-YwgjVtsE.d.ts} +2 -2
- package/dist/server.node-DU77AeKU.d.ts +15 -0
- package/dist/shared-BWJvctW6.js +34 -0
- package/dist/shared-CXQb6hk9.js +89 -0
- package/dist/shared-DJBuYpZL.d.ts +20 -0
- package/dist/ssr-C-U7jY5S.d.ts +8 -0
- package/dist/ssr.d.ts +3 -21
- package/dist/ssr.js +1 -87
- package/dist/ssr.node.d.ts +5 -0
- package/dist/ssr.node.js +4 -0
- package/dist/transforms/index.js +67 -60
- package/dist/utils/encryption-runtime.d.ts +3 -4
- package/dist/utils/encryption-runtime.js +4 -2
- package/dist/utils/rpc.d.ts +3 -4
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +909 -495
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +399 -265
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +901 -477
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +380 -219
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +925 -484
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +385 -221
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +726 -388
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +566 -397
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +734 -397
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +477 -238
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +1029 -620
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +481 -261
- package/dist/vendor/react-server-dom/esm/react-server-dom-webpack-node-loader.production.js +2 -2
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/package.json +15 -15
- package/dist/client-Bhch3O41.d.ts +0 -19
- package/dist/dist-uqdtSkzK.js +0 -64
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js
CHANGED
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
+
function checkEvalAvailabilityOnceDev() {
|
|
15
|
+
if (!hasConfirmedEval) {
|
|
16
|
+
hasConfirmedEval = !0;
|
|
17
|
+
try {
|
|
18
|
+
(0, eval)("null");
|
|
19
|
+
} catch ($jscomp$unused$catch) {
|
|
20
|
+
console.error(
|
|
21
|
+
"eval() is not supported in this environment. This can happen if you started the Node.js process with --disallow-code-generation-from-strings, or if `eval` was patched by other means. React requires eval() in development mode for various debugging features like reconstructing callstacks from a different environment.\nReact will never use eval() in production mode"
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
14
26
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
27
|
if (bundlerConfig) {
|
|
16
28
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -129,7 +141,12 @@
|
|
|
129
141
|
JSCompiler_temp_const$jscomp$0.call(
|
|
130
142
|
JSCompiler_temp_const,
|
|
131
143
|
JSCompiler_temp_const$jscomp$1,
|
|
132
|
-
{
|
|
144
|
+
{
|
|
145
|
+
crossOrigin: JSCompiler_inline_result,
|
|
146
|
+
integrity: void 0,
|
|
147
|
+
fetchPriority: void 0,
|
|
148
|
+
nonce: nonce
|
|
149
|
+
}
|
|
133
150
|
);
|
|
134
151
|
}
|
|
135
152
|
}
|
|
@@ -206,6 +223,8 @@
|
|
|
206
223
|
return "Suspense";
|
|
207
224
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
208
225
|
return "SuspenseList";
|
|
226
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
227
|
+
return "ViewTransition";
|
|
209
228
|
}
|
|
210
229
|
if ("object" === typeof type)
|
|
211
230
|
switch (type.$$typeof) {
|
|
@@ -343,9 +362,36 @@
|
|
|
343
362
|
root,
|
|
344
363
|
formFieldPrefix,
|
|
345
364
|
temporaryReferences,
|
|
346
|
-
|
|
347
|
-
|
|
365
|
+
onResolve,
|
|
366
|
+
onReject,
|
|
367
|
+
signal
|
|
348
368
|
) {
|
|
369
|
+
function endReplyLifetime() {
|
|
370
|
+
null !== replyLifetimeController &&
|
|
371
|
+
replyLifetimeController.abort("The reply ended.");
|
|
372
|
+
}
|
|
373
|
+
function resolve(value) {
|
|
374
|
+
settled = !0;
|
|
375
|
+
endReplyLifetime();
|
|
376
|
+
onResolve(value);
|
|
377
|
+
}
|
|
378
|
+
function reject(error) {
|
|
379
|
+
settled = !0;
|
|
380
|
+
endReplyLifetime();
|
|
381
|
+
onReject(error);
|
|
382
|
+
}
|
|
383
|
+
function attachAbortSignal(abortSignal) {
|
|
384
|
+
abortSignal.aborted
|
|
385
|
+
? abort()
|
|
386
|
+
: ((replyLifetimeController = new AbortController()),
|
|
387
|
+
abortSignal.addEventListener(
|
|
388
|
+
"abort",
|
|
389
|
+
function () {
|
|
390
|
+
abort();
|
|
391
|
+
},
|
|
392
|
+
{ signal: replyLifetimeController.signal }
|
|
393
|
+
));
|
|
394
|
+
}
|
|
349
395
|
function serializeTypedArray(tag, typedArray) {
|
|
350
396
|
typedArray = new Blob([
|
|
351
397
|
new Uint8Array(
|
|
@@ -476,6 +522,8 @@
|
|
|
476
522
|
"$T"
|
|
477
523
|
);
|
|
478
524
|
}
|
|
525
|
+
if (void 0 !== temporaryReferences && modelRoot === value)
|
|
526
|
+
return (modelRoot = null), "$T";
|
|
479
527
|
throw Error(
|
|
480
528
|
"React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options." +
|
|
481
529
|
describeObjectForErrorMessage(this, key)
|
|
@@ -646,7 +694,7 @@
|
|
|
646
694
|
return serializeAsyncIterable(value, parentReference.call(value));
|
|
647
695
|
parentReference = getPrototypeOf(value);
|
|
648
696
|
if (
|
|
649
|
-
parentReference !== ObjectPrototype &&
|
|
697
|
+
parentReference !== ObjectPrototype$1 &&
|
|
650
698
|
(null === parentReference ||
|
|
651
699
|
null !== getPrototypeOf(parentReference))
|
|
652
700
|
) {
|
|
@@ -752,21 +800,26 @@
|
|
|
752
800
|
modelRoot = model;
|
|
753
801
|
return JSON.stringify(model, resolveToJSON);
|
|
754
802
|
}
|
|
803
|
+
function abort() {
|
|
804
|
+
endReplyLifetime();
|
|
805
|
+
0 < pendingParts &&
|
|
806
|
+
((pendingParts = 0),
|
|
807
|
+
null === formData ? resolve(json) : resolve(formData));
|
|
808
|
+
}
|
|
755
809
|
var nextPartId = 1,
|
|
756
810
|
pendingParts = 0,
|
|
757
811
|
formData = null,
|
|
758
812
|
writtenObjects = new WeakMap(),
|
|
759
813
|
modelRoot = root,
|
|
760
|
-
|
|
814
|
+
settled = !1,
|
|
815
|
+
replyLifetimeController = null;
|
|
816
|
+
checkEvalAvailabilityOnceDev();
|
|
817
|
+
var json = serializeModel(root, 0);
|
|
761
818
|
null === formData
|
|
762
819
|
? resolve(json)
|
|
763
820
|
: (formData.set(formFieldPrefix + "0", json),
|
|
764
821
|
0 === pendingParts && resolve(formData));
|
|
765
|
-
|
|
766
|
-
0 < pendingParts &&
|
|
767
|
-
((pendingParts = 0),
|
|
768
|
-
null === formData ? resolve(json) : resolve(formData));
|
|
769
|
-
};
|
|
822
|
+
void 0 === signal || settled || attachAbortSignal(signal);
|
|
770
823
|
}
|
|
771
824
|
function encodeFormData(reference) {
|
|
772
825
|
var resolve,
|
|
@@ -1091,6 +1144,8 @@
|
|
|
1091
1144
|
return "SuspenseList";
|
|
1092
1145
|
case REACT_ACTIVITY_TYPE:
|
|
1093
1146
|
return "Activity";
|
|
1147
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
1148
|
+
return "ViewTransition";
|
|
1094
1149
|
}
|
|
1095
1150
|
if ("object" === typeof type)
|
|
1096
1151
|
switch (
|
|
@@ -1130,7 +1185,7 @@
|
|
|
1130
1185
|
return null;
|
|
1131
1186
|
}
|
|
1132
1187
|
function getArrayKind(array) {
|
|
1133
|
-
for (var kind = 0, i = 0; i < array.length; i++) {
|
|
1188
|
+
for (var kind = 0, i = 0; i < array.length && 100 > i; i++) {
|
|
1134
1189
|
var value = array[i];
|
|
1135
1190
|
if ("object" === typeof value && null !== value)
|
|
1136
1191
|
if (
|
|
@@ -1145,7 +1200,8 @@
|
|
|
1145
1200
|
if (
|
|
1146
1201
|
"function" === typeof value ||
|
|
1147
1202
|
("string" === typeof value && 50 < value.length) ||
|
|
1148
|
-
(0 !== kind && 2 !== kind)
|
|
1203
|
+
(0 !== kind && 2 !== kind) ||
|
|
1204
|
+
"bigint" === typeof value
|
|
1149
1205
|
)
|
|
1150
1206
|
return 1;
|
|
1151
1207
|
kind = 2;
|
|
@@ -1154,10 +1210,26 @@
|
|
|
1154
1210
|
return kind;
|
|
1155
1211
|
}
|
|
1156
1212
|
function addObjectToProperties(object, properties, indent, prefix) {
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1213
|
+
if (!ArrayBuffer.isView(object)) {
|
|
1214
|
+
var addedProperties = 0,
|
|
1215
|
+
key;
|
|
1216
|
+
for (key in object)
|
|
1217
|
+
if (
|
|
1218
|
+
hasOwnProperty.call(object, key) &&
|
|
1219
|
+
"_" !== key[0] &&
|
|
1220
|
+
(addedProperties++,
|
|
1221
|
+
addValueToProperties(key, object[key], properties, indent, prefix),
|
|
1222
|
+
100 <= addedProperties)
|
|
1223
|
+
) {
|
|
1224
|
+
properties.push([
|
|
1225
|
+
prefix +
|
|
1226
|
+
"\u00a0\u00a0".repeat(indent) +
|
|
1227
|
+
"Only 100 properties are shown. React will not log more properties of this object.",
|
|
1228
|
+
""
|
|
1229
|
+
]);
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1161
1233
|
}
|
|
1162
1234
|
function addValueToProperties(
|
|
1163
1235
|
propertyName,
|
|
@@ -1172,7 +1244,11 @@
|
|
|
1172
1244
|
value = "null";
|
|
1173
1245
|
break;
|
|
1174
1246
|
} else {
|
|
1175
|
-
if (
|
|
1247
|
+
if (
|
|
1248
|
+
("$$typeof" in value && hasOwnProperty.call(value, "$$typeof")
|
|
1249
|
+
? value.$$typeof
|
|
1250
|
+
: void 0) === REACT_ELEMENT_TYPE
|
|
1251
|
+
) {
|
|
1176
1252
|
var typeName = getComponentNameFromType(value.type) || "\u2026",
|
|
1177
1253
|
key = value.key;
|
|
1178
1254
|
value = value.props;
|
|
@@ -1204,21 +1280,27 @@
|
|
|
1204
1280
|
prefix
|
|
1205
1281
|
);
|
|
1206
1282
|
propertyName = !1;
|
|
1283
|
+
key = 0;
|
|
1207
1284
|
for (var propKey in value)
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
propKey
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1285
|
+
if (
|
|
1286
|
+
(key++,
|
|
1287
|
+
"children" === propKey
|
|
1288
|
+
? null != value.children &&
|
|
1289
|
+
(!isArrayImpl(value.children) ||
|
|
1290
|
+
0 < value.children.length) &&
|
|
1291
|
+
(propertyName = !0)
|
|
1292
|
+
: hasOwnProperty.call(value, propKey) &&
|
|
1293
|
+
"_" !== propKey[0] &&
|
|
1294
|
+
addValueToProperties(
|
|
1295
|
+
propKey,
|
|
1296
|
+
value[propKey],
|
|
1297
|
+
properties,
|
|
1298
|
+
indent + 1,
|
|
1299
|
+
prefix
|
|
1300
|
+
),
|
|
1301
|
+
100 <= key)
|
|
1302
|
+
)
|
|
1303
|
+
break;
|
|
1222
1304
|
properties.push([
|
|
1223
1305
|
"",
|
|
1224
1306
|
propertyName ? ">\u2026</" + typeName + ">" : "/>"
|
|
@@ -1227,21 +1309,32 @@
|
|
|
1227
1309
|
}
|
|
1228
1310
|
typeName = Object.prototype.toString.call(value);
|
|
1229
1311
|
typeName = typeName.slice(8, typeName.length - 1);
|
|
1312
|
+
if (ArrayBuffer.isView(value)) {
|
|
1313
|
+
value = value.length;
|
|
1314
|
+
value =
|
|
1315
|
+
"number" === typeof value
|
|
1316
|
+
? typeName + "(" + value + ")"
|
|
1317
|
+
: typeName;
|
|
1318
|
+
break;
|
|
1319
|
+
}
|
|
1230
1320
|
if ("Array" === typeName)
|
|
1231
1321
|
if (
|
|
1232
|
-
((propKey =
|
|
1233
|
-
|
|
1322
|
+
((propKey = 100 < value.length),
|
|
1323
|
+
(key = getArrayKind(value)),
|
|
1324
|
+
2 === key || 0 === key)
|
|
1234
1325
|
) {
|
|
1235
|
-
value = JSON.stringify(
|
|
1326
|
+
value = JSON.stringify(
|
|
1327
|
+
propKey ? value.slice(0, 100).concat("\u2026") : value
|
|
1328
|
+
);
|
|
1236
1329
|
break;
|
|
1237
|
-
} else if (3 ===
|
|
1330
|
+
} else if (3 === key) {
|
|
1238
1331
|
properties.push([
|
|
1239
1332
|
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1240
1333
|
""
|
|
1241
1334
|
]);
|
|
1242
1335
|
for (
|
|
1243
1336
|
propertyName = 0;
|
|
1244
|
-
propertyName < value.length;
|
|
1337
|
+
propertyName < value.length && 100 > propertyName;
|
|
1245
1338
|
propertyName++
|
|
1246
1339
|
)
|
|
1247
1340
|
(typeName = value[propertyName]),
|
|
@@ -1252,6 +1345,14 @@
|
|
|
1252
1345
|
indent + 1,
|
|
1253
1346
|
prefix
|
|
1254
1347
|
);
|
|
1348
|
+
propKey &&
|
|
1349
|
+
addValueToProperties(
|
|
1350
|
+
(100).toString(),
|
|
1351
|
+
"\u2026",
|
|
1352
|
+
properties,
|
|
1353
|
+
indent + 1,
|
|
1354
|
+
prefix
|
|
1355
|
+
);
|
|
1255
1356
|
return;
|
|
1256
1357
|
}
|
|
1257
1358
|
if ("Promise" === typeName) {
|
|
@@ -1307,14 +1408,20 @@
|
|
|
1307
1408
|
return;
|
|
1308
1409
|
}
|
|
1309
1410
|
case "function":
|
|
1310
|
-
value =
|
|
1411
|
+
value = value.name;
|
|
1412
|
+
value =
|
|
1413
|
+
"" === value || "string" !== typeof value
|
|
1414
|
+
? "() => {}"
|
|
1415
|
+
: value + "() {}";
|
|
1311
1416
|
break;
|
|
1312
1417
|
case "string":
|
|
1313
1418
|
value =
|
|
1314
1419
|
"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects." ===
|
|
1315
1420
|
value
|
|
1316
1421
|
? "\u2026"
|
|
1317
|
-
: JSON.stringify(
|
|
1422
|
+
: JSON.stringify(
|
|
1423
|
+
1024 <= value.length ? value.slice(0, 1023) + "\u2026" : value
|
|
1424
|
+
);
|
|
1318
1425
|
break;
|
|
1319
1426
|
case "undefined":
|
|
1320
1427
|
value = "undefined";
|
|
@@ -1333,6 +1440,8 @@
|
|
|
1333
1440
|
function getIODescription(value) {
|
|
1334
1441
|
try {
|
|
1335
1442
|
switch (typeof value) {
|
|
1443
|
+
case "function":
|
|
1444
|
+
return value.name || "";
|
|
1336
1445
|
case "object":
|
|
1337
1446
|
if (null === value) return "";
|
|
1338
1447
|
if (value instanceof Error) return String(value.message);
|
|
@@ -1496,6 +1605,7 @@
|
|
|
1496
1605
|
}
|
|
1497
1606
|
})
|
|
1498
1607
|
);
|
|
1608
|
+
performance.clearMeasures(entryName);
|
|
1499
1609
|
} else
|
|
1500
1610
|
console.timeStamp(
|
|
1501
1611
|
entryName,
|
|
@@ -1514,6 +1624,7 @@
|
|
|
1514
1624
|
var description = getIODescription(error),
|
|
1515
1625
|
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1516
1626
|
debugTask = ioInfo.debugTask;
|
|
1627
|
+
entryName = "\u200b" + entryName;
|
|
1517
1628
|
debugTask
|
|
1518
1629
|
? ((error = [
|
|
1519
1630
|
[
|
|
@@ -1529,7 +1640,7 @@
|
|
|
1529
1640
|
getIOLongName(ioInfo, description, ioInfo.env, rootEnv) +
|
|
1530
1641
|
" Rejected"),
|
|
1531
1642
|
debugTask.run(
|
|
1532
|
-
performance.measure.bind(performance,
|
|
1643
|
+
performance.measure.bind(performance, entryName, {
|
|
1533
1644
|
start: 0 > startTime ? 0 : startTime,
|
|
1534
1645
|
end: endTime,
|
|
1535
1646
|
detail: {
|
|
@@ -1541,7 +1652,8 @@
|
|
|
1541
1652
|
}
|
|
1542
1653
|
}
|
|
1543
1654
|
})
|
|
1544
|
-
)
|
|
1655
|
+
),
|
|
1656
|
+
performance.clearMeasures(entryName))
|
|
1545
1657
|
: console.timeStamp(
|
|
1546
1658
|
entryName,
|
|
1547
1659
|
0 > startTime ? 0 : startTime,
|
|
@@ -1560,6 +1672,7 @@
|
|
|
1560
1672
|
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1561
1673
|
color = getIOColor(entryName),
|
|
1562
1674
|
debugTask = ioInfo.debugTask;
|
|
1675
|
+
entryName = "\u200b" + entryName;
|
|
1563
1676
|
if (debugTask) {
|
|
1564
1677
|
var properties = [];
|
|
1565
1678
|
"object" === typeof value && null !== value
|
|
@@ -1568,7 +1681,7 @@
|
|
|
1568
1681
|
addValueToProperties("Resolved", value, properties, 0, "");
|
|
1569
1682
|
ioInfo = getIOLongName(ioInfo, description, ioInfo.env, rootEnv);
|
|
1570
1683
|
debugTask.run(
|
|
1571
|
-
performance.measure.bind(performance,
|
|
1684
|
+
performance.measure.bind(performance, entryName, {
|
|
1572
1685
|
start: 0 > startTime ? 0 : startTime,
|
|
1573
1686
|
end: endTime,
|
|
1574
1687
|
detail: {
|
|
@@ -1581,6 +1694,7 @@
|
|
|
1581
1694
|
}
|
|
1582
1695
|
})
|
|
1583
1696
|
);
|
|
1697
|
+
performance.clearMeasures(entryName);
|
|
1584
1698
|
} else
|
|
1585
1699
|
console.timeStamp(
|
|
1586
1700
|
entryName,
|
|
@@ -1605,6 +1719,10 @@
|
|
|
1605
1719
|
this._children = [];
|
|
1606
1720
|
this._debugChunk = null;
|
|
1607
1721
|
this._debugInfo = [];
|
|
1722
|
+
this._receivedDebugInfo = null;
|
|
1723
|
+
}
|
|
1724
|
+
function hasGCedResponse(weakResponse) {
|
|
1725
|
+
return void 0 === weakResponse.weak.deref();
|
|
1608
1726
|
}
|
|
1609
1727
|
function unwrapWeakResponse(weakResponse) {
|
|
1610
1728
|
weakResponse = weakResponse.weak.deref();
|
|
@@ -1629,6 +1747,7 @@
|
|
|
1629
1747
|
case "fulfilled":
|
|
1630
1748
|
return chunk.value;
|
|
1631
1749
|
case "pending":
|
|
1750
|
+
case "pending_weak":
|
|
1632
1751
|
case "blocked":
|
|
1633
1752
|
case "halted":
|
|
1634
1753
|
throw chunk;
|
|
@@ -1657,6 +1776,23 @@
|
|
|
1657
1776
|
100
|
|
1658
1777
|
)));
|
|
1659
1778
|
}
|
|
1779
|
+
function haltChunk(response, chunk) {
|
|
1780
|
+
releasePendingChunk(response, chunk);
|
|
1781
|
+
chunk.status = "halted";
|
|
1782
|
+
chunk.value = null;
|
|
1783
|
+
chunk.reason = null;
|
|
1784
|
+
}
|
|
1785
|
+
function filterDebugInfo(response, value) {
|
|
1786
|
+
if (null !== response._debugEndTime) {
|
|
1787
|
+
response = response._debugEndTime - performance.timeOrigin;
|
|
1788
|
+
for (var debugInfo = [], i = 0; i < value._debugInfo.length; i++) {
|
|
1789
|
+
var info = value._debugInfo[i];
|
|
1790
|
+
if ("number" === typeof info.time && info.time > response) break;
|
|
1791
|
+
debugInfo.push(info);
|
|
1792
|
+
}
|
|
1793
|
+
value._debugInfo = debugInfo;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1660
1796
|
function moveDebugInfoFromChunkToInnerValue(chunk, value) {
|
|
1661
1797
|
value = resolveLazy(value);
|
|
1662
1798
|
"object" !== typeof value ||
|
|
@@ -1668,28 +1804,30 @@
|
|
|
1668
1804
|
((chunk = chunk._debugInfo.splice(0)),
|
|
1669
1805
|
isArrayImpl(value._debugInfo)
|
|
1670
1806
|
? value._debugInfo.unshift.apply(value._debugInfo, chunk)
|
|
1671
|
-
: Object.
|
|
1807
|
+
: Object.isFrozen(value) ||
|
|
1808
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
1672
1809
|
configurable: !1,
|
|
1673
1810
|
enumerable: !1,
|
|
1674
1811
|
writable: !0,
|
|
1675
1812
|
value: chunk
|
|
1676
1813
|
}));
|
|
1677
1814
|
}
|
|
1678
|
-
function wakeChunk(listeners, value, chunk) {
|
|
1815
|
+
function wakeChunk(response, listeners, value, chunk) {
|
|
1679
1816
|
for (var i = 0; i < listeners.length; i++) {
|
|
1680
1817
|
var listener = listeners[i];
|
|
1681
1818
|
"function" === typeof listener
|
|
1682
1819
|
? listener(value)
|
|
1683
|
-
: fulfillReference(listener, value, chunk);
|
|
1820
|
+
: fulfillReference(response, listener, value, chunk);
|
|
1684
1821
|
}
|
|
1822
|
+
filterDebugInfo(response, chunk);
|
|
1685
1823
|
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1686
1824
|
}
|
|
1687
|
-
function rejectChunk(listeners, error) {
|
|
1825
|
+
function rejectChunk(response, listeners, error) {
|
|
1688
1826
|
for (var i = 0; i < listeners.length; i++) {
|
|
1689
1827
|
var listener = listeners[i];
|
|
1690
1828
|
"function" === typeof listener
|
|
1691
1829
|
? listener(error)
|
|
1692
|
-
: rejectReference(listener, error);
|
|
1830
|
+
: rejectReference(response, listener.handler, error);
|
|
1693
1831
|
}
|
|
1694
1832
|
}
|
|
1695
1833
|
function resolveBlockedCycle(resolvedChunk, reference) {
|
|
@@ -1713,10 +1851,15 @@
|
|
|
1713
1851
|
}
|
|
1714
1852
|
return null;
|
|
1715
1853
|
}
|
|
1716
|
-
function wakeChunkIfInitialized(
|
|
1854
|
+
function wakeChunkIfInitialized(
|
|
1855
|
+
response,
|
|
1856
|
+
chunk,
|
|
1857
|
+
resolveListeners,
|
|
1858
|
+
rejectListeners
|
|
1859
|
+
) {
|
|
1717
1860
|
switch (chunk.status) {
|
|
1718
1861
|
case "fulfilled":
|
|
1719
|
-
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1862
|
+
wakeChunk(response, resolveListeners, chunk.value, chunk);
|
|
1720
1863
|
break;
|
|
1721
1864
|
case "blocked":
|
|
1722
1865
|
for (var i = 0; i < resolveListeners.length; i++) {
|
|
@@ -1725,7 +1868,12 @@
|
|
|
1725
1868
|
var cyclicHandler = resolveBlockedCycle(chunk, listener);
|
|
1726
1869
|
if (null !== cyclicHandler)
|
|
1727
1870
|
switch (
|
|
1728
|
-
(fulfillReference(
|
|
1871
|
+
(fulfillReference(
|
|
1872
|
+
response,
|
|
1873
|
+
listener,
|
|
1874
|
+
cyclicHandler.value,
|
|
1875
|
+
chunk
|
|
1876
|
+
),
|
|
1729
1877
|
resolveListeners.splice(i, 1),
|
|
1730
1878
|
i--,
|
|
1731
1879
|
null !== rejectListeners &&
|
|
@@ -1734,19 +1882,19 @@
|
|
|
1734
1882
|
chunk.status)
|
|
1735
1883
|
) {
|
|
1736
1884
|
case "fulfilled":
|
|
1737
|
-
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1885
|
+
wakeChunk(response, resolveListeners, chunk.value, chunk);
|
|
1738
1886
|
return;
|
|
1739
1887
|
case "rejected":
|
|
1740
1888
|
null !== rejectListeners &&
|
|
1741
|
-
rejectChunk(rejectListeners, chunk.reason);
|
|
1889
|
+
rejectChunk(response, rejectListeners, chunk.reason);
|
|
1742
1890
|
return;
|
|
1743
1891
|
}
|
|
1744
1892
|
}
|
|
1745
1893
|
}
|
|
1746
1894
|
case "pending":
|
|
1747
1895
|
if (chunk.value)
|
|
1748
|
-
for (
|
|
1749
|
-
chunk.value.push(resolveListeners[
|
|
1896
|
+
for (response = 0; response < resolveListeners.length; response++)
|
|
1897
|
+
chunk.value.push(resolveListeners[response]);
|
|
1750
1898
|
else chunk.value = resolveListeners;
|
|
1751
1899
|
if (chunk.reason) {
|
|
1752
1900
|
if (rejectListeners)
|
|
@@ -1759,16 +1907,24 @@
|
|
|
1759
1907
|
} else chunk.reason = rejectListeners;
|
|
1760
1908
|
break;
|
|
1761
1909
|
case "rejected":
|
|
1762
|
-
rejectListeners &&
|
|
1910
|
+
rejectListeners &&
|
|
1911
|
+
rejectChunk(response, rejectListeners, chunk.reason);
|
|
1763
1912
|
}
|
|
1764
1913
|
}
|
|
1765
1914
|
function triggerErrorOnChunk(response, chunk, error) {
|
|
1766
|
-
if (
|
|
1915
|
+
if (
|
|
1916
|
+
"pending" !== chunk.status &&
|
|
1917
|
+
"pending_weak" !== chunk.status &&
|
|
1918
|
+
"blocked" !== chunk.status
|
|
1919
|
+
)
|
|
1767
1920
|
chunk.reason.error(error);
|
|
1768
1921
|
else {
|
|
1769
1922
|
releasePendingChunk(response, chunk);
|
|
1770
1923
|
var listeners = chunk.reason;
|
|
1771
|
-
if (
|
|
1924
|
+
if (
|
|
1925
|
+
("pending" === chunk.status || "pending_weak" === chunk.status) &&
|
|
1926
|
+
null != chunk._debugChunk
|
|
1927
|
+
) {
|
|
1772
1928
|
var prevHandler = initializingHandler,
|
|
1773
1929
|
prevChunk = initializingChunk;
|
|
1774
1930
|
initializingHandler = null;
|
|
@@ -1785,7 +1941,21 @@
|
|
|
1785
1941
|
}
|
|
1786
1942
|
chunk.status = "rejected";
|
|
1787
1943
|
chunk.reason = error;
|
|
1788
|
-
null !==
|
|
1944
|
+
a: if (null !== response._debugEndTime)
|
|
1945
|
+
for (
|
|
1946
|
+
prevHandler = response._debugEndTime - performance.timeOrigin,
|
|
1947
|
+
chunk = chunk._debugInfo,
|
|
1948
|
+
prevChunk = 0;
|
|
1949
|
+
prevChunk < chunk.length;
|
|
1950
|
+
prevChunk++
|
|
1951
|
+
) {
|
|
1952
|
+
var info = chunk[prevChunk];
|
|
1953
|
+
if ("number" === typeof info.time && info.time > prevHandler) {
|
|
1954
|
+
chunk.length = prevChunk;
|
|
1955
|
+
break a;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
null !== listeners && rejectChunk(response, listeners, error);
|
|
1789
1959
|
}
|
|
1790
1960
|
}
|
|
1791
1961
|
function createResolvedModelChunk(response, value) {
|
|
@@ -1810,7 +1980,8 @@
|
|
|
1810
1980
|
);
|
|
1811
1981
|
}
|
|
1812
1982
|
function resolveModelChunk(response, chunk, value) {
|
|
1813
|
-
if ("pending" !== chunk.status
|
|
1983
|
+
if ("pending" !== chunk.status && "pending_weak" !== chunk.status)
|
|
1984
|
+
chunk.reason.enqueueModel(value);
|
|
1814
1985
|
else {
|
|
1815
1986
|
releasePendingChunk(response, chunk);
|
|
1816
1987
|
var resolveListeners = chunk.value,
|
|
@@ -1820,28 +1991,44 @@
|
|
|
1820
1991
|
chunk.reason = response;
|
|
1821
1992
|
null !== resolveListeners &&
|
|
1822
1993
|
(initializeModelChunk(chunk),
|
|
1823
|
-
wakeChunkIfInitialized(
|
|
1994
|
+
wakeChunkIfInitialized(
|
|
1995
|
+
response,
|
|
1996
|
+
chunk,
|
|
1997
|
+
resolveListeners,
|
|
1998
|
+
rejectListeners
|
|
1999
|
+
));
|
|
1824
2000
|
}
|
|
1825
2001
|
}
|
|
1826
2002
|
function resolveModuleChunk(response, chunk, value) {
|
|
1827
|
-
if (
|
|
2003
|
+
if (
|
|
2004
|
+
"pending" === chunk.status ||
|
|
2005
|
+
"pending_weak" === chunk.status ||
|
|
2006
|
+
"blocked" === chunk.status
|
|
2007
|
+
) {
|
|
1828
2008
|
releasePendingChunk(response, chunk);
|
|
1829
|
-
|
|
1830
|
-
|
|
2009
|
+
var resolveListeners = chunk.value,
|
|
2010
|
+
rejectListeners = chunk.reason;
|
|
1831
2011
|
chunk.status = "resolved_module";
|
|
1832
2012
|
chunk.value = value;
|
|
1833
2013
|
chunk.reason = null;
|
|
1834
2014
|
value = [];
|
|
1835
2015
|
null !== value && chunk._debugInfo.push.apply(chunk._debugInfo, value);
|
|
1836
|
-
null !==
|
|
2016
|
+
null !== resolveListeners &&
|
|
1837
2017
|
(initializeModuleChunk(chunk),
|
|
1838
|
-
wakeChunkIfInitialized(
|
|
2018
|
+
wakeChunkIfInitialized(
|
|
2019
|
+
response,
|
|
2020
|
+
chunk,
|
|
2021
|
+
resolveListeners,
|
|
2022
|
+
rejectListeners
|
|
2023
|
+
));
|
|
1839
2024
|
}
|
|
1840
2025
|
}
|
|
1841
2026
|
function initializeDebugChunk(response, chunk) {
|
|
1842
2027
|
var debugChunk = chunk._debugChunk;
|
|
1843
2028
|
if (null !== debugChunk) {
|
|
1844
|
-
var debugInfo = chunk._debugInfo
|
|
2029
|
+
var debugInfo = chunk._debugInfo,
|
|
2030
|
+
prevIsInitializingDebugInfo = isInitializingDebugInfo;
|
|
2031
|
+
isInitializingDebugInfo = !0;
|
|
1845
2032
|
try {
|
|
1846
2033
|
if ("resolved_model" === debugChunk.status) {
|
|
1847
2034
|
for (
|
|
@@ -1860,6 +2047,7 @@
|
|
|
1860
2047
|
break;
|
|
1861
2048
|
case "blocked":
|
|
1862
2049
|
case "pending":
|
|
2050
|
+
case "pending_weak":
|
|
1863
2051
|
waitForReference(
|
|
1864
2052
|
debugChunk,
|
|
1865
2053
|
debugInfo,
|
|
@@ -1879,6 +2067,7 @@
|
|
|
1879
2067
|
break;
|
|
1880
2068
|
case "blocked":
|
|
1881
2069
|
case "pending":
|
|
2070
|
+
case "pending_weak":
|
|
1882
2071
|
waitForReference(
|
|
1883
2072
|
debugChunk,
|
|
1884
2073
|
{},
|
|
@@ -1894,6 +2083,8 @@
|
|
|
1894
2083
|
}
|
|
1895
2084
|
} catch (error) {
|
|
1896
2085
|
triggerErrorOnChunk(response, chunk, error);
|
|
2086
|
+
} finally {
|
|
2087
|
+
isInitializingDebugInfo = prevIsInitializingDebugInfo;
|
|
1897
2088
|
}
|
|
1898
2089
|
}
|
|
1899
2090
|
}
|
|
@@ -1909,30 +2100,52 @@
|
|
|
1909
2100
|
initializingChunk = chunk;
|
|
1910
2101
|
initializeDebugChunk(response, chunk);
|
|
1911
2102
|
try {
|
|
1912
|
-
var value =
|
|
1913
|
-
|
|
1914
|
-
if (null !==
|
|
2103
|
+
var value = parseModel(response, resolvedModel);
|
|
2104
|
+
resolvedModel = initializingHandler;
|
|
2105
|
+
if (null !== resolvedModel) {
|
|
2106
|
+
if (resolvedModel.errored) {
|
|
2107
|
+
"blocked" === chunk.status &&
|
|
2108
|
+
triggerErrorOnChunk(response, chunk, resolvedModel.reason);
|
|
2109
|
+
return;
|
|
2110
|
+
}
|
|
2111
|
+
resolvedModel.value = value;
|
|
2112
|
+
resolvedModel.chunk = chunk;
|
|
2113
|
+
}
|
|
2114
|
+
var listeners = chunk.value,
|
|
2115
|
+
rejectListeners = chunk.reason;
|
|
2116
|
+
chunk.value = null;
|
|
2117
|
+
chunk.reason = null;
|
|
2118
|
+
if (null !== listeners) {
|
|
1915
2119
|
for (
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
2120
|
+
var cyclic = null, deferred = null, i = 0;
|
|
2121
|
+
i < listeners.length;
|
|
2122
|
+
i++
|
|
1919
2123
|
) {
|
|
1920
|
-
var listener =
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
2124
|
+
var listener = listeners[i];
|
|
2125
|
+
if (
|
|
2126
|
+
"function" !== typeof listener &&
|
|
2127
|
+
null !== resolveBlockedCycle(chunk, listener)
|
|
2128
|
+
) {
|
|
2129
|
+
if (
|
|
2130
|
+
(null === cyclic && (cyclic = []),
|
|
2131
|
+
cyclic.push(listener),
|
|
2132
|
+
null !== rejectListeners)
|
|
2133
|
+
) {
|
|
2134
|
+
var rejectionIdx = rejectListeners.indexOf(listener);
|
|
2135
|
+
-1 !== rejectionIdx && rejectListeners.splice(rejectionIdx, 1);
|
|
2136
|
+
}
|
|
2137
|
+
} else
|
|
2138
|
+
null === deferred && (deferred = []), deferred.push(listener);
|
|
1931
2139
|
}
|
|
2140
|
+
null !== deferred &&
|
|
2141
|
+
((chunk.value = deferred), (chunk.reason = rejectListeners));
|
|
2142
|
+
if (null !== cyclic)
|
|
2143
|
+
for (listeners = 0; listeners < cyclic.length; listeners++)
|
|
2144
|
+
fulfillReference(response, cyclic[listeners], value, chunk);
|
|
1932
2145
|
}
|
|
1933
|
-
chunk.status
|
|
1934
|
-
|
|
1935
|
-
|
|
2146
|
+
"blocked" !== chunk.status ||
|
|
2147
|
+
(null !== resolvedModel && 0 < resolvedModel.deps) ||
|
|
2148
|
+
initializeBlockedChunk(response, chunk, value, null);
|
|
1936
2149
|
} catch (error) {
|
|
1937
2150
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1938
2151
|
} finally {
|
|
@@ -1944,12 +2157,13 @@
|
|
|
1944
2157
|
var value = requireModule(chunk.value);
|
|
1945
2158
|
chunk.status = "fulfilled";
|
|
1946
2159
|
chunk.value = value;
|
|
2160
|
+
chunk.reason = null;
|
|
1947
2161
|
} catch (error) {
|
|
1948
2162
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1949
2163
|
}
|
|
1950
2164
|
}
|
|
1951
2165
|
function reportGlobalError(weakResponse, error) {
|
|
1952
|
-
if (
|
|
2166
|
+
if (!hasGCedResponse(weakResponse)) {
|
|
1953
2167
|
var response = unwrapWeakResponse(weakResponse);
|
|
1954
2168
|
response._closed = !0;
|
|
1955
2169
|
response._closedReason = error;
|
|
@@ -1979,7 +2193,7 @@
|
|
|
1979
2193
|
null !== type &&
|
|
1980
2194
|
type.$$typeof === REACT_LAZY_TYPE
|
|
1981
2195
|
)
|
|
1982
|
-
return type.
|
|
2196
|
+
return type._payload instanceof ReactPromise ? '"use client"' : "<...>";
|
|
1983
2197
|
try {
|
|
1984
2198
|
var name = getComponentNameFromType(type);
|
|
1985
2199
|
return name ? "<" + name + ">" : "<...>";
|
|
@@ -2025,23 +2239,30 @@
|
|
|
2025
2239
|
element._debugTask = normalizedStackTrace;
|
|
2026
2240
|
null !== owner && initializeFakeStack(response, owner);
|
|
2027
2241
|
null !== lazyNode &&
|
|
2028
|
-
(lazyNode._store &&
|
|
2029
|
-
lazyNode._store.validated &&
|
|
2030
|
-
!element._store.validated &&
|
|
2031
|
-
(element._store.validated = lazyNode._store.validated),
|
|
2032
2242
|
"fulfilled" === lazyNode._payload.status &&
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2243
|
+
lazyNode._debugInfo &&
|
|
2244
|
+
((response = lazyNode._debugInfo.splice(0)),
|
|
2245
|
+
element._debugInfo
|
|
2246
|
+
? element._debugInfo.unshift.apply(element._debugInfo, response)
|
|
2247
|
+
: Object.defineProperty(element, "_debugInfo", {
|
|
2248
|
+
configurable: !1,
|
|
2249
|
+
enumerable: !1,
|
|
2250
|
+
writable: !0,
|
|
2251
|
+
value: response
|
|
2252
|
+
}));
|
|
2043
2253
|
Object.freeze(element.props);
|
|
2044
2254
|
}
|
|
2255
|
+
function readChunkAndTransferValidation(store, payload) {
|
|
2256
|
+
payload = readChunk(payload);
|
|
2257
|
+
if (store.validated && "object" === typeof payload && null !== payload) {
|
|
2258
|
+
var $$typeof = payload.$$typeof;
|
|
2259
|
+
($$typeof !== REACT_ELEMENT_TYPE && $$typeof !== REACT_LAZY_TYPE) ||
|
|
2260
|
+
!($$typeof = payload._store) ||
|
|
2261
|
+
$$typeof.validated ||
|
|
2262
|
+
($$typeof.validated = store.validated);
|
|
2263
|
+
}
|
|
2264
|
+
return payload;
|
|
2265
|
+
}
|
|
2045
2266
|
function createLazyChunkWrapper(chunk, validated) {
|
|
2046
2267
|
var lazyType = {
|
|
2047
2268
|
$$typeof: REACT_LAZY_TYPE,
|
|
@@ -2049,7 +2270,9 @@
|
|
|
2049
2270
|
_init: readChunk
|
|
2050
2271
|
};
|
|
2051
2272
|
lazyType._debugInfo = chunk._debugInfo;
|
|
2052
|
-
|
|
2273
|
+
chunk = { validated: validated };
|
|
2274
|
+
lazyType._store = chunk;
|
|
2275
|
+
lazyType._init = readChunkAndTransferValidation.bind(null, chunk);
|
|
2053
2276
|
return lazyType;
|
|
2054
2277
|
}
|
|
2055
2278
|
function getChunk(response, id) {
|
|
@@ -2057,14 +2280,39 @@
|
|
|
2057
2280
|
chunk = chunks.get(id);
|
|
2058
2281
|
chunk ||
|
|
2059
2282
|
((chunk = response._closed
|
|
2060
|
-
?
|
|
2283
|
+
? response._allowPartialStream
|
|
2284
|
+
? new ReactPromise("halted", null, null)
|
|
2285
|
+
: new ReactPromise("rejected", null, response._closedReason)
|
|
2061
2286
|
: createPendingChunk(response)),
|
|
2062
2287
|
chunks.set(id, chunk));
|
|
2063
2288
|
return chunk;
|
|
2064
2289
|
}
|
|
2065
|
-
function
|
|
2066
|
-
var
|
|
2067
|
-
|
|
2290
|
+
function initializeBlockedChunk(response, chunk, value, reason) {
|
|
2291
|
+
var resolveListeners = chunk.value;
|
|
2292
|
+
chunk._receivedDebugInfo = null;
|
|
2293
|
+
chunk.status = "fulfilled";
|
|
2294
|
+
chunk.value = value;
|
|
2295
|
+
chunk.reason = reason;
|
|
2296
|
+
null !== resolveListeners
|
|
2297
|
+
? wakeChunk(response, resolveListeners, value, chunk)
|
|
2298
|
+
: (filterDebugInfo(response, chunk),
|
|
2299
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value));
|
|
2300
|
+
}
|
|
2301
|
+
function initializeChunkIfUnblocked(response, handler) {
|
|
2302
|
+
if (0 === handler.deps && !handler.errored) {
|
|
2303
|
+
var chunk = handler.chunk;
|
|
2304
|
+
null !== chunk &&
|
|
2305
|
+
"blocked" === chunk.status &&
|
|
2306
|
+
initializeBlockedChunk(
|
|
2307
|
+
response,
|
|
2308
|
+
chunk,
|
|
2309
|
+
handler.value,
|
|
2310
|
+
handler.reason
|
|
2311
|
+
);
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
function fulfillReference(response, reference, value, fulfilledChunk) {
|
|
2315
|
+
var handler = reference.handler,
|
|
2068
2316
|
parentObject = reference.parentObject,
|
|
2069
2317
|
key = reference.key,
|
|
2070
2318
|
map = reference.map,
|
|
@@ -2102,6 +2350,7 @@
|
|
|
2102
2350
|
continue;
|
|
2103
2351
|
}
|
|
2104
2352
|
case "pending":
|
|
2353
|
+
case "pending_weak":
|
|
2105
2354
|
path.splice(0, i - 1);
|
|
2106
2355
|
null === referencedChunk.value
|
|
2107
2356
|
? (referencedChunk.value = [reference])
|
|
@@ -2113,7 +2362,11 @@
|
|
|
2113
2362
|
case "halted":
|
|
2114
2363
|
return;
|
|
2115
2364
|
default:
|
|
2116
|
-
rejectReference(
|
|
2365
|
+
rejectReference(
|
|
2366
|
+
response,
|
|
2367
|
+
reference.handler,
|
|
2368
|
+
referencedChunk.reason
|
|
2369
|
+
);
|
|
2117
2370
|
return;
|
|
2118
2371
|
}
|
|
2119
2372
|
}
|
|
@@ -2164,7 +2417,8 @@
|
|
|
2164
2417
|
var element = handler.value;
|
|
2165
2418
|
switch (key) {
|
|
2166
2419
|
case "3":
|
|
2167
|
-
|
|
2420
|
+
reference.isDebug ||
|
|
2421
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2168
2422
|
element.props = mappedValue;
|
|
2169
2423
|
break;
|
|
2170
2424
|
case "4":
|
|
@@ -2174,29 +2428,20 @@
|
|
|
2174
2428
|
element._debugStack = mappedValue;
|
|
2175
2429
|
break;
|
|
2176
2430
|
default:
|
|
2177
|
-
|
|
2431
|
+
reference.isDebug ||
|
|
2432
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2178
2433
|
}
|
|
2179
2434
|
} else
|
|
2180
2435
|
reference.isDebug ||
|
|
2181
2436
|
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2182
2437
|
} catch (error) {
|
|
2183
|
-
rejectReference(reference, error);
|
|
2438
|
+
rejectReference(response, reference.handler, error);
|
|
2184
2439
|
return;
|
|
2185
2440
|
}
|
|
2186
2441
|
handler.deps--;
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
"blocked" === reference.status &&
|
|
2191
|
-
((value = reference.value),
|
|
2192
|
-
(reference.status = "fulfilled"),
|
|
2193
|
-
(reference.value = handler.value),
|
|
2194
|
-
(reference.reason = handler.reason),
|
|
2195
|
-
null !== value && wakeChunk(value, handler.value, reference)));
|
|
2196
|
-
}
|
|
2197
|
-
function rejectReference(reference, error) {
|
|
2198
|
-
var handler = reference.handler;
|
|
2199
|
-
reference = reference.response;
|
|
2442
|
+
initializeChunkIfUnblocked(response, handler);
|
|
2443
|
+
}
|
|
2444
|
+
function rejectReference(response, handler, error) {
|
|
2200
2445
|
if (!handler.errored) {
|
|
2201
2446
|
var blockedValue = handler.value;
|
|
2202
2447
|
handler.errored = !0;
|
|
@@ -2218,7 +2463,7 @@
|
|
|
2218
2463
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2219
2464
|
handler._debugInfo.push(erroredComponent);
|
|
2220
2465
|
}
|
|
2221
|
-
triggerErrorOnChunk(
|
|
2466
|
+
triggerErrorOnChunk(response, handler, error);
|
|
2222
2467
|
}
|
|
2223
2468
|
}
|
|
2224
2469
|
}
|
|
@@ -2241,21 +2486,19 @@
|
|
|
2241
2486
|
)
|
|
2242
2487
|
)
|
|
2243
2488
|
return null;
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
};
|
|
2489
|
+
initializingHandler
|
|
2490
|
+
? ((response = initializingHandler), response.deps++)
|
|
2491
|
+
: (response = initializingHandler =
|
|
2492
|
+
{
|
|
2493
|
+
parent: null,
|
|
2494
|
+
chunk: null,
|
|
2495
|
+
value: null,
|
|
2496
|
+
reason: null,
|
|
2497
|
+
deps: 1,
|
|
2498
|
+
errored: !1
|
|
2499
|
+
});
|
|
2256
2500
|
parentObject = {
|
|
2257
|
-
|
|
2258
|
-
handler: handler,
|
|
2501
|
+
handler: response,
|
|
2259
2502
|
parentObject: parentObject,
|
|
2260
2503
|
key: key,
|
|
2261
2504
|
map: map,
|
|
@@ -2341,25 +2584,20 @@
|
|
|
2341
2584
|
boundArgs._owner = resolvedValue;
|
|
2342
2585
|
}
|
|
2343
2586
|
handler.deps--;
|
|
2344
|
-
|
|
2345
|
-
((resolvedValue = handler.chunk),
|
|
2346
|
-
null !== resolvedValue &&
|
|
2347
|
-
"blocked" === resolvedValue.status &&
|
|
2348
|
-
((boundArgs = resolvedValue.value),
|
|
2349
|
-
(resolvedValue.status = "fulfilled"),
|
|
2350
|
-
(resolvedValue.value = handler.value),
|
|
2351
|
-
(resolvedValue.reason = null),
|
|
2352
|
-
null !== boundArgs &&
|
|
2353
|
-
wakeChunk(boundArgs, handler.value, resolvedValue)));
|
|
2587
|
+
initializeChunkIfUnblocked(response, handler);
|
|
2354
2588
|
},
|
|
2355
2589
|
function (error) {
|
|
2356
2590
|
if (!handler.errored) {
|
|
2357
|
-
var blockedValue = handler.value
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2591
|
+
var blockedValue = handler.value,
|
|
2592
|
+
erroredHandler = handler;
|
|
2593
|
+
erroredHandler.errored = !0;
|
|
2594
|
+
erroredHandler.value = null;
|
|
2595
|
+
erroredHandler.reason = error;
|
|
2596
|
+
erroredHandler = handler.chunk;
|
|
2597
|
+
if (
|
|
2598
|
+
null !== erroredHandler &&
|
|
2599
|
+
"blocked" === erroredHandler.status
|
|
2600
|
+
) {
|
|
2363
2601
|
if (
|
|
2364
2602
|
"object" === typeof blockedValue &&
|
|
2365
2603
|
null !== blockedValue &&
|
|
@@ -2372,9 +2610,9 @@
|
|
|
2372
2610
|
erroredComponent.debugStack = blockedValue._debugStack;
|
|
2373
2611
|
supportsCreateTask &&
|
|
2374
2612
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2375
|
-
|
|
2613
|
+
erroredHandler._debugInfo.push(erroredComponent);
|
|
2376
2614
|
}
|
|
2377
|
-
triggerErrorOnChunk(response,
|
|
2615
|
+
triggerErrorOnChunk(response, erroredHandler, error);
|
|
2378
2616
|
}
|
|
2379
2617
|
}
|
|
2380
2618
|
}
|
|
@@ -2395,33 +2633,46 @@
|
|
|
2395
2633
|
}
|
|
2396
2634
|
return value;
|
|
2397
2635
|
}
|
|
2398
|
-
function transferReferencedDebugInfo(
|
|
2399
|
-
if (null !==
|
|
2636
|
+
function transferReferencedDebugInfo(receivingChunk, referencedChunk) {
|
|
2637
|
+
if (null !== receivingChunk) {
|
|
2400
2638
|
referencedChunk = referencedChunk._debugInfo;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2639
|
+
var receivingDebugInfo = receivingChunk._debugInfo,
|
|
2640
|
+
receivedDebugInfo = receivingChunk._receivedDebugInfo;
|
|
2641
|
+
null === receivedDebugInfo &&
|
|
2642
|
+
(receivedDebugInfo = receivingChunk._receivedDebugInfo = new Set());
|
|
2643
|
+
for (
|
|
2644
|
+
receivingChunk = 0;
|
|
2645
|
+
receivingChunk < referencedChunk.length;
|
|
2646
|
+
++receivingChunk
|
|
2647
|
+
) {
|
|
2648
|
+
var debugInfoEntry = referencedChunk[receivingChunk];
|
|
2649
|
+
null != debugInfoEntry.name ||
|
|
2650
|
+
receivedDebugInfo.has(debugInfoEntry) ||
|
|
2651
|
+
(receivedDebugInfo.add(debugInfoEntry),
|
|
2652
|
+
receivingDebugInfo.push(debugInfoEntry));
|
|
2405
2653
|
}
|
|
2406
2654
|
}
|
|
2407
2655
|
}
|
|
2408
2656
|
function getOutlinedModel(response, reference, parentObject, key, map) {
|
|
2409
|
-
var
|
|
2410
|
-
reference =
|
|
2411
|
-
|
|
2657
|
+
var id = parseInt(reference, 16);
|
|
2658
|
+
reference =
|
|
2659
|
+
-1 === reference.indexOf(":")
|
|
2660
|
+
? EMPTY_REFERENCE_PATH
|
|
2661
|
+
: reference.split(":");
|
|
2662
|
+
id = getChunk(response, id);
|
|
2412
2663
|
null !== initializingChunk &&
|
|
2413
2664
|
isArrayImpl(initializingChunk._children) &&
|
|
2414
|
-
initializingChunk._children.push(
|
|
2415
|
-
switch (
|
|
2665
|
+
initializingChunk._children.push(id);
|
|
2666
|
+
switch (id.status) {
|
|
2416
2667
|
case "resolved_model":
|
|
2417
|
-
initializeModelChunk(
|
|
2668
|
+
initializeModelChunk(id);
|
|
2418
2669
|
break;
|
|
2419
2670
|
case "resolved_module":
|
|
2420
|
-
initializeModuleChunk(
|
|
2671
|
+
initializeModuleChunk(id);
|
|
2421
2672
|
}
|
|
2422
|
-
switch (
|
|
2673
|
+
switch (id.status) {
|
|
2423
2674
|
case "fulfilled":
|
|
2424
|
-
for (var value =
|
|
2675
|
+
for (var value = id.value, i = 1; i < reference.length; i++) {
|
|
2425
2676
|
for (
|
|
2426
2677
|
;
|
|
2427
2678
|
"object" === typeof value &&
|
|
@@ -2443,14 +2694,15 @@
|
|
|
2443
2694
|
break;
|
|
2444
2695
|
case "blocked":
|
|
2445
2696
|
case "pending":
|
|
2697
|
+
case "pending_weak":
|
|
2446
2698
|
return waitForReference(
|
|
2447
2699
|
value,
|
|
2448
2700
|
parentObject,
|
|
2449
2701
|
key,
|
|
2450
2702
|
response,
|
|
2451
2703
|
map,
|
|
2452
|
-
|
|
2453
|
-
|
|
2704
|
+
reference.slice(i - 1),
|
|
2705
|
+
isInitializingDebugInfo
|
|
2454
2706
|
);
|
|
2455
2707
|
case "halted":
|
|
2456
2708
|
return (
|
|
@@ -2470,9 +2722,10 @@
|
|
|
2470
2722
|
default:
|
|
2471
2723
|
return (
|
|
2472
2724
|
initializingHandler
|
|
2473
|
-
? ((
|
|
2474
|
-
(
|
|
2475
|
-
(
|
|
2725
|
+
? ((parentObject = initializingHandler),
|
|
2726
|
+
(parentObject.errored = !0),
|
|
2727
|
+
(parentObject.value = null),
|
|
2728
|
+
(parentObject.reason = value.reason))
|
|
2476
2729
|
: (initializingHandler = {
|
|
2477
2730
|
parent: null,
|
|
2478
2731
|
chunk: null,
|
|
@@ -2485,7 +2738,16 @@
|
|
|
2485
2738
|
);
|
|
2486
2739
|
}
|
|
2487
2740
|
}
|
|
2488
|
-
|
|
2741
|
+
var name = reference[i];
|
|
2742
|
+
if (
|
|
2743
|
+
"object" !== typeof value ||
|
|
2744
|
+
null === value ||
|
|
2745
|
+
(getPrototypeOf(value) !== ObjectPrototype &&
|
|
2746
|
+
getPrototypeOf(value) !== ArrayPrototype) ||
|
|
2747
|
+
!hasOwnProperty.call(value, name)
|
|
2748
|
+
)
|
|
2749
|
+
throw Error("Invalid reference.");
|
|
2750
|
+
value = value[name];
|
|
2489
2751
|
}
|
|
2490
2752
|
for (
|
|
2491
2753
|
;
|
|
@@ -2494,36 +2756,40 @@
|
|
|
2494
2756
|
value.$$typeof === REACT_LAZY_TYPE;
|
|
2495
2757
|
|
|
2496
2758
|
) {
|
|
2497
|
-
|
|
2498
|
-
switch (
|
|
2759
|
+
reference = value._payload;
|
|
2760
|
+
switch (reference.status) {
|
|
2499
2761
|
case "resolved_model":
|
|
2500
|
-
initializeModelChunk(
|
|
2762
|
+
initializeModelChunk(reference);
|
|
2501
2763
|
break;
|
|
2502
2764
|
case "resolved_module":
|
|
2503
|
-
initializeModuleChunk(
|
|
2765
|
+
initializeModuleChunk(reference);
|
|
2504
2766
|
}
|
|
2505
|
-
switch (
|
|
2767
|
+
switch (reference.status) {
|
|
2506
2768
|
case "fulfilled":
|
|
2507
|
-
value =
|
|
2769
|
+
value = reference.value;
|
|
2508
2770
|
continue;
|
|
2509
2771
|
}
|
|
2510
2772
|
break;
|
|
2511
2773
|
}
|
|
2512
2774
|
response = map(response, value, parentObject, key);
|
|
2513
|
-
(
|
|
2514
|
-
|
|
2515
|
-
|
|
2775
|
+
if (
|
|
2776
|
+
parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2777
|
+
("4" !== key && "5" !== key)
|
|
2778
|
+
)
|
|
2779
|
+
isInitializingDebugInfo ||
|
|
2780
|
+
transferReferencedDebugInfo(initializingChunk, id);
|
|
2516
2781
|
return response;
|
|
2517
2782
|
case "pending":
|
|
2783
|
+
case "pending_weak":
|
|
2518
2784
|
case "blocked":
|
|
2519
2785
|
return waitForReference(
|
|
2520
|
-
|
|
2786
|
+
id,
|
|
2521
2787
|
parentObject,
|
|
2522
2788
|
key,
|
|
2523
2789
|
response,
|
|
2524
2790
|
map,
|
|
2525
|
-
|
|
2526
|
-
|
|
2791
|
+
reference,
|
|
2792
|
+
isInitializingDebugInfo
|
|
2527
2793
|
);
|
|
2528
2794
|
case "halted":
|
|
2529
2795
|
return (
|
|
@@ -2542,14 +2808,15 @@
|
|
|
2542
2808
|
default:
|
|
2543
2809
|
return (
|
|
2544
2810
|
initializingHandler
|
|
2545
|
-
? ((
|
|
2546
|
-
(
|
|
2547
|
-
(
|
|
2811
|
+
? ((parentObject = initializingHandler),
|
|
2812
|
+
(parentObject.errored = !0),
|
|
2813
|
+
(parentObject.value = null),
|
|
2814
|
+
(parentObject.reason = id.reason))
|
|
2548
2815
|
: (initializingHandler = {
|
|
2549
2816
|
parent: null,
|
|
2550
2817
|
chunk: null,
|
|
2551
2818
|
value: null,
|
|
2552
|
-
reason:
|
|
2819
|
+
reason: id.reason,
|
|
2553
2820
|
deps: 0,
|
|
2554
2821
|
errored: !0
|
|
2555
2822
|
}),
|
|
@@ -2588,6 +2855,7 @@
|
|
|
2588
2855
|
}
|
|
2589
2856
|
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2590
2857
|
},
|
|
2858
|
+
set: function () {},
|
|
2591
2859
|
enumerable: !0,
|
|
2592
2860
|
configurable: !1
|
|
2593
2861
|
});
|
|
@@ -2667,6 +2935,8 @@
|
|
|
2667
2935
|
initializingChunk._children.push(response),
|
|
2668
2936
|
response
|
|
2669
2937
|
);
|
|
2938
|
+
case "w":
|
|
2939
|
+
return;
|
|
2670
2940
|
case "S":
|
|
2671
2941
|
return Symbol.for(value.slice(2));
|
|
2672
2942
|
case "h":
|
|
@@ -2799,6 +3069,7 @@
|
|
|
2799
3069
|
get: function () {
|
|
2800
3070
|
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2801
3071
|
},
|
|
3072
|
+
set: function () {},
|
|
2802
3073
|
enumerable: !0,
|
|
2803
3074
|
configurable: !1
|
|
2804
3075
|
});
|
|
@@ -2817,6 +3088,9 @@
|
|
|
2817
3088
|
'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
|
|
2818
3089
|
);
|
|
2819
3090
|
}
|
|
3091
|
+
function markIOStarted() {
|
|
3092
|
+
this._debugIOStarted = !0;
|
|
3093
|
+
}
|
|
2820
3094
|
function ResponseInstance(
|
|
2821
3095
|
bundlerConfig,
|
|
2822
3096
|
serverReferenceConfig,
|
|
@@ -2825,9 +3099,12 @@
|
|
|
2825
3099
|
encodeFormAction,
|
|
2826
3100
|
nonce,
|
|
2827
3101
|
temporaryReferences,
|
|
3102
|
+
allowPartialStream,
|
|
2828
3103
|
findSourceMapURL,
|
|
2829
3104
|
replayConsole,
|
|
2830
3105
|
environmentName,
|
|
3106
|
+
debugStartTime,
|
|
3107
|
+
debugEndTime,
|
|
2831
3108
|
debugChannel
|
|
2832
3109
|
) {
|
|
2833
3110
|
var chunks = new Map();
|
|
@@ -2839,9 +3116,9 @@
|
|
|
2839
3116
|
this._nonce = nonce;
|
|
2840
3117
|
this._chunks = chunks;
|
|
2841
3118
|
this._stringDecoder = new util.TextDecoder();
|
|
2842
|
-
this._fromJSON = null;
|
|
2843
3119
|
this._closed = !1;
|
|
2844
3120
|
this._closedReason = null;
|
|
3121
|
+
this._allowPartialStream = allowPartialStream;
|
|
2845
3122
|
this._tempRefs = temporaryReferences;
|
|
2846
3123
|
this._timeOrigin = 0;
|
|
2847
3124
|
this._pendingInitialRender = null;
|
|
@@ -2859,7 +3136,11 @@
|
|
|
2859
3136
|
(this._debugRootTask = console.createTask(
|
|
2860
3137
|
'"use ' + environmentName.toLowerCase() + '"'
|
|
2861
3138
|
));
|
|
2862
|
-
this._debugStartTime =
|
|
3139
|
+
this._debugStartTime =
|
|
3140
|
+
null == debugStartTime ? performance.now() : debugStartTime;
|
|
3141
|
+
this._debugIOStarted = !1;
|
|
3142
|
+
setTimeout(markIOStarted.bind(this), 0);
|
|
3143
|
+
this._debugEndTime = void 0 === debugEndTime ? null : debugEndTime;
|
|
2863
3144
|
this._debugFindSourceMapURL = findSourceMapURL;
|
|
2864
3145
|
this._debugChannel = debugChannel;
|
|
2865
3146
|
this._blockedConsole = null;
|
|
@@ -2870,7 +3151,41 @@
|
|
|
2870
3151
|
? (closeDebugChannel(debugChannel), (this._debugChannel = void 0))
|
|
2871
3152
|
: debugChannelRegistry.register(this, debugChannel, this));
|
|
2872
3153
|
replayConsole && markAllTracksInOrder();
|
|
2873
|
-
|
|
3154
|
+
}
|
|
3155
|
+
function createResponse(
|
|
3156
|
+
bundlerConfig,
|
|
3157
|
+
serverReferenceConfig,
|
|
3158
|
+
moduleLoading,
|
|
3159
|
+
callServer,
|
|
3160
|
+
encodeFormAction,
|
|
3161
|
+
nonce,
|
|
3162
|
+
temporaryReferences,
|
|
3163
|
+
allowPartialStream,
|
|
3164
|
+
findSourceMapURL,
|
|
3165
|
+
replayConsole,
|
|
3166
|
+
environmentName,
|
|
3167
|
+
debugStartTime,
|
|
3168
|
+
debugEndTime,
|
|
3169
|
+
debugChannel
|
|
3170
|
+
) {
|
|
3171
|
+
checkEvalAvailabilityOnceDev();
|
|
3172
|
+
bundlerConfig = new ResponseInstance(
|
|
3173
|
+
bundlerConfig,
|
|
3174
|
+
serverReferenceConfig,
|
|
3175
|
+
moduleLoading,
|
|
3176
|
+
callServer,
|
|
3177
|
+
encodeFormAction,
|
|
3178
|
+
nonce,
|
|
3179
|
+
temporaryReferences,
|
|
3180
|
+
allowPartialStream,
|
|
3181
|
+
findSourceMapURL,
|
|
3182
|
+
replayConsole,
|
|
3183
|
+
environmentName,
|
|
3184
|
+
debugStartTime,
|
|
3185
|
+
debugEndTime,
|
|
3186
|
+
debugChannel
|
|
3187
|
+
)._weakResponse;
|
|
3188
|
+
return bundlerConfig;
|
|
2874
3189
|
}
|
|
2875
3190
|
function createStreamState(weakResponse, streamDebugValue) {
|
|
2876
3191
|
var streamState = {
|
|
@@ -2885,7 +3200,7 @@
|
|
|
2885
3200
|
debugValuePromise.status = "fulfilled";
|
|
2886
3201
|
debugValuePromise.value = streamDebugValue;
|
|
2887
3202
|
streamState._debugInfo = {
|
|
2888
|
-
name: "
|
|
3203
|
+
name: "rsc stream",
|
|
2889
3204
|
start: weakResponse._debugStartTime,
|
|
2890
3205
|
end: weakResponse._debugStartTime,
|
|
2891
3206
|
byteSize: 0,
|
|
@@ -2917,7 +3232,7 @@
|
|
|
2917
3232
|
(streamState._debugTargetChunkSize = chunkLength + MIN_CHUNK_SIZE))
|
|
2918
3233
|
: ((debugInfo.end = endTime), (debugInfo.byteSize = chunkLength));
|
|
2919
3234
|
}
|
|
2920
|
-
function
|
|
3235
|
+
function addAsyncInfo(chunk, asyncInfo) {
|
|
2921
3236
|
var value = resolveLazy(chunk.value);
|
|
2922
3237
|
"object" !== typeof value ||
|
|
2923
3238
|
null === value ||
|
|
@@ -2925,22 +3240,24 @@
|
|
|
2925
3240
|
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
2926
3241
|
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
2927
3242
|
value.$$typeof !== REACT_LAZY_TYPE)
|
|
2928
|
-
? chunk._debugInfo.push
|
|
3243
|
+
? chunk._debugInfo.push(asyncInfo)
|
|
2929
3244
|
: isArrayImpl(value._debugInfo)
|
|
2930
|
-
? value._debugInfo.push
|
|
2931
|
-
: Object.
|
|
3245
|
+
? value._debugInfo.push(asyncInfo)
|
|
3246
|
+
: Object.isFrozen(value) ||
|
|
3247
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2932
3248
|
configurable: !1,
|
|
2933
3249
|
enumerable: !1,
|
|
2934
3250
|
writable: !0,
|
|
2935
|
-
value:
|
|
3251
|
+
value: [asyncInfo]
|
|
2936
3252
|
});
|
|
2937
3253
|
}
|
|
2938
|
-
function resolveChunkDebugInfo(streamState, chunk) {
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
3254
|
+
function resolveChunkDebugInfo(response, streamState, chunk) {
|
|
3255
|
+
response._debugIOStarted &&
|
|
3256
|
+
((response = { awaited: streamState._debugInfo }),
|
|
3257
|
+
"pending" === chunk.status || "blocked" === chunk.status
|
|
3258
|
+
? ((response = addAsyncInfo.bind(null, chunk, response)),
|
|
3259
|
+
chunk.then(response, response))
|
|
3260
|
+
: addAsyncInfo(chunk, response));
|
|
2944
3261
|
}
|
|
2945
3262
|
function resolveBuffer(response, id, buffer, streamState) {
|
|
2946
3263
|
var chunks = response._chunks,
|
|
@@ -2948,21 +3265,31 @@
|
|
|
2948
3265
|
chunk && "pending" !== chunk.status
|
|
2949
3266
|
? chunk.reason.enqueueValue(buffer)
|
|
2950
3267
|
: (chunk && releasePendingChunk(response, chunk),
|
|
2951
|
-
(
|
|
2952
|
-
resolveChunkDebugInfo(streamState,
|
|
2953
|
-
chunks.set(id,
|
|
3268
|
+
(buffer = new ReactPromise("fulfilled", buffer, null)),
|
|
3269
|
+
resolveChunkDebugInfo(response, streamState, buffer),
|
|
3270
|
+
chunks.set(id, buffer));
|
|
2954
3271
|
}
|
|
2955
3272
|
function resolveModule(response, id, model, streamState) {
|
|
2956
3273
|
var chunks = response._chunks,
|
|
2957
|
-
chunk = chunks.get(id)
|
|
2958
|
-
|
|
3274
|
+
chunk = chunks.get(id),
|
|
3275
|
+
prevHandler = initializingHandler;
|
|
3276
|
+
initializingHandler = null;
|
|
3277
|
+
try {
|
|
3278
|
+
var clientReferenceMetadata = parseModel(response, model);
|
|
3279
|
+
if (null !== initializingHandler)
|
|
3280
|
+
throw Error(
|
|
3281
|
+
"A client reference was blocked on a row that has not been received yet. This is a bug in React."
|
|
3282
|
+
);
|
|
3283
|
+
} finally {
|
|
3284
|
+
initializingHandler = prevHandler;
|
|
3285
|
+
}
|
|
2959
3286
|
var clientReference = resolveClientReference(
|
|
2960
3287
|
response._bundlerConfig,
|
|
2961
|
-
|
|
3288
|
+
clientReferenceMetadata
|
|
2962
3289
|
);
|
|
2963
3290
|
prepareDestinationWithChunks(
|
|
2964
3291
|
response._moduleLoading,
|
|
2965
|
-
|
|
3292
|
+
clientReferenceMetadata[1],
|
|
2966
3293
|
response._nonce
|
|
2967
3294
|
);
|
|
2968
3295
|
if ((model = preloadModule(clientReference))) {
|
|
@@ -2973,7 +3300,7 @@
|
|
|
2973
3300
|
} else
|
|
2974
3301
|
(blockedChunk = new ReactPromise("blocked", null, null)),
|
|
2975
3302
|
chunks.set(id, blockedChunk);
|
|
2976
|
-
resolveChunkDebugInfo(streamState, blockedChunk);
|
|
3303
|
+
resolveChunkDebugInfo(response, streamState, blockedChunk);
|
|
2977
3304
|
model.then(
|
|
2978
3305
|
function () {
|
|
2979
3306
|
return resolveModuleChunk(response, blockedChunk, clientReference);
|
|
@@ -2984,14 +3311,14 @@
|
|
|
2984
3311
|
);
|
|
2985
3312
|
} else
|
|
2986
3313
|
chunk
|
|
2987
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
3314
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
2988
3315
|
resolveModuleChunk(response, chunk, clientReference))
|
|
2989
3316
|
: ((chunk = new ReactPromise(
|
|
2990
3317
|
"resolved_module",
|
|
2991
3318
|
clientReference,
|
|
2992
3319
|
null
|
|
2993
3320
|
)),
|
|
2994
|
-
resolveChunkDebugInfo(streamState, chunk),
|
|
3321
|
+
resolveChunkDebugInfo(response, streamState, chunk),
|
|
2995
3322
|
chunks.set(id, chunk));
|
|
2996
3323
|
}
|
|
2997
3324
|
function resolveStream(response, id, stream, controller, streamState) {
|
|
@@ -2999,10 +3326,9 @@
|
|
|
2999
3326
|
chunk = chunks.get(id);
|
|
3000
3327
|
if (chunk) {
|
|
3001
3328
|
if (
|
|
3002
|
-
(resolveChunkDebugInfo(streamState, chunk),
|
|
3329
|
+
(resolveChunkDebugInfo(response, streamState, chunk),
|
|
3003
3330
|
"pending" === chunk.status)
|
|
3004
3331
|
) {
|
|
3005
|
-
releasePendingChunk(response, chunk);
|
|
3006
3332
|
id = chunk.value;
|
|
3007
3333
|
if (null != chunk._debugChunk) {
|
|
3008
3334
|
streamState = initializingHandler;
|
|
@@ -3031,12 +3357,17 @@
|
|
|
3031
3357
|
chunk.status = "fulfilled";
|
|
3032
3358
|
chunk.value = stream;
|
|
3033
3359
|
chunk.reason = controller;
|
|
3034
|
-
null !== id
|
|
3360
|
+
null !== id
|
|
3361
|
+
? wakeChunk(response, id, chunk.value, chunk)
|
|
3362
|
+
: (filterDebugInfo(response, chunk),
|
|
3363
|
+
moveDebugInfoFromChunkToInnerValue(chunk, stream));
|
|
3035
3364
|
}
|
|
3036
3365
|
} else
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3366
|
+
0 === response._pendingChunks++ &&
|
|
3367
|
+
(response._weakResponse.response = response),
|
|
3368
|
+
(stream = new ReactPromise("fulfilled", stream, controller)),
|
|
3369
|
+
resolveChunkDebugInfo(response, streamState, stream),
|
|
3370
|
+
chunks.set(id, stream);
|
|
3040
3371
|
}
|
|
3041
3372
|
function startReadableStream(response, id, type, streamState) {
|
|
3042
3373
|
var controller = null,
|
|
@@ -3077,8 +3408,8 @@
|
|
|
3077
3408
|
(previousBlockedChunk = chunk));
|
|
3078
3409
|
} else {
|
|
3079
3410
|
chunk = previousBlockedChunk;
|
|
3080
|
-
var
|
|
3081
|
-
|
|
3411
|
+
var _chunk4 = createPendingChunk(response);
|
|
3412
|
+
_chunk4.then(
|
|
3082
3413
|
function (v) {
|
|
3083
3414
|
return controller.enqueue(v);
|
|
3084
3415
|
},
|
|
@@ -3086,11 +3417,11 @@
|
|
|
3086
3417
|
return controller.error(e);
|
|
3087
3418
|
}
|
|
3088
3419
|
);
|
|
3089
|
-
previousBlockedChunk =
|
|
3420
|
+
previousBlockedChunk = _chunk4;
|
|
3090
3421
|
chunk.then(function () {
|
|
3091
|
-
previousBlockedChunk ===
|
|
3422
|
+
previousBlockedChunk === _chunk4 &&
|
|
3092
3423
|
(previousBlockedChunk = null);
|
|
3093
|
-
resolveModelChunk(response,
|
|
3424
|
+
resolveModelChunk(response, _chunk4, json);
|
|
3094
3425
|
});
|
|
3095
3426
|
}
|
|
3096
3427
|
},
|
|
@@ -3175,6 +3506,7 @@
|
|
|
3175
3506
|
chunk.reason = null;
|
|
3176
3507
|
null !== resolveListeners &&
|
|
3177
3508
|
wakeChunkIfInitialized(
|
|
3509
|
+
response,
|
|
3178
3510
|
chunk,
|
|
3179
3511
|
resolveListeners,
|
|
3180
3512
|
rejectListeners
|
|
@@ -3238,19 +3570,46 @@
|
|
|
3238
3570
|
}
|
|
3239
3571
|
function resolveErrorDev(response, errorInfo) {
|
|
3240
3572
|
var name = errorInfo.name,
|
|
3241
|
-
|
|
3242
|
-
|
|
3573
|
+
message = errorInfo.message,
|
|
3574
|
+
stack = errorInfo.stack,
|
|
3575
|
+
env = errorInfo.env,
|
|
3576
|
+
errorOptions =
|
|
3577
|
+
"cause" in errorInfo
|
|
3578
|
+
? {
|
|
3579
|
+
cause: reviveModel(
|
|
3580
|
+
response,
|
|
3581
|
+
errorInfo.cause,
|
|
3582
|
+
errorInfo,
|
|
3583
|
+
"cause"
|
|
3584
|
+
)
|
|
3585
|
+
}
|
|
3586
|
+
: void 0,
|
|
3587
|
+
isAggregateError =
|
|
3588
|
+
"undefined" !== typeof AggregateError && "errors" in errorInfo,
|
|
3589
|
+
revivedErrors = isAggregateError
|
|
3590
|
+
? reviveModel(response, errorInfo.errors, errorInfo, "errors")
|
|
3591
|
+
: null;
|
|
3592
|
+
message = buildFakeCallStack(
|
|
3243
3593
|
response,
|
|
3244
|
-
|
|
3594
|
+
stack,
|
|
3245
3595
|
env,
|
|
3246
3596
|
!1,
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3597
|
+
isAggregateError
|
|
3598
|
+
? AggregateError.bind(
|
|
3599
|
+
null,
|
|
3600
|
+
revivedErrors,
|
|
3601
|
+
message ||
|
|
3602
|
+
"An error occurred in the Server Components render but no message was provided",
|
|
3603
|
+
errorOptions
|
|
3604
|
+
)
|
|
3605
|
+
: Error.bind(
|
|
3606
|
+
null,
|
|
3607
|
+
message ||
|
|
3608
|
+
"An error occurred in the Server Components render but no message was provided",
|
|
3609
|
+
errorOptions
|
|
3610
|
+
)
|
|
3252
3611
|
);
|
|
3253
|
-
|
|
3612
|
+
stack = null;
|
|
3254
3613
|
null != errorInfo.owner &&
|
|
3255
3614
|
((errorInfo = errorInfo.owner.slice(1)),
|
|
3256
3615
|
(errorInfo = getOutlinedModel(
|
|
@@ -3261,14 +3620,14 @@
|
|
|
3261
3620
|
createModel
|
|
3262
3621
|
)),
|
|
3263
3622
|
null !== errorInfo &&
|
|
3264
|
-
(
|
|
3265
|
-
null ===
|
|
3623
|
+
(stack = initializeFakeTask(response, errorInfo)));
|
|
3624
|
+
null === stack
|
|
3266
3625
|
? ((response = getRootTask(response, env)),
|
|
3267
|
-
(
|
|
3268
|
-
: (
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
return
|
|
3626
|
+
(response = null != response ? response.run(message) : message()))
|
|
3627
|
+
: (response = stack.run(message));
|
|
3628
|
+
response.name = name;
|
|
3629
|
+
response.environmentName = env;
|
|
3630
|
+
return response;
|
|
3272
3631
|
}
|
|
3273
3632
|
function createFakeFunction(
|
|
3274
3633
|
name,
|
|
@@ -3361,9 +3720,10 @@
|
|
|
3361
3720
|
try {
|
|
3362
3721
|
var fn = (0, eval)(encodedName)[name];
|
|
3363
3722
|
} catch (x) {
|
|
3364
|
-
fn = function (_) {
|
|
3723
|
+
(fn = function (_) {
|
|
3365
3724
|
return _();
|
|
3366
|
-
}
|
|
3725
|
+
}),
|
|
3726
|
+
Object.defineProperty(fn, "name", { value: name });
|
|
3367
3727
|
}
|
|
3368
3728
|
return fn;
|
|
3369
3729
|
}
|
|
@@ -3463,7 +3823,11 @@
|
|
|
3463
3823
|
return (debugInfo.debugTask = response);
|
|
3464
3824
|
}
|
|
3465
3825
|
function fakeJSXCallSite() {
|
|
3466
|
-
|
|
3826
|
+
var previousStackTraceLimit = Error.stackTraceLimit;
|
|
3827
|
+
Error.stackTraceLimit = ownerStackTraceLimit;
|
|
3828
|
+
var error = Error("react-stack-top-frame");
|
|
3829
|
+
Error.stackTraceLimit = previousStackTraceLimit;
|
|
3830
|
+
return error;
|
|
3467
3831
|
}
|
|
3468
3832
|
function initializeFakeStack(response, debugInfo) {
|
|
3469
3833
|
if (void 0 === debugInfo.debugStack) {
|
|
@@ -3566,18 +3930,18 @@
|
|
|
3566
3930
|
),
|
|
3567
3931
|
(response._blockedConsole = blockedChunk));
|
|
3568
3932
|
else {
|
|
3569
|
-
var
|
|
3570
|
-
|
|
3933
|
+
var _chunk5 = createPendingChunk(response);
|
|
3934
|
+
_chunk5.then(
|
|
3571
3935
|
function (v) {
|
|
3572
3936
|
return replayConsoleWithCallStackInDEV(response, v);
|
|
3573
3937
|
},
|
|
3574
3938
|
function () {}
|
|
3575
3939
|
);
|
|
3576
|
-
response._blockedConsole =
|
|
3940
|
+
response._blockedConsole = _chunk5;
|
|
3577
3941
|
var unblock = function () {
|
|
3578
|
-
response._blockedConsole ===
|
|
3942
|
+
response._blockedConsole === _chunk5 &&
|
|
3579
3943
|
(response._blockedConsole = null);
|
|
3580
|
-
resolveModelChunk(response,
|
|
3944
|
+
resolveModelChunk(response, _chunk5, json);
|
|
3581
3945
|
};
|
|
3582
3946
|
blockedChunk.then(unblock, unblock);
|
|
3583
3947
|
}
|
|
@@ -3611,13 +3975,19 @@
|
|
|
3611
3975
|
}
|
|
3612
3976
|
function resolveIOInfo(response, id, model) {
|
|
3613
3977
|
var chunks = response._chunks,
|
|
3614
|
-
chunk = chunks.get(id)
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3978
|
+
chunk = chunks.get(id),
|
|
3979
|
+
prevIsInitializingDebugInfo = isInitializingDebugInfo;
|
|
3980
|
+
isInitializingDebugInfo = !0;
|
|
3981
|
+
try {
|
|
3982
|
+
chunk
|
|
3983
|
+
? (resolveModelChunk(response, chunk, model),
|
|
3984
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk))
|
|
3985
|
+
: ((chunk = createResolvedModelChunk(response, model)),
|
|
3986
|
+
chunks.set(id, chunk),
|
|
3987
|
+
initializeModelChunk(chunk));
|
|
3988
|
+
} finally {
|
|
3989
|
+
isInitializingDebugInfo = prevIsInitializingDebugInfo;
|
|
3990
|
+
}
|
|
3621
3991
|
"fulfilled" === chunk.status
|
|
3622
3992
|
? initializeIOInfo(response, chunk.value)
|
|
3623
3993
|
: chunk.then(
|
|
@@ -3635,8 +4005,8 @@
|
|
|
3635
4005
|
)
|
|
3636
4006
|
byteLength += buffer[i].byteLength;
|
|
3637
4007
|
byteLength = new Uint8Array(byteLength);
|
|
3638
|
-
for (var
|
|
3639
|
-
var chunk = buffer[
|
|
4008
|
+
for (var _i4 = (i = 0); _i4 < l; _i4++) {
|
|
4009
|
+
var chunk = buffer[_i4];
|
|
3640
4010
|
byteLength.set(chunk, i);
|
|
3641
4011
|
i += chunk.byteLength;
|
|
3642
4012
|
}
|
|
@@ -3713,8 +4083,19 @@
|
|
|
3713
4083
|
previousResult.track = trackIdx$jscomp$6;
|
|
3714
4084
|
return previousResult;
|
|
3715
4085
|
}
|
|
3716
|
-
var children = root._children
|
|
3717
|
-
|
|
4086
|
+
var children = root._children;
|
|
4087
|
+
var debugInfo = root._debugInfo;
|
|
4088
|
+
if (0 === debugInfo.length && "fulfilled" === root.status) {
|
|
4089
|
+
var resolvedValue = resolveLazy(root.value);
|
|
4090
|
+
"object" === typeof resolvedValue &&
|
|
4091
|
+
null !== resolvedValue &&
|
|
4092
|
+
(isArrayImpl(resolvedValue) ||
|
|
4093
|
+
"function" === typeof resolvedValue[ASYNC_ITERATOR] ||
|
|
4094
|
+
resolvedValue.$$typeof === REACT_ELEMENT_TYPE ||
|
|
4095
|
+
resolvedValue.$$typeof === REACT_LAZY_TYPE) &&
|
|
4096
|
+
isArrayImpl(resolvedValue._debugInfo) &&
|
|
4097
|
+
(debugInfo = resolvedValue._debugInfo);
|
|
4098
|
+
}
|
|
3718
4099
|
if (debugInfo) {
|
|
3719
4100
|
for (var startTime$jscomp$0 = 0, i = 0; i < debugInfo.length; i++) {
|
|
3720
4101
|
var info = debugInfo[i];
|
|
@@ -3725,8 +4106,8 @@
|
|
|
3725
4106
|
break;
|
|
3726
4107
|
}
|
|
3727
4108
|
}
|
|
3728
|
-
for (var
|
|
3729
|
-
var _info = debugInfo[
|
|
4109
|
+
for (var _i5 = debugInfo.length - 1; 0 <= _i5; _i5--) {
|
|
4110
|
+
var _info = debugInfo[_i5];
|
|
3730
4111
|
if ("number" === typeof _info.time && _info.time > parentEndTime) {
|
|
3731
4112
|
parentEndTime = _info.time;
|
|
3732
4113
|
break;
|
|
@@ -3743,13 +4124,13 @@
|
|
|
3743
4124
|
var childrenEndTime = -Infinity,
|
|
3744
4125
|
childTrackIdx = trackIdx$jscomp$6,
|
|
3745
4126
|
childTrackTime = trackTime,
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
4127
|
+
_i6 = 0;
|
|
4128
|
+
_i6 < children.length;
|
|
4129
|
+
_i6++
|
|
3749
4130
|
) {
|
|
3750
4131
|
var childResult = flushComponentPerformance(
|
|
3751
4132
|
response$jscomp$0,
|
|
3752
|
-
children[
|
|
4133
|
+
children[_i6],
|
|
3753
4134
|
childTrackIdx,
|
|
3754
4135
|
childTrackTime,
|
|
3755
4136
|
parentEndTime
|
|
@@ -3767,16 +4148,16 @@
|
|
|
3767
4148
|
isLastComponent = !0,
|
|
3768
4149
|
endTime = -1,
|
|
3769
4150
|
endTimeIdx = -1,
|
|
3770
|
-
|
|
3771
|
-
0 <=
|
|
3772
|
-
|
|
4151
|
+
_i7 = debugInfo.length - 1;
|
|
4152
|
+
0 <= _i7;
|
|
4153
|
+
_i7--
|
|
3773
4154
|
) {
|
|
3774
|
-
var _info2 = debugInfo[
|
|
4155
|
+
var _info2 = debugInfo[_i7];
|
|
3775
4156
|
if ("number" === typeof _info2.time) {
|
|
3776
4157
|
0 === componentEndTime && (componentEndTime = _info2.time);
|
|
3777
4158
|
var time = _info2.time;
|
|
3778
4159
|
if (-1 < endTimeIdx)
|
|
3779
|
-
for (var j = endTimeIdx - 1; j >
|
|
4160
|
+
for (var j = endTimeIdx - 1; j > _i7; j--) {
|
|
3780
4161
|
var candidateInfo = debugInfo[j];
|
|
3781
4162
|
if ("string" === typeof candidateInfo.name) {
|
|
3782
4163
|
componentEndTime > childrenEndTime &&
|
|
@@ -3806,6 +4187,7 @@
|
|
|
3806
4187
|
void 0 === env
|
|
3807
4188
|
? name
|
|
3808
4189
|
: name + " [" + env + "]",
|
|
4190
|
+
measureName = "\u200b" + entryName$jscomp$0,
|
|
3809
4191
|
properties = [
|
|
3810
4192
|
[
|
|
3811
4193
|
"Error",
|
|
@@ -3831,7 +4213,7 @@
|
|
|
3831
4213
|
0,
|
|
3832
4214
|
""
|
|
3833
4215
|
);
|
|
3834
|
-
performance.measure(
|
|
4216
|
+
performance.measure(measureName, {
|
|
3835
4217
|
start: 0 > startTime$jscomp$2 ? 0 : startTime$jscomp$2,
|
|
3836
4218
|
end: childrenEndTime$jscomp$1,
|
|
3837
4219
|
detail: {
|
|
@@ -3844,6 +4226,7 @@
|
|
|
3844
4226
|
}
|
|
3845
4227
|
}
|
|
3846
4228
|
});
|
|
4229
|
+
performance.clearMeasures(measureName);
|
|
3847
4230
|
}
|
|
3848
4231
|
} else {
|
|
3849
4232
|
var componentInfo$jscomp$3 = componentInfo$jscomp$1,
|
|
@@ -3875,11 +4258,12 @@
|
|
|
3875
4258
|
? "primary-dark"
|
|
3876
4259
|
: "secondary-dark"
|
|
3877
4260
|
: "error",
|
|
3878
|
-
|
|
3879
|
-
|
|
4261
|
+
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask,
|
|
4262
|
+
measureName$jscomp$0 =
|
|
4263
|
+
"\u200b" +
|
|
4264
|
+
(isPrimaryEnv || void 0 === env$jscomp$0
|
|
3880
4265
|
? name$jscomp$0
|
|
3881
|
-
: name$jscomp$0 + " [" + env$jscomp$0 + "]"
|
|
3882
|
-
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask;
|
|
4266
|
+
: name$jscomp$0 + " [" + env$jscomp$0 + "]");
|
|
3883
4267
|
if (debugTask$jscomp$0) {
|
|
3884
4268
|
var properties$jscomp$0 = [];
|
|
3885
4269
|
null != componentInfo$jscomp$3.key &&
|
|
@@ -3900,7 +4284,7 @@
|
|
|
3900
4284
|
debugTask$jscomp$0.run(
|
|
3901
4285
|
performance.measure.bind(
|
|
3902
4286
|
performance,
|
|
3903
|
-
|
|
4287
|
+
measureName$jscomp$0,
|
|
3904
4288
|
{
|
|
3905
4289
|
start:
|
|
3906
4290
|
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
@@ -3916,9 +4300,10 @@
|
|
|
3916
4300
|
}
|
|
3917
4301
|
)
|
|
3918
4302
|
);
|
|
4303
|
+
performance.clearMeasures(measureName$jscomp$0);
|
|
3919
4304
|
} else
|
|
3920
4305
|
console.timeStamp(
|
|
3921
|
-
|
|
4306
|
+
measureName$jscomp$0,
|
|
3922
4307
|
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3923
4308
|
childrenEndTime$jscomp$2,
|
|
3924
4309
|
trackNames[trackIdx$jscomp$2],
|
|
@@ -3960,7 +4345,7 @@
|
|
|
3960
4345
|
error$jscomp$0 = thenable.reason;
|
|
3961
4346
|
if (supportsUserTiming && 0 < endTime$jscomp$0) {
|
|
3962
4347
|
var description = getIODescription(error$jscomp$0),
|
|
3963
|
-
entryName$jscomp$
|
|
4348
|
+
entryName$jscomp$1 =
|
|
3964
4349
|
"await " +
|
|
3965
4350
|
getIOShortName(
|
|
3966
4351
|
asyncInfo$jscomp$0.awaited,
|
|
@@ -3992,7 +4377,7 @@
|
|
|
3992
4377
|
debugTask$jscomp$1.run(
|
|
3993
4378
|
performance.measure.bind(
|
|
3994
4379
|
performance,
|
|
3995
|
-
entryName$jscomp$
|
|
4380
|
+
entryName$jscomp$1,
|
|
3996
4381
|
{
|
|
3997
4382
|
start:
|
|
3998
4383
|
0 > startTime$jscomp$4
|
|
@@ -4011,9 +4396,10 @@
|
|
|
4011
4396
|
}
|
|
4012
4397
|
)
|
|
4013
4398
|
);
|
|
4399
|
+
performance.clearMeasures(entryName$jscomp$1);
|
|
4014
4400
|
} else
|
|
4015
4401
|
console.timeStamp(
|
|
4016
|
-
entryName$jscomp$
|
|
4402
|
+
entryName$jscomp$1,
|
|
4017
4403
|
0 > startTime$jscomp$4 ? 0 : startTime$jscomp$4,
|
|
4018
4404
|
endTime$jscomp$0,
|
|
4019
4405
|
trackNames[trackIdx$jscomp$3],
|
|
@@ -4045,7 +4431,7 @@
|
|
|
4045
4431
|
}
|
|
4046
4432
|
else {
|
|
4047
4433
|
endTime = time;
|
|
4048
|
-
for (var _j = debugInfo.length - 1; _j >
|
|
4434
|
+
for (var _j = debugInfo.length - 1; _j > _i7; _j--) {
|
|
4049
4435
|
var _candidateInfo = debugInfo[_j];
|
|
4050
4436
|
if ("string" === typeof _candidateInfo.name) {
|
|
4051
4437
|
componentEndTime > childrenEndTime &&
|
|
@@ -4059,10 +4445,11 @@
|
|
|
4059
4445
|
if (supportsUserTiming) {
|
|
4060
4446
|
var env$jscomp$2 = componentInfo$jscomp$4.env,
|
|
4061
4447
|
name$jscomp$1 = componentInfo$jscomp$4.name,
|
|
4062
|
-
entryName$jscomp$
|
|
4448
|
+
entryName$jscomp$2 =
|
|
4063
4449
|
env$jscomp$2 === _env || void 0 === env$jscomp$2
|
|
4064
4450
|
? name$jscomp$1
|
|
4065
4451
|
: name$jscomp$1 + " [" + env$jscomp$2 + "]",
|
|
4452
|
+
measureName$jscomp$1 = "\u200b" + entryName$jscomp$2,
|
|
4066
4453
|
properties$jscomp$2 = [
|
|
4067
4454
|
[
|
|
4068
4455
|
"Aborted",
|
|
@@ -4084,7 +4471,7 @@
|
|
|
4084
4471
|
0,
|
|
4085
4472
|
""
|
|
4086
4473
|
);
|
|
4087
|
-
performance.measure(
|
|
4474
|
+
performance.measure(measureName$jscomp$1, {
|
|
4088
4475
|
start: 0 > startTime$jscomp$5 ? 0 : startTime$jscomp$5,
|
|
4089
4476
|
end: childrenEndTime$jscomp$3,
|
|
4090
4477
|
detail: {
|
|
@@ -4092,11 +4479,12 @@
|
|
|
4092
4479
|
color: "warning",
|
|
4093
4480
|
track: trackNames[trackIdx$jscomp$4],
|
|
4094
4481
|
trackGroup: "Server Components \u269b",
|
|
4095
|
-
tooltipText: entryName$jscomp$
|
|
4482
|
+
tooltipText: entryName$jscomp$2 + " Aborted",
|
|
4096
4483
|
properties: properties$jscomp$2
|
|
4097
4484
|
}
|
|
4098
4485
|
}
|
|
4099
4486
|
});
|
|
4487
|
+
performance.clearMeasures(measureName$jscomp$1);
|
|
4100
4488
|
}
|
|
4101
4489
|
componentEndTime = time;
|
|
4102
4490
|
result.component = _componentInfo;
|
|
@@ -4116,7 +4504,7 @@
|
|
|
4116
4504
|
endTime$jscomp$1 = endTime,
|
|
4117
4505
|
rootEnv$jscomp$0 = _env2;
|
|
4118
4506
|
if (supportsUserTiming && 0 < endTime$jscomp$1) {
|
|
4119
|
-
var entryName$jscomp$
|
|
4507
|
+
var entryName$jscomp$3 =
|
|
4120
4508
|
"await " +
|
|
4121
4509
|
getIOShortName(
|
|
4122
4510
|
asyncInfo$jscomp$1.awaited,
|
|
@@ -4138,7 +4526,7 @@
|
|
|
4138
4526
|
debugTask$jscomp$2.run(
|
|
4139
4527
|
performance.measure.bind(
|
|
4140
4528
|
performance,
|
|
4141
|
-
entryName$jscomp$
|
|
4529
|
+
entryName$jscomp$3,
|
|
4142
4530
|
{
|
|
4143
4531
|
start:
|
|
4144
4532
|
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
@@ -4160,9 +4548,10 @@
|
|
|
4160
4548
|
}
|
|
4161
4549
|
)
|
|
4162
4550
|
);
|
|
4551
|
+
performance.clearMeasures(entryName$jscomp$3);
|
|
4163
4552
|
} else
|
|
4164
4553
|
console.timeStamp(
|
|
4165
|
-
entryName$jscomp$
|
|
4554
|
+
entryName$jscomp$3,
|
|
4166
4555
|
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
4167
4556
|
endTime$jscomp$1,
|
|
4168
4557
|
trackNames[trackIdx$jscomp$5],
|
|
@@ -4174,7 +4563,7 @@
|
|
|
4174
4563
|
}
|
|
4175
4564
|
}
|
|
4176
4565
|
endTime = time;
|
|
4177
|
-
endTimeIdx =
|
|
4566
|
+
endTimeIdx = _i7;
|
|
4178
4567
|
}
|
|
4179
4568
|
}
|
|
4180
4569
|
result.endTime = childrenEndTime;
|
|
@@ -4358,7 +4747,7 @@
|
|
|
4358
4747
|
case 72:
|
|
4359
4748
|
id = row[0];
|
|
4360
4749
|
streamState = row.slice(1);
|
|
4361
|
-
response =
|
|
4750
|
+
response = parseModel(response, streamState);
|
|
4362
4751
|
streamState = ReactDOMSharedInternals.d;
|
|
4363
4752
|
switch (id) {
|
|
4364
4753
|
case "D":
|
|
@@ -4408,20 +4797,20 @@
|
|
|
4408
4797
|
var error = resolveErrorDev(response, row);
|
|
4409
4798
|
error.digest = row.digest;
|
|
4410
4799
|
chunk
|
|
4411
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4800
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
4412
4801
|
triggerErrorOnChunk(response, chunk, error))
|
|
4413
|
-
: ((
|
|
4414
|
-
resolveChunkDebugInfo(streamState,
|
|
4415
|
-
tag.set(id,
|
|
4802
|
+
: ((row = new ReactPromise("rejected", null, error)),
|
|
4803
|
+
resolveChunkDebugInfo(response, streamState, row),
|
|
4804
|
+
tag.set(id, row));
|
|
4416
4805
|
break;
|
|
4417
4806
|
case 84:
|
|
4418
4807
|
tag = response._chunks;
|
|
4419
4808
|
(chunk = tag.get(id)) && "pending" !== chunk.status
|
|
4420
4809
|
? chunk.reason.enqueueValue(row)
|
|
4421
4810
|
: (chunk && releasePendingChunk(response, chunk),
|
|
4422
|
-
(
|
|
4423
|
-
resolveChunkDebugInfo(streamState,
|
|
4424
|
-
tag.set(id,
|
|
4811
|
+
(row = new ReactPromise("fulfilled", row, null)),
|
|
4812
|
+
resolveChunkDebugInfo(response, streamState, row),
|
|
4813
|
+
tag.set(id, row));
|
|
4425
4814
|
break;
|
|
4426
4815
|
case 78:
|
|
4427
4816
|
response._timeOrigin = +row - performance.timeOrigin;
|
|
@@ -4467,40 +4856,37 @@
|
|
|
4467
4856
|
startAsyncIterable(response, id, !0, streamState);
|
|
4468
4857
|
break;
|
|
4469
4858
|
case 67:
|
|
4470
|
-
(
|
|
4471
|
-
"fulfilled" ===
|
|
4472
|
-
|
|
4859
|
+
(id = response._chunks.get(id)) &&
|
|
4860
|
+
"fulfilled" === id.status &&
|
|
4861
|
+
(0 === --response._pendingChunks &&
|
|
4862
|
+
(response._weakResponse.response = null),
|
|
4863
|
+
id.reason.close("" === row ? '"$undefined"' : row));
|
|
4473
4864
|
break;
|
|
4474
4865
|
default:
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
((streamState = response._chunks),
|
|
4866
|
+
"" === row
|
|
4867
|
+
? ((streamState = response._chunks),
|
|
4478
4868
|
(row = streamState.get(id)) ||
|
|
4479
4869
|
streamState.set(id, (row = createPendingChunk(response))),
|
|
4480
|
-
"pending"
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
(response
|
|
4484
|
-
|
|
4485
|
-
(response.value = null),
|
|
4486
|
-
(response.reason = null);
|
|
4487
|
-
} else
|
|
4488
|
-
(tag = response._chunks),
|
|
4870
|
+
("pending" !== row.status &&
|
|
4871
|
+
"pending_weak" !== row.status &&
|
|
4872
|
+
"blocked" !== row.status) ||
|
|
4873
|
+
haltChunk(response, row))
|
|
4874
|
+
: ((tag = response._chunks),
|
|
4489
4875
|
(chunk = tag.get(id))
|
|
4490
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4876
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
4491
4877
|
resolveModelChunk(response, chunk, row))
|
|
4492
|
-
: ((
|
|
4493
|
-
resolveChunkDebugInfo(streamState,
|
|
4494
|
-
tag.set(id,
|
|
4878
|
+
: ((row = createResolvedModelChunk(response, row)),
|
|
4879
|
+
resolveChunkDebugInfo(response, streamState, row),
|
|
4880
|
+
tag.set(id, row)));
|
|
4495
4881
|
}
|
|
4496
4882
|
}
|
|
4497
4883
|
function processBinaryChunk(weakResponse, streamState, chunk) {
|
|
4498
|
-
if (
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
rowState = streamState._rowState
|
|
4502
|
-
|
|
4503
|
-
|
|
4884
|
+
if (!hasGCedResponse(weakResponse)) {
|
|
4885
|
+
weakResponse = unwrapWeakResponse(weakResponse);
|
|
4886
|
+
var i = 0,
|
|
4887
|
+
rowState = streamState._rowState,
|
|
4888
|
+
rowID = streamState._rowID,
|
|
4889
|
+
rowTag = streamState._rowTag,
|
|
4504
4890
|
rowLength = streamState._rowLength,
|
|
4505
4891
|
buffer = streamState._buffer,
|
|
4506
4892
|
chunkLength = chunk.length;
|
|
@@ -4515,8 +4901,8 @@
|
|
|
4515
4901
|
lastIdx = chunk[i++];
|
|
4516
4902
|
58 === lastIdx
|
|
4517
4903
|
? (rowState = 1)
|
|
4518
|
-
: (
|
|
4519
|
-
(
|
|
4904
|
+
: (rowID =
|
|
4905
|
+
(rowID << 4) |
|
|
4520
4906
|
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4521
4907
|
continue;
|
|
4522
4908
|
case 1:
|
|
@@ -4525,6 +4911,7 @@
|
|
|
4525
4911
|
65 === rowState ||
|
|
4526
4912
|
79 === rowState ||
|
|
4527
4913
|
111 === rowState ||
|
|
4914
|
+
98 === rowState ||
|
|
4528
4915
|
85 === rowState ||
|
|
4529
4916
|
83 === rowState ||
|
|
4530
4917
|
115 === rowState ||
|
|
@@ -4561,116 +4948,160 @@
|
|
|
4561
4948
|
var offset = chunk.byteOffset + i;
|
|
4562
4949
|
if (-1 < lastIdx)
|
|
4563
4950
|
(rowLength = new Uint8Array(chunk.buffer, offset, lastIdx - i)),
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4951
|
+
98 === rowTag
|
|
4952
|
+
? resolveBuffer(
|
|
4953
|
+
weakResponse,
|
|
4954
|
+
rowID,
|
|
4955
|
+
lastIdx === chunkLength ? rowLength : rowLength.slice(),
|
|
4956
|
+
streamState
|
|
4957
|
+
)
|
|
4958
|
+
: processFullBinaryRow(
|
|
4959
|
+
weakResponse,
|
|
4960
|
+
streamState,
|
|
4961
|
+
rowID,
|
|
4962
|
+
rowTag,
|
|
4963
|
+
buffer,
|
|
4964
|
+
rowLength
|
|
4965
|
+
),
|
|
4572
4966
|
(i = lastIdx),
|
|
4573
4967
|
3 === rowState && i++,
|
|
4574
|
-
(rowLength =
|
|
4968
|
+
(rowLength = rowID = rowTag = rowState = 0),
|
|
4575
4969
|
(buffer.length = 0);
|
|
4576
4970
|
else {
|
|
4577
4971
|
chunk = new Uint8Array(chunk.buffer, offset, chunk.byteLength - i);
|
|
4578
|
-
|
|
4579
|
-
|
|
4972
|
+
98 === rowTag
|
|
4973
|
+
? ((rowLength -= chunk.byteLength),
|
|
4974
|
+
resolveBuffer(weakResponse, rowID, chunk, streamState))
|
|
4975
|
+
: (buffer.push(chunk), (rowLength -= chunk.byteLength));
|
|
4580
4976
|
break;
|
|
4581
4977
|
}
|
|
4582
4978
|
}
|
|
4583
4979
|
streamState._rowState = rowState;
|
|
4584
|
-
streamState._rowID =
|
|
4980
|
+
streamState._rowID = rowID;
|
|
4585
4981
|
streamState._rowTag = rowTag;
|
|
4586
4982
|
streamState._rowLength = rowLength;
|
|
4587
4983
|
}
|
|
4588
4984
|
}
|
|
4589
|
-
function
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
value
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4985
|
+
function parseModel(response, json) {
|
|
4986
|
+
json = JSON.parse(json);
|
|
4987
|
+
return reviveModel(response, json, { "": json }, "");
|
|
4988
|
+
}
|
|
4989
|
+
function reviveModel(response, value, parentObject, key) {
|
|
4990
|
+
if ("string" === typeof value)
|
|
4991
|
+
return "$" === value[0]
|
|
4992
|
+
? parseModelString(response, parentObject, key, value)
|
|
4993
|
+
: value;
|
|
4994
|
+
if ("object" !== typeof value || null === value) return value;
|
|
4995
|
+
if (isArrayImpl(value)) {
|
|
4996
|
+
for (var i = 0; i < value.length; i++)
|
|
4997
|
+
value[i] = reviveModel(response, value[i], value, "" + i);
|
|
4998
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
4999
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
5000
|
+
b: {
|
|
5001
|
+
key = value[4];
|
|
5002
|
+
parentObject = value[5];
|
|
5003
|
+
i = value[6];
|
|
5004
|
+
value = {
|
|
5005
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
5006
|
+
type: value[1],
|
|
5007
|
+
key: value[2],
|
|
5008
|
+
props: value[3],
|
|
5009
|
+
_owner: void 0 === key ? null : key
|
|
5010
|
+
};
|
|
5011
|
+
Object.defineProperty(value, "ref", {
|
|
5012
|
+
enumerable: !1,
|
|
5013
|
+
get: nullRefGetter
|
|
5014
|
+
});
|
|
5015
|
+
value._store = {};
|
|
5016
|
+
Object.defineProperty(value._store, "validated", {
|
|
5017
|
+
configurable: !1,
|
|
5018
|
+
enumerable: !1,
|
|
5019
|
+
writable: !0,
|
|
5020
|
+
value: i
|
|
5021
|
+
});
|
|
5022
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
5023
|
+
configurable: !1,
|
|
5024
|
+
enumerable: !1,
|
|
5025
|
+
writable: !0,
|
|
5026
|
+
value: null
|
|
5027
|
+
});
|
|
5028
|
+
Object.defineProperty(value, "_debugStack", {
|
|
5029
|
+
configurable: !1,
|
|
5030
|
+
enumerable: !1,
|
|
5031
|
+
writable: !0,
|
|
5032
|
+
value: void 0 === parentObject ? null : parentObject
|
|
5033
|
+
});
|
|
5034
|
+
Object.defineProperty(value, "_debugTask", {
|
|
5035
|
+
configurable: !1,
|
|
5036
|
+
enumerable: !1,
|
|
5037
|
+
writable: !0,
|
|
5038
|
+
value: null
|
|
5039
|
+
});
|
|
5040
|
+
if (null !== initializingHandler) {
|
|
5041
|
+
key = initializingHandler;
|
|
5042
|
+
initializingHandler = key.parent;
|
|
5043
|
+
if (key.errored) {
|
|
5044
|
+
parentObject = new ReactPromise("rejected", null, key.reason);
|
|
5045
|
+
initializeElement(response, value, null);
|
|
5046
|
+
response = {
|
|
5047
|
+
name: getComponentNameFromType(value.type) || "",
|
|
5048
|
+
owner: value._owner
|
|
5049
|
+
};
|
|
5050
|
+
response.debugStack = value._debugStack;
|
|
5051
|
+
supportsCreateTask && (response.debugTask = value._debugTask);
|
|
5052
|
+
parentObject._debugInfo = [response];
|
|
5053
|
+
response = createLazyChunkWrapper(parentObject, i);
|
|
5054
|
+
break b;
|
|
5055
|
+
}
|
|
5056
|
+
if (0 < key.deps) {
|
|
5057
|
+
parentObject = new ReactPromise("blocked", null, null);
|
|
5058
|
+
key.value = value;
|
|
5059
|
+
key.chunk = parentObject;
|
|
5060
|
+
i = createLazyChunkWrapper(parentObject, i);
|
|
5061
|
+
response = initializeElement.bind(null, response, value, i);
|
|
5062
|
+
parentObject.then(response, response);
|
|
5063
|
+
response = i;
|
|
5064
|
+
break b;
|
|
4661
5065
|
}
|
|
4662
|
-
initializeElement(response, value, null);
|
|
4663
|
-
key = value;
|
|
4664
5066
|
}
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
5067
|
+
initializeElement(response, value, null);
|
|
5068
|
+
response = value;
|
|
5069
|
+
}
|
|
5070
|
+
else response = value;
|
|
5071
|
+
return response;
|
|
4669
5072
|
}
|
|
4670
|
-
|
|
5073
|
+
return value;
|
|
5074
|
+
}
|
|
5075
|
+
for (i in value)
|
|
5076
|
+
hasOwnProperty.call(value, i) &&
|
|
5077
|
+
("__proto__" === i
|
|
5078
|
+
? delete value[i]
|
|
5079
|
+
: ((parentObject = reviveModel(response, value[i], value, i)),
|
|
5080
|
+
void 0 !== parentObject
|
|
5081
|
+
? (value[i] = parentObject)
|
|
5082
|
+
: delete value[i]));
|
|
5083
|
+
return value;
|
|
4671
5084
|
}
|
|
4672
5085
|
function close(weakResponse) {
|
|
4673
|
-
|
|
5086
|
+
if (!hasGCedResponse(weakResponse)) {
|
|
5087
|
+
var response = unwrapWeakResponse(weakResponse);
|
|
5088
|
+
response._allowPartialStream
|
|
5089
|
+
? ((response._closed = !0),
|
|
5090
|
+
response._chunks.forEach(function (chunk) {
|
|
5091
|
+
"pending" === chunk.status
|
|
5092
|
+
? haltChunk(response, chunk)
|
|
5093
|
+
: "fulfilled" === chunk.status &&
|
|
5094
|
+
null !== chunk.reason &&
|
|
5095
|
+
chunk.reason.close('"$undefined"');
|
|
5096
|
+
}),
|
|
5097
|
+
(weakResponse = response._debugChannel),
|
|
5098
|
+
void 0 !== weakResponse &&
|
|
5099
|
+
(closeDebugChannel(weakResponse),
|
|
5100
|
+
(response._debugChannel = void 0),
|
|
5101
|
+
null !== debugChannelRegistry &&
|
|
5102
|
+
debugChannelRegistry.unregister(response)))
|
|
5103
|
+
: reportGlobalError(weakResponse, Error("Connection closed."));
|
|
5104
|
+
}
|
|
4674
5105
|
}
|
|
4675
5106
|
function noServerCall$1() {
|
|
4676
5107
|
throw Error(
|
|
@@ -4678,7 +5109,7 @@
|
|
|
4678
5109
|
);
|
|
4679
5110
|
}
|
|
4680
5111
|
function createResponseFromOptions(options) {
|
|
4681
|
-
return
|
|
5112
|
+
return createResponse(
|
|
4682
5113
|
options.serverConsumerManifest.moduleMap,
|
|
4683
5114
|
options.serverConsumerManifest.serverModuleMap,
|
|
4684
5115
|
options.serverConsumerManifest.moduleLoading,
|
|
@@ -4688,16 +5119,21 @@
|
|
|
4688
5119
|
options && options.temporaryReferences
|
|
4689
5120
|
? options.temporaryReferences
|
|
4690
5121
|
: void 0,
|
|
5122
|
+
options && options.unstable_allowPartialStream
|
|
5123
|
+
? options.unstable_allowPartialStream
|
|
5124
|
+
: !1,
|
|
4691
5125
|
options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
|
|
4692
5126
|
options ? !0 === options.replayConsoleLogs : !1,
|
|
4693
5127
|
options && options.environmentName ? options.environmentName : void 0,
|
|
5128
|
+
options && null != options.startTime ? options.startTime : void 0,
|
|
5129
|
+
options && null != options.endTime ? options.endTime : void 0,
|
|
4694
5130
|
options && void 0 !== options.debugChannel
|
|
4695
5131
|
? {
|
|
4696
5132
|
hasReadable: void 0 !== options.debugChannel.readable,
|
|
4697
5133
|
callback: null
|
|
4698
5134
|
}
|
|
4699
5135
|
: void 0
|
|
4700
|
-
)
|
|
5136
|
+
);
|
|
4701
5137
|
}
|
|
4702
5138
|
function startReadingFromStream$1(response, stream, onDone, debugValue) {
|
|
4703
5139
|
function progress(_ref) {
|
|
@@ -4722,7 +5158,7 @@
|
|
|
4722
5158
|
var streamState = createStreamState(response$jscomp$0, stream);
|
|
4723
5159
|
stream.on("data", function (chunk) {
|
|
4724
5160
|
if ("string" === typeof chunk) {
|
|
4725
|
-
if (
|
|
5161
|
+
if (!hasGCedResponse(response$jscomp$0)) {
|
|
4726
5162
|
var response = unwrapWeakResponse(response$jscomp$0),
|
|
4727
5163
|
i = 0,
|
|
4728
5164
|
rowState = streamState._rowState,
|
|
@@ -4824,6 +5260,7 @@
|
|
|
4824
5260
|
React = require("react"),
|
|
4825
5261
|
decoderOptions = { stream: !0 },
|
|
4826
5262
|
bind$1 = Function.prototype.bind,
|
|
5263
|
+
hasConfirmedEval = !1,
|
|
4827
5264
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4828
5265
|
chunkCache = new Map(),
|
|
4829
5266
|
ReactDOMSharedInternals =
|
|
@@ -4841,6 +5278,7 @@
|
|
|
4841
5278
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
4842
5279
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
4843
5280
|
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
5281
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
4844
5282
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
4845
5283
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
4846
5284
|
isArrayImpl = Array.isArray,
|
|
@@ -4848,7 +5286,7 @@
|
|
|
4848
5286
|
jsxPropsParents = new WeakMap(),
|
|
4849
5287
|
jsxChildrenParents = new WeakMap(),
|
|
4850
5288
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
4851
|
-
ObjectPrototype = Object.prototype,
|
|
5289
|
+
ObjectPrototype$1 = Object.prototype,
|
|
4852
5290
|
knownServerReferences = new WeakMap(),
|
|
4853
5291
|
boundCache = new WeakMap(),
|
|
4854
5292
|
fakeServerFunctionIdx = 0,
|
|
@@ -4874,55 +5312,65 @@
|
|
|
4874
5312
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
4875
5313
|
ReactSharedInternals =
|
|
4876
5314
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ||
|
|
4877
|
-
ReactSharedInteralsServer
|
|
5315
|
+
ReactSharedInteralsServer,
|
|
5316
|
+
ObjectPrototype = Object.prototype,
|
|
5317
|
+
ArrayPrototype = Array.prototype;
|
|
4878
5318
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
4879
|
-
ReactPromise.prototype
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
"
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
5319
|
+
Object.defineProperty(ReactPromise.prototype, "then", {
|
|
5320
|
+
writable: !0,
|
|
5321
|
+
enumerable: !0,
|
|
5322
|
+
configurable: !0,
|
|
5323
|
+
value: function (resolve, reject) {
|
|
5324
|
+
var _this = this;
|
|
5325
|
+
switch (this.status) {
|
|
5326
|
+
case "resolved_model":
|
|
5327
|
+
initializeModelChunk(this);
|
|
5328
|
+
break;
|
|
5329
|
+
case "resolved_module":
|
|
5330
|
+
initializeModuleChunk(this);
|
|
5331
|
+
}
|
|
5332
|
+
var resolveCallback = resolve,
|
|
5333
|
+
rejectCallback = reject,
|
|
5334
|
+
wrapperPromise = new Promise(function (res, rej) {
|
|
5335
|
+
resolve = function (value) {
|
|
5336
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
5337
|
+
res(value);
|
|
5338
|
+
};
|
|
5339
|
+
reject = function (reason) {
|
|
5340
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
5341
|
+
rej(reason);
|
|
5342
|
+
};
|
|
5343
|
+
});
|
|
5344
|
+
wrapperPromise.then(resolveCallback, rejectCallback);
|
|
5345
|
+
switch (this.status) {
|
|
5346
|
+
case "fulfilled":
|
|
5347
|
+
"function" === typeof resolve && resolve(this.value);
|
|
5348
|
+
break;
|
|
5349
|
+
case "pending":
|
|
5350
|
+
case "pending_weak":
|
|
5351
|
+
case "blocked":
|
|
5352
|
+
"function" === typeof resolve &&
|
|
5353
|
+
(null === this.value && (this.value = []),
|
|
5354
|
+
this.value.push(resolve));
|
|
5355
|
+
"function" === typeof reject &&
|
|
5356
|
+
(null === this.reason && (this.reason = []),
|
|
5357
|
+
this.reason.push(reject));
|
|
5358
|
+
break;
|
|
5359
|
+
case "halted":
|
|
5360
|
+
break;
|
|
5361
|
+
default:
|
|
5362
|
+
"function" === typeof reject && reject(this.reason);
|
|
5363
|
+
}
|
|
4918
5364
|
}
|
|
4919
|
-
};
|
|
5365
|
+
});
|
|
4920
5366
|
var debugChannelRegistry =
|
|
4921
5367
|
"function" === typeof FinalizationRegistry
|
|
4922
5368
|
? new FinalizationRegistry(closeDebugChannel)
|
|
4923
5369
|
: null,
|
|
4924
5370
|
initializingHandler = null,
|
|
4925
5371
|
initializingChunk = null,
|
|
5372
|
+
isInitializingDebugInfo = !1,
|
|
5373
|
+
EMPTY_REFERENCE_PATH = [],
|
|
4926
5374
|
mightHaveStaticConstructor = /\bclass\b.*\bstatic\b/,
|
|
4927
5375
|
MIN_CHUNK_SIZE = 65536,
|
|
4928
5376
|
supportsCreateTask = !!console.createTask,
|
|
@@ -4943,6 +5391,7 @@
|
|
|
4943
5391
|
createFakeJSXCallStack.react_stack_bottom_frame.bind(
|
|
4944
5392
|
createFakeJSXCallStack
|
|
4945
5393
|
),
|
|
5394
|
+
ownerStackTraceLimit = 10,
|
|
4946
5395
|
currentOwnerInDEV = null,
|
|
4947
5396
|
replayConsoleWithCallStack = {
|
|
4948
5397
|
react_stack_bottom_frame: function (response, payload) {
|
|
@@ -5059,7 +5508,7 @@
|
|
|
5059
5508
|
serverConsumerManifest,
|
|
5060
5509
|
options
|
|
5061
5510
|
) {
|
|
5062
|
-
var response =
|
|
5511
|
+
var response = createResponse(
|
|
5063
5512
|
serverConsumerManifest.moduleMap,
|
|
5064
5513
|
serverConsumerManifest.serverModuleMap,
|
|
5065
5514
|
serverConsumerManifest.moduleLoading,
|
|
@@ -5067,16 +5516,18 @@
|
|
|
5067
5516
|
options ? options.encodeFormAction : void 0,
|
|
5068
5517
|
options && "string" === typeof options.nonce ? options.nonce : void 0,
|
|
5069
5518
|
void 0,
|
|
5519
|
+
options && options.unstable_allowPartialStream
|
|
5520
|
+
? options.unstable_allowPartialStream
|
|
5521
|
+
: !1,
|
|
5070
5522
|
options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
|
|
5071
5523
|
options ? !0 === options.replayConsoleLogs : !1,
|
|
5072
5524
|
options && options.environmentName ? options.environmentName : void 0,
|
|
5525
|
+
options && null != options.startTime ? options.startTime : void 0,
|
|
5526
|
+
options && null != options.endTime ? options.endTime : void 0,
|
|
5073
5527
|
options && void 0 !== options.debugChannel
|
|
5074
|
-
? {
|
|
5075
|
-
hasReadable: void 0 !== options.debugChannel.readable,
|
|
5076
|
-
callback: null
|
|
5077
|
-
}
|
|
5528
|
+
? { hasReadable: !0, callback: null }
|
|
5078
5529
|
: void 0
|
|
5079
|
-
)
|
|
5530
|
+
);
|
|
5080
5531
|
if (options && options.debugChannel) {
|
|
5081
5532
|
var streamEndedCount = 0;
|
|
5082
5533
|
serverConsumerManifest = function () {
|
|
@@ -5122,26 +5573,16 @@
|
|
|
5122
5573
|
};
|
|
5123
5574
|
exports.encodeReply = function (value, options) {
|
|
5124
5575
|
return new Promise(function (resolve, reject) {
|
|
5125
|
-
|
|
5576
|
+
processReply(
|
|
5126
5577
|
value,
|
|
5127
5578
|
"",
|
|
5128
5579
|
options && options.temporaryReferences
|
|
5129
5580
|
? options.temporaryReferences
|
|
5130
5581
|
: void 0,
|
|
5131
5582
|
resolve,
|
|
5132
|
-
reject
|
|
5583
|
+
reject,
|
|
5584
|
+
options ? options.signal : void 0
|
|
5133
5585
|
);
|
|
5134
|
-
if (options && options.signal) {
|
|
5135
|
-
var signal = options.signal;
|
|
5136
|
-
if (signal.aborted) abort(signal.reason);
|
|
5137
|
-
else {
|
|
5138
|
-
var listener = function () {
|
|
5139
|
-
abort(signal.reason);
|
|
5140
|
-
signal.removeEventListener("abort", listener);
|
|
5141
|
-
};
|
|
5142
|
-
signal.addEventListener("abort", listener);
|
|
5143
|
-
}
|
|
5144
|
-
}
|
|
5145
5586
|
});
|
|
5146
5587
|
};
|
|
5147
5588
|
exports.registerServerReference = function (
|