react-dom 19.1.0-canary-62208bee-20250102 → 19.1.0-canary-3b009b4c-20250102
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 +512 -501
- package/cjs/react-dom-client.production.js +432 -420
- package/cjs/react-dom-profiling.development.js +512 -501
- package/cjs/react-dom-profiling.profiling.js +470 -464
- 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)
|
@@ -12402,12 +12264,6 @@
|
|
12402
12264
|
parentFiber = parentFiber.sibling;
|
12403
12265
|
}
|
12404
12266
|
}
|
12405
|
-
function commitLayoutEffects(finishedWork, root, committedLanes) {
|
12406
|
-
inProgressLanes = committedLanes;
|
12407
|
-
inProgressRoot = root;
|
12408
|
-
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
|
12409
|
-
inProgressRoot = inProgressLanes = null;
|
12410
|
-
}
|
12411
12267
|
function recursivelyTraverseLayoutEffects(root, parentFiber) {
|
12412
12268
|
if (parentFiber.subtreeFlags & 8772)
|
12413
12269
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
@@ -12654,6 +12510,14 @@
|
|
12654
12510
|
flags & 2048 &&
|
12655
12511
|
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
|
12656
12512
|
break;
|
12513
|
+
case 1:
|
12514
|
+
recursivelyTraversePassiveMountEffects(
|
12515
|
+
finishedRoot,
|
12516
|
+
finishedWork,
|
12517
|
+
committedLanes,
|
12518
|
+
committedTransitions
|
12519
|
+
);
|
12520
|
+
break;
|
12657
12521
|
case 3:
|
12658
12522
|
var prevEffectDuration = pushNestedEffectDurations();
|
12659
12523
|
recursivelyTraversePassiveMountEffects(
|
@@ -13171,7 +13035,7 @@
|
|
13171
13035
|
(workInProgress.deletions = null),
|
13172
13036
|
(workInProgress.actualDuration = -0),
|
13173
13037
|
(workInProgress.actualStartTime = -1.1));
|
13174
|
-
workInProgress.flags = current.flags &
|
13038
|
+
workInProgress.flags = current.flags & 29360128;
|
13175
13039
|
workInProgress.childLanes = current.childLanes;
|
13176
13040
|
workInProgress.lanes = current.lanes;
|
13177
13041
|
workInProgress.child = current.child;
|
@@ -13209,7 +13073,7 @@
|
|
13209
13073
|
return workInProgress;
|
13210
13074
|
}
|
13211
13075
|
function resetWorkInProgress(workInProgress, renderLanes) {
|
13212
|
-
workInProgress.flags &=
|
13076
|
+
workInProgress.flags &= 29360130;
|
13213
13077
|
var current = workInProgress.alternate;
|
13214
13078
|
null === current
|
13215
13079
|
? ((workInProgress.childLanes = 0),
|
@@ -13528,8 +13392,8 @@
|
|
13528
13392
|
|
13529
13393
|
)
|
13530
13394
|
(newChildLanes |= _child2.lanes | _child2.childLanes),
|
13531
|
-
(subtreeFlags |= _child2.subtreeFlags &
|
13532
|
-
(subtreeFlags |= _child2.flags &
|
13395
|
+
(subtreeFlags |= _child2.subtreeFlags & 29360128),
|
13396
|
+
(subtreeFlags |= _child2.flags & 29360128),
|
13533
13397
|
(_treeBaseDuration += _child2.treeBaseDuration),
|
13534
13398
|
(_child2 = _child2.sibling);
|
13535
13399
|
completedWork.treeBaseDuration = _treeBaseDuration;
|
@@ -13541,8 +13405,8 @@
|
|
13541
13405
|
)
|
13542
13406
|
(newChildLanes |=
|
13543
13407
|
_treeBaseDuration.lanes | _treeBaseDuration.childLanes),
|
13544
|
-
(subtreeFlags |= _treeBaseDuration.subtreeFlags &
|
13545
|
-
(subtreeFlags |= _treeBaseDuration.flags &
|
13408
|
+
(subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128),
|
13409
|
+
(subtreeFlags |= _treeBaseDuration.flags & 29360128),
|
13546
13410
|
(_treeBaseDuration.return = completedWork),
|
13547
13411
|
(_treeBaseDuration = _treeBaseDuration.sibling);
|
13548
13412
|
else if ((completedWork.mode & ProfileMode) !== NoMode) {
|
@@ -14451,21 +14315,17 @@
|
|
14451
14315
|
default:
|
14452
14316
|
throw Error("Unknown root exit status.");
|
14453
14317
|
}
|
14454
|
-
shouldTimeSlice.finishedWork = forceSync;
|
14455
|
-
shouldTimeSlice.finishedLanes = lanes;
|
14456
14318
|
if (null !== ReactSharedInternals.actQueue)
|
14457
14319
|
commitRoot(
|
14458
14320
|
shouldTimeSlice,
|
14321
|
+
forceSync,
|
14322
|
+
lanes,
|
14459
14323
|
workInProgressRootRecoverableErrors,
|
14460
14324
|
workInProgressTransitions,
|
14461
14325
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
14462
14326
|
workInProgressDeferredLane,
|
14463
14327
|
workInProgressRootInterleavedUpdatedLanes,
|
14464
|
-
workInProgressSuspendedRetryLanes
|
14465
|
-
exitStatus,
|
14466
|
-
IMMEDIATE_COMMIT,
|
14467
|
-
renderStartTime,
|
14468
|
-
0
|
14328
|
+
workInProgressSuspendedRetryLanes
|
14469
14329
|
);
|
14470
14330
|
else {
|
14471
14331
|
if (
|
@@ -14482,7 +14342,7 @@
|
|
14482
14342
|
workInProgressDeferredLane,
|
14483
14343
|
!workInProgressRootDidSkipSuspendedSiblings
|
14484
14344
|
);
|
14485
|
-
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14345
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
|
14486
14346
|
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14487
14347
|
commitRootWhenReady.bind(
|
14488
14348
|
null,
|
@@ -14544,18 +14404,24 @@
|
|
14544
14404
|
completedRenderStartTime,
|
14545
14405
|
completedRenderEndTime
|
14546
14406
|
) {
|
14547
|
-
|
14548
|
-
|
14407
|
+
root.timeoutHandle = noTimeout;
|
14408
|
+
suspendedCommitReason = finishedWork.subtreeFlags;
|
14409
|
+
if (
|
14410
|
+
suspendedCommitReason & 8192 ||
|
14411
|
+
16785408 === (suspendedCommitReason & 16785408)
|
14412
|
+
)
|
14549
14413
|
if (
|
14550
14414
|
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
|
14551
14415
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
14552
|
-
(
|
14553
|
-
null !==
|
14416
|
+
(suspendedCommitReason = waitForCommitToBeReady()),
|
14417
|
+
null !== suspendedCommitReason)
|
14554
14418
|
) {
|
14555
|
-
root.cancelPendingCommit =
|
14419
|
+
root.cancelPendingCommit = suspendedCommitReason(
|
14556
14420
|
commitRoot.bind(
|
14557
14421
|
null,
|
14558
14422
|
root,
|
14423
|
+
finishedWork,
|
14424
|
+
lanes,
|
14559
14425
|
recoverableErrors,
|
14560
14426
|
transitions,
|
14561
14427
|
didIncludeRenderPhaseUpdate,
|
@@ -14578,16 +14444,14 @@
|
|
14578
14444
|
}
|
14579
14445
|
commitRoot(
|
14580
14446
|
root,
|
14447
|
+
finishedWork,
|
14448
|
+
lanes,
|
14581
14449
|
recoverableErrors,
|
14582
14450
|
transitions,
|
14583
14451
|
didIncludeRenderPhaseUpdate,
|
14584
14452
|
spawnedLane,
|
14585
14453
|
updatedLanes,
|
14586
|
-
suspendedRetryLanes
|
14587
|
-
exitStatus,
|
14588
|
-
suspendedCommitReason,
|
14589
|
-
completedRenderStartTime,
|
14590
|
-
completedRenderEndTime
|
14454
|
+
suspendedRetryLanes
|
14591
14455
|
);
|
14592
14456
|
}
|
14593
14457
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
@@ -14668,8 +14532,6 @@
|
|
14668
14532
|
}
|
14669
14533
|
}
|
14670
14534
|
function prepareFreshStack(root, lanes) {
|
14671
|
-
root.finishedWork = null;
|
14672
|
-
root.finishedLanes = 0;
|
14673
14535
|
var timeoutHandle = root.timeoutHandle;
|
14674
14536
|
timeoutHandle !== noTimeout &&
|
14675
14537
|
((root.timeoutHandle = noTimeout), cancelTimeout(timeoutHandle));
|
@@ -15025,7 +14887,7 @@
|
|
15025
14887
|
}
|
15026
14888
|
null !== ReactSharedInternals.actQueue
|
15027
14889
|
? workLoopSync()
|
15028
|
-
:
|
14890
|
+
: workLoopConcurrentByScheduler();
|
15029
14891
|
break;
|
15030
14892
|
} catch (thrownValue$9) {
|
15031
14893
|
handleThrow(root, thrownValue$9);
|
@@ -15048,7 +14910,7 @@
|
|
15048
14910
|
finishQueueingConcurrentUpdates();
|
15049
14911
|
return workInProgressRootExitStatus;
|
15050
14912
|
}
|
15051
|
-
function
|
14913
|
+
function workLoopConcurrentByScheduler() {
|
15052
14914
|
for (; null !== workInProgress && !shouldYield(); )
|
15053
14915
|
performUnitOfWork(workInProgress);
|
15054
14916
|
}
|
@@ -15249,169 +15111,315 @@
|
|
15249
15111
|
}
|
15250
15112
|
function commitRoot(
|
15251
15113
|
root,
|
15114
|
+
finishedWork,
|
15115
|
+
lanes,
|
15252
15116
|
recoverableErrors,
|
15253
15117
|
transitions,
|
15254
15118
|
didIncludeRenderPhaseUpdate,
|
15255
15119
|
spawnedLane,
|
15256
15120
|
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
15121
|
suspendedRetryLanes
|
15296
15122
|
) {
|
15123
|
+
root.cancelPendingCommit = null;
|
15297
15124
|
do flushPassiveEffects();
|
15298
15125
|
while (null !== rootWithPendingPassiveEffects);
|
15299
15126
|
ReactStrictModeWarnings.flushLegacyContextWarning();
|
15300
15127
|
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
|
15301
15128
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
15302
15129
|
throw Error("Should not already be working.");
|
15303
|
-
var finishedWork = root.finishedWork;
|
15304
|
-
didIncludeRenderPhaseUpdate = root.finishedLanes;
|
15305
15130
|
null !== injectedProfilingHooks &&
|
15306
15131
|
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
15307
|
-
injectedProfilingHooks.markCommitStarted(
|
15308
|
-
if (null === finishedWork)
|
15309
|
-
|
15310
|
-
|
15311
|
-
|
15312
|
-
|
15313
|
-
|
15314
|
-
|
15315
|
-
|
15316
|
-
|
15317
|
-
|
15132
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
15133
|
+
if (null === finishedWork) markCommitStopped();
|
15134
|
+
else {
|
15135
|
+
0 === lanes &&
|
15136
|
+
console.error(
|
15137
|
+
"finishedLanes should not be empty during a commit. This is a bug in React."
|
15138
|
+
);
|
15139
|
+
if (finishedWork === root.current)
|
15140
|
+
throw Error(
|
15141
|
+
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
|
15142
|
+
);
|
15143
|
+
didIncludeRenderPhaseUpdate =
|
15144
|
+
finishedWork.lanes | finishedWork.childLanes;
|
15145
|
+
didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
|
15146
|
+
markRootFinished(
|
15147
|
+
root,
|
15148
|
+
lanes,
|
15149
|
+
didIncludeRenderPhaseUpdate,
|
15150
|
+
spawnedLane,
|
15151
|
+
updatedLanes,
|
15152
|
+
suspendedRetryLanes
|
15318
15153
|
);
|
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
|
-
|
15154
|
+
root === workInProgressRoot &&
|
15155
|
+
((workInProgress = workInProgressRoot = null),
|
15156
|
+
(workInProgressRootRenderLanes = 0));
|
15157
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15158
|
+
0 !== (finishedWork.flags & 10256)
|
15159
|
+
? ((pendingPassiveEffectsRemainingLanes =
|
15160
|
+
didIncludeRenderPhaseUpdate),
|
15161
|
+
(pendingPassiveTransitions = transitions),
|
15162
|
+
(root.callbackNode = null),
|
15163
|
+
(root.callbackPriority = 0),
|
15164
|
+
scheduleCallback$1(NormalPriority$1, function () {
|
15165
|
+
flushPassiveEffects(!0);
|
15166
|
+
return null;
|
15167
|
+
}))
|
15168
|
+
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
15169
|
+
commitStartTime = now();
|
15170
|
+
transitions = 0 !== (finishedWork.flags & 13878);
|
15171
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
|
15172
|
+
transitions = ReactSharedInternals.T;
|
15173
|
+
ReactSharedInternals.T = null;
|
15174
|
+
spawnedLane = ReactDOMSharedInternals.p;
|
15175
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15176
|
+
updatedLanes = executionContext;
|
15177
|
+
executionContext |= CommitContext;
|
15178
|
+
try {
|
15179
|
+
commitBeforeMutationEffects(root, finishedWork);
|
15180
|
+
} finally {
|
15181
|
+
(executionContext = updatedLanes),
|
15182
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15183
|
+
(ReactSharedInternals.T = transitions);
|
15184
|
+
}
|
15185
|
+
}
|
15186
|
+
flushMutationEffects(root, finishedWork, lanes);
|
15187
|
+
flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
|
15188
|
+
}
|
15189
|
+
}
|
15190
|
+
function flushMutationEffects(root, finishedWork, lanes) {
|
15191
|
+
var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
15192
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
|
15193
|
+
rootMutationHasEffect = ReactSharedInternals.T;
|
15194
|
+
ReactSharedInternals.T = null;
|
15195
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15196
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15197
|
+
var prevExecutionContext = executionContext;
|
15198
|
+
executionContext |= CommitContext;
|
15199
|
+
try {
|
15200
|
+
inProgressLanes = lanes;
|
15201
|
+
inProgressRoot = root;
|
15202
|
+
commitMutationEffectsOnFiber(finishedWork, root);
|
15203
|
+
inProgressRoot = inProgressLanes = null;
|
15204
|
+
lanes = selectionInformation;
|
15205
|
+
var curFocusedElem = getActiveElementDeep(root.containerInfo),
|
15206
|
+
priorFocusedElem = lanes.focusedElem,
|
15207
|
+
priorSelectionRange = lanes.selectionRange;
|
15208
|
+
if (
|
15209
|
+
curFocusedElem !== priorFocusedElem &&
|
15210
|
+
priorFocusedElem &&
|
15211
|
+
priorFocusedElem.ownerDocument &&
|
15212
|
+
containsNode(
|
15213
|
+
priorFocusedElem.ownerDocument.documentElement,
|
15214
|
+
priorFocusedElem
|
15215
|
+
)
|
15216
|
+
) {
|
15217
|
+
if (
|
15218
|
+
null !== priorSelectionRange &&
|
15219
|
+
hasSelectionCapabilities(priorFocusedElem)
|
15220
|
+
) {
|
15221
|
+
var start = priorSelectionRange.start,
|
15222
|
+
end = priorSelectionRange.end;
|
15223
|
+
void 0 === end && (end = start);
|
15224
|
+
if ("selectionStart" in priorFocusedElem)
|
15225
|
+
(priorFocusedElem.selectionStart = start),
|
15226
|
+
(priorFocusedElem.selectionEnd = Math.min(
|
15227
|
+
end,
|
15228
|
+
priorFocusedElem.value.length
|
15229
|
+
));
|
15230
|
+
else {
|
15231
|
+
var doc = priorFocusedElem.ownerDocument || document,
|
15232
|
+
win = (doc && doc.defaultView) || window;
|
15233
|
+
if (win.getSelection) {
|
15234
|
+
var selection = win.getSelection(),
|
15235
|
+
length = priorFocusedElem.textContent.length,
|
15236
|
+
start$jscomp$0 = Math.min(
|
15237
|
+
priorSelectionRange.start,
|
15238
|
+
length
|
15239
|
+
),
|
15240
|
+
end$jscomp$0 =
|
15241
|
+
void 0 === priorSelectionRange.end
|
15242
|
+
? start$jscomp$0
|
15243
|
+
: Math.min(priorSelectionRange.end, length);
|
15244
|
+
!selection.extend &&
|
15245
|
+
start$jscomp$0 > end$jscomp$0 &&
|
15246
|
+
((curFocusedElem = end$jscomp$0),
|
15247
|
+
(end$jscomp$0 = start$jscomp$0),
|
15248
|
+
(start$jscomp$0 = curFocusedElem));
|
15249
|
+
var startMarker = getNodeForCharacterOffset(
|
15250
|
+
priorFocusedElem,
|
15251
|
+
start$jscomp$0
|
15252
|
+
),
|
15253
|
+
endMarker = getNodeForCharacterOffset(
|
15254
|
+
priorFocusedElem,
|
15255
|
+
end$jscomp$0
|
15256
|
+
);
|
15257
|
+
if (
|
15258
|
+
startMarker &&
|
15259
|
+
endMarker &&
|
15260
|
+
(1 !== selection.rangeCount ||
|
15261
|
+
selection.anchorNode !== startMarker.node ||
|
15262
|
+
selection.anchorOffset !== startMarker.offset ||
|
15263
|
+
selection.focusNode !== endMarker.node ||
|
15264
|
+
selection.focusOffset !== endMarker.offset)
|
15265
|
+
) {
|
15266
|
+
var range = doc.createRange();
|
15267
|
+
range.setStart(startMarker.node, startMarker.offset);
|
15268
|
+
selection.removeAllRanges();
|
15269
|
+
start$jscomp$0 > end$jscomp$0
|
15270
|
+
? (selection.addRange(range),
|
15271
|
+
selection.extend(endMarker.node, endMarker.offset))
|
15272
|
+
: (range.setEnd(endMarker.node, endMarker.offset),
|
15273
|
+
selection.addRange(range));
|
15274
|
+
}
|
15275
|
+
}
|
15276
|
+
}
|
15277
|
+
}
|
15278
|
+
doc = [];
|
15279
|
+
for (
|
15280
|
+
selection = priorFocusedElem;
|
15281
|
+
(selection = selection.parentNode);
|
15282
|
+
|
15283
|
+
)
|
15284
|
+
1 === selection.nodeType &&
|
15285
|
+
doc.push({
|
15286
|
+
element: selection,
|
15287
|
+
left: selection.scrollLeft,
|
15288
|
+
top: selection.scrollTop
|
15289
|
+
});
|
15290
|
+
"function" === typeof priorFocusedElem.focus &&
|
15291
|
+
priorFocusedElem.focus();
|
15292
|
+
for (
|
15293
|
+
priorFocusedElem = 0;
|
15294
|
+
priorFocusedElem < doc.length;
|
15295
|
+
priorFocusedElem++
|
15296
|
+
) {
|
15297
|
+
var info = doc[priorFocusedElem];
|
15298
|
+
info.element.scrollLeft = info.left;
|
15299
|
+
info.element.scrollTop = info.top;
|
15300
|
+
}
|
15301
|
+
}
|
15302
|
+
_enabled = !!eventsEnabled;
|
15303
|
+
selectionInformation = eventsEnabled = null;
|
15304
|
+
} finally {
|
15305
|
+
(executionContext = prevExecutionContext),
|
15306
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15307
|
+
(ReactSharedInternals.T = rootMutationHasEffect);
|
15308
|
+
}
|
15309
|
+
}
|
15310
|
+
root.current = finishedWork;
|
15311
|
+
}
|
15312
|
+
function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
|
15313
|
+
var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
|
15314
|
+
if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
|
15315
|
+
rootHasLayoutEffect = ReactSharedInternals.T;
|
15316
|
+
ReactSharedInternals.T = null;
|
15317
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15318
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15319
|
+
var prevExecutionContext = executionContext;
|
15320
|
+
executionContext |= CommitContext;
|
15321
|
+
try {
|
15367
15322
|
null !== injectedProfilingHooks &&
|
15368
15323
|
"function" ===
|
15369
15324
|
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15370
|
-
injectedProfilingHooks.markLayoutEffectsStarted(
|
15371
|
-
|
15325
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes),
|
15326
|
+
(inProgressLanes = lanes),
|
15327
|
+
(inProgressRoot = root),
|
15328
|
+
commitLayoutEffectOnFiber(
|
15329
|
+
root,
|
15330
|
+
finishedWork.alternate,
|
15331
|
+
finishedWork
|
15372
15332
|
),
|
15373
|
-
|
15374
|
-
|
15375
|
-
|
15376
|
-
|
15377
|
-
|
15378
|
-
|
15379
|
-
(executionContext =
|
15380
|
-
|
15381
|
-
|
15382
|
-
|
15383
|
-
|
15384
|
-
|
15385
|
-
|
15386
|
-
|
15387
|
-
|
15333
|
+
(inProgressRoot = inProgressLanes = null),
|
15334
|
+
null !== injectedProfilingHooks &&
|
15335
|
+
"function" ===
|
15336
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15337
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
15338
|
+
} finally {
|
15339
|
+
(executionContext = prevExecutionContext),
|
15340
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15341
|
+
(ReactSharedInternals.T = rootHasLayoutEffect);
|
15342
|
+
}
|
15343
|
+
}
|
15344
|
+
requestPaint();
|
15345
|
+
(rootHasLayoutEffect =
|
15346
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15347
|
+
0 !== (finishedWork.flags & 10256))
|
15348
|
+
? ((rootWithPendingPassiveEffects = root),
|
15349
|
+
(pendingPassiveEffectsLanes = lanes))
|
15350
|
+
: (releaseRootPooledCache(root, root.pendingLanes),
|
15388
15351
|
(nestedPassiveUpdateCount = 0),
|
15389
15352
|
(rootWithPassiveNestedUpdates = null));
|
15390
|
-
|
15391
|
-
0 ===
|
15392
|
-
|
15393
|
-
|
15353
|
+
previousPriority = root.pendingLanes;
|
15354
|
+
0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
|
15355
|
+
rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
|
15356
|
+
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
15357
|
+
finishedWork = finishedWork.stateNode;
|
15358
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
15359
|
+
try {
|
15360
|
+
var didError = 128 === (finishedWork.current.flags & 128);
|
15361
|
+
switch (rootHasLayoutEffect) {
|
15362
|
+
case DiscreteEventPriority:
|
15363
|
+
var schedulerPriority = ImmediatePriority;
|
15364
|
+
break;
|
15365
|
+
case ContinuousEventPriority:
|
15366
|
+
schedulerPriority = UserBlockingPriority;
|
15367
|
+
break;
|
15368
|
+
case DefaultEventPriority:
|
15369
|
+
schedulerPriority = NormalPriority$1;
|
15370
|
+
break;
|
15371
|
+
case IdleEventPriority:
|
15372
|
+
schedulerPriority = IdlePriority;
|
15373
|
+
break;
|
15374
|
+
default:
|
15375
|
+
schedulerPriority = NormalPriority$1;
|
15376
|
+
}
|
15377
|
+
injectedHook.onCommitFiberRoot(
|
15378
|
+
rendererID,
|
15379
|
+
finishedWork,
|
15380
|
+
schedulerPriority,
|
15381
|
+
didError
|
15382
|
+
);
|
15383
|
+
} catch (err) {
|
15384
|
+
hasLoggedError ||
|
15385
|
+
((hasLoggedError = !0),
|
15386
|
+
console.error(
|
15387
|
+
"React instrumentation encountered an error: %s",
|
15388
|
+
err
|
15389
|
+
));
|
15390
|
+
}
|
15394
15391
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
15395
15392
|
onCommitRoot();
|
15396
|
-
if (null !== recoverableErrors)
|
15397
|
-
|
15398
|
-
|
15399
|
-
|
15400
|
-
|
15401
|
-
|
15402
|
-
|
15403
|
-
|
15393
|
+
if (null !== recoverableErrors) {
|
15394
|
+
didError = ReactSharedInternals.T;
|
15395
|
+
schedulerPriority = ReactDOMSharedInternals.p;
|
15396
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15397
|
+
ReactSharedInternals.T = null;
|
15398
|
+
try {
|
15399
|
+
var onRecoverableError = root.onRecoverableError;
|
15400
|
+
for (
|
15401
|
+
finishedWork = 0;
|
15402
|
+
finishedWork < recoverableErrors.length;
|
15403
|
+
finishedWork++
|
15404
|
+
) {
|
15405
|
+
var recoverableError = recoverableErrors[finishedWork],
|
15406
|
+
errorInfo = makeErrorInfo(recoverableError.stack);
|
15404
15407
|
runWithFiberInDEV(
|
15405
|
-
|
15406
|
-
|
15407
|
-
|
15408
|
-
|
15408
|
+
recoverableError.source,
|
15409
|
+
onRecoverableError,
|
15410
|
+
recoverableError.value,
|
15411
|
+
errorInfo
|
15409
15412
|
);
|
15413
|
+
}
|
15414
|
+
} finally {
|
15415
|
+
(ReactSharedInternals.T = didError),
|
15416
|
+
(ReactDOMSharedInternals.p = schedulerPriority);
|
15417
|
+
}
|
15418
|
+
}
|
15410
15419
|
0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
|
15411
15420
|
ensureRootIsScheduled(root);
|
15412
|
-
|
15413
|
-
0 !== (
|
15414
|
-
0 !== (remainingLanes & 42)
|
15421
|
+
previousPriority = root.pendingLanes;
|
15422
|
+
0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
|
15415
15423
|
? ((nestedUpdateScheduled = !0),
|
15416
15424
|
root === rootWithNestedUpdates
|
15417
15425
|
? nestedUpdateCount++
|
@@ -15419,7 +15427,6 @@
|
|
15419
15427
|
: (nestedUpdateCount = 0);
|
15420
15428
|
flushSyncWorkAcrossRoots_impl(0, !1);
|
15421
15429
|
markCommitStopped();
|
15422
|
-
return null;
|
15423
15430
|
}
|
15424
15431
|
function makeErrorInfo(componentStack) {
|
15425
15432
|
componentStack = { componentStack: componentStack };
|
@@ -15784,11 +15791,9 @@
|
|
15784
15791
|
mightHavePendingSyncWork = !0;
|
15785
15792
|
null !== ReactSharedInternals.actQueue
|
15786
15793
|
? didScheduleMicrotask_act ||
|
15787
|
-
((didScheduleMicrotask_act = !0),
|
15788
|
-
scheduleImmediateTask(processRootScheduleInMicrotask))
|
15794
|
+
((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask())
|
15789
15795
|
: didScheduleMicrotask ||
|
15790
|
-
((didScheduleMicrotask = !0),
|
15791
|
-
scheduleImmediateTask(processRootScheduleInMicrotask));
|
15796
|
+
((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
|
15792
15797
|
}
|
15793
15798
|
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
15794
15799
|
if (!isFlushingWork && mightHavePendingSyncWork) {
|
@@ -15820,7 +15825,9 @@
|
|
15820
15825
|
(nextLanes = workInProgressRootRenderLanes),
|
15821
15826
|
(nextLanes = getNextLanes(
|
15822
15827
|
root,
|
15823
|
-
root === workInProgressRoot ? nextLanes : 0
|
15828
|
+
root === workInProgressRoot ? nextLanes : 0,
|
15829
|
+
null !== root.cancelPendingCommit ||
|
15830
|
+
root.timeoutHandle !== noTimeout
|
15824
15831
|
)),
|
15825
15832
|
0 === (nextLanes & 3) ||
|
15826
15833
|
checkIfRootIsPrerendering(root, nextLanes) ||
|
@@ -15832,6 +15839,9 @@
|
|
15832
15839
|
isFlushingWork = !1;
|
15833
15840
|
}
|
15834
15841
|
}
|
15842
|
+
function processRootScheduleInImmediateTask() {
|
15843
|
+
processRootScheduleInMicrotask();
|
15844
|
+
}
|
15835
15845
|
function processRootScheduleInMicrotask() {
|
15836
15846
|
mightHavePendingSyncWork =
|
15837
15847
|
didScheduleMicrotask_act =
|
@@ -15883,7 +15893,8 @@
|
|
15883
15893
|
suspendedLanes = workInProgressRootRenderLanes;
|
15884
15894
|
suspendedLanes = getNextLanes(
|
15885
15895
|
root,
|
15886
|
-
root === currentTime ? suspendedLanes : 0
|
15896
|
+
root === currentTime ? suspendedLanes : 0,
|
15897
|
+
null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
|
15887
15898
|
);
|
15888
15899
|
pingedLanes = root.callbackNode;
|
15889
15900
|
if (
|
@@ -15947,7 +15958,10 @@
|
|
15947
15958
|
workInProgressRootRenderLanes;
|
15948
15959
|
workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
15949
15960
|
root,
|
15950
|
-
root === workInProgressRoot
|
15961
|
+
root === workInProgressRoot
|
15962
|
+
? workInProgressRootRenderLanes$jscomp$0
|
15963
|
+
: 0,
|
15964
|
+
null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
|
15951
15965
|
);
|
15952
15966
|
if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
|
15953
15967
|
performWorkOnRoot(
|
@@ -15972,16 +15986,19 @@
|
|
15972
15986
|
null !== callbackNode &&
|
15973
15987
|
cancelCallback$1(callbackNode);
|
15974
15988
|
}
|
15975
|
-
function
|
15989
|
+
function scheduleImmediateRootScheduleTask() {
|
15976
15990
|
null !== ReactSharedInternals.actQueue &&
|
15977
15991
|
ReactSharedInternals.actQueue.push(function () {
|
15978
|
-
|
15992
|
+
processRootScheduleInMicrotask();
|
15979
15993
|
return null;
|
15980
15994
|
});
|
15981
15995
|
scheduleMicrotask(function () {
|
15982
15996
|
(executionContext & (RenderContext | CommitContext)) !== NoContext
|
15983
|
-
? scheduleCallback$3(
|
15984
|
-
|
15997
|
+
? scheduleCallback$3(
|
15998
|
+
ImmediatePriority,
|
15999
|
+
processRootScheduleInImmediateTask
|
16000
|
+
)
|
16001
|
+
: processRootScheduleInMicrotask();
|
15985
16002
|
});
|
15986
16003
|
}
|
15987
16004
|
function requestTransitionLane() {
|
@@ -20161,11 +20178,7 @@
|
|
20161
20178
|
) {
|
20162
20179
|
this.tag = 1;
|
20163
20180
|
this.containerInfo = containerInfo;
|
20164
|
-
this.
|
20165
|
-
this.pingCache =
|
20166
|
-
this.current =
|
20167
|
-
this.pendingChildren =
|
20168
|
-
null;
|
20181
|
+
this.pingCache = this.current = this.pendingChildren = null;
|
20169
20182
|
this.timeoutHandle = noTimeout;
|
20170
20183
|
this.callbackNode =
|
20171
20184
|
this.next =
|
@@ -20178,7 +20191,6 @@
|
|
20178
20191
|
this.entangledLanes =
|
20179
20192
|
this.shellSuspendCounter =
|
20180
20193
|
this.errorRecoveryDisabledLanes =
|
20181
|
-
this.finishedLanes =
|
20182
20194
|
this.expiredLanes =
|
20183
20195
|
this.warmLanes =
|
20184
20196
|
this.pingedLanes =
|
@@ -23882,7 +23894,6 @@
|
|
23882
23894
|
nextEffect = null,
|
23883
23895
|
inProgressLanes = null,
|
23884
23896
|
inProgressRoot = null,
|
23885
|
-
shouldFireAfterActiveInstanceBlur = !1,
|
23886
23897
|
hostParent = null,
|
23887
23898
|
hostParentIsContainer = !1,
|
23888
23899
|
currentHoistableRoot = null,
|
@@ -24514,11 +24525,11 @@
|
|
24514
24525
|
};
|
24515
24526
|
(function () {
|
24516
24527
|
var isomorphicReactPackageVersion = React.version;
|
24517
|
-
if ("19.1.0-canary-
|
24528
|
+
if ("19.1.0-canary-3b009b4c-20250102" !== isomorphicReactPackageVersion)
|
24518
24529
|
throw Error(
|
24519
24530
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24520
24531
|
(isomorphicReactPackageVersion +
|
24521
|
-
"\n - react-dom: 19.1.0-canary-
|
24532
|
+
"\n - react-dom: 19.1.0-canary-3b009b4c-20250102\nLearn more: https://react.dev/warnings/version-mismatch")
|
24522
24533
|
);
|
24523
24534
|
})();
|
24524
24535
|
("function" === typeof Map &&
|
@@ -24555,10 +24566,10 @@
|
|
24555
24566
|
!(function () {
|
24556
24567
|
var internals = {
|
24557
24568
|
bundleType: 1,
|
24558
|
-
version: "19.1.0-canary-
|
24569
|
+
version: "19.1.0-canary-3b009b4c-20250102",
|
24559
24570
|
rendererPackageName: "react-dom",
|
24560
24571
|
currentDispatcherRef: ReactSharedInternals,
|
24561
|
-
reconcilerVersion: "19.1.0-canary-
|
24572
|
+
reconcilerVersion: "19.1.0-canary-3b009b4c-20250102"
|
24562
24573
|
};
|
24563
24574
|
internals.overrideHookState = overrideHookState;
|
24564
24575
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -24704,7 +24715,7 @@
|
|
24704
24715
|
listenToAllSupportedEvents(container);
|
24705
24716
|
return new ReactDOMHydrationRoot(initialChildren);
|
24706
24717
|
};
|
24707
|
-
exports.version = "19.1.0-canary-
|
24718
|
+
exports.version = "19.1.0-canary-3b009b4c-20250102";
|
24708
24719
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
24709
24720
|
"function" ===
|
24710
24721
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|