react-dom 19.0.0-rc-380f5d67-20241113 → 19.0.0-rc.1
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 +394 -313
- package/cjs/react-dom-client.production.js +454 -383
- package/cjs/react-dom-profiling.development.js +394 -313
- package/cjs/react-dom-profiling.profiling.js +495 -426
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -597,28 +597,40 @@ function getNextLanes(root, wipLanes) {
|
|
597
597
|
var pendingLanes = root.pendingLanes;
|
598
598
|
if (0 === pendingLanes) return 0;
|
599
599
|
var nextLanes = 0,
|
600
|
-
suspendedLanes = root.suspendedLanes
|
601
|
-
|
600
|
+
suspendedLanes = root.suspendedLanes,
|
601
|
+
pingedLanes = root.pingedLanes,
|
602
|
+
warmLanes = root.warmLanes;
|
603
|
+
root = 0 !== root.finishedLanes;
|
602
604
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
603
605
|
0 !== nonIdlePendingLanes
|
604
606
|
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
|
605
607
|
0 !== pendingLanes
|
606
608
|
? (nextLanes = getHighestPriorityLanes(pendingLanes))
|
607
|
-
: ((
|
608
|
-
0 !==
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
609
|
+
: ((pingedLanes &= nonIdlePendingLanes),
|
610
|
+
0 !== pingedLanes
|
611
|
+
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
612
|
+
: root ||
|
613
|
+
((warmLanes = nonIdlePendingLanes & ~warmLanes),
|
614
|
+
0 !== warmLanes &&
|
615
|
+
(nextLanes = getHighestPriorityLanes(warmLanes)))))
|
616
|
+
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
617
|
+
0 !== nonIdlePendingLanes
|
618
|
+
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
619
|
+
: 0 !== pingedLanes
|
620
|
+
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
621
|
+
: root ||
|
622
|
+
((warmLanes = pendingLanes & ~warmLanes),
|
623
|
+
0 !== warmLanes &&
|
624
|
+
(nextLanes = getHighestPriorityLanes(warmLanes))));
|
613
625
|
return 0 === nextLanes
|
614
626
|
? 0
|
615
627
|
: 0 !== wipLanes &&
|
616
628
|
wipLanes !== nextLanes &&
|
617
629
|
0 === (wipLanes & suspendedLanes) &&
|
618
630
|
((suspendedLanes = nextLanes & -nextLanes),
|
619
|
-
(
|
620
|
-
suspendedLanes >=
|
621
|
-
(32 === suspendedLanes && 0 !== (
|
631
|
+
(warmLanes = wipLanes & -wipLanes),
|
632
|
+
suspendedLanes >= warmLanes ||
|
633
|
+
(32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
|
622
634
|
? wipLanes
|
623
635
|
: nextLanes;
|
624
636
|
}
|
@@ -692,7 +704,14 @@ function markRootUpdated$1(root, updateLane) {
|
|
692
704
|
268435456 !== updateLane &&
|
693
705
|
((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));
|
694
706
|
}
|
695
|
-
function markRootFinished(
|
707
|
+
function markRootFinished(
|
708
|
+
root,
|
709
|
+
finishedLanes,
|
710
|
+
remainingLanes,
|
711
|
+
spawnedLane,
|
712
|
+
updatedLanes,
|
713
|
+
suspendedRetryLanes
|
714
|
+
) {
|
696
715
|
var previouslyPendingLanes = root.pendingLanes;
|
697
716
|
root.pendingLanes = remainingLanes;
|
698
717
|
root.suspendedLanes = 0;
|
@@ -702,31 +721,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) {
|
|
702
721
|
root.entangledLanes &= remainingLanes;
|
703
722
|
root.errorRecoveryDisabledLanes &= remainingLanes;
|
704
723
|
root.shellSuspendCounter = 0;
|
705
|
-
|
706
|
-
|
724
|
+
var entanglements = root.entanglements,
|
725
|
+
expirationTimes = root.expirationTimes,
|
707
726
|
hiddenUpdates = root.hiddenUpdates;
|
708
727
|
for (
|
709
728
|
remainingLanes = previouslyPendingLanes & ~remainingLanes;
|
710
729
|
0 < remainingLanes;
|
711
730
|
|
712
731
|
) {
|
713
|
-
var index$
|
714
|
-
|
715
|
-
|
716
|
-
expirationTimes[index$
|
717
|
-
var hiddenUpdatesForLane = hiddenUpdates[index$
|
732
|
+
var index$7 = 31 - clz32(remainingLanes),
|
733
|
+
lane = 1 << index$7;
|
734
|
+
entanglements[index$7] = 0;
|
735
|
+
expirationTimes[index$7] = -1;
|
736
|
+
var hiddenUpdatesForLane = hiddenUpdates[index$7];
|
718
737
|
if (null !== hiddenUpdatesForLane)
|
719
738
|
for (
|
720
|
-
hiddenUpdates[index$
|
721
|
-
index$
|
722
|
-
index$
|
739
|
+
hiddenUpdates[index$7] = null, index$7 = 0;
|
740
|
+
index$7 < hiddenUpdatesForLane.length;
|
741
|
+
index$7++
|
723
742
|
) {
|
724
|
-
var update = hiddenUpdatesForLane[index$
|
743
|
+
var update = hiddenUpdatesForLane[index$7];
|
725
744
|
null !== update && (update.lane &= -536870913);
|
726
745
|
}
|
727
|
-
remainingLanes &= ~
|
746
|
+
remainingLanes &= ~lane;
|
728
747
|
}
|
729
748
|
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
|
749
|
+
0 !== suspendedRetryLanes &&
|
750
|
+
0 === updatedLanes &&
|
751
|
+
0 !== root.tag &&
|
752
|
+
(root.suspendedLanes |=
|
753
|
+
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
|
730
754
|
}
|
731
755
|
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
|
732
756
|
root.pendingLanes |= spawnedLane;
|
@@ -741,10 +765,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
|
|
741
765
|
function markRootEntangled(root, entangledLanes) {
|
742
766
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
743
767
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
744
|
-
var index$
|
745
|
-
lane = 1 << index$
|
746
|
-
(lane & entangledLanes) | (root[index$
|
747
|
-
(root[index$
|
768
|
+
var index$8 = 31 - clz32(rootEntangledLanes),
|
769
|
+
lane = 1 << index$8;
|
770
|
+
(lane & entangledLanes) | (root[index$8] & entangledLanes) &&
|
771
|
+
(root[index$8] |= entangledLanes);
|
748
772
|
rootEntangledLanes &= ~lane;
|
749
773
|
}
|
750
774
|
}
|
@@ -894,8 +918,8 @@ function setValueForAttribute(node, name, value) {
|
|
894
918
|
node.removeAttribute(name);
|
895
919
|
return;
|
896
920
|
case "boolean":
|
897
|
-
var prefix$
|
898
|
-
if ("data-" !== prefix$
|
921
|
+
var prefix$10 = name.toLowerCase().slice(0, 5);
|
922
|
+
if ("data-" !== prefix$10 && "aria-" !== prefix$10) {
|
899
923
|
node.removeAttribute(name);
|
900
924
|
return;
|
901
925
|
}
|
@@ -1228,15 +1252,15 @@ function setValueForStyles(node, styles, prevStyles) {
|
|
1228
1252
|
: "float" === styleName
|
1229
1253
|
? (node.cssFloat = "")
|
1230
1254
|
: (node[styleName] = ""));
|
1231
|
-
for (var styleName$15 in styles)
|
1232
|
-
(styleName = styles[styleName$15]),
|
1233
|
-
styles.hasOwnProperty(styleName$15) &&
|
1234
|
-
prevStyles[styleName$15] !== styleName &&
|
1235
|
-
setValueForStyle(node, styleName$15, styleName);
|
1236
|
-
} else
|
1237
1255
|
for (var styleName$16 in styles)
|
1238
|
-
|
1239
|
-
|
1256
|
+
(styleName = styles[styleName$16]),
|
1257
|
+
styles.hasOwnProperty(styleName$16) &&
|
1258
|
+
prevStyles[styleName$16] !== styleName &&
|
1259
|
+
setValueForStyle(node, styleName$16, styleName);
|
1260
|
+
} else
|
1261
|
+
for (var styleName$17 in styles)
|
1262
|
+
styles.hasOwnProperty(styleName$17) &&
|
1263
|
+
setValueForStyle(node, styleName$17, styles[styleName$17]);
|
1240
1264
|
}
|
1241
1265
|
function isCustomElement(tagName) {
|
1242
1266
|
if (-1 === tagName.indexOf("-")) return !1;
|
@@ -1965,19 +1989,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
|
|
1965
1989
|
}
|
1966
1990
|
var isInputEventSupported = !1;
|
1967
1991
|
if (canUseDOM) {
|
1968
|
-
var JSCompiler_inline_result$jscomp$
|
1992
|
+
var JSCompiler_inline_result$jscomp$283;
|
1969
1993
|
if (canUseDOM) {
|
1970
|
-
var isSupported$jscomp$
|
1971
|
-
if (!isSupported$jscomp$
|
1972
|
-
var element$jscomp$
|
1973
|
-
element$jscomp$
|
1974
|
-
isSupported$jscomp$
|
1975
|
-
"function" === typeof element$jscomp$
|
1994
|
+
var isSupported$jscomp$inline_418 = "oninput" in document;
|
1995
|
+
if (!isSupported$jscomp$inline_418) {
|
1996
|
+
var element$jscomp$inline_419 = document.createElement("div");
|
1997
|
+
element$jscomp$inline_419.setAttribute("oninput", "return;");
|
1998
|
+
isSupported$jscomp$inline_418 =
|
1999
|
+
"function" === typeof element$jscomp$inline_419.oninput;
|
1976
2000
|
}
|
1977
|
-
JSCompiler_inline_result$jscomp$
|
1978
|
-
} else JSCompiler_inline_result$jscomp$
|
2001
|
+
JSCompiler_inline_result$jscomp$283 = isSupported$jscomp$inline_418;
|
2002
|
+
} else JSCompiler_inline_result$jscomp$283 = !1;
|
1979
2003
|
isInputEventSupported =
|
1980
|
-
JSCompiler_inline_result$jscomp$
|
2004
|
+
JSCompiler_inline_result$jscomp$283 &&
|
1981
2005
|
(!document.documentMode || 9 < document.documentMode);
|
1982
2006
|
}
|
1983
2007
|
function stopWatchingForValueChange() {
|
@@ -3883,7 +3907,7 @@ function updateReducerImpl(hook, current, reducer) {
|
|
3883
3907
|
var newBaseQueueFirst = (baseFirst = null),
|
3884
3908
|
newBaseQueueLast = null,
|
3885
3909
|
update = current,
|
3886
|
-
didReadFromEntangledAsyncAction$
|
3910
|
+
didReadFromEntangledAsyncAction$54 = !1;
|
3887
3911
|
do {
|
3888
3912
|
var updateLane = update.lane & -536870913;
|
3889
3913
|
if (
|
@@ -3904,11 +3928,11 @@ function updateReducerImpl(hook, current, reducer) {
|
|
3904
3928
|
next: null
|
3905
3929
|
}),
|
3906
3930
|
updateLane === currentEntangledLane &&
|
3907
|
-
(didReadFromEntangledAsyncAction$
|
3931
|
+
(didReadFromEntangledAsyncAction$54 = !0);
|
3908
3932
|
else if ((renderLanes & revertLane) === revertLane) {
|
3909
3933
|
update = update.next;
|
3910
3934
|
revertLane === currentEntangledLane &&
|
3911
|
-
(didReadFromEntangledAsyncAction$
|
3935
|
+
(didReadFromEntangledAsyncAction$54 = !0);
|
3912
3936
|
continue;
|
3913
3937
|
} else
|
3914
3938
|
(updateLane = {
|
@@ -3954,7 +3978,7 @@ function updateReducerImpl(hook, current, reducer) {
|
|
3954
3978
|
if (
|
3955
3979
|
!objectIs(pendingQueue, hook.memoizedState) &&
|
3956
3980
|
((didReceiveUpdate = !0),
|
3957
|
-
didReadFromEntangledAsyncAction$
|
3981
|
+
didReadFromEntangledAsyncAction$54 &&
|
3958
3982
|
((reducer = currentEntangledActionThenable), null !== reducer))
|
3959
3983
|
)
|
3960
3984
|
throw reducer;
|
@@ -4156,8 +4180,8 @@ function runActionStateAction(actionQueue, node) {
|
|
4156
4180
|
try {
|
4157
4181
|
(prevTransition = action(prevState, payload)),
|
4158
4182
|
handleActionReturnValue(actionQueue, node, prevTransition);
|
4159
|
-
} catch (error$
|
4160
|
-
onActionError(actionQueue, node, error$
|
4183
|
+
} catch (error$60) {
|
4184
|
+
onActionError(actionQueue, node, error$60);
|
4161
4185
|
}
|
4162
4186
|
}
|
4163
4187
|
function handleActionReturnValue(actionQueue, node, returnValue) {
|
@@ -4588,10 +4612,10 @@ function refreshCache(fiber) {
|
|
4588
4612
|
case 3:
|
4589
4613
|
var lane = requestUpdateLane();
|
4590
4614
|
fiber = createUpdate(lane);
|
4591
|
-
var root$
|
4592
|
-
null !== root$
|
4593
|
-
(scheduleUpdateOnFiber(root$
|
4594
|
-
entangleTransitions(root$
|
4615
|
+
var root$63 = enqueueUpdate(provider, fiber, lane);
|
4616
|
+
null !== root$63 &&
|
4617
|
+
(scheduleUpdateOnFiber(root$63, provider, lane),
|
4618
|
+
entangleTransitions(root$63, provider, lane));
|
4595
4619
|
provider = { cache: createCache() };
|
4596
4620
|
fiber.payload = provider;
|
4597
4621
|
return;
|
@@ -5118,9 +5142,9 @@ function resolveClassComponentProps(Component, baseProps) {
|
|
5118
5142
|
}
|
5119
5143
|
if ((Component = Component.defaultProps)) {
|
5120
5144
|
newProps === baseProps && (newProps = assign({}, newProps));
|
5121
|
-
for (var propName$
|
5122
|
-
void 0 === newProps[propName$
|
5123
|
-
(newProps[propName$
|
5145
|
+
for (var propName$67 in Component)
|
5146
|
+
void 0 === newProps[propName$67] &&
|
5147
|
+
(newProps[propName$67] = Component[propName$67]);
|
5124
5148
|
}
|
5125
5149
|
return newProps;
|
5126
5150
|
}
|
@@ -5166,9 +5190,9 @@ function logUncaughtError(root, errorInfo) {
|
|
5166
5190
|
try {
|
5167
5191
|
var onUncaughtError = root.onUncaughtError;
|
5168
5192
|
onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
|
5169
|
-
} catch (e$
|
5193
|
+
} catch (e$68) {
|
5170
5194
|
setTimeout(function () {
|
5171
|
-
throw e$
|
5195
|
+
throw e$68;
|
5172
5196
|
});
|
5173
5197
|
}
|
5174
5198
|
}
|
@@ -5179,9 +5203,9 @@ function logCaughtError(root, boundary, errorInfo) {
|
|
5179
5203
|
componentStack: errorInfo.stack,
|
5180
5204
|
errorBoundary: 1 === boundary.tag ? boundary.stateNode : null
|
5181
5205
|
});
|
5182
|
-
} catch (e$
|
5206
|
+
} catch (e$69) {
|
5183
5207
|
setTimeout(function () {
|
5184
|
-
throw e$
|
5208
|
+
throw e$69;
|
5185
5209
|
});
|
5186
5210
|
}
|
5187
5211
|
}
|
@@ -7571,8 +7595,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
7571
7595
|
else if ("function" === typeof ref)
|
7572
7596
|
try {
|
7573
7597
|
ref(null);
|
7574
|
-
} catch (error$
|
7575
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error$
|
7598
|
+
} catch (error$112) {
|
7599
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$112);
|
7576
7600
|
}
|
7577
7601
|
else ref.current = null;
|
7578
7602
|
}
|
@@ -7706,7 +7730,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
7706
7730
|
selection = selection.focusOffset;
|
7707
7731
|
try {
|
7708
7732
|
JSCompiler_temp.nodeType, focusNode.nodeType;
|
7709
|
-
} catch (e$
|
7733
|
+
} catch (e$20) {
|
7710
7734
|
JSCompiler_temp = null;
|
7711
7735
|
break a;
|
7712
7736
|
}
|
@@ -7868,11 +7892,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
7868
7892
|
current,
|
7869
7893
|
finishedRoot.__reactInternalSnapshotBeforeUpdate
|
7870
7894
|
);
|
7871
|
-
} catch (error$
|
7895
|
+
} catch (error$111) {
|
7872
7896
|
captureCommitPhaseError(
|
7873
7897
|
finishedWork,
|
7874
7898
|
finishedWork.return,
|
7875
|
-
error$
|
7899
|
+
error$111
|
7876
7900
|
);
|
7877
7901
|
}
|
7878
7902
|
}
|
@@ -8026,7 +8050,7 @@ function commitDeletionEffectsOnFiber(
|
|
8026
8050
|
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
8027
8051
|
case 6:
|
8028
8052
|
prevHostParentIsContainer = hostParent;
|
8029
|
-
var prevHostParentIsContainer$
|
8053
|
+
var prevHostParentIsContainer$119 = hostParentIsContainer;
|
8030
8054
|
hostParent = null;
|
8031
8055
|
recursivelyTraverseDeletionEffects(
|
8032
8056
|
finishedRoot,
|
@@ -8034,7 +8058,7 @@ function commitDeletionEffectsOnFiber(
|
|
8034
8058
|
deletedFiber
|
8035
8059
|
);
|
8036
8060
|
hostParent = prevHostParentIsContainer;
|
8037
|
-
hostParentIsContainer = prevHostParentIsContainer$
|
8061
|
+
hostParentIsContainer = prevHostParentIsContainer$119;
|
8038
8062
|
if (null !== hostParent)
|
8039
8063
|
if (hostParentIsContainer)
|
8040
8064
|
try {
|
@@ -8667,21 +8691,21 @@ function commitReconciliationEffects(finishedWork) {
|
|
8667
8691
|
insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0);
|
8668
8692
|
break;
|
8669
8693
|
case 5:
|
8670
|
-
var parent$
|
8694
|
+
var parent$113 = JSCompiler_inline_result.stateNode;
|
8671
8695
|
JSCompiler_inline_result.flags & 32 &&
|
8672
|
-
(setTextContent(parent$
|
8696
|
+
(setTextContent(parent$113, ""),
|
8673
8697
|
(JSCompiler_inline_result.flags &= -33));
|
8674
|
-
var before$
|
8675
|
-
insertOrAppendPlacementNode(finishedWork, before$
|
8698
|
+
var before$114 = getHostSibling(finishedWork);
|
8699
|
+
insertOrAppendPlacementNode(finishedWork, before$114, parent$113);
|
8676
8700
|
break;
|
8677
8701
|
case 3:
|
8678
8702
|
case 4:
|
8679
|
-
var parent$
|
8680
|
-
before$
|
8703
|
+
var parent$115 = JSCompiler_inline_result.stateNode.containerInfo,
|
8704
|
+
before$116 = getHostSibling(finishedWork);
|
8681
8705
|
insertOrAppendPlacementNodeIntoContainer(
|
8682
8706
|
finishedWork,
|
8683
|
-
before$
|
8684
|
-
parent$
|
8707
|
+
before$116,
|
8708
|
+
parent$115
|
8685
8709
|
);
|
8686
8710
|
break;
|
8687
8711
|
default:
|
@@ -9565,20 +9589,32 @@ function markUpdate(workInProgress) {
|
|
9565
9589
|
function preloadResourceAndSuspendIfNeeded(workInProgress, resource) {
|
9566
9590
|
if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4))
|
9567
9591
|
workInProgress.flags &= -16777217;
|
9568
|
-
else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))
|
9569
|
-
|
9570
|
-
|
9592
|
+
else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) {
|
9593
|
+
resource = suspenseHandlerStackCursor.current;
|
9594
|
+
if (
|
9595
|
+
null !== resource &&
|
9596
|
+
((workInProgressRootRenderLanes & 4194176) ===
|
9597
|
+
workInProgressRootRenderLanes
|
9598
|
+
? null !== shellBoundary
|
9599
|
+
: ((workInProgressRootRenderLanes & 62914560) !==
|
9600
|
+
workInProgressRootRenderLanes &&
|
9601
|
+
0 === (workInProgressRootRenderLanes & 536870912)) ||
|
9602
|
+
resource !== shellBoundary)
|
9603
|
+
)
|
9571
9604
|
throw (
|
9572
9605
|
((suspendedThenable = noopSuspenseyCommitThenable),
|
9573
9606
|
SuspenseyCommitException)
|
9574
9607
|
);
|
9608
|
+
workInProgress.flags |= 8192;
|
9609
|
+
}
|
9575
9610
|
}
|
9576
9611
|
function scheduleRetryEffect(workInProgress, retryQueue) {
|
9577
9612
|
null !== retryQueue && (workInProgress.flags |= 4);
|
9578
9613
|
workInProgress.flags & 16384 &&
|
9579
9614
|
((retryQueue =
|
9580
9615
|
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
|
9581
|
-
(workInProgress.lanes |= retryQueue)
|
9616
|
+
(workInProgress.lanes |= retryQueue),
|
9617
|
+
(workInProgressSuspendedRetryLanes |= retryQueue));
|
9582
9618
|
}
|
9583
9619
|
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
9584
9620
|
if (!isHydrating)
|
@@ -9595,14 +9631,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
9595
9631
|
break;
|
9596
9632
|
case "collapsed":
|
9597
9633
|
lastTailNode = renderState.tail;
|
9598
|
-
for (var lastTailNode$
|
9599
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
9634
|
+
for (var lastTailNode$131 = null; null !== lastTailNode; )
|
9635
|
+
null !== lastTailNode.alternate && (lastTailNode$131 = lastTailNode),
|
9600
9636
|
(lastTailNode = lastTailNode.sibling);
|
9601
|
-
null === lastTailNode$
|
9637
|
+
null === lastTailNode$131
|
9602
9638
|
? hasRenderedATailFallback || null === renderState.tail
|
9603
9639
|
? (renderState.tail = null)
|
9604
9640
|
: (renderState.tail.sibling = null)
|
9605
|
-
: (lastTailNode$
|
9641
|
+
: (lastTailNode$131.sibling = null);
|
9606
9642
|
}
|
9607
9643
|
}
|
9608
9644
|
function bubbleProperties(completedWork) {
|
@@ -9612,19 +9648,19 @@ function bubbleProperties(completedWork) {
|
|
9612
9648
|
newChildLanes = 0,
|
9613
9649
|
subtreeFlags = 0;
|
9614
9650
|
if (didBailout)
|
9615
|
-
for (var child$
|
9616
|
-
(newChildLanes |= child$
|
9617
|
-
(subtreeFlags |= child$
|
9618
|
-
(subtreeFlags |= child$
|
9619
|
-
(child$
|
9620
|
-
(child$
|
9651
|
+
for (var child$132 = completedWork.child; null !== child$132; )
|
9652
|
+
(newChildLanes |= child$132.lanes | child$132.childLanes),
|
9653
|
+
(subtreeFlags |= child$132.subtreeFlags & 31457280),
|
9654
|
+
(subtreeFlags |= child$132.flags & 31457280),
|
9655
|
+
(child$132.return = completedWork),
|
9656
|
+
(child$132 = child$132.sibling);
|
9621
9657
|
else
|
9622
|
-
for (child$
|
9623
|
-
(newChildLanes |= child$
|
9624
|
-
(subtreeFlags |= child$
|
9625
|
-
(subtreeFlags |= child$
|
9626
|
-
(child$
|
9627
|
-
(child$
|
9658
|
+
for (child$132 = completedWork.child; null !== child$132; )
|
9659
|
+
(newChildLanes |= child$132.lanes | child$132.childLanes),
|
9660
|
+
(subtreeFlags |= child$132.subtreeFlags),
|
9661
|
+
(subtreeFlags |= child$132.flags),
|
9662
|
+
(child$132.return = completedWork),
|
9663
|
+
(child$132 = child$132.sibling);
|
9628
9664
|
completedWork.subtreeFlags |= subtreeFlags;
|
9629
9665
|
completedWork.childLanes = newChildLanes;
|
9630
9666
|
return didBailout;
|
@@ -9901,11 +9937,11 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
9901
9937
|
null !== newProps.alternate.memoizedState &&
|
9902
9938
|
null !== newProps.alternate.memoizedState.cachePool &&
|
9903
9939
|
(type = newProps.alternate.memoizedState.cachePool.pool);
|
9904
|
-
var cache$
|
9940
|
+
var cache$144 = null;
|
9905
9941
|
null !== newProps.memoizedState &&
|
9906
9942
|
null !== newProps.memoizedState.cachePool &&
|
9907
|
-
(cache$
|
9908
|
-
cache$
|
9943
|
+
(cache$144 = newProps.memoizedState.cachePool.pool);
|
9944
|
+
cache$144 !== type && (newProps.flags |= 2048);
|
9909
9945
|
}
|
9910
9946
|
renderLanes !== current &&
|
9911
9947
|
renderLanes &&
|
@@ -9930,8 +9966,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
9930
9966
|
type = workInProgress.memoizedState;
|
9931
9967
|
if (null === type) return bubbleProperties(workInProgress), null;
|
9932
9968
|
newProps = 0 !== (workInProgress.flags & 128);
|
9933
|
-
cache$
|
9934
|
-
if (null === cache$
|
9969
|
+
cache$144 = type.rendering;
|
9970
|
+
if (null === cache$144)
|
9935
9971
|
if (newProps) cutOffTailIfNeeded(type, !1);
|
9936
9972
|
else {
|
9937
9973
|
if (
|
@@ -9939,11 +9975,11 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
9939
9975
|
(null !== current && 0 !== (current.flags & 128))
|
9940
9976
|
)
|
9941
9977
|
for (current = workInProgress.child; null !== current; ) {
|
9942
|
-
cache$
|
9943
|
-
if (null !== cache$
|
9978
|
+
cache$144 = findFirstSuspended(current);
|
9979
|
+
if (null !== cache$144) {
|
9944
9980
|
workInProgress.flags |= 128;
|
9945
9981
|
cutOffTailIfNeeded(type, !1);
|
9946
|
-
current = cache$
|
9982
|
+
current = cache$144.updateQueue;
|
9947
9983
|
workInProgress.updateQueue = current;
|
9948
9984
|
scheduleRetryEffect(workInProgress, current);
|
9949
9985
|
workInProgress.subtreeFlags = 0;
|
@@ -9968,7 +10004,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
9968
10004
|
}
|
9969
10005
|
else {
|
9970
10006
|
if (!newProps)
|
9971
|
-
if (((current = findFirstSuspended(cache$
|
10007
|
+
if (((current = findFirstSuspended(cache$144)), null !== current)) {
|
9972
10008
|
if (
|
9973
10009
|
((workInProgress.flags |= 128),
|
9974
10010
|
(newProps = !0),
|
@@ -9978,7 +10014,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
9978
10014
|
cutOffTailIfNeeded(type, !0),
|
9979
10015
|
null === type.tail &&
|
9980
10016
|
"hidden" === type.tailMode &&
|
9981
|
-
!cache$
|
10017
|
+
!cache$144.alternate &&
|
9982
10018
|
!isHydrating)
|
9983
10019
|
)
|
9984
10020
|
return bubbleProperties(workInProgress), null;
|
@@ -9991,13 +10027,13 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
9991
10027
|
cutOffTailIfNeeded(type, !1),
|
9992
10028
|
(workInProgress.lanes = 4194304));
|
9993
10029
|
type.isBackwards
|
9994
|
-
? ((cache$
|
9995
|
-
(workInProgress.child = cache$
|
10030
|
+
? ((cache$144.sibling = workInProgress.child),
|
10031
|
+
(workInProgress.child = cache$144))
|
9996
10032
|
: ((current = type.last),
|
9997
10033
|
null !== current
|
9998
|
-
? (current.sibling = cache$
|
9999
|
-
: (workInProgress.child = cache$
|
10000
|
-
(type.last = cache$
|
10034
|
+
? (current.sibling = cache$144)
|
10035
|
+
: (workInProgress.child = cache$144),
|
10036
|
+
(type.last = cache$144));
|
10001
10037
|
}
|
10002
10038
|
if (null !== type.tail)
|
10003
10039
|
return (
|
@@ -10171,6 +10207,7 @@ var DefaultAsyncDispatcher = {
|
|
10171
10207
|
workInProgressSuspendedReason = 0,
|
10172
10208
|
workInProgressThrownValue = null,
|
10173
10209
|
workInProgressRootDidSkipSuspendedSiblings = !1,
|
10210
|
+
workInProgressRootIsPrerendering = !1,
|
10174
10211
|
workInProgressRootDidAttachPingListener = !1,
|
10175
10212
|
entangledRenderLanes = 0,
|
10176
10213
|
workInProgressRootExitStatus = 0,
|
@@ -10221,7 +10258,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
|
|
10221
10258
|
markRootSuspended(
|
10222
10259
|
root,
|
10223
10260
|
workInProgressRootRenderLanes,
|
10224
|
-
workInProgressDeferredLane
|
10261
|
+
workInProgressDeferredLane,
|
10262
|
+
!1
|
10225
10263
|
);
|
10226
10264
|
markRootUpdated$1(root, lane);
|
10227
10265
|
if (0 === (executionContext & 2) || root !== workInProgressRoot)
|
@@ -10232,23 +10270,35 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
|
|
10232
10270
|
markRootSuspended(
|
10233
10271
|
root,
|
10234
10272
|
workInProgressRootRenderLanes,
|
10235
|
-
workInProgressDeferredLane
|
10273
|
+
workInProgressDeferredLane,
|
10274
|
+
!1
|
10236
10275
|
)),
|
10237
10276
|
ensureRootIsScheduled(root);
|
10238
10277
|
}
|
10239
10278
|
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
10240
10279
|
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
10241
|
-
var
|
10280
|
+
var shouldTimeSlice =
|
10242
10281
|
(!forceSync &&
|
10243
10282
|
0 === (lanes & 60) &&
|
10244
10283
|
0 === (lanes & root$jscomp$0.expiredLanes)) ||
|
10245
|
-
|
10284
|
+
checkIfRootIsPrerendering(root$jscomp$0, lanes),
|
10285
|
+
exitStatus = shouldTimeSlice
|
10246
10286
|
? renderRootConcurrent(root$jscomp$0, lanes)
|
10247
10287
|
: renderRootSync(root$jscomp$0, lanes, !0),
|
10248
|
-
renderWasConcurrent =
|
10288
|
+
renderWasConcurrent = shouldTimeSlice;
|
10249
10289
|
do {
|
10250
|
-
if (0 === exitStatus)
|
10251
|
-
|
10290
|
+
if (0 === exitStatus) {
|
10291
|
+
workInProgressRootIsPrerendering &&
|
10292
|
+
!shouldTimeSlice &&
|
10293
|
+
markRootSuspended(root$jscomp$0, lanes, 0, !1);
|
10294
|
+
break;
|
10295
|
+
} else if (6 === exitStatus)
|
10296
|
+
markRootSuspended(
|
10297
|
+
root$jscomp$0,
|
10298
|
+
lanes,
|
10299
|
+
0,
|
10300
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
10301
|
+
);
|
10252
10302
|
else {
|
10253
10303
|
forceSync = root$jscomp$0.current.alternate;
|
10254
10304
|
if (
|
@@ -10308,11 +10358,11 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
10308
10358
|
}
|
10309
10359
|
if (1 === exitStatus) {
|
10310
10360
|
prepareFreshStack(root$jscomp$0, 0);
|
10311
|
-
markRootSuspended(root$jscomp$0, lanes, 0);
|
10361
|
+
markRootSuspended(root$jscomp$0, lanes, 0, !0);
|
10312
10362
|
break;
|
10313
10363
|
}
|
10314
10364
|
a: {
|
10315
|
-
|
10365
|
+
shouldTimeSlice = root$jscomp$0;
|
10316
10366
|
switch (exitStatus) {
|
10317
10367
|
case 0:
|
10318
10368
|
case 1:
|
@@ -10320,9 +10370,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
10320
10370
|
case 4:
|
10321
10371
|
if ((lanes & 4194176) === lanes) {
|
10322
10372
|
markRootSuspended(
|
10323
|
-
|
10373
|
+
shouldTimeSlice,
|
10324
10374
|
lanes,
|
10325
|
-
workInProgressDeferredLane
|
10375
|
+
workInProgressDeferredLane,
|
10376
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
10326
10377
|
);
|
10327
10378
|
break a;
|
10328
10379
|
}
|
@@ -10336,23 +10387,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
10336
10387
|
default:
|
10337
10388
|
throw Error(formatProdErrorMessage(329));
|
10338
10389
|
}
|
10339
|
-
|
10340
|
-
|
10390
|
+
shouldTimeSlice.finishedWork = forceSync;
|
10391
|
+
shouldTimeSlice.finishedLanes = lanes;
|
10341
10392
|
if (
|
10342
10393
|
(lanes & 62914560) === lanes &&
|
10343
|
-
((
|
10344
|
-
10 <
|
10394
|
+
((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()),
|
10395
|
+
10 < renderWasConcurrent)
|
10345
10396
|
) {
|
10346
10397
|
markRootSuspended(
|
10347
|
-
|
10398
|
+
shouldTimeSlice,
|
10348
10399
|
lanes,
|
10349
|
-
workInProgressDeferredLane
|
10400
|
+
workInProgressDeferredLane,
|
10401
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
10350
10402
|
);
|
10351
|
-
if (0 !== getNextLanes(
|
10352
|
-
|
10403
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
10404
|
+
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
10353
10405
|
commitRootWhenReady.bind(
|
10354
10406
|
null,
|
10355
|
-
|
10407
|
+
shouldTimeSlice,
|
10356
10408
|
forceSync,
|
10357
10409
|
workInProgressRootRecoverableErrors,
|
10358
10410
|
workInProgressTransitions,
|
@@ -10366,12 +10418,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
10366
10418
|
-0,
|
10367
10419
|
0
|
10368
10420
|
),
|
10369
|
-
|
10421
|
+
renderWasConcurrent
|
10370
10422
|
);
|
10371
10423
|
break a;
|
10372
10424
|
}
|
10373
10425
|
commitRootWhenReady(
|
10374
|
-
|
10426
|
+
shouldTimeSlice,
|
10375
10427
|
forceSync,
|
10376
10428
|
workInProgressRootRecoverableErrors,
|
10377
10429
|
workInProgressTransitions,
|
@@ -10414,11 +10466,8 @@ function commitRootWhenReady(
|
|
10414
10466
|
completedRenderStartTime,
|
10415
10467
|
completedRenderEndTime
|
10416
10468
|
) {
|
10417
|
-
|
10418
|
-
if (
|
10419
|
-
didSkipSuspendedSiblings & 8192 ||
|
10420
|
-
16785408 === (didSkipSuspendedSiblings & 16785408)
|
10421
|
-
)
|
10469
|
+
var subtreeFlags = finishedWork.subtreeFlags;
|
10470
|
+
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
|
10422
10471
|
if (
|
10423
10472
|
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
|
10424
10473
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
@@ -10440,7 +10489,7 @@ function commitRootWhenReady(
|
|
10440
10489
|
completedRenderEndTime
|
10441
10490
|
)
|
10442
10491
|
);
|
10443
|
-
markRootSuspended(root, lanes, spawnedLane);
|
10492
|
+
markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
|
10444
10493
|
return;
|
10445
10494
|
}
|
10446
10495
|
commitRoot(
|
@@ -10490,19 +10539,22 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
10490
10539
|
}
|
10491
10540
|
return !0;
|
10492
10541
|
}
|
10493
|
-
function markRootSuspended(
|
10542
|
+
function markRootSuspended(
|
10543
|
+
root,
|
10544
|
+
suspendedLanes,
|
10545
|
+
spawnedLane,
|
10546
|
+
didAttemptEntireTree
|
10547
|
+
) {
|
10494
10548
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
10495
10549
|
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
10496
10550
|
root.suspendedLanes |= suspendedLanes;
|
10497
10551
|
root.pingedLanes &= ~suspendedLanes;
|
10498
|
-
|
10499
|
-
|
10500
|
-
|
10501
|
-
|
10502
|
-
|
10503
|
-
|
10504
|
-
lane = 1 << index$5;
|
10505
|
-
expirationTimes[index$5] = -1;
|
10552
|
+
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
|
10553
|
+
didAttemptEntireTree = root.expirationTimes;
|
10554
|
+
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
10555
|
+
var index$6 = 31 - clz32(lanes),
|
10556
|
+
lane = 1 << index$6;
|
10557
|
+
didAttemptEntireTree[index$6] = -1;
|
10506
10558
|
lanes &= ~lane;
|
10507
10559
|
}
|
10508
10560
|
0 !== spawnedLane &&
|
@@ -10546,7 +10598,7 @@ function prepareFreshStack(root, lanes) {
|
|
10546
10598
|
workInProgressSuspendedReason = 0;
|
10547
10599
|
workInProgressThrownValue = null;
|
10548
10600
|
workInProgressRootDidSkipSuspendedSiblings = !1;
|
10549
|
-
checkIfRootIsPrerendering(root, lanes);
|
10601
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
|
10550
10602
|
workInProgressRootDidAttachPingListener = !1;
|
10551
10603
|
workInProgressSuspendedRetryLanes =
|
10552
10604
|
workInProgressDeferredLane =
|
@@ -10566,9 +10618,9 @@ function prepareFreshStack(root, lanes) {
|
|
10566
10618
|
0 < allEntangledLanes;
|
10567
10619
|
|
10568
10620
|
) {
|
10569
|
-
var index$
|
10570
|
-
lane = 1 << index$
|
10571
|
-
lanes |= root[index$
|
10621
|
+
var index$4 = 31 - clz32(allEntangledLanes),
|
10622
|
+
lane = 1 << index$4;
|
10623
|
+
lanes |= root[index$4];
|
10572
10624
|
allEntangledLanes &= ~lane;
|
10573
10625
|
}
|
10574
10626
|
entangledRenderLanes = lanes;
|
@@ -10580,12 +10632,7 @@ function handleThrow(root, thrownValue) {
|
|
10580
10632
|
ReactSharedInternals.H = ContextOnlyDispatcher;
|
10581
10633
|
thrownValue === SuspenseException
|
10582
10634
|
? ((thrownValue = getSuspendedThenable()),
|
10583
|
-
(workInProgressSuspendedReason =
|
10584
|
-
shouldRemainOnPreviousScreen() &&
|
10585
|
-
0 === (workInProgressRootSkippedLanes & 134217727) &&
|
10586
|
-
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
|
10587
|
-
? 2
|
10588
|
-
: 3))
|
10635
|
+
(workInProgressSuspendedReason = 3))
|
10589
10636
|
: thrownValue === SuspenseyCommitException
|
10590
10637
|
? ((thrownValue = getSuspendedThenable()),
|
10591
10638
|
(workInProgressSuspendedReason = 4))
|
@@ -10605,21 +10652,6 @@ function handleThrow(root, thrownValue) {
|
|
10605
10652
|
createCapturedValueAtFiber(thrownValue, root.current)
|
10606
10653
|
));
|
10607
10654
|
}
|
10608
|
-
function shouldRemainOnPreviousScreen() {
|
10609
|
-
var handler = suspenseHandlerStackCursor.current;
|
10610
|
-
return null === handler
|
10611
|
-
? !0
|
10612
|
-
: (workInProgressRootRenderLanes & 4194176) ===
|
10613
|
-
workInProgressRootRenderLanes
|
10614
|
-
? null === shellBoundary
|
10615
|
-
? !0
|
10616
|
-
: !1
|
10617
|
-
: (workInProgressRootRenderLanes & 62914560) ===
|
10618
|
-
workInProgressRootRenderLanes ||
|
10619
|
-
0 !== (workInProgressRootRenderLanes & 536870912)
|
10620
|
-
? handler === shellBoundary
|
10621
|
-
: !1;
|
10622
|
-
}
|
10623
10655
|
function pushDispatcher() {
|
10624
10656
|
var prevDispatcher = ReactSharedInternals.H;
|
10625
10657
|
ReactSharedInternals.H = ContextOnlyDispatcher;
|
@@ -10632,16 +10664,22 @@ function pushAsyncDispatcher() {
|
|
10632
10664
|
}
|
10633
10665
|
function renderDidSuspendDelayIfPossible() {
|
10634
10666
|
workInProgressRootExitStatus = 4;
|
10667
|
+
workInProgressRootDidSkipSuspendedSiblings ||
|
10668
|
+
((workInProgressRootRenderLanes & 4194176) !==
|
10669
|
+
workInProgressRootRenderLanes &&
|
10670
|
+
null !== suspenseHandlerStackCursor.current) ||
|
10671
|
+
(workInProgressRootIsPrerendering = !0);
|
10635
10672
|
(0 === (workInProgressRootSkippedLanes & 134217727) &&
|
10636
10673
|
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
|
10637
10674
|
null === workInProgressRoot ||
|
10638
10675
|
markRootSuspended(
|
10639
10676
|
workInProgressRoot,
|
10640
10677
|
workInProgressRootRenderLanes,
|
10641
|
-
workInProgressDeferredLane
|
10678
|
+
workInProgressDeferredLane,
|
10679
|
+
!1
|
10642
10680
|
);
|
10643
10681
|
}
|
10644
|
-
function renderRootSync(root, lanes) {
|
10682
|
+
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
10645
10683
|
var prevExecutionContext = executionContext;
|
10646
10684
|
executionContext |= 2;
|
10647
10685
|
var prevDispatcher = pushDispatcher(),
|
@@ -10668,6 +10706,13 @@ function renderRootSync(root, lanes) {
|
|
10668
10706
|
workInProgressSuspendedReason = 0;
|
10669
10707
|
workInProgressThrownValue = null;
|
10670
10708
|
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
|
10709
|
+
if (
|
10710
|
+
shouldYieldForPrerendering &&
|
10711
|
+
workInProgressRootIsPrerendering
|
10712
|
+
) {
|
10713
|
+
exitStatus = 0;
|
10714
|
+
break a;
|
10715
|
+
}
|
10671
10716
|
break;
|
10672
10717
|
default:
|
10673
10718
|
(reason = workInProgressSuspendedReason),
|
@@ -10679,8 +10724,8 @@ function renderRootSync(root, lanes) {
|
|
10679
10724
|
workLoopSync();
|
10680
10725
|
exitStatus = workInProgressRootExitStatus;
|
10681
10726
|
break;
|
10682
|
-
} catch (thrownValue$
|
10683
|
-
handleThrow(root, thrownValue$
|
10727
|
+
} catch (thrownValue$164) {
|
10728
|
+
handleThrow(root, thrownValue$164);
|
10684
10729
|
}
|
10685
10730
|
while (1);
|
10686
10731
|
lanes && root.shellSuspendCounter++;
|
@@ -10706,7 +10751,10 @@ function renderRootConcurrent(root, lanes) {
|
|
10706
10751
|
? ((workInProgressTransitions = null),
|
10707
10752
|
(workInProgressRootRenderTargetTime = now() + 500),
|
10708
10753
|
prepareFreshStack(root, lanes))
|
10709
|
-
: checkIfRootIsPrerendering(
|
10754
|
+
: (workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
|
10755
|
+
root,
|
10756
|
+
lanes
|
10757
|
+
));
|
10710
10758
|
a: do
|
10711
10759
|
try {
|
10712
10760
|
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
|
@@ -10790,8 +10838,8 @@ function renderRootConcurrent(root, lanes) {
|
|
10790
10838
|
}
|
10791
10839
|
workLoopConcurrent();
|
10792
10840
|
break;
|
10793
|
-
} catch (thrownValue$
|
10794
|
-
handleThrow(root, thrownValue$
|
10841
|
+
} catch (thrownValue$166) {
|
10842
|
+
handleThrow(root, thrownValue$166);
|
10795
10843
|
}
|
10796
10844
|
while (1);
|
10797
10845
|
lastContextDependency = currentlyRenderingFiber = null;
|
@@ -10849,7 +10897,12 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
|
10849
10897
|
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
10850
10898
|
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
10851
10899
|
}
|
10852
|
-
function throwAndUnwindWorkLoop(
|
10900
|
+
function throwAndUnwindWorkLoop(
|
10901
|
+
root,
|
10902
|
+
unitOfWork,
|
10903
|
+
thrownValue,
|
10904
|
+
suspendedReason
|
10905
|
+
) {
|
10853
10906
|
lastContextDependency = currentlyRenderingFiber = null;
|
10854
10907
|
resetHooksOnUnwind(unitOfWork);
|
10855
10908
|
thenableState$1 = null;
|
@@ -10883,9 +10936,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) {
|
|
10883
10936
|
workInProgress = null;
|
10884
10937
|
return;
|
10885
10938
|
}
|
10886
|
-
unitOfWork.flags & 32768
|
10887
|
-
|
10888
|
-
|
10939
|
+
if (unitOfWork.flags & 32768) {
|
10940
|
+
if (isHydrating || 1 === suspendedReason) root = !0;
|
10941
|
+
else if (
|
10942
|
+
workInProgressRootIsPrerendering ||
|
10943
|
+
0 !== (workInProgressRootRenderLanes & 536870912)
|
10944
|
+
)
|
10945
|
+
root = !1;
|
10946
|
+
else if (
|
10947
|
+
((workInProgressRootDidSkipSuspendedSiblings = root = !0),
|
10948
|
+
2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
|
10949
|
+
)
|
10950
|
+
(suspendedReason = suspenseHandlerStackCursor.current),
|
10951
|
+
null !== suspendedReason &&
|
10952
|
+
13 === suspendedReason.tag &&
|
10953
|
+
(suspendedReason.flags |= 16384);
|
10954
|
+
unwindUnitOfWork(unitOfWork, root);
|
10955
|
+
} else completeUnitOfWork(unitOfWork);
|
10889
10956
|
}
|
10890
10957
|
function completeUnitOfWork(unitOfWork) {
|
10891
10958
|
var completedWork = unitOfWork;
|
@@ -10980,7 +11047,9 @@ function commitRootImpl(
|
|
10980
11047
|
transitions,
|
10981
11048
|
didIncludeRenderPhaseUpdate,
|
10982
11049
|
renderPriorityLevel,
|
10983
|
-
spawnedLane
|
11050
|
+
spawnedLane,
|
11051
|
+
updatedLanes,
|
11052
|
+
suspendedRetryLanes
|
10984
11053
|
) {
|
10985
11054
|
do flushPassiveEffects();
|
10986
11055
|
while (null !== rootWithPendingPassiveEffects);
|
@@ -11000,7 +11069,9 @@ function commitRootImpl(
|
|
11000
11069
|
root,
|
11001
11070
|
didIncludeRenderPhaseUpdate,
|
11002
11071
|
remainingLanes,
|
11003
|
-
spawnedLane
|
11072
|
+
spawnedLane,
|
11073
|
+
updatedLanes,
|
11074
|
+
suspendedRetryLanes
|
11004
11075
|
);
|
11005
11076
|
root === workInProgressRoot &&
|
11006
11077
|
((workInProgress = workInProgressRoot = null),
|
@@ -11016,25 +11087,25 @@ function commitRootImpl(
|
|
11016
11087
|
return null;
|
11017
11088
|
}));
|
11018
11089
|
transitions = 0 !== (finishedWork.flags & 15990);
|
11019
|
-
|
11020
|
-
transitions = ReactSharedInternals.T
|
11021
|
-
|
11022
|
-
|
11023
|
-
|
11024
|
-
|
11025
|
-
|
11026
|
-
|
11027
|
-
|
11028
|
-
|
11029
|
-
|
11030
|
-
|
11031
|
-
|
11032
|
-
|
11033
|
-
|
11034
|
-
|
11035
|
-
|
11036
|
-
|
11037
|
-
|
11090
|
+
0 !== (finishedWork.subtreeFlags & 15990) || transitions
|
11091
|
+
? ((transitions = ReactSharedInternals.T),
|
11092
|
+
(ReactSharedInternals.T = null),
|
11093
|
+
(spawnedLane = ReactDOMSharedInternals.p),
|
11094
|
+
(ReactDOMSharedInternals.p = 2),
|
11095
|
+
(updatedLanes = executionContext),
|
11096
|
+
(executionContext |= 4),
|
11097
|
+
commitBeforeMutationEffects(root, finishedWork),
|
11098
|
+
commitMutationEffectsOnFiber(finishedWork, root),
|
11099
|
+
restoreSelection(selectionInformation, root.containerInfo),
|
11100
|
+
(_enabled = !!eventsEnabled),
|
11101
|
+
(selectionInformation = eventsEnabled = null),
|
11102
|
+
(root.current = finishedWork),
|
11103
|
+
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork),
|
11104
|
+
requestPaint(),
|
11105
|
+
(executionContext = updatedLanes),
|
11106
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
11107
|
+
(ReactSharedInternals.T = transitions))
|
11108
|
+
: (root.current = finishedWork);
|
11038
11109
|
rootDoesHavePassiveEffects
|
11039
11110
|
? ((rootDoesHavePassiveEffects = !1),
|
11040
11111
|
(rootWithPendingPassiveEffects = root),
|
@@ -11072,7 +11143,7 @@ function releaseRootPooledCache(root, remainingLanes) {
|
|
11072
11143
|
}
|
11073
11144
|
function flushPassiveEffects() {
|
11074
11145
|
if (null !== rootWithPendingPassiveEffects) {
|
11075
|
-
var root$
|
11146
|
+
var root$170 = rootWithPendingPassiveEffects,
|
11076
11147
|
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
11077
11148
|
pendingPassiveEffectsRemainingLanes = 0;
|
11078
11149
|
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
@@ -11111,7 +11182,7 @@ function flushPassiveEffects() {
|
|
11111
11182
|
} finally {
|
11112
11183
|
(ReactDOMSharedInternals.p = previousPriority),
|
11113
11184
|
(ReactSharedInternals.T = prevTransition),
|
11114
|
-
releaseRootPooledCache(root$
|
11185
|
+
releaseRootPooledCache(root$170, remainingLanes);
|
11115
11186
|
}
|
11116
11187
|
}
|
11117
11188
|
return !1;
|
@@ -11254,14 +11325,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
11254
11325
|
isFlushingWork = !0;
|
11255
11326
|
do {
|
11256
11327
|
var didPerformSomeWork = !1;
|
11257
|
-
for (var root$
|
11328
|
+
for (var root$172 = firstScheduledRoot; null !== root$172; ) {
|
11258
11329
|
if (!onlyLegacy)
|
11259
11330
|
if (0 !== syncTransitionLanes) {
|
11260
|
-
var pendingLanes = root$
|
11331
|
+
var pendingLanes = root$172.pendingLanes;
|
11261
11332
|
if (0 === pendingLanes) var JSCompiler_inline_result = 0;
|
11262
11333
|
else {
|
11263
|
-
var suspendedLanes = root$
|
11264
|
-
pingedLanes = root$
|
11334
|
+
var suspendedLanes = root$172.suspendedLanes,
|
11335
|
+
pingedLanes = root$172.pingedLanes;
|
11265
11336
|
JSCompiler_inline_result =
|
11266
11337
|
(1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
|
11267
11338
|
JSCompiler_inline_result &=
|
@@ -11275,18 +11346,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
11275
11346
|
}
|
11276
11347
|
0 !== JSCompiler_inline_result &&
|
11277
11348
|
((didPerformSomeWork = !0),
|
11278
|
-
performSyncWorkOnRoot(root$
|
11349
|
+
performSyncWorkOnRoot(root$172, JSCompiler_inline_result));
|
11279
11350
|
} else
|
11280
11351
|
(JSCompiler_inline_result = workInProgressRootRenderLanes),
|
11281
11352
|
(JSCompiler_inline_result = getNextLanes(
|
11282
|
-
root$
|
11283
|
-
root$
|
11353
|
+
root$172,
|
11354
|
+
root$172 === workInProgressRoot ? JSCompiler_inline_result : 0
|
11284
11355
|
)),
|
11285
11356
|
0 === (JSCompiler_inline_result & 3) ||
|
11286
|
-
checkIfRootIsPrerendering(root$
|
11357
|
+
checkIfRootIsPrerendering(root$172, JSCompiler_inline_result) ||
|
11287
11358
|
((didPerformSomeWork = !0),
|
11288
|
-
performSyncWorkOnRoot(root$
|
11289
|
-
root$
|
11359
|
+
performSyncWorkOnRoot(root$172, JSCompiler_inline_result));
|
11360
|
+
root$172 = root$172.next;
|
11290
11361
|
}
|
11291
11362
|
} while (didPerformSomeWork);
|
11292
11363
|
isFlushingWork = !1;
|
@@ -11327,12 +11398,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
|
|
11327
11398
|
0 < lanes;
|
11328
11399
|
|
11329
11400
|
) {
|
11330
|
-
var index$
|
11331
|
-
lane = 1 << index$
|
11332
|
-
expirationTime = expirationTimes[index$
|
11401
|
+
var index$5 = 31 - clz32(lanes),
|
11402
|
+
lane = 1 << index$5,
|
11403
|
+
expirationTime = expirationTimes[index$5];
|
11333
11404
|
if (-1 === expirationTime) {
|
11334
11405
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
11335
|
-
expirationTimes[index$
|
11406
|
+
expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
|
11336
11407
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
11337
11408
|
lanes &= ~lane;
|
11338
11409
|
}
|
@@ -11355,37 +11426,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
|
|
11355
11426
|
(root.callbackNode = null),
|
11356
11427
|
(root.callbackPriority = 0)
|
11357
11428
|
);
|
11358
|
-
if (
|
11359
|
-
|
11360
|
-
|
11361
|
-
|
11362
|
-
|
11363
|
-
|
11364
|
-
|
11365
|
-
|
11366
|
-
|
11367
|
-
|
11368
|
-
|
11369
|
-
|
11370
|
-
|
11371
|
-
|
11372
|
-
|
11373
|
-
|
11374
|
-
|
11375
|
-
|
11376
|
-
|
11377
|
-
|
11378
|
-
|
11379
|
-
|
11380
|
-
|
11381
|
-
|
11382
|
-
|
11383
|
-
|
11384
|
-
|
11385
|
-
|
11386
|
-
root.callbackPriority =
|
11387
|
-
root.callbackNode =
|
11388
|
-
return
|
11429
|
+
if (
|
11430
|
+
0 === (suspendedLanes & 3) ||
|
11431
|
+
checkIfRootIsPrerendering(root, suspendedLanes)
|
11432
|
+
) {
|
11433
|
+
currentTime = suspendedLanes & -suspendedLanes;
|
11434
|
+
if (currentTime === root.callbackPriority) return currentTime;
|
11435
|
+
null !== pingedLanes && cancelCallback$1(pingedLanes);
|
11436
|
+
switch (lanesToEventPriority(suspendedLanes)) {
|
11437
|
+
case 2:
|
11438
|
+
case 8:
|
11439
|
+
suspendedLanes = UserBlockingPriority;
|
11440
|
+
break;
|
11441
|
+
case 32:
|
11442
|
+
suspendedLanes = NormalPriority$1;
|
11443
|
+
break;
|
11444
|
+
case 268435456:
|
11445
|
+
suspendedLanes = IdlePriority;
|
11446
|
+
break;
|
11447
|
+
default:
|
11448
|
+
suspendedLanes = NormalPriority$1;
|
11449
|
+
}
|
11450
|
+
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
|
11451
|
+
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
|
11452
|
+
root.callbackPriority = currentTime;
|
11453
|
+
root.callbackNode = suspendedLanes;
|
11454
|
+
return currentTime;
|
11455
|
+
}
|
11456
|
+
null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
|
11457
|
+
root.callbackPriority = 2;
|
11458
|
+
root.callbackNode = null;
|
11459
|
+
return 2;
|
11389
11460
|
}
|
11390
11461
|
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
11391
11462
|
var originalCallbackNode = root.callbackNode;
|
@@ -11514,20 +11585,20 @@ function extractEvents$1(
|
|
11514
11585
|
}
|
11515
11586
|
}
|
11516
11587
|
for (
|
11517
|
-
var i$jscomp$
|
11518
|
-
i$jscomp$
|
11519
|
-
i$jscomp$
|
11588
|
+
var i$jscomp$inline_1439 = 0;
|
11589
|
+
i$jscomp$inline_1439 < simpleEventPluginEvents.length;
|
11590
|
+
i$jscomp$inline_1439++
|
11520
11591
|
) {
|
11521
|
-
var eventName$jscomp$
|
11522
|
-
simpleEventPluginEvents[i$jscomp$
|
11523
|
-
domEventName$jscomp$
|
11524
|
-
eventName$jscomp$
|
11525
|
-
capitalizedEvent$jscomp$
|
11526
|
-
eventName$jscomp$
|
11527
|
-
eventName$jscomp$
|
11592
|
+
var eventName$jscomp$inline_1440 =
|
11593
|
+
simpleEventPluginEvents[i$jscomp$inline_1439],
|
11594
|
+
domEventName$jscomp$inline_1441 =
|
11595
|
+
eventName$jscomp$inline_1440.toLowerCase(),
|
11596
|
+
capitalizedEvent$jscomp$inline_1442 =
|
11597
|
+
eventName$jscomp$inline_1440[0].toUpperCase() +
|
11598
|
+
eventName$jscomp$inline_1440.slice(1);
|
11528
11599
|
registerSimpleEvent(
|
11529
|
-
domEventName$jscomp$
|
11530
|
-
"on" + capitalizedEvent$jscomp$
|
11600
|
+
domEventName$jscomp$inline_1441,
|
11601
|
+
"on" + capitalizedEvent$jscomp$inline_1442
|
11531
11602
|
);
|
11532
11603
|
}
|
11533
11604
|
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
@@ -12710,34 +12781,34 @@ function setInitialProperties(domElement, tag, props) {
|
|
12710
12781
|
defaultChecked = null;
|
12711
12782
|
for (hasSrc in props)
|
12712
12783
|
if (props.hasOwnProperty(hasSrc)) {
|
12713
|
-
var propValue$
|
12714
|
-
if (null != propValue$
|
12784
|
+
var propValue$186 = props[hasSrc];
|
12785
|
+
if (null != propValue$186)
|
12715
12786
|
switch (hasSrc) {
|
12716
12787
|
case "name":
|
12717
|
-
hasSrcSet = propValue$
|
12788
|
+
hasSrcSet = propValue$186;
|
12718
12789
|
break;
|
12719
12790
|
case "type":
|
12720
|
-
propValue = propValue$
|
12791
|
+
propValue = propValue$186;
|
12721
12792
|
break;
|
12722
12793
|
case "checked":
|
12723
|
-
checked = propValue$
|
12794
|
+
checked = propValue$186;
|
12724
12795
|
break;
|
12725
12796
|
case "defaultChecked":
|
12726
|
-
defaultChecked = propValue$
|
12797
|
+
defaultChecked = propValue$186;
|
12727
12798
|
break;
|
12728
12799
|
case "value":
|
12729
|
-
propKey = propValue$
|
12800
|
+
propKey = propValue$186;
|
12730
12801
|
break;
|
12731
12802
|
case "defaultValue":
|
12732
|
-
defaultValue = propValue$
|
12803
|
+
defaultValue = propValue$186;
|
12733
12804
|
break;
|
12734
12805
|
case "children":
|
12735
12806
|
case "dangerouslySetInnerHTML":
|
12736
|
-
if (null != propValue$
|
12807
|
+
if (null != propValue$186)
|
12737
12808
|
throw Error(formatProdErrorMessage(137, tag));
|
12738
12809
|
break;
|
12739
12810
|
default:
|
12740
|
-
setProp(domElement, tag, hasSrc, propValue$
|
12811
|
+
setProp(domElement, tag, hasSrc, propValue$186, props, null);
|
12741
12812
|
}
|
12742
12813
|
}
|
12743
12814
|
initInput(
|
@@ -12874,14 +12945,14 @@ function setInitialProperties(domElement, tag, props) {
|
|
12874
12945
|
return;
|
12875
12946
|
default:
|
12876
12947
|
if (isCustomElement(tag)) {
|
12877
|
-
for (propValue$
|
12878
|
-
props.hasOwnProperty(propValue$
|
12879
|
-
((hasSrc = props[propValue$
|
12948
|
+
for (propValue$186 in props)
|
12949
|
+
props.hasOwnProperty(propValue$186) &&
|
12950
|
+
((hasSrc = props[propValue$186]),
|
12880
12951
|
void 0 !== hasSrc &&
|
12881
12952
|
setPropOnCustomElement(
|
12882
12953
|
domElement,
|
12883
12954
|
tag,
|
12884
|
-
propValue$
|
12955
|
+
propValue$186,
|
12885
12956
|
hasSrc,
|
12886
12957
|
props,
|
12887
12958
|
void 0
|
@@ -12929,14 +13000,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
12929
13000
|
setProp(domElement, tag, propKey, null, nextProps, lastProp);
|
12930
13001
|
}
|
12931
13002
|
}
|
12932
|
-
for (var propKey$
|
12933
|
-
var propKey = nextProps[propKey$
|
12934
|
-
lastProp = lastProps[propKey$
|
13003
|
+
for (var propKey$203 in nextProps) {
|
13004
|
+
var propKey = nextProps[propKey$203];
|
13005
|
+
lastProp = lastProps[propKey$203];
|
12935
13006
|
if (
|
12936
|
-
nextProps.hasOwnProperty(propKey$
|
13007
|
+
nextProps.hasOwnProperty(propKey$203) &&
|
12937
13008
|
(null != propKey || null != lastProp)
|
12938
13009
|
)
|
12939
|
-
switch (propKey$
|
13010
|
+
switch (propKey$203) {
|
12940
13011
|
case "type":
|
12941
13012
|
type = propKey;
|
12942
13013
|
break;
|
@@ -12965,7 +13036,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
12965
13036
|
setProp(
|
12966
13037
|
domElement,
|
12967
13038
|
tag,
|
12968
|
-
propKey$
|
13039
|
+
propKey$203,
|
12969
13040
|
propKey,
|
12970
13041
|
nextProps,
|
12971
13042
|
lastProp
|
@@ -12984,7 +13055,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
12984
13055
|
);
|
12985
13056
|
return;
|
12986
13057
|
case "select":
|
12987
|
-
propKey = value = defaultValue = propKey$
|
13058
|
+
propKey = value = defaultValue = propKey$203 = null;
|
12988
13059
|
for (type in lastProps)
|
12989
13060
|
if (
|
12990
13061
|
((lastDefaultValue = lastProps[type]),
|
@@ -13015,7 +13086,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13015
13086
|
)
|
13016
13087
|
switch (name) {
|
13017
13088
|
case "value":
|
13018
|
-
propKey$
|
13089
|
+
propKey$203 = type;
|
13019
13090
|
break;
|
13020
13091
|
case "defaultValue":
|
13021
13092
|
defaultValue = type;
|
@@ -13036,15 +13107,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13036
13107
|
tag = defaultValue;
|
13037
13108
|
lastProps = value;
|
13038
13109
|
nextProps = propKey;
|
13039
|
-
null != propKey$
|
13040
|
-
? updateOptions(domElement, !!lastProps, propKey$
|
13110
|
+
null != propKey$203
|
13111
|
+
? updateOptions(domElement, !!lastProps, propKey$203, !1)
|
13041
13112
|
: !!nextProps !== !!lastProps &&
|
13042
13113
|
(null != tag
|
13043
13114
|
? updateOptions(domElement, !!lastProps, tag, !0)
|
13044
13115
|
: updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
|
13045
13116
|
return;
|
13046
13117
|
case "textarea":
|
13047
|
-
propKey = propKey$
|
13118
|
+
propKey = propKey$203 = null;
|
13048
13119
|
for (defaultValue in lastProps)
|
13049
13120
|
if (
|
13050
13121
|
((name = lastProps[defaultValue]),
|
@@ -13068,7 +13139,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13068
13139
|
)
|
13069
13140
|
switch (value) {
|
13070
13141
|
case "value":
|
13071
|
-
propKey$
|
13142
|
+
propKey$203 = name;
|
13072
13143
|
break;
|
13073
13144
|
case "defaultValue":
|
13074
13145
|
propKey = name;
|
@@ -13082,17 +13153,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13082
13153
|
name !== type &&
|
13083
13154
|
setProp(domElement, tag, value, name, nextProps, type);
|
13084
13155
|
}
|
13085
|
-
updateTextarea(domElement, propKey$
|
13156
|
+
updateTextarea(domElement, propKey$203, propKey);
|
13086
13157
|
return;
|
13087
13158
|
case "option":
|
13088
|
-
for (var propKey$
|
13159
|
+
for (var propKey$219 in lastProps)
|
13089
13160
|
if (
|
13090
|
-
((propKey$
|
13091
|
-
lastProps.hasOwnProperty(propKey$
|
13092
|
-
null != propKey$
|
13093
|
-
!nextProps.hasOwnProperty(propKey$
|
13161
|
+
((propKey$203 = lastProps[propKey$219]),
|
13162
|
+
lastProps.hasOwnProperty(propKey$219) &&
|
13163
|
+
null != propKey$203 &&
|
13164
|
+
!nextProps.hasOwnProperty(propKey$219))
|
13094
13165
|
)
|
13095
|
-
switch (propKey$
|
13166
|
+
switch (propKey$219) {
|
13096
13167
|
case "selected":
|
13097
13168
|
domElement.selected = !1;
|
13098
13169
|
break;
|
@@ -13100,33 +13171,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13100
13171
|
setProp(
|
13101
13172
|
domElement,
|
13102
13173
|
tag,
|
13103
|
-
propKey$
|
13174
|
+
propKey$219,
|
13104
13175
|
null,
|
13105
13176
|
nextProps,
|
13106
|
-
propKey$
|
13177
|
+
propKey$203
|
13107
13178
|
);
|
13108
13179
|
}
|
13109
13180
|
for (lastDefaultValue in nextProps)
|
13110
13181
|
if (
|
13111
|
-
((propKey$
|
13182
|
+
((propKey$203 = nextProps[lastDefaultValue]),
|
13112
13183
|
(propKey = lastProps[lastDefaultValue]),
|
13113
13184
|
nextProps.hasOwnProperty(lastDefaultValue) &&
|
13114
|
-
propKey$
|
13115
|
-
(null != propKey$
|
13185
|
+
propKey$203 !== propKey &&
|
13186
|
+
(null != propKey$203 || null != propKey))
|
13116
13187
|
)
|
13117
13188
|
switch (lastDefaultValue) {
|
13118
13189
|
case "selected":
|
13119
13190
|
domElement.selected =
|
13120
|
-
propKey$
|
13121
|
-
"function" !== typeof propKey$
|
13122
|
-
"symbol" !== typeof propKey$
|
13191
|
+
propKey$203 &&
|
13192
|
+
"function" !== typeof propKey$203 &&
|
13193
|
+
"symbol" !== typeof propKey$203;
|
13123
13194
|
break;
|
13124
13195
|
default:
|
13125
13196
|
setProp(
|
13126
13197
|
domElement,
|
13127
13198
|
tag,
|
13128
13199
|
lastDefaultValue,
|
13129
|
-
propKey$
|
13200
|
+
propKey$203,
|
13130
13201
|
nextProps,
|
13131
13202
|
propKey
|
13132
13203
|
);
|
@@ -13147,24 +13218,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13147
13218
|
case "track":
|
13148
13219
|
case "wbr":
|
13149
13220
|
case "menuitem":
|
13150
|
-
for (var propKey$
|
13151
|
-
(propKey$
|
13152
|
-
lastProps.hasOwnProperty(propKey$
|
13153
|
-
null != propKey$
|
13154
|
-
!nextProps.hasOwnProperty(propKey$
|
13155
|
-
setProp(domElement, tag, propKey$
|
13221
|
+
for (var propKey$224 in lastProps)
|
13222
|
+
(propKey$203 = lastProps[propKey$224]),
|
13223
|
+
lastProps.hasOwnProperty(propKey$224) &&
|
13224
|
+
null != propKey$203 &&
|
13225
|
+
!nextProps.hasOwnProperty(propKey$224) &&
|
13226
|
+
setProp(domElement, tag, propKey$224, null, nextProps, propKey$203);
|
13156
13227
|
for (checked in nextProps)
|
13157
13228
|
if (
|
13158
|
-
((propKey$
|
13229
|
+
((propKey$203 = nextProps[checked]),
|
13159
13230
|
(propKey = lastProps[checked]),
|
13160
13231
|
nextProps.hasOwnProperty(checked) &&
|
13161
|
-
propKey$
|
13162
|
-
(null != propKey$
|
13232
|
+
propKey$203 !== propKey &&
|
13233
|
+
(null != propKey$203 || null != propKey))
|
13163
13234
|
)
|
13164
13235
|
switch (checked) {
|
13165
13236
|
case "children":
|
13166
13237
|
case "dangerouslySetInnerHTML":
|
13167
|
-
if (null != propKey$
|
13238
|
+
if (null != propKey$203)
|
13168
13239
|
throw Error(formatProdErrorMessage(137, tag));
|
13169
13240
|
break;
|
13170
13241
|
default:
|
@@ -13172,7 +13243,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13172
13243
|
domElement,
|
13173
13244
|
tag,
|
13174
13245
|
checked,
|
13175
|
-
propKey$
|
13246
|
+
propKey$203,
|
13176
13247
|
nextProps,
|
13177
13248
|
propKey
|
13178
13249
|
);
|
@@ -13180,49 +13251,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13180
13251
|
return;
|
13181
13252
|
default:
|
13182
13253
|
if (isCustomElement(tag)) {
|
13183
|
-
for (var propKey$
|
13184
|
-
(propKey$
|
13185
|
-
lastProps.hasOwnProperty(propKey$
|
13186
|
-
void 0 !== propKey$
|
13187
|
-
!nextProps.hasOwnProperty(propKey$
|
13254
|
+
for (var propKey$229 in lastProps)
|
13255
|
+
(propKey$203 = lastProps[propKey$229]),
|
13256
|
+
lastProps.hasOwnProperty(propKey$229) &&
|
13257
|
+
void 0 !== propKey$203 &&
|
13258
|
+
!nextProps.hasOwnProperty(propKey$229) &&
|
13188
13259
|
setPropOnCustomElement(
|
13189
13260
|
domElement,
|
13190
13261
|
tag,
|
13191
|
-
propKey$
|
13262
|
+
propKey$229,
|
13192
13263
|
void 0,
|
13193
13264
|
nextProps,
|
13194
|
-
propKey$
|
13265
|
+
propKey$203
|
13195
13266
|
);
|
13196
13267
|
for (defaultChecked in nextProps)
|
13197
|
-
(propKey$
|
13268
|
+
(propKey$203 = nextProps[defaultChecked]),
|
13198
13269
|
(propKey = lastProps[defaultChecked]),
|
13199
13270
|
!nextProps.hasOwnProperty(defaultChecked) ||
|
13200
|
-
propKey$
|
13201
|
-
(void 0 === propKey$
|
13271
|
+
propKey$203 === propKey ||
|
13272
|
+
(void 0 === propKey$203 && void 0 === propKey) ||
|
13202
13273
|
setPropOnCustomElement(
|
13203
13274
|
domElement,
|
13204
13275
|
tag,
|
13205
13276
|
defaultChecked,
|
13206
|
-
propKey$
|
13277
|
+
propKey$203,
|
13207
13278
|
nextProps,
|
13208
13279
|
propKey
|
13209
13280
|
);
|
13210
13281
|
return;
|
13211
13282
|
}
|
13212
13283
|
}
|
13213
|
-
for (var propKey$
|
13214
|
-
(propKey$
|
13215
|
-
lastProps.hasOwnProperty(propKey$
|
13216
|
-
null != propKey$
|
13217
|
-
!nextProps.hasOwnProperty(propKey$
|
13218
|
-
setProp(domElement, tag, propKey$
|
13284
|
+
for (var propKey$234 in lastProps)
|
13285
|
+
(propKey$203 = lastProps[propKey$234]),
|
13286
|
+
lastProps.hasOwnProperty(propKey$234) &&
|
13287
|
+
null != propKey$203 &&
|
13288
|
+
!nextProps.hasOwnProperty(propKey$234) &&
|
13289
|
+
setProp(domElement, tag, propKey$234, null, nextProps, propKey$203);
|
13219
13290
|
for (lastProp in nextProps)
|
13220
|
-
(propKey$
|
13291
|
+
(propKey$203 = nextProps[lastProp]),
|
13221
13292
|
(propKey = lastProps[lastProp]),
|
13222
13293
|
!nextProps.hasOwnProperty(lastProp) ||
|
13223
|
-
propKey$
|
13224
|
-
(null == propKey$
|
13225
|
-
setProp(domElement, tag, lastProp, propKey$
|
13294
|
+
propKey$203 === propKey ||
|
13295
|
+
(null == propKey$203 && null == propKey) ||
|
13296
|
+
setProp(domElement, tag, lastProp, propKey$203, nextProps, propKey);
|
13226
13297
|
}
|
13227
13298
|
var eventsEnabled = null,
|
13228
13299
|
selectionInformation = null;
|
@@ -13767,26 +13838,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
|
|
13767
13838
|
"string" === typeof pendingProps.precedence
|
13768
13839
|
) {
|
13769
13840
|
type = getStyleKey(pendingProps.href);
|
13770
|
-
var styles$
|
13841
|
+
var styles$242 = getResourcesFromRoot(
|
13771
13842
|
JSCompiler_inline_result
|
13772
13843
|
).hoistableStyles,
|
13773
|
-
resource$
|
13774
|
-
resource$
|
13844
|
+
resource$243 = styles$242.get(type);
|
13845
|
+
resource$243 ||
|
13775
13846
|
((JSCompiler_inline_result =
|
13776
13847
|
JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
|
13777
|
-
(resource$
|
13848
|
+
(resource$243 = {
|
13778
13849
|
type: "stylesheet",
|
13779
13850
|
instance: null,
|
13780
13851
|
count: 0,
|
13781
13852
|
state: { loading: 0, preload: null }
|
13782
13853
|
}),
|
13783
|
-
styles$
|
13784
|
-
(styles$
|
13854
|
+
styles$242.set(type, resource$243),
|
13855
|
+
(styles$242 = JSCompiler_inline_result.querySelector(
|
13785
13856
|
getStylesheetSelectorFromKey(type)
|
13786
13857
|
)) &&
|
13787
|
-
!styles$
|
13788
|
-
((resource$
|
13789
|
-
(resource$
|
13858
|
+
!styles$242._p &&
|
13859
|
+
((resource$243.instance = styles$242),
|
13860
|
+
(resource$243.state.loading = 5)),
|
13790
13861
|
preloadPropsMap.has(type) ||
|
13791
13862
|
((pendingProps = {
|
13792
13863
|
rel: "preload",
|
@@ -13799,16 +13870,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
|
|
13799
13870
|
referrerPolicy: pendingProps.referrerPolicy
|
13800
13871
|
}),
|
13801
13872
|
preloadPropsMap.set(type, pendingProps),
|
13802
|
-
styles$
|
13873
|
+
styles$242 ||
|
13803
13874
|
preloadStylesheet(
|
13804
13875
|
JSCompiler_inline_result,
|
13805
13876
|
type,
|
13806
13877
|
pendingProps,
|
13807
|
-
resource$
|
13878
|
+
resource$243.state
|
13808
13879
|
)));
|
13809
13880
|
if (currentProps && null === currentResource)
|
13810
13881
|
throw Error(formatProdErrorMessage(528, ""));
|
13811
|
-
return resource$
|
13882
|
+
return resource$243;
|
13812
13883
|
}
|
13813
13884
|
if (currentProps && null !== currentResource)
|
13814
13885
|
throw Error(formatProdErrorMessage(529, ""));
|
@@ -13905,37 +13976,37 @@ function acquireResource(hoistableRoot, resource, props) {
|
|
13905
13976
|
return (resource.instance = instance);
|
13906
13977
|
case "stylesheet":
|
13907
13978
|
styleProps = getStyleKey(props.href);
|
13908
|
-
var instance$
|
13979
|
+
var instance$248 = hoistableRoot.querySelector(
|
13909
13980
|
getStylesheetSelectorFromKey(styleProps)
|
13910
13981
|
);
|
13911
|
-
if (instance$
|
13982
|
+
if (instance$248)
|
13912
13983
|
return (
|
13913
13984
|
(resource.state.loading |= 4),
|
13914
|
-
(resource.instance = instance$
|
13915
|
-
markNodeAsHoistable(instance$
|
13916
|
-
instance$
|
13985
|
+
(resource.instance = instance$248),
|
13986
|
+
markNodeAsHoistable(instance$248),
|
13987
|
+
instance$248
|
13917
13988
|
);
|
13918
13989
|
instance = stylesheetPropsFromRawProps(props);
|
13919
13990
|
(styleProps = preloadPropsMap.get(styleProps)) &&
|
13920
13991
|
adoptPreloadPropsForStylesheet(instance, styleProps);
|
13921
|
-
instance$
|
13992
|
+
instance$248 = (
|
13922
13993
|
hoistableRoot.ownerDocument || hoistableRoot
|
13923
13994
|
).createElement("link");
|
13924
|
-
markNodeAsHoistable(instance$
|
13925
|
-
var linkInstance = instance$
|
13995
|
+
markNodeAsHoistable(instance$248);
|
13996
|
+
var linkInstance = instance$248;
|
13926
13997
|
linkInstance._p = new Promise(function (resolve, reject) {
|
13927
13998
|
linkInstance.onload = resolve;
|
13928
13999
|
linkInstance.onerror = reject;
|
13929
14000
|
});
|
13930
|
-
setInitialProperties(instance$
|
14001
|
+
setInitialProperties(instance$248, "link", instance);
|
13931
14002
|
resource.state.loading |= 4;
|
13932
|
-
insertStylesheet(instance$
|
13933
|
-
return (resource.instance = instance$
|
14003
|
+
insertStylesheet(instance$248, props.precedence, hoistableRoot);
|
14004
|
+
return (resource.instance = instance$248);
|
13934
14005
|
case "script":
|
13935
|
-
instance$
|
14006
|
+
instance$248 = getScriptKey(props.src);
|
13936
14007
|
if (
|
13937
14008
|
(styleProps = hoistableRoot.querySelector(
|
13938
|
-
getScriptSelectorFromKey(instance$
|
14009
|
+
getScriptSelectorFromKey(instance$248)
|
13939
14010
|
))
|
13940
14011
|
)
|
13941
14012
|
return (
|
@@ -13944,7 +14015,7 @@ function acquireResource(hoistableRoot, resource, props) {
|
|
13944
14015
|
styleProps
|
13945
14016
|
);
|
13946
14017
|
instance = props;
|
13947
|
-
if ((styleProps = preloadPropsMap.get(instance$
|
14018
|
+
if ((styleProps = preloadPropsMap.get(instance$248)))
|
13948
14019
|
(instance = assign({}, props)),
|
13949
14020
|
adoptPreloadPropsForScript(instance, styleProps);
|
13950
14021
|
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
|
@@ -14968,16 +15039,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
14968
15039
|
0 === i && attemptExplicitHydrationTarget(target);
|
14969
15040
|
}
|
14970
15041
|
};
|
14971
|
-
var isomorphicReactPackageVersion$jscomp$
|
15042
|
+
var isomorphicReactPackageVersion$jscomp$inline_1686 = React.version;
|
14972
15043
|
if (
|
14973
|
-
"19.0.0
|
14974
|
-
isomorphicReactPackageVersion$jscomp$
|
15044
|
+
"19.0.0" !==
|
15045
|
+
isomorphicReactPackageVersion$jscomp$inline_1686
|
14975
15046
|
)
|
14976
15047
|
throw Error(
|
14977
15048
|
formatProdErrorMessage(
|
14978
15049
|
527,
|
14979
|
-
isomorphicReactPackageVersion$jscomp$
|
14980
|
-
"19.0.0
|
15050
|
+
isomorphicReactPackageVersion$jscomp$inline_1686,
|
15051
|
+
"19.0.0"
|
14981
15052
|
)
|
14982
15053
|
);
|
14983
15054
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -14997,25 +15068,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
14997
15068
|
null === componentOrElement ? null : componentOrElement.stateNode;
|
14998
15069
|
return componentOrElement;
|
14999
15070
|
};
|
15000
|
-
var internals$jscomp$
|
15071
|
+
var internals$jscomp$inline_2165 = {
|
15001
15072
|
bundleType: 0,
|
15002
|
-
version: "19.0.0
|
15073
|
+
version: "19.0.0",
|
15003
15074
|
rendererPackageName: "react-dom",
|
15004
15075
|
currentDispatcherRef: ReactSharedInternals,
|
15005
15076
|
findFiberByHostInstance: getClosestInstanceFromNode,
|
15006
|
-
reconcilerVersion: "19.0.0
|
15077
|
+
reconcilerVersion: "19.0.0"
|
15007
15078
|
};
|
15008
15079
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15009
|
-
var hook$jscomp$
|
15080
|
+
var hook$jscomp$inline_2166 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
15010
15081
|
if (
|
15011
|
-
!hook$jscomp$
|
15012
|
-
hook$jscomp$
|
15082
|
+
!hook$jscomp$inline_2166.isDisabled &&
|
15083
|
+
hook$jscomp$inline_2166.supportsFiber
|
15013
15084
|
)
|
15014
15085
|
try {
|
15015
|
-
(rendererID = hook$jscomp$
|
15016
|
-
internals$jscomp$
|
15086
|
+
(rendererID = hook$jscomp$inline_2166.inject(
|
15087
|
+
internals$jscomp$inline_2165
|
15017
15088
|
)),
|
15018
|
-
(injectedHook = hook$jscomp$
|
15089
|
+
(injectedHook = hook$jscomp$inline_2166);
|
15019
15090
|
} catch (err) {}
|
15020
15091
|
}
|
15021
15092
|
exports.createRoot = function (container, options) {
|
@@ -15107,4 +15178,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
|
15107
15178
|
listenToAllSupportedEvents(container);
|
15108
15179
|
return new ReactDOMHydrationRoot(initialChildren);
|
15109
15180
|
};
|
15110
|
-
exports.version = "19.0.0
|
15181
|
+
exports.version = "19.0.0";
|