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.
@@ -510,17 +510,6 @@ var hasOwnProperty = Object.prototype.hasOwnProperty,
510
510
  unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,
511
511
  rendererID = null,
512
512
  injectedHook = null;
513
- function onCommitRoot(root) {
514
- if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
515
- try {
516
- injectedHook.onCommitFiberRoot(
517
- rendererID,
518
- root,
519
- void 0,
520
- 128 === (root.current.flags & 128)
521
- );
522
- } catch (err) {}
523
- }
524
513
  function setIsStrictModeForDevtools(newIsStrictMode) {
525
514
  "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);
526
515
  if (injectedHook && "function" === typeof injectedHook.setStrictMode)
@@ -590,14 +579,13 @@ function getHighestPriorityLanes(lanes) {
590
579
  return lanes;
591
580
  }
592
581
  }
593
- function getNextLanes(root, wipLanes) {
582
+ function getNextLanes(root, wipLanes, rootHasPendingCommit) {
594
583
  var pendingLanes = root.pendingLanes;
595
584
  if (0 === pendingLanes) return 0;
596
585
  var nextLanes = 0,
597
586
  suspendedLanes = root.suspendedLanes,
598
- pingedLanes = root.pingedLanes,
599
- warmLanes = root.warmLanes;
600
- root = 0 !== root.finishedLanes;
587
+ pingedLanes = root.pingedLanes;
588
+ root = root.warmLanes;
601
589
  var nonIdlePendingLanes = pendingLanes & 134217727;
602
590
  0 !== nonIdlePendingLanes
603
591
  ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
@@ -606,28 +594,28 @@ function getNextLanes(root, wipLanes) {
606
594
  : ((pingedLanes &= nonIdlePendingLanes),
607
595
  0 !== pingedLanes
608
596
  ? (nextLanes = getHighestPriorityLanes(pingedLanes))
609
- : root ||
610
- ((warmLanes = nonIdlePendingLanes & ~warmLanes),
611
- 0 !== warmLanes &&
612
- (nextLanes = getHighestPriorityLanes(warmLanes)))))
597
+ : rootHasPendingCommit ||
598
+ ((rootHasPendingCommit = nonIdlePendingLanes & ~root),
599
+ 0 !== rootHasPendingCommit &&
600
+ (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))))
613
601
  : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
614
602
  0 !== nonIdlePendingLanes
615
603
  ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
616
604
  : 0 !== pingedLanes
617
605
  ? (nextLanes = getHighestPriorityLanes(pingedLanes))
618
- : root ||
619
- ((warmLanes = pendingLanes & ~warmLanes),
620
- 0 !== warmLanes &&
621
- (nextLanes = getHighestPriorityLanes(warmLanes))));
606
+ : rootHasPendingCommit ||
607
+ ((rootHasPendingCommit = pendingLanes & ~root),
608
+ 0 !== rootHasPendingCommit &&
609
+ (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
622
610
  return 0 === nextLanes
623
611
  ? 0
624
612
  : 0 !== wipLanes &&
625
613
  wipLanes !== nextLanes &&
626
614
  0 === (wipLanes & suspendedLanes) &&
627
615
  ((suspendedLanes = nextLanes & -nextLanes),
628
- (warmLanes = wipLanes & -wipLanes),
629
- suspendedLanes >= warmLanes ||
630
- (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
616
+ (rootHasPendingCommit = wipLanes & -wipLanes),
617
+ suspendedLanes >= rootHasPendingCommit ||
618
+ (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176)))
631
619
  ? wipLanes
632
620
  : nextLanes;
633
621
  }
@@ -2026,19 +2014,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
2026
2014
  }
2027
2015
  var isInputEventSupported = !1;
2028
2016
  if (canUseDOM) {
2029
- var JSCompiler_inline_result$jscomp$280;
2017
+ var JSCompiler_inline_result$jscomp$281;
2030
2018
  if (canUseDOM) {
2031
- var isSupported$jscomp$inline_410 = "oninput" in document;
2032
- if (!isSupported$jscomp$inline_410) {
2033
- var element$jscomp$inline_411 = document.createElement("div");
2034
- element$jscomp$inline_411.setAttribute("oninput", "return;");
2035
- isSupported$jscomp$inline_410 =
2036
- "function" === typeof element$jscomp$inline_411.oninput;
2019
+ var isSupported$jscomp$inline_412 = "oninput" in document;
2020
+ if (!isSupported$jscomp$inline_412) {
2021
+ var element$jscomp$inline_413 = document.createElement("div");
2022
+ element$jscomp$inline_413.setAttribute("oninput", "return;");
2023
+ isSupported$jscomp$inline_412 =
2024
+ "function" === typeof element$jscomp$inline_413.oninput;
2037
2025
  }
2038
- JSCompiler_inline_result$jscomp$280 = isSupported$jscomp$inline_410;
2039
- } else JSCompiler_inline_result$jscomp$280 = !1;
2026
+ JSCompiler_inline_result$jscomp$281 = isSupported$jscomp$inline_412;
2027
+ } else JSCompiler_inline_result$jscomp$281 = !1;
2040
2028
  isInputEventSupported =
2041
- JSCompiler_inline_result$jscomp$280 &&
2029
+ JSCompiler_inline_result$jscomp$281 &&
2042
2030
  (!document.documentMode || 9 < document.documentMode);
2043
2031
  }
2044
2032
  function stopWatchingForValueChange() {
@@ -2190,97 +2178,6 @@ function hasSelectionCapabilities(elem) {
2190
2178
  "true" === elem.contentEditable)
2191
2179
  );
2192
2180
  }
2193
- function restoreSelection(priorSelectionInformation, containerInfo) {
2194
- var curFocusedElem = getActiveElementDeep(containerInfo);
2195
- containerInfo = priorSelectionInformation.focusedElem;
2196
- var priorSelectionRange = priorSelectionInformation.selectionRange;
2197
- if (
2198
- curFocusedElem !== containerInfo &&
2199
- containerInfo &&
2200
- containerInfo.ownerDocument &&
2201
- containsNode(containerInfo.ownerDocument.documentElement, containerInfo)
2202
- ) {
2203
- if (null !== priorSelectionRange && hasSelectionCapabilities(containerInfo))
2204
- if (
2205
- ((priorSelectionInformation = priorSelectionRange.start),
2206
- (curFocusedElem = priorSelectionRange.end),
2207
- void 0 === curFocusedElem &&
2208
- (curFocusedElem = priorSelectionInformation),
2209
- "selectionStart" in containerInfo)
2210
- )
2211
- (containerInfo.selectionStart = priorSelectionInformation),
2212
- (containerInfo.selectionEnd = Math.min(
2213
- curFocusedElem,
2214
- containerInfo.value.length
2215
- ));
2216
- else if (
2217
- ((curFocusedElem =
2218
- ((priorSelectionInformation =
2219
- containerInfo.ownerDocument || document) &&
2220
- priorSelectionInformation.defaultView) ||
2221
- window),
2222
- curFocusedElem.getSelection)
2223
- ) {
2224
- curFocusedElem = curFocusedElem.getSelection();
2225
- var length = containerInfo.textContent.length,
2226
- start = Math.min(priorSelectionRange.start, length);
2227
- priorSelectionRange =
2228
- void 0 === priorSelectionRange.end
2229
- ? start
2230
- : Math.min(priorSelectionRange.end, length);
2231
- !curFocusedElem.extend &&
2232
- start > priorSelectionRange &&
2233
- ((length = priorSelectionRange),
2234
- (priorSelectionRange = start),
2235
- (start = length));
2236
- length = getNodeForCharacterOffset(containerInfo, start);
2237
- var endMarker = getNodeForCharacterOffset(
2238
- containerInfo,
2239
- priorSelectionRange
2240
- );
2241
- length &&
2242
- endMarker &&
2243
- (1 !== curFocusedElem.rangeCount ||
2244
- curFocusedElem.anchorNode !== length.node ||
2245
- curFocusedElem.anchorOffset !== length.offset ||
2246
- curFocusedElem.focusNode !== endMarker.node ||
2247
- curFocusedElem.focusOffset !== endMarker.offset) &&
2248
- ((priorSelectionInformation =
2249
- priorSelectionInformation.createRange()),
2250
- priorSelectionInformation.setStart(length.node, length.offset),
2251
- curFocusedElem.removeAllRanges(),
2252
- start > priorSelectionRange
2253
- ? (curFocusedElem.addRange(priorSelectionInformation),
2254
- curFocusedElem.extend(endMarker.node, endMarker.offset))
2255
- : (priorSelectionInformation.setEnd(
2256
- endMarker.node,
2257
- endMarker.offset
2258
- ),
2259
- curFocusedElem.addRange(priorSelectionInformation)));
2260
- }
2261
- priorSelectionInformation = [];
2262
- for (
2263
- curFocusedElem = containerInfo;
2264
- (curFocusedElem = curFocusedElem.parentNode);
2265
-
2266
- )
2267
- 1 === curFocusedElem.nodeType &&
2268
- priorSelectionInformation.push({
2269
- element: curFocusedElem,
2270
- left: curFocusedElem.scrollLeft,
2271
- top: curFocusedElem.scrollTop
2272
- });
2273
- "function" === typeof containerInfo.focus && containerInfo.focus();
2274
- for (
2275
- containerInfo = 0;
2276
- containerInfo < priorSelectionInformation.length;
2277
- containerInfo++
2278
- )
2279
- (curFocusedElem = priorSelectionInformation[containerInfo]),
2280
- (curFocusedElem.element.scrollLeft = curFocusedElem.left),
2281
- (curFocusedElem.element.scrollTop = curFocusedElem.top);
2282
- }
2283
- }
2284
2181
  var skipSelectionChangeEvent =
2285
2182
  canUseDOM && "documentMode" in document && 11 >= document.documentMode,
2286
2183
  activeElement = null,
@@ -6105,12 +6002,12 @@ function markRef(current, workInProgress) {
6105
6002
  if (null === ref)
6106
6003
  null !== current &&
6107
6004
  null !== current.ref &&
6108
- (workInProgress.flags |= 2097664);
6005
+ (workInProgress.flags |= 4194816);
6109
6006
  else {
6110
6007
  if ("function" !== typeof ref && "object" !== typeof ref)
6111
6008
  throw Error(formatProdErrorMessage(284));
6112
6009
  if (null === current || current.ref !== ref)
6113
- workInProgress.flags |= 2097664;
6010
+ workInProgress.flags |= 4194816;
6114
6011
  }
6115
6012
  }
6116
6013
  function updateFunctionComponent(
@@ -6715,7 +6612,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6715
6612
  children: nextProps.children
6716
6613
  })),
6717
6614
  (nextProps.subtreeFlags =
6718
- JSCompiler_temp$jscomp$0.subtreeFlags & 31457280),
6615
+ JSCompiler_temp$jscomp$0.subtreeFlags & 29360128),
6719
6616
  null !== digest
6720
6617
  ? (showFallback = createWorkInProgress(digest, showFallback))
6721
6618
  : ((showFallback = createFiberFromFragment(
@@ -7746,8 +7643,7 @@ var offscreenSubtreeIsHidden = !1,
7746
7643
  offscreenSubtreeWasHidden = !1,
7747
7644
  needsFormReset = !1,
7748
7645
  PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
7749
- nextEffect = null,
7750
- shouldFireAfterActiveInstanceBlur = !1;
7646
+ nextEffect = null;
7751
7647
  function commitBeforeMutationEffects(root, firstChild) {
7752
7648
  root = root.containerInfo;
7753
7649
  eventsEnabled = _enabled;
@@ -7823,7 +7719,7 @@ function commitBeforeMutationEffects(root, firstChild) {
7823
7719
  if (
7824
7720
  ((firstChild = nextEffect),
7825
7721
  (root = firstChild.child),
7826
- 0 !== (firstChild.subtreeFlags & 1028) && null !== root)
7722
+ 0 !== (firstChild.subtreeFlags & 1024) && null !== root)
7827
7723
  )
7828
7724
  (root.return = firstChild), (nextEffect = root);
7829
7725
  else
@@ -7901,9 +7797,6 @@ function commitBeforeMutationEffects(root, firstChild) {
7901
7797
  }
7902
7798
  nextEffect = firstChild.return;
7903
7799
  }
7904
- resolvedPrevProps = shouldFireAfterActiveInstanceBlur;
7905
- shouldFireAfterActiveInstanceBlur = !1;
7906
- return resolvedPrevProps;
7907
7800
  }
7908
7801
  function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
7909
7802
  var flags = finishedWork.flags;
@@ -8390,7 +8283,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
8390
8283
  if (
8391
8284
  ((currentResource = maybeNodes[i]),
8392
8285
  currentResource.getAttribute("href") ===
8393
- (null == current.href ? null : current.href) &&
8286
+ (null == current.href || "" === current.href
8287
+ ? null
8288
+ : current.href) &&
8394
8289
  currentResource.getAttribute("rel") ===
8395
8290
  (null == current.rel ? null : current.rel) &&
8396
8291
  currentResource.getAttribute("title") ===
@@ -8992,6 +8887,14 @@ function commitPassiveMountOnFiber(
8992
8887
  );
8993
8888
  flags & 2048 && commitHookEffectListMount(9, finishedWork);
8994
8889
  break;
8890
+ case 1:
8891
+ recursivelyTraversePassiveMountEffects(
8892
+ finishedRoot,
8893
+ finishedWork,
8894
+ committedLanes,
8895
+ committedTransitions
8896
+ );
8897
+ break;
8995
8898
  case 3:
8996
8899
  recursivelyTraversePassiveMountEffects(
8997
8900
  finishedRoot,
@@ -9449,7 +9352,7 @@ function createWorkInProgress(current, pendingProps) {
9449
9352
  (workInProgress.flags = 0),
9450
9353
  (workInProgress.subtreeFlags = 0),
9451
9354
  (workInProgress.deletions = null));
9452
- workInProgress.flags = current.flags & 31457280;
9355
+ workInProgress.flags = current.flags & 29360128;
9453
9356
  workInProgress.childLanes = current.childLanes;
9454
9357
  workInProgress.lanes = current.lanes;
9455
9358
  workInProgress.child = current.child;
@@ -9468,7 +9371,7 @@ function createWorkInProgress(current, pendingProps) {
9468
9371
  return workInProgress;
9469
9372
  }
9470
9373
  function resetWorkInProgress(workInProgress, renderLanes) {
9471
- workInProgress.flags &= 31457282;
9374
+ workInProgress.flags &= 29360130;
9472
9375
  var current = workInProgress.alternate;
9473
9376
  null === current
9474
9377
  ? ((workInProgress.childLanes = 0),
@@ -9711,8 +9614,8 @@ function bubbleProperties(completedWork) {
9711
9614
  if (didBailout)
9712
9615
  for (var child$132 = completedWork.child; null !== child$132; )
9713
9616
  (newChildLanes |= child$132.lanes | child$132.childLanes),
9714
- (subtreeFlags |= child$132.subtreeFlags & 31457280),
9715
- (subtreeFlags |= child$132.flags & 31457280),
9617
+ (subtreeFlags |= child$132.subtreeFlags & 29360128),
9618
+ (subtreeFlags |= child$132.flags & 29360128),
9716
9619
  (child$132.return = completedWork),
9717
9620
  (child$132 = child$132.sibling);
9718
9621
  else
@@ -10447,8 +10350,6 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10447
10350
  default:
10448
10351
  throw Error(formatProdErrorMessage(329));
10449
10352
  }
10450
- shouldTimeSlice.finishedWork = forceSync;
10451
- shouldTimeSlice.finishedLanes = lanes;
10452
10353
  if (
10453
10354
  (lanes & 62914560) === lanes &&
10454
10355
  ((exitStatus = globalMostRecentFallbackTime + 300 - now()),
@@ -10460,7 +10361,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10460
10361
  workInProgressDeferredLane,
10461
10362
  !workInProgressRootDidSkipSuspendedSiblings
10462
10363
  );
10463
- if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
10364
+ if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
10464
10365
  shouldTimeSlice.timeoutHandle = scheduleTimeout(
10465
10366
  commitRootWhenReady.bind(
10466
10367
  null,
@@ -10521,18 +10422,24 @@ function commitRootWhenReady(
10521
10422
  completedRenderStartTime,
10522
10423
  completedRenderEndTime
10523
10424
  ) {
10524
- var subtreeFlags = finishedWork.subtreeFlags;
10525
- if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
10425
+ root.timeoutHandle = -1;
10426
+ suspendedCommitReason = finishedWork.subtreeFlags;
10427
+ if (
10428
+ suspendedCommitReason & 8192 ||
10429
+ 16785408 === (suspendedCommitReason & 16785408)
10430
+ )
10526
10431
  if (
10527
10432
  ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
10528
10433
  accumulateSuspenseyCommitOnFiber(finishedWork),
10529
- (finishedWork = waitForCommitToBeReady()),
10530
- null !== finishedWork)
10434
+ (suspendedCommitReason = waitForCommitToBeReady()),
10435
+ null !== suspendedCommitReason)
10531
10436
  ) {
10532
- root.cancelPendingCommit = finishedWork(
10437
+ root.cancelPendingCommit = suspendedCommitReason(
10533
10438
  commitRoot.bind(
10534
10439
  null,
10535
10440
  root,
10441
+ finishedWork,
10442
+ lanes,
10536
10443
  recoverableErrors,
10537
10444
  transitions,
10538
10445
  didIncludeRenderPhaseUpdate,
@@ -10550,16 +10457,14 @@ function commitRootWhenReady(
10550
10457
  }
10551
10458
  commitRoot(
10552
10459
  root,
10460
+ finishedWork,
10461
+ lanes,
10553
10462
  recoverableErrors,
10554
10463
  transitions,
10555
10464
  didIncludeRenderPhaseUpdate,
10556
10465
  spawnedLane,
10557
10466
  updatedLanes,
10558
- suspendedRetryLanes,
10559
- exitStatus,
10560
- suspendedCommitReason,
10561
- completedRenderStartTime,
10562
- completedRenderEndTime
10467
+ suspendedRetryLanes
10563
10468
  );
10564
10469
  }
10565
10470
  function isRenderConsistentWithExternalStores(finishedWork) {
@@ -10640,8 +10545,6 @@ function resetWorkInProgressStack() {
10640
10545
  }
10641
10546
  }
10642
10547
  function prepareFreshStack(root, lanes) {
10643
- root.finishedWork = null;
10644
- root.finishedLanes = 0;
10645
10548
  var timeoutHandle = root.timeoutHandle;
10646
10549
  -1 !== timeoutHandle &&
10647
10550
  ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));
@@ -10896,7 +10799,7 @@ function renderRootConcurrent(root, lanes) {
10896
10799
  throw Error(formatProdErrorMessage(462));
10897
10800
  }
10898
10801
  }
10899
- workLoopConcurrent();
10802
+ workLoopConcurrentByScheduler();
10900
10803
  break;
10901
10804
  } catch (thrownValue$166) {
10902
10805
  handleThrow(root, thrownValue$166);
@@ -10912,7 +10815,7 @@ function renderRootConcurrent(root, lanes) {
10912
10815
  finishQueueingConcurrentUpdates();
10913
10816
  return workInProgressRootExitStatus;
10914
10817
  }
10915
- function workLoopConcurrent() {
10818
+ function workLoopConcurrentByScheduler() {
10916
10819
  for (; null !== workInProgress && !shouldYield(); )
10917
10820
  performUnitOfWork(workInProgress);
10918
10821
  }
@@ -11071,137 +10974,244 @@ function unwindUnitOfWork(unitOfWork, skipSiblings) {
11071
10974
  }
11072
10975
  function commitRoot(
11073
10976
  root,
10977
+ finishedWork,
10978
+ lanes,
11074
10979
  recoverableErrors,
11075
10980
  transitions,
11076
10981
  didIncludeRenderPhaseUpdate,
11077
10982
  spawnedLane,
11078
10983
  updatedLanes,
11079
- suspendedRetryLanes,
11080
- exitStatus,
11081
- suspendedCommitReason,
11082
- completedRenderStartTime,
11083
- completedRenderEndTime
11084
- ) {
11085
- var prevTransition = ReactSharedInternals.T,
11086
- previousUpdateLanePriority = ReactDOMSharedInternals.p;
11087
- try {
11088
- (ReactDOMSharedInternals.p = 2),
11089
- (ReactSharedInternals.T = null),
11090
- commitRootImpl(
11091
- root,
11092
- recoverableErrors,
11093
- transitions,
11094
- didIncludeRenderPhaseUpdate,
11095
- previousUpdateLanePriority,
11096
- spawnedLane,
11097
- updatedLanes,
11098
- suspendedRetryLanes,
11099
- exitStatus,
11100
- suspendedCommitReason,
11101
- completedRenderStartTime,
11102
- completedRenderEndTime
11103
- );
11104
- } finally {
11105
- (ReactSharedInternals.T = prevTransition),
11106
- (ReactDOMSharedInternals.p = previousUpdateLanePriority);
11107
- }
11108
- }
11109
- function commitRootImpl(
11110
- root,
11111
- recoverableErrors,
11112
- transitions,
11113
- didIncludeRenderPhaseUpdate,
11114
- renderPriorityLevel,
11115
- spawnedLane,
11116
- updatedLanes,
11117
10984
  suspendedRetryLanes
11118
10985
  ) {
10986
+ root.cancelPendingCommit = null;
11119
10987
  do flushPassiveEffects();
11120
10988
  while (null !== rootWithPendingPassiveEffects);
11121
10989
  if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
11122
- var finishedWork = root.finishedWork;
11123
- didIncludeRenderPhaseUpdate = root.finishedLanes;
11124
- if (null === finishedWork) return null;
11125
- root.finishedWork = null;
11126
- root.finishedLanes = 0;
11127
- if (finishedWork === root.current) throw Error(formatProdErrorMessage(177));
11128
- var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
11129
- remainingLanes |= concurrentlyUpdatedLanes;
11130
- markRootFinished(
11131
- root,
11132
- didIncludeRenderPhaseUpdate,
11133
- remainingLanes,
11134
- spawnedLane,
11135
- updatedLanes,
11136
- suspendedRetryLanes
11137
- );
11138
- root === workInProgressRoot &&
11139
- ((workInProgress = workInProgressRoot = null),
11140
- (workInProgressRootRenderLanes = 0));
11141
- spawnedLane = !1;
10990
+ if (null !== finishedWork) {
10991
+ if (finishedWork === root.current) throw Error(formatProdErrorMessage(177));
10992
+ didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;
10993
+ didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
10994
+ markRootFinished(
10995
+ root,
10996
+ lanes,
10997
+ didIncludeRenderPhaseUpdate,
10998
+ spawnedLane,
10999
+ updatedLanes,
11000
+ suspendedRetryLanes
11001
+ );
11002
+ root === workInProgressRoot &&
11003
+ ((workInProgress = workInProgressRoot = null),
11004
+ (workInProgressRootRenderLanes = 0));
11005
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
11006
+ 0 !== (finishedWork.flags & 10256)
11007
+ ? ((pendingPassiveEffectsRemainingLanes = didIncludeRenderPhaseUpdate),
11008
+ (pendingPassiveTransitions = transitions),
11009
+ (root.callbackNode = null),
11010
+ (root.callbackPriority = 0),
11011
+ scheduleCallback$1(NormalPriority$1, function () {
11012
+ flushPassiveEffects(!0);
11013
+ return null;
11014
+ }))
11015
+ : ((root.callbackNode = null), (root.callbackPriority = 0));
11016
+ transitions = 0 !== (finishedWork.flags & 13878);
11017
+ if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
11018
+ transitions = ReactSharedInternals.T;
11019
+ ReactSharedInternals.T = null;
11020
+ spawnedLane = ReactDOMSharedInternals.p;
11021
+ ReactDOMSharedInternals.p = 2;
11022
+ updatedLanes = executionContext;
11023
+ executionContext |= 4;
11024
+ try {
11025
+ commitBeforeMutationEffects(root, finishedWork);
11026
+ } finally {
11027
+ (executionContext = updatedLanes),
11028
+ (ReactDOMSharedInternals.p = spawnedLane),
11029
+ (ReactSharedInternals.T = transitions);
11030
+ }
11031
+ }
11032
+ flushMutationEffects(root, finishedWork, lanes);
11033
+ flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
11034
+ }
11035
+ }
11036
+ function flushMutationEffects(root, finishedWork) {
11037
+ var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
11038
+ if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
11039
+ rootMutationHasEffect = ReactSharedInternals.T;
11040
+ ReactSharedInternals.T = null;
11041
+ var previousPriority = ReactDOMSharedInternals.p;
11042
+ ReactDOMSharedInternals.p = 2;
11043
+ var prevExecutionContext = executionContext;
11044
+ executionContext |= 4;
11045
+ try {
11046
+ commitMutationEffectsOnFiber(finishedWork, root);
11047
+ var priorSelectionInformation = selectionInformation,
11048
+ curFocusedElem = getActiveElementDeep(root.containerInfo),
11049
+ priorFocusedElem = priorSelectionInformation.focusedElem,
11050
+ priorSelectionRange = priorSelectionInformation.selectionRange;
11051
+ if (
11052
+ curFocusedElem !== priorFocusedElem &&
11053
+ priorFocusedElem &&
11054
+ priorFocusedElem.ownerDocument &&
11055
+ containsNode(
11056
+ priorFocusedElem.ownerDocument.documentElement,
11057
+ priorFocusedElem
11058
+ )
11059
+ ) {
11060
+ if (
11061
+ null !== priorSelectionRange &&
11062
+ hasSelectionCapabilities(priorFocusedElem)
11063
+ ) {
11064
+ var start = priorSelectionRange.start,
11065
+ end = priorSelectionRange.end;
11066
+ void 0 === end && (end = start);
11067
+ if ("selectionStart" in priorFocusedElem)
11068
+ (priorFocusedElem.selectionStart = start),
11069
+ (priorFocusedElem.selectionEnd = Math.min(
11070
+ end,
11071
+ priorFocusedElem.value.length
11072
+ ));
11073
+ else {
11074
+ var doc = priorFocusedElem.ownerDocument || document,
11075
+ win = (doc && doc.defaultView) || window;
11076
+ if (win.getSelection) {
11077
+ var selection = win.getSelection(),
11078
+ length = priorFocusedElem.textContent.length,
11079
+ start$jscomp$0 = Math.min(priorSelectionRange.start, length),
11080
+ end$jscomp$0 =
11081
+ void 0 === priorSelectionRange.end
11082
+ ? start$jscomp$0
11083
+ : Math.min(priorSelectionRange.end, length);
11084
+ !selection.extend &&
11085
+ start$jscomp$0 > end$jscomp$0 &&
11086
+ ((curFocusedElem = end$jscomp$0),
11087
+ (end$jscomp$0 = start$jscomp$0),
11088
+ (start$jscomp$0 = curFocusedElem));
11089
+ var startMarker = getNodeForCharacterOffset(
11090
+ priorFocusedElem,
11091
+ start$jscomp$0
11092
+ ),
11093
+ endMarker = getNodeForCharacterOffset(
11094
+ priorFocusedElem,
11095
+ end$jscomp$0
11096
+ );
11097
+ if (
11098
+ startMarker &&
11099
+ endMarker &&
11100
+ (1 !== selection.rangeCount ||
11101
+ selection.anchorNode !== startMarker.node ||
11102
+ selection.anchorOffset !== startMarker.offset ||
11103
+ selection.focusNode !== endMarker.node ||
11104
+ selection.focusOffset !== endMarker.offset)
11105
+ ) {
11106
+ var range = doc.createRange();
11107
+ range.setStart(startMarker.node, startMarker.offset);
11108
+ selection.removeAllRanges();
11109
+ start$jscomp$0 > end$jscomp$0
11110
+ ? (selection.addRange(range),
11111
+ selection.extend(endMarker.node, endMarker.offset))
11112
+ : (range.setEnd(endMarker.node, endMarker.offset),
11113
+ selection.addRange(range));
11114
+ }
11115
+ }
11116
+ }
11117
+ }
11118
+ doc = [];
11119
+ for (selection = priorFocusedElem; (selection = selection.parentNode); )
11120
+ 1 === selection.nodeType &&
11121
+ doc.push({
11122
+ element: selection,
11123
+ left: selection.scrollLeft,
11124
+ top: selection.scrollTop
11125
+ });
11126
+ "function" === typeof priorFocusedElem.focus &&
11127
+ priorFocusedElem.focus();
11128
+ for (
11129
+ priorFocusedElem = 0;
11130
+ priorFocusedElem < doc.length;
11131
+ priorFocusedElem++
11132
+ ) {
11133
+ var info = doc[priorFocusedElem];
11134
+ info.element.scrollLeft = info.left;
11135
+ info.element.scrollTop = info.top;
11136
+ }
11137
+ }
11138
+ _enabled = !!eventsEnabled;
11139
+ selectionInformation = eventsEnabled = null;
11140
+ } finally {
11141
+ (executionContext = prevExecutionContext),
11142
+ (ReactDOMSharedInternals.p = previousPriority),
11143
+ (ReactSharedInternals.T = rootMutationHasEffect);
11144
+ }
11145
+ }
11146
+ root.current = finishedWork;
11147
+ }
11148
+ function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
11149
+ var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
11150
+ if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
11151
+ rootHasLayoutEffect = ReactSharedInternals.T;
11152
+ ReactSharedInternals.T = null;
11153
+ var previousPriority = ReactDOMSharedInternals.p;
11154
+ ReactDOMSharedInternals.p = 2;
11155
+ var prevExecutionContext = executionContext;
11156
+ executionContext |= 4;
11157
+ try {
11158
+ commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
11159
+ } finally {
11160
+ (executionContext = prevExecutionContext),
11161
+ (ReactDOMSharedInternals.p = previousPriority),
11162
+ (ReactSharedInternals.T = rootHasLayoutEffect);
11163
+ }
11164
+ }
11165
+ requestPaint();
11142
11166
  0 !== (finishedWork.subtreeFlags & 10256) ||
11143
11167
  0 !== (finishedWork.flags & 10256)
11144
- ? ((spawnedLane = !0),
11145
- (pendingPassiveEffectsRemainingLanes = remainingLanes),
11146
- (pendingPassiveTransitions = transitions),
11147
- (root.callbackNode = null),
11148
- (root.callbackPriority = 0),
11149
- (root.cancelPendingCommit = null),
11150
- scheduleCallback$1(NormalPriority$1, function () {
11151
- flushPassiveEffects(!0);
11152
- return null;
11153
- }))
11154
- : ((root.callbackNode = null),
11155
- (root.callbackPriority = 0),
11156
- (root.cancelPendingCommit = null));
11157
- transitions = 0 !== (finishedWork.flags & 15990);
11158
- 0 !== (finishedWork.subtreeFlags & 15990) || transitions
11159
- ? ((transitions = ReactSharedInternals.T),
11160
- (ReactSharedInternals.T = null),
11161
- (updatedLanes = ReactDOMSharedInternals.p),
11162
- (ReactDOMSharedInternals.p = 2),
11163
- (suspendedRetryLanes = executionContext),
11164
- (executionContext |= 4),
11165
- commitBeforeMutationEffects(root, finishedWork),
11166
- commitMutationEffectsOnFiber(finishedWork, root),
11167
- restoreSelection(selectionInformation, root.containerInfo),
11168
- (_enabled = !!eventsEnabled),
11169
- (selectionInformation = eventsEnabled = null),
11170
- (root.current = finishedWork),
11171
- commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork),
11172
- requestPaint(),
11173
- (executionContext = suspendedRetryLanes),
11174
- (ReactDOMSharedInternals.p = updatedLanes),
11175
- (ReactSharedInternals.T = transitions))
11176
- : (root.current = finishedWork);
11177
- spawnedLane
11178
- ? ((spawnedLane = !1),
11179
- (rootWithPendingPassiveEffects = root),
11180
- (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate))
11181
- : releaseRootPooledCache(root, remainingLanes);
11182
- remainingLanes = root.pendingLanes;
11183
- 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
11184
- onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
11185
- if (null !== recoverableErrors)
11186
- for (
11187
- renderPriorityLevel = root.onRecoverableError, finishedWork = 0;
11188
- finishedWork < recoverableErrors.length;
11189
- finishedWork++
11190
- )
11191
- (remainingLanes = recoverableErrors[finishedWork]),
11192
- renderPriorityLevel(remainingLanes.value, {
11193
- componentStack: remainingLanes.stack
11168
+ ? ((rootWithPendingPassiveEffects = root),
11169
+ (pendingPassiveEffectsLanes = lanes))
11170
+ : releaseRootPooledCache(root, root.pendingLanes);
11171
+ rootHasLayoutEffect = root.pendingLanes;
11172
+ 0 === rootHasLayoutEffect && (legacyErrorBoundariesThatAlreadyFailed = null);
11173
+ lanesToEventPriority(lanes);
11174
+ finishedWork = finishedWork.stateNode;
11175
+ if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
11176
+ try {
11177
+ injectedHook.onCommitFiberRoot(
11178
+ rendererID,
11179
+ finishedWork,
11180
+ void 0,
11181
+ 128 === (finishedWork.current.flags & 128)
11182
+ );
11183
+ } catch (err) {}
11184
+ if (null !== recoverableErrors) {
11185
+ finishedWork = ReactSharedInternals.T;
11186
+ rootHasLayoutEffect = ReactDOMSharedInternals.p;
11187
+ ReactDOMSharedInternals.p = 2;
11188
+ ReactSharedInternals.T = null;
11189
+ try {
11190
+ var onRecoverableError = root.onRecoverableError;
11191
+ for (
11192
+ previousPriority = 0;
11193
+ previousPriority < recoverableErrors.length;
11194
+ previousPriority++
11195
+ ) {
11196
+ var recoverableError = recoverableErrors[previousPriority];
11197
+ onRecoverableError(recoverableError.value, {
11198
+ componentStack: recoverableError.stack
11194
11199
  });
11200
+ }
11201
+ } finally {
11202
+ (ReactSharedInternals.T = finishedWork),
11203
+ (ReactDOMSharedInternals.p = rootHasLayoutEffect);
11204
+ }
11205
+ }
11195
11206
  0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
11196
11207
  ensureRootIsScheduled(root);
11197
- remainingLanes = root.pendingLanes;
11198
- 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42)
11208
+ rootHasLayoutEffect = root.pendingLanes;
11209
+ 0 !== (lanes & 4194218) && 0 !== (rootHasLayoutEffect & 42)
11199
11210
  ? root === rootWithNestedUpdates
11200
11211
  ? nestedUpdateCount++
11201
11212
  : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
11202
11213
  : (nestedUpdateCount = 0);
11203
11214
  flushSyncWorkAcrossRoots_impl(0, !1);
11204
- return null;
11205
11215
  }
11206
11216
  function releaseRootPooledCache(root, remainingLanes) {
11207
11217
  0 === (root.pooledCacheLanes &= remainingLanes) &&
@@ -11211,7 +11221,7 @@ function releaseRootPooledCache(root, remainingLanes) {
11211
11221
  }
11212
11222
  function flushPassiveEffects() {
11213
11223
  if (null !== rootWithPendingPassiveEffects) {
11214
- var root$170 = rootWithPendingPassiveEffects,
11224
+ var root$171 = rootWithPendingPassiveEffects,
11215
11225
  remainingLanes = pendingPassiveEffectsRemainingLanes;
11216
11226
  pendingPassiveEffectsRemainingLanes = 0;
11217
11227
  var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
@@ -11250,7 +11260,7 @@ function flushPassiveEffects() {
11250
11260
  } finally {
11251
11261
  (ReactDOMSharedInternals.p = previousPriority),
11252
11262
  (ReactSharedInternals.T = prevTransition),
11253
- releaseRootPooledCache(root$170, remainingLanes);
11263
+ releaseRootPooledCache(root$171, remainingLanes);
11254
11264
  }
11255
11265
  }
11256
11266
  return !1;
@@ -11385,22 +11395,21 @@ function ensureRootIsScheduled(root) {
11385
11395
  : (lastScheduledRoot = lastScheduledRoot.next = root));
11386
11396
  mightHavePendingSyncWork = !0;
11387
11397
  didScheduleMicrotask ||
11388
- ((didScheduleMicrotask = !0),
11389
- scheduleImmediateTask(processRootScheduleInMicrotask));
11398
+ ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
11390
11399
  }
11391
11400
  function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11392
11401
  if (!isFlushingWork && mightHavePendingSyncWork) {
11393
11402
  isFlushingWork = !0;
11394
11403
  do {
11395
11404
  var didPerformSomeWork = !1;
11396
- for (var root$172 = firstScheduledRoot; null !== root$172; ) {
11405
+ for (var root$173 = firstScheduledRoot; null !== root$173; ) {
11397
11406
  if (!onlyLegacy)
11398
11407
  if (0 !== syncTransitionLanes) {
11399
- var pendingLanes = root$172.pendingLanes;
11408
+ var pendingLanes = root$173.pendingLanes;
11400
11409
  if (0 === pendingLanes) var JSCompiler_inline_result = 0;
11401
11410
  else {
11402
- var suspendedLanes = root$172.suspendedLanes,
11403
- pingedLanes = root$172.pingedLanes;
11411
+ var suspendedLanes = root$173.suspendedLanes,
11412
+ pingedLanes = root$173.pingedLanes;
11404
11413
  JSCompiler_inline_result =
11405
11414
  (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
11406
11415
  JSCompiler_inline_result &=
@@ -11414,23 +11423,28 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11414
11423
  }
11415
11424
  0 !== JSCompiler_inline_result &&
11416
11425
  ((didPerformSomeWork = !0),
11417
- performSyncWorkOnRoot(root$172, JSCompiler_inline_result));
11426
+ performSyncWorkOnRoot(root$173, JSCompiler_inline_result));
11418
11427
  } else
11419
11428
  (JSCompiler_inline_result = workInProgressRootRenderLanes),
11420
11429
  (JSCompiler_inline_result = getNextLanes(
11421
- root$172,
11422
- root$172 === workInProgressRoot ? JSCompiler_inline_result : 0
11430
+ root$173,
11431
+ root$173 === workInProgressRoot ? JSCompiler_inline_result : 0,
11432
+ null !== root$173.cancelPendingCommit ||
11433
+ -1 !== root$173.timeoutHandle
11423
11434
  )),
11424
11435
  0 === (JSCompiler_inline_result & 3) ||
11425
- checkIfRootIsPrerendering(root$172, JSCompiler_inline_result) ||
11436
+ checkIfRootIsPrerendering(root$173, JSCompiler_inline_result) ||
11426
11437
  ((didPerformSomeWork = !0),
11427
- performSyncWorkOnRoot(root$172, JSCompiler_inline_result));
11428
- root$172 = root$172.next;
11438
+ performSyncWorkOnRoot(root$173, JSCompiler_inline_result));
11439
+ root$173 = root$173.next;
11429
11440
  }
11430
11441
  } while (didPerformSomeWork);
11431
11442
  isFlushingWork = !1;
11432
11443
  }
11433
11444
  }
11445
+ function processRootScheduleInImmediateTask() {
11446
+ processRootScheduleInMicrotask();
11447
+ }
11434
11448
  function processRootScheduleInMicrotask() {
11435
11449
  mightHavePendingSyncWork = didScheduleMicrotask = !1;
11436
11450
  var syncTransitionLanes = 0;
@@ -11479,7 +11493,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
11479
11493
  suspendedLanes = workInProgressRootRenderLanes;
11480
11494
  suspendedLanes = getNextLanes(
11481
11495
  root,
11482
- root === currentTime ? suspendedLanes : 0
11496
+ root === currentTime ? suspendedLanes : 0,
11497
+ null !== root.cancelPendingCommit || -1 !== root.timeoutHandle
11483
11498
  );
11484
11499
  pingedLanes = root.callbackNode;
11485
11500
  if (
@@ -11535,7 +11550,8 @@ function performWorkOnRootViaSchedulerTask(root, didTimeout) {
11535
11550
  var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
11536
11551
  workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
11537
11552
  root,
11538
- root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0
11553
+ root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
11554
+ null !== root.cancelPendingCommit || -1 !== root.timeoutHandle
11539
11555
  );
11540
11556
  if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
11541
11557
  performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout);
@@ -11548,11 +11564,14 @@ function performSyncWorkOnRoot(root, lanes) {
11548
11564
  if (flushPassiveEffects()) return null;
11549
11565
  performWorkOnRoot(root, lanes, !0);
11550
11566
  }
11551
- function scheduleImmediateTask(cb) {
11567
+ function scheduleImmediateRootScheduleTask() {
11552
11568
  scheduleMicrotask(function () {
11553
11569
  0 !== (executionContext & 6)
11554
- ? scheduleCallback$3(ImmediatePriority, cb)
11555
- : cb();
11570
+ ? scheduleCallback$3(
11571
+ ImmediatePriority,
11572
+ processRootScheduleInImmediateTask
11573
+ )
11574
+ : processRootScheduleInMicrotask();
11556
11575
  });
11557
11576
  }
11558
11577
  function requestTransitionLane() {
@@ -11655,20 +11674,20 @@ function extractEvents$1(
11655
11674
  }
11656
11675
  }
11657
11676
  for (
11658
- var i$jscomp$inline_1432 = 0;
11659
- i$jscomp$inline_1432 < simpleEventPluginEvents.length;
11660
- i$jscomp$inline_1432++
11677
+ var i$jscomp$inline_1459 = 0;
11678
+ i$jscomp$inline_1459 < simpleEventPluginEvents.length;
11679
+ i$jscomp$inline_1459++
11661
11680
  ) {
11662
- var eventName$jscomp$inline_1433 =
11663
- simpleEventPluginEvents[i$jscomp$inline_1432],
11664
- domEventName$jscomp$inline_1434 =
11665
- eventName$jscomp$inline_1433.toLowerCase(),
11666
- capitalizedEvent$jscomp$inline_1435 =
11667
- eventName$jscomp$inline_1433[0].toUpperCase() +
11668
- eventName$jscomp$inline_1433.slice(1);
11681
+ var eventName$jscomp$inline_1460 =
11682
+ simpleEventPluginEvents[i$jscomp$inline_1459],
11683
+ domEventName$jscomp$inline_1461 =
11684
+ eventName$jscomp$inline_1460.toLowerCase(),
11685
+ capitalizedEvent$jscomp$inline_1462 =
11686
+ eventName$jscomp$inline_1460[0].toUpperCase() +
11687
+ eventName$jscomp$inline_1460.slice(1);
11669
11688
  registerSimpleEvent(
11670
- domEventName$jscomp$inline_1434,
11671
- "on" + capitalizedEvent$jscomp$inline_1435
11689
+ domEventName$jscomp$inline_1461,
11690
+ "on" + capitalizedEvent$jscomp$inline_1462
11672
11691
  );
11673
11692
  }
11674
11693
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -12851,34 +12870,34 @@ function setInitialProperties(domElement, tag, props) {
12851
12870
  defaultChecked = null;
12852
12871
  for (hasSrc in props)
12853
12872
  if (props.hasOwnProperty(hasSrc)) {
12854
- var propValue$186 = props[hasSrc];
12855
- if (null != propValue$186)
12873
+ var propValue$187 = props[hasSrc];
12874
+ if (null != propValue$187)
12856
12875
  switch (hasSrc) {
12857
12876
  case "name":
12858
- hasSrcSet = propValue$186;
12877
+ hasSrcSet = propValue$187;
12859
12878
  break;
12860
12879
  case "type":
12861
- propValue = propValue$186;
12880
+ propValue = propValue$187;
12862
12881
  break;
12863
12882
  case "checked":
12864
- checked = propValue$186;
12883
+ checked = propValue$187;
12865
12884
  break;
12866
12885
  case "defaultChecked":
12867
- defaultChecked = propValue$186;
12886
+ defaultChecked = propValue$187;
12868
12887
  break;
12869
12888
  case "value":
12870
- propKey = propValue$186;
12889
+ propKey = propValue$187;
12871
12890
  break;
12872
12891
  case "defaultValue":
12873
- defaultValue = propValue$186;
12892
+ defaultValue = propValue$187;
12874
12893
  break;
12875
12894
  case "children":
12876
12895
  case "dangerouslySetInnerHTML":
12877
- if (null != propValue$186)
12896
+ if (null != propValue$187)
12878
12897
  throw Error(formatProdErrorMessage(137, tag));
12879
12898
  break;
12880
12899
  default:
12881
- setProp(domElement, tag, hasSrc, propValue$186, props, null);
12900
+ setProp(domElement, tag, hasSrc, propValue$187, props, null);
12882
12901
  }
12883
12902
  }
12884
12903
  initInput(
@@ -13015,14 +13034,14 @@ function setInitialProperties(domElement, tag, props) {
13015
13034
  return;
13016
13035
  default:
13017
13036
  if (isCustomElement(tag)) {
13018
- for (propValue$186 in props)
13019
- props.hasOwnProperty(propValue$186) &&
13020
- ((hasSrc = props[propValue$186]),
13037
+ for (propValue$187 in props)
13038
+ props.hasOwnProperty(propValue$187) &&
13039
+ ((hasSrc = props[propValue$187]),
13021
13040
  void 0 !== hasSrc &&
13022
13041
  setPropOnCustomElement(
13023
13042
  domElement,
13024
13043
  tag,
13025
- propValue$186,
13044
+ propValue$187,
13026
13045
  hasSrc,
13027
13046
  props,
13028
13047
  void 0
@@ -13070,14 +13089,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13070
13089
  setProp(domElement, tag, propKey, null, nextProps, lastProp);
13071
13090
  }
13072
13091
  }
13073
- for (var propKey$203 in nextProps) {
13074
- var propKey = nextProps[propKey$203];
13075
- lastProp = lastProps[propKey$203];
13092
+ for (var propKey$204 in nextProps) {
13093
+ var propKey = nextProps[propKey$204];
13094
+ lastProp = lastProps[propKey$204];
13076
13095
  if (
13077
- nextProps.hasOwnProperty(propKey$203) &&
13096
+ nextProps.hasOwnProperty(propKey$204) &&
13078
13097
  (null != propKey || null != lastProp)
13079
13098
  )
13080
- switch (propKey$203) {
13099
+ switch (propKey$204) {
13081
13100
  case "type":
13082
13101
  type = propKey;
13083
13102
  break;
@@ -13106,7 +13125,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13106
13125
  setProp(
13107
13126
  domElement,
13108
13127
  tag,
13109
- propKey$203,
13128
+ propKey$204,
13110
13129
  propKey,
13111
13130
  nextProps,
13112
13131
  lastProp
@@ -13125,7 +13144,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13125
13144
  );
13126
13145
  return;
13127
13146
  case "select":
13128
- propKey = value = defaultValue = propKey$203 = null;
13147
+ propKey = value = defaultValue = propKey$204 = null;
13129
13148
  for (type in lastProps)
13130
13149
  if (
13131
13150
  ((lastDefaultValue = lastProps[type]),
@@ -13156,7 +13175,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13156
13175
  )
13157
13176
  switch (name) {
13158
13177
  case "value":
13159
- propKey$203 = type;
13178
+ propKey$204 = type;
13160
13179
  break;
13161
13180
  case "defaultValue":
13162
13181
  defaultValue = type;
@@ -13177,15 +13196,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13177
13196
  tag = defaultValue;
13178
13197
  lastProps = value;
13179
13198
  nextProps = propKey;
13180
- null != propKey$203
13181
- ? updateOptions(domElement, !!lastProps, propKey$203, !1)
13199
+ null != propKey$204
13200
+ ? updateOptions(domElement, !!lastProps, propKey$204, !1)
13182
13201
  : !!nextProps !== !!lastProps &&
13183
13202
  (null != tag
13184
13203
  ? updateOptions(domElement, !!lastProps, tag, !0)
13185
13204
  : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
13186
13205
  return;
13187
13206
  case "textarea":
13188
- propKey = propKey$203 = null;
13207
+ propKey = propKey$204 = null;
13189
13208
  for (defaultValue in lastProps)
13190
13209
  if (
13191
13210
  ((name = lastProps[defaultValue]),
@@ -13209,7 +13228,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13209
13228
  )
13210
13229
  switch (value) {
13211
13230
  case "value":
13212
- propKey$203 = name;
13231
+ propKey$204 = name;
13213
13232
  break;
13214
13233
  case "defaultValue":
13215
13234
  propKey = name;
@@ -13223,17 +13242,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13223
13242
  name !== type &&
13224
13243
  setProp(domElement, tag, value, name, nextProps, type);
13225
13244
  }
13226
- updateTextarea(domElement, propKey$203, propKey);
13245
+ updateTextarea(domElement, propKey$204, propKey);
13227
13246
  return;
13228
13247
  case "option":
13229
- for (var propKey$219 in lastProps)
13248
+ for (var propKey$220 in lastProps)
13230
13249
  if (
13231
- ((propKey$203 = lastProps[propKey$219]),
13232
- lastProps.hasOwnProperty(propKey$219) &&
13233
- null != propKey$203 &&
13234
- !nextProps.hasOwnProperty(propKey$219))
13250
+ ((propKey$204 = lastProps[propKey$220]),
13251
+ lastProps.hasOwnProperty(propKey$220) &&
13252
+ null != propKey$204 &&
13253
+ !nextProps.hasOwnProperty(propKey$220))
13235
13254
  )
13236
- switch (propKey$219) {
13255
+ switch (propKey$220) {
13237
13256
  case "selected":
13238
13257
  domElement.selected = !1;
13239
13258
  break;
@@ -13241,33 +13260,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13241
13260
  setProp(
13242
13261
  domElement,
13243
13262
  tag,
13244
- propKey$219,
13263
+ propKey$220,
13245
13264
  null,
13246
13265
  nextProps,
13247
- propKey$203
13266
+ propKey$204
13248
13267
  );
13249
13268
  }
13250
13269
  for (lastDefaultValue in nextProps)
13251
13270
  if (
13252
- ((propKey$203 = nextProps[lastDefaultValue]),
13271
+ ((propKey$204 = nextProps[lastDefaultValue]),
13253
13272
  (propKey = lastProps[lastDefaultValue]),
13254
13273
  nextProps.hasOwnProperty(lastDefaultValue) &&
13255
- propKey$203 !== propKey &&
13256
- (null != propKey$203 || null != propKey))
13274
+ propKey$204 !== propKey &&
13275
+ (null != propKey$204 || null != propKey))
13257
13276
  )
13258
13277
  switch (lastDefaultValue) {
13259
13278
  case "selected":
13260
13279
  domElement.selected =
13261
- propKey$203 &&
13262
- "function" !== typeof propKey$203 &&
13263
- "symbol" !== typeof propKey$203;
13280
+ propKey$204 &&
13281
+ "function" !== typeof propKey$204 &&
13282
+ "symbol" !== typeof propKey$204;
13264
13283
  break;
13265
13284
  default:
13266
13285
  setProp(
13267
13286
  domElement,
13268
13287
  tag,
13269
13288
  lastDefaultValue,
13270
- propKey$203,
13289
+ propKey$204,
13271
13290
  nextProps,
13272
13291
  propKey
13273
13292
  );
@@ -13288,24 +13307,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13288
13307
  case "track":
13289
13308
  case "wbr":
13290
13309
  case "menuitem":
13291
- for (var propKey$224 in lastProps)
13292
- (propKey$203 = lastProps[propKey$224]),
13293
- lastProps.hasOwnProperty(propKey$224) &&
13294
- null != propKey$203 &&
13295
- !nextProps.hasOwnProperty(propKey$224) &&
13296
- setProp(domElement, tag, propKey$224, null, nextProps, propKey$203);
13310
+ for (var propKey$225 in lastProps)
13311
+ (propKey$204 = lastProps[propKey$225]),
13312
+ lastProps.hasOwnProperty(propKey$225) &&
13313
+ null != propKey$204 &&
13314
+ !nextProps.hasOwnProperty(propKey$225) &&
13315
+ setProp(domElement, tag, propKey$225, null, nextProps, propKey$204);
13297
13316
  for (checked in nextProps)
13298
13317
  if (
13299
- ((propKey$203 = nextProps[checked]),
13318
+ ((propKey$204 = nextProps[checked]),
13300
13319
  (propKey = lastProps[checked]),
13301
13320
  nextProps.hasOwnProperty(checked) &&
13302
- propKey$203 !== propKey &&
13303
- (null != propKey$203 || null != propKey))
13321
+ propKey$204 !== propKey &&
13322
+ (null != propKey$204 || null != propKey))
13304
13323
  )
13305
13324
  switch (checked) {
13306
13325
  case "children":
13307
13326
  case "dangerouslySetInnerHTML":
13308
- if (null != propKey$203)
13327
+ if (null != propKey$204)
13309
13328
  throw Error(formatProdErrorMessage(137, tag));
13310
13329
  break;
13311
13330
  default:
@@ -13313,7 +13332,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13313
13332
  domElement,
13314
13333
  tag,
13315
13334
  checked,
13316
- propKey$203,
13335
+ propKey$204,
13317
13336
  nextProps,
13318
13337
  propKey
13319
13338
  );
@@ -13321,49 +13340,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13321
13340
  return;
13322
13341
  default:
13323
13342
  if (isCustomElement(tag)) {
13324
- for (var propKey$229 in lastProps)
13325
- (propKey$203 = lastProps[propKey$229]),
13326
- lastProps.hasOwnProperty(propKey$229) &&
13327
- void 0 !== propKey$203 &&
13328
- !nextProps.hasOwnProperty(propKey$229) &&
13343
+ for (var propKey$230 in lastProps)
13344
+ (propKey$204 = lastProps[propKey$230]),
13345
+ lastProps.hasOwnProperty(propKey$230) &&
13346
+ void 0 !== propKey$204 &&
13347
+ !nextProps.hasOwnProperty(propKey$230) &&
13329
13348
  setPropOnCustomElement(
13330
13349
  domElement,
13331
13350
  tag,
13332
- propKey$229,
13351
+ propKey$230,
13333
13352
  void 0,
13334
13353
  nextProps,
13335
- propKey$203
13354
+ propKey$204
13336
13355
  );
13337
13356
  for (defaultChecked in nextProps)
13338
- (propKey$203 = nextProps[defaultChecked]),
13357
+ (propKey$204 = nextProps[defaultChecked]),
13339
13358
  (propKey = lastProps[defaultChecked]),
13340
13359
  !nextProps.hasOwnProperty(defaultChecked) ||
13341
- propKey$203 === propKey ||
13342
- (void 0 === propKey$203 && void 0 === propKey) ||
13360
+ propKey$204 === propKey ||
13361
+ (void 0 === propKey$204 && void 0 === propKey) ||
13343
13362
  setPropOnCustomElement(
13344
13363
  domElement,
13345
13364
  tag,
13346
13365
  defaultChecked,
13347
- propKey$203,
13366
+ propKey$204,
13348
13367
  nextProps,
13349
13368
  propKey
13350
13369
  );
13351
13370
  return;
13352
13371
  }
13353
13372
  }
13354
- for (var propKey$234 in lastProps)
13355
- (propKey$203 = lastProps[propKey$234]),
13356
- lastProps.hasOwnProperty(propKey$234) &&
13357
- null != propKey$203 &&
13358
- !nextProps.hasOwnProperty(propKey$234) &&
13359
- setProp(domElement, tag, propKey$234, null, nextProps, propKey$203);
13373
+ for (var propKey$235 in lastProps)
13374
+ (propKey$204 = lastProps[propKey$235]),
13375
+ lastProps.hasOwnProperty(propKey$235) &&
13376
+ null != propKey$204 &&
13377
+ !nextProps.hasOwnProperty(propKey$235) &&
13378
+ setProp(domElement, tag, propKey$235, null, nextProps, propKey$204);
13360
13379
  for (lastProp in nextProps)
13361
- (propKey$203 = nextProps[lastProp]),
13380
+ (propKey$204 = nextProps[lastProp]),
13362
13381
  (propKey = lastProps[lastProp]),
13363
13382
  !nextProps.hasOwnProperty(lastProp) ||
13364
- propKey$203 === propKey ||
13365
- (null == propKey$203 && null == propKey) ||
13366
- setProp(domElement, tag, lastProp, propKey$203, nextProps, propKey);
13383
+ propKey$204 === propKey ||
13384
+ (null == propKey$204 && null == propKey) ||
13385
+ setProp(domElement, tag, lastProp, propKey$204, nextProps, propKey);
13367
13386
  }
13368
13387
  var eventsEnabled = null,
13369
13388
  selectionInformation = null;
@@ -13509,7 +13528,9 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
13509
13528
  else if (
13510
13529
  name !== anyProps.rel ||
13511
13530
  instance.getAttribute("href") !==
13512
- (null == anyProps.href ? null : anyProps.href) ||
13531
+ (null == anyProps.href || "" === anyProps.href
13532
+ ? null
13533
+ : anyProps.href) ||
13513
13534
  instance.getAttribute("crossorigin") !==
13514
13535
  (null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||
13515
13536
  instance.getAttribute("title") !==
@@ -13927,26 +13948,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
13927
13948
  "string" === typeof pendingProps.precedence
13928
13949
  ) {
13929
13950
  type = getStyleKey(pendingProps.href);
13930
- var styles$242 = getResourcesFromRoot(
13951
+ var styles$243 = getResourcesFromRoot(
13931
13952
  JSCompiler_inline_result
13932
13953
  ).hoistableStyles,
13933
- resource$243 = styles$242.get(type);
13934
- resource$243 ||
13954
+ resource$244 = styles$243.get(type);
13955
+ resource$244 ||
13935
13956
  ((JSCompiler_inline_result =
13936
13957
  JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
13937
- (resource$243 = {
13958
+ (resource$244 = {
13938
13959
  type: "stylesheet",
13939
13960
  instance: null,
13940
13961
  count: 0,
13941
13962
  state: { loading: 0, preload: null }
13942
13963
  }),
13943
- styles$242.set(type, resource$243),
13944
- (styles$242 = JSCompiler_inline_result.querySelector(
13964
+ styles$243.set(type, resource$244),
13965
+ (styles$243 = JSCompiler_inline_result.querySelector(
13945
13966
  getStylesheetSelectorFromKey(type)
13946
13967
  )) &&
13947
- !styles$242._p &&
13948
- ((resource$243.instance = styles$242),
13949
- (resource$243.state.loading = 5)),
13968
+ !styles$243._p &&
13969
+ ((resource$244.instance = styles$243),
13970
+ (resource$244.state.loading = 5)),
13950
13971
  preloadPropsMap.has(type) ||
13951
13972
  ((pendingProps = {
13952
13973
  rel: "preload",
@@ -13959,16 +13980,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
13959
13980
  referrerPolicy: pendingProps.referrerPolicy
13960
13981
  }),
13961
13982
  preloadPropsMap.set(type, pendingProps),
13962
- styles$242 ||
13983
+ styles$243 ||
13963
13984
  preloadStylesheet(
13964
13985
  JSCompiler_inline_result,
13965
13986
  type,
13966
13987
  pendingProps,
13967
- resource$243.state
13988
+ resource$244.state
13968
13989
  )));
13969
13990
  if (currentProps && null === currentResource)
13970
13991
  throw Error(formatProdErrorMessage(528, ""));
13971
- return resource$243;
13992
+ return resource$244;
13972
13993
  }
13973
13994
  if (currentProps && null !== currentResource)
13974
13995
  throw Error(formatProdErrorMessage(529, ""));
@@ -14065,37 +14086,37 @@ function acquireResource(hoistableRoot, resource, props) {
14065
14086
  return (resource.instance = instance);
14066
14087
  case "stylesheet":
14067
14088
  styleProps = getStyleKey(props.href);
14068
- var instance$248 = hoistableRoot.querySelector(
14089
+ var instance$249 = hoistableRoot.querySelector(
14069
14090
  getStylesheetSelectorFromKey(styleProps)
14070
14091
  );
14071
- if (instance$248)
14092
+ if (instance$249)
14072
14093
  return (
14073
14094
  (resource.state.loading |= 4),
14074
- (resource.instance = instance$248),
14075
- markNodeAsHoistable(instance$248),
14076
- instance$248
14095
+ (resource.instance = instance$249),
14096
+ markNodeAsHoistable(instance$249),
14097
+ instance$249
14077
14098
  );
14078
14099
  instance = stylesheetPropsFromRawProps(props);
14079
14100
  (styleProps = preloadPropsMap.get(styleProps)) &&
14080
14101
  adoptPreloadPropsForStylesheet(instance, styleProps);
14081
- instance$248 = (
14102
+ instance$249 = (
14082
14103
  hoistableRoot.ownerDocument || hoistableRoot
14083
14104
  ).createElement("link");
14084
- markNodeAsHoistable(instance$248);
14085
- var linkInstance = instance$248;
14105
+ markNodeAsHoistable(instance$249);
14106
+ var linkInstance = instance$249;
14086
14107
  linkInstance._p = new Promise(function (resolve, reject) {
14087
14108
  linkInstance.onload = resolve;
14088
14109
  linkInstance.onerror = reject;
14089
14110
  });
14090
- setInitialProperties(instance$248, "link", instance);
14111
+ setInitialProperties(instance$249, "link", instance);
14091
14112
  resource.state.loading |= 4;
14092
- insertStylesheet(instance$248, props.precedence, hoistableRoot);
14093
- return (resource.instance = instance$248);
14113
+ insertStylesheet(instance$249, props.precedence, hoistableRoot);
14114
+ return (resource.instance = instance$249);
14094
14115
  case "script":
14095
- instance$248 = getScriptKey(props.src);
14116
+ instance$249 = getScriptKey(props.src);
14096
14117
  if (
14097
14118
  (styleProps = hoistableRoot.querySelector(
14098
- getScriptSelectorFromKey(instance$248)
14119
+ getScriptSelectorFromKey(instance$249)
14099
14120
  ))
14100
14121
  )
14101
14122
  return (
@@ -14104,7 +14125,7 @@ function acquireResource(hoistableRoot, resource, props) {
14104
14125
  styleProps
14105
14126
  );
14106
14127
  instance = props;
14107
- if ((styleProps = preloadPropsMap.get(instance$248)))
14128
+ if ((styleProps = preloadPropsMap.get(instance$249)))
14108
14129
  (instance = assign({}, props)),
14109
14130
  adoptPreloadPropsForScript(instance, styleProps);
14110
14131
  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -14408,11 +14429,7 @@ function FiberRootNode(
14408
14429
  ) {
14409
14430
  this.tag = 1;
14410
14431
  this.containerInfo = containerInfo;
14411
- this.finishedWork =
14412
- this.pingCache =
14413
- this.current =
14414
- this.pendingChildren =
14415
- null;
14432
+ this.pingCache = this.current = this.pendingChildren = null;
14416
14433
  this.timeoutHandle = -1;
14417
14434
  this.callbackNode =
14418
14435
  this.next =
@@ -14425,7 +14442,6 @@ function FiberRootNode(
14425
14442
  this.entangledLanes =
14426
14443
  this.shellSuspendCounter =
14427
14444
  this.errorRecoveryDisabledLanes =
14428
- this.finishedLanes =
14429
14445
  this.expiredLanes =
14430
14446
  this.warmLanes =
14431
14447
  this.pingedLanes =
@@ -15129,16 +15145,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15129
15145
  0 === i && attemptExplicitHydrationTarget(target);
15130
15146
  }
15131
15147
  };
15132
- var isomorphicReactPackageVersion$jscomp$inline_1679 = React.version;
15148
+ var isomorphicReactPackageVersion$jscomp$inline_1706 = React.version;
15133
15149
  if (
15134
- "19.1.0-canary-62208bee-20250102" !==
15135
- isomorphicReactPackageVersion$jscomp$inline_1679
15150
+ "19.1.0-canary-3ce77d55-20250106" !==
15151
+ isomorphicReactPackageVersion$jscomp$inline_1706
15136
15152
  )
15137
15153
  throw Error(
15138
15154
  formatProdErrorMessage(
15139
15155
  527,
15140
- isomorphicReactPackageVersion$jscomp$inline_1679,
15141
- "19.1.0-canary-62208bee-20250102"
15156
+ isomorphicReactPackageVersion$jscomp$inline_1706,
15157
+ "19.1.0-canary-3ce77d55-20250106"
15142
15158
  )
15143
15159
  );
15144
15160
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15158,24 +15174,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15158
15174
  null === componentOrElement ? null : componentOrElement.stateNode;
15159
15175
  return componentOrElement;
15160
15176
  };
15161
- var internals$jscomp$inline_2158 = {
15177
+ var internals$jscomp$inline_2175 = {
15162
15178
  bundleType: 0,
15163
- version: "19.1.0-canary-62208bee-20250102",
15179
+ version: "19.1.0-canary-3ce77d55-20250106",
15164
15180
  rendererPackageName: "react-dom",
15165
15181
  currentDispatcherRef: ReactSharedInternals,
15166
- reconcilerVersion: "19.1.0-canary-62208bee-20250102"
15182
+ reconcilerVersion: "19.1.0-canary-3ce77d55-20250106"
15167
15183
  };
15168
15184
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15169
- var hook$jscomp$inline_2159 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15185
+ var hook$jscomp$inline_2176 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15170
15186
  if (
15171
- !hook$jscomp$inline_2159.isDisabled &&
15172
- hook$jscomp$inline_2159.supportsFiber
15187
+ !hook$jscomp$inline_2176.isDisabled &&
15188
+ hook$jscomp$inline_2176.supportsFiber
15173
15189
  )
15174
15190
  try {
15175
- (rendererID = hook$jscomp$inline_2159.inject(
15176
- internals$jscomp$inline_2158
15191
+ (rendererID = hook$jscomp$inline_2176.inject(
15192
+ internals$jscomp$inline_2175
15177
15193
  )),
15178
- (injectedHook = hook$jscomp$inline_2159);
15194
+ (injectedHook = hook$jscomp$inline_2176);
15179
15195
  } catch (err) {}
15180
15196
  }
15181
15197
  exports.createRoot = function (container, options) {
@@ -15269,4 +15285,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15269
15285
  listenToAllSupportedEvents(container);
15270
15286
  return new ReactDOMHydrationRoot(initialChildren);
15271
15287
  };
15272
- exports.version = "19.1.0-canary-62208bee-20250102";
15288
+ exports.version = "19.1.0-canary-3ce77d55-20250106";