From be590ddd8f0069d3fca7f2c6487d4109e4b54bd2 Mon Sep 17 00:00:00 2001 From: acdlite Date: Tue, 11 Apr 2023 04:24:45 +0000 Subject: [PATCH] Remove JND delay for non-transition updates (#26597) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates that are marked as part of a transition are allowed to block a render from committing. Generally, other updates cannot — however, there's one exception that's leftover from a previous iteration of our Suspense architecture. If an update is not the result of a known urgent event type — known as "Default" updates — then we allow it to suspend briefly, as long as the delay is short enough that the user won't notice. We refer to this delay as a "Just Noticable Difference" (JND) delay. To illustrate, if the user has already waited 400ms for an update to be reflected on the screen, the theory is that they won't notice if you wait an additional 100ms. So React can suspend for a bit longer in case more data comes in. The longer the user has already waited, the longer the JND. While we still believe this theory is sound from a UX perspective, we no longer think the implementation complexity is worth it. The main thing that's changed is how we handle Default updates. We used to render Default updates concurrently (i.e. they were time sliced, and were scheduled with postTask), but now they are blocking. Soon, they will also be scheduled with rAF, too, which means by the end of the next rAF, they will have either finished rendering or the main thread will be blocked until they do. There are various motivations for this but part of the rationale is that anything that can be made non-blocking should be marked as a Transition, anyway, so it's not worth adding implementation complexity to Default. This commit removes the JND delay for Default updates. They will now commit immediately once the render phase is complete, even if a component suspends. DiffTrain build for [0b931f90e8964183f08ac328e7350d847abb08f9](https://github.com/facebook/react/commit/0b931f90e8964183f08ac328e7350d847abb08f9) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 77 +- compiled/facebook-www/ReactART-dev.modern.js | 77 +- .../facebook-www/ReactART-prod.classic.js | 328 +++---- compiled/facebook-www/ReactART-prod.modern.js | 328 +++---- compiled/facebook-www/ReactDOM-dev.classic.js | 77 +- compiled/facebook-www/ReactDOM-dev.modern.js | 77 +- .../facebook-www/ReactDOM-prod.classic.js | 852 ++++++++-------- compiled/facebook-www/ReactDOM-prod.modern.js | 842 ++++++++-------- .../ReactDOM-profiling.classic.js | 908 +++++++++--------- .../facebook-www/ReactDOM-profiling.modern.js | 898 +++++++++-------- .../ReactDOMTesting-dev.classic.js | 77 +- .../ReactDOMTesting-dev.modern.js | 77 +- .../ReactDOMTesting-prod.classic.js | 836 ++++++++-------- .../ReactDOMTesting-prod.modern.js | 842 ++++++++-------- .../ReactTestRenderer-dev.classic.js | 77 +- .../ReactTestRenderer-dev.modern.js | 77 +- 18 files changed, 2767 insertions(+), 3687 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 33a28b915b..3133e22f42 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -ac43bf6870a15566507477a4504f22160835c8d3 +0b931f90e8964183f08ac328e7350d847abb08f9 diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 626f6e84ef..525b8f9f4b 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-82c50b6a"; +var ReactVersion = "18.3.0-www-modern-d66c88c7"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index d9e476a245..9312800673 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-26b068f9"; +var ReactVersion = "18.3.0-www-classic-ab122236"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -1924,24 +1924,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -23498,7 +23480,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -24319,37 +24300,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -26523,32 +26473,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 5ebe69b840..d81fc41a3a 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-ae1f3bca"; +var ReactVersion = "18.3.0-www-modern-22d10e56"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -1921,24 +1921,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -23163,7 +23145,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -23984,37 +23965,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -26183,32 +26133,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index f18111ccc9..88640391e7 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -575,19 +575,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - eventTimes[index$5] = -1; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = root[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + eventTimes[index$4] = -1; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = root[index$4]; if (null !== hiddenUpdatesForLane) for ( - root[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + root[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -596,21 +596,21 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - index$8 = root.transitionLanes[index$8]; - null !== index$8 && - index$8.forEach(function (transition) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + index$7 = root.transitionLanes[index$7]; + null !== index$7 && + index$7.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -620,10 +620,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + null !== root.transitionLanes[index$8] && + (root.transitionLanes[index$8] = null); lanes &= ~lane; } } @@ -845,16 +845,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$10) { - control = x$10; + } catch (x$9) { + control = x$9; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$11) { - control = x$11; + } catch (x$10) { + control = x$10; } fn(); } @@ -2421,10 +2421,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$28 = thenableIndexCounter; + var index$27 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$28); + usable = trackUsedThenable(thenableState, usable, index$27); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -5266,14 +5266,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$73 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$73 = lastTailNode), + for (var lastTailNode$72 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$72 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$73 + null === lastTailNode$72 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$73.sibling = null); + : (lastTailNode$72.sibling = null); } } function bubbleProperties(completedWork) { @@ -5283,19 +5283,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$74 = completedWork.child; null !== child$74; ) - (newChildLanes |= child$74.lanes | child$74.childLanes), - (subtreeFlags |= child$74.subtreeFlags & 31457280), - (subtreeFlags |= child$74.flags & 31457280), - (child$74.return = completedWork), - (child$74 = child$74.sibling); + for (var child$73 = completedWork.child; null !== child$73; ) + (newChildLanes |= child$73.lanes | child$73.childLanes), + (subtreeFlags |= child$73.subtreeFlags & 31457280), + (subtreeFlags |= child$73.flags & 31457280), + (child$73.return = completedWork), + (child$73 = child$73.sibling); else - for (child$74 = completedWork.child; null !== child$74; ) - (newChildLanes |= child$74.lanes | child$74.childLanes), - (subtreeFlags |= child$74.subtreeFlags), - (subtreeFlags |= child$74.flags), - (child$74.return = completedWork), - (child$74 = child$74.sibling); + for (child$73 = completedWork.child; null !== child$73; ) + (newChildLanes |= child$73.lanes | child$73.childLanes), + (subtreeFlags |= child$73.subtreeFlags), + (subtreeFlags |= child$73.flags), + (child$73.return = completedWork), + (child$73 = child$73.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -5477,11 +5477,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$78 = null; + var cache$77 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$78 = newProps.memoizedState.cachePool.pool); - cache$78 !== instance && (newProps.flags |= 2048); + (cache$77 = newProps.memoizedState.cachePool.pool); + cache$77 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -5511,8 +5511,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$78 = instance.rendering; - if (null === cache$78) + cache$77 = instance.rendering; + if (null === cache$77) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -5520,11 +5520,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$78 = findFirstSuspended(current); - if (null !== cache$78) { + cache$77 = findFirstSuspended(current); + if (null !== cache$77) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$78.updateQueue; + current = cache$77.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -5549,7 +5549,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$78)), null !== current)) { + if (((current = findFirstSuspended(cache$77)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -5559,7 +5559,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$78.alternate) + !cache$77.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -5571,13 +5571,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 8388608)); instance.isBackwards - ? ((cache$78.sibling = workInProgress.child), - (workInProgress.child = cache$78)) + ? ((cache$77.sibling = workInProgress.child), + (workInProgress.child = cache$77)) : ((current = instance.last), null !== current - ? (current.sibling = cache$78) - : (workInProgress.child = cache$78), - (instance.last = cache$78)); + ? (current.sibling = cache$77) + : (workInProgress.child = cache$77), + (instance.last = cache$77)); } if (null !== instance.tail) return ( @@ -5837,8 +5837,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$96) { - captureCommitPhaseError(current, nearestMountedAncestor, error$96); + } catch (error$95) { + captureCommitPhaseError(current, nearestMountedAncestor, error$95); } else ref.current = null; } @@ -6040,11 +6040,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$97) { + } catch (error$96) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$97 + error$96 ); } } @@ -6637,8 +6637,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$105) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$105); + } catch (error$104) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$104); } } break; @@ -6674,11 +6674,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null !== updatePayload || diffInCommitPhase) try { flags._applyProps(flags, newProps, current); - } catch (error$108) { + } catch (error$107) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$108 + error$107 ); } } @@ -6715,8 +6715,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$110) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$110); + } catch (error$109) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$109); } flags = finishedWork.updateQueue; null !== flags && @@ -6856,12 +6856,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$100 = JSCompiler_inline_result.stateNode.containerInfo, - before$101 = getHostSibling(finishedWork); + var parent$99 = JSCompiler_inline_result.stateNode.containerInfo, + before$100 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$101, - parent$100 + before$100, + parent$99 ); break; default: @@ -7322,9 +7322,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$119 = finishedWork.stateNode; + var instance$118 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$119._visibility & 4 + ? instance$118._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7337,7 +7337,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$119._visibility |= 4), + : ((instance$118._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7345,7 +7345,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$119._visibility |= 4), + : ((instance$118._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7358,7 +7358,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$119 + instance$118 ); break; case 24: @@ -7801,12 +7801,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$3 = 31 - clz32(lanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(lanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -7863,8 +7863,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { root.callbackNode = suspendedLanes; return currentTime; } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -8000,11 +7999,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; + index$6 = 31 - clz32(lane), + transitions = transitionLanesMap[index$6]; null === transitions && (transitions = new Set()); transitions.add(eventTime); - transitionLanesMap[index$7] = transitions; + transitionLanesMap[index$6] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -8031,28 +8030,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -8060,30 +8059,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$129 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$128 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$129 && - ((lanes = errorRetryLanes$129), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$128 && + ((lanes = errorRetryLanes$128), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$129 + errorRetryLanes$128 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -8092,16 +8091,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -8111,26 +8110,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -8139,48 +8138,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$129 = -1; 0 < exitStatus; ) { - var index$2 = 31 - clz32(exitStatus), - lane = 1 << index$2; - index$2 = errorRetryLanes[index$2]; - index$2 > errorRetryLanes$129 && (errorRetryLanes$129 = index$2); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$129; - exitStatus = now() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -8189,7 +8149,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -8293,9 +8253,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$4 = 31 - clz32(suspendedLanes), - lane = 1 << index$4; - root[index$4] = -1; + var index$3 = 31 - clz32(suspendedLanes), + lane = 1 << index$3; + root[index$3] = -1; suspendedLanes &= ~lane; } } @@ -8423,8 +8383,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$132) { - handleThrow(root, thrownValue$132); + } catch (thrownValue$130) { + handleThrow(root, thrownValue$130); } while (1); resetContextDependencies(); @@ -8528,8 +8488,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$134) { - handleThrow(root, thrownValue$134); + } catch (thrownValue$132) { + handleThrow(root, thrownValue$132); } while (1); resetContextDependencies(); @@ -8706,10 +8666,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$35 = offscreenQueue.retryQueue; - null === retryQueue$35 + var retryQueue$34 = offscreenQueue.retryQueue; + null === retryQueue$34 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$35.add(wakeable); + : retryQueue$34.add(wakeable); } } break; @@ -10073,19 +10033,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1170 = { + devToolsConfig$jscomp$inline_1164 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-classic-9e45a6d4", + version: "18.3.0-www-classic-390b1cd2", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1344 = { - bundleType: devToolsConfig$jscomp$inline_1170.bundleType, - version: devToolsConfig$jscomp$inline_1170.version, - rendererPackageName: devToolsConfig$jscomp$inline_1170.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1170.rendererConfig, +var internals$jscomp$inline_1329 = { + bundleType: devToolsConfig$jscomp$inline_1164.bundleType, + version: devToolsConfig$jscomp$inline_1164.version, + rendererPackageName: devToolsConfig$jscomp$inline_1164.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1164.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -10102,26 +10062,26 @@ var internals$jscomp$inline_1344 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1170.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1164.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-9e45a6d4" + reconcilerVersion: "18.3.0-www-classic-390b1cd2" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1345 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1330 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1345.isDisabled && - hook$jscomp$inline_1345.supportsFiber + !hook$jscomp$inline_1330.isDisabled && + hook$jscomp$inline_1330.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1345.inject( - internals$jscomp$inline_1344 + (rendererID = hook$jscomp$inline_1330.inject( + internals$jscomp$inline_1329 )), - (injectedHook = hook$jscomp$inline_1345); + (injectedHook = hook$jscomp$inline_1330); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 09621cdea5..9e8ef289a6 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -459,19 +459,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - eventTimes[index$5] = -1; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = root[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + eventTimes[index$4] = -1; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = root[index$4]; if (null !== hiddenUpdatesForLane) for ( - root[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + root[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -480,21 +480,21 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - index$8 = root.transitionLanes[index$8]; - null !== index$8 && - index$8.forEach(function (transition) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + index$7 = root.transitionLanes[index$7]; + null !== index$7 && + index$7.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -504,10 +504,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + null !== root.transitionLanes[index$8] && + (root.transitionLanes[index$8] = null); lanes &= ~lane; } } @@ -729,16 +729,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$10) { - control = x$10; + } catch (x$9) { + control = x$9; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$11) { - control = x$11; + } catch (x$10) { + control = x$10; } fn(); } @@ -2227,10 +2227,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$28 = thenableIndexCounter; + var index$27 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$28); + usable = trackUsedThenable(thenableState, usable, index$27); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -5021,14 +5021,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$73 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$73 = lastTailNode), + for (var lastTailNode$72 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$72 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$73 + null === lastTailNode$72 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$73.sibling = null); + : (lastTailNode$72.sibling = null); } } function bubbleProperties(completedWork) { @@ -5038,19 +5038,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$74 = completedWork.child; null !== child$74; ) - (newChildLanes |= child$74.lanes | child$74.childLanes), - (subtreeFlags |= child$74.subtreeFlags & 31457280), - (subtreeFlags |= child$74.flags & 31457280), - (child$74.return = completedWork), - (child$74 = child$74.sibling); + for (var child$73 = completedWork.child; null !== child$73; ) + (newChildLanes |= child$73.lanes | child$73.childLanes), + (subtreeFlags |= child$73.subtreeFlags & 31457280), + (subtreeFlags |= child$73.flags & 31457280), + (child$73.return = completedWork), + (child$73 = child$73.sibling); else - for (child$74 = completedWork.child; null !== child$74; ) - (newChildLanes |= child$74.lanes | child$74.childLanes), - (subtreeFlags |= child$74.subtreeFlags), - (subtreeFlags |= child$74.flags), - (child$74.return = completedWork), - (child$74 = child$74.sibling); + for (child$73 = completedWork.child; null !== child$73; ) + (newChildLanes |= child$73.lanes | child$73.childLanes), + (subtreeFlags |= child$73.subtreeFlags), + (subtreeFlags |= child$73.flags), + (child$73.return = completedWork), + (child$73 = child$73.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -5226,11 +5226,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$78 = null; + var cache$77 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$78 = newProps.memoizedState.cachePool.pool); - cache$78 !== instance && (newProps.flags |= 2048); + (cache$77 = newProps.memoizedState.cachePool.pool); + cache$77 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -5256,8 +5256,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$78 = instance.rendering; - if (null === cache$78) + cache$77 = instance.rendering; + if (null === cache$77) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -5265,11 +5265,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$78 = findFirstSuspended(current); - if (null !== cache$78) { + cache$77 = findFirstSuspended(current); + if (null !== cache$77) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$78.updateQueue; + current = cache$77.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -5294,7 +5294,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$78)), null !== current)) { + if (((current = findFirstSuspended(cache$77)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -5304,7 +5304,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$78.alternate) + !cache$77.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -5316,13 +5316,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 8388608)); instance.isBackwards - ? ((cache$78.sibling = workInProgress.child), - (workInProgress.child = cache$78)) + ? ((cache$77.sibling = workInProgress.child), + (workInProgress.child = cache$77)) : ((current = instance.last), null !== current - ? (current.sibling = cache$78) - : (workInProgress.child = cache$78), - (instance.last = cache$78)); + ? (current.sibling = cache$77) + : (workInProgress.child = cache$77), + (instance.last = cache$77)); } if (null !== instance.tail) return ( @@ -5573,8 +5573,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$95) { - captureCommitPhaseError(current, nearestMountedAncestor, error$95); + } catch (error$94) { + captureCommitPhaseError(current, nearestMountedAncestor, error$94); } else ref.current = null; } @@ -5776,11 +5776,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$96) { + } catch (error$95) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$96 + error$95 ); } } @@ -6373,8 +6373,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$104) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$104); + } catch (error$103) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$103); } } break; @@ -6410,11 +6410,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null !== updatePayload || diffInCommitPhase) try { flags._applyProps(flags, newProps, current); - } catch (error$107) { + } catch (error$106) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$107 + error$106 ); } } @@ -6451,8 +6451,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$109) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$109); + } catch (error$108) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$108); } flags = finishedWork.updateQueue; null !== flags && @@ -6592,12 +6592,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$99 = JSCompiler_inline_result.stateNode.containerInfo, - before$100 = getHostSibling(finishedWork); + var parent$98 = JSCompiler_inline_result.stateNode.containerInfo, + before$99 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$100, - parent$99 + before$99, + parent$98 ); break; default: @@ -7058,9 +7058,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$118 = finishedWork.stateNode; + var instance$117 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$118._visibility & 4 + ? instance$117._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7073,7 +7073,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$118._visibility |= 4), + : ((instance$117._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7081,7 +7081,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$118._visibility |= 4), + : ((instance$117._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7094,7 +7094,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$118 + instance$117 ); break; case 24: @@ -7537,12 +7537,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$3 = 31 - clz32(lanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(lanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -7599,8 +7599,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { root.callbackNode = suspendedLanes; return currentTime; } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -7736,11 +7735,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; + index$6 = 31 - clz32(lane), + transitions = transitionLanesMap[index$6]; null === transitions && (transitions = new Set()); transitions.add(eventTime); - transitionLanesMap[index$7] = transitions; + transitionLanesMap[index$6] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -7767,28 +7766,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -7796,30 +7795,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$128 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$127 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$128 && - ((lanes = errorRetryLanes$128), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$127 && + ((lanes = errorRetryLanes$127), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$128 + errorRetryLanes$127 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -7828,16 +7827,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -7847,26 +7846,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -7875,48 +7874,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$128 = -1; 0 < exitStatus; ) { - var index$2 = 31 - clz32(exitStatus), - lane = 1 << index$2; - index$2 = errorRetryLanes[index$2]; - index$2 > errorRetryLanes$128 && (errorRetryLanes$128 = index$2); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$128; - exitStatus = now() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -7925,7 +7885,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -8029,9 +7989,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$4 = 31 - clz32(suspendedLanes), - lane = 1 << index$4; - root[index$4] = -1; + var index$3 = 31 - clz32(suspendedLanes), + lane = 1 << index$3; + root[index$3] = -1; suspendedLanes &= ~lane; } } @@ -8159,8 +8119,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$131) { - handleThrow(root, thrownValue$131); + } catch (thrownValue$129) { + handleThrow(root, thrownValue$129); } while (1); resetContextDependencies(); @@ -8264,8 +8224,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$133) { - handleThrow(root, thrownValue$133); + } catch (thrownValue$131) { + handleThrow(root, thrownValue$131); } while (1); resetContextDependencies(); @@ -8438,10 +8398,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$35 = offscreenQueue.retryQueue; - null === retryQueue$35 + var retryQueue$34 = offscreenQueue.retryQueue; + null === retryQueue$34 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$35.add(wakeable); + : retryQueue$34.add(wakeable); } } break; @@ -9738,19 +9698,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1150 = { + devToolsConfig$jscomp$inline_1144 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-modern-910e3a9f", + version: "18.3.0-www-modern-8ad04cf7", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1324 = { - bundleType: devToolsConfig$jscomp$inline_1150.bundleType, - version: devToolsConfig$jscomp$inline_1150.version, - rendererPackageName: devToolsConfig$jscomp$inline_1150.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1150.rendererConfig, +var internals$jscomp$inline_1309 = { + bundleType: devToolsConfig$jscomp$inline_1144.bundleType, + version: devToolsConfig$jscomp$inline_1144.version, + rendererPackageName: devToolsConfig$jscomp$inline_1144.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1144.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9767,26 +9727,26 @@ var internals$jscomp$inline_1324 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1150.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1144.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-910e3a9f" + reconcilerVersion: "18.3.0-www-modern-8ad04cf7" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1325 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1310 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1325.isDisabled && - hook$jscomp$inline_1325.supportsFiber + !hook$jscomp$inline_1310.isDisabled && + hook$jscomp$inline_1310.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1325.inject( - internals$jscomp$inline_1324 + (rendererID = hook$jscomp$inline_1310.inject( + internals$jscomp$inline_1309 )), - (injectedHook = hook$jscomp$inline_1325); + (injectedHook = hook$jscomp$inline_1310); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 3651919fa1..7cf158719e 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -2084,24 +2084,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -29019,7 +29001,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -29855,37 +29836,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -32149,32 +32099,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; @@ -33899,7 +33824,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-f8663d04"; +var ReactVersion = "18.3.0-www-classic-7c0aabad"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index f6816cd73d..333aa594b1 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -1388,24 +1388,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -28860,7 +28842,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -29696,37 +29677,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -31985,32 +31935,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; @@ -33735,7 +33660,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-910e3a9f"; +var ReactVersion = "18.3.0-www-modern-8ad04cf7"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 70c7a065cd..581b8d10a7 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -604,19 +604,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - eventTimes[index$5] = -1; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = root[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + eventTimes[index$4] = -1; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = root[index$4]; if (null !== hiddenUpdatesForLane) for ( - root[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + root[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -625,21 +625,21 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - index$8 = root.transitionLanes[index$8]; - null !== index$8 && - index$8.forEach(function (transition) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + index$7 = root.transitionLanes[index$7]; + null !== index$7 && + index$7.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -649,10 +649,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + null !== root.transitionLanes[index$8] && + (root.transitionLanes[index$8] = null); lanes &= ~lane; } } @@ -728,8 +728,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$10 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$10 && "aria-" !== prefix$10) { + var prefix$9 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$9 && "aria-" !== prefix$9) { node.removeAttribute(name); return; } @@ -811,16 +811,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$11) { - control = x$11; + } catch (x$10) { + control = x$10; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$12) { - control = x$12; + } catch (x$11) { + control = x$11; } fn(); } @@ -1226,15 +1226,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$16 in styles) - (styleName = styles[styleName$16]), - styles.hasOwnProperty(styleName$16) && - prevStyles[styleName$16] !== styleName && - setValueForStyle(node, styleName$16, styleName); + for (var styleName$15 in styles) + (styleName = styles[styleName$15]), + styles.hasOwnProperty(styleName$15) && + prevStyles[styleName$15] !== styleName && + setValueForStyle(node, styleName$15, styleName); } else - for (var styleName$17 in styles) - styles.hasOwnProperty(styleName$17) && - setValueForStyle(node, styleName$17, styles[styleName$17]); + for (var styleName$16 in styles) + styles.hasOwnProperty(styleName$16) && + setValueForStyle(node, styleName$16, styles[styleName$16]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -3194,10 +3194,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$44 = thenableIndexCounter; + var index$43 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$44); + usable = trackUsedThenable(thenableState, usable, index$43); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -3685,16 +3685,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$50 = enqueueUpdate(provider, fiber, lane); - if (null !== root$50) { + var root$49 = enqueueUpdate(provider, fiber, lane); + if (null !== root$49) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$50, provider, lane, eventTime); - entangleTransitions(root$50, provider, lane); + scheduleUpdateOnFiber(root$49, provider, lane, eventTime); + entangleTransitions(root$49, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$50 && + null !== root$49 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -3901,15 +3901,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$46 = workInProgressRoot; - if (null === root$46) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$46, renderLanes$1) || + var root$45 = workInProgressRoot; + if (null === root$45) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$45, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$46 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$46; - mountEffect(subscribeToStore.bind(null, fiber, root$46, subscribe), [ + root$45 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$45; + mountEffect(subscribeToStore.bind(null, fiber, root$45, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -3918,7 +3918,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$46, + root$45, getServerSnapshot, getSnapshot ), @@ -4417,10 +4417,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$61 = workInProgress.stateNode; + root$60 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$61.incompleteTransitions.has(transition)) { + if (!root$60.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4428,11 +4428,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$61.incompleteTransitions.set(transition, markerInstance); + root$60.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$61.incompleteTransitions.forEach(function (markerInstance) { + root$60.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5129,14 +5129,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$68 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$68) + var dehydrated$67 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$67) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$68, + dehydrated$67, JSCompiler_temp, renderLanes ); @@ -5146,7 +5146,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$68 = JSCompiler_temp.sibling; + dehydrated$67 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5155,8 +5155,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$68 - ? (showFallback = createWorkInProgress(dehydrated$68, showFallback)) + null !== dehydrated$67 + ? (showFallback = createWorkInProgress(dehydrated$67, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5175,10 +5175,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$68 = CacheContext._currentValue), + ? ((dehydrated$67 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$68 - ? { parent: dehydrated$68, pool: dehydrated$68 } + JSCompiler_temp.parent !== dehydrated$67 + ? { parent: dehydrated$67, pool: dehydrated$67 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5192,23 +5192,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$68 = showFallback.updateQueue), + (dehydrated$67 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$68 + null === dehydrated$67 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$68 === primaryChildProps + : dehydrated$67 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$68.transitions = didSuspend), - (dehydrated$68.markerInstances = JSCompiler_temp)))); + : ((dehydrated$67.transitions = didSuspend), + (dehydrated$67.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6275,14 +6275,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$99 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$99 = lastTailNode), + for (var lastTailNode$98 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$98 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$99 + null === lastTailNode$98 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$99.sibling = null); + : (lastTailNode$98.sibling = null); } } function bubbleProperties(completedWork) { @@ -6292,19 +6292,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags & 31457280), - (subtreeFlags |= child$100.flags & 31457280), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (var child$99 = completedWork.child; null !== child$99; ) + (newChildLanes |= child$99.lanes | child$99.childLanes), + (subtreeFlags |= child$99.subtreeFlags & 31457280), + (subtreeFlags |= child$99.flags & 31457280), + (child$99.return = completedWork), + (child$99 = child$99.sibling); else - for (child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags), - (subtreeFlags |= child$100.flags), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (child$99 = completedWork.child; null !== child$99; ) + (newChildLanes |= child$99.lanes | child$99.childLanes), + (subtreeFlags |= child$99.subtreeFlags), + (subtreeFlags |= child$99.flags), + (child$99.return = completedWork), + (child$99 = child$99.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7042,8 +7042,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$130) { - captureCommitPhaseError(current, nearestMountedAncestor, error$130); + } catch (error$129) { + captureCommitPhaseError(current, nearestMountedAncestor, error$129); } else ref.current = null; } @@ -7080,7 +7080,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$189) { + } catch (e$187) { JSCompiler_temp = null; break a; } @@ -7346,11 +7346,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$132) { + } catch (error$131) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$132 + error$131 ); } } @@ -8030,8 +8030,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$145) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$145); + } catch (error$144) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$144); } } break; @@ -8213,11 +8213,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$146) { + } catch (error$145) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$146 + error$145 ); } break; @@ -8253,8 +8253,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$147) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$147); + } catch (error$146) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$146); } } if ( @@ -8279,8 +8279,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$150) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$150); + } catch (error$149) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$149); } break; case 6: @@ -8293,8 +8293,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$151) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$151); + } catch (error$150) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$150); } } break; @@ -8308,8 +8308,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$152) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$152); + } catch (error$151) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$151); } break; case 4: @@ -8339,8 +8339,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$154) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$154); + } catch (error$153) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$153); } current = finishedWork.updateQueue; null !== current && @@ -8418,11 +8418,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$135) { + } catch (error$134) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$135 + error$134 ); } } else if ( @@ -8497,21 +8497,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$136 = JSCompiler_inline_result.stateNode; + var parent$135 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$136, ""), + (setTextContent(parent$135, ""), (JSCompiler_inline_result.flags &= -33)); - var before$137 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$137, parent$136); + var before$136 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$136, parent$135); break; case 3: case 4: - var parent$138 = JSCompiler_inline_result.stateNode.containerInfo, - before$139 = getHostSibling(finishedWork); + var parent$137 = JSCompiler_inline_result.stateNode.containerInfo, + before$138 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$139, - parent$138 + before$138, + parent$137 ); break; default: @@ -8981,9 +8981,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$164 = finishedWork.stateNode; + var instance$163 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$164._visibility & 4 + ? instance$163._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8996,7 +8996,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$164._visibility |= 4), + : ((instance$163._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9004,7 +9004,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$164._visibility |= 4), + : ((instance$163._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9017,7 +9017,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$164 + instance$163 ); break; case 24: @@ -9372,13 +9372,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$172 = firstScheduledRoot; null !== root$172; ) { + for (var root$171 = firstScheduledRoot; null !== root$171; ) { if ( - (!onlyLegacy || 0 === root$172.tag) && + (!onlyLegacy || 0 === root$171.tag) && 0 !== (getNextLanes( - root$172, - root$172 === workInProgressRoot$jscomp$0 + root$171, + root$171 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -9386,7 +9386,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$172; + var root = root$171; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -9429,7 +9429,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$172 = root$172.next; + root$171 = root$171.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -9475,12 +9475,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$3 = 31 - clz32(lanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(lanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -9544,8 +9544,7 @@ function scheduleImmediateTask(cb) { : cb(); }); } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -9684,11 +9683,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; + index$6 = 31 - clz32(lane), + transitions = transitionLanesMap[index$6]; null === transitions && (transitions = new Set()); transitions.add(eventTime); - transitionLanesMap[index$7] = transitions; + transitionLanesMap[index$6] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9715,28 +9714,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -9744,30 +9743,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$175 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$174 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$175 && - ((lanes = errorRetryLanes$175), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$174 && + ((lanes = errorRetryLanes$174), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$175 + errorRetryLanes$174 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -9776,16 +9775,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9795,26 +9794,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9823,48 +9822,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$175 = -1; 0 < exitStatus; ) { - var index$2 = 31 - clz32(exitStatus), - lane = 1 << index$2; - index$2 = errorRetryLanes[index$2]; - index$2 > errorRetryLanes$175 && (errorRetryLanes$175 = index$2); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$175; - exitStatus = now() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9873,7 +9833,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9992,9 +9952,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$4 = 31 - clz32(suspendedLanes), - lane = 1 << index$4; - root[index$4] = -1; + var index$3 = 31 - clz32(suspendedLanes), + lane = 1 << index$3; + root[index$3] = -1; suspendedLanes &= ~lane; } } @@ -10164,8 +10124,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$178) { - handleThrow(root, thrownValue$178); + } catch (thrownValue$176) { + handleThrow(root, thrownValue$176); } while (1); resetContextDependencies(); @@ -10271,8 +10231,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$180) { - handleThrow(root, thrownValue$180); + } catch (thrownValue$178) { + handleThrow(root, thrownValue$178); } while (1); resetContextDependencies(); @@ -10439,10 +10399,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$56 = offscreenQueue.retryQueue; - null === retryQueue$56 + var retryQueue$55 = offscreenQueue.retryQueue; + null === retryQueue$55 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$56.add(wakeable); + : retryQueue$55.add(wakeable); } } break; @@ -10639,12 +10599,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$184 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$182 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$184 && + shouldFireAfterActiveInstanceBlur$182 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10723,7 +10683,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$185 = rootWithPendingPassiveEffects, + var root$183 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -10739,7 +10699,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$185, remainingLanes); + releaseRootPooledCache(root$183, remainingLanes); } } return !1; @@ -12042,12 +12002,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$187 = fiber.stateNode; - if (root$187.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$187.pendingLanes); + var root$185 = fiber.stateNode; + if (root$185.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$185.pendingLanes); 0 !== lanes && - (markRootEntangled(root$187, lanes | 2), - ensureRootIsScheduled(root$187), + (markRootEntangled(root$185, lanes | 2), + ensureRootIsScheduled(root$185), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -12619,19 +12579,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$369; + var JSCompiler_inline_result$jscomp$367; if (canUseDOM) { - var isSupported$jscomp$inline_1601 = "oninput" in document; - if (!isSupported$jscomp$inline_1601) { - var element$jscomp$inline_1602 = document.createElement("div"); - element$jscomp$inline_1602.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1601 = - "function" === typeof element$jscomp$inline_1602.oninput; + var isSupported$jscomp$inline_1595 = "oninput" in document; + if (!isSupported$jscomp$inline_1595) { + var element$jscomp$inline_1596 = document.createElement("div"); + element$jscomp$inline_1596.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1595 = + "function" === typeof element$jscomp$inline_1596.oninput; } - JSCompiler_inline_result$jscomp$369 = isSupported$jscomp$inline_1601; - } else JSCompiler_inline_result$jscomp$369 = !1; + JSCompiler_inline_result$jscomp$367 = isSupported$jscomp$inline_1595; + } else JSCompiler_inline_result$jscomp$367 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$369 && + JSCompiler_inline_result$jscomp$367 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -12940,20 +12900,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1642 = 0; - i$jscomp$inline_1642 < simpleEventPluginEvents.length; - i$jscomp$inline_1642++ + var i$jscomp$inline_1636 = 0; + i$jscomp$inline_1636 < simpleEventPluginEvents.length; + i$jscomp$inline_1636++ ) { - var eventName$jscomp$inline_1643 = - simpleEventPluginEvents[i$jscomp$inline_1642], - domEventName$jscomp$inline_1644 = - eventName$jscomp$inline_1643.toLowerCase(), - capitalizedEvent$jscomp$inline_1645 = - eventName$jscomp$inline_1643[0].toUpperCase() + - eventName$jscomp$inline_1643.slice(1); + var eventName$jscomp$inline_1637 = + simpleEventPluginEvents[i$jscomp$inline_1636], + domEventName$jscomp$inline_1638 = + eventName$jscomp$inline_1637.toLowerCase(), + capitalizedEvent$jscomp$inline_1639 = + eventName$jscomp$inline_1637[0].toUpperCase() + + eventName$jscomp$inline_1637.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1644, - "on" + capitalizedEvent$jscomp$inline_1645 + domEventName$jscomp$inline_1638, + "on" + capitalizedEvent$jscomp$inline_1639 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14163,16 +14123,16 @@ function setInitialProperties(domElement, tag, props) { return; case "select": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$199 in props) + for (var propKey$197 in props) if ( - props.hasOwnProperty(propKey$199) && - ((propKey = props[propKey$199]), null != propKey) + props.hasOwnProperty(propKey$197) && + ((propKey = props[propKey$197]), null != propKey) ) - switch (propKey$199) { + switch (propKey$197) { case "value": break; default: - setProp(domElement, tag, propKey$199, propKey, props, null); + setProp(domElement, tag, propKey$197, propKey, props, null); } domElement.multiple = !!props.multiple; tag = props.value; @@ -14183,12 +14143,12 @@ function setInitialProperties(domElement, tag, props) { return; case "textarea": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$201 in props) + for (var propKey$199 in props) if ( - props.hasOwnProperty(propKey$201) && - ((propKey = props[propKey$201]), null != propKey) + props.hasOwnProperty(propKey$199) && + ((propKey = props[propKey$199]), null != propKey) ) - switch (propKey$201) { + switch (propKey$199) { case "value": break; case "children": @@ -14197,18 +14157,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$201, propKey, props); + setProp(domElement, tag, propKey$199, propKey, props); } track(domElement); initTextarea(domElement, props); return; case "option": - for (var propKey$203 in props) + for (var propKey$201 in props) if ( - props.hasOwnProperty(propKey$203) && - ((propKey = props[propKey$203]), null != propKey) + props.hasOwnProperty(propKey$201) && + ((propKey = props[propKey$201]), null != propKey) ) - switch (propKey$203) { + switch (propKey$201) { case "selected": domElement.selected = propKey && @@ -14216,7 +14176,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$203, propKey, props); + setProp(domElement, tag, propKey$201, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -14258,29 +14218,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$205 in props) + for (var propKey$203 in props) if ( - props.hasOwnProperty(propKey$205) && - ((propKey = props[propKey$205]), null != propKey) + props.hasOwnProperty(propKey$203) && + ((propKey = props[propKey$203]), null != propKey) ) - switch (propKey$205) { + switch (propKey$203) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$205, propKey, props, null); + setProp(domElement, tag, propKey$203, propKey, props, null); } return; default: if (isCustomElement(tag)) { - for (var propKey$207 in props) - props.hasOwnProperty(propKey$207) && - ((propKey = props[propKey$207]), + for (var propKey$205 in props) + props.hasOwnProperty(propKey$205) && + ((propKey = props[propKey$205]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$207, + propKey$205, propKey, props, null @@ -14330,15 +14290,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$211 in nextProps) { - lastProp = nextProps[propKey$211]; - var lastProp$212 = lastProps[propKey$211]; + for (var propKey$209 in nextProps) { + lastProp = nextProps[propKey$209]; + var lastProp$210 = lastProps[propKey$209]; if ( - nextProps.hasOwnProperty(propKey$211) && - lastProp !== lastProp$212 && - (null != lastProp || null != lastProp$212) + nextProps.hasOwnProperty(propKey$209) && + lastProp !== lastProp$210 && + (null != lastProp || null != lastProp$210) ) - switch (propKey$211) { + switch (propKey$209) { case "checked": lastProp = null != lastProp ? lastProp : nextProps.defaultChecked; domElement.checked = @@ -14357,43 +14317,43 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$211, + propKey$209, lastProp, nextProps, - lastProp$212 + lastProp$210 ); } } updateInput(domElement, nextProps); return; case "select": - for (var propKey$215 in lastProps) + for (var propKey$213 in lastProps) if ( - ((propKey$211 = lastProps[propKey$215]), - lastProps.hasOwnProperty(propKey$215) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$215)) + ((propKey$209 = lastProps[propKey$213]), + lastProps.hasOwnProperty(propKey$213) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$213)) ) - switch (propKey$215) { + switch (propKey$213) { case "value": break; default: setProp( domElement, tag, - propKey$215, + propKey$213, null, nextProps, - propKey$211 + propKey$209 ); } for (lastProp in nextProps) if ( - ((propKey$211 = nextProps[lastProp]), - (lastProp$212 = lastProps[lastProp]), + ((propKey$209 = nextProps[lastProp]), + (lastProp$210 = lastProps[lastProp]), nextProps.hasOwnProperty(lastProp) && - propKey$211 !== lastProp$212 && - (null != propKey$211 || null != lastProp$212)) + propKey$209 !== lastProp$210 && + (null != propKey$209 || null != lastProp$210)) ) switch (lastProp) { case "value": @@ -14403,22 +14363,22 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, lastProp, - propKey$211, + propKey$209, nextProps, - lastProp$212 + lastProp$210 ); } updateSelect(domElement, lastProps, nextProps); return; case "textarea": - for (var propKey$220 in lastProps) + for (var propKey$218 in lastProps) if ( - ((propKey$211 = lastProps[propKey$220]), - lastProps.hasOwnProperty(propKey$220) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$220)) + ((propKey$209 = lastProps[propKey$218]), + lastProps.hasOwnProperty(propKey$218) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$218)) ) - switch (propKey$220) { + switch (propKey$218) { case "value": break; case "children": @@ -14427,34 +14387,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$220, + propKey$218, null, nextProps, - propKey$211 + propKey$209 ); } - for (lastProp$212 in nextProps) + for (lastProp$210 in nextProps) if ( - ((propKey$211 = nextProps[lastProp$212]), - (lastProp = lastProps[lastProp$212]), - nextProps.hasOwnProperty(lastProp$212) && - propKey$211 !== lastProp && - (null != propKey$211 || null != lastProp)) + ((propKey$209 = nextProps[lastProp$210]), + (lastProp = lastProps[lastProp$210]), + nextProps.hasOwnProperty(lastProp$210) && + propKey$209 !== lastProp && + (null != propKey$209 || null != lastProp)) ) - switch (lastProp$212) { + switch (lastProp$210) { case "value": break; case "children": break; case "dangerouslySetInnerHTML": - if (null != propKey$211) throw Error(formatProdErrorMessage(91)); + if (null != propKey$209) throw Error(formatProdErrorMessage(91)); break; default: setProp( domElement, tag, - lastProp$212, - propKey$211, + lastProp$210, + propKey$209, nextProps, lastProp ); @@ -14462,14 +14422,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { updateTextarea(domElement, nextProps); return; case "option": - for (var propKey$225 in lastProps) + for (var propKey$223 in lastProps) if ( - ((propKey$211 = lastProps[propKey$225]), - lastProps.hasOwnProperty(propKey$225) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$225)) + ((propKey$209 = lastProps[propKey$223]), + lastProps.hasOwnProperty(propKey$223) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$223)) ) - switch (propKey$225) { + switch (propKey$223) { case "selected": domElement.selected = !1; break; @@ -14477,33 +14437,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$225, + propKey$223, null, nextProps, - propKey$211 + propKey$209 ); } - for (var propKey$227 in nextProps) + for (var propKey$225 in nextProps) if ( - ((propKey$211 = nextProps[propKey$227]), - (lastProp = lastProps[propKey$227]), - nextProps.hasOwnProperty(propKey$227) && - propKey$211 !== lastProp && - (null != propKey$211 || null != lastProp)) + ((propKey$209 = nextProps[propKey$225]), + (lastProp = lastProps[propKey$225]), + nextProps.hasOwnProperty(propKey$225) && + propKey$209 !== lastProp && + (null != propKey$209 || null != lastProp)) ) - switch (propKey$227) { + switch (propKey$225) { case "selected": domElement.selected = - propKey$211 && - "function" !== typeof propKey$211 && - "symbol" !== typeof propKey$211; + propKey$209 && + "function" !== typeof propKey$209 && + "symbol" !== typeof propKey$209; break; default: setProp( domElement, tag, - propKey$227, - propKey$211, + propKey$225, + propKey$209, nextProps, lastProp ); @@ -14524,32 +14484,32 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$230 in lastProps) - (propKey$211 = lastProps[propKey$230]), - lastProps.hasOwnProperty(propKey$230) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$230) && - setProp(domElement, tag, propKey$230, null, nextProps, propKey$211); - for (var propKey$232 in nextProps) + for (var propKey$228 in lastProps) + (propKey$209 = lastProps[propKey$228]), + lastProps.hasOwnProperty(propKey$228) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$228) && + setProp(domElement, tag, propKey$228, null, nextProps, propKey$209); + for (var propKey$230 in nextProps) if ( - ((propKey$211 = nextProps[propKey$232]), - (lastProp = lastProps[propKey$232]), - nextProps.hasOwnProperty(propKey$232) && - propKey$211 !== lastProp && - (null != propKey$211 || null != lastProp)) + ((propKey$209 = nextProps[propKey$230]), + (lastProp = lastProps[propKey$230]), + nextProps.hasOwnProperty(propKey$230) && + propKey$209 !== lastProp && + (null != propKey$209 || null != lastProp)) ) - switch (propKey$232) { + switch (propKey$230) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$211) + if (null != propKey$209) throw Error(formatProdErrorMessage(137, tag)); break; default: setProp( domElement, tag, - propKey$232, - propKey$211, + propKey$230, + propKey$209, nextProps, lastProp ); @@ -14557,49 +14517,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$235 in lastProps) - (propKey$211 = lastProps[propKey$235]), - lastProps.hasOwnProperty(propKey$235) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$235) && + for (var propKey$233 in lastProps) + (propKey$209 = lastProps[propKey$233]), + lastProps.hasOwnProperty(propKey$233) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$233) && + setPropOnCustomElement( + domElement, + tag, + propKey$233, + null, + nextProps, + propKey$209 + ); + for (var propKey$235 in nextProps) + (propKey$209 = nextProps[propKey$235]), + (lastProp = lastProps[propKey$235]), + !nextProps.hasOwnProperty(propKey$235) || + propKey$209 === lastProp || + (null == propKey$209 && null == lastProp) || setPropOnCustomElement( domElement, tag, propKey$235, - null, - nextProps, - propKey$211 - ); - for (var propKey$237 in nextProps) - (propKey$211 = nextProps[propKey$237]), - (lastProp = lastProps[propKey$237]), - !nextProps.hasOwnProperty(propKey$237) || - propKey$211 === lastProp || - (null == propKey$211 && null == lastProp) || - setPropOnCustomElement( - domElement, - tag, - propKey$237, - propKey$211, + propKey$209, nextProps, lastProp ); return; } } - for (var propKey$240 in lastProps) - (propKey$211 = lastProps[propKey$240]), - lastProps.hasOwnProperty(propKey$240) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$240) && - setProp(domElement, tag, propKey$240, null, nextProps, propKey$211); - for (var propKey$242 in nextProps) - (propKey$211 = nextProps[propKey$242]), - (lastProp = lastProps[propKey$242]), - !nextProps.hasOwnProperty(propKey$242) || - propKey$211 === lastProp || - (null == propKey$211 && null == lastProp) || - setProp(domElement, tag, propKey$242, propKey$211, nextProps, lastProp); + for (var propKey$238 in lastProps) + (propKey$209 = lastProps[propKey$238]), + lastProps.hasOwnProperty(propKey$238) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$238) && + setProp(domElement, tag, propKey$238, null, nextProps, propKey$209); + for (var propKey$240 in nextProps) + (propKey$209 = nextProps[propKey$240]), + (lastProp = lastProps[propKey$240]), + !nextProps.hasOwnProperty(propKey$240) || + propKey$209 === lastProp || + (null == propKey$209 && null == lastProp) || + setProp(domElement, tag, propKey$240, propKey$209, nextProps, lastProp); } function updatePropertiesWithDiff( domElement, @@ -14649,12 +14609,12 @@ function updatePropertiesWithDiff( case "select": for (propKey = 0; propKey < updatePayload.length; propKey += 2) { propValue = updatePayload[propKey]; - var propValue$247 = updatePayload[propKey + 1]; + var propValue$245 = updatePayload[propKey + 1]; switch (propValue) { case "value": break; default: - setProp(domElement, tag, propValue, propValue$247, nextProps, null); + setProp(domElement, tag, propValue, propValue$245, nextProps, null); } } updateSelect(domElement, lastProps, nextProps); @@ -15077,14 +15037,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$264 = getStyleKey(href), + var key$262 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$264); + resource = as.get(key$262); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$264) + getStylesheetSelectorFromKey(key$262) )) ) state.loading = 1; @@ -15095,7 +15055,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$264)) && + (options = preloadPropsMap.get(key$262)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15121,15 +15081,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$264, resource); + as.set(key$262, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$264 = getScriptKey(href)), - (precedence = as.get(key$264)), + (key$262 = getScriptKey(href)), + (precedence = as.get(key$262)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$264 + "script[async]" + key$262 )), precedence || ((href = { @@ -15138,7 +15098,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$264)) && + (options = preloadPropsMap.get(key$262)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15151,13 +15111,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$264, precedence)); + as.set(key$262, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$264 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$264 = - 'link[rel="preload"][as="' + as + '"][href="' + key$264 + '"]'; + key$262 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$262 = + 'link[rel="preload"][as="' + as + '"][href="' + key$262 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15174,7 +15134,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$264) && + null === resourceRoot.querySelector(key$262) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15207,17 +15167,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$273 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$274 = styles$273.get(type); - resource$274 || + var styles$271 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$272 = styles$271.get(type); + resource$272 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$274 = { + (resource$272 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$273.set(type, resource$274), + styles$271.set(type, resource$272), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15232,9 +15192,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$274.state + resource$272.state )); - return resource$274; + return resource$272; } return null; case "script": @@ -15306,36 +15266,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$279 = hoistableRoot.querySelector( + var instance$277 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$279) + if (instance$277) return ( - (resource.instance = instance$279), - markNodeAsHoistable(instance$279), - instance$279 + (resource.instance = instance$277), + markNodeAsHoistable(instance$277), + instance$277 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$279 = ( + instance$277 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$279); - var linkInstance = instance$279; + markNodeAsHoistable(instance$277); + var linkInstance = instance$277; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$279, "link", key); + setInitialProperties(instance$277, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$279, props.precedence, hoistableRoot); - return (resource.instance = instance$279); + insertStylesheet(instance$277, props.precedence, hoistableRoot); + return (resource.instance = instance$277); case "script": - instance$279 = getScriptKey(props.src); + instance$277 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$279 + "script[async]" + instance$277 )) ) return ( @@ -15344,7 +15304,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$279))) + if ((styleProps = preloadPropsMap.get(instance$277))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16295,11 +16255,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$299); + var instance = getPublicRootInstance(root$297); originalCallback.call(instance); }; } - var root$299 = createHydrationContainer( + var root$297 = createHydrationContainer( initialChildren, callback, container, @@ -16311,23 +16271,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$299; - container[internalContainerInstanceKey] = root$299.current; + container._reactRootContainer = root$297; + container[internalContainerInstanceKey] = root$297.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$299; + return root$297; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$300 = callback; + var originalCallback$298 = callback; callback = function () { - var instance = getPublicRootInstance(root$301); - originalCallback$300.call(instance); + var instance = getPublicRootInstance(root$299); + originalCallback$298.call(instance); }; } - var root$301 = createFiberRoot( + var root$299 = createFiberRoot( container, 0, !1, @@ -16339,15 +16299,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$301; - container[internalContainerInstanceKey] = root$301.current; + container._reactRootContainer = root$299; + container[internalContainerInstanceKey] = root$299.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$301, parentComponent, callback); + updateContainer(initialChildren, root$299, parentComponent, callback); }); - return root$301; + return root$299; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16406,17 +16366,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1849 = { +var devToolsConfig$jscomp$inline_1843 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-c15fa109", + version: "18.3.0-www-classic-e9109a51", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2218 = { - bundleType: devToolsConfig$jscomp$inline_1849.bundleType, - version: devToolsConfig$jscomp$inline_1849.version, - rendererPackageName: devToolsConfig$jscomp$inline_1849.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1849.rendererConfig, +var internals$jscomp$inline_2203 = { + bundleType: devToolsConfig$jscomp$inline_1843.bundleType, + version: devToolsConfig$jscomp$inline_1843.version, + rendererPackageName: devToolsConfig$jscomp$inline_1843.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1843.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16432,26 +16392,26 @@ var internals$jscomp$inline_2218 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1849.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1843.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-c15fa109" + reconcilerVersion: "18.3.0-www-classic-e9109a51" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2219 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2204 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2219.isDisabled && - hook$jscomp$inline_2219.supportsFiber + !hook$jscomp$inline_2204.isDisabled && + hook$jscomp$inline_2204.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2219.inject( - internals$jscomp$inline_2218 + (rendererID = hook$jscomp$inline_2204.inject( + internals$jscomp$inline_2203 )), - (injectedHook = hook$jscomp$inline_2219); + (injectedHook = hook$jscomp$inline_2204); } catch (err) {} } assign(Internals, { @@ -16679,4 +16639,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-c15fa109"; +exports.version = "18.3.0-www-classic-e9109a51"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 465495aed5..2f8574a242 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -331,19 +331,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$4 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$4; - remainingLanes[index$4] = 0; - eventTimes[index$4] = -1; - expirationTimes[index$4] = -1; - var hiddenUpdatesForLane = root[index$4]; + var index$3 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$3; + remainingLanes[index$3] = 0; + eventTimes[index$3] = -1; + expirationTimes[index$3] = -1; + var hiddenUpdatesForLane = root[index$3]; if (null !== hiddenUpdatesForLane) for ( - root[index$4] = null, index$4 = 0; - index$4 < hiddenUpdatesForLane.length; - index$4++ + root[index$3] = null, index$3 = 0; + index$3 < hiddenUpdatesForLane.length; + index$3++ ) { - var update = hiddenUpdatesForLane[index$4]; + var update = hiddenUpdatesForLane[index$3]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -352,21 +352,21 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$5 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$5; - (lane & entangledLanes) | (root[index$5] & entangledLanes) && - (root[index$5] |= entangledLanes); + var index$4 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$4; + (lane & entangledLanes) | (root[index$4] & entangledLanes) && + (root[index$4] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - index$7 = root.transitionLanes[index$7]; - null !== index$7 && - index$7.forEach(function (transition) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + index$6 = root.transitionLanes[index$6]; + null !== index$6 && + index$6.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -376,10 +376,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - null !== root.transitionLanes[index$8] && - (root.transitionLanes[index$8] = null); + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + null !== root.transitionLanes[index$7] && + (root.transitionLanes[index$7] = null); lanes &= ~lane; } } @@ -546,8 +546,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$9 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$9 && "aria-" !== prefix$9) { + var prefix$8 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$8 && "aria-" !== prefix$8) { node.removeAttribute(name); return; } @@ -660,16 +660,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$10) { - control = x$10; + } catch (x$9) { + control = x$9; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$11) { - control = x$11; + } catch (x$10) { + control = x$10; } fn(); } @@ -1065,15 +1065,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$15 in styles) - (styleName = styles[styleName$15]), - styles.hasOwnProperty(styleName$15) && - prevStyles[styleName$15] !== styleName && - setValueForStyle(node, styleName$15, styleName); + for (var styleName$14 in styles) + (styleName = styles[styleName$14]), + styles.hasOwnProperty(styleName$14) && + prevStyles[styleName$14] !== styleName && + setValueForStyle(node, styleName$14, styleName); } else - for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + for (var styleName$15 in styles) + styles.hasOwnProperty(styleName$15) && + setValueForStyle(node, styleName$15, styles[styleName$15]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1302,36 +1302,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$18 = parentA.child; child$18; ) { - if (child$18 === a) { + for (var didFindChild = !1, child$17 = parentA.child; child$17; ) { + if (child$17 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$18 === b) { + if (child$17 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$18 = child$18.sibling; + child$17 = child$17.sibling; } if (!didFindChild) { - for (child$18 = parentB.child; child$18; ) { - if (child$18 === a) { + for (child$17 = parentB.child; child$17; ) { + if (child$17 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$18 === b) { + if (child$17 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$18 = child$18.sibling; + child$17 = child$17.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -3082,10 +3082,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$44 = thenableIndexCounter; + var index$43 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$44); + usable = trackUsedThenable(thenableState, usable, index$43); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -3573,16 +3573,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$50 = enqueueUpdate(provider, fiber, lane); - if (null !== root$50) { + var root$49 = enqueueUpdate(provider, fiber, lane); + if (null !== root$49) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$50, provider, lane, eventTime); - entangleTransitions(root$50, provider, lane); + scheduleUpdateOnFiber(root$49, provider, lane, eventTime); + entangleTransitions(root$49, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$50 && + null !== root$49 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -3789,15 +3789,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$46 = workInProgressRoot; - if (null === root$46) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$46, renderLanes$1) || + var root$45 = workInProgressRoot; + if (null === root$45) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$45, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$46 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$46; - mountEffect(subscribeToStore.bind(null, fiber, root$46, subscribe), [ + root$45 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$45; + mountEffect(subscribeToStore.bind(null, fiber, root$45, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -3806,7 +3806,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$46, + root$45, getServerSnapshot, getSnapshot ), @@ -4290,10 +4290,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$61 = workInProgress.stateNode; + root$60 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$61.incompleteTransitions.has(transition)) { + if (!root$60.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4301,11 +4301,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$61.incompleteTransitions.set(transition, markerInstance); + root$60.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$61.incompleteTransitions.forEach(function (markerInstance) { + root$60.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -4970,14 +4970,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$68 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$68) + var dehydrated$67 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$67) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$68, + dehydrated$67, JSCompiler_temp, renderLanes ); @@ -4987,7 +4987,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$68 = JSCompiler_temp.sibling; + dehydrated$67 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -4996,8 +4996,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$68 - ? (showFallback = createWorkInProgress(dehydrated$68, showFallback)) + null !== dehydrated$67 + ? (showFallback = createWorkInProgress(dehydrated$67, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5016,10 +5016,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$68 = CacheContext._currentValue), + ? ((dehydrated$67 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$68 - ? { parent: dehydrated$68, pool: dehydrated$68 } + JSCompiler_temp.parent !== dehydrated$67 + ? { parent: dehydrated$67, pool: dehydrated$67 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5033,23 +5033,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$68 = showFallback.updateQueue), + (dehydrated$67 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$68 + null === dehydrated$67 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$68 === primaryChildProps + : dehydrated$67 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$68.transitions = didSuspend), - (dehydrated$68.markerInstances = JSCompiler_temp)))); + : ((dehydrated$67.transitions = didSuspend), + (dehydrated$67.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6112,14 +6112,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$99 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$99 = lastTailNode), + for (var lastTailNode$98 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$98 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$99 + null === lastTailNode$98 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$99.sibling = null); + : (lastTailNode$98.sibling = null); } } function bubbleProperties(completedWork) { @@ -6129,19 +6129,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags & 31457280), - (subtreeFlags |= child$100.flags & 31457280), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (var child$99 = completedWork.child; null !== child$99; ) + (newChildLanes |= child$99.lanes | child$99.childLanes), + (subtreeFlags |= child$99.subtreeFlags & 31457280), + (subtreeFlags |= child$99.flags & 31457280), + (child$99.return = completedWork), + (child$99 = child$99.sibling); else - for (child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags), - (subtreeFlags |= child$100.flags), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (child$99 = completedWork.child; null !== child$99; ) + (newChildLanes |= child$99.lanes | child$99.childLanes), + (subtreeFlags |= child$99.subtreeFlags), + (subtreeFlags |= child$99.flags), + (child$99.return = completedWork), + (child$99 = child$99.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6860,8 +6860,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$129) { - captureCommitPhaseError(current, nearestMountedAncestor, error$129); + } catch (error$128) { + captureCommitPhaseError(current, nearestMountedAncestor, error$128); } else ref.current = null; } @@ -6898,7 +6898,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$193) { + } catch (e$191) { JSCompiler_temp = null; break a; } @@ -7177,11 +7177,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$131) { + } catch (error$130) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$131 + error$130 ); } } @@ -7861,8 +7861,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$144) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$144); + } catch (error$143) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$143); } } break; @@ -8044,11 +8044,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$145) { + } catch (error$144) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$145 + error$144 ); } break; @@ -8084,8 +8084,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$146) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$146); + } catch (error$145) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$145); } } if ( @@ -8110,8 +8110,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$149) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$149); + } catch (error$148) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$148); } break; case 6: @@ -8124,8 +8124,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$150) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$150); + } catch (error$149) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$149); } } break; @@ -8139,8 +8139,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$151) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$151); + } catch (error$150) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$150); } break; case 4: @@ -8170,8 +8170,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$153) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$153); + } catch (error$152) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$152); } current = finishedWork.updateQueue; null !== current && @@ -8249,11 +8249,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$134) { + } catch (error$133) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$134 + error$133 ); } } else if ( @@ -8328,21 +8328,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$135 = JSCompiler_inline_result.stateNode; + var parent$134 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$135, ""), + (setTextContent(parent$134, ""), (JSCompiler_inline_result.flags &= -33)); - var before$136 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$136, parent$135); + var before$135 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$135, parent$134); break; case 3: case 4: - var parent$137 = JSCompiler_inline_result.stateNode.containerInfo, - before$138 = getHostSibling(finishedWork); + var parent$136 = JSCompiler_inline_result.stateNode.containerInfo, + before$137 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$138, - parent$137 + before$137, + parent$136 ); break; default: @@ -8812,9 +8812,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$163 = finishedWork.stateNode; + var instance$162 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$163._visibility & 4 + ? instance$162._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8827,7 +8827,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$163._visibility |= 4), + : ((instance$162._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8835,7 +8835,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$163._visibility |= 4), + : ((instance$162._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8848,7 +8848,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$163 + instance$162 ); break; case 24: @@ -9203,13 +9203,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$171 = firstScheduledRoot; null !== root$171; ) { + for (var root$170 = firstScheduledRoot; null !== root$170; ) { if ( - (!onlyLegacy || 0 === root$171.tag) && + (!onlyLegacy || 0 === root$170.tag) && 0 !== (getNextLanes( - root$171, - root$171 === workInProgressRoot$jscomp$0 + root$170, + root$170 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -9217,7 +9217,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$171; + var root = root$170; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -9260,7 +9260,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$171 = root$171.next; + root$170 = root$170.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -9306,12 +9306,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$2 = 31 - clz32(lanes), - lane = 1 << index$2, - expirationTime = expirationTimes[index$2]; + var index$1 = 31 - clz32(lanes), + lane = 1 << index$1, + expirationTime = expirationTimes[index$1]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$2] = computeExpirationTime(lane, currentTime); + expirationTimes[index$1] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -9375,8 +9375,7 @@ function scheduleImmediateTask(cb) { : cb(); }); } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -9515,11 +9514,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$6 = 31 - clz32(lane), - transitions = transitionLanesMap[index$6]; + index$5 = 31 - clz32(lane), + transitions = transitionLanesMap[index$5]; null === transitions && (transitions = new Set()); transitions.add(eventTime); - transitionLanesMap[index$6] = transitions; + transitionLanesMap[index$5] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9546,28 +9545,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -9575,30 +9574,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$174 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$173 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$174 && - ((lanes = errorRetryLanes$174), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$173 && + ((lanes = errorRetryLanes$173), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$174 + errorRetryLanes$173 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -9607,16 +9606,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9626,26 +9625,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9654,48 +9653,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$174 = -1; 0 < exitStatus; ) { - var index$1 = 31 - clz32(exitStatus), - lane = 1 << index$1; - index$1 = errorRetryLanes[index$1]; - index$1 > errorRetryLanes$174 && (errorRetryLanes$174 = index$1); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$174; - exitStatus = now() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9704,7 +9664,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9823,9 +9783,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$3 = 31 - clz32(suspendedLanes), - lane = 1 << index$3; - root[index$3] = -1; + var index$2 = 31 - clz32(suspendedLanes), + lane = 1 << index$2; + root[index$2] = -1; suspendedLanes &= ~lane; } } @@ -9995,8 +9955,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$177) { - handleThrow(root, thrownValue$177); + } catch (thrownValue$175) { + handleThrow(root, thrownValue$175); } while (1); resetContextDependencies(); @@ -10102,8 +10062,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$179) { - handleThrow(root, thrownValue$179); + } catch (thrownValue$177) { + handleThrow(root, thrownValue$177); } while (1); resetContextDependencies(); @@ -10266,10 +10226,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$56 = offscreenQueue.retryQueue; - null === retryQueue$56 + var retryQueue$55 = offscreenQueue.retryQueue; + null === retryQueue$55 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$56.add(wakeable); + : retryQueue$55.add(wakeable); } } break; @@ -10466,12 +10426,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$183 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$181 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$183 && + shouldFireAfterActiveInstanceBlur$181 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10550,7 +10510,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$184 = rootWithPendingPassiveEffects, + var root$182 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -10566,7 +10526,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$184, remainingLanes); + releaseRootPooledCache(root$182, remainingLanes); } } return !1; @@ -11755,12 +11715,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$186 = fiber.stateNode; - if (root$186.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$186.pendingLanes); + var root$184 = fiber.stateNode; + if (root$184.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$184.pendingLanes); 0 !== lanes && - (markRootEntangled(root$186, lanes | 2), - ensureRootIsScheduled(root$186), + (markRootEntangled(root$184, lanes | 2), + ensureRootIsScheduled(root$184), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -12852,19 +12812,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$366; + var JSCompiler_inline_result$jscomp$364; if (canUseDOM) { - var isSupported$jscomp$inline_1593 = "oninput" in document; - if (!isSupported$jscomp$inline_1593) { - var element$jscomp$inline_1594 = document.createElement("div"); - element$jscomp$inline_1594.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1593 = - "function" === typeof element$jscomp$inline_1594.oninput; + var isSupported$jscomp$inline_1587 = "oninput" in document; + if (!isSupported$jscomp$inline_1587) { + var element$jscomp$inline_1588 = document.createElement("div"); + element$jscomp$inline_1588.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1587 = + "function" === typeof element$jscomp$inline_1588.oninput; } - JSCompiler_inline_result$jscomp$366 = isSupported$jscomp$inline_1593; - } else JSCompiler_inline_result$jscomp$366 = !1; + JSCompiler_inline_result$jscomp$364 = isSupported$jscomp$inline_1587; + } else JSCompiler_inline_result$jscomp$364 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$366 && + JSCompiler_inline_result$jscomp$364 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13173,20 +13133,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1634 = 0; - i$jscomp$inline_1634 < simpleEventPluginEvents.length; - i$jscomp$inline_1634++ + var i$jscomp$inline_1628 = 0; + i$jscomp$inline_1628 < simpleEventPluginEvents.length; + i$jscomp$inline_1628++ ) { - var eventName$jscomp$inline_1635 = - simpleEventPluginEvents[i$jscomp$inline_1634], - domEventName$jscomp$inline_1636 = - eventName$jscomp$inline_1635.toLowerCase(), - capitalizedEvent$jscomp$inline_1637 = - eventName$jscomp$inline_1635[0].toUpperCase() + - eventName$jscomp$inline_1635.slice(1); + var eventName$jscomp$inline_1629 = + simpleEventPluginEvents[i$jscomp$inline_1628], + domEventName$jscomp$inline_1630 = + eventName$jscomp$inline_1629.toLowerCase(), + capitalizedEvent$jscomp$inline_1631 = + eventName$jscomp$inline_1629[0].toUpperCase() + + eventName$jscomp$inline_1629.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1636, - "on" + capitalizedEvent$jscomp$inline_1637 + domEventName$jscomp$inline_1630, + "on" + capitalizedEvent$jscomp$inline_1631 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14396,16 +14356,16 @@ function setInitialProperties(domElement, tag, props) { return; case "select": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$203 in props) + for (var propKey$201 in props) if ( - props.hasOwnProperty(propKey$203) && - ((propKey = props[propKey$203]), null != propKey) + props.hasOwnProperty(propKey$201) && + ((propKey = props[propKey$201]), null != propKey) ) - switch (propKey$203) { + switch (propKey$201) { case "value": break; default: - setProp(domElement, tag, propKey$203, propKey, props, null); + setProp(domElement, tag, propKey$201, propKey, props, null); } domElement.multiple = !!props.multiple; tag = props.value; @@ -14416,12 +14376,12 @@ function setInitialProperties(domElement, tag, props) { return; case "textarea": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$205 in props) + for (var propKey$203 in props) if ( - props.hasOwnProperty(propKey$205) && - ((propKey = props[propKey$205]), null != propKey) + props.hasOwnProperty(propKey$203) && + ((propKey = props[propKey$203]), null != propKey) ) - switch (propKey$205) { + switch (propKey$203) { case "value": break; case "children": @@ -14430,18 +14390,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$205, propKey, props); + setProp(domElement, tag, propKey$203, propKey, props); } track(domElement); initTextarea(domElement, props); return; case "option": - for (var propKey$207 in props) + for (var propKey$205 in props) if ( - props.hasOwnProperty(propKey$207) && - ((propKey = props[propKey$207]), null != propKey) + props.hasOwnProperty(propKey$205) && + ((propKey = props[propKey$205]), null != propKey) ) - switch (propKey$207) { + switch (propKey$205) { case "selected": domElement.selected = propKey && @@ -14449,7 +14409,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$207, propKey, props); + setProp(domElement, tag, propKey$205, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -14491,29 +14451,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$209 in props) + for (var propKey$207 in props) if ( - props.hasOwnProperty(propKey$209) && - ((propKey = props[propKey$209]), null != propKey) + props.hasOwnProperty(propKey$207) && + ((propKey = props[propKey$207]), null != propKey) ) - switch (propKey$209) { + switch (propKey$207) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$209, propKey, props, null); + setProp(domElement, tag, propKey$207, propKey, props, null); } return; default: if (isCustomElement(tag)) { - for (var propKey$211 in props) - props.hasOwnProperty(propKey$211) && - ((propKey = props[propKey$211]), + for (var propKey$209 in props) + props.hasOwnProperty(propKey$209) && + ((propKey = props[propKey$209]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$211, + propKey$209, propKey, props, null @@ -14563,15 +14523,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$215 in nextProps) { - lastProp = nextProps[propKey$215]; - var lastProp$216 = lastProps[propKey$215]; + for (var propKey$213 in nextProps) { + lastProp = nextProps[propKey$213]; + var lastProp$214 = lastProps[propKey$213]; if ( - nextProps.hasOwnProperty(propKey$215) && - lastProp !== lastProp$216 && - (null != lastProp || null != lastProp$216) + nextProps.hasOwnProperty(propKey$213) && + lastProp !== lastProp$214 && + (null != lastProp || null != lastProp$214) ) - switch (propKey$215) { + switch (propKey$213) { case "checked": lastProp = null != lastProp ? lastProp : nextProps.defaultChecked; domElement.checked = @@ -14590,43 +14550,43 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$215, + propKey$213, lastProp, nextProps, - lastProp$216 + lastProp$214 ); } } updateInput(domElement, nextProps); return; case "select": - for (var propKey$219 in lastProps) + for (var propKey$217 in lastProps) if ( - ((propKey$215 = lastProps[propKey$219]), - lastProps.hasOwnProperty(propKey$219) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$219)) + ((propKey$213 = lastProps[propKey$217]), + lastProps.hasOwnProperty(propKey$217) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$217)) ) - switch (propKey$219) { + switch (propKey$217) { case "value": break; default: setProp( domElement, tag, - propKey$219, + propKey$217, null, nextProps, - propKey$215 + propKey$213 ); } for (lastProp in nextProps) if ( - ((propKey$215 = nextProps[lastProp]), - (lastProp$216 = lastProps[lastProp]), + ((propKey$213 = nextProps[lastProp]), + (lastProp$214 = lastProps[lastProp]), nextProps.hasOwnProperty(lastProp) && - propKey$215 !== lastProp$216 && - (null != propKey$215 || null != lastProp$216)) + propKey$213 !== lastProp$214 && + (null != propKey$213 || null != lastProp$214)) ) switch (lastProp) { case "value": @@ -14636,22 +14596,22 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, lastProp, - propKey$215, + propKey$213, nextProps, - lastProp$216 + lastProp$214 ); } updateSelect(domElement, lastProps, nextProps); return; case "textarea": - for (var propKey$224 in lastProps) + for (var propKey$222 in lastProps) if ( - ((propKey$215 = lastProps[propKey$224]), - lastProps.hasOwnProperty(propKey$224) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$224)) + ((propKey$213 = lastProps[propKey$222]), + lastProps.hasOwnProperty(propKey$222) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$222)) ) - switch (propKey$224) { + switch (propKey$222) { case "value": break; case "children": @@ -14660,34 +14620,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$224, + propKey$222, null, nextProps, - propKey$215 + propKey$213 ); } - for (lastProp$216 in nextProps) + for (lastProp$214 in nextProps) if ( - ((propKey$215 = nextProps[lastProp$216]), - (lastProp = lastProps[lastProp$216]), - nextProps.hasOwnProperty(lastProp$216) && - propKey$215 !== lastProp && - (null != propKey$215 || null != lastProp)) + ((propKey$213 = nextProps[lastProp$214]), + (lastProp = lastProps[lastProp$214]), + nextProps.hasOwnProperty(lastProp$214) && + propKey$213 !== lastProp && + (null != propKey$213 || null != lastProp)) ) - switch (lastProp$216) { + switch (lastProp$214) { case "value": break; case "children": break; case "dangerouslySetInnerHTML": - if (null != propKey$215) throw Error(formatProdErrorMessage(91)); + if (null != propKey$213) throw Error(formatProdErrorMessage(91)); break; default: setProp( domElement, tag, - lastProp$216, - propKey$215, + lastProp$214, + propKey$213, nextProps, lastProp ); @@ -14695,14 +14655,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { updateTextarea(domElement, nextProps); return; case "option": - for (var propKey$229 in lastProps) + for (var propKey$227 in lastProps) if ( - ((propKey$215 = lastProps[propKey$229]), - lastProps.hasOwnProperty(propKey$229) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$229)) + ((propKey$213 = lastProps[propKey$227]), + lastProps.hasOwnProperty(propKey$227) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$227)) ) - switch (propKey$229) { + switch (propKey$227) { case "selected": domElement.selected = !1; break; @@ -14710,33 +14670,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$229, + propKey$227, null, nextProps, - propKey$215 + propKey$213 ); } - for (var propKey$231 in nextProps) + for (var propKey$229 in nextProps) if ( - ((propKey$215 = nextProps[propKey$231]), - (lastProp = lastProps[propKey$231]), - nextProps.hasOwnProperty(propKey$231) && - propKey$215 !== lastProp && - (null != propKey$215 || null != lastProp)) + ((propKey$213 = nextProps[propKey$229]), + (lastProp = lastProps[propKey$229]), + nextProps.hasOwnProperty(propKey$229) && + propKey$213 !== lastProp && + (null != propKey$213 || null != lastProp)) ) - switch (propKey$231) { + switch (propKey$229) { case "selected": domElement.selected = - propKey$215 && - "function" !== typeof propKey$215 && - "symbol" !== typeof propKey$215; + propKey$213 && + "function" !== typeof propKey$213 && + "symbol" !== typeof propKey$213; break; default: setProp( domElement, tag, - propKey$231, - propKey$215, + propKey$229, + propKey$213, nextProps, lastProp ); @@ -14757,32 +14717,32 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$234 in lastProps) - (propKey$215 = lastProps[propKey$234]), - lastProps.hasOwnProperty(propKey$234) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$234) && - setProp(domElement, tag, propKey$234, null, nextProps, propKey$215); - for (var propKey$236 in nextProps) + for (var propKey$232 in lastProps) + (propKey$213 = lastProps[propKey$232]), + lastProps.hasOwnProperty(propKey$232) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$232) && + setProp(domElement, tag, propKey$232, null, nextProps, propKey$213); + for (var propKey$234 in nextProps) if ( - ((propKey$215 = nextProps[propKey$236]), - (lastProp = lastProps[propKey$236]), - nextProps.hasOwnProperty(propKey$236) && - propKey$215 !== lastProp && - (null != propKey$215 || null != lastProp)) + ((propKey$213 = nextProps[propKey$234]), + (lastProp = lastProps[propKey$234]), + nextProps.hasOwnProperty(propKey$234) && + propKey$213 !== lastProp && + (null != propKey$213 || null != lastProp)) ) - switch (propKey$236) { + switch (propKey$234) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$215) + if (null != propKey$213) throw Error(formatProdErrorMessage(137, tag)); break; default: setProp( domElement, tag, - propKey$236, - propKey$215, + propKey$234, + propKey$213, nextProps, lastProp ); @@ -14790,49 +14750,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$239 in lastProps) - (propKey$215 = lastProps[propKey$239]), - lastProps.hasOwnProperty(propKey$239) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$239) && + for (var propKey$237 in lastProps) + (propKey$213 = lastProps[propKey$237]), + lastProps.hasOwnProperty(propKey$237) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$237) && + setPropOnCustomElement( + domElement, + tag, + propKey$237, + null, + nextProps, + propKey$213 + ); + for (var propKey$239 in nextProps) + (propKey$213 = nextProps[propKey$239]), + (lastProp = lastProps[propKey$239]), + !nextProps.hasOwnProperty(propKey$239) || + propKey$213 === lastProp || + (null == propKey$213 && null == lastProp) || setPropOnCustomElement( domElement, tag, propKey$239, - null, - nextProps, - propKey$215 - ); - for (var propKey$241 in nextProps) - (propKey$215 = nextProps[propKey$241]), - (lastProp = lastProps[propKey$241]), - !nextProps.hasOwnProperty(propKey$241) || - propKey$215 === lastProp || - (null == propKey$215 && null == lastProp) || - setPropOnCustomElement( - domElement, - tag, - propKey$241, - propKey$215, + propKey$213, nextProps, lastProp ); return; } } - for (var propKey$244 in lastProps) - (propKey$215 = lastProps[propKey$244]), - lastProps.hasOwnProperty(propKey$244) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$244) && - setProp(domElement, tag, propKey$244, null, nextProps, propKey$215); - for (var propKey$246 in nextProps) - (propKey$215 = nextProps[propKey$246]), - (lastProp = lastProps[propKey$246]), - !nextProps.hasOwnProperty(propKey$246) || - propKey$215 === lastProp || - (null == propKey$215 && null == lastProp) || - setProp(domElement, tag, propKey$246, propKey$215, nextProps, lastProp); + for (var propKey$242 in lastProps) + (propKey$213 = lastProps[propKey$242]), + lastProps.hasOwnProperty(propKey$242) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$242) && + setProp(domElement, tag, propKey$242, null, nextProps, propKey$213); + for (var propKey$244 in nextProps) + (propKey$213 = nextProps[propKey$244]), + (lastProp = lastProps[propKey$244]), + !nextProps.hasOwnProperty(propKey$244) || + propKey$213 === lastProp || + (null == propKey$213 && null == lastProp) || + setProp(domElement, tag, propKey$244, propKey$213, nextProps, lastProp); } function updatePropertiesWithDiff( domElement, @@ -14882,12 +14842,12 @@ function updatePropertiesWithDiff( case "select": for (propKey = 0; propKey < updatePayload.length; propKey += 2) { propValue = updatePayload[propKey]; - var propValue$251 = updatePayload[propKey + 1]; + var propValue$249 = updatePayload[propKey + 1]; switch (propValue) { case "value": break; default: - setProp(domElement, tag, propValue, propValue$251, nextProps, null); + setProp(domElement, tag, propValue, propValue$249, nextProps, null); } } updateSelect(domElement, lastProps, nextProps); @@ -15296,14 +15256,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$268 = getStyleKey(href), + var key$266 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$268); + resource = as.get(key$266); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$268) + getStylesheetSelectorFromKey(key$266) )) ) state.loading = 1; @@ -15314,7 +15274,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$268)) && + (options = preloadPropsMap.get(key$266)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15340,15 +15300,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$268, resource); + as.set(key$266, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$268 = getScriptKey(href)), - (precedence = as.get(key$268)), + (key$266 = getScriptKey(href)), + (precedence = as.get(key$266)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$268 + "script[async]" + key$266 )), precedence || ((href = { @@ -15357,7 +15317,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$268)) && + (options = preloadPropsMap.get(key$266)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15370,13 +15330,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$268, precedence)); + as.set(key$266, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$268 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$268 = - 'link[rel="preload"][as="' + as + '"][href="' + key$268 + '"]'; + key$266 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$266 = + 'link[rel="preload"][as="' + as + '"][href="' + key$266 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15393,7 +15353,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$268) && + null === resourceRoot.querySelector(key$266) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15426,17 +15386,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$277 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$278 = styles$277.get(type); - resource$278 || + var styles$275 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$276 = styles$275.get(type); + resource$276 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$278 = { + (resource$276 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$277.set(type, resource$278), + styles$275.set(type, resource$276), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15451,9 +15411,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$278.state + resource$276.state )); - return resource$278; + return resource$276; } return null; case "script": @@ -15525,36 +15485,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$283 = hoistableRoot.querySelector( + var instance$281 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$283) + if (instance$281) return ( - (resource.instance = instance$283), - markNodeAsHoistable(instance$283), - instance$283 + (resource.instance = instance$281), + markNodeAsHoistable(instance$281), + instance$281 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$283 = ( + instance$281 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$283); - var linkInstance = instance$283; + markNodeAsHoistable(instance$281); + var linkInstance = instance$281; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$283, "link", key); + setInitialProperties(instance$281, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$283, props.precedence, hoistableRoot); - return (resource.instance = instance$283); + insertStylesheet(instance$281, props.precedence, hoistableRoot); + return (resource.instance = instance$281); case "script": - instance$283 = getScriptKey(props.src); + instance$281 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$283 + "script[async]" + instance$281 )) ) return ( @@ -15563,7 +15523,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$283))) + if ((styleProps = preloadPropsMap.get(instance$281))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15933,17 +15893,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1807 = { +var devToolsConfig$jscomp$inline_1801 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-16735c9e", + version: "18.3.0-www-modern-6c02faf9", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2181 = { - bundleType: devToolsConfig$jscomp$inline_1807.bundleType, - version: devToolsConfig$jscomp$inline_1807.version, - rendererPackageName: devToolsConfig$jscomp$inline_1807.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1807.rendererConfig, +var internals$jscomp$inline_2166 = { + bundleType: devToolsConfig$jscomp$inline_1801.bundleType, + version: devToolsConfig$jscomp$inline_1801.version, + rendererPackageName: devToolsConfig$jscomp$inline_1801.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1801.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15960,26 +15920,26 @@ var internals$jscomp$inline_2181 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1807.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1801.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-16735c9e" + reconcilerVersion: "18.3.0-www-modern-6c02faf9" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2182 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2167 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2182.isDisabled && - hook$jscomp$inline_2182.supportsFiber + !hook$jscomp$inline_2167.isDisabled && + hook$jscomp$inline_2167.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2182.inject( - internals$jscomp$inline_2181 + (rendererID = hook$jscomp$inline_2167.inject( + internals$jscomp$inline_2166 )), - (injectedHook = hook$jscomp$inline_2182); + (injectedHook = hook$jscomp$inline_2167); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -16136,4 +16096,4 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-16735c9e"; +exports.version = "18.3.0-www-modern-6c02faf9"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index b65100e507..7841c07a43 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -718,19 +718,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$6 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$6; - remainingLanes[index$6] = 0; - eventTimes[index$6] = -1; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = root[index$6]; + var index$5 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$5; + remainingLanes[index$5] = 0; + eventTimes[index$5] = -1; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = root[index$5]; if (null !== hiddenUpdatesForLane) for ( - root[index$6] = null, index$6 = 0; - index$6 < hiddenUpdatesForLane.length; - index$6++ + root[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$6]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -739,19 +739,19 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$7 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$7; - (lane & entangledLanes) | (root[index$7] & entangledLanes) && - (root[index$7] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - root[index$8].add(fiber); + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + root[index$7].add(fiber); lanes &= ~lane; } } @@ -763,27 +763,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$9 = 31 - clz32(lanes); - root = 1 << index$9; - index$9 = pendingUpdatersLaneMap[index$9]; - 0 < index$9.size && - (index$9.forEach(function (fiber) { + var index$8 = 31 - clz32(lanes); + root = 1 << index$8; + index$8 = pendingUpdatersLaneMap[index$8]; + 0 < index$8.size && + (index$8.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$9.clear()); + index$8.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - index$11 = root.transitionLanes[index$11]; - null !== index$11 && - index$11.forEach(function (transition) { + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + index$10 = root.transitionLanes[index$10]; + null !== index$10 && + index$10.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -793,10 +793,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - null !== root.transitionLanes[index$12] && - (root.transitionLanes[index$12] = null); + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + null !== root.transitionLanes[index$11] && + (root.transitionLanes[index$11] = null); lanes &= ~lane; } } @@ -872,8 +872,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$13 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$13 && "aria-" !== prefix$13) { + var prefix$12 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$12 && "aria-" !== prefix$12) { node.removeAttribute(name); return; } @@ -955,16 +955,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$14) { - control = x$14; + } catch (x$13) { + control = x$13; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$15) { - control = x$15; + } catch (x$14) { + control = x$14; } fn(); } @@ -1370,15 +1370,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$19 in styles) - (styleName = styles[styleName$19]), - styles.hasOwnProperty(styleName$19) && - prevStyles[styleName$19] !== styleName && - setValueForStyle(node, styleName$19, styleName); + for (var styleName$18 in styles) + (styleName = styles[styleName$18]), + styles.hasOwnProperty(styleName$18) && + prevStyles[styleName$18] !== styleName && + setValueForStyle(node, styleName$18, styleName); } else - for (var styleName$20 in styles) - styles.hasOwnProperty(styleName$20) && - setValueForStyle(node, styleName$20, styles[styleName$20]); + for (var styleName$19 in styles) + styles.hasOwnProperty(styleName$19) && + setValueForStyle(node, styleName$19, styles[styleName$19]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -3338,10 +3338,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$47 = thenableIndexCounter; + var index$46 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$47); + usable = trackUsedThenable(thenableState, usable, index$46); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -3829,16 +3829,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$53 = enqueueUpdate(provider, fiber, lane); - if (null !== root$53) { + var root$52 = enqueueUpdate(provider, fiber, lane); + if (null !== root$52) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$53, provider, lane, eventTime); - entangleTransitions(root$53, provider, lane); + scheduleUpdateOnFiber(root$52, provider, lane, eventTime); + entangleTransitions(root$52, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$53 && + null !== root$52 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4047,15 +4047,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$49 = workInProgressRoot; - if (null === root$49) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$49, renderLanes$1) || + var root$48 = workInProgressRoot; + if (null === root$48) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$48, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$49 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$49; - mountEffect(subscribeToStore.bind(null, fiber, root$49, subscribe), [ + root$48 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$48; + mountEffect(subscribeToStore.bind(null, fiber, root$48, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4064,7 +4064,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$49, + root$48, getServerSnapshot, getSnapshot ), @@ -4632,10 +4632,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$66 = workInProgress.stateNode; + root$65 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$66.incompleteTransitions.has(transition)) { + if (!root$65.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4643,11 +4643,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$66.incompleteTransitions.set(transition, markerInstance); + root$65.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$66.incompleteTransitions.forEach(function (markerInstance) { + root$65.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5357,14 +5357,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$73 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$73) + var dehydrated$72 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$72) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$73, + dehydrated$72, JSCompiler_temp, renderLanes ); @@ -5374,7 +5374,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$73 = JSCompiler_temp.sibling; + dehydrated$72 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5388,8 +5388,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$73 - ? (showFallback = createWorkInProgress(dehydrated$73, showFallback)) + null !== dehydrated$72 + ? (showFallback = createWorkInProgress(dehydrated$72, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5408,10 +5408,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$73 = CacheContext._currentValue), + ? ((dehydrated$72 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$73 - ? { parent: dehydrated$73, pool: dehydrated$73 } + JSCompiler_temp.parent !== dehydrated$72 + ? { parent: dehydrated$72, pool: dehydrated$72 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5425,23 +5425,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$73 = showFallback.updateQueue), + (dehydrated$72 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$73 + null === dehydrated$72 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$73 === primaryChildProps + : dehydrated$72 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$73.transitions = didSuspend), - (dehydrated$73.markerInstances = JSCompiler_temp)))); + : ((dehydrated$72.transitions = didSuspend), + (dehydrated$72.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6521,14 +6521,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$105 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$105 = lastTailNode), + for (var lastTailNode$104 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$104 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$105 + null === lastTailNode$104 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$105.sibling = null); + : (lastTailNode$104.sibling = null); } } function bubbleProperties(completedWork) { @@ -6540,53 +6540,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$107 = completedWork.selfBaseDuration, - child$108 = completedWork.child; - null !== child$108; + var treeBaseDuration$106 = completedWork.selfBaseDuration, + child$107 = completedWork.child; + null !== child$107; ) - (newChildLanes |= child$108.lanes | child$108.childLanes), - (subtreeFlags |= child$108.subtreeFlags & 31457280), - (subtreeFlags |= child$108.flags & 31457280), - (treeBaseDuration$107 += child$108.treeBaseDuration), - (child$108 = child$108.sibling); - completedWork.treeBaseDuration = treeBaseDuration$107; + (newChildLanes |= child$107.lanes | child$107.childLanes), + (subtreeFlags |= child$107.subtreeFlags & 31457280), + (subtreeFlags |= child$107.flags & 31457280), + (treeBaseDuration$106 += child$107.treeBaseDuration), + (child$107 = child$107.sibling); + completedWork.treeBaseDuration = treeBaseDuration$106; } else for ( - treeBaseDuration$107 = completedWork.child; - null !== treeBaseDuration$107; + treeBaseDuration$106 = completedWork.child; + null !== treeBaseDuration$106; ) (newChildLanes |= - treeBaseDuration$107.lanes | treeBaseDuration$107.childLanes), - (subtreeFlags |= treeBaseDuration$107.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$107.flags & 31457280), - (treeBaseDuration$107.return = completedWork), - (treeBaseDuration$107 = treeBaseDuration$107.sibling); + treeBaseDuration$106.lanes | treeBaseDuration$106.childLanes), + (subtreeFlags |= treeBaseDuration$106.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$106.flags & 31457280), + (treeBaseDuration$106.return = completedWork), + (treeBaseDuration$106 = treeBaseDuration$106.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$107 = completedWork.actualDuration; - child$108 = completedWork.selfBaseDuration; + treeBaseDuration$106 = completedWork.actualDuration; + child$107 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$107 += child.actualDuration), - (child$108 += child.treeBaseDuration), + (treeBaseDuration$106 += child.actualDuration), + (child$107 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$107; - completedWork.treeBaseDuration = child$108; + completedWork.actualDuration = treeBaseDuration$106; + completedWork.treeBaseDuration = child$107; } else for ( - treeBaseDuration$107 = completedWork.child; - null !== treeBaseDuration$107; + treeBaseDuration$106 = completedWork.child; + null !== treeBaseDuration$106; ) (newChildLanes |= - treeBaseDuration$107.lanes | treeBaseDuration$107.childLanes), - (subtreeFlags |= treeBaseDuration$107.subtreeFlags), - (subtreeFlags |= treeBaseDuration$107.flags), - (treeBaseDuration$107.return = completedWork), - (treeBaseDuration$107 = treeBaseDuration$107.sibling); + treeBaseDuration$106.lanes | treeBaseDuration$106.childLanes), + (subtreeFlags |= treeBaseDuration$106.subtreeFlags), + (subtreeFlags |= treeBaseDuration$106.flags), + (treeBaseDuration$106.return = completedWork), + (treeBaseDuration$106 = treeBaseDuration$106.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7390,8 +7390,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$141) { - captureCommitPhaseError(current, nearestMountedAncestor, error$141); + } catch (error$140) { + captureCommitPhaseError(current, nearestMountedAncestor, error$140); } else ref.current = null; } @@ -7428,7 +7428,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$210) { + } catch (e$208) { JSCompiler_temp = null; break a; } @@ -7685,11 +7685,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$143 = commitTime, + var commitTime$142 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$143); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$142); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -7716,8 +7716,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$145) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$145); + } catch (error$144) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$144); } } function commitClassCallbacks(finishedWork) { @@ -7816,11 +7816,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$146) { + } catch (error$145) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$146 + error$145 ); } else { @@ -7837,11 +7837,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$147) { + } catch (error$146) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$147 + error$146 ); } recordLayoutEffectDuration(finishedWork); @@ -7852,11 +7852,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$148) { + } catch (error$147) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$148 + error$147 ); } } @@ -8562,22 +8562,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$163) { + } catch (error$162) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$163 + error$162 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$164) { + } catch (error$163) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$164 + error$163 ); } } @@ -8760,11 +8760,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$165) { + } catch (error$164) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$165 + error$164 ); } break; @@ -8800,8 +8800,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$166) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$166); + } catch (error$165) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$165); } } if ( @@ -8826,8 +8826,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$169) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$169); + } catch (error$168) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$168); } break; case 6: @@ -8840,8 +8840,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$170) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$170); + } catch (error$169) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$169); } } break; @@ -8855,8 +8855,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$171) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$171); + } catch (error$170) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$170); } break; case 4: @@ -8886,8 +8886,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$173) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$173); + } catch (error$172) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$172); } current = finishedWork.updateQueue; null !== current && @@ -8965,11 +8965,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$153) { + } catch (error$152) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$153 + error$152 ); } } else if ( @@ -9044,21 +9044,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$154 = JSCompiler_inline_result.stateNode; + var parent$153 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$154, ""), + (setTextContent(parent$153, ""), (JSCompiler_inline_result.flags &= -33)); - var before$155 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$155, parent$154); + var before$154 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$154, parent$153); break; case 3: case 4: - var parent$156 = JSCompiler_inline_result.stateNode.containerInfo, - before$157 = getHostSibling(finishedWork); + var parent$155 = JSCompiler_inline_result.stateNode.containerInfo, + before$156 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$157, - parent$156 + before$156, + parent$155 ); break; default: @@ -9250,8 +9250,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$178) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$178); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -9550,9 +9550,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$184 = finishedWork.stateNode; + var instance$183 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$184._visibility & 4 + ? instance$183._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9565,7 +9565,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$184._visibility |= 4), + : ((instance$183._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9573,7 +9573,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$184._visibility |= 4), + : ((instance$183._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9586,7 +9586,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$184 + instance$183 ); break; case 24: @@ -9960,13 +9960,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$192 = firstScheduledRoot; null !== root$192; ) { + for (var root$191 = firstScheduledRoot; null !== root$191; ) { if ( - (!onlyLegacy || 0 === root$192.tag) && + (!onlyLegacy || 0 === root$191.tag) && 0 !== (getNextLanes( - root$192, - root$192 === workInProgressRoot$jscomp$0 + root$191, + root$191 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -9974,7 +9974,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$192; + var root = root$191; currentUpdateIsNested = nestedUpdateScheduled; nestedUpdateScheduled = !1; if (0 !== (executionContext & 6)) @@ -10019,7 +10019,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$192 = root$192.next; + root$191 = root$191.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -10065,12 +10065,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$3 = 31 - clz32(lanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$4] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -10134,8 +10134,7 @@ function scheduleImmediateTask(cb) { : cb(); }); } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -10325,28 +10324,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -10354,30 +10353,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$195 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$194 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$195 && - ((lanes = errorRetryLanes$195), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$194 && + ((lanes = errorRetryLanes$194), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$195 + errorRetryLanes$194 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -10386,16 +10385,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10405,26 +10404,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now$1()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now$1()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10433,48 +10432,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$195 = -1; 0 < exitStatus; ) { - var index$3 = 31 - clz32(exitStatus), - lane = 1 << index$3; - index$3 = errorRetryLanes[index$3]; - index$3 > errorRetryLanes$195 && (errorRetryLanes$195 = index$3); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$195; - exitStatus = now$1() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10483,7 +10443,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10602,9 +10562,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$5 = 31 - clz32(suspendedLanes), - lane = 1 << index$5; - root[index$5] = -1; + var index$4 = 31 - clz32(suspendedLanes), + lane = 1 << index$4; + root[index$4] = -1; suspendedLanes &= ~lane; } } @@ -10813,8 +10773,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$198) { - handleThrow(root, thrownValue$198); + } catch (thrownValue$196) { + handleThrow(root, thrownValue$196); } while (1); resetContextDependencies(); @@ -10931,8 +10891,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$200) { - handleThrow(root, thrownValue$200); + } catch (thrownValue$198) { + handleThrow(root, thrownValue$198); } while (1); resetContextDependencies(); @@ -11119,10 +11079,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$61 = offscreenQueue.retryQueue; - null === retryQueue$61 + var retryQueue$60 = offscreenQueue.retryQueue; + null === retryQueue$60 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$61.add(wakeable); + : retryQueue$60.add(wakeable); } } break; @@ -11333,7 +11293,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$204 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$202 = commitBeforeMutationEffects( root, finishedWork ); @@ -11341,7 +11301,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$204 && + shouldFireAfterActiveInstanceBlur$202 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11435,7 +11395,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$205 = rootWithPendingPassiveEffects, + var root$203 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11451,7 +11411,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$205, remainingLanes); + releaseRootPooledCache(root$203, remainingLanes); } } return !1; @@ -12817,12 +12777,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$208 = fiber.stateNode; - if (root$208.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$208.pendingLanes); + var root$206 = fiber.stateNode; + if (root$206.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$206.pendingLanes); 0 !== lanes && - (markRootEntangled(root$208, lanes | 2), - ensureRootIsScheduled(root$208), + (markRootEntangled(root$206, lanes | 2), + ensureRootIsScheduled(root$206), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13394,19 +13354,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$390; + var JSCompiler_inline_result$jscomp$388; if (canUseDOM) { - var isSupported$jscomp$inline_1680 = "oninput" in document; - if (!isSupported$jscomp$inline_1680) { - var element$jscomp$inline_1681 = document.createElement("div"); - element$jscomp$inline_1681.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1680 = - "function" === typeof element$jscomp$inline_1681.oninput; + var isSupported$jscomp$inline_1674 = "oninput" in document; + if (!isSupported$jscomp$inline_1674) { + var element$jscomp$inline_1675 = document.createElement("div"); + element$jscomp$inline_1675.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1674 = + "function" === typeof element$jscomp$inline_1675.oninput; } - JSCompiler_inline_result$jscomp$390 = isSupported$jscomp$inline_1680; - } else JSCompiler_inline_result$jscomp$390 = !1; + JSCompiler_inline_result$jscomp$388 = isSupported$jscomp$inline_1674; + } else JSCompiler_inline_result$jscomp$388 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$390 && + JSCompiler_inline_result$jscomp$388 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13715,20 +13675,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1721 = 0; - i$jscomp$inline_1721 < simpleEventPluginEvents.length; - i$jscomp$inline_1721++ + var i$jscomp$inline_1715 = 0; + i$jscomp$inline_1715 < simpleEventPluginEvents.length; + i$jscomp$inline_1715++ ) { - var eventName$jscomp$inline_1722 = - simpleEventPluginEvents[i$jscomp$inline_1721], - domEventName$jscomp$inline_1723 = - eventName$jscomp$inline_1722.toLowerCase(), - capitalizedEvent$jscomp$inline_1724 = - eventName$jscomp$inline_1722[0].toUpperCase() + - eventName$jscomp$inline_1722.slice(1); + var eventName$jscomp$inline_1716 = + simpleEventPluginEvents[i$jscomp$inline_1715], + domEventName$jscomp$inline_1717 = + eventName$jscomp$inline_1716.toLowerCase(), + capitalizedEvent$jscomp$inline_1718 = + eventName$jscomp$inline_1716[0].toUpperCase() + + eventName$jscomp$inline_1716.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1723, - "on" + capitalizedEvent$jscomp$inline_1724 + domEventName$jscomp$inline_1717, + "on" + capitalizedEvent$jscomp$inline_1718 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14938,16 +14898,16 @@ function setInitialProperties(domElement, tag, props) { return; case "select": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$220 in props) + for (var propKey$218 in props) if ( - props.hasOwnProperty(propKey$220) && - ((propKey = props[propKey$220]), null != propKey) + props.hasOwnProperty(propKey$218) && + ((propKey = props[propKey$218]), null != propKey) ) - switch (propKey$220) { + switch (propKey$218) { case "value": break; default: - setProp(domElement, tag, propKey$220, propKey, props, null); + setProp(domElement, tag, propKey$218, propKey, props, null); } domElement.multiple = !!props.multiple; tag = props.value; @@ -14958,12 +14918,12 @@ function setInitialProperties(domElement, tag, props) { return; case "textarea": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$222 in props) + for (var propKey$220 in props) if ( - props.hasOwnProperty(propKey$222) && - ((propKey = props[propKey$222]), null != propKey) + props.hasOwnProperty(propKey$220) && + ((propKey = props[propKey$220]), null != propKey) ) - switch (propKey$222) { + switch (propKey$220) { case "value": break; case "children": @@ -14972,18 +14932,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$222, propKey, props); + setProp(domElement, tag, propKey$220, propKey, props); } track(domElement); initTextarea(domElement, props); return; case "option": - for (var propKey$224 in props) + for (var propKey$222 in props) if ( - props.hasOwnProperty(propKey$224) && - ((propKey = props[propKey$224]), null != propKey) + props.hasOwnProperty(propKey$222) && + ((propKey = props[propKey$222]), null != propKey) ) - switch (propKey$224) { + switch (propKey$222) { case "selected": domElement.selected = propKey && @@ -14991,7 +14951,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$224, propKey, props); + setProp(domElement, tag, propKey$222, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -15033,29 +14993,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$226 in props) + for (var propKey$224 in props) if ( - props.hasOwnProperty(propKey$226) && - ((propKey = props[propKey$226]), null != propKey) + props.hasOwnProperty(propKey$224) && + ((propKey = props[propKey$224]), null != propKey) ) - switch (propKey$226) { + switch (propKey$224) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$226, propKey, props, null); + setProp(domElement, tag, propKey$224, propKey, props, null); } return; default: if (isCustomElement(tag)) { - for (var propKey$228 in props) - props.hasOwnProperty(propKey$228) && - ((propKey = props[propKey$228]), + for (var propKey$226 in props) + props.hasOwnProperty(propKey$226) && + ((propKey = props[propKey$226]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$228, + propKey$226, propKey, props, null @@ -15105,15 +15065,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$232 in nextProps) { - lastProp = nextProps[propKey$232]; - var lastProp$233 = lastProps[propKey$232]; + for (var propKey$230 in nextProps) { + lastProp = nextProps[propKey$230]; + var lastProp$231 = lastProps[propKey$230]; if ( - nextProps.hasOwnProperty(propKey$232) && - lastProp !== lastProp$233 && - (null != lastProp || null != lastProp$233) + nextProps.hasOwnProperty(propKey$230) && + lastProp !== lastProp$231 && + (null != lastProp || null != lastProp$231) ) - switch (propKey$232) { + switch (propKey$230) { case "checked": lastProp = null != lastProp ? lastProp : nextProps.defaultChecked; domElement.checked = @@ -15132,43 +15092,43 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$232, + propKey$230, lastProp, nextProps, - lastProp$233 + lastProp$231 ); } } updateInput(domElement, nextProps); return; case "select": - for (var propKey$236 in lastProps) + for (var propKey$234 in lastProps) if ( - ((propKey$232 = lastProps[propKey$236]), - lastProps.hasOwnProperty(propKey$236) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$236)) + ((propKey$230 = lastProps[propKey$234]), + lastProps.hasOwnProperty(propKey$234) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$234)) ) - switch (propKey$236) { + switch (propKey$234) { case "value": break; default: setProp( domElement, tag, - propKey$236, + propKey$234, null, nextProps, - propKey$232 + propKey$230 ); } for (lastProp in nextProps) if ( - ((propKey$232 = nextProps[lastProp]), - (lastProp$233 = lastProps[lastProp]), + ((propKey$230 = nextProps[lastProp]), + (lastProp$231 = lastProps[lastProp]), nextProps.hasOwnProperty(lastProp) && - propKey$232 !== lastProp$233 && - (null != propKey$232 || null != lastProp$233)) + propKey$230 !== lastProp$231 && + (null != propKey$230 || null != lastProp$231)) ) switch (lastProp) { case "value": @@ -15178,22 +15138,22 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, lastProp, - propKey$232, + propKey$230, nextProps, - lastProp$233 + lastProp$231 ); } updateSelect(domElement, lastProps, nextProps); return; case "textarea": - for (var propKey$241 in lastProps) + for (var propKey$239 in lastProps) if ( - ((propKey$232 = lastProps[propKey$241]), - lastProps.hasOwnProperty(propKey$241) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$241)) + ((propKey$230 = lastProps[propKey$239]), + lastProps.hasOwnProperty(propKey$239) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$239)) ) - switch (propKey$241) { + switch (propKey$239) { case "value": break; case "children": @@ -15202,34 +15162,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$241, + propKey$239, null, nextProps, - propKey$232 + propKey$230 ); } - for (lastProp$233 in nextProps) + for (lastProp$231 in nextProps) if ( - ((propKey$232 = nextProps[lastProp$233]), - (lastProp = lastProps[lastProp$233]), - nextProps.hasOwnProperty(lastProp$233) && - propKey$232 !== lastProp && - (null != propKey$232 || null != lastProp)) + ((propKey$230 = nextProps[lastProp$231]), + (lastProp = lastProps[lastProp$231]), + nextProps.hasOwnProperty(lastProp$231) && + propKey$230 !== lastProp && + (null != propKey$230 || null != lastProp)) ) - switch (lastProp$233) { + switch (lastProp$231) { case "value": break; case "children": break; case "dangerouslySetInnerHTML": - if (null != propKey$232) throw Error(formatProdErrorMessage(91)); + if (null != propKey$230) throw Error(formatProdErrorMessage(91)); break; default: setProp( domElement, tag, - lastProp$233, - propKey$232, + lastProp$231, + propKey$230, nextProps, lastProp ); @@ -15237,14 +15197,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { updateTextarea(domElement, nextProps); return; case "option": - for (var propKey$246 in lastProps) + for (var propKey$244 in lastProps) if ( - ((propKey$232 = lastProps[propKey$246]), - lastProps.hasOwnProperty(propKey$246) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$246)) + ((propKey$230 = lastProps[propKey$244]), + lastProps.hasOwnProperty(propKey$244) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$244)) ) - switch (propKey$246) { + switch (propKey$244) { case "selected": domElement.selected = !1; break; @@ -15252,33 +15212,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$246, + propKey$244, null, nextProps, - propKey$232 + propKey$230 ); } - for (var propKey$248 in nextProps) + for (var propKey$246 in nextProps) if ( - ((propKey$232 = nextProps[propKey$248]), - (lastProp = lastProps[propKey$248]), - nextProps.hasOwnProperty(propKey$248) && - propKey$232 !== lastProp && - (null != propKey$232 || null != lastProp)) + ((propKey$230 = nextProps[propKey$246]), + (lastProp = lastProps[propKey$246]), + nextProps.hasOwnProperty(propKey$246) && + propKey$230 !== lastProp && + (null != propKey$230 || null != lastProp)) ) - switch (propKey$248) { + switch (propKey$246) { case "selected": domElement.selected = - propKey$232 && - "function" !== typeof propKey$232 && - "symbol" !== typeof propKey$232; + propKey$230 && + "function" !== typeof propKey$230 && + "symbol" !== typeof propKey$230; break; default: setProp( domElement, tag, - propKey$248, - propKey$232, + propKey$246, + propKey$230, nextProps, lastProp ); @@ -15299,32 +15259,32 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$251 in lastProps) - (propKey$232 = lastProps[propKey$251]), - lastProps.hasOwnProperty(propKey$251) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$251) && - setProp(domElement, tag, propKey$251, null, nextProps, propKey$232); - for (var propKey$253 in nextProps) + for (var propKey$249 in lastProps) + (propKey$230 = lastProps[propKey$249]), + lastProps.hasOwnProperty(propKey$249) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$249) && + setProp(domElement, tag, propKey$249, null, nextProps, propKey$230); + for (var propKey$251 in nextProps) if ( - ((propKey$232 = nextProps[propKey$253]), - (lastProp = lastProps[propKey$253]), - nextProps.hasOwnProperty(propKey$253) && - propKey$232 !== lastProp && - (null != propKey$232 || null != lastProp)) + ((propKey$230 = nextProps[propKey$251]), + (lastProp = lastProps[propKey$251]), + nextProps.hasOwnProperty(propKey$251) && + propKey$230 !== lastProp && + (null != propKey$230 || null != lastProp)) ) - switch (propKey$253) { + switch (propKey$251) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$232) + if (null != propKey$230) throw Error(formatProdErrorMessage(137, tag)); break; default: setProp( domElement, tag, - propKey$253, - propKey$232, + propKey$251, + propKey$230, nextProps, lastProp ); @@ -15332,49 +15292,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$256 in lastProps) - (propKey$232 = lastProps[propKey$256]), - lastProps.hasOwnProperty(propKey$256) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$256) && + for (var propKey$254 in lastProps) + (propKey$230 = lastProps[propKey$254]), + lastProps.hasOwnProperty(propKey$254) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$254) && + setPropOnCustomElement( + domElement, + tag, + propKey$254, + null, + nextProps, + propKey$230 + ); + for (var propKey$256 in nextProps) + (propKey$230 = nextProps[propKey$256]), + (lastProp = lastProps[propKey$256]), + !nextProps.hasOwnProperty(propKey$256) || + propKey$230 === lastProp || + (null == propKey$230 && null == lastProp) || setPropOnCustomElement( domElement, tag, propKey$256, - null, - nextProps, - propKey$232 - ); - for (var propKey$258 in nextProps) - (propKey$232 = nextProps[propKey$258]), - (lastProp = lastProps[propKey$258]), - !nextProps.hasOwnProperty(propKey$258) || - propKey$232 === lastProp || - (null == propKey$232 && null == lastProp) || - setPropOnCustomElement( - domElement, - tag, - propKey$258, - propKey$232, + propKey$230, nextProps, lastProp ); return; } } - for (var propKey$261 in lastProps) - (propKey$232 = lastProps[propKey$261]), - lastProps.hasOwnProperty(propKey$261) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$261) && - setProp(domElement, tag, propKey$261, null, nextProps, propKey$232); - for (var propKey$263 in nextProps) - (propKey$232 = nextProps[propKey$263]), - (lastProp = lastProps[propKey$263]), - !nextProps.hasOwnProperty(propKey$263) || - propKey$232 === lastProp || - (null == propKey$232 && null == lastProp) || - setProp(domElement, tag, propKey$263, propKey$232, nextProps, lastProp); + for (var propKey$259 in lastProps) + (propKey$230 = lastProps[propKey$259]), + lastProps.hasOwnProperty(propKey$259) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$259) && + setProp(domElement, tag, propKey$259, null, nextProps, propKey$230); + for (var propKey$261 in nextProps) + (propKey$230 = nextProps[propKey$261]), + (lastProp = lastProps[propKey$261]), + !nextProps.hasOwnProperty(propKey$261) || + propKey$230 === lastProp || + (null == propKey$230 && null == lastProp) || + setProp(domElement, tag, propKey$261, propKey$230, nextProps, lastProp); } function updatePropertiesWithDiff( domElement, @@ -15424,12 +15384,12 @@ function updatePropertiesWithDiff( case "select": for (propKey = 0; propKey < updatePayload.length; propKey += 2) { propValue = updatePayload[propKey]; - var propValue$268 = updatePayload[propKey + 1]; + var propValue$266 = updatePayload[propKey + 1]; switch (propValue) { case "value": break; default: - setProp(domElement, tag, propValue, propValue$268, nextProps, null); + setProp(domElement, tag, propValue, propValue$266, nextProps, null); } } updateSelect(domElement, lastProps, nextProps); @@ -15852,14 +15812,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$285 = getStyleKey(href), + var key$283 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$285); + resource = as.get(key$283); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$285) + getStylesheetSelectorFromKey(key$283) )) ) state.loading = 1; @@ -15870,7 +15830,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$285)) && + (options = preloadPropsMap.get(key$283)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15896,15 +15856,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$285, resource); + as.set(key$283, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$285 = getScriptKey(href)), - (precedence = as.get(key$285)), + (key$283 = getScriptKey(href)), + (precedence = as.get(key$283)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$285 + "script[async]" + key$283 )), precedence || ((href = { @@ -15913,7 +15873,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$285)) && + (options = preloadPropsMap.get(key$283)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15926,13 +15886,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$285, precedence)); + as.set(key$283, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$285 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$285 = - 'link[rel="preload"][as="' + as + '"][href="' + key$285 + '"]'; + key$283 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$283 = + 'link[rel="preload"][as="' + as + '"][href="' + key$283 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15949,7 +15909,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$285) && + null === resourceRoot.querySelector(key$283) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15982,17 +15942,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$294 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$295 = styles$294.get(type); - resource$295 || + var styles$292 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$293 = styles$292.get(type); + resource$293 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$295 = { + (resource$293 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$294.set(type, resource$295), + styles$292.set(type, resource$293), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16007,9 +15967,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$295.state + resource$293.state )); - return resource$295; + return resource$293; } return null; case "script": @@ -16081,36 +16041,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$300 = hoistableRoot.querySelector( + var instance$298 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$300) + if (instance$298) return ( - (resource.instance = instance$300), - markNodeAsHoistable(instance$300), - instance$300 + (resource.instance = instance$298), + markNodeAsHoistable(instance$298), + instance$298 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$300 = ( + instance$298 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$300); - var linkInstance = instance$300; + markNodeAsHoistable(instance$298); + var linkInstance = instance$298; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$300, "link", key); + setInitialProperties(instance$298, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$300, props.precedence, hoistableRoot); - return (resource.instance = instance$300); + insertStylesheet(instance$298, props.precedence, hoistableRoot); + return (resource.instance = instance$298); case "script": - instance$300 = getScriptKey(props.src); + instance$298 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$300 + "script[async]" + instance$298 )) ) return ( @@ -16119,7 +16079,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$300))) + if ((styleProps = preloadPropsMap.get(instance$298))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17070,11 +17030,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$320); + var instance = getPublicRootInstance(root$318); originalCallback.call(instance); }; } - var root$320 = createHydrationContainer( + var root$318 = createHydrationContainer( initialChildren, callback, container, @@ -17086,23 +17046,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$320; - container[internalContainerInstanceKey] = root$320.current; + container._reactRootContainer = root$318; + container[internalContainerInstanceKey] = root$318.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$320; + return root$318; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$321 = callback; + var originalCallback$319 = callback; callback = function () { - var instance = getPublicRootInstance(root$322); - originalCallback$321.call(instance); + var instance = getPublicRootInstance(root$320); + originalCallback$319.call(instance); }; } - var root$322 = createFiberRoot( + var root$320 = createFiberRoot( container, 0, !1, @@ -17114,15 +17074,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$322; - container[internalContainerInstanceKey] = root$322.current; + container._reactRootContainer = root$320; + container[internalContainerInstanceKey] = root$320.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$322, parentComponent, callback); + updateContainer(initialChildren, root$320, parentComponent, callback); }); - return root$322; + return root$320; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -17181,10 +17141,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1928 = { +var devToolsConfig$jscomp$inline_1922 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-ace69857", + version: "18.3.0-www-classic-43e06ed6", rendererPackageName: "react-dom" }; (function (internals) { @@ -17202,10 +17162,10 @@ var devToolsConfig$jscomp$inline_1928 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1928.bundleType, - version: devToolsConfig$jscomp$inline_1928.version, - rendererPackageName: devToolsConfig$jscomp$inline_1928.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1928.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1922.bundleType, + version: devToolsConfig$jscomp$inline_1922.version, + rendererPackageName: devToolsConfig$jscomp$inline_1922.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1922.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -17221,14 +17181,14 @@ var devToolsConfig$jscomp$inline_1928 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1928.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1922.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-ace69857" + reconcilerVersion: "18.3.0-www-classic-43e06ed6" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -17455,7 +17415,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-ace69857"; +exports.version = "18.3.0-www-classic-43e06ed6"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 9b29e68dd8..f234ad209f 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -445,19 +445,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - eventTimes[index$5] = -1; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = root[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + eventTimes[index$4] = -1; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = root[index$4]; if (null !== hiddenUpdatesForLane) for ( - root[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + root[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -466,19 +466,19 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - root[index$7].add(fiber); + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + root[index$6].add(fiber); lanes &= ~lane; } } @@ -490,27 +490,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$8 = 31 - clz32(lanes); - root = 1 << index$8; - index$8 = pendingUpdatersLaneMap[index$8]; - 0 < index$8.size && - (index$8.forEach(function (fiber) { + var index$7 = 31 - clz32(lanes); + root = 1 << index$7; + index$7 = pendingUpdatersLaneMap[index$7]; + 0 < index$7.size && + (index$7.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$8.clear()); + index$7.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - index$10 = root.transitionLanes[index$10]; - null !== index$10 && - index$10.forEach(function (transition) { + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + index$9 = root.transitionLanes[index$9]; + null !== index$9 && + index$9.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -520,10 +520,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - null !== root.transitionLanes[index$11] && - (root.transitionLanes[index$11] = null); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + null !== root.transitionLanes[index$10] && + (root.transitionLanes[index$10] = null); lanes &= ~lane; } } @@ -690,8 +690,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$12 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$12 && "aria-" !== prefix$12) { + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { node.removeAttribute(name); return; } @@ -804,16 +804,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$13) { - control = x$13; + } catch (x$12) { + control = x$12; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$14) { - control = x$14; + } catch (x$13) { + control = x$13; } fn(); } @@ -1209,15 +1209,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$18 in styles) - (styleName = styles[styleName$18]), - styles.hasOwnProperty(styleName$18) && - prevStyles[styleName$18] !== styleName && - setValueForStyle(node, styleName$18, styleName); + for (var styleName$17 in styles) + (styleName = styles[styleName$17]), + styles.hasOwnProperty(styleName$17) && + prevStyles[styleName$17] !== styleName && + setValueForStyle(node, styleName$17, styleName); } else - for (var styleName$19 in styles) - styles.hasOwnProperty(styleName$19) && - setValueForStyle(node, styleName$19, styles[styleName$19]); + for (var styleName$18 in styles) + styles.hasOwnProperty(styleName$18) && + setValueForStyle(node, styleName$18, styles[styleName$18]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1446,36 +1446,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$21 = parentA.child; child$21; ) { - if (child$21 === a) { + for (var didFindChild = !1, child$20 = parentA.child; child$20; ) { + if (child$20 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$21 === b) { + if (child$20 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$21 = child$21.sibling; + child$20 = child$20.sibling; } if (!didFindChild) { - for (child$21 = parentB.child; child$21; ) { - if (child$21 === a) { + for (child$20 = parentB.child; child$20; ) { + if (child$20 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$21 === b) { + if (child$20 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$21 = child$21.sibling; + child$20 = child$20.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -3226,10 +3226,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$47 = thenableIndexCounter; + var index$46 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$47); + usable = trackUsedThenable(thenableState, usable, index$46); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -3717,16 +3717,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$53 = enqueueUpdate(provider, fiber, lane); - if (null !== root$53) { + var root$52 = enqueueUpdate(provider, fiber, lane); + if (null !== root$52) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$53, provider, lane, eventTime); - entangleTransitions(root$53, provider, lane); + scheduleUpdateOnFiber(root$52, provider, lane, eventTime); + entangleTransitions(root$52, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$53 && + null !== root$52 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -3935,15 +3935,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$49 = workInProgressRoot; - if (null === root$49) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$49, renderLanes$1) || + var root$48 = workInProgressRoot; + if (null === root$48) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$48, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$49 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$49; - mountEffect(subscribeToStore.bind(null, fiber, root$49, subscribe), [ + root$48 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$48; + mountEffect(subscribeToStore.bind(null, fiber, root$48, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -3952,7 +3952,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$49, + root$48, getServerSnapshot, getSnapshot ), @@ -4505,10 +4505,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$66 = workInProgress.stateNode; + root$65 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$66.incompleteTransitions.has(transition)) { + if (!root$65.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4516,11 +4516,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$66.incompleteTransitions.set(transition, markerInstance); + root$65.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$66.incompleteTransitions.forEach(function (markerInstance) { + root$65.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5192,14 +5192,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$73 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$73) + var dehydrated$72 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$72) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$73, + dehydrated$72, JSCompiler_temp, renderLanes ); @@ -5209,7 +5209,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$73 = JSCompiler_temp.sibling; + dehydrated$72 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5223,8 +5223,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$73 - ? (showFallback = createWorkInProgress(dehydrated$73, showFallback)) + null !== dehydrated$72 + ? (showFallback = createWorkInProgress(dehydrated$72, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5243,10 +5243,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$73 = CacheContext._currentValue), + ? ((dehydrated$72 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$73 - ? { parent: dehydrated$73, pool: dehydrated$73 } + JSCompiler_temp.parent !== dehydrated$72 + ? { parent: dehydrated$72, pool: dehydrated$72 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5260,23 +5260,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$73 = showFallback.updateQueue), + (dehydrated$72 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$73 + null === dehydrated$72 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$73 === primaryChildProps + : dehydrated$72 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$73.transitions = didSuspend), - (dehydrated$73.markerInstances = JSCompiler_temp)))); + : ((dehydrated$72.transitions = didSuspend), + (dehydrated$72.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6352,14 +6352,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$105 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$105 = lastTailNode), + for (var lastTailNode$104 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$104 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$105 + null === lastTailNode$104 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$105.sibling = null); + : (lastTailNode$104.sibling = null); } } function bubbleProperties(completedWork) { @@ -6371,53 +6371,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$107 = completedWork.selfBaseDuration, - child$108 = completedWork.child; - null !== child$108; + var treeBaseDuration$106 = completedWork.selfBaseDuration, + child$107 = completedWork.child; + null !== child$107; ) - (newChildLanes |= child$108.lanes | child$108.childLanes), - (subtreeFlags |= child$108.subtreeFlags & 31457280), - (subtreeFlags |= child$108.flags & 31457280), - (treeBaseDuration$107 += child$108.treeBaseDuration), - (child$108 = child$108.sibling); - completedWork.treeBaseDuration = treeBaseDuration$107; + (newChildLanes |= child$107.lanes | child$107.childLanes), + (subtreeFlags |= child$107.subtreeFlags & 31457280), + (subtreeFlags |= child$107.flags & 31457280), + (treeBaseDuration$106 += child$107.treeBaseDuration), + (child$107 = child$107.sibling); + completedWork.treeBaseDuration = treeBaseDuration$106; } else for ( - treeBaseDuration$107 = completedWork.child; - null !== treeBaseDuration$107; + treeBaseDuration$106 = completedWork.child; + null !== treeBaseDuration$106; ) (newChildLanes |= - treeBaseDuration$107.lanes | treeBaseDuration$107.childLanes), - (subtreeFlags |= treeBaseDuration$107.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$107.flags & 31457280), - (treeBaseDuration$107.return = completedWork), - (treeBaseDuration$107 = treeBaseDuration$107.sibling); + treeBaseDuration$106.lanes | treeBaseDuration$106.childLanes), + (subtreeFlags |= treeBaseDuration$106.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$106.flags & 31457280), + (treeBaseDuration$106.return = completedWork), + (treeBaseDuration$106 = treeBaseDuration$106.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$107 = completedWork.actualDuration; - child$108 = completedWork.selfBaseDuration; + treeBaseDuration$106 = completedWork.actualDuration; + child$107 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$107 += child.actualDuration), - (child$108 += child.treeBaseDuration), + (treeBaseDuration$106 += child.actualDuration), + (child$107 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$107; - completedWork.treeBaseDuration = child$108; + completedWork.actualDuration = treeBaseDuration$106; + completedWork.treeBaseDuration = child$107; } else for ( - treeBaseDuration$107 = completedWork.child; - null !== treeBaseDuration$107; + treeBaseDuration$106 = completedWork.child; + null !== treeBaseDuration$106; ) (newChildLanes |= - treeBaseDuration$107.lanes | treeBaseDuration$107.childLanes), - (subtreeFlags |= treeBaseDuration$107.subtreeFlags), - (subtreeFlags |= treeBaseDuration$107.flags), - (treeBaseDuration$107.return = completedWork), - (treeBaseDuration$107 = treeBaseDuration$107.sibling); + treeBaseDuration$106.lanes | treeBaseDuration$106.childLanes), + (subtreeFlags |= treeBaseDuration$106.subtreeFlags), + (subtreeFlags |= treeBaseDuration$106.flags), + (treeBaseDuration$106.return = completedWork), + (treeBaseDuration$106 = treeBaseDuration$106.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7202,8 +7202,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$140) { - captureCommitPhaseError(current, nearestMountedAncestor, error$140); + } catch (error$139) { + captureCommitPhaseError(current, nearestMountedAncestor, error$139); } else ref.current = null; } @@ -7240,7 +7240,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$214) { + } catch (e$212) { JSCompiler_temp = null; break a; } @@ -7510,11 +7510,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$142 = commitTime, + var commitTime$141 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$142); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$141); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -7541,8 +7541,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$144) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$144); + } catch (error$143) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$143); } } function commitClassCallbacks(finishedWork) { @@ -7641,11 +7641,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$145) { + } catch (error$144) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$145 + error$144 ); } else { @@ -7662,11 +7662,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$146) { + } catch (error$145) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$146 + error$145 ); } recordLayoutEffectDuration(finishedWork); @@ -7677,11 +7677,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$147) { + } catch (error$146) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$147 + error$146 ); } } @@ -8387,22 +8387,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$162) { + } catch (error$161) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$162 + error$161 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$163) { + } catch (error$162) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$163 + error$162 ); } } @@ -8585,11 +8585,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$164) { + } catch (error$163) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$164 + error$163 ); } break; @@ -8625,8 +8625,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$165) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$165); + } catch (error$164) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$164); } } if ( @@ -8651,8 +8651,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$168) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$168); + } catch (error$167) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$167); } break; case 6: @@ -8665,8 +8665,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$169) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$169); + } catch (error$168) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$168); } } break; @@ -8680,8 +8680,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$170) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$170); + } catch (error$169) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$169); } break; case 4: @@ -8711,8 +8711,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$172) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$172); + } catch (error$171) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$171); } current = finishedWork.updateQueue; null !== current && @@ -8790,11 +8790,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$152) { + } catch (error$151) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$152 + error$151 ); } } else if ( @@ -8869,21 +8869,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$153 = JSCompiler_inline_result.stateNode; + var parent$152 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$153, ""), + (setTextContent(parent$152, ""), (JSCompiler_inline_result.flags &= -33)); - var before$154 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$154, parent$153); + var before$153 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$153, parent$152); break; case 3: case 4: - var parent$155 = JSCompiler_inline_result.stateNode.containerInfo, - before$156 = getHostSibling(finishedWork); + var parent$154 = JSCompiler_inline_result.stateNode.containerInfo, + before$155 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$156, - parent$155 + before$155, + parent$154 ); break; default: @@ -9075,8 +9075,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$178) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$178); + } catch (error$177) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$177); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -9375,9 +9375,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$183 = finishedWork.stateNode; + var instance$182 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$183._visibility & 4 + ? instance$182._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9390,7 +9390,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$183._visibility |= 4), + : ((instance$182._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9398,7 +9398,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$183._visibility |= 4), + : ((instance$182._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9411,7 +9411,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$183 + instance$182 ); break; case 24: @@ -9785,13 +9785,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$191 = firstScheduledRoot; null !== root$191; ) { + for (var root$190 = firstScheduledRoot; null !== root$190; ) { if ( - (!onlyLegacy || 0 === root$191.tag) && + (!onlyLegacy || 0 === root$190.tag) && 0 !== (getNextLanes( - root$191, - root$191 === workInProgressRoot$jscomp$0 + root$190, + root$190 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -9799,7 +9799,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$191; + var root = root$190; currentUpdateIsNested = nestedUpdateScheduled; nestedUpdateScheduled = !1; if (0 !== (executionContext & 6)) @@ -9844,7 +9844,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$191 = root$191.next; + root$190 = root$190.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -9890,12 +9890,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$3 = 31 - clz32(lanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(lanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -9959,8 +9959,7 @@ function scheduleImmediateTask(cb) { : cb(); }); } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -10150,28 +10149,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -10179,30 +10178,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$194 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$193 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$194 && - ((lanes = errorRetryLanes$194), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$193 && + ((lanes = errorRetryLanes$193), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$194 + errorRetryLanes$193 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -10211,16 +10210,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10230,26 +10229,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now$1()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now$1()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10258,48 +10257,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$194 = -1; 0 < exitStatus; ) { - var index$2 = 31 - clz32(exitStatus), - lane = 1 << index$2; - index$2 = errorRetryLanes[index$2]; - index$2 > errorRetryLanes$194 && (errorRetryLanes$194 = index$2); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$194; - exitStatus = now$1() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10308,7 +10268,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10427,9 +10387,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$4 = 31 - clz32(suspendedLanes), - lane = 1 << index$4; - root[index$4] = -1; + var index$3 = 31 - clz32(suspendedLanes), + lane = 1 << index$3; + root[index$3] = -1; suspendedLanes &= ~lane; } } @@ -10638,8 +10598,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$197) { - handleThrow(root, thrownValue$197); + } catch (thrownValue$195) { + handleThrow(root, thrownValue$195); } while (1); resetContextDependencies(); @@ -10756,8 +10716,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$199) { - handleThrow(root, thrownValue$199); + } catch (thrownValue$197) { + handleThrow(root, thrownValue$197); } while (1); resetContextDependencies(); @@ -10940,10 +10900,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$61 = offscreenQueue.retryQueue; - null === retryQueue$61 + var retryQueue$60 = offscreenQueue.retryQueue; + null === retryQueue$60 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$61.add(wakeable); + : retryQueue$60.add(wakeable); } } break; @@ -11154,7 +11114,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$203 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$201 = commitBeforeMutationEffects( root, finishedWork ); @@ -11162,7 +11122,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$203 && + shouldFireAfterActiveInstanceBlur$201 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11256,7 +11216,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$204 = rootWithPendingPassiveEffects, + var root$202 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11272,7 +11232,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$204, remainingLanes); + releaseRootPooledCache(root$202, remainingLanes); } } return !1; @@ -12524,12 +12484,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$207 = fiber.stateNode; - if (root$207.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$207.pendingLanes); + var root$205 = fiber.stateNode; + if (root$205.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$205.pendingLanes); 0 !== lanes && - (markRootEntangled(root$207, lanes | 2), - ensureRootIsScheduled(root$207), + (markRootEntangled(root$205, lanes | 2), + ensureRootIsScheduled(root$205), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13621,19 +13581,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$387; + var JSCompiler_inline_result$jscomp$385; if (canUseDOM) { - var isSupported$jscomp$inline_1672 = "oninput" in document; - if (!isSupported$jscomp$inline_1672) { - var element$jscomp$inline_1673 = document.createElement("div"); - element$jscomp$inline_1673.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1672 = - "function" === typeof element$jscomp$inline_1673.oninput; + var isSupported$jscomp$inline_1666 = "oninput" in document; + if (!isSupported$jscomp$inline_1666) { + var element$jscomp$inline_1667 = document.createElement("div"); + element$jscomp$inline_1667.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1666 = + "function" === typeof element$jscomp$inline_1667.oninput; } - JSCompiler_inline_result$jscomp$387 = isSupported$jscomp$inline_1672; - } else JSCompiler_inline_result$jscomp$387 = !1; + JSCompiler_inline_result$jscomp$385 = isSupported$jscomp$inline_1666; + } else JSCompiler_inline_result$jscomp$385 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$387 && + JSCompiler_inline_result$jscomp$385 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13942,20 +13902,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1713 = 0; - i$jscomp$inline_1713 < simpleEventPluginEvents.length; - i$jscomp$inline_1713++ + var i$jscomp$inline_1707 = 0; + i$jscomp$inline_1707 < simpleEventPluginEvents.length; + i$jscomp$inline_1707++ ) { - var eventName$jscomp$inline_1714 = - simpleEventPluginEvents[i$jscomp$inline_1713], - domEventName$jscomp$inline_1715 = - eventName$jscomp$inline_1714.toLowerCase(), - capitalizedEvent$jscomp$inline_1716 = - eventName$jscomp$inline_1714[0].toUpperCase() + - eventName$jscomp$inline_1714.slice(1); + var eventName$jscomp$inline_1708 = + simpleEventPluginEvents[i$jscomp$inline_1707], + domEventName$jscomp$inline_1709 = + eventName$jscomp$inline_1708.toLowerCase(), + capitalizedEvent$jscomp$inline_1710 = + eventName$jscomp$inline_1708[0].toUpperCase() + + eventName$jscomp$inline_1708.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1715, - "on" + capitalizedEvent$jscomp$inline_1716 + domEventName$jscomp$inline_1709, + "on" + capitalizedEvent$jscomp$inline_1710 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15165,16 +15125,16 @@ function setInitialProperties(domElement, tag, props) { return; case "select": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$224 in props) + for (var propKey$222 in props) if ( - props.hasOwnProperty(propKey$224) && - ((propKey = props[propKey$224]), null != propKey) + props.hasOwnProperty(propKey$222) && + ((propKey = props[propKey$222]), null != propKey) ) - switch (propKey$224) { + switch (propKey$222) { case "value": break; default: - setProp(domElement, tag, propKey$224, propKey, props, null); + setProp(domElement, tag, propKey$222, propKey, props, null); } domElement.multiple = !!props.multiple; tag = props.value; @@ -15185,12 +15145,12 @@ function setInitialProperties(domElement, tag, props) { return; case "textarea": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$226 in props) + for (var propKey$224 in props) if ( - props.hasOwnProperty(propKey$226) && - ((propKey = props[propKey$226]), null != propKey) + props.hasOwnProperty(propKey$224) && + ((propKey = props[propKey$224]), null != propKey) ) - switch (propKey$226) { + switch (propKey$224) { case "value": break; case "children": @@ -15199,18 +15159,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$226, propKey, props); + setProp(domElement, tag, propKey$224, propKey, props); } track(domElement); initTextarea(domElement, props); return; case "option": - for (var propKey$228 in props) + for (var propKey$226 in props) if ( - props.hasOwnProperty(propKey$228) && - ((propKey = props[propKey$228]), null != propKey) + props.hasOwnProperty(propKey$226) && + ((propKey = props[propKey$226]), null != propKey) ) - switch (propKey$228) { + switch (propKey$226) { case "selected": domElement.selected = propKey && @@ -15218,7 +15178,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$228, propKey, props); + setProp(domElement, tag, propKey$226, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -15260,29 +15220,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$230 in props) + for (var propKey$228 in props) if ( - props.hasOwnProperty(propKey$230) && - ((propKey = props[propKey$230]), null != propKey) + props.hasOwnProperty(propKey$228) && + ((propKey = props[propKey$228]), null != propKey) ) - switch (propKey$230) { + switch (propKey$228) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$230, propKey, props, null); + setProp(domElement, tag, propKey$228, propKey, props, null); } return; default: if (isCustomElement(tag)) { - for (var propKey$232 in props) - props.hasOwnProperty(propKey$232) && - ((propKey = props[propKey$232]), + for (var propKey$230 in props) + props.hasOwnProperty(propKey$230) && + ((propKey = props[propKey$230]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$232, + propKey$230, propKey, props, null @@ -15332,15 +15292,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$236 in nextProps) { - lastProp = nextProps[propKey$236]; - var lastProp$237 = lastProps[propKey$236]; + for (var propKey$234 in nextProps) { + lastProp = nextProps[propKey$234]; + var lastProp$235 = lastProps[propKey$234]; if ( - nextProps.hasOwnProperty(propKey$236) && - lastProp !== lastProp$237 && - (null != lastProp || null != lastProp$237) + nextProps.hasOwnProperty(propKey$234) && + lastProp !== lastProp$235 && + (null != lastProp || null != lastProp$235) ) - switch (propKey$236) { + switch (propKey$234) { case "checked": lastProp = null != lastProp ? lastProp : nextProps.defaultChecked; domElement.checked = @@ -15359,43 +15319,43 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$236, + propKey$234, lastProp, nextProps, - lastProp$237 + lastProp$235 ); } } updateInput(domElement, nextProps); return; case "select": - for (var propKey$240 in lastProps) + for (var propKey$238 in lastProps) if ( - ((propKey$236 = lastProps[propKey$240]), - lastProps.hasOwnProperty(propKey$240) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$240)) + ((propKey$234 = lastProps[propKey$238]), + lastProps.hasOwnProperty(propKey$238) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$238)) ) - switch (propKey$240) { + switch (propKey$238) { case "value": break; default: setProp( domElement, tag, - propKey$240, + propKey$238, null, nextProps, - propKey$236 + propKey$234 ); } for (lastProp in nextProps) if ( - ((propKey$236 = nextProps[lastProp]), - (lastProp$237 = lastProps[lastProp]), + ((propKey$234 = nextProps[lastProp]), + (lastProp$235 = lastProps[lastProp]), nextProps.hasOwnProperty(lastProp) && - propKey$236 !== lastProp$237 && - (null != propKey$236 || null != lastProp$237)) + propKey$234 !== lastProp$235 && + (null != propKey$234 || null != lastProp$235)) ) switch (lastProp) { case "value": @@ -15405,22 +15365,22 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, lastProp, - propKey$236, + propKey$234, nextProps, - lastProp$237 + lastProp$235 ); } updateSelect(domElement, lastProps, nextProps); return; case "textarea": - for (var propKey$245 in lastProps) + for (var propKey$243 in lastProps) if ( - ((propKey$236 = lastProps[propKey$245]), - lastProps.hasOwnProperty(propKey$245) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$245)) + ((propKey$234 = lastProps[propKey$243]), + lastProps.hasOwnProperty(propKey$243) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$243)) ) - switch (propKey$245) { + switch (propKey$243) { case "value": break; case "children": @@ -15429,34 +15389,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$245, + propKey$243, null, nextProps, - propKey$236 + propKey$234 ); } - for (lastProp$237 in nextProps) + for (lastProp$235 in nextProps) if ( - ((propKey$236 = nextProps[lastProp$237]), - (lastProp = lastProps[lastProp$237]), - nextProps.hasOwnProperty(lastProp$237) && - propKey$236 !== lastProp && - (null != propKey$236 || null != lastProp)) + ((propKey$234 = nextProps[lastProp$235]), + (lastProp = lastProps[lastProp$235]), + nextProps.hasOwnProperty(lastProp$235) && + propKey$234 !== lastProp && + (null != propKey$234 || null != lastProp)) ) - switch (lastProp$237) { + switch (lastProp$235) { case "value": break; case "children": break; case "dangerouslySetInnerHTML": - if (null != propKey$236) throw Error(formatProdErrorMessage(91)); + if (null != propKey$234) throw Error(formatProdErrorMessage(91)); break; default: setProp( domElement, tag, - lastProp$237, - propKey$236, + lastProp$235, + propKey$234, nextProps, lastProp ); @@ -15464,14 +15424,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { updateTextarea(domElement, nextProps); return; case "option": - for (var propKey$250 in lastProps) + for (var propKey$248 in lastProps) if ( - ((propKey$236 = lastProps[propKey$250]), - lastProps.hasOwnProperty(propKey$250) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$250)) + ((propKey$234 = lastProps[propKey$248]), + lastProps.hasOwnProperty(propKey$248) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$248)) ) - switch (propKey$250) { + switch (propKey$248) { case "selected": domElement.selected = !1; break; @@ -15479,33 +15439,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$250, + propKey$248, null, nextProps, - propKey$236 + propKey$234 ); } - for (var propKey$252 in nextProps) + for (var propKey$250 in nextProps) if ( - ((propKey$236 = nextProps[propKey$252]), - (lastProp = lastProps[propKey$252]), - nextProps.hasOwnProperty(propKey$252) && - propKey$236 !== lastProp && - (null != propKey$236 || null != lastProp)) + ((propKey$234 = nextProps[propKey$250]), + (lastProp = lastProps[propKey$250]), + nextProps.hasOwnProperty(propKey$250) && + propKey$234 !== lastProp && + (null != propKey$234 || null != lastProp)) ) - switch (propKey$252) { + switch (propKey$250) { case "selected": domElement.selected = - propKey$236 && - "function" !== typeof propKey$236 && - "symbol" !== typeof propKey$236; + propKey$234 && + "function" !== typeof propKey$234 && + "symbol" !== typeof propKey$234; break; default: setProp( domElement, tag, - propKey$252, - propKey$236, + propKey$250, + propKey$234, nextProps, lastProp ); @@ -15526,32 +15486,32 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$255 in lastProps) - (propKey$236 = lastProps[propKey$255]), - lastProps.hasOwnProperty(propKey$255) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$255) && - setProp(domElement, tag, propKey$255, null, nextProps, propKey$236); - for (var propKey$257 in nextProps) + for (var propKey$253 in lastProps) + (propKey$234 = lastProps[propKey$253]), + lastProps.hasOwnProperty(propKey$253) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$253) && + setProp(domElement, tag, propKey$253, null, nextProps, propKey$234); + for (var propKey$255 in nextProps) if ( - ((propKey$236 = nextProps[propKey$257]), - (lastProp = lastProps[propKey$257]), - nextProps.hasOwnProperty(propKey$257) && - propKey$236 !== lastProp && - (null != propKey$236 || null != lastProp)) + ((propKey$234 = nextProps[propKey$255]), + (lastProp = lastProps[propKey$255]), + nextProps.hasOwnProperty(propKey$255) && + propKey$234 !== lastProp && + (null != propKey$234 || null != lastProp)) ) - switch (propKey$257) { + switch (propKey$255) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$236) + if (null != propKey$234) throw Error(formatProdErrorMessage(137, tag)); break; default: setProp( domElement, tag, - propKey$257, - propKey$236, + propKey$255, + propKey$234, nextProps, lastProp ); @@ -15559,49 +15519,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$260 in lastProps) - (propKey$236 = lastProps[propKey$260]), - lastProps.hasOwnProperty(propKey$260) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$260) && + for (var propKey$258 in lastProps) + (propKey$234 = lastProps[propKey$258]), + lastProps.hasOwnProperty(propKey$258) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$258) && + setPropOnCustomElement( + domElement, + tag, + propKey$258, + null, + nextProps, + propKey$234 + ); + for (var propKey$260 in nextProps) + (propKey$234 = nextProps[propKey$260]), + (lastProp = lastProps[propKey$260]), + !nextProps.hasOwnProperty(propKey$260) || + propKey$234 === lastProp || + (null == propKey$234 && null == lastProp) || setPropOnCustomElement( domElement, tag, propKey$260, - null, - nextProps, - propKey$236 - ); - for (var propKey$262 in nextProps) - (propKey$236 = nextProps[propKey$262]), - (lastProp = lastProps[propKey$262]), - !nextProps.hasOwnProperty(propKey$262) || - propKey$236 === lastProp || - (null == propKey$236 && null == lastProp) || - setPropOnCustomElement( - domElement, - tag, - propKey$262, - propKey$236, + propKey$234, nextProps, lastProp ); return; } } - for (var propKey$265 in lastProps) - (propKey$236 = lastProps[propKey$265]), - lastProps.hasOwnProperty(propKey$265) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$265) && - setProp(domElement, tag, propKey$265, null, nextProps, propKey$236); - for (var propKey$267 in nextProps) - (propKey$236 = nextProps[propKey$267]), - (lastProp = lastProps[propKey$267]), - !nextProps.hasOwnProperty(propKey$267) || - propKey$236 === lastProp || - (null == propKey$236 && null == lastProp) || - setProp(domElement, tag, propKey$267, propKey$236, nextProps, lastProp); + for (var propKey$263 in lastProps) + (propKey$234 = lastProps[propKey$263]), + lastProps.hasOwnProperty(propKey$263) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$263) && + setProp(domElement, tag, propKey$263, null, nextProps, propKey$234); + for (var propKey$265 in nextProps) + (propKey$234 = nextProps[propKey$265]), + (lastProp = lastProps[propKey$265]), + !nextProps.hasOwnProperty(propKey$265) || + propKey$234 === lastProp || + (null == propKey$234 && null == lastProp) || + setProp(domElement, tag, propKey$265, propKey$234, nextProps, lastProp); } function updatePropertiesWithDiff( domElement, @@ -15651,12 +15611,12 @@ function updatePropertiesWithDiff( case "select": for (propKey = 0; propKey < updatePayload.length; propKey += 2) { propValue = updatePayload[propKey]; - var propValue$272 = updatePayload[propKey + 1]; + var propValue$270 = updatePayload[propKey + 1]; switch (propValue) { case "value": break; default: - setProp(domElement, tag, propValue, propValue$272, nextProps, null); + setProp(domElement, tag, propValue, propValue$270, nextProps, null); } } updateSelect(domElement, lastProps, nextProps); @@ -16065,14 +16025,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$289 = getStyleKey(href), + var key$287 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$289); + resource = as.get(key$287); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$289) + getStylesheetSelectorFromKey(key$287) )) ) state.loading = 1; @@ -16083,7 +16043,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$289)) && + (options = preloadPropsMap.get(key$287)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -16109,15 +16069,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$289, resource); + as.set(key$287, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$289 = getScriptKey(href)), - (precedence = as.get(key$289)), + (key$287 = getScriptKey(href)), + (precedence = as.get(key$287)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$289 + "script[async]" + key$287 )), precedence || ((href = { @@ -16126,7 +16086,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$289)) && + (options = preloadPropsMap.get(key$287)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -16139,13 +16099,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$289, precedence)); + as.set(key$287, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$289 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$289 = - 'link[rel="preload"][as="' + as + '"][href="' + key$289 + '"]'; + key$287 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$287 = + 'link[rel="preload"][as="' + as + '"][href="' + key$287 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -16162,7 +16122,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$289) && + null === resourceRoot.querySelector(key$287) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -16195,17 +16155,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$298 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$299 = styles$298.get(type); - resource$299 || + var styles$296 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$297 = styles$296.get(type); + resource$297 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$299 = { + (resource$297 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$298.set(type, resource$299), + styles$296.set(type, resource$297), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16220,9 +16180,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$299.state + resource$297.state )); - return resource$299; + return resource$297; } return null; case "script": @@ -16294,36 +16254,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$304 = hoistableRoot.querySelector( + var instance$302 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$304) + if (instance$302) return ( - (resource.instance = instance$304), - markNodeAsHoistable(instance$304), - instance$304 + (resource.instance = instance$302), + markNodeAsHoistable(instance$302), + instance$302 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$304 = ( + instance$302 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$304); - var linkInstance = instance$304; + markNodeAsHoistable(instance$302); + var linkInstance = instance$302; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$304, "link", key); + setInitialProperties(instance$302, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$304, props.precedence, hoistableRoot); - return (resource.instance = instance$304); + insertStylesheet(instance$302, props.precedence, hoistableRoot); + return (resource.instance = instance$302); case "script": - instance$304 = getScriptKey(props.src); + instance$302 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$304 + "script[async]" + instance$302 )) ) return ( @@ -16332,7 +16292,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$304))) + if ((styleProps = preloadPropsMap.get(instance$302))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16702,10 +16662,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1886 = { +var devToolsConfig$jscomp$inline_1880 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-431ec1d4", + version: "18.3.0-www-modern-8e733635", rendererPackageName: "react-dom" }; (function (internals) { @@ -16723,10 +16683,10 @@ var devToolsConfig$jscomp$inline_1886 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1886.bundleType, - version: devToolsConfig$jscomp$inline_1886.version, - rendererPackageName: devToolsConfig$jscomp$inline_1886.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1886.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1880.bundleType, + version: devToolsConfig$jscomp$inline_1880.version, + rendererPackageName: devToolsConfig$jscomp$inline_1880.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1880.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16743,14 +16703,14 @@ var devToolsConfig$jscomp$inline_1886 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1886.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1880.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-431ec1d4" + reconcilerVersion: "18.3.0-www-modern-8e733635" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -16906,7 +16866,7 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-431ec1d4"; +exports.version = "18.3.0-www-modern-8e733635"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 449a532b27..3b78426314 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -2073,24 +2073,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -32742,7 +32724,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -33578,37 +33559,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -35872,32 +35822,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; @@ -37622,7 +37547,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-01e3a587"; +var ReactVersion = "18.3.0-www-classic-e96410ff"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 3fc9fb5878..0f6711b83b 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -1377,24 +1377,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -29479,7 +29461,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -30315,37 +30296,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -32604,32 +32554,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; @@ -34354,7 +34279,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-ffbb36ea"; +var ReactVersion = "18.3.0-www-modern-1d5f900e"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 9752a19a78..660a597691 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -604,19 +604,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - eventTimes[index$5] = -1; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = root[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + eventTimes[index$4] = -1; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = root[index$4]; if (null !== hiddenUpdatesForLane) for ( - root[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + root[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -625,21 +625,21 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - index$8 = root.transitionLanes[index$8]; - null !== index$8 && - index$8.forEach(function (transition) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + index$7 = root.transitionLanes[index$7]; + null !== index$7 && + index$7.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -649,10 +649,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + null !== root.transitionLanes[index$8] && + (root.transitionLanes[index$8] = null); lanes &= ~lane; } } @@ -734,8 +734,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$10 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$10 && "aria-" !== prefix$10) { + var prefix$9 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$9 && "aria-" !== prefix$9) { node.removeAttribute(name); return; } @@ -817,16 +817,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$11) { - control = x$11; + } catch (x$10) { + control = x$10; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$12) { - control = x$12; + } catch (x$11) { + control = x$11; } fn(); } @@ -1232,15 +1232,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$16 in styles) - (styleName = styles[styleName$16]), - styles.hasOwnProperty(styleName$16) && - prevStyles[styleName$16] !== styleName && - setValueForStyle(node, styleName$16, styleName); + for (var styleName$15 in styles) + (styleName = styles[styleName$15]), + styles.hasOwnProperty(styleName$15) && + prevStyles[styleName$15] !== styleName && + setValueForStyle(node, styleName$15, styleName); } else - for (var styleName$17 in styles) - styles.hasOwnProperty(styleName$17) && - setValueForStyle(node, styleName$17, styles[styleName$17]); + for (var styleName$16 in styles) + styles.hasOwnProperty(styleName$16) && + setValueForStyle(node, styleName$16, styles[styleName$16]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1731,16 +1731,16 @@ function setInitialProperties(domElement, tag, props) { return; case "select": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$21 in props) + for (var propKey$20 in props) if ( - props.hasOwnProperty(propKey$21) && - ((propKey = props[propKey$21]), null != propKey) + props.hasOwnProperty(propKey$20) && + ((propKey = props[propKey$20]), null != propKey) ) - switch (propKey$21) { + switch (propKey$20) { case "value": break; default: - setProp(domElement, tag, propKey$21, propKey, props, null); + setProp(domElement, tag, propKey$20, propKey, props, null); } domElement.multiple = !!props.multiple; tag = props.value; @@ -1751,12 +1751,12 @@ function setInitialProperties(domElement, tag, props) { return; case "textarea": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$23 in props) + for (var propKey$22 in props) if ( - props.hasOwnProperty(propKey$23) && - ((propKey = props[propKey$23]), null != propKey) + props.hasOwnProperty(propKey$22) && + ((propKey = props[propKey$22]), null != propKey) ) - switch (propKey$23) { + switch (propKey$22) { case "value": break; case "children": @@ -1765,18 +1765,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$23, propKey, props); + setProp(domElement, tag, propKey$22, propKey, props); } track(domElement); initTextarea(domElement, props); return; case "option": - for (var propKey$25 in props) + for (var propKey$24 in props) if ( - props.hasOwnProperty(propKey$25) && - ((propKey = props[propKey$25]), null != propKey) + props.hasOwnProperty(propKey$24) && + ((propKey = props[propKey$24]), null != propKey) ) - switch (propKey$25) { + switch (propKey$24) { case "selected": domElement.selected = propKey && @@ -1784,7 +1784,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$25, propKey, props); + setProp(domElement, tag, propKey$24, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -1826,29 +1826,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$27 in props) + for (var propKey$26 in props) if ( - props.hasOwnProperty(propKey$27) && - ((propKey = props[propKey$27]), null != propKey) + props.hasOwnProperty(propKey$26) && + ((propKey = props[propKey$26]), null != propKey) ) - switch (propKey$27) { + switch (propKey$26) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$27, propKey, props, null); + setProp(domElement, tag, propKey$26, propKey, props, null); } return; default: if (isCustomElement(tag)) { - for (var propKey$29 in props) - props.hasOwnProperty(propKey$29) && - ((propKey = props[propKey$29]), + for (var propKey$28 in props) + props.hasOwnProperty(propKey$28) && + ((propKey = props[propKey$28]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$29, + propKey$28, propKey, props, null @@ -1898,15 +1898,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$33 in nextProps) { - lastProp = nextProps[propKey$33]; - var lastProp$34 = lastProps[propKey$33]; + for (var propKey$32 in nextProps) { + lastProp = nextProps[propKey$32]; + var lastProp$33 = lastProps[propKey$32]; if ( - nextProps.hasOwnProperty(propKey$33) && - lastProp !== lastProp$34 && - (null != lastProp || null != lastProp$34) + nextProps.hasOwnProperty(propKey$32) && + lastProp !== lastProp$33 && + (null != lastProp || null != lastProp$33) ) - switch (propKey$33) { + switch (propKey$32) { case "checked": lastProp = null != lastProp ? lastProp : nextProps.defaultChecked; domElement.checked = @@ -1925,36 +1925,36 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$33, + propKey$32, lastProp, nextProps, - lastProp$34 + lastProp$33 ); } } updateInput(domElement, nextProps); return; case "select": - for (var propKey$37 in lastProps) + for (var propKey$36 in lastProps) if ( - ((propKey$33 = lastProps[propKey$37]), - lastProps.hasOwnProperty(propKey$37) && - null != propKey$33 && - !nextProps.hasOwnProperty(propKey$37)) + ((propKey$32 = lastProps[propKey$36]), + lastProps.hasOwnProperty(propKey$36) && + null != propKey$32 && + !nextProps.hasOwnProperty(propKey$36)) ) - switch (propKey$37) { + switch (propKey$36) { case "value": break; default: - setProp(domElement, tag, propKey$37, null, nextProps, propKey$33); + setProp(domElement, tag, propKey$36, null, nextProps, propKey$32); } for (lastProp in nextProps) if ( - ((propKey$33 = nextProps[lastProp]), - (lastProp$34 = lastProps[lastProp]), + ((propKey$32 = nextProps[lastProp]), + (lastProp$33 = lastProps[lastProp]), nextProps.hasOwnProperty(lastProp) && - propKey$33 !== lastProp$34 && - (null != propKey$33 || null != lastProp$34)) + propKey$32 !== lastProp$33 && + (null != propKey$32 || null != lastProp$33)) ) switch (lastProp) { case "value": @@ -1964,51 +1964,51 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, lastProp, - propKey$33, + propKey$32, nextProps, - lastProp$34 + lastProp$33 ); } updateSelect(domElement, lastProps, nextProps); return; case "textarea": - for (var propKey$42 in lastProps) + for (var propKey$41 in lastProps) if ( - ((propKey$33 = lastProps[propKey$42]), - lastProps.hasOwnProperty(propKey$42) && - null != propKey$33 && - !nextProps.hasOwnProperty(propKey$42)) + ((propKey$32 = lastProps[propKey$41]), + lastProps.hasOwnProperty(propKey$41) && + null != propKey$32 && + !nextProps.hasOwnProperty(propKey$41)) ) - switch (propKey$42) { + switch (propKey$41) { case "value": break; case "children": break; default: - setProp(domElement, tag, propKey$42, null, nextProps, propKey$33); + setProp(domElement, tag, propKey$41, null, nextProps, propKey$32); } - for (lastProp$34 in nextProps) + for (lastProp$33 in nextProps) if ( - ((propKey$33 = nextProps[lastProp$34]), - (lastProp = lastProps[lastProp$34]), - nextProps.hasOwnProperty(lastProp$34) && - propKey$33 !== lastProp && - (null != propKey$33 || null != lastProp)) + ((propKey$32 = nextProps[lastProp$33]), + (lastProp = lastProps[lastProp$33]), + nextProps.hasOwnProperty(lastProp$33) && + propKey$32 !== lastProp && + (null != propKey$32 || null != lastProp)) ) - switch (lastProp$34) { + switch (lastProp$33) { case "value": break; case "children": break; case "dangerouslySetInnerHTML": - if (null != propKey$33) throw Error(formatProdErrorMessage(91)); + if (null != propKey$32) throw Error(formatProdErrorMessage(91)); break; default: setProp( domElement, tag, - lastProp$34, - propKey$33, + lastProp$33, + propKey$32, nextProps, lastProp ); @@ -2016,41 +2016,41 @@ function updateProperties(domElement, tag, lastProps, nextProps) { updateTextarea(domElement, nextProps); return; case "option": - for (var propKey$47 in lastProps) + for (var propKey$46 in lastProps) if ( - ((propKey$33 = lastProps[propKey$47]), - lastProps.hasOwnProperty(propKey$47) && - null != propKey$33 && - !nextProps.hasOwnProperty(propKey$47)) + ((propKey$32 = lastProps[propKey$46]), + lastProps.hasOwnProperty(propKey$46) && + null != propKey$32 && + !nextProps.hasOwnProperty(propKey$46)) ) - switch (propKey$47) { + switch (propKey$46) { case "selected": domElement.selected = !1; break; default: - setProp(domElement, tag, propKey$47, null, nextProps, propKey$33); + setProp(domElement, tag, propKey$46, null, nextProps, propKey$32); } - for (var propKey$49 in nextProps) + for (var propKey$48 in nextProps) if ( - ((propKey$33 = nextProps[propKey$49]), - (lastProp = lastProps[propKey$49]), - nextProps.hasOwnProperty(propKey$49) && - propKey$33 !== lastProp && - (null != propKey$33 || null != lastProp)) + ((propKey$32 = nextProps[propKey$48]), + (lastProp = lastProps[propKey$48]), + nextProps.hasOwnProperty(propKey$48) && + propKey$32 !== lastProp && + (null != propKey$32 || null != lastProp)) ) - switch (propKey$49) { + switch (propKey$48) { case "selected": domElement.selected = - propKey$33 && - "function" !== typeof propKey$33 && - "symbol" !== typeof propKey$33; + propKey$32 && + "function" !== typeof propKey$32 && + "symbol" !== typeof propKey$32; break; default: setProp( domElement, tag, - propKey$49, - propKey$33, + propKey$48, + propKey$32, nextProps, lastProp ); @@ -2071,32 +2071,32 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$52 in lastProps) - (propKey$33 = lastProps[propKey$52]), - lastProps.hasOwnProperty(propKey$52) && - null != propKey$33 && - !nextProps.hasOwnProperty(propKey$52) && - setProp(domElement, tag, propKey$52, null, nextProps, propKey$33); - for (var propKey$54 in nextProps) + for (var propKey$51 in lastProps) + (propKey$32 = lastProps[propKey$51]), + lastProps.hasOwnProperty(propKey$51) && + null != propKey$32 && + !nextProps.hasOwnProperty(propKey$51) && + setProp(domElement, tag, propKey$51, null, nextProps, propKey$32); + for (var propKey$53 in nextProps) if ( - ((propKey$33 = nextProps[propKey$54]), - (lastProp = lastProps[propKey$54]), - nextProps.hasOwnProperty(propKey$54) && - propKey$33 !== lastProp && - (null != propKey$33 || null != lastProp)) + ((propKey$32 = nextProps[propKey$53]), + (lastProp = lastProps[propKey$53]), + nextProps.hasOwnProperty(propKey$53) && + propKey$32 !== lastProp && + (null != propKey$32 || null != lastProp)) ) - switch (propKey$54) { + switch (propKey$53) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$33) + if (null != propKey$32) throw Error(formatProdErrorMessage(137, tag)); break; default: setProp( domElement, tag, - propKey$54, - propKey$33, + propKey$53, + propKey$32, nextProps, lastProp ); @@ -2104,49 +2104,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$57 in lastProps) - (propKey$33 = lastProps[propKey$57]), - lastProps.hasOwnProperty(propKey$57) && - null != propKey$33 && - !nextProps.hasOwnProperty(propKey$57) && + for (var propKey$56 in lastProps) + (propKey$32 = lastProps[propKey$56]), + lastProps.hasOwnProperty(propKey$56) && + null != propKey$32 && + !nextProps.hasOwnProperty(propKey$56) && setPropOnCustomElement( domElement, tag, - propKey$57, + propKey$56, null, nextProps, - propKey$33 + propKey$32 ); - for (var propKey$59 in nextProps) - (propKey$33 = nextProps[propKey$59]), - (lastProp = lastProps[propKey$59]), - !nextProps.hasOwnProperty(propKey$59) || - propKey$33 === lastProp || - (null == propKey$33 && null == lastProp) || + for (var propKey$58 in nextProps) + (propKey$32 = nextProps[propKey$58]), + (lastProp = lastProps[propKey$58]), + !nextProps.hasOwnProperty(propKey$58) || + propKey$32 === lastProp || + (null == propKey$32 && null == lastProp) || setPropOnCustomElement( domElement, tag, - propKey$59, - propKey$33, + propKey$58, + propKey$32, nextProps, lastProp ); return; } } - for (var propKey$62 in lastProps) - (propKey$33 = lastProps[propKey$62]), - lastProps.hasOwnProperty(propKey$62) && - null != propKey$33 && - !nextProps.hasOwnProperty(propKey$62) && - setProp(domElement, tag, propKey$62, null, nextProps, propKey$33); - for (var propKey$64 in nextProps) - (propKey$33 = nextProps[propKey$64]), - (lastProp = lastProps[propKey$64]), - !nextProps.hasOwnProperty(propKey$64) || - propKey$33 === lastProp || - (null == propKey$33 && null == lastProp) || - setProp(domElement, tag, propKey$64, propKey$33, nextProps, lastProp); + for (var propKey$61 in lastProps) + (propKey$32 = lastProps[propKey$61]), + lastProps.hasOwnProperty(propKey$61) && + null != propKey$32 && + !nextProps.hasOwnProperty(propKey$61) && + setProp(domElement, tag, propKey$61, null, nextProps, propKey$32); + for (var propKey$63 in nextProps) + (propKey$32 = nextProps[propKey$63]), + (lastProp = lastProps[propKey$63]), + !nextProps.hasOwnProperty(propKey$63) || + propKey$32 === lastProp || + (null == propKey$32 && null == lastProp) || + setProp(domElement, tag, propKey$63, propKey$32, nextProps, lastProp); } function updatePropertiesWithDiff( domElement, @@ -2196,12 +2196,12 @@ function updatePropertiesWithDiff( case "select": for (propKey = 0; propKey < updatePayload.length; propKey += 2) { propValue = updatePayload[propKey]; - var propValue$69 = updatePayload[propKey + 1]; + var propValue$68 = updatePayload[propKey + 1]; switch (propValue) { case "value": break; default: - setProp(domElement, tag, propValue, propValue$69, nextProps, null); + setProp(domElement, tag, propValue, propValue$68, nextProps, null); } } updateSelect(domElement, lastProps, nextProps); @@ -4145,10 +4145,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$110 = thenableIndexCounter; + var index$109 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$110); + usable = trackUsedThenable(thenableState, usable, index$109); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -4636,16 +4636,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$116 = enqueueUpdate(provider, fiber, lane); - if (null !== root$116) { + var root$115 = enqueueUpdate(provider, fiber, lane); + if (null !== root$115) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$116, provider, lane, eventTime); - entangleTransitions(root$116, provider, lane); + scheduleUpdateOnFiber(root$115, provider, lane, eventTime); + entangleTransitions(root$115, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$116 && + null !== root$115 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4852,15 +4852,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$112 = workInProgressRoot; - if (null === root$112) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$112, renderLanes$1) || + var root$111 = workInProgressRoot; + if (null === root$111) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$111, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$112 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$112; - mountEffect(subscribeToStore.bind(null, fiber, root$112, subscribe), [ + root$111 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$111; + mountEffect(subscribeToStore.bind(null, fiber, root$111, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4869,7 +4869,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$112, + root$111, getServerSnapshot, getSnapshot ), @@ -5368,10 +5368,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$127 = workInProgress.stateNode; + root$126 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$127.incompleteTransitions.has(transition)) { + if (!root$126.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5379,11 +5379,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$127.incompleteTransitions.set(transition, markerInstance); + root$126.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$127.incompleteTransitions.forEach(function (markerInstance) { + root$126.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -6080,14 +6080,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$134 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$134) + var dehydrated$133 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$133) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$134, + dehydrated$133, JSCompiler_temp, renderLanes ); @@ -6097,7 +6097,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$134 = JSCompiler_temp.sibling; + dehydrated$133 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -6106,8 +6106,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$134 - ? (showFallback = createWorkInProgress(dehydrated$134, showFallback)) + null !== dehydrated$133 + ? (showFallback = createWorkInProgress(dehydrated$133, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -6126,10 +6126,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$134 = CacheContext._currentValue), + ? ((dehydrated$133 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$134 - ? { parent: dehydrated$134, pool: dehydrated$134 } + JSCompiler_temp.parent !== dehydrated$133 + ? { parent: dehydrated$133, pool: dehydrated$133 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -6143,23 +6143,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$134 = showFallback.updateQueue), + (dehydrated$133 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$134 + null === dehydrated$133 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$134 === primaryChildProps + : dehydrated$133 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$134.transitions = didSuspend), - (dehydrated$134.markerInstances = JSCompiler_temp)))); + : ((dehydrated$133.transitions = didSuspend), + (dehydrated$133.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -7226,14 +7226,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$165 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$165 = lastTailNode), + for (var lastTailNode$164 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$164 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$165 + null === lastTailNode$164 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$165.sibling = null); + : (lastTailNode$164.sibling = null); } } function bubbleProperties(completedWork) { @@ -7243,19 +7243,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$166 = completedWork.child; null !== child$166; ) - (newChildLanes |= child$166.lanes | child$166.childLanes), - (subtreeFlags |= child$166.subtreeFlags & 31457280), - (subtreeFlags |= child$166.flags & 31457280), - (child$166.return = completedWork), - (child$166 = child$166.sibling); + for (var child$165 = completedWork.child; null !== child$165; ) + (newChildLanes |= child$165.lanes | child$165.childLanes), + (subtreeFlags |= child$165.subtreeFlags & 31457280), + (subtreeFlags |= child$165.flags & 31457280), + (child$165.return = completedWork), + (child$165 = child$165.sibling); else - for (child$166 = completedWork.child; null !== child$166; ) - (newChildLanes |= child$166.lanes | child$166.childLanes), - (subtreeFlags |= child$166.subtreeFlags), - (subtreeFlags |= child$166.flags), - (child$166.return = completedWork), - (child$166 = child$166.sibling); + for (child$165 = completedWork.child; null !== child$165; ) + (newChildLanes |= child$165.lanes | child$165.childLanes), + (subtreeFlags |= child$165.subtreeFlags), + (subtreeFlags |= child$165.flags), + (child$165.return = completedWork), + (child$165 = child$165.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7993,8 +7993,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$196) { - captureCommitPhaseError(current, nearestMountedAncestor, error$196); + } catch (error$195) { + captureCommitPhaseError(current, nearestMountedAncestor, error$195); } else ref.current = null; } @@ -8031,7 +8031,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$256) { + } catch (e$254) { JSCompiler_temp = null; break a; } @@ -8297,11 +8297,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$198) { + } catch (error$197) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$198 + error$197 ); } } @@ -8981,8 +8981,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$211) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$211); + } catch (error$210) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$210); } } break; @@ -9164,11 +9164,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$212) { + } catch (error$211) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$212 + error$211 ); } break; @@ -9204,8 +9204,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$213) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$213); + } catch (error$212) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$212); } } if ( @@ -9230,8 +9230,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$216) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$216); + } catch (error$215) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$215); } break; case 6: @@ -9244,8 +9244,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$217) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$217); + } catch (error$216) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$216); } } break; @@ -9259,8 +9259,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$218) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$218); + } catch (error$217) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$217); } break; case 4: @@ -9290,8 +9290,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$220) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$220); + } catch (error$219) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$219); } current = finishedWork.updateQueue; null !== current && @@ -9369,11 +9369,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$201) { + } catch (error$200) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$201 + error$200 ); } } else if ( @@ -9448,21 +9448,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$202 = JSCompiler_inline_result.stateNode; + var parent$201 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$202, ""), + (setTextContent(parent$201, ""), (JSCompiler_inline_result.flags &= -33)); - var before$203 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$203, parent$202); + var before$202 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$202, parent$201); break; case 3: case 4: - var parent$204 = JSCompiler_inline_result.stateNode.containerInfo, - before$205 = getHostSibling(finishedWork); + var parent$203 = JSCompiler_inline_result.stateNode.containerInfo, + before$204 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$205, - parent$204 + before$204, + parent$203 ); break; default: @@ -9932,9 +9932,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$230 = finishedWork.stateNode; + var instance$229 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$230._visibility & 4 + ? instance$229._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9947,7 +9947,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$230._visibility |= 4), + : ((instance$229._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9955,7 +9955,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$230._visibility |= 4), + : ((instance$229._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9968,7 +9968,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$230 + instance$229 ); break; case 24: @@ -10509,13 +10509,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$239 = firstScheduledRoot; null !== root$239; ) { + for (var root$238 = firstScheduledRoot; null !== root$238; ) { if ( - (!onlyLegacy || 0 === root$239.tag) && + (!onlyLegacy || 0 === root$238.tag) && 0 !== (getNextLanes( - root$239, - root$239 === workInProgressRoot$jscomp$0 + root$238, + root$238 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -10523,7 +10523,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$239; + var root = root$238; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -10566,7 +10566,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$239 = root$239.next; + root$238 = root$238.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -10612,12 +10612,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$3 = 31 - clz32(lanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(lanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -10681,8 +10681,7 @@ function scheduleImmediateTask(cb) { : cb(); }); } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -10821,11 +10820,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; + index$6 = 31 - clz32(lane), + transitions = transitionLanesMap[index$6]; null === transitions && (transitions = new Set()); transitions.add(eventTime); - transitionLanesMap[index$7] = transitions; + transitionLanesMap[index$6] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -10852,28 +10851,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -10881,30 +10880,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$242 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$241 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$242 && - ((lanes = errorRetryLanes$242), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$241 && + ((lanes = errorRetryLanes$241), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$242 + errorRetryLanes$241 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -10913,16 +10912,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10932,26 +10931,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10960,48 +10959,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$242 = -1; 0 < exitStatus; ) { - var index$2 = 31 - clz32(exitStatus), - lane = 1 << index$2; - index$2 = errorRetryLanes[index$2]; - index$2 > errorRetryLanes$242 && (errorRetryLanes$242 = index$2); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$242; - exitStatus = now() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -11010,7 +10970,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -11129,9 +11089,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$4 = 31 - clz32(suspendedLanes), - lane = 1 << index$4; - root[index$4] = -1; + var index$3 = 31 - clz32(suspendedLanes), + lane = 1 << index$3; + root[index$3] = -1; suspendedLanes &= ~lane; } } @@ -11301,8 +11261,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$245) { - handleThrow(root, thrownValue$245); + } catch (thrownValue$243) { + handleThrow(root, thrownValue$243); } while (1); resetContextDependencies(); @@ -11408,8 +11368,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$247) { - handleThrow(root, thrownValue$247); + } catch (thrownValue$245) { + handleThrow(root, thrownValue$245); } while (1); resetContextDependencies(); @@ -11576,10 +11536,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$122 = offscreenQueue.retryQueue; - null === retryQueue$122 + var retryQueue$121 = offscreenQueue.retryQueue; + null === retryQueue$121 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$122.add(wakeable); + : retryQueue$121.add(wakeable); } } break; @@ -11776,12 +11736,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$251 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$249 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$251 && + shouldFireAfterActiveInstanceBlur$249 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11860,7 +11820,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$252 = rootWithPendingPassiveEffects, + var root$250 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11876,7 +11836,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$252, remainingLanes); + releaseRootPooledCache(root$250, remainingLanes); } } return !1; @@ -13179,12 +13139,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$254 = fiber.stateNode; - if (root$254.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$254.pendingLanes); + var root$252 = fiber.stateNode; + if (root$252.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$252.pendingLanes); 0 !== lanes && - (markRootEntangled(root$254, lanes | 2), - ensureRootIsScheduled(root$254), + (markRootEntangled(root$252, lanes | 2), + ensureRootIsScheduled(root$252), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13756,19 +13716,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$372; + var JSCompiler_inline_result$jscomp$370; if (canUseDOM) { - var isSupported$jscomp$inline_1651 = "oninput" in document; - if (!isSupported$jscomp$inline_1651) { - var element$jscomp$inline_1652 = document.createElement("div"); - element$jscomp$inline_1652.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1651 = - "function" === typeof element$jscomp$inline_1652.oninput; + var isSupported$jscomp$inline_1645 = "oninput" in document; + if (!isSupported$jscomp$inline_1645) { + var element$jscomp$inline_1646 = document.createElement("div"); + element$jscomp$inline_1646.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1645 = + "function" === typeof element$jscomp$inline_1646.oninput; } - JSCompiler_inline_result$jscomp$372 = isSupported$jscomp$inline_1651; - } else JSCompiler_inline_result$jscomp$372 = !1; + JSCompiler_inline_result$jscomp$370 = isSupported$jscomp$inline_1645; + } else JSCompiler_inline_result$jscomp$370 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$372 && + JSCompiler_inline_result$jscomp$370 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -14077,20 +14037,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1692 = 0; - i$jscomp$inline_1692 < simpleEventPluginEvents.length; - i$jscomp$inline_1692++ + var i$jscomp$inline_1686 = 0; + i$jscomp$inline_1686 < simpleEventPluginEvents.length; + i$jscomp$inline_1686++ ) { - var eventName$jscomp$inline_1693 = - simpleEventPluginEvents[i$jscomp$inline_1692], - domEventName$jscomp$inline_1694 = - eventName$jscomp$inline_1693.toLowerCase(), - capitalizedEvent$jscomp$inline_1695 = - eventName$jscomp$inline_1693[0].toUpperCase() + - eventName$jscomp$inline_1693.slice(1); + var eventName$jscomp$inline_1687 = + simpleEventPluginEvents[i$jscomp$inline_1686], + domEventName$jscomp$inline_1688 = + eventName$jscomp$inline_1687.toLowerCase(), + capitalizedEvent$jscomp$inline_1689 = + eventName$jscomp$inline_1687[0].toUpperCase() + + eventName$jscomp$inline_1687.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1694, - "on" + capitalizedEvent$jscomp$inline_1695 + domEventName$jscomp$inline_1688, + "on" + capitalizedEvent$jscomp$inline_1689 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14992,11 +14952,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$264); + var instance = getPublicRootInstance(root$262); originalCallback.call(instance); }; } - var root$264 = createHydrationContainer( + var root$262 = createHydrationContainer( initialChildren, callback, container, @@ -15008,23 +14968,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$264; - container[internalContainerInstanceKey] = root$264.current; + container._reactRootContainer = root$262; + container[internalContainerInstanceKey] = root$262.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$264; + return root$262; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$265 = callback; + var originalCallback$263 = callback; callback = function () { - var instance = getPublicRootInstance(root$266); - originalCallback$265.call(instance); + var instance = getPublicRootInstance(root$264); + originalCallback$263.call(instance); }; } - var root$266 = createFiberRoot( + var root$264 = createFiberRoot( container, 0, !1, @@ -15036,15 +14996,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$266; - container[internalContainerInstanceKey] = root$266.current; + container._reactRootContainer = root$264; + container[internalContainerInstanceKey] = root$264.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$266, parentComponent, callback); + updateContainer(initialChildren, root$264, parentComponent, callback); }); - return root$266; + return root$264; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -15103,17 +15063,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1806 = { +var devToolsConfig$jscomp$inline_1800 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-26b068f9", + version: "18.3.0-www-classic-ab122236", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2248 = { - bundleType: devToolsConfig$jscomp$inline_1806.bundleType, - version: devToolsConfig$jscomp$inline_1806.version, - rendererPackageName: devToolsConfig$jscomp$inline_1806.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1806.rendererConfig, +var internals$jscomp$inline_2233 = { + bundleType: devToolsConfig$jscomp$inline_1800.bundleType, + version: devToolsConfig$jscomp$inline_1800.version, + rendererPackageName: devToolsConfig$jscomp$inline_1800.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1800.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15129,26 +15089,26 @@ var internals$jscomp$inline_2248 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1806.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1800.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-26b068f9" + reconcilerVersion: "18.3.0-www-classic-ab122236" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2249 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2234 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2249.isDisabled && - hook$jscomp$inline_2249.supportsFiber + !hook$jscomp$inline_2234.isDisabled && + hook$jscomp$inline_2234.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2249.inject( - internals$jscomp$inline_2248 + (rendererID = hook$jscomp$inline_2234.inject( + internals$jscomp$inline_2233 )), - (injectedHook = hook$jscomp$inline_2249); + (injectedHook = hook$jscomp$inline_2234); } catch (err) {} } var tagToRoleMappings = { @@ -15622,14 +15582,14 @@ function preinit(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$269 = getStyleKey(href), + var key$267 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$269); + resource = as.get(key$267); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$269) + getStylesheetSelectorFromKey(key$267) )) ) state.loading = 1; @@ -15640,7 +15600,7 @@ function preinit(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$269)) && + (options = preloadPropsMap.get(key$267)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15666,15 +15626,15 @@ function preinit(href, options) { count: 1, state: state }; - as.set(key$269, resource); + as.set(key$267, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$269 = getScriptKey(href)), - (precedence = as.get(key$269)), + (key$267 = getScriptKey(href)), + (precedence = as.get(key$267)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$269 + "script[async]" + key$267 )), precedence || ((href = { @@ -15683,7 +15643,7 @@ function preinit(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$269)) && + (options = preloadPropsMap.get(key$267)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15696,13 +15656,13 @@ function preinit(href, options) { count: 1, state: null }), - as.set(key$269, precedence)); + as.set(key$267, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$269 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$269 = - 'link[rel="preload"][as="' + as + '"][href="' + key$269 + '"]'; + key$267 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$267 = + 'link[rel="preload"][as="' + as + '"][href="' + key$267 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15719,7 +15679,7 @@ function preinit(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$269) && + null === resourceRoot.querySelector(key$267) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15752,17 +15712,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$278 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$279 = styles$278.get(type); - resource$279 || + var styles$276 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$277 = styles$276.get(type); + resource$277 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$279 = { + (resource$277 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$278.set(type, resource$279), + styles$276.set(type, resource$277), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15777,9 +15737,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$279.state + resource$277.state )); - return resource$279; + return resource$277; } return null; case "script": @@ -15851,36 +15811,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$284 = hoistableRoot.querySelector( + var instance$282 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$284) + if (instance$282) return ( - (resource.instance = instance$284), - markNodeAsHoistable(instance$284), - instance$284 + (resource.instance = instance$282), + markNodeAsHoistable(instance$282), + instance$282 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$284 = ( + instance$282 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$284); - var linkInstance = instance$284; + markNodeAsHoistable(instance$282); + var linkInstance = instance$282; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$284, "link", key); + setInitialProperties(instance$282, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$284, props.precedence, hoistableRoot); - return (resource.instance = instance$284); + insertStylesheet(instance$282, props.precedence, hoistableRoot); + return (resource.instance = instance$282); case "script": - instance$284 = getScriptKey(props.src); + instance$282 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$284 + "script[async]" + instance$282 )) ) return ( @@ -15889,7 +15849,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$284))) + if ((styleProps = preloadPropsMap.get(instance$282))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17138,4 +17098,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-26b068f9"; +exports.version = "18.3.0-www-classic-ab122236"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index df3fc83a46..5d18f1264a 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -331,19 +331,19 @@ function markRootFinished(root, remainingLanes) { var eventTimes = root.eventTimes, expirationTimes = root.expirationTimes; for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$4 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$4; - remainingLanes[index$4] = 0; - eventTimes[index$4] = -1; - expirationTimes[index$4] = -1; - var hiddenUpdatesForLane = root[index$4]; + var index$3 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$3; + remainingLanes[index$3] = 0; + eventTimes[index$3] = -1; + expirationTimes[index$3] = -1; + var hiddenUpdatesForLane = root[index$3]; if (null !== hiddenUpdatesForLane) for ( - root[index$4] = null, index$4 = 0; - index$4 < hiddenUpdatesForLane.length; - index$4++ + root[index$3] = null, index$3 = 0; + index$3 < hiddenUpdatesForLane.length; + index$3++ ) { - var update = hiddenUpdatesForLane[index$4]; + var update = hiddenUpdatesForLane[index$3]; null !== update && (update.lane &= -1073741825); } noLongerPendingLanes &= ~lane; @@ -352,21 +352,21 @@ function markRootFinished(root, remainingLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$5 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$5; - (lane & entangledLanes) | (root[index$5] & entangledLanes) && - (root[index$5] |= entangledLanes); + var index$4 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$4; + (lane & entangledLanes) | (root[index$4] & entangledLanes) && + (root[index$4] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - index$7 = root.transitionLanes[index$7]; - null !== index$7 && - index$7.forEach(function (transition) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + index$6 = root.transitionLanes[index$6]; + null !== index$6 && + index$6.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -376,10 +376,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - null !== root.transitionLanes[index$8] && - (root.transitionLanes[index$8] = null); + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + null !== root.transitionLanes[index$7] && + (root.transitionLanes[index$7] = null); lanes &= ~lane; } } @@ -632,8 +632,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$9 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$9 && "aria-" !== prefix$9) { + var prefix$8 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$8 && "aria-" !== prefix$8) { node.removeAttribute(name); return; } @@ -746,16 +746,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { construct.call(); - } catch (x$10) { - control = x$10; + } catch (x$9) { + control = x$9; } fn.call(construct.prototype); } else { try { throw Error(); - } catch (x$11) { - control = x$11; + } catch (x$10) { + control = x$10; } fn(); } @@ -1206,15 +1206,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$15 in styles) - (styleName = styles[styleName$15]), - styles.hasOwnProperty(styleName$15) && - prevStyles[styleName$15] !== styleName && - setValueForStyle(node, styleName$15, styleName); + for (var styleName$14 in styles) + (styleName = styles[styleName$14]), + styles.hasOwnProperty(styleName$14) && + prevStyles[styleName$14] !== styleName && + setValueForStyle(node, styleName$14, styleName); } else - for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + for (var styleName$15 in styles) + styles.hasOwnProperty(styleName$15) && + setValueForStyle(node, styleName$15, styles[styleName$15]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1443,36 +1443,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$18 = parentA.child; child$18; ) { - if (child$18 === a) { + for (var didFindChild = !1, child$17 = parentA.child; child$17; ) { + if (child$17 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$18 === b) { + if (child$17 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$18 = child$18.sibling; + child$17 = child$17.sibling; } if (!didFindChild) { - for (child$18 = parentB.child; child$18; ) { - if (child$18 === a) { + for (child$17 = parentB.child; child$17; ) { + if (child$17 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$18 === b) { + if (child$17 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$18 = child$18.sibling; + child$17 = child$17.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -3223,10 +3223,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$44 = thenableIndexCounter; + var index$43 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$44); + usable = trackUsedThenable(thenableState, usable, index$43); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -3714,16 +3714,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$50 = enqueueUpdate(provider, fiber, lane); - if (null !== root$50) { + var root$49 = enqueueUpdate(provider, fiber, lane); + if (null !== root$49) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$50, provider, lane, eventTime); - entangleTransitions(root$50, provider, lane); + scheduleUpdateOnFiber(root$49, provider, lane, eventTime); + entangleTransitions(root$49, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$50 && + null !== root$49 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -3930,15 +3930,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$46 = workInProgressRoot; - if (null === root$46) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$46, renderLanes$1) || + var root$45 = workInProgressRoot; + if (null === root$45) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$45, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$46 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$46; - mountEffect(subscribeToStore.bind(null, fiber, root$46, subscribe), [ + root$45 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$45; + mountEffect(subscribeToStore.bind(null, fiber, root$45, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -3947,7 +3947,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$46, + root$45, getServerSnapshot, getSnapshot ), @@ -4431,10 +4431,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$61 = workInProgress.stateNode; + root$60 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$61.incompleteTransitions.has(transition)) { + if (!root$60.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4442,11 +4442,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$61.incompleteTransitions.set(transition, markerInstance); + root$60.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$61.incompleteTransitions.forEach(function (markerInstance) { + root$60.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5111,14 +5111,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$68 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$68) + var dehydrated$67 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$67) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$68, + dehydrated$67, JSCompiler_temp, renderLanes ); @@ -5128,7 +5128,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$68 = JSCompiler_temp.sibling; + dehydrated$67 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5137,8 +5137,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$68 - ? (showFallback = createWorkInProgress(dehydrated$68, showFallback)) + null !== dehydrated$67 + ? (showFallback = createWorkInProgress(dehydrated$67, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5157,10 +5157,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$68 = CacheContext._currentValue), + ? ((dehydrated$67 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$68 - ? { parent: dehydrated$68, pool: dehydrated$68 } + JSCompiler_temp.parent !== dehydrated$67 + ? { parent: dehydrated$67, pool: dehydrated$67 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5174,23 +5174,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$68 = showFallback.updateQueue), + (dehydrated$67 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$68 + null === dehydrated$67 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$68 === primaryChildProps + : dehydrated$67 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$68.transitions = didSuspend), - (dehydrated$68.markerInstances = JSCompiler_temp)))); + : ((dehydrated$67.transitions = didSuspend), + (dehydrated$67.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6253,14 +6253,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$99 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$99 = lastTailNode), + for (var lastTailNode$98 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$98 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$99 + null === lastTailNode$98 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$99.sibling = null); + : (lastTailNode$98.sibling = null); } } function bubbleProperties(completedWork) { @@ -6270,19 +6270,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags & 31457280), - (subtreeFlags |= child$100.flags & 31457280), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (var child$99 = completedWork.child; null !== child$99; ) + (newChildLanes |= child$99.lanes | child$99.childLanes), + (subtreeFlags |= child$99.subtreeFlags & 31457280), + (subtreeFlags |= child$99.flags & 31457280), + (child$99.return = completedWork), + (child$99 = child$99.sibling); else - for (child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags), - (subtreeFlags |= child$100.flags), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (child$99 = completedWork.child; null !== child$99; ) + (newChildLanes |= child$99.lanes | child$99.childLanes), + (subtreeFlags |= child$99.subtreeFlags), + (subtreeFlags |= child$99.flags), + (child$99.return = completedWork), + (child$99 = child$99.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7001,8 +7001,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$129) { - captureCommitPhaseError(current, nearestMountedAncestor, error$129); + } catch (error$128) { + captureCommitPhaseError(current, nearestMountedAncestor, error$128); } else ref.current = null; } @@ -7039,7 +7039,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$194) { + } catch (e$192) { JSCompiler_temp = null; break a; } @@ -7318,11 +7318,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$131) { + } catch (error$130) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$131 + error$130 ); } } @@ -8002,8 +8002,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$144) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$144); + } catch (error$143) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$143); } } break; @@ -8185,11 +8185,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$145) { + } catch (error$144) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$145 + error$144 ); } break; @@ -8225,8 +8225,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$146) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$146); + } catch (error$145) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$145); } } if ( @@ -8251,8 +8251,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$149) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$149); + } catch (error$148) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$148); } break; case 6: @@ -8265,8 +8265,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$150) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$150); + } catch (error$149) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$149); } } break; @@ -8280,8 +8280,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$151) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$151); + } catch (error$150) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$150); } break; case 4: @@ -8311,8 +8311,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$153) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$153); + } catch (error$152) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$152); } current = finishedWork.updateQueue; null !== current && @@ -8390,11 +8390,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$134) { + } catch (error$133) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$134 + error$133 ); } } else if ( @@ -8469,21 +8469,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$135 = JSCompiler_inline_result.stateNode; + var parent$134 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$135, ""), + (setTextContent(parent$134, ""), (JSCompiler_inline_result.flags &= -33)); - var before$136 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$136, parent$135); + var before$135 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$135, parent$134); break; case 3: case 4: - var parent$137 = JSCompiler_inline_result.stateNode.containerInfo, - before$138 = getHostSibling(finishedWork); + var parent$136 = JSCompiler_inline_result.stateNode.containerInfo, + before$137 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$138, - parent$137 + before$137, + parent$136 ); break; default: @@ -8953,9 +8953,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$163 = finishedWork.stateNode; + var instance$162 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$163._visibility & 4 + ? instance$162._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8968,7 +8968,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$163._visibility |= 4), + : ((instance$162._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8976,7 +8976,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$163._visibility |= 4), + : ((instance$162._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8989,7 +8989,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$163 + instance$162 ); break; case 24: @@ -9530,13 +9530,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$172 = firstScheduledRoot; null !== root$172; ) { + for (var root$171 = firstScheduledRoot; null !== root$171; ) { if ( - (!onlyLegacy || 0 === root$172.tag) && + (!onlyLegacy || 0 === root$171.tag) && 0 !== (getNextLanes( - root$172, - root$172 === workInProgressRoot$jscomp$0 + root$171, + root$171 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -9544,7 +9544,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$172; + var root = root$171; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -9587,7 +9587,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$172 = root$172.next; + root$171 = root$171.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -9633,12 +9633,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$2 = 31 - clz32(lanes), - lane = 1 << index$2, - expirationTime = expirationTimes[index$2]; + var index$1 = 31 - clz32(lanes), + lane = 1 << index$1, + expirationTime = expirationTimes[index$1]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$2] = computeExpirationTime(lane, currentTime); + expirationTimes[index$1] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -9702,8 +9702,7 @@ function scheduleImmediateTask(cb) { : cb(); }); } -var ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, @@ -9842,11 +9841,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$6 = 31 - clz32(lane), - transitions = transitionLanesMap[index$6]; + index$5 = 31 - clz32(lane), + transitions = transitionLanesMap[index$5]; null === transitions && (transitions = new Set()); transitions.add(eventTime); - transitionLanesMap[index$6] = transitions; + transitionLanesMap[index$5] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9873,28 +9872,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === lanes) return null; - var exitStatus = + didTimeout = includesBlockingLane(root, lanes) || 0 !== (lanes & root.expiredLanes) || didTimeout ? renderRootSync(root, lanes) : renderRootConcurrent(root, lanes); - if (0 !== exitStatus) { - if (2 === exitStatus) { - didTimeout = lanes; - var errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - didTimeout - ); + if (0 !== didTimeout) { + if (2 === didTimeout) { + var originallyAttemptedLanes = lanes, + errorRetryLanes = getLanesToRetrySynchronouslyOnError( + root, + originallyAttemptedLanes + ); 0 !== errorRetryLanes && ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( + (didTimeout = recoverFromConcurrentError( root, - didTimeout, + originallyAttemptedLanes, errorRetryLanes ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -9902,30 +9901,30 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ensureRootIsScheduled(root), originalCallbackNode) ); - if (6 === exitStatus) markRootSuspended(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); - didTimeout = root.current.alternate; + originallyAttemptedLanes = root.current.alternate; if ( errorRetryLanes && - !isRenderConsistentWithExternalStores(didTimeout) + !isRenderConsistentWithExternalStores(originallyAttemptedLanes) ) { - exitStatus = renderRootSync(root, lanes); - if (2 === exitStatus) { + didTimeout = renderRootSync(root, lanes); + if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$175 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$174 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$175 && - ((lanes = errorRetryLanes$175), - (exitStatus = recoverFromConcurrentError( + 0 !== errorRetryLanes$174 && + ((lanes = errorRetryLanes$174), + (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$175 + errorRetryLanes$174 ))); } - if (1 === exitStatus) + if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), @@ -9934,16 +9933,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { originalCallbackNode) ); } - root.finishedWork = didTimeout; + root.finishedWork = originallyAttemptedLanes; root.finishedLanes = lanes; - switch (exitStatus) { + switch (didTimeout) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 2: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9953,26 +9952,26 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 500 - now()), - 10 < exitStatus) + ((didTimeout = globalMostRecentFallbackTime + 500 - now()), + 10 < didTimeout) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes ), - exitStatus + didTimeout ); break; } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -9981,48 +9980,9 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 4: markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; - exitStatus = lanes; - errorRetryLanes = root.eventTimes; - for (errorRetryLanes$175 = -1; 0 < exitStatus; ) { - var index$1 = 31 - clz32(exitStatus), - lane = 1 << index$1; - index$1 = errorRetryLanes[index$1]; - index$1 > errorRetryLanes$175 && (errorRetryLanes$175 = index$1); - exitStatus &= ~lane; - } - exitStatus = errorRetryLanes$175; - exitStatus = now() - exitStatus; - exitStatus = - (120 > exitStatus - ? 120 - : 480 > exitStatus - ? 480 - : 1080 > exitStatus - ? 1080 - : 1920 > exitStatus - ? 1920 - : 3e3 > exitStatus - ? 3e3 - : 4320 > exitStatus - ? 4320 - : 1960 * ceil(exitStatus / 1960)) - exitStatus; - if (10 < exitStatus) { - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - didTimeout, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - exitStatus - ); - break; - } commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10031,7 +9991,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 5: commitRootWhenReady( root, - didTimeout, + originallyAttemptedLanes, workInProgressRootRecoverableErrors, workInProgressTransitions, lanes @@ -10150,9 +10110,9 @@ function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$3 = 31 - clz32(suspendedLanes), - lane = 1 << index$3; - root[index$3] = -1; + var index$2 = 31 - clz32(suspendedLanes), + lane = 1 << index$2; + root[index$2] = -1; suspendedLanes &= ~lane; } } @@ -10322,8 +10282,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$178) { - handleThrow(root, thrownValue$178); + } catch (thrownValue$176) { + handleThrow(root, thrownValue$176); } while (1); resetContextDependencies(); @@ -10429,8 +10389,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$180) { - handleThrow(root, thrownValue$180); + } catch (thrownValue$178) { + handleThrow(root, thrownValue$178); } while (1); resetContextDependencies(); @@ -10593,10 +10553,10 @@ function throwAndUnwindWorkLoop(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var retryQueue$56 = offscreenQueue.retryQueue; - null === retryQueue$56 + var retryQueue$55 = offscreenQueue.retryQueue; + null === retryQueue$55 ? (offscreenQueue.retryQueue = new Set([wakeable])) - : retryQueue$56.add(wakeable); + : retryQueue$55.add(wakeable); } } break; @@ -10793,12 +10753,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$184 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$182 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$184 && + shouldFireAfterActiveInstanceBlur$182 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10877,7 +10837,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$185 = rootWithPendingPassiveEffects, + var root$183 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -10893,7 +10853,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$185, remainingLanes); + releaseRootPooledCache(root$183, remainingLanes); } } return !1; @@ -12082,12 +12042,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$187 = fiber.stateNode; - if (root$187.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$187.pendingLanes); + var root$185 = fiber.stateNode; + if (root$185.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$185.pendingLanes); 0 !== lanes && - (markRootEntangled(root$187, lanes | 2), - ensureRootIsScheduled(root$187), + (markRootEntangled(root$185, lanes | 2), + ensureRootIsScheduled(root$185), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13179,19 +13139,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$368; + var JSCompiler_inline_result$jscomp$366; if (canUseDOM) { - var isSupported$jscomp$inline_1622 = "oninput" in document; - if (!isSupported$jscomp$inline_1622) { - var element$jscomp$inline_1623 = document.createElement("div"); - element$jscomp$inline_1623.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1622 = - "function" === typeof element$jscomp$inline_1623.oninput; + var isSupported$jscomp$inline_1616 = "oninput" in document; + if (!isSupported$jscomp$inline_1616) { + var element$jscomp$inline_1617 = document.createElement("div"); + element$jscomp$inline_1617.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1616 = + "function" === typeof element$jscomp$inline_1617.oninput; } - JSCompiler_inline_result$jscomp$368 = isSupported$jscomp$inline_1622; - } else JSCompiler_inline_result$jscomp$368 = !1; + JSCompiler_inline_result$jscomp$366 = isSupported$jscomp$inline_1616; + } else JSCompiler_inline_result$jscomp$366 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$368 && + JSCompiler_inline_result$jscomp$366 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13500,20 +13460,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1663 = 0; - i$jscomp$inline_1663 < simpleEventPluginEvents.length; - i$jscomp$inline_1663++ + var i$jscomp$inline_1657 = 0; + i$jscomp$inline_1657 < simpleEventPluginEvents.length; + i$jscomp$inline_1657++ ) { - var eventName$jscomp$inline_1664 = - simpleEventPluginEvents[i$jscomp$inline_1663], - domEventName$jscomp$inline_1665 = - eventName$jscomp$inline_1664.toLowerCase(), - capitalizedEvent$jscomp$inline_1666 = - eventName$jscomp$inline_1664[0].toUpperCase() + - eventName$jscomp$inline_1664.slice(1); + var eventName$jscomp$inline_1658 = + simpleEventPluginEvents[i$jscomp$inline_1657], + domEventName$jscomp$inline_1659 = + eventName$jscomp$inline_1658.toLowerCase(), + capitalizedEvent$jscomp$inline_1660 = + eventName$jscomp$inline_1658[0].toUpperCase() + + eventName$jscomp$inline_1658.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1665, - "on" + capitalizedEvent$jscomp$inline_1666 + domEventName$jscomp$inline_1659, + "on" + capitalizedEvent$jscomp$inline_1660 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14723,16 +14683,16 @@ function setInitialProperties(domElement, tag, props) { return; case "select": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$204 in props) + for (var propKey$202 in props) if ( - props.hasOwnProperty(propKey$204) && - ((propKey = props[propKey$204]), null != propKey) + props.hasOwnProperty(propKey$202) && + ((propKey = props[propKey$202]), null != propKey) ) - switch (propKey$204) { + switch (propKey$202) { case "value": break; default: - setProp(domElement, tag, propKey$204, propKey, props, null); + setProp(domElement, tag, propKey$202, propKey, props, null); } domElement.multiple = !!props.multiple; tag = props.value; @@ -14743,12 +14703,12 @@ function setInitialProperties(domElement, tag, props) { return; case "textarea": listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$206 in props) + for (var propKey$204 in props) if ( - props.hasOwnProperty(propKey$206) && - ((propKey = props[propKey$206]), null != propKey) + props.hasOwnProperty(propKey$204) && + ((propKey = props[propKey$204]), null != propKey) ) - switch (propKey$206) { + switch (propKey$204) { case "value": break; case "children": @@ -14757,18 +14717,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$206, propKey, props); + setProp(domElement, tag, propKey$204, propKey, props); } track(domElement); initTextarea(domElement, props); return; case "option": - for (var propKey$208 in props) + for (var propKey$206 in props) if ( - props.hasOwnProperty(propKey$208) && - ((propKey = props[propKey$208]), null != propKey) + props.hasOwnProperty(propKey$206) && + ((propKey = props[propKey$206]), null != propKey) ) - switch (propKey$208) { + switch (propKey$206) { case "selected": domElement.selected = propKey && @@ -14776,7 +14736,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$208, propKey, props); + setProp(domElement, tag, propKey$206, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -14818,29 +14778,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$210 in props) + for (var propKey$208 in props) if ( - props.hasOwnProperty(propKey$210) && - ((propKey = props[propKey$210]), null != propKey) + props.hasOwnProperty(propKey$208) && + ((propKey = props[propKey$208]), null != propKey) ) - switch (propKey$210) { + switch (propKey$208) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$210, propKey, props, null); + setProp(domElement, tag, propKey$208, propKey, props, null); } return; default: if (isCustomElement(tag)) { - for (var propKey$212 in props) - props.hasOwnProperty(propKey$212) && - ((propKey = props[propKey$212]), + for (var propKey$210 in props) + props.hasOwnProperty(propKey$210) && + ((propKey = props[propKey$210]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$212, + propKey$210, propKey, props, null @@ -14890,15 +14850,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$216 in nextProps) { - lastProp = nextProps[propKey$216]; - var lastProp$217 = lastProps[propKey$216]; + for (var propKey$214 in nextProps) { + lastProp = nextProps[propKey$214]; + var lastProp$215 = lastProps[propKey$214]; if ( - nextProps.hasOwnProperty(propKey$216) && - lastProp !== lastProp$217 && - (null != lastProp || null != lastProp$217) + nextProps.hasOwnProperty(propKey$214) && + lastProp !== lastProp$215 && + (null != lastProp || null != lastProp$215) ) - switch (propKey$216) { + switch (propKey$214) { case "checked": lastProp = null != lastProp ? lastProp : nextProps.defaultChecked; domElement.checked = @@ -14917,43 +14877,43 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$216, + propKey$214, lastProp, nextProps, - lastProp$217 + lastProp$215 ); } } updateInput(domElement, nextProps); return; case "select": - for (var propKey$220 in lastProps) + for (var propKey$218 in lastProps) if ( - ((propKey$216 = lastProps[propKey$220]), - lastProps.hasOwnProperty(propKey$220) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$220)) + ((propKey$214 = lastProps[propKey$218]), + lastProps.hasOwnProperty(propKey$218) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$218)) ) - switch (propKey$220) { + switch (propKey$218) { case "value": break; default: setProp( domElement, tag, - propKey$220, + propKey$218, null, nextProps, - propKey$216 + propKey$214 ); } for (lastProp in nextProps) if ( - ((propKey$216 = nextProps[lastProp]), - (lastProp$217 = lastProps[lastProp]), + ((propKey$214 = nextProps[lastProp]), + (lastProp$215 = lastProps[lastProp]), nextProps.hasOwnProperty(lastProp) && - propKey$216 !== lastProp$217 && - (null != propKey$216 || null != lastProp$217)) + propKey$214 !== lastProp$215 && + (null != propKey$214 || null != lastProp$215)) ) switch (lastProp) { case "value": @@ -14963,22 +14923,22 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, lastProp, - propKey$216, + propKey$214, nextProps, - lastProp$217 + lastProp$215 ); } updateSelect(domElement, lastProps, nextProps); return; case "textarea": - for (var propKey$225 in lastProps) + for (var propKey$223 in lastProps) if ( - ((propKey$216 = lastProps[propKey$225]), - lastProps.hasOwnProperty(propKey$225) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$225)) + ((propKey$214 = lastProps[propKey$223]), + lastProps.hasOwnProperty(propKey$223) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$223)) ) - switch (propKey$225) { + switch (propKey$223) { case "value": break; case "children": @@ -14987,34 +14947,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$225, + propKey$223, null, nextProps, - propKey$216 + propKey$214 ); } - for (lastProp$217 in nextProps) + for (lastProp$215 in nextProps) if ( - ((propKey$216 = nextProps[lastProp$217]), - (lastProp = lastProps[lastProp$217]), - nextProps.hasOwnProperty(lastProp$217) && - propKey$216 !== lastProp && - (null != propKey$216 || null != lastProp)) + ((propKey$214 = nextProps[lastProp$215]), + (lastProp = lastProps[lastProp$215]), + nextProps.hasOwnProperty(lastProp$215) && + propKey$214 !== lastProp && + (null != propKey$214 || null != lastProp)) ) - switch (lastProp$217) { + switch (lastProp$215) { case "value": break; case "children": break; case "dangerouslySetInnerHTML": - if (null != propKey$216) throw Error(formatProdErrorMessage(91)); + if (null != propKey$214) throw Error(formatProdErrorMessage(91)); break; default: setProp( domElement, tag, - lastProp$217, - propKey$216, + lastProp$215, + propKey$214, nextProps, lastProp ); @@ -15022,14 +14982,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { updateTextarea(domElement, nextProps); return; case "option": - for (var propKey$230 in lastProps) + for (var propKey$228 in lastProps) if ( - ((propKey$216 = lastProps[propKey$230]), - lastProps.hasOwnProperty(propKey$230) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$230)) + ((propKey$214 = lastProps[propKey$228]), + lastProps.hasOwnProperty(propKey$228) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$228)) ) - switch (propKey$230) { + switch (propKey$228) { case "selected": domElement.selected = !1; break; @@ -15037,33 +14997,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$230, + propKey$228, null, nextProps, - propKey$216 + propKey$214 ); } - for (var propKey$232 in nextProps) + for (var propKey$230 in nextProps) if ( - ((propKey$216 = nextProps[propKey$232]), - (lastProp = lastProps[propKey$232]), - nextProps.hasOwnProperty(propKey$232) && - propKey$216 !== lastProp && - (null != propKey$216 || null != lastProp)) + ((propKey$214 = nextProps[propKey$230]), + (lastProp = lastProps[propKey$230]), + nextProps.hasOwnProperty(propKey$230) && + propKey$214 !== lastProp && + (null != propKey$214 || null != lastProp)) ) - switch (propKey$232) { + switch (propKey$230) { case "selected": domElement.selected = - propKey$216 && - "function" !== typeof propKey$216 && - "symbol" !== typeof propKey$216; + propKey$214 && + "function" !== typeof propKey$214 && + "symbol" !== typeof propKey$214; break; default: setProp( domElement, tag, - propKey$232, - propKey$216, + propKey$230, + propKey$214, nextProps, lastProp ); @@ -15084,32 +15044,32 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$235 in lastProps) - (propKey$216 = lastProps[propKey$235]), - lastProps.hasOwnProperty(propKey$235) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$235) && - setProp(domElement, tag, propKey$235, null, nextProps, propKey$216); - for (var propKey$237 in nextProps) + for (var propKey$233 in lastProps) + (propKey$214 = lastProps[propKey$233]), + lastProps.hasOwnProperty(propKey$233) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$233) && + setProp(domElement, tag, propKey$233, null, nextProps, propKey$214); + for (var propKey$235 in nextProps) if ( - ((propKey$216 = nextProps[propKey$237]), - (lastProp = lastProps[propKey$237]), - nextProps.hasOwnProperty(propKey$237) && - propKey$216 !== lastProp && - (null != propKey$216 || null != lastProp)) + ((propKey$214 = nextProps[propKey$235]), + (lastProp = lastProps[propKey$235]), + nextProps.hasOwnProperty(propKey$235) && + propKey$214 !== lastProp && + (null != propKey$214 || null != lastProp)) ) - switch (propKey$237) { + switch (propKey$235) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$216) + if (null != propKey$214) throw Error(formatProdErrorMessage(137, tag)); break; default: setProp( domElement, tag, - propKey$237, - propKey$216, + propKey$235, + propKey$214, nextProps, lastProp ); @@ -15117,49 +15077,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$240 in lastProps) - (propKey$216 = lastProps[propKey$240]), - lastProps.hasOwnProperty(propKey$240) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$240) && + for (var propKey$238 in lastProps) + (propKey$214 = lastProps[propKey$238]), + lastProps.hasOwnProperty(propKey$238) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$238) && + setPropOnCustomElement( + domElement, + tag, + propKey$238, + null, + nextProps, + propKey$214 + ); + for (var propKey$240 in nextProps) + (propKey$214 = nextProps[propKey$240]), + (lastProp = lastProps[propKey$240]), + !nextProps.hasOwnProperty(propKey$240) || + propKey$214 === lastProp || + (null == propKey$214 && null == lastProp) || setPropOnCustomElement( domElement, tag, propKey$240, - null, - nextProps, - propKey$216 - ); - for (var propKey$242 in nextProps) - (propKey$216 = nextProps[propKey$242]), - (lastProp = lastProps[propKey$242]), - !nextProps.hasOwnProperty(propKey$242) || - propKey$216 === lastProp || - (null == propKey$216 && null == lastProp) || - setPropOnCustomElement( - domElement, - tag, - propKey$242, - propKey$216, + propKey$214, nextProps, lastProp ); return; } } - for (var propKey$245 in lastProps) - (propKey$216 = lastProps[propKey$245]), - lastProps.hasOwnProperty(propKey$245) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$245) && - setProp(domElement, tag, propKey$245, null, nextProps, propKey$216); - for (var propKey$247 in nextProps) - (propKey$216 = nextProps[propKey$247]), - (lastProp = lastProps[propKey$247]), - !nextProps.hasOwnProperty(propKey$247) || - propKey$216 === lastProp || - (null == propKey$216 && null == lastProp) || - setProp(domElement, tag, propKey$247, propKey$216, nextProps, lastProp); + for (var propKey$243 in lastProps) + (propKey$214 = lastProps[propKey$243]), + lastProps.hasOwnProperty(propKey$243) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$243) && + setProp(domElement, tag, propKey$243, null, nextProps, propKey$214); + for (var propKey$245 in nextProps) + (propKey$214 = nextProps[propKey$245]), + (lastProp = lastProps[propKey$245]), + !nextProps.hasOwnProperty(propKey$245) || + propKey$214 === lastProp || + (null == propKey$214 && null == lastProp) || + setProp(domElement, tag, propKey$245, propKey$214, nextProps, lastProp); } function updatePropertiesWithDiff( domElement, @@ -15209,12 +15169,12 @@ function updatePropertiesWithDiff( case "select": for (propKey = 0; propKey < updatePayload.length; propKey += 2) { propValue = updatePayload[propKey]; - var propValue$252 = updatePayload[propKey + 1]; + var propValue$250 = updatePayload[propKey + 1]; switch (propValue) { case "value": break; default: - setProp(domElement, tag, propValue, propValue$252, nextProps, null); + setProp(domElement, tag, propValue, propValue$250, nextProps, null); } } updateSelect(domElement, lastProps, nextProps); @@ -15680,14 +15640,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$269 = getStyleKey(href), + var key$267 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$269); + resource = as.get(key$267); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$269) + getStylesheetSelectorFromKey(key$267) )) ) state.loading = 1; @@ -15698,7 +15658,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$269)) && + (options = preloadPropsMap.get(key$267)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15724,15 +15684,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$269, resource); + as.set(key$267, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$269 = getScriptKey(href)), - (precedence = as.get(key$269)), + (key$267 = getScriptKey(href)), + (precedence = as.get(key$267)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$269 + "script[async]" + key$267 )), precedence || ((href = { @@ -15741,7 +15701,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$269)) && + (options = preloadPropsMap.get(key$267)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15754,13 +15714,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$269, precedence)); + as.set(key$267, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$269 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$269 = - 'link[rel="preload"][as="' + as + '"][href="' + key$269 + '"]'; + key$267 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$267 = + 'link[rel="preload"][as="' + as + '"][href="' + key$267 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15777,7 +15737,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$269) && + null === resourceRoot.querySelector(key$267) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15810,17 +15770,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$278 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$279 = styles$278.get(type); - resource$279 || + var styles$276 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$277 = styles$276.get(type); + resource$277 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$279 = { + (resource$277 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$278.set(type, resource$279), + styles$276.set(type, resource$277), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15835,9 +15795,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$279.state + resource$277.state )); - return resource$279; + return resource$277; } return null; case "script": @@ -15909,36 +15869,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$284 = hoistableRoot.querySelector( + var instance$282 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$284) + if (instance$282) return ( - (resource.instance = instance$284), - markNodeAsHoistable(instance$284), - instance$284 + (resource.instance = instance$282), + markNodeAsHoistable(instance$282), + instance$282 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$284 = ( + instance$282 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$284); - var linkInstance = instance$284; + markNodeAsHoistable(instance$282); + var linkInstance = instance$282; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$284, "link", key); + setInitialProperties(instance$282, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$284, props.precedence, hoistableRoot); - return (resource.instance = instance$284); + insertStylesheet(instance$282, props.precedence, hoistableRoot); + return (resource.instance = instance$282); case "script": - instance$284 = getScriptKey(props.src); + instance$282 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$284 + "script[async]" + instance$282 )) ) return ( @@ -15947,7 +15907,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$284))) + if ((styleProps = preloadPropsMap.get(instance$282))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16317,17 +16277,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1836 = { +var devToolsConfig$jscomp$inline_1830 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-82c50b6a", + version: "18.3.0-www-modern-d66c88c7", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2215 = { - bundleType: devToolsConfig$jscomp$inline_1836.bundleType, - version: devToolsConfig$jscomp$inline_1836.version, - rendererPackageName: devToolsConfig$jscomp$inline_1836.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1836.rendererConfig, +var internals$jscomp$inline_2200 = { + bundleType: devToolsConfig$jscomp$inline_1830.bundleType, + version: devToolsConfig$jscomp$inline_1830.version, + rendererPackageName: devToolsConfig$jscomp$inline_1830.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1830.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16344,26 +16304,26 @@ var internals$jscomp$inline_2215 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1836.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1830.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-82c50b6a" + reconcilerVersion: "18.3.0-www-modern-d66c88c7" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2216 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2201 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2216.isDisabled && - hook$jscomp$inline_2216.supportsFiber + !hook$jscomp$inline_2201.isDisabled && + hook$jscomp$inline_2201.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2216.inject( - internals$jscomp$inline_2215 + (rendererID = hook$jscomp$inline_2201.inject( + internals$jscomp$inline_2200 )), - (injectedHook = hook$jscomp$inline_2216); + (injectedHook = hook$jscomp$inline_2201); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -16671,4 +16631,4 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-82c50b6a"; +exports.version = "18.3.0-www-modern-d66c88c7"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index f439711f19..8c98016b03 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -1444,24 +1444,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -20363,7 +20345,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -20987,37 +20968,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -22957,32 +22907,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; @@ -24482,7 +24407,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-3b456806"; +var ReactVersion = "18.3.0-www-classic-31ab641e"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index ab6da32e17..c9e4972305 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -1444,24 +1444,6 @@ function getNextLanes(root, wipLanes) { return nextLanes; } -function getMostRecentEventTime(root, lanes) { - var eventTimes = root.eventTimes; - var mostRecentEventTime = NoTimestamp; - - while (lanes > 0) { - var index = pickArbitraryLaneIndex(lanes); - var lane = 1 << index; - var eventTime = eventTimes[index]; - - if (eventTime > mostRecentEventTime) { - mostRecentEventTime = eventTime; - } - - lanes &= ~lane; - } - - return mostRecentEventTime; -} function computeExpirationTime(lane, currentTime) { switch (lane) { @@ -20363,7 +20345,6 @@ function scheduleImmediateTask(cb) { } } -var ceil = Math.ceil; var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, @@ -20987,37 +20968,6 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) { // placeholder and without scheduling a timeout. Delay indefinitely // until we receive more data. break; - } - - if (!shouldForceFlushFallbacksInDEV()) { - // This is not a transition, but we did trigger an avoided state. - // Schedule a placeholder to display after a short delay, using the Just - // Noticeable Difference. - // TODO: Is the JND optimization worth the added complexity? If this is - // the only reason we track the event time, then probably not. - // Consider removing. - var mostRecentEventTime = getMostRecentEventTime(root, lanes); - var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now$1() - eventTimeMs; - - var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. - - if (_msUntilTimeout > 10) { - // Instead of committing the fallback immediately, wait for more data - // to arrive. - root.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - root, - finishedWork, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - lanes - ), - _msUntilTimeout - ); - break; - } } // Commit the placeholder. commitRootWhenReady( @@ -22957,32 +22907,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { } retryTimedOutBoundary(boundaryFiber, retryLane); -} // Computes the next Just Noticeable Difference (JND) boundary. -// The theory is that a person can't tell the difference between small differences in time. -// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable -// difference in the experience. However, waiting for longer might mean that we can avoid -// showing an intermediate loading state. The longer we have already waited, the harder it -// is to tell small differences in time. Therefore, the longer we've already waited, -// the longer we can wait additionally. At some point we have to give up though. -// We pick a train model where the next boundary commits at a consistent schedule. -// These particular numbers are vague estimates. We expect to adjust them based on research. - -function jnd(timeElapsed) { - return timeElapsed < 120 - ? 120 - : timeElapsed < 480 - ? 480 - : timeElapsed < 1080 - ? 1080 - : timeElapsed < 1920 - ? 1920 - : timeElapsed < 3000 - ? 3000 - : timeElapsed < 4320 - ? 4320 - : ceil(timeElapsed / 1960) * 1960; } - function throwIfInfiniteUpdateLoopDetected() { if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { nestedUpdateCount = 0; @@ -24482,7 +24407,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-82c50b6a"; +var ReactVersion = "18.3.0-www-modern-d66c88c7"; // Might add PROFILE later.