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.
@@ -841,41 +841,6 @@
841
841
  }
842
842
  return hook.checkDCE ? !0 : !1;
843
843
  }
844
- function onCommitRoot$1(root, eventPriority) {
845
- if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
846
- try {
847
- var didError = 128 === (root.current.flags & 128);
848
- switch (eventPriority) {
849
- case DiscreteEventPriority:
850
- var schedulerPriority = ImmediatePriority;
851
- break;
852
- case ContinuousEventPriority:
853
- schedulerPriority = UserBlockingPriority;
854
- break;
855
- case DefaultEventPriority:
856
- schedulerPriority = NormalPriority$1;
857
- break;
858
- case IdleEventPriority:
859
- schedulerPriority = IdlePriority;
860
- break;
861
- default:
862
- schedulerPriority = NormalPriority$1;
863
- }
864
- injectedHook.onCommitFiberRoot(
865
- rendererID,
866
- root,
867
- schedulerPriority,
868
- didError
869
- );
870
- } catch (err) {
871
- hasLoggedError ||
872
- ((hasLoggedError = !0),
873
- console.error(
874
- "React instrumentation encountered an error: %s",
875
- err
876
- ));
877
- }
878
- }
879
844
  function setIsStrictModeForDevtools(newIsStrictMode) {
880
845
  "function" === typeof log$1 &&
881
846
  unstable_setDisableYieldValue(newIsStrictMode);
@@ -1004,14 +969,13 @@
1004
969
  );
1005
970
  }
1006
971
  }
1007
- function getNextLanes(root, wipLanes) {
972
+ function getNextLanes(root, wipLanes, rootHasPendingCommit) {
1008
973
  var pendingLanes = root.pendingLanes;
1009
974
  if (0 === pendingLanes) return 0;
1010
975
  var nextLanes = 0,
1011
976
  suspendedLanes = root.suspendedLanes,
1012
- pingedLanes = root.pingedLanes,
1013
- warmLanes = root.warmLanes;
1014
- root = 0 !== root.finishedLanes;
977
+ pingedLanes = root.pingedLanes;
978
+ root = root.warmLanes;
1015
979
  var nonIdlePendingLanes = pendingLanes & 134217727;
1016
980
  0 !== nonIdlePendingLanes
1017
981
  ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
@@ -1020,28 +984,29 @@
1020
984
  : ((pingedLanes &= nonIdlePendingLanes),
1021
985
  0 !== pingedLanes
1022
986
  ? (nextLanes = getHighestPriorityLanes(pingedLanes))
1023
- : root ||
1024
- ((warmLanes = nonIdlePendingLanes & ~warmLanes),
1025
- 0 !== warmLanes &&
1026
- (nextLanes = getHighestPriorityLanes(warmLanes)))))
987
+ : rootHasPendingCommit ||
988
+ ((rootHasPendingCommit = nonIdlePendingLanes & ~root),
989
+ 0 !== rootHasPendingCommit &&
990
+ (nextLanes =
991
+ getHighestPriorityLanes(rootHasPendingCommit)))))
1027
992
  : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
1028
993
  0 !== nonIdlePendingLanes
1029
994
  ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
1030
995
  : 0 !== pingedLanes
1031
996
  ? (nextLanes = getHighestPriorityLanes(pingedLanes))
1032
- : root ||
1033
- ((warmLanes = pendingLanes & ~warmLanes),
1034
- 0 !== warmLanes &&
1035
- (nextLanes = getHighestPriorityLanes(warmLanes))));
997
+ : rootHasPendingCommit ||
998
+ ((rootHasPendingCommit = pendingLanes & ~root),
999
+ 0 !== rootHasPendingCommit &&
1000
+ (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
1036
1001
  return 0 === nextLanes
1037
1002
  ? 0
1038
1003
  : 0 !== wipLanes &&
1039
1004
  wipLanes !== nextLanes &&
1040
1005
  0 === (wipLanes & suspendedLanes) &&
1041
1006
  ((suspendedLanes = nextLanes & -nextLanes),
1042
- (warmLanes = wipLanes & -wipLanes),
1043
- suspendedLanes >= warmLanes ||
1044
- (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
1007
+ (rootHasPendingCommit = wipLanes & -wipLanes),
1008
+ suspendedLanes >= rootHasPendingCommit ||
1009
+ (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176)))
1045
1010
  ? wipLanes
1046
1011
  : nextLanes;
1047
1012
  }
@@ -3615,100 +3580,6 @@
3615
3580
  "true" === elem.contentEditable)
3616
3581
  );
3617
3582
  }
3618
- function restoreSelection(priorSelectionInformation, containerInfo) {
3619
- var curFocusedElem = getActiveElementDeep(containerInfo);
3620
- containerInfo = priorSelectionInformation.focusedElem;
3621
- var priorSelectionRange = priorSelectionInformation.selectionRange;
3622
- if (
3623
- curFocusedElem !== containerInfo &&
3624
- containerInfo &&
3625
- containerInfo.ownerDocument &&
3626
- containsNode(containerInfo.ownerDocument.documentElement, containerInfo)
3627
- ) {
3628
- if (
3629
- null !== priorSelectionRange &&
3630
- hasSelectionCapabilities(containerInfo)
3631
- )
3632
- if (
3633
- ((priorSelectionInformation = priorSelectionRange.start),
3634
- (curFocusedElem = priorSelectionRange.end),
3635
- void 0 === curFocusedElem &&
3636
- (curFocusedElem = priorSelectionInformation),
3637
- "selectionStart" in containerInfo)
3638
- )
3639
- (containerInfo.selectionStart = priorSelectionInformation),
3640
- (containerInfo.selectionEnd = Math.min(
3641
- curFocusedElem,
3642
- containerInfo.value.length
3643
- ));
3644
- else if (
3645
- ((curFocusedElem =
3646
- ((priorSelectionInformation =
3647
- containerInfo.ownerDocument || document) &&
3648
- priorSelectionInformation.defaultView) ||
3649
- window),
3650
- curFocusedElem.getSelection)
3651
- ) {
3652
- curFocusedElem = curFocusedElem.getSelection();
3653
- var length = containerInfo.textContent.length,
3654
- start = Math.min(priorSelectionRange.start, length);
3655
- priorSelectionRange =
3656
- void 0 === priorSelectionRange.end
3657
- ? start
3658
- : Math.min(priorSelectionRange.end, length);
3659
- !curFocusedElem.extend &&
3660
- start > priorSelectionRange &&
3661
- ((length = priorSelectionRange),
3662
- (priorSelectionRange = start),
3663
- (start = length));
3664
- length = getNodeForCharacterOffset(containerInfo, start);
3665
- var endMarker = getNodeForCharacterOffset(
3666
- containerInfo,
3667
- priorSelectionRange
3668
- );
3669
- length &&
3670
- endMarker &&
3671
- (1 !== curFocusedElem.rangeCount ||
3672
- curFocusedElem.anchorNode !== length.node ||
3673
- curFocusedElem.anchorOffset !== length.offset ||
3674
- curFocusedElem.focusNode !== endMarker.node ||
3675
- curFocusedElem.focusOffset !== endMarker.offset) &&
3676
- ((priorSelectionInformation =
3677
- priorSelectionInformation.createRange()),
3678
- priorSelectionInformation.setStart(length.node, length.offset),
3679
- curFocusedElem.removeAllRanges(),
3680
- start > priorSelectionRange
3681
- ? (curFocusedElem.addRange(priorSelectionInformation),
3682
- curFocusedElem.extend(endMarker.node, endMarker.offset))
3683
- : (priorSelectionInformation.setEnd(
3684
- endMarker.node,
3685
- endMarker.offset
3686
- ),
3687
- curFocusedElem.addRange(priorSelectionInformation)));
3688
- }
3689
- priorSelectionInformation = [];
3690
- for (
3691
- curFocusedElem = containerInfo;
3692
- (curFocusedElem = curFocusedElem.parentNode);
3693
-
3694
- )
3695
- 1 === curFocusedElem.nodeType &&
3696
- priorSelectionInformation.push({
3697
- element: curFocusedElem,
3698
- left: curFocusedElem.scrollLeft,
3699
- top: curFocusedElem.scrollTop
3700
- });
3701
- "function" === typeof containerInfo.focus && containerInfo.focus();
3702
- for (
3703
- containerInfo = 0;
3704
- containerInfo < priorSelectionInformation.length;
3705
- containerInfo++
3706
- )
3707
- (curFocusedElem = priorSelectionInformation[containerInfo]),
3708
- (curFocusedElem.element.scrollLeft = curFocusedElem.left),
3709
- (curFocusedElem.element.scrollTop = curFocusedElem.top);
3710
- }
3711
- }
3712
3583
  function constructSelectEvent(
3713
3584
  dispatchQueue,
3714
3585
  nativeEvent,
@@ -5381,7 +5252,7 @@
5381
5252
  null;
5382
5253
  hookTypesUpdateIndexDev = -1;
5383
5254
  null !== current &&
5384
- (current.flags & 31457280) !== (workInProgress.flags & 31457280) &&
5255
+ (current.flags & 29360128) !== (workInProgress.flags & 29360128) &&
5385
5256
  console.error(
5386
5257
  "Internal React error: Expected static flag was missing. Please notify the React team."
5387
5258
  );
@@ -8523,14 +8394,14 @@
8523
8394
  if (null === ref)
8524
8395
  null !== current &&
8525
8396
  null !== current.ref &&
8526
- (workInProgress.flags |= 2097664);
8397
+ (workInProgress.flags |= 4194816);
8527
8398
  else {
8528
8399
  if ("function" !== typeof ref && "object" !== typeof ref)
8529
8400
  throw Error(
8530
8401
  "Expected ref to be a function, an object returned by React.createRef(), or undefined/null."
8531
8402
  );
8532
8403
  if (null === current || current.ref !== ref)
8533
- workInProgress.flags |= 2097664;
8404
+ workInProgress.flags |= 4194816;
8534
8405
  }
8535
8406
  }
8536
8407
  function updateFunctionComponent(
@@ -9230,32 +9101,32 @@
9230
9101
  return current;
9231
9102
  }
9232
9103
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
9233
- var JSCompiler_object_inline_digest_2318;
9234
- var JSCompiler_object_inline_stack_2319 = workInProgress.pendingProps;
9104
+ var JSCompiler_object_inline_digest_2355;
9105
+ var JSCompiler_object_inline_stack_2356 = workInProgress.pendingProps;
9235
9106
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
9236
- var JSCompiler_object_inline_componentStack_2320 = !1;
9107
+ var JSCompiler_object_inline_componentStack_2357 = !1;
9237
9108
  var didSuspend = 0 !== (workInProgress.flags & 128);
9238
- (JSCompiler_object_inline_digest_2318 = didSuspend) ||
9239
- (JSCompiler_object_inline_digest_2318 =
9109
+ (JSCompiler_object_inline_digest_2355 = didSuspend) ||
9110
+ (JSCompiler_object_inline_digest_2355 =
9240
9111
  null !== current && null === current.memoizedState
9241
9112
  ? !1
9242
9113
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
9243
- JSCompiler_object_inline_digest_2318 &&
9244
- ((JSCompiler_object_inline_componentStack_2320 = !0),
9114
+ JSCompiler_object_inline_digest_2355 &&
9115
+ ((JSCompiler_object_inline_componentStack_2357 = !0),
9245
9116
  (workInProgress.flags &= -129));
9246
- JSCompiler_object_inline_digest_2318 = 0 !== (workInProgress.flags & 32);
9117
+ JSCompiler_object_inline_digest_2355 = 0 !== (workInProgress.flags & 32);
9247
9118
  workInProgress.flags &= -33;
9248
9119
  if (null === current) {
9249
9120
  if (isHydrating) {
9250
- JSCompiler_object_inline_componentStack_2320
9121
+ JSCompiler_object_inline_componentStack_2357
9251
9122
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
9252
9123
  : reuseSuspenseHandlerOnStack(workInProgress);
9253
9124
  if (isHydrating) {
9254
- var JSCompiler_object_inline_message_2317 = nextHydratableInstance;
9125
+ var JSCompiler_object_inline_message_2354 = nextHydratableInstance;
9255
9126
  var JSCompiler_temp;
9256
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2317)) {
9127
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2354)) {
9257
9128
  c: {
9258
- var instance = JSCompiler_object_inline_message_2317;
9129
+ var instance = JSCompiler_object_inline_message_2354;
9259
9130
  for (
9260
9131
  JSCompiler_temp = rootOrSingletonContext;
9261
9132
  8 !== instance.nodeType;
@@ -9297,77 +9168,77 @@
9297
9168
  JSCompiler_temp &&
9298
9169
  (warnNonHydratedInstance(
9299
9170
  workInProgress,
9300
- JSCompiler_object_inline_message_2317
9171
+ JSCompiler_object_inline_message_2354
9301
9172
  ),
9302
9173
  throwOnHydrationMismatch(workInProgress));
9303
9174
  }
9304
- JSCompiler_object_inline_message_2317 = workInProgress.memoizedState;
9175
+ JSCompiler_object_inline_message_2354 = workInProgress.memoizedState;
9305
9176
  if (
9306
- null !== JSCompiler_object_inline_message_2317 &&
9307
- ((JSCompiler_object_inline_message_2317 =
9308
- JSCompiler_object_inline_message_2317.dehydrated),
9309
- null !== JSCompiler_object_inline_message_2317)
9177
+ null !== JSCompiler_object_inline_message_2354 &&
9178
+ ((JSCompiler_object_inline_message_2354 =
9179
+ JSCompiler_object_inline_message_2354.dehydrated),
9180
+ null !== JSCompiler_object_inline_message_2354)
9310
9181
  )
9311
9182
  return (
9312
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2317)
9183
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2354)
9313
9184
  ? (workInProgress.lanes = 32)
9314
9185
  : (workInProgress.lanes = 536870912),
9315
9186
  null
9316
9187
  );
9317
9188
  popSuspenseHandler(workInProgress);
9318
9189
  }
9319
- JSCompiler_object_inline_message_2317 =
9320
- JSCompiler_object_inline_stack_2319.children;
9321
- JSCompiler_object_inline_stack_2319 =
9322
- JSCompiler_object_inline_stack_2319.fallback;
9323
- if (JSCompiler_object_inline_componentStack_2320)
9190
+ JSCompiler_object_inline_message_2354 =
9191
+ JSCompiler_object_inline_stack_2356.children;
9192
+ JSCompiler_object_inline_stack_2356 =
9193
+ JSCompiler_object_inline_stack_2356.fallback;
9194
+ if (JSCompiler_object_inline_componentStack_2357)
9324
9195
  return (
9325
9196
  reuseSuspenseHandlerOnStack(workInProgress),
9326
- (JSCompiler_object_inline_componentStack_2320 =
9197
+ (JSCompiler_object_inline_componentStack_2357 =
9327
9198
  workInProgress.mode),
9328
- (JSCompiler_object_inline_message_2317 =
9199
+ (JSCompiler_object_inline_message_2354 =
9329
9200
  mountWorkInProgressOffscreenFiber(
9330
9201
  {
9331
9202
  mode: "hidden",
9332
- children: JSCompiler_object_inline_message_2317
9203
+ children: JSCompiler_object_inline_message_2354
9333
9204
  },
9334
- JSCompiler_object_inline_componentStack_2320
9205
+ JSCompiler_object_inline_componentStack_2357
9335
9206
  )),
9336
- (JSCompiler_object_inline_stack_2319 = createFiberFromFragment(
9337
- JSCompiler_object_inline_stack_2319,
9338
- JSCompiler_object_inline_componentStack_2320,
9207
+ (JSCompiler_object_inline_stack_2356 = createFiberFromFragment(
9208
+ JSCompiler_object_inline_stack_2356,
9209
+ JSCompiler_object_inline_componentStack_2357,
9339
9210
  renderLanes,
9340
9211
  null
9341
9212
  )),
9342
- (JSCompiler_object_inline_message_2317.return = workInProgress),
9343
- (JSCompiler_object_inline_stack_2319.return = workInProgress),
9344
- (JSCompiler_object_inline_message_2317.sibling =
9345
- JSCompiler_object_inline_stack_2319),
9346
- (workInProgress.child = JSCompiler_object_inline_message_2317),
9347
- (JSCompiler_object_inline_componentStack_2320 =
9213
+ (JSCompiler_object_inline_message_2354.return = workInProgress),
9214
+ (JSCompiler_object_inline_stack_2356.return = workInProgress),
9215
+ (JSCompiler_object_inline_message_2354.sibling =
9216
+ JSCompiler_object_inline_stack_2356),
9217
+ (workInProgress.child = JSCompiler_object_inline_message_2354),
9218
+ (JSCompiler_object_inline_componentStack_2357 =
9348
9219
  workInProgress.child),
9349
- (JSCompiler_object_inline_componentStack_2320.memoizedState =
9220
+ (JSCompiler_object_inline_componentStack_2357.memoizedState =
9350
9221
  mountSuspenseOffscreenState(renderLanes)),
9351
- (JSCompiler_object_inline_componentStack_2320.childLanes =
9222
+ (JSCompiler_object_inline_componentStack_2357.childLanes =
9352
9223
  getRemainingWorkInPrimaryTree(
9353
9224
  current,
9354
- JSCompiler_object_inline_digest_2318,
9225
+ JSCompiler_object_inline_digest_2355,
9355
9226
  renderLanes
9356
9227
  )),
9357
9228
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9358
- JSCompiler_object_inline_stack_2319
9229
+ JSCompiler_object_inline_stack_2356
9359
9230
  );
9360
9231
  pushPrimaryTreeSuspenseHandler(workInProgress);
9361
9232
  return mountSuspensePrimaryChildren(
9362
9233
  workInProgress,
9363
- JSCompiler_object_inline_message_2317
9234
+ JSCompiler_object_inline_message_2354
9364
9235
  );
9365
9236
  }
9366
9237
  var prevState = current.memoizedState;
9367
9238
  if (
9368
9239
  null !== prevState &&
9369
- ((JSCompiler_object_inline_message_2317 = prevState.dehydrated),
9370
- null !== JSCompiler_object_inline_message_2317)
9240
+ ((JSCompiler_object_inline_message_2354 = prevState.dehydrated),
9241
+ null !== JSCompiler_object_inline_message_2354)
9371
9242
  ) {
9372
9243
  if (didSuspend)
9373
9244
  workInProgress.flags & 256
@@ -9384,94 +9255,94 @@
9384
9255
  (workInProgress.flags |= 128),
9385
9256
  (workInProgress = null))
9386
9257
  : (reuseSuspenseHandlerOnStack(workInProgress),
9387
- (JSCompiler_object_inline_componentStack_2320 =
9388
- JSCompiler_object_inline_stack_2319.fallback),
9389
- (JSCompiler_object_inline_message_2317 = workInProgress.mode),
9390
- (JSCompiler_object_inline_stack_2319 =
9258
+ (JSCompiler_object_inline_componentStack_2357 =
9259
+ JSCompiler_object_inline_stack_2356.fallback),
9260
+ (JSCompiler_object_inline_message_2354 = workInProgress.mode),
9261
+ (JSCompiler_object_inline_stack_2356 =
9391
9262
  mountWorkInProgressOffscreenFiber(
9392
9263
  {
9393
9264
  mode: "visible",
9394
- children: JSCompiler_object_inline_stack_2319.children
9265
+ children: JSCompiler_object_inline_stack_2356.children
9395
9266
  },
9396
- JSCompiler_object_inline_message_2317
9267
+ JSCompiler_object_inline_message_2354
9397
9268
  )),
9398
- (JSCompiler_object_inline_componentStack_2320 =
9269
+ (JSCompiler_object_inline_componentStack_2357 =
9399
9270
  createFiberFromFragment(
9400
- JSCompiler_object_inline_componentStack_2320,
9401
- JSCompiler_object_inline_message_2317,
9271
+ JSCompiler_object_inline_componentStack_2357,
9272
+ JSCompiler_object_inline_message_2354,
9402
9273
  renderLanes,
9403
9274
  null
9404
9275
  )),
9405
- (JSCompiler_object_inline_componentStack_2320.flags |= 2),
9406
- (JSCompiler_object_inline_stack_2319.return = workInProgress),
9407
- (JSCompiler_object_inline_componentStack_2320.return =
9276
+ (JSCompiler_object_inline_componentStack_2357.flags |= 2),
9277
+ (JSCompiler_object_inline_stack_2356.return = workInProgress),
9278
+ (JSCompiler_object_inline_componentStack_2357.return =
9408
9279
  workInProgress),
9409
- (JSCompiler_object_inline_stack_2319.sibling =
9410
- JSCompiler_object_inline_componentStack_2320),
9411
- (workInProgress.child = JSCompiler_object_inline_stack_2319),
9280
+ (JSCompiler_object_inline_stack_2356.sibling =
9281
+ JSCompiler_object_inline_componentStack_2357),
9282
+ (workInProgress.child = JSCompiler_object_inline_stack_2356),
9412
9283
  reconcileChildFibers(
9413
9284
  workInProgress,
9414
9285
  current.child,
9415
9286
  null,
9416
9287
  renderLanes
9417
9288
  ),
9418
- (JSCompiler_object_inline_stack_2319 = workInProgress.child),
9419
- (JSCompiler_object_inline_stack_2319.memoizedState =
9289
+ (JSCompiler_object_inline_stack_2356 = workInProgress.child),
9290
+ (JSCompiler_object_inline_stack_2356.memoizedState =
9420
9291
  mountSuspenseOffscreenState(renderLanes)),
9421
- (JSCompiler_object_inline_stack_2319.childLanes =
9292
+ (JSCompiler_object_inline_stack_2356.childLanes =
9422
9293
  getRemainingWorkInPrimaryTree(
9423
9294
  current,
9424
- JSCompiler_object_inline_digest_2318,
9295
+ JSCompiler_object_inline_digest_2355,
9425
9296
  renderLanes
9426
9297
  )),
9427
9298
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9428
9299
  (workInProgress =
9429
- JSCompiler_object_inline_componentStack_2320));
9300
+ JSCompiler_object_inline_componentStack_2357));
9430
9301
  else if (
9431
9302
  (pushPrimaryTreeSuspenseHandler(workInProgress),
9432
9303
  isHydrating &&
9433
9304
  console.error(
9434
9305
  "We should not be hydrating here. This is a bug in React. Please file a bug."
9435
9306
  ),
9436
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2317))
9307
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2354))
9437
9308
  ) {
9438
- JSCompiler_object_inline_digest_2318 =
9439
- JSCompiler_object_inline_message_2317.nextSibling &&
9440
- JSCompiler_object_inline_message_2317.nextSibling.dataset;
9441
- if (JSCompiler_object_inline_digest_2318) {
9442
- JSCompiler_temp = JSCompiler_object_inline_digest_2318.dgst;
9443
- var message = JSCompiler_object_inline_digest_2318.msg;
9444
- instance = JSCompiler_object_inline_digest_2318.stck;
9445
- var componentStack = JSCompiler_object_inline_digest_2318.cstck;
9309
+ JSCompiler_object_inline_digest_2355 =
9310
+ JSCompiler_object_inline_message_2354.nextSibling &&
9311
+ JSCompiler_object_inline_message_2354.nextSibling.dataset;
9312
+ if (JSCompiler_object_inline_digest_2355) {
9313
+ JSCompiler_temp = JSCompiler_object_inline_digest_2355.dgst;
9314
+ var message = JSCompiler_object_inline_digest_2355.msg;
9315
+ instance = JSCompiler_object_inline_digest_2355.stck;
9316
+ var componentStack = JSCompiler_object_inline_digest_2355.cstck;
9446
9317
  }
9447
- JSCompiler_object_inline_message_2317 = message;
9448
- JSCompiler_object_inline_digest_2318 = JSCompiler_temp;
9449
- JSCompiler_object_inline_stack_2319 = instance;
9450
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2320 =
9318
+ JSCompiler_object_inline_message_2354 = message;
9319
+ JSCompiler_object_inline_digest_2355 = JSCompiler_temp;
9320
+ JSCompiler_object_inline_stack_2356 = instance;
9321
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2357 =
9451
9322
  componentStack;
9452
- JSCompiler_object_inline_componentStack_2320 =
9453
- JSCompiler_object_inline_message_2317
9454
- ? Error(JSCompiler_object_inline_message_2317)
9323
+ JSCompiler_object_inline_componentStack_2357 =
9324
+ JSCompiler_object_inline_message_2354
9325
+ ? Error(JSCompiler_object_inline_message_2354)
9455
9326
  : Error(
9456
9327
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
9457
9328
  );
9458
- JSCompiler_object_inline_componentStack_2320.stack =
9459
- JSCompiler_object_inline_stack_2319 || "";
9460
- JSCompiler_object_inline_componentStack_2320.digest =
9461
- JSCompiler_object_inline_digest_2318;
9462
- JSCompiler_object_inline_digest_2318 =
9329
+ JSCompiler_object_inline_componentStack_2357.stack =
9330
+ JSCompiler_object_inline_stack_2356 || "";
9331
+ JSCompiler_object_inline_componentStack_2357.digest =
9332
+ JSCompiler_object_inline_digest_2355;
9333
+ JSCompiler_object_inline_digest_2355 =
9463
9334
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
9464
- JSCompiler_object_inline_stack_2319 = {
9465
- value: JSCompiler_object_inline_componentStack_2320,
9335
+ JSCompiler_object_inline_stack_2356 = {
9336
+ value: JSCompiler_object_inline_componentStack_2357,
9466
9337
  source: null,
9467
- stack: JSCompiler_object_inline_digest_2318
9338
+ stack: JSCompiler_object_inline_digest_2355
9468
9339
  };
9469
- "string" === typeof JSCompiler_object_inline_digest_2318 &&
9340
+ "string" === typeof JSCompiler_object_inline_digest_2355 &&
9470
9341
  CapturedStacks.set(
9471
- JSCompiler_object_inline_componentStack_2320,
9472
- JSCompiler_object_inline_stack_2319
9342
+ JSCompiler_object_inline_componentStack_2357,
9343
+ JSCompiler_object_inline_stack_2356
9473
9344
  );
9474
- queueHydrationError(JSCompiler_object_inline_stack_2319);
9345
+ queueHydrationError(JSCompiler_object_inline_stack_2356);
9475
9346
  workInProgress = retrySuspenseComponentWithoutHydrating(
9476
9347
  current,
9477
9348
  workInProgress,
@@ -9485,44 +9356,44 @@
9485
9356
  renderLanes,
9486
9357
  !1
9487
9358
  ),
9488
- (JSCompiler_object_inline_digest_2318 =
9359
+ (JSCompiler_object_inline_digest_2355 =
9489
9360
  0 !== (renderLanes & current.childLanes)),
9490
- didReceiveUpdate || JSCompiler_object_inline_digest_2318)
9361
+ didReceiveUpdate || JSCompiler_object_inline_digest_2355)
9491
9362
  ) {
9492
- JSCompiler_object_inline_digest_2318 = workInProgressRoot;
9363
+ JSCompiler_object_inline_digest_2355 = workInProgressRoot;
9493
9364
  if (
9494
- null !== JSCompiler_object_inline_digest_2318 &&
9495
- ((JSCompiler_object_inline_stack_2319 = renderLanes & -renderLanes),
9496
- (JSCompiler_object_inline_stack_2319 =
9497
- 0 !== (JSCompiler_object_inline_stack_2319 & 42)
9365
+ null !== JSCompiler_object_inline_digest_2355 &&
9366
+ ((JSCompiler_object_inline_stack_2356 = renderLanes & -renderLanes),
9367
+ (JSCompiler_object_inline_stack_2356 =
9368
+ 0 !== (JSCompiler_object_inline_stack_2356 & 42)
9498
9369
  ? 1
9499
9370
  : getBumpedLaneForHydrationByLane(
9500
- JSCompiler_object_inline_stack_2319
9371
+ JSCompiler_object_inline_stack_2356
9501
9372
  )),
9502
- (JSCompiler_object_inline_stack_2319 =
9373
+ (JSCompiler_object_inline_stack_2356 =
9503
9374
  0 !==
9504
- (JSCompiler_object_inline_stack_2319 &
9505
- (JSCompiler_object_inline_digest_2318.suspendedLanes |
9375
+ (JSCompiler_object_inline_stack_2356 &
9376
+ (JSCompiler_object_inline_digest_2355.suspendedLanes |
9506
9377
  renderLanes))
9507
9378
  ? 0
9508
- : JSCompiler_object_inline_stack_2319),
9509
- 0 !== JSCompiler_object_inline_stack_2319 &&
9510
- JSCompiler_object_inline_stack_2319 !== prevState.retryLane)
9379
+ : JSCompiler_object_inline_stack_2356),
9380
+ 0 !== JSCompiler_object_inline_stack_2356 &&
9381
+ JSCompiler_object_inline_stack_2356 !== prevState.retryLane)
9511
9382
  )
9512
9383
  throw (
9513
- ((prevState.retryLane = JSCompiler_object_inline_stack_2319),
9384
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2356),
9514
9385
  enqueueConcurrentRenderForLane(
9515
9386
  current,
9516
- JSCompiler_object_inline_stack_2319
9387
+ JSCompiler_object_inline_stack_2356
9517
9388
  ),
9518
9389
  scheduleUpdateOnFiber(
9519
- JSCompiler_object_inline_digest_2318,
9390
+ JSCompiler_object_inline_digest_2355,
9520
9391
  current,
9521
- JSCompiler_object_inline_stack_2319
9392
+ JSCompiler_object_inline_stack_2356
9522
9393
  ),
9523
9394
  SelectiveHydrationException)
9524
9395
  );
9525
- JSCompiler_object_inline_message_2317.data ===
9396
+ JSCompiler_object_inline_message_2354.data ===
9526
9397
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
9527
9398
  workInProgress = retrySuspenseComponentWithoutHydrating(
9528
9399
  current,
@@ -9530,14 +9401,14 @@
9530
9401
  renderLanes
9531
9402
  );
9532
9403
  } else
9533
- JSCompiler_object_inline_message_2317.data ===
9404
+ JSCompiler_object_inline_message_2354.data ===
9534
9405
  SUSPENSE_PENDING_START_DATA
9535
9406
  ? ((workInProgress.flags |= 192),
9536
9407
  (workInProgress.child = current.child),
9537
9408
  (workInProgress = null))
9538
9409
  : ((current = prevState.treeContext),
9539
9410
  (nextHydratableInstance = getNextHydratable(
9540
- JSCompiler_object_inline_message_2317.nextSibling
9411
+ JSCompiler_object_inline_message_2354.nextSibling
9541
9412
  )),
9542
9413
  (hydrationParentFiber = workInProgress),
9543
9414
  (isHydrating = !0),
@@ -9555,57 +9426,57 @@
9555
9426
  (treeContextProvider = workInProgress)),
9556
9427
  (workInProgress = mountSuspensePrimaryChildren(
9557
9428
  workInProgress,
9558
- JSCompiler_object_inline_stack_2319.children
9429
+ JSCompiler_object_inline_stack_2356.children
9559
9430
  )),
9560
9431
  (workInProgress.flags |= 4096));
9561
9432
  return workInProgress;
9562
9433
  }
9563
- if (JSCompiler_object_inline_componentStack_2320)
9434
+ if (JSCompiler_object_inline_componentStack_2357)
9564
9435
  return (
9565
9436
  reuseSuspenseHandlerOnStack(workInProgress),
9566
- (JSCompiler_object_inline_componentStack_2320 =
9567
- JSCompiler_object_inline_stack_2319.fallback),
9568
- (JSCompiler_object_inline_message_2317 = workInProgress.mode),
9437
+ (JSCompiler_object_inline_componentStack_2357 =
9438
+ JSCompiler_object_inline_stack_2356.fallback),
9439
+ (JSCompiler_object_inline_message_2354 = workInProgress.mode),
9569
9440
  (JSCompiler_temp = current.child),
9570
9441
  (instance = JSCompiler_temp.sibling),
9571
- (JSCompiler_object_inline_stack_2319 = createWorkInProgress(
9442
+ (JSCompiler_object_inline_stack_2356 = createWorkInProgress(
9572
9443
  JSCompiler_temp,
9573
9444
  {
9574
9445
  mode: "hidden",
9575
- children: JSCompiler_object_inline_stack_2319.children
9446
+ children: JSCompiler_object_inline_stack_2356.children
9576
9447
  }
9577
9448
  )),
9578
- (JSCompiler_object_inline_stack_2319.subtreeFlags =
9579
- JSCompiler_temp.subtreeFlags & 31457280),
9449
+ (JSCompiler_object_inline_stack_2356.subtreeFlags =
9450
+ JSCompiler_temp.subtreeFlags & 29360128),
9580
9451
  null !== instance
9581
- ? (JSCompiler_object_inline_componentStack_2320 =
9452
+ ? (JSCompiler_object_inline_componentStack_2357 =
9582
9453
  createWorkInProgress(
9583
9454
  instance,
9584
- JSCompiler_object_inline_componentStack_2320
9455
+ JSCompiler_object_inline_componentStack_2357
9585
9456
  ))
9586
- : ((JSCompiler_object_inline_componentStack_2320 =
9457
+ : ((JSCompiler_object_inline_componentStack_2357 =
9587
9458
  createFiberFromFragment(
9588
- JSCompiler_object_inline_componentStack_2320,
9589
- JSCompiler_object_inline_message_2317,
9459
+ JSCompiler_object_inline_componentStack_2357,
9460
+ JSCompiler_object_inline_message_2354,
9590
9461
  renderLanes,
9591
9462
  null
9592
9463
  )),
9593
- (JSCompiler_object_inline_componentStack_2320.flags |= 2)),
9594
- (JSCompiler_object_inline_componentStack_2320.return =
9464
+ (JSCompiler_object_inline_componentStack_2357.flags |= 2)),
9465
+ (JSCompiler_object_inline_componentStack_2357.return =
9595
9466
  workInProgress),
9596
- (JSCompiler_object_inline_stack_2319.return = workInProgress),
9597
- (JSCompiler_object_inline_stack_2319.sibling =
9598
- JSCompiler_object_inline_componentStack_2320),
9599
- (workInProgress.child = JSCompiler_object_inline_stack_2319),
9600
- (JSCompiler_object_inline_stack_2319 =
9601
- JSCompiler_object_inline_componentStack_2320),
9602
- (JSCompiler_object_inline_componentStack_2320 = workInProgress.child),
9603
- (JSCompiler_object_inline_message_2317 = current.child.memoizedState),
9604
- null === JSCompiler_object_inline_message_2317
9605
- ? (JSCompiler_object_inline_message_2317 =
9467
+ (JSCompiler_object_inline_stack_2356.return = workInProgress),
9468
+ (JSCompiler_object_inline_stack_2356.sibling =
9469
+ JSCompiler_object_inline_componentStack_2357),
9470
+ (workInProgress.child = JSCompiler_object_inline_stack_2356),
9471
+ (JSCompiler_object_inline_stack_2356 =
9472
+ JSCompiler_object_inline_componentStack_2357),
9473
+ (JSCompiler_object_inline_componentStack_2357 = workInProgress.child),
9474
+ (JSCompiler_object_inline_message_2354 = current.child.memoizedState),
9475
+ null === JSCompiler_object_inline_message_2354
9476
+ ? (JSCompiler_object_inline_message_2354 =
9606
9477
  mountSuspenseOffscreenState(renderLanes))
9607
9478
  : ((JSCompiler_temp =
9608
- JSCompiler_object_inline_message_2317.cachePool),
9479
+ JSCompiler_object_inline_message_2354.cachePool),
9609
9480
  null !== JSCompiler_temp
9610
9481
  ? ((instance = CacheContext._currentValue),
9611
9482
  (JSCompiler_temp =
@@ -9613,37 +9484,37 @@
9613
9484
  ? { parent: instance, pool: instance }
9614
9485
  : JSCompiler_temp))
9615
9486
  : (JSCompiler_temp = getSuspendedCache()),
9616
- (JSCompiler_object_inline_message_2317 = {
9487
+ (JSCompiler_object_inline_message_2354 = {
9617
9488
  baseLanes:
9618
- JSCompiler_object_inline_message_2317.baseLanes | renderLanes,
9489
+ JSCompiler_object_inline_message_2354.baseLanes | renderLanes,
9619
9490
  cachePool: JSCompiler_temp
9620
9491
  })),
9621
- (JSCompiler_object_inline_componentStack_2320.memoizedState =
9622
- JSCompiler_object_inline_message_2317),
9623
- (JSCompiler_object_inline_componentStack_2320.childLanes =
9492
+ (JSCompiler_object_inline_componentStack_2357.memoizedState =
9493
+ JSCompiler_object_inline_message_2354),
9494
+ (JSCompiler_object_inline_componentStack_2357.childLanes =
9624
9495
  getRemainingWorkInPrimaryTree(
9625
9496
  current,
9626
- JSCompiler_object_inline_digest_2318,
9497
+ JSCompiler_object_inline_digest_2355,
9627
9498
  renderLanes
9628
9499
  )),
9629
9500
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9630
- JSCompiler_object_inline_stack_2319
9501
+ JSCompiler_object_inline_stack_2356
9631
9502
  );
9632
9503
  pushPrimaryTreeSuspenseHandler(workInProgress);
9633
9504
  renderLanes = current.child;
9634
9505
  current = renderLanes.sibling;
9635
9506
  renderLanes = createWorkInProgress(renderLanes, {
9636
9507
  mode: "visible",
9637
- children: JSCompiler_object_inline_stack_2319.children
9508
+ children: JSCompiler_object_inline_stack_2356.children
9638
9509
  });
9639
9510
  renderLanes.return = workInProgress;
9640
9511
  renderLanes.sibling = null;
9641
9512
  null !== current &&
9642
- ((JSCompiler_object_inline_digest_2318 = workInProgress.deletions),
9643
- null === JSCompiler_object_inline_digest_2318
9513
+ ((JSCompiler_object_inline_digest_2355 = workInProgress.deletions),
9514
+ null === JSCompiler_object_inline_digest_2355
9644
9515
  ? ((workInProgress.deletions = [current]),
9645
9516
  (workInProgress.flags |= 16))
9646
- : JSCompiler_object_inline_digest_2318.push(current));
9517
+ : JSCompiler_object_inline_digest_2355.push(current));
9647
9518
  workInProgress.child = renderLanes;
9648
9519
  workInProgress.memoizedState = null;
9649
9520
  return renderLanes;
@@ -11341,7 +11212,7 @@
11341
11212
  if (
11342
11213
  ((firstChild = nextEffect),
11343
11214
  (root = firstChild.child),
11344
- 0 !== (firstChild.subtreeFlags & 1028) && null !== root)
11215
+ 0 !== (firstChild.subtreeFlags & 1024) && null !== root)
11345
11216
  )
11346
11217
  (root.return = firstChild), (nextEffect = root);
11347
11218
  else
@@ -11400,9 +11271,6 @@
11400
11271
  }
11401
11272
  nextEffect = firstChild.return;
11402
11273
  }
11403
- firstChild = shouldFireAfterActiveInstanceBlur;
11404
- shouldFireAfterActiveInstanceBlur = !1;
11405
- return firstChild;
11406
11274
  }
11407
11275
  function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
11408
11276
  var flags = finishedWork.flags;
@@ -11877,12 +11745,6 @@
11877
11745
  }
11878
11746
  });
11879
11747
  }
11880
- function commitMutationEffects(root, finishedWork, committedLanes) {
11881
- inProgressLanes = committedLanes;
11882
- inProgressRoot = root;
11883
- commitMutationEffectsOnFiber(finishedWork, root);
11884
- inProgressRoot = inProgressLanes = null;
11885
- }
11886
11748
  function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
11887
11749
  var deletions = parentFiber.deletions;
11888
11750
  if (null !== deletions)
@@ -12017,7 +11879,9 @@
12017
11879
  if (
12018
11880
  ((hoistableRoot = maybeNodes[i]),
12019
11881
  hoistableRoot.getAttribute("href") ===
12020
- (null == current.href ? null : current.href) &&
11882
+ (null == current.href || "" === current.href
11883
+ ? null
11884
+ : current.href) &&
12021
11885
  hoistableRoot.getAttribute("rel") ===
12022
11886
  (null == current.rel ? null : current.rel) &&
12023
11887
  hoistableRoot.getAttribute("title") ===
@@ -12410,12 +12274,6 @@
12410
12274
  parentFiber = parentFiber.sibling;
12411
12275
  }
12412
12276
  }
12413
- function commitLayoutEffects(finishedWork, root, committedLanes) {
12414
- inProgressLanes = committedLanes;
12415
- inProgressRoot = root;
12416
- commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
12417
- inProgressRoot = inProgressLanes = null;
12418
- }
12419
12277
  function recursivelyTraverseLayoutEffects(root, parentFiber) {
12420
12278
  if (parentFiber.subtreeFlags & 8772)
12421
12279
  for (parentFiber = parentFiber.child; null !== parentFiber; )
@@ -12662,6 +12520,14 @@
12662
12520
  flags & 2048 &&
12663
12521
  commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
12664
12522
  break;
12523
+ case 1:
12524
+ recursivelyTraversePassiveMountEffects(
12525
+ finishedRoot,
12526
+ finishedWork,
12527
+ committedLanes,
12528
+ committedTransitions
12529
+ );
12530
+ break;
12665
12531
  case 3:
12666
12532
  var prevEffectDuration = pushNestedEffectDurations();
12667
12533
  recursivelyTraversePassiveMountEffects(
@@ -13179,7 +13045,7 @@
13179
13045
  (workInProgress.deletions = null),
13180
13046
  (workInProgress.actualDuration = -0),
13181
13047
  (workInProgress.actualStartTime = -1.1));
13182
- workInProgress.flags = current.flags & 31457280;
13048
+ workInProgress.flags = current.flags & 29360128;
13183
13049
  workInProgress.childLanes = current.childLanes;
13184
13050
  workInProgress.lanes = current.lanes;
13185
13051
  workInProgress.child = current.child;
@@ -13217,7 +13083,7 @@
13217
13083
  return workInProgress;
13218
13084
  }
13219
13085
  function resetWorkInProgress(workInProgress, renderLanes) {
13220
- workInProgress.flags &= 31457282;
13086
+ workInProgress.flags &= 29360130;
13221
13087
  var current = workInProgress.alternate;
13222
13088
  null === current
13223
13089
  ? ((workInProgress.childLanes = 0),
@@ -13536,8 +13402,8 @@
13536
13402
 
13537
13403
  )
13538
13404
  (newChildLanes |= _child2.lanes | _child2.childLanes),
13539
- (subtreeFlags |= _child2.subtreeFlags & 31457280),
13540
- (subtreeFlags |= _child2.flags & 31457280),
13405
+ (subtreeFlags |= _child2.subtreeFlags & 29360128),
13406
+ (subtreeFlags |= _child2.flags & 29360128),
13541
13407
  (_treeBaseDuration += _child2.treeBaseDuration),
13542
13408
  (_child2 = _child2.sibling);
13543
13409
  completedWork.treeBaseDuration = _treeBaseDuration;
@@ -13549,8 +13415,8 @@
13549
13415
  )
13550
13416
  (newChildLanes |=
13551
13417
  _treeBaseDuration.lanes | _treeBaseDuration.childLanes),
13552
- (subtreeFlags |= _treeBaseDuration.subtreeFlags & 31457280),
13553
- (subtreeFlags |= _treeBaseDuration.flags & 31457280),
13418
+ (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128),
13419
+ (subtreeFlags |= _treeBaseDuration.flags & 29360128),
13554
13420
  (_treeBaseDuration.return = completedWork),
13555
13421
  (_treeBaseDuration = _treeBaseDuration.sibling);
13556
13422
  else if ((completedWork.mode & ProfileMode) !== NoMode) {
@@ -14459,21 +14325,17 @@
14459
14325
  default:
14460
14326
  throw Error("Unknown root exit status.");
14461
14327
  }
14462
- shouldTimeSlice.finishedWork = forceSync;
14463
- shouldTimeSlice.finishedLanes = lanes;
14464
14328
  if (null !== ReactSharedInternals.actQueue)
14465
14329
  commitRoot(
14466
14330
  shouldTimeSlice,
14331
+ forceSync,
14332
+ lanes,
14467
14333
  workInProgressRootRecoverableErrors,
14468
14334
  workInProgressTransitions,
14469
14335
  workInProgressRootDidIncludeRecursiveRenderUpdate,
14470
14336
  workInProgressDeferredLane,
14471
14337
  workInProgressRootInterleavedUpdatedLanes,
14472
- workInProgressSuspendedRetryLanes,
14473
- exitStatus,
14474
- IMMEDIATE_COMMIT,
14475
- renderStartTime,
14476
- 0
14338
+ workInProgressSuspendedRetryLanes
14477
14339
  );
14478
14340
  else {
14479
14341
  if (
@@ -14490,7 +14352,7 @@
14490
14352
  workInProgressDeferredLane,
14491
14353
  !workInProgressRootDidSkipSuspendedSiblings
14492
14354
  );
14493
- if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
14355
+ if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
14494
14356
  shouldTimeSlice.timeoutHandle = scheduleTimeout(
14495
14357
  commitRootWhenReady.bind(
14496
14358
  null,
@@ -14552,8 +14414,12 @@
14552
14414
  completedRenderStartTime,
14553
14415
  completedRenderEndTime
14554
14416
  ) {
14555
- var subtreeFlags = finishedWork.subtreeFlags;
14556
- if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
14417
+ root.timeoutHandle = noTimeout;
14418
+ suspendedCommitReason = finishedWork.subtreeFlags;
14419
+ if (
14420
+ suspendedCommitReason & 8192 ||
14421
+ 16785408 === (suspendedCommitReason & 16785408)
14422
+ )
14557
14423
  if (
14558
14424
  ((suspendedState = {
14559
14425
  stylesheets: null,
@@ -14561,13 +14427,15 @@
14561
14427
  unsuspend: noop$1
14562
14428
  }),
14563
14429
  accumulateSuspenseyCommitOnFiber(finishedWork),
14564
- (finishedWork = waitForCommitToBeReady()),
14565
- null !== finishedWork)
14430
+ (suspendedCommitReason = waitForCommitToBeReady()),
14431
+ null !== suspendedCommitReason)
14566
14432
  ) {
14567
- root.cancelPendingCommit = finishedWork(
14433
+ root.cancelPendingCommit = suspendedCommitReason(
14568
14434
  commitRoot.bind(
14569
14435
  null,
14570
14436
  root,
14437
+ finishedWork,
14438
+ lanes,
14571
14439
  recoverableErrors,
14572
14440
  transitions,
14573
14441
  didIncludeRenderPhaseUpdate,
@@ -14590,16 +14458,14 @@
14590
14458
  }
14591
14459
  commitRoot(
14592
14460
  root,
14461
+ finishedWork,
14462
+ lanes,
14593
14463
  recoverableErrors,
14594
14464
  transitions,
14595
14465
  didIncludeRenderPhaseUpdate,
14596
14466
  spawnedLane,
14597
14467
  updatedLanes,
14598
- suspendedRetryLanes,
14599
- exitStatus,
14600
- suspendedCommitReason,
14601
- completedRenderStartTime,
14602
- completedRenderEndTime
14468
+ suspendedRetryLanes
14603
14469
  );
14604
14470
  }
14605
14471
  function isRenderConsistentWithExternalStores(finishedWork) {
@@ -14680,8 +14546,6 @@
14680
14546
  }
14681
14547
  }
14682
14548
  function prepareFreshStack(root, lanes) {
14683
- root.finishedWork = null;
14684
- root.finishedLanes = 0;
14685
14549
  var timeoutHandle = root.timeoutHandle;
14686
14550
  timeoutHandle !== noTimeout &&
14687
14551
  ((root.timeoutHandle = noTimeout), cancelTimeout(timeoutHandle));
@@ -15037,7 +14901,7 @@
15037
14901
  }
15038
14902
  null !== ReactSharedInternals.actQueue
15039
14903
  ? workLoopSync()
15040
- : workLoopConcurrent();
14904
+ : workLoopConcurrentByScheduler();
15041
14905
  break;
15042
14906
  } catch (thrownValue$9) {
15043
14907
  handleThrow(root, thrownValue$9);
@@ -15060,7 +14924,7 @@
15060
14924
  finishQueueingConcurrentUpdates();
15061
14925
  return workInProgressRootExitStatus;
15062
14926
  }
15063
- function workLoopConcurrent() {
14927
+ function workLoopConcurrentByScheduler() {
15064
14928
  for (; null !== workInProgress && !shouldYield(); )
15065
14929
  performUnitOfWork(workInProgress);
15066
14930
  }
@@ -15261,169 +15125,315 @@
15261
15125
  }
15262
15126
  function commitRoot(
15263
15127
  root,
15128
+ finishedWork,
15129
+ lanes,
15264
15130
  recoverableErrors,
15265
15131
  transitions,
15266
15132
  didIncludeRenderPhaseUpdate,
15267
15133
  spawnedLane,
15268
15134
  updatedLanes,
15269
- suspendedRetryLanes,
15270
- exitStatus,
15271
- suspendedCommitReason,
15272
- completedRenderStartTime,
15273
- completedRenderEndTime
15274
- ) {
15275
- var prevTransition = ReactSharedInternals.T,
15276
- previousUpdateLanePriority = ReactDOMSharedInternals.p;
15277
- try {
15278
- (ReactDOMSharedInternals.p = DiscreteEventPriority),
15279
- (ReactSharedInternals.T = null),
15280
- commitRootImpl(
15281
- root,
15282
- recoverableErrors,
15283
- transitions,
15284
- didIncludeRenderPhaseUpdate,
15285
- previousUpdateLanePriority,
15286
- spawnedLane,
15287
- updatedLanes,
15288
- suspendedRetryLanes,
15289
- exitStatus,
15290
- suspendedCommitReason,
15291
- completedRenderStartTime,
15292
- completedRenderEndTime
15293
- );
15294
- } finally {
15295
- (ReactSharedInternals.T = prevTransition),
15296
- (ReactDOMSharedInternals.p = previousUpdateLanePriority);
15297
- }
15298
- }
15299
- function commitRootImpl(
15300
- root,
15301
- recoverableErrors,
15302
- transitions,
15303
- didIncludeRenderPhaseUpdate,
15304
- renderPriorityLevel,
15305
- spawnedLane,
15306
- updatedLanes,
15307
15135
  suspendedRetryLanes
15308
15136
  ) {
15137
+ root.cancelPendingCommit = null;
15309
15138
  do flushPassiveEffects();
15310
15139
  while (null !== rootWithPendingPassiveEffects);
15311
15140
  ReactStrictModeWarnings.flushLegacyContextWarning();
15312
15141
  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
15313
15142
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
15314
15143
  throw Error("Should not already be working.");
15315
- var finishedWork = root.finishedWork;
15316
- didIncludeRenderPhaseUpdate = root.finishedLanes;
15317
15144
  null !== injectedProfilingHooks &&
15318
15145
  "function" === typeof injectedProfilingHooks.markCommitStarted &&
15319
- injectedProfilingHooks.markCommitStarted(didIncludeRenderPhaseUpdate);
15320
- if (null === finishedWork) return markCommitStopped(), null;
15321
- 0 === didIncludeRenderPhaseUpdate &&
15322
- console.error(
15323
- "root.finishedLanes should not be empty during a commit. This is a bug in React."
15324
- );
15325
- root.finishedWork = null;
15326
- root.finishedLanes = 0;
15327
- if (finishedWork === root.current)
15328
- throw Error(
15329
- "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
15146
+ injectedProfilingHooks.markCommitStarted(lanes);
15147
+ if (null === finishedWork) markCommitStopped();
15148
+ else {
15149
+ 0 === lanes &&
15150
+ console.error(
15151
+ "finishedLanes should not be empty during a commit. This is a bug in React."
15152
+ );
15153
+ if (finishedWork === root.current)
15154
+ throw Error(
15155
+ "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
15156
+ );
15157
+ didIncludeRenderPhaseUpdate =
15158
+ finishedWork.lanes | finishedWork.childLanes;
15159
+ didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
15160
+ markRootFinished(
15161
+ root,
15162
+ lanes,
15163
+ didIncludeRenderPhaseUpdate,
15164
+ spawnedLane,
15165
+ updatedLanes,
15166
+ suspendedRetryLanes
15330
15167
  );
15331
- var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
15332
- remainingLanes |= concurrentlyUpdatedLanes;
15333
- markRootFinished(
15334
- root,
15335
- didIncludeRenderPhaseUpdate,
15336
- remainingLanes,
15337
- spawnedLane,
15338
- updatedLanes,
15339
- suspendedRetryLanes
15340
- );
15341
- root === workInProgressRoot &&
15342
- ((workInProgress = workInProgressRoot = null),
15343
- (workInProgressRootRenderLanes = 0));
15344
- spawnedLane = !1;
15345
- 0 !== (finishedWork.subtreeFlags & 10256) ||
15346
- 0 !== (finishedWork.flags & 10256)
15347
- ? ((spawnedLane = !0),
15348
- (pendingPassiveEffectsRemainingLanes = remainingLanes),
15349
- (pendingPassiveTransitions = transitions),
15350
- (root.callbackNode = null),
15351
- (root.callbackPriority = 0),
15352
- (root.cancelPendingCommit = null),
15353
- scheduleCallback$1(NormalPriority$1, function () {
15354
- flushPassiveEffects(!0);
15355
- return null;
15356
- }))
15357
- : ((root.callbackNode = null),
15358
- (root.callbackPriority = 0),
15359
- (root.cancelPendingCommit = null));
15360
- commitStartTime = now();
15361
- transitions = 0 !== (finishedWork.flags & 15990);
15362
- 0 !== (finishedWork.subtreeFlags & 15990) || transitions
15363
- ? ((transitions = ReactSharedInternals.T),
15364
- (ReactSharedInternals.T = null),
15365
- (updatedLanes = ReactDOMSharedInternals.p),
15366
- (ReactDOMSharedInternals.p = DiscreteEventPriority),
15367
- (suspendedRetryLanes = executionContext),
15368
- (executionContext |= CommitContext),
15369
- commitBeforeMutationEffects(root, finishedWork),
15370
- commitMutationEffects(
15371
- root,
15372
- finishedWork,
15373
- didIncludeRenderPhaseUpdate
15374
- ),
15375
- restoreSelection(selectionInformation, root.containerInfo),
15376
- (_enabled = !!eventsEnabled),
15377
- (selectionInformation = eventsEnabled = null),
15378
- (root.current = finishedWork),
15168
+ root === workInProgressRoot &&
15169
+ ((workInProgress = workInProgressRoot = null),
15170
+ (workInProgressRootRenderLanes = 0));
15171
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
15172
+ 0 !== (finishedWork.flags & 10256)
15173
+ ? ((pendingPassiveEffectsRemainingLanes =
15174
+ didIncludeRenderPhaseUpdate),
15175
+ (pendingPassiveTransitions = transitions),
15176
+ (root.callbackNode = null),
15177
+ (root.callbackPriority = 0),
15178
+ scheduleCallback$1(NormalPriority$1, function () {
15179
+ flushPassiveEffects(!0);
15180
+ return null;
15181
+ }))
15182
+ : ((root.callbackNode = null), (root.callbackPriority = 0));
15183
+ commitStartTime = now();
15184
+ transitions = 0 !== (finishedWork.flags & 13878);
15185
+ if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
15186
+ transitions = ReactSharedInternals.T;
15187
+ ReactSharedInternals.T = null;
15188
+ spawnedLane = ReactDOMSharedInternals.p;
15189
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15190
+ updatedLanes = executionContext;
15191
+ executionContext |= CommitContext;
15192
+ try {
15193
+ commitBeforeMutationEffects(root, finishedWork);
15194
+ } finally {
15195
+ (executionContext = updatedLanes),
15196
+ (ReactDOMSharedInternals.p = spawnedLane),
15197
+ (ReactSharedInternals.T = transitions);
15198
+ }
15199
+ }
15200
+ flushMutationEffects(root, finishedWork, lanes);
15201
+ flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
15202
+ }
15203
+ }
15204
+ function flushMutationEffects(root, finishedWork, lanes) {
15205
+ var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
15206
+ if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
15207
+ rootMutationHasEffect = ReactSharedInternals.T;
15208
+ ReactSharedInternals.T = null;
15209
+ var previousPriority = ReactDOMSharedInternals.p;
15210
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15211
+ var prevExecutionContext = executionContext;
15212
+ executionContext |= CommitContext;
15213
+ try {
15214
+ inProgressLanes = lanes;
15215
+ inProgressRoot = root;
15216
+ commitMutationEffectsOnFiber(finishedWork, root);
15217
+ inProgressRoot = inProgressLanes = null;
15218
+ lanes = selectionInformation;
15219
+ var curFocusedElem = getActiveElementDeep(root.containerInfo),
15220
+ priorFocusedElem = lanes.focusedElem,
15221
+ priorSelectionRange = lanes.selectionRange;
15222
+ if (
15223
+ curFocusedElem !== priorFocusedElem &&
15224
+ priorFocusedElem &&
15225
+ priorFocusedElem.ownerDocument &&
15226
+ containsNode(
15227
+ priorFocusedElem.ownerDocument.documentElement,
15228
+ priorFocusedElem
15229
+ )
15230
+ ) {
15231
+ if (
15232
+ null !== priorSelectionRange &&
15233
+ hasSelectionCapabilities(priorFocusedElem)
15234
+ ) {
15235
+ var start = priorSelectionRange.start,
15236
+ end = priorSelectionRange.end;
15237
+ void 0 === end && (end = start);
15238
+ if ("selectionStart" in priorFocusedElem)
15239
+ (priorFocusedElem.selectionStart = start),
15240
+ (priorFocusedElem.selectionEnd = Math.min(
15241
+ end,
15242
+ priorFocusedElem.value.length
15243
+ ));
15244
+ else {
15245
+ var doc = priorFocusedElem.ownerDocument || document,
15246
+ win = (doc && doc.defaultView) || window;
15247
+ if (win.getSelection) {
15248
+ var selection = win.getSelection(),
15249
+ length = priorFocusedElem.textContent.length,
15250
+ start$jscomp$0 = Math.min(
15251
+ priorSelectionRange.start,
15252
+ length
15253
+ ),
15254
+ end$jscomp$0 =
15255
+ void 0 === priorSelectionRange.end
15256
+ ? start$jscomp$0
15257
+ : Math.min(priorSelectionRange.end, length);
15258
+ !selection.extend &&
15259
+ start$jscomp$0 > end$jscomp$0 &&
15260
+ ((curFocusedElem = end$jscomp$0),
15261
+ (end$jscomp$0 = start$jscomp$0),
15262
+ (start$jscomp$0 = curFocusedElem));
15263
+ var startMarker = getNodeForCharacterOffset(
15264
+ priorFocusedElem,
15265
+ start$jscomp$0
15266
+ ),
15267
+ endMarker = getNodeForCharacterOffset(
15268
+ priorFocusedElem,
15269
+ end$jscomp$0
15270
+ );
15271
+ if (
15272
+ startMarker &&
15273
+ endMarker &&
15274
+ (1 !== selection.rangeCount ||
15275
+ selection.anchorNode !== startMarker.node ||
15276
+ selection.anchorOffset !== startMarker.offset ||
15277
+ selection.focusNode !== endMarker.node ||
15278
+ selection.focusOffset !== endMarker.offset)
15279
+ ) {
15280
+ var range = doc.createRange();
15281
+ range.setStart(startMarker.node, startMarker.offset);
15282
+ selection.removeAllRanges();
15283
+ start$jscomp$0 > end$jscomp$0
15284
+ ? (selection.addRange(range),
15285
+ selection.extend(endMarker.node, endMarker.offset))
15286
+ : (range.setEnd(endMarker.node, endMarker.offset),
15287
+ selection.addRange(range));
15288
+ }
15289
+ }
15290
+ }
15291
+ }
15292
+ doc = [];
15293
+ for (
15294
+ selection = priorFocusedElem;
15295
+ (selection = selection.parentNode);
15296
+
15297
+ )
15298
+ 1 === selection.nodeType &&
15299
+ doc.push({
15300
+ element: selection,
15301
+ left: selection.scrollLeft,
15302
+ top: selection.scrollTop
15303
+ });
15304
+ "function" === typeof priorFocusedElem.focus &&
15305
+ priorFocusedElem.focus();
15306
+ for (
15307
+ priorFocusedElem = 0;
15308
+ priorFocusedElem < doc.length;
15309
+ priorFocusedElem++
15310
+ ) {
15311
+ var info = doc[priorFocusedElem];
15312
+ info.element.scrollLeft = info.left;
15313
+ info.element.scrollTop = info.top;
15314
+ }
15315
+ }
15316
+ _enabled = !!eventsEnabled;
15317
+ selectionInformation = eventsEnabled = null;
15318
+ } finally {
15319
+ (executionContext = prevExecutionContext),
15320
+ (ReactDOMSharedInternals.p = previousPriority),
15321
+ (ReactSharedInternals.T = rootMutationHasEffect);
15322
+ }
15323
+ }
15324
+ root.current = finishedWork;
15325
+ }
15326
+ function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
15327
+ var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
15328
+ if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
15329
+ rootHasLayoutEffect = ReactSharedInternals.T;
15330
+ ReactSharedInternals.T = null;
15331
+ var previousPriority = ReactDOMSharedInternals.p;
15332
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15333
+ var prevExecutionContext = executionContext;
15334
+ executionContext |= CommitContext;
15335
+ try {
15379
15336
  null !== injectedProfilingHooks &&
15380
15337
  "function" ===
15381
15338
  typeof injectedProfilingHooks.markLayoutEffectsStarted &&
15382
- injectedProfilingHooks.markLayoutEffectsStarted(
15383
- didIncludeRenderPhaseUpdate
15339
+ injectedProfilingHooks.markLayoutEffectsStarted(lanes),
15340
+ (inProgressLanes = lanes),
15341
+ (inProgressRoot = root),
15342
+ commitLayoutEffectOnFiber(
15343
+ root,
15344
+ finishedWork.alternate,
15345
+ finishedWork
15384
15346
  ),
15385
- commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
15386
- null !== injectedProfilingHooks &&
15387
- "function" ===
15388
- typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15389
- injectedProfilingHooks.markLayoutEffectsStopped(),
15390
- requestPaint(),
15391
- (executionContext = suspendedRetryLanes),
15392
- (ReactDOMSharedInternals.p = updatedLanes),
15393
- (ReactSharedInternals.T = transitions))
15394
- : (root.current = finishedWork);
15395
- (transitions = spawnedLane)
15396
- ? ((spawnedLane = !1),
15397
- (rootWithPendingPassiveEffects = root),
15398
- (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate))
15399
- : (releaseRootPooledCache(root, remainingLanes),
15347
+ (inProgressRoot = inProgressLanes = null),
15348
+ null !== injectedProfilingHooks &&
15349
+ "function" ===
15350
+ typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15351
+ injectedProfilingHooks.markLayoutEffectsStopped();
15352
+ } finally {
15353
+ (executionContext = prevExecutionContext),
15354
+ (ReactDOMSharedInternals.p = previousPriority),
15355
+ (ReactSharedInternals.T = rootHasLayoutEffect);
15356
+ }
15357
+ }
15358
+ requestPaint();
15359
+ (rootHasLayoutEffect =
15360
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
15361
+ 0 !== (finishedWork.flags & 10256))
15362
+ ? ((rootWithPendingPassiveEffects = root),
15363
+ (pendingPassiveEffectsLanes = lanes))
15364
+ : (releaseRootPooledCache(root, root.pendingLanes),
15400
15365
  (nestedPassiveUpdateCount = 0),
15401
15366
  (rootWithPassiveNestedUpdates = null));
15402
- remainingLanes = root.pendingLanes;
15403
- 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
15404
- transitions || commitDoubleInvokeEffectsInDEV(root);
15405
- onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel);
15367
+ previousPriority = root.pendingLanes;
15368
+ 0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
15369
+ rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
15370
+ rootHasLayoutEffect = lanesToEventPriority(lanes);
15371
+ finishedWork = finishedWork.stateNode;
15372
+ if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
15373
+ try {
15374
+ var didError = 128 === (finishedWork.current.flags & 128);
15375
+ switch (rootHasLayoutEffect) {
15376
+ case DiscreteEventPriority:
15377
+ var schedulerPriority = ImmediatePriority;
15378
+ break;
15379
+ case ContinuousEventPriority:
15380
+ schedulerPriority = UserBlockingPriority;
15381
+ break;
15382
+ case DefaultEventPriority:
15383
+ schedulerPriority = NormalPriority$1;
15384
+ break;
15385
+ case IdleEventPriority:
15386
+ schedulerPriority = IdlePriority;
15387
+ break;
15388
+ default:
15389
+ schedulerPriority = NormalPriority$1;
15390
+ }
15391
+ injectedHook.onCommitFiberRoot(
15392
+ rendererID,
15393
+ finishedWork,
15394
+ schedulerPriority,
15395
+ didError
15396
+ );
15397
+ } catch (err) {
15398
+ hasLoggedError ||
15399
+ ((hasLoggedError = !0),
15400
+ console.error(
15401
+ "React instrumentation encountered an error: %s",
15402
+ err
15403
+ ));
15404
+ }
15406
15405
  isDevToolsPresent && root.memoizedUpdaters.clear();
15407
15406
  onCommitRoot();
15408
- if (null !== recoverableErrors)
15409
- for (
15410
- renderPriorityLevel = root.onRecoverableError, finishedWork = 0;
15411
- finishedWork < recoverableErrors.length;
15412
- finishedWork++
15413
- )
15414
- (remainingLanes = recoverableErrors[finishedWork]),
15415
- (spawnedLane = makeErrorInfo(remainingLanes.stack)),
15407
+ if (null !== recoverableErrors) {
15408
+ didError = ReactSharedInternals.T;
15409
+ schedulerPriority = ReactDOMSharedInternals.p;
15410
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15411
+ ReactSharedInternals.T = null;
15412
+ try {
15413
+ var onRecoverableError = root.onRecoverableError;
15414
+ for (
15415
+ finishedWork = 0;
15416
+ finishedWork < recoverableErrors.length;
15417
+ finishedWork++
15418
+ ) {
15419
+ var recoverableError = recoverableErrors[finishedWork],
15420
+ errorInfo = makeErrorInfo(recoverableError.stack);
15416
15421
  runWithFiberInDEV(
15417
- remainingLanes.source,
15418
- renderPriorityLevel,
15419
- remainingLanes.value,
15420
- spawnedLane
15422
+ recoverableError.source,
15423
+ onRecoverableError,
15424
+ recoverableError.value,
15425
+ errorInfo
15421
15426
  );
15427
+ }
15428
+ } finally {
15429
+ (ReactSharedInternals.T = didError),
15430
+ (ReactDOMSharedInternals.p = schedulerPriority);
15431
+ }
15432
+ }
15422
15433
  0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
15423
15434
  ensureRootIsScheduled(root);
15424
- remainingLanes = root.pendingLanes;
15425
- 0 !== (didIncludeRenderPhaseUpdate & 4194218) &&
15426
- 0 !== (remainingLanes & 42)
15435
+ previousPriority = root.pendingLanes;
15436
+ 0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
15427
15437
  ? ((nestedUpdateScheduled = !0),
15428
15438
  root === rootWithNestedUpdates
15429
15439
  ? nestedUpdateCount++
@@ -15431,7 +15441,6 @@
15431
15441
  : (nestedUpdateCount = 0);
15432
15442
  flushSyncWorkAcrossRoots_impl(0, !1);
15433
15443
  markCommitStopped();
15434
- return null;
15435
15444
  }
15436
15445
  function makeErrorInfo(componentStack) {
15437
15446
  componentStack = { componentStack: componentStack };
@@ -15796,11 +15805,9 @@
15796
15805
  mightHavePendingSyncWork = !0;
15797
15806
  null !== ReactSharedInternals.actQueue
15798
15807
  ? didScheduleMicrotask_act ||
15799
- ((didScheduleMicrotask_act = !0),
15800
- scheduleImmediateTask(processRootScheduleInMicrotask))
15808
+ ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask())
15801
15809
  : didScheduleMicrotask ||
15802
- ((didScheduleMicrotask = !0),
15803
- scheduleImmediateTask(processRootScheduleInMicrotask));
15810
+ ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
15804
15811
  }
15805
15812
  function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
15806
15813
  if (!isFlushingWork && mightHavePendingSyncWork) {
@@ -15832,7 +15839,9 @@
15832
15839
  (nextLanes = workInProgressRootRenderLanes),
15833
15840
  (nextLanes = getNextLanes(
15834
15841
  root,
15835
- root === workInProgressRoot ? nextLanes : 0
15842
+ root === workInProgressRoot ? nextLanes : 0,
15843
+ null !== root.cancelPendingCommit ||
15844
+ root.timeoutHandle !== noTimeout
15836
15845
  )),
15837
15846
  0 === (nextLanes & 3) ||
15838
15847
  checkIfRootIsPrerendering(root, nextLanes) ||
@@ -15844,6 +15853,9 @@
15844
15853
  isFlushingWork = !1;
15845
15854
  }
15846
15855
  }
15856
+ function processRootScheduleInImmediateTask() {
15857
+ processRootScheduleInMicrotask();
15858
+ }
15847
15859
  function processRootScheduleInMicrotask() {
15848
15860
  mightHavePendingSyncWork =
15849
15861
  didScheduleMicrotask_act =
@@ -15895,7 +15907,8 @@
15895
15907
  suspendedLanes = workInProgressRootRenderLanes;
15896
15908
  suspendedLanes = getNextLanes(
15897
15909
  root,
15898
- root === currentTime ? suspendedLanes : 0
15910
+ root === currentTime ? suspendedLanes : 0,
15911
+ null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
15899
15912
  );
15900
15913
  pingedLanes = root.callbackNode;
15901
15914
  if (
@@ -15959,7 +15972,10 @@
15959
15972
  workInProgressRootRenderLanes;
15960
15973
  workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
15961
15974
  root,
15962
- root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0
15975
+ root === workInProgressRoot
15976
+ ? workInProgressRootRenderLanes$jscomp$0
15977
+ : 0,
15978
+ null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
15963
15979
  );
15964
15980
  if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
15965
15981
  performWorkOnRoot(
@@ -15984,16 +16000,19 @@
15984
16000
  null !== callbackNode &&
15985
16001
  cancelCallback$1(callbackNode);
15986
16002
  }
15987
- function scheduleImmediateTask(cb) {
16003
+ function scheduleImmediateRootScheduleTask() {
15988
16004
  null !== ReactSharedInternals.actQueue &&
15989
16005
  ReactSharedInternals.actQueue.push(function () {
15990
- cb();
16006
+ processRootScheduleInMicrotask();
15991
16007
  return null;
15992
16008
  });
15993
16009
  scheduleMicrotask(function () {
15994
16010
  (executionContext & (RenderContext | CommitContext)) !== NoContext
15995
- ? scheduleCallback$3(ImmediatePriority, cb)
15996
- : cb();
16011
+ ? scheduleCallback$3(
16012
+ ImmediatePriority,
16013
+ processRootScheduleInImmediateTask
16014
+ )
16015
+ : processRootScheduleInMicrotask();
15997
16016
  });
15998
16017
  }
15999
16018
  function requestTransitionLane() {
@@ -18563,36 +18582,34 @@
18563
18582
  }
18564
18583
  case "src":
18565
18584
  case "href":
18566
- "" !== propKey ||
18567
- ("a" === tag && "href" === value) ||
18568
- ("object" === tag && "data" === value)
18569
- ? hydrateSanitizedAttribute(
18570
- domElement,
18571
- value,
18572
- value,
18573
- propKey,
18574
- extraAttributes,
18575
- serverDifferences
18576
- )
18577
- : ("src" === value
18578
- ? console.error(
18579
- '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.',
18580
- value,
18581
- value
18582
- )
18583
- : console.error(
18584
- '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.',
18585
- value,
18586
- value
18587
- ),
18588
- hydrateSanitizedAttribute(
18589
- domElement,
18590
- value,
18591
- value,
18592
- null,
18593
- extraAttributes,
18594
- serverDifferences
18595
- ));
18585
+ if (
18586
+ !(
18587
+ "" !== propKey ||
18588
+ ("a" === tag && "href" === value) ||
18589
+ ("object" === tag && "data" === value)
18590
+ )
18591
+ ) {
18592
+ "src" === value
18593
+ ? console.error(
18594
+ '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.',
18595
+ value,
18596
+ value
18597
+ )
18598
+ : console.error(
18599
+ '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.',
18600
+ value,
18601
+ value
18602
+ );
18603
+ continue;
18604
+ }
18605
+ hydrateSanitizedAttribute(
18606
+ domElement,
18607
+ value,
18608
+ value,
18609
+ propKey,
18610
+ extraAttributes,
18611
+ serverDifferences
18612
+ );
18596
18613
  continue;
18597
18614
  case "action":
18598
18615
  case "formAction":
@@ -19202,7 +19219,9 @@
19202
19219
  else if (
19203
19220
  name !== anyProps.rel ||
19204
19221
  instance.getAttribute("href") !==
19205
- (null == anyProps.href ? null : anyProps.href) ||
19222
+ (null == anyProps.href || "" === anyProps.href
19223
+ ? null
19224
+ : anyProps.href) ||
19206
19225
  instance.getAttribute("crossorigin") !==
19207
19226
  (null == anyProps.crossOrigin
19208
19227
  ? null
@@ -20173,11 +20192,7 @@
20173
20192
  ) {
20174
20193
  this.tag = 1;
20175
20194
  this.containerInfo = containerInfo;
20176
- this.finishedWork =
20177
- this.pingCache =
20178
- this.current =
20179
- this.pendingChildren =
20180
- null;
20195
+ this.pingCache = this.current = this.pendingChildren = null;
20181
20196
  this.timeoutHandle = noTimeout;
20182
20197
  this.callbackNode =
20183
20198
  this.next =
@@ -20190,7 +20205,6 @@
20190
20205
  this.entangledLanes =
20191
20206
  this.shellSuspendCounter =
20192
20207
  this.errorRecoveryDisabledLanes =
20193
- this.finishedLanes =
20194
20208
  this.expiredLanes =
20195
20209
  this.warmLanes =
20196
20210
  this.pingedLanes =
@@ -23939,7 +23953,6 @@
23939
23953
  nextEffect = null,
23940
23954
  inProgressLanes = null,
23941
23955
  inProgressRoot = null,
23942
- shouldFireAfterActiveInstanceBlur = !1,
23943
23956
  hostParent = null,
23944
23957
  hostParentIsContainer = !1,
23945
23958
  currentHoistableRoot = null,
@@ -24571,11 +24584,11 @@
24571
24584
  };
24572
24585
  (function () {
24573
24586
  var isomorphicReactPackageVersion = React.version;
24574
- if ("19.1.0-canary-62208bee-20250102" !== isomorphicReactPackageVersion)
24587
+ if ("19.1.0-canary-3ce77d55-20250106" !== isomorphicReactPackageVersion)
24575
24588
  throw Error(
24576
24589
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24577
24590
  (isomorphicReactPackageVersion +
24578
- "\n - react-dom: 19.1.0-canary-62208bee-20250102\nLearn more: https://react.dev/warnings/version-mismatch")
24591
+ "\n - react-dom: 19.1.0-canary-3ce77d55-20250106\nLearn more: https://react.dev/warnings/version-mismatch")
24579
24592
  );
24580
24593
  })();
24581
24594
  ("function" === typeof Map &&
@@ -24612,10 +24625,10 @@
24612
24625
  !(function () {
24613
24626
  var internals = {
24614
24627
  bundleType: 1,
24615
- version: "19.1.0-canary-62208bee-20250102",
24628
+ version: "19.1.0-canary-3ce77d55-20250106",
24616
24629
  rendererPackageName: "react-dom",
24617
24630
  currentDispatcherRef: ReactSharedInternals,
24618
- reconcilerVersion: "19.1.0-canary-62208bee-20250102"
24631
+ reconcilerVersion: "19.1.0-canary-3ce77d55-20250106"
24619
24632
  };
24620
24633
  internals.overrideHookState = overrideHookState;
24621
24634
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25091,7 +25104,7 @@
25091
25104
  exports.useFormStatus = function () {
25092
25105
  return resolveDispatcher().useHostTransitionStatus();
25093
25106
  };
25094
- exports.version = "19.1.0-canary-62208bee-20250102";
25107
+ exports.version = "19.1.0-canary-3ce77d55-20250106";
25095
25108
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
25096
25109
  "function" ===
25097
25110
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&