react-dom 19.1.0-canary-62208bee-20250102 → 19.1.0-canary-3ce77d55-20250106
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 +546 -533
- package/cjs/react-dom-client.production.js +438 -422
- package/cjs/react-dom-profiling.development.js +546 -533
- package/cjs/react-dom-profiling.profiling.js +476 -466
- 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
@@ -833,41 +833,6 @@
|
|
833
833
|
}
|
834
834
|
return hook.checkDCE ? !0 : !1;
|
835
835
|
}
|
836
|
-
function onCommitRoot$1(root, eventPriority) {
|
837
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
838
|
-
try {
|
839
|
-
var didError = 128 === (root.current.flags & 128);
|
840
|
-
switch (eventPriority) {
|
841
|
-
case DiscreteEventPriority:
|
842
|
-
var schedulerPriority = ImmediatePriority;
|
843
|
-
break;
|
844
|
-
case ContinuousEventPriority:
|
845
|
-
schedulerPriority = UserBlockingPriority;
|
846
|
-
break;
|
847
|
-
case DefaultEventPriority:
|
848
|
-
schedulerPriority = NormalPriority$1;
|
849
|
-
break;
|
850
|
-
case IdleEventPriority:
|
851
|
-
schedulerPriority = IdlePriority;
|
852
|
-
break;
|
853
|
-
default:
|
854
|
-
schedulerPriority = NormalPriority$1;
|
855
|
-
}
|
856
|
-
injectedHook.onCommitFiberRoot(
|
857
|
-
rendererID,
|
858
|
-
root,
|
859
|
-
schedulerPriority,
|
860
|
-
didError
|
861
|
-
);
|
862
|
-
} catch (err) {
|
863
|
-
hasLoggedError ||
|
864
|
-
((hasLoggedError = !0),
|
865
|
-
console.error(
|
866
|
-
"React instrumentation encountered an error: %s",
|
867
|
-
err
|
868
|
-
));
|
869
|
-
}
|
870
|
-
}
|
871
836
|
function setIsStrictModeForDevtools(newIsStrictMode) {
|
872
837
|
"function" === typeof log$1 &&
|
873
838
|
unstable_setDisableYieldValue(newIsStrictMode);
|
@@ -996,14 +961,13 @@
|
|
996
961
|
);
|
997
962
|
}
|
998
963
|
}
|
999
|
-
function getNextLanes(root, wipLanes) {
|
964
|
+
function getNextLanes(root, wipLanes, rootHasPendingCommit) {
|
1000
965
|
var pendingLanes = root.pendingLanes;
|
1001
966
|
if (0 === pendingLanes) return 0;
|
1002
967
|
var nextLanes = 0,
|
1003
968
|
suspendedLanes = root.suspendedLanes,
|
1004
|
-
pingedLanes = root.pingedLanes
|
1005
|
-
|
1006
|
-
root = 0 !== root.finishedLanes;
|
969
|
+
pingedLanes = root.pingedLanes;
|
970
|
+
root = root.warmLanes;
|
1007
971
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
1008
972
|
0 !== nonIdlePendingLanes
|
1009
973
|
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
|
@@ -1012,28 +976,29 @@
|
|
1012
976
|
: ((pingedLanes &= nonIdlePendingLanes),
|
1013
977
|
0 !== pingedLanes
|
1014
978
|
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1015
|
-
:
|
1016
|
-
((
|
1017
|
-
0 !==
|
1018
|
-
(nextLanes =
|
979
|
+
: rootHasPendingCommit ||
|
980
|
+
((rootHasPendingCommit = nonIdlePendingLanes & ~root),
|
981
|
+
0 !== rootHasPendingCommit &&
|
982
|
+
(nextLanes =
|
983
|
+
getHighestPriorityLanes(rootHasPendingCommit)))))
|
1019
984
|
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
1020
985
|
0 !== nonIdlePendingLanes
|
1021
986
|
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
1022
987
|
: 0 !== pingedLanes
|
1023
988
|
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1024
|
-
:
|
1025
|
-
((
|
1026
|
-
0 !==
|
1027
|
-
(nextLanes = getHighestPriorityLanes(
|
989
|
+
: rootHasPendingCommit ||
|
990
|
+
((rootHasPendingCommit = pendingLanes & ~root),
|
991
|
+
0 !== rootHasPendingCommit &&
|
992
|
+
(nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
|
1028
993
|
return 0 === nextLanes
|
1029
994
|
? 0
|
1030
995
|
: 0 !== wipLanes &&
|
1031
996
|
wipLanes !== nextLanes &&
|
1032
997
|
0 === (wipLanes & suspendedLanes) &&
|
1033
998
|
((suspendedLanes = nextLanes & -nextLanes),
|
1034
|
-
(
|
1035
|
-
suspendedLanes >=
|
1036
|
-
(32 === suspendedLanes && 0 !== (
|
999
|
+
(rootHasPendingCommit = wipLanes & -wipLanes),
|
1000
|
+
suspendedLanes >= rootHasPendingCommit ||
|
1001
|
+
(32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176)))
|
1037
1002
|
? wipLanes
|
1038
1003
|
: nextLanes;
|
1039
1004
|
}
|
@@ -3607,100 +3572,6 @@
|
|
3607
3572
|
"true" === elem.contentEditable)
|
3608
3573
|
);
|
3609
3574
|
}
|
3610
|
-
function restoreSelection(priorSelectionInformation, containerInfo) {
|
3611
|
-
var curFocusedElem = getActiveElementDeep(containerInfo);
|
3612
|
-
containerInfo = priorSelectionInformation.focusedElem;
|
3613
|
-
var priorSelectionRange = priorSelectionInformation.selectionRange;
|
3614
|
-
if (
|
3615
|
-
curFocusedElem !== containerInfo &&
|
3616
|
-
containerInfo &&
|
3617
|
-
containerInfo.ownerDocument &&
|
3618
|
-
containsNode(containerInfo.ownerDocument.documentElement, containerInfo)
|
3619
|
-
) {
|
3620
|
-
if (
|
3621
|
-
null !== priorSelectionRange &&
|
3622
|
-
hasSelectionCapabilities(containerInfo)
|
3623
|
-
)
|
3624
|
-
if (
|
3625
|
-
((priorSelectionInformation = priorSelectionRange.start),
|
3626
|
-
(curFocusedElem = priorSelectionRange.end),
|
3627
|
-
void 0 === curFocusedElem &&
|
3628
|
-
(curFocusedElem = priorSelectionInformation),
|
3629
|
-
"selectionStart" in containerInfo)
|
3630
|
-
)
|
3631
|
-
(containerInfo.selectionStart = priorSelectionInformation),
|
3632
|
-
(containerInfo.selectionEnd = Math.min(
|
3633
|
-
curFocusedElem,
|
3634
|
-
containerInfo.value.length
|
3635
|
-
));
|
3636
|
-
else if (
|
3637
|
-
((curFocusedElem =
|
3638
|
-
((priorSelectionInformation =
|
3639
|
-
containerInfo.ownerDocument || document) &&
|
3640
|
-
priorSelectionInformation.defaultView) ||
|
3641
|
-
window),
|
3642
|
-
curFocusedElem.getSelection)
|
3643
|
-
) {
|
3644
|
-
curFocusedElem = curFocusedElem.getSelection();
|
3645
|
-
var length = containerInfo.textContent.length,
|
3646
|
-
start = Math.min(priorSelectionRange.start, length);
|
3647
|
-
priorSelectionRange =
|
3648
|
-
void 0 === priorSelectionRange.end
|
3649
|
-
? start
|
3650
|
-
: Math.min(priorSelectionRange.end, length);
|
3651
|
-
!curFocusedElem.extend &&
|
3652
|
-
start > priorSelectionRange &&
|
3653
|
-
((length = priorSelectionRange),
|
3654
|
-
(priorSelectionRange = start),
|
3655
|
-
(start = length));
|
3656
|
-
length = getNodeForCharacterOffset(containerInfo, start);
|
3657
|
-
var endMarker = getNodeForCharacterOffset(
|
3658
|
-
containerInfo,
|
3659
|
-
priorSelectionRange
|
3660
|
-
);
|
3661
|
-
length &&
|
3662
|
-
endMarker &&
|
3663
|
-
(1 !== curFocusedElem.rangeCount ||
|
3664
|
-
curFocusedElem.anchorNode !== length.node ||
|
3665
|
-
curFocusedElem.anchorOffset !== length.offset ||
|
3666
|
-
curFocusedElem.focusNode !== endMarker.node ||
|
3667
|
-
curFocusedElem.focusOffset !== endMarker.offset) &&
|
3668
|
-
((priorSelectionInformation =
|
3669
|
-
priorSelectionInformation.createRange()),
|
3670
|
-
priorSelectionInformation.setStart(length.node, length.offset),
|
3671
|
-
curFocusedElem.removeAllRanges(),
|
3672
|
-
start > priorSelectionRange
|
3673
|
-
? (curFocusedElem.addRange(priorSelectionInformation),
|
3674
|
-
curFocusedElem.extend(endMarker.node, endMarker.offset))
|
3675
|
-
: (priorSelectionInformation.setEnd(
|
3676
|
-
endMarker.node,
|
3677
|
-
endMarker.offset
|
3678
|
-
),
|
3679
|
-
curFocusedElem.addRange(priorSelectionInformation)));
|
3680
|
-
}
|
3681
|
-
priorSelectionInformation = [];
|
3682
|
-
for (
|
3683
|
-
curFocusedElem = containerInfo;
|
3684
|
-
(curFocusedElem = curFocusedElem.parentNode);
|
3685
|
-
|
3686
|
-
)
|
3687
|
-
1 === curFocusedElem.nodeType &&
|
3688
|
-
priorSelectionInformation.push({
|
3689
|
-
element: curFocusedElem,
|
3690
|
-
left: curFocusedElem.scrollLeft,
|
3691
|
-
top: curFocusedElem.scrollTop
|
3692
|
-
});
|
3693
|
-
"function" === typeof containerInfo.focus && containerInfo.focus();
|
3694
|
-
for (
|
3695
|
-
containerInfo = 0;
|
3696
|
-
containerInfo < priorSelectionInformation.length;
|
3697
|
-
containerInfo++
|
3698
|
-
)
|
3699
|
-
(curFocusedElem = priorSelectionInformation[containerInfo]),
|
3700
|
-
(curFocusedElem.element.scrollLeft = curFocusedElem.left),
|
3701
|
-
(curFocusedElem.element.scrollTop = curFocusedElem.top);
|
3702
|
-
}
|
3703
|
-
}
|
3704
3575
|
function constructSelectEvent(
|
3705
3576
|
dispatchQueue,
|
3706
3577
|
nativeEvent,
|
@@ -5373,7 +5244,7 @@
|
|
5373
5244
|
null;
|
5374
5245
|
hookTypesUpdateIndexDev = -1;
|
5375
5246
|
null !== current &&
|
5376
|
-
(current.flags &
|
5247
|
+
(current.flags & 29360128) !== (workInProgress.flags & 29360128) &&
|
5377
5248
|
console.error(
|
5378
5249
|
"Internal React error: Expected static flag was missing. Please notify the React team."
|
5379
5250
|
);
|
@@ -8515,14 +8386,14 @@
|
|
8515
8386
|
if (null === ref)
|
8516
8387
|
null !== current &&
|
8517
8388
|
null !== current.ref &&
|
8518
|
-
(workInProgress.flags |=
|
8389
|
+
(workInProgress.flags |= 4194816);
|
8519
8390
|
else {
|
8520
8391
|
if ("function" !== typeof ref && "object" !== typeof ref)
|
8521
8392
|
throw Error(
|
8522
8393
|
"Expected ref to be a function, an object returned by React.createRef(), or undefined/null."
|
8523
8394
|
);
|
8524
8395
|
if (null === current || current.ref !== ref)
|
8525
|
-
workInProgress.flags |=
|
8396
|
+
workInProgress.flags |= 4194816;
|
8526
8397
|
}
|
8527
8398
|
}
|
8528
8399
|
function updateFunctionComponent(
|
@@ -9222,32 +9093,32 @@
|
|
9222
9093
|
return current;
|
9223
9094
|
}
|
9224
9095
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
9225
|
-
var
|
9226
|
-
var
|
9096
|
+
var JSCompiler_object_inline_digest_2350;
|
9097
|
+
var JSCompiler_object_inline_stack_2351 = workInProgress.pendingProps;
|
9227
9098
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
9228
|
-
var
|
9099
|
+
var JSCompiler_object_inline_componentStack_2352 = !1;
|
9229
9100
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
9230
|
-
(
|
9231
|
-
(
|
9101
|
+
(JSCompiler_object_inline_digest_2350 = didSuspend) ||
|
9102
|
+
(JSCompiler_object_inline_digest_2350 =
|
9232
9103
|
null !== current && null === current.memoizedState
|
9233
9104
|
? !1
|
9234
9105
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
9235
|
-
|
9236
|
-
((
|
9106
|
+
JSCompiler_object_inline_digest_2350 &&
|
9107
|
+
((JSCompiler_object_inline_componentStack_2352 = !0),
|
9237
9108
|
(workInProgress.flags &= -129));
|
9238
|
-
|
9109
|
+
JSCompiler_object_inline_digest_2350 = 0 !== (workInProgress.flags & 32);
|
9239
9110
|
workInProgress.flags &= -33;
|
9240
9111
|
if (null === current) {
|
9241
9112
|
if (isHydrating) {
|
9242
|
-
|
9113
|
+
JSCompiler_object_inline_componentStack_2352
|
9243
9114
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
9244
9115
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
9245
9116
|
if (isHydrating) {
|
9246
|
-
var
|
9117
|
+
var JSCompiler_object_inline_message_2349 = nextHydratableInstance;
|
9247
9118
|
var JSCompiler_temp;
|
9248
|
-
if (!(JSCompiler_temp = !
|
9119
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2349)) {
|
9249
9120
|
c: {
|
9250
|
-
var instance =
|
9121
|
+
var instance = JSCompiler_object_inline_message_2349;
|
9251
9122
|
for (
|
9252
9123
|
JSCompiler_temp = rootOrSingletonContext;
|
9253
9124
|
8 !== instance.nodeType;
|
@@ -9289,77 +9160,77 @@
|
|
9289
9160
|
JSCompiler_temp &&
|
9290
9161
|
(warnNonHydratedInstance(
|
9291
9162
|
workInProgress,
|
9292
|
-
|
9163
|
+
JSCompiler_object_inline_message_2349
|
9293
9164
|
),
|
9294
9165
|
throwOnHydrationMismatch(workInProgress));
|
9295
9166
|
}
|
9296
|
-
|
9167
|
+
JSCompiler_object_inline_message_2349 = workInProgress.memoizedState;
|
9297
9168
|
if (
|
9298
|
-
null !==
|
9299
|
-
((
|
9300
|
-
|
9301
|
-
null !==
|
9169
|
+
null !== JSCompiler_object_inline_message_2349 &&
|
9170
|
+
((JSCompiler_object_inline_message_2349 =
|
9171
|
+
JSCompiler_object_inline_message_2349.dehydrated),
|
9172
|
+
null !== JSCompiler_object_inline_message_2349)
|
9302
9173
|
)
|
9303
9174
|
return (
|
9304
|
-
isSuspenseInstanceFallback(
|
9175
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2349)
|
9305
9176
|
? (workInProgress.lanes = 32)
|
9306
9177
|
: (workInProgress.lanes = 536870912),
|
9307
9178
|
null
|
9308
9179
|
);
|
9309
9180
|
popSuspenseHandler(workInProgress);
|
9310
9181
|
}
|
9311
|
-
|
9312
|
-
|
9313
|
-
|
9314
|
-
|
9315
|
-
if (
|
9182
|
+
JSCompiler_object_inline_message_2349 =
|
9183
|
+
JSCompiler_object_inline_stack_2351.children;
|
9184
|
+
JSCompiler_object_inline_stack_2351 =
|
9185
|
+
JSCompiler_object_inline_stack_2351.fallback;
|
9186
|
+
if (JSCompiler_object_inline_componentStack_2352)
|
9316
9187
|
return (
|
9317
9188
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9318
|
-
(
|
9189
|
+
(JSCompiler_object_inline_componentStack_2352 =
|
9319
9190
|
workInProgress.mode),
|
9320
|
-
(
|
9191
|
+
(JSCompiler_object_inline_message_2349 =
|
9321
9192
|
mountWorkInProgressOffscreenFiber(
|
9322
9193
|
{
|
9323
9194
|
mode: "hidden",
|
9324
|
-
children:
|
9195
|
+
children: JSCompiler_object_inline_message_2349
|
9325
9196
|
},
|
9326
|
-
|
9197
|
+
JSCompiler_object_inline_componentStack_2352
|
9327
9198
|
)),
|
9328
|
-
(
|
9329
|
-
|
9330
|
-
|
9199
|
+
(JSCompiler_object_inline_stack_2351 = createFiberFromFragment(
|
9200
|
+
JSCompiler_object_inline_stack_2351,
|
9201
|
+
JSCompiler_object_inline_componentStack_2352,
|
9331
9202
|
renderLanes,
|
9332
9203
|
null
|
9333
9204
|
)),
|
9334
|
-
(
|
9335
|
-
(
|
9336
|
-
(
|
9337
|
-
|
9338
|
-
(workInProgress.child =
|
9339
|
-
(
|
9205
|
+
(JSCompiler_object_inline_message_2349.return = workInProgress),
|
9206
|
+
(JSCompiler_object_inline_stack_2351.return = workInProgress),
|
9207
|
+
(JSCompiler_object_inline_message_2349.sibling =
|
9208
|
+
JSCompiler_object_inline_stack_2351),
|
9209
|
+
(workInProgress.child = JSCompiler_object_inline_message_2349),
|
9210
|
+
(JSCompiler_object_inline_componentStack_2352 =
|
9340
9211
|
workInProgress.child),
|
9341
|
-
(
|
9212
|
+
(JSCompiler_object_inline_componentStack_2352.memoizedState =
|
9342
9213
|
mountSuspenseOffscreenState(renderLanes)),
|
9343
|
-
(
|
9214
|
+
(JSCompiler_object_inline_componentStack_2352.childLanes =
|
9344
9215
|
getRemainingWorkInPrimaryTree(
|
9345
9216
|
current,
|
9346
|
-
|
9217
|
+
JSCompiler_object_inline_digest_2350,
|
9347
9218
|
renderLanes
|
9348
9219
|
)),
|
9349
9220
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9350
|
-
|
9221
|
+
JSCompiler_object_inline_stack_2351
|
9351
9222
|
);
|
9352
9223
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9353
9224
|
return mountSuspensePrimaryChildren(
|
9354
9225
|
workInProgress,
|
9355
|
-
|
9226
|
+
JSCompiler_object_inline_message_2349
|
9356
9227
|
);
|
9357
9228
|
}
|
9358
9229
|
var prevState = current.memoizedState;
|
9359
9230
|
if (
|
9360
9231
|
null !== prevState &&
|
9361
|
-
((
|
9362
|
-
null !==
|
9232
|
+
((JSCompiler_object_inline_message_2349 = prevState.dehydrated),
|
9233
|
+
null !== JSCompiler_object_inline_message_2349)
|
9363
9234
|
) {
|
9364
9235
|
if (didSuspend)
|
9365
9236
|
workInProgress.flags & 256
|
@@ -9376,94 +9247,94 @@
|
|
9376
9247
|
(workInProgress.flags |= 128),
|
9377
9248
|
(workInProgress = null))
|
9378
9249
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
9379
|
-
(
|
9380
|
-
|
9381
|
-
(
|
9382
|
-
(
|
9250
|
+
(JSCompiler_object_inline_componentStack_2352 =
|
9251
|
+
JSCompiler_object_inline_stack_2351.fallback),
|
9252
|
+
(JSCompiler_object_inline_message_2349 = workInProgress.mode),
|
9253
|
+
(JSCompiler_object_inline_stack_2351 =
|
9383
9254
|
mountWorkInProgressOffscreenFiber(
|
9384
9255
|
{
|
9385
9256
|
mode: "visible",
|
9386
|
-
children:
|
9257
|
+
children: JSCompiler_object_inline_stack_2351.children
|
9387
9258
|
},
|
9388
|
-
|
9259
|
+
JSCompiler_object_inline_message_2349
|
9389
9260
|
)),
|
9390
|
-
(
|
9261
|
+
(JSCompiler_object_inline_componentStack_2352 =
|
9391
9262
|
createFiberFromFragment(
|
9392
|
-
|
9393
|
-
|
9263
|
+
JSCompiler_object_inline_componentStack_2352,
|
9264
|
+
JSCompiler_object_inline_message_2349,
|
9394
9265
|
renderLanes,
|
9395
9266
|
null
|
9396
9267
|
)),
|
9397
|
-
(
|
9398
|
-
(
|
9399
|
-
(
|
9268
|
+
(JSCompiler_object_inline_componentStack_2352.flags |= 2),
|
9269
|
+
(JSCompiler_object_inline_stack_2351.return = workInProgress),
|
9270
|
+
(JSCompiler_object_inline_componentStack_2352.return =
|
9400
9271
|
workInProgress),
|
9401
|
-
(
|
9402
|
-
|
9403
|
-
(workInProgress.child =
|
9272
|
+
(JSCompiler_object_inline_stack_2351.sibling =
|
9273
|
+
JSCompiler_object_inline_componentStack_2352),
|
9274
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2351),
|
9404
9275
|
reconcileChildFibers(
|
9405
9276
|
workInProgress,
|
9406
9277
|
current.child,
|
9407
9278
|
null,
|
9408
9279
|
renderLanes
|
9409
9280
|
),
|
9410
|
-
(
|
9411
|
-
(
|
9281
|
+
(JSCompiler_object_inline_stack_2351 = workInProgress.child),
|
9282
|
+
(JSCompiler_object_inline_stack_2351.memoizedState =
|
9412
9283
|
mountSuspenseOffscreenState(renderLanes)),
|
9413
|
-
(
|
9284
|
+
(JSCompiler_object_inline_stack_2351.childLanes =
|
9414
9285
|
getRemainingWorkInPrimaryTree(
|
9415
9286
|
current,
|
9416
|
-
|
9287
|
+
JSCompiler_object_inline_digest_2350,
|
9417
9288
|
renderLanes
|
9418
9289
|
)),
|
9419
9290
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9420
9291
|
(workInProgress =
|
9421
|
-
|
9292
|
+
JSCompiler_object_inline_componentStack_2352));
|
9422
9293
|
else if (
|
9423
9294
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
9424
9295
|
isHydrating &&
|
9425
9296
|
console.error(
|
9426
9297
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
9427
9298
|
),
|
9428
|
-
isSuspenseInstanceFallback(
|
9299
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2349))
|
9429
9300
|
) {
|
9430
|
-
|
9431
|
-
|
9432
|
-
|
9433
|
-
if (
|
9434
|
-
JSCompiler_temp =
|
9435
|
-
var message =
|
9436
|
-
instance =
|
9437
|
-
var componentStack =
|
9301
|
+
JSCompiler_object_inline_digest_2350 =
|
9302
|
+
JSCompiler_object_inline_message_2349.nextSibling &&
|
9303
|
+
JSCompiler_object_inline_message_2349.nextSibling.dataset;
|
9304
|
+
if (JSCompiler_object_inline_digest_2350) {
|
9305
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2350.dgst;
|
9306
|
+
var message = JSCompiler_object_inline_digest_2350.msg;
|
9307
|
+
instance = JSCompiler_object_inline_digest_2350.stck;
|
9308
|
+
var componentStack = JSCompiler_object_inline_digest_2350.cstck;
|
9438
9309
|
}
|
9439
|
-
|
9440
|
-
|
9441
|
-
|
9442
|
-
JSCompiler_temp =
|
9310
|
+
JSCompiler_object_inline_message_2349 = message;
|
9311
|
+
JSCompiler_object_inline_digest_2350 = JSCompiler_temp;
|
9312
|
+
JSCompiler_object_inline_stack_2351 = instance;
|
9313
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2352 =
|
9443
9314
|
componentStack;
|
9444
|
-
|
9445
|
-
|
9446
|
-
? Error(
|
9315
|
+
JSCompiler_object_inline_componentStack_2352 =
|
9316
|
+
JSCompiler_object_inline_message_2349
|
9317
|
+
? Error(JSCompiler_object_inline_message_2349)
|
9447
9318
|
: Error(
|
9448
9319
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
9449
9320
|
);
|
9450
|
-
|
9451
|
-
|
9452
|
-
|
9453
|
-
|
9454
|
-
|
9321
|
+
JSCompiler_object_inline_componentStack_2352.stack =
|
9322
|
+
JSCompiler_object_inline_stack_2351 || "";
|
9323
|
+
JSCompiler_object_inline_componentStack_2352.digest =
|
9324
|
+
JSCompiler_object_inline_digest_2350;
|
9325
|
+
JSCompiler_object_inline_digest_2350 =
|
9455
9326
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
9456
|
-
|
9457
|
-
value:
|
9327
|
+
JSCompiler_object_inline_stack_2351 = {
|
9328
|
+
value: JSCompiler_object_inline_componentStack_2352,
|
9458
9329
|
source: null,
|
9459
|
-
stack:
|
9330
|
+
stack: JSCompiler_object_inline_digest_2350
|
9460
9331
|
};
|
9461
|
-
"string" === typeof
|
9332
|
+
"string" === typeof JSCompiler_object_inline_digest_2350 &&
|
9462
9333
|
CapturedStacks.set(
|
9463
|
-
|
9464
|
-
|
9334
|
+
JSCompiler_object_inline_componentStack_2352,
|
9335
|
+
JSCompiler_object_inline_stack_2351
|
9465
9336
|
);
|
9466
|
-
queueHydrationError(
|
9337
|
+
queueHydrationError(JSCompiler_object_inline_stack_2351);
|
9467
9338
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9468
9339
|
current,
|
9469
9340
|
workInProgress,
|
@@ -9477,44 +9348,44 @@
|
|
9477
9348
|
renderLanes,
|
9478
9349
|
!1
|
9479
9350
|
),
|
9480
|
-
(
|
9351
|
+
(JSCompiler_object_inline_digest_2350 =
|
9481
9352
|
0 !== (renderLanes & current.childLanes)),
|
9482
|
-
didReceiveUpdate ||
|
9353
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2350)
|
9483
9354
|
) {
|
9484
|
-
|
9355
|
+
JSCompiler_object_inline_digest_2350 = workInProgressRoot;
|
9485
9356
|
if (
|
9486
|
-
null !==
|
9487
|
-
((
|
9488
|
-
(
|
9489
|
-
0 !== (
|
9357
|
+
null !== JSCompiler_object_inline_digest_2350 &&
|
9358
|
+
((JSCompiler_object_inline_stack_2351 = renderLanes & -renderLanes),
|
9359
|
+
(JSCompiler_object_inline_stack_2351 =
|
9360
|
+
0 !== (JSCompiler_object_inline_stack_2351 & 42)
|
9490
9361
|
? 1
|
9491
9362
|
: getBumpedLaneForHydrationByLane(
|
9492
|
-
|
9363
|
+
JSCompiler_object_inline_stack_2351
|
9493
9364
|
)),
|
9494
|
-
(
|
9365
|
+
(JSCompiler_object_inline_stack_2351 =
|
9495
9366
|
0 !==
|
9496
|
-
(
|
9497
|
-
(
|
9367
|
+
(JSCompiler_object_inline_stack_2351 &
|
9368
|
+
(JSCompiler_object_inline_digest_2350.suspendedLanes |
|
9498
9369
|
renderLanes))
|
9499
9370
|
? 0
|
9500
|
-
:
|
9501
|
-
0 !==
|
9502
|
-
|
9371
|
+
: JSCompiler_object_inline_stack_2351),
|
9372
|
+
0 !== JSCompiler_object_inline_stack_2351 &&
|
9373
|
+
JSCompiler_object_inline_stack_2351 !== prevState.retryLane)
|
9503
9374
|
)
|
9504
9375
|
throw (
|
9505
|
-
((prevState.retryLane =
|
9376
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2351),
|
9506
9377
|
enqueueConcurrentRenderForLane(
|
9507
9378
|
current,
|
9508
|
-
|
9379
|
+
JSCompiler_object_inline_stack_2351
|
9509
9380
|
),
|
9510
9381
|
scheduleUpdateOnFiber(
|
9511
|
-
|
9382
|
+
JSCompiler_object_inline_digest_2350,
|
9512
9383
|
current,
|
9513
|
-
|
9384
|
+
JSCompiler_object_inline_stack_2351
|
9514
9385
|
),
|
9515
9386
|
SelectiveHydrationException)
|
9516
9387
|
);
|
9517
|
-
|
9388
|
+
JSCompiler_object_inline_message_2349.data ===
|
9518
9389
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
9519
9390
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9520
9391
|
current,
|
@@ -9522,14 +9393,14 @@
|
|
9522
9393
|
renderLanes
|
9523
9394
|
);
|
9524
9395
|
} else
|
9525
|
-
|
9396
|
+
JSCompiler_object_inline_message_2349.data ===
|
9526
9397
|
SUSPENSE_PENDING_START_DATA
|
9527
9398
|
? ((workInProgress.flags |= 192),
|
9528
9399
|
(workInProgress.child = current.child),
|
9529
9400
|
(workInProgress = null))
|
9530
9401
|
: ((current = prevState.treeContext),
|
9531
9402
|
(nextHydratableInstance = getNextHydratable(
|
9532
|
-
|
9403
|
+
JSCompiler_object_inline_message_2349.nextSibling
|
9533
9404
|
)),
|
9534
9405
|
(hydrationParentFiber = workInProgress),
|
9535
9406
|
(isHydrating = !0),
|
@@ -9547,57 +9418,57 @@
|
|
9547
9418
|
(treeContextProvider = workInProgress)),
|
9548
9419
|
(workInProgress = mountSuspensePrimaryChildren(
|
9549
9420
|
workInProgress,
|
9550
|
-
|
9421
|
+
JSCompiler_object_inline_stack_2351.children
|
9551
9422
|
)),
|
9552
9423
|
(workInProgress.flags |= 4096));
|
9553
9424
|
return workInProgress;
|
9554
9425
|
}
|
9555
|
-
if (
|
9426
|
+
if (JSCompiler_object_inline_componentStack_2352)
|
9556
9427
|
return (
|
9557
9428
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9558
|
-
(
|
9559
|
-
|
9560
|
-
(
|
9429
|
+
(JSCompiler_object_inline_componentStack_2352 =
|
9430
|
+
JSCompiler_object_inline_stack_2351.fallback),
|
9431
|
+
(JSCompiler_object_inline_message_2349 = workInProgress.mode),
|
9561
9432
|
(JSCompiler_temp = current.child),
|
9562
9433
|
(instance = JSCompiler_temp.sibling),
|
9563
|
-
(
|
9434
|
+
(JSCompiler_object_inline_stack_2351 = createWorkInProgress(
|
9564
9435
|
JSCompiler_temp,
|
9565
9436
|
{
|
9566
9437
|
mode: "hidden",
|
9567
|
-
children:
|
9438
|
+
children: JSCompiler_object_inline_stack_2351.children
|
9568
9439
|
}
|
9569
9440
|
)),
|
9570
|
-
(
|
9571
|
-
JSCompiler_temp.subtreeFlags &
|
9441
|
+
(JSCompiler_object_inline_stack_2351.subtreeFlags =
|
9442
|
+
JSCompiler_temp.subtreeFlags & 29360128),
|
9572
9443
|
null !== instance
|
9573
|
-
? (
|
9444
|
+
? (JSCompiler_object_inline_componentStack_2352 =
|
9574
9445
|
createWorkInProgress(
|
9575
9446
|
instance,
|
9576
|
-
|
9447
|
+
JSCompiler_object_inline_componentStack_2352
|
9577
9448
|
))
|
9578
|
-
: ((
|
9449
|
+
: ((JSCompiler_object_inline_componentStack_2352 =
|
9579
9450
|
createFiberFromFragment(
|
9580
|
-
|
9581
|
-
|
9451
|
+
JSCompiler_object_inline_componentStack_2352,
|
9452
|
+
JSCompiler_object_inline_message_2349,
|
9582
9453
|
renderLanes,
|
9583
9454
|
null
|
9584
9455
|
)),
|
9585
|
-
(
|
9586
|
-
(
|
9456
|
+
(JSCompiler_object_inline_componentStack_2352.flags |= 2)),
|
9457
|
+
(JSCompiler_object_inline_componentStack_2352.return =
|
9587
9458
|
workInProgress),
|
9588
|
-
(
|
9589
|
-
(
|
9590
|
-
|
9591
|
-
(workInProgress.child =
|
9592
|
-
(
|
9593
|
-
|
9594
|
-
(
|
9595
|
-
(
|
9596
|
-
null ===
|
9597
|
-
? (
|
9459
|
+
(JSCompiler_object_inline_stack_2351.return = workInProgress),
|
9460
|
+
(JSCompiler_object_inline_stack_2351.sibling =
|
9461
|
+
JSCompiler_object_inline_componentStack_2352),
|
9462
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2351),
|
9463
|
+
(JSCompiler_object_inline_stack_2351 =
|
9464
|
+
JSCompiler_object_inline_componentStack_2352),
|
9465
|
+
(JSCompiler_object_inline_componentStack_2352 = workInProgress.child),
|
9466
|
+
(JSCompiler_object_inline_message_2349 = current.child.memoizedState),
|
9467
|
+
null === JSCompiler_object_inline_message_2349
|
9468
|
+
? (JSCompiler_object_inline_message_2349 =
|
9598
9469
|
mountSuspenseOffscreenState(renderLanes))
|
9599
9470
|
: ((JSCompiler_temp =
|
9600
|
-
|
9471
|
+
JSCompiler_object_inline_message_2349.cachePool),
|
9601
9472
|
null !== JSCompiler_temp
|
9602
9473
|
? ((instance = CacheContext._currentValue),
|
9603
9474
|
(JSCompiler_temp =
|
@@ -9605,37 +9476,37 @@
|
|
9605
9476
|
? { parent: instance, pool: instance }
|
9606
9477
|
: JSCompiler_temp))
|
9607
9478
|
: (JSCompiler_temp = getSuspendedCache()),
|
9608
|
-
(
|
9479
|
+
(JSCompiler_object_inline_message_2349 = {
|
9609
9480
|
baseLanes:
|
9610
|
-
|
9481
|
+
JSCompiler_object_inline_message_2349.baseLanes | renderLanes,
|
9611
9482
|
cachePool: JSCompiler_temp
|
9612
9483
|
})),
|
9613
|
-
(
|
9614
|
-
|
9615
|
-
(
|
9484
|
+
(JSCompiler_object_inline_componentStack_2352.memoizedState =
|
9485
|
+
JSCompiler_object_inline_message_2349),
|
9486
|
+
(JSCompiler_object_inline_componentStack_2352.childLanes =
|
9616
9487
|
getRemainingWorkInPrimaryTree(
|
9617
9488
|
current,
|
9618
|
-
|
9489
|
+
JSCompiler_object_inline_digest_2350,
|
9619
9490
|
renderLanes
|
9620
9491
|
)),
|
9621
9492
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9622
|
-
|
9493
|
+
JSCompiler_object_inline_stack_2351
|
9623
9494
|
);
|
9624
9495
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9625
9496
|
renderLanes = current.child;
|
9626
9497
|
current = renderLanes.sibling;
|
9627
9498
|
renderLanes = createWorkInProgress(renderLanes, {
|
9628
9499
|
mode: "visible",
|
9629
|
-
children:
|
9500
|
+
children: JSCompiler_object_inline_stack_2351.children
|
9630
9501
|
});
|
9631
9502
|
renderLanes.return = workInProgress;
|
9632
9503
|
renderLanes.sibling = null;
|
9633
9504
|
null !== current &&
|
9634
|
-
((
|
9635
|
-
null ===
|
9505
|
+
((JSCompiler_object_inline_digest_2350 = workInProgress.deletions),
|
9506
|
+
null === JSCompiler_object_inline_digest_2350
|
9636
9507
|
? ((workInProgress.deletions = [current]),
|
9637
9508
|
(workInProgress.flags |= 16))
|
9638
|
-
:
|
9509
|
+
: JSCompiler_object_inline_digest_2350.push(current));
|
9639
9510
|
workInProgress.child = renderLanes;
|
9640
9511
|
workInProgress.memoizedState = null;
|
9641
9512
|
return renderLanes;
|
@@ -11333,7 +11204,7 @@
|
|
11333
11204
|
if (
|
11334
11205
|
((firstChild = nextEffect),
|
11335
11206
|
(root = firstChild.child),
|
11336
|
-
0 !== (firstChild.subtreeFlags &
|
11207
|
+
0 !== (firstChild.subtreeFlags & 1024) && null !== root)
|
11337
11208
|
)
|
11338
11209
|
(root.return = firstChild), (nextEffect = root);
|
11339
11210
|
else
|
@@ -11392,9 +11263,6 @@
|
|
11392
11263
|
}
|
11393
11264
|
nextEffect = firstChild.return;
|
11394
11265
|
}
|
11395
|
-
firstChild = shouldFireAfterActiveInstanceBlur;
|
11396
|
-
shouldFireAfterActiveInstanceBlur = !1;
|
11397
|
-
return firstChild;
|
11398
11266
|
}
|
11399
11267
|
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
11400
11268
|
var flags = finishedWork.flags;
|
@@ -11869,12 +11737,6 @@
|
|
11869
11737
|
}
|
11870
11738
|
});
|
11871
11739
|
}
|
11872
|
-
function commitMutationEffects(root, finishedWork, committedLanes) {
|
11873
|
-
inProgressLanes = committedLanes;
|
11874
|
-
inProgressRoot = root;
|
11875
|
-
commitMutationEffectsOnFiber(finishedWork, root);
|
11876
|
-
inProgressRoot = inProgressLanes = null;
|
11877
|
-
}
|
11878
11740
|
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
11879
11741
|
var deletions = parentFiber.deletions;
|
11880
11742
|
if (null !== deletions)
|
@@ -12009,7 +11871,9 @@
|
|
12009
11871
|
if (
|
12010
11872
|
((hoistableRoot = maybeNodes[i]),
|
12011
11873
|
hoistableRoot.getAttribute("href") ===
|
12012
|
-
(null == current.href
|
11874
|
+
(null == current.href || "" === current.href
|
11875
|
+
? null
|
11876
|
+
: current.href) &&
|
12013
11877
|
hoistableRoot.getAttribute("rel") ===
|
12014
11878
|
(null == current.rel ? null : current.rel) &&
|
12015
11879
|
hoistableRoot.getAttribute("title") ===
|
@@ -12402,12 +12266,6 @@
|
|
12402
12266
|
parentFiber = parentFiber.sibling;
|
12403
12267
|
}
|
12404
12268
|
}
|
12405
|
-
function commitLayoutEffects(finishedWork, root, committedLanes) {
|
12406
|
-
inProgressLanes = committedLanes;
|
12407
|
-
inProgressRoot = root;
|
12408
|
-
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
|
12409
|
-
inProgressRoot = inProgressLanes = null;
|
12410
|
-
}
|
12411
12269
|
function recursivelyTraverseLayoutEffects(root, parentFiber) {
|
12412
12270
|
if (parentFiber.subtreeFlags & 8772)
|
12413
12271
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
@@ -12654,6 +12512,14 @@
|
|
12654
12512
|
flags & 2048 &&
|
12655
12513
|
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
|
12656
12514
|
break;
|
12515
|
+
case 1:
|
12516
|
+
recursivelyTraversePassiveMountEffects(
|
12517
|
+
finishedRoot,
|
12518
|
+
finishedWork,
|
12519
|
+
committedLanes,
|
12520
|
+
committedTransitions
|
12521
|
+
);
|
12522
|
+
break;
|
12657
12523
|
case 3:
|
12658
12524
|
var prevEffectDuration = pushNestedEffectDurations();
|
12659
12525
|
recursivelyTraversePassiveMountEffects(
|
@@ -13171,7 +13037,7 @@
|
|
13171
13037
|
(workInProgress.deletions = null),
|
13172
13038
|
(workInProgress.actualDuration = -0),
|
13173
13039
|
(workInProgress.actualStartTime = -1.1));
|
13174
|
-
workInProgress.flags = current.flags &
|
13040
|
+
workInProgress.flags = current.flags & 29360128;
|
13175
13041
|
workInProgress.childLanes = current.childLanes;
|
13176
13042
|
workInProgress.lanes = current.lanes;
|
13177
13043
|
workInProgress.child = current.child;
|
@@ -13209,7 +13075,7 @@
|
|
13209
13075
|
return workInProgress;
|
13210
13076
|
}
|
13211
13077
|
function resetWorkInProgress(workInProgress, renderLanes) {
|
13212
|
-
workInProgress.flags &=
|
13078
|
+
workInProgress.flags &= 29360130;
|
13213
13079
|
var current = workInProgress.alternate;
|
13214
13080
|
null === current
|
13215
13081
|
? ((workInProgress.childLanes = 0),
|
@@ -13528,8 +13394,8 @@
|
|
13528
13394
|
|
13529
13395
|
)
|
13530
13396
|
(newChildLanes |= _child2.lanes | _child2.childLanes),
|
13531
|
-
(subtreeFlags |= _child2.subtreeFlags &
|
13532
|
-
(subtreeFlags |= _child2.flags &
|
13397
|
+
(subtreeFlags |= _child2.subtreeFlags & 29360128),
|
13398
|
+
(subtreeFlags |= _child2.flags & 29360128),
|
13533
13399
|
(_treeBaseDuration += _child2.treeBaseDuration),
|
13534
13400
|
(_child2 = _child2.sibling);
|
13535
13401
|
completedWork.treeBaseDuration = _treeBaseDuration;
|
@@ -13541,8 +13407,8 @@
|
|
13541
13407
|
)
|
13542
13408
|
(newChildLanes |=
|
13543
13409
|
_treeBaseDuration.lanes | _treeBaseDuration.childLanes),
|
13544
|
-
(subtreeFlags |= _treeBaseDuration.subtreeFlags &
|
13545
|
-
(subtreeFlags |= _treeBaseDuration.flags &
|
13410
|
+
(subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128),
|
13411
|
+
(subtreeFlags |= _treeBaseDuration.flags & 29360128),
|
13546
13412
|
(_treeBaseDuration.return = completedWork),
|
13547
13413
|
(_treeBaseDuration = _treeBaseDuration.sibling);
|
13548
13414
|
else if ((completedWork.mode & ProfileMode) !== NoMode) {
|
@@ -14451,21 +14317,17 @@
|
|
14451
14317
|
default:
|
14452
14318
|
throw Error("Unknown root exit status.");
|
14453
14319
|
}
|
14454
|
-
shouldTimeSlice.finishedWork = forceSync;
|
14455
|
-
shouldTimeSlice.finishedLanes = lanes;
|
14456
14320
|
if (null !== ReactSharedInternals.actQueue)
|
14457
14321
|
commitRoot(
|
14458
14322
|
shouldTimeSlice,
|
14323
|
+
forceSync,
|
14324
|
+
lanes,
|
14459
14325
|
workInProgressRootRecoverableErrors,
|
14460
14326
|
workInProgressTransitions,
|
14461
14327
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
14462
14328
|
workInProgressDeferredLane,
|
14463
14329
|
workInProgressRootInterleavedUpdatedLanes,
|
14464
|
-
workInProgressSuspendedRetryLanes
|
14465
|
-
exitStatus,
|
14466
|
-
IMMEDIATE_COMMIT,
|
14467
|
-
renderStartTime,
|
14468
|
-
0
|
14330
|
+
workInProgressSuspendedRetryLanes
|
14469
14331
|
);
|
14470
14332
|
else {
|
14471
14333
|
if (
|
@@ -14482,7 +14344,7 @@
|
|
14482
14344
|
workInProgressDeferredLane,
|
14483
14345
|
!workInProgressRootDidSkipSuspendedSiblings
|
14484
14346
|
);
|
14485
|
-
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14347
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
|
14486
14348
|
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14487
14349
|
commitRootWhenReady.bind(
|
14488
14350
|
null,
|
@@ -14544,18 +14406,24 @@
|
|
14544
14406
|
completedRenderStartTime,
|
14545
14407
|
completedRenderEndTime
|
14546
14408
|
) {
|
14547
|
-
|
14548
|
-
|
14409
|
+
root.timeoutHandle = noTimeout;
|
14410
|
+
suspendedCommitReason = finishedWork.subtreeFlags;
|
14411
|
+
if (
|
14412
|
+
suspendedCommitReason & 8192 ||
|
14413
|
+
16785408 === (suspendedCommitReason & 16785408)
|
14414
|
+
)
|
14549
14415
|
if (
|
14550
14416
|
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
|
14551
14417
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
14552
|
-
(
|
14553
|
-
null !==
|
14418
|
+
(suspendedCommitReason = waitForCommitToBeReady()),
|
14419
|
+
null !== suspendedCommitReason)
|
14554
14420
|
) {
|
14555
|
-
root.cancelPendingCommit =
|
14421
|
+
root.cancelPendingCommit = suspendedCommitReason(
|
14556
14422
|
commitRoot.bind(
|
14557
14423
|
null,
|
14558
14424
|
root,
|
14425
|
+
finishedWork,
|
14426
|
+
lanes,
|
14559
14427
|
recoverableErrors,
|
14560
14428
|
transitions,
|
14561
14429
|
didIncludeRenderPhaseUpdate,
|
@@ -14578,16 +14446,14 @@
|
|
14578
14446
|
}
|
14579
14447
|
commitRoot(
|
14580
14448
|
root,
|
14449
|
+
finishedWork,
|
14450
|
+
lanes,
|
14581
14451
|
recoverableErrors,
|
14582
14452
|
transitions,
|
14583
14453
|
didIncludeRenderPhaseUpdate,
|
14584
14454
|
spawnedLane,
|
14585
14455
|
updatedLanes,
|
14586
|
-
suspendedRetryLanes
|
14587
|
-
exitStatus,
|
14588
|
-
suspendedCommitReason,
|
14589
|
-
completedRenderStartTime,
|
14590
|
-
completedRenderEndTime
|
14456
|
+
suspendedRetryLanes
|
14591
14457
|
);
|
14592
14458
|
}
|
14593
14459
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
@@ -14668,8 +14534,6 @@
|
|
14668
14534
|
}
|
14669
14535
|
}
|
14670
14536
|
function prepareFreshStack(root, lanes) {
|
14671
|
-
root.finishedWork = null;
|
14672
|
-
root.finishedLanes = 0;
|
14673
14537
|
var timeoutHandle = root.timeoutHandle;
|
14674
14538
|
timeoutHandle !== noTimeout &&
|
14675
14539
|
((root.timeoutHandle = noTimeout), cancelTimeout(timeoutHandle));
|
@@ -15025,7 +14889,7 @@
|
|
15025
14889
|
}
|
15026
14890
|
null !== ReactSharedInternals.actQueue
|
15027
14891
|
? workLoopSync()
|
15028
|
-
:
|
14892
|
+
: workLoopConcurrentByScheduler();
|
15029
14893
|
break;
|
15030
14894
|
} catch (thrownValue$9) {
|
15031
14895
|
handleThrow(root, thrownValue$9);
|
@@ -15048,7 +14912,7 @@
|
|
15048
14912
|
finishQueueingConcurrentUpdates();
|
15049
14913
|
return workInProgressRootExitStatus;
|
15050
14914
|
}
|
15051
|
-
function
|
14915
|
+
function workLoopConcurrentByScheduler() {
|
15052
14916
|
for (; null !== workInProgress && !shouldYield(); )
|
15053
14917
|
performUnitOfWork(workInProgress);
|
15054
14918
|
}
|
@@ -15249,169 +15113,315 @@
|
|
15249
15113
|
}
|
15250
15114
|
function commitRoot(
|
15251
15115
|
root,
|
15116
|
+
finishedWork,
|
15117
|
+
lanes,
|
15252
15118
|
recoverableErrors,
|
15253
15119
|
transitions,
|
15254
15120
|
didIncludeRenderPhaseUpdate,
|
15255
15121
|
spawnedLane,
|
15256
15122
|
updatedLanes,
|
15257
|
-
suspendedRetryLanes,
|
15258
|
-
exitStatus,
|
15259
|
-
suspendedCommitReason,
|
15260
|
-
completedRenderStartTime,
|
15261
|
-
completedRenderEndTime
|
15262
|
-
) {
|
15263
|
-
var prevTransition = ReactSharedInternals.T,
|
15264
|
-
previousUpdateLanePriority = ReactDOMSharedInternals.p;
|
15265
|
-
try {
|
15266
|
-
(ReactDOMSharedInternals.p = DiscreteEventPriority),
|
15267
|
-
(ReactSharedInternals.T = null),
|
15268
|
-
commitRootImpl(
|
15269
|
-
root,
|
15270
|
-
recoverableErrors,
|
15271
|
-
transitions,
|
15272
|
-
didIncludeRenderPhaseUpdate,
|
15273
|
-
previousUpdateLanePriority,
|
15274
|
-
spawnedLane,
|
15275
|
-
updatedLanes,
|
15276
|
-
suspendedRetryLanes,
|
15277
|
-
exitStatus,
|
15278
|
-
suspendedCommitReason,
|
15279
|
-
completedRenderStartTime,
|
15280
|
-
completedRenderEndTime
|
15281
|
-
);
|
15282
|
-
} finally {
|
15283
|
-
(ReactSharedInternals.T = prevTransition),
|
15284
|
-
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
|
15285
|
-
}
|
15286
|
-
}
|
15287
|
-
function commitRootImpl(
|
15288
|
-
root,
|
15289
|
-
recoverableErrors,
|
15290
|
-
transitions,
|
15291
|
-
didIncludeRenderPhaseUpdate,
|
15292
|
-
renderPriorityLevel,
|
15293
|
-
spawnedLane,
|
15294
|
-
updatedLanes,
|
15295
15123
|
suspendedRetryLanes
|
15296
15124
|
) {
|
15125
|
+
root.cancelPendingCommit = null;
|
15297
15126
|
do flushPassiveEffects();
|
15298
15127
|
while (null !== rootWithPendingPassiveEffects);
|
15299
15128
|
ReactStrictModeWarnings.flushLegacyContextWarning();
|
15300
15129
|
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
|
15301
15130
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
15302
15131
|
throw Error("Should not already be working.");
|
15303
|
-
var finishedWork = root.finishedWork;
|
15304
|
-
didIncludeRenderPhaseUpdate = root.finishedLanes;
|
15305
15132
|
null !== injectedProfilingHooks &&
|
15306
15133
|
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
15307
|
-
injectedProfilingHooks.markCommitStarted(
|
15308
|
-
if (null === finishedWork)
|
15309
|
-
|
15310
|
-
|
15311
|
-
|
15312
|
-
|
15313
|
-
|
15314
|
-
|
15315
|
-
|
15316
|
-
|
15317
|
-
|
15134
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
15135
|
+
if (null === finishedWork) markCommitStopped();
|
15136
|
+
else {
|
15137
|
+
0 === lanes &&
|
15138
|
+
console.error(
|
15139
|
+
"finishedLanes should not be empty during a commit. This is a bug in React."
|
15140
|
+
);
|
15141
|
+
if (finishedWork === root.current)
|
15142
|
+
throw Error(
|
15143
|
+
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
|
15144
|
+
);
|
15145
|
+
didIncludeRenderPhaseUpdate =
|
15146
|
+
finishedWork.lanes | finishedWork.childLanes;
|
15147
|
+
didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
|
15148
|
+
markRootFinished(
|
15149
|
+
root,
|
15150
|
+
lanes,
|
15151
|
+
didIncludeRenderPhaseUpdate,
|
15152
|
+
spawnedLane,
|
15153
|
+
updatedLanes,
|
15154
|
+
suspendedRetryLanes
|
15318
15155
|
);
|
15319
|
-
|
15320
|
-
|
15321
|
-
|
15322
|
-
|
15323
|
-
|
15324
|
-
|
15325
|
-
|
15326
|
-
|
15327
|
-
|
15328
|
-
|
15329
|
-
|
15330
|
-
|
15331
|
-
|
15332
|
-
|
15333
|
-
|
15334
|
-
|
15335
|
-
|
15336
|
-
|
15337
|
-
|
15338
|
-
|
15339
|
-
|
15340
|
-
|
15341
|
-
|
15342
|
-
|
15343
|
-
|
15344
|
-
|
15345
|
-
|
15346
|
-
|
15347
|
-
|
15348
|
-
|
15349
|
-
|
15350
|
-
|
15351
|
-
|
15352
|
-
|
15353
|
-
|
15354
|
-
|
15355
|
-
|
15356
|
-
|
15357
|
-
|
15358
|
-
|
15359
|
-
|
15360
|
-
|
15361
|
-
|
15362
|
-
|
15363
|
-
|
15364
|
-
|
15365
|
-
|
15366
|
-
|
15156
|
+
root === workInProgressRoot &&
|
15157
|
+
((workInProgress = workInProgressRoot = null),
|
15158
|
+
(workInProgressRootRenderLanes = 0));
|
15159
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15160
|
+
0 !== (finishedWork.flags & 10256)
|
15161
|
+
? ((pendingPassiveEffectsRemainingLanes =
|
15162
|
+
didIncludeRenderPhaseUpdate),
|
15163
|
+
(pendingPassiveTransitions = transitions),
|
15164
|
+
(root.callbackNode = null),
|
15165
|
+
(root.callbackPriority = 0),
|
15166
|
+
scheduleCallback$1(NormalPriority$1, function () {
|
15167
|
+
flushPassiveEffects(!0);
|
15168
|
+
return null;
|
15169
|
+
}))
|
15170
|
+
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
15171
|
+
commitStartTime = now();
|
15172
|
+
transitions = 0 !== (finishedWork.flags & 13878);
|
15173
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
|
15174
|
+
transitions = ReactSharedInternals.T;
|
15175
|
+
ReactSharedInternals.T = null;
|
15176
|
+
spawnedLane = ReactDOMSharedInternals.p;
|
15177
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15178
|
+
updatedLanes = executionContext;
|
15179
|
+
executionContext |= CommitContext;
|
15180
|
+
try {
|
15181
|
+
commitBeforeMutationEffects(root, finishedWork);
|
15182
|
+
} finally {
|
15183
|
+
(executionContext = updatedLanes),
|
15184
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15185
|
+
(ReactSharedInternals.T = transitions);
|
15186
|
+
}
|
15187
|
+
}
|
15188
|
+
flushMutationEffects(root, finishedWork, lanes);
|
15189
|
+
flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
|
15190
|
+
}
|
15191
|
+
}
|
15192
|
+
function flushMutationEffects(root, finishedWork, lanes) {
|
15193
|
+
var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
15194
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
|
15195
|
+
rootMutationHasEffect = ReactSharedInternals.T;
|
15196
|
+
ReactSharedInternals.T = null;
|
15197
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15198
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15199
|
+
var prevExecutionContext = executionContext;
|
15200
|
+
executionContext |= CommitContext;
|
15201
|
+
try {
|
15202
|
+
inProgressLanes = lanes;
|
15203
|
+
inProgressRoot = root;
|
15204
|
+
commitMutationEffectsOnFiber(finishedWork, root);
|
15205
|
+
inProgressRoot = inProgressLanes = null;
|
15206
|
+
lanes = selectionInformation;
|
15207
|
+
var curFocusedElem = getActiveElementDeep(root.containerInfo),
|
15208
|
+
priorFocusedElem = lanes.focusedElem,
|
15209
|
+
priorSelectionRange = lanes.selectionRange;
|
15210
|
+
if (
|
15211
|
+
curFocusedElem !== priorFocusedElem &&
|
15212
|
+
priorFocusedElem &&
|
15213
|
+
priorFocusedElem.ownerDocument &&
|
15214
|
+
containsNode(
|
15215
|
+
priorFocusedElem.ownerDocument.documentElement,
|
15216
|
+
priorFocusedElem
|
15217
|
+
)
|
15218
|
+
) {
|
15219
|
+
if (
|
15220
|
+
null !== priorSelectionRange &&
|
15221
|
+
hasSelectionCapabilities(priorFocusedElem)
|
15222
|
+
) {
|
15223
|
+
var start = priorSelectionRange.start,
|
15224
|
+
end = priorSelectionRange.end;
|
15225
|
+
void 0 === end && (end = start);
|
15226
|
+
if ("selectionStart" in priorFocusedElem)
|
15227
|
+
(priorFocusedElem.selectionStart = start),
|
15228
|
+
(priorFocusedElem.selectionEnd = Math.min(
|
15229
|
+
end,
|
15230
|
+
priorFocusedElem.value.length
|
15231
|
+
));
|
15232
|
+
else {
|
15233
|
+
var doc = priorFocusedElem.ownerDocument || document,
|
15234
|
+
win = (doc && doc.defaultView) || window;
|
15235
|
+
if (win.getSelection) {
|
15236
|
+
var selection = win.getSelection(),
|
15237
|
+
length = priorFocusedElem.textContent.length,
|
15238
|
+
start$jscomp$0 = Math.min(
|
15239
|
+
priorSelectionRange.start,
|
15240
|
+
length
|
15241
|
+
),
|
15242
|
+
end$jscomp$0 =
|
15243
|
+
void 0 === priorSelectionRange.end
|
15244
|
+
? start$jscomp$0
|
15245
|
+
: Math.min(priorSelectionRange.end, length);
|
15246
|
+
!selection.extend &&
|
15247
|
+
start$jscomp$0 > end$jscomp$0 &&
|
15248
|
+
((curFocusedElem = end$jscomp$0),
|
15249
|
+
(end$jscomp$0 = start$jscomp$0),
|
15250
|
+
(start$jscomp$0 = curFocusedElem));
|
15251
|
+
var startMarker = getNodeForCharacterOffset(
|
15252
|
+
priorFocusedElem,
|
15253
|
+
start$jscomp$0
|
15254
|
+
),
|
15255
|
+
endMarker = getNodeForCharacterOffset(
|
15256
|
+
priorFocusedElem,
|
15257
|
+
end$jscomp$0
|
15258
|
+
);
|
15259
|
+
if (
|
15260
|
+
startMarker &&
|
15261
|
+
endMarker &&
|
15262
|
+
(1 !== selection.rangeCount ||
|
15263
|
+
selection.anchorNode !== startMarker.node ||
|
15264
|
+
selection.anchorOffset !== startMarker.offset ||
|
15265
|
+
selection.focusNode !== endMarker.node ||
|
15266
|
+
selection.focusOffset !== endMarker.offset)
|
15267
|
+
) {
|
15268
|
+
var range = doc.createRange();
|
15269
|
+
range.setStart(startMarker.node, startMarker.offset);
|
15270
|
+
selection.removeAllRanges();
|
15271
|
+
start$jscomp$0 > end$jscomp$0
|
15272
|
+
? (selection.addRange(range),
|
15273
|
+
selection.extend(endMarker.node, endMarker.offset))
|
15274
|
+
: (range.setEnd(endMarker.node, endMarker.offset),
|
15275
|
+
selection.addRange(range));
|
15276
|
+
}
|
15277
|
+
}
|
15278
|
+
}
|
15279
|
+
}
|
15280
|
+
doc = [];
|
15281
|
+
for (
|
15282
|
+
selection = priorFocusedElem;
|
15283
|
+
(selection = selection.parentNode);
|
15284
|
+
|
15285
|
+
)
|
15286
|
+
1 === selection.nodeType &&
|
15287
|
+
doc.push({
|
15288
|
+
element: selection,
|
15289
|
+
left: selection.scrollLeft,
|
15290
|
+
top: selection.scrollTop
|
15291
|
+
});
|
15292
|
+
"function" === typeof priorFocusedElem.focus &&
|
15293
|
+
priorFocusedElem.focus();
|
15294
|
+
for (
|
15295
|
+
priorFocusedElem = 0;
|
15296
|
+
priorFocusedElem < doc.length;
|
15297
|
+
priorFocusedElem++
|
15298
|
+
) {
|
15299
|
+
var info = doc[priorFocusedElem];
|
15300
|
+
info.element.scrollLeft = info.left;
|
15301
|
+
info.element.scrollTop = info.top;
|
15302
|
+
}
|
15303
|
+
}
|
15304
|
+
_enabled = !!eventsEnabled;
|
15305
|
+
selectionInformation = eventsEnabled = null;
|
15306
|
+
} finally {
|
15307
|
+
(executionContext = prevExecutionContext),
|
15308
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15309
|
+
(ReactSharedInternals.T = rootMutationHasEffect);
|
15310
|
+
}
|
15311
|
+
}
|
15312
|
+
root.current = finishedWork;
|
15313
|
+
}
|
15314
|
+
function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
|
15315
|
+
var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
|
15316
|
+
if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
|
15317
|
+
rootHasLayoutEffect = ReactSharedInternals.T;
|
15318
|
+
ReactSharedInternals.T = null;
|
15319
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15320
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15321
|
+
var prevExecutionContext = executionContext;
|
15322
|
+
executionContext |= CommitContext;
|
15323
|
+
try {
|
15367
15324
|
null !== injectedProfilingHooks &&
|
15368
15325
|
"function" ===
|
15369
15326
|
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15370
|
-
injectedProfilingHooks.markLayoutEffectsStarted(
|
15371
|
-
|
15327
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes),
|
15328
|
+
(inProgressLanes = lanes),
|
15329
|
+
(inProgressRoot = root),
|
15330
|
+
commitLayoutEffectOnFiber(
|
15331
|
+
root,
|
15332
|
+
finishedWork.alternate,
|
15333
|
+
finishedWork
|
15372
15334
|
),
|
15373
|
-
|
15374
|
-
|
15375
|
-
|
15376
|
-
|
15377
|
-
|
15378
|
-
|
15379
|
-
(executionContext =
|
15380
|
-
|
15381
|
-
|
15382
|
-
|
15383
|
-
|
15384
|
-
|
15385
|
-
|
15386
|
-
|
15387
|
-
|
15335
|
+
(inProgressRoot = inProgressLanes = null),
|
15336
|
+
null !== injectedProfilingHooks &&
|
15337
|
+
"function" ===
|
15338
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15339
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
15340
|
+
} finally {
|
15341
|
+
(executionContext = prevExecutionContext),
|
15342
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15343
|
+
(ReactSharedInternals.T = rootHasLayoutEffect);
|
15344
|
+
}
|
15345
|
+
}
|
15346
|
+
requestPaint();
|
15347
|
+
(rootHasLayoutEffect =
|
15348
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15349
|
+
0 !== (finishedWork.flags & 10256))
|
15350
|
+
? ((rootWithPendingPassiveEffects = root),
|
15351
|
+
(pendingPassiveEffectsLanes = lanes))
|
15352
|
+
: (releaseRootPooledCache(root, root.pendingLanes),
|
15388
15353
|
(nestedPassiveUpdateCount = 0),
|
15389
15354
|
(rootWithPassiveNestedUpdates = null));
|
15390
|
-
|
15391
|
-
0 ===
|
15392
|
-
|
15393
|
-
|
15355
|
+
previousPriority = root.pendingLanes;
|
15356
|
+
0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
|
15357
|
+
rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
|
15358
|
+
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
15359
|
+
finishedWork = finishedWork.stateNode;
|
15360
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
15361
|
+
try {
|
15362
|
+
var didError = 128 === (finishedWork.current.flags & 128);
|
15363
|
+
switch (rootHasLayoutEffect) {
|
15364
|
+
case DiscreteEventPriority:
|
15365
|
+
var schedulerPriority = ImmediatePriority;
|
15366
|
+
break;
|
15367
|
+
case ContinuousEventPriority:
|
15368
|
+
schedulerPriority = UserBlockingPriority;
|
15369
|
+
break;
|
15370
|
+
case DefaultEventPriority:
|
15371
|
+
schedulerPriority = NormalPriority$1;
|
15372
|
+
break;
|
15373
|
+
case IdleEventPriority:
|
15374
|
+
schedulerPriority = IdlePriority;
|
15375
|
+
break;
|
15376
|
+
default:
|
15377
|
+
schedulerPriority = NormalPriority$1;
|
15378
|
+
}
|
15379
|
+
injectedHook.onCommitFiberRoot(
|
15380
|
+
rendererID,
|
15381
|
+
finishedWork,
|
15382
|
+
schedulerPriority,
|
15383
|
+
didError
|
15384
|
+
);
|
15385
|
+
} catch (err) {
|
15386
|
+
hasLoggedError ||
|
15387
|
+
((hasLoggedError = !0),
|
15388
|
+
console.error(
|
15389
|
+
"React instrumentation encountered an error: %s",
|
15390
|
+
err
|
15391
|
+
));
|
15392
|
+
}
|
15394
15393
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
15395
15394
|
onCommitRoot();
|
15396
|
-
if (null !== recoverableErrors)
|
15397
|
-
|
15398
|
-
|
15399
|
-
|
15400
|
-
|
15401
|
-
|
15402
|
-
|
15403
|
-
|
15395
|
+
if (null !== recoverableErrors) {
|
15396
|
+
didError = ReactSharedInternals.T;
|
15397
|
+
schedulerPriority = ReactDOMSharedInternals.p;
|
15398
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15399
|
+
ReactSharedInternals.T = null;
|
15400
|
+
try {
|
15401
|
+
var onRecoverableError = root.onRecoverableError;
|
15402
|
+
for (
|
15403
|
+
finishedWork = 0;
|
15404
|
+
finishedWork < recoverableErrors.length;
|
15405
|
+
finishedWork++
|
15406
|
+
) {
|
15407
|
+
var recoverableError = recoverableErrors[finishedWork],
|
15408
|
+
errorInfo = makeErrorInfo(recoverableError.stack);
|
15404
15409
|
runWithFiberInDEV(
|
15405
|
-
|
15406
|
-
|
15407
|
-
|
15408
|
-
|
15410
|
+
recoverableError.source,
|
15411
|
+
onRecoverableError,
|
15412
|
+
recoverableError.value,
|
15413
|
+
errorInfo
|
15409
15414
|
);
|
15415
|
+
}
|
15416
|
+
} finally {
|
15417
|
+
(ReactSharedInternals.T = didError),
|
15418
|
+
(ReactDOMSharedInternals.p = schedulerPriority);
|
15419
|
+
}
|
15420
|
+
}
|
15410
15421
|
0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
|
15411
15422
|
ensureRootIsScheduled(root);
|
15412
|
-
|
15413
|
-
0 !== (
|
15414
|
-
0 !== (remainingLanes & 42)
|
15423
|
+
previousPriority = root.pendingLanes;
|
15424
|
+
0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
|
15415
15425
|
? ((nestedUpdateScheduled = !0),
|
15416
15426
|
root === rootWithNestedUpdates
|
15417
15427
|
? nestedUpdateCount++
|
@@ -15419,7 +15429,6 @@
|
|
15419
15429
|
: (nestedUpdateCount = 0);
|
15420
15430
|
flushSyncWorkAcrossRoots_impl(0, !1);
|
15421
15431
|
markCommitStopped();
|
15422
|
-
return null;
|
15423
15432
|
}
|
15424
15433
|
function makeErrorInfo(componentStack) {
|
15425
15434
|
componentStack = { componentStack: componentStack };
|
@@ -15784,11 +15793,9 @@
|
|
15784
15793
|
mightHavePendingSyncWork = !0;
|
15785
15794
|
null !== ReactSharedInternals.actQueue
|
15786
15795
|
? didScheduleMicrotask_act ||
|
15787
|
-
((didScheduleMicrotask_act = !0),
|
15788
|
-
scheduleImmediateTask(processRootScheduleInMicrotask))
|
15796
|
+
((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask())
|
15789
15797
|
: didScheduleMicrotask ||
|
15790
|
-
((didScheduleMicrotask = !0),
|
15791
|
-
scheduleImmediateTask(processRootScheduleInMicrotask));
|
15798
|
+
((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
|
15792
15799
|
}
|
15793
15800
|
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
15794
15801
|
if (!isFlushingWork && mightHavePendingSyncWork) {
|
@@ -15820,7 +15827,9 @@
|
|
15820
15827
|
(nextLanes = workInProgressRootRenderLanes),
|
15821
15828
|
(nextLanes = getNextLanes(
|
15822
15829
|
root,
|
15823
|
-
root === workInProgressRoot ? nextLanes : 0
|
15830
|
+
root === workInProgressRoot ? nextLanes : 0,
|
15831
|
+
null !== root.cancelPendingCommit ||
|
15832
|
+
root.timeoutHandle !== noTimeout
|
15824
15833
|
)),
|
15825
15834
|
0 === (nextLanes & 3) ||
|
15826
15835
|
checkIfRootIsPrerendering(root, nextLanes) ||
|
@@ -15832,6 +15841,9 @@
|
|
15832
15841
|
isFlushingWork = !1;
|
15833
15842
|
}
|
15834
15843
|
}
|
15844
|
+
function processRootScheduleInImmediateTask() {
|
15845
|
+
processRootScheduleInMicrotask();
|
15846
|
+
}
|
15835
15847
|
function processRootScheduleInMicrotask() {
|
15836
15848
|
mightHavePendingSyncWork =
|
15837
15849
|
didScheduleMicrotask_act =
|
@@ -15883,7 +15895,8 @@
|
|
15883
15895
|
suspendedLanes = workInProgressRootRenderLanes;
|
15884
15896
|
suspendedLanes = getNextLanes(
|
15885
15897
|
root,
|
15886
|
-
root === currentTime ? suspendedLanes : 0
|
15898
|
+
root === currentTime ? suspendedLanes : 0,
|
15899
|
+
null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
|
15887
15900
|
);
|
15888
15901
|
pingedLanes = root.callbackNode;
|
15889
15902
|
if (
|
@@ -15947,7 +15960,10 @@
|
|
15947
15960
|
workInProgressRootRenderLanes;
|
15948
15961
|
workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
15949
15962
|
root,
|
15950
|
-
root === workInProgressRoot
|
15963
|
+
root === workInProgressRoot
|
15964
|
+
? workInProgressRootRenderLanes$jscomp$0
|
15965
|
+
: 0,
|
15966
|
+
null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
|
15951
15967
|
);
|
15952
15968
|
if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
|
15953
15969
|
performWorkOnRoot(
|
@@ -15972,16 +15988,19 @@
|
|
15972
15988
|
null !== callbackNode &&
|
15973
15989
|
cancelCallback$1(callbackNode);
|
15974
15990
|
}
|
15975
|
-
function
|
15991
|
+
function scheduleImmediateRootScheduleTask() {
|
15976
15992
|
null !== ReactSharedInternals.actQueue &&
|
15977
15993
|
ReactSharedInternals.actQueue.push(function () {
|
15978
|
-
|
15994
|
+
processRootScheduleInMicrotask();
|
15979
15995
|
return null;
|
15980
15996
|
});
|
15981
15997
|
scheduleMicrotask(function () {
|
15982
15998
|
(executionContext & (RenderContext | CommitContext)) !== NoContext
|
15983
|
-
? scheduleCallback$3(
|
15984
|
-
|
15999
|
+
? scheduleCallback$3(
|
16000
|
+
ImmediatePriority,
|
16001
|
+
processRootScheduleInImmediateTask
|
16002
|
+
)
|
16003
|
+
: processRootScheduleInMicrotask();
|
15985
16004
|
});
|
15986
16005
|
}
|
15987
16006
|
function requestTransitionLane() {
|
@@ -18551,36 +18570,34 @@
|
|
18551
18570
|
}
|
18552
18571
|
case "src":
|
18553
18572
|
case "href":
|
18554
|
-
|
18555
|
-
|
18556
|
-
|
18557
|
-
|
18558
|
-
|
18559
|
-
|
18560
|
-
|
18561
|
-
|
18562
|
-
|
18563
|
-
|
18564
|
-
|
18565
|
-
|
18566
|
-
|
18567
|
-
|
18568
|
-
|
18569
|
-
|
18570
|
-
|
18571
|
-
|
18572
|
-
|
18573
|
-
|
18574
|
-
|
18575
|
-
|
18576
|
-
|
18577
|
-
|
18578
|
-
|
18579
|
-
|
18580
|
-
|
18581
|
-
|
18582
|
-
serverDifferences
|
18583
|
-
));
|
18573
|
+
if (
|
18574
|
+
!(
|
18575
|
+
"" !== propKey ||
|
18576
|
+
("a" === tag && "href" === value) ||
|
18577
|
+
("object" === tag && "data" === value)
|
18578
|
+
)
|
18579
|
+
) {
|
18580
|
+
"src" === value
|
18581
|
+
? console.error(
|
18582
|
+
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
18583
|
+
value,
|
18584
|
+
value
|
18585
|
+
)
|
18586
|
+
: console.error(
|
18587
|
+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
18588
|
+
value,
|
18589
|
+
value
|
18590
|
+
);
|
18591
|
+
continue;
|
18592
|
+
}
|
18593
|
+
hydrateSanitizedAttribute(
|
18594
|
+
domElement,
|
18595
|
+
value,
|
18596
|
+
value,
|
18597
|
+
propKey,
|
18598
|
+
extraAttributes,
|
18599
|
+
serverDifferences
|
18600
|
+
);
|
18584
18601
|
continue;
|
18585
18602
|
case "action":
|
18586
18603
|
case "formAction":
|
@@ -19190,7 +19207,9 @@
|
|
19190
19207
|
else if (
|
19191
19208
|
name !== anyProps.rel ||
|
19192
19209
|
instance.getAttribute("href") !==
|
19193
|
-
(null == anyProps.href
|
19210
|
+
(null == anyProps.href || "" === anyProps.href
|
19211
|
+
? null
|
19212
|
+
: anyProps.href) ||
|
19194
19213
|
instance.getAttribute("crossorigin") !==
|
19195
19214
|
(null == anyProps.crossOrigin
|
19196
19215
|
? null
|
@@ -20161,11 +20180,7 @@
|
|
20161
20180
|
) {
|
20162
20181
|
this.tag = 1;
|
20163
20182
|
this.containerInfo = containerInfo;
|
20164
|
-
this.
|
20165
|
-
this.pingCache =
|
20166
|
-
this.current =
|
20167
|
-
this.pendingChildren =
|
20168
|
-
null;
|
20183
|
+
this.pingCache = this.current = this.pendingChildren = null;
|
20169
20184
|
this.timeoutHandle = noTimeout;
|
20170
20185
|
this.callbackNode =
|
20171
20186
|
this.next =
|
@@ -20178,7 +20193,6 @@
|
|
20178
20193
|
this.entangledLanes =
|
20179
20194
|
this.shellSuspendCounter =
|
20180
20195
|
this.errorRecoveryDisabledLanes =
|
20181
|
-
this.finishedLanes =
|
20182
20196
|
this.expiredLanes =
|
20183
20197
|
this.warmLanes =
|
20184
20198
|
this.pingedLanes =
|
@@ -23882,7 +23896,6 @@
|
|
23882
23896
|
nextEffect = null,
|
23883
23897
|
inProgressLanes = null,
|
23884
23898
|
inProgressRoot = null,
|
23885
|
-
shouldFireAfterActiveInstanceBlur = !1,
|
23886
23899
|
hostParent = null,
|
23887
23900
|
hostParentIsContainer = !1,
|
23888
23901
|
currentHoistableRoot = null,
|
@@ -24514,11 +24527,11 @@
|
|
24514
24527
|
};
|
24515
24528
|
(function () {
|
24516
24529
|
var isomorphicReactPackageVersion = React.version;
|
24517
|
-
if ("19.1.0-canary-
|
24530
|
+
if ("19.1.0-canary-3ce77d55-20250106" !== isomorphicReactPackageVersion)
|
24518
24531
|
throw Error(
|
24519
24532
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24520
24533
|
(isomorphicReactPackageVersion +
|
24521
|
-
"\n - react-dom: 19.1.0-canary-
|
24534
|
+
"\n - react-dom: 19.1.0-canary-3ce77d55-20250106\nLearn more: https://react.dev/warnings/version-mismatch")
|
24522
24535
|
);
|
24523
24536
|
})();
|
24524
24537
|
("function" === typeof Map &&
|
@@ -24555,10 +24568,10 @@
|
|
24555
24568
|
!(function () {
|
24556
24569
|
var internals = {
|
24557
24570
|
bundleType: 1,
|
24558
|
-
version: "19.1.0-canary-
|
24571
|
+
version: "19.1.0-canary-3ce77d55-20250106",
|
24559
24572
|
rendererPackageName: "react-dom",
|
24560
24573
|
currentDispatcherRef: ReactSharedInternals,
|
24561
|
-
reconcilerVersion: "19.1.0-canary-
|
24574
|
+
reconcilerVersion: "19.1.0-canary-3ce77d55-20250106"
|
24562
24575
|
};
|
24563
24576
|
internals.overrideHookState = overrideHookState;
|
24564
24577
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -24704,7 +24717,7 @@
|
|
24704
24717
|
listenToAllSupportedEvents(container);
|
24705
24718
|
return new ReactDOMHydrationRoot(initialChildren);
|
24706
24719
|
};
|
24707
|
-
exports.version = "19.1.0-canary-
|
24720
|
+
exports.version = "19.1.0-canary-3ce77d55-20250106";
|
24708
24721
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
24709
24722
|
"function" ===
|
24710
24723
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|