Make prerendering always non-blocking (#31056)

When a synchronous update suspends, and we prerender the siblings, the
prerendering should be non-blocking so that we can immediately restart
once the data arrives.

This happens automatically when there's a Suspense boundary, because we
immediately commit the boundary and then proceed to a Retry render,
which are always concurrent. When there's not a Suspense boundary, there
is no Retry, so we need to take care to switch from the synchronous work
loop to the concurrent one, to enable time slicing.

DiffTrain build for commit https://github.com/facebook/react/commit/0f1856c49febe96923e469f98c0b123130ea015c.
This commit is contained in:
acdlite
2024-09-25 13:40:14 -07:00
parent cae834ff8c
commit 64e263fc13
23 changed files with 5072 additions and 4915 deletions
+1 -1
View File
@@ -1 +1 @@
19.0.0-native-fb-3c7667a6-20240925
19.0.0-native-fb-0f1856c4-20240925
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b5197c15cfc4e771615c7ad354157216>>
* @generated SignedSource<<abebda03294fad7cb3858d1b5d97fe36>>
*/
"use strict";
@@ -420,5 +420,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<547023b89ae2d39a60356535570a6d4a>>
* @generated SignedSource<<80a716efe68d232a2259f9d368a23144>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<547023b89ae2d39a60356535570a6d4a>>
* @generated SignedSource<<80a716efe68d232a2259f9d368a23144>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -7,13 +7,13 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f880c7416e06f63e57a5b6333b886d40>>
* @generated SignedSource<<2dcc2374e5a95b71150f597abbb146f3>>
*/
"use strict";
__DEV__ &&
(function () {
function JSCompiler_object_inline_createNodeMock_1104() {
function JSCompiler_object_inline_createNodeMock_1102() {
return null;
}
function findHook(fiber, id) {
@@ -842,43 +842,39 @@ __DEV__ &&
var pendingLanes = root.pendingLanes;
if (0 === pendingLanes) return 0;
var nextLanes = 0,
suspendedLanes = root.suspendedLanes,
pingedLanes = root.pingedLanes,
warmLanes = root.warmLanes;
root = 0 !== root.finishedLanes;
suspendedLanes = root.suspendedLanes;
root = root.pingedLanes;
var nonIdlePendingLanes = pendingLanes & 134217727;
0 !== nonIdlePendingLanes
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
0 !== pendingLanes
? (nextLanes = getHighestPriorityLanes(pendingLanes))
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
0 !== nonIdlePendingLanes
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
: ((root &= nonIdlePendingLanes),
0 !== root && (nextLanes = getHighestPriorityLanes(root))))
: ((pendingLanes &= ~suspendedLanes),
0 !== pendingLanes
? (nextLanes = getHighestPriorityLanes(pendingLanes))
: 0 !== root && (nextLanes = getHighestPriorityLanes(root)));
return 0 === nextLanes
? 0
: 0 !== wipLanes &&
wipLanes !== nextLanes &&
0 === (wipLanes & suspendedLanes) &&
((suspendedLanes = nextLanes & -nextLanes),
(warmLanes = wipLanes & -wipLanes),
suspendedLanes >= warmLanes ||
(32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
(root = wipLanes & -wipLanes),
suspendedLanes >= root ||
(32 === suspendedLanes && 0 !== (root & 4194176)))
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -945,9 +941,7 @@ __DEV__ &&
root,
finishedLanes,
remainingLanes,
spawnedLane,
updatedLanes,
suspendedRetryLanes
spawnedLane
) {
var previouslyPendingLanes = root.pendingLanes;
root.pendingLanes = remainingLanes;
@@ -958,17 +952,17 @@ __DEV__ &&
root.entangledLanes &= remainingLanes;
root.errorRecoveryDisabledLanes &= remainingLanes;
root.shellSuspendCounter = 0;
var entanglements = root.entanglements,
expirationTimes = root.expirationTimes,
finishedLanes = root.entanglements;
var expirationTimes = root.expirationTimes,
hiddenUpdates = root.hiddenUpdates;
for (
remainingLanes = previouslyPendingLanes & ~remainingLanes;
0 < remainingLanes;
) {
var index = 31 - clz32(remainingLanes),
lane = 1 << index;
entanglements[index] = 0;
var index = 31 - clz32(remainingLanes);
previouslyPendingLanes = 1 << index;
finishedLanes[index] = 0;
expirationTimes[index] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index];
if (null !== hiddenUpdatesForLane)
@@ -980,13 +974,9 @@ __DEV__ &&
var update = hiddenUpdatesForLane[index];
null !== update && (update.lane &= -536870913);
}
remainingLanes &= ~lane;
remainingLanes &= ~previouslyPendingLanes;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
}
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
root.pendingLanes |= spawnedLane;
@@ -1895,7 +1885,8 @@ __DEV__ &&
root,
root === workInProgressRoot ? nextLanes : 0
)),
0 !== (nextLanes & 3) &&
0 === (nextLanes & 3) ||
checkIfRootIsPrerendering(root, nextLanes) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, nextLanes));
root = root.next;
@@ -1980,8 +1971,6 @@ __DEV__ &&
else return currentTime;
switch (lanesToEventPriority(suspendedLanes)) {
case DiscreteEventPriority:
suspendedLanes = ImmediatePriority;
break;
case ContinuousEventPriority:
suspendedLanes = UserBlockingPriority;
break;
@@ -7937,8 +7926,7 @@ __DEV__ &&
workInProgress.flags & 16384 &&
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
(workInProgress.lanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -10668,8 +10656,7 @@ __DEV__ &&
markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
workInProgressDeferredLane
);
markRootUpdated(root, lane);
if (
@@ -10710,8 +10697,7 @@ __DEV__ &&
markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
workInProgressDeferredLane
)),
ensureRootIsScheduled(root),
2 !== lane ||
@@ -10724,180 +10710,170 @@ __DEV__ &&
function performWorkOnRoot(root, lanes, forceSync) {
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes))
? renderRootConcurrent(root, lanes)
: renderRootSync(root, lanes);
if (exitStatus !== RootInProgress) {
var renderWasConcurrent = forceSync;
do {
if (exitStatus === RootDidNotComplete)
markRootSuspended(
root,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root.tag && exitStatus === RootErrored) {
var lanesThatJustErrored = lanes;
root.errorRecoveryDisabledLanes & lanesThatJustErrored
? (renderWasConcurrent = 0)
: ((renderWasConcurrent = root.pendingLanes & -536870913),
(renderWasConcurrent =
0 !== renderWasConcurrent
? renderWasConcurrent
: renderWasConcurrent & 536870912
? 536870912
: 0));
if (0 !== renderWasConcurrent) {
lanes = renderWasConcurrent;
a: {
exitStatus = root;
var originallyAttemptedLanes = lanesThatJustErrored;
lanesThatJustErrored = workInProgressRootConcurrentErrors;
renderWasConcurrent = renderRootSync(
exitStatus,
renderWasConcurrent
);
if (renderWasConcurrent !== RootErrored) {
if (workInProgressRootDidAttachPingListener) {
exitStatus.errorRecoveryDisabledLanes |=
originallyAttemptedLanes;
workInProgressRootInterleavedUpdatedLanes |=
originallyAttemptedLanes;
exitStatus = RootSuspendedWithDelay;
break a;
}
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
}
exitStatus = renderWasConcurrent;
}
renderWasConcurrent = !1;
if (exitStatus !== RootErrored) continue;
}
}
if (exitStatus === RootFatalErrored) {
prepareFreshStack(root, 0);
markRootSuspended(
root,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root;
switch (exitStatus) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root.expiredLanes)) ||
!1,
exitStatus = shouldTimeSlice
? renderRootConcurrent(root, lanes)
: renderRootSync(root, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (exitStatus === RootInProgress) break;
else if (exitStatus === RootDidNotComplete)
markRootSuspended(root, lanes, 0);
else {
forceSync = root.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root, lanes, !1);
continue;
}
if (0 !== root.tag && exitStatus === RootErrored) {
var lanesThatJustErrored = lanes;
root.errorRecoveryDisabledLanes & lanesThatJustErrored
? (renderWasConcurrent = 0)
: ((renderWasConcurrent = root.pendingLanes & -536870913),
(renderWasConcurrent =
0 !== renderWasConcurrent
? renderWasConcurrent
: renderWasConcurrent & 536870912
? 536870912
: 0));
if (0 !== renderWasConcurrent) {
lanes = renderWasConcurrent;
a: {
exitStatus = root;
var originallyAttemptedLanes = lanesThatJustErrored;
lanesThatJustErrored = workInProgressRootConcurrentErrors;
renderWasConcurrent = renderRootSync(
exitStatus,
renderWasConcurrent,
!1
);
if (renderWasConcurrent !== RootErrored) {
if (workInProgressRootDidAttachPingListener) {
exitStatus.errorRecoveryDisabledLanes |=
originallyAttemptedLanes;
workInProgressRootInterleavedUpdatedLanes |=
originallyAttemptedLanes;
exitStatus = RootSuspendedWithDelay;
break a;
}
break;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
}
exitStatus = renderWasConcurrent;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (null !== ReactSharedInternals.actQueue)
commitRoot(
renderWasConcurrent,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
IMMEDIATE_COMMIT,
-0,
0
);
else {
if (
(lanes & 62914560) === lanes &&
exitStatus === RootSuspended &&
((exitStatus =
globalMostRecentFallbackTime +
FALLBACK_THROTTLE_MS -
now$1()),
10 < exitStatus)
) {
if (exitStatus !== RootErrored) continue;
}
}
if (exitStatus === RootFatalErrored) {
prepareFreshStack(root, 0);
markRootSuspended(root, lanes, 0);
break;
}
a: {
shouldTimeSlice = root;
switch (exitStatus) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
THROTTLED_COMMIT,
-0,
0
),
exitStatus
workInProgressDeferredLane
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
break;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (null !== ReactSharedInternals.actQueue)
commitRoot(
shouldTimeSlice,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
IMMEDIATE_COMMIT,
-0,
0
);
else {
if (
(lanes & 62914560) === lanes &&
exitStatus === RootSuspended &&
((exitStatus =
globalMostRecentFallbackTime +
FALLBACK_THROTTLE_MS -
now$1()),
10 < exitStatus)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
IMMEDIATE_COMMIT,
-0,
0
workInProgressDeferredLane
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
THROTTLED_COMMIT,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
IMMEDIATE_COMMIT,
-0,
0
);
}
}
break;
} while (1);
}
}
break;
} while (1);
ensureRootIsScheduled(root);
}
function queueRecoverableErrors(errors) {
@@ -10985,22 +10961,19 @@ __DEV__ &&
(didIncludeCommitPhaseUpdate = !0);
throwIfInfiniteUpdateLoopDetected();
}
function markRootSuspended(
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
) {
function markRootSuspended(root, suspendedLanes, spawnedLane) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
for (
var expirationTimes = root.expirationTimes, lanes = suspendedLanes;
0 < lanes;
) {
var index = 31 - clz32(lanes),
lane = 1 << index;
didSkipSuspendedSiblings[index] = -1;
expirationTimes[index] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -11067,8 +11040,9 @@ __DEV__ &&
workInProgressRootRenderLanes = lanes;
workInProgressSuspendedReason = NotSuspended;
workInProgressThrownValue = null;
workInProgressRootDidAttachPingListener =
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootDidSkipSuspendedSiblings = !1;
checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressRootExitStatus = RootInProgress;
workInProgressSuspendedRetryLanes =
workInProgressDeferredLane =
@@ -11188,8 +11162,7 @@ __DEV__ &&
markRootSuspended(
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
workInProgressDeferredLane
);
}
function renderRootSync(root, lanes) {
@@ -11204,6 +11177,7 @@ __DEV__ &&
(workInProgressTransitions = null), prepareFreshStack(root, lanes);
markRenderStarted(lanes);
lanes = !1;
var exitStatus = workInProgressRootExitStatus;
a: do
try {
if (
@@ -11215,21 +11189,26 @@ __DEV__ &&
switch (workInProgressSuspendedReason) {
case SuspendedOnHydration:
resetWorkInProgressStack();
workInProgressRootExitStatus = RootDidNotComplete;
exitStatus = RootDidNotComplete;
break a;
case SuspendedOnImmediate:
case SuspendedOnData:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case SuspendedOnDeprecatedThrowPromise:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = NotSuspended;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = NotSuspended),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
exitStatus = workInProgressRootExitStatus;
break;
} catch (thrownValue$33) {
handleThrow(root, thrownValue$33);
@@ -11240,15 +11219,12 @@ __DEV__ &&
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
markRenderStopped();
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return exitStatus;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -11258,13 +11234,11 @@ __DEV__ &&
executionContext |= RenderContext;
var prevDispatcher = pushDispatcher(),
prevAsyncDispatcher = pushAsyncDispatcher();
if (
workInProgressRoot !== root ||
workInProgressRootRenderLanes !== lanes
)
(workInProgressTransitions = null),
workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes
? ((workInProgressTransitions = null),
(workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS),
prepareFreshStack(root, lanes);
prepareFreshStack(root, lanes))
: checkIfRootIsPrerendering(root, lanes);
markRenderStarted(lanes);
a: do
try {
@@ -11630,9 +11604,7 @@ __DEV__ &&
transitions,
didIncludeRenderPhaseUpdate,
renderPriorityLevel,
spawnedLane,
updatedLanes,
suspendedRetryLanes
spawnedLane
) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects);
@@ -11661,14 +11633,7 @@ __DEV__ &&
root.cancelPendingCommit = null;
var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
remainingLanes |= concurrentlyUpdatedLanes;
markRootFinished(
root,
lanes,
remainingLanes,
spawnedLane,
updatedLanes,
suspendedRetryLanes
);
markRootFinished(root, lanes, remainingLanes, spawnedLane);
didIncludeCommitPhaseUpdate = !1;
root === workInProgressRoot &&
((workInProgress = workInProgressRoot = null),
@@ -11685,30 +11650,30 @@ __DEV__ &&
}));
commitStartTime = now();
transitions = 0 !== (finishedWork.flags & 15990);
0 !== (finishedWork.subtreeFlags & 15990) || transitions
? ((transitions = ReactSharedInternals.T),
(ReactSharedInternals.T = null),
(spawnedLane = currentUpdatePriority),
(currentUpdatePriority = DiscreteEventPriority),
(updatedLanes = executionContext),
(executionContext |= CommitContext),
commitBeforeMutationEffects(root, finishedWork),
commitMutationEffectsOnFiber(finishedWork, root),
(root.current = finishedWork),
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
injectedProfilingHooks.markLayoutEffectsStarted(lanes),
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork),
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
injectedProfilingHooks.markLayoutEffectsStopped(),
requestPaint(),
(executionContext = updatedLanes),
(currentUpdatePriority = spawnedLane),
(ReactSharedInternals.T = transitions))
: (root.current = finishedWork);
if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
transitions = ReactSharedInternals.T;
ReactSharedInternals.T = null;
spawnedLane = currentUpdatePriority;
currentUpdatePriority = DiscreteEventPriority;
var prevExecutionContext = executionContext;
executionContext |= CommitContext;
commitBeforeMutationEffects(root, finishedWork);
commitMutationEffectsOnFiber(finishedWork, root);
root.current = finishedWork;
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
injectedProfilingHooks.markLayoutEffectsStarted(lanes);
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
injectedProfilingHooks.markLayoutEffectsStopped();
requestPaint();
executionContext = prevExecutionContext;
currentUpdatePriority = spawnedLane;
ReactSharedInternals.T = transitions;
} else root.current = finishedWork;
(transitions = rootDoesHavePassiveEffects)
? ((rootDoesHavePassiveEffects = !1),
(rootWithPendingPassiveEffects = root),
@@ -15065,11 +15030,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15091,7 +15056,7 @@ __DEV__ &&
exports._Scheduler = Scheduler;
exports.act = act;
exports.create = function (element, options) {
var createNodeMock = JSCompiler_object_inline_createNodeMock_1104,
var createNodeMock = JSCompiler_object_inline_createNodeMock_1102,
isConcurrent = !1,
isStrictMode = !1;
"object" === typeof options &&
@@ -15214,5 +15179,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c00cfbe0510d7b002436ceeeb13bf79e>>
* @generated SignedSource<<9064d42607cf1d875841949ec6f38022>>
*/
"use strict";
@@ -537,43 +537,39 @@ function getNextLanes(root, wipLanes) {
var pendingLanes = root.pendingLanes;
if (0 === pendingLanes) return 0;
var nextLanes = 0,
suspendedLanes = root.suspendedLanes,
pingedLanes = root.pingedLanes,
warmLanes = root.warmLanes;
root = 0 !== root.finishedLanes;
suspendedLanes = root.suspendedLanes;
root = root.pingedLanes;
var nonIdlePendingLanes = pendingLanes & 134217727;
0 !== nonIdlePendingLanes
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
0 !== pendingLanes
? (nextLanes = getHighestPriorityLanes(pendingLanes))
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
0 !== nonIdlePendingLanes
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
: ((root &= nonIdlePendingLanes),
0 !== root && (nextLanes = getHighestPriorityLanes(root))))
: ((pendingLanes &= ~suspendedLanes),
0 !== pendingLanes
? (nextLanes = getHighestPriorityLanes(pendingLanes))
: 0 !== root && (nextLanes = getHighestPriorityLanes(root)));
return 0 === nextLanes
? 0
: 0 !== wipLanes &&
wipLanes !== nextLanes &&
0 === (wipLanes & suspendedLanes) &&
((suspendedLanes = nextLanes & -nextLanes),
(warmLanes = wipLanes & -wipLanes),
suspendedLanes >= warmLanes ||
(32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
(root = wipLanes & -wipLanes),
suspendedLanes >= root ||
(32 === suspendedLanes && 0 !== (root & 4194176)))
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -631,14 +627,7 @@ function createLaneMap(initial) {
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
return laneMap;
}
function markRootFinished(
root,
finishedLanes,
remainingLanes,
spawnedLane,
updatedLanes,
suspendedRetryLanes
) {
function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) {
var previouslyPendingLanes = root.pendingLanes;
root.pendingLanes = remainingLanes;
root.suspendedLanes = 0;
@@ -648,35 +637,31 @@ function markRootFinished(
root.entangledLanes &= remainingLanes;
root.errorRecoveryDisabledLanes &= remainingLanes;
root.shellSuspendCounter = 0;
var entanglements = root.entanglements,
expirationTimes = root.expirationTimes,
finishedLanes = root.entanglements;
var expirationTimes = root.expirationTimes,
hiddenUpdates = root.hiddenUpdates;
for (
remainingLanes = previouslyPendingLanes & ~remainingLanes;
0 < remainingLanes;
) {
var index$7 = 31 - clz32(remainingLanes),
lane = 1 << index$7;
entanglements[index$7] = 0;
expirationTimes[index$7] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$7];
var index$6 = 31 - clz32(remainingLanes);
previouslyPendingLanes = 1 << index$6;
finishedLanes[index$6] = 0;
expirationTimes[index$6] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$6];
if (null !== hiddenUpdatesForLane)
for (
hiddenUpdates[index$7] = null, index$7 = 0;
index$7 < hiddenUpdatesForLane.length;
index$7++
hiddenUpdates[index$6] = null, index$6 = 0;
index$6 < hiddenUpdatesForLane.length;
index$6++
) {
var update = hiddenUpdatesForLane[index$7];
var update = hiddenUpdatesForLane[index$6];
null !== update && (update.lane &= -536870913);
}
remainingLanes &= ~lane;
remainingLanes &= ~previouslyPendingLanes;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
}
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
root.pendingLanes |= spawnedLane;
@@ -691,10 +676,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
function markRootEntangled(root, entangledLanes) {
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
for (root = root.entanglements; rootEntangledLanes; ) {
var index$8 = 31 - clz32(rootEntangledLanes),
lane = 1 << index$8;
(lane & entangledLanes) | (root[index$8] & entangledLanes) &&
(root[index$8] |= entangledLanes);
var index$7 = 31 - clz32(rootEntangledLanes),
lane = 1 << index$7;
(lane & entangledLanes) | (root[index$7] & entangledLanes) &&
(root[index$7] |= entangledLanes);
rootEntangledLanes &= ~lane;
}
}
@@ -1023,7 +1008,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
root,
root === workInProgressRoot ? JSCompiler_inline_result : 0
)),
0 !== (JSCompiler_inline_result & 3) &&
0 === (JSCompiler_inline_result & 3) ||
checkIfRootIsPrerendering(root, JSCompiler_inline_result) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, JSCompiler_inline_result));
root = root.next;
@@ -1061,12 +1047,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
0 < lanes;
) {
var index$5 = 31 - clz32(lanes),
lane = 1 << index$5,
expirationTime = expirationTimes[index$5];
var index$4 = 31 - clz32(lanes),
lane = 1 << index$4,
expirationTime = expirationTimes[index$4];
if (-1 === expirationTime) {
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
expirationTimes[index$4] = computeExpirationTime(lane, currentTime);
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
lanes &= ~lane;
}
@@ -1103,8 +1089,6 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
suspendedLanes = ImmediatePriority;
break;
case 8:
suspendedLanes = UserBlockingPriority;
break;
@@ -2627,7 +2611,7 @@ function updateReducerImpl(hook, current, reducer) {
var newBaseQueueFirst = (baseFirst = null),
newBaseQueueLast = null,
update = current,
didReadFromEntangledAsyncAction$41 = !1;
didReadFromEntangledAsyncAction$40 = !1;
do {
var updateLane = update.lane & -536870913;
if (
@@ -2648,11 +2632,11 @@ function updateReducerImpl(hook, current, reducer) {
next: null
}),
updateLane === currentEntangledLane &&
(didReadFromEntangledAsyncAction$41 = !0);
(didReadFromEntangledAsyncAction$40 = !0);
else if ((renderLanes & revertLane) === revertLane) {
update = update.next;
revertLane === currentEntangledLane &&
(didReadFromEntangledAsyncAction$41 = !0);
(didReadFromEntangledAsyncAction$40 = !0);
continue;
} else
(updateLane = {
@@ -2698,7 +2682,7 @@ function updateReducerImpl(hook, current, reducer) {
if (
!objectIs(pendingQueue, hook.memoizedState) &&
((didReceiveUpdate = !0),
didReadFromEntangledAsyncAction$41 &&
didReadFromEntangledAsyncAction$40 &&
((reducer = currentEntangledActionThenable), null !== reducer))
)
throw reducer;
@@ -2889,8 +2873,8 @@ function runActionStateAction(actionQueue, node) {
try {
(prevTransition = action(prevState, payload)),
handleActionReturnValue(actionQueue, node, prevTransition);
} catch (error$45) {
onActionError(actionQueue, node, error$45);
} catch (error$44) {
onActionError(actionQueue, node, error$44);
}
}
function handleActionReturnValue(actionQueue, node, returnValue) {
@@ -3762,9 +3746,9 @@ function resolveClassComponentProps(Component, baseProps) {
}
if ((Component = Component.defaultProps)) {
newProps === baseProps && (newProps = assign({}, newProps));
for (var propName$47 in Component)
void 0 === newProps[propName$47] &&
(newProps[propName$47] = Component[propName$47]);
for (var propName$46 in Component)
void 0 === newProps[propName$46] &&
(newProps[propName$46] = Component[propName$46]);
}
return newProps;
}
@@ -5713,8 +5697,7 @@ function scheduleRetryEffect(workInProgress, retryQueue) {
workInProgress.flags & 16384 &&
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
(workInProgress.lanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -5730,14 +5713,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
break;
case "collapsed":
lastTailNode = renderState.tail;
for (var lastTailNode$87 = null; null !== lastTailNode; )
null !== lastTailNode.alternate && (lastTailNode$87 = lastTailNode),
for (var lastTailNode$86 = null; null !== lastTailNode; )
null !== lastTailNode.alternate && (lastTailNode$86 = lastTailNode),
(lastTailNode = lastTailNode.sibling);
null === lastTailNode$87
null === lastTailNode$86
? hasRenderedATailFallback || null === renderState.tail
? (renderState.tail = null)
: (renderState.tail.sibling = null)
: (lastTailNode$87.sibling = null);
: (lastTailNode$86.sibling = null);
}
}
function bubbleProperties(completedWork) {
@@ -5747,19 +5730,19 @@ function bubbleProperties(completedWork) {
newChildLanes = 0,
subtreeFlags = 0;
if (didBailout)
for (var child$88 = completedWork.child; null !== child$88; )
(newChildLanes |= child$88.lanes | child$88.childLanes),
(subtreeFlags |= child$88.subtreeFlags & 31457280),
(subtreeFlags |= child$88.flags & 31457280),
(child$88.return = completedWork),
(child$88 = child$88.sibling);
for (var child$87 = completedWork.child; null !== child$87; )
(newChildLanes |= child$87.lanes | child$87.childLanes),
(subtreeFlags |= child$87.subtreeFlags & 31457280),
(subtreeFlags |= child$87.flags & 31457280),
(child$87.return = completedWork),
(child$87 = child$87.sibling);
else
for (child$88 = completedWork.child; null !== child$88; )
(newChildLanes |= child$88.lanes | child$88.childLanes),
(subtreeFlags |= child$88.subtreeFlags),
(subtreeFlags |= child$88.flags),
(child$88.return = completedWork),
(child$88 = child$88.sibling);
for (child$87 = completedWork.child; null !== child$87; )
(newChildLanes |= child$87.lanes | child$87.childLanes),
(subtreeFlags |= child$87.subtreeFlags),
(subtreeFlags |= child$87.flags),
(child$87.return = completedWork),
(child$87 = child$87.sibling);
completedWork.subtreeFlags |= subtreeFlags;
completedWork.childLanes = newChildLanes;
return didBailout;
@@ -5922,11 +5905,11 @@ function completeWork(current, workInProgress, renderLanes) {
null !== newProps.alternate.memoizedState &&
null !== newProps.alternate.memoizedState.cachePool &&
(index = newProps.alternate.memoizedState.cachePool.pool);
var cache$92 = null;
var cache$91 = null;
null !== newProps.memoizedState &&
null !== newProps.memoizedState.cachePool &&
(cache$92 = newProps.memoizedState.cachePool.pool);
cache$92 !== index && (newProps.flags |= 2048);
(cache$91 = newProps.memoizedState.cachePool.pool);
cache$91 !== index && (newProps.flags |= 2048);
}
renderLanes !== current &&
renderLanes &&
@@ -5951,8 +5934,8 @@ function completeWork(current, workInProgress, renderLanes) {
index = workInProgress.memoizedState;
if (null === index) return bubbleProperties(workInProgress), null;
newProps = 0 !== (workInProgress.flags & 128);
cache$92 = index.rendering;
if (null === cache$92)
cache$91 = index.rendering;
if (null === cache$91)
if (newProps) cutOffTailIfNeeded(index, !1);
else {
if (
@@ -5960,11 +5943,11 @@ function completeWork(current, workInProgress, renderLanes) {
(null !== current && 0 !== (current.flags & 128))
)
for (current = workInProgress.child; null !== current; ) {
cache$92 = findFirstSuspended(current);
if (null !== cache$92) {
cache$91 = findFirstSuspended(current);
if (null !== cache$91) {
workInProgress.flags |= 128;
cutOffTailIfNeeded(index, !1);
current = cache$92.updateQueue;
current = cache$91.updateQueue;
workInProgress.updateQueue = current;
scheduleRetryEffect(workInProgress, current);
workInProgress.subtreeFlags = 0;
@@ -5989,7 +5972,7 @@ function completeWork(current, workInProgress, renderLanes) {
}
else {
if (!newProps)
if (((current = findFirstSuspended(cache$92)), null !== current)) {
if (((current = findFirstSuspended(cache$91)), null !== current)) {
if (
((workInProgress.flags |= 128),
(newProps = !0),
@@ -5999,7 +5982,7 @@ function completeWork(current, workInProgress, renderLanes) {
cutOffTailIfNeeded(index, !0),
null === index.tail &&
"hidden" === index.tailMode &&
!cache$92.alternate)
!cache$91.alternate)
)
return bubbleProperties(workInProgress), null;
} else
@@ -6011,13 +5994,13 @@ function completeWork(current, workInProgress, renderLanes) {
cutOffTailIfNeeded(index, !1),
(workInProgress.lanes = 4194304));
index.isBackwards
? ((cache$92.sibling = workInProgress.child),
(workInProgress.child = cache$92))
? ((cache$91.sibling = workInProgress.child),
(workInProgress.child = cache$91))
: ((current = index.last),
null !== current
? (current.sibling = cache$92)
: (workInProgress.child = cache$92),
(index.last = cache$92));
? (current.sibling = cache$91)
: (workInProgress.child = cache$91),
(index.last = cache$91));
}
if (null !== index.tail)
return (
@@ -6199,9 +6182,9 @@ function commitHookEffectListMount(flags, finishedWork) {
do {
if ((updateQueue.tag & flags) === flags) {
lastEffect = void 0;
var create$108 = updateQueue.create,
var create$107 = updateQueue.create,
inst = updateQueue.inst;
lastEffect = create$108();
lastEffect = create$107();
inst.destroy = lastEffect;
}
updateQueue = updateQueue.next;
@@ -6314,8 +6297,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
else if ("function" === typeof ref)
try {
ref(null);
} catch (error$110) {
captureCommitPhaseError(current, nearestMountedAncestor, error$110);
} catch (error$109) {
captureCommitPhaseError(current, nearestMountedAncestor, error$109);
}
else ref.current = null;
}
@@ -6479,11 +6462,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
);
} catch (error$109) {
} catch (error$108) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$109
error$108
);
}
}
@@ -7019,12 +7002,12 @@ function commitReconciliationEffects(finishedWork) {
break;
case 3:
case 4:
var parent$111 = JSCompiler_inline_result.stateNode.containerInfo,
before$112 = getHostSibling(finishedWork);
var parent$110 = JSCompiler_inline_result.stateNode.containerInfo,
before$111 = getHostSibling(finishedWork);
insertOrAppendPlacementNodeIntoContainer(
finishedWork,
before$112,
parent$111
before$111,
parent$110
);
break;
default:
@@ -7726,8 +7709,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
workInProgressDeferredLane
);
markRootUpdated(root, lane);
if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -7738,8 +7720,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
workInProgressDeferredLane
)),
ensureRootIsScheduled(root),
2 === lane &&
@@ -7751,165 +7732,148 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes))
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes);
if (0 !== exitStatus) {
var renderWasConcurrent = forceSync;
do {
if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes)) ||
!1,
exitStatus = shouldTimeSlice
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (0 === exitStatus) break;
else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes, !1);
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
(JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent = !1;
if (2 !== exitStatus) continue;
}
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root$jscomp$0;
switch (exitStatus) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result,
!1
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
3 === exitStatus &&
((exitStatus = globalMostRecentFallbackTime + 300 - now()),
10 < exitStatus)
) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
if (2 !== exitStatus) continue;
}
}
break;
} while (1);
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(root$jscomp$0, lanes, 0);
break;
}
a: {
shouldTimeSlice = root$jscomp$0;
renderWasConcurrent = exitStatus;
switch (renderWasConcurrent) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane
);
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
3 === renderWasConcurrent &&
((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()),
10 < renderWasConcurrent)
) {
markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
}
}
break;
} while (1);
ensureRootIsScheduled(root$jscomp$0);
}
function queueRecoverableErrors(errors) {
@@ -8003,22 +7967,19 @@ function markRootUpdated(root, updatedLanes) {
: executionContext & 4 && (didIncludeCommitPhaseUpdate = !0);
throwIfInfiniteUpdateLoopDetected();
}
function markRootSuspended(
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
) {
function markRootSuspended(root, suspendedLanes, spawnedLane) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$6 = 31 - clz32(lanes),
lane = 1 << index$6;
didSkipSuspendedSiblings[index$6] = -1;
for (
var expirationTimes = root.expirationTimes, lanes = suspendedLanes;
0 < lanes;
) {
var index$5 = 31 - clz32(lanes),
lane = 1 << index$5;
expirationTimes[index$5] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -8075,8 +8036,9 @@ function prepareFreshStack(root, lanes) {
workInProgressRootRenderLanes = lanes;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
workInProgressRootDidAttachPingListener =
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootDidSkipSuspendedSiblings = !1;
checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressSuspendedRetryLanes =
workInProgressDeferredLane =
workInProgressRootPingedLanes =
@@ -8095,9 +8057,9 @@ function prepareFreshStack(root, lanes) {
0 < allEntangledLanes;
) {
var index$4 = 31 - clz32(allEntangledLanes),
lane = 1 << index$4;
lanes |= root[index$4];
var index$3 = 31 - clz32(allEntangledLanes),
lane = 1 << index$3;
lanes |= root[index$3];
allEntangledLanes &= ~lane;
}
entangledRenderLanes = lanes;
@@ -8161,8 +8123,7 @@ function renderDidSuspendDelayIfPossible() {
markRootSuspended(
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
workInProgressDeferredLane
);
}
function renderRootSync(root, lanes) {
@@ -8173,6 +8134,7 @@ function renderRootSync(root, lanes) {
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
(workInProgressTransitions = null), prepareFreshStack(root, lanes);
lanes = !1;
var exitStatus = workInProgressRootExitStatus;
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
@@ -8181,21 +8143,26 @@ function renderRootSync(root, lanes) {
switch (workInProgressSuspendedReason) {
case 8:
resetWorkInProgressStack();
workInProgressRootExitStatus = 6;
exitStatus = 6;
break a;
case 3:
case 2:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case 6:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = 0),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
exitStatus = workInProgressRootExitStatus;
break;
} catch (thrownValue$122) {
handleThrow(root, thrownValue$122);
@@ -8206,14 +8173,11 @@ function renderRootSync(root, lanes) {
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return exitStatus;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -8223,10 +8187,11 @@ function renderRootConcurrent(root, lanes) {
executionContext |= 2;
var prevDispatcher = pushDispatcher(),
prevAsyncDispatcher = pushAsyncDispatcher();
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
(workInProgressTransitions = null),
workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes
? ((workInProgressTransitions = null),
(workInProgressRootRenderTargetTime = now() + 500),
prepareFreshStack(root, lanes);
prepareFreshStack(root, lanes))
: checkIfRootIsPrerendering(root, lanes);
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
@@ -8471,9 +8436,7 @@ function commitRootImpl(
transitions,
didIncludeRenderPhaseUpdate,
renderPriorityLevel,
spawnedLane,
updatedLanes,
suspendedRetryLanes
spawnedLane
) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects);
@@ -8493,14 +8456,7 @@ function commitRootImpl(
root.cancelPendingCommit = null;
var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
remainingLanes |= concurrentlyUpdatedLanes;
markRootFinished(
root,
lanes,
remainingLanes,
spawnedLane,
updatedLanes,
suspendedRetryLanes
);
markRootFinished(root, lanes, remainingLanes, spawnedLane);
didIncludeCommitPhaseUpdate = !1;
root === workInProgressRoot &&
((workInProgress = workInProgressRoot = null),
@@ -8516,22 +8472,22 @@ function commitRootImpl(
return null;
}));
transitions = 0 !== (finishedWork.flags & 15990);
0 !== (finishedWork.subtreeFlags & 15990) || transitions
? ((transitions = ReactSharedInternals.T),
(ReactSharedInternals.T = null),
(spawnedLane = currentUpdatePriority),
(currentUpdatePriority = 2),
(updatedLanes = executionContext),
(executionContext |= 4),
commitBeforeMutationEffects(root, finishedWork),
commitMutationEffectsOnFiber(finishedWork, root),
(root.current = finishedWork),
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork),
requestPaint(),
(executionContext = updatedLanes),
(currentUpdatePriority = spawnedLane),
(ReactSharedInternals.T = transitions))
: (root.current = finishedWork);
if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
transitions = ReactSharedInternals.T;
ReactSharedInternals.T = null;
spawnedLane = currentUpdatePriority;
currentUpdatePriority = 2;
var prevExecutionContext = executionContext;
executionContext |= 4;
commitBeforeMutationEffects(root, finishedWork);
commitMutationEffectsOnFiber(finishedWork, root);
root.current = finishedWork;
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
requestPaint();
executionContext = prevExecutionContext;
currentUpdatePriority = spawnedLane;
ReactSharedInternals.T = transitions;
} else root.current = finishedWork;
rootDoesHavePassiveEffects
? ((rootDoesHavePassiveEffects = !1),
(rootWithPendingPassiveEffects = root),
@@ -9439,28 +9395,28 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var internals$jscomp$inline_1322 = {
var internals$jscomp$inline_1320 = {
bundleType: 0,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function (mockNode) {
mockNode = nodeToInstanceMap.get(mockNode);
return void 0 !== mockNode ? mockNode.internalInstanceHandle : null;
},
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1323 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1321 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1323.isDisabled &&
hook$jscomp$inline_1323.supportsFiber
!hook$jscomp$inline_1321.isDisabled &&
hook$jscomp$inline_1321.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1323.inject(
internals$jscomp$inline_1322
(rendererID = hook$jscomp$inline_1321.inject(
internals$jscomp$inline_1320
)),
(injectedHook = hook$jscomp$inline_1323);
(injectedHook = hook$jscomp$inline_1321);
} catch (err) {}
}
exports._Scheduler = Scheduler;
@@ -9584,4 +9540,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d2419770e9ac1206416ff3794a08ce3f>>
* @generated SignedSource<<716aa7a6a6d9a83b88006c766ae3e1c1>>
*/
"use strict";
@@ -1704,7 +1704,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<316b3d30692eae8b50790b24928f44b7>>
* @generated SignedSource<<27392443fa72017f18ddbcf20de9b20a>>
*/
"use strict";
@@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8664d331e5e72708777773b51f98c7ca>>
* @generated SignedSource<<6744c035f711a8ced38e49fe9b946a4d>>
*/
"use strict";
@@ -584,7 +584,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
3c7667a694face1827356a7c90ee6f86a9c0baa0
0f1856c49febe96923e469f98c0b123130ea015c
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2cc61b8961d4779bd4765a9678649694>>
* @generated SignedSource<<b1ac4947f51339b21cd9d052b58ce585>>
*/
"use strict";
@@ -1606,7 +1606,8 @@ __DEV__ &&
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
@@ -1615,7 +1616,8 @@ __DEV__ &&
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
@@ -1631,6 +1633,14 @@ __DEV__ &&
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -1735,7 +1745,8 @@ __DEV__ &&
remainingLanes &= ~lane;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
enableSiblingPrerendering &&
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
@@ -2737,7 +2748,8 @@ __DEV__ &&
root,
root === workInProgressRoot ? nextLanes : 0
)),
0 !== (nextLanes & 3) &&
0 === (nextLanes & 3) ||
checkIfRootIsPrerendering(root, nextLanes) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, nextLanes));
root = root.next;
@@ -2805,45 +2817,46 @@ __DEV__ &&
(root.callbackNode = null),
(root.callbackPriority = 0)
);
if (0 !== (suspendedLanes & 3))
return (
null !== pingedLanes && cancelCallback(pingedLanes),
(root.callbackPriority = 2),
(root.callbackNode = null),
2
);
currentTime = suspendedLanes & -suspendedLanes;
if (
currentTime !== root.callbackPriority ||
(null !== ReactSharedInternals.actQueue &&
pingedLanes !== fakeActCallbackNode$1)
)
cancelCallback(pingedLanes);
else return currentTime;
switch (lanesToEventPriority(suspendedLanes)) {
case DiscreteEventPriority:
suspendedLanes = ImmediatePriority;
break;
case ContinuousEventPriority:
suspendedLanes = UserBlockingPriority;
break;
case DefaultEventPriority:
suspendedLanes = NormalPriority$1;
break;
case IdleEventPriority:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
0 === (suspendedLanes & 3) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root, suspendedLanes))
) {
currentTime = suspendedLanes & -suspendedLanes;
if (
currentTime !== root.callbackPriority ||
(null !== ReactSharedInternals.actQueue &&
pingedLanes !== fakeActCallbackNode$1)
)
cancelCallback(pingedLanes);
else return currentTime;
switch (lanesToEventPriority(suspendedLanes)) {
case DiscreteEventPriority:
case ContinuousEventPriority:
suspendedLanes = UserBlockingPriority;
break;
case DefaultEventPriority:
suspendedLanes = NormalPriority$1;
break;
case IdleEventPriority:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
null !== ReactSharedInternals.actQueue
? (ReactSharedInternals.actQueue.push(pingedLanes),
(suspendedLanes = fakeActCallbackNode$1))
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
null !== ReactSharedInternals.actQueue
? (ReactSharedInternals.actQueue.push(pingedLanes),
(suspendedLanes = fakeActCallbackNode$1))
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
null !== pingedLanes && cancelCallback(pingedLanes);
root.callbackPriority = 2;
root.callbackNode = null;
return 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -9198,7 +9211,8 @@ __DEV__ &&
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
enableSiblingPrerendering &&
(workInProgressSuspendedRetryLanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -11783,7 +11797,7 @@ __DEV__ &&
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
markRootUpdated(root, lane);
if (
@@ -11826,7 +11840,7 @@ __DEV__ &&
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
)),
ensureRootIsScheduled(root),
2 !== lane ||
@@ -11839,184 +11853,188 @@ __DEV__ &&
function performWorkOnRoot(root, lanes, forceSync) {
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes))
? renderRootConcurrent(root, lanes)
: renderRootSync(root, lanes);
if (exitStatus !== RootInProgress) {
var renderWasConcurrent = forceSync;
do {
if (exitStatus === RootDidNotComplete)
markRootSuspended(
root,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root.tag && exitStatus === RootErrored) {
var lanesThatJustErrored = lanes;
root.errorRecoveryDisabledLanes & lanesThatJustErrored
? (renderWasConcurrent = 0)
: ((renderWasConcurrent = root.pendingLanes & -536870913),
(renderWasConcurrent =
0 !== renderWasConcurrent
? renderWasConcurrent
: renderWasConcurrent & 536870912
? 536870912
: 0));
if (0 !== renderWasConcurrent) {
lanes = renderWasConcurrent;
a: {
exitStatus = root;
var originallyAttemptedLanes = lanesThatJustErrored;
lanesThatJustErrored = workInProgressRootConcurrentErrors;
var wasRootDehydrated = supportsHydration;
renderWasConcurrent = renderRootSync(
exitStatus,
renderWasConcurrent
);
if (renderWasConcurrent !== RootErrored) {
if (
workInProgressRootDidAttachPingListener &&
!wasRootDehydrated
) {
exitStatus.errorRecoveryDisabledLanes |=
originallyAttemptedLanes;
workInProgressRootInterleavedUpdatedLanes |=
originallyAttemptedLanes;
exitStatus = RootSuspendedWithDelay;
break a;
}
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
}
exitStatus = renderWasConcurrent;
}
renderWasConcurrent = !1;
if (exitStatus !== RootErrored) continue;
}
}
if (exitStatus === RootFatalErrored) {
prepareFreshStack(root, 0);
markRootSuspended(
root,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root;
switch (exitStatus) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root.expiredLanes)) ||
(enableSiblingPrerendering && checkIfRootIsPrerendering(root, lanes)),
exitStatus = shouldTimeSlice
? renderRootConcurrent(root, lanes)
: renderRootSync(root, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (exitStatus === RootInProgress) {
enableSiblingPrerendering &&
workInProgressRootIsPrerendering &&
!shouldTimeSlice &&
markRootSuspended(root, lanes, 0, !1);
break;
} else if (exitStatus === RootDidNotComplete)
markRootSuspended(
root,
lanes,
0,
!workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root, lanes, !1);
continue;
}
if (0 !== root.tag && exitStatus === RootErrored) {
var lanesThatJustErrored = lanes;
root.errorRecoveryDisabledLanes & lanesThatJustErrored
? (renderWasConcurrent = 0)
: ((renderWasConcurrent = root.pendingLanes & -536870913),
(renderWasConcurrent =
0 !== renderWasConcurrent
? renderWasConcurrent
: renderWasConcurrent & 536870912
? 536870912
: 0));
if (0 !== renderWasConcurrent) {
lanes = renderWasConcurrent;
a: {
exitStatus = root;
var originallyAttemptedLanes = lanesThatJustErrored;
lanesThatJustErrored = workInProgressRootConcurrentErrors;
var wasRootDehydrated = supportsHydration;
renderWasConcurrent = renderRootSync(
exitStatus,
renderWasConcurrent,
!1
);
if (renderWasConcurrent !== RootErrored) {
if (
workInProgressRootDidAttachPingListener &&
!wasRootDehydrated
) {
exitStatus.errorRecoveryDisabledLanes |=
originallyAttemptedLanes;
workInProgressRootInterleavedUpdatedLanes |=
originallyAttemptedLanes;
exitStatus = RootSuspendedWithDelay;
break a;
}
break;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
}
exitStatus = renderWasConcurrent;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (null !== ReactSharedInternals.actQueue)
commitRoot(
renderWasConcurrent,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
IMMEDIATE_COMMIT,
-0,
0
);
else {
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || exitStatus === RootSuspended) &&
((exitStatus =
globalMostRecentFallbackTime +
FALLBACK_THROTTLE_MS -
now$1()),
10 < exitStatus)
) {
if (exitStatus !== RootErrored) continue;
}
}
if (exitStatus === RootFatalErrored) {
prepareFreshStack(root, 0);
markRootSuspended(root, lanes, 0, !0);
break;
}
a: {
shouldTimeSlice = root;
renderWasConcurrent = exitStatus;
switch (renderWasConcurrent) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
THROTTLED_COMMIT,
-0,
0
),
exitStatus
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
break;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (null !== ReactSharedInternals.actQueue)
commitRoot(
shouldTimeSlice,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
IMMEDIATE_COMMIT,
-0,
0
);
else {
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries ||
renderWasConcurrent === RootSuspended) &&
((renderWasConcurrent =
globalMostRecentFallbackTime +
FALLBACK_THROTTLE_MS -
now$1()),
10 < renderWasConcurrent)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
IMMEDIATE_COMMIT,
-0,
0
!workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
THROTTLED_COMMIT,
-0,
0
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
IMMEDIATE_COMMIT,
-0,
0
);
}
}
break;
} while (1);
}
}
break;
} while (1);
ensureRootIsScheduled(root);
}
function queueRecoverableErrors(errors) {
@@ -12108,18 +12126,20 @@ __DEV__ &&
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
didAttemptEntireTree
) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
enableSiblingPrerendering &&
didAttemptEntireTree &&
(root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index = 31 - clz32(lanes),
lane = 1 << index;
didSkipSuspendedSiblings[index] = -1;
didAttemptEntireTree[index] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -12163,11 +12183,7 @@ __DEV__ &&
workInProgressSuspendedReason = NotSuspended;
workInProgressThrownValue = null;
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes);
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressRootExitStatus = RootInProgress;
workInProgressSuspendedRetryLanes =
@@ -12291,7 +12307,9 @@ __DEV__ &&
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = RootSuspendedWithDelay;
workInProgressRootDidSkipSuspendedSiblings ||
0 !== (workInProgressRootRenderLanes & 60) ||
((workInProgressRootRenderLanes & 4194176) !==
workInProgressRootRenderLanes &&
null !== suspenseHandlerStackCursor.current) ||
(workInProgressRootIsPrerendering = !0);
(0 === (workInProgressRootSkippedLanes & 134217727) &&
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
@@ -12300,10 +12318,10 @@ __DEV__ &&
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
}
function renderRootSync(root, lanes) {
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= RenderContext;
var prevDispatcher = pushDispatcher(),
@@ -12324,37 +12342,46 @@ __DEV__ &&
}
markRenderStarted(lanes);
lanes = !1;
memoizedUpdaters = workInProgressRootExitStatus;
a: do
try {
if (
workInProgressSuspendedReason !== NotSuspended &&
null !== workInProgress
) {
memoizedUpdaters = workInProgress;
var thrownValue = workInProgressThrownValue;
var unitOfWork = workInProgress,
thrownValue = workInProgressThrownValue;
switch (workInProgressSuspendedReason) {
case SuspendedOnHydration:
resetWorkInProgressStack();
workInProgressRootExitStatus = RootDidNotComplete;
memoizedUpdaters = RootDidNotComplete;
break a;
case SuspendedOnImmediate:
case SuspendedOnData:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case SuspendedOnDeprecatedThrowPromise:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = NotSuspended;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(
root,
memoizedUpdaters,
thrownValue,
reason
);
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
if (
enableSiblingPrerendering &&
shouldYieldForPrerendering &&
workInProgressRootIsPrerendering
) {
memoizedUpdaters = RootInProgress;
break a;
}
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = NotSuspended),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
memoizedUpdaters = workInProgressRootExitStatus;
break;
} catch (thrownValue$30) {
handleThrow(root, thrownValue$30);
@@ -12365,15 +12392,12 @@ __DEV__ &&
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
markRenderStopped();
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return memoizedUpdaters;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -12398,12 +12422,10 @@ __DEV__ &&
workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
prepareFreshStack(root, lanes);
} else
workInProgressRootIsPrerendering &&
(workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes));
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
root,
lanes
);
markRenderStarted(lanes);
a: do
try {
@@ -17074,11 +17096,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<324c0ceaa8af19d96d9162c3caef24de>>
* @generated SignedSource<<b15db6e40d2fb6ca7e7e315886444c1c>>
*/
"use strict";
@@ -1233,7 +1233,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_283 = {
var injectedNamesToPlugins$jscomp$inline_288 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1279,32 +1279,32 @@ var injectedNamesToPlugins$jscomp$inline_283 = {
}
}
},
isOrderingDirty$jscomp$inline_284 = !1,
pluginName$jscomp$inline_285;
for (pluginName$jscomp$inline_285 in injectedNamesToPlugins$jscomp$inline_283)
isOrderingDirty$jscomp$inline_289 = !1,
pluginName$jscomp$inline_290;
for (pluginName$jscomp$inline_290 in injectedNamesToPlugins$jscomp$inline_288)
if (
injectedNamesToPlugins$jscomp$inline_283.hasOwnProperty(
pluginName$jscomp$inline_285
injectedNamesToPlugins$jscomp$inline_288.hasOwnProperty(
pluginName$jscomp$inline_290
)
) {
var pluginModule$jscomp$inline_286 =
injectedNamesToPlugins$jscomp$inline_283[pluginName$jscomp$inline_285];
var pluginModule$jscomp$inline_291 =
injectedNamesToPlugins$jscomp$inline_288[pluginName$jscomp$inline_290];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_285) ||
namesToPlugins[pluginName$jscomp$inline_285] !==
pluginModule$jscomp$inline_286
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_290) ||
namesToPlugins[pluginName$jscomp$inline_290] !==
pluginModule$jscomp$inline_291
) {
if (namesToPlugins[pluginName$jscomp$inline_285])
if (namesToPlugins[pluginName$jscomp$inline_290])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_285 + "`.")
(pluginName$jscomp$inline_290 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_285] =
pluginModule$jscomp$inline_286;
isOrderingDirty$jscomp$inline_284 = !0;
namesToPlugins[pluginName$jscomp$inline_290] =
pluginModule$jscomp$inline_291;
isOrderingDirty$jscomp$inline_289 = !0;
}
}
isOrderingDirty$jscomp$inline_284 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_289 && recomputePluginOrdering();
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
@@ -1748,7 +1748,8 @@ function getNextLanes(root, wipLanes) {
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
@@ -1757,7 +1758,8 @@ function getNextLanes(root, wipLanes) {
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
@@ -1773,6 +1775,14 @@ function getNextLanes(root, wipLanes) {
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -1872,7 +1882,8 @@ function markRootFinished(
remainingLanes &= ~lane;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
enableSiblingPrerendering &&
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
@@ -2284,7 +2295,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
root,
root === workInProgressRoot ? JSCompiler_inline_result : 0
)),
0 !== (JSCompiler_inline_result & 3) &&
0 === (JSCompiler_inline_result & 3) ||
checkIfRootIsPrerendering(root, JSCompiler_inline_result) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, JSCompiler_inline_result));
root = root.next;
@@ -2350,39 +2362,38 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
(root.callbackNode = null),
(root.callbackPriority = 0)
);
if (0 !== (suspendedLanes & 3))
return (
null !== pingedLanes &&
null !== pingedLanes &&
cancelCallback$1(pingedLanes),
(root.callbackPriority = 2),
(root.callbackNode = null),
2
);
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
suspendedLanes = ImmediatePriority;
break;
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
if (
0 === (suspendedLanes & 3) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root, suspendedLanes))
) {
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
root.callbackPriority = 2;
root.callbackNode = null;
return 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
var originalCallbackNode = root.callbackNode;
@@ -7318,7 +7329,8 @@ function scheduleRetryEffect(workInProgress, retryQueue) {
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
enableSiblingPrerendering &&
(workInProgressSuspendedRetryLanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -9234,7 +9246,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
markRootUpdated(root, lane);
if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -9246,7 +9258,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
)),
ensureRootIsScheduled(root),
2 === lane &&
@@ -9258,165 +9270,166 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes))
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes);
if (0 !== exitStatus) {
var renderWasConcurrent = forceSync;
do {
if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes)) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root$jscomp$0, lanes)),
exitStatus = shouldTimeSlice
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (0 === exitStatus) {
enableSiblingPrerendering &&
workInProgressRootIsPrerendering &&
!shouldTimeSlice &&
markRootSuspended(root$jscomp$0, lanes, 0, !1);
break;
} else if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
!workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes, !1);
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
(JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent = !1;
if (2 !== exitStatus) continue;
}
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root$jscomp$0;
switch (exitStatus) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result,
!1
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === exitStatus) &&
((exitStatus = globalMostRecentFallbackTime + 300 - now()),
10 < exitStatus)
) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
if (2 !== exitStatus) continue;
}
}
break;
} while (1);
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(root$jscomp$0, lanes, 0, !0);
break;
}
a: {
shouldTimeSlice = root$jscomp$0;
renderWasConcurrent = exitStatus;
switch (renderWasConcurrent) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === renderWasConcurrent) &&
((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()),
10 < renderWasConcurrent)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
}
}
break;
} while (1);
ensureRootIsScheduled(root$jscomp$0);
}
function queueRecoverableErrors(errors) {
@@ -9514,18 +9527,20 @@ function markRootSuspended(
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
didAttemptEntireTree
) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
enableSiblingPrerendering &&
didAttemptEntireTree &&
(root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$9 = 31 - clz32(lanes),
lane = 1 << index$9;
didSkipSuspendedSiblings[index$9] = -1;
didAttemptEntireTree[index$9] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -9564,9 +9579,7 @@ function prepareFreshStack(root, lanes) {
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes);
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressSuspendedRetryLanes =
workInProgressDeferredLane =
@@ -9655,7 +9668,9 @@ function pushAsyncDispatcher() {
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = 4;
workInProgressRootDidSkipSuspendedSiblings ||
0 !== (workInProgressRootRenderLanes & 60) ||
((workInProgressRootRenderLanes & 4194176) !==
workInProgressRootRenderLanes &&
null !== suspenseHandlerStackCursor.current) ||
(workInProgressRootIsPrerendering = !0);
(0 === (workInProgressRootSkippedLanes & 134217727) &&
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
@@ -9664,10 +9679,10 @@ function renderDidSuspendDelayIfPossible() {
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
}
function renderRootSync(root, lanes) {
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= 2;
var prevDispatcher = pushDispatcher(),
@@ -9675,6 +9690,7 @@ function renderRootSync(root, lanes) {
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
(workInProgressTransitions = null), prepareFreshStack(root, lanes);
lanes = !1;
var exitStatus = workInProgressRootExitStatus;
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
@@ -9683,24 +9699,37 @@ function renderRootSync(root, lanes) {
switch (workInProgressSuspendedReason) {
case 8:
resetWorkInProgressStack();
workInProgressRootExitStatus = 6;
exitStatus = 6;
break a;
case 3:
case 2:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case 6:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
if (
enableSiblingPrerendering &&
shouldYieldForPrerendering &&
workInProgressRootIsPrerendering
) {
exitStatus = 0;
break a;
}
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = 0),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
exitStatus = workInProgressRootExitStatus;
break;
} catch (thrownValue$128) {
handleThrow(root, thrownValue$128);
} catch (thrownValue$133) {
handleThrow(root, thrownValue$133);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -9708,14 +9737,11 @@ function renderRootSync(root, lanes) {
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return exitStatus;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -9729,12 +9755,10 @@ function renderRootConcurrent(root, lanes) {
? ((workInProgressTransitions = null),
(workInProgressRootRenderTargetTime = now() + 500),
prepareFreshStack(root, lanes))
: workInProgressRootIsPrerendering &&
(workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes));
: (workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
root,
lanes
));
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
@@ -9818,8 +9842,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$130) {
handleThrow(root, thrownValue$130);
} catch (thrownValue$135) {
handleThrow(root, thrownValue$135);
}
while (1);
resetContextDependencies();
@@ -10999,27 +11023,27 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1183 = {
internals$jscomp$inline_1190 = {
bundleType: 0,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1183.rendererConfig = extraDevToolsConfig);
(internals$jscomp$inline_1190.rendererConfig = extraDevToolsConfig);
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1480 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1487 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1480.isDisabled &&
hook$jscomp$inline_1480.supportsFiber
!hook$jscomp$inline_1487.isDisabled &&
hook$jscomp$inline_1487.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1480.inject(
internals$jscomp$inline_1183
(rendererID = hook$jscomp$inline_1487.inject(
internals$jscomp$inline_1190
)),
(injectedHook = hook$jscomp$inline_1480);
(injectedHook = hook$jscomp$inline_1487);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d19fe14cf0f735bbd625fbed26d65590>>
* @generated SignedSource<<276896924578d64ade660e98c5ab7253>>
*/
"use strict";
@@ -1237,7 +1237,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_299 = {
var injectedNamesToPlugins$jscomp$inline_304 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1283,32 +1283,32 @@ var injectedNamesToPlugins$jscomp$inline_299 = {
}
}
},
isOrderingDirty$jscomp$inline_300 = !1,
pluginName$jscomp$inline_301;
for (pluginName$jscomp$inline_301 in injectedNamesToPlugins$jscomp$inline_299)
isOrderingDirty$jscomp$inline_305 = !1,
pluginName$jscomp$inline_306;
for (pluginName$jscomp$inline_306 in injectedNamesToPlugins$jscomp$inline_304)
if (
injectedNamesToPlugins$jscomp$inline_299.hasOwnProperty(
pluginName$jscomp$inline_301
injectedNamesToPlugins$jscomp$inline_304.hasOwnProperty(
pluginName$jscomp$inline_306
)
) {
var pluginModule$jscomp$inline_302 =
injectedNamesToPlugins$jscomp$inline_299[pluginName$jscomp$inline_301];
var pluginModule$jscomp$inline_307 =
injectedNamesToPlugins$jscomp$inline_304[pluginName$jscomp$inline_306];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_301) ||
namesToPlugins[pluginName$jscomp$inline_301] !==
pluginModule$jscomp$inline_302
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_306) ||
namesToPlugins[pluginName$jscomp$inline_306] !==
pluginModule$jscomp$inline_307
) {
if (namesToPlugins[pluginName$jscomp$inline_301])
if (namesToPlugins[pluginName$jscomp$inline_306])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_301 + "`.")
(pluginName$jscomp$inline_306 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_301] =
pluginModule$jscomp$inline_302;
isOrderingDirty$jscomp$inline_300 = !0;
namesToPlugins[pluginName$jscomp$inline_306] =
pluginModule$jscomp$inline_307;
isOrderingDirty$jscomp$inline_305 = !0;
}
}
isOrderingDirty$jscomp$inline_300 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_305 && recomputePluginOrdering();
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
@@ -1817,7 +1817,8 @@ function getNextLanes(root, wipLanes) {
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
@@ -1826,7 +1827,8 @@ function getNextLanes(root, wipLanes) {
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
@@ -1842,6 +1844,14 @@ function getNextLanes(root, wipLanes) {
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -1941,7 +1951,8 @@ function markRootFinished(
remainingLanes &= ~lane;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
enableSiblingPrerendering &&
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
@@ -2437,7 +2448,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
root,
root === workInProgressRoot ? JSCompiler_inline_result : 0
)),
0 !== (JSCompiler_inline_result & 3) &&
0 === (JSCompiler_inline_result & 3) ||
checkIfRootIsPrerendering(root, JSCompiler_inline_result) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, JSCompiler_inline_result));
root = root.next;
@@ -2503,39 +2515,38 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
(root.callbackNode = null),
(root.callbackPriority = 0)
);
if (0 !== (suspendedLanes & 3))
return (
null !== pingedLanes &&
null !== pingedLanes &&
cancelCallback$1(pingedLanes),
(root.callbackPriority = 2),
(root.callbackNode = null),
2
);
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
suspendedLanes = ImmediatePriority;
break;
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
if (
0 === (suspendedLanes & 3) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root, suspendedLanes))
) {
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
root.callbackPriority = 2;
root.callbackNode = null;
return 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -7522,7 +7533,8 @@ function scheduleRetryEffect(workInProgress, retryQueue) {
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
enableSiblingPrerendering &&
(workInProgressSuspendedRetryLanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -9763,7 +9775,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
markRootUpdated(root, lane);
if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -9776,7 +9788,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
)),
ensureRootIsScheduled(root),
2 === lane &&
@@ -9788,165 +9800,166 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes))
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes);
if (0 !== exitStatus) {
var renderWasConcurrent = forceSync;
do {
if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes)) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root$jscomp$0, lanes)),
exitStatus = shouldTimeSlice
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (0 === exitStatus) {
enableSiblingPrerendering &&
workInProgressRootIsPrerendering &&
!shouldTimeSlice &&
markRootSuspended(root$jscomp$0, lanes, 0, !1);
break;
} else if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
!workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes, !1);
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
(JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent = !1;
if (2 !== exitStatus) continue;
}
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root$jscomp$0;
switch (exitStatus) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result,
!1
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === exitStatus) &&
((exitStatus = globalMostRecentFallbackTime + 300 - now$1()),
10 < exitStatus)
) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
if (2 !== exitStatus) continue;
}
}
break;
} while (1);
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(root$jscomp$0, lanes, 0, !0);
break;
}
a: {
shouldTimeSlice = root$jscomp$0;
renderWasConcurrent = exitStatus;
switch (renderWasConcurrent) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === renderWasConcurrent) &&
((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()),
10 < renderWasConcurrent)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
}
}
break;
} while (1);
ensureRootIsScheduled(root$jscomp$0);
}
function queueRecoverableErrors(errors) {
@@ -10044,18 +10057,20 @@ function markRootSuspended(
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
didAttemptEntireTree
) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
enableSiblingPrerendering &&
didAttemptEntireTree &&
(root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$9 = 31 - clz32(lanes),
lane = 1 << index$9;
didSkipSuspendedSiblings[index$9] = -1;
didAttemptEntireTree[index$9] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -10094,9 +10109,7 @@ function prepareFreshStack(root, lanes) {
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes);
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressSuspendedRetryLanes =
workInProgressDeferredLane =
@@ -10214,7 +10227,9 @@ function pushAsyncDispatcher() {
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = 4;
workInProgressRootDidSkipSuspendedSiblings ||
0 !== (workInProgressRootRenderLanes & 60) ||
((workInProgressRootRenderLanes & 4194176) !==
workInProgressRootRenderLanes &&
null !== suspenseHandlerStackCursor.current) ||
(workInProgressRootIsPrerendering = !0);
(0 === (workInProgressRootSkippedLanes & 134217727) &&
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
@@ -10223,10 +10238,10 @@ function renderDidSuspendDelayIfPossible() {
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
}
function renderRootSync(root, lanes) {
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= 2;
var prevDispatcher = pushDispatcher(),
@@ -10244,32 +10259,46 @@ function renderRootSync(root, lanes) {
}
markRenderStarted(lanes);
lanes = !1;
memoizedUpdaters = workInProgressRootExitStatus;
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
memoizedUpdaters = workInProgress;
var thrownValue = workInProgressThrownValue;
var unitOfWork = workInProgress,
thrownValue = workInProgressThrownValue;
switch (workInProgressSuspendedReason) {
case 8:
resetWorkInProgressStack();
workInProgressRootExitStatus = 6;
memoizedUpdaters = 6;
break a;
case 3:
case 2:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case 6:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(root, memoizedUpdaters, thrownValue, reason);
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
if (
enableSiblingPrerendering &&
shouldYieldForPrerendering &&
workInProgressRootIsPrerendering
) {
memoizedUpdaters = 0;
break a;
}
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = 0),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
memoizedUpdaters = workInProgressRootExitStatus;
break;
} catch (thrownValue$143) {
handleThrow(root, thrownValue$143);
} catch (thrownValue$148) {
handleThrow(root, thrownValue$148);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -10277,15 +10306,12 @@ function renderRootSync(root, lanes) {
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
markRenderStopped();
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return memoizedUpdaters;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -10307,12 +10333,7 @@ function renderRootConcurrent(root, lanes) {
workInProgressRootRenderTargetTime = now$1() + 500;
prepareFreshStack(root, lanes);
} else
workInProgressRootIsPrerendering &&
(workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes));
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
markRenderStarted(lanes);
a: do
try {
@@ -10398,8 +10419,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$145) {
handleThrow(root, thrownValue$145);
} catch (thrownValue$150) {
handleThrow(root, thrownValue$150);
}
while (1);
resetContextDependencies();
@@ -11658,21 +11679,21 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1271 = {
internals$jscomp$inline_1278 = {
bundleType: 0,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1271.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1271.getLaneLabelMap = function () {
(internals$jscomp$inline_1278.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1278.getLaneLabelMap = function () {
for (
var map = new Map(), lane = 1, index$149 = 0;
31 > index$149;
index$149++
var map = new Map(), lane = 1, index$154 = 0;
31 > index$154;
index$154++
) {
var label = getLabelForLane(lane);
map.set(lane, label);
@@ -11680,20 +11701,20 @@ internals$jscomp$inline_1271.getLaneLabelMap = function () {
}
return map;
};
internals$jscomp$inline_1271.injectProfilingHooks = function (profilingHooks) {
internals$jscomp$inline_1278.injectProfilingHooks = function (profilingHooks) {
injectedProfilingHooks = profilingHooks;
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1531 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1538 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1531.isDisabled &&
hook$jscomp$inline_1531.supportsFiber
!hook$jscomp$inline_1538.isDisabled &&
hook$jscomp$inline_1538.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1531.inject(
internals$jscomp$inline_1271
(rendererID = hook$jscomp$inline_1538.inject(
internals$jscomp$inline_1278
)),
(injectedHook = hook$jscomp$inline_1531);
(injectedHook = hook$jscomp$inline_1538);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<633143e46e2ccafa978d6ee4b558f7a8>>
* @generated SignedSource<<f517ec785ade344e9fbc7c3e3dd78d83>>
*/
"use strict";
@@ -1697,7 +1697,8 @@ __DEV__ &&
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
@@ -1706,7 +1707,8 @@ __DEV__ &&
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
@@ -1722,6 +1724,14 @@ __DEV__ &&
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -1826,7 +1836,8 @@ __DEV__ &&
remainingLanes &= ~lane;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
enableSiblingPrerendering &&
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
@@ -2967,7 +2978,8 @@ __DEV__ &&
root,
root === workInProgressRoot ? nextLanes : 0
)),
0 !== (nextLanes & 3) &&
0 === (nextLanes & 3) ||
checkIfRootIsPrerendering(root, nextLanes) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, nextLanes));
root = root.next;
@@ -3035,45 +3047,46 @@ __DEV__ &&
(root.callbackNode = null),
(root.callbackPriority = 0)
);
if (0 !== (suspendedLanes & 3))
return (
null !== pingedLanes && cancelCallback(pingedLanes),
(root.callbackPriority = 2),
(root.callbackNode = null),
2
);
currentTime = suspendedLanes & -suspendedLanes;
if (
currentTime !== root.callbackPriority ||
(null !== ReactSharedInternals.actQueue &&
pingedLanes !== fakeActCallbackNode$1)
)
cancelCallback(pingedLanes);
else return currentTime;
switch (lanesToEventPriority(suspendedLanes)) {
case DiscreteEventPriority:
suspendedLanes = ImmediatePriority;
break;
case ContinuousEventPriority:
suspendedLanes = UserBlockingPriority;
break;
case DefaultEventPriority:
suspendedLanes = NormalPriority$1;
break;
case IdleEventPriority:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
0 === (suspendedLanes & 3) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root, suspendedLanes))
) {
currentTime = suspendedLanes & -suspendedLanes;
if (
currentTime !== root.callbackPriority ||
(null !== ReactSharedInternals.actQueue &&
pingedLanes !== fakeActCallbackNode$1)
)
cancelCallback(pingedLanes);
else return currentTime;
switch (lanesToEventPriority(suspendedLanes)) {
case DiscreteEventPriority:
case ContinuousEventPriority:
suspendedLanes = UserBlockingPriority;
break;
case DefaultEventPriority:
suspendedLanes = NormalPriority$1;
break;
case IdleEventPriority:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
null !== ReactSharedInternals.actQueue
? (ReactSharedInternals.actQueue.push(pingedLanes),
(suspendedLanes = fakeActCallbackNode$1))
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
null !== ReactSharedInternals.actQueue
? (ReactSharedInternals.actQueue.push(pingedLanes),
(suspendedLanes = fakeActCallbackNode$1))
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
null !== pingedLanes && cancelCallback(pingedLanes);
root.callbackPriority = 2;
root.callbackNode = null;
return 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -9303,7 +9316,8 @@ __DEV__ &&
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
enableSiblingPrerendering &&
(workInProgressSuspendedRetryLanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -12148,7 +12162,7 @@ __DEV__ &&
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
markRootUpdated(root, lane);
if (
@@ -12191,7 +12205,7 @@ __DEV__ &&
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
)),
ensureRootIsScheduled(root),
2 !== lane ||
@@ -12204,180 +12218,182 @@ __DEV__ &&
function performWorkOnRoot(root, lanes, forceSync) {
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes))
? renderRootConcurrent(root, lanes)
: renderRootSync(root, lanes);
if (exitStatus !== RootInProgress) {
var renderWasConcurrent = forceSync;
do {
if (exitStatus === RootDidNotComplete)
markRootSuspended(
root,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root.tag && exitStatus === RootErrored) {
var lanesThatJustErrored = lanes;
root.errorRecoveryDisabledLanes & lanesThatJustErrored
? (renderWasConcurrent = 0)
: ((renderWasConcurrent = root.pendingLanes & -536870913),
(renderWasConcurrent =
0 !== renderWasConcurrent
? renderWasConcurrent
: renderWasConcurrent & 536870912
? 536870912
: 0));
if (0 !== renderWasConcurrent) {
lanes = renderWasConcurrent;
a: {
exitStatus = root;
var originallyAttemptedLanes = lanesThatJustErrored;
lanesThatJustErrored = workInProgressRootConcurrentErrors;
renderWasConcurrent = renderRootSync(
exitStatus,
renderWasConcurrent
);
if (renderWasConcurrent !== RootErrored) {
if (workInProgressRootDidAttachPingListener) {
exitStatus.errorRecoveryDisabledLanes |=
originallyAttemptedLanes;
workInProgressRootInterleavedUpdatedLanes |=
originallyAttemptedLanes;
exitStatus = RootSuspendedWithDelay;
break a;
}
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
}
exitStatus = renderWasConcurrent;
}
renderWasConcurrent = !1;
if (exitStatus !== RootErrored) continue;
}
}
if (exitStatus === RootFatalErrored) {
prepareFreshStack(root, 0);
markRootSuspended(
root,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root;
switch (exitStatus) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root.expiredLanes)) ||
(enableSiblingPrerendering && checkIfRootIsPrerendering(root, lanes)),
exitStatus = shouldTimeSlice
? renderRootConcurrent(root, lanes)
: renderRootSync(root, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (exitStatus === RootInProgress) {
enableSiblingPrerendering &&
workInProgressRootIsPrerendering &&
!shouldTimeSlice &&
markRootSuspended(root, lanes, 0, !1);
break;
} else if (exitStatus === RootDidNotComplete)
markRootSuspended(
root,
lanes,
0,
!workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root, lanes, !1);
continue;
}
if (0 !== root.tag && exitStatus === RootErrored) {
var lanesThatJustErrored = lanes;
root.errorRecoveryDisabledLanes & lanesThatJustErrored
? (renderWasConcurrent = 0)
: ((renderWasConcurrent = root.pendingLanes & -536870913),
(renderWasConcurrent =
0 !== renderWasConcurrent
? renderWasConcurrent
: renderWasConcurrent & 536870912
? 536870912
: 0));
if (0 !== renderWasConcurrent) {
lanes = renderWasConcurrent;
a: {
exitStatus = root;
var originallyAttemptedLanes = lanesThatJustErrored;
lanesThatJustErrored = workInProgressRootConcurrentErrors;
renderWasConcurrent = renderRootSync(
exitStatus,
renderWasConcurrent,
!1
);
if (renderWasConcurrent !== RootErrored) {
if (workInProgressRootDidAttachPingListener) {
exitStatus.errorRecoveryDisabledLanes |=
originallyAttemptedLanes;
workInProgressRootInterleavedUpdatedLanes |=
originallyAttemptedLanes;
exitStatus = RootSuspendedWithDelay;
break a;
}
break;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
}
exitStatus = renderWasConcurrent;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (null !== ReactSharedInternals.actQueue)
commitRoot(
renderWasConcurrent,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
IMMEDIATE_COMMIT,
-0,
0
);
else {
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || exitStatus === RootSuspended) &&
((exitStatus =
globalMostRecentFallbackTime +
FALLBACK_THROTTLE_MS -
now$1()),
10 < exitStatus)
) {
if (exitStatus !== RootErrored) continue;
}
}
if (exitStatus === RootFatalErrored) {
prepareFreshStack(root, 0);
markRootSuspended(root, lanes, 0, !0);
break;
}
a: {
shouldTimeSlice = root;
switch (exitStatus) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
THROTTLED_COMMIT,
-0,
0
),
exitStatus
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
break;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (null !== ReactSharedInternals.actQueue)
commitRoot(
shouldTimeSlice,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
IMMEDIATE_COMMIT,
-0,
0
);
else {
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || exitStatus === RootSuspended) &&
((exitStatus =
globalMostRecentFallbackTime +
FALLBACK_THROTTLE_MS -
now$1()),
10 < exitStatus)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
IMMEDIATE_COMMIT,
-0,
0
!workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
THROTTLED_COMMIT,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
IMMEDIATE_COMMIT,
-0,
0
);
}
}
break;
} while (1);
}
}
break;
} while (1);
ensureRootIsScheduled(root);
}
function queueRecoverableErrors(errors) {
@@ -12469,18 +12485,20 @@ __DEV__ &&
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
didAttemptEntireTree
) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
enableSiblingPrerendering &&
didAttemptEntireTree &&
(root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index = 31 - clz32(lanes),
lane = 1 << index;
didSkipSuspendedSiblings[index] = -1;
didAttemptEntireTree[index] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -12524,11 +12542,7 @@ __DEV__ &&
workInProgressSuspendedReason = NotSuspended;
workInProgressThrownValue = null;
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes);
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressRootExitStatus = RootInProgress;
workInProgressSuspendedRetryLanes =
@@ -12652,7 +12666,9 @@ __DEV__ &&
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = RootSuspendedWithDelay;
workInProgressRootDidSkipSuspendedSiblings ||
0 !== (workInProgressRootRenderLanes & 60) ||
((workInProgressRootRenderLanes & 4194176) !==
workInProgressRootRenderLanes &&
null !== suspenseHandlerStackCursor.current) ||
(workInProgressRootIsPrerendering = !0);
(0 === (workInProgressRootSkippedLanes & 134217727) &&
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
@@ -12661,10 +12677,10 @@ __DEV__ &&
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
}
function renderRootSync(root, lanes) {
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= RenderContext;
var prevDispatcher = pushDispatcher(),
@@ -12685,37 +12701,46 @@ __DEV__ &&
}
markRenderStarted(lanes);
lanes = !1;
memoizedUpdaters = workInProgressRootExitStatus;
a: do
try {
if (
workInProgressSuspendedReason !== NotSuspended &&
null !== workInProgress
) {
memoizedUpdaters = workInProgress;
var thrownValue = workInProgressThrownValue;
var unitOfWork = workInProgress,
thrownValue = workInProgressThrownValue;
switch (workInProgressSuspendedReason) {
case SuspendedOnHydration:
resetWorkInProgressStack();
workInProgressRootExitStatus = RootDidNotComplete;
memoizedUpdaters = RootDidNotComplete;
break a;
case SuspendedOnImmediate:
case SuspendedOnData:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case SuspendedOnDeprecatedThrowPromise:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = NotSuspended;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(
root,
memoizedUpdaters,
thrownValue,
reason
);
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
if (
enableSiblingPrerendering &&
shouldYieldForPrerendering &&
workInProgressRootIsPrerendering
) {
memoizedUpdaters = RootInProgress;
break a;
}
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = NotSuspended),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
memoizedUpdaters = workInProgressRootExitStatus;
break;
} catch (thrownValue$35) {
handleThrow(root, thrownValue$35);
@@ -12726,15 +12751,12 @@ __DEV__ &&
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
markRenderStopped();
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return memoizedUpdaters;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -12759,12 +12781,10 @@ __DEV__ &&
workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
prepareFreshStack(root, lanes);
} else
workInProgressRootIsPrerendering &&
(workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes));
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
root,
lanes
);
markRenderStarted(lanes);
a: do
try {
@@ -17293,11 +17313,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-3c7667a6-20240925" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-0f1856c4-20240925" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.0.0-native-fb-3c7667a6-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-0f1856c4-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -17323,11 +17343,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromTag,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e91a30fc8994b453971f6a2c0a3716ac>>
* @generated SignedSource<<36316d61fd710ba9a17ae3b6f36e893b>>
*/
"use strict";
@@ -1227,7 +1227,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_290 = {
var injectedNamesToPlugins$jscomp$inline_295 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1273,32 +1273,32 @@ var injectedNamesToPlugins$jscomp$inline_290 = {
}
}
},
isOrderingDirty$jscomp$inline_291 = !1,
pluginName$jscomp$inline_292;
for (pluginName$jscomp$inline_292 in injectedNamesToPlugins$jscomp$inline_290)
isOrderingDirty$jscomp$inline_296 = !1,
pluginName$jscomp$inline_297;
for (pluginName$jscomp$inline_297 in injectedNamesToPlugins$jscomp$inline_295)
if (
injectedNamesToPlugins$jscomp$inline_290.hasOwnProperty(
pluginName$jscomp$inline_292
injectedNamesToPlugins$jscomp$inline_295.hasOwnProperty(
pluginName$jscomp$inline_297
)
) {
var pluginModule$jscomp$inline_293 =
injectedNamesToPlugins$jscomp$inline_290[pluginName$jscomp$inline_292];
var pluginModule$jscomp$inline_298 =
injectedNamesToPlugins$jscomp$inline_295[pluginName$jscomp$inline_297];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_292) ||
namesToPlugins[pluginName$jscomp$inline_292] !==
pluginModule$jscomp$inline_293
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_297) ||
namesToPlugins[pluginName$jscomp$inline_297] !==
pluginModule$jscomp$inline_298
) {
if (namesToPlugins[pluginName$jscomp$inline_292])
if (namesToPlugins[pluginName$jscomp$inline_297])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_292 + "`.")
(pluginName$jscomp$inline_297 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_292] =
pluginModule$jscomp$inline_293;
isOrderingDirty$jscomp$inline_291 = !0;
namesToPlugins[pluginName$jscomp$inline_297] =
pluginModule$jscomp$inline_298;
isOrderingDirty$jscomp$inline_296 = !0;
}
}
isOrderingDirty$jscomp$inline_291 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_296 && recomputePluginOrdering();
var instanceCache = new Map(),
instanceProps = new Map();
function getInstanceFromTag(tag) {
@@ -1949,7 +1949,8 @@ function getNextLanes(root, wipLanes) {
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
@@ -1958,7 +1959,8 @@ function getNextLanes(root, wipLanes) {
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
@@ -1974,6 +1976,14 @@ function getNextLanes(root, wipLanes) {
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -2073,7 +2083,8 @@ function markRootFinished(
remainingLanes &= ~lane;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
enableSiblingPrerendering &&
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
@@ -2582,7 +2593,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
root,
root === workInProgressRoot ? JSCompiler_inline_result : 0
)),
0 !== (JSCompiler_inline_result & 3) &&
0 === (JSCompiler_inline_result & 3) ||
checkIfRootIsPrerendering(root, JSCompiler_inline_result) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, JSCompiler_inline_result));
root = root.next;
@@ -2648,39 +2660,38 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
(root.callbackNode = null),
(root.callbackPriority = 0)
);
if (0 !== (suspendedLanes & 3))
return (
null !== pingedLanes &&
null !== pingedLanes &&
cancelCallback$1(pingedLanes),
(root.callbackPriority = 2),
(root.callbackNode = null),
2
);
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
suspendedLanes = ImmediatePriority;
break;
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
if (
0 === (suspendedLanes & 3) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root, suspendedLanes))
) {
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
root.callbackPriority = 2;
root.callbackNode = null;
return 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
var originalCallbackNode = root.callbackNode;
@@ -7488,7 +7499,8 @@ function scheduleRetryEffect(workInProgress, retryQueue) {
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
enableSiblingPrerendering &&
(workInProgressSuspendedRetryLanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -9666,7 +9678,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
markRootUpdated(root, lane);
if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -9678,7 +9690,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
)),
ensureRootIsScheduled(root),
2 === lane &&
@@ -9690,165 +9702,166 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes))
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes);
if (0 !== exitStatus) {
var renderWasConcurrent = forceSync;
do {
if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes)) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root$jscomp$0, lanes)),
exitStatus = shouldTimeSlice
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (0 === exitStatus) {
enableSiblingPrerendering &&
workInProgressRootIsPrerendering &&
!shouldTimeSlice &&
markRootSuspended(root$jscomp$0, lanes, 0, !1);
break;
} else if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
!workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes, !1);
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
(JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent = !1;
if (2 !== exitStatus) continue;
}
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root$jscomp$0;
switch (exitStatus) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result,
!1
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === exitStatus) &&
((exitStatus = globalMostRecentFallbackTime + 300 - now()),
10 < exitStatus)
) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
if (2 !== exitStatus) continue;
}
}
break;
} while (1);
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(root$jscomp$0, lanes, 0, !0);
break;
}
a: {
shouldTimeSlice = root$jscomp$0;
renderWasConcurrent = exitStatus;
switch (renderWasConcurrent) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === renderWasConcurrent) &&
((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()),
10 < renderWasConcurrent)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
}
}
break;
} while (1);
ensureRootIsScheduled(root$jscomp$0);
}
function queueRecoverableErrors(errors) {
@@ -9946,18 +9959,20 @@ function markRootSuspended(
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
didAttemptEntireTree
) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
enableSiblingPrerendering &&
didAttemptEntireTree &&
(root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$11 = 31 - clz32(lanes),
lane = 1 << index$11;
didSkipSuspendedSiblings[index$11] = -1;
didAttemptEntireTree[index$11] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -9996,9 +10011,7 @@ function prepareFreshStack(root, lanes) {
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes);
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressSuspendedRetryLanes =
workInProgressDeferredLane =
@@ -10087,7 +10100,9 @@ function pushAsyncDispatcher() {
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = 4;
workInProgressRootDidSkipSuspendedSiblings ||
0 !== (workInProgressRootRenderLanes & 60) ||
((workInProgressRootRenderLanes & 4194176) !==
workInProgressRootRenderLanes &&
null !== suspenseHandlerStackCursor.current) ||
(workInProgressRootIsPrerendering = !0);
(0 === (workInProgressRootSkippedLanes & 134217727) &&
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
@@ -10096,10 +10111,10 @@ function renderDidSuspendDelayIfPossible() {
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
}
function renderRootSync(root, lanes) {
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= 2;
var prevDispatcher = pushDispatcher(),
@@ -10107,6 +10122,7 @@ function renderRootSync(root, lanes) {
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
(workInProgressTransitions = null), prepareFreshStack(root, lanes);
lanes = !1;
var exitStatus = workInProgressRootExitStatus;
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
@@ -10115,24 +10131,37 @@ function renderRootSync(root, lanes) {
switch (workInProgressSuspendedReason) {
case 8:
resetWorkInProgressStack();
workInProgressRootExitStatus = 6;
exitStatus = 6;
break a;
case 3:
case 2:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case 6:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
if (
enableSiblingPrerendering &&
shouldYieldForPrerendering &&
workInProgressRootIsPrerendering
) {
exitStatus = 0;
break a;
}
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = 0),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
exitStatus = workInProgressRootExitStatus;
break;
} catch (thrownValue$132) {
handleThrow(root, thrownValue$132);
} catch (thrownValue$137) {
handleThrow(root, thrownValue$137);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -10140,14 +10169,11 @@ function renderRootSync(root, lanes) {
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return exitStatus;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -10161,12 +10187,10 @@ function renderRootConcurrent(root, lanes) {
? ((workInProgressTransitions = null),
(workInProgressRootRenderTargetTime = now() + 500),
prepareFreshStack(root, lanes))
: workInProgressRootIsPrerendering &&
(workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes));
: (workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
root,
lanes
));
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
@@ -10250,8 +10274,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$134) {
handleThrow(root, thrownValue$134);
} catch (thrownValue$139) {
handleThrow(root, thrownValue$139);
}
while (1);
resetContextDependencies();
@@ -11131,11 +11155,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-3c7667a6-20240925" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-0f1856c4-20240925" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.0.0-native-fb-3c7667a6-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-0f1856c4-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11182,27 +11206,27 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1249 = {
internals$jscomp$inline_1256 = {
bundleType: 0,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromTag,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1249.rendererConfig = extraDevToolsConfig);
(internals$jscomp$inline_1256.rendererConfig = extraDevToolsConfig);
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1571 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1578 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1571.isDisabled &&
hook$jscomp$inline_1571.supportsFiber
!hook$jscomp$inline_1578.isDisabled &&
hook$jscomp$inline_1578.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1571.inject(
internals$jscomp$inline_1249
(rendererID = hook$jscomp$inline_1578.inject(
internals$jscomp$inline_1256
)),
(injectedHook = hook$jscomp$inline_1571);
(injectedHook = hook$jscomp$inline_1578);
} catch (err) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<84e28b832d669478a4b1545de277d2e1>>
* @generated SignedSource<<8a6e6b8761366519e5c4bbca932728e8>>
*/
"use strict";
@@ -1231,7 +1231,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_306 = {
var injectedNamesToPlugins$jscomp$inline_311 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1277,32 +1277,32 @@ var injectedNamesToPlugins$jscomp$inline_306 = {
}
}
},
isOrderingDirty$jscomp$inline_307 = !1,
pluginName$jscomp$inline_308;
for (pluginName$jscomp$inline_308 in injectedNamesToPlugins$jscomp$inline_306)
isOrderingDirty$jscomp$inline_312 = !1,
pluginName$jscomp$inline_313;
for (pluginName$jscomp$inline_313 in injectedNamesToPlugins$jscomp$inline_311)
if (
injectedNamesToPlugins$jscomp$inline_306.hasOwnProperty(
pluginName$jscomp$inline_308
injectedNamesToPlugins$jscomp$inline_311.hasOwnProperty(
pluginName$jscomp$inline_313
)
) {
var pluginModule$jscomp$inline_309 =
injectedNamesToPlugins$jscomp$inline_306[pluginName$jscomp$inline_308];
var pluginModule$jscomp$inline_314 =
injectedNamesToPlugins$jscomp$inline_311[pluginName$jscomp$inline_313];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_308) ||
namesToPlugins[pluginName$jscomp$inline_308] !==
pluginModule$jscomp$inline_309
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_313) ||
namesToPlugins[pluginName$jscomp$inline_313] !==
pluginModule$jscomp$inline_314
) {
if (namesToPlugins[pluginName$jscomp$inline_308])
if (namesToPlugins[pluginName$jscomp$inline_313])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_308 + "`.")
(pluginName$jscomp$inline_313 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_308] =
pluginModule$jscomp$inline_309;
isOrderingDirty$jscomp$inline_307 = !0;
namesToPlugins[pluginName$jscomp$inline_313] =
pluginModule$jscomp$inline_314;
isOrderingDirty$jscomp$inline_312 = !0;
}
}
isOrderingDirty$jscomp$inline_307 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_312 && recomputePluginOrdering();
var instanceCache = new Map(),
instanceProps = new Map();
function getInstanceFromTag(tag) {
@@ -2018,7 +2018,8 @@ function getNextLanes(root, wipLanes) {
: ((pingedLanes &= nonIdlePendingLanes),
0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = nonIdlePendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes)))))
@@ -2027,7 +2028,8 @@ function getNextLanes(root, wipLanes) {
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
: 0 !== pingedLanes
? (nextLanes = getHighestPriorityLanes(pingedLanes))
: root ||
: enableSiblingPrerendering &&
!root &&
((warmLanes = pendingLanes & ~warmLanes),
0 !== warmLanes &&
(nextLanes = getHighestPriorityLanes(warmLanes))));
@@ -2043,6 +2045,14 @@ function getNextLanes(root, wipLanes) {
? wipLanes
: nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes) {
return (
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
renderLanes)
);
}
function computeExpirationTime(lane, currentTime) {
switch (lane) {
case 1:
@@ -2142,7 +2152,8 @@ function markRootFinished(
remainingLanes &= ~lane;
}
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
0 !== suspendedRetryLanes &&
enableSiblingPrerendering &&
0 !== suspendedRetryLanes &&
0 === updatedLanes &&
(root.suspendedLanes |=
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
@@ -2735,7 +2746,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
root,
root === workInProgressRoot ? JSCompiler_inline_result : 0
)),
0 !== (JSCompiler_inline_result & 3) &&
0 === (JSCompiler_inline_result & 3) ||
checkIfRootIsPrerendering(root, JSCompiler_inline_result) ||
((didPerformSomeWork = !0),
performSyncWorkOnRoot(root, JSCompiler_inline_result));
root = root.next;
@@ -2801,39 +2813,38 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
(root.callbackNode = null),
(root.callbackPriority = 0)
);
if (0 !== (suspendedLanes & 3))
return (
null !== pingedLanes &&
null !== pingedLanes &&
cancelCallback$1(pingedLanes),
(root.callbackPriority = 2),
(root.callbackNode = null),
2
);
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
suspendedLanes = ImmediatePriority;
break;
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
if (
0 === (suspendedLanes & 3) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root, suspendedLanes))
) {
currentTime = suspendedLanes & -suspendedLanes;
if (currentTime === root.callbackPriority) return currentTime;
null !== pingedLanes && cancelCallback$1(pingedLanes);
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
}
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
root.callbackPriority = currentTime;
root.callbackNode = suspendedLanes;
return currentTime;
null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
root.callbackPriority = 2;
root.callbackNode = null;
return 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -7692,7 +7703,8 @@ function scheduleRetryEffect(workInProgress, retryQueue) {
((retryQueue =
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
(workInProgress.lanes |= retryQueue),
(workInProgressSuspendedRetryLanes |= retryQueue));
enableSiblingPrerendering &&
(workInProgressSuspendedRetryLanes |= retryQueue));
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
switch (renderState.tailMode) {
@@ -10194,7 +10206,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
markRootUpdated(root, lane);
if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -10207,7 +10219,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
)),
ensureRootIsScheduled(root),
2 === lane &&
@@ -10219,165 +10231,166 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var exitStatus = (forceSync =
!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes))
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes);
if (0 !== exitStatus) {
var renderWasConcurrent = forceSync;
do {
if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes);
renderWasConcurrent = !1;
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
var shouldTimeSlice =
(!forceSync &&
0 === (lanes & 60) &&
0 === (lanes & root$jscomp$0.expiredLanes)) ||
(enableSiblingPrerendering &&
checkIfRootIsPrerendering(root$jscomp$0, lanes)),
exitStatus = shouldTimeSlice
? renderRootConcurrent(root$jscomp$0, lanes)
: renderRootSync(root$jscomp$0, lanes, !0);
do {
var renderWasConcurrent = shouldTimeSlice;
if (0 === exitStatus) {
enableSiblingPrerendering &&
workInProgressRootIsPrerendering &&
!shouldTimeSlice &&
markRootSuspended(root$jscomp$0, lanes, 0, !1);
break;
} else if (6 === exitStatus)
markRootSuspended(
root$jscomp$0,
lanes,
0,
!workInProgressRootDidSkipSuspendedSiblings
);
else {
forceSync = root$jscomp$0.current.alternate;
if (
renderWasConcurrent &&
!isRenderConsistentWithExternalStores(forceSync)
) {
exitStatus = renderRootSync(root$jscomp$0, lanes, !1);
continue;
}
if (0 !== root$jscomp$0.tag && 2 === exitStatus) {
renderWasConcurrent = lanes;
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
(JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
root$jscomp$0.pendingLanes & -536870913),
(JSCompiler_inline_result =
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent = !1;
if (2 !== exitStatus) continue;
}
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(
root$jscomp$0,
lanes,
0,
workInProgressRootDidSkipSuspendedSiblings
);
break;
}
a: {
renderWasConcurrent = root$jscomp$0;
switch (exitStatus) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
0 !== JSCompiler_inline_result
? JSCompiler_inline_result
: JSCompiler_inline_result & 536870912
? 536870912
: 0);
if (0 !== JSCompiler_inline_result) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result,
!1
);
if (2 !== JSCompiler_inline_result) {
if (workInProgressRootDidAttachPingListener) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
workInProgressRootInterleavedUpdatedLanes |=
renderWasConcurrent;
exitStatus = 4;
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
renderWasConcurrent = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = exitStatus;
null !== renderWasConcurrent &&
queueRecoverableErrors(renderWasConcurrent);
}
exitStatus = JSCompiler_inline_result;
}
renderWasConcurrent.finishedWork = forceSync;
renderWasConcurrent.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === exitStatus) &&
((exitStatus = globalMostRecentFallbackTime + 300 - now$1()),
10 < exitStatus)
) {
markRootSuspended(
renderWasConcurrent,
lanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
renderWasConcurrent.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
renderWasConcurrent,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
if (2 !== exitStatus) continue;
}
}
break;
} while (1);
}
if (1 === exitStatus) {
prepareFreshStack(root$jscomp$0, 0);
markRootSuspended(root$jscomp$0, lanes, 0, !0);
break;
}
a: {
shouldTimeSlice = root$jscomp$0;
renderWasConcurrent = exitStatus;
switch (renderWasConcurrent) {
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 4:
if ((lanes & 4194176) === lanes) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
}
break;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error("Unknown root exit status.");
}
shouldTimeSlice.finishedWork = forceSync;
shouldTimeSlice.finishedLanes = lanes;
if (
(lanes & 62914560) === lanes &&
(alwaysThrottleRetries || 3 === renderWasConcurrent) &&
((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()),
10 < renderWasConcurrent)
) {
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
2,
-0,
0
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
0,
-0,
0
);
}
}
break;
} while (1);
ensureRootIsScheduled(root$jscomp$0);
}
function queueRecoverableErrors(errors) {
@@ -10475,18 +10488,20 @@ function markRootSuspended(
root,
suspendedLanes,
spawnedLane,
didSkipSuspendedSiblings
didAttemptEntireTree
) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes);
didSkipSuspendedSiblings = root.expirationTimes;
enableSiblingPrerendering &&
didAttemptEntireTree &&
(root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$11 = 31 - clz32(lanes),
lane = 1 << index$11;
didSkipSuspendedSiblings[index$11] = -1;
didAttemptEntireTree[index$11] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -10525,9 +10540,7 @@ function prepareFreshStack(root, lanes) {
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
workInProgressRootDidSkipSuspendedSiblings = !1;
workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes);
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
workInProgressRootDidAttachPingListener = !1;
workInProgressSuspendedRetryLanes =
workInProgressDeferredLane =
@@ -10645,7 +10658,9 @@ function pushAsyncDispatcher() {
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = 4;
workInProgressRootDidSkipSuspendedSiblings ||
0 !== (workInProgressRootRenderLanes & 60) ||
((workInProgressRootRenderLanes & 4194176) !==
workInProgressRootRenderLanes &&
null !== suspenseHandlerStackCursor.current) ||
(workInProgressRootIsPrerendering = !0);
(0 === (workInProgressRootSkippedLanes & 134217727) &&
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
@@ -10654,10 +10669,10 @@ function renderDidSuspendDelayIfPossible() {
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
workInProgressRootDidSkipSuspendedSiblings
!1
);
}
function renderRootSync(root, lanes) {
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= 2;
var prevDispatcher = pushDispatcher(),
@@ -10675,32 +10690,46 @@ function renderRootSync(root, lanes) {
}
markRenderStarted(lanes);
lanes = !1;
memoizedUpdaters = workInProgressRootExitStatus;
a: do
try {
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
memoizedUpdaters = workInProgress;
var thrownValue = workInProgressThrownValue;
var unitOfWork = workInProgress,
thrownValue = workInProgressThrownValue;
switch (workInProgressSuspendedReason) {
case 8:
resetWorkInProgressStack();
workInProgressRootExitStatus = 6;
memoizedUpdaters = 6;
break a;
case 3:
case 2:
lanes ||
null !== suspenseHandlerStackCursor.current ||
(lanes = !0);
default:
case 6:
null === suspenseHandlerStackCursor.current && (lanes = !0);
var reason = workInProgressSuspendedReason;
workInProgressSuspendedReason = 0;
workInProgressThrownValue = null;
throwAndUnwindWorkLoop(root, memoizedUpdaters, thrownValue, reason);
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
if (
enableSiblingPrerendering &&
shouldYieldForPrerendering &&
workInProgressRootIsPrerendering
) {
memoizedUpdaters = 0;
break a;
}
break;
default:
(reason = workInProgressSuspendedReason),
(workInProgressSuspendedReason = 0),
(workInProgressThrownValue = null),
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync();
memoizedUpdaters = workInProgressRootExitStatus;
break;
} catch (thrownValue$147) {
handleThrow(root, thrownValue$147);
} catch (thrownValue$152) {
handleThrow(root, thrownValue$152);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -10708,15 +10737,12 @@ function renderRootSync(root, lanes) {
executionContext = prevExecutionContext;
ReactSharedInternals.H = prevDispatcher;
ReactSharedInternals.A = prevAsyncDispatcher;
if (null !== workInProgress)
throw Error(
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
);
markRenderStopped();
workInProgressRoot = null;
workInProgressRootRenderLanes = 0;
finishQueueingConcurrentUpdates();
return workInProgressRootExitStatus;
null === workInProgress &&
((workInProgressRoot = null),
(workInProgressRootRenderLanes = 0),
finishQueueingConcurrentUpdates());
return memoizedUpdaters;
}
function workLoopSync() {
for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
@@ -10738,12 +10764,7 @@ function renderRootConcurrent(root, lanes) {
workInProgressRootRenderTargetTime = now$1() + 500;
prepareFreshStack(root, lanes);
} else
workInProgressRootIsPrerendering &&
(workInProgressRootIsPrerendering =
0 ===
(root.pendingLanes &
~(root.suspendedLanes & ~root.pingedLanes) &
lanes));
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
markRenderStarted(lanes);
a: do
try {
@@ -10829,8 +10850,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$149) {
handleThrow(root, thrownValue$149);
} catch (thrownValue$154) {
handleThrow(root, thrownValue$154);
}
while (1);
resetContextDependencies();
@@ -11789,11 +11810,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-3c7667a6-20240925" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-0f1856c4-20240925" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.0.0-native-fb-3c7667a6-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-0f1856c4-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11840,21 +11861,21 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1337 = {
internals$jscomp$inline_1344 = {
bundleType: 0,
version: "19.0.0-native-fb-3c7667a6-20240925",
version: "19.0.0-native-fb-0f1856c4-20240925",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromTag,
reconcilerVersion: "19.0.0-native-fb-3c7667a6-20240925"
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1337.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1337.getLaneLabelMap = function () {
(internals$jscomp$inline_1344.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1344.getLaneLabelMap = function () {
for (
var map = new Map(), lane = 1, index$153 = 0;
31 > index$153;
index$153++
var map = new Map(), lane = 1, index$158 = 0;
31 > index$158;
index$158++
) {
var label = getLabelForLane(lane);
map.set(lane, label);
@@ -11862,20 +11883,20 @@ internals$jscomp$inline_1337.getLaneLabelMap = function () {
}
return map;
};
internals$jscomp$inline_1337.injectProfilingHooks = function (profilingHooks) {
internals$jscomp$inline_1344.injectProfilingHooks = function (profilingHooks) {
injectedProfilingHooks = profilingHooks;
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1622 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1629 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1622.isDisabled &&
hook$jscomp$inline_1622.supportsFiber
!hook$jscomp$inline_1629.isDisabled &&
hook$jscomp$inline_1629.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1622.inject(
internals$jscomp$inline_1337
(rendererID = hook$jscomp$inline_1629.inject(
internals$jscomp$inline_1344
)),
(injectedHook = hook$jscomp$inline_1622);
(injectedHook = hook$jscomp$inline_1629);
} catch (err) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {