react-dom 19.0.0-rc.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +24461 -37682
- package/cjs/react-dom-client.production.js +2444 -2054
- package/cjs/react-dom-profiling.development.js +24830 -38118
- package/cjs/react-dom-profiling.profiling.js +2675 -2331
- package/cjs/react-dom-server-legacy.browser.development.js +8491 -11690
- package/cjs/react-dom-server-legacy.browser.production.js +914 -760
- package/cjs/react-dom-server-legacy.node.development.js +8491 -11690
- package/cjs/react-dom-server-legacy.node.production.js +910 -760
- package/cjs/react-dom-server.browser.development.js +8871 -11719
- package/cjs/react-dom-server.browser.production.js +1064 -772
- package/cjs/react-dom-server.bun.development.js +7850 -11199
- package/cjs/react-dom-server.bun.production.js +922 -758
- package/cjs/react-dom-server.edge.development.js +8892 -11737
- package/cjs/react-dom-server.edge.production.js +1047 -774
- package/cjs/react-dom-server.node.development.js +8762 -11698
- package/cjs/react-dom-server.node.production.js +1293 -988
- package/cjs/react-dom-test-utils.development.js +13 -75
- package/cjs/react-dom.development.js +401 -615
- package/cjs/react-dom.production.js +3 -2
- package/cjs/react-dom.react-server.development.js +322 -401
- package/cjs/react-dom.react-server.production.js +5 -7
- package/package.json +5 -5
- package/static.browser.js +1 -0
- package/static.edge.js +1 -0
- package/static.node.js +1 -0
@@ -14,6 +14,7 @@ var util = require("util"),
|
|
14
14
|
async_hooks = require("async_hooks"),
|
15
15
|
React = require("react"),
|
16
16
|
ReactDOM = require("react-dom"),
|
17
|
+
stream = require("stream"),
|
17
18
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
18
19
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
19
20
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
@@ -33,7 +34,8 @@ var util = require("util"),
|
|
33
34
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
34
35
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
35
36
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
36
|
-
isArrayImpl = Array.isArray
|
37
|
+
isArrayImpl = Array.isArray,
|
38
|
+
scheduleMicrotask = queueMicrotask;
|
37
39
|
function flushBuffered(destination) {
|
38
40
|
"function" === typeof destination.flush && destination.flush();
|
39
41
|
}
|
@@ -51,7 +53,7 @@ function writeChunk(destination, chunk) {
|
|
51
53
|
),
|
52
54
|
(currentView = new Uint8Array(2048)),
|
53
55
|
(writtenBytes = 0)),
|
54
|
-
writeToDestination(destination,
|
56
|
+
writeToDestination(destination, chunk);
|
55
57
|
else {
|
56
58
|
var target = currentView;
|
57
59
|
0 < writtenBytes && (target = currentView.subarray(writtenBytes));
|
@@ -313,6 +315,214 @@ var importMapScriptStart = stringToPrecomputedChunk(
|
|
313
315
|
'<script type="importmap">'
|
314
316
|
),
|
315
317
|
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
|
318
|
+
function createRenderState(
|
319
|
+
resumableState,
|
320
|
+
nonce,
|
321
|
+
externalRuntimeConfig,
|
322
|
+
importMap,
|
323
|
+
onHeaders,
|
324
|
+
maxHeadersLength
|
325
|
+
) {
|
326
|
+
var inlineScriptWithNonce =
|
327
|
+
void 0 === nonce
|
328
|
+
? startInlineScript
|
329
|
+
: stringToPrecomputedChunk(
|
330
|
+
'<script nonce="' + escapeTextForBrowser(nonce) + '">'
|
331
|
+
),
|
332
|
+
idPrefix = resumableState.idPrefix;
|
333
|
+
externalRuntimeConfig = [];
|
334
|
+
var bootstrapScriptContent = resumableState.bootstrapScriptContent,
|
335
|
+
bootstrapScripts = resumableState.bootstrapScripts,
|
336
|
+
bootstrapModules = resumableState.bootstrapModules;
|
337
|
+
void 0 !== bootstrapScriptContent &&
|
338
|
+
externalRuntimeConfig.push(
|
339
|
+
inlineScriptWithNonce,
|
340
|
+
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
|
341
|
+
endInlineScript
|
342
|
+
);
|
343
|
+
bootstrapScriptContent = [];
|
344
|
+
void 0 !== importMap &&
|
345
|
+
(bootstrapScriptContent.push(importMapScriptStart),
|
346
|
+
bootstrapScriptContent.push(
|
347
|
+
("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer)
|
348
|
+
),
|
349
|
+
bootstrapScriptContent.push(importMapScriptEnd));
|
350
|
+
importMap = onHeaders
|
351
|
+
? {
|
352
|
+
preconnects: "",
|
353
|
+
fontPreloads: "",
|
354
|
+
highImagePreloads: "",
|
355
|
+
remainingCapacity:
|
356
|
+
2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
357
|
+
}
|
358
|
+
: null;
|
359
|
+
onHeaders = {
|
360
|
+
placeholderPrefix: stringToPrecomputedChunk(idPrefix + "P:"),
|
361
|
+
segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
|
362
|
+
boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
|
363
|
+
startInlineScript: inlineScriptWithNonce,
|
364
|
+
htmlChunks: null,
|
365
|
+
headChunks: null,
|
366
|
+
externalRuntimeScript: null,
|
367
|
+
bootstrapChunks: externalRuntimeConfig,
|
368
|
+
importMapChunks: bootstrapScriptContent,
|
369
|
+
onHeaders: onHeaders,
|
370
|
+
headers: importMap,
|
371
|
+
resets: {
|
372
|
+
font: {},
|
373
|
+
dns: {},
|
374
|
+
connect: { default: {}, anonymous: {}, credentials: {} },
|
375
|
+
image: {},
|
376
|
+
style: {}
|
377
|
+
},
|
378
|
+
charsetChunks: [],
|
379
|
+
viewportChunks: [],
|
380
|
+
hoistableChunks: [],
|
381
|
+
preconnects: new Set(),
|
382
|
+
fontPreloads: new Set(),
|
383
|
+
highImagePreloads: new Set(),
|
384
|
+
styles: new Map(),
|
385
|
+
bootstrapScripts: new Set(),
|
386
|
+
scripts: new Set(),
|
387
|
+
bulkPreloads: new Set(),
|
388
|
+
preloads: {
|
389
|
+
images: new Map(),
|
390
|
+
stylesheets: new Map(),
|
391
|
+
scripts: new Map(),
|
392
|
+
moduleScripts: new Map()
|
393
|
+
},
|
394
|
+
nonce: nonce,
|
395
|
+
hoistableState: null,
|
396
|
+
stylesToHoist: !1
|
397
|
+
};
|
398
|
+
if (void 0 !== bootstrapScripts)
|
399
|
+
for (importMap = 0; importMap < bootstrapScripts.length; importMap++) {
|
400
|
+
var scriptConfig = bootstrapScripts[importMap];
|
401
|
+
idPrefix = inlineScriptWithNonce = void 0;
|
402
|
+
bootstrapScriptContent = {
|
403
|
+
rel: "preload",
|
404
|
+
as: "script",
|
405
|
+
fetchPriority: "low",
|
406
|
+
nonce: nonce
|
407
|
+
};
|
408
|
+
"string" === typeof scriptConfig
|
409
|
+
? (bootstrapScriptContent.href = maxHeadersLength = scriptConfig)
|
410
|
+
: ((bootstrapScriptContent.href = maxHeadersLength = scriptConfig.src),
|
411
|
+
(bootstrapScriptContent.integrity = idPrefix =
|
412
|
+
"string" === typeof scriptConfig.integrity
|
413
|
+
? scriptConfig.integrity
|
414
|
+
: void 0),
|
415
|
+
(bootstrapScriptContent.crossOrigin = inlineScriptWithNonce =
|
416
|
+
"string" === typeof scriptConfig || null == scriptConfig.crossOrigin
|
417
|
+
? void 0
|
418
|
+
: "use-credentials" === scriptConfig.crossOrigin
|
419
|
+
? "use-credentials"
|
420
|
+
: ""));
|
421
|
+
scriptConfig = resumableState;
|
422
|
+
var href = maxHeadersLength;
|
423
|
+
scriptConfig.scriptResources[href] = null;
|
424
|
+
scriptConfig.moduleScriptResources[href] = null;
|
425
|
+
scriptConfig = [];
|
426
|
+
pushLinkImpl(scriptConfig, bootstrapScriptContent);
|
427
|
+
onHeaders.bootstrapScripts.add(scriptConfig);
|
428
|
+
externalRuntimeConfig.push(
|
429
|
+
startScriptSrc,
|
430
|
+
escapeTextForBrowser(maxHeadersLength)
|
431
|
+
);
|
432
|
+
nonce &&
|
433
|
+
externalRuntimeConfig.push(scriptNonce, escapeTextForBrowser(nonce));
|
434
|
+
"string" === typeof idPrefix &&
|
435
|
+
externalRuntimeConfig.push(
|
436
|
+
scriptIntegirty,
|
437
|
+
escapeTextForBrowser(idPrefix)
|
438
|
+
);
|
439
|
+
"string" === typeof inlineScriptWithNonce &&
|
440
|
+
externalRuntimeConfig.push(
|
441
|
+
scriptCrossOrigin,
|
442
|
+
escapeTextForBrowser(inlineScriptWithNonce)
|
443
|
+
);
|
444
|
+
externalRuntimeConfig.push(endAsyncScript);
|
445
|
+
}
|
446
|
+
if (void 0 !== bootstrapModules)
|
447
|
+
for (
|
448
|
+
bootstrapScripts = 0;
|
449
|
+
bootstrapScripts < bootstrapModules.length;
|
450
|
+
bootstrapScripts++
|
451
|
+
)
|
452
|
+
(bootstrapScriptContent = bootstrapModules[bootstrapScripts]),
|
453
|
+
(inlineScriptWithNonce = maxHeadersLength = void 0),
|
454
|
+
(idPrefix = {
|
455
|
+
rel: "modulepreload",
|
456
|
+
fetchPriority: "low",
|
457
|
+
nonce: nonce
|
458
|
+
}),
|
459
|
+
"string" === typeof bootstrapScriptContent
|
460
|
+
? (idPrefix.href = importMap = bootstrapScriptContent)
|
461
|
+
: ((idPrefix.href = importMap = bootstrapScriptContent.src),
|
462
|
+
(idPrefix.integrity = inlineScriptWithNonce =
|
463
|
+
"string" === typeof bootstrapScriptContent.integrity
|
464
|
+
? bootstrapScriptContent.integrity
|
465
|
+
: void 0),
|
466
|
+
(idPrefix.crossOrigin = maxHeadersLength =
|
467
|
+
"string" === typeof bootstrapScriptContent ||
|
468
|
+
null == bootstrapScriptContent.crossOrigin
|
469
|
+
? void 0
|
470
|
+
: "use-credentials" === bootstrapScriptContent.crossOrigin
|
471
|
+
? "use-credentials"
|
472
|
+
: "")),
|
473
|
+
(bootstrapScriptContent = resumableState),
|
474
|
+
(scriptConfig = importMap),
|
475
|
+
(bootstrapScriptContent.scriptResources[scriptConfig] = null),
|
476
|
+
(bootstrapScriptContent.moduleScriptResources[scriptConfig] = null),
|
477
|
+
(bootstrapScriptContent = []),
|
478
|
+
pushLinkImpl(bootstrapScriptContent, idPrefix),
|
479
|
+
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
480
|
+
externalRuntimeConfig.push(
|
481
|
+
startModuleSrc,
|
482
|
+
escapeTextForBrowser(importMap)
|
483
|
+
),
|
484
|
+
nonce &&
|
485
|
+
externalRuntimeConfig.push(scriptNonce, escapeTextForBrowser(nonce)),
|
486
|
+
"string" === typeof inlineScriptWithNonce &&
|
487
|
+
externalRuntimeConfig.push(
|
488
|
+
scriptIntegirty,
|
489
|
+
escapeTextForBrowser(inlineScriptWithNonce)
|
490
|
+
),
|
491
|
+
"string" === typeof maxHeadersLength &&
|
492
|
+
externalRuntimeConfig.push(
|
493
|
+
scriptCrossOrigin,
|
494
|
+
escapeTextForBrowser(maxHeadersLength)
|
495
|
+
),
|
496
|
+
externalRuntimeConfig.push(endAsyncScript);
|
497
|
+
return onHeaders;
|
498
|
+
}
|
499
|
+
function createResumableState(
|
500
|
+
identifierPrefix,
|
501
|
+
externalRuntimeConfig,
|
502
|
+
bootstrapScriptContent,
|
503
|
+
bootstrapScripts,
|
504
|
+
bootstrapModules
|
505
|
+
) {
|
506
|
+
return {
|
507
|
+
idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
|
508
|
+
nextFormID: 0,
|
509
|
+
streamingFormat: 0,
|
510
|
+
bootstrapScriptContent: bootstrapScriptContent,
|
511
|
+
bootstrapScripts: bootstrapScripts,
|
512
|
+
bootstrapModules: bootstrapModules,
|
513
|
+
instructions: 0,
|
514
|
+
hasBody: !1,
|
515
|
+
hasHtml: !1,
|
516
|
+
unknownResources: {},
|
517
|
+
dnsResources: {},
|
518
|
+
connectResources: { default: {}, anonymous: {}, credentials: {} },
|
519
|
+
imageResources: {},
|
520
|
+
styleResources: {},
|
521
|
+
scriptResources: {},
|
522
|
+
moduleUnknownResources: {},
|
523
|
+
moduleScriptResources: {}
|
524
|
+
};
|
525
|
+
}
|
316
526
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
317
527
|
return {
|
318
528
|
insertionMode: insertionMode,
|
@@ -320,6 +530,17 @@ function createFormatContext(insertionMode, selectedValue, tagScope) {
|
|
320
530
|
tagScope: tagScope
|
321
531
|
};
|
322
532
|
}
|
533
|
+
function createRootFormatContext(namespaceURI) {
|
534
|
+
return createFormatContext(
|
535
|
+
"http://www.w3.org/2000/svg" === namespaceURI
|
536
|
+
? 3
|
537
|
+
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
538
|
+
? 4
|
539
|
+
: 0,
|
540
|
+
null,
|
541
|
+
0
|
542
|
+
);
|
543
|
+
}
|
323
544
|
function getChildFormatContext(parentContext, type, props) {
|
324
545
|
switch (type) {
|
325
546
|
case "noscript":
|
@@ -352,12 +573,12 @@ function getChildFormatContext(parentContext, type, props) {
|
|
352
573
|
return 5 <= parentContext.insertionMode
|
353
574
|
? createFormatContext(2, null, parentContext.tagScope)
|
354
575
|
: 0 === parentContext.insertionMode
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
576
|
+
? "html" === type
|
577
|
+
? createFormatContext(1, null, parentContext.tagScope)
|
578
|
+
: createFormatContext(2, null, parentContext.tagScope)
|
579
|
+
: 1 === parentContext.insertionMode
|
580
|
+
? createFormatContext(2, null, parentContext.tagScope)
|
581
|
+
: parentContext;
|
361
582
|
}
|
362
583
|
var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
|
363
584
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
@@ -1346,22 +1567,64 @@ function pushStartInstance(
|
|
1346
1567
|
}
|
1347
1568
|
target$jscomp$0.push(endOfStartTag);
|
1348
1569
|
return null;
|
1570
|
+
case "object":
|
1571
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
1572
|
+
var children$jscomp$5 = null,
|
1573
|
+
innerHTML$jscomp$4 = null,
|
1574
|
+
propKey$jscomp$7;
|
1575
|
+
for (propKey$jscomp$7 in props)
|
1576
|
+
if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
1577
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
1578
|
+
if (null != propValue$jscomp$7)
|
1579
|
+
switch (propKey$jscomp$7) {
|
1580
|
+
case "children":
|
1581
|
+
children$jscomp$5 = propValue$jscomp$7;
|
1582
|
+
break;
|
1583
|
+
case "dangerouslySetInnerHTML":
|
1584
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
1585
|
+
break;
|
1586
|
+
case "data":
|
1587
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
1588
|
+
if ("" === sanitizedValue) break;
|
1589
|
+
target$jscomp$0.push(
|
1590
|
+
attributeSeparator,
|
1591
|
+
"data",
|
1592
|
+
attributeAssign,
|
1593
|
+
escapeTextForBrowser(sanitizedValue),
|
1594
|
+
attributeEnd
|
1595
|
+
);
|
1596
|
+
break;
|
1597
|
+
default:
|
1598
|
+
pushAttribute(
|
1599
|
+
target$jscomp$0,
|
1600
|
+
propKey$jscomp$7,
|
1601
|
+
propValue$jscomp$7
|
1602
|
+
);
|
1603
|
+
}
|
1604
|
+
}
|
1605
|
+
target$jscomp$0.push(endOfStartTag);
|
1606
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
1607
|
+
if ("string" === typeof children$jscomp$5) {
|
1608
|
+
target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
|
1609
|
+
var JSCompiler_inline_result$jscomp$2 = null;
|
1610
|
+
} else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
|
1611
|
+
return JSCompiler_inline_result$jscomp$2;
|
1349
1612
|
case "title":
|
1350
1613
|
if (
|
1351
1614
|
3 === formatContext.insertionMode ||
|
1352
1615
|
formatContext.tagScope & 1 ||
|
1353
1616
|
null != props.itemProp
|
1354
1617
|
)
|
1355
|
-
var JSCompiler_inline_result$jscomp$
|
1618
|
+
var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
|
1356
1619
|
target$jscomp$0,
|
1357
1620
|
props
|
1358
1621
|
);
|
1359
1622
|
else
|
1360
1623
|
isFallback
|
1361
|
-
? (JSCompiler_inline_result$jscomp$
|
1624
|
+
? (JSCompiler_inline_result$jscomp$3 = null)
|
1362
1625
|
: (pushTitleImpl(renderState.hoistableChunks, props),
|
1363
|
-
(JSCompiler_inline_result$jscomp$
|
1364
|
-
return JSCompiler_inline_result$jscomp$
|
1626
|
+
(JSCompiler_inline_result$jscomp$3 = void 0));
|
1627
|
+
return JSCompiler_inline_result$jscomp$3;
|
1365
1628
|
case "link":
|
1366
1629
|
var rel = props.rel,
|
1367
1630
|
href = props.href,
|
@@ -1375,7 +1638,7 @@ function pushStartInstance(
|
|
1375
1638
|
"" === href
|
1376
1639
|
) {
|
1377
1640
|
pushLinkImpl(target$jscomp$0, props);
|
1378
|
-
var JSCompiler_inline_result$jscomp$
|
1641
|
+
var JSCompiler_inline_result$jscomp$4 = null;
|
1379
1642
|
} else if ("stylesheet" === props.rel)
|
1380
1643
|
if (
|
1381
1644
|
"string" !== typeof precedence ||
|
@@ -1383,7 +1646,7 @@ function pushStartInstance(
|
|
1383
1646
|
props.onLoad ||
|
1384
1647
|
props.onError
|
1385
1648
|
)
|
1386
|
-
JSCompiler_inline_result$jscomp$
|
1649
|
+
JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
1387
1650
|
target$jscomp$0,
|
1388
1651
|
props
|
1389
1652
|
);
|
@@ -1426,19 +1689,19 @@ function pushStartInstance(
|
|
1426
1689
|
hoistableState.stylesheets.add(resource$9);
|
1427
1690
|
}
|
1428
1691
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
1429
|
-
JSCompiler_inline_result$jscomp$
|
1692
|
+
JSCompiler_inline_result$jscomp$4 = null;
|
1430
1693
|
}
|
1431
1694
|
else
|
1432
1695
|
props.onLoad || props.onError
|
1433
|
-
? (JSCompiler_inline_result$jscomp$
|
1696
|
+
? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
1434
1697
|
target$jscomp$0,
|
1435
1698
|
props
|
1436
1699
|
))
|
1437
1700
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
1438
|
-
(JSCompiler_inline_result$jscomp$
|
1701
|
+
(JSCompiler_inline_result$jscomp$4 = isFallback
|
1439
1702
|
? null
|
1440
1703
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
1441
|
-
return JSCompiler_inline_result$jscomp$
|
1704
|
+
return JSCompiler_inline_result$jscomp$4;
|
1442
1705
|
case "script":
|
1443
1706
|
var asyncProp = props.async;
|
1444
1707
|
if (
|
@@ -1453,7 +1716,7 @@ function pushStartInstance(
|
|
1453
1716
|
formatContext.tagScope & 1 ||
|
1454
1717
|
null != props.itemProp
|
1455
1718
|
)
|
1456
|
-
var JSCompiler_inline_result$jscomp$
|
1719
|
+
var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
|
1457
1720
|
target$jscomp$0,
|
1458
1721
|
props
|
1459
1722
|
);
|
@@ -1483,9 +1746,9 @@ function pushStartInstance(
|
|
1483
1746
|
pushScriptImpl(resource$jscomp$0, scriptProps);
|
1484
1747
|
}
|
1485
1748
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
1486
|
-
JSCompiler_inline_result$jscomp$
|
1749
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
1487
1750
|
}
|
1488
|
-
return JSCompiler_inline_result$jscomp$
|
1751
|
+
return JSCompiler_inline_result$jscomp$5;
|
1489
1752
|
case "style":
|
1490
1753
|
var precedence$jscomp$0 = props.precedence,
|
1491
1754
|
href$jscomp$0 = props.href;
|
@@ -1498,42 +1761,42 @@ function pushStartInstance(
|
|
1498
1761
|
"" === href$jscomp$0
|
1499
1762
|
) {
|
1500
1763
|
target$jscomp$0.push(startChunkForTag("style"));
|
1501
|
-
var children$jscomp$
|
1502
|
-
innerHTML$jscomp$
|
1503
|
-
propKey$jscomp$
|
1504
|
-
for (propKey$jscomp$
|
1505
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1506
|
-
var propValue$jscomp$
|
1507
|
-
if (null != propValue$jscomp$
|
1508
|
-
switch (propKey$jscomp$
|
1764
|
+
var children$jscomp$6 = null,
|
1765
|
+
innerHTML$jscomp$5 = null,
|
1766
|
+
propKey$jscomp$8;
|
1767
|
+
for (propKey$jscomp$8 in props)
|
1768
|
+
if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
1769
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
1770
|
+
if (null != propValue$jscomp$8)
|
1771
|
+
switch (propKey$jscomp$8) {
|
1509
1772
|
case "children":
|
1510
|
-
children$jscomp$
|
1773
|
+
children$jscomp$6 = propValue$jscomp$8;
|
1511
1774
|
break;
|
1512
1775
|
case "dangerouslySetInnerHTML":
|
1513
|
-
innerHTML$jscomp$
|
1776
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
1514
1777
|
break;
|
1515
1778
|
default:
|
1516
1779
|
pushAttribute(
|
1517
1780
|
target$jscomp$0,
|
1518
|
-
propKey$jscomp$
|
1519
|
-
propValue$jscomp$
|
1781
|
+
propKey$jscomp$8,
|
1782
|
+
propValue$jscomp$8
|
1520
1783
|
);
|
1521
1784
|
}
|
1522
1785
|
}
|
1523
1786
|
target$jscomp$0.push(endOfStartTag);
|
1524
|
-
var child = Array.isArray(children$jscomp$
|
1525
|
-
? 2 > children$jscomp$
|
1526
|
-
? children$jscomp$
|
1787
|
+
var child = Array.isArray(children$jscomp$6)
|
1788
|
+
? 2 > children$jscomp$6.length
|
1789
|
+
? children$jscomp$6[0]
|
1527
1790
|
: null
|
1528
|
-
: children$jscomp$
|
1791
|
+
: children$jscomp$6;
|
1529
1792
|
"function" !== typeof child &&
|
1530
1793
|
"symbol" !== typeof child &&
|
1531
1794
|
null !== child &&
|
1532
1795
|
void 0 !== child &&
|
1533
1796
|
target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
|
1534
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
1797
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
|
1535
1798
|
target$jscomp$0.push(endChunkForTag("style"));
|
1536
|
-
var JSCompiler_inline_result$jscomp$
|
1799
|
+
var JSCompiler_inline_result$jscomp$6 = null;
|
1537
1800
|
} else {
|
1538
1801
|
var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
|
1539
1802
|
if (
|
@@ -1555,26 +1818,26 @@ function pushStartInstance(
|
|
1555
1818
|
}),
|
1556
1819
|
renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
|
1557
1820
|
var target = styleQueue$jscomp$0.rules,
|
1558
|
-
children$jscomp$
|
1559
|
-
innerHTML$jscomp$
|
1560
|
-
propKey$jscomp$
|
1561
|
-
for (propKey$jscomp$
|
1562
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1563
|
-
var propValue$jscomp$
|
1564
|
-
if (null != propValue$jscomp$
|
1565
|
-
switch (propKey$jscomp$
|
1821
|
+
children$jscomp$7 = null,
|
1822
|
+
innerHTML$jscomp$6 = null,
|
1823
|
+
propKey$jscomp$9;
|
1824
|
+
for (propKey$jscomp$9 in props)
|
1825
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
1826
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
1827
|
+
if (null != propValue$jscomp$9)
|
1828
|
+
switch (propKey$jscomp$9) {
|
1566
1829
|
case "children":
|
1567
|
-
children$jscomp$
|
1830
|
+
children$jscomp$7 = propValue$jscomp$9;
|
1568
1831
|
break;
|
1569
1832
|
case "dangerouslySetInnerHTML":
|
1570
|
-
innerHTML$jscomp$
|
1833
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
1571
1834
|
}
|
1572
1835
|
}
|
1573
|
-
var child$jscomp$0 = Array.isArray(children$jscomp$
|
1574
|
-
? 2 > children$jscomp$
|
1575
|
-
? children$jscomp$
|
1836
|
+
var child$jscomp$0 = Array.isArray(children$jscomp$7)
|
1837
|
+
? 2 > children$jscomp$7.length
|
1838
|
+
? children$jscomp$7[0]
|
1576
1839
|
: null
|
1577
|
-
: children$jscomp$
|
1840
|
+
: children$jscomp$7;
|
1578
1841
|
"function" !== typeof child$jscomp$0 &&
|
1579
1842
|
"symbol" !== typeof child$jscomp$0 &&
|
1580
1843
|
null !== child$jscomp$0 &&
|
@@ -1582,85 +1845,85 @@ function pushStartInstance(
|
|
1582
1845
|
target.push(
|
1583
1846
|
("" + child$jscomp$0).replace(styleRegex, styleReplacer)
|
1584
1847
|
);
|
1585
|
-
pushInnerHTML(target, innerHTML$jscomp$
|
1848
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
|
1586
1849
|
}
|
1587
1850
|
styleQueue$jscomp$0 &&
|
1588
1851
|
hoistableState &&
|
1589
1852
|
hoistableState.styles.add(styleQueue$jscomp$0);
|
1590
1853
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
1591
|
-
JSCompiler_inline_result$jscomp$
|
1854
|
+
JSCompiler_inline_result$jscomp$6 = void 0;
|
1592
1855
|
}
|
1593
|
-
return JSCompiler_inline_result$jscomp$
|
1856
|
+
return JSCompiler_inline_result$jscomp$6;
|
1594
1857
|
case "meta":
|
1595
1858
|
if (
|
1596
1859
|
3 === formatContext.insertionMode ||
|
1597
1860
|
formatContext.tagScope & 1 ||
|
1598
1861
|
null != props.itemProp
|
1599
1862
|
)
|
1600
|
-
var JSCompiler_inline_result$jscomp$
|
1863
|
+
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
1601
1864
|
target$jscomp$0,
|
1602
1865
|
props,
|
1603
1866
|
"meta"
|
1604
1867
|
);
|
1605
1868
|
else
|
1606
1869
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
1607
|
-
(JSCompiler_inline_result$jscomp$
|
1870
|
+
(JSCompiler_inline_result$jscomp$7 = isFallback
|
1608
1871
|
? null
|
1609
1872
|
: "string" === typeof props.charSet
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
return JSCompiler_inline_result$jscomp$
|
1873
|
+
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
1874
|
+
: "viewport" === props.name
|
1875
|
+
? pushSelfClosing(renderState.viewportChunks, props, "meta")
|
1876
|
+
: pushSelfClosing(renderState.hoistableChunks, props, "meta"));
|
1877
|
+
return JSCompiler_inline_result$jscomp$7;
|
1615
1878
|
case "listing":
|
1616
1879
|
case "pre":
|
1617
1880
|
target$jscomp$0.push(startChunkForTag(type));
|
1618
|
-
var children$jscomp$
|
1619
|
-
innerHTML$jscomp$
|
1620
|
-
propKey$jscomp$
|
1621
|
-
for (propKey$jscomp$
|
1622
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1623
|
-
var propValue$jscomp$
|
1624
|
-
if (null != propValue$jscomp$
|
1625
|
-
switch (propKey$jscomp$
|
1881
|
+
var children$jscomp$8 = null,
|
1882
|
+
innerHTML$jscomp$7 = null,
|
1883
|
+
propKey$jscomp$10;
|
1884
|
+
for (propKey$jscomp$10 in props)
|
1885
|
+
if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
1886
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
1887
|
+
if (null != propValue$jscomp$10)
|
1888
|
+
switch (propKey$jscomp$10) {
|
1626
1889
|
case "children":
|
1627
|
-
children$jscomp$
|
1890
|
+
children$jscomp$8 = propValue$jscomp$10;
|
1628
1891
|
break;
|
1629
1892
|
case "dangerouslySetInnerHTML":
|
1630
|
-
innerHTML$jscomp$
|
1893
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
1631
1894
|
break;
|
1632
1895
|
default:
|
1633
1896
|
pushAttribute(
|
1634
1897
|
target$jscomp$0,
|
1635
|
-
propKey$jscomp$
|
1636
|
-
propValue$jscomp$
|
1898
|
+
propKey$jscomp$10,
|
1899
|
+
propValue$jscomp$10
|
1637
1900
|
);
|
1638
1901
|
}
|
1639
1902
|
}
|
1640
1903
|
target$jscomp$0.push(endOfStartTag);
|
1641
|
-
if (null != innerHTML$jscomp$
|
1642
|
-
if (null != children$jscomp$
|
1904
|
+
if (null != innerHTML$jscomp$7) {
|
1905
|
+
if (null != children$jscomp$8)
|
1643
1906
|
throw Error(
|
1644
1907
|
"Can only set one of `children` or `props.dangerouslySetInnerHTML`."
|
1645
1908
|
);
|
1646
1909
|
if (
|
1647
|
-
"object" !== typeof innerHTML$jscomp$
|
1648
|
-
!("__html" in innerHTML$jscomp$
|
1910
|
+
"object" !== typeof innerHTML$jscomp$7 ||
|
1911
|
+
!("__html" in innerHTML$jscomp$7)
|
1649
1912
|
)
|
1650
1913
|
throw Error(
|
1651
1914
|
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
|
1652
1915
|
);
|
1653
|
-
var html = innerHTML$jscomp$
|
1916
|
+
var html = innerHTML$jscomp$7.__html;
|
1654
1917
|
null !== html &&
|
1655
1918
|
void 0 !== html &&
|
1656
1919
|
("string" === typeof html && 0 < html.length && "\n" === html[0]
|
1657
1920
|
? target$jscomp$0.push(leadingNewline, html)
|
1658
1921
|
: target$jscomp$0.push("" + html));
|
1659
1922
|
}
|
1660
|
-
"string" === typeof children$jscomp$
|
1661
|
-
"\n" === children$jscomp$
|
1923
|
+
"string" === typeof children$jscomp$8 &&
|
1924
|
+
"\n" === children$jscomp$8[0] &&
|
1662
1925
|
target$jscomp$0.push(leadingNewline);
|
1663
|
-
return children$jscomp$
|
1926
|
+
return children$jscomp$8;
|
1664
1927
|
case "img":
|
1665
1928
|
var src = props.src,
|
1666
1929
|
srcSet = props.srcSet;
|
@@ -1702,7 +1965,7 @@ function pushStartInstance(
|
|
1702
1965
|
) {
|
1703
1966
|
resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
|
1704
1967
|
var input = props.crossOrigin;
|
1705
|
-
var JSCompiler_inline_result$jscomp$
|
1968
|
+
var JSCompiler_inline_result$jscomp$8 =
|
1706
1969
|
"string" === typeof input
|
1707
1970
|
? "use-credentials" === input
|
1708
1971
|
? input
|
@@ -1717,14 +1980,14 @@ function pushStartInstance(
|
|
1717
1980
|
((header = getPreloadAsHeader(src, "image", {
|
1718
1981
|
imageSrcSet: props.srcSet,
|
1719
1982
|
imageSizes: props.sizes,
|
1720
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
1983
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
1721
1984
|
integrity: props.integrity,
|
1722
1985
|
nonce: props.nonce,
|
1723
1986
|
type: props.type,
|
1724
1987
|
fetchPriority: props.fetchPriority,
|
1725
1988
|
referrerPolicy: props.refererPolicy
|
1726
1989
|
})),
|
1727
|
-
|
1990
|
+
0 <= (headers.remainingCapacity -= header.length + 2))
|
1728
1991
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
1729
1992
|
headers.highImagePreloads && (headers.highImagePreloads += ", "),
|
1730
1993
|
(headers.highImagePreloads += header))
|
@@ -1735,7 +1998,7 @@ function pushStartInstance(
|
|
1735
1998
|
href: srcSet ? void 0 : src,
|
1736
1999
|
imageSrcSet: srcSet,
|
1737
2000
|
imageSizes: sizes,
|
1738
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
2001
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
1739
2002
|
integrity: props.integrity,
|
1740
2003
|
type: props.type,
|
1741
2004
|
fetchPriority: props.fetchPriority,
|
@@ -1773,56 +2036,56 @@ function pushStartInstance(
|
|
1773
2036
|
case "head":
|
1774
2037
|
if (2 > formatContext.insertionMode && null === renderState.headChunks) {
|
1775
2038
|
renderState.headChunks = [];
|
1776
|
-
var JSCompiler_inline_result$jscomp$
|
2039
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
1777
2040
|
renderState.headChunks,
|
1778
2041
|
props,
|
1779
2042
|
"head"
|
1780
2043
|
);
|
1781
2044
|
} else
|
1782
|
-
JSCompiler_inline_result$jscomp$
|
2045
|
+
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
1783
2046
|
target$jscomp$0,
|
1784
2047
|
props,
|
1785
2048
|
"head"
|
1786
2049
|
);
|
1787
|
-
return JSCompiler_inline_result$jscomp$
|
2050
|
+
return JSCompiler_inline_result$jscomp$9;
|
1788
2051
|
case "html":
|
1789
2052
|
if (
|
1790
2053
|
0 === formatContext.insertionMode &&
|
1791
2054
|
null === renderState.htmlChunks
|
1792
2055
|
) {
|
1793
2056
|
renderState.htmlChunks = [doctypeChunk];
|
1794
|
-
var JSCompiler_inline_result$jscomp$
|
2057
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
1795
2058
|
renderState.htmlChunks,
|
1796
2059
|
props,
|
1797
2060
|
"html"
|
1798
2061
|
);
|
1799
2062
|
} else
|
1800
|
-
JSCompiler_inline_result$jscomp$
|
2063
|
+
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
1801
2064
|
target$jscomp$0,
|
1802
2065
|
props,
|
1803
2066
|
"html"
|
1804
2067
|
);
|
1805
|
-
return JSCompiler_inline_result$jscomp$
|
2068
|
+
return JSCompiler_inline_result$jscomp$10;
|
1806
2069
|
default:
|
1807
2070
|
if (-1 !== type.indexOf("-")) {
|
1808
2071
|
target$jscomp$0.push(startChunkForTag(type));
|
1809
|
-
var children$jscomp$
|
1810
|
-
innerHTML$jscomp$
|
1811
|
-
propKey$jscomp$
|
1812
|
-
for (propKey$jscomp$
|
1813
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1814
|
-
var propValue$jscomp$
|
1815
|
-
if (null != propValue$jscomp$
|
1816
|
-
var attributeName = propKey$jscomp$
|
1817
|
-
switch (propKey$jscomp$
|
2072
|
+
var children$jscomp$9 = null,
|
2073
|
+
innerHTML$jscomp$8 = null,
|
2074
|
+
propKey$jscomp$11;
|
2075
|
+
for (propKey$jscomp$11 in props)
|
2076
|
+
if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
2077
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
2078
|
+
if (null != propValue$jscomp$11) {
|
2079
|
+
var attributeName = propKey$jscomp$11;
|
2080
|
+
switch (propKey$jscomp$11) {
|
1818
2081
|
case "children":
|
1819
|
-
children$jscomp$
|
2082
|
+
children$jscomp$9 = propValue$jscomp$11;
|
1820
2083
|
break;
|
1821
2084
|
case "dangerouslySetInnerHTML":
|
1822
|
-
innerHTML$jscomp$
|
2085
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
1823
2086
|
break;
|
1824
2087
|
case "style":
|
1825
|
-
pushStyleAttribute(target$jscomp$0, propValue$jscomp$
|
2088
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
1826
2089
|
break;
|
1827
2090
|
case "suppressContentEditableWarning":
|
1828
2091
|
case "suppressHydrationWarning":
|
@@ -1832,18 +2095,18 @@ function pushStartInstance(
|
|
1832
2095
|
attributeName = "class";
|
1833
2096
|
default:
|
1834
2097
|
if (
|
1835
|
-
isAttributeNameSafe(propKey$jscomp$
|
1836
|
-
"function" !== typeof propValue$jscomp$
|
1837
|
-
"symbol" !== typeof propValue$jscomp$
|
1838
|
-
!1 !== propValue$jscomp$
|
2098
|
+
isAttributeNameSafe(propKey$jscomp$11) &&
|
2099
|
+
"function" !== typeof propValue$jscomp$11 &&
|
2100
|
+
"symbol" !== typeof propValue$jscomp$11 &&
|
2101
|
+
!1 !== propValue$jscomp$11
|
1839
2102
|
) {
|
1840
|
-
if (!0 === propValue$jscomp$
|
1841
|
-
else if ("object" === typeof propValue$jscomp$
|
2103
|
+
if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
|
2104
|
+
else if ("object" === typeof propValue$jscomp$11) continue;
|
1842
2105
|
target$jscomp$0.push(
|
1843
2106
|
attributeSeparator,
|
1844
2107
|
attributeName,
|
1845
2108
|
attributeAssign,
|
1846
|
-
escapeTextForBrowser(propValue$jscomp$
|
2109
|
+
escapeTextForBrowser(propValue$jscomp$11),
|
1847
2110
|
attributeEnd
|
1848
2111
|
);
|
1849
2112
|
}
|
@@ -1851,8 +2114,8 @@ function pushStartInstance(
|
|
1851
2114
|
}
|
1852
2115
|
}
|
1853
2116
|
target$jscomp$0.push(endOfStartTag);
|
1854
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
1855
|
-
return children$jscomp$
|
2117
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
2118
|
+
return children$jscomp$9;
|
1856
2119
|
}
|
1857
2120
|
}
|
1858
2121
|
return pushStartGenericElement(target$jscomp$0, props, type);
|
@@ -2024,10 +2287,10 @@ var completeBoundaryScript1Full = stringToPrecomputedChunk(
|
|
2024
2287
|
),
|
2025
2288
|
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2026
2289
|
completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
|
2027
|
-
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(
|
2290
|
+
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
|
2028
2291
|
),
|
2029
2292
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
2030
|
-
'$RM=new Map;\n$RR=function(
|
2293
|
+
'$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
|
2031
2294
|
),
|
2032
2295
|
completeBoundaryWithStylesScript1Partial = stringToPrecomputedChunk('$RR("'),
|
2033
2296
|
completeBoundaryScript2 = stringToPrecomputedChunk('","'),
|
@@ -2341,7 +2604,7 @@ function prefetchDNS(href) {
|
|
2341
2604
|
escapeHrefForLinkHeaderURLContextReplacer
|
2342
2605
|
) +
|
2343
2606
|
">; rel=dns-prefetch"),
|
2344
|
-
|
2607
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
2345
2608
|
JSCompiler_temp
|
2346
2609
|
? ((renderState.resets.dns[href] = null),
|
2347
2610
|
resumableState.preconnects && (resumableState.preconnects += ", "),
|
@@ -2364,8 +2627,8 @@ function preconnect(href, crossOrigin) {
|
|
2364
2627
|
"use-credentials" === crossOrigin
|
2365
2628
|
? "credentials"
|
2366
2629
|
: "string" === typeof crossOrigin
|
2367
|
-
|
2368
|
-
|
2630
|
+
? "anonymous"
|
2631
|
+
: "default";
|
2369
2632
|
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
2370
2633
|
resumableState.connectResources[bucket][href] = null;
|
2371
2634
|
resumableState = renderState.headers;
|
@@ -2390,7 +2653,7 @@ function preconnect(href, crossOrigin) {
|
|
2390
2653
|
}
|
2391
2654
|
JSCompiler_temp =
|
2392
2655
|
((header = JSCompiler_temp),
|
2393
|
-
|
2656
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
2394
2657
|
}
|
2395
2658
|
JSCompiler_temp
|
2396
2659
|
? ((renderState.resets.connect[bucket][href] = null),
|
@@ -2432,7 +2695,7 @@ function preload(href, as, options) {
|
|
2432
2695
|
0 < resumableState.remainingCapacity &&
|
2433
2696
|
"high" === fetchPriority &&
|
2434
2697
|
((header = getPreloadAsHeader(href, as, options)),
|
2435
|
-
|
2698
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2))
|
2436
2699
|
? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
|
2437
2700
|
resumableState.highImagePreloads &&
|
2438
2701
|
(resumableState.highImagePreloads += ", "),
|
@@ -2498,7 +2761,7 @@ function preload(href, as, options) {
|
|
2498
2761
|
0 < resumableState.remainingCapacity &&
|
2499
2762
|
"font" === as &&
|
2500
2763
|
((key = getPreloadAsHeader(href, as, options)),
|
2501
|
-
|
2764
|
+
0 <= (resumableState.remainingCapacity -= key.length + 2))
|
2502
2765
|
)
|
2503
2766
|
(renderState.resets.font[href] = PRELOAD_NO_CREDS),
|
2504
2767
|
resumableState.fontPreloads &&
|
@@ -2721,7 +2984,8 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
2721
2984
|
function hoistStylesheetDependency(stylesheet) {
|
2722
2985
|
this.stylesheets.add(stylesheet);
|
2723
2986
|
}
|
2724
|
-
var
|
2987
|
+
var bind = Function.prototype.bind,
|
2988
|
+
requestStorage = new async_hooks.AsyncLocalStorage(),
|
2725
2989
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
2726
2990
|
function getComponentNameFromType(type) {
|
2727
2991
|
if (null == type) return null;
|
@@ -2833,12 +3097,12 @@ function switchContext(newSnapshot) {
|
|
2833
3097
|
(null === prev
|
2834
3098
|
? pushAllNext(newSnapshot)
|
2835
3099
|
: null === newSnapshot
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
3100
|
+
? popAllPrevious(prev)
|
3101
|
+
: prev.depth === newSnapshot.depth
|
3102
|
+
? popToNearestCommonAncestor(prev, newSnapshot)
|
3103
|
+
: prev.depth > newSnapshot.depth
|
3104
|
+
? popPreviousToCommonLevel(prev, newSnapshot)
|
3105
|
+
: popNextToCommonLevel(prev, newSnapshot),
|
2842
3106
|
(currentActiveSnapshot = newSnapshot));
|
2843
3107
|
}
|
2844
3108
|
var classComponentUpdater = {
|
@@ -2985,9 +3249,9 @@ function createWorkInProgressHook() {
|
|
2985
3249
|
(firstWorkInProgressHook = workInProgressHook = createHook()))
|
2986
3250
|
: ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
|
2987
3251
|
: null === workInProgressHook.next
|
2988
|
-
|
2989
|
-
|
2990
|
-
|
3252
|
+
? ((isReRender = !1),
|
3253
|
+
(workInProgressHook = workInProgressHook.next = createHook()))
|
3254
|
+
: ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
|
2991
3255
|
return workInProgressHook;
|
2992
3256
|
}
|
2993
3257
|
function getThenableStateAfterSuspending() {
|
@@ -3034,8 +3298,8 @@ function useReducer(reducer, initialArg, init) {
|
|
3034
3298
|
? initialArg()
|
3035
3299
|
: initialArg
|
3036
3300
|
: void 0 !== init
|
3037
|
-
|
3038
|
-
|
3301
|
+
? init(initialArg)
|
3302
|
+
: initialArg;
|
3039
3303
|
workInProgressHook.memoizedState = reducer;
|
3040
3304
|
reducer = workInProgressHook.queue = { last: null, dispatch: null };
|
3041
3305
|
reducer = reducer.dispatch = dispatchAction.bind(
|
@@ -3261,8 +3525,14 @@ var currentResumableState = null,
|
|
3261
3525
|
getCacheForType: function () {
|
3262
3526
|
throw Error("Not implemented.");
|
3263
3527
|
}
|
3264
|
-
}
|
3265
|
-
|
3528
|
+
};
|
3529
|
+
function prepareStackTrace(error, structuredStackTrace) {
|
3530
|
+
error = (error.name || "Error") + ": " + (error.message || "");
|
3531
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
3532
|
+
error += "\n at " + structuredStackTrace[i].toString();
|
3533
|
+
return error;
|
3534
|
+
}
|
3535
|
+
var prefix, suffix;
|
3266
3536
|
function describeBuiltInComponentFrame(name) {
|
3267
3537
|
if (void 0 === prefix)
|
3268
3538
|
try {
|
@@ -3270,71 +3540,79 @@ function describeBuiltInComponentFrame(name) {
|
|
3270
3540
|
} catch (x) {
|
3271
3541
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
3272
3542
|
prefix = (match && match[1]) || "";
|
3543
|
+
suffix =
|
3544
|
+
-1 < x.stack.indexOf("\n at")
|
3545
|
+
? " (<anonymous>)"
|
3546
|
+
: -1 < x.stack.indexOf("@")
|
3547
|
+
? "@unknown:0:0"
|
3548
|
+
: "";
|
3273
3549
|
}
|
3274
|
-
return "\n" + prefix + name;
|
3550
|
+
return "\n" + prefix + name + suffix;
|
3275
3551
|
}
|
3276
3552
|
var reentry = !1;
|
3277
3553
|
function describeNativeComponentFrame(fn, construct) {
|
3278
3554
|
if (!fn || reentry) return "";
|
3279
3555
|
reentry = !0;
|
3280
3556
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
3281
|
-
Error.prepareStackTrace =
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
};
|
3289
|
-
Object.defineProperty(Fake.prototype, "props", {
|
3290
|
-
set: function () {
|
3557
|
+
Error.prepareStackTrace = prepareStackTrace;
|
3558
|
+
try {
|
3559
|
+
var RunInRootFrame = {
|
3560
|
+
DetermineComponentFrameRoot: function () {
|
3561
|
+
try {
|
3562
|
+
if (construct) {
|
3563
|
+
var Fake = function () {
|
3291
3564
|
throw Error();
|
3565
|
+
};
|
3566
|
+
Object.defineProperty(Fake.prototype, "props", {
|
3567
|
+
set: function () {
|
3568
|
+
throw Error();
|
3569
|
+
}
|
3570
|
+
});
|
3571
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
3572
|
+
try {
|
3573
|
+
Reflect.construct(Fake, []);
|
3574
|
+
} catch (x) {
|
3575
|
+
var control = x;
|
3576
|
+
}
|
3577
|
+
Reflect.construct(fn, [], Fake);
|
3578
|
+
} else {
|
3579
|
+
try {
|
3580
|
+
Fake.call();
|
3581
|
+
} catch (x$24) {
|
3582
|
+
control = x$24;
|
3583
|
+
}
|
3584
|
+
fn.call(Fake.prototype);
|
3292
3585
|
}
|
3293
|
-
});
|
3294
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
3295
|
-
try {
|
3296
|
-
Reflect.construct(Fake, []);
|
3297
|
-
} catch (x) {
|
3298
|
-
var control = x;
|
3299
|
-
}
|
3300
|
-
Reflect.construct(fn, [], Fake);
|
3301
3586
|
} else {
|
3302
3587
|
try {
|
3303
|
-
|
3304
|
-
} catch (x$
|
3305
|
-
control = x$
|
3588
|
+
throw Error();
|
3589
|
+
} catch (x$25) {
|
3590
|
+
control = x$25;
|
3306
3591
|
}
|
3307
|
-
fn
|
3308
|
-
|
3309
|
-
|
3310
|
-
try {
|
3311
|
-
throw Error();
|
3312
|
-
} catch (x$25) {
|
3313
|
-
control = x$25;
|
3592
|
+
(Fake = fn()) &&
|
3593
|
+
"function" === typeof Fake.catch &&
|
3594
|
+
Fake.catch(function () {});
|
3314
3595
|
}
|
3315
|
-
|
3316
|
-
|
3317
|
-
|
3596
|
+
} catch (sample) {
|
3597
|
+
if (sample && control && "string" === typeof sample.stack)
|
3598
|
+
return [sample.stack, control.stack];
|
3318
3599
|
}
|
3319
|
-
|
3320
|
-
if (sample && control && "string" === typeof sample.stack)
|
3321
|
-
return [sample.stack, control.stack];
|
3600
|
+
return [null, null];
|
3322
3601
|
}
|
3323
|
-
|
3324
|
-
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
try {
|
3602
|
+
};
|
3603
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
3604
|
+
"DetermineComponentFrameRoot";
|
3605
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
3606
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
3607
|
+
"name"
|
3608
|
+
);
|
3609
|
+
namePropDescriptor &&
|
3610
|
+
namePropDescriptor.configurable &&
|
3611
|
+
Object.defineProperty(
|
3612
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
3613
|
+
"name",
|
3614
|
+
{ value: "DetermineComponentFrameRoot" }
|
3615
|
+
);
|
3338
3616
|
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
|
3339
3617
|
sampleStack = _RunInRootFrame$Deter[0],
|
3340
3618
|
controlStack = _RunInRootFrame$Deter[1];
|
@@ -3405,11 +3683,206 @@ function describeNativeComponentFrame(fn, construct) {
|
|
3405
3683
|
? describeBuiltInComponentFrame(previousPrepareStackTrace)
|
3406
3684
|
: "";
|
3407
3685
|
}
|
3686
|
+
function describeComponentStackByType(type) {
|
3687
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
3688
|
+
if ("function" === typeof type)
|
3689
|
+
return type.prototype && type.prototype.isReactComponent
|
3690
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
3691
|
+
: describeNativeComponentFrame(type, !1);
|
3692
|
+
if ("object" === typeof type && null !== type) {
|
3693
|
+
switch (type.$$typeof) {
|
3694
|
+
case REACT_FORWARD_REF_TYPE:
|
3695
|
+
return describeNativeComponentFrame(type.render, !1);
|
3696
|
+
case REACT_MEMO_TYPE:
|
3697
|
+
return describeNativeComponentFrame(type.type, !1);
|
3698
|
+
case REACT_LAZY_TYPE:
|
3699
|
+
var lazyComponent = type,
|
3700
|
+
payload = lazyComponent._payload;
|
3701
|
+
lazyComponent = lazyComponent._init;
|
3702
|
+
try {
|
3703
|
+
type = lazyComponent(payload);
|
3704
|
+
} catch (x) {
|
3705
|
+
return describeBuiltInComponentFrame("Lazy");
|
3706
|
+
}
|
3707
|
+
return describeComponentStackByType(type);
|
3708
|
+
}
|
3709
|
+
if ("string" === typeof type.name)
|
3710
|
+
return (
|
3711
|
+
(payload = type.env),
|
3712
|
+
describeBuiltInComponentFrame(
|
3713
|
+
type.name + (payload ? " [" + payload + "]" : "")
|
3714
|
+
)
|
3715
|
+
);
|
3716
|
+
}
|
3717
|
+
switch (type) {
|
3718
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
3719
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
3720
|
+
case REACT_SUSPENSE_TYPE:
|
3721
|
+
return describeBuiltInComponentFrame("Suspense");
|
3722
|
+
}
|
3723
|
+
return "";
|
3724
|
+
}
|
3408
3725
|
function defaultErrorHandler(error) {
|
3409
|
-
|
3726
|
+
if (
|
3727
|
+
"object" === typeof error &&
|
3728
|
+
null !== error &&
|
3729
|
+
"string" === typeof error.environmentName
|
3730
|
+
) {
|
3731
|
+
var JSCompiler_inline_result = error.environmentName;
|
3732
|
+
error = [error].slice(0);
|
3733
|
+
"string" === typeof error[0]
|
3734
|
+
? error.splice(
|
3735
|
+
0,
|
3736
|
+
1,
|
3737
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c " + error[0],
|
3738
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
3739
|
+
" " + JSCompiler_inline_result + " ",
|
3740
|
+
""
|
3741
|
+
)
|
3742
|
+
: error.splice(
|
3743
|
+
0,
|
3744
|
+
0,
|
3745
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
|
3746
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
3747
|
+
" " + JSCompiler_inline_result + " ",
|
3748
|
+
""
|
3749
|
+
);
|
3750
|
+
error.unshift(console);
|
3751
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
3752
|
+
JSCompiler_inline_result();
|
3753
|
+
} else console.error(error);
|
3410
3754
|
return null;
|
3411
3755
|
}
|
3412
3756
|
function noop() {}
|
3757
|
+
function RequestInstance(
|
3758
|
+
resumableState,
|
3759
|
+
renderState,
|
3760
|
+
rootFormatContext,
|
3761
|
+
progressiveChunkSize,
|
3762
|
+
onError,
|
3763
|
+
onAllReady,
|
3764
|
+
onShellReady,
|
3765
|
+
onShellError,
|
3766
|
+
onFatalError,
|
3767
|
+
onPostpone,
|
3768
|
+
formState
|
3769
|
+
) {
|
3770
|
+
var abortSet = new Set();
|
3771
|
+
this.destination = null;
|
3772
|
+
this.flushScheduled = !1;
|
3773
|
+
this.resumableState = resumableState;
|
3774
|
+
this.renderState = renderState;
|
3775
|
+
this.rootFormatContext = rootFormatContext;
|
3776
|
+
this.progressiveChunkSize =
|
3777
|
+
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
3778
|
+
this.status = 10;
|
3779
|
+
this.fatalError = null;
|
3780
|
+
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
3781
|
+
this.completedRootSegment = null;
|
3782
|
+
this.abortableTasks = abortSet;
|
3783
|
+
this.pingedTasks = [];
|
3784
|
+
this.clientRenderedBoundaries = [];
|
3785
|
+
this.completedBoundaries = [];
|
3786
|
+
this.partialBoundaries = [];
|
3787
|
+
this.trackedPostpones = null;
|
3788
|
+
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
3789
|
+
this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
|
3790
|
+
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
3791
|
+
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
3792
|
+
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
3793
|
+
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
3794
|
+
this.formState = void 0 === formState ? null : formState;
|
3795
|
+
}
|
3796
|
+
function createRequest(
|
3797
|
+
children,
|
3798
|
+
resumableState,
|
3799
|
+
renderState,
|
3800
|
+
rootFormatContext,
|
3801
|
+
progressiveChunkSize,
|
3802
|
+
onError,
|
3803
|
+
onAllReady,
|
3804
|
+
onShellReady,
|
3805
|
+
onShellError,
|
3806
|
+
onFatalError,
|
3807
|
+
onPostpone,
|
3808
|
+
formState
|
3809
|
+
) {
|
3810
|
+
resumableState = new RequestInstance(
|
3811
|
+
resumableState,
|
3812
|
+
renderState,
|
3813
|
+
rootFormatContext,
|
3814
|
+
progressiveChunkSize,
|
3815
|
+
onError,
|
3816
|
+
onAllReady,
|
3817
|
+
onShellReady,
|
3818
|
+
onShellError,
|
3819
|
+
onFatalError,
|
3820
|
+
onPostpone,
|
3821
|
+
formState
|
3822
|
+
);
|
3823
|
+
renderState = createPendingSegment(
|
3824
|
+
resumableState,
|
3825
|
+
0,
|
3826
|
+
null,
|
3827
|
+
rootFormatContext,
|
3828
|
+
!1,
|
3829
|
+
!1
|
3830
|
+
);
|
3831
|
+
renderState.parentFlushed = !0;
|
3832
|
+
children = createRenderTask(
|
3833
|
+
resumableState,
|
3834
|
+
null,
|
3835
|
+
children,
|
3836
|
+
-1,
|
3837
|
+
null,
|
3838
|
+
renderState,
|
3839
|
+
null,
|
3840
|
+
resumableState.abortableTasks,
|
3841
|
+
null,
|
3842
|
+
rootFormatContext,
|
3843
|
+
null,
|
3844
|
+
emptyTreeContext,
|
3845
|
+
null,
|
3846
|
+
!1
|
3847
|
+
);
|
3848
|
+
pushComponentStack(children);
|
3849
|
+
resumableState.pingedTasks.push(children);
|
3850
|
+
return resumableState;
|
3851
|
+
}
|
3852
|
+
function createPrerenderRequest(
|
3853
|
+
children,
|
3854
|
+
resumableState,
|
3855
|
+
renderState,
|
3856
|
+
rootFormatContext,
|
3857
|
+
progressiveChunkSize,
|
3858
|
+
onError,
|
3859
|
+
onAllReady,
|
3860
|
+
onShellReady,
|
3861
|
+
onShellError,
|
3862
|
+
onFatalError,
|
3863
|
+
onPostpone
|
3864
|
+
) {
|
3865
|
+
children = createRequest(
|
3866
|
+
children,
|
3867
|
+
resumableState,
|
3868
|
+
renderState,
|
3869
|
+
rootFormatContext,
|
3870
|
+
progressiveChunkSize,
|
3871
|
+
onError,
|
3872
|
+
onAllReady,
|
3873
|
+
onShellReady,
|
3874
|
+
onShellError,
|
3875
|
+
onFatalError,
|
3876
|
+
onPostpone,
|
3877
|
+
void 0
|
3878
|
+
);
|
3879
|
+
children.trackedPostpones = {
|
3880
|
+
workingMap: new Map(),
|
3881
|
+
rootNodes: [],
|
3882
|
+
rootSlots: null
|
3883
|
+
};
|
3884
|
+
return children;
|
3885
|
+
}
|
3413
3886
|
var currentRequest = null;
|
3414
3887
|
function resolveRequest() {
|
3415
3888
|
if (currentRequest) return currentRequest;
|
@@ -3420,9 +3893,13 @@ function pingTask(request, task) {
|
|
3420
3893
|
request.pingedTasks.push(task);
|
3421
3894
|
1 === request.pingedTasks.length &&
|
3422
3895
|
((request.flushScheduled = null !== request.destination),
|
3423
|
-
|
3424
|
-
|
3425
|
-
|
3896
|
+
null !== request.trackedPostpones || 10 === request.status
|
3897
|
+
? scheduleMicrotask(function () {
|
3898
|
+
return performWork(request);
|
3899
|
+
})
|
3900
|
+
: setImmediate(function () {
|
3901
|
+
return performWork(request);
|
3902
|
+
}));
|
3426
3903
|
}
|
3427
3904
|
function createSuspenseBoundary(request, fallbackAbortableTasks) {
|
3428
3905
|
return {
|
@@ -3451,7 +3928,6 @@ function createRenderTask(
|
|
3451
3928
|
abortSet,
|
3452
3929
|
keyPath,
|
3453
3930
|
formatContext,
|
3454
|
-
legacyContext,
|
3455
3931
|
context,
|
3456
3932
|
treeContext,
|
3457
3933
|
componentStack,
|
@@ -3474,7 +3950,6 @@ function createRenderTask(
|
|
3474
3950
|
abortSet: abortSet,
|
3475
3951
|
keyPath: keyPath,
|
3476
3952
|
formatContext: formatContext,
|
3477
|
-
legacyContext: legacyContext,
|
3478
3953
|
context: context,
|
3479
3954
|
treeContext: treeContext,
|
3480
3955
|
componentStack: componentStack,
|
@@ -3495,7 +3970,6 @@ function createReplayTask(
|
|
3495
3970
|
abortSet,
|
3496
3971
|
keyPath,
|
3497
3972
|
formatContext,
|
3498
|
-
legacyContext,
|
3499
3973
|
context,
|
3500
3974
|
treeContext,
|
3501
3975
|
componentStack,
|
@@ -3519,7 +3993,6 @@ function createReplayTask(
|
|
3519
3993
|
abortSet: abortSet,
|
3520
3994
|
keyPath: keyPath,
|
3521
3995
|
formatContext: formatContext,
|
3522
|
-
legacyContext: legacyContext,
|
3523
3996
|
context: context,
|
3524
3997
|
treeContext: treeContext,
|
3525
3998
|
componentStack: componentStack,
|
@@ -3550,47 +4023,54 @@ function createPendingSegment(
|
|
3550
4023
|
textEmbedded: textEmbedded
|
3551
4024
|
};
|
3552
4025
|
}
|
3553
|
-
function
|
3554
|
-
|
4026
|
+
function pushComponentStack(task) {
|
4027
|
+
var node = task.node;
|
4028
|
+
if ("object" === typeof node && null !== node)
|
4029
|
+
switch (node.$$typeof) {
|
4030
|
+
case REACT_ELEMENT_TYPE:
|
4031
|
+
task.componentStack = { parent: task.componentStack, type: node.type };
|
4032
|
+
}
|
3555
4033
|
}
|
3556
|
-
function getThrownInfo(
|
3557
|
-
|
3558
|
-
|
3559
|
-
|
3560
|
-
|
3561
|
-
|
3562
|
-
|
3563
|
-
|
3564
|
-
|
3565
|
-
|
3566
|
-
|
3567
|
-
|
3568
|
-
|
3569
|
-
|
4034
|
+
function getThrownInfo(node$jscomp$0) {
|
4035
|
+
var errorInfo = {};
|
4036
|
+
node$jscomp$0 &&
|
4037
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4038
|
+
configurable: !0,
|
4039
|
+
enumerable: !0,
|
4040
|
+
get: function () {
|
4041
|
+
try {
|
4042
|
+
var info = "",
|
4043
|
+
node = node$jscomp$0;
|
4044
|
+
do
|
4045
|
+
(info += describeComponentStackByType(node.type)),
|
4046
|
+
(node = node.parent);
|
4047
|
+
while (node);
|
4048
|
+
var JSCompiler_inline_result = info;
|
4049
|
+
} catch (x) {
|
4050
|
+
JSCompiler_inline_result =
|
4051
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
3570
4052
|
}
|
3571
|
-
|
3572
|
-
|
3573
|
-
|
3574
|
-
|
3575
|
-
|
3576
|
-
|
3577
|
-
|
3578
|
-
JSCompiler_temp = { componentStack: JSCompiler_temp };
|
3579
|
-
} else JSCompiler_temp = {};
|
3580
|
-
return JSCompiler_temp;
|
4053
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4054
|
+
value: JSCompiler_inline_result
|
4055
|
+
});
|
4056
|
+
return JSCompiler_inline_result;
|
4057
|
+
}
|
4058
|
+
});
|
4059
|
+
return errorInfo;
|
3581
4060
|
}
|
3582
4061
|
function logRecoverableError(request, error, errorInfo) {
|
3583
|
-
request = request.onError
|
3584
|
-
|
4062
|
+
request = request.onError;
|
4063
|
+
error = request(error, errorInfo);
|
4064
|
+
if (null == error || "string" === typeof error) return error;
|
3585
4065
|
}
|
3586
4066
|
function fatalError(request, error) {
|
3587
|
-
var onShellError = request.onShellError
|
3588
|
-
|
3589
|
-
onShellError = request.onFatalError;
|
4067
|
+
var onShellError = request.onShellError,
|
4068
|
+
onFatalError = request.onFatalError;
|
3590
4069
|
onShellError(error);
|
4070
|
+
onFatalError(error);
|
3591
4071
|
null !== request.destination
|
3592
|
-
? ((request.status =
|
3593
|
-
: ((request.status =
|
4072
|
+
? ((request.status = 14), request.destination.destroy(error))
|
4073
|
+
: ((request.status = 13), (request.fatalError = error));
|
3594
4074
|
}
|
3595
4075
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
3596
4076
|
var prevThenableState = task.thenableState;
|
@@ -3643,171 +4123,148 @@ function finishFunctionComponent(
|
|
3643
4123
|
renderNode(request, task, children, -1),
|
3644
4124
|
(task.treeContext = keyPath))
|
3645
4125
|
: didEmitActionStateMarkers
|
3646
|
-
|
3647
|
-
|
4126
|
+
? renderNode(request, task, children, -1)
|
4127
|
+
: renderNodeDestructive(request, task, children, -1);
|
3648
4128
|
task.keyPath = actionStateCount;
|
3649
4129
|
}
|
3650
4130
|
function renderElement(request, task, keyPath, type, props, ref) {
|
3651
4131
|
if ("function" === typeof type)
|
3652
4132
|
if (type.prototype && type.prototype.isReactComponent) {
|
3653
|
-
var
|
4133
|
+
var newProps = props;
|
3654
4134
|
if ("ref" in props) {
|
3655
|
-
|
4135
|
+
newProps = {};
|
3656
4136
|
for (var propName in props)
|
3657
|
-
"ref" !== propName &&
|
3658
|
-
(JSCompiler_inline_result[propName] = props[propName]);
|
4137
|
+
"ref" !== propName && (newProps[propName] = props[propName]);
|
3659
4138
|
}
|
3660
4139
|
var defaultProps = type.defaultProps;
|
3661
4140
|
if (defaultProps) {
|
3662
|
-
|
3663
|
-
|
3664
|
-
|
3665
|
-
|
3666
|
-
props
|
3667
|
-
));
|
3668
|
-
for (var propName$31 in defaultProps)
|
3669
|
-
void 0 === JSCompiler_inline_result[propName$31] &&
|
3670
|
-
(JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
|
4141
|
+
newProps === props && (newProps = assign({}, newProps, props));
|
4142
|
+
for (var propName$33 in defaultProps)
|
4143
|
+
void 0 === newProps[propName$33] &&
|
4144
|
+
(newProps[propName$33] = defaultProps[propName$33]);
|
3671
4145
|
}
|
3672
|
-
props =
|
3673
|
-
|
3674
|
-
defaultProps =
|
4146
|
+
props = newProps;
|
4147
|
+
newProps = emptyContextObject;
|
4148
|
+
defaultProps = type.contextType;
|
4149
|
+
"object" === typeof defaultProps &&
|
4150
|
+
null !== defaultProps &&
|
4151
|
+
(newProps = defaultProps._currentValue);
|
4152
|
+
newProps = new type(props, newProps);
|
4153
|
+
var initialState = void 0 !== newProps.state ? newProps.state : null;
|
4154
|
+
newProps.updater = classComponentUpdater;
|
4155
|
+
newProps.props = props;
|
4156
|
+
newProps.state = initialState;
|
4157
|
+
defaultProps = { queue: [], replace: !1 };
|
4158
|
+
newProps._reactInternals = defaultProps;
|
3675
4159
|
ref = type.contextType;
|
3676
|
-
|
3677
|
-
null !== ref
|
3678
|
-
|
3679
|
-
defaultProps = new type(JSCompiler_inline_result, defaultProps);
|
3680
|
-
propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
|
3681
|
-
defaultProps.updater = classComponentUpdater;
|
3682
|
-
defaultProps.props = JSCompiler_inline_result;
|
3683
|
-
defaultProps.state = propName$31;
|
3684
|
-
ref = { queue: [], replace: !1 };
|
3685
|
-
defaultProps._reactInternals = ref;
|
3686
|
-
var contextType = type.contextType;
|
3687
|
-
defaultProps.context =
|
3688
|
-
"object" === typeof contextType && null !== contextType
|
3689
|
-
? contextType._currentValue
|
4160
|
+
newProps.context =
|
4161
|
+
"object" === typeof ref && null !== ref
|
4162
|
+
? ref._currentValue
|
3690
4163
|
: emptyContextObject;
|
3691
|
-
|
3692
|
-
"function" === typeof
|
3693
|
-
((
|
3694
|
-
(
|
3695
|
-
null ===
|
3696
|
-
?
|
3697
|
-
: assign({},
|
3698
|
-
(
|
4164
|
+
ref = type.getDerivedStateFromProps;
|
4165
|
+
"function" === typeof ref &&
|
4166
|
+
((ref = ref(props, initialState)),
|
4167
|
+
(initialState =
|
4168
|
+
null === ref || void 0 === ref
|
4169
|
+
? initialState
|
4170
|
+
: assign({}, initialState, ref)),
|
4171
|
+
(newProps.state = initialState));
|
3699
4172
|
if (
|
3700
4173
|
"function" !== typeof type.getDerivedStateFromProps &&
|
3701
|
-
"function" !== typeof
|
3702
|
-
("function" === typeof
|
3703
|
-
"function" === typeof
|
4174
|
+
"function" !== typeof newProps.getSnapshotBeforeUpdate &&
|
4175
|
+
("function" === typeof newProps.UNSAFE_componentWillMount ||
|
4176
|
+
"function" === typeof newProps.componentWillMount)
|
3704
4177
|
)
|
3705
4178
|
if (
|
3706
|
-
((type =
|
3707
|
-
"function" === typeof
|
3708
|
-
|
3709
|
-
"function" === typeof
|
3710
|
-
|
3711
|
-
type !==
|
4179
|
+
((type = newProps.state),
|
4180
|
+
"function" === typeof newProps.componentWillMount &&
|
4181
|
+
newProps.componentWillMount(),
|
4182
|
+
"function" === typeof newProps.UNSAFE_componentWillMount &&
|
4183
|
+
newProps.UNSAFE_componentWillMount(),
|
4184
|
+
type !== newProps.state &&
|
3712
4185
|
classComponentUpdater.enqueueReplaceState(
|
3713
|
-
|
3714
|
-
|
4186
|
+
newProps,
|
4187
|
+
newProps.state,
|
3715
4188
|
null
|
3716
4189
|
),
|
3717
|
-
null !==
|
4190
|
+
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
3718
4191
|
)
|
3719
4192
|
if (
|
3720
|
-
((type =
|
3721
|
-
(
|
3722
|
-
(
|
3723
|
-
(
|
3724
|
-
|
4193
|
+
((type = defaultProps.queue),
|
4194
|
+
(ref = defaultProps.replace),
|
4195
|
+
(defaultProps.queue = null),
|
4196
|
+
(defaultProps.replace = !1),
|
4197
|
+
ref && 1 === type.length)
|
3725
4198
|
)
|
3726
|
-
|
4199
|
+
newProps.state = type[0];
|
3727
4200
|
else {
|
3728
|
-
|
3729
|
-
|
3730
|
-
for (
|
3731
|
-
|
3732
|
-
|
3733
|
-
|
3734
|
-
|
3735
|
-
|
3736
|
-
|
3737
|
-
|
3738
|
-
?
|
3739
|
-
|
3740
|
-
|
3741
|
-
|
3742
|
-
void 0
|
3743
|
-
)
|
3744
|
-
: propName),
|
3745
|
-
null != propName &&
|
3746
|
-
(propName$31
|
3747
|
-
? ((propName$31 = !1), (ref = assign({}, ref, propName)))
|
3748
|
-
: assign(ref, propName));
|
3749
|
-
defaultProps.state = ref;
|
4201
|
+
defaultProps = ref ? type[0] : newProps.state;
|
4202
|
+
initialState = !0;
|
4203
|
+
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
4204
|
+
(propName$33 = type[ref]),
|
4205
|
+
(propName$33 =
|
4206
|
+
"function" === typeof propName$33
|
4207
|
+
? propName$33.call(newProps, defaultProps, props, void 0)
|
4208
|
+
: propName$33),
|
4209
|
+
null != propName$33 &&
|
4210
|
+
(initialState
|
4211
|
+
? ((initialState = !1),
|
4212
|
+
(defaultProps = assign({}, defaultProps, propName$33)))
|
4213
|
+
: assign(defaultProps, propName$33));
|
4214
|
+
newProps.state = defaultProps;
|
3750
4215
|
}
|
3751
|
-
else
|
3752
|
-
type =
|
3753
|
-
|
4216
|
+
else defaultProps.queue = null;
|
4217
|
+
type = newProps.render();
|
4218
|
+
if (12 === request.status) throw null;
|
4219
|
+
props = task.keyPath;
|
3754
4220
|
task.keyPath = keyPath;
|
3755
4221
|
renderNodeDestructive(request, task, type, -1);
|
3756
|
-
task.keyPath =
|
3757
|
-
|
3758
|
-
|
3759
|
-
(
|
3760
|
-
|
3761
|
-
|
3762
|
-
|
3763
|
-
|
3764
|
-
|
3765
|
-
|
3766
|
-
|
3767
|
-
|
3768
|
-
|
3769
|
-
|
3770
|
-
|
3771
|
-
|
3772
|
-
|
3773
|
-
|
3774
|
-
),
|
3775
|
-
(task.
|
3776
|
-
else if ("string" === typeof type) {
|
3777
|
-
JSCompiler_inline_result = task.componentStack;
|
3778
|
-
task.componentStack = createBuiltInComponentStack(task, type);
|
3779
|
-
defaultProps = task.blockedSegment;
|
3780
|
-
if (null === defaultProps)
|
3781
|
-
(defaultProps = props.children),
|
3782
|
-
(ref = task.formatContext),
|
3783
|
-
(propName$31 = task.keyPath),
|
3784
|
-
(task.formatContext = getChildFormatContext(ref, type, props)),
|
4222
|
+
task.keyPath = props;
|
4223
|
+
} else {
|
4224
|
+
type = renderWithHooks(request, task, keyPath, type, props, void 0);
|
4225
|
+
if (12 === request.status) throw null;
|
4226
|
+
finishFunctionComponent(
|
4227
|
+
request,
|
4228
|
+
task,
|
4229
|
+
keyPath,
|
4230
|
+
type,
|
4231
|
+
0 !== localIdCounter,
|
4232
|
+
actionStateCounter,
|
4233
|
+
actionStateMatchingIndex
|
4234
|
+
);
|
4235
|
+
}
|
4236
|
+
else if ("string" === typeof type)
|
4237
|
+
if (((newProps = task.blockedSegment), null === newProps))
|
4238
|
+
(newProps = props.children),
|
4239
|
+
(defaultProps = task.formatContext),
|
4240
|
+
(initialState = task.keyPath),
|
4241
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props)),
|
3785
4242
|
(task.keyPath = keyPath),
|
3786
|
-
renderNode(request, task,
|
3787
|
-
(task.formatContext =
|
3788
|
-
(task.keyPath =
|
4243
|
+
renderNode(request, task, newProps, -1),
|
4244
|
+
(task.formatContext = defaultProps),
|
4245
|
+
(task.keyPath = initialState);
|
3789
4246
|
else {
|
3790
|
-
|
3791
|
-
|
4247
|
+
initialState = pushStartInstance(
|
4248
|
+
newProps.chunks,
|
3792
4249
|
type,
|
3793
4250
|
props,
|
3794
4251
|
request.resumableState,
|
3795
4252
|
request.renderState,
|
3796
4253
|
task.hoistableState,
|
3797
4254
|
task.formatContext,
|
3798
|
-
|
4255
|
+
newProps.lastPushedText,
|
3799
4256
|
task.isFallback
|
3800
4257
|
);
|
3801
|
-
|
3802
|
-
|
3803
|
-
|
3804
|
-
task.formatContext = getChildFormatContext(
|
4258
|
+
newProps.lastPushedText = !1;
|
4259
|
+
defaultProps = task.formatContext;
|
4260
|
+
ref = task.keyPath;
|
4261
|
+
task.formatContext = getChildFormatContext(defaultProps, type, props);
|
3805
4262
|
task.keyPath = keyPath;
|
3806
|
-
renderNode(request, task,
|
3807
|
-
task.formatContext =
|
3808
|
-
task.keyPath =
|
4263
|
+
renderNode(request, task, initialState, -1);
|
4264
|
+
task.formatContext = defaultProps;
|
4265
|
+
task.keyPath = ref;
|
3809
4266
|
a: {
|
3810
|
-
|
4267
|
+
task = newProps.chunks;
|
3811
4268
|
request = request.resumableState;
|
3812
4269
|
switch (type) {
|
3813
4270
|
case "title":
|
@@ -3830,23 +4287,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
3830
4287
|
case "wbr":
|
3831
4288
|
break a;
|
3832
4289
|
case "body":
|
3833
|
-
if (1 >=
|
4290
|
+
if (1 >= defaultProps.insertionMode) {
|
3834
4291
|
request.hasBody = !0;
|
3835
4292
|
break a;
|
3836
4293
|
}
|
3837
4294
|
break;
|
3838
4295
|
case "html":
|
3839
|
-
if (0 ===
|
4296
|
+
if (0 === defaultProps.insertionMode) {
|
3840
4297
|
request.hasHtml = !0;
|
3841
4298
|
break a;
|
3842
4299
|
}
|
3843
4300
|
}
|
3844
|
-
|
4301
|
+
task.push(endChunkForTag(type));
|
3845
4302
|
}
|
3846
|
-
|
4303
|
+
newProps.lastPushedText = !1;
|
3847
4304
|
}
|
3848
|
-
|
3849
|
-
} else {
|
4305
|
+
else {
|
3850
4306
|
switch (type) {
|
3851
4307
|
case REACT_LEGACY_HIDDEN_TYPE:
|
3852
4308
|
case REACT_DEBUG_TRACING_MODE_TYPE:
|
@@ -3866,13 +4322,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
3866
4322
|
(task.keyPath = type));
|
3867
4323
|
return;
|
3868
4324
|
case REACT_SUSPENSE_LIST_TYPE:
|
3869
|
-
type = task.
|
3870
|
-
task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
|
3871
|
-
JSCompiler_inline_result = task.keyPath;
|
4325
|
+
type = task.keyPath;
|
3872
4326
|
task.keyPath = keyPath;
|
3873
4327
|
renderNodeDestructive(request, task, props.children, -1);
|
3874
|
-
task.keyPath =
|
3875
|
-
task.componentStack = type;
|
4328
|
+
task.keyPath = type;
|
3876
4329
|
return;
|
3877
4330
|
case REACT_SCOPE_TYPE:
|
3878
4331
|
throw Error("ReactDOMServer does not yet support scope components.");
|
@@ -3887,31 +4340,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
3887
4340
|
task.keyPath = type;
|
3888
4341
|
}
|
3889
4342
|
} else {
|
3890
|
-
|
3891
|
-
|
3892
|
-
task
|
3893
|
-
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3898
|
-
parentSegment = task.blockedSegment;
|
3899
|
-
propName$31 = props.fallback;
|
3900
|
-
var content = props.children;
|
3901
|
-
props = new Set();
|
3902
|
-
contextType = createSuspenseBoundary(request, props);
|
4343
|
+
type = task.keyPath;
|
4344
|
+
var parentBoundary = task.blockedBoundary,
|
4345
|
+
parentHoistableState = task.hoistableState;
|
4346
|
+
ref = task.blockedSegment;
|
4347
|
+
propName$33 = props.fallback;
|
4348
|
+
props = props.children;
|
4349
|
+
var fallbackAbortSet = new Set();
|
4350
|
+
propName = createSuspenseBoundary(request, fallbackAbortSet);
|
3903
4351
|
null !== request.trackedPostpones &&
|
3904
|
-
(
|
3905
|
-
|
4352
|
+
(propName.trackedContentKeyPath = keyPath);
|
4353
|
+
var boundarySegment = createPendingSegment(
|
3906
4354
|
request,
|
3907
|
-
|
3908
|
-
|
4355
|
+
ref.chunks.length,
|
4356
|
+
propName,
|
3909
4357
|
task.formatContext,
|
3910
4358
|
!1,
|
3911
4359
|
!1
|
3912
4360
|
);
|
3913
|
-
|
3914
|
-
|
4361
|
+
ref.children.push(boundarySegment);
|
4362
|
+
ref.lastPushedText = !1;
|
3915
4363
|
var contentRootSegment = createPendingSegment(
|
3916
4364
|
request,
|
3917
4365
|
0,
|
@@ -3921,107 +4369,122 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
3921
4369
|
!1
|
3922
4370
|
);
|
3923
4371
|
contentRootSegment.parentFlushed = !0;
|
3924
|
-
|
3925
|
-
|
3926
|
-
|
3927
|
-
|
3928
|
-
|
3929
|
-
|
3930
|
-
|
3931
|
-
|
3932
|
-
|
3933
|
-
|
3934
|
-
|
3935
|
-
|
3936
|
-
|
3937
|
-
|
3938
|
-
|
3939
|
-
|
3940
|
-
|
4372
|
+
if (null !== request.trackedPostpones) {
|
4373
|
+
newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
4374
|
+
defaultProps = [newProps[1], newProps[2], [], null];
|
4375
|
+
request.trackedPostpones.workingMap.set(newProps, defaultProps);
|
4376
|
+
propName.trackedFallbackNode = defaultProps;
|
4377
|
+
task.blockedSegment = boundarySegment;
|
4378
|
+
task.keyPath = newProps;
|
4379
|
+
boundarySegment.status = 6;
|
4380
|
+
try {
|
4381
|
+
renderNode(request, task, propName$33, -1),
|
4382
|
+
boundarySegment.lastPushedText &&
|
4383
|
+
boundarySegment.textEmbedded &&
|
4384
|
+
boundarySegment.chunks.push(textSeparator),
|
4385
|
+
(boundarySegment.status = 1);
|
4386
|
+
} catch (thrownValue) {
|
4387
|
+
throw (
|
4388
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
4389
|
+
thrownValue)
|
4390
|
+
);
|
4391
|
+
} finally {
|
4392
|
+
(task.blockedSegment = ref), (task.keyPath = type);
|
3941
4393
|
}
|
3942
|
-
|
3943
|
-
|
3944
|
-
|
3945
|
-
|
3946
|
-
|
3947
|
-
|
3948
|
-
|
3949
|
-
|
3950
|
-
|
3951
|
-
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3959
|
-
|
3960
|
-
|
3961
|
-
|
4394
|
+
task = createRenderTask(
|
4395
|
+
request,
|
4396
|
+
null,
|
4397
|
+
props,
|
4398
|
+
-1,
|
4399
|
+
propName,
|
4400
|
+
contentRootSegment,
|
4401
|
+
propName.contentState,
|
4402
|
+
task.abortSet,
|
4403
|
+
keyPath,
|
4404
|
+
task.formatContext,
|
4405
|
+
task.context,
|
4406
|
+
task.treeContext,
|
4407
|
+
task.componentStack,
|
4408
|
+
task.isFallback
|
4409
|
+
);
|
4410
|
+
pushComponentStack(task);
|
4411
|
+
request.pingedTasks.push(task);
|
4412
|
+
} else {
|
4413
|
+
task.blockedBoundary = propName;
|
4414
|
+
task.hoistableState = propName.contentState;
|
4415
|
+
task.blockedSegment = contentRootSegment;
|
4416
|
+
task.keyPath = keyPath;
|
4417
|
+
contentRootSegment.status = 6;
|
4418
|
+
try {
|
4419
|
+
if (
|
4420
|
+
(renderNode(request, task, props, -1),
|
4421
|
+
contentRootSegment.lastPushedText &&
|
4422
|
+
contentRootSegment.textEmbedded &&
|
4423
|
+
contentRootSegment.chunks.push(textSeparator),
|
4424
|
+
(contentRootSegment.status = 1),
|
4425
|
+
queueCompletedSegment(propName, contentRootSegment),
|
4426
|
+
0 === propName.pendingTasks && 0 === propName.status)
|
4427
|
+
) {
|
4428
|
+
propName.status = 1;
|
4429
|
+
break a;
|
4430
|
+
}
|
4431
|
+
} catch (thrownValue$28) {
|
4432
|
+
(propName.status = 4),
|
4433
|
+
12 === request.status
|
4434
|
+
? ((contentRootSegment.status = 3),
|
4435
|
+
(newProps = request.fatalError))
|
4436
|
+
: ((contentRootSegment.status = 4),
|
4437
|
+
(newProps = thrownValue$28)),
|
4438
|
+
(defaultProps = getThrownInfo(task.componentStack)),
|
4439
|
+
(initialState = logRecoverableError(
|
4440
|
+
request,
|
4441
|
+
newProps,
|
4442
|
+
defaultProps
|
4443
|
+
)),
|
4444
|
+
(propName.errorDigest = initialState),
|
4445
|
+
untrackBoundary(request, propName);
|
4446
|
+
} finally {
|
4447
|
+
(task.blockedBoundary = parentBoundary),
|
4448
|
+
(task.hoistableState = parentHoistableState),
|
4449
|
+
(task.blockedSegment = ref),
|
4450
|
+
(task.keyPath = type);
|
4451
|
+
}
|
4452
|
+
task = createRenderTask(
|
4453
|
+
request,
|
4454
|
+
null,
|
4455
|
+
propName$33,
|
4456
|
+
-1,
|
4457
|
+
parentBoundary,
|
4458
|
+
boundarySegment,
|
4459
|
+
propName.fallbackState,
|
4460
|
+
fallbackAbortSet,
|
4461
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
4462
|
+
task.formatContext,
|
4463
|
+
task.context,
|
4464
|
+
task.treeContext,
|
4465
|
+
task.componentStack,
|
4466
|
+
!0
|
4467
|
+
);
|
4468
|
+
pushComponentStack(task);
|
4469
|
+
request.pingedTasks.push(task);
|
3962
4470
|
}
|
3963
|
-
JSCompiler_inline_result = [
|
3964
|
-
keyPath[0],
|
3965
|
-
"Suspense Fallback",
|
3966
|
-
keyPath[2]
|
3967
|
-
];
|
3968
|
-
defaultProps = request.trackedPostpones;
|
3969
|
-
null !== defaultProps &&
|
3970
|
-
((previousComponentStack = [
|
3971
|
-
JSCompiler_inline_result[1],
|
3972
|
-
JSCompiler_inline_result[2],
|
3973
|
-
[],
|
3974
|
-
null
|
3975
|
-
]),
|
3976
|
-
defaultProps.workingMap.set(
|
3977
|
-
JSCompiler_inline_result,
|
3978
|
-
previousComponentStack
|
3979
|
-
),
|
3980
|
-
5 === contextType.status
|
3981
|
-
? (defaultProps.workingMap.get(keyPath)[4] =
|
3982
|
-
previousComponentStack)
|
3983
|
-
: (contextType.trackedFallbackNode = previousComponentStack));
|
3984
|
-
task = createRenderTask(
|
3985
|
-
request,
|
3986
|
-
null,
|
3987
|
-
propName$31,
|
3988
|
-
-1,
|
3989
|
-
ref,
|
3990
|
-
propName,
|
3991
|
-
contextType.fallbackState,
|
3992
|
-
props,
|
3993
|
-
JSCompiler_inline_result,
|
3994
|
-
task.formatContext,
|
3995
|
-
task.legacyContext,
|
3996
|
-
task.context,
|
3997
|
-
task.treeContext,
|
3998
|
-
type,
|
3999
|
-
!0
|
4000
|
-
);
|
4001
|
-
request.pingedTasks.push(task);
|
4002
4471
|
}
|
4003
4472
|
return;
|
4004
4473
|
}
|
4005
4474
|
if ("object" === typeof type && null !== type)
|
4006
4475
|
switch (type.$$typeof) {
|
4007
4476
|
case REACT_FORWARD_REF_TYPE:
|
4008
|
-
JSCompiler_inline_result = task.componentStack;
|
4009
|
-
task.componentStack = {
|
4010
|
-
tag: 1,
|
4011
|
-
parent: task.componentStack,
|
4012
|
-
type: type.render
|
4013
|
-
};
|
4014
4477
|
if ("ref" in props)
|
4015
|
-
for (
|
4016
|
-
"ref" !==
|
4017
|
-
(
|
4018
|
-
else
|
4478
|
+
for (boundarySegment in ((newProps = {}), props))
|
4479
|
+
"ref" !== boundarySegment &&
|
4480
|
+
(newProps[boundarySegment] = props[boundarySegment]);
|
4481
|
+
else newProps = props;
|
4019
4482
|
type = renderWithHooks(
|
4020
4483
|
request,
|
4021
4484
|
task,
|
4022
4485
|
keyPath,
|
4023
4486
|
type.render,
|
4024
|
-
|
4487
|
+
newProps,
|
4025
4488
|
ref
|
4026
4489
|
);
|
4027
4490
|
finishFunctionComponent(
|
@@ -4033,7 +4496,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4033
4496
|
actionStateCounter,
|
4034
4497
|
actionStateMatchingIndex
|
4035
4498
|
);
|
4036
|
-
task.componentStack = JSCompiler_inline_result;
|
4037
4499
|
return;
|
4038
4500
|
case REACT_MEMO_TYPE:
|
4039
4501
|
renderElement(request, task, keyPath, type.type, props, ref);
|
@@ -4041,16 +4503,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4041
4503
|
case REACT_PROVIDER_TYPE:
|
4042
4504
|
case REACT_CONTEXT_TYPE:
|
4043
4505
|
defaultProps = props.children;
|
4044
|
-
|
4506
|
+
newProps = task.keyPath;
|
4045
4507
|
props = props.value;
|
4046
|
-
|
4508
|
+
initialState = type._currentValue;
|
4047
4509
|
type._currentValue = props;
|
4048
|
-
|
4510
|
+
ref = currentActiveSnapshot;
|
4049
4511
|
currentActiveSnapshot = type = {
|
4050
|
-
parent:
|
4051
|
-
depth: null ===
|
4512
|
+
parent: ref,
|
4513
|
+
depth: null === ref ? 0 : ref.depth + 1,
|
4052
4514
|
context: type,
|
4053
|
-
parentValue:
|
4515
|
+
parentValue: initialState,
|
4054
4516
|
value: props
|
4055
4517
|
};
|
4056
4518
|
task.context = type;
|
@@ -4064,7 +4526,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4064
4526
|
request.context._currentValue = request.parentValue;
|
4065
4527
|
request = currentActiveSnapshot = request.parent;
|
4066
4528
|
task.context = request;
|
4067
|
-
task.keyPath =
|
4529
|
+
task.keyPath = newProps;
|
4068
4530
|
return;
|
4069
4531
|
case REACT_CONSUMER_TYPE:
|
4070
4532
|
props = props.children;
|
@@ -4075,12 +4537,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4075
4537
|
task.keyPath = props;
|
4076
4538
|
return;
|
4077
4539
|
case REACT_LAZY_TYPE:
|
4078
|
-
|
4079
|
-
|
4080
|
-
|
4081
|
-
type
|
4082
|
-
renderElement(request, task, keyPath, type, props, void 0);
|
4083
|
-
task.componentStack = JSCompiler_inline_result;
|
4540
|
+
newProps = type._init;
|
4541
|
+
type = newProps(type._payload);
|
4542
|
+
if (12 === request.status) throw null;
|
4543
|
+
renderElement(request, task, keyPath, type, props, ref);
|
4084
4544
|
return;
|
4085
4545
|
}
|
4086
4546
|
throw Error(
|
@@ -4116,23 +4576,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
4116
4576
|
(task.replay = prevReplay), (task.blockedSegment = null);
|
4117
4577
|
}
|
4118
4578
|
}
|
4119
|
-
function renderNodeDestructive(request, task, node
|
4120
|
-
|
4121
|
-
resumeNode(request, task, task.replay.slots, node
|
4122
|
-
|
4123
|
-
|
4124
|
-
|
4125
|
-
|
4126
|
-
|
4127
|
-
|
4128
|
-
|
4579
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
4580
|
+
null !== task.replay && "number" === typeof task.replay.slots
|
4581
|
+
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
4582
|
+
: ((task.node = node),
|
4583
|
+
(task.childIndex = childIndex),
|
4584
|
+
(node = task.componentStack),
|
4585
|
+
pushComponentStack(task),
|
4586
|
+
retryNode(request, task),
|
4587
|
+
(task.componentStack = node));
|
4588
|
+
}
|
4589
|
+
function retryNode(request, task) {
|
4590
|
+
var node = task.node,
|
4591
|
+
childIndex = task.childIndex;
|
4592
|
+
if (null !== node) {
|
4593
|
+
if ("object" === typeof node) {
|
4594
|
+
switch (node.$$typeof) {
|
4129
4595
|
case REACT_ELEMENT_TYPE:
|
4130
|
-
var type = node
|
4131
|
-
key = node
|
4132
|
-
props = node
|
4133
|
-
node
|
4134
|
-
var ref = void 0 !== node
|
4135
|
-
|
4596
|
+
var type = node.type,
|
4597
|
+
key = node.key,
|
4598
|
+
props = node.props;
|
4599
|
+
node = props.ref;
|
4600
|
+
var ref = void 0 !== node ? node : null,
|
4601
|
+
name = getComponentNameFromType(type),
|
4136
4602
|
keyOrIndex =
|
4137
4603
|
null == key ? (-1 === childIndex ? 0 : childIndex) : key;
|
4138
4604
|
key = [task.keyPath, name, keyOrIndex];
|
@@ -4140,24 +4606,20 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4140
4606
|
a: {
|
4141
4607
|
var replay = task.replay;
|
4142
4608
|
childIndex = replay.nodes;
|
4143
|
-
for (
|
4144
|
-
node$jscomp$0 =
|
4145
|
-
node$jscomp$0
|
4146
|
-
|
4147
|
-
|
4148
|
-
var node = childIndex[node$jscomp$0];
|
4149
|
-
if (keyOrIndex === node[1]) {
|
4150
|
-
if (4 === node.length) {
|
4151
|
-
if (null !== name && name !== node[0])
|
4609
|
+
for (node = 0; node < childIndex.length; node++) {
|
4610
|
+
var node$jscomp$0 = childIndex[node];
|
4611
|
+
if (keyOrIndex === node$jscomp$0[1]) {
|
4612
|
+
if (4 === node$jscomp$0.length) {
|
4613
|
+
if (null !== name && name !== node$jscomp$0[0])
|
4152
4614
|
throw Error(
|
4153
4615
|
"Expected the resume to render <" +
|
4154
|
-
node[0] +
|
4616
|
+
node$jscomp$0[0] +
|
4155
4617
|
"> in this slot but instead it rendered <" +
|
4156
4618
|
name +
|
4157
4619
|
">. The tree doesn't match so React will fallback to client rendering."
|
4158
4620
|
);
|
4159
|
-
var childNodes = node[2];
|
4160
|
-
name = node[3];
|
4621
|
+
var childNodes = node$jscomp$0[2];
|
4622
|
+
name = node$jscomp$0[3];
|
4161
4623
|
keyOrIndex = task.node;
|
4162
4624
|
task.replay = {
|
4163
4625
|
nodes: childNodes,
|
@@ -4186,14 +4648,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4186
4648
|
x)
|
4187
4649
|
);
|
4188
4650
|
task.replay.pendingTasks--;
|
4189
|
-
props = getThrownInfo(
|
4190
|
-
key =
|
4191
|
-
request = task.blockedBoundary;
|
4651
|
+
props = getThrownInfo(task.componentStack);
|
4652
|
+
key = task.blockedBoundary;
|
4192
4653
|
type = x;
|
4193
|
-
props = logRecoverableError(
|
4654
|
+
props = logRecoverableError(request, type, props);
|
4194
4655
|
abortRemainingReplayNodes(
|
4195
|
-
key,
|
4196
4656
|
request,
|
4657
|
+
key,
|
4197
4658
|
childNodes,
|
4198
4659
|
name,
|
4199
4660
|
type,
|
@@ -4210,15 +4671,14 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4210
4671
|
);
|
4211
4672
|
b: {
|
4212
4673
|
replay = void 0;
|
4213
|
-
type = node[5];
|
4214
|
-
ref = node[2];
|
4215
|
-
name = node[3];
|
4216
|
-
keyOrIndex =
|
4217
|
-
|
4218
|
-
|
4219
|
-
|
4220
|
-
|
4221
|
-
prevKeyPath = task.keyPath,
|
4674
|
+
type = node$jscomp$0[5];
|
4675
|
+
ref = node$jscomp$0[2];
|
4676
|
+
name = node$jscomp$0[3];
|
4677
|
+
keyOrIndex =
|
4678
|
+
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
4679
|
+
node$jscomp$0 =
|
4680
|
+
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
4681
|
+
var prevKeyPath = task.keyPath,
|
4222
4682
|
previousReplaySet = task.replay,
|
4223
4683
|
parentBoundary = task.blockedBoundary,
|
4224
4684
|
parentHoistableState = task.hoistableState,
|
@@ -4233,6 +4693,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4233
4693
|
resumedBoundary.rootSegmentID = type;
|
4234
4694
|
task.blockedBoundary = resumedBoundary;
|
4235
4695
|
task.hoistableState = resumedBoundary.contentState;
|
4696
|
+
task.keyPath = key;
|
4236
4697
|
task.replay = {
|
4237
4698
|
nodes: ref,
|
4238
4699
|
slots: name,
|
@@ -4258,10 +4719,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4258
4719
|
}
|
4259
4720
|
} catch (error) {
|
4260
4721
|
(resumedBoundary.status = 4),
|
4261
|
-
(childNodes = getThrownInfo(
|
4262
|
-
request,
|
4263
|
-
task.componentStack
|
4264
|
-
)),
|
4722
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
4265
4723
|
(replay = logRecoverableError(
|
4266
4724
|
request,
|
4267
4725
|
error,
|
@@ -4276,13 +4734,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4276
4734
|
(task.blockedBoundary = parentBoundary),
|
4277
4735
|
(task.hoistableState = parentHoistableState),
|
4278
4736
|
(task.replay = previousReplaySet),
|
4279
|
-
(task.keyPath = prevKeyPath)
|
4280
|
-
(task.componentStack = previousComponentStack);
|
4737
|
+
(task.keyPath = prevKeyPath);
|
4281
4738
|
}
|
4282
4739
|
task = createReplayTask(
|
4283
4740
|
request,
|
4284
4741
|
null,
|
4285
|
-
{
|
4742
|
+
{
|
4743
|
+
nodes: keyOrIndex,
|
4744
|
+
slots: node$jscomp$0,
|
4745
|
+
pendingTasks: 0
|
4746
|
+
},
|
4286
4747
|
props,
|
4287
4748
|
-1,
|
4288
4749
|
parentBoundary,
|
@@ -4290,16 +4751,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4290
4751
|
fallbackAbortSet,
|
4291
4752
|
[key[0], "Suspense Fallback", key[2]],
|
4292
4753
|
task.formatContext,
|
4293
|
-
task.legacyContext,
|
4294
4754
|
task.context,
|
4295
4755
|
task.treeContext,
|
4296
|
-
|
4756
|
+
task.componentStack,
|
4297
4757
|
!0
|
4298
4758
|
);
|
4759
|
+
pushComponentStack(task);
|
4299
4760
|
request.pingedTasks.push(task);
|
4300
4761
|
}
|
4301
4762
|
}
|
4302
|
-
childIndex.splice(node
|
4763
|
+
childIndex.splice(node, 1);
|
4303
4764
|
break a;
|
4304
4765
|
}
|
4305
4766
|
}
|
@@ -4311,80 +4772,68 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4311
4772
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
4312
4773
|
);
|
4313
4774
|
case REACT_LAZY_TYPE:
|
4314
|
-
childNodes =
|
4315
|
-
|
4316
|
-
|
4317
|
-
|
4318
|
-
task.componentStack = childNodes;
|
4319
|
-
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
4775
|
+
childNodes = node._init;
|
4776
|
+
node = childNodes(node._payload);
|
4777
|
+
if (12 === request.status) throw null;
|
4778
|
+
renderNodeDestructive(request, task, node, childIndex);
|
4320
4779
|
return;
|
4321
4780
|
}
|
4322
|
-
if (isArrayImpl(node
|
4323
|
-
renderChildrenArray(request, task, node
|
4781
|
+
if (isArrayImpl(node)) {
|
4782
|
+
renderChildrenArray(request, task, node, childIndex);
|
4324
4783
|
return;
|
4325
4784
|
}
|
4326
|
-
null === node
|
4785
|
+
null === node || "object" !== typeof node
|
4327
4786
|
? (childNodes = null)
|
4328
4787
|
: ((childNodes =
|
4329
|
-
(MAYBE_ITERATOR_SYMBOL && node
|
4330
|
-
node
|
4788
|
+
(MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
|
4789
|
+
node["@@iterator"]),
|
4331
4790
|
(childNodes = "function" === typeof childNodes ? childNodes : null));
|
4332
|
-
if (childNodes && (childNodes = childNodes.call(node
|
4333
|
-
node
|
4334
|
-
if (!node
|
4791
|
+
if (childNodes && (childNodes = childNodes.call(node))) {
|
4792
|
+
node = childNodes.next();
|
4793
|
+
if (!node.done) {
|
4335
4794
|
props = [];
|
4336
|
-
do
|
4337
|
-
|
4338
|
-
(node$jscomp$0 = childNodes.next());
|
4339
|
-
while (!node$jscomp$0.done);
|
4795
|
+
do props.push(node.value), (node = childNodes.next());
|
4796
|
+
while (!node.done);
|
4340
4797
|
renderChildrenArray(request, task, props, childIndex);
|
4341
4798
|
}
|
4342
4799
|
return;
|
4343
4800
|
}
|
4344
|
-
if ("function" === typeof node
|
4801
|
+
if ("function" === typeof node.then)
|
4345
4802
|
return (
|
4346
4803
|
(task.thenableState = null),
|
4347
|
-
renderNodeDestructive(
|
4348
|
-
request,
|
4349
|
-
task,
|
4350
|
-
unwrapThenable(node$jscomp$0),
|
4351
|
-
childIndex
|
4352
|
-
)
|
4804
|
+
renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
|
4353
4805
|
);
|
4354
|
-
if (node
|
4806
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE)
|
4355
4807
|
return renderNodeDestructive(
|
4356
4808
|
request,
|
4357
4809
|
task,
|
4358
|
-
node
|
4810
|
+
node._currentValue,
|
4359
4811
|
childIndex
|
4360
4812
|
);
|
4361
|
-
childIndex = Object.prototype.toString.call(node
|
4813
|
+
childIndex = Object.prototype.toString.call(node);
|
4362
4814
|
throw Error(
|
4363
4815
|
"Objects are not valid as a React child (found: " +
|
4364
4816
|
("[object Object]" === childIndex
|
4365
|
-
? "object with keys {" + Object.keys(node
|
4817
|
+
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
4366
4818
|
: childIndex) +
|
4367
4819
|
"). If you meant to render a collection of children, use an array instead."
|
4368
4820
|
);
|
4369
4821
|
}
|
4370
|
-
if ("string" === typeof node
|
4822
|
+
if ("string" === typeof node)
|
4371
4823
|
(childIndex = task.blockedSegment),
|
4372
4824
|
null !== childIndex &&
|
4373
4825
|
(childIndex.lastPushedText = pushTextInstance(
|
4374
4826
|
childIndex.chunks,
|
4375
|
-
node
|
4827
|
+
node,
|
4376
4828
|
request.renderState,
|
4377
4829
|
childIndex.lastPushedText
|
4378
4830
|
));
|
4379
|
-
else if (
|
4380
|
-
"number" === typeof node$jscomp$0 ||
|
4381
|
-
"bigint" === typeof node$jscomp$0
|
4382
|
-
)
|
4831
|
+
else if ("number" === typeof node || "bigint" === typeof node)
|
4383
4832
|
(childIndex = task.blockedSegment),
|
4384
4833
|
null !== childIndex &&
|
4385
4834
|
(childIndex.lastPushedText = pushTextInstance(
|
4386
4835
|
childIndex.chunks,
|
4387
|
-
"" + node
|
4836
|
+
"" + node,
|
4388
4837
|
request.renderState,
|
4389
4838
|
childIndex.lastPushedText
|
4390
4839
|
));
|
@@ -4422,7 +4871,7 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
4422
4871
|
)
|
4423
4872
|
throw x;
|
4424
4873
|
task.replay.pendingTasks--;
|
4425
|
-
children = getThrownInfo(
|
4874
|
+
children = getThrownInfo(task.componentStack);
|
4426
4875
|
var boundary = task.blockedBoundary,
|
4427
4876
|
error = x;
|
4428
4877
|
children = logRecoverableError(request, error, children);
|
@@ -4477,9 +4926,55 @@ function untrackBoundary(request, boundary) {
|
|
4477
4926
|
void 0 !== boundary &&
|
4478
4927
|
((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
|
4479
4928
|
}
|
4929
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
4930
|
+
return createReplayTask(
|
4931
|
+
request,
|
4932
|
+
thenableState,
|
4933
|
+
task.replay,
|
4934
|
+
task.node,
|
4935
|
+
task.childIndex,
|
4936
|
+
task.blockedBoundary,
|
4937
|
+
task.hoistableState,
|
4938
|
+
task.abortSet,
|
4939
|
+
task.keyPath,
|
4940
|
+
task.formatContext,
|
4941
|
+
task.context,
|
4942
|
+
task.treeContext,
|
4943
|
+
task.componentStack,
|
4944
|
+
task.isFallback
|
4945
|
+
);
|
4946
|
+
}
|
4947
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
4948
|
+
var segment = task.blockedSegment,
|
4949
|
+
newSegment = createPendingSegment(
|
4950
|
+
request,
|
4951
|
+
segment.chunks.length,
|
4952
|
+
null,
|
4953
|
+
task.formatContext,
|
4954
|
+
segment.lastPushedText,
|
4955
|
+
!0
|
4956
|
+
);
|
4957
|
+
segment.children.push(newSegment);
|
4958
|
+
segment.lastPushedText = !1;
|
4959
|
+
return createRenderTask(
|
4960
|
+
request,
|
4961
|
+
thenableState,
|
4962
|
+
task.node,
|
4963
|
+
task.childIndex,
|
4964
|
+
task.blockedBoundary,
|
4965
|
+
newSegment,
|
4966
|
+
task.hoistableState,
|
4967
|
+
task.abortSet,
|
4968
|
+
task.keyPath,
|
4969
|
+
task.formatContext,
|
4970
|
+
task.context,
|
4971
|
+
task.treeContext,
|
4972
|
+
task.componentStack,
|
4973
|
+
task.isFallback
|
4974
|
+
);
|
4975
|
+
}
|
4480
4976
|
function renderNode(request, task, node, childIndex) {
|
4481
4977
|
var previousFormatContext = task.formatContext,
|
4482
|
-
previousLegacyContext = task.legacyContext,
|
4483
4978
|
previousContext = task.context,
|
4484
4979
|
previousKeyPath = task.keyPath,
|
4485
4980
|
previousTreeContext = task.treeContext,
|
@@ -4495,37 +4990,32 @@ function renderNode(request, task, node, childIndex) {
|
|
4495
4990
|
thrownValue === SuspenseException
|
4496
4991
|
? getSuspendedThenable()
|
4497
4992
|
: thrownValue),
|
4498
|
-
"object" === typeof node &&
|
4499
|
-
null !== node &&
|
4500
|
-
"function" === typeof node.then)
|
4993
|
+
"object" === typeof node && null !== node)
|
4501
4994
|
) {
|
4502
|
-
|
4503
|
-
|
4504
|
-
request,
|
4505
|
-
|
4506
|
-
task.
|
4507
|
-
task.
|
4508
|
-
task.
|
4509
|
-
task.
|
4510
|
-
task.
|
4511
|
-
|
4512
|
-
|
4513
|
-
|
4514
|
-
|
4515
|
-
|
4516
|
-
task
|
4517
|
-
|
4518
|
-
task.
|
4519
|
-
|
4520
|
-
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4525
|
-
|
4526
|
-
task.componentStack = previousComponentStack;
|
4527
|
-
switchContext(previousContext);
|
4528
|
-
return;
|
4995
|
+
if ("function" === typeof node.then) {
|
4996
|
+
childIndex = getThenableStateAfterSuspending();
|
4997
|
+
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
4998
|
+
node.then(request, request);
|
4999
|
+
task.formatContext = previousFormatContext;
|
5000
|
+
task.context = previousContext;
|
5001
|
+
task.keyPath = previousKeyPath;
|
5002
|
+
task.treeContext = previousTreeContext;
|
5003
|
+
task.componentStack = previousComponentStack;
|
5004
|
+
switchContext(previousContext);
|
5005
|
+
return;
|
5006
|
+
}
|
5007
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
5008
|
+
node = getThenableStateAfterSuspending();
|
5009
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
5010
|
+
request.pingedTasks.push(node);
|
5011
|
+
task.formatContext = previousFormatContext;
|
5012
|
+
task.context = previousContext;
|
5013
|
+
task.keyPath = previousKeyPath;
|
5014
|
+
task.treeContext = previousTreeContext;
|
5015
|
+
task.componentStack = previousComponentStack;
|
5016
|
+
switchContext(previousContext);
|
5017
|
+
return;
|
5018
|
+
}
|
4529
5019
|
}
|
4530
5020
|
}
|
4531
5021
|
else {
|
@@ -4533,62 +5023,45 @@ function renderNode(request, task, node, childIndex) {
|
|
4533
5023
|
chunkLength = segment.chunks.length;
|
4534
5024
|
try {
|
4535
5025
|
return renderNodeDestructive(request, task, node, childIndex);
|
4536
|
-
} catch (thrownValue$
|
5026
|
+
} catch (thrownValue$48) {
|
4537
5027
|
if (
|
4538
5028
|
(resetHooksState(),
|
4539
5029
|
(segment.children.length = childrenLength),
|
4540
5030
|
(segment.chunks.length = chunkLength),
|
4541
5031
|
(node =
|
4542
|
-
thrownValue$
|
5032
|
+
thrownValue$48 === SuspenseException
|
4543
5033
|
? getSuspendedThenable()
|
4544
|
-
: thrownValue$
|
4545
|
-
"object" === typeof node &&
|
4546
|
-
null !== node &&
|
4547
|
-
"function" === typeof node.then)
|
5034
|
+
: thrownValue$48),
|
5035
|
+
"object" === typeof node && null !== node)
|
4548
5036
|
) {
|
4549
|
-
|
4550
|
-
|
4551
|
-
|
4552
|
-
request,
|
4553
|
-
|
4554
|
-
|
4555
|
-
task.
|
4556
|
-
|
4557
|
-
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4561
|
-
|
4562
|
-
|
4563
|
-
|
4564
|
-
|
4565
|
-
task.
|
4566
|
-
task.
|
4567
|
-
|
4568
|
-
task.
|
4569
|
-
task.
|
4570
|
-
|
4571
|
-
|
4572
|
-
|
4573
|
-
task.context,
|
4574
|
-
task.treeContext,
|
4575
|
-
null !== task.componentStack ? task.componentStack.parent : null,
|
4576
|
-
task.isFallback
|
4577
|
-
).ping;
|
4578
|
-
node.then(request, request);
|
4579
|
-
task.formatContext = previousFormatContext;
|
4580
|
-
task.legacyContext = previousLegacyContext;
|
4581
|
-
task.context = previousContext;
|
4582
|
-
task.keyPath = previousKeyPath;
|
4583
|
-
task.treeContext = previousTreeContext;
|
4584
|
-
task.componentStack = previousComponentStack;
|
4585
|
-
switchContext(previousContext);
|
4586
|
-
return;
|
5037
|
+
if ("function" === typeof node.then) {
|
5038
|
+
childIndex = getThenableStateAfterSuspending();
|
5039
|
+
request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
|
5040
|
+
node.then(request, request);
|
5041
|
+
task.formatContext = previousFormatContext;
|
5042
|
+
task.context = previousContext;
|
5043
|
+
task.keyPath = previousKeyPath;
|
5044
|
+
task.treeContext = previousTreeContext;
|
5045
|
+
task.componentStack = previousComponentStack;
|
5046
|
+
switchContext(previousContext);
|
5047
|
+
return;
|
5048
|
+
}
|
5049
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
5050
|
+
node = getThenableStateAfterSuspending();
|
5051
|
+
node = spawnNewSuspendedRenderTask(request, task, node);
|
5052
|
+
request.pingedTasks.push(node);
|
5053
|
+
task.formatContext = previousFormatContext;
|
5054
|
+
task.context = previousContext;
|
5055
|
+
task.keyPath = previousKeyPath;
|
5056
|
+
task.treeContext = previousTreeContext;
|
5057
|
+
task.componentStack = previousComponentStack;
|
5058
|
+
switchContext(previousContext);
|
5059
|
+
return;
|
5060
|
+
}
|
4587
5061
|
}
|
4588
5062
|
}
|
4589
5063
|
}
|
4590
5064
|
task.formatContext = previousFormatContext;
|
4591
|
-
task.legacyContext = previousLegacyContext;
|
4592
5065
|
task.context = previousContext;
|
4593
5066
|
task.keyPath = previousKeyPath;
|
4594
5067
|
task.treeContext = previousTreeContext;
|
@@ -4649,26 +5122,30 @@ function abortRemainingReplayNodes(
|
|
4649
5122
|
function abortTask(task, request, error) {
|
4650
5123
|
var boundary = task.blockedBoundary,
|
4651
5124
|
segment = task.blockedSegment;
|
4652
|
-
null !== segment
|
5125
|
+
if (null !== segment) {
|
5126
|
+
if (6 === segment.status) return;
|
5127
|
+
segment.status = 3;
|
5128
|
+
}
|
5129
|
+
segment = getThrownInfo(task.componentStack);
|
4653
5130
|
if (null === boundary) {
|
4654
|
-
if (
|
4655
|
-
|
4656
|
-
if (null ===
|
4657
|
-
logRecoverableError(request, error,
|
5131
|
+
if (13 !== request.status && 14 !== request.status) {
|
5132
|
+
boundary = task.replay;
|
5133
|
+
if (null === boundary) {
|
5134
|
+
logRecoverableError(request, error, segment);
|
4658
5135
|
fatalError(request, error);
|
4659
5136
|
return;
|
4660
5137
|
}
|
4661
|
-
|
4662
|
-
0 ===
|
4663
|
-
0 <
|
4664
|
-
((
|
5138
|
+
boundary.pendingTasks--;
|
5139
|
+
0 === boundary.pendingTasks &&
|
5140
|
+
0 < boundary.nodes.length &&
|
5141
|
+
((task = logRecoverableError(request, error, segment)),
|
4665
5142
|
abortRemainingReplayNodes(
|
4666
5143
|
request,
|
4667
5144
|
null,
|
4668
|
-
|
4669
|
-
|
5145
|
+
boundary.nodes,
|
5146
|
+
boundary.slots,
|
4670
5147
|
error,
|
4671
|
-
|
5148
|
+
task
|
4672
5149
|
));
|
4673
5150
|
request.pendingRootTasks--;
|
4674
5151
|
0 === request.pendingRootTasks && completeShell(request);
|
@@ -4677,8 +5154,8 @@ function abortTask(task, request, error) {
|
|
4677
5154
|
boundary.pendingTasks--,
|
4678
5155
|
4 !== boundary.status &&
|
4679
5156
|
((boundary.status = 4),
|
4680
|
-
(task =
|
4681
|
-
(
|
5157
|
+
(task = logRecoverableError(request, error, segment)),
|
5158
|
+
(boundary.status = 4),
|
4682
5159
|
(boundary.errorDigest = task),
|
4683
5160
|
untrackBoundary(request, boundary),
|
4684
5161
|
boundary.parentFlushed &&
|
@@ -4732,7 +5209,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
4732
5209
|
referrerPolicy: props$jscomp$0.referrerPolicy,
|
4733
5210
|
media: props$jscomp$0.media
|
4734
5211
|
});
|
4735
|
-
if (
|
5212
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2))
|
4736
5213
|
(renderState.resets.style[key] = PRELOAD_NO_CREDS),
|
4737
5214
|
linkHeader && (linkHeader += ", "),
|
4738
5215
|
(linkHeader += header),
|
@@ -4817,7 +5294,7 @@ function finishedTask(request, boundary, segment) {
|
|
4817
5294
|
0 === request.allPendingTasks && completeAll(request);
|
4818
5295
|
}
|
4819
5296
|
function performWork(request$jscomp$2) {
|
4820
|
-
if (2 !== request$jscomp$2.status) {
|
5297
|
+
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
4821
5298
|
var prevContext = currentActiveSnapshot,
|
4822
5299
|
prevDispatcher = ReactSharedInternals.H;
|
4823
5300
|
ReactSharedInternals.H = HooksDispatcher;
|
@@ -4839,12 +5316,15 @@ function performWork(request$jscomp$2) {
|
|
4839
5316
|
if (0 !== task.replay.pendingTasks) {
|
4840
5317
|
switchContext(task.context);
|
4841
5318
|
try {
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
5319
|
+
"number" === typeof task.replay.slots
|
5320
|
+
? resumeNode(
|
5321
|
+
request$jscomp$0,
|
5322
|
+
task,
|
5323
|
+
task.replay.slots,
|
5324
|
+
task.node,
|
5325
|
+
task.childIndex
|
5326
|
+
)
|
5327
|
+
: retryNode(request$jscomp$0, task);
|
4848
5328
|
if (
|
4849
5329
|
1 === task.replay.pendingTasks &&
|
4850
5330
|
0 < task.replay.nodes.length
|
@@ -4869,19 +5349,17 @@ function performWork(request$jscomp$2) {
|
|
4869
5349
|
var ping = task.ping;
|
4870
5350
|
x.then(ping, ping);
|
4871
5351
|
task.thenableState = getThenableStateAfterSuspending();
|
4872
|
-
null !== task.componentStack &&
|
4873
|
-
(task.componentStack = task.componentStack.parent);
|
4874
5352
|
} else {
|
4875
5353
|
task.replay.pendingTasks--;
|
4876
5354
|
task.abortSet.delete(task);
|
4877
|
-
var errorInfo = getThrownInfo(
|
4878
|
-
request$jscomp$0,
|
4879
|
-
task.componentStack
|
4880
|
-
);
|
5355
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
4881
5356
|
request = void 0;
|
4882
5357
|
var request$jscomp$1 = request$jscomp$0,
|
4883
5358
|
boundary = task.blockedBoundary,
|
4884
|
-
error$jscomp$0 =
|
5359
|
+
error$jscomp$0 =
|
5360
|
+
12 === request$jscomp$0.status
|
5361
|
+
? request$jscomp$0.fatalError
|
5362
|
+
: x,
|
4885
5363
|
replayNodes = task.replay.nodes,
|
4886
5364
|
resumeSlots = task.replay.slots;
|
4887
5365
|
request = logRecoverableError(
|
@@ -4912,11 +5390,12 @@ function performWork(request$jscomp$2) {
|
|
4912
5390
|
(request$jscomp$1 = segment),
|
4913
5391
|
0 === request$jscomp$1.status)
|
4914
5392
|
) {
|
5393
|
+
request$jscomp$1.status = 6;
|
4915
5394
|
switchContext(task.context);
|
4916
5395
|
var childrenLength = request$jscomp$1.children.length,
|
4917
5396
|
chunkLength = request$jscomp$1.chunks.length;
|
4918
5397
|
try {
|
4919
|
-
|
5398
|
+
retryNode(request, task),
|
4920
5399
|
request$jscomp$1.lastPushedText &&
|
4921
5400
|
request$jscomp$1.textEmbedded &&
|
4922
5401
|
request$jscomp$1.chunks.push(textSeparator),
|
@@ -4930,22 +5409,20 @@ function performWork(request$jscomp$2) {
|
|
4930
5409
|
var x$jscomp$0 =
|
4931
5410
|
thrownValue === SuspenseException
|
4932
5411
|
? getSuspendedThenable()
|
4933
|
-
:
|
5412
|
+
: 12 === request.status
|
5413
|
+
? request.fatalError
|
5414
|
+
: thrownValue;
|
4934
5415
|
if (
|
4935
5416
|
"object" === typeof x$jscomp$0 &&
|
4936
5417
|
null !== x$jscomp$0 &&
|
4937
5418
|
"function" === typeof x$jscomp$0.then
|
4938
5419
|
) {
|
5420
|
+
request$jscomp$1.status = 0;
|
5421
|
+
task.thenableState = getThenableStateAfterSuspending();
|
4939
5422
|
var ping$jscomp$0 = task.ping;
|
4940
5423
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
4941
|
-
task.thenableState = getThenableStateAfterSuspending();
|
4942
|
-
null !== task.componentStack &&
|
4943
|
-
(task.componentStack = task.componentStack.parent);
|
4944
5424
|
} else {
|
4945
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
4946
|
-
request,
|
4947
|
-
task.componentStack
|
4948
|
-
);
|
5425
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
4949
5426
|
task.abortSet.delete(task);
|
4950
5427
|
request$jscomp$1.status = 4;
|
4951
5428
|
var boundary$jscomp$0 = task.blockedBoundary;
|
@@ -5125,13 +5602,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5125
5602
|
? ((completedSegments.instructions |= 10),
|
5126
5603
|
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
5127
5604
|
: 0 === (completedSegments.instructions & 8)
|
5128
|
-
|
5129
|
-
|
5130
|
-
|
5605
|
+
? ((completedSegments.instructions |= 8),
|
5606
|
+
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
5607
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
5131
5608
|
: 0 === (completedSegments.instructions & 2)
|
5132
|
-
|
5133
|
-
|
5134
|
-
|
5609
|
+
? ((completedSegments.instructions |= 2),
|
5610
|
+
writeChunk(destination, completeBoundaryScript1Full))
|
5611
|
+
: writeChunk(destination, completeBoundaryScript1Partial);
|
5135
5612
|
completedSegments = i.toString(16);
|
5136
5613
|
writeChunk(destination, request.boundaryPrefix);
|
5137
5614
|
writeChunk(destination, completedSegments);
|
@@ -5330,11 +5807,11 @@ function flushCompletedQueues(request, destination) {
|
|
5330
5807
|
destinationHasCapacity$1 = !0;
|
5331
5808
|
var partialBoundaries = request.partialBoundaries;
|
5332
5809
|
for (i = 0; i < partialBoundaries.length; i++) {
|
5333
|
-
var boundary$
|
5810
|
+
var boundary$51 = partialBoundaries[i];
|
5334
5811
|
a: {
|
5335
5812
|
clientRenderedBoundaries = request;
|
5336
5813
|
boundary = destination;
|
5337
|
-
var completedSegments = boundary$
|
5814
|
+
var completedSegments = boundary$51.completedSegments;
|
5338
5815
|
for (
|
5339
5816
|
JSCompiler_inline_result = 0;
|
5340
5817
|
JSCompiler_inline_result < completedSegments.length;
|
@@ -5344,7 +5821,7 @@ function flushCompletedQueues(request, destination) {
|
|
5344
5821
|
!flushPartiallyCompletedSegment(
|
5345
5822
|
clientRenderedBoundaries,
|
5346
5823
|
boundary,
|
5347
|
-
boundary$
|
5824
|
+
boundary$51,
|
5348
5825
|
completedSegments[JSCompiler_inline_result]
|
5349
5826
|
)
|
5350
5827
|
) {
|
@@ -5356,7 +5833,7 @@ function flushCompletedQueues(request, destination) {
|
|
5356
5833
|
completedSegments.splice(0, JSCompiler_inline_result);
|
5357
5834
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
5358
5835
|
boundary,
|
5359
|
-
boundary$
|
5836
|
+
boundary$51.contentState,
|
5360
5837
|
clientRenderedBoundaries.renderState
|
5361
5838
|
);
|
5362
5839
|
}
|
@@ -5389,6 +5866,7 @@ function flushCompletedQueues(request, destination) {
|
|
5389
5866
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
5390
5867
|
completeWriting(destination),
|
5391
5868
|
flushBuffered(destination),
|
5869
|
+
(request.status = 14),
|
5392
5870
|
destination.end(),
|
5393
5871
|
(request.destination = null))
|
5394
5872
|
: (completeWriting(destination), flushBuffered(destination));
|
@@ -5396,17 +5874,18 @@ function flushCompletedQueues(request, destination) {
|
|
5396
5874
|
}
|
5397
5875
|
function startWork(request) {
|
5398
5876
|
request.flushScheduled = null !== request.destination;
|
5399
|
-
|
5877
|
+
scheduleMicrotask(function () {
|
5400
5878
|
return requestStorage.run(request, performWork, request);
|
5401
5879
|
});
|
5402
|
-
|
5403
|
-
|
5404
|
-
|
5880
|
+
setImmediate(function () {
|
5881
|
+
10 === request.status && (request.status = 11);
|
5882
|
+
null === request.trackedPostpones &&
|
5883
|
+
requestStorage.run(
|
5405
5884
|
request,
|
5406
5885
|
enqueueEarlyPreloadsAfterInitialWork,
|
5407
5886
|
request
|
5408
5887
|
);
|
5409
|
-
|
5888
|
+
});
|
5410
5889
|
}
|
5411
5890
|
function enqueueEarlyPreloadsAfterInitialWork(request) {
|
5412
5891
|
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
@@ -5424,9 +5903,9 @@ function enqueueFlush(request) {
|
|
5424
5903
|
}));
|
5425
5904
|
}
|
5426
5905
|
function startFlowing(request, destination) {
|
5427
|
-
if (
|
5428
|
-
(request.status =
|
5429
|
-
else if (
|
5906
|
+
if (13 === request.status)
|
5907
|
+
(request.status = 14), destination.destroy(request.fatalError);
|
5908
|
+
else if (14 !== request.status && null === request.destination) {
|
5430
5909
|
request.destination = destination;
|
5431
5910
|
try {
|
5432
5911
|
flushCompletedQueues(request, destination);
|
@@ -5436,13 +5915,19 @@ function startFlowing(request, destination) {
|
|
5436
5915
|
}
|
5437
5916
|
}
|
5438
5917
|
function abort(request, reason) {
|
5918
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
5439
5919
|
try {
|
5440
5920
|
var abortableTasks = request.abortableTasks;
|
5441
5921
|
if (0 < abortableTasks.size) {
|
5442
5922
|
var error =
|
5443
5923
|
void 0 === reason
|
5444
5924
|
? Error("The render was aborted by the server without a reason.")
|
5445
|
-
: reason
|
5925
|
+
: "object" === typeof reason &&
|
5926
|
+
null !== reason &&
|
5927
|
+
"function" === typeof reason.then
|
5928
|
+
? Error("The render was aborted by the server with a promise.")
|
5929
|
+
: reason;
|
5930
|
+
request.fatalError = error;
|
5446
5931
|
abortableTasks.forEach(function (task) {
|
5447
5932
|
return abortTask(task, request, error);
|
5448
5933
|
});
|
@@ -5450,20 +5935,20 @@ function abort(request, reason) {
|
|
5450
5935
|
}
|
5451
5936
|
null !== request.destination &&
|
5452
5937
|
flushCompletedQueues(request, request.destination);
|
5453
|
-
} catch (error$
|
5454
|
-
logRecoverableError(request, error$
|
5938
|
+
} catch (error$53) {
|
5939
|
+
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
|
5455
5940
|
}
|
5456
5941
|
}
|
5457
|
-
|
5458
|
-
|
5459
|
-
"19.0.0" !==
|
5460
|
-
|
5461
|
-
|
5462
|
-
|
5463
|
-
|
5464
|
-
|
5465
|
-
|
5466
|
-
|
5942
|
+
function ensureCorrectIsomorphicReactVersion() {
|
5943
|
+
var isomorphicReactPackageVersion = React.version;
|
5944
|
+
if ("19.0.0" !== isomorphicReactPackageVersion)
|
5945
|
+
throw Error(
|
5946
|
+
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
5947
|
+
(isomorphicReactPackageVersion +
|
5948
|
+
"\n - react-dom: 19.0.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
5949
|
+
);
|
5950
|
+
}
|
5951
|
+
ensureCorrectIsomorphicReactVersion();
|
5467
5952
|
function createDrainHandler(destination, request) {
|
5468
5953
|
return function () {
|
5469
5954
|
return startFlowing(request, destination);
|
@@ -5476,280 +5961,100 @@ function createCancelHandler(request, reason) {
|
|
5476
5961
|
};
|
5477
5962
|
}
|
5478
5963
|
function createRequestImpl(children, options) {
|
5479
|
-
var
|
5480
|
-
|
5481
|
-
|
5482
|
-
|
5483
|
-
|
5484
|
-
|
5485
|
-
|
5486
|
-
|
5487
|
-
|
5488
|
-
|
5489
|
-
|
5490
|
-
|
5491
|
-
|
5492
|
-
|
5493
|
-
|
5494
|
-
|
5495
|
-
|
5496
|
-
scriptResources: {},
|
5497
|
-
moduleUnknownResources: {},
|
5498
|
-
moduleScriptResources: {}
|
5499
|
-
};
|
5500
|
-
var nonce = options ? options.nonce : void 0,
|
5501
|
-
importMap = options ? options.importMap : void 0,
|
5502
|
-
onHeaders = options ? options.onHeaders : void 0,
|
5503
|
-
maxHeadersLength = options ? options.maxHeadersLength : void 0,
|
5504
|
-
inlineScriptWithNonce =
|
5505
|
-
void 0 === nonce
|
5506
|
-
? startInlineScript
|
5507
|
-
: stringToPrecomputedChunk(
|
5508
|
-
'<script nonce="' + escapeTextForBrowser(nonce) + '">'
|
5509
|
-
),
|
5510
|
-
idPrefix = JSCompiler_inline_result.idPrefix,
|
5511
|
-
bootstrapChunks = [],
|
5512
|
-
bootstrapScriptContent = JSCompiler_inline_result.bootstrapScriptContent,
|
5513
|
-
bootstrapScripts = JSCompiler_inline_result.bootstrapScripts,
|
5514
|
-
bootstrapModules = JSCompiler_inline_result.bootstrapModules;
|
5515
|
-
void 0 !== bootstrapScriptContent &&
|
5516
|
-
bootstrapChunks.push(
|
5517
|
-
inlineScriptWithNonce,
|
5518
|
-
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
|
5519
|
-
endInlineScript
|
5520
|
-
);
|
5521
|
-
bootstrapScriptContent = [];
|
5522
|
-
void 0 !== importMap &&
|
5523
|
-
(bootstrapScriptContent.push(importMapScriptStart),
|
5524
|
-
bootstrapScriptContent.push(
|
5525
|
-
("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer)
|
5964
|
+
var resumableState = createResumableState(
|
5965
|
+
options ? options.identifierPrefix : void 0,
|
5966
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
5967
|
+
options ? options.bootstrapScriptContent : void 0,
|
5968
|
+
options ? options.bootstrapScripts : void 0,
|
5969
|
+
options ? options.bootstrapModules : void 0
|
5970
|
+
);
|
5971
|
+
return createRequest(
|
5972
|
+
children,
|
5973
|
+
resumableState,
|
5974
|
+
createRenderState(
|
5975
|
+
resumableState,
|
5976
|
+
options ? options.nonce : void 0,
|
5977
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
5978
|
+
options ? options.importMap : void 0,
|
5979
|
+
options ? options.onHeaders : void 0,
|
5980
|
+
options ? options.maxHeadersLength : void 0
|
5526
5981
|
),
|
5527
|
-
|
5528
|
-
|
5529
|
-
?
|
5530
|
-
|
5531
|
-
|
5532
|
-
|
5533
|
-
|
5534
|
-
|
5535
|
-
|
5536
|
-
|
5537
|
-
|
5538
|
-
|
5539
|
-
|
5540
|
-
|
5541
|
-
|
5542
|
-
|
5543
|
-
headChunks: null,
|
5544
|
-
externalRuntimeScript: null,
|
5545
|
-
bootstrapChunks: bootstrapChunks,
|
5546
|
-
importMapChunks: bootstrapScriptContent,
|
5547
|
-
onHeaders: onHeaders,
|
5548
|
-
headers: importMap,
|
5549
|
-
resets: {
|
5550
|
-
font: {},
|
5551
|
-
dns: {},
|
5552
|
-
connect: { default: {}, anonymous: {}, credentials: {} },
|
5553
|
-
image: {},
|
5554
|
-
style: {}
|
5982
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
5983
|
+
options ? options.progressiveChunkSize : void 0,
|
5984
|
+
options ? options.onError : void 0,
|
5985
|
+
options ? options.onAllReady : void 0,
|
5986
|
+
options ? options.onShellReady : void 0,
|
5987
|
+
options ? options.onShellError : void 0,
|
5988
|
+
void 0,
|
5989
|
+
options ? options.onPostpone : void 0,
|
5990
|
+
options ? options.formState : void 0
|
5991
|
+
);
|
5992
|
+
}
|
5993
|
+
ensureCorrectIsomorphicReactVersion();
|
5994
|
+
function createFakeWritable(readable) {
|
5995
|
+
return {
|
5996
|
+
write: function (chunk) {
|
5997
|
+
return readable.push(chunk);
|
5555
5998
|
},
|
5556
|
-
|
5557
|
-
|
5558
|
-
hoistableChunks: [],
|
5559
|
-
preconnects: new Set(),
|
5560
|
-
fontPreloads: new Set(),
|
5561
|
-
highImagePreloads: new Set(),
|
5562
|
-
styles: new Map(),
|
5563
|
-
bootstrapScripts: new Set(),
|
5564
|
-
scripts: new Set(),
|
5565
|
-
bulkPreloads: new Set(),
|
5566
|
-
preloads: {
|
5567
|
-
images: new Map(),
|
5568
|
-
stylesheets: new Map(),
|
5569
|
-
scripts: new Map(),
|
5570
|
-
moduleScripts: new Map()
|
5999
|
+
end: function () {
|
6000
|
+
readable.push(null);
|
5571
6001
|
},
|
5572
|
-
|
5573
|
-
|
5574
|
-
stylesToHoist: !1
|
5575
|
-
};
|
5576
|
-
if (void 0 !== bootstrapScripts)
|
5577
|
-
for (
|
5578
|
-
inlineScriptWithNonce = 0;
|
5579
|
-
inlineScriptWithNonce < bootstrapScripts.length;
|
5580
|
-
inlineScriptWithNonce++
|
5581
|
-
) {
|
5582
|
-
var scriptConfig = bootstrapScripts[inlineScriptWithNonce];
|
5583
|
-
maxHeadersLength = importMap = void 0;
|
5584
|
-
bootstrapScriptContent = {
|
5585
|
-
rel: "preload",
|
5586
|
-
as: "script",
|
5587
|
-
fetchPriority: "low",
|
5588
|
-
nonce: nonce
|
5589
|
-
};
|
5590
|
-
"string" === typeof scriptConfig
|
5591
|
-
? (bootstrapScriptContent.href = idPrefix = scriptConfig)
|
5592
|
-
: ((bootstrapScriptContent.href = idPrefix = scriptConfig.src),
|
5593
|
-
(bootstrapScriptContent.integrity = maxHeadersLength =
|
5594
|
-
"string" === typeof scriptConfig.integrity
|
5595
|
-
? scriptConfig.integrity
|
5596
|
-
: void 0),
|
5597
|
-
(bootstrapScriptContent.crossOrigin = importMap =
|
5598
|
-
"string" === typeof scriptConfig || null == scriptConfig.crossOrigin
|
5599
|
-
? void 0
|
5600
|
-
: "use-credentials" === scriptConfig.crossOrigin
|
5601
|
-
? "use-credentials"
|
5602
|
-
: ""));
|
5603
|
-
scriptConfig = JSCompiler_inline_result;
|
5604
|
-
var href = idPrefix;
|
5605
|
-
scriptConfig.scriptResources[href] = null;
|
5606
|
-
scriptConfig.moduleScriptResources[href] = null;
|
5607
|
-
scriptConfig = [];
|
5608
|
-
pushLinkImpl(scriptConfig, bootstrapScriptContent);
|
5609
|
-
onHeaders.bootstrapScripts.add(scriptConfig);
|
5610
|
-
bootstrapChunks.push(startScriptSrc, escapeTextForBrowser(idPrefix));
|
5611
|
-
nonce && bootstrapChunks.push(scriptNonce, escapeTextForBrowser(nonce));
|
5612
|
-
"string" === typeof maxHeadersLength &&
|
5613
|
-
bootstrapChunks.push(
|
5614
|
-
scriptIntegirty,
|
5615
|
-
escapeTextForBrowser(maxHeadersLength)
|
5616
|
-
);
|
5617
|
-
"string" === typeof importMap &&
|
5618
|
-
bootstrapChunks.push(
|
5619
|
-
scriptCrossOrigin,
|
5620
|
-
escapeTextForBrowser(importMap)
|
5621
|
-
);
|
5622
|
-
bootstrapChunks.push(endAsyncScript);
|
6002
|
+
destroy: function (error) {
|
6003
|
+
readable.destroy(error);
|
5623
6004
|
}
|
5624
|
-
if (void 0 !== bootstrapModules)
|
5625
|
-
for (
|
5626
|
-
bootstrapScripts = 0;
|
5627
|
-
bootstrapScripts < bootstrapModules.length;
|
5628
|
-
bootstrapScripts++
|
5629
|
-
)
|
5630
|
-
(bootstrapScriptContent = bootstrapModules[bootstrapScripts]),
|
5631
|
-
(importMap = idPrefix = void 0),
|
5632
|
-
(maxHeadersLength = {
|
5633
|
-
rel: "modulepreload",
|
5634
|
-
fetchPriority: "low",
|
5635
|
-
nonce: nonce
|
5636
|
-
}),
|
5637
|
-
"string" === typeof bootstrapScriptContent
|
5638
|
-
? (maxHeadersLength.href = inlineScriptWithNonce =
|
5639
|
-
bootstrapScriptContent)
|
5640
|
-
: ((maxHeadersLength.href = inlineScriptWithNonce =
|
5641
|
-
bootstrapScriptContent.src),
|
5642
|
-
(maxHeadersLength.integrity = importMap =
|
5643
|
-
"string" === typeof bootstrapScriptContent.integrity
|
5644
|
-
? bootstrapScriptContent.integrity
|
5645
|
-
: void 0),
|
5646
|
-
(maxHeadersLength.crossOrigin = idPrefix =
|
5647
|
-
"string" === typeof bootstrapScriptContent ||
|
5648
|
-
null == bootstrapScriptContent.crossOrigin
|
5649
|
-
? void 0
|
5650
|
-
: "use-credentials" === bootstrapScriptContent.crossOrigin
|
5651
|
-
? "use-credentials"
|
5652
|
-
: "")),
|
5653
|
-
(bootstrapScriptContent = JSCompiler_inline_result),
|
5654
|
-
(scriptConfig = inlineScriptWithNonce),
|
5655
|
-
(bootstrapScriptContent.scriptResources[scriptConfig] = null),
|
5656
|
-
(bootstrapScriptContent.moduleScriptResources[scriptConfig] = null),
|
5657
|
-
(bootstrapScriptContent = []),
|
5658
|
-
pushLinkImpl(bootstrapScriptContent, maxHeadersLength),
|
5659
|
-
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
5660
|
-
bootstrapChunks.push(
|
5661
|
-
startModuleSrc,
|
5662
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
5663
|
-
),
|
5664
|
-
nonce && bootstrapChunks.push(scriptNonce, escapeTextForBrowser(nonce)),
|
5665
|
-
"string" === typeof importMap &&
|
5666
|
-
bootstrapChunks.push(
|
5667
|
-
scriptIntegirty,
|
5668
|
-
escapeTextForBrowser(importMap)
|
5669
|
-
),
|
5670
|
-
"string" === typeof idPrefix &&
|
5671
|
-
bootstrapChunks.push(
|
5672
|
-
scriptCrossOrigin,
|
5673
|
-
escapeTextForBrowser(idPrefix)
|
5674
|
-
),
|
5675
|
-
bootstrapChunks.push(endAsyncScript);
|
5676
|
-
nonce = options ? options.namespaceURI : void 0;
|
5677
|
-
nonce = createFormatContext(
|
5678
|
-
"http://www.w3.org/2000/svg" === nonce
|
5679
|
-
? 3
|
5680
|
-
: "http://www.w3.org/1998/Math/MathML" === nonce
|
5681
|
-
? 4
|
5682
|
-
: 0,
|
5683
|
-
null,
|
5684
|
-
0
|
5685
|
-
);
|
5686
|
-
bootstrapModules = options ? options.progressiveChunkSize : void 0;
|
5687
|
-
bootstrapScripts = options ? options.onError : void 0;
|
5688
|
-
inlineScriptWithNonce = options ? options.onAllReady : void 0;
|
5689
|
-
idPrefix = options ? options.onShellReady : void 0;
|
5690
|
-
importMap = options ? options.onShellError : void 0;
|
5691
|
-
maxHeadersLength = options ? options.onPostpone : void 0;
|
5692
|
-
bootstrapScriptContent = options ? options.formState : void 0;
|
5693
|
-
options = [];
|
5694
|
-
bootstrapChunks = new Set();
|
5695
|
-
JSCompiler_inline_result = {
|
5696
|
-
destination: null,
|
5697
|
-
flushScheduled: !1,
|
5698
|
-
resumableState: JSCompiler_inline_result,
|
5699
|
-
renderState: onHeaders,
|
5700
|
-
rootFormatContext: nonce,
|
5701
|
-
progressiveChunkSize:
|
5702
|
-
void 0 === bootstrapModules ? 12800 : bootstrapModules,
|
5703
|
-
status: 0,
|
5704
|
-
fatalError: null,
|
5705
|
-
nextSegmentId: 0,
|
5706
|
-
allPendingTasks: 0,
|
5707
|
-
pendingRootTasks: 0,
|
5708
|
-
completedRootSegment: null,
|
5709
|
-
abortableTasks: bootstrapChunks,
|
5710
|
-
pingedTasks: options,
|
5711
|
-
clientRenderedBoundaries: [],
|
5712
|
-
completedBoundaries: [],
|
5713
|
-
partialBoundaries: [],
|
5714
|
-
trackedPostpones: null,
|
5715
|
-
onError:
|
5716
|
-
void 0 === bootstrapScripts ? defaultErrorHandler : bootstrapScripts,
|
5717
|
-
onPostpone: void 0 === maxHeadersLength ? noop : maxHeadersLength,
|
5718
|
-
onAllReady: void 0 === inlineScriptWithNonce ? noop : inlineScriptWithNonce,
|
5719
|
-
onShellReady: void 0 === idPrefix ? noop : idPrefix,
|
5720
|
-
onShellError: void 0 === importMap ? noop : importMap,
|
5721
|
-
onFatalError: noop,
|
5722
|
-
formState: void 0 === bootstrapScriptContent ? null : bootstrapScriptContent
|
5723
6005
|
};
|
5724
|
-
onHeaders = createPendingSegment(
|
5725
|
-
JSCompiler_inline_result,
|
5726
|
-
0,
|
5727
|
-
null,
|
5728
|
-
nonce,
|
5729
|
-
!1,
|
5730
|
-
!1
|
5731
|
-
);
|
5732
|
-
onHeaders.parentFlushed = !0;
|
5733
|
-
children = createRenderTask(
|
5734
|
-
JSCompiler_inline_result,
|
5735
|
-
null,
|
5736
|
-
children,
|
5737
|
-
-1,
|
5738
|
-
null,
|
5739
|
-
onHeaders,
|
5740
|
-
null,
|
5741
|
-
bootstrapChunks,
|
5742
|
-
null,
|
5743
|
-
nonce,
|
5744
|
-
emptyContextObject,
|
5745
|
-
null,
|
5746
|
-
emptyTreeContext,
|
5747
|
-
null,
|
5748
|
-
!1
|
5749
|
-
);
|
5750
|
-
options.push(children);
|
5751
|
-
return JSCompiler_inline_result;
|
5752
6006
|
}
|
6007
|
+
exports.prerenderToNodeStream = function (children, options) {
|
6008
|
+
return new Promise(function (resolve, reject) {
|
6009
|
+
var resumableState = createResumableState(
|
6010
|
+
options ? options.identifierPrefix : void 0,
|
6011
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
6012
|
+
options ? options.bootstrapScriptContent : void 0,
|
6013
|
+
options ? options.bootstrapScripts : void 0,
|
6014
|
+
options ? options.bootstrapModules : void 0
|
6015
|
+
),
|
6016
|
+
request = createPrerenderRequest(
|
6017
|
+
children,
|
6018
|
+
resumableState,
|
6019
|
+
createRenderState(
|
6020
|
+
resumableState,
|
6021
|
+
void 0,
|
6022
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
6023
|
+
options ? options.importMap : void 0,
|
6024
|
+
options ? options.onHeaders : void 0,
|
6025
|
+
options ? options.maxHeadersLength : void 0
|
6026
|
+
),
|
6027
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
6028
|
+
options ? options.progressiveChunkSize : void 0,
|
6029
|
+
options ? options.onError : void 0,
|
6030
|
+
function () {
|
6031
|
+
var readable = new stream.Readable({
|
6032
|
+
read: function () {
|
6033
|
+
startFlowing(request, writable);
|
6034
|
+
}
|
6035
|
+
}),
|
6036
|
+
writable = createFakeWritable(readable);
|
6037
|
+
resolve({ prelude: readable });
|
6038
|
+
},
|
6039
|
+
void 0,
|
6040
|
+
void 0,
|
6041
|
+
reject,
|
6042
|
+
options ? options.onPostpone : void 0
|
6043
|
+
);
|
6044
|
+
if (options && options.signal) {
|
6045
|
+
var signal = options.signal;
|
6046
|
+
if (signal.aborted) abort(request, signal.reason);
|
6047
|
+
else {
|
6048
|
+
var listener = function () {
|
6049
|
+
abort(request, signal.reason);
|
6050
|
+
signal.removeEventListener("abort", listener);
|
6051
|
+
};
|
6052
|
+
signal.addEventListener("abort", listener);
|
6053
|
+
}
|
6054
|
+
}
|
6055
|
+
startWork(request);
|
6056
|
+
});
|
6057
|
+
};
|
5753
6058
|
exports.renderToPipeableStream = function (children, options) {
|
5754
6059
|
var request = createRequestImpl(children, options),
|
5755
6060
|
hasStartedFlowing = !1;
|
@@ -5766,8 +6071,8 @@ exports.renderToPipeableStream = function (children, options) {
|
|
5766
6071
|
null === request.trackedPostpones
|
5767
6072
|
? 0 === request.pendingRootTasks
|
5768
6073
|
: null === request.completedRootSegment
|
5769
|
-
|
5770
|
-
|
6074
|
+
? 0 === request.pendingRootTasks
|
6075
|
+
: 5 !== request.completedRootSegment.status
|
5771
6076
|
);
|
5772
6077
|
startFlowing(request, destination);
|
5773
6078
|
destination.on("drain", createDrainHandler(destination, request));
|