diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 7ce01aa7a7..5857846129 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -2b3d5826836ac59f8446281976762d594e55d97e +3c27178a2f2c74f14d90613028e3929e1f06d830 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 495d95417e..d2e25e19b1 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-classic-996b7d13"; +var ReactVersion = "18.3.0-www-classic-2c91e2cd"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index beeb0c14fd..649f423f6d 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -615,4 +615,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-b27aac94"; +exports.version = "18.3.0-www-modern-a19b7375"; diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index f0f2d3109b..8f7fa0106b 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -626,7 +626,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-b5b87391"; +exports.version = "18.3.0-www-modern-4c57bafd"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 3545cd653b..3ac19f0d05 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -4104,10 +4104,7 @@ function restoreControlledInputState(element, props) { "ReactDOMInput: Mixing React and non-React radio inputs with the " + "same `name` is not supported." ); - } // We need update the tracked value on the named cousin since the value - // was changed but the input saw no event or value set - - updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that + } // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. @@ -4121,6 +4118,17 @@ function restoreControlledInputState(element, props) { otherProps.type, otherProps.name ); + } // If any updateInput() call set .checked to true, an input in this group + // (often, `rootNode` itself) may have become unchecked + + for (var _i = 0; _i < group.length; _i++) { + var _otherNode = group[_i]; + + if (_otherNode.form !== rootNode.form) { + continue; + } + + updateValueIfChanged(_otherNode); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. @@ -34013,7 +34021,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-bb6c815e"; +var ReactVersion = "18.3.0-www-classic-bfae45bc"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 4b2ab503bc..6c3b72e067 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -3946,10 +3946,7 @@ function restoreControlledInputState(element, props) { "ReactDOMInput: Mixing React and non-React radio inputs with the " + "same `name` is not supported." ); - } // We need update the tracked value on the named cousin since the value - // was changed but the input saw no event or value set - - updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that + } // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. @@ -3963,6 +3960,17 @@ function restoreControlledInputState(element, props) { otherProps.type, otherProps.name ); + } // If any updateInput() call set .checked to true, an input in this group + // (often, `rootNode` itself) may have become unchecked + + for (var _i = 0; _i < group.length; _i++) { + var _otherNode = group[_i]; + + if (_otherNode.form !== rootNode.form) { + continue; + } + + updateValueIfChanged(_otherNode); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. @@ -33858,7 +33866,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-c7a0d8fc"; +var ReactVersion = "18.3.0-www-modern-f84a446a"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 4acaa2f8c8..e60a0794ff 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -1237,15 +1237,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$17 in styles) + (styleName = styles[styleName$17]), + styles.hasOwnProperty(styleName$17) && + prevStyles[styleName$17] !== styleName && + setValueForStyle(node, styleName$17, styleName); } else - for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + 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; @@ -1393,7 +1393,6 @@ function restoreStateOfTarget(target) { if (otherNode !== target && otherNode.form === target.form) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); - updateValueIfChanged(otherNode); updateInput( otherNode, otherProps.value, @@ -1406,6 +1405,13 @@ function restoreStateOfTarget(target) { ); } } + for ( + internalInstance = 0; + internalInstance < props.length; + internalInstance++ + ) + (otherNode = props[internalInstance]), + otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": @@ -3094,13 +3100,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$45 = firstScheduledRoot; null !== root$45; ) { + for (var root$47 = firstScheduledRoot; null !== root$47; ) { if ( - (!onlyLegacy || 0 === root$45.tag) && + (!onlyLegacy || 0 === root$47.tag) && 0 !== (getNextLanes( - root$45, - root$45 === workInProgressRoot$jscomp$0 + root$47, + root$47 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -3108,7 +3114,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$45; + var root = root$47; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -3151,7 +3157,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$45 = root$45.next; + root$47 = root$47.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3614,7 +3620,7 @@ function updateReducerImpl(hook, current, reducer) { update = update.next; continue; } else { - var clone$48 = { + var clone$50 = { lane: 0, revertLane: update.revertLane, action: update.action, @@ -3623,9 +3629,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }; null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48); + : (newBaseQueueLast = newBaseQueueLast.next = clone$50); currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } @@ -3647,7 +3653,7 @@ function updateReducerImpl(hook, current, reducer) { ? update.eagerState : reducer(pendingQueue, updateLane); } else - (clone$48 = { + (clone$50 = { lane: updateLane, revertLane: update.revertLane, action: update.action, @@ -3656,9 +3662,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }), null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48), + : (newBaseQueueLast = newBaseQueueLast.next = clone$50), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; @@ -3994,11 +4000,11 @@ function startTransition( ); dispatchSetState(fiber, queue, entangledResult); } else { - var entangledResult$53 = requestSyncActionContext( + var entangledResult$55 = requestSyncActionContext( returnValue, finishedState ); - dispatchSetState(fiber, queue, entangledResult$53); + dispatchSetState(fiber, queue, entangledResult$55); } } else dispatchSetState(fiber, queue, finishedState), callback(); } catch (error) { @@ -4027,14 +4033,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$54 = enqueueUpdate(provider, fiber, lane); - null !== root$54 && - (scheduleUpdateOnFiber(root$54, provider, lane), - entangleTransitions(root$54, provider, lane)); + var root$56 = enqueueUpdate(provider, fiber, lane); + null !== root$56 && + (scheduleUpdateOnFiber(root$56, provider, lane), + entangleTransitions(root$56, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$54 && + null !== root$56 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4262,15 +4268,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$51 = workInProgressRoot; + if (null === root$51) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$51, 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$51 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$51; + mountEffect(subscribeToStore.bind(null, fiber, root$51, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4279,7 +4285,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$49, + root$51, getServerSnapshot, getSnapshot ), @@ -4940,10 +4946,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$64 = workInProgress.stateNode; + root$66 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$64.incompleteTransitions.has(transition)) { + if (!root$66.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4951,11 +4957,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$64.incompleteTransitions.set(transition, markerInstance); + root$66.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$64.incompleteTransitions.forEach(function (markerInstance) { + root$66.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5648,14 +5654,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$71 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$71) + var dehydrated$73 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$73) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$71, + dehydrated$73, JSCompiler_temp, renderLanes ); @@ -5665,7 +5671,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$71 = JSCompiler_temp.sibling; + dehydrated$73 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5674,8 +5680,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$71 - ? (showFallback = createWorkInProgress(dehydrated$71, showFallback)) + null !== dehydrated$73 + ? (showFallback = createWorkInProgress(dehydrated$73, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5694,10 +5700,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$71 = CacheContext._currentValue), + ? ((dehydrated$73 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$71 - ? { parent: dehydrated$71, pool: dehydrated$71 } + JSCompiler_temp.parent !== dehydrated$73 + ? { parent: dehydrated$73, pool: dehydrated$73 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5711,23 +5717,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$71 = showFallback.updateQueue), + (dehydrated$73 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$71 + null === dehydrated$73 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$71 === primaryChildProps + : dehydrated$73 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$71.transitions = didSuspend), - (dehydrated$71.markerInstances = JSCompiler_temp)))); + : ((dehydrated$73.transitions = didSuspend), + (dehydrated$73.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6792,14 +6798,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$102 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$102 = lastTailNode), + for (var lastTailNode$104 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$104 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$102 + null === lastTailNode$104 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$102.sibling = null); + : (lastTailNode$104.sibling = null); } } function bubbleProperties(completedWork) { @@ -6809,19 +6815,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags & 31457280), - (subtreeFlags |= child$103.flags & 31457280), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (var child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags & 31457280), + (subtreeFlags |= child$105.flags & 31457280), + (child$105.return = completedWork), + (child$105 = child$105.sibling); else - for (child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags), - (subtreeFlags |= child$103.flags), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags), + (subtreeFlags |= child$105.flags), + (child$105.return = completedWork), + (child$105 = child$105.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7573,8 +7579,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$134) { - captureCommitPhaseError(current, nearestMountedAncestor, error$134); + } catch (error$136) { + captureCommitPhaseError(current, nearestMountedAncestor, error$136); } else ref.current = null; } @@ -7611,7 +7617,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$184) { + } catch (e$186) { JSCompiler_temp = null; break a; } @@ -7877,11 +7883,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$136) { + } catch (error$138) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$136 + error$138 ); } } @@ -8561,8 +8567,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$149) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$149); + } catch (error$151) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$151); } } break; @@ -8744,11 +8750,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$150) { + } catch (error$152) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$150 + error$152 ); } break; @@ -8785,8 +8791,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$151) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$151); + } catch (error$153) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$153); } } if ( @@ -8811,8 +8817,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$154) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$154); + } catch (error$156) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$156); } break; case 6: @@ -8825,8 +8831,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$155) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$155); + } catch (error$157) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$157); } } break; @@ -8840,8 +8846,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$156) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$156); + } catch (error$158) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$158); } break; case 4: @@ -8871,8 +8877,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$158) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$158); + } catch (error$160) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$160); } current = finishedWork.updateQueue; null !== current && @@ -8950,11 +8956,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$139) { + } catch (error$141) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$139 + error$141 ); } } else if ( @@ -9029,21 +9035,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$140 = JSCompiler_inline_result.stateNode; + var parent$142 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$140, ""), + (setTextContent(parent$142, ""), (JSCompiler_inline_result.flags &= -33)); - var before$141 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$141, parent$140); + var before$143 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$143, parent$142); break; case 3: case 4: - var parent$142 = JSCompiler_inline_result.stateNode.containerInfo, - before$143 = getHostSibling(finishedWork); + var parent$144 = JSCompiler_inline_result.stateNode.containerInfo, + before$145 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$143, - parent$142 + before$145, + parent$144 ); break; default: @@ -9513,9 +9519,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$165 = finishedWork.stateNode; + var instance$167 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$165._visibility & 4 + ? instance$167._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9528,7 +9534,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$165._visibility |= 4), + : ((instance$167._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9536,7 +9542,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$165._visibility |= 4), + : ((instance$167._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9549,7 +9555,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$165 + instance$167 ); break; case 24: @@ -10410,8 +10416,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$173) { - handleThrow(root, thrownValue$173); + } catch (thrownValue$175) { + handleThrow(root, thrownValue$175); } while (1); lanes && root.shellSuspendCounter++; @@ -10516,8 +10522,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$175) { - handleThrow(root, thrownValue$175); + } catch (thrownValue$177) { + handleThrow(root, thrownValue$177); } while (1); resetContextDependencies(); @@ -10723,12 +10729,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$179 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$181 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$179 && + shouldFireAfterActiveInstanceBlur$181 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10807,7 +10813,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$180 = rootWithPendingPassiveEffects, + var root$182 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -10823,7 +10829,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$180, remainingLanes); + releaseRootPooledCache(root$182, remainingLanes); } } return !1; @@ -12095,12 +12101,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$182 = fiber.stateNode; - if (root$182.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$182.pendingLanes); + var root$184 = fiber.stateNode; + if (root$184.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$184.pendingLanes); 0 !== lanes && - (markRootEntangled(root$182, lanes | 2), - ensureRootIsScheduled(root$182), + (markRootEntangled(root$184, lanes | 2), + ensureRootIsScheduled(root$184), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -12666,19 +12672,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$363; + var JSCompiler_inline_result$jscomp$365; if (canUseDOM) { - var isSupported$jscomp$inline_1530 = "oninput" in document; - if (!isSupported$jscomp$inline_1530) { - var element$jscomp$inline_1531 = document.createElement("div"); - element$jscomp$inline_1531.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1530 = - "function" === typeof element$jscomp$inline_1531.oninput; + var isSupported$jscomp$inline_1532 = "oninput" in document; + if (!isSupported$jscomp$inline_1532) { + var element$jscomp$inline_1533 = document.createElement("div"); + element$jscomp$inline_1533.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1532 = + "function" === typeof element$jscomp$inline_1533.oninput; } - JSCompiler_inline_result$jscomp$363 = isSupported$jscomp$inline_1530; - } else JSCompiler_inline_result$jscomp$363 = !1; + JSCompiler_inline_result$jscomp$365 = isSupported$jscomp$inline_1532; + } else JSCompiler_inline_result$jscomp$365 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$363 && + JSCompiler_inline_result$jscomp$365 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -12987,20 +12993,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1571 = 0; - i$jscomp$inline_1571 < simpleEventPluginEvents.length; - i$jscomp$inline_1571++ + var i$jscomp$inline_1573 = 0; + i$jscomp$inline_1573 < simpleEventPluginEvents.length; + i$jscomp$inline_1573++ ) { - var eventName$jscomp$inline_1572 = - simpleEventPluginEvents[i$jscomp$inline_1571], - domEventName$jscomp$inline_1573 = - eventName$jscomp$inline_1572.toLowerCase(), - capitalizedEvent$jscomp$inline_1574 = - eventName$jscomp$inline_1572[0].toUpperCase() + - eventName$jscomp$inline_1572.slice(1); + var eventName$jscomp$inline_1574 = + simpleEventPluginEvents[i$jscomp$inline_1573], + domEventName$jscomp$inline_1575 = + eventName$jscomp$inline_1574.toLowerCase(), + capitalizedEvent$jscomp$inline_1576 = + eventName$jscomp$inline_1574[0].toUpperCase() + + eventName$jscomp$inline_1574.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1573, - "on" + capitalizedEvent$jscomp$inline_1574 + domEventName$jscomp$inline_1575, + "on" + capitalizedEvent$jscomp$inline_1576 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14416,14 +14422,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$211 in nextProps) { - var propKey = nextProps[propKey$211]; - lastProp = lastProps[propKey$211]; + for (var propKey$213 in nextProps) { + var propKey = nextProps[propKey$213]; + lastProp = lastProps[propKey$213]; if ( - nextProps.hasOwnProperty(propKey$211) && + nextProps.hasOwnProperty(propKey$213) && (null != propKey || null != lastProp) ) - switch (propKey$211) { + switch (propKey$213) { case "type": type = propKey; break; @@ -14452,7 +14458,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$211, + propKey$213, propKey, nextProps, lastProp @@ -14471,7 +14477,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - defaultValue = value = propKey = propKey$211 = null; + defaultValue = value = propKey = propKey$213 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14502,7 +14508,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$211 = type; + propKey$213 = type; break; case "defaultValue": propKey = type; @@ -14520,10 +14526,10 @@ function updateProperties(domElement, tag, lastProps, nextProps) { lastDefaultValue ); } - updateSelect(domElement, propKey$211, propKey, value, defaultValue); + updateSelect(domElement, propKey$213, propKey, value, defaultValue); return; case "textarea": - propKey = propKey$211 = null; + propKey = propKey$213 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14547,7 +14553,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$211 = name; + propKey$213 = name; break; case "defaultValue": propKey = name; @@ -14561,17 +14567,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$211, propKey); + updateTextarea(domElement, propKey$213, propKey); return; case "option": - for (var propKey$227 in lastProps) + for (var propKey$229 in lastProps) if ( - ((propKey$211 = lastProps[propKey$227]), - lastProps.hasOwnProperty(propKey$227) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$227)) + ((propKey$213 = lastProps[propKey$229]), + lastProps.hasOwnProperty(propKey$229) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$229)) ) - switch (propKey$227) { + switch (propKey$229) { case "selected": domElement.selected = !1; break; @@ -14579,33 +14585,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$227, + propKey$229, null, nextProps, - propKey$211 + propKey$213 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$211 = nextProps[lastDefaultValue]), + ((propKey$213 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$211 !== propKey && - (null != propKey$211 || null != propKey)) + propKey$213 !== propKey && + (null != propKey$213 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$211 && - "function" !== typeof propKey$211 && - "symbol" !== typeof propKey$211; + propKey$213 && + "function" !== typeof propKey$213 && + "symbol" !== typeof propKey$213; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$211, + propKey$213, nextProps, propKey ); @@ -14626,24 +14632,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$232 in lastProps) - (propKey$211 = lastProps[propKey$232]), - lastProps.hasOwnProperty(propKey$232) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$232) && - setProp(domElement, tag, propKey$232, null, nextProps, propKey$211); + for (var propKey$234 in lastProps) + (propKey$213 = lastProps[propKey$234]), + lastProps.hasOwnProperty(propKey$234) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$234) && + setProp(domElement, tag, propKey$234, null, nextProps, propKey$213); for (checked in nextProps) if ( - ((propKey$211 = nextProps[checked]), + ((propKey$213 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$211 !== propKey && - (null != propKey$211 || null != propKey)) + propKey$213 !== propKey && + (null != propKey$213 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$211) + if (null != propKey$213) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14651,7 +14657,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$211, + propKey$213, nextProps, propKey ); @@ -14659,49 +14665,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$237 in lastProps) - (propKey$211 = lastProps[propKey$237]), - lastProps.hasOwnProperty(propKey$237) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$237) && + for (var propKey$239 in lastProps) + (propKey$213 = lastProps[propKey$239]), + lastProps.hasOwnProperty(propKey$239) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$239) && setPropOnCustomElement( domElement, tag, - propKey$237, + propKey$239, null, nextProps, - propKey$211 + propKey$213 ); for (defaultChecked in nextProps) - (propKey$211 = nextProps[defaultChecked]), + (propKey$213 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$211 === propKey || - (null == propKey$211 && null == propKey) || + propKey$213 === propKey || + (null == propKey$213 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$211, + propKey$213, nextProps, propKey ); return; } } - for (var propKey$242 in lastProps) - (propKey$211 = lastProps[propKey$242]), - lastProps.hasOwnProperty(propKey$242) && - null != propKey$211 && - !nextProps.hasOwnProperty(propKey$242) && - setProp(domElement, tag, propKey$242, null, nextProps, propKey$211); + for (var propKey$244 in lastProps) + (propKey$213 = lastProps[propKey$244]), + lastProps.hasOwnProperty(propKey$244) && + null != propKey$213 && + !nextProps.hasOwnProperty(propKey$244) && + setProp(domElement, tag, propKey$244, null, nextProps, propKey$213); for (lastProp in nextProps) - (propKey$211 = nextProps[lastProp]), + (propKey$213 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$211 === propKey || - (null == propKey$211 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$211, nextProps, propKey); + propKey$213 === propKey || + (null == propKey$213 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$213, nextProps, propKey); } function updatePropertiesWithDiff( domElement, @@ -15433,17 +15439,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$272 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$273 = styles$272.get(type); - resource$273 || + var styles$274 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$275 = styles$274.get(type); + resource$275 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$273 = { + (resource$275 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$272.set(type, resource$273), + styles$274.set(type, resource$275), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15458,9 +15464,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$273.state + resource$275.state )); - return resource$273; + return resource$275; } return null; case "script": @@ -15543,36 +15549,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$277 = hoistableRoot.querySelector( + var instance$279 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$277) + if (instance$279) return ( - (resource.instance = instance$277), - markNodeAsHoistable(instance$277), - instance$277 + (resource.instance = instance$279), + markNodeAsHoistable(instance$279), + instance$279 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$277 = ( + instance$279 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$277); - var linkInstance = instance$277; + markNodeAsHoistable(instance$279); + var linkInstance = instance$279; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$277, "link", instance); + setInitialProperties(instance$279, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$277, props.precedence, hoistableRoot); - return (resource.instance = instance$277); + insertStylesheet(instance$279, props.precedence, hoistableRoot); + return (resource.instance = instance$279); case "script": - instance$277 = getScriptKey(props.src); + instance$279 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$277) + getScriptSelectorFromKey(instance$279) )) ) return ( @@ -15581,7 +15587,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$277))) + if ((styleProps = preloadPropsMap.get(instance$279))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16533,11 +16539,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$297); + var instance = getPublicRootInstance(root$299); originalCallback.call(instance); }; } - var root$297 = createHydrationContainer( + var root$299 = createHydrationContainer( initialChildren, callback, container, @@ -16550,23 +16556,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$297; - container[internalContainerInstanceKey] = root$297.current; + container._reactRootContainer = root$299; + container[internalContainerInstanceKey] = root$299.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$297; + return root$299; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$298 = callback; + var originalCallback$300 = callback; callback = function () { - var instance = getPublicRootInstance(root$299); - originalCallback$298.call(instance); + var instance = getPublicRootInstance(root$301); + originalCallback$300.call(instance); }; } - var root$299 = createFiberRoot( + var root$301 = createFiberRoot( container, 0, !1, @@ -16579,15 +16585,15 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$299; - container[internalContainerInstanceKey] = root$299.current; + container._reactRootContainer = root$301; + container[internalContainerInstanceKey] = root$301.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$299, parentComponent, callback); + updateContainer(initialChildren, root$301, parentComponent, callback); }); - return root$299; + return root$301; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16656,17 +16662,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1779 = { +var devToolsConfig$jscomp$inline_1781 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-e7e6f4e1", + version: "18.3.0-www-classic-de8a03d3", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2136 = { - bundleType: devToolsConfig$jscomp$inline_1779.bundleType, - version: devToolsConfig$jscomp$inline_1779.version, - rendererPackageName: devToolsConfig$jscomp$inline_1779.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1779.rendererConfig, +var internals$jscomp$inline_2140 = { + bundleType: devToolsConfig$jscomp$inline_1781.bundleType, + version: devToolsConfig$jscomp$inline_1781.version, + rendererPackageName: devToolsConfig$jscomp$inline_1781.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1781.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16682,26 +16688,26 @@ var internals$jscomp$inline_2136 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1779.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1781.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-e7e6f4e1" + reconcilerVersion: "18.3.0-www-classic-de8a03d3" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2137 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2141 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2137.isDisabled && - hook$jscomp$inline_2137.supportsFiber + !hook$jscomp$inline_2141.isDisabled && + hook$jscomp$inline_2141.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2137.inject( - internals$jscomp$inline_2136 + (rendererID = hook$jscomp$inline_2141.inject( + internals$jscomp$inline_2140 )), - (injectedHook = hook$jscomp$inline_2137); + (injectedHook = hook$jscomp$inline_2141); } catch (err) {} } assign(Internals, { @@ -17023,4 +17029,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-e7e6f4e1"; +exports.version = "18.3.0-www-classic-de8a03d3"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 8557cf4150..f92fefed4e 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -1081,15 +1081,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$14 in styles) - (styleName = styles[styleName$14]), - styles.hasOwnProperty(styleName$14) && - prevStyles[styleName$14] !== styleName && - setValueForStyle(node, styleName$14, styleName); + for (var styleName$16 in styles) + (styleName = styles[styleName$16]), + styles.hasOwnProperty(styleName$16) && + prevStyles[styleName$16] !== styleName && + setValueForStyle(node, styleName$16, styleName); } else - for (var styleName$15 in styles) - styles.hasOwnProperty(styleName$15) && - setValueForStyle(node, styleName$15, styles[styleName$15]); + for (var styleName$17 in styles) + styles.hasOwnProperty(styleName$17) && + setValueForStyle(node, styleName$17, styles[styleName$17]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1238,7 +1238,6 @@ function restoreStateOfTarget(target) { if (otherNode !== target && otherNode.form === target.form) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); - updateValueIfChanged(otherNode); updateInput( otherNode, otherProps.value, @@ -1251,6 +1250,13 @@ function restoreStateOfTarget(target) { ); } } + for ( + internalInstance = 0; + internalInstance < props.length; + internalInstance++ + ) + (otherNode = props[internalInstance]), + otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": @@ -1338,36 +1344,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$17 = parentA.child; child$17; ) { - if (child$17 === a) { + for (var didFindChild = !1, child$19 = parentA.child; child$19; ) { + if (child$19 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$17 === b) { + if (child$19 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$17 = child$17.sibling; + child$19 = child$19.sibling; } if (!didFindChild) { - for (child$17 = parentB.child; child$17; ) { - if (child$17 === a) { + for (child$19 = parentB.child; child$19; ) { + if (child$19 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$17 === b) { + if (child$19 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$17 = child$17.sibling; + child$19 = child$19.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -2987,13 +2993,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$45 = firstScheduledRoot; null !== root$45; ) { + for (var root$47 = firstScheduledRoot; null !== root$47; ) { if ( - (!onlyLegacy || 0 === root$45.tag) && + (!onlyLegacy || 0 === root$47.tag) && 0 !== (getNextLanes( - root$45, - root$45 === workInProgressRoot$jscomp$0 + root$47, + root$47 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -3001,7 +3007,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$45; + var root = root$47; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -3044,7 +3050,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$45 = root$45.next; + root$47 = root$47.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3507,7 +3513,7 @@ function updateReducerImpl(hook, current, reducer) { update = update.next; continue; } else { - var clone$48 = { + var clone$50 = { lane: 0, revertLane: update.revertLane, action: update.action, @@ -3516,9 +3522,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }; null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48); + : (newBaseQueueLast = newBaseQueueLast.next = clone$50); currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } @@ -3540,7 +3546,7 @@ function updateReducerImpl(hook, current, reducer) { ? update.eagerState : reducer(pendingQueue, updateLane); } else - (clone$48 = { + (clone$50 = { lane: updateLane, revertLane: update.revertLane, action: update.action, @@ -3549,9 +3555,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }), null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48), + : (newBaseQueueLast = newBaseQueueLast.next = clone$50), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; @@ -3887,11 +3893,11 @@ function startTransition( ); dispatchSetState(fiber, queue, entangledResult); } else { - var entangledResult$53 = requestSyncActionContext( + var entangledResult$55 = requestSyncActionContext( returnValue, finishedState ); - dispatchSetState(fiber, queue, entangledResult$53); + dispatchSetState(fiber, queue, entangledResult$55); } } else dispatchSetState(fiber, queue, finishedState), callback(); } catch (error) { @@ -3920,14 +3926,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$54 = enqueueUpdate(provider, fiber, lane); - null !== root$54 && - (scheduleUpdateOnFiber(root$54, provider, lane), - entangleTransitions(root$54, provider, lane)); + var root$56 = enqueueUpdate(provider, fiber, lane); + null !== root$56 && + (scheduleUpdateOnFiber(root$56, provider, lane), + entangleTransitions(root$56, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$54 && + null !== root$56 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4155,15 +4161,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$51 = workInProgressRoot; + if (null === root$51) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$51, 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$51 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$51; + mountEffect(subscribeToStore.bind(null, fiber, root$51, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4172,7 +4178,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$49, + root$51, getServerSnapshot, getSnapshot ), @@ -4818,10 +4824,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$64 = workInProgress.stateNode; + root$66 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$64.incompleteTransitions.has(transition)) { + if (!root$66.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4829,11 +4835,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$64.incompleteTransitions.set(transition, markerInstance); + root$66.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$64.incompleteTransitions.forEach(function (markerInstance) { + root$66.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5494,14 +5500,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$71 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$71) + var dehydrated$73 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$73) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$71, + dehydrated$73, JSCompiler_temp, renderLanes ); @@ -5511,7 +5517,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$71 = JSCompiler_temp.sibling; + dehydrated$73 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5520,8 +5526,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$71 - ? (showFallback = createWorkInProgress(dehydrated$71, showFallback)) + null !== dehydrated$73 + ? (showFallback = createWorkInProgress(dehydrated$73, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5540,10 +5546,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$71 = CacheContext._currentValue), + ? ((dehydrated$73 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$71 - ? { parent: dehydrated$71, pool: dehydrated$71 } + JSCompiler_temp.parent !== dehydrated$73 + ? { parent: dehydrated$73, pool: dehydrated$73 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5557,23 +5563,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$71 = showFallback.updateQueue), + (dehydrated$73 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$71 + null === dehydrated$73 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$71 === primaryChildProps + : dehydrated$73 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$71.transitions = didSuspend), - (dehydrated$71.markerInstances = JSCompiler_temp)))); + : ((dehydrated$73.transitions = didSuspend), + (dehydrated$73.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6634,14 +6640,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$102 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$102 = lastTailNode), + for (var lastTailNode$104 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$104 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$102 + null === lastTailNode$104 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$102.sibling = null); + : (lastTailNode$104.sibling = null); } } function bubbleProperties(completedWork) { @@ -6651,19 +6657,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags & 31457280), - (subtreeFlags |= child$103.flags & 31457280), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (var child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags & 31457280), + (subtreeFlags |= child$105.flags & 31457280), + (child$105.return = completedWork), + (child$105 = child$105.sibling); else - for (child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags), - (subtreeFlags |= child$103.flags), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags), + (subtreeFlags |= child$105.flags), + (child$105.return = completedWork), + (child$105 = child$105.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7396,8 +7402,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$133) { - captureCommitPhaseError(current, nearestMountedAncestor, error$133); + } catch (error$135) { + captureCommitPhaseError(current, nearestMountedAncestor, error$135); } else ref.current = null; } @@ -7434,7 +7440,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$188) { + } catch (e$190) { JSCompiler_temp = null; break a; } @@ -7713,11 +7719,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$135) { + } catch (error$137) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$135 + error$137 ); } } @@ -8397,8 +8403,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$148) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$148); + } catch (error$150) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$150); } } break; @@ -8580,11 +8586,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$149) { + } catch (error$151) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$149 + error$151 ); } break; @@ -8621,8 +8627,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$150) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$150); + } catch (error$152) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$152); } } if ( @@ -8647,8 +8653,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$153) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$153); + } catch (error$155) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$155); } break; case 6: @@ -8661,8 +8667,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$154) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$154); + } catch (error$156) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$156); } } break; @@ -8676,8 +8682,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$155) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$155); + } catch (error$157) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$157); } break; case 4: @@ -8707,8 +8713,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$157) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$157); + } catch (error$159) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$159); } current = finishedWork.updateQueue; null !== current && @@ -8786,11 +8792,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$138) { + } catch (error$140) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$138 + error$140 ); } } else if ( @@ -8865,21 +8871,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$139 = JSCompiler_inline_result.stateNode; + var parent$141 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$139, ""), + (setTextContent(parent$141, ""), (JSCompiler_inline_result.flags &= -33)); - var before$140 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$140, parent$139); + var before$142 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$142, parent$141); break; case 3: case 4: - var parent$141 = JSCompiler_inline_result.stateNode.containerInfo, - before$142 = getHostSibling(finishedWork); + var parent$143 = JSCompiler_inline_result.stateNode.containerInfo, + before$144 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$142, - parent$141 + before$144, + parent$143 ); break; default: @@ -9349,9 +9355,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$164 = finishedWork.stateNode; + var instance$166 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$164._visibility & 4 + ? instance$166._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9364,7 +9370,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$164._visibility |= 4), + : ((instance$166._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9372,7 +9378,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$164._visibility |= 4), + : ((instance$166._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9385,7 +9391,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$164 + instance$166 ); break; case 24: @@ -10246,8 +10252,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$172) { - handleThrow(root, thrownValue$172); + } catch (thrownValue$174) { + handleThrow(root, thrownValue$174); } while (1); lanes && root.shellSuspendCounter++; @@ -10352,8 +10358,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$174) { - handleThrow(root, thrownValue$174); + } catch (thrownValue$176) { + handleThrow(root, thrownValue$176); } while (1); resetContextDependencies(); @@ -10555,12 +10561,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$178 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$180 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$178 && + shouldFireAfterActiveInstanceBlur$180 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10639,7 +10645,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$179 = rootWithPendingPassiveEffects, + var root$181 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -10655,7 +10661,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$179, remainingLanes); + releaseRootPooledCache(root$181, remainingLanes); } } return !1; @@ -11811,12 +11817,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$181 = fiber.stateNode; - if (root$181.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$181.pendingLanes); + var root$183 = fiber.stateNode; + if (root$183.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$183.pendingLanes); 0 !== lanes && - (markRootEntangled(root$181, lanes | 2), - ensureRootIsScheduled(root$181), + (markRootEntangled(root$183, lanes | 2), + ensureRootIsScheduled(root$183), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -12906,19 +12912,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$361; + var JSCompiler_inline_result$jscomp$363; if (canUseDOM) { - var isSupported$jscomp$inline_1529 = "oninput" in document; - if (!isSupported$jscomp$inline_1529) { - var element$jscomp$inline_1530 = document.createElement("div"); - element$jscomp$inline_1530.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1529 = - "function" === typeof element$jscomp$inline_1530.oninput; + var isSupported$jscomp$inline_1531 = "oninput" in document; + if (!isSupported$jscomp$inline_1531) { + var element$jscomp$inline_1532 = document.createElement("div"); + element$jscomp$inline_1532.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1531 = + "function" === typeof element$jscomp$inline_1532.oninput; } - JSCompiler_inline_result$jscomp$361 = isSupported$jscomp$inline_1529; - } else JSCompiler_inline_result$jscomp$361 = !1; + JSCompiler_inline_result$jscomp$363 = isSupported$jscomp$inline_1531; + } else JSCompiler_inline_result$jscomp$363 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$361 && + JSCompiler_inline_result$jscomp$363 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13227,20 +13233,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1570 = 0; - i$jscomp$inline_1570 < simpleEventPluginEvents.length; - i$jscomp$inline_1570++ + var i$jscomp$inline_1572 = 0; + i$jscomp$inline_1572 < simpleEventPluginEvents.length; + i$jscomp$inline_1572++ ) { - var eventName$jscomp$inline_1571 = - simpleEventPluginEvents[i$jscomp$inline_1570], - domEventName$jscomp$inline_1572 = - eventName$jscomp$inline_1571.toLowerCase(), - capitalizedEvent$jscomp$inline_1573 = - eventName$jscomp$inline_1571[0].toUpperCase() + - eventName$jscomp$inline_1571.slice(1); + var eventName$jscomp$inline_1573 = + simpleEventPluginEvents[i$jscomp$inline_1572], + domEventName$jscomp$inline_1574 = + eventName$jscomp$inline_1573.toLowerCase(), + capitalizedEvent$jscomp$inline_1575 = + eventName$jscomp$inline_1573[0].toUpperCase() + + eventName$jscomp$inline_1573.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1572, - "on" + capitalizedEvent$jscomp$inline_1573 + domEventName$jscomp$inline_1574, + "on" + capitalizedEvent$jscomp$inline_1575 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14655,14 +14661,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$215 in nextProps) { - var propKey = nextProps[propKey$215]; - lastProp = lastProps[propKey$215]; + for (var propKey$217 in nextProps) { + var propKey = nextProps[propKey$217]; + lastProp = lastProps[propKey$217]; if ( - nextProps.hasOwnProperty(propKey$215) && + nextProps.hasOwnProperty(propKey$217) && (null != propKey || null != lastProp) ) - switch (propKey$215) { + switch (propKey$217) { case "type": type = propKey; break; @@ -14691,7 +14697,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$215, + propKey$217, propKey, nextProps, lastProp @@ -14710,7 +14716,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - defaultValue = value = propKey = propKey$215 = null; + defaultValue = value = propKey = propKey$217 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14741,7 +14747,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$215 = type; + propKey$217 = type; break; case "defaultValue": propKey = type; @@ -14759,10 +14765,10 @@ function updateProperties(domElement, tag, lastProps, nextProps) { lastDefaultValue ); } - updateSelect(domElement, propKey$215, propKey, value, defaultValue); + updateSelect(domElement, propKey$217, propKey, value, defaultValue); return; case "textarea": - propKey = propKey$215 = null; + propKey = propKey$217 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14786,7 +14792,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$215 = name; + propKey$217 = name; break; case "defaultValue": propKey = name; @@ -14800,17 +14806,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$215, propKey); + updateTextarea(domElement, propKey$217, propKey); return; case "option": - for (var propKey$231 in lastProps) + for (var propKey$233 in lastProps) if ( - ((propKey$215 = lastProps[propKey$231]), - lastProps.hasOwnProperty(propKey$231) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$231)) + ((propKey$217 = lastProps[propKey$233]), + lastProps.hasOwnProperty(propKey$233) && + null != propKey$217 && + !nextProps.hasOwnProperty(propKey$233)) ) - switch (propKey$231) { + switch (propKey$233) { case "selected": domElement.selected = !1; break; @@ -14818,33 +14824,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$231, + propKey$233, null, nextProps, - propKey$215 + propKey$217 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$215 = nextProps[lastDefaultValue]), + ((propKey$217 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$215 !== propKey && - (null != propKey$215 || null != propKey)) + propKey$217 !== propKey && + (null != propKey$217 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$215 && - "function" !== typeof propKey$215 && - "symbol" !== typeof propKey$215; + propKey$217 && + "function" !== typeof propKey$217 && + "symbol" !== typeof propKey$217; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$215, + propKey$217, nextProps, propKey ); @@ -14865,24 +14871,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$236 in lastProps) - (propKey$215 = lastProps[propKey$236]), - lastProps.hasOwnProperty(propKey$236) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$236) && - setProp(domElement, tag, propKey$236, null, nextProps, propKey$215); + for (var propKey$238 in lastProps) + (propKey$217 = lastProps[propKey$238]), + lastProps.hasOwnProperty(propKey$238) && + null != propKey$217 && + !nextProps.hasOwnProperty(propKey$238) && + setProp(domElement, tag, propKey$238, null, nextProps, propKey$217); for (checked in nextProps) if ( - ((propKey$215 = nextProps[checked]), + ((propKey$217 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$215 !== propKey && - (null != propKey$215 || null != propKey)) + propKey$217 !== propKey && + (null != propKey$217 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$215) + if (null != propKey$217) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14890,7 +14896,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$215, + propKey$217, nextProps, propKey ); @@ -14898,49 +14904,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$241 in lastProps) - (propKey$215 = lastProps[propKey$241]), - lastProps.hasOwnProperty(propKey$241) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$241) && + for (var propKey$243 in lastProps) + (propKey$217 = lastProps[propKey$243]), + lastProps.hasOwnProperty(propKey$243) && + null != propKey$217 && + !nextProps.hasOwnProperty(propKey$243) && setPropOnCustomElement( domElement, tag, - propKey$241, + propKey$243, null, nextProps, - propKey$215 + propKey$217 ); for (defaultChecked in nextProps) - (propKey$215 = nextProps[defaultChecked]), + (propKey$217 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$215 === propKey || - (null == propKey$215 && null == propKey) || + propKey$217 === propKey || + (null == propKey$217 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$215, + propKey$217, nextProps, propKey ); return; } } - for (var propKey$246 in lastProps) - (propKey$215 = lastProps[propKey$246]), - lastProps.hasOwnProperty(propKey$246) && - null != propKey$215 && - !nextProps.hasOwnProperty(propKey$246) && - setProp(domElement, tag, propKey$246, null, nextProps, propKey$215); + for (var propKey$248 in lastProps) + (propKey$217 = lastProps[propKey$248]), + lastProps.hasOwnProperty(propKey$248) && + null != propKey$217 && + !nextProps.hasOwnProperty(propKey$248) && + setProp(domElement, tag, propKey$248, null, nextProps, propKey$217); for (lastProp in nextProps) - (propKey$215 = nextProps[lastProp]), + (propKey$217 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$215 === propKey || - (null == propKey$215 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$215, nextProps, propKey); + propKey$217 === propKey || + (null == propKey$217 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$217, nextProps, propKey); } function updatePropertiesWithDiff( domElement, @@ -15658,17 +15664,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$276 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$277 = styles$276.get(type); - resource$277 || + var styles$278 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$279 = styles$278.get(type); + resource$279 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$277 = { + (resource$279 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$276.set(type, resource$277), + styles$278.set(type, resource$279), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15683,9 +15689,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$277.state + resource$279.state )); - return resource$277; + return resource$279; } return null; case "script": @@ -15768,36 +15774,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$281 = hoistableRoot.querySelector( + var instance$283 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$281) + if (instance$283) return ( - (resource.instance = instance$281), - markNodeAsHoistable(instance$281), - instance$281 + (resource.instance = instance$283), + markNodeAsHoistable(instance$283), + instance$283 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$281 = ( + instance$283 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$281); - var linkInstance = instance$281; + markNodeAsHoistable(instance$283); + var linkInstance = instance$283; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$281, "link", instance); + setInitialProperties(instance$283, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$281, props.precedence, hoistableRoot); - return (resource.instance = instance$281); + insertStylesheet(instance$283, props.precedence, hoistableRoot); + return (resource.instance = instance$283); case "script": - instance$281 = getScriptKey(props.src); + instance$283 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$281) + getScriptSelectorFromKey(instance$283) )) ) return ( @@ -15806,7 +15812,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$281))) + if ((styleProps = preloadPropsMap.get(instance$283))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16178,17 +16184,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1738 = { +var devToolsConfig$jscomp$inline_1740 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-a6767e12", + version: "18.3.0-www-modern-fd33850f", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2100 = { - bundleType: devToolsConfig$jscomp$inline_1738.bundleType, - version: devToolsConfig$jscomp$inline_1738.version, - rendererPackageName: devToolsConfig$jscomp$inline_1738.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1738.rendererConfig, +var internals$jscomp$inline_2104 = { + bundleType: devToolsConfig$jscomp$inline_1740.bundleType, + version: devToolsConfig$jscomp$inline_1740.version, + rendererPackageName: devToolsConfig$jscomp$inline_1740.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1740.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16205,26 +16211,26 @@ var internals$jscomp$inline_2100 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1738.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1740.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-a6767e12" + reconcilerVersion: "18.3.0-www-modern-fd33850f" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2101 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2105 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2101.isDisabled && - hook$jscomp$inline_2101.supportsFiber + !hook$jscomp$inline_2105.isDisabled && + hook$jscomp$inline_2105.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2101.inject( - internals$jscomp$inline_2100 + (rendererID = hook$jscomp$inline_2105.inject( + internals$jscomp$inline_2104 )), - (injectedHook = hook$jscomp$inline_2101); + (injectedHook = hook$jscomp$inline_2105); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -16474,4 +16480,4 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-a6767e12"; +exports.version = "18.3.0-www-modern-fd33850f"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 8619f6ca13..746b9a8bec 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -1381,15 +1381,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$20 in styles) + (styleName = styles[styleName$20]), + styles.hasOwnProperty(styleName$20) && + prevStyles[styleName$20] !== styleName && + setValueForStyle(node, styleName$20, styleName); } else - for (var styleName$19 in styles) - styles.hasOwnProperty(styleName$19) && - setValueForStyle(node, styleName$19, styles[styleName$19]); + for (var styleName$21 in styles) + styles.hasOwnProperty(styleName$21) && + setValueForStyle(node, styleName$21, styles[styleName$21]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1537,7 +1537,6 @@ function restoreStateOfTarget(target) { if (otherNode !== target && otherNode.form === target.form) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); - updateValueIfChanged(otherNode); updateInput( otherNode, otherProps.value, @@ -1550,6 +1549,13 @@ function restoreStateOfTarget(target) { ); } } + for ( + internalInstance = 0; + internalInstance < props.length; + internalInstance++ + ) + (otherNode = props[internalInstance]), + otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": @@ -3238,13 +3244,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$48 = firstScheduledRoot; null !== root$48; ) { + for (var root$50 = firstScheduledRoot; null !== root$50; ) { if ( - (!onlyLegacy || 0 === root$48.tag) && + (!onlyLegacy || 0 === root$50.tag) && 0 !== (getNextLanes( - root$48, - root$48 === workInProgressRoot$jscomp$0 + root$50, + root$50 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -3252,7 +3258,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$48; + var root = root$50; currentUpdateIsNested = nestedUpdateScheduled; nestedUpdateScheduled = !1; if (0 !== (executionContext & 6)) @@ -3297,7 +3303,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$48 = root$48.next; + root$50 = root$50.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3760,7 +3766,7 @@ function updateReducerImpl(hook, current, reducer) { update = update.next; continue; } else { - var clone$51 = { + var clone$53 = { lane: 0, revertLane: update.revertLane, action: update.action, @@ -3769,9 +3775,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }; null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$51), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$53), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$51); + : (newBaseQueueLast = newBaseQueueLast.next = clone$53); currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } @@ -3793,7 +3799,7 @@ function updateReducerImpl(hook, current, reducer) { ? update.eagerState : reducer(pendingQueue, updateLane); } else - (clone$51 = { + (clone$53 = { lane: updateLane, revertLane: update.revertLane, action: update.action, @@ -3802,9 +3808,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }), null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$51), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$53), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$51), + : (newBaseQueueLast = newBaseQueueLast.next = clone$53), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; @@ -4140,11 +4146,11 @@ function startTransition( ); dispatchSetState(fiber, queue, entangledResult); } else { - var entangledResult$56 = requestSyncActionContext( + var entangledResult$58 = requestSyncActionContext( returnValue, finishedState ); - dispatchSetState(fiber, queue, entangledResult$56); + dispatchSetState(fiber, queue, entangledResult$58); } } else dispatchSetState(fiber, queue, finishedState), callback(); } catch (error) { @@ -4173,14 +4179,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$57 = enqueueUpdate(provider, fiber, lane); - null !== root$57 && - (scheduleUpdateOnFiber(root$57, provider, lane), - entangleTransitions(root$57, provider, lane)); + var root$59 = enqueueUpdate(provider, fiber, lane); + null !== root$59 && + (scheduleUpdateOnFiber(root$59, provider, lane), + entangleTransitions(root$59, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$57 && + null !== root$59 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4411,15 +4417,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$52 = workInProgressRoot; - if (null === root$52) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$52, renderLanes$1) || + var root$54 = workInProgressRoot; + if (null === root$54) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$54, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$52 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$52; - mountEffect(subscribeToStore.bind(null, fiber, root$52, subscribe), [ + root$54 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$54; + mountEffect(subscribeToStore.bind(null, fiber, root$54, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4428,7 +4434,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$52, + root$54, getServerSnapshot, getSnapshot ), @@ -5159,10 +5165,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$69 = workInProgress.stateNode; + root$71 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$69.incompleteTransitions.has(transition)) { + if (!root$71.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5170,11 +5176,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$69.incompleteTransitions.set(transition, markerInstance); + root$71.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$69.incompleteTransitions.forEach(function (markerInstance) { + root$71.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5880,14 +5886,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$76 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$76) + var dehydrated$78 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$78) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$76, + dehydrated$78, JSCompiler_temp, renderLanes ); @@ -5897,7 +5903,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$76 = JSCompiler_temp.sibling; + dehydrated$78 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5911,8 +5917,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$76 - ? (showFallback = createWorkInProgress(dehydrated$76, showFallback)) + null !== dehydrated$78 + ? (showFallback = createWorkInProgress(dehydrated$78, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5931,10 +5937,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$76 = CacheContext._currentValue), + ? ((dehydrated$78 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$76 - ? { parent: dehydrated$76, pool: dehydrated$76 } + JSCompiler_temp.parent !== dehydrated$78 + ? { parent: dehydrated$78, pool: dehydrated$78 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5948,23 +5954,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$76 = showFallback.updateQueue), + (dehydrated$78 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$76 + null === dehydrated$78 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$76 === primaryChildProps + : dehydrated$78 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$76.transitions = didSuspend), - (dehydrated$76.markerInstances = JSCompiler_temp)))); + : ((dehydrated$78.transitions = didSuspend), + (dehydrated$78.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -7042,14 +7048,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$108 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$108 = lastTailNode), + for (var lastTailNode$110 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$110 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$108 + null === lastTailNode$110 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$108.sibling = null); + : (lastTailNode$110.sibling = null); } } function bubbleProperties(completedWork) { @@ -7061,53 +7067,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$110 = completedWork.selfBaseDuration, - child$111 = completedWork.child; - null !== child$111; + var treeBaseDuration$112 = completedWork.selfBaseDuration, + child$113 = completedWork.child; + null !== child$113; ) - (newChildLanes |= child$111.lanes | child$111.childLanes), - (subtreeFlags |= child$111.subtreeFlags & 31457280), - (subtreeFlags |= child$111.flags & 31457280), - (treeBaseDuration$110 += child$111.treeBaseDuration), - (child$111 = child$111.sibling); - completedWork.treeBaseDuration = treeBaseDuration$110; + (newChildLanes |= child$113.lanes | child$113.childLanes), + (subtreeFlags |= child$113.subtreeFlags & 31457280), + (subtreeFlags |= child$113.flags & 31457280), + (treeBaseDuration$112 += child$113.treeBaseDuration), + (child$113 = child$113.sibling); + completedWork.treeBaseDuration = treeBaseDuration$112; } else for ( - treeBaseDuration$110 = completedWork.child; - null !== treeBaseDuration$110; + treeBaseDuration$112 = completedWork.child; + null !== treeBaseDuration$112; ) (newChildLanes |= - treeBaseDuration$110.lanes | treeBaseDuration$110.childLanes), - (subtreeFlags |= treeBaseDuration$110.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$110.flags & 31457280), - (treeBaseDuration$110.return = completedWork), - (treeBaseDuration$110 = treeBaseDuration$110.sibling); + treeBaseDuration$112.lanes | treeBaseDuration$112.childLanes), + (subtreeFlags |= treeBaseDuration$112.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$112.flags & 31457280), + (treeBaseDuration$112.return = completedWork), + (treeBaseDuration$112 = treeBaseDuration$112.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$110 = completedWork.actualDuration; - child$111 = completedWork.selfBaseDuration; + treeBaseDuration$112 = completedWork.actualDuration; + child$113 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$110 += child.actualDuration), - (child$111 += child.treeBaseDuration), + (treeBaseDuration$112 += child.actualDuration), + (child$113 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$110; - completedWork.treeBaseDuration = child$111; + completedWork.actualDuration = treeBaseDuration$112; + completedWork.treeBaseDuration = child$113; } else for ( - treeBaseDuration$110 = completedWork.child; - null !== treeBaseDuration$110; + treeBaseDuration$112 = completedWork.child; + null !== treeBaseDuration$112; ) (newChildLanes |= - treeBaseDuration$110.lanes | treeBaseDuration$110.childLanes), - (subtreeFlags |= treeBaseDuration$110.subtreeFlags), - (subtreeFlags |= treeBaseDuration$110.flags), - (treeBaseDuration$110.return = completedWork), - (treeBaseDuration$110 = treeBaseDuration$110.sibling); + treeBaseDuration$112.lanes | treeBaseDuration$112.childLanes), + (subtreeFlags |= treeBaseDuration$112.subtreeFlags), + (subtreeFlags |= treeBaseDuration$112.flags), + (treeBaseDuration$112.return = completedWork), + (treeBaseDuration$112 = treeBaseDuration$112.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7925,8 +7931,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$145) { - captureCommitPhaseError(current, nearestMountedAncestor, error$145); + } catch (error$147) { + captureCommitPhaseError(current, nearestMountedAncestor, error$147); } else ref.current = null; } @@ -7963,7 +7969,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$205) { + } catch (e$207) { JSCompiler_temp = null; break a; } @@ -8220,11 +8226,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$147 = commitTime, + var commitTime$149 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$147); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$149); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -8251,8 +8257,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$149) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$149); + } catch (error$151) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$151); } } function commitClassCallbacks(finishedWork) { @@ -8351,11 +8357,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$150) { + } catch (error$152) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$150 + error$152 ); } else { @@ -8372,11 +8378,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$151) { + } catch (error$153) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$151 + error$153 ); } recordLayoutEffectDuration(finishedWork); @@ -8387,11 +8393,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$152) { + } catch (error$154) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$152 + error$154 ); } } @@ -9097,22 +9103,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$167) { + } catch (error$169) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$167 + error$169 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$168) { + } catch (error$170) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$168 + error$170 ); } } @@ -9295,11 +9301,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$169) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$169 + error$171 ); } break; @@ -9336,8 +9342,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$170) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$170); + } catch (error$172) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$172); } } if ( @@ -9362,8 +9368,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$173) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$173); + } catch (error$175) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$175); } break; case 6: @@ -9376,8 +9382,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$174) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$174); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } } break; @@ -9391,8 +9397,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$175) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$175); + } catch (error$177) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$177); } break; case 4: @@ -9422,8 +9428,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$177) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$177); + } catch (error$179) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$179); } current = finishedWork.updateQueue; null !== current && @@ -9501,11 +9507,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$157) { + } catch (error$159) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$157 + error$159 ); } } else if ( @@ -9580,21 +9586,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$158 = JSCompiler_inline_result.stateNode; + var parent$160 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$158, ""), + (setTextContent(parent$160, ""), (JSCompiler_inline_result.flags &= -33)); - var before$159 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$159, parent$158); + var before$161 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$161, parent$160); break; case 3: case 4: - var parent$160 = JSCompiler_inline_result.stateNode.containerInfo, - before$161 = getHostSibling(finishedWork); + var parent$162 = JSCompiler_inline_result.stateNode.containerInfo, + before$163 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$161, - parent$160 + before$163, + parent$162 ); break; default: @@ -9786,8 +9792,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10086,9 +10092,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$185 = finishedWork.stateNode; + var instance$187 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$185._visibility & 4 + ? instance$187._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10101,7 +10107,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$185._visibility |= 4), + : ((instance$187._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10109,7 +10115,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$185._visibility |= 4), + : ((instance$187._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10122,7 +10128,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$185 + instance$187 ); break; case 24: @@ -11059,8 +11065,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$193) { - handleThrow(root, thrownValue$193); + } catch (thrownValue$195) { + handleThrow(root, thrownValue$195); } while (1); lanes && root.shellSuspendCounter++; @@ -11176,8 +11182,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$195) { - handleThrow(root, thrownValue$195); + } catch (thrownValue$197) { + handleThrow(root, thrownValue$197); } while (1); resetContextDependencies(); @@ -11417,7 +11423,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$199 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$201 = commitBeforeMutationEffects( root, finishedWork ); @@ -11425,7 +11431,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$199 && + shouldFireAfterActiveInstanceBlur$201 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11519,7 +11525,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$200 = rootWithPendingPassiveEffects, + var root$202 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11535,7 +11541,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$200, remainingLanes); + releaseRootPooledCache(root$202, remainingLanes); } } return !1; @@ -12870,12 +12876,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$203 = fiber.stateNode; - if (root$203.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$203.pendingLanes); + var root$205 = fiber.stateNode; + if (root$205.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$205.pendingLanes); 0 !== lanes && - (markRootEntangled(root$203, lanes | 2), - ensureRootIsScheduled(root$203), + (markRootEntangled(root$205, lanes | 2), + ensureRootIsScheduled(root$205), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13441,19 +13447,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$384; + var JSCompiler_inline_result$jscomp$386; if (canUseDOM) { - var isSupported$jscomp$inline_1615 = "oninput" in document; - if (!isSupported$jscomp$inline_1615) { - var element$jscomp$inline_1616 = document.createElement("div"); - element$jscomp$inline_1616.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1615 = - "function" === typeof element$jscomp$inline_1616.oninput; + var isSupported$jscomp$inline_1617 = "oninput" in document; + if (!isSupported$jscomp$inline_1617) { + var element$jscomp$inline_1618 = document.createElement("div"); + element$jscomp$inline_1618.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1617 = + "function" === typeof element$jscomp$inline_1618.oninput; } - JSCompiler_inline_result$jscomp$384 = isSupported$jscomp$inline_1615; - } else JSCompiler_inline_result$jscomp$384 = !1; + JSCompiler_inline_result$jscomp$386 = isSupported$jscomp$inline_1617; + } else JSCompiler_inline_result$jscomp$386 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$384 && + JSCompiler_inline_result$jscomp$386 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13762,20 +13768,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1656 = 0; - i$jscomp$inline_1656 < simpleEventPluginEvents.length; - i$jscomp$inline_1656++ + var i$jscomp$inline_1658 = 0; + i$jscomp$inline_1658 < simpleEventPluginEvents.length; + i$jscomp$inline_1658++ ) { - var eventName$jscomp$inline_1657 = - simpleEventPluginEvents[i$jscomp$inline_1656], - domEventName$jscomp$inline_1658 = - eventName$jscomp$inline_1657.toLowerCase(), - capitalizedEvent$jscomp$inline_1659 = - eventName$jscomp$inline_1657[0].toUpperCase() + - eventName$jscomp$inline_1657.slice(1); + var eventName$jscomp$inline_1659 = + simpleEventPluginEvents[i$jscomp$inline_1658], + domEventName$jscomp$inline_1660 = + eventName$jscomp$inline_1659.toLowerCase(), + capitalizedEvent$jscomp$inline_1661 = + eventName$jscomp$inline_1659[0].toUpperCase() + + eventName$jscomp$inline_1659.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1658, - "on" + capitalizedEvent$jscomp$inline_1659 + domEventName$jscomp$inline_1660, + "on" + capitalizedEvent$jscomp$inline_1661 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15191,14 +15197,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$232 in nextProps) { - var propKey = nextProps[propKey$232]; - lastProp = lastProps[propKey$232]; + for (var propKey$234 in nextProps) { + var propKey = nextProps[propKey$234]; + lastProp = lastProps[propKey$234]; if ( - nextProps.hasOwnProperty(propKey$232) && + nextProps.hasOwnProperty(propKey$234) && (null != propKey || null != lastProp) ) - switch (propKey$232) { + switch (propKey$234) { case "type": type = propKey; break; @@ -15227,7 +15233,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$232, + propKey$234, propKey, nextProps, lastProp @@ -15246,7 +15252,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - defaultValue = value = propKey = propKey$232 = null; + defaultValue = value = propKey = propKey$234 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15277,7 +15283,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$232 = type; + propKey$234 = type; break; case "defaultValue": propKey = type; @@ -15295,10 +15301,10 @@ function updateProperties(domElement, tag, lastProps, nextProps) { lastDefaultValue ); } - updateSelect(domElement, propKey$232, propKey, value, defaultValue); + updateSelect(domElement, propKey$234, propKey, value, defaultValue); return; case "textarea": - propKey = propKey$232 = null; + propKey = propKey$234 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15322,7 +15328,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$232 = name; + propKey$234 = name; break; case "defaultValue": propKey = name; @@ -15336,17 +15342,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$232, propKey); + updateTextarea(domElement, propKey$234, propKey); return; case "option": - for (var propKey$248 in lastProps) + for (var propKey$250 in lastProps) if ( - ((propKey$232 = lastProps[propKey$248]), - lastProps.hasOwnProperty(propKey$248) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$248)) + ((propKey$234 = lastProps[propKey$250]), + lastProps.hasOwnProperty(propKey$250) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$250)) ) - switch (propKey$248) { + switch (propKey$250) { case "selected": domElement.selected = !1; break; @@ -15354,33 +15360,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$248, + propKey$250, null, nextProps, - propKey$232 + propKey$234 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$232 = nextProps[lastDefaultValue]), + ((propKey$234 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$232 !== propKey && - (null != propKey$232 || null != propKey)) + propKey$234 !== propKey && + (null != propKey$234 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$232 && - "function" !== typeof propKey$232 && - "symbol" !== typeof propKey$232; + propKey$234 && + "function" !== typeof propKey$234 && + "symbol" !== typeof propKey$234; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$232, + propKey$234, nextProps, propKey ); @@ -15401,24 +15407,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$253 in lastProps) - (propKey$232 = lastProps[propKey$253]), - lastProps.hasOwnProperty(propKey$253) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$253) && - setProp(domElement, tag, propKey$253, null, nextProps, propKey$232); + for (var propKey$255 in lastProps) + (propKey$234 = lastProps[propKey$255]), + lastProps.hasOwnProperty(propKey$255) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$255) && + setProp(domElement, tag, propKey$255, null, nextProps, propKey$234); for (checked in nextProps) if ( - ((propKey$232 = nextProps[checked]), + ((propKey$234 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$232 !== propKey && - (null != propKey$232 || null != propKey)) + propKey$234 !== propKey && + (null != propKey$234 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$232) + if (null != propKey$234) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15426,7 +15432,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$232, + propKey$234, nextProps, propKey ); @@ -15434,49 +15440,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$258 in lastProps) - (propKey$232 = lastProps[propKey$258]), - lastProps.hasOwnProperty(propKey$258) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$258) && + for (var propKey$260 in lastProps) + (propKey$234 = lastProps[propKey$260]), + lastProps.hasOwnProperty(propKey$260) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$260) && setPropOnCustomElement( domElement, tag, - propKey$258, + propKey$260, null, nextProps, - propKey$232 + propKey$234 ); for (defaultChecked in nextProps) - (propKey$232 = nextProps[defaultChecked]), + (propKey$234 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$232 === propKey || - (null == propKey$232 && null == propKey) || + propKey$234 === propKey || + (null == propKey$234 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$232, + propKey$234, nextProps, propKey ); return; } } - for (var propKey$263 in lastProps) - (propKey$232 = lastProps[propKey$263]), - lastProps.hasOwnProperty(propKey$263) && - null != propKey$232 && - !nextProps.hasOwnProperty(propKey$263) && - setProp(domElement, tag, propKey$263, null, nextProps, propKey$232); + for (var propKey$265 in lastProps) + (propKey$234 = lastProps[propKey$265]), + lastProps.hasOwnProperty(propKey$265) && + null != propKey$234 && + !nextProps.hasOwnProperty(propKey$265) && + setProp(domElement, tag, propKey$265, null, nextProps, propKey$234); for (lastProp in nextProps) - (propKey$232 = nextProps[lastProp]), + (propKey$234 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$232 === propKey || - (null == propKey$232 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$232, nextProps, propKey); + propKey$234 === propKey || + (null == propKey$234 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$234, nextProps, propKey); } function updatePropertiesWithDiff( domElement, @@ -16208,17 +16214,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$293 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$294 = styles$293.get(type); - resource$294 || + var styles$295 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$296 = styles$295.get(type); + resource$296 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$294 = { + (resource$296 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$293.set(type, resource$294), + styles$295.set(type, resource$296), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16233,9 +16239,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$294.state + resource$296.state )); - return resource$294; + return resource$296; } return null; case "script": @@ -16318,36 +16324,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$298 = hoistableRoot.querySelector( + var instance$300 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$298) + if (instance$300) return ( - (resource.instance = instance$298), - markNodeAsHoistable(instance$298), - instance$298 + (resource.instance = instance$300), + markNodeAsHoistable(instance$300), + instance$300 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$298 = ( + instance$300 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$298); - var linkInstance = instance$298; + markNodeAsHoistable(instance$300); + var linkInstance = instance$300; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$298, "link", instance); + setInitialProperties(instance$300, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$298, props.precedence, hoistableRoot); - return (resource.instance = instance$298); + insertStylesheet(instance$300, props.precedence, hoistableRoot); + return (resource.instance = instance$300); case "script": - instance$298 = getScriptKey(props.src); + instance$300 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$298) + getScriptSelectorFromKey(instance$300) )) ) return ( @@ -16356,7 +16362,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$298))) + if ((styleProps = preloadPropsMap.get(instance$300))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17308,11 +17314,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$318); + var instance = getPublicRootInstance(root$320); originalCallback.call(instance); }; } - var root$318 = createHydrationContainer( + var root$320 = createHydrationContainer( initialChildren, callback, container, @@ -17325,23 +17331,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$318; - container[internalContainerInstanceKey] = root$318.current; + container._reactRootContainer = root$320; + container[internalContainerInstanceKey] = root$320.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$318; + return root$320; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$319 = callback; + var originalCallback$321 = callback; callback = function () { - var instance = getPublicRootInstance(root$320); - originalCallback$319.call(instance); + var instance = getPublicRootInstance(root$322); + originalCallback$321.call(instance); }; } - var root$320 = createFiberRoot( + var root$322 = createFiberRoot( container, 0, !1, @@ -17354,15 +17360,15 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$320; - container[internalContainerInstanceKey] = root$320.current; + container._reactRootContainer = root$322; + container[internalContainerInstanceKey] = root$322.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$320, parentComponent, callback); + updateContainer(initialChildren, root$322, parentComponent, callback); }); - return root$320; + return root$322; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -17431,10 +17437,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1864 = { +var devToolsConfig$jscomp$inline_1866 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-c70fe923", + version: "18.3.0-www-classic-a987dfd4", rendererPackageName: "react-dom" }; (function (internals) { @@ -17452,10 +17458,10 @@ var devToolsConfig$jscomp$inline_1864 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1864.bundleType, - version: devToolsConfig$jscomp$inline_1864.version, - rendererPackageName: devToolsConfig$jscomp$inline_1864.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1864.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1866.bundleType, + version: devToolsConfig$jscomp$inline_1866.version, + rendererPackageName: devToolsConfig$jscomp$inline_1866.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1866.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -17471,14 +17477,14 @@ var devToolsConfig$jscomp$inline_1864 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1864.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1866.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-c70fe923" + reconcilerVersion: "18.3.0-www-classic-a987dfd4" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -17799,7 +17805,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-c70fe923"; +exports.version = "18.3.0-www-classic-a987dfd4"; /* 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 e829d60567..4f29cc4718 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -1225,15 +1225,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$17 in styles) - (styleName = styles[styleName$17]), - styles.hasOwnProperty(styleName$17) && - prevStyles[styleName$17] !== styleName && - setValueForStyle(node, styleName$17, styleName); + for (var styleName$19 in styles) + (styleName = styles[styleName$19]), + styles.hasOwnProperty(styleName$19) && + prevStyles[styleName$19] !== styleName && + setValueForStyle(node, styleName$19, styleName); } else - for (var styleName$18 in styles) - styles.hasOwnProperty(styleName$18) && - setValueForStyle(node, styleName$18, styles[styleName$18]); + for (var styleName$20 in styles) + styles.hasOwnProperty(styleName$20) && + setValueForStyle(node, styleName$20, styles[styleName$20]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1382,7 +1382,6 @@ function restoreStateOfTarget(target) { if (otherNode !== target && otherNode.form === target.form) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); - updateValueIfChanged(otherNode); updateInput( otherNode, otherProps.value, @@ -1395,6 +1394,13 @@ function restoreStateOfTarget(target) { ); } } + for ( + internalInstance = 0; + internalInstance < props.length; + internalInstance++ + ) + (otherNode = props[internalInstance]), + otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": @@ -1482,36 +1488,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$20 = parentA.child; child$20; ) { - if (child$20 === a) { + for (var didFindChild = !1, child$22 = parentA.child; child$22; ) { + if (child$22 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$20 === b) { + if (child$22 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$20 = child$20.sibling; + child$22 = child$22.sibling; } if (!didFindChild) { - for (child$20 = parentB.child; child$20; ) { - if (child$20 === a) { + for (child$22 = parentB.child; child$22; ) { + if (child$22 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$20 === b) { + if (child$22 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$20 = child$20.sibling; + child$22 = child$22.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -3131,13 +3137,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$48 = firstScheduledRoot; null !== root$48; ) { + for (var root$50 = firstScheduledRoot; null !== root$50; ) { if ( - (!onlyLegacy || 0 === root$48.tag) && + (!onlyLegacy || 0 === root$50.tag) && 0 !== (getNextLanes( - root$48, - root$48 === workInProgressRoot$jscomp$0 + root$50, + root$50 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -3145,7 +3151,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$48; + var root = root$50; currentUpdateIsNested = nestedUpdateScheduled; nestedUpdateScheduled = !1; if (0 !== (executionContext & 6)) @@ -3190,7 +3196,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$48 = root$48.next; + root$50 = root$50.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3653,7 +3659,7 @@ function updateReducerImpl(hook, current, reducer) { update = update.next; continue; } else { - var clone$51 = { + var clone$53 = { lane: 0, revertLane: update.revertLane, action: update.action, @@ -3662,9 +3668,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }; null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$51), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$53), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$51); + : (newBaseQueueLast = newBaseQueueLast.next = clone$53); currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } @@ -3686,7 +3692,7 @@ function updateReducerImpl(hook, current, reducer) { ? update.eagerState : reducer(pendingQueue, updateLane); } else - (clone$51 = { + (clone$53 = { lane: updateLane, revertLane: update.revertLane, action: update.action, @@ -3695,9 +3701,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }), null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$51), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$53), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$51), + : (newBaseQueueLast = newBaseQueueLast.next = clone$53), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; @@ -4033,11 +4039,11 @@ function startTransition( ); dispatchSetState(fiber, queue, entangledResult); } else { - var entangledResult$56 = requestSyncActionContext( + var entangledResult$58 = requestSyncActionContext( returnValue, finishedState ); - dispatchSetState(fiber, queue, entangledResult$56); + dispatchSetState(fiber, queue, entangledResult$58); } } else dispatchSetState(fiber, queue, finishedState), callback(); } catch (error) { @@ -4066,14 +4072,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$57 = enqueueUpdate(provider, fiber, lane); - null !== root$57 && - (scheduleUpdateOnFiber(root$57, provider, lane), - entangleTransitions(root$57, provider, lane)); + var root$59 = enqueueUpdate(provider, fiber, lane); + null !== root$59 && + (scheduleUpdateOnFiber(root$59, provider, lane), + entangleTransitions(root$59, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$57 && + null !== root$59 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4304,15 +4310,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$52 = workInProgressRoot; - if (null === root$52) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$52, renderLanes$1) || + var root$54 = workInProgressRoot; + if (null === root$54) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$54, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$52 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$52; - mountEffect(subscribeToStore.bind(null, fiber, root$52, subscribe), [ + root$54 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$54; + mountEffect(subscribeToStore.bind(null, fiber, root$54, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4321,7 +4327,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$52, + root$54, getServerSnapshot, getSnapshot ), @@ -5037,10 +5043,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$69 = workInProgress.stateNode; + root$71 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$69.incompleteTransitions.has(transition)) { + if (!root$71.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5048,11 +5054,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$69.incompleteTransitions.set(transition, markerInstance); + root$71.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$69.incompleteTransitions.forEach(function (markerInstance) { + root$71.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5720,14 +5726,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$76 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$76) + var dehydrated$78 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$78) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$76, + dehydrated$78, JSCompiler_temp, renderLanes ); @@ -5737,7 +5743,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$76 = JSCompiler_temp.sibling; + dehydrated$78 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5751,8 +5757,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$76 - ? (showFallback = createWorkInProgress(dehydrated$76, showFallback)) + null !== dehydrated$78 + ? (showFallback = createWorkInProgress(dehydrated$78, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5771,10 +5777,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$76 = CacheContext._currentValue), + ? ((dehydrated$78 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$76 - ? { parent: dehydrated$76, pool: dehydrated$76 } + JSCompiler_temp.parent !== dehydrated$78 + ? { parent: dehydrated$78, pool: dehydrated$78 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5788,23 +5794,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$76 = showFallback.updateQueue), + (dehydrated$78 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$76 + null === dehydrated$78 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$76 === primaryChildProps + : dehydrated$78 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$76.transitions = didSuspend), - (dehydrated$76.markerInstances = JSCompiler_temp)))); + : ((dehydrated$78.transitions = didSuspend), + (dehydrated$78.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6878,14 +6884,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$108 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$108 = lastTailNode), + for (var lastTailNode$110 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$110 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$108 + null === lastTailNode$110 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$108.sibling = null); + : (lastTailNode$110.sibling = null); } } function bubbleProperties(completedWork) { @@ -6897,53 +6903,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$110 = completedWork.selfBaseDuration, - child$111 = completedWork.child; - null !== child$111; + var treeBaseDuration$112 = completedWork.selfBaseDuration, + child$113 = completedWork.child; + null !== child$113; ) - (newChildLanes |= child$111.lanes | child$111.childLanes), - (subtreeFlags |= child$111.subtreeFlags & 31457280), - (subtreeFlags |= child$111.flags & 31457280), - (treeBaseDuration$110 += child$111.treeBaseDuration), - (child$111 = child$111.sibling); - completedWork.treeBaseDuration = treeBaseDuration$110; + (newChildLanes |= child$113.lanes | child$113.childLanes), + (subtreeFlags |= child$113.subtreeFlags & 31457280), + (subtreeFlags |= child$113.flags & 31457280), + (treeBaseDuration$112 += child$113.treeBaseDuration), + (child$113 = child$113.sibling); + completedWork.treeBaseDuration = treeBaseDuration$112; } else for ( - treeBaseDuration$110 = completedWork.child; - null !== treeBaseDuration$110; + treeBaseDuration$112 = completedWork.child; + null !== treeBaseDuration$112; ) (newChildLanes |= - treeBaseDuration$110.lanes | treeBaseDuration$110.childLanes), - (subtreeFlags |= treeBaseDuration$110.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$110.flags & 31457280), - (treeBaseDuration$110.return = completedWork), - (treeBaseDuration$110 = treeBaseDuration$110.sibling); + treeBaseDuration$112.lanes | treeBaseDuration$112.childLanes), + (subtreeFlags |= treeBaseDuration$112.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$112.flags & 31457280), + (treeBaseDuration$112.return = completedWork), + (treeBaseDuration$112 = treeBaseDuration$112.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$110 = completedWork.actualDuration; - child$111 = completedWork.selfBaseDuration; + treeBaseDuration$112 = completedWork.actualDuration; + child$113 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$110 += child.actualDuration), - (child$111 += child.treeBaseDuration), + (treeBaseDuration$112 += child.actualDuration), + (child$113 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$110; - completedWork.treeBaseDuration = child$111; + completedWork.actualDuration = treeBaseDuration$112; + completedWork.treeBaseDuration = child$113; } else for ( - treeBaseDuration$110 = completedWork.child; - null !== treeBaseDuration$110; + treeBaseDuration$112 = completedWork.child; + null !== treeBaseDuration$112; ) (newChildLanes |= - treeBaseDuration$110.lanes | treeBaseDuration$110.childLanes), - (subtreeFlags |= treeBaseDuration$110.subtreeFlags), - (subtreeFlags |= treeBaseDuration$110.flags), - (treeBaseDuration$110.return = completedWork), - (treeBaseDuration$110 = treeBaseDuration$110.sibling); + treeBaseDuration$112.lanes | treeBaseDuration$112.childLanes), + (subtreeFlags |= treeBaseDuration$112.subtreeFlags), + (subtreeFlags |= treeBaseDuration$112.flags), + (treeBaseDuration$112.return = completedWork), + (treeBaseDuration$112 = treeBaseDuration$112.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7742,8 +7748,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$144) { - captureCommitPhaseError(current, nearestMountedAncestor, error$144); + } catch (error$146) { + captureCommitPhaseError(current, nearestMountedAncestor, error$146); } else ref.current = null; } @@ -7780,7 +7786,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$209) { + } catch (e$211) { JSCompiler_temp = null; break a; } @@ -8050,11 +8056,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$146 = commitTime, + var commitTime$148 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$146); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$148); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -8081,8 +8087,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$148) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$148); + } catch (error$150) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$150); } } function commitClassCallbacks(finishedWork) { @@ -8181,11 +8187,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$149) { + } catch (error$151) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$149 + error$151 ); } else { @@ -8202,11 +8208,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$150) { + } catch (error$152) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$150 + error$152 ); } recordLayoutEffectDuration(finishedWork); @@ -8217,11 +8223,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$151) { + } catch (error$153) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$151 + error$153 ); } } @@ -8927,22 +8933,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$166) { + } catch (error$168) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$166 + error$168 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$167) { + } catch (error$169) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$167 + error$169 ); } } @@ -9125,11 +9131,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$168) { + } catch (error$170) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$168 + error$170 ); } break; @@ -9166,8 +9172,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$169) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$169); + } catch (error$171) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$171); } } if ( @@ -9192,8 +9198,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$172) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$172); + } catch (error$174) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$174); } break; case 6: @@ -9206,8 +9212,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$173) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$173); + } catch (error$175) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$175); } } break; @@ -9221,8 +9227,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$174) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$174); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } break; case 4: @@ -9252,8 +9258,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$176) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$176); + } catch (error$178) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$178); } current = finishedWork.updateQueue; null !== current && @@ -9331,11 +9337,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$156) { + } catch (error$158) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$156 + error$158 ); } } else if ( @@ -9410,21 +9416,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$157 = JSCompiler_inline_result.stateNode; + var parent$159 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$157, ""), + (setTextContent(parent$159, ""), (JSCompiler_inline_result.flags &= -33)); - var before$158 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$158, parent$157); + var before$160 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$160, parent$159); break; case 3: case 4: - var parent$159 = JSCompiler_inline_result.stateNode.containerInfo, - before$160 = getHostSibling(finishedWork); + var parent$161 = JSCompiler_inline_result.stateNode.containerInfo, + before$162 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$160, - parent$159 + before$162, + parent$161 ); break; default: @@ -9616,8 +9622,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -9916,9 +9922,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$184 = finishedWork.stateNode; + var instance$186 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$184._visibility & 4 + ? instance$186._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9931,7 +9937,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$184._visibility |= 4), + : ((instance$186._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9939,7 +9945,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$184._visibility |= 4), + : ((instance$186._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9952,7 +9958,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$184 + instance$186 ); break; case 24: @@ -10889,8 +10895,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$192) { - handleThrow(root, thrownValue$192); + } catch (thrownValue$194) { + handleThrow(root, thrownValue$194); } while (1); lanes && root.shellSuspendCounter++; @@ -11006,8 +11012,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$194) { - handleThrow(root, thrownValue$194); + } catch (thrownValue$196) { + handleThrow(root, thrownValue$196); } while (1); resetContextDependencies(); @@ -11243,7 +11249,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$198 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$200 = commitBeforeMutationEffects( root, finishedWork ); @@ -11251,7 +11257,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$198 && + shouldFireAfterActiveInstanceBlur$200 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11345,7 +11351,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$199 = rootWithPendingPassiveEffects, + var root$201 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11361,7 +11367,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$199, remainingLanes); + releaseRootPooledCache(root$201, remainingLanes); } } return !1; @@ -12580,12 +12586,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$202 = fiber.stateNode; - if (root$202.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$202.pendingLanes); + var root$204 = fiber.stateNode; + if (root$204.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$204.pendingLanes); 0 !== lanes && - (markRootEntangled(root$202, lanes | 2), - ensureRootIsScheduled(root$202), + (markRootEntangled(root$204, lanes | 2), + ensureRootIsScheduled(root$204), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13675,19 +13681,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$382; + var JSCompiler_inline_result$jscomp$384; if (canUseDOM) { - var isSupported$jscomp$inline_1614 = "oninput" in document; - if (!isSupported$jscomp$inline_1614) { - var element$jscomp$inline_1615 = document.createElement("div"); - element$jscomp$inline_1615.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1614 = - "function" === typeof element$jscomp$inline_1615.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$382 = isSupported$jscomp$inline_1614; - } else JSCompiler_inline_result$jscomp$382 = !1; + JSCompiler_inline_result$jscomp$384 = isSupported$jscomp$inline_1616; + } else JSCompiler_inline_result$jscomp$384 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$382 && + JSCompiler_inline_result$jscomp$384 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13996,20 +14002,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1655 = 0; - i$jscomp$inline_1655 < simpleEventPluginEvents.length; - i$jscomp$inline_1655++ + var i$jscomp$inline_1657 = 0; + i$jscomp$inline_1657 < simpleEventPluginEvents.length; + i$jscomp$inline_1657++ ) { - var eventName$jscomp$inline_1656 = - simpleEventPluginEvents[i$jscomp$inline_1655], - domEventName$jscomp$inline_1657 = - eventName$jscomp$inline_1656.toLowerCase(), - capitalizedEvent$jscomp$inline_1658 = - eventName$jscomp$inline_1656[0].toUpperCase() + - eventName$jscomp$inline_1656.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_1657, - "on" + capitalizedEvent$jscomp$inline_1658 + domEventName$jscomp$inline_1659, + "on" + capitalizedEvent$jscomp$inline_1660 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15424,14 +15430,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$236 in nextProps) { - var propKey = nextProps[propKey$236]; - lastProp = lastProps[propKey$236]; + for (var propKey$238 in nextProps) { + var propKey = nextProps[propKey$238]; + lastProp = lastProps[propKey$238]; if ( - nextProps.hasOwnProperty(propKey$236) && + nextProps.hasOwnProperty(propKey$238) && (null != propKey || null != lastProp) ) - switch (propKey$236) { + switch (propKey$238) { case "type": type = propKey; break; @@ -15460,7 +15466,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$236, + propKey$238, propKey, nextProps, lastProp @@ -15479,7 +15485,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - defaultValue = value = propKey = propKey$236 = null; + defaultValue = value = propKey = propKey$238 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15510,7 +15516,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$236 = type; + propKey$238 = type; break; case "defaultValue": propKey = type; @@ -15528,10 +15534,10 @@ function updateProperties(domElement, tag, lastProps, nextProps) { lastDefaultValue ); } - updateSelect(domElement, propKey$236, propKey, value, defaultValue); + updateSelect(domElement, propKey$238, propKey, value, defaultValue); return; case "textarea": - propKey = propKey$236 = null; + propKey = propKey$238 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15555,7 +15561,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$236 = name; + propKey$238 = name; break; case "defaultValue": propKey = name; @@ -15569,17 +15575,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$236, propKey); + updateTextarea(domElement, propKey$238, propKey); return; case "option": - for (var propKey$252 in lastProps) + for (var propKey$254 in lastProps) if ( - ((propKey$236 = lastProps[propKey$252]), - lastProps.hasOwnProperty(propKey$252) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$252)) + ((propKey$238 = lastProps[propKey$254]), + lastProps.hasOwnProperty(propKey$254) && + null != propKey$238 && + !nextProps.hasOwnProperty(propKey$254)) ) - switch (propKey$252) { + switch (propKey$254) { case "selected": domElement.selected = !1; break; @@ -15587,33 +15593,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$252, + propKey$254, null, nextProps, - propKey$236 + propKey$238 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$236 = nextProps[lastDefaultValue]), + ((propKey$238 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$236 !== propKey && - (null != propKey$236 || null != propKey)) + propKey$238 !== propKey && + (null != propKey$238 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$236 && - "function" !== typeof propKey$236 && - "symbol" !== typeof propKey$236; + propKey$238 && + "function" !== typeof propKey$238 && + "symbol" !== typeof propKey$238; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$236, + propKey$238, nextProps, propKey ); @@ -15634,24 +15640,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$257 in lastProps) - (propKey$236 = lastProps[propKey$257]), - lastProps.hasOwnProperty(propKey$257) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$257) && - setProp(domElement, tag, propKey$257, null, nextProps, propKey$236); + for (var propKey$259 in lastProps) + (propKey$238 = lastProps[propKey$259]), + lastProps.hasOwnProperty(propKey$259) && + null != propKey$238 && + !nextProps.hasOwnProperty(propKey$259) && + setProp(domElement, tag, propKey$259, null, nextProps, propKey$238); for (checked in nextProps) if ( - ((propKey$236 = nextProps[checked]), + ((propKey$238 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$236 !== propKey && - (null != propKey$236 || null != propKey)) + propKey$238 !== propKey && + (null != propKey$238 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$236) + if (null != propKey$238) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15659,7 +15665,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$236, + propKey$238, nextProps, propKey ); @@ -15667,49 +15673,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$262 in lastProps) - (propKey$236 = lastProps[propKey$262]), - lastProps.hasOwnProperty(propKey$262) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$262) && + for (var propKey$264 in lastProps) + (propKey$238 = lastProps[propKey$264]), + lastProps.hasOwnProperty(propKey$264) && + null != propKey$238 && + !nextProps.hasOwnProperty(propKey$264) && setPropOnCustomElement( domElement, tag, - propKey$262, + propKey$264, null, nextProps, - propKey$236 + propKey$238 ); for (defaultChecked in nextProps) - (propKey$236 = nextProps[defaultChecked]), + (propKey$238 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$236 === propKey || - (null == propKey$236 && null == propKey) || + propKey$238 === propKey || + (null == propKey$238 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$236, + propKey$238, nextProps, propKey ); return; } } - for (var propKey$267 in lastProps) - (propKey$236 = lastProps[propKey$267]), - lastProps.hasOwnProperty(propKey$267) && - null != propKey$236 && - !nextProps.hasOwnProperty(propKey$267) && - setProp(domElement, tag, propKey$267, null, nextProps, propKey$236); + for (var propKey$269 in lastProps) + (propKey$238 = lastProps[propKey$269]), + lastProps.hasOwnProperty(propKey$269) && + null != propKey$238 && + !nextProps.hasOwnProperty(propKey$269) && + setProp(domElement, tag, propKey$269, null, nextProps, propKey$238); for (lastProp in nextProps) - (propKey$236 = nextProps[lastProp]), + (propKey$238 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$236 === propKey || - (null == propKey$236 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$236, nextProps, propKey); + propKey$238 === propKey || + (null == propKey$238 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$238, nextProps, propKey); } function updatePropertiesWithDiff( domElement, @@ -16427,17 +16433,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$297 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$298 = styles$297.get(type); - resource$298 || + var styles$299 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$300 = styles$299.get(type); + resource$300 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$298 = { + (resource$300 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$297.set(type, resource$298), + styles$299.set(type, resource$300), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16452,9 +16458,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$298.state + resource$300.state )); - return resource$298; + return resource$300; } return null; case "script": @@ -16537,36 +16543,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$302 = hoistableRoot.querySelector( + var instance$304 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$302) + if (instance$304) return ( - (resource.instance = instance$302), - markNodeAsHoistable(instance$302), - instance$302 + (resource.instance = instance$304), + markNodeAsHoistable(instance$304), + instance$304 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$302 = ( + instance$304 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$302); - var linkInstance = instance$302; + markNodeAsHoistable(instance$304); + var linkInstance = instance$304; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$302, "link", instance); + setInitialProperties(instance$304, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$302, props.precedence, hoistableRoot); - return (resource.instance = instance$302); + insertStylesheet(instance$304, props.precedence, hoistableRoot); + return (resource.instance = instance$304); case "script": - instance$302 = getScriptKey(props.src); + instance$304 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$302) + getScriptSelectorFromKey(instance$304) )) ) return ( @@ -16575,7 +16581,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$302))) + if ((styleProps = preloadPropsMap.get(instance$304))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16947,10 +16953,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1823 = { +var devToolsConfig$jscomp$inline_1825 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-0b17f8c2", + version: "18.3.0-www-modern-1c649086", rendererPackageName: "react-dom" }; (function (internals) { @@ -16968,10 +16974,10 @@ var devToolsConfig$jscomp$inline_1823 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1823.bundleType, - version: devToolsConfig$jscomp$inline_1823.version, - rendererPackageName: devToolsConfig$jscomp$inline_1823.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1823.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1825.bundleType, + version: devToolsConfig$jscomp$inline_1825.version, + rendererPackageName: devToolsConfig$jscomp$inline_1825.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1825.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16988,14 +16994,14 @@ var devToolsConfig$jscomp$inline_1823 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1823.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1825.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-0b17f8c2" + reconcilerVersion: "18.3.0-www-modern-1c649086" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -17244,7 +17250,7 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-0b17f8c2"; +exports.version = "18.3.0-www-modern-1c649086"; /* 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 f1bed4b7d5..3fd9282b87 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -4238,10 +4238,7 @@ function restoreControlledInputState(element, props) { "ReactDOMInput: Mixing React and non-React radio inputs with the " + "same `name` is not supported." ); - } // We need update the tracked value on the named cousin since the value - // was changed but the input saw no event or value set - - updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that + } // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. @@ -4255,6 +4252,17 @@ function restoreControlledInputState(element, props) { otherProps.type, otherProps.name ); + } // If any updateInput() call set .checked to true, an input in this group + // (often, `rootNode` itself) may have become unchecked + + for (var _i = 0; _i < group.length; _i++) { + var _otherNode = group[_i]; + + if (_otherNode.form !== rootNode.form) { + continue; + } + + updateValueIfChanged(_otherNode); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. @@ -34630,7 +34638,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-106c5b17"; +var ReactVersion = "18.3.0-www-classic-c7ac40c0"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 2cf8febd46..42a7b8db0f 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -4080,10 +4080,7 @@ function restoreControlledInputState(element, props) { "ReactDOMInput: Mixing React and non-React radio inputs with the " + "same `name` is not supported." ); - } // We need update the tracked value on the named cousin since the value - // was changed but the input saw no event or value set - - updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that + } // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. @@ -4097,6 +4094,17 @@ function restoreControlledInputState(element, props) { otherProps.type, otherProps.name ); + } // If any updateInput() call set .checked to true, an input in this group + // (often, `rootNode` itself) may have become unchecked + + for (var _i = 0; _i < group.length; _i++) { + var _otherNode = group[_i]; + + if (_otherNode.form !== rootNode.form) { + continue; + } + + updateValueIfChanged(_otherNode); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. @@ -34475,7 +34483,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-b27aac94"; +var ReactVersion = "18.3.0-www-modern-a19b7375"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 56f8b2d52d..464875d590 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -1323,15 +1323,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$17 in styles) + (styleName = styles[styleName$17]), + styles.hasOwnProperty(styleName$17) && + prevStyles[styleName$17] !== styleName && + setValueForStyle(node, styleName$17, styleName); } else - for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + 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; @@ -1479,7 +1479,6 @@ function restoreStateOfTarget(target) { if (otherNode !== target && otherNode.form === target.form) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); - updateValueIfChanged(otherNode); updateInput( otherNode, otherProps.value, @@ -1492,6 +1491,13 @@ function restoreStateOfTarget(target) { ); } } + for ( + internalInstance = 0; + internalInstance < props.length; + internalInstance++ + ) + (otherNode = props[internalInstance]), + otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": @@ -3180,13 +3186,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$45 = firstScheduledRoot; null !== root$45; ) { + for (var root$47 = firstScheduledRoot; null !== root$47; ) { if ( - (!onlyLegacy || 0 === root$45.tag) && + (!onlyLegacy || 0 === root$47.tag) && 0 !== (getNextLanes( - root$45, - root$45 === workInProgressRoot$jscomp$0 + root$47, + root$47 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -3194,7 +3200,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$45; + var root = root$47; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -3237,7 +3243,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$45 = root$45.next; + root$47 = root$47.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3700,7 +3706,7 @@ function updateReducerImpl(hook, current, reducer) { update = update.next; continue; } else { - var clone$48 = { + var clone$50 = { lane: 0, revertLane: update.revertLane, action: update.action, @@ -3709,9 +3715,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }; null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48); + : (newBaseQueueLast = newBaseQueueLast.next = clone$50); currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } @@ -3733,7 +3739,7 @@ function updateReducerImpl(hook, current, reducer) { ? update.eagerState : reducer(pendingQueue, updateLane); } else - (clone$48 = { + (clone$50 = { lane: updateLane, revertLane: update.revertLane, action: update.action, @@ -3742,9 +3748,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }), null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48), + : (newBaseQueueLast = newBaseQueueLast.next = clone$50), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; @@ -4080,11 +4086,11 @@ function startTransition( ); dispatchSetState(fiber, queue, entangledResult); } else { - var entangledResult$53 = requestSyncActionContext( + var entangledResult$55 = requestSyncActionContext( returnValue, finishedState ); - dispatchSetState(fiber, queue, entangledResult$53); + dispatchSetState(fiber, queue, entangledResult$55); } } else dispatchSetState(fiber, queue, finishedState), callback(); } catch (error) { @@ -4113,14 +4119,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$54 = enqueueUpdate(provider, fiber, lane); - null !== root$54 && - (scheduleUpdateOnFiber(root$54, provider, lane), - entangleTransitions(root$54, provider, lane)); + var root$56 = enqueueUpdate(provider, fiber, lane); + null !== root$56 && + (scheduleUpdateOnFiber(root$56, provider, lane), + entangleTransitions(root$56, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$54 && + null !== root$56 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4348,15 +4354,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$51 = workInProgressRoot; + if (null === root$51) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$51, 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$51 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$51; + mountEffect(subscribeToStore.bind(null, fiber, root$51, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4365,7 +4371,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$49, + root$51, getServerSnapshot, getSnapshot ), @@ -5026,10 +5032,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$64 = workInProgress.stateNode; + root$66 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$64.incompleteTransitions.has(transition)) { + if (!root$66.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5037,11 +5043,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$64.incompleteTransitions.set(transition, markerInstance); + root$66.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$64.incompleteTransitions.forEach(function (markerInstance) { + root$66.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5734,14 +5740,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$71 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$71) + var dehydrated$73 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$73) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$71, + dehydrated$73, JSCompiler_temp, renderLanes ); @@ -5751,7 +5757,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$71 = JSCompiler_temp.sibling; + dehydrated$73 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5760,8 +5766,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$71 - ? (showFallback = createWorkInProgress(dehydrated$71, showFallback)) + null !== dehydrated$73 + ? (showFallback = createWorkInProgress(dehydrated$73, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5780,10 +5786,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$71 = CacheContext._currentValue), + ? ((dehydrated$73 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$71 - ? { parent: dehydrated$71, pool: dehydrated$71 } + JSCompiler_temp.parent !== dehydrated$73 + ? { parent: dehydrated$73, pool: dehydrated$73 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5797,23 +5803,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$71 = showFallback.updateQueue), + (dehydrated$73 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$71 + null === dehydrated$73 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$71 === primaryChildProps + : dehydrated$73 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$71.transitions = didSuspend), - (dehydrated$71.markerInstances = JSCompiler_temp)))); + : ((dehydrated$73.transitions = didSuspend), + (dehydrated$73.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6878,14 +6884,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$102 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$102 = lastTailNode), + for (var lastTailNode$104 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$104 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$102 + null === lastTailNode$104 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$102.sibling = null); + : (lastTailNode$104.sibling = null); } } function bubbleProperties(completedWork) { @@ -6895,19 +6901,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags & 31457280), - (subtreeFlags |= child$103.flags & 31457280), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (var child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags & 31457280), + (subtreeFlags |= child$105.flags & 31457280), + (child$105.return = completedWork), + (child$105 = child$105.sibling); else - for (child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags), - (subtreeFlags |= child$103.flags), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags), + (subtreeFlags |= child$105.flags), + (child$105.return = completedWork), + (child$105 = child$105.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7659,8 +7665,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$134) { - captureCommitPhaseError(current, nearestMountedAncestor, error$134); + } catch (error$136) { + captureCommitPhaseError(current, nearestMountedAncestor, error$136); } else ref.current = null; } @@ -7697,7 +7703,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$185) { + } catch (e$187) { JSCompiler_temp = null; break a; } @@ -7963,11 +7969,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$136) { + } catch (error$138) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$136 + error$138 ); } } @@ -8647,8 +8653,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$149) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$149); + } catch (error$151) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$151); } } break; @@ -8830,11 +8836,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$150) { + } catch (error$152) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$150 + error$152 ); } break; @@ -8871,8 +8877,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$151) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$151); + } catch (error$153) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$153); } } if ( @@ -8897,8 +8903,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$154) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$154); + } catch (error$156) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$156); } break; case 6: @@ -8911,8 +8917,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$155) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$155); + } catch (error$157) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$157); } } break; @@ -8926,8 +8932,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$156) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$156); + } catch (error$158) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$158); } break; case 4: @@ -8957,8 +8963,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$158) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$158); + } catch (error$160) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$160); } current = finishedWork.updateQueue; null !== current && @@ -9036,11 +9042,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$139) { + } catch (error$141) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$139 + error$141 ); } } else if ( @@ -9115,21 +9121,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$140 = JSCompiler_inline_result.stateNode; + var parent$142 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$140, ""), + (setTextContent(parent$142, ""), (JSCompiler_inline_result.flags &= -33)); - var before$141 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$141, parent$140); + var before$143 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$143, parent$142); break; case 3: case 4: - var parent$142 = JSCompiler_inline_result.stateNode.containerInfo, - before$143 = getHostSibling(finishedWork); + var parent$144 = JSCompiler_inline_result.stateNode.containerInfo, + before$145 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$143, - parent$142 + before$145, + parent$144 ); break; default: @@ -9599,9 +9605,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$165 = finishedWork.stateNode; + var instance$167 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$165._visibility & 4 + ? instance$167._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9614,7 +9620,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$165._visibility |= 4), + : ((instance$167._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9622,7 +9628,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$165._visibility |= 4), + : ((instance$167._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9635,7 +9641,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$165 + instance$167 ); break; case 24: @@ -10682,8 +10688,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$174) { - handleThrow(root, thrownValue$174); + } catch (thrownValue$176) { + handleThrow(root, thrownValue$176); } while (1); lanes && root.shellSuspendCounter++; @@ -10788,8 +10794,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$176) { - handleThrow(root, thrownValue$176); + } catch (thrownValue$178) { + handleThrow(root, thrownValue$178); } while (1); resetContextDependencies(); @@ -10995,12 +11001,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$180 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$182 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$180 && + shouldFireAfterActiveInstanceBlur$182 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11079,7 +11085,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$181 = rootWithPendingPassiveEffects, + var root$183 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11095,7 +11101,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$181, remainingLanes); + releaseRootPooledCache(root$183, remainingLanes); } } return !1; @@ -12367,12 +12373,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$183 = fiber.stateNode; - if (root$183.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$183.pendingLanes); + var root$185 = fiber.stateNode; + if (root$185.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$185.pendingLanes); 0 !== lanes && - (markRootEntangled(root$183, lanes | 2), - ensureRootIsScheduled(root$183), + (markRootEntangled(root$185, lanes | 2), + ensureRootIsScheduled(root$185), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -12938,19 +12944,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$365; + var JSCompiler_inline_result$jscomp$367; if (canUseDOM) { - var isSupported$jscomp$inline_1559 = "oninput" in document; - if (!isSupported$jscomp$inline_1559) { - var element$jscomp$inline_1560 = document.createElement("div"); - element$jscomp$inline_1560.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1559 = - "function" === typeof element$jscomp$inline_1560.oninput; + var isSupported$jscomp$inline_1561 = "oninput" in document; + if (!isSupported$jscomp$inline_1561) { + var element$jscomp$inline_1562 = document.createElement("div"); + element$jscomp$inline_1562.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1561 = + "function" === typeof element$jscomp$inline_1562.oninput; } - JSCompiler_inline_result$jscomp$365 = isSupported$jscomp$inline_1559; - } else JSCompiler_inline_result$jscomp$365 = !1; + JSCompiler_inline_result$jscomp$367 = isSupported$jscomp$inline_1561; + } else JSCompiler_inline_result$jscomp$367 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$365 && + JSCompiler_inline_result$jscomp$367 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13259,20 +13265,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1600 = 0; - i$jscomp$inline_1600 < simpleEventPluginEvents.length; - i$jscomp$inline_1600++ + var i$jscomp$inline_1602 = 0; + i$jscomp$inline_1602 < simpleEventPluginEvents.length; + i$jscomp$inline_1602++ ) { - var eventName$jscomp$inline_1601 = - simpleEventPluginEvents[i$jscomp$inline_1600], - domEventName$jscomp$inline_1602 = - eventName$jscomp$inline_1601.toLowerCase(), - capitalizedEvent$jscomp$inline_1603 = - eventName$jscomp$inline_1601[0].toUpperCase() + - eventName$jscomp$inline_1601.slice(1); + var eventName$jscomp$inline_1603 = + simpleEventPluginEvents[i$jscomp$inline_1602], + domEventName$jscomp$inline_1604 = + eventName$jscomp$inline_1603.toLowerCase(), + capitalizedEvent$jscomp$inline_1605 = + eventName$jscomp$inline_1603[0].toUpperCase() + + eventName$jscomp$inline_1603.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1602, - "on" + capitalizedEvent$jscomp$inline_1603 + domEventName$jscomp$inline_1604, + "on" + capitalizedEvent$jscomp$inline_1605 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14688,14 +14694,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$212 in nextProps) { - var propKey = nextProps[propKey$212]; - lastProp = lastProps[propKey$212]; + for (var propKey$214 in nextProps) { + var propKey = nextProps[propKey$214]; + lastProp = lastProps[propKey$214]; if ( - nextProps.hasOwnProperty(propKey$212) && + nextProps.hasOwnProperty(propKey$214) && (null != propKey || null != lastProp) ) - switch (propKey$212) { + switch (propKey$214) { case "type": type = propKey; break; @@ -14724,7 +14730,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$212, + propKey$214, propKey, nextProps, lastProp @@ -14743,7 +14749,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - defaultValue = value = propKey = propKey$212 = null; + defaultValue = value = propKey = propKey$214 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14774,7 +14780,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$212 = type; + propKey$214 = type; break; case "defaultValue": propKey = type; @@ -14792,10 +14798,10 @@ function updateProperties(domElement, tag, lastProps, nextProps) { lastDefaultValue ); } - updateSelect(domElement, propKey$212, propKey, value, defaultValue); + updateSelect(domElement, propKey$214, propKey, value, defaultValue); return; case "textarea": - propKey = propKey$212 = null; + propKey = propKey$214 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14819,7 +14825,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$212 = name; + propKey$214 = name; break; case "defaultValue": propKey = name; @@ -14833,17 +14839,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$212, propKey); + updateTextarea(domElement, propKey$214, propKey); return; case "option": - for (var propKey$228 in lastProps) + for (var propKey$230 in lastProps) if ( - ((propKey$212 = lastProps[propKey$228]), - lastProps.hasOwnProperty(propKey$228) && - null != propKey$212 && - !nextProps.hasOwnProperty(propKey$228)) + ((propKey$214 = lastProps[propKey$230]), + lastProps.hasOwnProperty(propKey$230) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$230)) ) - switch (propKey$228) { + switch (propKey$230) { case "selected": domElement.selected = !1; break; @@ -14851,33 +14857,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$228, + propKey$230, null, nextProps, - propKey$212 + propKey$214 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$212 = nextProps[lastDefaultValue]), + ((propKey$214 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$212 !== propKey && - (null != propKey$212 || null != propKey)) + propKey$214 !== propKey && + (null != propKey$214 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$212 && - "function" !== typeof propKey$212 && - "symbol" !== typeof propKey$212; + propKey$214 && + "function" !== typeof propKey$214 && + "symbol" !== typeof propKey$214; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$212, + propKey$214, nextProps, propKey ); @@ -14898,24 +14904,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$233 in lastProps) - (propKey$212 = lastProps[propKey$233]), - lastProps.hasOwnProperty(propKey$233) && - null != propKey$212 && - !nextProps.hasOwnProperty(propKey$233) && - setProp(domElement, tag, propKey$233, null, nextProps, propKey$212); + for (var propKey$235 in lastProps) + (propKey$214 = lastProps[propKey$235]), + lastProps.hasOwnProperty(propKey$235) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$235) && + setProp(domElement, tag, propKey$235, null, nextProps, propKey$214); for (checked in nextProps) if ( - ((propKey$212 = nextProps[checked]), + ((propKey$214 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$212 !== propKey && - (null != propKey$212 || null != propKey)) + propKey$214 !== propKey && + (null != propKey$214 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$212) + if (null != propKey$214) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14923,7 +14929,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$212, + propKey$214, nextProps, propKey ); @@ -14931,49 +14937,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$238 in lastProps) - (propKey$212 = lastProps[propKey$238]), - lastProps.hasOwnProperty(propKey$238) && - null != propKey$212 && - !nextProps.hasOwnProperty(propKey$238) && + for (var propKey$240 in lastProps) + (propKey$214 = lastProps[propKey$240]), + lastProps.hasOwnProperty(propKey$240) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$240) && setPropOnCustomElement( domElement, tag, - propKey$238, + propKey$240, null, nextProps, - propKey$212 + propKey$214 ); for (defaultChecked in nextProps) - (propKey$212 = nextProps[defaultChecked]), + (propKey$214 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$212 === propKey || - (null == propKey$212 && null == propKey) || + propKey$214 === propKey || + (null == propKey$214 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$212, + propKey$214, nextProps, propKey ); return; } } - for (var propKey$243 in lastProps) - (propKey$212 = lastProps[propKey$243]), - lastProps.hasOwnProperty(propKey$243) && - null != propKey$212 && - !nextProps.hasOwnProperty(propKey$243) && - setProp(domElement, tag, propKey$243, null, nextProps, propKey$212); + for (var propKey$245 in lastProps) + (propKey$214 = lastProps[propKey$245]), + lastProps.hasOwnProperty(propKey$245) && + null != propKey$214 && + !nextProps.hasOwnProperty(propKey$245) && + setProp(domElement, tag, propKey$245, null, nextProps, propKey$214); for (lastProp in nextProps) - (propKey$212 = nextProps[lastProp]), + (propKey$214 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$212 === propKey || - (null == propKey$212 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$212, nextProps, propKey); + propKey$214 === propKey || + (null == propKey$214 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$214, nextProps, propKey); } function updatePropertiesWithDiff( domElement, @@ -15762,17 +15768,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$275 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$276 = styles$275.get(type); + resource$276 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$274 = { + (resource$276 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$273.set(type, resource$274), + styles$275.set(type, resource$276), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15787,9 +15793,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$274.state + resource$276.state )); - return resource$274; + return resource$276; } return null; case "script": @@ -15872,36 +15878,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$278 = hoistableRoot.querySelector( + var instance$280 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$278) + if (instance$280) return ( - (resource.instance = instance$278), - markNodeAsHoistable(instance$278), - instance$278 + (resource.instance = instance$280), + markNodeAsHoistable(instance$280), + instance$280 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$278 = ( + instance$280 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$278); - var linkInstance = instance$278; + markNodeAsHoistable(instance$280); + var linkInstance = instance$280; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$278, "link", instance); + setInitialProperties(instance$280, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$278, props.precedence, hoistableRoot); - return (resource.instance = instance$278); + insertStylesheet(instance$280, props.precedence, hoistableRoot); + return (resource.instance = instance$280); case "script": - instance$278 = getScriptKey(props.src); + instance$280 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$278) + getScriptSelectorFromKey(instance$280) )) ) return ( @@ -15910,7 +15916,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$278))) + if ((styleProps = preloadPropsMap.get(instance$280))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16862,11 +16868,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$298); + var instance = getPublicRootInstance(root$300); originalCallback.call(instance); }; } - var root$298 = createHydrationContainer( + var root$300 = createHydrationContainer( initialChildren, callback, container, @@ -16879,23 +16885,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$298; - container[internalContainerInstanceKey] = root$298.current; + container._reactRootContainer = root$300; + container[internalContainerInstanceKey] = root$300.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$298; + return root$300; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$299 = callback; + var originalCallback$301 = callback; callback = function () { - var instance = getPublicRootInstance(root$300); - originalCallback$299.call(instance); + var instance = getPublicRootInstance(root$302); + originalCallback$301.call(instance); }; } - var root$300 = createFiberRoot( + var root$302 = createFiberRoot( container, 0, !1, @@ -16908,15 +16914,15 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$300; - container[internalContainerInstanceKey] = root$300.current; + container._reactRootContainer = root$302; + container[internalContainerInstanceKey] = root$302.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$300, parentComponent, callback); + updateContainer(initialChildren, root$302, parentComponent, callback); }); - return root$300; + return root$302; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16985,17 +16991,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1808 = { +var devToolsConfig$jscomp$inline_1810 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-996b7d13", + version: "18.3.0-www-classic-2c91e2cd", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2170 = { - bundleType: devToolsConfig$jscomp$inline_1808.bundleType, - version: devToolsConfig$jscomp$inline_1808.version, - rendererPackageName: devToolsConfig$jscomp$inline_1808.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1808.rendererConfig, +var internals$jscomp$inline_2174 = { + bundleType: devToolsConfig$jscomp$inline_1810.bundleType, + version: devToolsConfig$jscomp$inline_1810.version, + rendererPackageName: devToolsConfig$jscomp$inline_1810.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1810.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -17011,26 +17017,26 @@ var internals$jscomp$inline_2170 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1808.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1810.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-996b7d13" + reconcilerVersion: "18.3.0-www-classic-2c91e2cd" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2171 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2175 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2171.isDisabled && - hook$jscomp$inline_2171.supportsFiber + !hook$jscomp$inline_2175.isDisabled && + hook$jscomp$inline_2175.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2171.inject( - internals$jscomp$inline_2170 + (rendererID = hook$jscomp$inline_2175.inject( + internals$jscomp$inline_2174 )), - (injectedHook = hook$jscomp$inline_2171); + (injectedHook = hook$jscomp$inline_2175); } catch (err) {} } assign(Internals, { @@ -17503,4 +17509,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-996b7d13"; +exports.version = "18.3.0-www-classic-2c91e2cd"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 01c96b9e36..af52ddac02 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -1222,15 +1222,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$14 in styles) - (styleName = styles[styleName$14]), - styles.hasOwnProperty(styleName$14) && - prevStyles[styleName$14] !== styleName && - setValueForStyle(node, styleName$14, styleName); + for (var styleName$16 in styles) + (styleName = styles[styleName$16]), + styles.hasOwnProperty(styleName$16) && + prevStyles[styleName$16] !== styleName && + setValueForStyle(node, styleName$16, styleName); } else - for (var styleName$15 in styles) - styles.hasOwnProperty(styleName$15) && - setValueForStyle(node, styleName$15, styles[styleName$15]); + for (var styleName$17 in styles) + styles.hasOwnProperty(styleName$17) && + setValueForStyle(node, styleName$17, styles[styleName$17]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1379,7 +1379,6 @@ function restoreStateOfTarget(target) { if (otherNode !== target && otherNode.form === target.form) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); - updateValueIfChanged(otherNode); updateInput( otherNode, otherProps.value, @@ -1392,6 +1391,13 @@ function restoreStateOfTarget(target) { ); } } + for ( + internalInstance = 0; + internalInstance < props.length; + internalInstance++ + ) + (otherNode = props[internalInstance]), + otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": @@ -1479,36 +1485,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$17 = parentA.child; child$17; ) { - if (child$17 === a) { + for (var didFindChild = !1, child$19 = parentA.child; child$19; ) { + if (child$19 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$17 === b) { + if (child$19 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$17 = child$17.sibling; + child$19 = child$19.sibling; } if (!didFindChild) { - for (child$17 = parentB.child; child$17; ) { - if (child$17 === a) { + for (child$19 = parentB.child; child$19; ) { + if (child$19 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$17 === b) { + if (child$19 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$17 = child$17.sibling; + child$19 = child$19.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -3128,13 +3134,13 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$45 = firstScheduledRoot; null !== root$45; ) { + for (var root$47 = firstScheduledRoot; null !== root$47; ) { if ( - (!onlyLegacy || 0 === root$45.tag) && + (!onlyLegacy || 0 === root$47.tag) && 0 !== (getNextLanes( - root$45, - root$45 === workInProgressRoot$jscomp$0 + root$47, + root$47 === workInProgressRoot$jscomp$0 ? workInProgressRootRenderLanes$jscomp$0 : 0 ) & @@ -3142,7 +3148,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { ) try { didPerformSomeWork = !0; - var root = root$45; + var root = root$47; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); @@ -3185,7 +3191,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } - root$45 = root$45.next; + root$47 = root$47.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3648,7 +3654,7 @@ function updateReducerImpl(hook, current, reducer) { update = update.next; continue; } else { - var clone$48 = { + var clone$50 = { lane: 0, revertLane: update.revertLane, action: update.action, @@ -3657,9 +3663,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }; null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48); + : (newBaseQueueLast = newBaseQueueLast.next = clone$50); currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } @@ -3681,7 +3687,7 @@ function updateReducerImpl(hook, current, reducer) { ? update.eagerState : reducer(pendingQueue, updateLane); } else - (clone$48 = { + (clone$50 = { lane: updateLane, revertLane: update.revertLane, action: update.action, @@ -3690,9 +3696,9 @@ function updateReducerImpl(hook, current, reducer) { next: null }), null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone$48), + ? ((newBaseQueueFirst = newBaseQueueLast = clone$50), (baseFirst = pendingQueue)) - : (newBaseQueueLast = newBaseQueueLast.next = clone$48), + : (newBaseQueueLast = newBaseQueueLast.next = clone$50), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; @@ -4028,11 +4034,11 @@ function startTransition( ); dispatchSetState(fiber, queue, entangledResult); } else { - var entangledResult$53 = requestSyncActionContext( + var entangledResult$55 = requestSyncActionContext( returnValue, finishedState ); - dispatchSetState(fiber, queue, entangledResult$53); + dispatchSetState(fiber, queue, entangledResult$55); } } else dispatchSetState(fiber, queue, finishedState), callback(); } catch (error) { @@ -4061,14 +4067,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$54 = enqueueUpdate(provider, fiber, lane); - null !== root$54 && - (scheduleUpdateOnFiber(root$54, provider, lane), - entangleTransitions(root$54, provider, lane)); + var root$56 = enqueueUpdate(provider, fiber, lane); + null !== root$56 && + (scheduleUpdateOnFiber(root$56, provider, lane), + entangleTransitions(root$56, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$54 && + null !== root$56 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4296,15 +4302,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$51 = workInProgressRoot; + if (null === root$51) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$51, 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$51 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$51; + mountEffect(subscribeToStore.bind(null, fiber, root$51, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4313,7 +4319,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$49, + root$51, getServerSnapshot, getSnapshot ), @@ -4959,10 +4965,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$64 = workInProgress.stateNode; + root$66 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$64.incompleteTransitions.has(transition)) { + if (!root$66.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -4970,11 +4976,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$64.incompleteTransitions.set(transition, markerInstance); + root$66.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$64.incompleteTransitions.forEach(function (markerInstance) { + root$66.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -5635,14 +5641,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$71 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$71) + var dehydrated$73 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$73) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$71, + dehydrated$73, JSCompiler_temp, renderLanes ); @@ -5652,7 +5658,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$71 = JSCompiler_temp.sibling; + dehydrated$73 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5661,8 +5667,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)); - null !== dehydrated$71 - ? (showFallback = createWorkInProgress(dehydrated$71, showFallback)) + null !== dehydrated$73 + ? (showFallback = createWorkInProgress(dehydrated$73, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5681,10 +5687,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$71 = CacheContext._currentValue), + ? ((dehydrated$73 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$71 - ? { parent: dehydrated$71, pool: dehydrated$71 } + JSCompiler_temp.parent !== dehydrated$73 + ? { parent: dehydrated$73, pool: dehydrated$73 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -5698,23 +5704,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$71 = showFallback.updateQueue), + (dehydrated$73 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$71 + null === dehydrated$73 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null }) - : dehydrated$71 === primaryChildProps + : dehydrated$73 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, retryQueue: null !== primaryChildProps ? primaryChildProps.retryQueue : null }) - : ((dehydrated$71.transitions = didSuspend), - (dehydrated$71.markerInstances = JSCompiler_temp)))); + : ((dehydrated$73.transitions = didSuspend), + (dehydrated$73.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -6775,14 +6781,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$102 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$102 = lastTailNode), + for (var lastTailNode$104 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$104 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$102 + null === lastTailNode$104 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$102.sibling = null); + : (lastTailNode$104.sibling = null); } } function bubbleProperties(completedWork) { @@ -6792,19 +6798,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags & 31457280), - (subtreeFlags |= child$103.flags & 31457280), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (var child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags & 31457280), + (subtreeFlags |= child$105.flags & 31457280), + (child$105.return = completedWork), + (child$105 = child$105.sibling); else - for (child$103 = completedWork.child; null !== child$103; ) - (newChildLanes |= child$103.lanes | child$103.childLanes), - (subtreeFlags |= child$103.subtreeFlags), - (subtreeFlags |= child$103.flags), - (child$103.return = completedWork), - (child$103 = child$103.sibling); + for (child$105 = completedWork.child; null !== child$105; ) + (newChildLanes |= child$105.lanes | child$105.childLanes), + (subtreeFlags |= child$105.subtreeFlags), + (subtreeFlags |= child$105.flags), + (child$105.return = completedWork), + (child$105 = child$105.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7537,8 +7543,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$133) { - captureCommitPhaseError(current, nearestMountedAncestor, error$133); + } catch (error$135) { + captureCommitPhaseError(current, nearestMountedAncestor, error$135); } else ref.current = null; } @@ -7575,7 +7581,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$189) { + } catch (e$191) { JSCompiler_temp = null; break a; } @@ -7854,11 +7860,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$135) { + } catch (error$137) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$135 + error$137 ); } } @@ -8538,8 +8544,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$148) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$148); + } catch (error$150) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$150); } } break; @@ -8721,11 +8727,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$149) { + } catch (error$151) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$149 + error$151 ); } break; @@ -8762,8 +8768,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$150) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$150); + } catch (error$152) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$152); } } if ( @@ -8788,8 +8794,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root ), (flags[internalPropsKey] = root); - } catch (error$153) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$153); + } catch (error$155) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$155); } break; case 6: @@ -8802,8 +8808,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$154) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$154); + } catch (error$156) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$156); } } break; @@ -8817,8 +8823,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$155) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$155); + } catch (error$157) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$157); } break; case 4: @@ -8848,8 +8854,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$157) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$157); + } catch (error$159) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$159); } current = finishedWork.updateQueue; null !== current && @@ -8927,11 +8933,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$138) { + } catch (error$140) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$138 + error$140 ); } } else if ( @@ -9006,21 +9012,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$139 = JSCompiler_inline_result.stateNode; + var parent$141 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$139, ""), + (setTextContent(parent$141, ""), (JSCompiler_inline_result.flags &= -33)); - var before$140 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$140, parent$139); + var before$142 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$142, parent$141); break; case 3: case 4: - var parent$141 = JSCompiler_inline_result.stateNode.containerInfo, - before$142 = getHostSibling(finishedWork); + var parent$143 = JSCompiler_inline_result.stateNode.containerInfo, + before$144 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$142, - parent$141 + before$144, + parent$143 ); break; default: @@ -9490,9 +9496,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$164 = finishedWork.stateNode; + var instance$166 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$164._visibility & 4 + ? instance$166._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9505,7 +9511,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$164._visibility |= 4), + : ((instance$166._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9513,7 +9519,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$164._visibility |= 4), + : ((instance$166._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9526,7 +9532,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$164 + instance$166 ); break; case 24: @@ -10573,8 +10579,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$173) { - handleThrow(root, thrownValue$173); + } catch (thrownValue$175) { + handleThrow(root, thrownValue$175); } while (1); lanes && root.shellSuspendCounter++; @@ -10679,8 +10685,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$175) { - handleThrow(root, thrownValue$175); + } catch (thrownValue$177) { + handleThrow(root, thrownValue$177); } while (1); resetContextDependencies(); @@ -10882,12 +10888,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$179 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$181 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$179 && + shouldFireAfterActiveInstanceBlur$181 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10966,7 +10972,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$180 = rootWithPendingPassiveEffects, + var root$182 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -10982,7 +10988,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$180, remainingLanes); + releaseRootPooledCache(root$182, remainingLanes); } } return !1; @@ -12138,12 +12144,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$182 = fiber.stateNode; - if (root$182.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$182.pendingLanes); + var root$184 = fiber.stateNode; + if (root$184.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$184.pendingLanes); 0 !== lanes && - (markRootEntangled(root$182, lanes | 2), - ensureRootIsScheduled(root$182), + (markRootEntangled(root$184, lanes | 2), + ensureRootIsScheduled(root$184), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13233,19 +13239,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$363; + var JSCompiler_inline_result$jscomp$365; if (canUseDOM) { - var isSupported$jscomp$inline_1558 = "oninput" in document; - if (!isSupported$jscomp$inline_1558) { - var element$jscomp$inline_1559 = document.createElement("div"); - element$jscomp$inline_1559.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1558 = - "function" === typeof element$jscomp$inline_1559.oninput; + var isSupported$jscomp$inline_1560 = "oninput" in document; + if (!isSupported$jscomp$inline_1560) { + var element$jscomp$inline_1561 = document.createElement("div"); + element$jscomp$inline_1561.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1560 = + "function" === typeof element$jscomp$inline_1561.oninput; } - JSCompiler_inline_result$jscomp$363 = isSupported$jscomp$inline_1558; - } else JSCompiler_inline_result$jscomp$363 = !1; + JSCompiler_inline_result$jscomp$365 = isSupported$jscomp$inline_1560; + } else JSCompiler_inline_result$jscomp$365 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$363 && + JSCompiler_inline_result$jscomp$365 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13554,20 +13560,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1599 = 0; - i$jscomp$inline_1599 < simpleEventPluginEvents.length; - i$jscomp$inline_1599++ + var i$jscomp$inline_1601 = 0; + i$jscomp$inline_1601 < simpleEventPluginEvents.length; + i$jscomp$inline_1601++ ) { - var eventName$jscomp$inline_1600 = - simpleEventPluginEvents[i$jscomp$inline_1599], - domEventName$jscomp$inline_1601 = - eventName$jscomp$inline_1600.toLowerCase(), - capitalizedEvent$jscomp$inline_1602 = - eventName$jscomp$inline_1600[0].toUpperCase() + - eventName$jscomp$inline_1600.slice(1); + var eventName$jscomp$inline_1602 = + simpleEventPluginEvents[i$jscomp$inline_1601], + domEventName$jscomp$inline_1603 = + eventName$jscomp$inline_1602.toLowerCase(), + capitalizedEvent$jscomp$inline_1604 = + eventName$jscomp$inline_1602[0].toUpperCase() + + eventName$jscomp$inline_1602.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1601, - "on" + capitalizedEvent$jscomp$inline_1602 + domEventName$jscomp$inline_1603, + "on" + capitalizedEvent$jscomp$inline_1604 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14982,14 +14988,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$216 in nextProps) { - var propKey = nextProps[propKey$216]; - lastProp = lastProps[propKey$216]; + for (var propKey$218 in nextProps) { + var propKey = nextProps[propKey$218]; + lastProp = lastProps[propKey$218]; if ( - nextProps.hasOwnProperty(propKey$216) && + nextProps.hasOwnProperty(propKey$218) && (null != propKey || null != lastProp) ) - switch (propKey$216) { + switch (propKey$218) { case "type": type = propKey; break; @@ -15018,7 +15024,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$216, + propKey$218, propKey, nextProps, lastProp @@ -15037,7 +15043,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - defaultValue = value = propKey = propKey$216 = null; + defaultValue = value = propKey = propKey$218 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15068,7 +15074,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$216 = type; + propKey$218 = type; break; case "defaultValue": propKey = type; @@ -15086,10 +15092,10 @@ function updateProperties(domElement, tag, lastProps, nextProps) { lastDefaultValue ); } - updateSelect(domElement, propKey$216, propKey, value, defaultValue); + updateSelect(domElement, propKey$218, propKey, value, defaultValue); return; case "textarea": - propKey = propKey$216 = null; + propKey = propKey$218 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15113,7 +15119,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$216 = name; + propKey$218 = name; break; case "defaultValue": propKey = name; @@ -15127,17 +15133,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$216, propKey); + updateTextarea(domElement, propKey$218, propKey); return; case "option": - for (var propKey$232 in lastProps) + for (var propKey$234 in lastProps) if ( - ((propKey$216 = lastProps[propKey$232]), - lastProps.hasOwnProperty(propKey$232) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$232)) + ((propKey$218 = lastProps[propKey$234]), + lastProps.hasOwnProperty(propKey$234) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$234)) ) - switch (propKey$232) { + switch (propKey$234) { case "selected": domElement.selected = !1; break; @@ -15145,33 +15151,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$232, + propKey$234, null, nextProps, - propKey$216 + propKey$218 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$216 = nextProps[lastDefaultValue]), + ((propKey$218 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$216 !== propKey && - (null != propKey$216 || null != propKey)) + propKey$218 !== propKey && + (null != propKey$218 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$216 && - "function" !== typeof propKey$216 && - "symbol" !== typeof propKey$216; + propKey$218 && + "function" !== typeof propKey$218 && + "symbol" !== typeof propKey$218; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$216, + propKey$218, nextProps, propKey ); @@ -15192,24 +15198,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$237 in lastProps) - (propKey$216 = lastProps[propKey$237]), - lastProps.hasOwnProperty(propKey$237) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$237) && - setProp(domElement, tag, propKey$237, null, nextProps, propKey$216); + for (var propKey$239 in lastProps) + (propKey$218 = lastProps[propKey$239]), + lastProps.hasOwnProperty(propKey$239) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$239) && + setProp(domElement, tag, propKey$239, null, nextProps, propKey$218); for (checked in nextProps) if ( - ((propKey$216 = nextProps[checked]), + ((propKey$218 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$216 !== propKey && - (null != propKey$216 || null != propKey)) + propKey$218 !== propKey && + (null != propKey$218 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$216) + if (null != propKey$218) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15217,7 +15223,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$216, + propKey$218, nextProps, propKey ); @@ -15225,49 +15231,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$242 in lastProps) - (propKey$216 = lastProps[propKey$242]), - lastProps.hasOwnProperty(propKey$242) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$242) && + for (var propKey$244 in lastProps) + (propKey$218 = lastProps[propKey$244]), + lastProps.hasOwnProperty(propKey$244) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$244) && setPropOnCustomElement( domElement, tag, - propKey$242, + propKey$244, null, nextProps, - propKey$216 + propKey$218 ); for (defaultChecked in nextProps) - (propKey$216 = nextProps[defaultChecked]), + (propKey$218 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$216 === propKey || - (null == propKey$216 && null == propKey) || + propKey$218 === propKey || + (null == propKey$218 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$216, + propKey$218, nextProps, propKey ); return; } } - for (var propKey$247 in lastProps) - (propKey$216 = lastProps[propKey$247]), - lastProps.hasOwnProperty(propKey$247) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$247) && - setProp(domElement, tag, propKey$247, null, nextProps, propKey$216); + for (var propKey$249 in lastProps) + (propKey$218 = lastProps[propKey$249]), + lastProps.hasOwnProperty(propKey$249) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$249) && + setProp(domElement, tag, propKey$249, null, nextProps, propKey$218); for (lastProp in nextProps) - (propKey$216 = nextProps[lastProp]), + (propKey$218 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$216 === propKey || - (null == propKey$216 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$216, nextProps, propKey); + propKey$218 === propKey || + (null == propKey$218 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$218, nextProps, propKey); } function updatePropertiesWithDiff( domElement, @@ -16042,17 +16048,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$279 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$280 = styles$279.get(type); + resource$280 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$278 = { + (resource$280 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$277.set(type, resource$278), + styles$279.set(type, resource$280), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16067,9 +16073,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$278.state + resource$280.state )); - return resource$278; + return resource$280; } return null; case "script": @@ -16152,36 +16158,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$282 = hoistableRoot.querySelector( + var instance$284 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$282) + if (instance$284) return ( - (resource.instance = instance$282), - markNodeAsHoistable(instance$282), - instance$282 + (resource.instance = instance$284), + markNodeAsHoistable(instance$284), + instance$284 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$282 = ( + instance$284 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$282); - var linkInstance = instance$282; + markNodeAsHoistable(instance$284); + var linkInstance = instance$284; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$282, "link", instance); + setInitialProperties(instance$284, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$282, props.precedence, hoistableRoot); - return (resource.instance = instance$282); + insertStylesheet(instance$284, props.precedence, hoistableRoot); + return (resource.instance = instance$284); case "script": - instance$282 = getScriptKey(props.src); + instance$284 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$282) + getScriptSelectorFromKey(instance$284) )) ) return ( @@ -16190,7 +16196,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$282))) + if ((styleProps = preloadPropsMap.get(instance$284))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16562,17 +16568,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1767 = { +var devToolsConfig$jscomp$inline_1769 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-b5b87391", + version: "18.3.0-www-modern-4c57bafd", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2134 = { - bundleType: devToolsConfig$jscomp$inline_1767.bundleType, - version: devToolsConfig$jscomp$inline_1767.version, - rendererPackageName: devToolsConfig$jscomp$inline_1767.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1767.rendererConfig, +var internals$jscomp$inline_2138 = { + bundleType: devToolsConfig$jscomp$inline_1769.bundleType, + version: devToolsConfig$jscomp$inline_1769.version, + rendererPackageName: devToolsConfig$jscomp$inline_1769.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1769.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16589,26 +16595,26 @@ var internals$jscomp$inline_2134 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1767.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1769.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-b5b87391" + reconcilerVersion: "18.3.0-www-modern-4c57bafd" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2135 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2139 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2135.isDisabled && - hook$jscomp$inline_2135.supportsFiber + !hook$jscomp$inline_2139.isDisabled && + hook$jscomp$inline_2139.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2135.inject( - internals$jscomp$inline_2134 + (rendererID = hook$jscomp$inline_2139.inject( + internals$jscomp$inline_2138 )), - (injectedHook = hook$jscomp$inline_2135); + (injectedHook = hook$jscomp$inline_2139); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -17009,4 +17015,4 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-b5b87391"; +exports.version = "18.3.0-www-modern-4c57bafd"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 101c23ae28..44c3b24afa 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -24360,7 +24360,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-106c5b17"; +var ReactVersion = "18.3.0-www-classic-c7ac40c0"; // Might add PROFILE later.