react-markup 0.0.0-experimental-b94603b9-20250513 → 0.0.0-experimental-4a45ba92-20250515
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-markup.development.js +228 -101
- package/cjs/react-markup.production.js +575 -407
- package/cjs/react-markup.react-server.development.js +228 -101
- package/cjs/react-markup.react-server.production.js +575 -407
- package/package.json +2 -2
|
@@ -3483,52 +3483,122 @@ function createResumableState(
|
|
|
3483
3483
|
function createPreambleState() {
|
|
3484
3484
|
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
|
3485
3485
|
}
|
|
3486
|
-
function createFormatContext(
|
|
3486
|
+
function createFormatContext(
|
|
3487
|
+
insertionMode,
|
|
3488
|
+
selectedValue,
|
|
3489
|
+
tagScope,
|
|
3490
|
+
viewTransition
|
|
3491
|
+
) {
|
|
3487
3492
|
return {
|
|
3488
3493
|
insertionMode: insertionMode,
|
|
3489
3494
|
selectedValue: selectedValue,
|
|
3490
|
-
tagScope: tagScope
|
|
3495
|
+
tagScope: tagScope,
|
|
3496
|
+
viewTransition: viewTransition
|
|
3491
3497
|
};
|
|
3492
3498
|
}
|
|
3493
3499
|
function getChildFormatContext(parentContext, type, props) {
|
|
3500
|
+
var subtreeScope = parentContext.tagScope & -25;
|
|
3494
3501
|
switch (type) {
|
|
3495
3502
|
case "noscript":
|
|
3496
|
-
return createFormatContext(2, null,
|
|
3503
|
+
return createFormatContext(2, null, subtreeScope | 1, null);
|
|
3497
3504
|
case "select":
|
|
3498
3505
|
return createFormatContext(
|
|
3499
3506
|
2,
|
|
3500
3507
|
null != props.value ? props.value : props.defaultValue,
|
|
3501
|
-
|
|
3508
|
+
subtreeScope,
|
|
3509
|
+
null
|
|
3502
3510
|
);
|
|
3503
3511
|
case "svg":
|
|
3504
|
-
return createFormatContext(4, null,
|
|
3512
|
+
return createFormatContext(4, null, subtreeScope, null);
|
|
3505
3513
|
case "picture":
|
|
3506
|
-
return createFormatContext(2, null,
|
|
3514
|
+
return createFormatContext(2, null, subtreeScope | 2, null);
|
|
3507
3515
|
case "math":
|
|
3508
|
-
return createFormatContext(5, null,
|
|
3516
|
+
return createFormatContext(5, null, subtreeScope, null);
|
|
3509
3517
|
case "foreignObject":
|
|
3510
|
-
return createFormatContext(2, null,
|
|
3518
|
+
return createFormatContext(2, null, subtreeScope, null);
|
|
3511
3519
|
case "table":
|
|
3512
|
-
return createFormatContext(6, null,
|
|
3520
|
+
return createFormatContext(6, null, subtreeScope, null);
|
|
3513
3521
|
case "thead":
|
|
3514
3522
|
case "tbody":
|
|
3515
3523
|
case "tfoot":
|
|
3516
|
-
return createFormatContext(7, null,
|
|
3524
|
+
return createFormatContext(7, null, subtreeScope, null);
|
|
3517
3525
|
case "colgroup":
|
|
3518
|
-
return createFormatContext(9, null,
|
|
3526
|
+
return createFormatContext(9, null, subtreeScope, null);
|
|
3519
3527
|
case "tr":
|
|
3520
|
-
return createFormatContext(8, null,
|
|
3528
|
+
return createFormatContext(8, null, subtreeScope, null);
|
|
3521
3529
|
case "head":
|
|
3522
3530
|
if (2 > parentContext.insertionMode)
|
|
3523
|
-
return createFormatContext(3, null,
|
|
3531
|
+
return createFormatContext(3, null, subtreeScope, null);
|
|
3524
3532
|
break;
|
|
3525
3533
|
case "html":
|
|
3526
3534
|
if (0 === parentContext.insertionMode)
|
|
3527
|
-
return createFormatContext(1, null,
|
|
3535
|
+
return createFormatContext(1, null, subtreeScope, null);
|
|
3528
3536
|
}
|
|
3529
3537
|
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
|
|
3530
|
-
? createFormatContext(2, null,
|
|
3531
|
-
: parentContext
|
|
3538
|
+
? createFormatContext(2, null, subtreeScope, null)
|
|
3539
|
+
: null !== parentContext.viewTransition ||
|
|
3540
|
+
parentContext.tagScope !== subtreeScope
|
|
3541
|
+
? createFormatContext(
|
|
3542
|
+
parentContext.insertionMode,
|
|
3543
|
+
parentContext.selectedValue,
|
|
3544
|
+
subtreeScope,
|
|
3545
|
+
null
|
|
3546
|
+
)
|
|
3547
|
+
: parentContext;
|
|
3548
|
+
}
|
|
3549
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
|
3550
|
+
return null === parentViewTransition
|
|
3551
|
+
? null
|
|
3552
|
+
: {
|
|
3553
|
+
update: parentViewTransition.update,
|
|
3554
|
+
enter: null,
|
|
3555
|
+
exit: null,
|
|
3556
|
+
share: parentViewTransition.update,
|
|
3557
|
+
name: parentViewTransition.autoName,
|
|
3558
|
+
autoName: parentViewTransition.autoName,
|
|
3559
|
+
nameIdx: 0
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
function getSuspenseFallbackFormatContext(parentContext) {
|
|
3563
|
+
return createFormatContext(
|
|
3564
|
+
parentContext.insertionMode,
|
|
3565
|
+
parentContext.selectedValue,
|
|
3566
|
+
parentContext.tagScope | 12,
|
|
3567
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
|
3568
|
+
);
|
|
3569
|
+
}
|
|
3570
|
+
function getSuspenseContentFormatContext(parentContext) {
|
|
3571
|
+
return createFormatContext(
|
|
3572
|
+
parentContext.insertionMode,
|
|
3573
|
+
parentContext.selectedValue,
|
|
3574
|
+
parentContext.tagScope | 16,
|
|
3575
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
|
3576
|
+
);
|
|
3577
|
+
}
|
|
3578
|
+
function makeId(resumableState, treeId, localId) {
|
|
3579
|
+
resumableState = "\u00ab" + resumableState.idPrefix + "R" + treeId;
|
|
3580
|
+
0 < localId && (resumableState += "H" + localId.toString(32));
|
|
3581
|
+
return resumableState + "\u00bb";
|
|
3582
|
+
}
|
|
3583
|
+
function pushViewTransitionAttributes(target, formatContext) {
|
|
3584
|
+
formatContext = formatContext.viewTransition;
|
|
3585
|
+
null !== formatContext &&
|
|
3586
|
+
("auto" !== formatContext.name &&
|
|
3587
|
+
(pushStringAttribute(
|
|
3588
|
+
target,
|
|
3589
|
+
"vt-name",
|
|
3590
|
+
0 === formatContext.nameIdx
|
|
3591
|
+
? formatContext.name
|
|
3592
|
+
: formatContext.name + "_" + formatContext.nameIdx
|
|
3593
|
+
),
|
|
3594
|
+
formatContext.nameIdx++),
|
|
3595
|
+
pushStringAttribute(target, "vt-update", formatContext.update),
|
|
3596
|
+
null !== formatContext.enter &&
|
|
3597
|
+
pushStringAttribute(target, "vt-enter", formatContext.enter),
|
|
3598
|
+
null !== formatContext.exit &&
|
|
3599
|
+
pushStringAttribute(target, "vt-exit", formatContext.exit),
|
|
3600
|
+
null !== formatContext.share &&
|
|
3601
|
+
pushStringAttribute(target, "vt-share", formatContext.share));
|
|
3532
3602
|
}
|
|
3533
3603
|
var styleNameCache = new Map();
|
|
3534
3604
|
function pushStyleAttribute(target, style) {
|
|
@@ -3916,7 +3986,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
|
|
|
3916
3986
|
function styleReplacer(match, prefix, s, suffix) {
|
|
3917
3987
|
return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
|
|
3918
3988
|
}
|
|
3919
|
-
function pushSelfClosing(target, props, tag) {
|
|
3989
|
+
function pushSelfClosing(target, props, tag, formatContext) {
|
|
3920
3990
|
target.push(startChunkForTag(tag));
|
|
3921
3991
|
for (var propKey in props)
|
|
3922
3992
|
if (hasOwnProperty.call(props, propKey)) {
|
|
@@ -3933,6 +4003,7 @@ function pushSelfClosing(target, props, tag) {
|
|
|
3933
4003
|
pushAttribute(target, propKey, propValue);
|
|
3934
4004
|
}
|
|
3935
4005
|
}
|
|
4006
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
3936
4007
|
target.push("/>");
|
|
3937
4008
|
return null;
|
|
3938
4009
|
}
|
|
@@ -3998,7 +4069,7 @@ function pushScriptImpl(target, props) {
|
|
|
3998
4069
|
target.push(endChunkForTag("script"));
|
|
3999
4070
|
return null;
|
|
4000
4071
|
}
|
|
4001
|
-
function pushStartSingletonElement(target, props, tag) {
|
|
4072
|
+
function pushStartSingletonElement(target, props, tag, formatContext) {
|
|
4002
4073
|
target.push(startChunkForTag(tag));
|
|
4003
4074
|
var innerHTML = (tag = null),
|
|
4004
4075
|
propKey;
|
|
@@ -4017,11 +4088,12 @@ function pushStartSingletonElement(target, props, tag) {
|
|
|
4017
4088
|
pushAttribute(target, propKey, propValue);
|
|
4018
4089
|
}
|
|
4019
4090
|
}
|
|
4091
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
4020
4092
|
target.push(">");
|
|
4021
4093
|
pushInnerHTML(target, innerHTML, tag);
|
|
4022
4094
|
return tag;
|
|
4023
4095
|
}
|
|
4024
|
-
function pushStartGenericElement(target, props, tag) {
|
|
4096
|
+
function pushStartGenericElement(target, props, tag, formatContext) {
|
|
4025
4097
|
target.push(startChunkForTag(tag));
|
|
4026
4098
|
var innerHTML = (tag = null),
|
|
4027
4099
|
propKey;
|
|
@@ -4040,6 +4112,7 @@ function pushStartGenericElement(target, props, tag) {
|
|
|
4040
4112
|
pushAttribute(target, propKey, propValue);
|
|
4041
4113
|
}
|
|
4042
4114
|
}
|
|
4115
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
4043
4116
|
target.push(">");
|
|
4044
4117
|
pushInnerHTML(target, innerHTML, tag);
|
|
4045
4118
|
return "string" === typeof tag
|
|
@@ -4066,8 +4139,7 @@ function pushStartInstance$1(
|
|
|
4066
4139
|
preambleState,
|
|
4067
4140
|
hoistableState,
|
|
4068
4141
|
formatContext,
|
|
4069
|
-
textEmbedded
|
|
4070
|
-
isFallback
|
|
4142
|
+
textEmbedded
|
|
4071
4143
|
) {
|
|
4072
4144
|
switch (type) {
|
|
4073
4145
|
case "div":
|
|
@@ -4100,6 +4172,7 @@ function pushStartInstance$1(
|
|
|
4100
4172
|
pushAttribute(target$jscomp$0, propKey, propValue);
|
|
4101
4173
|
}
|
|
4102
4174
|
}
|
|
4175
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4103
4176
|
target$jscomp$0.push(">");
|
|
4104
4177
|
pushInnerHTML(target$jscomp$0, innerHTML, children);
|
|
4105
4178
|
if ("string" === typeof children) {
|
|
@@ -4138,6 +4211,7 @@ function pushStartInstance$1(
|
|
|
4138
4211
|
);
|
|
4139
4212
|
}
|
|
4140
4213
|
}
|
|
4214
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4141
4215
|
target$jscomp$0.push(">");
|
|
4142
4216
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
|
|
4143
4217
|
return children$jscomp$0;
|
|
@@ -4227,6 +4301,7 @@ function pushStartInstance$1(
|
|
|
4227
4301
|
null === value$jscomp$0 &&
|
|
4228
4302
|
null !== defaultValue &&
|
|
4229
4303
|
(value$jscomp$0 = defaultValue);
|
|
4304
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4230
4305
|
target$jscomp$0.push(">");
|
|
4231
4306
|
if (null != children$jscomp$2) {
|
|
4232
4307
|
if (null != value$jscomp$0)
|
|
@@ -4321,6 +4396,7 @@ function pushStartInstance$1(
|
|
|
4321
4396
|
? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
|
|
4322
4397
|
: null !== defaultValue$jscomp$0 &&
|
|
4323
4398
|
pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
|
|
4399
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4324
4400
|
target$jscomp$0.push("/>");
|
|
4325
4401
|
null != formData &&
|
|
4326
4402
|
formData.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -4379,6 +4455,7 @@ function pushStartInstance$1(
|
|
|
4379
4455
|
formTarget$jscomp$0,
|
|
4380
4456
|
name$jscomp$0
|
|
4381
4457
|
);
|
|
4458
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4382
4459
|
target$jscomp$0.push(">");
|
|
4383
4460
|
null != formData$jscomp$0 &&
|
|
4384
4461
|
formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -4464,6 +4541,7 @@ function pushStartInstance$1(
|
|
|
4464
4541
|
pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
|
|
4465
4542
|
null != formTarget$jscomp$1 &&
|
|
4466
4543
|
pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
|
|
4544
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4467
4545
|
target$jscomp$0.push(">");
|
|
4468
4546
|
null !== formActionName &&
|
|
4469
4547
|
(target$jscomp$0.push('<input type="hidden"'),
|
|
@@ -4497,6 +4575,7 @@ function pushStartInstance$1(
|
|
|
4497
4575
|
);
|
|
4498
4576
|
}
|
|
4499
4577
|
}
|
|
4578
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4500
4579
|
target$jscomp$0.push(">");
|
|
4501
4580
|
return null;
|
|
4502
4581
|
case "object":
|
|
@@ -4534,6 +4613,7 @@ function pushStartInstance$1(
|
|
|
4534
4613
|
);
|
|
4535
4614
|
}
|
|
4536
4615
|
}
|
|
4616
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4537
4617
|
target$jscomp$0.push(">");
|
|
4538
4618
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
4539
4619
|
if ("string" === typeof children$jscomp$5) {
|
|
@@ -4542,9 +4622,11 @@ function pushStartInstance$1(
|
|
|
4542
4622
|
} else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
|
|
4543
4623
|
return JSCompiler_inline_result$jscomp$2;
|
|
4544
4624
|
case "title":
|
|
4625
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
|
4626
|
+
isFallback = formatContext.tagScope & 4;
|
|
4545
4627
|
if (
|
|
4546
4628
|
4 === formatContext.insertionMode ||
|
|
4547
|
-
|
|
4629
|
+
noscriptTagInScope ||
|
|
4548
4630
|
null != props.itemProp
|
|
4549
4631
|
)
|
|
4550
4632
|
var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
|
|
@@ -4558,12 +4640,14 @@ function pushStartInstance$1(
|
|
|
4558
4640
|
(JSCompiler_inline_result$jscomp$3 = void 0));
|
|
4559
4641
|
return JSCompiler_inline_result$jscomp$3;
|
|
4560
4642
|
case "link":
|
|
4561
|
-
var
|
|
4643
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
|
4644
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
|
4645
|
+
rel = props.rel,
|
|
4562
4646
|
href = props.href,
|
|
4563
4647
|
precedence = props.precedence;
|
|
4564
4648
|
if (
|
|
4565
4649
|
4 === formatContext.insertionMode ||
|
|
4566
|
-
|
|
4650
|
+
noscriptTagInScope$jscomp$0 ||
|
|
4567
4651
|
null != props.itemProp ||
|
|
4568
4652
|
"string" !== typeof rel ||
|
|
4569
4653
|
"string" !== typeof href ||
|
|
@@ -4630,12 +4714,13 @@ function pushStartInstance$1(
|
|
|
4630
4714
|
props
|
|
4631
4715
|
))
|
|
4632
4716
|
: (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
|
4633
|
-
(JSCompiler_inline_result$jscomp$4 = isFallback
|
|
4717
|
+
(JSCompiler_inline_result$jscomp$4 = isFallback$jscomp$0
|
|
4634
4718
|
? null
|
|
4635
4719
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
4636
4720
|
return JSCompiler_inline_result$jscomp$4;
|
|
4637
4721
|
case "script":
|
|
4638
|
-
var
|
|
4722
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
|
4723
|
+
asyncProp = props.async;
|
|
4639
4724
|
if (
|
|
4640
4725
|
"string" !== typeof props.src ||
|
|
4641
4726
|
!props.src ||
|
|
@@ -4645,7 +4730,7 @@ function pushStartInstance$1(
|
|
|
4645
4730
|
props.onLoad ||
|
|
4646
4731
|
props.onError ||
|
|
4647
4732
|
4 === formatContext.insertionMode ||
|
|
4648
|
-
|
|
4733
|
+
noscriptTagInScope$jscomp$1 ||
|
|
4649
4734
|
null != props.itemProp
|
|
4650
4735
|
)
|
|
4651
4736
|
var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
|
|
@@ -4682,11 +4767,12 @@ function pushStartInstance$1(
|
|
|
4682
4767
|
}
|
|
4683
4768
|
return JSCompiler_inline_result$jscomp$5;
|
|
4684
4769
|
case "style":
|
|
4685
|
-
var
|
|
4770
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1,
|
|
4771
|
+
precedence$jscomp$0 = props.precedence,
|
|
4686
4772
|
href$jscomp$0 = props.href;
|
|
4687
4773
|
if (
|
|
4688
4774
|
4 === formatContext.insertionMode ||
|
|
4689
|
-
|
|
4775
|
+
noscriptTagInScope$jscomp$2 ||
|
|
4690
4776
|
null != props.itemProp ||
|
|
4691
4777
|
"string" !== typeof precedence$jscomp$0 ||
|
|
4692
4778
|
"string" !== typeof href$jscomp$0 ||
|
|
@@ -4787,25 +4873,43 @@ function pushStartInstance$1(
|
|
|
4787
4873
|
}
|
|
4788
4874
|
return JSCompiler_inline_result$jscomp$6;
|
|
4789
4875
|
case "meta":
|
|
4876
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
|
4877
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
|
4790
4878
|
if (
|
|
4791
4879
|
4 === formatContext.insertionMode ||
|
|
4792
|
-
|
|
4880
|
+
noscriptTagInScope$jscomp$3 ||
|
|
4793
4881
|
null != props.itemProp
|
|
4794
4882
|
)
|
|
4795
4883
|
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
|
4796
4884
|
target$jscomp$0,
|
|
4797
4885
|
props,
|
|
4798
|
-
"meta"
|
|
4886
|
+
"meta",
|
|
4887
|
+
formatContext
|
|
4799
4888
|
);
|
|
4800
4889
|
else
|
|
4801
4890
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
|
4802
|
-
(JSCompiler_inline_result$jscomp$7 = isFallback
|
|
4891
|
+
(JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
|
|
4803
4892
|
? null
|
|
4804
4893
|
: "string" === typeof props.charSet
|
|
4805
|
-
? pushSelfClosing(
|
|
4894
|
+
? pushSelfClosing(
|
|
4895
|
+
renderState.charsetChunks,
|
|
4896
|
+
props,
|
|
4897
|
+
"meta",
|
|
4898
|
+
formatContext
|
|
4899
|
+
)
|
|
4806
4900
|
: "viewport" === props.name
|
|
4807
|
-
? pushSelfClosing(
|
|
4808
|
-
|
|
4901
|
+
? pushSelfClosing(
|
|
4902
|
+
renderState.viewportChunks,
|
|
4903
|
+
props,
|
|
4904
|
+
"meta",
|
|
4905
|
+
formatContext
|
|
4906
|
+
)
|
|
4907
|
+
: pushSelfClosing(
|
|
4908
|
+
renderState.hoistableChunks,
|
|
4909
|
+
props,
|
|
4910
|
+
"meta",
|
|
4911
|
+
formatContext
|
|
4912
|
+
));
|
|
4809
4913
|
return JSCompiler_inline_result$jscomp$7;
|
|
4810
4914
|
case "listing":
|
|
4811
4915
|
case "pre":
|
|
@@ -4832,6 +4936,7 @@ function pushStartInstance$1(
|
|
|
4832
4936
|
);
|
|
4833
4937
|
}
|
|
4834
4938
|
}
|
|
4939
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
4835
4940
|
target$jscomp$0.push(">");
|
|
4836
4941
|
if (null != innerHTML$jscomp$7) {
|
|
4837
4942
|
if (null != children$jscomp$8)
|
|
@@ -4857,17 +4962,18 @@ function pushStartInstance$1(
|
|
|
4857
4962
|
target$jscomp$0.push("\n");
|
|
4858
4963
|
return children$jscomp$8;
|
|
4859
4964
|
case "img":
|
|
4860
|
-
var
|
|
4965
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
|
4966
|
+
src = props.src,
|
|
4861
4967
|
srcSet = props.srcSet;
|
|
4862
4968
|
if (
|
|
4863
4969
|
!(
|
|
4864
4970
|
"lazy" === props.loading ||
|
|
4865
4971
|
(!src && !srcSet) ||
|
|
4866
4972
|
("string" !== typeof src && null != src) ||
|
|
4867
|
-
("string" !== typeof srcSet && null != srcSet)
|
|
4973
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
|
4974
|
+
"low" === props.fetchPriority ||
|
|
4975
|
+
pictureOrNoScriptTagInScope
|
|
4868
4976
|
) &&
|
|
4869
|
-
"low" !== props.fetchPriority &&
|
|
4870
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
|
4871
4977
|
("string" !== typeof src ||
|
|
4872
4978
|
":" !== src[4] ||
|
|
4873
4979
|
("d" !== src[0] && "D" !== src[0]) ||
|
|
@@ -4944,7 +5050,7 @@ function pushStartInstance$1(
|
|
|
4944
5050
|
promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
|
|
4945
5051
|
}
|
|
4946
5052
|
}
|
|
4947
|
-
return pushSelfClosing(target$jscomp$0, props, "img");
|
|
5053
|
+
return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
|
|
4948
5054
|
case "base":
|
|
4949
5055
|
case "area":
|
|
4950
5056
|
case "br":
|
|
@@ -4956,7 +5062,7 @@ function pushStartInstance$1(
|
|
|
4956
5062
|
case "source":
|
|
4957
5063
|
case "track":
|
|
4958
5064
|
case "wbr":
|
|
4959
|
-
return pushSelfClosing(target$jscomp$0, props, type);
|
|
5065
|
+
return pushSelfClosing(target$jscomp$0, props, type, formatContext);
|
|
4960
5066
|
case "annotation-xml":
|
|
4961
5067
|
case "color-profile":
|
|
4962
5068
|
case "font-face":
|
|
@@ -4976,13 +5082,15 @@ function pushStartInstance$1(
|
|
|
4976
5082
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
4977
5083
|
preamble.headChunks,
|
|
4978
5084
|
props,
|
|
4979
|
-
"head"
|
|
5085
|
+
"head",
|
|
5086
|
+
formatContext
|
|
4980
5087
|
);
|
|
4981
5088
|
} else
|
|
4982
5089
|
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
4983
5090
|
target$jscomp$0,
|
|
4984
5091
|
props,
|
|
4985
|
-
"head"
|
|
5092
|
+
"head",
|
|
5093
|
+
formatContext
|
|
4986
5094
|
);
|
|
4987
5095
|
return JSCompiler_inline_result$jscomp$9;
|
|
4988
5096
|
case "body":
|
|
@@ -4995,13 +5103,15 @@ function pushStartInstance$1(
|
|
|
4995
5103
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
4996
5104
|
preamble$jscomp$0.bodyChunks,
|
|
4997
5105
|
props,
|
|
4998
|
-
"body"
|
|
5106
|
+
"body",
|
|
5107
|
+
formatContext
|
|
4999
5108
|
);
|
|
5000
5109
|
} else
|
|
5001
5110
|
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
5002
5111
|
target$jscomp$0,
|
|
5003
5112
|
props,
|
|
5004
|
-
"body"
|
|
5113
|
+
"body",
|
|
5114
|
+
formatContext
|
|
5005
5115
|
);
|
|
5006
5116
|
return JSCompiler_inline_result$jscomp$10;
|
|
5007
5117
|
case "html":
|
|
@@ -5014,13 +5124,15 @@ function pushStartInstance$1(
|
|
|
5014
5124
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
5015
5125
|
preamble$jscomp$1.htmlChunks,
|
|
5016
5126
|
props,
|
|
5017
|
-
"html"
|
|
5127
|
+
"html",
|
|
5128
|
+
formatContext
|
|
5018
5129
|
);
|
|
5019
5130
|
} else
|
|
5020
5131
|
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
5021
5132
|
target$jscomp$0,
|
|
5022
5133
|
props,
|
|
5023
|
-
"html"
|
|
5134
|
+
"html",
|
|
5135
|
+
formatContext
|
|
5024
5136
|
);
|
|
5025
5137
|
return JSCompiler_inline_result$jscomp$11;
|
|
5026
5138
|
default:
|
|
@@ -5070,12 +5182,13 @@ function pushStartInstance$1(
|
|
|
5070
5182
|
}
|
|
5071
5183
|
}
|
|
5072
5184
|
}
|
|
5185
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
5073
5186
|
target$jscomp$0.push(">");
|
|
5074
5187
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
5075
5188
|
return children$jscomp$9;
|
|
5076
5189
|
}
|
|
5077
5190
|
}
|
|
5078
|
-
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
5191
|
+
return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
|
|
5079
5192
|
}
|
|
5080
5193
|
var endTagCache = new Map();
|
|
5081
5194
|
function endChunkForTag(tag) {
|
|
@@ -5703,6 +5816,11 @@ var classComponentUpdater = {
|
|
|
5703
5816
|
enqueueForceUpdate: function () {}
|
|
5704
5817
|
},
|
|
5705
5818
|
emptyTreeContext = { id: 1, overflow: "" };
|
|
5819
|
+
function getTreeId(context) {
|
|
5820
|
+
var overflow = context.overflow;
|
|
5821
|
+
context = context.id;
|
|
5822
|
+
return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
|
|
5823
|
+
}
|
|
5706
5824
|
function pushTreeContext(baseContext, totalChildren, index) {
|
|
5707
5825
|
var baseIdWithLeadingBit = baseContext.id;
|
|
5708
5826
|
baseContext = baseContext.overflow;
|
|
@@ -5996,24 +6114,14 @@ var HooksDispatcher = {
|
|
|
5996
6114
|
useTransition: clientHookNotSupported,
|
|
5997
6115
|
useSyncExternalStore: clientHookNotSupported,
|
|
5998
6116
|
useId: function () {
|
|
5999
|
-
var
|
|
6000
|
-
|
|
6001
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
6002
|
-
JSCompiler_inline_result =
|
|
6003
|
-
(
|
|
6004
|
-
JSCompiler_inline_result &
|
|
6005
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
6006
|
-
).toString(32) + overflow;
|
|
6007
|
-
var resumableState = currentResumableState;
|
|
6117
|
+
var treeId = getTreeId(currentlyRenderingTask.treeContext),
|
|
6118
|
+
resumableState = currentResumableState;
|
|
6008
6119
|
if (null === resumableState)
|
|
6009
6120
|
throw Error(
|
|
6010
6121
|
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
6011
6122
|
);
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
"\u00ab" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
6015
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
6016
|
-
return JSCompiler_inline_result + "\u00bb";
|
|
6123
|
+
var localId = localIdCounter++;
|
|
6124
|
+
return makeId(resumableState, treeId, localId);
|
|
6017
6125
|
},
|
|
6018
6126
|
useHostTransitionStatus: function () {
|
|
6019
6127
|
resolveCurrentlyRenderingComponent();
|
|
@@ -6196,8 +6304,7 @@ function createRequest(
|
|
|
6196
6304
|
rootFormatContext,
|
|
6197
6305
|
null,
|
|
6198
6306
|
emptyTreeContext,
|
|
6199
|
-
null
|
|
6200
|
-
!1
|
|
6307
|
+
null
|
|
6201
6308
|
);
|
|
6202
6309
|
pushComponentStack(children);
|
|
6203
6310
|
resumableState.pingedTasks.push(children);
|
|
@@ -6246,8 +6353,7 @@ function createRenderTask(
|
|
|
6246
6353
|
formatContext,
|
|
6247
6354
|
context,
|
|
6248
6355
|
treeContext,
|
|
6249
|
-
componentStack
|
|
6250
|
-
isFallback
|
|
6356
|
+
componentStack
|
|
6251
6357
|
) {
|
|
6252
6358
|
request.allPendingTasks++;
|
|
6253
6359
|
null === blockedBoundary
|
|
@@ -6270,8 +6376,7 @@ function createRenderTask(
|
|
|
6270
6376
|
context: context,
|
|
6271
6377
|
treeContext: treeContext,
|
|
6272
6378
|
componentStack: componentStack,
|
|
6273
|
-
thenableState: thenableState
|
|
6274
|
-
isFallback: isFallback
|
|
6379
|
+
thenableState: thenableState
|
|
6275
6380
|
};
|
|
6276
6381
|
abortSet.add(task);
|
|
6277
6382
|
return task;
|
|
@@ -6289,8 +6394,7 @@ function createReplayTask(
|
|
|
6289
6394
|
formatContext,
|
|
6290
6395
|
context,
|
|
6291
6396
|
treeContext,
|
|
6292
|
-
componentStack
|
|
6293
|
-
isFallback
|
|
6397
|
+
componentStack
|
|
6294
6398
|
) {
|
|
6295
6399
|
request.allPendingTasks++;
|
|
6296
6400
|
null === blockedBoundary
|
|
@@ -6314,8 +6418,7 @@ function createReplayTask(
|
|
|
6314
6418
|
context: context,
|
|
6315
6419
|
treeContext: treeContext,
|
|
6316
6420
|
componentStack: componentStack,
|
|
6317
|
-
thenableState: thenableState
|
|
6318
|
-
isFallback: isFallback
|
|
6421
|
+
thenableState: thenableState
|
|
6319
6422
|
};
|
|
6320
6423
|
abortSet.add(task);
|
|
6321
6424
|
return task;
|
|
@@ -6462,190 +6565,219 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6462
6565
|
var defaultProps = type.defaultProps;
|
|
6463
6566
|
if (defaultProps) {
|
|
6464
6567
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
6465
|
-
for (var propName$
|
|
6466
|
-
void 0 === newProps[propName$
|
|
6467
|
-
(newProps[propName$
|
|
6568
|
+
for (var propName$89 in defaultProps)
|
|
6569
|
+
void 0 === newProps[propName$89] &&
|
|
6570
|
+
(newProps[propName$89] = defaultProps[propName$89]);
|
|
6468
6571
|
}
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
"object" === typeof
|
|
6473
|
-
null !==
|
|
6474
|
-
(
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6572
|
+
var JSCompiler_inline_result = newProps;
|
|
6573
|
+
var context = emptyContextObject,
|
|
6574
|
+
contextType = type.contextType;
|
|
6575
|
+
"object" === typeof contextType &&
|
|
6576
|
+
null !== contextType &&
|
|
6577
|
+
(context = contextType._currentValue2);
|
|
6578
|
+
var JSCompiler_inline_result$jscomp$0 = new type(
|
|
6579
|
+
JSCompiler_inline_result,
|
|
6580
|
+
context
|
|
6581
|
+
);
|
|
6582
|
+
var initialState =
|
|
6583
|
+
void 0 !== JSCompiler_inline_result$jscomp$0.state
|
|
6584
|
+
? JSCompiler_inline_result$jscomp$0.state
|
|
6585
|
+
: null;
|
|
6586
|
+
JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
|
|
6587
|
+
JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
|
|
6588
|
+
JSCompiler_inline_result$jscomp$0.state = initialState;
|
|
6589
|
+
var internalInstance = { queue: [], replace: !1 };
|
|
6590
|
+
JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
|
|
6591
|
+
var contextType$jscomp$0 = type.contextType;
|
|
6592
|
+
JSCompiler_inline_result$jscomp$0.context =
|
|
6593
|
+
"object" === typeof contextType$jscomp$0 &&
|
|
6594
|
+
null !== contextType$jscomp$0
|
|
6595
|
+
? contextType$jscomp$0._currentValue2
|
|
6486
6596
|
: emptyContextObject;
|
|
6487
|
-
|
|
6488
|
-
"function" === typeof
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6597
|
+
var getDerivedStateFromProps = type.getDerivedStateFromProps;
|
|
6598
|
+
if ("function" === typeof getDerivedStateFromProps) {
|
|
6599
|
+
var partialState = getDerivedStateFromProps(
|
|
6600
|
+
JSCompiler_inline_result,
|
|
6601
|
+
initialState
|
|
6602
|
+
);
|
|
6603
|
+
var JSCompiler_inline_result$jscomp$1 =
|
|
6604
|
+
null === partialState || void 0 === partialState
|
|
6492
6605
|
? initialState
|
|
6493
|
-
: assign({}, initialState,
|
|
6494
|
-
|
|
6606
|
+
: assign({}, initialState, partialState);
|
|
6607
|
+
JSCompiler_inline_result$jscomp$0.state =
|
|
6608
|
+
JSCompiler_inline_result$jscomp$1;
|
|
6609
|
+
}
|
|
6495
6610
|
if (
|
|
6496
6611
|
"function" !== typeof type.getDerivedStateFromProps &&
|
|
6497
|
-
"function" !==
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6612
|
+
"function" !==
|
|
6613
|
+
typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
|
|
6614
|
+
("function" ===
|
|
6615
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
|
|
6616
|
+
"function" ===
|
|
6617
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
|
|
6618
|
+
) {
|
|
6619
|
+
var oldState = JSCompiler_inline_result$jscomp$0.state;
|
|
6620
|
+
"function" ===
|
|
6621
|
+
typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
|
|
6622
|
+
JSCompiler_inline_result$jscomp$0.componentWillMount();
|
|
6623
|
+
"function" ===
|
|
6624
|
+
typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
|
|
6625
|
+
JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
|
|
6626
|
+
oldState !== JSCompiler_inline_result$jscomp$0.state &&
|
|
6627
|
+
classComponentUpdater.enqueueReplaceState(
|
|
6628
|
+
JSCompiler_inline_result$jscomp$0,
|
|
6629
|
+
JSCompiler_inline_result$jscomp$0.state,
|
|
6630
|
+
null
|
|
6631
|
+
);
|
|
6501
6632
|
if (
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
null
|
|
6512
|
-
),
|
|
6513
|
-
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
|
6514
|
-
)
|
|
6515
|
-
if (
|
|
6516
|
-
((type = defaultProps.queue),
|
|
6517
|
-
(contextType = defaultProps.replace),
|
|
6518
|
-
(defaultProps.queue = null),
|
|
6519
|
-
(defaultProps.replace = !1),
|
|
6520
|
-
contextType && 1 === type.length)
|
|
6521
|
-
)
|
|
6522
|
-
newProps.state = type[0];
|
|
6633
|
+
null !== internalInstance.queue &&
|
|
6634
|
+
0 < internalInstance.queue.length
|
|
6635
|
+
) {
|
|
6636
|
+
var oldQueue = internalInstance.queue,
|
|
6637
|
+
oldReplace = internalInstance.replace;
|
|
6638
|
+
internalInstance.queue = null;
|
|
6639
|
+
internalInstance.replace = !1;
|
|
6640
|
+
if (oldReplace && 1 === oldQueue.length)
|
|
6641
|
+
JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
|
|
6523
6642
|
else {
|
|
6524
|
-
defaultProps = contextType ? type[0] : newProps.state;
|
|
6525
|
-
initialState = !0;
|
|
6526
6643
|
for (
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
? (
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6644
|
+
var nextState = oldReplace
|
|
6645
|
+
? oldQueue[0]
|
|
6646
|
+
: JSCompiler_inline_result$jscomp$0.state,
|
|
6647
|
+
dontMutate = !0,
|
|
6648
|
+
i = oldReplace ? 1 : 0;
|
|
6649
|
+
i < oldQueue.length;
|
|
6650
|
+
i++
|
|
6651
|
+
) {
|
|
6652
|
+
var partial = oldQueue[i],
|
|
6653
|
+
partialState$jscomp$0 =
|
|
6654
|
+
"function" === typeof partial
|
|
6655
|
+
? partial.call(
|
|
6656
|
+
JSCompiler_inline_result$jscomp$0,
|
|
6657
|
+
nextState,
|
|
6658
|
+
JSCompiler_inline_result,
|
|
6659
|
+
void 0
|
|
6660
|
+
)
|
|
6661
|
+
: partial;
|
|
6662
|
+
null != partialState$jscomp$0 &&
|
|
6663
|
+
(dontMutate
|
|
6664
|
+
? ((dontMutate = !1),
|
|
6665
|
+
(nextState = assign({}, nextState, partialState$jscomp$0)))
|
|
6666
|
+
: assign(nextState, partialState$jscomp$0));
|
|
6667
|
+
}
|
|
6668
|
+
JSCompiler_inline_result$jscomp$0.state = nextState;
|
|
6542
6669
|
}
|
|
6543
|
-
else
|
|
6544
|
-
|
|
6670
|
+
} else internalInstance.queue = null;
|
|
6671
|
+
}
|
|
6672
|
+
var nextChildren = JSCompiler_inline_result$jscomp$0.render();
|
|
6545
6673
|
if (12 === request.status) throw null;
|
|
6546
|
-
|
|
6674
|
+
var prevKeyPath = task.keyPath;
|
|
6547
6675
|
task.keyPath = keyPath;
|
|
6548
|
-
renderNodeDestructive(request, task,
|
|
6549
|
-
task.keyPath =
|
|
6676
|
+
renderNodeDestructive(request, task, nextChildren, -1);
|
|
6677
|
+
task.keyPath = prevKeyPath;
|
|
6550
6678
|
} else {
|
|
6551
|
-
|
|
6679
|
+
var value = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
6552
6680
|
if (12 === request.status) throw null;
|
|
6553
6681
|
finishFunctionComponent(
|
|
6554
6682
|
request,
|
|
6555
6683
|
task,
|
|
6556
6684
|
keyPath,
|
|
6557
|
-
|
|
6685
|
+
value,
|
|
6558
6686
|
0 !== localIdCounter,
|
|
6559
6687
|
actionStateCounter,
|
|
6560
6688
|
actionStateMatchingIndex
|
|
6561
6689
|
);
|
|
6562
6690
|
}
|
|
6563
|
-
else if ("string" === typeof type)
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6691
|
+
else if ("string" === typeof type) {
|
|
6692
|
+
var segment = task.blockedSegment;
|
|
6693
|
+
if (null === segment) {
|
|
6694
|
+
var children = props.children,
|
|
6695
|
+
prevContext = task.formatContext,
|
|
6696
|
+
prevKeyPath$jscomp$0 = task.keyPath;
|
|
6697
|
+
task.formatContext = getChildFormatContext(prevContext, type, props);
|
|
6698
|
+
task.keyPath = keyPath;
|
|
6699
|
+
renderNode(request, task, children, -1);
|
|
6700
|
+
task.formatContext = prevContext;
|
|
6701
|
+
task.keyPath = prevKeyPath$jscomp$0;
|
|
6702
|
+
} else {
|
|
6703
|
+
var target = segment.chunks,
|
|
6704
|
+
resumableState = request.resumableState,
|
|
6705
|
+
renderState = request.renderState,
|
|
6706
|
+
preambleState = task.blockedPreamble,
|
|
6707
|
+
hoistableState = task.hoistableState,
|
|
6708
|
+
formatContext = task.formatContext,
|
|
6709
|
+
textEmbedded = segment.lastPushedText,
|
|
6710
|
+
propKey;
|
|
6711
|
+
for (propKey in props)
|
|
6712
|
+
if (hasOwnProperty.call(props, propKey)) {
|
|
6713
|
+
var propValue = props[propKey];
|
|
6714
|
+
if ("ref" === propKey && null != propValue)
|
|
6586
6715
|
throw Error(
|
|
6587
6716
|
"Cannot pass ref in renderToHTML because they will never be hydrated."
|
|
6588
6717
|
);
|
|
6589
6718
|
if ("function" === typeof propValue)
|
|
6590
6719
|
throw Error(
|
|
6591
6720
|
"Cannot pass event handlers (" +
|
|
6592
|
-
|
|
6721
|
+
propKey +
|
|
6593
6722
|
") in renderToHTML because the HTML will never be hydrated so they can never get called."
|
|
6594
6723
|
);
|
|
6595
6724
|
}
|
|
6596
|
-
|
|
6597
|
-
|
|
6725
|
+
var JSCompiler_inline_result$jscomp$2 = pushStartInstance$1(
|
|
6726
|
+
target,
|
|
6598
6727
|
type,
|
|
6599
6728
|
props,
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6729
|
+
resumableState,
|
|
6730
|
+
renderState,
|
|
6731
|
+
preambleState,
|
|
6732
|
+
hoistableState,
|
|
6604
6733
|
formatContext,
|
|
6605
|
-
textEmbedded
|
|
6606
|
-
isFallback
|
|
6734
|
+
textEmbedded
|
|
6607
6735
|
);
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6736
|
+
segment.lastPushedText = !1;
|
|
6737
|
+
var prevContext$87 = task.formatContext,
|
|
6738
|
+
prevKeyPath$88 = task.keyPath;
|
|
6611
6739
|
task.keyPath = keyPath;
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
.
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6740
|
+
if (
|
|
6741
|
+
3 ===
|
|
6742
|
+
(task.formatContext = getChildFormatContext(
|
|
6743
|
+
prevContext$87,
|
|
6744
|
+
type,
|
|
6745
|
+
props
|
|
6746
|
+
)).insertionMode
|
|
6747
|
+
) {
|
|
6748
|
+
var preambleSegment = createPendingSegment(
|
|
6749
|
+
request,
|
|
6750
|
+
0,
|
|
6751
|
+
null,
|
|
6752
|
+
task.formatContext,
|
|
6753
|
+
!1,
|
|
6754
|
+
!1
|
|
6755
|
+
);
|
|
6756
|
+
segment.preambleChildren.push(preambleSegment);
|
|
6757
|
+
var preambleTask = createRenderTask(
|
|
6758
|
+
request,
|
|
6759
|
+
null,
|
|
6760
|
+
JSCompiler_inline_result$jscomp$2,
|
|
6761
|
+
-1,
|
|
6762
|
+
task.blockedBoundary,
|
|
6763
|
+
preambleSegment,
|
|
6764
|
+
task.blockedPreamble,
|
|
6765
|
+
task.hoistableState,
|
|
6766
|
+
request.abortableTasks,
|
|
6767
|
+
task.keyPath,
|
|
6768
|
+
task.formatContext,
|
|
6769
|
+
task.context,
|
|
6770
|
+
task.treeContext,
|
|
6771
|
+
task.componentStack
|
|
6772
|
+
);
|
|
6773
|
+
pushComponentStack(preambleTask);
|
|
6774
|
+
request.pingedTasks.push(preambleTask);
|
|
6775
|
+
} else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
|
|
6776
|
+
task.formatContext = prevContext$87;
|
|
6777
|
+
task.keyPath = prevKeyPath$88;
|
|
6646
6778
|
a: {
|
|
6647
|
-
|
|
6648
|
-
|
|
6779
|
+
var target$jscomp$0 = segment.chunks,
|
|
6780
|
+
resumableState$jscomp$0 = request.resumableState;
|
|
6649
6781
|
switch (type) {
|
|
6650
6782
|
case "title":
|
|
6651
6783
|
case "style":
|
|
@@ -6667,85 +6799,106 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6667
6799
|
case "wbr":
|
|
6668
6800
|
break a;
|
|
6669
6801
|
case "body":
|
|
6670
|
-
if (1 >=
|
|
6671
|
-
|
|
6802
|
+
if (1 >= prevContext$87.insertionMode) {
|
|
6803
|
+
resumableState$jscomp$0.hasBody = !0;
|
|
6672
6804
|
break a;
|
|
6673
6805
|
}
|
|
6674
6806
|
break;
|
|
6675
6807
|
case "html":
|
|
6676
|
-
if (0 ===
|
|
6677
|
-
|
|
6808
|
+
if (0 === prevContext$87.insertionMode) {
|
|
6809
|
+
resumableState$jscomp$0.hasHtml = !0;
|
|
6678
6810
|
break a;
|
|
6679
6811
|
}
|
|
6680
6812
|
break;
|
|
6681
6813
|
case "head":
|
|
6682
|
-
if (1 >=
|
|
6814
|
+
if (1 >= prevContext$87.insertionMode) break a;
|
|
6683
6815
|
}
|
|
6684
|
-
|
|
6816
|
+
target$jscomp$0.push(endChunkForTag(type));
|
|
6685
6817
|
}
|
|
6686
|
-
|
|
6818
|
+
segment.lastPushedText = !1;
|
|
6687
6819
|
}
|
|
6688
|
-
else {
|
|
6820
|
+
} else {
|
|
6689
6821
|
switch (type) {
|
|
6690
6822
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
6691
6823
|
case REACT_STRICT_MODE_TYPE:
|
|
6692
6824
|
case REACT_PROFILER_TYPE:
|
|
6693
6825
|
case REACT_FRAGMENT_TYPE:
|
|
6694
|
-
|
|
6826
|
+
var prevKeyPath$jscomp$1 = task.keyPath;
|
|
6695
6827
|
task.keyPath = keyPath;
|
|
6696
6828
|
renderNodeDestructive(request, task, props.children, -1);
|
|
6697
|
-
task.keyPath =
|
|
6829
|
+
task.keyPath = prevKeyPath$jscomp$1;
|
|
6698
6830
|
return;
|
|
6699
6831
|
case REACT_ACTIVITY_TYPE:
|
|
6700
|
-
|
|
6701
|
-
null ===
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
renderNode(request, task, props.children, -1)
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6832
|
+
var segment$jscomp$0 = task.blockedSegment;
|
|
6833
|
+
if (null === segment$jscomp$0) {
|
|
6834
|
+
if ("hidden" !== props.mode) {
|
|
6835
|
+
var prevKeyPath$jscomp$2 = task.keyPath;
|
|
6836
|
+
task.keyPath = keyPath;
|
|
6837
|
+
renderNode(request, task, props.children, -1);
|
|
6838
|
+
task.keyPath = prevKeyPath$jscomp$2;
|
|
6839
|
+
}
|
|
6840
|
+
} else if ("hidden" !== props.mode) {
|
|
6841
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
6842
|
+
var prevKeyPath$91 = task.keyPath;
|
|
6843
|
+
task.keyPath = keyPath;
|
|
6844
|
+
renderNode(request, task, props.children, -1);
|
|
6845
|
+
task.keyPath = prevKeyPath$91;
|
|
6846
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
6847
|
+
}
|
|
6714
6848
|
return;
|
|
6715
6849
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
6716
|
-
|
|
6850
|
+
var prevKeyPath$92 = task.keyPath;
|
|
6717
6851
|
task.keyPath = keyPath;
|
|
6718
6852
|
renderNodeDestructive(request, task, props.children, -1);
|
|
6719
|
-
task.keyPath =
|
|
6853
|
+
task.keyPath = prevKeyPath$92;
|
|
6720
6854
|
return;
|
|
6721
6855
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
6722
|
-
|
|
6856
|
+
var prevContext$jscomp$0 = task.formatContext,
|
|
6857
|
+
prevKeyPath$jscomp$3 = task.keyPath;
|
|
6858
|
+
var resumableState$jscomp$1 = request.resumableState;
|
|
6859
|
+
if (null == props.name || "auto" === props.name) {
|
|
6860
|
+
var treeId = getTreeId(task.treeContext);
|
|
6861
|
+
makeId(resumableState$jscomp$1, treeId, 0);
|
|
6862
|
+
}
|
|
6863
|
+
task.formatContext = prevContext$jscomp$0;
|
|
6723
6864
|
task.keyPath = keyPath;
|
|
6724
|
-
|
|
6725
|
-
|
|
6865
|
+
if (null != props.name && "auto" !== props.name)
|
|
6866
|
+
renderNodeDestructive(request, task, props.children, -1);
|
|
6867
|
+
else {
|
|
6868
|
+
var prevTreeContext = task.treeContext;
|
|
6869
|
+
task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
|
|
6870
|
+
renderNode(request, task, props.children, -1);
|
|
6871
|
+
task.treeContext = prevTreeContext;
|
|
6872
|
+
}
|
|
6873
|
+
task.formatContext = prevContext$jscomp$0;
|
|
6874
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
6726
6875
|
return;
|
|
6727
6876
|
case REACT_SCOPE_TYPE:
|
|
6728
6877
|
throw Error("ReactDOMServer does not yet support scope components.");
|
|
6729
6878
|
case REACT_SUSPENSE_TYPE:
|
|
6730
6879
|
a: if (null !== task.replay) {
|
|
6731
|
-
|
|
6880
|
+
var prevKeyPath$81 = task.keyPath,
|
|
6881
|
+
prevContext$82 = task.formatContext;
|
|
6732
6882
|
task.keyPath = keyPath;
|
|
6733
|
-
|
|
6883
|
+
task.formatContext = getSuspenseContentFormatContext(prevContext$82);
|
|
6884
|
+
var content$83 = props.children;
|
|
6734
6885
|
try {
|
|
6735
|
-
renderNode(request, task,
|
|
6886
|
+
renderNode(request, task, content$83, -1);
|
|
6736
6887
|
} finally {
|
|
6737
|
-
task.keyPath =
|
|
6888
|
+
(task.keyPath = prevKeyPath$81),
|
|
6889
|
+
(task.formatContext = prevContext$82);
|
|
6738
6890
|
}
|
|
6739
6891
|
} else {
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6892
|
+
var prevKeyPath$jscomp$4 = task.keyPath,
|
|
6893
|
+
prevContext$jscomp$1 = task.formatContext,
|
|
6894
|
+
parentBoundary = task.blockedBoundary,
|
|
6895
|
+
parentPreamble = task.blockedPreamble,
|
|
6896
|
+
parentHoistableState = task.hoistableState,
|
|
6897
|
+
parentSegment = task.blockedSegment,
|
|
6898
|
+
fallback = props.fallback,
|
|
6899
|
+
content = props.children,
|
|
6900
|
+
fallbackAbortSet = new Set();
|
|
6901
|
+
var newBoundary =
|
|
6749
6902
|
2 > task.formatContext.insertionMode
|
|
6750
6903
|
? createSuspenseBoundary(
|
|
6751
6904
|
request,
|
|
@@ -6755,18 +6908,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6755
6908
|
)
|
|
6756
6909
|
: createSuspenseBoundary(request, fallbackAbortSet, null, null);
|
|
6757
6910
|
null !== request.trackedPostpones &&
|
|
6758
|
-
(
|
|
6759
|
-
|
|
6911
|
+
(newBoundary.trackedContentKeyPath = keyPath);
|
|
6912
|
+
var boundarySegment = createPendingSegment(
|
|
6760
6913
|
request,
|
|
6761
|
-
|
|
6762
|
-
|
|
6914
|
+
parentSegment.chunks.length,
|
|
6915
|
+
newBoundary,
|
|
6763
6916
|
task.formatContext,
|
|
6764
6917
|
!1,
|
|
6765
6918
|
!1
|
|
6766
6919
|
);
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6920
|
+
parentSegment.children.push(boundarySegment);
|
|
6921
|
+
parentSegment.lastPushedText = !1;
|
|
6922
|
+
var contentRootSegment = createPendingSegment(
|
|
6770
6923
|
request,
|
|
6771
6924
|
0,
|
|
6772
6925
|
null,
|
|
@@ -6774,113 +6927,125 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6774
6927
|
!1,
|
|
6775
6928
|
!1
|
|
6776
6929
|
);
|
|
6777
|
-
|
|
6930
|
+
contentRootSegment.parentFlushed = !0;
|
|
6778
6931
|
if (null !== request.trackedPostpones) {
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6932
|
+
var fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
6933
|
+
fallbackReplayNode = [
|
|
6934
|
+
fallbackKeyPath[1],
|
|
6935
|
+
fallbackKeyPath[2],
|
|
6936
|
+
[],
|
|
6937
|
+
null
|
|
6938
|
+
];
|
|
6939
|
+
request.trackedPostpones.workingMap.set(
|
|
6940
|
+
fallbackKeyPath,
|
|
6941
|
+
fallbackReplayNode
|
|
6942
|
+
);
|
|
6943
|
+
newBoundary.trackedFallbackNode = fallbackReplayNode;
|
|
6944
|
+
task.blockedSegment = boundarySegment;
|
|
6945
|
+
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
6946
|
+
task.keyPath = fallbackKeyPath;
|
|
6947
|
+
task.formatContext =
|
|
6948
|
+
getSuspenseFallbackFormatContext(prevContext$jscomp$1);
|
|
6949
|
+
boundarySegment.status = 6;
|
|
6787
6950
|
try {
|
|
6788
|
-
renderNode(request, task,
|
|
6789
|
-
(
|
|
6951
|
+
renderNode(request, task, fallback, -1),
|
|
6952
|
+
(boundarySegment.status = 1);
|
|
6790
6953
|
} catch (thrownValue) {
|
|
6791
6954
|
throw (
|
|
6792
|
-
((
|
|
6955
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
|
6793
6956
|
thrownValue)
|
|
6794
6957
|
);
|
|
6795
6958
|
} finally {
|
|
6796
|
-
(task.blockedSegment =
|
|
6797
|
-
(task.blockedPreamble =
|
|
6798
|
-
(task.keyPath =
|
|
6959
|
+
(task.blockedSegment = parentSegment),
|
|
6960
|
+
(task.blockedPreamble = parentPreamble),
|
|
6961
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
|
6962
|
+
(task.formatContext = prevContext$jscomp$1);
|
|
6799
6963
|
}
|
|
6800
|
-
|
|
6964
|
+
var suspendedPrimaryTask = createRenderTask(
|
|
6801
6965
|
request,
|
|
6802
6966
|
null,
|
|
6803
|
-
|
|
6967
|
+
content,
|
|
6804
6968
|
-1,
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6969
|
+
newBoundary,
|
|
6970
|
+
contentRootSegment,
|
|
6971
|
+
newBoundary.contentPreamble,
|
|
6972
|
+
newBoundary.contentState,
|
|
6809
6973
|
task.abortSet,
|
|
6810
6974
|
keyPath,
|
|
6811
|
-
task.formatContext,
|
|
6975
|
+
getSuspenseContentFormatContext(task.formatContext),
|
|
6812
6976
|
task.context,
|
|
6813
6977
|
task.treeContext,
|
|
6814
|
-
task.componentStack
|
|
6815
|
-
task.isFallback
|
|
6978
|
+
task.componentStack
|
|
6816
6979
|
);
|
|
6817
|
-
pushComponentStack(
|
|
6818
|
-
request.pingedTasks.push(
|
|
6980
|
+
pushComponentStack(suspendedPrimaryTask);
|
|
6981
|
+
request.pingedTasks.push(suspendedPrimaryTask);
|
|
6819
6982
|
} else {
|
|
6820
|
-
task.blockedBoundary =
|
|
6821
|
-
task.blockedPreamble =
|
|
6822
|
-
task.hoistableState =
|
|
6823
|
-
task.blockedSegment =
|
|
6983
|
+
task.blockedBoundary = newBoundary;
|
|
6984
|
+
task.blockedPreamble = newBoundary.contentPreamble;
|
|
6985
|
+
task.hoistableState = newBoundary.contentState;
|
|
6986
|
+
task.blockedSegment = contentRootSegment;
|
|
6824
6987
|
task.keyPath = keyPath;
|
|
6825
|
-
|
|
6988
|
+
task.formatContext =
|
|
6989
|
+
getSuspenseContentFormatContext(prevContext$jscomp$1);
|
|
6990
|
+
contentRootSegment.status = 6;
|
|
6826
6991
|
try {
|
|
6827
6992
|
if (
|
|
6828
|
-
(renderNode(request, task,
|
|
6829
|
-
(
|
|
6830
|
-
queueCompletedSegment(
|
|
6831
|
-
0 ===
|
|
6832
|
-
0 ===
|
|
6833
|
-
((
|
|
6993
|
+
(renderNode(request, task, content, -1),
|
|
6994
|
+
(contentRootSegment.status = 1),
|
|
6995
|
+
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
6996
|
+
0 === newBoundary.pendingTasks &&
|
|
6997
|
+
0 === newBoundary.status &&
|
|
6998
|
+
((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
|
|
6834
6999
|
) {
|
|
6835
7000
|
0 === request.pendingRootTasks &&
|
|
6836
7001
|
task.blockedPreamble &&
|
|
6837
7002
|
preparePreamble(request);
|
|
6838
7003
|
break a;
|
|
6839
7004
|
}
|
|
6840
|
-
} catch (thrownValue$
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
7005
|
+
} catch (thrownValue$84) {
|
|
7006
|
+
newBoundary.status = 4;
|
|
7007
|
+
if (12 === request.status) {
|
|
7008
|
+
contentRootSegment.status = 3;
|
|
7009
|
+
var error = request.fatalError;
|
|
7010
|
+
} else (contentRootSegment.status = 4), (error = thrownValue$84);
|
|
7011
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
|
7012
|
+
if (
|
|
7013
|
+
"object" === typeof error &&
|
|
7014
|
+
null !== error &&
|
|
7015
|
+
error.$$typeof === REACT_POSTPONE_TYPE
|
|
7016
|
+
) {
|
|
7017
|
+
logPostpone(request, error.message, thrownInfo);
|
|
7018
|
+
var errorDigest = "POSTPONE";
|
|
7019
|
+
} else
|
|
7020
|
+
errorDigest = logRecoverableError(request, error, thrownInfo);
|
|
7021
|
+
newBoundary.errorDigest = errorDigest;
|
|
7022
|
+
untrackBoundary(request, newBoundary);
|
|
6858
7023
|
} finally {
|
|
6859
|
-
(task.blockedBoundary =
|
|
6860
|
-
(task.blockedPreamble =
|
|
6861
|
-
(task.hoistableState =
|
|
6862
|
-
(task.blockedSegment =
|
|
6863
|
-
(task.keyPath =
|
|
7024
|
+
(task.blockedBoundary = parentBoundary),
|
|
7025
|
+
(task.blockedPreamble = parentPreamble),
|
|
7026
|
+
(task.hoistableState = parentHoistableState),
|
|
7027
|
+
(task.blockedSegment = parentSegment),
|
|
7028
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
|
7029
|
+
(task.formatContext = prevContext$jscomp$1);
|
|
6864
7030
|
}
|
|
6865
|
-
|
|
7031
|
+
var suspendedFallbackTask = createRenderTask(
|
|
6866
7032
|
request,
|
|
6867
7033
|
null,
|
|
6868
|
-
|
|
7034
|
+
fallback,
|
|
6869
7035
|
-1,
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
7036
|
+
parentBoundary,
|
|
7037
|
+
boundarySegment,
|
|
7038
|
+
newBoundary.fallbackPreamble,
|
|
7039
|
+
newBoundary.fallbackState,
|
|
6874
7040
|
fallbackAbortSet,
|
|
6875
7041
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
6876
|
-
task.formatContext,
|
|
7042
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
|
6877
7043
|
task.context,
|
|
6878
7044
|
task.treeContext,
|
|
6879
|
-
task.componentStack
|
|
6880
|
-
!0
|
|
7045
|
+
task.componentStack
|
|
6881
7046
|
);
|
|
6882
|
-
pushComponentStack(
|
|
6883
|
-
request.pingedTasks.push(
|
|
7047
|
+
pushComponentStack(suspendedFallbackTask);
|
|
7048
|
+
request.pingedTasks.push(suspendedFallbackTask);
|
|
6884
7049
|
}
|
|
6885
7050
|
}
|
|
6886
7051
|
return;
|
|
@@ -6888,24 +7053,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6888
7053
|
if ("object" === typeof type && null !== type)
|
|
6889
7054
|
switch (type.$$typeof) {
|
|
6890
7055
|
case REACT_FORWARD_REF_TYPE:
|
|
6891
|
-
if ("ref" in props)
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
else
|
|
6896
|
-
|
|
7056
|
+
if ("ref" in props) {
|
|
7057
|
+
var propsWithoutRef = {};
|
|
7058
|
+
for (var key in props)
|
|
7059
|
+
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
7060
|
+
} else propsWithoutRef = props;
|
|
7061
|
+
var children$jscomp$0 = renderWithHooks(
|
|
6897
7062
|
request,
|
|
6898
7063
|
task,
|
|
6899
7064
|
keyPath,
|
|
6900
7065
|
type.render,
|
|
6901
|
-
|
|
7066
|
+
propsWithoutRef,
|
|
6902
7067
|
ref
|
|
6903
7068
|
);
|
|
6904
7069
|
finishFunctionComponent(
|
|
6905
7070
|
request,
|
|
6906
7071
|
task,
|
|
6907
7072
|
keyPath,
|
|
6908
|
-
|
|
7073
|
+
children$jscomp$0,
|
|
6909
7074
|
0 !== localIdCounter,
|
|
6910
7075
|
actionStateCounter,
|
|
6911
7076
|
actionStateMatchingIndex
|
|
@@ -6916,45 +7081,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6916
7081
|
return;
|
|
6917
7082
|
case REACT_PROVIDER_TYPE:
|
|
6918
7083
|
case REACT_CONTEXT_TYPE:
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
type._currentValue2 =
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
7084
|
+
var children$jscomp$1 = props.children,
|
|
7085
|
+
prevKeyPath$jscomp$5 = task.keyPath,
|
|
7086
|
+
nextValue = props.value;
|
|
7087
|
+
var prevValue = type._currentValue2;
|
|
7088
|
+
type._currentValue2 = nextValue;
|
|
7089
|
+
var prevNode = currentActiveSnapshot,
|
|
7090
|
+
newNode = {
|
|
7091
|
+
parent: prevNode,
|
|
7092
|
+
depth: null === prevNode ? 0 : prevNode.depth + 1,
|
|
7093
|
+
context: type,
|
|
7094
|
+
parentValue: prevValue,
|
|
7095
|
+
value: nextValue
|
|
7096
|
+
};
|
|
7097
|
+
currentActiveSnapshot = newNode;
|
|
7098
|
+
task.context = newNode;
|
|
6933
7099
|
task.keyPath = keyPath;
|
|
6934
|
-
renderNodeDestructive(request, task,
|
|
6935
|
-
|
|
6936
|
-
if (null ===
|
|
7100
|
+
renderNodeDestructive(request, task, children$jscomp$1, -1);
|
|
7101
|
+
var prevSnapshot = currentActiveSnapshot;
|
|
7102
|
+
if (null === prevSnapshot)
|
|
6937
7103
|
throw Error(
|
|
6938
7104
|
"Tried to pop a Context at the root of the app. This is a bug in React."
|
|
6939
7105
|
);
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
task.
|
|
7106
|
+
prevSnapshot.context._currentValue2 = prevSnapshot.parentValue;
|
|
7107
|
+
var JSCompiler_inline_result$jscomp$3 = (currentActiveSnapshot =
|
|
7108
|
+
prevSnapshot.parent);
|
|
7109
|
+
task.context = JSCompiler_inline_result$jscomp$3;
|
|
7110
|
+
task.keyPath = prevKeyPath$jscomp$5;
|
|
6944
7111
|
return;
|
|
6945
7112
|
case REACT_CONSUMER_TYPE:
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
7113
|
+
var render = props.children,
|
|
7114
|
+
newChildren = render(type._context._currentValue2),
|
|
7115
|
+
prevKeyPath$jscomp$6 = task.keyPath;
|
|
6949
7116
|
task.keyPath = keyPath;
|
|
6950
|
-
renderNodeDestructive(request, task,
|
|
6951
|
-
task.keyPath =
|
|
7117
|
+
renderNodeDestructive(request, task, newChildren, -1);
|
|
7118
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
6952
7119
|
return;
|
|
6953
7120
|
case REACT_LAZY_TYPE:
|
|
6954
|
-
|
|
6955
|
-
|
|
7121
|
+
var init = type._init;
|
|
7122
|
+
var Component = init(type._payload);
|
|
6956
7123
|
if (12 === request.status) throw null;
|
|
6957
|
-
renderElement(request, task, keyPath,
|
|
7124
|
+
renderElement(request, task, keyPath, Component, props, ref);
|
|
6958
7125
|
return;
|
|
6959
7126
|
}
|
|
6960
7127
|
throw Error(
|
|
@@ -7090,6 +7257,7 @@ function retryNode(request, task) {
|
|
|
7090
7257
|
node$jscomp$0 =
|
|
7091
7258
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
7092
7259
|
var prevKeyPath = task.keyPath,
|
|
7260
|
+
prevContext = task.formatContext,
|
|
7093
7261
|
previousReplaySet = task.replay,
|
|
7094
7262
|
parentBoundary = task.blockedBoundary,
|
|
7095
7263
|
parentHoistableState = task.hoistableState,
|
|
@@ -7115,6 +7283,8 @@ function retryNode(request, task) {
|
|
|
7115
7283
|
task.blockedBoundary = props;
|
|
7116
7284
|
task.hoistableState = props.contentState;
|
|
7117
7285
|
task.keyPath = key;
|
|
7286
|
+
task.formatContext =
|
|
7287
|
+
getSuspenseContentFormatContext(prevContext);
|
|
7118
7288
|
task.replay = {
|
|
7119
7289
|
nodes: replay,
|
|
7120
7290
|
slots: name,
|
|
@@ -7155,7 +7325,8 @@ function retryNode(request, task) {
|
|
|
7155
7325
|
(task.blockedBoundary = parentBoundary),
|
|
7156
7326
|
(task.hoistableState = parentHoistableState),
|
|
7157
7327
|
(task.replay = previousReplaySet),
|
|
7158
|
-
(task.keyPath = prevKeyPath)
|
|
7328
|
+
(task.keyPath = prevKeyPath),
|
|
7329
|
+
(task.formatContext = prevContext);
|
|
7159
7330
|
}
|
|
7160
7331
|
task = createReplayTask(
|
|
7161
7332
|
request,
|
|
@@ -7171,11 +7342,10 @@ function retryNode(request, task) {
|
|
|
7171
7342
|
props.fallbackState,
|
|
7172
7343
|
fallbackAbortSet,
|
|
7173
7344
|
[key[0], "Suspense Fallback", key[2]],
|
|
7174
|
-
task.formatContext,
|
|
7345
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
|
7175
7346
|
task.context,
|
|
7176
7347
|
task.treeContext,
|
|
7177
|
-
task.componentStack
|
|
7178
|
-
!0
|
|
7348
|
+
task.componentStack
|
|
7179
7349
|
);
|
|
7180
7350
|
pushComponentStack(task);
|
|
7181
7351
|
request.pingedTasks.push(task);
|
|
@@ -7385,9 +7555,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7385
7555
|
addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
|
|
7386
7556
|
return;
|
|
7387
7557
|
}
|
|
7388
|
-
var boundaryNode$
|
|
7389
|
-
void 0 === boundaryNode$
|
|
7390
|
-
? ((boundaryNode$
|
|
7558
|
+
var boundaryNode$101 = trackedPostpones.workingMap.get(boundaryKeyPath);
|
|
7559
|
+
void 0 === boundaryNode$101
|
|
7560
|
+
? ((boundaryNode$101 = [
|
|
7391
7561
|
boundaryKeyPath[1],
|
|
7392
7562
|
boundaryKeyPath[2],
|
|
7393
7563
|
children,
|
|
@@ -7395,13 +7565,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7395
7565
|
fallbackReplayNode,
|
|
7396
7566
|
boundary.rootSegmentID
|
|
7397
7567
|
]),
|
|
7398
|
-
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$
|
|
7568
|
+
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$101),
|
|
7399
7569
|
addToReplayParent(
|
|
7400
|
-
boundaryNode$
|
|
7570
|
+
boundaryNode$101,
|
|
7401
7571
|
boundaryKeyPath[0],
|
|
7402
7572
|
trackedPostpones
|
|
7403
7573
|
))
|
|
7404
|
-
: ((boundaryKeyPath = boundaryNode$
|
|
7574
|
+
: ((boundaryKeyPath = boundaryNode$101),
|
|
7405
7575
|
(boundaryKeyPath[4] = fallbackReplayNode),
|
|
7406
7576
|
(boundaryKeyPath[5] = boundary.rootSegmentID));
|
|
7407
7577
|
}
|
|
@@ -7470,8 +7640,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
|
7470
7640
|
task.formatContext,
|
|
7471
7641
|
task.context,
|
|
7472
7642
|
task.treeContext,
|
|
7473
|
-
task.componentStack
|
|
7474
|
-
task.isFallback
|
|
7643
|
+
task.componentStack
|
|
7475
7644
|
);
|
|
7476
7645
|
}
|
|
7477
7646
|
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
@@ -7500,8 +7669,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
|
7500
7669
|
task.formatContext,
|
|
7501
7670
|
task.context,
|
|
7502
7671
|
task.treeContext,
|
|
7503
|
-
task.componentStack
|
|
7504
|
-
task.isFallback
|
|
7672
|
+
task.componentStack
|
|
7505
7673
|
);
|
|
7506
7674
|
}
|
|
7507
7675
|
function renderNode(request, task, node, childIndex) {
|
|
@@ -7555,15 +7723,15 @@ function renderNode(request, task, node, childIndex) {
|
|
|
7555
7723
|
chunkLength = segment.chunks.length;
|
|
7556
7724
|
try {
|
|
7557
7725
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
7558
|
-
} catch (thrownValue$
|
|
7726
|
+
} catch (thrownValue$113) {
|
|
7559
7727
|
if (
|
|
7560
7728
|
(resetHooksState(),
|
|
7561
7729
|
(segment.children.length = childrenLength),
|
|
7562
7730
|
(segment.chunks.length = chunkLength),
|
|
7563
7731
|
(childIndex =
|
|
7564
|
-
thrownValue$
|
|
7732
|
+
thrownValue$113 === SuspenseException
|
|
7565
7733
|
? getSuspendedThenable()
|
|
7566
|
-
: thrownValue$
|
|
7734
|
+
: thrownValue$113),
|
|
7567
7735
|
"object" === typeof childIndex && null !== childIndex)
|
|
7568
7736
|
) {
|
|
7569
7737
|
if ("function" === typeof childIndex.then) {
|
|
@@ -7764,16 +7932,16 @@ function abortTask(task, request, error) {
|
|
|
7764
7932
|
}
|
|
7765
7933
|
} else {
|
|
7766
7934
|
boundary.pendingTasks--;
|
|
7767
|
-
var trackedPostpones$
|
|
7935
|
+
var trackedPostpones$116 = request.trackedPostpones;
|
|
7768
7936
|
if (4 !== boundary.status) {
|
|
7769
|
-
if (null !== trackedPostpones$
|
|
7937
|
+
if (null !== trackedPostpones$116 && null !== segment)
|
|
7770
7938
|
return (
|
|
7771
7939
|
"object" === typeof error &&
|
|
7772
7940
|
null !== error &&
|
|
7773
7941
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
7774
7942
|
? logPostpone(request, error.message, errorInfo)
|
|
7775
7943
|
: logRecoverableError(request, error, errorInfo),
|
|
7776
|
-
trackPostpone(request, trackedPostpones$
|
|
7944
|
+
trackPostpone(request, trackedPostpones$116, task, segment),
|
|
7777
7945
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7778
7946
|
return abortTask(fallbackTask, request, error);
|
|
7779
7947
|
}),
|
|
@@ -8081,13 +8249,13 @@ function performWork(request$jscomp$1) {
|
|
|
8081
8249
|
null !== request.trackedPostpones &&
|
|
8082
8250
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
8083
8251
|
) {
|
|
8084
|
-
var trackedPostpones$
|
|
8252
|
+
var trackedPostpones$120 = request.trackedPostpones;
|
|
8085
8253
|
task.abortSet.delete(task);
|
|
8086
8254
|
var postponeInfo = getThrownInfo(task.componentStack);
|
|
8087
8255
|
logPostpone(request, x$jscomp$0.message, postponeInfo);
|
|
8088
8256
|
trackPostpone(
|
|
8089
8257
|
request,
|
|
8090
|
-
trackedPostpones$
|
|
8258
|
+
trackedPostpones$120,
|
|
8091
8259
|
task,
|
|
8092
8260
|
segment$jscomp$0
|
|
8093
8261
|
);
|
|
@@ -8641,12 +8809,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
8641
8809
|
completedBoundaries.splice(0, i);
|
|
8642
8810
|
var partialBoundaries = request.partialBoundaries;
|
|
8643
8811
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
8644
|
-
var boundary$
|
|
8812
|
+
var boundary$123 = partialBoundaries[i];
|
|
8645
8813
|
a: {
|
|
8646
8814
|
clientRenderedBoundaries = request;
|
|
8647
8815
|
boundary = destination;
|
|
8648
|
-
flushedByteSize = boundary$
|
|
8649
|
-
var completedSegments = boundary$
|
|
8816
|
+
flushedByteSize = boundary$123.byteSize;
|
|
8817
|
+
var completedSegments = boundary$123.completedSegments;
|
|
8650
8818
|
for (
|
|
8651
8819
|
JSCompiler_inline_result = 0;
|
|
8652
8820
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -8656,7 +8824,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8656
8824
|
!flushPartiallyCompletedSegment(
|
|
8657
8825
|
clientRenderedBoundaries,
|
|
8658
8826
|
boundary,
|
|
8659
|
-
boundary$
|
|
8827
|
+
boundary$123,
|
|
8660
8828
|
completedSegments[JSCompiler_inline_result]
|
|
8661
8829
|
)
|
|
8662
8830
|
) {
|
|
@@ -8668,7 +8836,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8668
8836
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8669
8837
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
8670
8838
|
boundary,
|
|
8671
|
-
boundary$
|
|
8839
|
+
boundary$123.contentState,
|
|
8672
8840
|
clientRenderedBoundaries.renderState
|
|
8673
8841
|
);
|
|
8674
8842
|
}
|
|
@@ -8739,8 +8907,8 @@ function abort(request, reason) {
|
|
|
8739
8907
|
}
|
|
8740
8908
|
null !== request.destination &&
|
|
8741
8909
|
flushCompletedQueues(request, request.destination);
|
|
8742
|
-
} catch (error$
|
|
8743
|
-
logRecoverableError(request, error$
|
|
8910
|
+
} catch (error$125) {
|
|
8911
|
+
logRecoverableError(request, error$125, {}), fatalError(request, error$125);
|
|
8744
8912
|
}
|
|
8745
8913
|
}
|
|
8746
8914
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -8983,7 +9151,7 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8983
9151
|
void 0,
|
|
8984
9152
|
void 0
|
|
8985
9153
|
),
|
|
8986
|
-
createFormatContext(0, null, 0),
|
|
9154
|
+
createFormatContext(0, null, 0, null),
|
|
8987
9155
|
Infinity,
|
|
8988
9156
|
function (error, errorInfo) {
|
|
8989
9157
|
if ("object" === typeof error && null !== error) {
|
|
@@ -9051,4 +9219,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
9051
9219
|
});
|
|
9052
9220
|
});
|
|
9053
9221
|
};
|
|
9054
|
-
exports.version = "19.2.0-experimental-
|
|
9222
|
+
exports.version = "19.2.0-experimental-4a45ba92-20250515";
|